sqllogictest
Artifact Content
Not logged in

Artifact c49f9e55e385048b7bd7b9e29f94f0c72c3f3682:


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 SUM( DISTINCT 17 )
----
17

skipif mysql # not compatible
query I rowsort label-0
SELECT SUM ( DISTINCT 17 )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1
SELECT + 4 DIV SUM( ALL - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-1
SELECT + 4 / SUM ( ALL - 26 )
----
0

query I rowsort
SELECT ALL 16 * 70
----
1120

query II rowsort
SELECT ALL 32, 52 + - 68 AS col2
----
32
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4
SELECT + 80 * - ( - + ( - CAST( 87 AS SIGNED ) ) )
----
-6960

skipif mysql # not compatible
query I rowsort label-4
SELECT + 80 * - ( - + ( - CAST ( 87 AS INTEGER ) ) )
----
-6960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5
SELECT + CASE + - 69 WHEN 91 THEN 42 * - ( COUNT( * ) ) / + 40 END + CASE - 48 WHEN 58 THEN 34 / + CAST( NULL AS SIGNED ) ELSE NULL END * + CASE 63 WHEN + 92 THEN - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT + CASE + - 69 WHEN 91 THEN 42 * - ( COUNT ( * ) ) / + 40 END + CASE - 48 WHEN 58 THEN 34 / + CAST ( NULL AS INTEGER ) ELSE NULL END * + CASE 63 WHEN + 92 THEN - 69 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT ALL MAX( ALL 76 ) col0
----
76

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL MAX ( ALL 76 ) col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7
SELECT DISTINCT 67 + + 50 + + 0 - CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7
SELECT DISTINCT 67 + + 50 + + 0 - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 2 + + 97 * - 16 * - CASE 21 WHEN + 85 + + 47 * 5 THEN 80 - + ( 96 ) WHEN 82 THEN 88 END * - 48 col1
----
NULL

query I rowsort
SELECT + 8 - + 30 AS col1
----
-22

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-11
SELECT ALL + COUNT( * ), NULLIF ( + - 17, + 81 + - 42 ) AS col2
----
1
-17

skipif mysql # not compatible
query II rowsort label-11
SELECT ALL + COUNT ( * ), NULLIF ( + - 17, + 81 + - 42 ) AS col2
----
1
-17

query I rowsort
SELECT DISTINCT 34 + + ( + 50 ) AS col1
----
84

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

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT 47 + + COUNT ( * ) AS col2
----
48

query I rowsort
SELECT ALL + 89 + + 20 AS col2
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-15
SELECT DISTINCT + 31 DIV + + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT + 31 / + + 88 AS col0
----
0

query I rowsort
SELECT ALL + 9 + + ( 77 ) + 98 AS col0
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT - 4 - + - COUNT( - 38 ) + - 75 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-17
SELECT - 4 - + - COUNT ( - 38 ) + - 75 AS col0
----
-78

query I rowsort
SELECT + 77 * - 64 - - 36 + + 23 col2
----
-4869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-19
SELECT 42 / - CAST( NULL AS SIGNED ) + + - COUNT( * ) + + 29 + - - 40 + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-19
SELECT 42 / - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + + 29 + - - 40 + COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-20
SELECT + 71 * - 48 + CAST( NULL AS DECIMAL ) * + + ( - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-20
SELECT + 71 * - 48 + CAST ( NULL AS REAL ) * + + ( - + COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - 73 - - + 55 AS col0
----
-18

query II rowsort
SELECT DISTINCT - + 86 AS col2, - 66 AS col0
----
-86
-66

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

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

query I rowsort
SELECT 50 + 60 + + 68
----
178

query II rowsort
SELECT 46 AS col0, 89 AS col2
----
46
89

query I rowsort
SELECT + ( + 53 ) * + + 61 + + NULLIF ( 4, 20 ) AS col0
----
3237

query I rowsort
SELECT ALL + 63 * 65 * ( + - 73 ) * 45
----
-13452075

query I rowsort
SELECT ALL + ( - - 40 ) * + 37
----
1480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-29
SELECT 46 + - COALESCE ( + COUNT( 51 ), 40 * + 82 - 36 DIV + 15, + 50 + 46 )
----
45

skipif mysql # not compatible
query I rowsort label-29
SELECT 46 + - COALESCE ( + COUNT ( 51 ), 40 * + 82 - 36 / + 15, + 50 + 46 )
----
45

query II rowsort
SELECT ALL 33, + 19 AS col1
----
33
19

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL + COUNT( ALL - 8 ) * ( + NULLIF ( + 9, 67 + - 98 ) ) col1
----
9

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL + COUNT ( ALL - 8 ) * ( + NULLIF ( + 9, 67 + - 98 ) ) col1
----
9

query II rowsort
SELECT DISTINCT 92, 40 AS col2
----
92
40

query I rowsort
SELECT 46 + 6 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT MIN( + - 10 ) + - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-34
SELECT MIN ( + - 10 ) + - COUNT ( * )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-35
SELECT 91 DIV + 55 col1
----
1

skipif mysql # not compatible
query I rowsort label-35
SELECT 91 / + 55 col1
----
1

query I rowsort
SELECT ALL 26 + + 80
----
106

query I rowsort
SELECT COALESCE ( - 10, 33 ) * 9 * + - 49 AS col1
----
4410

query I rowsort
SELECT 71 + - 26
----
45

query I rowsort
SELECT DISTINCT + 74 + + 81 AS col2
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT ALL - 19 + SUM( ALL + 3 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL - 19 + SUM ( ALL + 3 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL MAX( ALL + 40 ) * - 60 + + - 11 AS col0
----
-2411

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL MAX ( ALL + 40 ) * - 60 + + - 11 AS col0
----
-2411

query I rowsort
SELECT - 66 + + 10 AS col2
----
-56

query I rowsort
SELECT ALL 36 + - 95 AS col2
----
-59

query II rowsort
SELECT ALL - 60 + + - 71 AS col0, + 42 AS col1
----
-131
42

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT DISTINCT + 2 * + - 33 - + 86 + - MAX( - - 28 ) * - 94
----
2480

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT + 2 * + - 33 - + 86 + - MAX ( - - 28 ) * - 94
----
2480

query I rowsort
SELECT ALL ( - 4 ) + + 46
----
42

query II rowsort
SELECT DISTINCT + 62 AS col2, 24 col0
----
62
24

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT - - 24 DIV - 81 + - COALESCE ( 26, ( - 67 ) ) DIV 20
----
-1

skipif mysql # not compatible
query I rowsort label-48
SELECT - - 24 / - 81 + - COALESCE ( 26, ( - 67 ) ) / 20
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-49
SELECT ALL - CASE - + 15 WHEN - + COALESCE ( 81, - - ( - 65 ) + + 93 * 62 ) * + CASE - 67 WHEN 25 - + COUNT( ALL 61 ) THEN NULL WHEN 42 THEN NULL WHEN 17 + 68 * ( 14 + - MIN( DISTINCT 50 ) ) THEN 94 - 41 * - 90 END + CAST( NULL AS SIGNED ) * + 56 THEN - 73 WHEN 62 + + 53 THEN + NULLIF ( + 63, AVG ( DISTINCT - 47 ) * - 22 ) ELSE + COALESCE ( 31, 98 + 30 * + 55 ) END - + 32
----
-63

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL - CASE - + 15 WHEN - + COALESCE ( 81, - - ( - 65 ) + + 93 * 62 ) * + CASE - 67 WHEN 25 - + COUNT ( ALL 61 ) THEN NULL WHEN 42 THEN NULL WHEN 17 + 68 * ( 14 + - MIN ( DISTINCT 50 ) ) THEN 94 - 41 * - 90 END + CAST ( NULL AS INTEGER ) * + 56 THEN - 73 WHEN 62 + + 53 THEN + NULLIF ( + 63, AVG ( DISTINCT - 47 ) * - 22 ) ELSE + COALESCE ( 31, 98 + 30 * + 55 ) END - + 32
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT + COUNT( + - ( + 23 ) ) * 21 * - 13 col1
----
-273

skipif mysql # not compatible
query I rowsort label-50
SELECT + COUNT ( + - ( + 23 ) ) * 21 * - 13 col1
----
-273

query I rowsort
SELECT ALL + + 70 * + 46 AS col2
----
3220

query II rowsort
SELECT 0 AS col1, - 63
----
0
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT DISTINCT - 25 * + COUNT( * ) * - 96 AS col0
----
2400

skipif mysql # not compatible
query I rowsort label-54
SELECT DISTINCT - 25 * + COUNT ( * ) * - 96 AS col0
----
2400

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

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

query I rowsort
SELECT + COALESCE ( - + 37, - - 40 + 43, - 67 )
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-57
SELECT ALL - COUNT( DISTINCT 93 ), 19 AS col0
----
-1
19

skipif mysql # not compatible
query II rowsort label-57
SELECT ALL - COUNT ( DISTINCT 93 ), 19 AS col0
----
-1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ( + 66 ) * - - NULLIF ( COUNT( DISTINCT - 10 ), + - CASE WHEN NOT + 15 IN ( 90 * 34 ) THEN NULL ELSE 16 * 34 END - - COUNT( + 90 ) )
----
66

skipif mysql # not compatible
query I rowsort label-58
SELECT ( + 66 ) * - - NULLIF ( COUNT ( DISTINCT - 10 ), + - CASE WHEN NOT + 15 IN ( 90 * 34 ) THEN NULL ELSE 16 * 34 END - - COUNT ( + 90 ) )
----
66

query I rowsort
SELECT 69 * + ( + - 71 )
----
-4899

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT COUNT( 87 ) * 40 * - + 79 - + NULLIF ( - 46, - - 2 )
----
-3114

skipif mysql # not compatible
query I rowsort label-60
SELECT COUNT ( 87 ) * 40 * - + 79 - + NULLIF ( - 46, - - 2 )
----
-3114

onlyif mysql # DIV for integer division: 
query II rowsort label-61
SELECT ALL - 22 DIV + 10 col1, + 92 AS col0
----
-2
92

skipif mysql # not compatible
query II rowsort label-61
SELECT ALL - 22 / + 10 col1, + 92 AS col0
----
-2
92

query I rowsort
SELECT 50 - + - 21
----
71

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT ALL COUNT( * ) + COUNT( - + 92 ) - - + 29 * - 56 * - 12
----
19490

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL COUNT ( * ) + COUNT ( - + 92 ) - - + 29 * - 56 * - 12
----
19490

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT ALL - 23 + 59 * + COUNT( * ) - + 22
----
14

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL - 23 + 59 * + COUNT ( * ) - + 22
----
14

query I rowsort
SELECT ALL + 32 + + ( 17 ) - + 35
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-68
SELECT 32 * + 81 - - - 38, - 76 - + + 38 + 74 * + SUM( ALL 85 ) * 38 AS col2
----
2554
238906

skipif mysql # not compatible
query II rowsort label-68
SELECT 32 * + 81 - - - 38, - 76 - + + 38 + 74 * + SUM ( ALL 85 ) * 38 AS col2
----
2554
238906

query I rowsort
SELECT 91 + + + 28 + - 86 + - NULLIF ( ( 32 ), 2 / 82 + - 75 ) * 24 AS col1
----
-735

onlyif mysql # aggregate syntax: 
query II rowsort label-70
SELECT ALL + 32 + 33 AS col0, - NULLIF ( - + 11, ( SUM( - 46 ) ) * + ( + 41 ) )
----
65
11

skipif mysql # not compatible
query II rowsort label-70
SELECT ALL + 32 + 33 AS col0, - NULLIF ( - + 11, ( SUM ( - 46 ) ) * + ( + 41 ) )
----
65
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-71
SELECT DISTINCT - 14 * 37 * + CAST( + 16 AS SIGNED ) * - + COUNT( * ) + 79 + + 43
----
8410

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT - 14 * 37 * + CAST ( + 16 AS INTEGER ) * - + COUNT ( * ) + 79 + + 43
----
8410

query I rowsort
SELECT DISTINCT + 87 + 89
----
176

query I rowsort
SELECT ALL - 33 * ( 28 )
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT DISTINCT 72 + - COUNT( * ) * + - 97 col0
----
169

skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT 72 + - COUNT ( * ) * + - 97 col0
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-75
SELECT - COUNT( * ) * 52 AS col2, - 62
----
-52
-62

skipif mysql # not compatible
query II rowsort label-75
SELECT - COUNT ( * ) * 52 AS col2, - 62
----
-52
-62

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

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

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

skipif mysql # not compatible
query I rowsort label-77
SELECT - + COUNT ( * ) * 46 * + - 60 AS col2
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT - 53 - - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-78
SELECT - 53 - - COUNT ( * )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-79
SELECT DISTINCT 92 * + 71 / - - 51 * + CASE - CAST( NULL AS SIGNED ) WHEN - + 14 THEN - ( - 57 ) * CAST( - 22 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT 92 * + 71 / - - 51 * + CASE - CAST ( NULL AS INTEGER ) WHEN - + 14 THEN - ( - 57 ) * CAST ( - 22 AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-80
SELECT - + 33 * 9 * + 11 + 3 + - CAST( - + 92 AS SIGNED ) + - 79
----
-3251

skipif mysql # not compatible
query I rowsort label-80
SELECT - + 33 * 9 * + 11 + 3 + - CAST ( - + 92 AS INTEGER ) + - 79
----
-3251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-81
SELECT ALL CAST( - 26 AS SIGNED ) * - MAX( + + 75 )
----
1950

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL CAST ( - 26 AS INTEGER ) * - MAX ( + + 75 )
----
1950

query II rowsort
SELECT + - 85 - + + 1, 89 * - ( - - 27 ) col0
----
-86
-2403

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT - - 97 * - ( - - 73 ) + - COUNT( * ) * COUNT( * ) + - 65
----
-7147

skipif mysql # not compatible
query I rowsort label-83
SELECT - - 97 * - ( - - 73 ) + - COUNT ( * ) * COUNT ( * ) + - 65
----
-7147

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT + - 41 + - + MAX( + - 69 ) * + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-84
SELECT + - 41 + - + MAX ( + - 69 ) * + COUNT ( * )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-85
SELECT + 39 * + COUNT( * ) * NULLIF ( + CAST( + - 24 AS SIGNED ), + + 30 / - 65 )
----
-936

skipif mysql # not compatible
query I rowsort label-85
SELECT + 39 * + COUNT ( * ) * NULLIF ( + CAST ( + - 24 AS INTEGER ), + + 30 / - 65 )
----
-936

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

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

query I rowsort
SELECT ALL 8 * + 35 * + 80 + + 25 AS col1
----
22425

onlyif mysql # DIV for integer division: 
query II rowsort label-88
SELECT ALL + 85 AS col1, + 29 * - - 1 DIV 59 AS col2
----
85
0

skipif mysql # not compatible
query II rowsort label-88
SELECT ALL + 85 AS col1, + 29 * - - 1 / 59 AS col2
----
85
0

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT + 75 DIV + 20
----
3

skipif mysql # not compatible
query I rowsort label-89
SELECT + 75 / + 20
----
3

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

skipif mysql # not compatible
query I rowsort label-90
SELECT MAX ( ALL - 52 )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-91
SELECT - CAST( NULL AS SIGNED ) + ( + 72 ), + 43 AS col0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-91
SELECT - CAST ( NULL AS INTEGER ) + ( + 72 ), + 43 AS col0
----
NULL
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-92
SELECT - 56 + + SUM( ALL + 57 ) - - - CASE + CAST( NULL AS SIGNED ) WHEN + 76 THEN NULL ELSE 44 END * 53
----
-2331

skipif mysql # not compatible
query I rowsort label-92
SELECT - 56 + + SUM ( ALL + 57 ) - - - CASE + CAST ( NULL AS INTEGER ) WHEN + 76 THEN NULL ELSE 44 END * 53
----
-2331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-93
SELECT DISTINCT 57 * + 39 + NULLIF ( + CAST( NULL AS SIGNED ), ( + 15 ) * 59 * MAX( ALL 68 ) + + 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT 57 * + 39 + NULLIF ( + CAST ( NULL AS INTEGER ), ( + 15 ) * 59 * MAX ( ALL 68 ) + + 55 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-94
SELECT + CAST( - - COALESCE ( - 92, - 73 ) AS SIGNED ) + - + 22 * 38 + - + 21 + 44 * 65
----
1911

skipif mysql # not compatible
query I rowsort label-94
SELECT + CAST ( - - COALESCE ( - 92, - 73 ) AS INTEGER ) + - + 22 * 38 + - + 21 + 44 * 65
----
1911

query I rowsort
SELECT - 20 * - + 72 AS col0
----
1440

onlyif mysql # DIV for integer division: 
query I rowsort label-96
SELECT DISTINCT 84 DIV - 50 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-96
SELECT DISTINCT 84 / - 50 AS col0
----
-1

query I rowsort
SELECT DISTINCT 2 - 88
----
-86

query I rowsort
SELECT + NULLIF ( - 22, - 52 ) - + + 85 + 30 + + - 22
----
-99

query I rowsort
SELECT - 71 + - 52 + + 23
----
-100

query I rowsort
SELECT DISTINCT + - 41 - + + 60
----
-101

query I rowsort
SELECT - 84 + - NULLIF ( - - 61, - 89 / - + 32 + - - 17 ) + + 32 col0
----
-113

query I rowsort
SELECT - ( + 42 ) + + - 64
----
-106

query I rowsort
SELECT DISTINCT + 50 - 21
----
29

query I rowsort
SELECT ALL - ( 21 ) * + 83 + + - 31 * - 96 col2
----
1233

query I rowsort
SELECT ALL - 75 * - + ( + 18 ) AS col0
----
1350

query II rowsort
SELECT ALL 60 AS col2, - 23
----
60
-23

query I rowsort
SELECT DISTINCT - - 36 * + 59
----
2124

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

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

query II rowsort
SELECT 86 AS col0, + 19 AS col0
----
86
19

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT + COUNT( * ) + + 2 * + - 85 AS col1
----
-169

skipif mysql # not compatible
query I rowsort label-110
SELECT + COUNT ( * ) + + 2 * + - 85 AS col1
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT + MAX( DISTINCT + 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-111
SELECT + MAX ( DISTINCT + 83 ) AS col2
----
83

query I rowsort
SELECT - 58 * - - 29 * - - 45
----
-75690

query I rowsort
SELECT 90 * 87 * + + 46 + + + 69 col0
----
360249

onlyif mysql # DIV for integer division: 
query I rowsort label-114
SELECT DISTINCT - 35 DIV 33 DIV 65 * 36 + - 75 + + 49
----
-26

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT - 35 / 33 / 65 * 36 + - 75 + + 49
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-115
SELECT ALL + + 36 col2, 90 - + 42 + COUNT( * ) AS col2
----
36
49

skipif mysql # not compatible
query II rowsort label-115
SELECT ALL + + 36 col2, 90 - + 42 + COUNT ( * ) AS col2
----
36
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-116
SELECT - 80 * 66 / 48 / CAST( NULL AS SIGNED ) * + 6 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-116
SELECT - 80 * 66 / 48 / CAST ( NULL AS INTEGER ) * + 6 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-117
SELECT DISTINCT + 35 DIV + - 15 + - 11
----
-13

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT + 35 / + - 15 + - 11
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-118
SELECT ALL 79 DIV + - NULLIF ( + 55, + + 99 * + - CASE - + 62 WHEN + 35 THEN + + 75 * ( 8 ) - 97 * 89 WHEN - 93 * + 86 + COUNT( * ) DIV - COUNT( * ) THEN NULL ELSE NULL END ) + 53 DIV 87 col0
----
-1

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL 79 / + - NULLIF ( + 55, + + 99 * + - CASE - + 62 WHEN + 35 THEN + + 75 * ( 8 ) - 97 * 89 WHEN - 93 * + 86 + COUNT ( * ) / - COUNT ( * ) THEN NULL ELSE NULL END ) + 53 / 87 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-119
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, + COUNT( * ) + + ( 26 )
----
NULL
27

skipif mysql # not compatible
query II rowsort label-119
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + COUNT ( * ) + + ( 26 )
----
NULL
27

onlyif mysql # aggregate syntax: 
query II rowsort label-120
SELECT DISTINCT - 59 * - COUNT( * ) AS col0, ( 13 )
----
59
13

skipif mysql # not compatible
query II rowsort label-120
SELECT DISTINCT - 59 * - COUNT ( * ) AS col0, ( 13 )
----
59
13

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-122
SELECT - COUNT( * ) - 14 * + CASE 84 WHEN 88 * + SUM( DISTINCT 27 ) * - SUM( DISTINCT 21 ) * 54 + - 11 * CAST( - 74 AS DECIMAL ) + + 64 THEN NULL ELSE 0 + + 13 END + + 67 * 6 AS col1
----
219

skipif mysql # not compatible
query I rowsort label-122
SELECT - COUNT ( * ) - 14 * + CASE 84 WHEN 88 * + SUM ( DISTINCT 27 ) * - SUM ( DISTINCT 21 ) * 54 + - 11 * CAST ( - 74 AS REAL ) + + 64 THEN NULL ELSE 0 + + 13 END + + 67 * 6 AS col1
----
219

onlyif mysql # aggregate syntax: 
query II rowsort label-123
SELECT + ( + 34 ) AS col0, - MIN( ALL 82 )
----
34
-82

skipif mysql # not compatible
query II rowsort label-123
SELECT + ( + 34 ) AS col0, - MIN ( ALL 82 )
----
34
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-124
SELECT + 4 * - COUNT( * ) AS col2, 93 + + 72 AS col2
----
-4
165

skipif mysql # not compatible
query II rowsort label-124
SELECT + 4 * - COUNT ( * ) AS col2, 93 + + 72 AS col2
----
-4
165

query I rowsort
SELECT + CASE - 30 WHEN - ( - 29 ) * 6 + 86 THEN + + 34 / - 90 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-126
SELECT DISTINCT + 87 + + ( - + 93 ) DIV + 95 + - 94 AS col1, + 62 AS col1
----
-7
62

skipif mysql # not compatible
query II rowsort label-126
SELECT DISTINCT + 87 + + ( - + 93 ) / + 95 + - 94 AS col1, + 62 AS col1
----
-7
62

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT ALL 50 - - 23 * - COUNT( * ) + - - ( - - 63 ) * 34
----
2169

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL 50 - - 23 * - COUNT ( * ) + - - ( - - 63 ) * 34
----
2169

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

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

query II rowsort
SELECT 6 * + - 51 + + - 61 * + 27 col2, ( 4 ) + + 60 AS col1
----
-1953
64

query I rowsort
SELECT - 2 * - 51 * - 10 * - - 12 - 58
----
-12298

query I rowsort
SELECT 25 * + 75 AS col2
----
1875

query I rowsort
SELECT 32 - - - 46
----
-14

query I rowsort
SELECT DISTINCT COALESCE ( - 98, + 3, - + 25 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT DISTINCT 87 * - COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT 87 * - COUNT ( * ) AS col0
----
-87

query I rowsort
SELECT ALL + 21 * CASE 73 WHEN - 20 THEN NULL WHEN + 25 THEN + ( - 8 ) * - + 81 END / - + 47 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-137
SELECT 11 + + COUNT( * ) AS col2, + 15 AS col1
----
12
15

skipif mysql # not compatible
query II rowsort label-137
SELECT 11 + + COUNT ( * ) AS col2, + 15 AS col1
----
12
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-138
SELECT ALL + - ( 14 ) * - 82 * CASE COUNT( 49 ) WHEN 79 * ( 3 ) + - 82 + 8 THEN + 42 + + 37 * - CAST( NULL AS SIGNED ) WHEN COUNT( * ) - 27 THEN 18 * - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL + - ( 14 ) * - 82 * CASE COUNT ( 49 ) WHEN 79 * ( 3 ) + - 82 + 8 THEN + 42 + + 37 * - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) - 27 THEN 18 * - 50 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-139
SELECT + CAST( - 6 AS DECIMAL ) / + - 32 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-139
SELECT + CAST ( - 6 AS REAL ) / + - 32 + + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT 21 + + 28 AS col1
----
49

query I rowsort
SELECT 80 + + - 85
----
-5

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

query I rowsort
SELECT ALL - 3 + - + 38 + + - 98 AS col0
----
-139

query I rowsort
SELECT ( + 20 ) * - 34 + 16 * + + 39 + - 88
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-145
SELECT 75 - - ( 10 ) AS col0, COUNT( * ) * - 80 AS col0
----
85
-80

skipif mysql # not compatible
query II rowsort label-145
SELECT 75 - - ( 10 ) AS col0, COUNT ( * ) * - 80 AS col0
----
85
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-146
SELECT ALL + 0 + + COUNT( * ) - - CASE + - 37 WHEN - 50 * + - 84 THEN 54 * 90 ELSE NULL END AS col1, 60 * 74 + ( + CASE - 79 WHEN + 47 THEN NULL WHEN 3 + - ( + 28 + 17 ) THEN 54 ELSE 44 END ) AS col1
----
NULL
4484

skipif mysql # not compatible
query II rowsort label-146
SELECT ALL + 0 + + COUNT ( * ) - - CASE + - 37 WHEN - 50 * + - 84 THEN 54 * 90 ELSE NULL END AS col1, 60 * 74 + ( + CASE - 79 WHEN + 47 THEN NULL WHEN 3 + - ( + 28 + 17 ) THEN 54 ELSE 44 END ) AS col1
----
NULL
4484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-147
SELECT DISTINCT + 91 DIV + - MIN( - - 42 )
----
-2

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT + 91 / + - MIN ( - - 42 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-148
SELECT + 29, NULLIF ( 45, NULLIF ( + - SUM( DISTINCT - - 13 ), + + ( - ( - - 99 ) ) + - 83 ) ) AS col1
----
29
45

skipif mysql # not compatible
query II rowsort label-148
SELECT + 29, NULLIF ( 45, NULLIF ( + - SUM ( DISTINCT - - 13 ), + + ( - ( - - 99 ) ) + - 83 ) ) AS col1
----
29
45

query I rowsort
SELECT ALL + 73 - - - ( 25 ) + - 64 col2
----
-16

query I rowsort
SELECT 75 + + + 95 col0
----
170

query I rowsort
SELECT DISTINCT + 83 * - + 99
----
-8217

query I rowsort
SELECT ALL - 10 * - + 53 AS col2
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT - 35 * - CASE - 73 WHEN - 5 + - - 59 * 35 THEN 31 WHEN CASE - - ( + 17 ) WHEN - 93 - + 70 THEN - 89 ELSE 30 END THEN NULL WHEN + COUNT( * ) + 37 THEN NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-153
SELECT - 35 * - CASE - 73 WHEN - 5 + - - 59 * 35 THEN 31 WHEN CASE - - ( + 17 ) WHEN - 93 - + 70 THEN - 89 ELSE 30 END THEN NULL WHEN + COUNT ( * ) + 37 THEN NULL END + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-154
SELECT COALESCE ( + 20, + + COUNT( 99 ) + + 77, 59 * + 41 * + COUNT( * ) + - 2 - + CAST( NULL AS SIGNED ) ) * - ( - 32 ) AS col2
----
640

skipif mysql # not compatible
query I rowsort label-154
SELECT COALESCE ( + 20, + + COUNT ( 99 ) + + 77, 59 * + 41 * + COUNT ( * ) + - 2 - + CAST ( NULL AS INTEGER ) ) * - ( - 32 ) AS col2
----
640

query I rowsort
SELECT 11 * + 1 * + 89
----
979

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT DISTINCT + 36 * + NULLIF ( - + NULLIF ( + - 54, - 71 + 72 ), + - 72 * + - ( - + 31 ) * + 31 / + 22 ) * - COUNT( * )
----
-1944

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT + 36 * + NULLIF ( - + NULLIF ( + - 54, - 71 + 72 ), + - 72 * + - ( - + 31 ) * + 31 / + 22 ) * - COUNT ( * )
----
-1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-157
SELECT - SUM( ALL - 83 ) + 95 DIV + - 21 - + + 29 + COUNT( * ) * 1 * - 32 + + + COUNT( * ) * 15 * 22 AS col2
----
348

skipif mysql # not compatible
query I rowsort label-157
SELECT - SUM ( ALL - 83 ) + 95 / + - 21 - + + 29 + COUNT ( * ) * 1 * - 32 + + + COUNT ( * ) * 15 * 22 AS col2
----
348

query I rowsort
SELECT 59 - + 33 AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-159
SELECT ALL 30 * 91 * + 69 * - CAST( NULL AS SIGNED ) * + - MAX( ALL - 69 ) col2, - 36 AS col1
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-159
SELECT ALL 30 * 91 * + 69 * - CAST ( NULL AS INTEGER ) * + - MAX ( ALL - 69 ) col2, - 36 AS col1
----
NULL
-36

query I rowsort
SELECT 90 * - + NULLIF ( 55, 66 )
----
-4950

query I rowsort
SELECT + 69 + - 92
----
-23

query I rowsort
SELECT ALL + 17 + + 37 - - - ( + 11 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT CASE + ( + 42 ) WHEN + - 32 + 10 / - MAX( ALL + 39 ) THEN - + COALESCE ( - + 81, + 38 / - 72, 38 * + COUNT( * ) ) * - SUM( DISTINCT 85 + 13 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT CASE + ( + 42 ) WHEN + - 32 + 10 / - MAX ( ALL + 39 ) THEN - + COALESCE ( - + 81, + 38 / - 72, 38 * + COUNT ( * ) ) * - SUM ( DISTINCT 85 + 13 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT + 35 + + COUNT( * ) col0
----
36

skipif mysql # not compatible
query I rowsort label-164
SELECT + 35 + + COUNT ( * ) col0
----
36

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

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL COUNT ( * ) + - + 25 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT ALL + 73 * COUNT( 16 )
----
73

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + 73 * COUNT ( 16 )
----
73

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

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

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

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL - ( + 28 ) / + COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-169
SELECT - 52, 81 DIV - 14 DIV COUNT( * ) AS col1
----
-52
-5

skipif mysql # not compatible
query II rowsort label-169
SELECT - 52, 81 / - 14 / COUNT ( * ) AS col1
----
-52
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT ALL COUNT( * ) + - 78
----
-77

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL COUNT ( * ) + - 78
----
-77

query I rowsort
SELECT DISTINCT + 24 + - + 2
----
22

query I rowsort
SELECT 39 * - 1
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-173
SELECT ALL 47, - 51 * - + COUNT( + 45 ) col2
----
47
51

skipif mysql # not compatible
query II rowsort label-173
SELECT ALL 47, - 51 * - + COUNT ( + 45 ) col2
----
47
51

onlyif mysql # DIV for integer division: 
query I rowsort label-174
SELECT ALL 93 DIV - + 82 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL 93 / - + 82 AS col2
----
-1

query I rowsort
SELECT 85 + + 42 col0
----
127

query I rowsort
SELECT CASE 99 WHEN + + 22 + + 25 THEN NULL WHEN - 65 * + 90 - - + 92 THEN 91 - - 43 + - 62 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT + MIN( DISTINCT + - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-177
SELECT + MIN ( DISTINCT + - 11 )
----
-11

query I rowsort
SELECT - ( - 45 ) + + - 21 AS col0
----
24

query I rowsort
SELECT ALL 77 * + 45 - ( - 37 ) - - - 16 AS col2
----
3486

query I rowsort
SELECT COALESCE ( + 34, - - 81 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-181
SELECT ALL + 39 AS col2, + 42 DIV - 76 - COUNT( * ) + + + 61 col0
----
39
60

skipif mysql # not compatible
query II rowsort label-181
SELECT ALL + 39 AS col2, + 42 / - 76 - COUNT ( * ) + + + 61 col0
----
39
60

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

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

query I rowsort
SELECT ALL 33 * + 78 AS col1
----
2574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-184
SELECT - CAST( - - ( CASE - 18 WHEN + 68 THEN + AVG ( DISTINCT - 49 ) * - 42 ELSE NULL END ) AS SIGNED ) * + + COUNT( * ) AS col2, 48 - 95 AS col1
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-184
SELECT - CAST ( - - ( CASE - 18 WHEN + 68 THEN + AVG ( DISTINCT - 49 ) * - 42 ELSE NULL END ) AS INTEGER ) * + + COUNT ( * ) AS col2, 48 - 95 AS col1
----
NULL
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-185
SELECT DISTINCT 68 * + ( - - NULLIF ( - CAST( - AVG ( ALL + 93 ) AS SIGNED ), - 63 / + + ( 54 ) + + COUNT( * ) * - - 45 * 97 + 35 * - COUNT( * ) ) ) * - ( - 45 + 78 ) col2
----
-208692

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT 68 * + ( - - NULLIF ( - CAST ( - AVG ( ALL + 93 ) AS INTEGER ), - 63 / + + ( 54 ) + + COUNT ( * ) * - - 45 * 97 + 35 * - COUNT ( * ) ) ) * - ( - 45 + 78 ) col2
----
-208692

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT DISTINCT + 88 * - + 85 * + 61 * + 21 * - - ( + - COUNT( * ) ) col2
----
9581880

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT + 88 * - + 85 * + 61 * + 21 * - - ( + - COUNT ( * ) ) col2
----
9581880

query I rowsort
SELECT + ( + CASE ( - 53 ) WHEN 62 * + 87 + COALESCE ( 10, + + 85 ) * 1 THEN - 49 + - 89 ELSE - 10 END ) - - ( 18 ) AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT - 14 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-188
SELECT - 14 / 52
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-190
SELECT - SUM( + CAST( NULL AS SIGNED ) ) + - 82 * - ( - - 43 ) * 27 + - 30 + + 18 - + + 97 + + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) + - 82 * - ( - - 43 ) * 27 + - 30 + + 18 - + + 97 + + 90 AS col2
----
NULL

query II rowsort
SELECT - 94 * + 12 + + 53 + - 90 AS col1, - ( 87 ) * + 94
----
-1165
-8178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-192
SELECT ALL - COALESCE ( - - 51, 37, - ( 70 ) * - 0 - - + COUNT( * ) + 45 DIV - 55 * + 44 ) DIV + - ( 71 ) + 36 * 52
----
1872

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL - COALESCE ( - - 51, 37, - ( 70 ) * - 0 - - + COUNT ( * ) + 45 / - 55 * + 44 ) / + - ( 71 ) + 36 * 52
----
1872

onlyif mysql # DIV for integer division: 
query II rowsort label-193
SELECT - 84 DIV - - 79 AS col1, 83 AS col1
----
-1
83

skipif mysql # not compatible
query II rowsort label-193
SELECT - 84 / - - 79 AS col1, 83 AS col1
----
-1
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-195
SELECT DISTINCT - 52 DIV + + 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT - 52 / + + 67 AS col1
----
0

query I rowsort
SELECT - 8 - - + 21 AS col1
----
13

query I rowsort
SELECT ALL 47 * + + 63
----
2961

query I rowsort
SELECT ALL + - 92 + - 66 AS col0
----
-158

query I rowsort
SELECT + - 69 - 56 + 29 AS col2
----
-96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-201
SELECT ALL - CAST( - CAST( 92 AS SIGNED ) AS SIGNED ) col0
----
92

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL - CAST ( - CAST ( 92 AS INTEGER ) AS INTEGER ) col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT DISTINCT - COUNT( * ) + + - 38
----
-39

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT - COUNT ( * ) + + - 38
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-203
SELECT - - 8 + - - 16 + - - 86 + + - COUNT( ALL + 55 ) DIV - 48
----
110

skipif mysql # not compatible
query I rowsort label-203
SELECT - - 8 + - - 16 + - - 86 + + - COUNT ( ALL + 55 ) / - 48
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT + 33 * + + 9 + - 17 + COUNT( ALL + + 18 ) * - 37 + + - 28 AS col1
----
215

skipif mysql # not compatible
query I rowsort label-204
SELECT + 33 * + + 9 + - 17 + COUNT ( ALL + + 18 ) * - 37 + + - 28 AS col1
----
215

query II rowsort
SELECT - 8 AS col2, 58 AS col1
----
-8
58

query I rowsort
SELECT ALL - 11 + + 72 AS col1
----
61

query I rowsort
SELECT - + 31 + + 4 * - 0
----
-31

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

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

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

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

query I rowsort
SELECT - - 56 + 63
----
119

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

skipif mysql # not compatible
query II rowsort label-211
SELECT - ( - COUNT ( * ) ) AS col1, - 90
----
1
-90

query I rowsort
SELECT ALL 87 * - 48 * - - 26 col0
----
-108576

query I rowsort
SELECT + 92 - - ( 76 ) AS col1
----
168

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

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

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

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

query I rowsort
SELECT DISTINCT 92 * + 58 AS col0
----
5336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-217
SELECT + CAST( NULL AS SIGNED ) + 24 * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-217
SELECT + CAST ( NULL AS INTEGER ) + 24 * 73
----
NULL

query I rowsort
SELECT + 97 * - 59 * 68
----
-389164

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT 10 * - SUM( ALL - 61 ) + + COALESCE ( 37, + + 36 * - COALESCE ( - 70, - COUNT( * ) - + 84 * + COALESCE ( - 19, + ( 59 ), - 82 ), + 6 ) * + ( 86 * 30 ) ) AS col0
----
647

skipif mysql # not compatible
query I rowsort label-219
SELECT 10 * - SUM ( ALL - 61 ) + + COALESCE ( 37, + + 36 * - COALESCE ( - 70, - COUNT ( * ) - + 84 * + COALESCE ( - 19, + ( 59 ), - 82 ), + 6 ) * + ( 86 * 30 ) ) AS col0
----
647

query I rowsort
SELECT - 84 * + 13 + + 10 - + 42
----
-1124

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT ( - SUM( + ( + 26 ) ) ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-222
SELECT ( - SUM ( + ( + 26 ) ) ) col1
----
-26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT + 55 + 63 + - COALESCE ( ( + COUNT( * ) ), - - 9 ) * - SUM( + 74 )
----
192

skipif mysql # not compatible
query I rowsort label-224
SELECT + 55 + 63 + - COALESCE ( ( + COUNT ( * ) ), - - 9 ) * - SUM ( + 74 )
----
192

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-225
SELECT ALL - NULLIF ( - ( - CAST( NULL AS DECIMAL ) ), - 47 / + - CASE 15 WHEN - - 91 THEN + - CAST( - + 64 AS DECIMAL ) END * NULLIF ( + + 14, + + SUM( 9 ) ) + 54 + CASE - ( - 51 ) WHEN + ( + MAX( ALL 59 ) ) - + 82 THEN 23 / 17 WHEN + 44 + + 35 * COUNT( * ) THEN NULL END * + 95 ) * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL - NULLIF ( - ( - CAST ( NULL AS REAL ) ), - 47 / + - CASE 15 WHEN - - 91 THEN + - CAST ( - + 64 AS REAL ) END * NULLIF ( + + 14, + + SUM ( 9 ) ) + 54 + CASE - ( - 51 ) WHEN + ( + MAX ( ALL 59 ) ) - + 82 THEN 23 / 17 WHEN + 44 + + 35 * COUNT ( * ) THEN NULL END * + 95 ) * 94
----
NULL

query I rowsort
SELECT + 72 * - 50
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT - 7 + MAX( - 81 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-227
SELECT - 7 + MAX ( - 81 ) AS col2
----
-88

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-230
SELECT + + NULLIF ( 75, + 64 ) + + + 70 + 55 + - COUNT( * ) DIV - 78 + - 23
----
177

skipif mysql # not compatible
query I rowsort label-230
SELECT + + NULLIF ( 75, + 64 ) + + + 70 + 55 + - COUNT ( * ) / - 78 + - 23
----
177

query I rowsort
SELECT + - ( 22 ) col2
----
-22

query I rowsort
SELECT + 68 + + 78 AS col0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT ALL - 5 * - 74 + - SUM( DISTINCT - 51 ) + - 62 / + - 21 + + + 53 + - 51 + - 53 * - 56 / - + CASE - 32 WHEN - 86 THEN NULL WHEN - 99 + + 20 THEN 12 + 39 END / - ( 49 + - 0 * + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL - 5 * - 74 + - SUM ( DISTINCT - 51 ) + - 62 / + - 21 + + + 53 + - 51 + - 53 * - 56 / - + CASE - 32 WHEN - 86 THEN NULL WHEN - 99 + + 20 THEN 12 + 39 END / - ( 49 + - 0 * + 37 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT ALL + 69 * 78 DIV - - 12 + + 38 * + 54 AS col2
----
2500

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL + 69 * 78 / - - 12 + + 38 * + 54 AS col2
----
2500

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT DISTINCT - - 30 * - + 93 * - 46 + + 22 + - - NULLIF ( + + 71, + COUNT( - 41 ) )
----
128433

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT - - 30 * - + 93 * - 46 + + 22 + - - NULLIF ( + + 71, + COUNT ( - 41 ) )
----
128433

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-236
SELECT ALL - 26 * + - CAST( - 97 AS SIGNED ) + + COALESCE ( 86, - 64 + + 89 + + + 16, - 3 ) col1
----
-2436

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL - 26 * + - CAST ( - 97 AS INTEGER ) + + COALESCE ( 86, - 64 + + 89 + + + 16, - 3 ) col1
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT - - 21 + - - MAX( + 39 )
----
60

skipif mysql # not compatible
query I rowsort label-237
SELECT - - 21 + - - MAX ( + 39 )
----
60

query I rowsort
SELECT ALL + - 65 * - + 21 + - 72 * - + 27 * - 78
----
-150267

onlyif mysql # aggregate syntax: 
query II rowsort label-239
SELECT ALL - + SUM( - 22 ) * - 40 + - + 25 + - 91 AS col0, + 6 * 73 + - + 1 + - - 35 * + - 28 * + COUNT( * ) + - + 65 * + 10
----
-996
-1193

skipif mysql # not compatible
query II rowsort label-239
SELECT ALL - + SUM ( - 22 ) * - 40 + - + 25 + - 91 AS col0, + 6 * 73 + - + 1 + - - 35 * + - 28 * + COUNT ( * ) + - + 65 * + 10
----
-996
-1193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-240
SELECT - + 46 + - + CAST( + 90 AS SIGNED ) + - 85 + - 47 + - + 61 * + - 5 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-240
SELECT - + 46 + - + CAST ( + 90 AS INTEGER ) + - 85 + - 47 + - + 61 * + - 5 AS col1
----
37

query I rowsort
SELECT ALL 39 * + 33 - - 32 AS col1
----
1319

query I rowsort
SELECT ALL - 66 * + - 80 + - 10
----
5270

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-244
SELECT ALL - + 72 * + 67 + + CAST( 36 AS SIGNED ) + - - NULLIF ( + NULLIF ( - 68, 71 ), + CASE + - 48 WHEN - 91 THEN + 29 + + 28 WHEN 89 * 68 THEN NULL WHEN 30 THEN 36 * + COALESCE ( COUNT( * ) / 17, - ( CAST( NULL AS SIGNED ) ) * - 14 ) + NULLIF ( - 67, + 96 / 26 ) * COUNT( * ) END ) + + 25 * + 54 AS col2
----
-3506

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL - + 72 * + 67 + + CAST ( 36 AS INTEGER ) + - - NULLIF ( + NULLIF ( - 68, 71 ), + CASE + - 48 WHEN - 91 THEN + 29 + + 28 WHEN 89 * 68 THEN NULL WHEN 30 THEN 36 * + COALESCE ( COUNT ( * ) / 17, - ( CAST ( NULL AS INTEGER ) ) * - 14 ) + NULLIF ( - 67, + 96 / 26 ) * COUNT ( * ) END ) + + 25 * + 54 AS col2
----
-3506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-245
SELECT ALL - 74 - + + CAST( - COUNT( + 82 ) AS SIGNED ) * - + 80, + ( - + 21 ) AS col2
----
-154
-21

skipif mysql # not compatible
query II rowsort label-245
SELECT ALL - 74 - + + CAST ( - COUNT ( + 82 ) AS INTEGER ) * - + 80, + ( - + 21 ) AS col2
----
-154
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT - 81 + + MIN( DISTINCT ( NULLIF ( - 85, + 61 ) ) ) AS col2
----
-166

skipif mysql # not compatible
query I rowsort label-246
SELECT - 81 + + MIN ( DISTINCT ( NULLIF ( - 85, + 61 ) ) ) AS col2
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT MAX( DISTINCT + 12 ) + - 92 * - + 91
----
8384

skipif mysql # not compatible
query I rowsort label-247
SELECT MAX ( DISTINCT + 12 ) + - 92 * - + 91
----
8384

query I rowsort
SELECT 75 + - 54
----
21

query II rowsort
SELECT DISTINCT 16, - 5 AS col1
----
16
-5

query II rowsort
SELECT DISTINCT 19 col0, 92 AS col1
----
19
92

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

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

query I rowsort
SELECT ALL 33 * + 9 AS col1
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-253
SELECT 26 col2, NULLIF ( CASE 66 WHEN 70 THEN NULL WHEN - - 82 / - 75 * + 16 + + COUNT( * ) + 38 * - 12 + - + AVG ( - 5 ) * COUNT( * ) THEN 44 WHEN 30 THEN - ( SUM( ALL - ( 80 ) ) ) * 60 + CAST( NULL AS SIGNED ) * + COUNT( + 84 + 8 ) ELSE NULL END, - 31 )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-253
SELECT 26 col2, NULLIF ( CASE 66 WHEN 70 THEN NULL WHEN - - 82 / - 75 * + 16 + + COUNT ( * ) + 38 * - 12 + - + AVG ( - 5 ) * COUNT ( * ) THEN 44 WHEN 30 THEN - ( SUM ( ALL - ( 80 ) ) ) * 60 + CAST ( NULL AS INTEGER ) * + COUNT ( + 84 + 8 ) ELSE NULL END, - 31 )
----
26
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-254
SELECT 31 AS col2, - CAST( + 0 AS SIGNED ) - + COUNT( * ) + - 5 AS col2
----
31
-6

skipif mysql # not compatible
query II rowsort label-254
SELECT 31 AS col2, - CAST ( + 0 AS INTEGER ) - + COUNT ( * ) + - 5 AS col2
----
31
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-255
SELECT NULLIF ( + + 7, + 89 DIV + + 2 + + + 56 - - + 88 + - 71 + - + ( + SUM( 18 ) ) DIV - + 14 * - SUM( - - 58 ) * 22 * ( + COUNT( * ) ) ) + 98 DIV - 93
----
6

skipif mysql # not compatible
query I rowsort label-255
SELECT NULLIF ( + + 7, + 89 / + + 2 + + + 56 - - + 88 + - 71 + - + ( + SUM ( 18 ) ) / - + 14 * - SUM ( - - 58 ) * 22 * ( + COUNT ( * ) ) ) + 98 / - 93
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT 13 DIV + 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-256
SELECT 13 / + 31 AS col2
----
0

query I rowsort
SELECT ALL 79 * + 49
----
3871

onlyif mysql # aggregate syntax: 
query II rowsort label-258
SELECT 84 * - ( + 80 ) col2, MAX( 59 ) * + - 15
----
-6720
-885

skipif mysql # not compatible
query II rowsort label-258
SELECT 84 * - ( + 80 ) col2, MAX ( 59 ) * + - 15
----
-6720
-885

onlyif mysql # DIV for integer division: 
query II rowsort label-259
SELECT 19 + + + 82 DIV + 41 AS col1, 0
----
21
0

skipif mysql # not compatible
query II rowsort label-259
SELECT 19 + + + 82 / + 41 AS col1, 0
----
21
0

onlyif mysql # aggregate syntax: 
query II rowsort label-260
SELECT + 88 AS col0, NULLIF ( - - 61, - + COUNT( * ) * 43 + + 14 * - - 63 + - ( + 29 ) - + 42 ) col1
----
88
61

skipif mysql # not compatible
query II rowsort label-260
SELECT + 88 AS col0, NULLIF ( - - 61, - + COUNT ( * ) * 43 + + 14 * - - 63 + - ( + 29 ) - + 42 ) col1
----
88
61

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT - 17 * 70 + 89 + SUM( ALL - 8 ) - 33 col2
----
-1142

skipif mysql # not compatible
query I rowsort label-261
SELECT - 17 * 70 + 89 + SUM ( ALL - 8 ) - 33 col2
----
-1142

query II rowsort
SELECT DISTINCT - 70 AS col1, - ( 30 ) * + + 21 * + 51 + - + 16 AS col0
----
-70
-32146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-263
SELECT ALL CAST( NULL AS SIGNED ) + + MIN( ALL 58 ) AS col1, + 30
----
NULL
30

skipif mysql # not compatible
query II rowsort label-263
SELECT ALL CAST ( NULL AS INTEGER ) + + MIN ( ALL 58 ) AS col1, + 30
----
NULL
30

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-265
SELECT ALL COALESCE ( 78, COUNT( 17 ), - 44 - - COUNT( - 42 ) ) + COUNT( * ) + - - 13 - - COUNT( * ) + - ( - 7 ) + CAST( NULL AS SIGNED ) * - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL COALESCE ( 78, COUNT ( 17 ), - 44 - - COUNT ( - 42 ) ) + COUNT ( * ) + - - 13 - - COUNT ( * ) + - ( - 7 ) + CAST ( NULL AS INTEGER ) * - 86 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-266
SELECT ALL 90 + - 55 * - 12 + + 88 DIV + CAST( + 94 AS SIGNED )
----
750

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL 90 + - 55 * - 12 + + 88 / + CAST ( + 94 AS INTEGER )
----
750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-267
SELECT 9 + + COALESCE ( 15, - 87 * + 84 * 20 - - + 28, - + 2 + - 30 - + ( + CASE 37 WHEN - ( - COUNT( ALL - 23 ) ) THEN NULL WHEN - 6 THEN 22 DIV - 58 ELSE MIN( - ( + 80 ) ) END ) ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-267
SELECT 9 + + COALESCE ( 15, - 87 * + 84 * 20 - - + 28, - + 2 + - 30 - + ( + CASE 37 WHEN - ( - COUNT ( ALL - 23 ) ) THEN NULL WHEN - 6 THEN 22 / - 58 ELSE MIN ( - ( + 80 ) ) END ) ) AS col1
----
24

query II rowsort
SELECT 29 col2, 88
----
29
88

onlyif mysql # aggregate syntax: 
query II rowsort label-269
SELECT + 56 + COUNT( * ) + - 62 AS col2, 97 AS col0
----
-5
97

skipif mysql # not compatible
query II rowsort label-269
SELECT + 56 + COUNT ( * ) + - 62 AS col2, 97 AS col0
----
-5
97

onlyif mysql # DIV for integer division: 
query I rowsort label-270
SELECT 55 DIV 61 * 4
----
0

skipif mysql # not compatible
query I rowsort label-270
SELECT 55 / 61 * 4
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-271
SELECT - 40 * - - CAST( NULL AS SIGNED ) / 51 + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-271
SELECT - 40 * - - CAST ( NULL AS INTEGER ) / 51 + 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT + + SUM( - 31 ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-272
SELECT + + SUM ( - 31 ) col2
----
-31

query I rowsort
SELECT ALL - 30 * - 13
----
390

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-276
SELECT + ( + 86 ) - 58, + CAST( NULL AS DECIMAL ) AS col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-276
SELECT + ( + 86 ) - 58, + CAST ( NULL AS REAL ) AS col2
----
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT DISTINCT - - SUM( DISTINCT 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT - - SUM ( DISTINCT 25 ) AS col0
----
25

query I rowsort
SELECT - 37 * 54 + - + 73
----
-2071

query II rowsort
SELECT ALL 81, - 50 * 39 * 9 + + 39 AS col1
----
81
-17511

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

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

query I rowsort
SELECT 3 * 85 AS col1
----
255

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

skipif mysql # not compatible
query I rowsort label-282
SELECT DISTINCT SUM ( - 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT ALL + 70 - - CASE CASE + 65 WHEN + + 71 * - 8 - - - 65 THEN - COUNT( * ) * - 78 * + + 94 * + 64 + - 69 * - 59 - 50 WHEN - 24 + ( - ( + ( + 50 ) ) + - COUNT( * ) ) THEN - 41 * 63 ELSE 5 * 50 END WHEN - 22 THEN NULL WHEN 76 * 22 THEN + 96 ELSE NULL END * 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL + 70 - - CASE CASE + 65 WHEN + + 71 * - 8 - - - 65 THEN - COUNT ( * ) * - 78 * + + 94 * + 64 + - 69 * - 59 - 50 WHEN - 24 + ( - ( + ( + 50 ) ) + - COUNT ( * ) ) THEN - 41 * 63 ELSE 5 * 50 END WHEN - 22 THEN NULL WHEN 76 * 22 THEN + 96 ELSE NULL END * 94 AS col2
----
NULL

query I rowsort
SELECT 83 * 56 col2
----
4648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-285
SELECT ALL + + 32 DIV COUNT( * ) + 95 * - + 87
----
-8233

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL + + 32 / COUNT ( * ) + 95 * - + 87
----
-8233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-286
SELECT DISTINCT + CAST( AVG ( - + 18 ) AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT + CAST ( AVG ( - + 18 ) AS INTEGER )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-287
SELECT DISTINCT + NULLIF ( + 79, COUNT( * ) ) * 80, - COUNT( + ( - 68 ) ) + 29 AS col2
----
6320
28

skipif mysql # not compatible
query II rowsort label-287
SELECT DISTINCT + NULLIF ( + 79, COUNT ( * ) ) * 80, - COUNT ( + ( - 68 ) ) + 29 AS col2
----
6320
28

onlyif mysql # DIV for integer division: 
query II rowsort label-288
SELECT ALL + 10 * ( - + 16 ) DIV + + 74 AS col2, 64 DIV - 57 AS col0
----
-2
-1

skipif mysql # not compatible
query II rowsort label-288
SELECT ALL + 10 * ( - + 16 ) / + + 74 AS col2, 64 / - 57 AS col0
----
-2
-1

query I rowsort
SELECT DISTINCT + 38 * 22
----
836

query I rowsort
SELECT 74 + 91 col1
----
165

query I rowsort
SELECT 93 * - + 98
----
-9114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-292
SELECT 29 * + 60 DIV + + COUNT( * ) col0
----
1740

skipif mysql # not compatible
query I rowsort label-292
SELECT 29 * + 60 / + + COUNT ( * ) col0
----
1740

query I rowsort
SELECT 0 + + 21 AS col0
----
21

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

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

query I rowsort
SELECT 9 + - 6
----
3

query I rowsort
SELECT 19 + + ( - 98 ) + + 93
----
14

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

skipif mysql # not compatible
query I rowsort label-297
SELECT MIN ( - + 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT ALL + 97 * + + 69 * + ( 1 ) * + 77 * - CASE + 45 WHEN COALESCE ( COUNT( - - 9 ), + NULLIF ( + 89, - 85 ) + + + 87, 95, 12 ) THEN 78 - - 14 WHEN 70 * 66 THEN NULL END + - ( - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL + 97 * + + 69 * + ( 1 ) * + 77 * - CASE + 45 WHEN COALESCE ( COUNT ( - - 9 ), + NULLIF ( + 89, - 85 ) + + + 87, 95, 12 ) THEN 78 - - 14 WHEN 70 * 66 THEN NULL END + - ( - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-299
SELECT - CAST( NULL AS SIGNED ) * - COUNT( ALL + + 90 ) / + 36 * - 39 + 30 + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( ALL + + 90 ) / + 36 * - 39 + 30 + 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT COUNT( * ) - - 52 col0
----
53

skipif mysql # not compatible
query I rowsort label-300
SELECT COUNT ( * ) - - 52 col0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-301
SELECT DISTINCT - 64 * + + COUNT( - 52 ) + - 55 col0, 5 - - 33 + - 53
----
-119
-15

skipif mysql # not compatible
query II rowsort label-301
SELECT DISTINCT - 64 * + + COUNT ( - 52 ) + - 55 col0, 5 - - 33 + - 53
----
-119
-15

query I rowsort
SELECT + - ( + 28 ) col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-303
SELECT + - CAST( NULL AS SIGNED ) / + CASE 67 WHEN - 88 THEN NULL WHEN + 76 * + 76 + + + 71 THEN - 47 WHEN + 95 THEN - 1 * + + CAST( - + 12 AS SIGNED ) ELSE + MIN( ALL + 0 ) END * + CAST( CAST( CAST( 82 AS SIGNED ) AS SIGNED ) AS SIGNED ) + 23 + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-303
SELECT + - CAST ( NULL AS INTEGER ) / + CASE 67 WHEN - 88 THEN NULL WHEN + 76 * + 76 + + + 71 THEN - 47 WHEN + 95 THEN - 1 * + + CAST ( - + 12 AS INTEGER ) ELSE + MIN ( ALL + 0 ) END * + CAST ( CAST ( CAST ( 82 AS INTEGER ) AS INTEGER ) AS INTEGER ) + 23 + 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT SUM( DISTINCT - 47 ) + - - 2 col2
----
-45

skipif mysql # not compatible
query I rowsort label-304
SELECT SUM ( DISTINCT - 47 ) + - - 2 col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-305
SELECT ALL + 59 * + 49 * - + COALESCE ( MIN( ALL + 89 ), - MIN( 38 ) ) * - 92 + - - CASE + 27 WHEN + 27 THEN + 39 END + - 39 DIV + COALESCE ( SUM( ALL 55 ), 31 + - 81, - 69 ) + - 44 DIV + 74 AS col2
----
23671547

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL + 59 * + 49 * - + COALESCE ( MIN ( ALL + 89 ), - MIN ( 38 ) ) * - 92 + - - CASE + 27 WHEN + 27 THEN + 39 END + - 39 / + COALESCE ( SUM ( ALL 55 ), 31 + - 81, - 69 ) + - 44 / + 74 AS col2
----
23671547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-306
SELECT - CAST( 73 AS SIGNED ) * + 94 + 80 + + 42 * + - 4 + - CASE - COUNT( - 53 ) WHEN 82 * + 99 * - - 88 + 61 + - ( MIN( + COALESCE ( - ( + 19 ), - ( 86 ) ) ) ) + - 21 THEN + 85 * + 78 WHEN 59 * + COALESCE ( - 93 / + 98, COUNT( * ) ) THEN - COUNT( ( + 12 ) ) ELSE NULL END + CAST( 60 AS SIGNED ) * 70 * + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-306
SELECT - CAST ( 73 AS INTEGER ) * + 94 + 80 + + 42 * + - 4 + - CASE - COUNT ( - 53 ) WHEN 82 * + 99 * - - 88 + 61 + - ( MIN ( + COALESCE ( - ( + 19 ), - ( 86 ) ) ) ) + - 21 THEN + 85 * + 78 WHEN 59 * + COALESCE ( - 93 / + 98, COUNT ( * ) ) THEN - COUNT ( ( + 12 ) ) ELSE NULL END + CAST ( 60 AS INTEGER ) * 70 * + 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ALL + + 93 - - 42 - NULLIF ( + 10, 39 * + + 6 + + 97 - + - 99 / + + 23 * COUNT( * ) * + 16 * - ( ( - - 69 ) ) ) AS col0
----
125

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL + + 93 - - 42 - NULLIF ( + 10, 39 * + + 6 + + 97 - + - 99 / + + 23 * COUNT ( * ) * + 16 * - ( ( - - 69 ) ) ) AS col0
----
125

query I rowsort
SELECT - 52 + - 86
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT DISTINCT + 7 - + SUM( DISTINCT - 82 ) * - ( + 57 ) * 69
----
-322499

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT + 7 - + SUM ( DISTINCT - 82 ) * - ( + 57 ) * 69
----
-322499

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

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

query I rowsort
SELECT + - 69 * + 94 AS col1
----
-6486

query I rowsort
SELECT DISTINCT 28 * + 77 + - - 92 AS col0
----
2248

query I rowsort
SELECT DISTINCT - 25 * 32 * 91
----
-72800

query I rowsort
SELECT + 15 + + 72
----
87

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

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

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

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

query I rowsort
SELECT ALL 4 * - 2
----
-8

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

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

query I rowsort
SELECT - 16 + - + 54 * + 34
----
-1852

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-320
SELECT - 92 + + - CAST( NULL AS DECIMAL ) + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT - 92 + + - CAST ( NULL AS REAL ) + 99
----
NULL

query I rowsort
SELECT ALL 98 + 44 * 9 * 33 AS col2
----
13166

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT - 68 + + + COUNT( * ) * + ( ( + - 6 ) ) * + 25 AS col0
----
-218

skipif mysql # not compatible
query I rowsort label-323
SELECT - 68 + + + COUNT ( * ) * + ( ( + - 6 ) ) * + 25 AS col0
----
-218

onlyif mysql # DIV for integer division: 
query I rowsort label-324
SELECT - 32 DIV - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-324
SELECT - 32 / - 87 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-325
SELECT ALL COALESCE ( + 62, - NULLIF ( + 38, - COALESCE ( - 15, 92 + 11 + - 40, + ( + - CASE + 4 WHEN + 28 / - - COUNT( * ) * CASE - 94 WHEN - 98 THEN NULL ELSE - 54 END + + 68 * + COUNT( * ) THEN NULL WHEN CASE - 76 WHEN 91 THEN + 72 END THEN ( 17 ) * + 96 WHEN + 57 THEN NULL END ) * 90 ) + 20 * ( + AVG ( DISTINCT - 7 ) * COUNT( * ) + CASE WHEN + 5 IS NOT NULL THEN + 80 * 89 + COALESCE ( 29, 25 ) WHEN NOT NULL NOT BETWEEN ( 70 ) AND + 70 * 9 THEN 85 + CAST( NULL AS SIGNED ) END ) ) )
----
62

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL COALESCE ( + 62, - NULLIF ( + 38, - COALESCE ( - 15, 92 + 11 + - 40, + ( + - CASE + 4 WHEN + 28 / - - COUNT ( * ) * CASE - 94 WHEN - 98 THEN NULL ELSE - 54 END + + 68 * + COUNT ( * ) THEN NULL WHEN CASE - 76 WHEN 91 THEN + 72 END THEN ( 17 ) * + 96 WHEN + 57 THEN NULL END ) * 90 ) + 20 * ( + AVG ( DISTINCT - 7 ) * COUNT ( * ) + CASE WHEN + 5 IS NOT NULL THEN + 80 * 89 + COALESCE ( 29, 25 ) WHEN NOT NULL NOT BETWEEN ( 70 ) AND + 70 * 9 THEN 85 + CAST ( NULL AS INTEGER ) END ) ) )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-326
SELECT ALL - 53 + COALESCE ( - CAST( 40 AS SIGNED ), + CAST( - 36 AS SIGNED ) ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL - 53 + COALESCE ( - CAST ( 40 AS INTEGER ), + CAST ( - 36 AS INTEGER ) ) col0
----
-93

query I rowsort
SELECT - COALESCE ( - 35, - + 82 + - 0 )
----
35

query I rowsort
SELECT ALL + ( - - 60 ) * - COALESCE ( - 10, ( + + ( + 79 ) ), - 38 + - 51 + + ( - 99 ) )
----
600

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT + 96 DIV - 29
----
-3

skipif mysql # not compatible
query I rowsort label-329
SELECT + 96 / - 29
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-330
SELECT - NULLIF ( + 18, + 77 * - ( - - 57 ) * + CAST( NULL AS SIGNED ) * + + 61 ) + + 58 col1, + NULLIF ( - + 96, 30 / + 43 + + 69 ) AS col1
----
40
-96

skipif mysql # not compatible
query II rowsort label-330
SELECT - NULLIF ( + 18, + 77 * - ( - - 57 ) * + CAST ( NULL AS INTEGER ) * + + 61 ) + + 58 col1, + NULLIF ( - + 96, 30 / + 43 + + 69 ) AS col1
----
40
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ALL - 80 * + CASE + + 78 WHEN - COUNT( * ) * - + 5 THEN MAX( - 87 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - 80 * + CASE + + 78 WHEN - COUNT ( * ) * - + 5 THEN MAX ( - 87 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-332
SELECT - 53, MIN( CASE - ( - - 39 ) WHEN + 81 THEN - 37 WHEN + 1 THEN - - 86 + 13 + 52 * - 35 ELSE 69 END ) * + MAX( + + 0 ) + 70 AS col2
----
-53
70

skipif mysql # not compatible
query II rowsort label-332
SELECT - 53, MIN ( CASE - ( - - 39 ) WHEN + 81 THEN - 37 WHEN + 1 THEN - - 86 + 13 + 52 * - 35 ELSE 69 END ) * + MAX ( + + 0 ) + 70 AS col2
----
-53
70

onlyif mysql # DIV for integer division: 
query I rowsort label-333
SELECT ALL + 36 DIV + 96 - 72
----
-72

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL + 36 / + 96 - 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT DISTINCT + CASE ( 34 ) WHEN + 70 THEN + 84 + - 50 - + COUNT( * ) * + + 49 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT + CASE ( 34 ) WHEN + 70 THEN + 84 + - 50 - + COUNT ( * ) * + + 49 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-335
SELECT DISTINCT - 92 * - 1 - - + 36, ( 72 ) DIV 30 + - - 94 * + 90 col0
----
128
8462

skipif mysql # not compatible
query II rowsort label-335
SELECT DISTINCT - 92 * - 1 - - + 36, ( 72 ) / 30 + - - 94 * + 90 col0
----
128
8462

onlyif mysql # DIV for integer division: 
query I rowsort label-336
SELECT ALL - 85 * - 53 + + + 38 DIV 17 - 25 AS col2
----
4482

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL - 85 * - 53 + + + 38 / 17 - 25 AS col2
----
4482

query II rowsort
SELECT DISTINCT + - 19 col2, 59 AS col1
----
-19
59

query I rowsort
SELECT - 41 + + 29 * 43
----
1206

query II rowsort
SELECT + + 41, 34 AS col1
----
41
34

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

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

query I rowsort
SELECT + 36 * - 3 * - 93 * + + 56 * - 60 + - - 54 - + 19 + + - 67 + 48 - + 99 + 39 AS col1
----
-33747884

query I rowsort
SELECT ALL + - 65 * - - 29
----
-1885

query II rowsort
SELECT + 33 * - 72 * - 60 AS col2, - 51 + + 35
----
142560
-16

query I rowsort
SELECT ALL 3 * - - COALESCE ( - 32, - 36 * - 9 - 4 ) AS col2
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-345
SELECT DISTINCT + - COUNT( * ) DIV + 74 + - 40 * + 10 AS col1
----
-400

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT + - COUNT ( * ) / + 74 + - 40 * + 10 AS col1
----
-400

query II rowsort
SELECT DISTINCT + 94 AS col2, 7 AS col1
----
94
7

query I rowsort
SELECT ALL + 43 * + 75
----
3225

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-349
SELECT + 4 + - 2 DIV - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-349
SELECT + 4 + - 2 / - COUNT ( * ) AS col1
----
6

query I rowsort
SELECT DISTINCT - + 23 * 97 + + 48 - + - 16 * + 80 * + 82
----
102777

onlyif mysql # aggregate syntax: 
query II rowsort label-351
SELECT + 16 * + COUNT( * ) col2, 11 AS col1
----
16
11

skipif mysql # not compatible
query II rowsort label-351
SELECT + 16 * + COUNT ( * ) col2, 11 AS col1
----
16
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-352
SELECT DISTINCT 0 * + 20 * + 68 + CAST( - - 89 AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT 0 * + 20 * + 68 + CAST ( - - 89 AS INTEGER ) AS col2
----
89

query I rowsort
SELECT + 92 * + - 47 * + 31 AS col2
----
-134044

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT + 51 - COUNT( * ) + + 9 * - + 5 - - 20 + + COALESCE ( + ( + 16 ), - + 4 * - + 78 * - 59 ) + + 12 + + + 28 col1
----
81

skipif mysql # not compatible
query I rowsort label-354
SELECT + 51 - COUNT ( * ) + + 9 * - + 5 - - 20 + + COALESCE ( + ( + 16 ), - + 4 * - + 78 * - 59 ) + + 12 + + + 28 col1
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-355
SELECT ALL 57 DIV + + CAST( 21 AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL 57 / + + CAST ( 21 AS INTEGER ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-356
SELECT + 68 DIV MAX( + - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-356
SELECT + 68 / MAX ( + - 66 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-357
SELECT + 80 * 46 AS col1, 4 DIV - + 21
----
3680
0

skipif mysql # not compatible
query II rowsort label-357
SELECT + 80 * 46 AS col1, 4 / - + 21
----
3680
0

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT + 56 * - - MAX( + 14 )
----
784

skipif mysql # not compatible
query I rowsort label-358
SELECT + 56 * - - MAX ( + 14 )
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT ALL MIN( - 30 ) + - 50 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL MIN ( - 30 ) + - 50 AS col1
----
-80

query I rowsort
SELECT DISTINCT ( - 73 ) * 94 AS col0
----
-6862

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT ALL COUNT( * ) + 15 + 25
----
41

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL COUNT ( * ) + 15 + 25
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT + COUNT( * ) - + 17 * - - 16 + + SUM( DISTINCT 15 ) AS col0
----
-256

skipif mysql # not compatible
query I rowsort label-362
SELECT + COUNT ( * ) - + 17 * - - 16 + + SUM ( DISTINCT 15 ) AS col0
----
-256

query I rowsort
SELECT + 96 + 63 - + 99
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT ALL COUNT( * ) + + 39 - 20 * + 28 * + 31
----
-17320

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL COUNT ( * ) + + 39 - 20 * + 28 * + 31
----
-17320

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL COUNT( DISTINCT ( + 20 ) )
----
1

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL COUNT ( DISTINCT ( + 20 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT + 73 + COUNT( * ) * + 97 col2
----
170

skipif mysql # not compatible
query I rowsort label-366
SELECT + 73 + COUNT ( * ) * + 97 col2
----
170

onlyif mysql # aggregate syntax: 
query III rowsort label-367
SELECT - 97 AS col2, COUNT( * ) AS col2, - - 36 * ( + 64 ) - + - MAX( DISTINCT + - 54 ) col2
----
-97
1
2250

skipif mysql # not compatible
query III rowsort label-367
SELECT - 97 AS col2, COUNT ( * ) AS col2, - - 36 * ( + 64 ) - + - MAX ( DISTINCT + - 54 ) col2
----
-97
1
2250

query I rowsort
SELECT + 90 * 97
----
8730

query I rowsort
SELECT DISTINCT COALESCE ( + 35, - 11 )
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-370
SELECT ALL - 58 DIV 48 * 5 * - 31 AS col1, 41 * - - 81 * - 82 AS col0
----
155
-272322

skipif mysql # not compatible
query II rowsort label-370
SELECT ALL - 58 / 48 * 5 * - 31 AS col1, 41 * - - 81 * - 82 AS col0
----
155
-272322

query I rowsort
SELECT + 42 + + 48 AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-372
SELECT - CASE COUNT( * ) WHEN - 44 - + - 77 THEN NULL ELSE NULLIF ( COALESCE ( - 6, + 58 * + + 15 ), CAST( NULL AS SIGNED ) ) DIV - MIN( DISTINCT + - 97 ) END + - 89 + - SUM( DISTINCT + 48 ) AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-372
SELECT - CASE COUNT ( * ) WHEN - 44 - + - 77 THEN NULL ELSE NULLIF ( COALESCE ( - 6, + 58 * + + 15 ), CAST ( NULL AS INTEGER ) ) / - MIN ( DISTINCT + - 97 ) END + - 89 + - SUM ( DISTINCT + 48 ) AS col1
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-373
SELECT ALL + 66 DIV + - 82 - 17 col2
----
-17

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL + 66 / + - 82 - 17 col2
----
-17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-375
SELECT DISTINCT + CAST( + MAX( ALL + + 9 ) AS SIGNED ) col0
----
9

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT + CAST ( + MAX ( ALL + + 9 ) AS INTEGER ) col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-376
SELECT ALL - MAX( - 12 ) DIV + - COUNT( * ) + + 84
----
72

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL - MAX ( - 12 ) / + - COUNT ( * ) + + 84
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT 93 * + 36 + - ( + COUNT( * ) ) + + 19
----
3366

skipif mysql # not compatible
query I rowsort label-377
SELECT 93 * + 36 + - ( + COUNT ( * ) ) + + 19
----
3366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-378
SELECT + 22 * + COUNT( ALL - 5 ) * 13 + 42 + + CAST( - 6 AS SIGNED ) * 23 * + 54 + 49 + + - 83, 42 AS col1
----
-7158
42

skipif mysql # not compatible
query II rowsort label-378
SELECT + 22 * + COUNT ( ALL - 5 ) * 13 + 42 + + CAST ( - 6 AS INTEGER ) * 23 * + 54 + 49 + + - 83, 42 AS col1
----
-7158
42

query II rowsort
SELECT + 11 AS col0, - 48 AS col1
----
11
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-380
SELECT + 39 * + 67 * ( - 77 ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-380
SELECT + 39 * + 67 * ( - 77 ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-381
SELECT 38 * 52 + CAST( NULL AS SIGNED ) + + 98 + 53 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-381
SELECT 38 * 52 + CAST ( NULL AS INTEGER ) + + 98 + 53 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT DISTINCT - 5 * - + COUNT( * ) * + 21
----
105

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT - 5 * - + COUNT ( * ) * + 21
----
105

query I rowsort
SELECT ALL 31 * - 77 col1
----
-2387

query I rowsort
SELECT DISTINCT + + 71 * + + 25
----
1775

query I rowsort
SELECT DISTINCT - 55 + - 61 AS col0
----
-116

onlyif mysql # aggregate syntax: 
query II rowsort label-386
SELECT ALL - 68, + MIN( ALL 74 ) AS col0
----
-68
74

skipif mysql # not compatible
query II rowsort label-386
SELECT ALL - 68, + MIN ( ALL 74 ) AS col0
----
-68
74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-388
SELECT - 50 + + CASE + - 95 WHEN 38 * + - 34 THEN 49 * ( - COUNT( * ) ) - + + 19 WHEN + 83 * 72 + + COUNT( 13 ) * + - 48 * + COALESCE ( + CAST( NULL AS SIGNED ), 55 ) * + COUNT( * ) THEN + 41 WHEN CASE 27 WHEN - 64 + + 40 THEN NULL ELSE AVG ( ALL 61 ) END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-388
SELECT - 50 + + CASE + - 95 WHEN 38 * + - 34 THEN 49 * ( - COUNT ( * ) ) - + + 19 WHEN + 83 * 72 + + COUNT ( 13 ) * + - 48 * + COALESCE ( + CAST ( NULL AS INTEGER ), 55 ) * + COUNT ( * ) THEN + 41 WHEN CASE 27 WHEN - 64 + + 40 THEN NULL ELSE AVG ( ALL 61 ) END THEN NULL END
----
NULL

query I rowsort
SELECT + 55 * 16
----
880

query I rowsort
SELECT + 25 + - + 5 + - - 77 col2
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT + SUM( ALL 71 ) + - 79 + + 77 - 96 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT + SUM ( ALL 71 ) + - 79 + + 77 - 96 AS col0
----
-27

query I rowsort
SELECT ALL - 25 * - 60 * 57
----
85500

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT 9 + - + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-394
SELECT 9 + - + COUNT ( * ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-395
SELECT ALL + 52 + - - MAX( + 1 ) + MIN( 34 ) * + 9 + - + 70 * - 91 DIV - - COUNT( * ) + + 23 + + + 64 * - 21, - 55 col0
----
5408
-55

skipif mysql # not compatible
query II rowsort label-395
SELECT ALL + 52 + - - MAX ( + 1 ) + MIN ( 34 ) * + 9 + - + 70 * - 91 / - - COUNT ( * ) + + 23 + + + 64 * - 21, - 55 col0
----
5408
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-396
SELECT 99 DIV + 50 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-396
SELECT 99 / + 50 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT 35 + MAX( 19 )
----
54

skipif mysql # not compatible
query I rowsort label-397
SELECT 35 + MAX ( 19 )
----
54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-399
SELECT ALL ( COALESCE ( - - 75, - 98 ) ) - - 68 + - - 95 * + + CAST( + NULLIF ( + 70, - 54 ) AS SIGNED ) * - COUNT( * ) / - 65 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL ( COALESCE ( - - 75, - 98 ) ) - - 68 + - - 95 * + + CAST ( + NULLIF ( + 70, - 54 ) AS INTEGER ) * - COUNT ( * ) / - 65 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-400
SELECT ALL SUM( ALL - 3 ) DIV - 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL SUM ( ALL - 3 ) / - 37 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-401
SELECT 25 DIV - 20 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-401
SELECT 25 / - 20 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT DISTINCT NULLIF ( 58, + - 98 * 95 * - - 71 ) DIV - - 5 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT NULLIF ( 58, + - 98 * 95 * - - 71 ) / - - 5 AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-403
SELECT COALESCE ( + + 20, + - 85 * + 69 + + 34 + 78, 38 + - 82 ) * 41 + - CAST( COUNT( * ) AS SIGNED ) + + ( - + 26 ) * - COUNT( DISTINCT - 17 ) - + COALESCE ( + - 72, ( 85 ) + + 46 ) * + 33
----
3221

skipif mysql # not compatible
query I rowsort label-403
SELECT COALESCE ( + + 20, + - 85 * + 69 + + 34 + 78, 38 + - 82 ) * 41 + - CAST ( COUNT ( * ) AS INTEGER ) + + ( - + 26 ) * - COUNT ( DISTINCT - 17 ) - + COALESCE ( + - 72, ( 85 ) + + 46 ) * + 33
----
3221

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-405
SELECT ALL 13 * + + 94, 90 * - + 41 - + + COUNT( * ) AS col1
----
1222
-3691

skipif mysql # not compatible
query II rowsort label-405
SELECT ALL 13 * + + 94, 90 * - + 41 - + + COUNT ( * ) AS col1
----
1222
-3691

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-406
SELECT ALL 49 * 58 + + 9 + 16 / CAST( NULL AS SIGNED ) AS col0, + 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-406
SELECT ALL 49 * 58 + + 9 + 16 / CAST ( NULL AS INTEGER ) AS col0, + 22
----
NULL
22

query I rowsort
SELECT 65 * 62 AS col2
----
4030

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT DISTINCT MIN( ALL 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT MIN ( ALL 68 ) AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-409
SELECT ALL 76 + + 73 DIV 37
----
77

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL 76 + + 73 / 37
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-410
SELECT ALL - + COUNT( DISTINCT - + 10 ) AS col0, 77 - - 20 + - 34 * + 38 AS col1
----
-1
-1195

skipif mysql # not compatible
query II rowsort label-410
SELECT ALL - + COUNT ( DISTINCT - + 10 ) AS col0, 77 - - 20 + - 34 * + 38 AS col1
----
-1
-1195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-411
SELECT - COALESCE ( + + COUNT( * ), + 29, + ( - COUNT( * ) ), + CAST( - 41 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-411
SELECT - COALESCE ( + + COUNT ( * ), + 29, + ( - COUNT ( * ) ), + CAST ( - 41 AS INTEGER ) )
----
-1

query I rowsort
SELECT ALL - 51 + - - 50 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT ALL - - CASE + + NULLIF ( - 39, + 26 + - 96 ) WHEN COUNT( * ) / - + 46 - + + 26 THEN NULL ELSE - 22 END
----
-22

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL - - CASE + + NULLIF ( - 39, + 26 + - 96 ) WHEN COUNT ( * ) / - + 46 - + + 26 THEN NULL ELSE - 22 END
----
-22

query II rowsort
SELECT 13 * 39 AS col0, 75 AS col2
----
507
75

query I rowsort
SELECT + 39 + + + 0
----
39

query I rowsort
SELECT 72 * - 98 AS col1
----
-7056

query I rowsort
SELECT ALL + 60 * 93 AS col1
----
5580

query I rowsort
SELECT DISTINCT - 2 * - 80
----
160

query II rowsort
SELECT ALL - ( - 92 ) AS col1, + 7 + 22 AS col1
----
92
29

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

query I rowsort
SELECT 3 * - 25
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT DISTINCT 4 * COALESCE ( + - 94, + - 9, + ( - - 41 ), + + 9 * - COUNT( DISTINCT 5 ) + + 76 ) AS col0
----
-376

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT 4 * COALESCE ( + - 94, + - 9, + ( - - 41 ), + + 9 * - COUNT ( DISTINCT 5 ) + + 76 ) AS col0
----
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT 12 + + NULLIF ( 86, - ( + 80 ) + - COUNT( * ) * - 76 + - 59 * + 79 ) - 12 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-423
SELECT 12 + + NULLIF ( 86, - ( + 80 ) + - COUNT ( * ) * - 76 + - 59 * + 79 ) - 12 AS col0
----
86

query II rowsort
SELECT ALL - 83, 88 col0
----
-83
88

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT + COUNT( - 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-425
SELECT + COUNT ( - 33 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-426
SELECT 38 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT 38 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT - COUNT( * ) * + 79 * + 72 - 3
----
-5691

skipif mysql # not compatible
query I rowsort label-428
SELECT - COUNT ( * ) * + 79 * + 72 - 3
----
-5691

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT ALL COUNT( ALL 79 )
----
1

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL COUNT ( ALL 79 )
----
1

query I rowsort
SELECT DISTINCT - 76 * + - 98 AS col0
----
7448

query I rowsort
SELECT 28 * - 76 AS col1
----
-2128

query I rowsort
SELECT ALL - ( - 16 ) * + 87 col0
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT 34 - + - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-433
SELECT 34 - + - COUNT ( * )
----
35

query I rowsort
SELECT DISTINCT - 49 * 10
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT DISTINCT - ( + COUNT( * ) ) * 1 * + CASE - COUNT( * ) WHEN + - 36 + - + 42 THEN COUNT( + 65 ) ELSE 8 END AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT - ( + COUNT ( * ) ) * 1 * + CASE - COUNT ( * ) WHEN + - 36 + - + 42 THEN COUNT ( + 65 ) ELSE 8 END AS col2
----
-8

query I rowsort
SELECT 53 * 72
----
3816

query I rowsort
SELECT ALL + 58 * 50
----
2900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT - 7 + COUNT( - - 13 ) + - + 23 * + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-439
SELECT - 7 + COUNT ( - - 13 ) + - + 23 * + COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT DISTINCT MIN( - 64 ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT MIN ( - 64 ) col1
----
-64

query II rowsort
SELECT ALL - 59, CASE + - 20 WHEN 76 * 38 * - 19 THEN - 76 ELSE NULL END col1
----
-59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT - 94 + NULLIF ( + + COUNT( * ), + + 54 ) * COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-442
SELECT - 94 + NULLIF ( + + COUNT ( * ), + + 54 ) * COUNT ( * )
----
-93

query I rowsort
SELECT - 7 + 72
----
65

query II rowsort
SELECT + 73 AS col1, + 84
----
73
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-445
SELECT DISTINCT 69 * - + NULLIF ( COALESCE ( ( 56 ), 17 + - 97 - MIN( CAST( - 66 AS SIGNED ) ) ), + + 91 - - ( - + 20 ) + - 83 ) * + 89 AS col1
----
-343896

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT 69 * - + NULLIF ( COALESCE ( ( 56 ), 17 + - 97 - MIN ( CAST ( - 66 AS INTEGER ) ) ), + + 91 - - ( - + 20 ) + - 83 ) * + 89 AS col1
----
-343896

query I rowsort
SELECT DISTINCT + - 17 + + 40
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT ALL ( + - 95 ) * - CASE - MIN( DISTINCT + 48 ) WHEN + 47 THEN + + 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL ( + - 95 ) * - CASE - MIN ( DISTINCT + 48 ) WHEN + 47 THEN + + 81 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-448
SELECT ALL - ( + SUM( ALL 88 ) ) + - + CAST( NULL AS SIGNED ) / + ( 68 ) * - - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL - ( + SUM ( ALL 88 ) ) + - + CAST ( NULL AS INTEGER ) / + ( 68 ) * - - 51 AS col1
----
NULL

query I rowsort
SELECT + - 61 + - - 81 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL + 55 + 89 * + MAX( DISTINCT 28 ) AS col1
----
2547

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL + 55 + 89 * + MAX ( DISTINCT 28 ) AS col1
----
2547

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT - COALESCE ( - 55, + ( + MIN( + + 26 ) ) + - 97 ) * 81 AS col0
----
4455

skipif mysql # not compatible
query I rowsort label-452
SELECT - COALESCE ( - 55, + ( + MIN ( + + 26 ) ) + - 97 ) * 81 AS col0
----
4455

query I rowsort
SELECT ALL 49 * + - 97 AS col0
----
-4753

query I rowsort
SELECT + - NULLIF ( - 61, - ( + 10 ) ) col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT CAST( - 15 AS SIGNED ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-455
SELECT CAST ( - 15 AS INTEGER ) col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT ALL + 3 * + COUNT( * ) col0
----
3

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL + 3 * + COUNT ( * ) col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT COUNT( + + 89 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-457
SELECT COUNT ( + + 89 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT DISTINCT COUNT( * ) * - ( + 15 ) - - + ( + + ( COUNT( * ) ) )
----
-14

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT COUNT ( * ) * - ( + 15 ) - - + ( + + ( COUNT ( * ) ) )
----
-14

query I rowsort
SELECT DISTINCT - 87 * - 6 - - 10 AS col2
----
532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-460
SELECT + 21 + CASE WHEN COUNT( DISTINCT - 63 ) IS NOT NULL THEN + CAST( NULL AS SIGNED ) END + + 61 - + + COUNT( * ) * + AVG ( - 25 ) * + - MIN( + + 48 ) + - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-460
SELECT + 21 + CASE WHEN COUNT ( DISTINCT - 63 ) IS NOT NULL THEN + CAST ( NULL AS INTEGER ) END + + 61 - + + COUNT ( * ) * + AVG ( - 25 ) * + - MIN ( + + 48 ) + - 11 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-461
SELECT + 80 DIV - 41 col1, ( - 61 )
----
-1
-61

skipif mysql # not compatible
query II rowsort label-461
SELECT + 80 / - 41 col1, ( - 61 )
----
-1
-61

query I rowsort
SELECT + 97 + + + 46 + - 25 * + CASE ( - 68 ) WHEN - 53 - + 99 + 5 THEN - + 89 ELSE NULL END * 62
----
NULL

query I rowsort
SELECT - 62 + 99
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT + NULLIF ( - + 28, + COUNT( 79 ) ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-464
SELECT + NULLIF ( - + 28, + COUNT ( 79 ) ) AS col0
----
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-465
SELECT ALL 85 * + + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL 85 * + + ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-466
SELECT + 50 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-466
SELECT + 50 / + 51
----
0

query I rowsort
SELECT - ( - - 89 ) * 54 + 69 AS col0
----
-4737

query II rowsort
SELECT + 26 * - 55, 72 AS col0
----
-1430
72

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT - 43 + - MIN( DISTINCT + 15 ) + + 80
----
22

skipif mysql # not compatible
query I rowsort label-469
SELECT - 43 + - MIN ( DISTINCT + 15 ) + + 80
----
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT ALL CASE - 12 WHEN - COUNT( * ) THEN - 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL CASE - 12 WHEN - COUNT ( * ) THEN - 34 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-473
SELECT - COUNT( * ) + + COALESCE ( - 2, + + 90 ) - - 20 * - SUM( + 39 ), COUNT( * ) col0
----
-783
1

skipif mysql # not compatible
query II rowsort label-473
SELECT - COUNT ( * ) + + COALESCE ( - 2, + + 90 ) - - 20 * - SUM ( + 39 ), COUNT ( * ) col0
----
-783
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-474
SELECT DISTINCT CASE + + CAST( - - 59 AS SIGNED ) WHEN - 33 + - ( NULLIF ( + ( - 5 ), + 92 + 84 ) ) + - 63 / - 17 * - + COUNT( * ) * 21 * - COUNT( * ) * - ( 36 ) THEN + 30 * - 37 * COUNT( * ) WHEN + COALESCE ( - 92, - 30 * AVG ( ALL 78 ) ) * 0 - - COUNT( * ) THEN NULL WHEN 39 THEN 2 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT CASE + + CAST ( - - 59 AS INTEGER ) WHEN - 33 + - ( NULLIF ( + ( - 5 ), + 92 + 84 ) ) + - 63 / - 17 * - + COUNT ( * ) * 21 * - COUNT ( * ) * - ( 36 ) THEN + 30 * - 37 * COUNT ( * ) WHEN + COALESCE ( - 92, - 30 * AVG ( ALL 78 ) ) * 0 - - COUNT ( * ) THEN NULL WHEN 39 THEN 2 ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( 46, 32 ) col1
----
46

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-477
SELECT ALL + 20 + 38 + + CAST( NULL AS DECIMAL ) + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL + 20 + 38 + + CAST ( NULL AS REAL ) + + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT DISTINCT + + CASE + - COUNT( * ) WHEN 98 + - + 45 THEN - + COUNT( * ) ELSE NULL END + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT + + CASE + - COUNT ( * ) WHEN 98 + - + 45 THEN - + COUNT ( * ) ELSE NULL END + 61 AS col1
----
NULL

query I rowsort
SELECT - 28 * - - 11 AS col1
----
-308

query I rowsort
SELECT DISTINCT + COALESCE ( 66, - 78 + - 48 ) + - - 93 AS col2
----
159

query II rowsort
SELECT ALL 81 + + + 56, + 51 + + ( - + 9 ) * - + 72 col0
----
137
699

onlyif mysql # aggregate syntax: 
query II rowsort label-482
SELECT - 94 * ( MIN( ALL + 73 ) ) AS col1, - COUNT( * ) AS col0
----
-6862
-1

skipif mysql # not compatible
query II rowsort label-482
SELECT - 94 * ( MIN ( ALL + 73 ) ) AS col1, - COUNT ( * ) AS col0
----
-6862
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-483
SELECT - - 29 * - 69 * - + CAST( 4 AS SIGNED ) * 92 - + 49 - - 62 * - 8 * - 56 + + 5 AS col0
----
764100

skipif mysql # not compatible
query I rowsort label-483
SELECT - - 29 * - 69 * - + CAST ( 4 AS INTEGER ) * 92 - + 49 - - 62 * - 8 * - 56 + + 5 AS col0
----
764100

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT ALL + + 39 - + 79 + ( COUNT( * ) ) - + - 62 * - + COUNT( 23 ) AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL + + 39 - + 79 + ( COUNT ( * ) ) - + - 62 * - + COUNT ( 23 ) AS col1
----
-101

query I rowsort
SELECT - + 38 * NULLIF ( - + COALESCE ( 1, - 84 + 42 ), NULLIF ( - 94, - 41 ) ) + + 21
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-486
SELECT ALL + CAST( - CAST( + - CASE + - 73 WHEN 17 THEN - + 47 END AS SIGNED ) AS SIGNED ) * - 47 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL + CAST ( - CAST ( + - CASE + - 73 WHEN 17 THEN - + 47 END AS INTEGER ) AS INTEGER ) * - 47 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-487
SELECT ALL - COUNT( * ) / - - CAST( NULL AS SIGNED ) - - 77 - + - 10 - + 12 AS col2, + 57 + + COALESCE ( + 19, 2 * - 94 * + ( - 68 ), - NULLIF ( 38, 12 * - - 14 + + ( - 39 ) ) ) + + + 69 + 15 * CAST( NULL AS DECIMAL ) * + 95
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-487
SELECT ALL - COUNT ( * ) / - - CAST ( NULL AS INTEGER ) - - 77 - + - 10 - + 12 AS col2, + 57 + + COALESCE ( + 19, 2 * - 94 * + ( - 68 ), - NULLIF ( 38, 12 * - - 14 + + ( - 39 ) ) ) + + + 69 + 15 * CAST ( NULL AS REAL ) * + 95
----
NULL
NULL

query I rowsort
SELECT DISTINCT 1 * - ( - - 42 )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-489
SELECT ALL - 59 DIV - MIN( + - 66 ) - + 35
----
-35

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL - 59 / - MIN ( + - 66 ) - + 35
----
-35

query I rowsort
SELECT ALL + 93 * + 49
----
4557

query I rowsort
SELECT - 80 + 74 AS col0
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT - 74 * - 53 * - SUM( - 3 ) * + - 96
----
-1129536

skipif mysql # not compatible
query I rowsort label-493
SELECT - 74 * - 53 * - SUM ( - 3 ) * + - 96
----
-1129536

query I rowsort
SELECT + NULLIF ( + 4, 47 * + - 4 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT + COUNT( * ) * - - 25 * - ( + - NULLIF ( + - 40, - + 52 / COUNT( * ) + + + 0 * 38 ) ) AS col0
----
-1000

skipif mysql # not compatible
query I rowsort label-495
SELECT + COUNT ( * ) * - - 25 * - ( + - NULLIF ( + - 40, - + 52 / COUNT ( * ) + + + 0 * 38 ) ) AS col0
----
-1000

query I rowsort
SELECT + 2 + 5
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-497
SELECT NULLIF ( ( + 97 ), + 35 + - 69 ) + 66 + + CAST( + - 35 AS SIGNED ) * + + 44
----
-1377

skipif mysql # not compatible
query I rowsort label-497
SELECT NULLIF ( ( + 97 ), + 35 + - 69 ) + 66 + + CAST ( + - 35 AS INTEGER ) * + + 44
----
-1377

query I rowsort
SELECT DISTINCT 37 + - 69
----
-32

query I rowsort
SELECT ALL 96 + 86
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-500
SELECT 88 / - + CASE - COALESCE ( - + 47, - COUNT( * ) / - + CAST( + + 0 AS SIGNED ) * - + 61 * + 30 ) WHEN - 64 THEN NULL WHEN + 74 THEN - 53 + + + 21 * - 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-500
SELECT 88 / - + CASE - COALESCE ( - + 47, - COUNT ( * ) / - + CAST ( + + 0 AS INTEGER ) * - + 61 * + 30 ) WHEN - 64 THEN NULL WHEN + 74 THEN - 53 + + + 21 * - 70 END
----
NULL

query I rowsort
SELECT 59 - 98 + + + 37 + 73 * 52 AS col1
----
3794

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT DISTINCT - ( - 24 ) + - + CASE + COUNT( - - 52 ) WHEN COUNT( * ) * + - 29 + - + 89 + - - 39 THEN + 7 WHEN + ( COUNT( * ) ) THEN - + 95 END + + - 22 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT - ( - 24 ) + - + CASE + COUNT ( - - 52 ) WHEN COUNT ( * ) * + - 29 + - + 89 + - - 39 THEN + 7 WHEN + ( COUNT ( * ) ) THEN - + 95 END + + - 22 AS col0
----
97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-504
SELECT COUNT( * ) DIV 28 DIV - + ( COUNT( * ) ) * COUNT( * ) * 93 DIV + 82 - + + 22 + + 1 - ( - CAST( + + 38 AS SIGNED ) ) + 64 DIV 49 * + 95 AS col0
----
112

skipif mysql # not compatible
query I rowsort label-504
SELECT COUNT ( * ) / 28 / - + ( COUNT ( * ) ) * COUNT ( * ) * 93 / + 82 - + + 22 + + 1 - ( - CAST ( + + 38 AS INTEGER ) ) + 64 / 49 * + 95 AS col0
----
112

query I rowsort
SELECT ALL 86 * 25 * + 51 AS col1
----
109650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-506
SELECT - CASE + 22 WHEN - 56 * + - 50 THEN + + COUNT( * ) * + 82 / + AVG ( + - CAST( 64 AS SIGNED ) ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-506
SELECT - CASE + 22 WHEN - 56 * + - 50 THEN + + COUNT ( * ) * + 82 / + AVG ( + - CAST ( 64 AS INTEGER ) ) ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT + 48 - - COALESCE ( + COUNT( * ), + 11 * ( - COUNT( * ) ) + - 77 )
----
49

skipif mysql # not compatible
query I rowsort label-507
SELECT + 48 - - COALESCE ( + COUNT ( * ), + 11 * ( - COUNT ( * ) ) + - 77 )
----
49

query I rowsort
SELECT + 92 + 2
----
94

query I rowsort
SELECT ( + 60 ) - - - 63 AS col0
----
-3

query I rowsort
SELECT ALL + - 87 - - - 42
----
-129

query I rowsort
SELECT 81 + + 83
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT ALL - COUNT( ALL - + 29 ) - + - COALESCE ( - COUNT( * ), - 47, - 65 * COUNT( * ) + + 42 + + 98 ) * COUNT( DISTINCT 55 ) + + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL - COUNT ( ALL - + 29 ) - + - COALESCE ( - COUNT ( * ), - 47, - 65 * COUNT ( * ) + + 42 + + 98 ) * COUNT ( DISTINCT 55 ) + + COUNT ( * ) col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT - MAX( - 85 ) col2
----
85

skipif mysql # not compatible
query I rowsort label-514
SELECT - MAX ( - 85 ) col2
----
85

query I rowsort
SELECT 58 + 69 col0
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-516
SELECT ALL + COUNT( - 16 ) * - 30 + + 14 + + + CAST( NULL AS SIGNED ) * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL + COUNT ( - 16 ) * - 30 + + 14 + + + CAST ( NULL AS INTEGER ) * 11
----
NULL

query I rowsort
SELECT ALL - - 7 - + - 97 * 58
----
5633

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT MIN( 88 ) + + COUNT( * ) * - COUNT( ( + 9 ) ) col1
----
87

skipif mysql # not compatible
query I rowsort label-518
SELECT MIN ( 88 ) + + COUNT ( * ) * - COUNT ( ( + 9 ) ) col1
----
87

query I rowsort
SELECT ALL - 21 * + 28 AS col1
----
-588

query II rowsort
SELECT + 57, + ( - + 65 ) AS col1
----
57
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-521
SELECT DISTINCT - CASE + AVG ( + 51 ) WHEN 87 DIV - - 2 THEN + 76 DIV - 37 ELSE + COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT - CASE + AVG ( + 51 ) WHEN 87 / - - 2 THEN + 76 / - 37 ELSE + COUNT ( * ) END AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-522
SELECT 18 DIV + - 4
----
-4

skipif mysql # not compatible
query I rowsort label-522
SELECT 18 / + - 4
----
-4

query I rowsort
SELECT 54 * + - 72 AS col0
----
-3888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-524
SELECT + 97 DIV - + 9 + + SUM( ALL - 98 )
----
-108

skipif mysql # not compatible
query I rowsort label-524
SELECT + 97 / - + 9 + + SUM ( ALL - 98 )
----
-108

query I rowsort
SELECT 28 * - - NULLIF ( 62, 6 * ( - 43 ) + + - 74 + - + 82 )
----
1736

query I rowsort
SELECT ALL 38 * + 47 AS col2
----
1786

onlyif mysql # DIV for integer division: 
query I rowsort label-527
SELECT 44 * 14 DIV - 78 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-527
SELECT 44 * 14 / - 78 AS col1
----
-7

query I rowsort
SELECT DISTINCT 32 + - + 85
----
-53

query II rowsort
SELECT + 35 AS col2, + 75
----
35
75

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT ALL - 99 + ( + + 11 ) DIV + 39 + - 54 + + 21 col0
----
-132

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL - 99 + ( + + 11 ) / + 39 + - 54 + + 21 col0
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-531
SELECT 34 + CAST( + - CASE - - 13 WHEN 12 THEN - MIN( ALL + - 74 ) * - 44 + + 97 ELSE 95 END AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-531
SELECT 34 + CAST ( + - CASE - - 13 WHEN 12 THEN - MIN ( ALL + - 74 ) * - 44 + + 97 ELSE 95 END AS INTEGER )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-532
SELECT 63 col2, 57 + - ( 75 ) + COUNT( * ) AS col0
----
63
-17

skipif mysql # not compatible
query II rowsort label-532
SELECT 63 col2, 57 + - ( 75 ) + COUNT ( * ) AS col0
----
63
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT DISTINCT 96 + + - COUNT( * ) + 61 col1
----
156

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT 96 + + - COUNT ( * ) + 61 col1
----
156

query I rowsort
SELECT ALL 31 + 57
----
88

query I rowsort
SELECT ALL 48 + + - 5 col2
----
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT 78 + + ( - 52 ) + MIN( 21 )
----
47

skipif mysql # not compatible
query I rowsort label-538
SELECT 78 + + ( - 52 ) + MIN ( 21 )
----
47

query I rowsort
SELECT DISTINCT + 12 + 33
----
45

query I rowsort
SELECT + 49 * 85
----
4165

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT ALL - COALESCE ( + COUNT( * ), + 67, - 12 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL - COALESCE ( + COUNT ( * ), + 67, - 12 ) AS col0
----
-1

query II rowsort
SELECT + 64 AS col1, 12 * - + 7 * 69 * 99
----
64
-573804

query I rowsort
SELECT - 32 + + 83 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-544
SELECT CAST( NULL AS SIGNED ) * + 10 * + 24 * + 76 + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-544
SELECT CAST ( NULL AS INTEGER ) * + 10 * + 24 * + 76 + + 67
----
NULL

query I rowsort
SELECT 47 + 66 * + + 23 - + 82 * - 28 col0
----
3861

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT ALL COUNT( * ) - - + COUNT( ALL - - 81 ) * + + 87 * + 36 * 39 AS col1
----
122149

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL COUNT ( * ) - - + COUNT ( ALL - - 81 ) * + + 87 * + 36 * 39 AS col1
----
122149

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT 93 + + - 46 + - - MAX( ALL 84 ) + + - 27
----
104

skipif mysql # not compatible
query I rowsort label-547
SELECT 93 + + - 46 + - - MAX ( ALL 84 ) + + - 27
----
104

query I rowsort
SELECT 96 * 45 + - - 33 AS col1
----
4353

onlyif mysql # DIV for integer division: 
query II rowsort label-549
SELECT DISTINCT - 54 AS col1, - 87 DIV 95
----
-54
0

skipif mysql # not compatible
query II rowsort label-549
SELECT DISTINCT - 54 AS col1, - 87 / 95
----
-54
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-550
SELECT ALL + ( - + NULLIF ( 85, COUNT( * ) + 41 * - 43 + - 77 ) ) - + - CAST( - 55 AS SIGNED )
----
-140

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL + ( - + NULLIF ( 85, COUNT ( * ) + 41 * - 43 + - 77 ) ) - + - CAST ( - 55 AS INTEGER )
----
-140

query II rowsort
SELECT 63 AS col1, - 76 * 17
----
63
-1292

query I rowsort
SELECT DISTINCT 5 * 55 AS col1
----
275

query I rowsort
SELECT ( + 48 ) - - + ( - - 83 )
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-554
SELECT - - CAST( COUNT( * ) AS SIGNED ) AS col2, 7 DIV - - 9
----
1
0

skipif mysql # not compatible
query II rowsort label-554
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) AS col2, 7 / - - 9
----
1
0

query II rowsort
SELECT ALL + 8, 34 AS col0
----
8
34

query II rowsort
SELECT - - 95 col2, 64
----
95
64

query I rowsort
SELECT COALESCE ( + - 14, - 81 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-558
SELECT 19 AS col0, 82 * + 25 + COUNT( * ) + 57 AS col1
----
19
2108

skipif mysql # not compatible
query II rowsort label-558
SELECT 19 AS col0, 82 * + 25 + COUNT ( * ) + 57 AS col1
----
19
2108

query I rowsort
SELECT 22 * 14
----
308

query I rowsort
SELECT + NULLIF ( - 19, + - ( - 65 ) * + 82 + - + ( 15 ) ) AS col2
----
-19

query II rowsort
SELECT ALL - ( - 40 ) * + 73 AS col2, - 57
----
2920
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT ALL 43 * + - COALESCE ( - 70, + 27 ) + + - COUNT( * ) + - + 47
----
2962

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL 43 * + - COALESCE ( - 70, + 27 ) + + - COUNT ( * ) + - + 47
----
2962

query I rowsort
SELECT 47 * 94 * - - ( - 85 ) * 55 AS col1
----
-20654150

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL - 3 * + 66 * - - MAX( DISTINCT 3 ) AS col2
----
-594

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL - 3 * + 66 * - - MAX ( DISTINCT 3 ) AS col2
----
-594

onlyif mysql # DIV for integer division: 
query II rowsort label-565
SELECT ALL - 1 * 36 DIV - 73 + ( + 89 ) col1, + 13 * + + 41 AS col2
----
89
533

skipif mysql # not compatible
query II rowsort label-565
SELECT ALL - 1 * 36 / - 73 + ( + 89 ) col1, + 13 * + + 41 AS col2
----
89
533

query I rowsort
SELECT + CASE + - 76 WHEN - + 2 * - - 83 * + 55 - + + 58 + - - 23 THEN + 25 END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-567
SELECT CAST( NULL AS SIGNED ) * 5 * + 79 + + ( 54 ), SUM( - 68 ) col2
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-567
SELECT CAST ( NULL AS INTEGER ) * 5 * + 79 + + ( 54 ), SUM ( - 68 ) col2
----
NULL
-68

query II rowsort
SELECT ALL + ( + + 16 ) AS col2, 12 * + 41
----
16
492

query I rowsort
SELECT ALL - 91 * - 25 + + 48 + + + ( 73 )
----
2396

query I rowsort
SELECT - 37 * 77 * + 66 AS col0
----
-188034

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-572
SELECT - MAX( ALL - 32 ) DIV - 9 col2, + 44 AS col0
----
-3
44

skipif mysql # not compatible
query II rowsort label-572
SELECT - MAX ( ALL - 32 ) / - 9 col2, + 44 AS col0
----
-3
44

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT DISTINCT ( + + 0 ) * - 61 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT ( + + 0 ) * - 61 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT DISTINCT COUNT( * ) * - 96 * + ( + MAX( + 87 ) ) + + 7 * ( - SUM( - 15 ) ) + 12
----
-8235

skipif mysql # not compatible
query I rowsort label-574
SELECT DISTINCT COUNT ( * ) * - 96 * + ( + MAX ( + 87 ) ) + + 7 * ( - SUM ( - 15 ) ) + 12
----
-8235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-575
SELECT ALL + - COALESCE ( - 27, 90, CAST( NULL AS SIGNED ) + + 31 + - COUNT( * ) - 43 + - - 91 ) DIV - + 26
----
-1

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL + - COALESCE ( - 27, 90, CAST ( NULL AS INTEGER ) + + 31 + - COUNT ( * ) - 43 + - - 91 ) / - + 26
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT - COALESCE ( + 42, - + NULLIF ( + COUNT( 98 ), - 16 * + + 19 ) + - 17 ) - - 30 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-576
SELECT - COALESCE ( + 42, - + NULLIF ( + COUNT ( 98 ), - 16 * + + 19 ) + - 17 ) - - 30 AS col0
----
-12

query I rowsort
SELECT + 17 * - - 33
----
561

query I rowsort
SELECT DISTINCT - 80 * + + 6 * - + 81 col0
----
38880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-579
SELECT ALL 4 * ( - + CAST( + - 39 AS SIGNED ) )
----
156

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL 4 * ( - + CAST ( + - 39 AS INTEGER ) )
----
156

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL + 45 - - 25 + - + NULLIF ( + COALESCE ( + + 20, - 31 * ( + COUNT( * ) ) + - 67 ), + 91 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL + 45 - - 25 + - + NULLIF ( + COALESCE ( + + 20, - 31 * ( + COUNT ( * ) ) + - 67 ), + 91 ) AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-582
SELECT ALL - MIN( + 12 ) * - ( CAST( + COUNT( ( 50 ) ) AS SIGNED ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL - MIN ( + 12 ) * - ( CAST ( + COUNT ( ( 50 ) ) AS INTEGER ) ) AS col0
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-583
SELECT + + 76 + 19 col1, + 33 DIV + COALESCE ( NULLIF ( + 91, 54 ), + 90 ) AS col1
----
95
0

skipif mysql # not compatible
query II rowsort label-583
SELECT + + 76 + 19 col1, + 33 / + COALESCE ( NULLIF ( + 91, 54 ), + 90 ) AS col1
----
95
0

query I rowsort
SELECT ALL 49 - - + ( COALESCE ( - - 94, 38 ) ) + + - ( + + 27 ) AS col2
----
116

query I rowsort
SELECT - 63 + - 72 AS col1
----
-135

query I rowsort
SELECT + 37 * 75 + - 60 * + - 73 AS col0
----
7155

query I rowsort
SELECT - 77 + - - 89 AS col0
----
12

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-589
SELECT ALL - 4 DIV NULLIF ( + 21, - - COUNT( * ) - - COUNT( * ) ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL - 4 / NULLIF ( + 21, - - COUNT ( * ) - - COUNT ( * ) ) + - COUNT ( * )
----
-1

query I rowsort
SELECT + 90 + - 37 AS col1
----
53

query I rowsort
SELECT + 60 - + 22 AS col2
----
38

query I rowsort
SELECT + 4 * + 79 AS col0
----
316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-593
SELECT + 51 + - 77 * 5 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-593
SELECT + 51 + - 77 * 5 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 21 + - + 98 + CASE + + 80 WHEN 83 THEN NULL ELSE 33 END
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT + COUNT( * ) + 99 - - + 13 * - + 37
----
-381

skipif mysql # not compatible
query I rowsort label-595
SELECT + COUNT ( * ) + 99 - - + 13 * - + 37
----
-381

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT - ( CASE - NULLIF ( 19, - 32 * - 14 + + 27 ) WHEN + 87 THEN + COUNT( ALL + + 3 ) - 89 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-596
SELECT - ( CASE - NULLIF ( 19, - 32 * - 14 + + 27 ) WHEN + 87 THEN + COUNT ( ALL + + 3 ) - 89 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT DISTINCT ( 52 ) + + 14 DIV 46
----
52

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT ( 52 ) + + 14 / 46
----
52

query I rowsort
SELECT ALL 85 + - - ( 8 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-599
SELECT + CASE 65 WHEN + 88 THEN NULL ELSE NULLIF ( - - 56, + + 5 ) END, - COUNT( * ) * - ( 49 ) AS col2
----
56
49

skipif mysql # not compatible
query II rowsort label-599
SELECT + CASE 65 WHEN + 88 THEN NULL ELSE NULLIF ( - - 56, + + 5 ) END, - COUNT ( * ) * - ( 49 ) AS col2
----
56
49

query I rowsort
SELECT + CASE - 56 WHEN - + 85 THEN - + 94 * - 82 END AS col1
----
NULL

query I rowsort
SELECT + 44 * - - 92 AS col2
----
4048

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-602
SELECT COUNT( * ) * + 14 * 45 + - CAST( NULL AS DECIMAL ) + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT COUNT ( * ) * + 14 * 45 + - CAST ( NULL AS REAL ) + 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-603
SELECT ALL + NULLIF ( + 57, + 96 ), 52 * - CASE 25 WHEN - 61 + - + ( 0 ) * CASE 73 WHEN 1 THEN 3 ELSE + COUNT( * ) + - NULLIF ( + 12, ( - 58 ) ) + - 94 + + CASE 95 WHEN NULLIF ( - 33, 66 / - 16 + - ( + 9 ) ) + + COUNT( * ) THEN NULL ELSE 91 + 3 END * 26 * - 15 END + CASE - 99 WHEN + COALESCE ( COUNT( * ), 71 + 57 / + 42 ) THEN 28 - 52 END THEN NULL WHEN - 66 + NULLIF ( 47, COUNT( - CASE ( + 15 ) WHEN ( + 67 ) THEN - 53 * 35 END ) - 69 ) THEN 40 * + 72 END AS col1
----
57
NULL

skipif mysql # not compatible
query II rowsort label-603
SELECT ALL + NULLIF ( + 57, + 96 ), 52 * - CASE 25 WHEN - 61 + - + ( 0 ) * CASE 73 WHEN 1 THEN 3 ELSE + COUNT ( * ) + - NULLIF ( + 12, ( - 58 ) ) + - 94 + + CASE 95 WHEN NULLIF ( - 33, 66 / - 16 + - ( + 9 ) ) + + COUNT ( * ) THEN NULL ELSE 91 + 3 END * 26 * - 15 END + CASE - 99 WHEN + COALESCE ( COUNT ( * ), 71 + 57 / + 42 ) THEN 28 - 52 END THEN NULL WHEN - 66 + NULLIF ( 47, COUNT ( - CASE ( + 15 ) WHEN ( + 67 ) THEN - 53 * 35 END ) - 69 ) THEN 40 * + 72 END AS col1
----
57
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-604
SELECT ALL 69 DIV COUNT( * ) + + - 79 + 33 + - + 43 + + COUNT( * ), - 60 * + 63 AS col2
----
-19
-3780

skipif mysql # not compatible
query II rowsort label-604
SELECT ALL 69 / COUNT ( * ) + + - 79 + 33 + - + 43 + + COUNT ( * ), - 60 * + 63 AS col2
----
-19
-3780

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT + COUNT( * ) * - 85 * - 64
----
5440

skipif mysql # not compatible
query I rowsort label-605
SELECT + COUNT ( * ) * - 85 * - 64
----
5440

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT - COUNT( * ) + - ( 15 ) + - - COUNT( * ) + - COUNT( * ) + 30 + + + 50 + - - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-606
SELECT - COUNT ( * ) + - ( 15 ) + - - COUNT ( * ) + - COUNT ( * ) + 30 + + + 50 + - - COUNT ( * ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT DISTINCT + SUM( DISTINCT + 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT + SUM ( DISTINCT + 58 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT + MIN( + 13 ) * - 0 * + - 92
----
0

skipif mysql # not compatible
query I rowsort label-608
SELECT + MIN ( + 13 ) * - 0 * + - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT + + COUNT( * ) + + - 84 * MAX( DISTINCT + 19 ) AS col0
----
-1595

skipif mysql # not compatible
query I rowsort label-609
SELECT + + COUNT ( * ) + + - 84 * MAX ( DISTINCT + 19 ) AS col0
----
-1595

query I rowsort
SELECT - + 65 * + 70 + - 21
----
-4571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-611
SELECT - COUNT( DISTINCT ( 16 ) ) + + 32 + + COALESCE ( 12, + COUNT( * ) DIV - 92 + + 47, + CAST( - + 88 AS SIGNED ) * 59 ) * + - ( - - COUNT( * ) )
----
19

skipif mysql # not compatible
query I rowsort label-611
SELECT - COUNT ( DISTINCT ( 16 ) ) + + 32 + + COALESCE ( 12, + COUNT ( * ) / - 92 + + 47, + CAST ( - + 88 AS INTEGER ) * 59 ) * + - ( - - COUNT ( * ) )
----
19

query I rowsort
SELECT - + ( 64 ) - - 55
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-613
SELECT ALL + COUNT( 54 ) * - + 58, + CAST( + 31 AS SIGNED ) AS col1
----
-58
31

skipif mysql # not compatible
query II rowsort label-613
SELECT ALL + COUNT ( 54 ) * - + 58, + CAST ( + 31 AS INTEGER ) AS col1
----
-58
31

query I rowsort
SELECT - + 69 * + 4 AS col0
----
-276

query I rowsort
SELECT ALL + + 13 + + 70 AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-616
SELECT DISTINCT + COUNT( * ) + + - 41 - - + ( 56 ) + + COUNT( * ) DIV 7 * - - 7 + + SUM( ALL + - 10 ) * ( - 61 ) + + MIN( DISTINCT + - 65 ) - - 63 AS col2, + 49 * 15 * - - CAST( 77 AS SIGNED ) + + + 48
----
624
56643

skipif mysql # not compatible
query II rowsort label-616
SELECT DISTINCT + COUNT ( * ) + + - 41 - - + ( 56 ) + + COUNT ( * ) / 7 * - - 7 + + SUM ( ALL + - 10 ) * ( - 61 ) + + MIN ( DISTINCT + - 65 ) - - 63 AS col2, + 49 * 15 * - - CAST ( 77 AS INTEGER ) + + + 48
----
624
56643

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT COUNT( - 14 ) * - 72
----
-72

skipif mysql # not compatible
query I rowsort label-617
SELECT COUNT ( - 14 ) * - 72
----
-72

query I rowsort
SELECT 37 - + + 23 - - 43
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-619
SELECT ALL 38 DIV - 80 * + 70
----
0

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL 38 / - 80 * + 70
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-620
SELECT ( + - ( + 46 ) ) * 52 AS col0, + ( CAST( NULL AS SIGNED ) ) AS col0
----
-2392
NULL

skipif mysql # not compatible
query II rowsort label-620
SELECT ( + - ( + 46 ) ) * 52 AS col0, + ( CAST ( NULL AS INTEGER ) ) AS col0
----
-2392
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-621
SELECT ( + 61 ) + + 95 DIV + 25
----
64

skipif mysql # not compatible
query I rowsort label-621
SELECT ( + 61 ) + + 95 / + 25
----
64

query I rowsort
SELECT DISTINCT 73 * - 84 * 6 col2
----
-36792

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT ALL - MIN( 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL - MIN ( 70 )
----
-70

query I rowsort
SELECT DISTINCT 37 * + 77 col2
----
2849

onlyif mysql # DIV for integer division: 
query I rowsort label-625
SELECT COALESCE ( + 36, 68, - 14 * 78 * 83 DIV + ( 59 ) ) * 14 * - - NULLIF ( + 77, + 17 ) AS col1
----
38808

skipif mysql # not compatible
query I rowsort label-625
SELECT COALESCE ( + 36, 68, - 14 * 78 * 83 / + ( 59 ) ) * 14 * - - NULLIF ( + 77, + 17 ) AS col1
----
38808

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT 1 * - COUNT( * ) + - ( - - ( - 37 ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-628
SELECT 1 * - COUNT ( * ) + - ( - - ( - 37 ) ) AS col0
----
36

query II rowsort
SELECT ALL - - NULLIF ( + 51, - + 55 * - 96 + 86 ) AS col2, + 32 * + + 56 * + 0 * - + 52 col1
----
51
0

query I rowsort
SELECT DISTINCT - + 44 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT ALL - NULLIF ( ( + - 91 ), + ( - - 28 ) / COUNT( * ) - - MAX( + 82 ) + - + 56 - + 62 )
----
91

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL - NULLIF ( ( + - 91 ), + ( - - 28 ) / COUNT ( * ) - - MAX ( + 82 ) + - + 56 - + 62 )
----
91

query I rowsort
SELECT + 92 * + + 32 * + + 79 - - 68 + + 99 + 57 * + + 84 + - 91 col2
----
237440

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT DISTINCT - - COUNT( DISTINCT - 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT - - COUNT ( DISTINCT - 46 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-634
SELECT + 59 * + + 64 + + + CAST( NULL AS SIGNED ) + - MIN( 78 ) - 19 * 80 + + 81 + + - 83 * 42 * + 69 * 38 / + - CASE CAST( + + AVG ( ALL + 20 ) AS SIGNED ) WHEN - - 94 * 14 THEN NULL WHEN - 96 THEN COUNT( * ) END * + - MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT + 59 * + + 64 + + + CAST ( NULL AS INTEGER ) + - MIN ( 78 ) - 19 * 80 + + 81 + + - 83 * 42 * + 69 * 38 / + - CASE CAST ( + + AVG ( ALL + 20 ) AS INTEGER ) WHEN - - 94 * 14 THEN NULL WHEN - 96 THEN COUNT ( * ) END * + - MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT 47 * + 21 * ( 89 ) + - ( - 92 ) + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-635
SELECT 47 * + 21 * ( 89 ) + - ( - 92 ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 13 + + 84 AS col0
----
71

query I rowsort
SELECT 81 - + + ( + + 6 )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-638
SELECT 27 + + + COUNT( * ), 98 AS col1
----
28
98

skipif mysql # not compatible
query II rowsort label-638
SELECT 27 + + + COUNT ( * ), 98 AS col1
----
28
98

query I rowsort
SELECT DISTINCT - 10 + + + 28 - - ( - + ( 20 ) ) AS col2
----
-2

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

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL + 52 + + 2 - - + 52 - + COUNT ( * ) * 14
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT ALL - 53 * 77 * CASE 91 WHEN + CASE MAX( ALL 42 ) WHEN + 70 THEN - 31 ELSE NULL END THEN - - 10 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL - 53 * 77 * CASE 91 WHEN + CASE MAX ( ALL 42 ) WHEN + 70 THEN - 31 ELSE NULL END THEN - - 10 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-642
SELECT 28 + 21 + + - 57 * COUNT( * ) * ( 46 ) - - 69 * + 67 DIV - COUNT( * )
----
-7196

skipif mysql # not compatible
query I rowsort label-642
SELECT 28 + 21 + + - 57 * COUNT ( * ) * ( 46 ) - - 69 * + 67 / - COUNT ( * )
----
-7196

query I rowsort
SELECT 63 * - + 36
----
-2268

query I rowsort
SELECT DISTINCT - 72 * - 63 AS col0
----
4536

onlyif mysql # aggregate syntax: 
query II rowsort label-645
SELECT 47 + + + ( + 49 ) - COUNT( * ) + - 22 * + 76 AS col2, - 46
----
-1577
-46

skipif mysql # not compatible
query II rowsort label-645
SELECT 47 + + + ( + 49 ) - COUNT ( * ) + - 22 * + 76 AS col2, - 46
----
-1577
-46

query I rowsort
SELECT 82 - 84 * - 81 + + 81
----
6967

query I rowsort
SELECT ALL + 82 - - 77
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-648
SELECT 63 + + 38 + + NULLIF ( 66, - 12 ) * - 43 - + 12 + 68 + 14 DIV + - ( - 7 ) + + - COUNT( * ) AS col1
----
-2680

skipif mysql # not compatible
query I rowsort label-648
SELECT 63 + + 38 + + NULLIF ( 66, - 12 ) * - 43 - + 12 + 68 + 14 / + - ( - 7 ) + + - COUNT ( * ) AS col1
----
-2680

onlyif mysql # aggregate syntax: 
query II rowsort label-649
SELECT ALL + NULLIF ( + - 21, + 96 ) * + - 20 * + - 81, - COUNT( * ) AS col1
----
-34020
-1

skipif mysql # not compatible
query II rowsort label-649
SELECT ALL + NULLIF ( + - 21, + 96 ) * + - 20 * + - 81, - COUNT ( * ) AS col1
----
-34020
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT 72 + MAX( ALL + - 73 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-650
SELECT 72 + MAX ( ALL + - 73 ) col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT ALL + 82 - - NULLIF ( - + 8, 74 * ( + 6 ) ) + - 44 * + - 26 * + 23 + + ( + 40 ) + + 86 * - ( - 82 ) + + CASE + + 98 WHEN - 75 * - 28 THEN NULL WHEN - COALESCE ( ( CASE - 58 WHEN - CASE + - 17 WHEN + 81 THEN + 86 ELSE + 15 END + - 24 THEN - 56 + COUNT( * ) WHEN + ( ( 80 ) ) THEN NULL END ), ( 88 ) ) THEN + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL + 82 - - NULLIF ( - + 8, 74 * ( + 6 ) ) + - 44 * + - 26 * + 23 + + ( + 40 ) + + 86 * - ( - 82 ) + + CASE + + 98 WHEN - 75 * - 28 THEN NULL WHEN - COALESCE ( ( CASE - 58 WHEN - CASE + - 17 WHEN + 81 THEN + 86 ELSE + 15 END + - 24 THEN - 56 + COUNT ( * ) WHEN + ( ( 80 ) ) THEN NULL END ), ( 88 ) ) THEN + 92 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT DISTINCT MAX( 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT MAX ( 64 ) AS col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-654
SELECT 68 + 98 DIV + + 4 col2
----
92

skipif mysql # not compatible
query I rowsort label-654
SELECT 68 + 98 / + + 4 col2
----
92

query I rowsort
SELECT + 17 * 40 + - 30
----
650

query I rowsort
SELECT ( 51 ) * 24 AS col1
----
1224

query I rowsort
SELECT DISTINCT 83 * 0 * + + 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT ALL 71 * - NULLIF ( 8, 29 * - COUNT( ALL ( - 98 ) ) + + 61 * - + COUNT( * ) ) + - COUNT( * ) + + 83 * - 88
----
-7873

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL 71 * - NULLIF ( 8, 29 * - COUNT ( ALL ( - 98 ) ) + + 61 * - + COUNT ( * ) ) + - COUNT ( * ) + + 83 * - 88
----
-7873

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

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

query I rowsort
SELECT + 49 + - 42 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-661
SELECT ALL + 99 * - NULLIF ( + - 70, + - CAST( + 84 AS SIGNED ) ), 20 * + CAST( NULL AS SIGNED ) * ( 15 ) AS col2
----
6930
NULL

skipif mysql # not compatible
query II rowsort label-661
SELECT ALL + 99 * - NULLIF ( + - 70, + - CAST ( + 84 AS INTEGER ) ), 20 * + CAST ( NULL AS INTEGER ) * ( 15 ) AS col2
----
6930
NULL

query I rowsort
SELECT 26 * - 57
----
-1482

query I rowsort
SELECT - + 55 * + 8 * + 21 + - + 88 + + 35
----
-9293

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT DISTINCT - COUNT( + - 97 ) + - + 22
----
-23

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT - COUNT ( + - 97 ) + - + 22
----
-23

query I rowsort
SELECT ALL 82 + + - 12
----
70

query II rowsort
SELECT - 25 * + 80 + - 44 AS col1, ( 70 ) AS col0
----
-2044
70

query I rowsort
SELECT - 83 - + - 17 col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL + + 58 * + ( + + SUM( + 51 ) ) col2
----
2958

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL + + 58 * + ( + + SUM ( + 51 ) ) col2
----
2958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-669
SELECT + + MIN( + 86 ) + - CAST( 21 AS SIGNED ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-669
SELECT + + MIN ( + 86 ) + - CAST ( 21 AS INTEGER ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT ALL + CASE - 14 WHEN 7 / 53 THEN 36 * + - 13 + - COUNT( * ) + + 69 + 95 WHEN - AVG ( ALL + 65 ) / 73 THEN + 7 END + + + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL + CASE - 14 WHEN 7 / 53 THEN 36 * + - 13 + - COUNT ( * ) + + 69 + 95 WHEN - AVG ( ALL + 65 ) / 73 THEN + 7 END + + + 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT - 15 + ( + CASE + 43 WHEN COUNT( * ) * + 58 THEN - 95 WHEN + 25 THEN + 47 + 0 ELSE NULL END ) * - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-671
SELECT - 15 + ( + CASE + 43 WHEN COUNT ( * ) * + 58 THEN - 95 WHEN + 25 THEN + 47 + 0 ELSE NULL END ) * - 68 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 54 AS col0, + 47
----
54
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-673
SELECT ALL 62 * + - NULLIF ( + CASE - COUNT( * ) WHEN - 76 THEN NULL WHEN + - 40 * + ( SUM( - ( + + CAST( NULL AS SIGNED ) ) ) ) THEN ( - 78 ) END, + 2 + 45 + - 79 + - + 38 + 96 * 29 / - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL 62 * + - NULLIF ( + CASE - COUNT ( * ) WHEN - 76 THEN NULL WHEN + - 40 * + ( SUM ( - ( + + CAST ( NULL AS INTEGER ) ) ) ) THEN ( - 78 ) END, + 2 + 45 + - 79 + - + 38 + 96 * 29 / - 19 )
----
NULL

query I rowsort
SELECT ALL + 13 - - - ( - 80 ) col0
----
93

query II rowsort
SELECT 88 AS col2, + 72
----
88
72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT + 38 DIV - 41 * + 61
----
0

skipif mysql # not compatible
query I rowsort label-677
SELECT + 38 / - 41 * + 61
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-678
SELECT ALL - COUNT( * ) DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL - COUNT ( * ) / - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT DISTINCT MAX( DISTINCT - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT MAX ( DISTINCT - 66 ) AS col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-680
SELECT - CAST( - 15 AS SIGNED ) * + 22 * - 59 AS col1
----
-19470

skipif mysql # not compatible
query I rowsort label-680
SELECT - CAST ( - 15 AS INTEGER ) * + 22 * - 59 AS col1
----
-19470

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT ALL MAX( DISTINCT - - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL MAX ( DISTINCT - - 89 )
----
89

query I rowsort
SELECT + 55 + - 20 + + 17 * ( + 64 )
----
1123

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-683
SELECT 4, 93 * + ( - 31 ) + ( - 99 ) + - CAST( NULL AS DECIMAL ) * 46 * + 30 col0
----
4
NULL

skipif mysql # not compatible
query II rowsort label-683
SELECT 4, 93 * + ( - 31 ) + ( - 99 ) + - CAST ( NULL AS REAL ) * 46 * + 30 col0
----
4
NULL

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

skipif mysql # not compatible
query I rowsort label-684
SELECT - CAST ( NULL AS INTEGER ) + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-685
SELECT ALL MAX( DISTINCT - 60 ), + 74 col2
----
-60
74

skipif mysql # not compatible
query II rowsort label-685
SELECT ALL MAX ( DISTINCT - 60 ), + 74 col2
----
-60
74

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT - COALESCE ( + - 22, COUNT( * ), - 33 + + 40 * - - NULLIF ( 11, 96 ) * 23 ) - 73 + - ( + 0 ) + - 27 col0
----
-78

skipif mysql # not compatible
query I rowsort label-686
SELECT - COALESCE ( + - 22, COUNT ( * ), - 33 + + 40 * - - NULLIF ( 11, 96 ) * 23 ) - 73 + - ( + 0 ) + - 27 col0
----
-78

query I rowsort
SELECT - 47 * + 37 col2
----
-1739

query II rowsort
SELECT + + 18 AS col1, - 48 AS col2
----
18
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT + 11 DIV - 40 + - 87
----
-87

skipif mysql # not compatible
query I rowsort label-689
SELECT + 11 / - 40 + - 87
----
-87

query II rowsort
SELECT ALL + 51, - 69 AS col2
----
51
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT - 14 * - MAX( DISTINCT - 16 ) + + + 44
----
-180

skipif mysql # not compatible
query I rowsort label-691
SELECT - 14 * - MAX ( DISTINCT - 16 ) + + + 44
----
-180

query I rowsort
SELECT - 18 + - ( 90 )
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-693
SELECT + + COUNT( DISTINCT + 38 ) AS col0, 85 * - 62 * NULLIF ( + + 45, + 5 ) AS col1
----
1
-237150

skipif mysql # not compatible
query II rowsort label-693
SELECT + + COUNT ( DISTINCT + 38 ) AS col0, 85 * - 62 * NULLIF ( + + 45, + 5 ) AS col1
----
1
-237150

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT + CASE + 43 WHEN + NULLIF ( COUNT( * ), + 85 ) * + - 51 + 24 + - MIN( ALL - 43 ) THEN COUNT( * ) + - ( + - 55 ) ELSE + 35 END AS col2
----
35

skipif mysql # not compatible
query I rowsort label-694
SELECT + CASE + 43 WHEN + NULLIF ( COUNT ( * ), + 85 ) * + - 51 + 24 + - MIN ( ALL - 43 ) THEN COUNT ( * ) + - ( + - 55 ) ELSE + 35 END AS col2
----
35

query I rowsort
SELECT ALL + 96 * - 97
----
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT DISTINCT - MAX( - - 58 ) * + - 85 * - 9 * + 45 * - + 16 + - - 33 col1
----
31946433

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT - MAX ( - - 58 ) * + - 85 * - 9 * + 45 * - + 16 + - - 33 col1
----
31946433

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT ALL - 43 * - - COUNT( * ) * + + 42 + - 4 * 21
----
-1890

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL - 43 * - - COUNT ( * ) * + + 42 + - 4 * 21
----
-1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-698
SELECT + + ( - + COALESCE ( + CASE - 69 WHEN + CAST( - + 22 AS SIGNED ) THEN NULL WHEN - 24 THEN - - 43 - + 83 + + CAST( NULL AS SIGNED ) * + COUNT( * ) + - ( + COALESCE ( - - 85, + 91 ) ) WHEN + 8 + - 48 THEN NULL ELSE NULL END, + 10 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-698
SELECT + + ( - + COALESCE ( + CASE - 69 WHEN + CAST ( - + 22 AS INTEGER ) THEN NULL WHEN - 24 THEN - - 43 - + 83 + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - ( + COALESCE ( - - 85, + 91 ) ) WHEN + 8 + - 48 THEN NULL ELSE NULL END, + 10 ) )
----
-10

query II rowsort
SELECT + 86 AS col0, + 46 AS col1
----
86
46

query I rowsort
SELECT + 4 * - ( + 11 ) + + 76 AS col1
----
32

query II rowsort
SELECT - - 28 * - 49 + ( 38 ) col2, - 66 AS col1
----
-1334
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-702
SELECT + 13 DIV - - 85 * - 13 * ( COUNT( * ) ) + - 17
----
-17

skipif mysql # not compatible
query I rowsort label-702
SELECT + 13 / - - 85 * - 13 * ( COUNT ( * ) ) + - 17
----
-17

query I rowsort
SELECT + 45 + 54 AS col0
----
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT + 62 * 44 * + COUNT( * ) * + ( 86 ) AS col2
----
234608

skipif mysql # not compatible
query I rowsort label-705
SELECT + 62 * 44 * + COUNT ( * ) * + ( 86 ) AS col2
----
234608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-706
SELECT + COUNT( * ) - + MIN( ALL + + 20 ) DIV - - 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-706
SELECT + COUNT ( * ) - + MIN ( ALL + + 20 ) / - - 14 AS col1
----
0

query I rowsort
SELECT + 97 * 67
----
6499

query I rowsort
SELECT + 15 + 40 + - 7
----
48

query II rowsort
SELECT ALL 20 - - 97, - 95 * 15 AS col0
----
117
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT + CASE 46 WHEN - 50 * - - ( 93 ) THEN - - 72 ELSE - 20 END * + - MIN( ALL 36 ) + + 71
----
791

skipif mysql # not compatible
query I rowsort label-710
SELECT + CASE 46 WHEN - 50 * - - ( 93 ) THEN - - 72 ELSE - 20 END * + - MIN ( ALL 36 ) + + 71
----
791

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT ALL CASE + 45 WHEN + + COUNT( * ) THEN - + COUNT( * ) + - 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL CASE + 45 WHEN + + COUNT ( * ) THEN - + COUNT ( * ) + - 44 ELSE NULL END
----
NULL

query I rowsort
SELECT - 61 - 60 AS col0
----
-121

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

query I rowsort
SELECT - 37 + + 62 + + 18
----
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-715
SELECT ALL 13 + - ( + + NULLIF ( + - 49, + COUNT( * ) - - 62 + - 63 + - 70 + + + 75 + COUNT( * ) - - CAST( - CASE - 90 WHEN + 86 * 77 THEN COUNT( - 17 ) WHEN + 80 / 67 - + 51 + + 53 + - - ( - 30 ) / + 58 * 63 THEN + AVG ( + - 17 ) * - 25 ELSE 64 END AS DECIMAL ) * + 88 * 4 ) ) * 24 AS col1
----
1189

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL 13 + - ( + + NULLIF ( + - 49, + COUNT ( * ) - - 62 + - 63 + - 70 + + + 75 + COUNT ( * ) - - CAST ( - CASE - 90 WHEN + 86 * 77 THEN COUNT ( - 17 ) WHEN + 80 / 67 - + 51 + + 53 + - - ( - 30 ) / + 58 * 63 THEN + AVG ( + - 17 ) * - 25 ELSE 64 END AS REAL ) * + 88 * 4 ) ) * 24 AS col1
----
1189

query I rowsort
SELECT ALL CASE + 67 WHEN - AVG ( ALL + + ( + - 19 ) ) THEN - + 96 END AS col0
----
NULL

query I rowsort
SELECT + 1 + 92 * - 90 AS col0
----
-8279

onlyif mysql # DIV for integer division: 
query I rowsort label-718
SELECT - 18 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-718
SELECT - 18 / 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT - + SUM( DISTINCT + 12 ) + + 41
----
29

skipif mysql # not compatible
query I rowsort label-719
SELECT - + SUM ( DISTINCT + 12 ) + + 41
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-720
SELECT DISTINCT + 99 / COUNT( * ) * - - CAST( NULL AS SIGNED ) / AVG ( 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT + 99 / COUNT ( * ) * - - CAST ( NULL AS INTEGER ) / AVG ( 16 )
----
NULL

query I rowsort
SELECT + 89 * + - 90 + - - 13 - - - 63 AS col2
----
-8060

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT - + 4 * + 69 * - COUNT( * ) + - 16 + + - 94 AS col2
----
166

skipif mysql # not compatible
query I rowsort label-722
SELECT - + 4 * + 69 * - COUNT ( * ) + - 16 + + - 94 AS col2
----
166

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

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL - - COUNT ( * ) / - 51 + 76
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-724
SELECT DISTINCT - - COUNT( * ) * 52 - + COUNT( * ), + COUNT( * ) + - COUNT( * ) AS col1
----
51
0

skipif mysql # not compatible
query II rowsort label-724
SELECT DISTINCT - - COUNT ( * ) * 52 - + COUNT ( * ), + COUNT ( * ) + - COUNT ( * ) AS col1
----
51
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-725
SELECT DISTINCT + - 59 DIV ( + 15 ) * + 80 - + CAST( 81 AS SIGNED ) + + 0 + 82
----
-239

skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT + - 59 / ( + 15 ) * + 80 - + CAST ( 81 AS INTEGER ) + + 0 + 82
----
-239

query I rowsort
SELECT 33 + - - 33 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT - + COUNT( * ) * + 57 + - 31 + + 47 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-727
SELECT - + COUNT ( * ) * + 57 + - 31 + + 47 AS col1
----
-41

query II rowsort
SELECT DISTINCT + 34 - - + 17 * - - 45 col2, - 15
----
799
-15

query I rowsort
SELECT - 5 * + - 50
----
250

query I rowsort
SELECT + - 25 col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-731
SELECT - 4 * 30 - - 36 + + COUNT( * ) / NULLIF ( + COALESCE ( + MIN( ALL 4 ), + - 16 ), COUNT( * ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT - 4 * 30 - - 36 + + COUNT ( * ) / NULLIF ( + COALESCE ( + MIN ( ALL 4 ), + - 16 ), COUNT ( * ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ( + + 51 ) AS col0, - 95 * - 91 AS col0
----
51
8645

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

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT - COUNT ( DISTINCT - + 89 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT ALL 9 * MIN( DISTINCT 11 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL 9 * MIN ( DISTINCT 11 ) AS col1
----
99

query I rowsort
SELECT 72 + + 5 AS col1
----
77

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

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

query II rowsort
SELECT ALL - 11 AS col0, 67 - + - ( 40 ) AS col0
----
-11
107

query II rowsort
SELECT - 17 AS col1, 85 + + 92
----
-17
177

onlyif mysql # DIV for integer division: 
query I rowsort label-739
SELECT 56 DIV + - 61
----
0

skipif mysql # not compatible
query I rowsort label-739
SELECT 56 / + - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT SUM( ALL + 19 ) * - COALESCE ( - 5, + 39, 96 + + 7 - + 51 ) * 48 AS col1
----
4560

skipif mysql # not compatible
query I rowsort label-740
SELECT SUM ( ALL + 19 ) * - COALESCE ( - 5, + 39, 96 + + 7 - + 51 ) * 48 AS col1
----
4560

onlyif mysql # aggregate syntax: 
query II rowsort label-741
SELECT ALL + 23 * 5 * 62 AS col2, SUM( - 38 ) * - + 21 * NULLIF ( + + 0, + 69 + - 9 - + + 21 * + - 7 * - 12 ) AS col2
----
7130
0

skipif mysql # not compatible
query II rowsort label-741
SELECT ALL + 23 * 5 * 62 AS col2, SUM ( - 38 ) * - + 21 * NULLIF ( + + 0, + 69 + - 9 - + + 21 * + - 7 * - 12 ) AS col2
----
7130
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-742
SELECT CASE + 94 WHEN MIN( ALL - 49 ) * + 20 - + COUNT( * ) THEN 94 WHEN CAST( - 10 AS SIGNED ) * - 18 THEN NULL ELSE NULL END + + + 33 * - + COALESCE ( - 12, + + 47, 25 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-742
SELECT CASE + 94 WHEN MIN ( ALL - 49 ) * + 20 - + COUNT ( * ) THEN 94 WHEN CAST ( - 10 AS INTEGER ) * - 18 THEN NULL ELSE NULL END + + + 33 * - + COALESCE ( - 12, + + 47, 25 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-743
SELECT 87 * + - 58 + + - 10 + 35 - + MIN( - 12 ) DIV + 88 * + - 89
----
-5021

skipif mysql # not compatible
query I rowsort label-743
SELECT 87 * + - 58 + + - 10 + 35 - + MIN ( - 12 ) / + 88 * + - 89
----
-5021

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-744
SELECT ( 11 ) + 23 AS col2, 2 * + 61 * CAST( NULL AS SIGNED ) AS col1
----
34
NULL

skipif mysql # not compatible
query II rowsort label-744
SELECT ( 11 ) + 23 AS col2, 2 * + 61 * CAST ( NULL AS INTEGER ) AS col1
----
34
NULL

query I rowsort
SELECT 91 * 75 * + 98
----
668850

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT ALL - 60 + - + 36 DIV 80 - + 81 AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL - 60 + - + 36 / 80 - + 81 AS col2
----
-141

query I rowsort
SELECT DISTINCT + 6 + 66 + - - 85 + 0 AS col2
----
157

query II rowsort
SELECT 72 AS col0, + 68 * 60 + - 29 AS col1
----
72
4051

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-750
SELECT 87 - + 52 DIV + - 28, 37 AS col0
----
88
37

skipif mysql # not compatible
query II rowsort label-750
SELECT 87 - + 52 / + - 28, 37 AS col0
----
88
37

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

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL 60 + + COUNT ( * ) AS col1
----
61

query I rowsort
SELECT + 87 + 74 AS col0
----
161

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-753
SELECT MIN( + + 69 ) * + - CAST( NULL AS DECIMAL ) col2, SUM( - + 34 ) DIV + ( + 92 ) * - + 45 + 59 * - 88
----
NULL
-5192

skipif mysql # not compatible
query II rowsort label-753
SELECT MIN ( + + 69 ) * + - CAST ( NULL AS REAL ) col2, SUM ( - + 34 ) / + ( + 92 ) * - + 45 + 59 * - 88
----
NULL
-5192

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT SUM( DISTINCT + 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-755
SELECT SUM ( DISTINCT + 88 ) AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-756
SELECT DISTINCT + 96, ( - 15 ) / - CAST( NULL AS SIGNED ) / 63 / - 15 AS col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-756
SELECT DISTINCT + 96, ( - 15 ) / - CAST ( NULL AS INTEGER ) / 63 / - 15 AS col0
----
96
NULL

query II rowsort
SELECT ALL - - 67 col2, + 80 AS col0
----
67
80

query I rowsort
SELECT - 36 - 20 * + 60
----
-1236

query II rowsort
SELECT ALL - 60, - 77 AS col1
----
-60
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT ALL - 94 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL - 94 / - 99
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-761
SELECT + COUNT( * ) + - 50 + SUM( - - 32 ) DIV - 86
----
-49

skipif mysql # not compatible
query I rowsort label-761
SELECT + COUNT ( * ) + - 50 + SUM ( - - 32 ) / - 86
----
-49

query II rowsort
SELECT + - 70 AS col1, + NULLIF ( + + COALESCE ( + ( 77 ), - 34 * + 37 ), 80 * - ( - 56 ) ) col2
----
-70
77

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT DISTINCT - - 22 - COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT - - 22 - COUNT ( * ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-764
SELECT + 25 * SUM( DISTINCT + 20 ), 93 + - 0 + + 53 + + 86 * 45 AS col2
----
500
4016

skipif mysql # not compatible
query II rowsort label-764
SELECT + 25 * SUM ( DISTINCT + 20 ), 93 + - 0 + + 53 + + 86 * 45 AS col2
----
500
4016

query II rowsort
SELECT ALL - + 99 AS col0, 3
----
-99
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-766
SELECT 19 * 51 + - CAST( + 79 AS DECIMAL ) + MIN( - 63 ) * CASE - MAX( ALL 79 ) WHEN + 34 + 24 - 73 + + 62 * - COUNT( * ) * + COALESCE ( 59, - - 41 + - + COUNT( DISTINCT - - 25 ) ) THEN 17 + COUNT( * ) + - 4 + - - ( - 82 ) * + + 0 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT 19 * 51 + - CAST ( + 79 AS REAL ) + MIN ( - 63 ) * CASE - MAX ( ALL 79 ) WHEN + 34 + 24 - 73 + + 62 * - COUNT ( * ) * + COALESCE ( 59, - - 41 + - + COUNT ( DISTINCT - - 25 ) ) THEN 17 + COUNT ( * ) + - 4 + - - ( - 82 ) * + + 0 END AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( + 97, - 35 )
----
-97

query I rowsort
SELECT ALL + 64 * - 20 AS col1
----
-1280

query I rowsort
SELECT 82 * + + 3 AS col0
----
246

query I rowsort
SELECT 81 + + + 53 + - 48 AS col0
----
86

query II rowsort
SELECT DISTINCT + 37 + - 40 AS col0, 37 AS col2
----
-3
37

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-774
SELECT ALL + 92 + COUNT( DISTINCT - + CAST( + 75 AS SIGNED ) )
----
93

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + 92 + COUNT ( DISTINCT - + CAST ( + 75 AS INTEGER ) )
----
93

query I rowsort
SELECT 97 + - 72 AS col2
----
25

query I rowsort
SELECT 7 + + 57
----
64

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-778
SELECT DISTINCT - 47 + + MIN( ALL + ( + 74 ) ) + + 58 / + 1 * + + 69 * ( - CAST( NULL AS SIGNED ) ) + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT - 47 + + MIN ( ALL + ( + 74 ) ) + + 58 / + 1 * + + 69 * ( - CAST ( NULL AS INTEGER ) ) + - 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-779
SELECT 87 + 74 * 53 + - 0 col0, 34 * - 19 * - COUNT( * ) + COALESCE ( - - 43, CAST( NULL AS SIGNED ) * 21 + + - 37 ) col2, + 71 - + + 80 + - - ( - - COUNT( * ) ) * + 10 AS col2
----
4009
689
1

skipif mysql # not compatible
query III rowsort label-779
SELECT 87 + 74 * 53 + - 0 col0, 34 * - 19 * - COUNT ( * ) + COALESCE ( - - 43, CAST ( NULL AS INTEGER ) * 21 + + - 37 ) col2, + 71 - + + 80 + - - ( - - COUNT ( * ) ) * + 10 AS col2
----
4009
689
1

query I rowsort
SELECT 97 + + 90 * - ( + 7 ) + 11
----
-522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-781
SELECT 32 - 27 * - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-781
SELECT 32 - 27 * - ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 6 + + - 79 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-783
SELECT - ( - - 40 ) + - MIN( - - 39 ), - COALESCE ( 7, - 85 ) + + 17 + + 14 * - - 56 AS col0
----
-79
794

skipif mysql # not compatible
query II rowsort label-783
SELECT - ( - - 40 ) + - MIN ( - - 39 ), - COALESCE ( 7, - 85 ) + + 17 + + 14 * - - 56 AS col0
----
-79
794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT 47 * - NULLIF ( - 79, + 4 * 31 + + COUNT( * ) + + 49 * + 38 * + CAST( NULL AS SIGNED ) ) * - 81 * 19 * 98 - - 92 + - 34
----
-560002028

skipif mysql # not compatible
query I rowsort label-784
SELECT 47 * - NULLIF ( - 79, + 4 * 31 + + COUNT ( * ) + + 49 * + 38 * + CAST ( NULL AS INTEGER ) ) * - 81 * 19 * 98 - - 92 + - 34
----
-560002028

query I rowsort
SELECT DISTINCT - - 45 + + + 61 - - - 50
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-786
SELECT ALL 37 - + ( + COUNT( * ) ) + + 54 DIV - + 4 + 99 + MIN( ALL 98 ) - - 71 + - + 1 AS col2, 10
----
290
10

skipif mysql # not compatible
query II rowsort label-786
SELECT ALL 37 - + ( + COUNT ( * ) ) + + 54 / - + 4 + 99 + MIN ( ALL 98 ) - - 71 + - + 1 AS col2, 10
----
290
10

onlyif mysql # DIV for integer division: 
query II rowsort label-787
SELECT + 7 + + + 48 AS col2, 64 DIV - 39
----
55
-1

skipif mysql # not compatible
query II rowsort label-787
SELECT + 7 + + + 48 AS col2, 64 / - 39
----
55
-1

query I rowsort
SELECT + ( + 86 ) + + 66 AS col2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT - + CASE - COALESCE ( + 99, + 53 ) WHEN - ( - COUNT( * ) ) THEN 58 * - COUNT( * ) + - ( + + 53 ) * - COUNT( ALL - 28 ) WHEN + ( + + 84 ) THEN NULL ELSE - ( 87 ) END
----
87

skipif mysql # not compatible
query I rowsort label-789
SELECT - + CASE - COALESCE ( + 99, + 53 ) WHEN - ( - COUNT ( * ) ) THEN 58 * - COUNT ( * ) + - ( + + 53 ) * - COUNT ( ALL - 28 ) WHEN + ( + + 84 ) THEN NULL ELSE - ( 87 ) END
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-790
SELECT ALL + 65 * + 34 * + + COUNT( * ) - - 70, - 38 AS col1
----
2280
-38

skipif mysql # not compatible
query II rowsort label-790
SELECT ALL + 65 * + 34 * + + COUNT ( * ) - - 70, - 38 AS col1
----
2280
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT + - 54 * MAX( ALL + 1 ) + - + COUNT( * ) + - - 26 + + COALESCE ( - 60, - 67, + 86, + - ( 20 ) ) + - 53 * + 33 AS col0
----
-1838

skipif mysql # not compatible
query I rowsort label-791
SELECT + - 54 * MAX ( ALL + 1 ) + - + COUNT ( * ) + - - 26 + + COALESCE ( - 60, - 67, + 86, + - ( 20 ) ) + - 53 * + 33 AS col0
----
-1838

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-793
SELECT DISTINCT + 15 * + 37 * + CAST( + 27 AS SIGNED ) * - MAX( - 65 ) AS col1
----
974025

skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT + 15 * + 37 * + CAST ( + 27 AS INTEGER ) * - MAX ( - 65 ) AS col1
----
974025

query I rowsort
SELECT ALL + 4 * 17 + ( - - 62 ) AS col2
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-795
SELECT + 23 * - + CAST( - + 81 AS SIGNED )
----
1863

skipif mysql # not compatible
query I rowsort label-795
SELECT + 23 * - + CAST ( - + 81 AS INTEGER )
----
1863

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

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

query I rowsort
SELECT DISTINCT 11 * + - 64 AS col2
----
-704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT CAST( - 9 AS SIGNED ) * - + 92 + - 15 + + + 62 + 48 * 28 col2
----
2219

skipif mysql # not compatible
query I rowsort label-799
SELECT CAST ( - 9 AS INTEGER ) * - + 92 + - 15 + + + 62 + 48 * 28 col2
----
2219

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

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

query I rowsort
SELECT CASE 19 WHEN - 99 THEN - - 82 ELSE - ( + - ( 61 ) ) END AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-802
SELECT CASE 2 WHEN + 39 + + 78 THEN - - CAST( - + 93 AS SIGNED ) - - - 57 / + + 36 * - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-802
SELECT CASE 2 WHEN + 39 + + 78 THEN - - CAST ( - + 93 AS INTEGER ) - - - 57 / + + 36 * - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-803
SELECT + CAST( NULL AS SIGNED ) * - - COUNT( * ) * + 1 + + - 65 + + + ( 55 ) / + COUNT( * ) * + 52 + - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-803
SELECT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * + 1 + + - 65 + + + ( 55 ) / + COUNT ( * ) * + 52 + - 33 AS col1
----
NULL

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

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

query I rowsort
SELECT - 62 + - 75 + + 53 AS col2
----
-84

query I rowsort
SELECT COALESCE ( 15, - 88 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-807
SELECT + COALESCE ( 85, - + CAST( NULL AS SIGNED ) * + 35 ) * + 60, - 82 + 14 AS col0
----
5100
-68

skipif mysql # not compatible
query II rowsort label-807
SELECT + COALESCE ( 85, - + CAST ( NULL AS INTEGER ) * + 35 ) * + 60, - 82 + 14 AS col0
----
5100
-68

query I rowsort
SELECT ALL 35 * + 17 + + 77 AS col1
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT DISTINCT 4 * + 67 + + MIN( ALL 10 ) col2
----
278

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT 4 * + 67 + + MIN ( ALL 10 ) col2
----
278

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT ALL - COUNT( * ) * + - COUNT( * ) + - + SUM( ALL COALESCE ( 22, - + 57 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) + - + SUM ( ALL COALESCE ( 22, - + 57 ) )
----
-21

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

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

query I rowsort
SELECT - ( 93 ) AS col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-814
SELECT - MAX( - - 49 ) * - CAST( NULL AS SIGNED ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT - MAX ( - - 49 ) * - CAST ( NULL AS INTEGER ) * 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT DISTINCT 43 - COUNT( - 85 ) + + + 89
----
131

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT 43 - COUNT ( - 85 ) + + + 89
----
131

query II rowsort
SELECT ALL 87 AS col1, 33 AS col0
----
87
33

query II rowsort
SELECT DISTINCT 20 AS col0, 58 AS col2
----
20
58

query I rowsort
SELECT ALL - 38 * + - 36
----
1368

query I rowsort
SELECT DISTINCT - - 43 * + 45 * NULLIF ( + 46, + 57 * - 86 ) AS col0
----
89010

query I rowsort
SELECT - - 99 * 56
----
5544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-821
SELECT - CAST( + 26 AS SIGNED ) + + + 51 - + CASE + + ( CAST( ( + + COUNT( * ) ) AS SIGNED ) ) WHEN - 27 THEN NULL WHEN COUNT( * ) / ( + + 42 ) * 68 + CASE - 92 WHEN - ( + ( + CASE - 68 WHEN 8 THEN - 14 ELSE + + 69 * + 25 * + 35 + - 99 END ) ) * + 54 + 26 + + + COALESCE ( - MAX( ALL + COALESCE ( + 98, - 22 + + 78 ) ), - 72, + 35 * - SUM( + 17 ) ) * 61 THEN NULL ELSE + 34 END + 26 / COUNT( * ) THEN - 65 - + ( - 37 ) * - 46 ELSE + 11 END + - 95 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-821
SELECT - CAST ( + 26 AS INTEGER ) + + + 51 - + CASE + + ( CAST ( ( + + COUNT ( * ) ) AS INTEGER ) ) WHEN - 27 THEN NULL WHEN COUNT ( * ) / ( + + 42 ) * 68 + CASE - 92 WHEN - ( + ( + CASE - 68 WHEN 8 THEN - 14 ELSE + + 69 * + 25 * + 35 + - 99 END ) ) * + 54 + 26 + + + COALESCE ( - MAX ( ALL + COALESCE ( + 98, - 22 + + 78 ) ), - 72, + 35 * - SUM ( + 17 ) ) * 61 THEN NULL ELSE + 34 END + 26 / COUNT ( * ) THEN - 65 - + ( - 37 ) * - 46 ELSE + 11 END + - 95 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 97 * - + 39 AS col1
----
-3783

query I rowsort
SELECT - 98 + + + COALESCE ( 61, + - CASE WHEN NULL IS NULL THEN - 1 ELSE NULL END, + 76 ) AS col0
----
-37

query II rowsort
SELECT ALL - 59 AS col1, - 48 + ( 96 ) AS col2
----
-59
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-825
SELECT - - 47 - - 29 DIV - COUNT( * ) + + ( + 65 )
----
83

skipif mysql # not compatible
query I rowsort label-825
SELECT - - 47 - - 29 / - COUNT ( * ) + + ( + 65 )
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-826
SELECT ALL NULLIF ( CASE + 41 WHEN + 89 * - - 5 + + 5 + + 34 / + + 5 THEN NULL WHEN 52 THEN 99 WHEN 63 * - 65 + - 37 / - - 21 THEN NULL END, 78 * + 46 ), COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-826
SELECT ALL NULLIF ( CASE + 41 WHEN + 89 * - - 5 + + 5 + + 34 / + + 5 THEN NULL WHEN 52 THEN 99 WHEN 63 * - 65 + - 37 / - - 21 THEN NULL END, 78 * + 46 ), COUNT ( * ) AS col1
----
NULL
1

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

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

query I rowsort
SELECT DISTINCT + - ( - 21 ) AS col2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT ALL 76 DIV - + 40 + + + 99
----
98

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL 76 / - + 40 + + + 99
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-830
SELECT ALL 13 DIV COUNT( * ) + + + 26 * + 72
----
1885

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL 13 / COUNT ( * ) + + + 26 * + 72
----
1885

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT - COUNT( * ) + - 65 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-831
SELECT - COUNT ( * ) + - 65 AS col0
----
-66

query II rowsort
SELECT + ( - 65 ), - 61 - + 27 - + 54 AS col1
----
-65
-142

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-833
SELECT + SUM( ALL + 20 ) AS col2, + CAST( NULL AS DECIMAL )
----
20
NULL

skipif mysql # not compatible
query II rowsort label-833
SELECT + SUM ( ALL + 20 ) AS col2, + CAST ( NULL AS REAL )
----
20
NULL

query I rowsort
SELECT + 21 - - 18 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-835
SELECT ALL - ( + COUNT( * ) ) DIV - CAST( + 60 AS SIGNED ) + + - 26 * + - 10 + + 33 + + 19 DIV 21 AS col1
----
293

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL - ( + COUNT ( * ) ) / - CAST ( + 60 AS INTEGER ) + + - 26 * + - 10 + + 33 + + 19 / 21 AS col1
----
293

onlyif mysql # aggregate syntax: 
query II rowsort label-836
SELECT ( + + 73 ) AS col2, - 92 + - NULLIF ( + 97, - SUM( ALL - 91 ) ) * + 10 * - 62 + - - 0 * - 98
----
73
60048

skipif mysql # not compatible
query II rowsort label-836
SELECT ( + + 73 ) AS col2, - 92 + - NULLIF ( + 97, - SUM ( ALL - 91 ) ) * + 10 * - 62 + - - 0 * - 98
----
73
60048

query I rowsort
SELECT + 85 * - 24 * + + 70
----
-142800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-838
SELECT ALL 91 * - 82 AS col0, 78 / 66 * + 95 + + ( + - 25 ) + + CAST( NULL AS SIGNED ) * 6 - - 56 * + NULLIF ( + - COUNT( - - 42 ), MIN( ALL - + 28 ) * - 72 + + + NULLIF ( + NULLIF ( + ( + + CASE + MIN( ALL - + 53 ) WHEN - - COUNT( * ) * - + 15 THEN 31 + + 72 END ), 32 ), + CASE + 71 WHEN - 38 * - 42 + - MAX( ALL 8 ) THEN NULL WHEN CAST( + NULLIF ( 38, 39 ) AS SIGNED ) THEN 73 END - ( + 66 + - 14 ) / 61 ) ) * - MIN( + 68 )
----
-7462
NULL

skipif mysql # not compatible
query II rowsort label-838
SELECT ALL 91 * - 82 AS col0, 78 / 66 * + 95 + + ( + - 25 ) + + CAST ( NULL AS INTEGER ) * 6 - - 56 * + NULLIF ( + - COUNT ( - - 42 ), MIN ( ALL - + 28 ) * - 72 + + + NULLIF ( + NULLIF ( + ( + + CASE + MIN ( ALL - + 53 ) WHEN - - COUNT ( * ) * - + 15 THEN 31 + + 72 END ), 32 ), + CASE + 71 WHEN - 38 * - 42 + - MAX ( ALL 8 ) THEN NULL WHEN CAST ( + NULLIF ( 38, 39 ) AS INTEGER ) THEN 73 END - ( + 66 + - 14 ) / 61 ) ) * - MIN ( + 68 )
----
-7462
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-839
SELECT + 2 DIV - ( ( + + COUNT( * ) ) ) AS col0, 87 * - 14 AS col0
----
-2
-1218

skipif mysql # not compatible
query II rowsort label-839
SELECT + 2 / - ( ( + + COUNT ( * ) ) ) AS col0, 87 * - 14 AS col0
----
-2
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT ALL 12 * + 86 * + COUNT( * ) + - - 53 - 21
----
1064

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL 12 * + 86 * + COUNT ( * ) + - - 53 - 21
----
1064

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

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

query I rowsort
SELECT ( ( 80 ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ALL + 86 * + MIN( - + 71 ) + 25 + - - 69
----
-6012

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL + 86 * + MIN ( - + 71 ) + 25 + - - 69
----
-6012

query I rowsort
SELECT + 49 * 90 AS col1
----
4410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-845
SELECT + 72 - + - CASE + 29 WHEN + 86 THEN + 79 * CAST( + + NULLIF ( + 15, + 96 + - 65 - - - 2 + + COUNT( * ) ) AS SIGNED ) ELSE - 18 * + - 47 + + - 94 END * - ( 14 )
----
-10456

skipif mysql # not compatible
query I rowsort label-845
SELECT + 72 - + - CASE + 29 WHEN + 86 THEN + 79 * CAST ( + + NULLIF ( + 15, + 96 + - 65 - - - 2 + + COUNT ( * ) ) AS INTEGER ) ELSE - 18 * + - 47 + + - 94 END * - ( 14 )
----
-10456

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-847
SELECT - COUNT( * ) * 48, 99 DIV + 39 AS col2
----
-48
2

skipif mysql # not compatible
query II rowsort label-847
SELECT - COUNT ( * ) * 48, 99 / + 39 AS col2
----
-48
2

onlyif mysql # DIV for integer division: 
query I rowsort label-848
SELECT DISTINCT 42 DIV + 37 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT 42 / + 37 AS col1
----
1

query I rowsort
SELECT DISTINCT - + 8 * - + 7 * - - 46 * - ( - 11 )
----
28336

query I rowsort
SELECT 69 + + 57 AS col1
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-851
SELECT ALL 72 * - - 86 AS col1, COALESCE ( - + COUNT( * ), + + ( - 58 ), + - 57 ) + 7 AS col1
----
6192
6

skipif mysql # not compatible
query II rowsort label-851
SELECT ALL 72 * - - 86 AS col1, COALESCE ( - + COUNT ( * ), + + ( - 58 ), + - 57 ) + 7 AS col1
----
6192
6

query II rowsort
SELECT DISTINCT 60, 80 AS col0
----
60
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-853
SELECT ALL + AVG ( - 86 ) * CASE + CAST( + 69 AS SIGNED ) WHEN - 80 * 30 / - 16 - - MAX( + 5 ) * + + 22 THEN + 65 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL + AVG ( - 86 ) * CASE + CAST ( + 69 AS INTEGER ) WHEN - 80 * 30 / - 16 - - MAX ( + 5 ) * + + 22 THEN + 65 WHEN COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT 45 + 22 - - - 9 AS col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-855
SELECT ALL + 89 AS col0, NULLIF ( + COALESCE ( - ( + 6 ), + 97, - CAST( NULL AS SIGNED ) ), - 83 ) + - 84
----
89
-90

skipif mysql # not compatible
query II rowsort label-855
SELECT ALL + 89 AS col0, NULLIF ( + COALESCE ( - ( + 6 ), + 97, - CAST ( NULL AS INTEGER ) ), - 83 ) + - 84
----
89
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT + ( - 24 ) + + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-856
SELECT + ( - 24 ) + + COUNT ( * )
----
-23

query I rowsort
SELECT ALL COALESCE ( + NULLIF ( 5, + - 34 * 26 / + ( - - 42 ) ), 21 + - 76 ) AS col2
----
5

query I rowsort
SELECT + ( 40 ) + + 3
----
43

query I rowsort
SELECT ALL - 65 * 62 AS col0
----
-4030

query I rowsort
SELECT - 14 * - 81
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT + COUNT( 18 ) + COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-861
SELECT + COUNT ( 18 ) + COUNT ( * ) col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT - 62 AS col2, MIN( + + 29 )
----
-62
29

skipif mysql # not compatible
query II rowsort label-862
SELECT - 62 AS col2, MIN ( + + 29 )
----
-62
29

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

skipif mysql # not compatible
query II rowsort label-863
SELECT COUNT ( * ) AS col1, 30
----
1
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT SUM( ALL + 16 ) * COUNT( * ) + - COUNT( * ) - + 29 + - 91 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-865
SELECT SUM ( ALL + 16 ) * COUNT ( * ) + - COUNT ( * ) - + 29 + - 91 AS col0
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT 75 * + CAST( - - NULLIF ( + + 62, + + 95 ) AS SIGNED ) AS col0
----
4650

skipif mysql # not compatible
query I rowsort label-866
SELECT 75 * + CAST ( - - NULLIF ( + + 62, + + 95 ) AS INTEGER ) AS col0
----
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT - 52 * - 77 * - 25 + + + COUNT( * ) AS col1
----
-100099

skipif mysql # not compatible
query I rowsort label-867
SELECT - 52 * - 77 * - 25 + + + COUNT ( * ) AS col1
----
-100099

query I rowsort
SELECT ALL + 60 + - 1 AS col1
----
59

query I rowsort
SELECT ALL - 33 * - + 11 * 13
----
4719

query I rowsort
SELECT DISTINCT + 78 + + + 97 col1
----
175

query II rowsort
SELECT ALL + 60 + + ( - 81 ) - 12 * + - ( + 40 ) * - 62 AS col0, - 75 + + 77
----
-29781
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-872
SELECT 33 * - 13 + 53 + - MIN( ALL ( + 65 ) ) * - COALESCE ( - - 24, + + 94 ) + - 44 DIV + 65 + - CAST( + COUNT( DISTINCT ( + 43 ) ) AS SIGNED ) + + - 82 * + + 54 * - - 40
----
-175937

skipif mysql # not compatible
query I rowsort label-872
SELECT 33 * - 13 + 53 + - MIN ( ALL ( + 65 ) ) * - COALESCE ( - - 24, + + 94 ) + - 44 / + 65 + - CAST ( + COUNT ( DISTINCT ( + 43 ) ) AS INTEGER ) + + - 82 * + + 54 * - - 40
----
-175937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-873
SELECT - CASE + 0 WHEN + - 48 THEN + - 72 * + - 54 WHEN 40 + + - 33 * + - 26 THEN NULL ELSE - 39 END * + 21 + CAST( NULL AS SIGNED ) + 75 + 9 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-873
SELECT - CASE + 0 WHEN + - 48 THEN + - 72 * + - 54 WHEN 40 + + - 33 * + - 26 THEN NULL ELSE - 39 END * + 21 + CAST ( NULL AS INTEGER ) + 75 + 9 col2
----
NULL

query I rowsort
SELECT ALL 37 * + + ( + 80 ) AS col0
----
2960

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT 42 + + ( - ( - - MIN( - + NULLIF ( + 52, + 25 ) ) ) ) * + ( COUNT( * ) ) col2
----
94

skipif mysql # not compatible
query I rowsort label-875
SELECT 42 + + ( - ( - - MIN ( - + NULLIF ( + 52, + 25 ) ) ) ) * + ( COUNT ( * ) ) col2
----
94

query I rowsort
SELECT 25 * - - ( + 47 )
----
1175

query II rowsort
SELECT ALL - 71 * + 45 col1, 38 AS col0
----
-3195
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT - 93 * - ( + 7 ) + - 20 - COUNT( - 72 ) AS col2
----
630

skipif mysql # not compatible
query I rowsort label-879
SELECT - 93 * - ( + 7 ) + - 20 - COUNT ( - 72 ) AS col2
----
630

onlyif mysql # DIV for integer division: 
query II rowsort label-880
SELECT + 96 DIV - 90, + 33 * - 60 * + 21 + - 12 col0
----
-1
-41592

skipif mysql # not compatible
query II rowsort label-880
SELECT + 96 / - 90, + 33 * - 60 * + 21 + - 12 col0
----
-1
-41592

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT ALL MAX( DISTINCT + 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL MAX ( DISTINCT + 8 ) AS col1
----
8

query I rowsort
SELECT - + NULLIF ( + - 33, + 41 )
----
33

query II rowsort
SELECT + 53 * - 37 col1, - 28 * - - 81 AS col1
----
-1961
-2268

onlyif mysql # aggregate syntax: 
query II rowsort label-884
SELECT ALL MIN( + 45 ) AS col2, - 73 AS col1
----
45
-73

skipif mysql # not compatible
query II rowsort label-884
SELECT ALL MIN ( + 45 ) AS col2, - 73 AS col1
----
45
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-885
SELECT DISTINCT - 28 * - - CAST( NULL AS SIGNED ), 19 AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-885
SELECT DISTINCT - 28 * - - CAST ( NULL AS INTEGER ), 19 AS col0
----
NULL
19

query I rowsort
SELECT ALL - 17 + - 61
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT DISTINCT - SUM( DISTINCT 44 ) + + 46 col0
----
2

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT - SUM ( DISTINCT 44 ) + + 46 col0
----
2

query I rowsort
SELECT ALL 0 + + - 84 * - 77 * + 56 AS col2
----
362208

query II rowsort
SELECT + ( + 48 ) AS col1, 91
----
48
91

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT COALESCE ( - - 79, + COALESCE ( - COALESCE ( 55, + + ( - 3 ) + + - 25, 48 + 54 * + + 30 * - COUNT( * ) * + 44 * 20 * + 36 + - 51 ), 96, + 90 ) * - 45, - 36 - + 16 * - 3 + + + 91 ) + - 17 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-890
SELECT COALESCE ( - - 79, + COALESCE ( - COALESCE ( 55, + + ( - 3 ) + + - 25, 48 + 54 * + + 30 * - COUNT ( * ) * + 44 * 20 * + 36 + - 51 ), 96, + 90 ) * - 45, - 36 - + 16 * - 3 + + + 91 ) + - 17 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-891
SELECT DISTINCT ( - 76 ) * 75 AS col1, 37 + CAST( + + ( + 91 ) AS SIGNED )
----
-5700
128

skipif mysql # not compatible
query II rowsort label-891
SELECT DISTINCT ( - 76 ) * 75 AS col1, 37 + CAST ( + + ( + 91 ) AS INTEGER )
----
-5700
128

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT ALL + 74 + NULLIF ( - + 0, + + 14 DIV + - 65 ) * ( - ( + + ( + 48 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL + 74 + NULLIF ( - + 0, + + 14 / + - 65 ) * ( - ( + + ( + 48 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT 91 * MIN( ALL - 55 ) * - ( + - 65 ) AS col0
----
-325325

skipif mysql # not compatible
query I rowsort label-893
SELECT 91 * MIN ( ALL - 55 ) * - ( + - 65 ) AS col0
----
-325325

onlyif mysql # aggregate syntax: 
query III rowsort label-894
SELECT DISTINCT 5, COUNT( * ) * - 0 + 52 col2, + + 14 AS col2
----
5
52
14

skipif mysql # not compatible
query III rowsort label-894
SELECT DISTINCT 5, COUNT ( * ) * - 0 + 52 col2, + + 14 AS col2
----
5
52
14

query II rowsort
SELECT DISTINCT 32 + + + 34 * + - 92 AS col1, - 7
----
-3096
-7

query I rowsort
SELECT 10 + + 66 + + ( + + 37 )
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL COALESCE ( - COUNT( DISTINCT - - 23 ), - ( NULLIF ( + 96, - 31 * - 36 / ( + SUM( - 83 ) ) ) ) ) * 46 * - 1 * + 26 * + + 78 - + + COUNT( * )
----
93287

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL COALESCE ( - COUNT ( DISTINCT - - 23 ), - ( NULLIF ( + 96, - 31 * - 36 / ( + SUM ( - 83 ) ) ) ) ) * 46 * - 1 * + 26 * + + 78 - + + COUNT ( * )
----
93287

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT CASE + 82 WHEN + - 85 THEN NULL WHEN + COUNT( * ) + - COUNT( * ) THEN - 90 * + 18 / + + 67 END * + NULLIF ( + 34, - + ( - 59 ) + + - ( 10 ) / - 72 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-898
SELECT CASE + 82 WHEN + - 85 THEN NULL WHEN + COUNT ( * ) + - COUNT ( * ) THEN - 90 * + 18 / + + 67 END * + NULLIF ( + 34, - + ( - 59 ) + + - ( 10 ) / - 72 ) AS col0
----
NULL

query I rowsort
SELECT COALESCE ( 84, - 23, + 85, 8 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT + COALESCE ( + - COALESCE ( - 95, CASE - + 54 WHEN + SUM( DISTINCT - ( + 84 ) ) * - 91 THEN - 97 * - COALESCE ( + 65, - 41 * - - COUNT( * ) * + 60 - + 89 ) + - 12 END, + ( - 63 ) ), - 2 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-900
SELECT + COALESCE ( + - COALESCE ( - 95, CASE - + 54 WHEN + SUM ( DISTINCT - ( + 84 ) ) * - 91 THEN - 97 * - COALESCE ( + 65, - 41 * - - COUNT ( * ) * + 60 - + 89 ) + - 12 END, + ( - 63 ) ), - 2 ) AS col2
----
95

query I rowsort
SELECT NULLIF ( + + 97, 8 )
----
97

query I rowsort
SELECT DISTINCT + 47 * + 14 AS col0
----
658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-903
SELECT 0 + + COUNT( * ) + CAST( + 29 AS SIGNED ) AS col0
----
30

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-905
SELECT DISTINCT MIN( - 9 ) * + NULLIF ( + - COUNT( * ), - NULLIF ( - 62, AVG ( + CAST( NULL AS SIGNED ) ) ) * 27 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT MIN ( - 9 ) * + NULLIF ( + - COUNT ( * ), - NULLIF ( - 62, AVG ( + CAST ( NULL AS INTEGER ) ) ) * 27 ) AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-906
SELECT ALL - 2 * + 55 DIV + 23 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL - 2 * + 55 / + 23 AS col1
----
-4

query I rowsort
SELECT - 37 - + - 77
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT - 95 DIV - - 5 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-908
SELECT - 95 / - - 5 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-909
SELECT DISTINCT - COUNT( 47 ) * + 54 AS col1, ( + 68 ) AS col2
----
-54
68

skipif mysql # not compatible
query II rowsort label-909
SELECT DISTINCT - COUNT ( 47 ) * + 54 AS col1, ( + 68 ) AS col2
----
-54
68

query I rowsort
SELECT - 72 * + 31 AS col2
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL + COUNT( DISTINCT + - COALESCE ( 37, 82 * 56 * - ( - 66 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL + COUNT ( DISTINCT + - COALESCE ( 37, 82 * 56 * - ( - 66 ) ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-912
SELECT ALL + CAST( 79 AS SIGNED ) col1
----
79

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL + CAST ( 79 AS INTEGER ) col1
----
79

query II rowsort
SELECT + 95, - 94 * 28 AS col0
----
95
-2632

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT + MAX( ALL 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-914
SELECT + MAX ( ALL 99 ) AS col2
----
99

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

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

query I rowsort
SELECT - 65 * + 82 + + 21 + 50 col2
----
-5259

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT + 94 - 76 * + - CASE - 9 WHEN - COUNT( * ) * - 44 THEN - MAX( + 14 ) WHEN + + 5 + + + 24 / + - COUNT( * ) THEN + ( - 22 ) + 73 WHEN - 5 THEN 74 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-917
SELECT + 94 - 76 * + - CASE - 9 WHEN - COUNT ( * ) * - 44 THEN - MAX ( + 14 ) WHEN + + 5 + + + 24 / + - COUNT ( * ) THEN + ( - 22 ) + 73 WHEN - 5 THEN 74 ELSE NULL END AS col1
----
NULL

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

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

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

query II rowsort
SELECT + 1, + 45 AS col0
----
1
45

query II rowsort
SELECT - 51 + - 55 + + + NULLIF ( - + 25, ( + 70 ) ) AS col0, 60
----
-131
60

query II rowsort
SELECT - - 77 AS col2, - 76 AS col2
----
77
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT ALL - - 94 + + MIN( ALL - 65 )
----
29

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL - - 94 + + MIN ( ALL - 65 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-924
SELECT DISTINCT + - COUNT( * ) + + 7 + + 81 * + - CAST( NULL AS SIGNED ) - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT + - COUNT ( * ) + + 7 + + 81 * + - CAST ( NULL AS INTEGER ) - 90
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-925
SELECT ALL 17 + + 46 * 98 DIV + - CAST( + 78 AS SIGNED ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL 17 + + 46 * 98 / + - CAST ( + 78 AS INTEGER ) AS col1
----
-40

query II rowsort
SELECT ALL - 75 AS col2, - 62 - 90 AS col1
----
-75
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-927
SELECT ALL + CAST( NULL AS SIGNED ) + - 26 + ( MIN( 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL + CAST ( NULL AS INTEGER ) + - 26 + ( MIN ( 89 ) )
----
NULL

query II rowsort
SELECT - + 99 * + - 44 * - 32, + 80 AS col0
----
-139392
80

onlyif mysql # aggregate syntax: 
query II rowsort label-929
SELECT + ( - 53 ) + + 63 - + - 41 AS col2, COUNT( * ) AS col1
----
51
1

skipif mysql # not compatible
query II rowsort label-929
SELECT + ( - 53 ) + + 63 - + - 41 AS col2, COUNT ( * ) AS col1
----
51
1

query I rowsort
SELECT + - NULLIF ( 64, + 86 + 40 ) * - NULLIF ( ( + 27 ), - - 36 * - ( 43 ) )
----
1728

query I rowsort
SELECT + 37 + + 96
----
133

query II rowsort
SELECT ALL 47 AS col2, COALESCE ( + 42, + - 42 * + - ( 24 ) )
----
47
42

onlyif mysql # aggregate syntax: 
query II rowsort label-933
SELECT ALL 69 AS col2, MIN( 61 )
----
69
61

skipif mysql # not compatible
query II rowsort label-933
SELECT ALL 69 AS col2, MIN ( 61 )
----
69
61

query II rowsort
SELECT ALL + + 14 + - 33 + - + 12, 22 + 39 + 45 + + 9 + - 6 col1
----
-31
109

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT + 90 * - NULLIF ( - - 87, + COUNT( * ) * - 85 ) * + - ( - 2 ) - 78 AS col0
----
-15738

skipif mysql # not compatible
query I rowsort label-935
SELECT + 90 * - NULLIF ( - - 87, + COUNT ( * ) * - 85 ) * + - ( - 2 ) - 78 AS col0
----
-15738

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT ALL - 22 * + 40 + - COUNT( * ) * - 78 + - 59
----
-861

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL - 22 * + 40 + - COUNT ( * ) * - 78 + - 59
----
-861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-937
SELECT DISTINCT 33 - - ( + 77 ) + - - 28 * + 45 + - CAST( ( 84 ) AS SIGNED ) * 82 / - ( 62 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT 33 - - ( + 77 ) + - - 28 * + 45 + - CAST ( ( 84 ) AS INTEGER ) * 82 / - ( 62 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 60 - ( - 27 ) AS col1
----
87

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

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

query II rowsort
SELECT + 56 * - 60 AS col1, + 10 * - + 91 col1
----
-3360
-910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-941
SELECT ALL SUM( - - 73 ) * - 65 + + - 20 + AVG ( DISTINCT - - 27 ) + - 48 * - + 50 + + CAST( NULL AS SIGNED ) + 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL SUM ( - - 73 ) * - 65 + + - 20 + AVG ( DISTINCT - - 27 ) + - 48 * - + 50 + + CAST ( NULL AS INTEGER ) + 19 col1
----
NULL

query I rowsort
SELECT + ( + 3 ) + + 57
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT - NULLIF ( - 90, - COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-943
SELECT - NULLIF ( - 90, - COUNT ( * ) )
----
90

query I rowsort
SELECT + 20 * 28
----
560

query II rowsort
SELECT ( 6 ) AS col2, + ( - 47 ) * + + 22 col2
----
6
-1034

query I rowsort
SELECT + 13 + + - 15 AS col0
----
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT - SUM( DISTINCT - 26 ) + - - 36 + + 5
----
67

skipif mysql # not compatible
query I rowsort label-948
SELECT - SUM ( DISTINCT - 26 ) + - - 36 + + 5
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-949
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + 88 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + 88 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-950
SELECT ( - 11 ) AS col1, + MIN( 77 ) DIV 21 + 71
----
-11
74

skipif mysql # not compatible
query II rowsort label-950
SELECT ( - 11 ) AS col1, + MIN ( 77 ) / 21 + 71
----
-11
74

onlyif mysql # DIV for integer division: 
query I rowsort label-951
SELECT - ( - 36 ) DIV - + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-951
SELECT - ( - 36 ) / - + 89 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-952
SELECT ALL - 61 * - + 60 + COALESCE ( 14, 19, + NULLIF ( - 97, - 15 ) ) * + + 93 - + 13 DIV + 64 - - - COUNT( * ) AS col1
----
4961

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL - 61 * - + 60 + COALESCE ( 14, 19, + NULLIF ( - 97, - 15 ) ) * + + 93 - + 13 / + 64 - - - COUNT ( * ) AS col1
----
4961

query I rowsort
SELECT + 29 * + - 22 + - 74 AS col1
----
-712

onlyif mysql # DIV for integer division: 
query I rowsort label-954
SELECT - 35 DIV + 7 + - + ( + 64 ) * - 76
----
4859

skipif mysql # not compatible
query I rowsort label-954
SELECT - 35 / + 7 + - + ( + 64 ) * - 76
----
4859

query I rowsort
SELECT ALL - 95 * - + 90 + + ( 78 )
----
8628

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT DISTINCT - 28 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT - 28 / - 76
----
0

query II rowsort
SELECT - ( - 25 ) AS col2, - 19
----
25
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT ALL 54 * + 95 + - COUNT( ALL - NULLIF ( 35, - + 95 - 11 ) )
----
5129

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL 54 * + 95 + - COUNT ( ALL - NULLIF ( 35, - + 95 - 11 ) )
----
5129

query I rowsort
SELECT + - 44 * 80 - + 94 + 3 * + 25
----
-3539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-960
SELECT DISTINCT + 58 * - 55 + 92 + 39 AS col2, COUNT( * ) * + CAST( + - 53 AS SIGNED ) * + COUNT( * ) AS col1
----
-3059
-53

skipif mysql # not compatible
query II rowsort label-960
SELECT DISTINCT + 58 * - 55 + 92 + 39 AS col2, COUNT ( * ) * + CAST ( + - 53 AS INTEGER ) * + COUNT ( * ) AS col1
----
-3059
-53

query I rowsort
SELECT - - NULLIF ( + + 83, - 34 + + + 28 + - + 3 * - 96 ) * - 54
----
-4482

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT ALL + 82 * + - 13 * + SUM( DISTINCT - 4 ) * + CASE - 73 WHEN - CASE + ( + 97 ) WHEN + 74 THEN NULL ELSE + COALESCE ( - - 92, - AVG ( DISTINCT + 18 ) + - - COUNT( * ) * + ( 35 ) * + + 80 - + + 74 + - - 88 * - 17 * - 45 + + - COUNT( * ) / + 33 + - + 74 ) * COUNT( * ) * + - 19 - CASE + 89 WHEN + 14 THEN - COALESCE ( + ( + ( - - 78 ) ), - COUNT( * ) * 64 ) END + 23 / COUNT( * ) END THEN - ( - 60 ) ELSE NULL END - + ( + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL + 82 * + - 13 * + SUM ( DISTINCT - 4 ) * + CASE - 73 WHEN - CASE + ( + 97 ) WHEN + 74 THEN NULL ELSE + COALESCE ( - - 92, - AVG ( DISTINCT + 18 ) + - - COUNT ( * ) * + ( 35 ) * + + 80 - + + 74 + - - 88 * - 17 * - 45 + + - COUNT ( * ) / + 33 + - + 74 ) * COUNT ( * ) * + - 19 - CASE + 89 WHEN + 14 THEN - COALESCE ( + ( + ( - - 78 ) ), - COUNT ( * ) * 64 ) END + 23 / COUNT ( * ) END THEN - ( - 60 ) ELSE NULL END - + ( + 11 )
----
NULL

query II rowsort
SELECT DISTINCT 99 AS col1, - 96 AS col2
----
99
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT - 50 + ( SUM( 81 ) )
----
31

skipif mysql # not compatible
query I rowsort label-964
SELECT - 50 + ( SUM ( 81 ) )
----
31

query I rowsort
SELECT + 56 * - + 70
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT - 67 * COUNT( * ) * + 76
----
-5092

skipif mysql # not compatible
query I rowsort label-966
SELECT - 67 * COUNT ( * ) * + 76
----
-5092

query I rowsort
SELECT + 49 + NULLIF ( - - 51, + + 66 ) + - - 52 * - 65 col0
----
-3280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-968
SELECT ALL 14 DIV + COALESCE ( COUNT( * ), - NULLIF ( + 66, CASE - COUNT( * ) WHEN 98 THEN - + 56 WHEN + + NULLIF ( + 12, + MIN( ALL + 55 ) ) + - + 40 THEN - 28 * - 76 + + - 35 + - 10 - 43 END ) )
----
14

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL 14 / + COALESCE ( COUNT ( * ), - NULLIF ( + 66, CASE - COUNT ( * ) WHEN 98 THEN - + 56 WHEN + + NULLIF ( + 12, + MIN ( ALL + 55 ) ) + - + 40 THEN - 28 * - 76 + + - 35 + - 10 - 43 END ) )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-969
SELECT 16 DIV - COUNT( * ) * COUNT( * ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-969
SELECT 16 / - COUNT ( * ) * COUNT ( * ) col0
----
-16

query I rowsort
SELECT ALL 32 * + 16 AS col0
----
512

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT DISTINCT - 30 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT - 30 / 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-972
SELECT 35 + - + COUNT( * ) * + 84 - - COALESCE ( + - ( + - 36 ), - + 1 ) * CAST( NULL AS DECIMAL ) * + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-972
SELECT 35 + - + COUNT ( * ) * + 84 - - COALESCE ( + - ( + - 36 ), - + 1 ) * CAST ( NULL AS REAL ) * + 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT ALL 78 * COALESCE ( + COUNT( DISTINCT + 27 ), - ( - 95 ) )
----
78

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL 78 * COALESCE ( + COUNT ( DISTINCT + 27 ), - ( - 95 ) )
----
78

query I rowsort
SELECT 41 * - + 91 AS col2
----
-3731

onlyif mysql # aggregate syntax: 
query II rowsort label-975
SELECT DISTINCT - 83, + CASE - 56 WHEN + 56 / + 11 + 15 THEN + COALESCE ( + - COUNT( * ), - 75 ) + + - ( - ( - + 54 ) ) WHEN ( - COUNT( DISTINCT - 14 ) ) * 18 * - + 17 / - + 47 THEN MIN( 56 ) END AS col0
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-975
SELECT DISTINCT - 83, + CASE - 56 WHEN + 56 / + 11 + 15 THEN + COALESCE ( + - COUNT ( * ), - 75 ) + + - ( - ( - + 54 ) ) WHEN ( - COUNT ( DISTINCT - 14 ) ) * 18 * - + 17 / - + 47 THEN MIN ( 56 ) END AS col0
----
-83
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-976
SELECT ALL CAST( - COALESCE ( + 2, - ( - 82 ) * - - COUNT( * ) - - + 82 ) AS SIGNED ) + - - 56
----
54

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL CAST ( - COALESCE ( + 2, - ( - 82 ) * - - COUNT ( * ) - - + 82 ) AS INTEGER ) + - - 56
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT ( COUNT( * ) ) * - COALESCE ( + 73, ( + 83 ) ) * 68 * + - 43 * + - 97
----
-20704844

skipif mysql # not compatible
query I rowsort label-977
SELECT ( COUNT ( * ) ) * - COALESCE ( + 73, ( + 83 ) ) * 68 * + - 43 * + - 97
----
-20704844

query I rowsort
SELECT ALL - 79 + - 62 + 79 AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-979
SELECT ALL + COUNT( DISTINCT - 92 ) + - AVG ( + 0 ) + - CAST( NULL AS SIGNED ) AS col2, 94 + - 6 - + 13 AS col1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-979
SELECT ALL + COUNT ( DISTINCT - 92 ) + - AVG ( + 0 ) + - CAST ( NULL AS INTEGER ) AS col2, 94 + - 6 - + 13 AS col1
----
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT DISTINCT - - SUM( DISTINCT + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT - - SUM ( DISTINCT + 83 )
----
83

query I rowsort
SELECT ALL - 98 + + ( - + 4 ) AS col0
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT 93 * - CAST( - + 35 AS SIGNED ) + + 39 + COUNT( * ) * - 44 - + CAST( NULL AS SIGNED ) * + 31 * + 54 * + ( - ( - NULLIF ( - - 48, 10 ) ) ) * + 14 / - - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-982
SELECT 93 * - CAST ( - + 35 AS INTEGER ) + + 39 + COUNT ( * ) * - 44 - + CAST ( NULL AS INTEGER ) * + 31 * + 54 * + ( - ( - NULLIF ( - - 48, 10 ) ) ) * + 14 / - - 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT ALL 12 + - 28 DIV + 14 - - + 69
----
79

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL 12 + - 28 / + 14 - - + 69
----
79

query I rowsort
SELECT DISTINCT - + 21 col0
----
-21

query I rowsort
SELECT ALL 39 + 79
----
118

query I rowsort
SELECT 25 + + 4 + + 4 AS col1
----
33

query II rowsort
SELECT + 64 col1, + 25 + - 95 AS col0
----
64
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT COALESCE ( + + 92, + MAX( ALL + 36 ), + 43 ) - + ( 79 ) + - - 19 * + + 55 + + 87
----
1145

skipif mysql # not compatible
query I rowsort label-988
SELECT COALESCE ( + + 92, + MAX ( ALL + 36 ), + 43 ) - + ( 79 ) + - - 19 * + + 55 + + 87
----
1145

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL - CASE + - 42 WHEN + CASE + COUNT( ALL 90 ) WHEN + 92 * - ( + 60 ) - - 42 THEN - 40 + - 1 + + 4 / 84 ELSE NULL END + + 53 THEN 47 * - - 10 END * + + NULLIF ( + 9, 2 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL - CASE + - 42 WHEN + CASE + COUNT ( ALL 90 ) WHEN + 92 * - ( + 60 ) - - 42 THEN - 40 + - 1 + + 4 / 84 ELSE NULL END + + 53 THEN 47 * - - 10 END * + + NULLIF ( + 9, 2 ) AS col0
----
NULL

query I rowsort
SELECT ( + 88 ) * - 50
----
-4400

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

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

query I rowsort
SELECT DISTINCT 23 - + + 91 + 37 - 35 AS col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT ALL - + 39 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL - + 39 / 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT ALL - + 22 - - CASE - + 33 WHEN + 3 + 21 / + 16 + 65 * AVG ( ALL 37 ) * + + MIN( DISTINCT - 41 ) + COUNT( * ) * + 71 THEN NULL ELSE + + 66 * - 88 END
----
-5830

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL - + 22 - - CASE - + 33 WHEN + 3 + 21 / + 16 + 65 * AVG ( ALL 37 ) * + + MIN ( DISTINCT - 41 ) + COUNT ( * ) * + 71 THEN NULL ELSE + + 66 * - 88 END
----
-5830

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT - + 82 * + 14 * 86 + - MIN( DISTINCT + 41 )
----
-98769

skipif mysql # not compatible
query I rowsort label-996
SELECT - + 82 * + 14 * 86 + - MIN ( DISTINCT + 41 )
----
-98769

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT 73 * COUNT( DISTINCT - 84 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-997
SELECT 73 * COUNT ( DISTINCT - 84 ) AS col0
----
73

query I rowsort
SELECT 17 * - + 73 AS col2
----
-1241

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT DISTINCT + SUM( - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT + SUM ( - 93 ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-1000
SELECT ALL 48 AS col0, COUNT( * )
----
48
1

skipif mysql # not compatible
query II rowsort label-1000
SELECT ALL 48 AS col0, COUNT ( * )
----
48
1

query I rowsort
SELECT 36 + + + 98 AS col1
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT 6 * ( - 77 ) / + 87 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT 6 * ( - 77 ) / + 87 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 18 AS col1, - 65
----
18
-65

query I rowsort
SELECT DISTINCT - ( - 66 ) * 72 - + - 88 AS col2
----
4840

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1005
SELECT ALL - CAST( NULL AS DECIMAL ) * + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL - CAST ( NULL AS REAL ) * + 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1006
SELECT ALL 67 + - COUNT( * ) * COALESCE ( - + COUNT( * ), + 14 DIV 87 - - 43, + - 71 * + 35 + - + 61 DIV + 54 * - 75 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL 67 + - COUNT ( * ) * COALESCE ( - + COUNT ( * ), + 14 / 87 - - 43, + - 71 * + 35 + - + 61 / + 54 * - 75 ) AS col1
----
68

query II rowsort
SELECT DISTINCT 20, - 7 AS col0
----
20
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1008
SELECT DISTINCT + CAST( + CASE 46 WHEN 12 * + - 23 / - SUM( ALL 82 ) + + + 68 * - 75 - - 6 THEN NULL WHEN + ( + 69 ) THEN + + 0 * - 14 ELSE + CASE - 82 WHEN - COALESCE ( + 64, + COUNT( * ), COUNT( * ) ) THEN + + ( 76 ) WHEN 15 * - SUM( + 99 ) + + + 29 THEN NULL ELSE - 6 END / 96 + + - 75 END AS SIGNED ) + + 75
----
0

skipif mysql # not compatible
query I rowsort label-1008
SELECT DISTINCT + CAST ( + CASE 46 WHEN 12 * + - 23 / - SUM ( ALL 82 ) + + + 68 * - 75 - - 6 THEN NULL WHEN + ( + 69 ) THEN + + 0 * - 14 ELSE + CASE - 82 WHEN - COALESCE ( + 64, + COUNT ( * ), COUNT ( * ) ) THEN + + ( 76 ) WHEN 15 * - SUM ( + 99 ) + + + 29 THEN NULL ELSE - 6 END / 96 + + - 75 END AS INTEGER ) + + 75
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1009
SELECT 51 DIV - COUNT( * ) AS col2, + 26 AS col0
----
-51
26

skipif mysql # not compatible
query II rowsort label-1009
SELECT 51 / - COUNT ( * ) AS col2, + 26 AS col0
----
-51
26

query I rowsort
SELECT ALL - ( - 77 ) + + + 11
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1011
SELECT ALL + 53 + + - 36 - CAST( NULL AS DECIMAL ) + - 82 / - CAST( + NULLIF ( + 25, + CASE 51 WHEN + 46 * NULLIF ( + COUNT( * ), - + 54 - + + ( + + 92 ) / + MAX( - - 41 ) ) + + COUNT( * ) THEN NULL WHEN - 82 THEN - 8 * + 54 * 57 * + COUNT( * ) WHEN + 77 * + MIN( DISTINCT - 61 ) + - + CASE + - COUNT( * ) WHEN - ( + 30 ) THEN NULL ELSE + - 86 END THEN NULL END + + 25 * - 89 + + COUNT( * ) - + 94 / + 92 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + 53 + + - 36 - CAST ( NULL AS REAL ) + - 82 / - CAST ( + NULLIF ( + 25, + CASE 51 WHEN + 46 * NULLIF ( + COUNT ( * ), - + 54 - + + ( + + 92 ) / + MAX ( - - 41 ) ) + + COUNT ( * ) THEN NULL WHEN - 82 THEN - 8 * + 54 * 57 * + COUNT ( * ) WHEN + 77 * + MIN ( DISTINCT - 61 ) + - + CASE + - COUNT ( * ) WHEN - ( + 30 ) THEN NULL ELSE + - 86 END THEN NULL END + + 25 * - 89 + + COUNT ( * ) - + 94 / + 92 ) AS INTEGER )
----
NULL

query I rowsort
SELECT 25 - - 92 AS col0
----
117

query II rowsort
SELECT 61 AS col2, + 94 + + 88 + - 58 AS col0
----
61
124

query I rowsort
SELECT 35 * - 57
----
-1995

query II rowsort
SELECT + 93 AS col2, + 43
----
93
43

query I rowsort
SELECT ALL 9 * 13 + - ( 2 ) * - - 98
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1017
SELECT + 21 DIV COUNT( * ) * + - 54 + COUNT( * ) AS col2
----
-1133

skipif mysql # not compatible
query I rowsort label-1017
SELECT + 21 / COUNT ( * ) * + - 54 + COUNT ( * ) AS col2
----
-1133

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

skipif mysql # not compatible
query I rowsort label-1018
SELECT 60 * - COUNT ( * )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT ALL - 33 DIV + - 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL - 33 / + - 45 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1020
SELECT 14 + + + ( - + CAST( - 70 AS SIGNED ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1020
SELECT 14 + + + ( - + CAST ( - 70 AS INTEGER ) ) AS col0
----
84

query II rowsort
SELECT ALL - 73, 17 + + - 4 AS col2
----
-73
13

query I rowsort
SELECT ALL 10 + + ( + ( - - 41 ) ) - - - 98 + 6 * 79
----
427

query I rowsort
SELECT + 79 * + 68 * 74 AS col1
----
397528

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL - MAX( DISTINCT - ( 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL - MAX ( DISTINCT - ( 35 ) )
----
35

query II rowsort
SELECT + 92 col2, 37 AS col0
----
92
37

query II rowsort
SELECT DISTINCT - 81, - 53 AS col2
----
-81
-53

query I rowsort
SELECT ALL - COALESCE ( - 92, 80 * - 2 ) col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT DISTINCT - COUNT( * ) - - MIN( DISTINCT - ( + 55 ) ) + - 17
----
-73

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT - COUNT ( * ) - - MIN ( DISTINCT - ( + 55 ) ) + - 17
----
-73

query I rowsort
SELECT DISTINCT + 68 - - + 76
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1030
SELECT DISTINCT - CAST( + CASE - + 89 WHEN + 69 + - 52 + + 32 * - + 10 * 81 * - - 93 THEN + 47 WHEN - 43 / - MAX( - 8 ) THEN NULL END AS SIGNED ) * + 48 + + - AVG ( DISTINCT 17 ) AS col1, CASE + 91 WHEN MAX( + 26 ) THEN NULL ELSE + 49 END + + 96 * - 59
----
NULL
-5615

skipif mysql # not compatible
query II rowsort label-1030
SELECT DISTINCT - CAST ( + CASE - + 89 WHEN + 69 + - 52 + + 32 * - + 10 * 81 * - - 93 THEN + 47 WHEN - 43 / - MAX ( - 8 ) THEN NULL END AS INTEGER ) * + 48 + + - AVG ( DISTINCT 17 ) AS col1, CASE + 91 WHEN MAX ( + 26 ) THEN NULL ELSE + 49 END + + 96 * - 59
----
NULL
-5615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1031
SELECT ALL - + CASE + ( + 49 ) WHEN - + 77 THEN NULL ELSE - + 42 - + - CASE + CASE - 86 WHEN + COALESCE ( 56, - 5 + - MIN( ALL 43 ) + + 66 + + 76 * + 80 * - + 20 * CAST( 16 AS SIGNED ) - COUNT( * ) * 6 ) * 3 * COUNT( * ) * + COUNT( * ) - + - ( + COUNT( * ) ) * + - 26 THEN - 53 * + 57 / 94 + - 72 END WHEN - + CAST( NULL AS DECIMAL ) + CASE WHEN NOT MIN( + 94 ) IS NULL THEN NULL ELSE 1 END THEN - 51 * + 20 WHEN 1 THEN ( 50 ) ELSE NULL END * - 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL - + CASE + ( + 49 ) WHEN - + 77 THEN NULL ELSE - + 42 - + - CASE + CASE - 86 WHEN + COALESCE ( 56, - 5 + - MIN ( ALL 43 ) + + 66 + + 76 * + 80 * - + 20 * CAST ( 16 AS INTEGER ) - COUNT ( * ) * 6 ) * 3 * COUNT ( * ) * + COUNT ( * ) - + - ( + COUNT ( * ) ) * + - 26 THEN - 53 * + 57 / 94 + - 72 END WHEN - + CAST ( NULL AS REAL ) + CASE WHEN NOT MIN ( + 94 ) IS NULL THEN NULL ELSE 1 END THEN - 51 * + 20 WHEN 1 THEN ( 50 ) ELSE NULL END * - 85 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT - 87 * - NULLIF ( + - COUNT( * ), - + 8 ) * 21 - - COUNT( * ) - + 30 + - 21
----
-1877

skipif mysql # not compatible
query I rowsort label-1033
SELECT - 87 * - NULLIF ( + - COUNT ( * ), - + 8 ) * 21 - - COUNT ( * ) - + 30 + - 21
----
-1877

query I rowsort
SELECT + 79 * + - ( - NULLIF ( + 94, - 11 + - 31 ) ) * + + 64 AS col1
----
475264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1035
SELECT + - CAST( NULL AS SIGNED ) * COALESCE ( - ( + 73 ), - + 31 + ( + 65 ) - 18 + + + COUNT( * ) ) - ( 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1035
SELECT + - CAST ( NULL AS INTEGER ) * COALESCE ( - ( + 73 ), - + 31 + ( + 65 ) - 18 + + + COUNT ( * ) ) - ( 21 )
----
NULL

query I rowsort
SELECT + - COALESCE ( - - 23, 58 ) AS col1
----
-23

query I rowsort
SELECT DISTINCT 68 * + NULLIF ( 63, + + 16 )
----
4284

onlyif mysql # aggregate syntax: 
query II rowsort label-1038
SELECT ALL COUNT( DISTINCT 52 ), 26 AS col0
----
1
26

skipif mysql # not compatible
query II rowsort label-1038
SELECT ALL COUNT ( DISTINCT 52 ), 26 AS col0
----
1
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1039
SELECT ALL 61 + - + COALESCE ( + + ( - 49 ), - 17 + 38 + + ( - ( + + 5 ) ) - + 26 DIV 48, - - 88 ) + - + COUNT( * ) col1
----
109

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL 61 + - + COALESCE ( + + ( - 49 ), - 17 + 38 + + ( - ( + + 5 ) ) - + 26 / 48, - - 88 ) + - + COUNT ( * ) col1
----
109

query I rowsort
SELECT - 73 - - + 53 + + 43
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT ALL NULLIF ( - 65, + MAX( ALL COALESCE ( + 79, 25, + 90 ) ) * - - 59 )
----
-65

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL NULLIF ( - 65, + MAX ( ALL COALESCE ( + 79, 25, + 90 ) ) * - - 59 )
----
-65

query I rowsort
SELECT - 90 * + - 81 * - 95 AS col0
----
-692550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1043
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 97 * - COUNT( * ), 13 * - ( - 99 ) AS col1
----
NULL
1287

skipif mysql # not compatible
query II rowsort label-1043
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 97 * - COUNT ( * ), 13 * - ( - 99 ) AS col1
----
NULL
1287

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT - CASE - 72 WHEN - + MAX( DISTINCT - 91 ) / ( + 34 ) * - MAX( DISTINCT - 36 ) + ( + 1 ) + 26 THEN - ( ( - 34 ) ) * - 29 * 87 + + 64 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT - CASE - 72 WHEN - + MAX ( DISTINCT - 91 ) / ( + 34 ) * - MAX ( DISTINCT - 36 ) + ( + 1 ) + 26 THEN - ( ( - 34 ) ) * - 29 * 87 + + 64 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT ALL - 21 + + 36 * + CAST( AVG ( ALL - + 42 ) AS SIGNED ) AS col2
----
-1533

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL - 21 + + 36 * + CAST ( AVG ( ALL - + 42 ) AS INTEGER ) AS col2
----
-1533

query I rowsort
SELECT - 13 + - + 44
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT - COALESCE ( 55, - 42 + - - COUNT( * ), 62 ) - - 84
----
29

skipif mysql # not compatible
query I rowsort label-1047
SELECT - COALESCE ( 55, - 42 + - - COUNT ( * ), 62 ) - - 84
----
29

query I rowsort
SELECT ALL CASE 94 WHEN - - 80 / - 27 * ( + 82 ) THEN 78 + + 57 + - - 85 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 94 * + 57 * - - 75
----
-401850

query I rowsort
SELECT DISTINCT + 40 + 21
----
61

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

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

query I rowsort
SELECT ALL - 76 + - 23
----
-99

query I rowsort
SELECT ALL + 22 + - 14
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT DISTINCT - 67 * + SUM( + 71 )
----
-4757

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT - 67 * + SUM ( + 71 )
----
-4757

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT - - NULLIF ( - COUNT( * ), ( 71 ) + - 56 / + + 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-1056
SELECT - - NULLIF ( - COUNT ( * ), ( 71 ) + - 56 / + + 35 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT ALL + 11 * - COUNT( * ) - - 64 + COUNT( * ) col1
----
54

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL + 11 * - COUNT ( * ) - - 64 + COUNT ( * ) col1
----
54

query I rowsort
SELECT + NULLIF ( - 38, + + 36 * - - 79 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1059
SELECT CASE - + ( - + 50 ) WHEN - 99 THEN + + 59 WHEN + 71 - - CAST( NULL AS DECIMAL ) / CAST( 9 AS SIGNED ) THEN NULL WHEN + ( + AVG ( ALL 81 ) ) THEN 60 ELSE NULL END * - ( + + 64 ) + + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT CASE - + ( - + 50 ) WHEN - 99 THEN + + 59 WHEN + 71 - - CAST ( NULL AS REAL ) / CAST ( 9 AS INTEGER ) THEN NULL WHEN + ( + AVG ( ALL 81 ) ) THEN 60 ELSE NULL END * - ( + + 64 ) + + 13 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT - + ( - 80 ) * ( + 57 ) DIV 96 - - 34 col0
----
81

skipif mysql # not compatible
query I rowsort label-1060
SELECT - + ( - 80 ) * ( + 57 ) / 96 - - 34 col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT + + 27 * + - ( + - COUNT( * ) ) * + COUNT( * ) * SUM( ALL 13 ) * - 26 AS col2
----
-9126

skipif mysql # not compatible
query I rowsort label-1061
SELECT + + 27 * + - ( + - COUNT ( * ) ) * + COUNT ( * ) * SUM ( ALL 13 ) * - 26 AS col2
----
-9126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1062
SELECT ALL + + NULLIF ( - 38, + - 57 * - ( + CAST( + ( - - COUNT( - + 93 ) ) AS SIGNED ) ) + - - 44 * - 67 - + - 90 )
----
-38

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL + + NULLIF ( - 38, + - 57 * - ( + CAST ( + ( - - COUNT ( - + 93 ) ) AS INTEGER ) ) + - - 44 * - 67 - + - 90 )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT + 39 DIV + ( + 52 ) + ( - + 7 ) col2
----
-7

skipif mysql # not compatible
query I rowsort label-1063
SELECT + 39 / + ( + 52 ) + ( - + 7 ) col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1064
SELECT DISTINCT + 88 DIV + - ( - 66 ) + + NULLIF ( + 19, - + COALESCE ( ( + COUNT( + 22 ) ), 56 ) ) + - ( - 81 ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT + 88 / + - ( - 66 ) + + NULLIF ( + 19, - + COALESCE ( ( + COUNT ( + 22 ) ), 56 ) ) + - ( - 81 ) AS col2
----
101

query I rowsort
SELECT DISTINCT ( - - 58 ) * - + 36 + - 86 - - 72 col1
----
-2102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1066
SELECT DISTINCT + COALESCE ( + 87, - 5 * - 29, + 85 - - CAST( + COUNT( * ) AS SIGNED ) + - 42 - - - 34 * - ( - 13 ) DIV + 47 + - 63 * + - 88 * - 13 + - CAST( NULL AS SIGNED ) )
----
87

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT + COALESCE ( + 87, - 5 * - 29, + 85 - - CAST ( + COUNT ( * ) AS INTEGER ) + - 42 - - - 34 * - ( - 13 ) / + 47 + - 63 * + - 88 * - 13 + - CAST ( NULL AS INTEGER ) )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1067
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - - COUNT( * ) * + 85 col2, 13 AS col1
----
NULL
13

skipif mysql # not compatible
query II rowsort label-1067
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - - COUNT ( * ) * + 85 col2, 13 AS col1
----
NULL
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1068
SELECT DISTINCT + 39 * + NULLIF ( - 82, NULLIF ( - COUNT( ALL - CAST( + 0 AS SIGNED ) ), + 70 ) * - 76 ) * + - ( - 56 ) + - 22 AS col2
----
-179110

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT + 39 * + NULLIF ( - 82, NULLIF ( - COUNT ( ALL - CAST ( + 0 AS INTEGER ) ), + 70 ) * - 76 ) * + - ( - 56 ) + - 22 AS col2
----
-179110

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT + - 0 * + + 14 * 61 + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1069
SELECT + - 0 * + + 14 * 61 + + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1070
SELECT - + 89 + 24 AS col1, - ( - 73 ) * 27 * + - CAST( 1 AS SIGNED ) - CAST( NULL AS SIGNED ) AS col2
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-1070
SELECT - + 89 + 24 AS col1, - ( - 73 ) * 27 * + - CAST ( 1 AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col2
----
-65
NULL

query I rowsort
SELECT - + 31 * - + 52
----
1612

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT COUNT( DISTINCT - 50 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1072
SELECT COUNT ( DISTINCT - 50 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1073
SELECT 14 * + + 7 + 30 - + 5 - - + ( + + CAST( 67 AS SIGNED ) ) + - 7 - + - 78 * + 23 * - CAST( NULL AS SIGNED ) / + 97 - + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1073
SELECT 14 * + + 7 + 30 - + 5 - - + ( + + CAST ( 67 AS INTEGER ) ) + - 7 - + - 78 * + 23 * - CAST ( NULL AS INTEGER ) / + 97 - + 11 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 46 * + 35 AS col1
----
1610

query I rowsort
SELECT + 34 + - 9 + + - 34 * - - 94
----
-3171

query I rowsort
SELECT ALL - 43 * + 2 col1
----
-86

query I rowsort
SELECT ALL + 78 * + - 90 + + 15
----
-7005

query II rowsort
SELECT + 97 + - - 1 + - + 82 AS col2, - 16 * - 30 * + 75 AS col2
----
16
36000

query I rowsort
SELECT ALL 85 * + - ( + - 90 ) AS col2
----
7650

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL + COUNT( * ) * + + 58 + + 52
----
110

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL + COUNT ( * ) * + + 58 + + 52
----
110

query I rowsort
SELECT + 37 * + - 73 AS col2
----
-2701

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1083
SELECT + 55 + + + NULLIF ( - CAST( 27 AS SIGNED ), + + 47 - + 14 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1083
SELECT + 55 + + + NULLIF ( - CAST ( 27 AS INTEGER ), + + 47 - + 14 ) AS col1
----
28

query I rowsort
SELECT ALL + 53 + - 4
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1085
SELECT ALL ( COALESCE ( + + 57, CAST( NULL AS SIGNED ) * + 35, + + 54 ) ) * - 53
----
-3021

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL ( COALESCE ( + + 57, CAST ( NULL AS INTEGER ) * + 35, + + 54 ) ) * - 53
----
-3021

query I rowsort
SELECT ALL - 90 - - 78 AS col1
----
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-1087
SELECT 94, + 39 DIV + 21 AS col1
----
94
1

skipif mysql # not compatible
query II rowsort label-1087
SELECT 94, + 39 / + 21 AS col1
----
94
1

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

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL NULLIF ( 61, - - ( - CAST ( NULL AS INTEGER ) ) )
----
61

query I rowsort
SELECT DISTINCT 7 - + 93 + + 16 * 22 AS col1
----
266

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

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL + COUNT ( * ) / - 64 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL 42 - - 40 * + 59 + NULLIF ( - COUNT( * ), 67 * + 1 - - COUNT( * ) ) + - COUNT( * ) col0
----
2400

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL 42 - - 40 * + 59 + NULLIF ( - COUNT ( * ), 67 * + 1 - - COUNT ( * ) ) + - COUNT ( * ) col0
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT DISTINCT CASE + - 60 WHEN MIN( DISTINCT - 53 ) * + 97 THEN - 79 / + 51 * + 8 + - + 17 WHEN - 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT CASE + - 60 WHEN MIN ( DISTINCT - 53 ) * + 97 THEN - 79 / + 51 * + 8 + - + 17 WHEN - 89 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT + - MAX( DISTINCT + - 19 ) - - MAX( 8 )
----
27

skipif mysql # not compatible
query I rowsort label-1094
SELECT + - MAX ( DISTINCT + - 19 ) - - MAX ( 8 )
----
27

query II rowsort
SELECT - 4, 43 AS col1
----
-4
43

query I rowsort
SELECT ALL + 59 * + - 56
----
-3304

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT - 99 / 97 + - - ( + - NULLIF ( + 83, - ( + 85 ) ) ) + - CASE - 48 WHEN + 49 THEN NULL WHEN + 91 THEN 39 WHEN + + COUNT( * ) * + 41 THEN NULL WHEN + 53 THEN NULL ELSE NULL END / 92 + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1097
SELECT - 99 / 97 + - - ( + - NULLIF ( + 83, - ( + 85 ) ) ) + - CASE - 48 WHEN + 49 THEN NULL WHEN + 91 THEN 39 WHEN + + COUNT ( * ) * + 41 THEN NULL WHEN + 53 THEN NULL ELSE NULL END / 92 + 98
----
NULL

query I rowsort
SELECT - 15 * - 37 * - 30 + + 25 + + + 71 col0
----
-16554

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ALL + NULLIF ( - 76, - ( + 92 ) ) * + 77 - COUNT( * ) * + - 84 AS col0
----
-5768

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL + NULLIF ( - 76, - ( + 92 ) ) * + 77 - COUNT ( * ) * + - 84 AS col0
----
-5768

query I rowsort
SELECT ALL + 9 * 10 AS col1
----
90

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

skipif mysql # not compatible
query I rowsort label-1101
SELECT - - 4 + - 59 + + - COUNT ( * ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-1102
SELECT + - 79 AS col0, - 81 + + ( - COUNT( * ) ) col2
----
-79
-82

skipif mysql # not compatible
query II rowsort label-1102
SELECT + - 79 AS col0, - 81 + + ( - COUNT ( * ) ) col2
----
-79
-82

query I rowsort
SELECT - 74 + 94 + - - 24 + - - 57
----
101

query I rowsort
SELECT ALL - 13 + + + 22 AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT ALL + MIN( DISTINCT + + 16 ) DIV COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL + MIN ( DISTINCT + + 16 ) / COUNT ( * )
----
16

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

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

query I rowsort
SELECT 35 * - NULLIF ( 41, ( + 46 ) )
----
-1435

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT ALL - CASE - 84 WHEN + 84 * - + 63 THEN - 92 WHEN - MAX( DISTINCT + 76 ) + + 26 THEN CASE + 20 WHEN ( 74 ) / - + COUNT( * ) * 9 THEN NULL ELSE - COUNT( ALL 90 ) END END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL - CASE - 84 WHEN + 84 * - + 63 THEN - 92 WHEN - MAX ( DISTINCT + 76 ) + + 26 THEN CASE + 20 WHEN ( 74 ) / - + COUNT ( * ) * 9 THEN NULL ELSE - COUNT ( ALL 90 ) END END + - COUNT ( * )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1110
SELECT ALL + COALESCE ( - 95, - AVG ( + + 11 ), + ( 73 ) * - 7 + - ( + 4 ), - 19 ) + + MAX( + + 28 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL + COALESCE ( - 95, - AVG ( + + 11 ), + ( 73 ) * - 7 + - ( + 4 ), - 19 ) + + MAX ( + + 28 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1111
SELECT - COALESCE ( 80, - 27 DIV - CASE - 80 WHEN + 57 - 78 + - 53 THEN NULL ELSE + 63 + 46 END + - 68 ) * - - SUM( DISTINCT - ( - 17 ) ) - + + 62 AS col2, - 62 * 54 + - - COUNT( * )
----
-1422
-3347

skipif mysql # not compatible
query II rowsort label-1111
SELECT - COALESCE ( 80, - 27 / - CASE - 80 WHEN + 57 - 78 + - 53 THEN NULL ELSE + 63 + 46 END + - 68 ) * - - SUM ( DISTINCT - ( - 17 ) ) - + + 62 AS col2, - 62 * 54 + - - COUNT ( * )
----
-1422
-3347

query I rowsort
SELECT DISTINCT - ( - - 89 ) AS col1
----
-89

query I rowsort
SELECT 25 - + 63 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT 70 - + 0 + + NULLIF ( + 29, 77 ) * - SUM( 97 ) + + 13
----
-2730

skipif mysql # not compatible
query I rowsort label-1114
SELECT 70 - + 0 + + NULLIF ( + 29, 77 ) * - SUM ( 97 ) + + 13
----
-2730

query I rowsort
SELECT ALL 42 - + 97 * - 7 AS col1
----
721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1116
SELECT CAST( + 46 AS SIGNED ) * - - 99 - + 79
----
4475

skipif mysql # not compatible
query I rowsort label-1116
SELECT CAST ( + 46 AS INTEGER ) * - - 99 - + 79
----
4475

onlyif mysql # DIV for integer division: 
query I rowsort label-1117
SELECT ALL 59 DIV - - 96 * + + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL 59 / - - 96 * + + 72 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1118
SELECT 60 + - 25 AS col0, - 28 + 21 DIV + 30 * + MAX( - ( - 16 ) ) + + 35 AS col1
----
35
7

skipif mysql # not compatible
query II rowsort label-1118
SELECT 60 + - 25 AS col0, - 28 + 21 / + 30 * + MAX ( - ( - 16 ) ) + + 35 AS col1
----
35
7

query I rowsort
SELECT DISTINCT 94 * - 81 * - 99
----
753786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1120
SELECT - 64 + COUNT( * ) col0, COALESCE ( + + ( - 49 ), - ( - 7 ), + - NULLIF ( CAST( NULL AS SIGNED ), - 73 * - 18 * 28 ) * + 8 + - + 80 DIV + ( - - 38 ) + CASE NULLIF ( - + MIN( + + 21 ), + 25 ) WHEN + 69 * + - 89 THEN NULL WHEN + - COUNT( * ) DIV + 33 * + 83 THEN + 14 ELSE NULL END + - 11 * - + COUNT( * ) + 83 )
----
-63
-49

skipif mysql # not compatible
query II rowsort label-1120
SELECT - 64 + COUNT ( * ) col0, COALESCE ( + + ( - 49 ), - ( - 7 ), + - NULLIF ( CAST ( NULL AS INTEGER ), - 73 * - 18 * 28 ) * + 8 + - + 80 / + ( - - 38 ) + CASE NULLIF ( - + MIN ( + + 21 ), + 25 ) WHEN + 69 * + - 89 THEN NULL WHEN + - COUNT ( * ) / + 33 * + 83 THEN + 14 ELSE NULL END + - 11 * - + COUNT ( * ) + 83 )
----
-63
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT - 33 - + - COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-1121
SELECT - 33 - + - COUNT ( * ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT DISTINCT SUM( - 16 ) * + 15
----
-240

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT SUM ( - 16 ) * + 15
----
-240

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

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

query I rowsort
SELECT - 9 * 83 + + 51
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT NULLIF ( - 44, + - 77 + + COUNT( * ) * - + 72 * + - ( + + 1 ) + + + 92 )
----
-44

skipif mysql # not compatible
query I rowsort label-1125
SELECT NULLIF ( - 44, + - 77 + + COUNT ( * ) * - + 72 * + - ( + + 1 ) + + + 92 )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT 48 - + - CASE + 55 WHEN + ( + 11 ) THEN - + MAX( DISTINCT CAST( + 63 AS SIGNED ) ) END + + - 55 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT 48 - + - CASE + 55 WHEN + ( + 11 ) THEN - + MAX ( DISTINCT CAST ( + 63 AS INTEGER ) ) END + + - 55 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1127
SELECT ALL 5 + + + 14 DIV + + 29 * - + 92 col2, - 66 + + 71 + - - COUNT( * ) * - 48
----
5
-43

skipif mysql # not compatible
query II rowsort label-1127
SELECT ALL 5 + + + 14 / + + 29 * - + 92 col2, - 66 + + 71 + - - COUNT ( * ) * - 48
----
5
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1128
SELECT CAST( - + 52 AS SIGNED ) * - 31 + - 27
----
1585

skipif mysql # not compatible
query I rowsort label-1128
SELECT CAST ( - + 52 AS INTEGER ) * - 31 + - 27
----
1585

query I rowsort
SELECT 38 * + 31 + + + 25 AS col2
----
1203

query I rowsort
SELECT ALL + + 1 + - + 78
----
-77

query I rowsort
SELECT ALL + - 75 + - 82 AS col0
----
-157

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT NULLIF ( + - 18, + 60 * - - COUNT( * ) + + 11 ) - SUM( ALL - 60 )
----
42

skipif mysql # not compatible
query I rowsort label-1133
SELECT NULLIF ( + - 18, + 60 * - - COUNT ( * ) + + 11 ) - SUM ( ALL - 60 )
----
42

query I rowsort
SELECT + + NULLIF ( 40, + 90 )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1135
SELECT DISTINCT + COUNT( * ) * - CAST( + - COUNT( DISTINCT + ( + + 23 ) ) AS SIGNED ) AS col1
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1136
SELECT ALL - CASE - 6 WHEN + + 90 THEN + + 42 * + 89 * - 28 * 39 WHEN 83 * ( + + 81 ) * - - 63 + - 63 THEN + - 7 ELSE NULL END + - 29 + + 59 * 91 / - - NULLIF ( - + CAST( - 86 AS SIGNED ), + COUNT( * ) / - AVG ( ALL 63 ) * ( 12 ) * COUNT( * ) + 85 * ( ( - + 6 ) ) / 13 * - COUNT( * ) ) / + ( ( + 45 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL - CASE - 6 WHEN + + 90 THEN + + 42 * + 89 * - 28 * 39 WHEN 83 * ( + + 81 ) * - - 63 + - 63 THEN + - 7 ELSE NULL END + - 29 + + 59 * 91 / - - NULLIF ( - + CAST ( - 86 AS INTEGER ), + COUNT ( * ) / - AVG ( ALL 63 ) * ( 12 ) * COUNT ( * ) + 85 * ( ( - + 6 ) ) / 13 * - COUNT ( * ) ) / + ( ( + 45 ) )
----
NULL

query I rowsort
SELECT ALL - + 96 + + 43 * + - 87
----
-3837

query I rowsort
SELECT 45 + 84
----
129

query I rowsort
SELECT 16 + 19 AS col2
----
35

query I rowsort
SELECT 26 * - 39 + 0 AS col0
----
-1014

query I rowsort
SELECT 70 - - + 42 - + + 19
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT DISTINCT - SUM( - - 93 ) col1
----
-93

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT - SUM ( - - 93 ) col1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1143
SELECT 44 + - 9 * - + CAST( NULL AS SIGNED ) * + 74 + 54 + - - 89 * 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT 44 + - 9 * - + CAST ( NULL AS INTEGER ) * + 74 + 54 + - - 89 * 60 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL 96 * ( MAX( DISTINCT 19 ) ) * + 41
----
74784

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL 96 * ( MAX ( DISTINCT 19 ) ) * + 41
----
74784

onlyif mysql # DIV for integer division: 
query I rowsort label-1146
SELECT DISTINCT - 45 DIV + 20
----
-2

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT - 45 / + 20
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT DISTINCT - 36 DIV - 10
----
3

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT - 36 / - 10
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1148
SELECT 50 DIV COUNT( ALL 85 ) AS col1, 21 AS col2
----
50
21

skipif mysql # not compatible
query II rowsort label-1148
SELECT 50 / COUNT ( ALL 85 ) AS col1, 21 AS col2
----
50
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1149
SELECT 85 / + MIN( ALL + CASE 11 WHEN - + 85 THEN 40 WHEN + 22 THEN - 50 * 26 * - 47 ELSE NULL END ) / + 39 * + ( 47 ) AS col0, 2 + 75 * 84
----
NULL
6302

skipif mysql # not compatible
query II rowsort label-1149
SELECT 85 / + MIN ( ALL + CASE 11 WHEN - + 85 THEN 40 WHEN + 22 THEN - 50 * 26 * - 47 ELSE NULL END ) / + 39 * + ( 47 ) AS col0, 2 + 75 * 84
----
NULL
6302

query I rowsort
SELECT ALL - 18 * - + 41 AS col1
----
738

query I rowsort
SELECT ALL + 63 * - 85 AS col0
----
-5355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1152
SELECT MIN( + 46 ) + + 54 * - COUNT( * ) * - 16 / - CAST( NULL AS SIGNED ) * NULLIF ( + COALESCE ( + - 54, + - COUNT( * ) * + 52 + COUNT( * ) + 96 * - 49 + + ( + + 11 ) + - + 7 * - + 89 ), 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1152
SELECT MIN ( + 46 ) + + 54 * - COUNT ( * ) * - 16 / - CAST ( NULL AS INTEGER ) * NULLIF ( + COALESCE ( + - 54, + - COUNT ( * ) * + 52 + COUNT ( * ) + 96 * - 49 + + ( + + 11 ) + - + 7 * - + 89 ), 40 )
----
NULL

query I rowsort
SELECT DISTINCT + 73 * + 26 AS col1
----
1898

query I rowsort
SELECT ALL - CASE + 8 WHEN + 25 THEN 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT DISTINCT - COUNT( * ) * 79 * + 23 AS col1
----
-1817

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT - COUNT ( * ) * 79 * + 23 AS col1
----
-1817

query I rowsort
SELECT 83 + + 31 + + 33 + - 67 + - ( + - 10 ) * + 46
----
540

query II rowsort
SELECT - 67 AS col2, - 19
----
-67
-19

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1159
SELECT - 7 + + COALESCE ( + SUM( DISTINCT + - 44 ), 41 * + 79 ) * COUNT( * ) * + - COALESCE ( + 65, 79 * 18 ) AS col2, 56 col1
----
2853
56

skipif mysql # not compatible
query II rowsort label-1159
SELECT - 7 + + COALESCE ( + SUM ( DISTINCT + - 44 ), 41 * + 79 ) * COUNT ( * ) * + - COALESCE ( + 65, 79 * 18 ) AS col2, 56 col1
----
2853
56

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

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

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

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

query II rowsort
SELECT + - 27 * + ( + 45 ) AS col2, 19 AS col0
----
-1215
19

query I rowsort
SELECT + - 21 + 80 AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT ALL + COALESCE ( + + ( 85 ), + 63 DIV - ( + + 5 ), - - 73 ) + - 60 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL + COALESCE ( + + ( 85 ), + 63 / - ( + + 5 ), - - 73 ) + - 60 AS col0
----
25

query I rowsort
SELECT ALL - 83 * - 6 AS col1
----
498

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1166
SELECT - 52 DIV + + 89 + - 79, + CAST( + 94 AS SIGNED ) AS col2
----
-79
94

skipif mysql # not compatible
query II rowsort label-1166
SELECT - 52 / + + 89 + - 79, + CAST ( + 94 AS INTEGER ) AS col2
----
-79
94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT + + 0 DIV + - 81 - 10
----
-10

skipif mysql # not compatible
query I rowsort label-1168
SELECT + + 0 / + - 81 - 10
----
-10

query I rowsort
SELECT + 38 * + + 44 AS col2
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT 21 * - SUM( ALL + 74 ) + - 21 + - 37 + - 80 AS col1
----
-1692

skipif mysql # not compatible
query I rowsort label-1170
SELECT 21 * - SUM ( ALL + 74 ) + - 21 + - 37 + - 80 AS col1
----
-1692

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT - COUNT( * ) * + + 77 * COALESCE ( 53, + - 40 - 83 ) AS col2
----
-4081

skipif mysql # not compatible
query I rowsort label-1171
SELECT - COUNT ( * ) * + + 77 * COALESCE ( 53, + - 40 - 83 ) AS col2
----
-4081

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT CASE 99 WHEN + COUNT( * ) THEN + 82 + + 41 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT CASE 99 WHEN + COUNT ( * ) THEN + 82 + + 41 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT - COUNT( * ) + - - 1 - - SUM( - 86 ) * + 38 * ( - NULLIF ( - 83, + ( + 23 ) ) ) * + 50 * - 34 + - + COUNT( * ) * 57 * SUM( DISTINCT + - 97 ) * - 88 AS col1
----
460628248

skipif mysql # not compatible
query I rowsort label-1173
SELECT - COUNT ( * ) + - - 1 - - SUM ( - 86 ) * + 38 * ( - NULLIF ( - 83, + ( + 23 ) ) ) * + 50 * - 34 + - + COUNT ( * ) * 57 * SUM ( DISTINCT + - 97 ) * - 88 AS col1
----
460628248

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT ALL 2 * 89 - COUNT( * ) + 94 AS col1
----
271

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL 2 * 89 - COUNT ( * ) + 94 AS col1
----
271

query II rowsort
SELECT ALL + 80 col1, + 92 + + + 64
----
80
156

query I rowsort
SELECT ALL - 31 * 52
----
-1612

query I rowsort
SELECT ALL 66 * - - 5 AS col2
----
330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1178
SELECT + 72 * 35 * - - 28 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT + 72 * 35 * - - 28 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1179
SELECT - 78 * + 90 * - - NULLIF ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ), - 92 ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT - 78 * + 90 * - - NULLIF ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), - 92 ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1180
SELECT COUNT( * ) AS col0, 62 AS col1
----
1
62

skipif mysql # not compatible
query II rowsort label-1180
SELECT COUNT ( * ) AS col0, 62 AS col1
----
1
62

query I rowsort
SELECT ALL + COALESCE ( - 18, 13 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1182
SELECT ALL - 32 * + - CAST( - + 52 AS SIGNED )
----
-1664

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL - 32 * + - CAST ( - + 52 AS INTEGER )
----
-1664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1183
SELECT + 25 - - CAST( - 40 AS SIGNED ) DIV + 88 + - 36 + COUNT( * ) * + ( + + ( - 22 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-1183
SELECT + 25 - - CAST ( - 40 AS INTEGER ) / + 88 + - 36 + COUNT ( * ) * + ( + + ( - 22 ) )
----
-33

query II rowsort
SELECT + 31 AS col2, + 39 * - 55 - 83 - 44 * - + 64 * - + 93 + + + 68
----
31
-264048

onlyif mysql # aggregate syntax: 
query II rowsort label-1185
SELECT - SUM( DISTINCT 19 ) * - + 89 + - 84 AS col2, - NULLIF ( 44, + - 64 * 41 ) col0
----
1607
-44

skipif mysql # not compatible
query II rowsort label-1185
SELECT - SUM ( DISTINCT 19 ) * - + 89 + - 84 AS col2, - NULLIF ( 44, + - 64 * 41 ) col0
----
1607
-44

query I rowsort
SELECT ALL - 87 + + 20 + + 73 AS col0
----
6

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

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

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

query I rowsort
SELECT - 82 - 42 - - 23
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1190
SELECT ALL + 28 DIV ( ( + + 34 ) ) + - COUNT( DISTINCT + + 17 ) AS col0, + 48
----
-1
48

skipif mysql # not compatible
query II rowsort label-1190
SELECT ALL + 28 / ( ( + + 34 ) ) + - COUNT ( DISTINCT + + 17 ) AS col0, + 48
----
-1
48

query II rowsort
SELECT DISTINCT 51, + 74 * + 43 AS col0
----
51
3182

query I rowsort
SELECT ALL + - 96 + ( - 21 )
----
-117

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1194
SELECT ALL - ( + 86 ) + - CAST( ( 76 ) AS SIGNED )
----
-162

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL - ( + 86 ) + - CAST ( ( 76 ) AS INTEGER )
----
-162

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1197
SELECT DISTINCT + ( 35 ) + - - 62 + SUM( - + NULLIF ( + 97, - + 3 ) ) - + - 62 * 86 + COUNT( * ) * CAST( - - MIN( - 22 ) AS SIGNED ) + - 40, + 1 AS col0
----
5270
1

skipif mysql # not compatible
query II rowsort label-1197
SELECT DISTINCT + ( 35 ) + - - 62 + SUM ( - + NULLIF ( + 97, - + 3 ) ) - + - 62 * 86 + COUNT ( * ) * CAST ( - - MIN ( - 22 ) AS INTEGER ) + - 40, + 1 AS col0
----
5270
1

query I rowsort
SELECT ALL - 87 * + 89 + 68
----
-7675

query I rowsort
SELECT ALL 24 + - + 53 + + - 13 + + 41 + + ( + 49 ) * 73
----
3576

query I rowsort
SELECT ALL 28 + + + 41 + 7
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT DISTINCT 42 + + + 4 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT 42 + + + 4 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1202
SELECT + COALESCE ( + ( 66 ), 45 + + - 81 - + COUNT( * ) DIV + 0 ) + + 44 - + 71 DIV 79 + - - 41
----
151

skipif mysql # not compatible
query I rowsort label-1202
SELECT + COALESCE ( + ( 66 ), 45 + + - 81 - + COUNT ( * ) / + 0 ) + + 44 - + 71 / 79 + - - 41
----
151

query I rowsort
SELECT - + 13 * + 50 + - 28 AS col1
----
-678

query I rowsort
SELECT - + ( 70 ) * + 83 AS col1
----
-5810

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1208
SELECT + 91 + - + 37 col1, + 80 + + COALESCE ( - 84, + 88, + 50 + - - 68, + COUNT( + 39 ) * COUNT( * ) * 14 * - 15 )
----
54
-4

skipif mysql # not compatible
query II rowsort label-1208
SELECT + 91 + - + 37 col1, + 80 + + COALESCE ( - 84, + 88, + 50 + - - 68, + COUNT ( + 39 ) * COUNT ( * ) * 14 * - 15 )
----
54
-4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1209
SELECT ALL + CAST( + 3 AS SIGNED ) DIV - 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL + CAST ( + 3 AS INTEGER ) / - 35 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1210
SELECT DISTINCT + 15 DIV + - COUNT( * ) - - 75
----
60

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT + 15 / + - COUNT ( * ) - - 75
----
60

query I rowsort
SELECT DISTINCT 20 * - 25 AS col0
----
-500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1212
SELECT ALL ( + COALESCE ( + - 15, CASE 79 WHEN - ( + 77 ) THEN + CASE - 71 WHEN - COUNT( * ) * + - 59 DIV + ( + 73 ) * + - 78 THEN NULL WHEN + CAST( NULL AS SIGNED ) * + 59 * - 2 * + 49 THEN + - COUNT( * ) * - + 91 DIV - - 58 WHEN - - 97 THEN NULL ELSE NULL END WHEN - 51 THEN NULL ELSE + + COALESCE ( + COUNT( * ), - + 47, + CAST( - 11 AS SIGNED ) ) END ) ) * - - 96
----
-1440

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL ( + COALESCE ( + - 15, CASE 79 WHEN - ( + 77 ) THEN + CASE - 71 WHEN - COUNT ( * ) * + - 59 / + ( + 73 ) * + - 78 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * + 59 * - 2 * + 49 THEN + - COUNT ( * ) * - + 91 / - - 58 WHEN - - 97 THEN NULL ELSE NULL END WHEN - 51 THEN NULL ELSE + + COALESCE ( + COUNT ( * ), - + 47, + CAST ( - 11 AS INTEGER ) ) END ) ) * - - 96
----
-1440

onlyif mysql # aggregate syntax: 
query II rowsort label-1213
SELECT + 37 + + COUNT( * ) - - 13 * - + COUNT( * ) * - COUNT( * ), 91 + 55 col0
----
51
146

skipif mysql # not compatible
query II rowsort label-1213
SELECT + 37 + + COUNT ( * ) - - 13 * - + COUNT ( * ) * - COUNT ( * ), 91 + 55 col0
----
51
146

query I rowsort
SELECT + 54 * - 4
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1215
SELECT - CAST( NULL AS SIGNED ) - - 70 * - 84 * + 47 + - - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1215
SELECT - CAST ( NULL AS INTEGER ) - - 70 * - 84 * + 47 + - - 21 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1216
SELECT ALL 36 DIV - 75 col0, - 39 + - - 7 DIV - 70 * - + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1216
SELECT ALL 36 / - 75 col0, - 39 + - - 7 / - 70 * - + CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT + 18 * - + 72 col0
----
-1296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1218
SELECT ALL 22 * + 3 + CAST( - 13 AS SIGNED ) * - 0 col2
----
66

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL 22 * + 3 + CAST ( - 13 AS INTEGER ) * - 0 col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1219
SELECT ALL + 17 * CASE + + 82 WHEN - 95 THEN - 34 WHEN COUNT( * ) THEN + COUNT( * ) ELSE + 46 / + 63 + - 58 + + CAST( NULL AS DECIMAL ) END * + NULLIF ( + ( + + NULLIF ( - 55, + 75 ) ), 61 ) + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL + 17 * CASE + + 82 WHEN - 95 THEN - 34 WHEN COUNT ( * ) THEN + COUNT ( * ) ELSE + 46 / + 63 + - 58 + + CAST ( NULL AS REAL ) END * + NULLIF ( + ( + + NULLIF ( - 55, + 75 ) ), 61 ) + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT DISTINCT 34 * - 8 + COALESCE ( + COUNT( - 69 ), + 81, - 43 )
----
-271

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT 34 * - 8 + COALESCE ( + COUNT ( - 69 ), + 81, - 43 )
----
-271

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

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

query II rowsort
SELECT - ( + + 97 ), + 68 AS col2
----
-97
68

query I rowsort
SELECT ALL - + 6 + - 12
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT DISTINCT + ( CASE + NULLIF ( + 3, + 21 ) WHEN - 6 * - + 34 THEN NULL ELSE + 99 + COUNT( * ) END ) + + + 14
----
114

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT + ( CASE + NULLIF ( + 3, + 21 ) WHEN - 6 * - + 34 THEN NULL ELSE + 99 + COUNT ( * ) END ) + + + 14
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT 61 * + ( + 34 ) * 60 - - 18 + - - 37 * - CASE - 16 WHEN - COUNT( * ) THEN - 19 WHEN + - ( + 75 ) * + - MIN( DISTINCT 4 ) THEN NULL END * + 43 - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1225
SELECT 61 * + ( + 34 ) * 60 - - 18 + - - 37 * - CASE - 16 WHEN - COUNT ( * ) THEN - 19 WHEN + - ( + 75 ) * + - MIN ( DISTINCT 4 ) THEN NULL END * + 43 - 27
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT ALL + - 19 + MAX( - 89 ) + - - 8
----
-100

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL + - 19 + MAX ( - 89 ) + - - 8
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT + 91 + + 88 - - ( 65 ) * COUNT( * ) * 44
----
3039

skipif mysql # not compatible
query I rowsort label-1228
SELECT + 91 + + 88 - - ( 65 ) * COUNT ( * ) * 44
----
3039

query I rowsort
SELECT - 18 * - - 46
----
-828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1230
SELECT COALESCE ( - 44, + + 25 * - + ( - 73 ) DIV - AVG ( - 36 ) + 62 + + COUNT( * ) * COUNT( ( 16 ) ) ) - 8
----
-52

skipif mysql # not compatible
query I rowsort label-1230
SELECT COALESCE ( - 44, + + 25 * - + ( - 73 ) / - AVG ( - 36 ) + 62 + + COUNT ( * ) * COUNT ( ( 16 ) ) ) - 8
----
-52

query I rowsort
SELECT ALL - + 14 * + 1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-1232
SELECT - 95, + 51 - - COUNT( * ) - SUM( ALL + + 16 ) AS col0
----
-95
36

skipif mysql # not compatible
query II rowsort label-1232
SELECT - 95, + 51 - - COUNT ( * ) - SUM ( ALL + + 16 ) AS col0
----
-95
36

query I rowsort
SELECT 54 * - - 70 AS col0
----
3780

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT 60 + - + 84 DIV 26 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1234
SELECT 60 + - + 84 / 26 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT DISTINCT - NULLIF ( - 15, 31 * + 87 / - ( - COUNT( * ) ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT - NULLIF ( - 15, 31 * + 87 / - ( - COUNT ( * ) ) ) AS col0
----
15

query I rowsort
SELECT 44 * + 99
----
4356

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT MAX( DISTINCT 94 ) * + + 21 * 89 + - 96 AS col0
----
175590

skipif mysql # not compatible
query I rowsort label-1237
SELECT MAX ( DISTINCT 94 ) * + + 21 * 89 + - 96 AS col0
----
175590

query I rowsort
SELECT ALL + 32 + + - 97
----
-65

query I rowsort
SELECT ALL 89 + - 81 + - - ( 19 )
----
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT DISTINCT COUNT( + - NULLIF ( 91, + 49 + + 15 - - 91 + - + 18 / + 34 ) ) + - 79 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT COUNT ( + - NULLIF ( 91, + 49 + + 15 - - 91 + - + 18 / + 34 ) ) + - 79 AS col1
----
-78

query II rowsort
SELECT + 41 col0, - 47
----
41
-47

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

skipif mysql # not compatible
query I rowsort label-1243
SELECT CAST ( NULL AS INTEGER ) / + 3 col2
----
NULL

query I rowsort
SELECT - NULLIF ( 38, + 52 ) + + 53
----
15

query I rowsort
SELECT ALL - - ( 51 ) AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1246
SELECT ALL CAST( COUNT( * ) AS SIGNED ) / - CAST( NULL AS DECIMAL ) * 76 + - 31 + - 53 - + 92 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) / - CAST ( NULL AS REAL ) * 76 + - 31 + - 53 - + 92 * COUNT ( * ) AS col2
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1249
SELECT + 39 * 28 DIV - - 32 AS col1, 31
----
34
31

skipif mysql # not compatible
query II rowsort label-1249
SELECT + 39 * 28 / - - 32 AS col1, 31
----
34
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT 86 * COUNT( * ) * ( + ( 76 ) ) AS col1
----
6536

skipif mysql # not compatible
query I rowsort label-1250
SELECT 86 * COUNT ( * ) * ( + ( 76 ) ) AS col1
----
6536

onlyif mysql # aggregate syntax: 
query II rowsort label-1251
SELECT NULLIF ( + + 44, - 15 ) AS col0, + ( ( - 33 ) ) + - ( + 1 ) + - + COUNT( * ) * COUNT( DISTINCT + ( 66 ) )
----
44
-35

skipif mysql # not compatible
query II rowsort label-1251
SELECT NULLIF ( + + 44, - 15 ) AS col0, + ( ( - 33 ) ) + - ( + 1 ) + - + COUNT ( * ) * COUNT ( DISTINCT + ( 66 ) )
----
44
-35

query II rowsort
SELECT DISTINCT + 76 * - 33 * - 44 AS col0, - 44 * 29 col1
----
110352
-1276

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT - SUM( - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-1253
SELECT - SUM ( - 92 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1254
SELECT 78 + + CAST( - MIN( ALL 48 ) AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-1254
SELECT 78 + + CAST ( - MIN ( ALL 48 ) AS INTEGER )
----
30

query I rowsort
SELECT - 16 * 0
----
0

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1260
SELECT ALL NULLIF ( - COUNT( * ), + - 91 ) col0, - COUNT( * ) + 85 AS col1
----
-1
84

skipif mysql # not compatible
query II rowsort label-1260
SELECT ALL NULLIF ( - COUNT ( * ), + - 91 ) col0, - COUNT ( * ) + 85 AS col1
----
-1
84

query II rowsort
SELECT ALL - 58, - ( + 69 ) * + - 14 + + 83 + + 83 * - 42 AS col1
----
-58
-2437

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1262
SELECT DISTINCT + MAX( + 29 ) DIV - 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1262
SELECT DISTINCT + MAX ( + 29 ) / - 39 AS col0
----
0

query I rowsort
SELECT 79 * 89
----
7031

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1264
SELECT + MIN( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1264
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT - NULLIF ( 19, 17 ) AS col0
----
-19

query I rowsort
SELECT 69 + - + 56
----
13

query I rowsort
SELECT 79 + + 16 * - 3 * - + 6 * + ( - 86 )
----
-24689

query I rowsort
SELECT ALL + 79 * 39 * - + 93 + - 51 * 8 + + - 62 * 88 + 50 col2
----
-292347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT 85 + - ( + CAST( NULL AS SIGNED ) ) + COUNT( - - 38 ) + - - ( + 23 ) + 80 * - ( + 50 ) / + 47 + - CAST( NULL AS SIGNED ) * - COUNT( * ) * + COUNT( * ) * 88 * 15 * + 28 - + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1270
SELECT 85 + - ( + CAST ( NULL AS INTEGER ) ) + COUNT ( - - 38 ) + - - ( + 23 ) + 80 * - ( + 50 ) / + 47 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + COUNT ( * ) * 88 * 15 * + 28 - + 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1271
SELECT DISTINCT + 28 * COALESCE ( + 53, CAST( NULL AS SIGNED ), - - NULLIF ( + - 18, + 82 ) + 51 + - 5 ) * + - 42 * + ( - COUNT( * ) ) AS col2
----
62328

skipif mysql # not compatible
query I rowsort label-1271
SELECT DISTINCT + 28 * COALESCE ( + 53, CAST ( NULL AS INTEGER ), - - NULLIF ( + - 18, + 82 ) + 51 + - 5 ) * + - 42 * + ( - COUNT ( * ) ) AS col2
----
62328

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ( + + 52 ) * - + 85 + + COUNT( * ) AS col0
----
-4419

skipif mysql # not compatible
query I rowsort label-1272
SELECT ( + + 52 ) * - + 85 + + COUNT ( * ) AS col0
----
-4419

query I rowsort
SELECT 69 * - 73
----
-5037

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT ALL 26 * COUNT( * ) + + 37 + - 59 + 65
----
69

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL 26 * COUNT ( * ) + + 37 + - 59 + 65
----
69

query I rowsort
SELECT + 24 + + 68
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT - COUNT( * ) + - MIN( DISTINCT + + 18 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1276
SELECT - COUNT ( * ) + - MIN ( DISTINCT + + 18 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1277
SELECT + - 37 * - SUM( ALL + - 74 ) + - 99 AS col2, ( - 95 ) AS col2
----
-2837
-95

skipif mysql # not compatible
query II rowsort label-1277
SELECT + - 37 * - SUM ( ALL + - 74 ) + - 99 AS col2, ( - 95 ) AS col2
----
-2837
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT + - ( - - NULLIF ( - + 26, 27 + + 85 * - COUNT( * ) ) ) - ( + 96 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1278
SELECT + - ( - - NULLIF ( - + 26, 27 + + 85 * - COUNT ( * ) ) ) - ( + 96 ) AS col2
----
-70

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

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL + 49 / 51 / + COUNT ( * )
----
0

query I rowsort
SELECT - + 85 + 63 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL ( + 84 ) * - CASE + 55 WHEN - COUNT( * ) THEN - COUNT( * ) + - 45 WHEN + - 36 THEN NULL END - 68 * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL ( + 84 ) * - CASE + 55 WHEN - COUNT ( * ) THEN - COUNT ( * ) + - 45 WHEN + - 36 THEN NULL END - 68 * + 27
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1282
SELECT DISTINCT + - CASE - 18 WHEN - 8 THEN NULL WHEN + COUNT( * ) THEN - 73 * - - 94 + - 44 DIV + + 75 ELSE 75 * - + 19 END AS col0
----
1425

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT + - CASE - 18 WHEN - 8 THEN NULL WHEN + COUNT ( * ) THEN - 73 * - - 94 + - 44 / + + 75 ELSE 75 * - + 19 END AS col0
----
1425

onlyif mysql # DIV for integer division: 
query I rowsort label-1283
SELECT ALL - - 10 DIV - + 13 col0
----
0

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL - - 10 / - + 13 col0
----
0

query I rowsort
SELECT + 51 + 81 AS col1
----
132

query I rowsort
SELECT ALL 34 - - - COALESCE ( - + 93, - 2 ) AS col2
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1286
SELECT + CAST( - 80 AS SIGNED ) * - + 96
----
7680

skipif mysql # not compatible
query I rowsort label-1286
SELECT + CAST ( - 80 AS INTEGER ) * - + 96
----
7680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1287
SELECT ALL COALESCE ( + 65, CAST( NULL AS SIGNED ) ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL COALESCE ( + 65, CAST ( NULL AS INTEGER ) ) AS col1
----
65

query I rowsort
SELECT + + 42 + - ( 44 ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1289
SELECT + + 78 DIV - 52 + 23
----
22

skipif mysql # not compatible
query I rowsort label-1289
SELECT + + 78 / - 52 + 23
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1290
SELECT ALL + 72 DIV 52 * COUNT( * ) * - 23 - + 17
----
-40

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL + 72 / 52 * COUNT ( * ) * - 23 - + 17
----
-40

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

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT 79 / - COUNT ( * )
----
-79

query I rowsort
SELECT + + 92 * - NULLIF ( + + 52, 48 * + 77 ) AS col0
----
-4784

query I rowsort
SELECT + 76 + - 77 col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1294
SELECT + ( - 60 ) + + 3 + - MAX( ALL + + 90 ) DIV + + 69 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1294
SELECT + ( - 60 ) + + 3 + - MAX ( ALL + + 90 ) / + + 69 AS col2
----
-58

query I rowsort
SELECT ALL 67 + 21 + - ( 77 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT + COUNT( * ) + 22 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1296
SELECT + COUNT ( * ) + 22 AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1297
SELECT ALL 20 + 70 - - - CAST( 26 AS SIGNED ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL 20 + 70 - - - CAST ( 26 AS INTEGER ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT + 26 * + NULLIF ( + NULLIF ( 23, COUNT( * ) ), 86 * 28 / - 59 + - - 22 + - + COALESCE ( 40, - + 37 ) ) * 85 - 85 + - MIN( - + 8 ) AS col1
----
50753

skipif mysql # not compatible
query I rowsort label-1298
SELECT + 26 * + NULLIF ( + NULLIF ( 23, COUNT ( * ) ), 86 * 28 / - 59 + - - 22 + - + COALESCE ( 40, - + 37 ) ) * 85 - 85 + - MIN ( - + 8 ) AS col1
----
50753

query I rowsort
SELECT ALL + 32 + - - 54 + 83
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1300
SELECT + 96 * ( - + 33 ) * + 22 * + + NULLIF ( - COUNT( * ), + - ( - CAST( NULL AS SIGNED ) ) ) + + 11 AS col1
----
69707

skipif mysql # not compatible
query I rowsort label-1300
SELECT + 96 * ( - + 33 ) * + 22 * + + NULLIF ( - COUNT ( * ), + - ( - CAST ( NULL AS INTEGER ) ) ) + + 11 AS col1
----
69707

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT - 48 DIV + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1301
SELECT - 48 / + 93 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1302
SELECT ALL MIN( DISTINCT + 91 ) DIV + 63 + - 63 + - + 79 - - 54 * - + 63 * 82 AS col0
----
-279105

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL MIN ( DISTINCT + 91 ) / + 63 + - 63 + - + 79 - - 54 * - + 63 * 82 AS col0
----
-279105

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

skipif mysql # not compatible
query I rowsort label-1303
SELECT ( + SUM ( + 5 ) )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1304
SELECT DISTINCT + CASE + 21 WHEN - - ( + + 3 ) THEN - COUNT( * ) END, 74 + - 0 AS col2
----
NULL
74

skipif mysql # not compatible
query II rowsort label-1304
SELECT DISTINCT + CASE + 21 WHEN - - ( + + 3 ) THEN - COUNT ( * ) END, 74 + - 0 AS col2
----
NULL
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1305
SELECT + COUNT( * ) DIV + NULLIF ( 9, - + 44 + - 3 + - 19 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1305
SELECT + COUNT ( * ) / + NULLIF ( 9, - + 44 + - 3 + - 19 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1306
SELECT - 18 DIV + - 44 * 8 AS col0, COALESCE ( - - 49, - - 22 * + + 47 + - 36 )
----
0
49

skipif mysql # not compatible
query II rowsort label-1306
SELECT - 18 / + - 44 * 8 AS col0, COALESCE ( - - 49, - - 22 * + + 47 + - 36 )
----
0
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT DISTINCT - COUNT( * ) * 73 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT - COUNT ( * ) * 73 AS col0
----
-73

query I rowsort
SELECT DISTINCT + - 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT ALL + - COALESCE ( + 53, SUM( ALL + 0 ) * - - COUNT( * ) + 15 ) * - 3 + 62 - 45 * - 98 AS col2
----
4631

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL + - COALESCE ( + 53, SUM ( ALL + 0 ) * - - COUNT ( * ) + 15 ) * - 3 + 62 - 45 * - 98 AS col2
----
4631

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT 23 * + 91 - - SUM( ALL + 94 )
----
2187

skipif mysql # not compatible
query I rowsort label-1310
SELECT 23 * + 91 - - SUM ( ALL + 94 )
----
2187

query II rowsort
SELECT 33 AS col1, + 97 * - ( - - 31 ) + 52
----
33
-2955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1312
SELECT ALL + CASE - 32 WHEN - 86 THEN - + 68 * + NULLIF ( 70, - + 26 + - 40 + 65 + COALESCE ( - + 58, + 36 / - 45 * - + 92 * CAST( NULL AS SIGNED ) + + MAX( 15 ) / + COUNT( * ) - + 41 ) + - + MAX( ALL 21 ) * - - 62 ) + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) WHEN - - 73 * + 42 + ( - COALESCE ( + - 67, + 68 ) ) + + 42 * - MIN( ALL - 52 ) / + 14 THEN 3 ELSE + - 79 * 21 - 69 * + COALESCE ( - 64, - COUNT( * ) ) * + - COUNT( * ) END
----
-6075

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL + CASE - 32 WHEN - 86 THEN - + 68 * + NULLIF ( 70, - + 26 + - 40 + 65 + COALESCE ( - + 58, + 36 / - 45 * - + 92 * CAST ( NULL AS INTEGER ) + + MAX ( 15 ) / + COUNT ( * ) - + 41 ) + - + MAX ( ALL 21 ) * - - 62 ) + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN - - 73 * + 42 + ( - COALESCE ( + - 67, + 68 ) ) + + 42 * - MIN ( ALL - 52 ) / + 14 THEN 3 ELSE + - 79 * 21 - 69 * + COALESCE ( - 64, - COUNT ( * ) ) * + - COUNT ( * ) END
----
-6075

query II rowsort
SELECT ALL + 80, ( + 82 ) col0
----
80
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT + COUNT( DISTINCT - 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1314
SELECT + COUNT ( DISTINCT - 20 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT - - 13 + - 52 - COUNT( * ) + - + 39 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-1315
SELECT - - 13 + - 52 - COUNT ( * ) + - + 39 AS col1
----
-79

query II rowsort
SELECT 14 AS col2, - 39 + 36
----
14
-3

query I rowsort
SELECT ALL 68 * 10 * + 79 AS col2
----
53720

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

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

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

query I rowsort
SELECT + - 55 * + 87 col2
----
-4785

query II rowsort
SELECT ALL 73 AS col0, - ( + 20 ) + + - 35 AS col1
----
73
-55

query I rowsort
SELECT DISTINCT - + 65 * - 5 + - 95 * + + 73
----
-6610

onlyif mysql # DIV for integer division: 
query I rowsort label-1323
SELECT ALL 20 + - 62 DIV + 56 + - - 67 + + - 17 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL 20 + - 62 / + 56 + - - 67 + + - 17 AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT + NULLIF ( - - 15, + 93 - - 44 - CASE + 56 WHEN - COUNT( * ) THEN NULL WHEN - 62 + + 26 THEN NULL ELSE 7 + + 25 / - CAST( 96 AS SIGNED ) END ) * 74
----
1110

skipif mysql # not compatible
query I rowsort label-1324
SELECT + NULLIF ( - - 15, + 93 - - 44 - CASE + 56 WHEN - COUNT ( * ) THEN NULL WHEN - 62 + + 26 THEN NULL ELSE 7 + + 25 / - CAST ( 96 AS INTEGER ) END ) * 74
----
1110

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1325
SELECT - CAST( NULL AS DECIMAL ), - ( 73 ) * COUNT( ALL + 4 ) DIV 72 AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1325
SELECT - CAST ( NULL AS REAL ), - ( 73 ) * COUNT ( ALL + 4 ) / 72 AS col1
----
NULL
-1

query I rowsort
SELECT + 2 * - 58
----
-116

query I rowsort
SELECT ALL 14 + 3 col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT ALL 73 DIV CASE + 31 WHEN - - 75 + + 61 * - + 14 THEN NULL ELSE 5 END * 32
----
448

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL 73 / CASE + 31 WHEN - - 75 + + 61 * - + 14 THEN NULL ELSE 5 END * 32
----
448

query I rowsort
SELECT DISTINCT 19 + 71 + + - 13 AS col2
----
77

query I rowsort
SELECT ALL 78 + - - 62 AS col0
----
140

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

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

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

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

query I rowsort
SELECT 85 + + 34 AS col0
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1334
SELECT 20 - + NULLIF ( - CAST( - COUNT( 32 ) AS SIGNED ), - 50 ) - + 1 AS col0, 10
----
18
10

skipif mysql # not compatible
query II rowsort label-1334
SELECT 20 - + NULLIF ( - CAST ( - COUNT ( 32 ) AS INTEGER ), - 50 ) - + 1 AS col0, 10
----
18
10

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

skipif mysql # not compatible
query I rowsort label-1335
SELECT + 5 / 20 + - 77
----
-77

query I rowsort
SELECT ALL 77 * + - 45 col1
----
-3465

query I rowsort
SELECT 4 + - 5 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1338
SELECT COUNT( * ) * - 56, ( - + 21 ) AS col2
----
-56
-21

skipif mysql # not compatible
query II rowsort label-1338
SELECT COUNT ( * ) * - 56, ( - + 21 ) AS col2
----
-56
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT DISTINCT 12 * + MAX( DISTINCT + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT 12 * + MAX ( DISTINCT + 0 )
----
0

query I rowsort
SELECT - 10 * + + 76 col1
----
-760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1341
SELECT ALL - NULLIF ( NULLIF ( - CAST( - 77 AS SIGNED ), + 41 ), + COUNT( * ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL - NULLIF ( NULLIF ( - CAST ( - 77 AS INTEGER ), + 41 ), + COUNT ( * ) ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT 77 * - COUNT( * ) * + 39 * + 89 + - 19
----
-267286

skipif mysql # not compatible
query I rowsort label-1342
SELECT 77 * - COUNT ( * ) * + 39 * + 89 + - 19
----
-267286

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1344
SELECT - 64 / CAST( NULL AS SIGNED ) + + - 66 / + ( - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT - 64 / CAST ( NULL AS INTEGER ) + + - 66 / + ( - 3 )
----
NULL

query I rowsort
SELECT + 77 * 95 - - 61 + - 27
----
7349

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1347
SELECT + - 84 AS col2, + ( - NULLIF ( - 74, 62 + - 21 ) ) * + CASE ( + + 35 ) WHEN + 24 * 56 THEN NULL WHEN + + 38 + + - ( MIN( DISTINCT - 52 ) ) THEN - + 38 - 24 ELSE NULL END - NULLIF ( - + 93, - 58 ) + 26 * ( 41 ) * + + 60 + - 16
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-1347
SELECT + - 84 AS col2, + ( - NULLIF ( - 74, 62 + - 21 ) ) * + CASE ( + + 35 ) WHEN + 24 * 56 THEN NULL WHEN + + 38 + + - ( MIN ( DISTINCT - 52 ) ) THEN - + 38 - 24 ELSE NULL END - NULLIF ( - + 93, - 58 ) + 26 * ( 41 ) * + + 60 + - 16
----
-84
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL - ( + 75 ) + - 0 * + MAX( ALL + 53 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL - ( + 75 ) + - 0 * + MAX ( ALL + 53 ) AS col0
----
-75

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

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

query I rowsort
SELECT ALL - + 63 + - + 75 * + 97
----
-7338

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

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

query I rowsort
SELECT DISTINCT + 59 * 74 AS col0
----
4366

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT DISTINCT + 86 + - SUM( DISTINCT - + 69 ) AS col2
----
155

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT + 86 + - SUM ( DISTINCT - + 69 ) AS col2
----
155

query I rowsort
SELECT 88 * - - NULLIF ( - 21, - 69 )
----
-1848

query I rowsort
SELECT 95 + - 94 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1357
SELECT DISTINCT + 69 + - - 55 + + - NULLIF ( - CAST( NULL AS SIGNED ), 95 - 34 + 59 * + 51 * CAST( - COALESCE ( - - 20, - 81 * - 50 ) AS SIGNED ) + - 93 * 40 ) * + ( + 73 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT + 69 + - - 55 + + - NULLIF ( - CAST ( NULL AS INTEGER ), 95 - 34 + 59 * + 51 * CAST ( - COALESCE ( - - 20, - 81 * - 50 ) AS INTEGER ) + - 93 * 40 ) * + ( + 73 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 42 * - 95 AS col1
----
-3990

onlyif mysql # DIV for integer division: 
query I rowsort label-1359
SELECT 85 DIV 82
----
1

skipif mysql # not compatible
query I rowsort label-1359
SELECT 85 / 82
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1361
SELECT NULLIF ( + 82, ( COUNT( * ) ) ) DIV + - COUNT( * ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-1361
SELECT NULLIF ( + 82, ( COUNT ( * ) ) ) / + - COUNT ( * ) AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1362
SELECT ALL CAST( CASE 53 WHEN + CASE 12 WHEN + COUNT( * ) THEN NULL ELSE + 90 END THEN NULL ELSE + 28 DIV + 6 + 32 END AS SIGNED ) * + ( + 28 ) * 77 * - 63 + - ( + 91 )
----
-4889899

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL CAST ( CASE 53 WHEN + CASE 12 WHEN + COUNT ( * ) THEN NULL ELSE + 90 END THEN NULL ELSE + 28 / + 6 + 32 END AS INTEGER ) * + ( + 28 ) * 77 * - 63 + - ( + 91 )
----
-4889899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1363
SELECT DISTINCT AVG ( ALL + CAST( NULL AS SIGNED ) ) * ( - 23 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT AVG ( ALL + CAST ( NULL AS INTEGER ) ) * ( - 23 ) col0
----
NULL

query I rowsort
SELECT ALL - - COALESCE ( - 4, + + 61, - 68 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1365
SELECT - 44 * - + COUNT( 14 ) + + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0, - 73 DIV + - 40 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1365
SELECT - 44 * - + COUNT ( 14 ) + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0, - 73 / + - 40 AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT - 10 * 15 * - + COUNT( * )
----
150

skipif mysql # not compatible
query I rowsort label-1366
SELECT - 10 * 15 * - + COUNT ( * )
----
150

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

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 92 + - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT DISTINCT 85 + COUNT( * ) * - 38
----
47

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT 85 + COUNT ( * ) * - 38
----
47

query I rowsort
SELECT ALL + + NULLIF ( 47, 76 ) + ( + 91 )
----
138

query I rowsort
SELECT ( 93 ) * + 44 AS col0
----
4092

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1371
SELECT ALL 30 + CASE - - COUNT( * ) WHEN + 32 - + - 96 THEN + + 93 * - ( 48 ) + + + COUNT( * ) DIV 31 WHEN + + 6 + - 26 * - 72 + - 86 THEN + 69 ELSE - COUNT( * ) * - 73 - - 56 + - 39 * + 21 * - 73 END * + 72, - 68 AS col2
----
4313982
-68

skipif mysql # not compatible
query II rowsort label-1371
SELECT ALL 30 + CASE - - COUNT ( * ) WHEN + 32 - + - 96 THEN + + 93 * - ( 48 ) + + + COUNT ( * ) / 31 WHEN + + 6 + - 26 * - 72 + - 86 THEN + 69 ELSE - COUNT ( * ) * - 73 - - 56 + - 39 * + 21 * - 73 END * + 72, - 68 AS col2
----
4313982
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT - 99 + 15 * - + SUM( + ( - 62 ) )
----
831

skipif mysql # not compatible
query I rowsort label-1372
SELECT - 99 + 15 * - + SUM ( + ( - 62 ) )
----
831

query I rowsort
SELECT ALL + 83 * 98 * + 90
----
732060

query I rowsort
SELECT - COALESCE ( 71, - 31 * + 42 + - - ( + 31 ) )
----
-71

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

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

query I rowsort
SELECT 98 + + 80
----
178

query I rowsort
SELECT ALL 37 * + + ( - 39 ) AS col0
----
-1443

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1378
SELECT + 37 - - 23 * - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) / + + 26 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT + 37 - - 23 * - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) / + + 26 col2
----
NULL

query I rowsort
SELECT - 65 * + - 71
----
4615

query I rowsort
SELECT ALL + ( 52 ) * - - 18
----
936

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1381
SELECT - 83 - + NULLIF ( - 24, - - CAST( 72 AS DECIMAL ) )
----
-59

skipif mysql # not compatible
query I rowsort label-1381
SELECT - 83 - + NULLIF ( - 24, - - CAST ( 72 AS REAL ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT DISTINCT MIN( ALL + - 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT MIN ( ALL + - 27 ) AS col0
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1383
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT CAST ( NULL AS REAL ) * 11
----
NULL

query I rowsort
SELECT ALL + 20 * + 72
----
1440

query I rowsort
SELECT - 29 * - + 2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1386
SELECT - 11, 55 DIV - MAX( DISTINCT - 38 ) AS col0
----
-11
1

skipif mysql # not compatible
query II rowsort label-1386
SELECT - 11, 55 / - MAX ( DISTINCT - 38 ) AS col0
----
-11
1

query II rowsort
SELECT ALL - 80 + - 10 - 10 * - + 56 * + 89 - 54 AS col1, 31
----
49696
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT - - COUNT( DISTINCT + 48 ) + - MAX( ALL 95 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1388
SELECT - - COUNT ( DISTINCT + 48 ) + - MAX ( ALL 95 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT + + 69 - + + COUNT( + - 47 ) col1
----
68

skipif mysql # not compatible
query I rowsort label-1389
SELECT + + 69 - + + COUNT ( + - 47 ) col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT + 28 DIV 15
----
1

skipif mysql # not compatible
query I rowsort label-1390
SELECT + 28 / 15
----
1

query I rowsort
SELECT - 92 / + + 32 + + + 4 + - 64 - - CASE - ( - 36 ) WHEN - + 82 THEN + 34 * + 64 / 17 WHEN + 64 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT - + 50 / 15 * + 91 * - CASE + 6 WHEN + 75 THEN + 95 * - COUNT( * ) END - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1392
SELECT - + 50 / 15 * + 91 * - CASE + 6 WHEN + 75 THEN + 95 * - COUNT ( * ) END - 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT 34 * - + ( + + 60 ) + - COUNT( * ) + + - 46 AS col1
----
-2087

skipif mysql # not compatible
query I rowsort label-1393
SELECT 34 * - + ( + + 60 ) + - COUNT ( * ) + + - 46 AS col1
----
-2087

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT ALL COUNT( * ) * + - 64 * + + 60 + 87 + 36
----
-3717

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL COUNT ( * ) * + - 64 * + + 60 + 87 + 36
----
-3717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1396
SELECT + - 97 * - + 27 + CAST( 75 AS SIGNED ) AS col2
----
2694

skipif mysql # not compatible
query I rowsort label-1396
SELECT + - 97 * - + 27 + CAST ( 75 AS INTEGER ) AS col2
----
2694

query II rowsort
SELECT 8, - 72 * - 63 AS col0
----
8
4536

query II rowsort
SELECT + 31 + + - 90 + 5 AS col0, - 76 AS col2
----
-54
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-1399
SELECT - - ( + 38 ) * 47 AS col2, COUNT( * ) AS col1
----
1786
1

skipif mysql # not compatible
query II rowsort label-1399
SELECT - - ( + 38 ) * 47 AS col2, COUNT ( * ) AS col1
----
1786
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1401
SELECT ALL + CAST( COUNT( ALL - 29 ) AS SIGNED ) * + 20 - - 70 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL + CAST ( COUNT ( ALL - 29 ) AS INTEGER ) * + 20 - - 70 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT MIN( DISTINCT - - 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1402
SELECT MIN ( DISTINCT - - 22 ) AS col0
----
22

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

query I rowsort
SELECT - 2 * + ( + 29 )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1405
SELECT + 13 + + 41 DIV - 40 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1405
SELECT + 13 + + 41 / - 40 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1406
SELECT ALL 54 DIV + NULLIF ( - - CASE CASE 44 WHEN + MIN( DISTINCT + + 72 ) + - - 50 + 29 - - CAST( + - 54 AS SIGNED ) DIV COALESCE ( + COUNT( * ), + + ( + + COUNT( * ) ) ) THEN NULL ELSE + 97 + - + MIN( DISTINCT - 95 ) END WHEN - 99 THEN 56 - - ( + 67 ) * + 92 ELSE ( + - 4 ) + 23 END, + 17 * 80 * + ( NULLIF ( + + 46, - - COALESCE ( 77, 49 ) + + - MAX( DISTINCT - - 38 ) + ( 85 ) + - 2 + - AVG ( - 87 ) * + 86 + - 95 ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL 54 / + NULLIF ( - - CASE CASE 44 WHEN + MIN ( DISTINCT + + 72 ) + - - 50 + 29 - - CAST ( + - 54 AS INTEGER ) / COALESCE ( + COUNT ( * ), + + ( + + COUNT ( * ) ) ) THEN NULL ELSE + 97 + - + MIN ( DISTINCT - 95 ) END WHEN - 99 THEN 56 - - ( + 67 ) * + 92 ELSE ( + - 4 ) + 23 END, + 17 * 80 * + ( NULLIF ( + + 46, - - COALESCE ( 77, 49 ) + + - MAX ( DISTINCT - - 38 ) + ( 85 ) + - 2 + - AVG ( - 87 ) * + 86 + - 95 ) ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT ALL COALESCE ( - 9, 77 - - + MIN( + 3 ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL COALESCE ( - 9, 77 - - + MIN ( + 3 ) ) AS col0
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT - 59 + + COUNT( + ( - 34 ) ) * + + 40 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1409
SELECT - 59 + + COUNT ( + ( - 34 ) ) * + + 40 AS col1
----
-19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1411
SELECT - 36 + - 48, CAST( ( 72 ) AS SIGNED ) AS col2
----
-84
72

skipif mysql # not compatible
query II rowsort label-1411
SELECT - 36 + - 48, CAST ( ( 72 ) AS INTEGER ) AS col2
----
-84
72

query I rowsort
SELECT ALL 41 + + - ( - 3 ) * - 62
----
-145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT DISTINCT - ( + - 21 ) + + COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1414
SELECT DISTINCT - ( + - 21 ) + + COUNT ( * ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT + NULLIF ( + - 12, + COALESCE ( + 9, - 20 ) * COUNT( * ) + 60 * - 96 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1415
SELECT + NULLIF ( + - 12, + COALESCE ( + 9, - 20 ) * COUNT ( * ) + 60 * - 96 ) AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1416
SELECT ALL + CAST( ( + - ( - + 24 ) ) AS SIGNED ) AS col1, 8 col2
----
24
8

skipif mysql # not compatible
query II rowsort label-1416
SELECT ALL + CAST ( ( + - ( - + 24 ) ) AS INTEGER ) AS col1, 8 col2
----
24
8

query I rowsort
SELECT - - 54 * - + 60 AS col0
----
-3240

query I rowsort
SELECT ALL + + 61 + + + 79 + - 41 AS col2
----
99

query II rowsort
SELECT DISTINCT - + 98 + + 21 AS col1, 94 - - - ( + 4 ) + - - 27 * 3 * + 48
----
-77
3978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1420
SELECT ALL - CASE 71 WHEN 11 * - 28 - + - CAST( NULL AS SIGNED ) THEN + + 30 * 35 ELSE NULL END / + ( + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL - CASE 71 WHEN 11 * - 28 - + - CAST ( NULL AS INTEGER ) THEN + + 30 * 35 ELSE NULL END / + ( + 27 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1421
SELECT + SUM ( + - 96 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1422
SELECT - + 22 / + NULLIF ( + CAST( NULL AS SIGNED ), + 46 + - 20 ) / + + 96 - 57 * + - COUNT( DISTINCT + + COALESCE ( - 77, - + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1422
SELECT - + 22 / + NULLIF ( + CAST ( NULL AS INTEGER ), + 46 + - 20 ) / + + 96 - 57 * + - COUNT ( DISTINCT + + COALESCE ( - 77, - + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT - + 28 - + + 44 col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-1424
SELECT - - ( + 38 ) * - ( - ( 14 ) ) * + + ( 85 ) AS col0, SUM( DISTINCT + + 20 ) AS col2
----
45220
20

skipif mysql # not compatible
query II rowsort label-1424
SELECT - - ( + 38 ) * - ( - ( 14 ) ) * + + ( 85 ) AS col0, SUM ( DISTINCT + + 20 ) AS col2
----
45220
20

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

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

query I rowsort
SELECT + 85 * - 29 * 65 - - 73 - - - 57 AS col2
----
-160209

onlyif mysql # DIV for integer division: 
query I rowsort label-1427
SELECT ALL - + 14 DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL - + 14 / 36
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1428
SELECT 91 * COUNT( * ) + - 20 + - 48 + 64 DIV - 39 col0
----
22

skipif mysql # not compatible
query I rowsort label-1428
SELECT 91 * COUNT ( * ) + - 20 + - 48 + 64 / - 39 col0
----
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT MAX( + ( + 41 ) ) * COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-1430
SELECT MAX ( + ( + 41 ) ) * COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-1431
SELECT ( + COUNT( * ) ) * - 60 AS col2, - 61 - - - 35 col1
----
-60
-96

skipif mysql # not compatible
query II rowsort label-1431
SELECT ( + COUNT ( * ) ) * - 60 AS col2, - 61 - - - 35 col1
----
-60
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1432
SELECT 88 + - 73 + + 49 * + COUNT( * ) DIV 77 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1432
SELECT 88 + - 73 + + 49 * + COUNT ( * ) / 77 AS col1
----
15

query I rowsort
SELECT DISTINCT - NULLIF ( 23, - 57 )
----
-23

query I rowsort
SELECT 4 * + + 32 col1
----
128

query I rowsort
SELECT DISTINCT - 38 * - - 93
----
-3534

onlyif mysql # DIV for integer division: 
query III rowsort label-1436
SELECT ALL 17 AS col0, + 54 DIV - 42, 62 + + + 8 AS col1
----
17
-1
70

skipif mysql # not compatible
query III rowsort label-1436
SELECT ALL 17 AS col0, + 54 / - 42, 62 + + + 8 AS col1
----
17
-1
70

query I rowsort
SELECT ALL 48 * 71
----
3408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1438
SELECT DISTINCT COALESCE ( ( - - CAST( - 12 AS SIGNED ) ), - + 60, 69 ) + - 28 + + + 31 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT COALESCE ( ( - - CAST ( - 12 AS INTEGER ) ), - + 60, 69 ) + - 28 + + + 31 AS col1
----
-9

query II rowsort
SELECT 82 AS col2, 82
----
82
82

query I rowsort
SELECT ALL ( 43 ) + 58
----
101

query I rowsort
SELECT 19 + 84 AS col0
----
103

query II rowsort
SELECT 63 AS col2, + 41 * - - 54 col1
----
63
2214

query II rowsort
SELECT - 85 col2, + 77 AS col2
----
-85
77

query I rowsort
SELECT DISTINCT 29 + + 71 AS col2
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1445
SELECT DISTINCT SUM( ALL + 72 ) DIV 35
----
2

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT SUM ( ALL + 72 ) / 35
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1446
SELECT ALL COALESCE ( 67, - 38 * - CAST( 3 AS SIGNED ) - - 22 * COUNT( 13 - 35 ) ) * 65 AS col0
----
4355

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL COALESCE ( 67, - 38 * - CAST ( 3 AS INTEGER ) - - 22 * COUNT ( 13 - 35 ) ) * 65 AS col0
----
4355

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT DISTINCT 93 + + SUM( DISTINCT + 3 )
----
96

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT 93 + + SUM ( DISTINCT + 3 )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1448
SELECT ALL 28 + - 92 DIV - ( NULLIF ( 74, - 29 ) * 34 )
----
28

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL 28 + - 92 / - ( NULLIF ( 74, - 29 ) * 34 )
----
28

query I rowsort
SELECT 89 - 22 AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1450
SELECT NULLIF ( + 74, NULLIF ( 81, COUNT( * ) * MAX( DISTINCT 22 ) + 19 ) ) DIV - 74 + 52
----
51

skipif mysql # not compatible
query I rowsort label-1450
SELECT NULLIF ( + 74, NULLIF ( 81, COUNT ( * ) * MAX ( DISTINCT 22 ) + 19 ) ) / - 74 + 52
----
51

query I rowsort
SELECT ALL 92 - + 37 AS col1
----
55

query I rowsort
SELECT 70 * 98 AS col0
----
6860

query I rowsort
SELECT 73 + + 45 * + 79
----
3628

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT ALL + MIN( + 1 ) - + 21
----
-20

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL + MIN ( + 1 ) - + 21
----
-20

query I rowsort
SELECT CASE WHEN - 43 IN ( + 51 - 26 ) THEN - 78 END * 67 + - 11 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1456
SELECT DISTINCT - 41 DIV 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT - 41 / 81 AS col0
----
0

query I rowsort
SELECT 8 + + 66 AS col1
----
74

query I rowsort
SELECT ALL - 23 * - 61 AS col0
----
1403

query I rowsort
SELECT 14 * 32 AS col1
----
448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1460
SELECT COUNT( * ) + MIN( DISTINCT 17 ) DIV + 77 col2
----
1

skipif mysql # not compatible
query I rowsort label-1460
SELECT COUNT ( * ) + MIN ( DISTINCT 17 ) / + 77 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT ALL - SUM( DISTINCT - 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL - SUM ( DISTINCT - 92 ) AS col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1462
SELECT 4 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-1462
SELECT 4 / + 79
----
0

query I rowsort
SELECT ALL ( - 83 ) * + 85
----
-7055

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT DISTINCT + CASE + 33 WHEN - 24 * - 55 THEN NULL WHEN ( 37 ) + + 42 THEN NULL ELSE ( - SUM( ALL - 34 ) ) - 74 END + + 87 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1464
SELECT DISTINCT + CASE + 33 WHEN - 24 * - 55 THEN NULL WHEN ( 37 ) + + 42 THEN NULL ELSE ( - SUM ( ALL - 34 ) ) - 74 END + + 87 AS col2
----
47

query I rowsort
SELECT ALL + 61 + + ( - 1 ) * 39
----
22

query I rowsort
SELECT 19 + 7 AS col1
----
26

query I rowsort
SELECT 29 + 20 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL - 16 + + COUNT( * ) * + CASE NULLIF ( SUM( 36 ), - 0 * - 96 ) WHEN + 26 THEN 52 WHEN - 32 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - 16 + + COUNT ( * ) * + CASE NULLIF ( SUM ( 36 ), - 0 * - 96 ) WHEN + 26 THEN 52 WHEN - 32 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - + 90 * - 65
----
5850

query I rowsort
SELECT DISTINCT 35 * - 46
----
-1610

query I rowsort
SELECT ALL 40 + - 19 AS col2
----
21

query I rowsort
SELECT 30 * NULLIF ( + 10, + 37 ) AS col2
----
300

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT ALL 80 DIV 16 col0
----
5

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL 80 / 16 col0
----
5

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

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT ( MAX ( DISTINCT 85 ) )
----
85

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

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

query I rowsort
SELECT 99 * - 74
----
-7326

query I rowsort
SELECT + 77 * - 34 AS col1
----
-2618

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT ALL - 56 DIV 1 col1
----
-56

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL - 56 / 1 col1
----
-56

query I rowsort
SELECT DISTINCT 65 * ( 15 * - 61 )
----
-59475

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT ALL 69 * - COUNT( * ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL 69 * - COUNT ( * ) AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1483
SELECT - 13 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1483
SELECT - 13 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1484
SELECT ALL + CASE + CAST( NULL AS SIGNED ) WHEN - 86 * 89 THEN - 43 WHEN 60 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + CASE + CAST ( NULL AS INTEGER ) WHEN - 86 * 89 THEN - 43 WHEN 60 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + 49 * - + 95 * - MAX( + ( 45 ) ) AS col0
----
209475

skipif mysql # not compatible
query I rowsort label-1485
SELECT + 49 * - + 95 * - MAX ( + ( 45 ) ) AS col0
----
209475

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT ALL - MIN( DISTINCT 70 ) * 93 + - 22
----
-6532

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL - MIN ( DISTINCT 70 ) * 93 + - 22
----
-6532

query I rowsort
SELECT + 81 * - 54 + 15
----
-4359

query I rowsort
SELECT - 19 - + 54
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT ALL - 73 * 55 + - 39 DIV 64
----
-4015

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL - 73 * 55 + - 39 / 64
----
-4015

query I rowsort
SELECT + CASE - - 63 WHEN + 49 THEN + 86 END AS col0
----
NULL

query I rowsort
SELECT - 83 + + 61 AS col0
----
-22

query I rowsort
SELECT DISTINCT + 24 * - + 58 + 76 * COALESCE ( - 72, 90, 27 )
----
-6864

query I rowsort
SELECT - 59 + 19
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1495
SELECT ALL + 46 * + 22 DIV ( 48 * - 24 ) + 10
----
10

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL + 46 * + 22 / ( 48 * - 24 ) + 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT DISTINCT COALESCE ( - NULLIF ( SUM( ALL 70 ), 17 ), - 21, ( NULLIF ( 4, 77 ) ) + - 57 ) * 66 AS col1
----
-4620

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT COALESCE ( - NULLIF ( SUM ( ALL 70 ), 17 ), - 21, ( NULLIF ( 4, 77 ) ) + - 57 ) * 66 AS col1
----
-4620

query I rowsort
SELECT ALL - ( 80 ) * - 42 col2
----
3360

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

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

query I rowsort
SELECT ALL - 70 - + NULLIF ( 90, + CASE 66 WHEN + 69 + 73 THEN 76 END ) AS col1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - + 90 - + MAX( - 3 )
----
-87

skipif mysql # not compatible
query I rowsort label-1500
SELECT - + 90 - + MAX ( - 3 )
----
-87

query I rowsort
SELECT - 12 * - 66 * 9 AS col2
----
7128

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT DISTINCT + + ( NULLIF ( SUM( 45 ), - 96 ) ) * 18 AS col0
----
810

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT + + ( NULLIF ( SUM ( 45 ), - 96 ) ) * 18 AS col0
----
810

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1505
SELECT - MIN( DISTINCT CAST( NULL AS SIGNED ) ) - 46 * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1505
SELECT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) - 46 * - 24
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1506
SELECT DISTINCT + 27 * 82 DIV + 66
----
33

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT + 27 * 82 / + 66
----
33

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

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

query I rowsort
SELECT - 14 + - 22
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT - MIN( - + 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1509
SELECT - MIN ( - + 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1510
SELECT - 41 DIV - 87 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1510
SELECT - 41 / - 87 * COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT + COUNT( * ) * - NULLIF ( 7, - 63 * - 24 )
----
-7

skipif mysql # not compatible
query I rowsort label-1511
SELECT + COUNT ( * ) * - NULLIF ( 7, - 63 * - 24 )
----
-7

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

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

query I rowsort
SELECT - + 39 + + + 86
----
47

query I rowsort
SELECT + + 33 - - ( - 19 ) * + 14 AS col0
----
-233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1515
SELECT + - CASE - - 49 WHEN CAST( - COUNT( * ) AS DECIMAL ) THEN 58 * CAST( COALESCE ( + 49, - COUNT( * ) / + 42 + CAST( NULL AS SIGNED ) ) AS SIGNED ) WHEN - 33 THEN 27 WHEN - 44 THEN NULL END + - 98 / + COALESCE ( COUNT( ALL CAST( NULL AS DECIMAL ) ) + COUNT( * ) * 61, + 33 * + 23 + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1515
SELECT + - CASE - - 49 WHEN CAST ( - COUNT ( * ) AS REAL ) THEN 58 * CAST ( COALESCE ( + 49, - COUNT ( * ) / + 42 + CAST ( NULL AS INTEGER ) ) AS INTEGER ) WHEN - 33 THEN 27 WHEN - 44 THEN NULL END + - 98 / + COALESCE ( COUNT ( ALL CAST ( NULL AS REAL ) ) + COUNT ( * ) * 61, + 33 * + 23 + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT + NULLIF ( - 31, + 87 + COUNT( * ) ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-1516
SELECT + NULLIF ( - 31, + 87 + COUNT ( * ) ) col2
----
-31

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1518
SELECT ALL - COUNT( * ) DIV - 94 + + 87 + MIN( - 92 ) * ( 34 * 94 ) AS col1
----
-293945

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL - COUNT ( * ) / - 94 + + 87 + MIN ( - 92 ) * ( 34 * 94 ) AS col1
----
-293945

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1520
SELECT + 13 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-1520
SELECT + 13 / 62
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1521
SELECT 97 DIV 78 + + COUNT( ALL + ( + 63 ) ) * 30
----
31

skipif mysql # not compatible
query I rowsort label-1521
SELECT 97 / 78 + + COUNT ( ALL + ( + 63 ) ) * 30
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1522
SELECT ALL - 29 DIV + 52 + COUNT( * ) AS col1
----
1

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

query I rowsort
SELECT + 96 + - + 65 AS col0
----
31

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1525
SELECT ALL + 84, - 6 DIV + - 71 AS col2
----
84
0

skipif mysql # not compatible
query II rowsort label-1525
SELECT ALL + 84, - 6 / + - 71 AS col2
----
84
0

query I rowsort
SELECT ALL + 30 * - + 55 + + 26 AS col1
----
-1624

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT + 60 * - 16 DIV 1 * 3 AS col0
----
-2880

skipif mysql # not compatible
query I rowsort label-1527
SELECT + 60 * - 16 / 1 * 3 AS col0
----
-2880

query II rowsort
SELECT ALL + 74 AS col1, 86 + - + 5 * 77 AS col0
----
74
-299

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

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT + NULLIF ( - 81, COUNT ( * ) )
----
-81

query I rowsort
SELECT DISTINCT + 20 * 71 * 54 * - 92 - + 83
----
-7054643

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT - COALESCE ( 9, - COUNT( * ) ) + 11
----
2

skipif mysql # not compatible
query I rowsort label-1532
SELECT - COALESCE ( 9, - COUNT ( * ) ) + 11
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1533
SELECT + 35 AS col0, 30 * COUNT( * ) + 98 AS col0
----
35
128

skipif mysql # not compatible
query II rowsort label-1533
SELECT + 35 AS col0, 30 * COUNT ( * ) + 98 AS col0
----
35
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT CASE - COALESCE ( COUNT( * ), + 40 ) WHEN COUNT( * ) THEN 13 + + 83 * 71 WHEN - 80 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT CASE - COALESCE ( COUNT ( * ), + 40 ) WHEN COUNT ( * ) THEN 13 + + 83 * 71 WHEN - 80 THEN NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1535
SELECT + - CAST( 43 AS DECIMAL ) * - 72 - AVG ( ALL 81 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT + - CAST ( 43 AS REAL ) * - 72 - AVG ( ALL 81 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 55 * 74 AS col1
----
-4070

query I rowsort
SELECT ALL + + 22 * + + 64
----
1408

query I rowsort
SELECT + + 44 + + 21
----
65

query II rowsort
SELECT ALL + 72 AS col0, ( 82 ) + 20 AS col0
----
72
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT DISTINCT 84 * + CASE + 37 WHEN + 81 THEN COUNT( * ) WHEN 54 THEN NULL END + 36 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT 84 * + CASE + 37 WHEN + 81 THEN COUNT ( * ) WHEN 54 THEN NULL END + 36 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT DISTINCT MAX( ALL - + 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT MAX ( ALL - + 31 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL COALESCE ( COUNT( * ), - - 10, - 36 * 2 ) * ( 38 ) col0
----
38

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL COALESCE ( COUNT ( * ), - - 10, - 36 * 2 ) * ( 38 ) col0
----
38

query II rowsort
SELECT - 33 AS col1, 2 + - 85 + + 97 * 0 AS col0
----
-33
-83

query I rowsort
SELECT - 98 * - 77
----
7546

query I rowsort
SELECT 28 + 95 AS col0
----
123

query I rowsort
SELECT 31 * - 10 + + 90
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT - SUM( DISTINCT + 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-1547
SELECT - SUM ( DISTINCT + 53 ) AS col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1548
SELECT 21 DIV + - 96 * - + 68 + - 20 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1548
SELECT 21 / + - 96 * - + 68 + - 20 AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1549
SELECT ALL - MIN( 10 ) + + - COUNT( * ) + 1 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL - MIN ( 10 ) + + - COUNT ( * ) + 1 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1550
SELECT ALL - CASE - AVG ( ALL + CAST( NULL AS SIGNED ) ) WHEN 8 THEN 86 WHEN - 81 * 73 THEN 1 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL - CASE - AVG ( ALL + CAST ( NULL AS INTEGER ) ) WHEN 8 THEN 86 WHEN - 81 * 73 THEN 1 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT DISTINCT - + 13 + COUNT( * ) + - 21
----
-33

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT - + 13 + COUNT ( * ) + - 21
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT ALL + MIN( - 4 ) + - - 59 * 36 AS col1
----
2120

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL + MIN ( - 4 ) + - - 59 * 36 AS col1
----
2120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1553
SELECT ALL - - 63 + + CAST( - + 13 AS SIGNED ) DIV COALESCE ( - MAX( DISTINCT + 98 ), + 94 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL - - 63 + + CAST ( - + 13 AS INTEGER ) / COALESCE ( - MAX ( DISTINCT + 98 ), + 94 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT DISTINCT + 10 + - ( + - MIN( DISTINCT - - 67 ) ) * + 78 AS col2
----
5236

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT + 10 + - ( + - MIN ( DISTINCT - - 67 ) ) * + 78 AS col2
----
5236

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

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

query I rowsort
SELECT NULLIF ( - 99, - 70 ) * 39 AS col0
----
-3861

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ALL + MIN( - 91 ) * - COUNT( DISTINCT 94 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL + MIN ( - 91 ) * - COUNT ( DISTINCT 94 ) AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1558
SELECT 29 DIV - - 78 * + 30 * - 1 - 65
----
-65

skipif mysql # not compatible
query I rowsort label-1558
SELECT 29 / - - 78 * + 30 * - 1 - 65
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ALL + COALESCE ( - - COUNT( * ), - + 42, + ( + ( 8 ) ) ) + - 24 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL + COALESCE ( - - COUNT ( * ), - + 42, + ( + ( 8 ) ) ) + - 24 AS col1
----
-23

query I rowsort
SELECT ALL 72 * 34
----
2448

query I rowsort
SELECT DISTINCT - 48 - + - 68 col2
----
20

query I rowsort
SELECT DISTINCT ( - + 76 ) - - 94 * + 3 AS col2
----
206

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1563
SELECT ALL 36 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL 36 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 28 * - 3
----
-84

query I rowsort
SELECT ( 78 ) - - 66 + - 23 AS col1
----
121

query I rowsort
SELECT DISTINCT 71 * 49 AS col1
----
3479

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT - SUM( ALL + 69 ) * - - 25 + NULLIF ( - 72, 63 ) - - 26 AS col1
----
-1771

skipif mysql # not compatible
query I rowsort label-1567
SELECT - SUM ( ALL + 69 ) * - - 25 + NULLIF ( - 72, 63 ) - - 26 AS col1
----
-1771

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT ALL + 9 * NULLIF ( + - 48, + + ( 63 ) + - 16 ) + ( + 18 ) * CASE COALESCE ( 66, - 74 ) WHEN CASE - 95 WHEN + 73 - 56 THEN - 46 - ( CASE 43 WHEN 59 THEN - 66 * MAX( 35 ) WHEN ( 79 ) * 47 THEN NULL END ) END THEN + 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL + 9 * NULLIF ( + - 48, + + ( 63 ) + - 16 ) + ( + 18 ) * CASE COALESCE ( 66, - 74 ) WHEN CASE - 95 WHEN + 73 - 56 THEN - 46 - ( CASE 43 WHEN 59 THEN - 66 * MAX ( 35 ) WHEN ( 79 ) * 47 THEN NULL END ) END THEN + 49 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT DISTINCT - CASE 22 WHEN + 12 + - + COUNT( * ) THEN + COUNT( * ) WHEN - COUNT( DISTINCT + 7 ) THEN + 5 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1569
SELECT DISTINCT - CASE 22 WHEN + 12 + - + COUNT ( * ) THEN + COUNT ( * ) WHEN - COUNT ( DISTINCT + 7 ) THEN + 5 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1570
SELECT ALL CAST( + - 87 AS SIGNED ) * + + 61
----
-5307

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL CAST ( + - 87 AS INTEGER ) * + + 61
----
-5307

query I rowsort
SELECT - 30 * 83 * - 33 * - 25 col0
----
-2054250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1572
SELECT ALL - 38 * - 88 / - MIN( ALL + - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL - 38 * - 88 / - MIN ( ALL + - CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT 66 + ( 75 )
----
141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT COUNT( * ) + + - 11 * - 62 - 66 AS col0
----
617

skipif mysql # not compatible
query I rowsort label-1575
SELECT COUNT ( * ) + + - 11 * - 62 - 66 AS col0
----
617

query I rowsort
SELECT 43 * + 31 * + + ( 79 )
----
105307

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT ALL - COUNT( * ) * ( - 77 ) * 65 * 21 + + 20 AS col1
----
105125

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL - COUNT ( * ) * ( - 77 ) * 65 * 21 + + 20 AS col1
----
105125

query I rowsort
SELECT ALL - - ( 71 ) + + 47 + - ( + 80 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT + MIN( - 62 ) + + 85
----
23

skipif mysql # not compatible
query I rowsort label-1581
SELECT + MIN ( - 62 ) + + 85
----
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1582
SELECT ALL - 34 + - 13 DIV + - CAST( - 96 AS SIGNED ) * + + 1 * + ( + 62 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL - 34 + - 13 / + - CAST ( - 96 AS INTEGER ) * + + 1 * + ( + 62 ) AS col2
----
-34

query I rowsort
SELECT 13 + ( + 29 )
----
42

query I rowsort
SELECT 49 * 34 AS col0
----
1666

query I rowsort
SELECT 23 + + 89 + - + ( 18 ) AS col1
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-1586
SELECT ALL + 14 * - 25 - - 50, - 67 DIV + 28 AS col2
----
-300
-2

skipif mysql # not compatible
query II rowsort label-1586
SELECT ALL + 14 * - 25 - - 50, - 67 / + 28 AS col2
----
-300
-2

query I rowsort
SELECT DISTINCT - 43 * - 45 col1
----
1935

query I rowsort
SELECT DISTINCT - ( 25 ) col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1589
SELECT DISTINCT - 81 * 26 DIV 79 - - - 14
----
-40

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT - 81 * 26 / 79 - - - 14
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL - CASE COUNT( * ) WHEN + 31 - - 33 + + + 3 * - 74 THEN - 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL - CASE COUNT ( * ) WHEN + 31 - - 33 + + + 3 * - 74 THEN - 72 END
----
NULL

query I rowsort
SELECT DISTINCT - ( NULLIF ( ( + + 37 ), 27 ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT COUNT( ALL 41 )
----
1

skipif mysql # not compatible
query I rowsort label-1592
SELECT COUNT ( ALL 41 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1593
SELECT DISTINCT - ( - COUNT( - CAST( NULL AS SIGNED ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT - ( - COUNT ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL - - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + + NULLIF ( + 18, + + 1 + 54 * + 2 - + ( - 27 ) )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-1596
SELECT - 44 AS col2, + 1 * - - SUM( ALL - - 17 ) - 13 + 93 AS col1
----
-44
97

skipif mysql # not compatible
query II rowsort label-1596
SELECT - 44 AS col2, + 1 * - - SUM ( ALL - - 17 ) - 13 + 93 AS col1
----
-44
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1597
SELECT + + 61 + + 81 + - CAST( NULL AS SIGNED ) * - - COUNT( * ) * 71 + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1597
SELECT + + 61 + + 81 + - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * 71 + + 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1598
SELECT + CASE + 45 WHEN - 40 THEN + 43 WHEN - - CASE + 51 WHEN + CAST( - COUNT( * ) AS SIGNED ) * CASE - 71 / + 26 WHEN + COUNT( ALL NULLIF ( + 6, 16 ) ) THEN NULL WHEN 71 THEN 49 * + NULLIF ( - 2, 70 ) ELSE NULL END + + ( 29 ) * COUNT( * ) THEN NULL ELSE COUNT( * ) * - 22 + - 15 END * 46 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT + CASE + 45 WHEN - 40 THEN + 43 WHEN - - CASE + 51 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) * CASE - 71 / + 26 WHEN + COUNT ( ALL NULLIF ( + 6, 16 ) ) THEN NULL WHEN 71 THEN 49 * + NULLIF ( - 2, 70 ) ELSE NULL END + + ( 29 ) * COUNT ( * ) THEN NULL ELSE COUNT ( * ) * - 22 + - 15 END * 46 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT - - 92 * - 29 * + 75 - + - 55 + CASE 3 WHEN + 58 THEN NULL WHEN + 77 * - NULLIF ( + 66, 0 * 74 ) + + COUNT( * ) * 0 THEN 51 + - 58 ELSE NULL END * 38 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1599
SELECT - - 92 * - 29 * + 75 - + - 55 + CASE 3 WHEN + 58 THEN NULL WHEN + 77 * - NULLIF ( + 66, 0 * 74 ) + + COUNT ( * ) * 0 THEN 51 + - 58 ELSE NULL END * 38 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL NULLIF ( - NULLIF ( + 98, COUNT( * ) ), - 18 * 37 ) + + 43
----
-55

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL NULLIF ( - NULLIF ( + 98, COUNT ( * ) ), - 18 * 37 ) + + 43
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT - 90 + - + 68 + + 10 + - COUNT( * ) + 25 + + MIN( ALL + 68 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-1601
SELECT - 90 + - + 68 + + 10 + - COUNT ( * ) + 25 + + MIN ( ALL + 68 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT + 3 * MIN( 99 ) + + CASE - + 27 WHEN 76 * - COUNT( 61 ) THEN 16 WHEN NULLIF ( 90, 3 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1602
SELECT + 3 * MIN ( 99 ) + + CASE - + 27 WHEN 76 * - COUNT ( 61 ) THEN 16 WHEN NULLIF ( 90, 3 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT + - 24 * + - 24 * + MAX( - - 66 ) * COUNT( * ) - - 29 * + 32
----
38944

skipif mysql # not compatible
query I rowsort label-1603
SELECT + - 24 * + - 24 * + MAX ( - - 66 ) * COUNT ( * ) - - 29 * + 32
----
38944

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT ALL + COUNT( * ) + - CASE + 66 WHEN + - ( - + 90 ) - - 70 THEN - COUNT( * ) * - 10 - 18 WHEN ( 45 ) * 9 THEN - 11 + - 72 ELSE NULL END / 59 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL + COUNT ( * ) + - CASE + 66 WHEN + - ( - + 90 ) - - 70 THEN - COUNT ( * ) * - 10 - 18 WHEN ( 45 ) * 9 THEN - 11 + - 72 ELSE NULL END / 59 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT + + 60 + + + 56 * - COUNT( * ) col2
----
4

skipif mysql # not compatible
query I rowsort label-1606
SELECT + + 60 + + + 56 * - COUNT ( * ) col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1607
SELECT + - 85 + - - COALESCE ( - CAST( NULL AS SIGNED ), + COUNT( * ) ) * + 41
----
-44

skipif mysql # not compatible
query I rowsort label-1607
SELECT + - 85 + - - COALESCE ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) * + 41
----
-44

query I rowsort
SELECT + + 27 * + 83 AS col2
----
2241

query I rowsort
SELECT ALL 36 + 99
----
135

query II rowsort
SELECT - 89, - 19 AS col1
----
-89
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT DISTINCT MIN( DISTINCT + 8 ) - - 0 + 63 + + COALESCE ( 29, + 39 * - 53 + COUNT( + ( 86 ) - 99 ), 27 )
----
100

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT MIN ( DISTINCT + 8 ) - - 0 + 63 + + COALESCE ( 29, + 39 * - 53 + COUNT ( + ( 86 ) - 99 ), 27 )
----
100

query I rowsort
SELECT + 67 * - 54
----
-3618

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT ALL CASE - COUNT( * ) WHEN 96 * - 30 * + COUNT( * ) THEN + - COUNT( * ) END * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL CASE - COUNT ( * ) WHEN 96 * - 30 * + COUNT ( * ) THEN + - COUNT ( * ) END * 9
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT - ( + NULLIF ( CAST( + + 67 AS SIGNED ), + - 93 ) ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1615
SELECT - ( + NULLIF ( CAST ( + + 67 AS INTEGER ), + - 93 ) ) AS col0
----
-67

query I rowsort
SELECT + 37 * + 64 AS col2
----
2368

query I rowsort
SELECT ALL CASE - - 8 WHEN + + 56 * + 96 * - 60 + + 55 THEN + 29 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1618
SELECT + 18 DIV - 9 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1618
SELECT + 18 / - 9 AS col0
----
-2

query II rowsort
SELECT ALL + 12 AS col0, - 96 + - 44 * + 84 * 90
----
12
-332736

query I rowsort
SELECT - 0 * - 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT - CASE - 44 WHEN - 60 THEN NULL ELSE + COALESCE ( + 26, + ( - 77 ) ) END DIV 29
----
0

skipif mysql # not compatible
query I rowsort label-1621
SELECT - CASE - 44 WHEN - 60 THEN NULL ELSE + COALESCE ( + 26, + ( - 77 ) ) END / 29
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1623
SELECT DISTINCT + SUM( DISTINCT - 80 ), 75 + + + 62 * 9 * + + 44 - 37 * - CAST( 9 AS SIGNED ) AS col1
----
-80
24960

skipif mysql # not compatible
query II rowsort label-1623
SELECT DISTINCT + SUM ( DISTINCT - 80 ), 75 + + + 62 * 9 * + + 44 - 37 * - CAST ( 9 AS INTEGER ) AS col1
----
-80
24960

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT DISTINCT + NULLIF ( + 94, COUNT( * ) + + + 78 / - 44 ) * + MIN( ALL 67 ) + COUNT( * ) * 20
----
6318

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT + NULLIF ( + 94, COUNT ( * ) + + + 78 / - 44 ) * + MIN ( ALL 67 ) + COUNT ( * ) * 20
----
6318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1625
SELECT DISTINCT + 77 * - 49 * - - COUNT( * ) + - 83 + - 71 * 43 + COUNT( * ) DIV 74 AS col2
----
-6909

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT + 77 * - 49 * - - COUNT ( * ) + - 83 + - 71 * 43 + COUNT ( * ) / 74 AS col2
----
-6909

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL + 42 * - COUNT( * ) + + 52 AS col2
----
10

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

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

skipif mysql # not compatible
query II rowsort label-1627
SELECT + - COUNT ( * ), + 33 col0
----
-1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT DISTINCT + 48 * - NULLIF ( + 86, 68 ) + - + 63 * + - COUNT( ALL 54 )
----
-4065

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT + 48 * - NULLIF ( + 86, 68 ) + - + 63 * + - COUNT ( ALL 54 )
----
-4065

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT ALL + + 51 * + 53 * 31 + ( + - 34 ) * - - 49 - ( 47 ) * 76 + + ( 39 + + 82 ) DIV + 3 AS col1
----
78595

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL + + 51 * + 53 * 31 + ( + - 34 ) * - - 49 - ( 47 ) * 76 + + ( 39 + + 82 ) / + 3 AS col1
----
78595

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT DISTINCT + - 94 DIV + 43 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT + - 94 / + 43 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT + - SUM( DISTINCT 48 ) + 28 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1633
SELECT + - SUM ( DISTINCT 48 ) + 28 AS col0
----
-20

query I rowsort
SELECT - 81 + + 83 AS col1
----
2

query II rowsort
SELECT ALL + 88, + 78 + + 46 col2
----
88
124

query II rowsort
SELECT 36 AS col1, - 51 AS col1
----
36
-51

query I rowsort
SELECT - - 54 + 67 * 86
----
5816

onlyif mysql # aggregate syntax: 
query II rowsort label-1638
SELECT - 67 * - - 95 AS col0, - 9 * MAX( + 42 ) * - 65 * - COUNT( * ) AS col0
----
-6365
-24570

skipif mysql # not compatible
query II rowsort label-1638
SELECT - 67 * - - 95 AS col0, - 9 * MAX ( + 42 ) * - 65 * - COUNT ( * ) AS col0
----
-6365
-24570

query I rowsort
SELECT - 85 + - 80 + - - 83 + - - 11 * - + 23
----
-335

onlyif mysql # aggregate syntax: 
query II rowsort label-1640
SELECT + 61 + - 28 AS col1, + COUNT( DISTINCT + 25 )
----
33
1

skipif mysql # not compatible
query II rowsort label-1640
SELECT + 61 + - 28 AS col1, + COUNT ( DISTINCT + 25 )
----
33
1

query I rowsort
SELECT DISTINCT + 16 - 79
----
-63

query I rowsort
SELECT DISTINCT - ( - 31 ) * - + 74 * 77 AS col1
----
-176638

query I rowsort
SELECT - 42 * - + ( + + 7 )
----
294

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1644
SELECT + 7 + - CAST( NULL AS DECIMAL ) + + - ( - 16 ) * - - 78 col2, 4
----
NULL
4

skipif mysql # not compatible
query II rowsort label-1644
SELECT + 7 + - CAST ( NULL AS REAL ) + + - ( - 16 ) * - - 78 col2, 4
----
NULL
4

query I rowsort
SELECT ALL 6 * + - 16 * - + 16 AS col2
----
1536

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT + NULLIF ( 44, + - COUNT( * ) ) + - 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1647
SELECT + NULLIF ( 44, + - COUNT ( * ) ) + - 22 AS col0
----
22

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

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL 53 + + + COUNT ( * ) AS col2
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT MIN( ALL - + 77 ) + 22
----
-55

skipif mysql # not compatible
query I rowsort label-1650
SELECT MIN ( ALL - + 77 ) + 22
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT ALL 5 + + 96 DIV 86 + - + 31 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL 5 + + 96 / 86 + - + 31 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT - 14 + + ( - + COUNT( * ) ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT - 14 + + ( - + COUNT ( * ) ) col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-1653
SELECT 3 DIV + 24 + 85 * 19
----
1615

skipif mysql # not compatible
query I rowsort label-1653
SELECT 3 / + 24 + 85 * 19
----
1615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1654
SELECT ALL COUNT( CAST( - + 38 AS SIGNED ) ) + + 54
----
55

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL COUNT ( CAST ( - + 38 AS INTEGER ) ) + + 54
----
55

query I rowsort
SELECT - 23 + 98 col1
----
75

query II rowsort
SELECT 51 * - 14 AS col0, - 47
----
-714
-47

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

skipif mysql # not compatible
query I rowsort label-1657
SELECT + COUNT ( * ) * - - MIN ( ALL ( + + 81 ) )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1658
SELECT ALL - - 96 DIV 24 * - 41 * - + 75
----
12300

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL - - 96 / 24 * - 41 * - + 75
----
12300

query I rowsort
SELECT ( + 81 ) + + + 1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT DISTINCT 41 + 38 * + COUNT( * ) - - 70 AS col0
----
149

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT 41 + 38 * + COUNT ( * ) - - 70 AS col0
----
149

query I rowsort
SELECT DISTINCT - 57 * 43 * + ( + - 32 ) AS col0
----
78432

query I rowsort
SELECT + 90 / - 28 * + CASE - 82 WHEN + - 61 THEN NULL WHEN - 13 - - 10 + 67 THEN NULL WHEN + 54 THEN 85 * 1 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL - NULLIF ( + - 82, SUM( DISTINCT - 72 ) * + COUNT( * ) + + 96 - 12 * 35 ) + COUNT( ALL 88 ) * + 73
----
155

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL - NULLIF ( + - 82, SUM ( DISTINCT - 72 ) * + COUNT ( * ) + + 96 - 12 * 35 ) + COUNT ( ALL 88 ) * + 73
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT ALL + MAX( ALL 36 ) - 88
----
-52

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL + MAX ( ALL 36 ) - 88
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1665
SELECT - 56 - 50 * + + 5 - - 17 * NULLIF ( - - 63, + + CASE 96 WHEN 10 * + 27 + - MIN( DISTINCT - 71 ) THEN + 43 ELSE CAST( - 48 AS SIGNED ) END ) DIV 27 + 33 AS col0
----
-234

skipif mysql # not compatible
query I rowsort label-1665
SELECT - 56 - 50 * + + 5 - - 17 * NULLIF ( - - 63, + + CASE 96 WHEN 10 * + 27 + - MIN ( DISTINCT - 71 ) THEN + 43 ELSE CAST ( - 48 AS INTEGER ) END ) / 27 + 33 AS col0
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-1666
SELECT - 39 * 46 DIV 91 col1
----
-19

skipif mysql # not compatible
query I rowsort label-1666
SELECT - 39 * 46 / 91 col1
----
-19

query I rowsort
SELECT ALL + 5 - - + 61
----
66

query I rowsort
SELECT 0 * + 35 AS col0
----
0

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

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

query I rowsort
SELECT DISTINCT + 61 * - - 96
----
5856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1671
SELECT ALL + COUNT( * ) * - NULLIF ( + 5, - CAST( + 89 AS SIGNED ) )
----
-5

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL + COUNT ( * ) * - NULLIF ( + 5, - CAST ( + 89 AS INTEGER ) )
----
-5

query I rowsort
SELECT 32 * + 46
----
1472

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT ALL + 2 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL + 2 / 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT ALL + 12 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL + 12 / 92 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1675
SELECT ALL - COUNT( * ) DIV - - NULLIF ( - + COUNT( * ), - NULLIF ( 7, - 34 ) DIV + 31 )
----
1

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL - COUNT ( * ) / - - NULLIF ( - + COUNT ( * ), - NULLIF ( 7, - 34 ) / + 31 )
----
1

query I rowsort
SELECT DISTINCT - 85 * - 32
----
2720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1677
SELECT 41 DIV - COALESCE ( + COUNT( * ), - 39 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-1677
SELECT 41 / - COALESCE ( + COUNT ( * ), - 39 ) AS col1
----
-41

query I rowsort
SELECT 77 * - 18
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT 48 * - SUM( ALL 3 ) col1
----
-144

skipif mysql # not compatible
query I rowsort label-1679
SELECT 48 * - SUM ( ALL 3 ) col1
----
-144

query I rowsort
SELECT ALL 65 + - 95 AS col2
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT DISTINCT - SUM( - 20 ) * + 28 col0
----
560

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT - SUM ( - 20 ) * + 28 col0
----
560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1683
SELECT 67 DIV COUNT( ALL - 34 )
----
67

skipif mysql # not compatible
query I rowsort label-1683
SELECT 67 / COUNT ( ALL - 34 )
----
67

query II rowsort
SELECT DISTINCT 23, + 51 AS col2
----
23
51

query I rowsort
SELECT ALL + 13 + - 42 col0
----
-29

query I rowsort
SELECT ALL 6 + COALESCE ( + 37, 94 ) AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1687
SELECT 57 + - SUM( DISTINCT - 22 ) + + - ( 3 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT 57 + - SUM ( DISTINCT - 22 ) + + - ( 3 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT ALL 23 + + 27 + + 77 AS col0, - MIN( DISTINCT + 80 ) + - 50 AS col0
----
127
-130

skipif mysql # not compatible
query II rowsort label-1688
SELECT ALL 23 + + 27 + + 77 AS col0, - MIN ( DISTINCT + 80 ) + - 50 AS col0
----
127
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1689
SELECT + NULLIF ( - + COUNT( * ), - 37 ) DIV 40 + - + 91 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-1689
SELECT + NULLIF ( - + COUNT ( * ), - 37 ) / 40 + - + 91 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT 87 * - NULLIF ( - 66, + + 47 / - + 91 * - + 50 / + - COUNT( * ) + - - 30 + 29 ) - - 12 AS col1
----
5754

skipif mysql # not compatible
query I rowsort label-1690
SELECT 87 * - NULLIF ( - 66, + + 47 / - + 91 * - + 50 / + - COUNT ( * ) + - - 30 + 29 ) - - 12 AS col1
----
5754

query I rowsort
SELECT ALL - 10 + + - 25
----
-35

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1693
SELECT DISTINCT - - COUNT( + CAST( - ( + 51 ) AS DECIMAL ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT - - COUNT ( + CAST ( - ( + 51 ) AS REAL ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT + 47 - - + NULLIF ( - MIN( DISTINCT - 97 ), COUNT( * ) / - COUNT( * ) ) AS col0
----
144

skipif mysql # not compatible
query I rowsort label-1694
SELECT + 47 - - + NULLIF ( - MIN ( DISTINCT - 97 ), COUNT ( * ) / - COUNT ( * ) ) AS col0
----
144

query I rowsort
SELECT + + CASE + 19 WHEN + 57 THEN + - 87 + 71 - - + NULLIF ( + 41, + + 83 ) - + 27 END * + 78 + - 59
----
NULL

query I rowsort
SELECT ALL 30 + + 15 * - 35 + + - 99 * + 31 AS col2
----
-3564

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL 13 - - - COALESCE ( + 55, - + COUNT( * ) + - 54 * ( 51 ) ) + + 68 * - 15 col1
----
-1062

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL 13 - - - COALESCE ( + 55, - + COUNT ( * ) + - 54 * ( 51 ) ) + + 68 * - 15 col1
----
-1062

query I rowsort
SELECT ALL 57 * 76 AS col0
----
4332

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

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

query II rowsort
SELECT + - 25 * + 84 + + - 95 AS col1, + 93
----
-2195
93

query II rowsort
SELECT 85 AS col2, 71 * - 21 AS col2
----
85
-1491

query I rowsort
SELECT + 10 * - 66 + ( + 44 ) + 32 * - 42 * - + 49
----
65240

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

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL + 34 - + COUNT ( * ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-1704
SELECT 12 * 18 DIV + 98 AS col1, 77 - - ( + - 32 ) col0
----
2
45

skipif mysql # not compatible
query II rowsort label-1704
SELECT 12 * 18 / + 98 AS col1, 77 - - ( + - 32 ) col0
----
2
45

query II rowsort
SELECT + 26 AS col2, 8 * + ( + 20 ) * - 66 - + - 88
----
26
-10472

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1706
SELECT ALL - 2, CAST( - ( - 57 ) AS SIGNED ) DIV - 79 col1
----
-2
0

skipif mysql # not compatible
query II rowsort label-1706
SELECT ALL - 2, CAST ( - ( - 57 ) AS INTEGER ) / - 79 col1
----
-2
0

query II rowsort
SELECT + - 45 AS col2, - 64
----
-45
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1708
SELECT ALL - - CAST( + + 77 AS SIGNED ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL - - CAST ( + + 77 AS INTEGER ) AS col1
----
77

query I rowsort
SELECT DISTINCT - NULLIF ( 24, - 56 - - 70 )
----
-24

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1711
SELECT ALL - SUM( 64 ) * - 10, SUM( - + 73 ) AS col0
----
640
-73

skipif mysql # not compatible
query II rowsort label-1711
SELECT ALL - SUM ( 64 ) * - 10, SUM ( - + 73 ) AS col0
----
640
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT ALL + + COUNT( * ) * 95 col0
----
95

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL + + COUNT ( * ) * 95 col0
----
95

query II rowsort
SELECT 42 * 53 AS col2, + 19 AS col1
----
2226
19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT DISTINCT + 98 * - CAST( + 50 AS SIGNED ) * 8 AS col0
----
-39200

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT + 98 * - CAST ( + 50 AS INTEGER ) * 8 AS col0
----
-39200

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT COUNT( * ) + + MIN( - NULLIF ( + - 41, 29 ) ) + - + 70 + - + 41 - - + 98 col0
----
29

skipif mysql # not compatible
query I rowsort label-1716
SELECT COUNT ( * ) + + MIN ( - NULLIF ( + - 41, 29 ) ) + - + 70 + - + 41 - - + 98 col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT 61 + - 42 * + 74 * + + SUM( ALL + + 88 )
----
-273443

skipif mysql # not compatible
query I rowsort label-1717
SELECT 61 + - 42 * + 74 * + + SUM ( ALL + + 88 )
----
-273443

query I rowsort
SELECT 67 * 66
----
4422

query I rowsort
SELECT ALL + 44 + - - 23
----
67

query I rowsort
SELECT 48 + 46 - - 19
----
113

query II rowsort
SELECT 57 + 52, - 35 - - - 30 AS col2
----
109
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-1722
SELECT ALL - 54 DIV 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL - 54 / 92 AS col0
----
0

query I rowsort
SELECT ALL - 81 + - 6 AS col1
----
-87

query I rowsort
SELECT DISTINCT + 27 + - 97
----
-70

query II rowsort
SELECT DISTINCT - 63 + 8 AS col1, NULLIF ( 59, - - 60 + + 13 * - + 35 )
----
-55
59

query I rowsort
SELECT ALL + 9 + - 63 AS col2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1727
SELECT ALL - 54 DIV - - COUNT( * ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL - 54 / - - COUNT ( * ) col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-1728
SELECT - 94 + - - 8 DIV 5 + - - 73
----
-20

skipif mysql # not compatible
query I rowsort label-1728
SELECT - 94 + - - 8 / 5 + - - 73
----
-20

query I rowsort
SELECT DISTINCT - 36 * 39 AS col0
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL + 65 + - 9 + - ( + COUNT( * ) ) + - + NULLIF ( - ( + + NULLIF ( + 96, + 51 ) ), AVG ( + 88 ) ) AS col2
----
151

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL + 65 + - 9 + - ( + COUNT ( * ) ) + - + NULLIF ( - ( + + NULLIF ( + 96, + 51 ) ), AVG ( + 88 ) ) AS col2
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1731
SELECT - COUNT( * ) + - 33 AS col0, 90 + - + 73 + + 96 DIV 91
----
-34
18

skipif mysql # not compatible
query II rowsort label-1731
SELECT - COUNT ( * ) + - 33 AS col0, 90 + - + 73 + + 96 / 91
----
-34
18

query II rowsort
SELECT ALL - 79 - + 43, 98 * - 73 col0
----
-122
-7154

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT DISTINCT + 20 * - - 4 - - + MIN( ALL - 80 ) * - 14
----
1200

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT + 20 * - - 4 - - + MIN ( ALL - 80 ) * - 14
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1734
SELECT DISTINCT - 62 * CAST( - 45 AS SIGNED ) AS col1
----
2790

skipif mysql # not compatible
query I rowsort label-1734
SELECT DISTINCT - 62 * CAST ( - 45 AS INTEGER ) AS col1
----
2790

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT ALL - + MIN( - + 79 ) * - 4 - - MAX( ALL - 94 )
----
-410

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL - + MIN ( - + 79 ) * - 4 - - MAX ( ALL - 94 )
----
-410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1736
SELECT DISTINCT ( - + COUNT( * ) ) DIV - CASE + 7 WHEN + - CAST( NULL AS SIGNED ) THEN NULL WHEN - 12 * - 52 + - 79 THEN NULL WHEN 5 * - CASE 22 WHEN MAX( DISTINCT + 52 ) THEN NULL WHEN 10 * - 88 + + 96 THEN 27 WHEN - 54 * + COUNT( 53 ) THEN 57 * - 78 ELSE NULL END + 85 THEN 19 ELSE 20 * 29 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT ( - + COUNT ( * ) ) / - CASE + 7 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 12 * - 52 + - 79 THEN NULL WHEN 5 * - CASE 22 WHEN MAX ( DISTINCT + 52 ) THEN NULL WHEN 10 * - 88 + + 96 THEN 27 WHEN - 54 * + COUNT ( 53 ) THEN 57 * - 78 ELSE NULL END + 85 THEN 19 ELSE 20 * 29 END AS col2
----
0

query II rowsort
SELECT + ( 25 ), - 73 AS col1
----
25
-73

query I rowsort
SELECT + - 68 + 1 AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1739
SELECT + 30 * + COUNT( * ) * - CAST( - 83 AS SIGNED )
----
2490

skipif mysql # not compatible
query I rowsort label-1739
SELECT + 30 * + COUNT ( * ) * - CAST ( - 83 AS INTEGER )
----
2490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT 66 * + 73 * CAST( NULL AS SIGNED ) + + 10 * 62 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1740
SELECT 66 * + 73 * CAST ( NULL AS INTEGER ) + + 10 * 62 * 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT DISTINCT - + 7 DIV - - 85 * 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT - + 7 / - - 85 * 29 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1742
SELECT + - 16 DIV + 86 - + 95
----
-95

skipif mysql # not compatible
query I rowsort label-1742
SELECT + - 16 / + 86 - + 95
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT ALL - COUNT( * ) * - - 16 + 98
----
82

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL - COUNT ( * ) * - - 16 + 98
----
82

query I rowsort
SELECT DISTINCT ( 14 ) * 79 AS col2
----
1106

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1746
SELECT + 2 DIV + 95 * COALESCE ( + - COUNT( * ), - 50 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1746
SELECT + 2 / + 95 * COALESCE ( + - COUNT ( * ), - 50 ) col1
----
0

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

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

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

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

query I rowsort
SELECT ALL 29 * - 81 * + - 52 + - - ( - 88 )
----
122060

query I rowsort
SELECT + 54 - + - 77 col2
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1751
SELECT DISTINCT AVG ( ALL - 43 ) * + - CASE - + COUNT( * ) WHEN - + 38 * COALESCE ( CAST( - 54 AS SIGNED ), ( - 48 ) + CAST( + COUNT( - 0 ) AS DECIMAL ) ) * COUNT( * ) THEN - 41 / - MAX( + 87 ) WHEN 91 THEN NULL WHEN - 58 * + 65 THEN NULL ELSE NULL END + - ( 86 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT AVG ( ALL - 43 ) * + - CASE - + COUNT ( * ) WHEN - + 38 * COALESCE ( CAST ( - 54 AS INTEGER ), ( - 48 ) + CAST ( + COUNT ( - 0 ) AS REAL ) ) * COUNT ( * ) THEN - 41 / - MAX ( + 87 ) WHEN 91 THEN NULL WHEN - 58 * + 65 THEN NULL ELSE NULL END + - ( 86 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 22 * 70 AS col1
----
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT DISTINCT 89 + 61 * + + COUNT( * ) col2
----
150

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT 89 + 61 * + + COUNT ( * ) col2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT - 18 * - SUM( 50 ) * - 78 AS col2
----
-70200

skipif mysql # not compatible
query I rowsort label-1754
SELECT - 18 * - SUM ( 50 ) * - 78 AS col2
----
-70200

query I rowsort
SELECT ALL 24 + - 61
----
-37

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

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL MAX ( ALL 2 )
----
2

query I rowsort
SELECT DISTINCT - 68 * - + 63
----
4284

query II rowsort
SELECT + 82 * + ( - + 85 ), 70 col1
----
-6970
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1759
SELECT - 88 * + + 98 DIV COUNT( * ) * - 44
----
379456

skipif mysql # not compatible
query I rowsort label-1759
SELECT - 88 * + + 98 / COUNT ( * ) * - 44
----
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT DISTINCT - + SUM( + ( - + 58 ) ) - + 5
----
53

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT - + SUM ( + ( - + 58 ) ) - + 5
----
53

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

skipif mysql # not compatible
query II rowsort label-1761
SELECT ALL COUNT ( * ) AS col0, + 15 + CAST ( NULL AS INTEGER ) + + - 15
----
1
NULL

query II rowsort
SELECT 59, - 33 + - 76 AS col2
----
59
-109

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT + - 78 + - + 48 - + COUNT( * ) * 53 AS col1
----
-179

skipif mysql # not compatible
query I rowsort label-1765
SELECT + - 78 + - + 48 - + COUNT ( * ) * 53 AS col1
----
-179

query II rowsort
SELECT 2, 54 + + NULLIF ( - + 43, - 63 ) AS col2
----
2
11

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

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

query I rowsort
SELECT - 31 * - 61 AS col1
----
1891

query I rowsort
SELECT + 6 * + 7
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT ALL + 17 * 4 + + ( - 3 ) + + - 7 - - + COUNT( * ) + 7 + - - 69 + - 98
----
37

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL + 17 * 4 + + ( - 3 ) + + - 7 - - + COUNT ( * ) + 7 + - - 69 + - 98
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1771
SELECT - + CASE + 4 WHEN + 95 * 92 + - + SUM( DISTINCT 59 ) THEN + CAST( NULL AS SIGNED ) WHEN + 0 * - 15 + + 2 THEN NULL ELSE NULL END * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1771
SELECT - + CASE + 4 WHEN + 95 * 92 + - + SUM ( DISTINCT 59 ) THEN + CAST ( NULL AS INTEGER ) WHEN + 0 * - 15 + + 2 THEN NULL ELSE NULL END * 25
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1772
SELECT ( COUNT ( * ) ) * 59 + - 62 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT DISTINCT + 73 * - + MAX( ALL + 44 ) * + 16 * - COUNT( * ) * + - CASE - 73 WHEN - 96 THEN NULL ELSE + 27 * - 36 - 38 END col2
----
51905920

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT + 73 * - + MAX ( ALL + 44 ) * + 16 * - COUNT ( * ) * + - CASE - 73 WHEN - 96 THEN NULL ELSE + 27 * - 36 - 38 END col2
----
51905920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1774
SELECT - CASE 72 WHEN + + 79 THEN 83 * + - 53 END * CAST( 70 AS SIGNED ) * + - 6 + - 77 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1774
SELECT - CASE 72 WHEN + + 79 THEN 83 * + - 53 END * CAST ( 70 AS INTEGER ) * + - 6 + - 77 + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL + + 43 * - 18 / - + COUNT ( * ) AS col2
----
774

onlyif mysql # aggregate syntax: 
query II rowsort label-1776
SELECT DISTINCT + - COALESCE ( + ( COUNT( * ) ), ( + 31 ) ) AS col0, 12 AS col2
----
-1
12

skipif mysql # not compatible
query II rowsort label-1776
SELECT DISTINCT + - COALESCE ( + ( COUNT ( * ) ), ( + 31 ) ) AS col0, 12 AS col2
----
-1
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1777
SELECT ALL - 30 / + - MAX( 15 ) - - - ( + + 88 ) * - CAST( NULL AS SIGNED ) * - + 22 + 40 AS col2, + ( - + 68 )
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-1777
SELECT ALL - 30 / + - MAX ( 15 ) - - - ( + + 88 ) * - CAST ( NULL AS INTEGER ) * - + 22 + 40 AS col2, + ( - + 68 )
----
NULL
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT + NULLIF ( - + 45, + NULLIF ( ( 16 ), - 53 + - + 90 / - + 19 * - - COUNT( * ) * + + 18 + CASE AVG ( DISTINCT + 47 ) WHEN 94 THEN - 93 * 9 ELSE NULL END ) ) col0
----
-45

skipif mysql # not compatible
query I rowsort label-1778
SELECT + NULLIF ( - + 45, + NULLIF ( ( 16 ), - 53 + - + 90 / - + 19 * - - COUNT ( * ) * + + 18 + CASE AVG ( DISTINCT + 47 ) WHEN 94 THEN - 93 * 9 ELSE NULL END ) ) col0
----
-45

query I rowsort
SELECT - 34 * - + 41 * - 81 * + 65 AS col0
----
-7339410

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT + COUNT( * ) * - - NULLIF ( - 70, + 68 * 75 ) * 49 + + + 83 - 37 AS col0
----
-3384

skipif mysql # not compatible
query I rowsort label-1780
SELECT + COUNT ( * ) * - - NULLIF ( - 70, + 68 * 75 ) * 49 + + + 83 - 37 AS col0
----
-3384

query II rowsort
SELECT + ( + + 8 ) + 64 AS col0, ( + - 9 ) col0
----
72
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1782
SELECT ALL 51 DIV 8 + - - 29 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL 51 / 8 + - - 29 AS col0
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1783
SELECT + COUNT( * ), 34 col1
----
1
34

skipif mysql # not compatible
query II rowsort label-1783
SELECT + COUNT ( * ), 34 col1
----
1
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1784
SELECT ALL CAST( + CASE - CASE - COUNT( * ) WHEN - ( - 54 ) + ( 88 ) THEN NULL WHEN 20 + - 56 THEN - - CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) * + 94 - 76 THEN NULL WHEN - 5 - 60 THEN 84 + - 43 * 51 ELSE 37 * 56 END * - 27 END WHEN - 85 THEN 3 / 4 ELSE - 29 * COALESCE ( - NULLIF ( 55, 99 ), 76 ) END AS SIGNED ) * 14 + ( 16 ) AS col1
----
22346

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL CAST ( + CASE - CASE - COUNT ( * ) WHEN - ( - 54 ) + ( 88 ) THEN NULL WHEN 20 + - 56 THEN - - CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * + 94 - 76 THEN NULL WHEN - 5 - 60 THEN 84 + - 43 * 51 ELSE 37 * 56 END * - 27 END WHEN - 85 THEN 3 / 4 ELSE - 29 * COALESCE ( - NULLIF ( 55, 99 ), 76 ) END AS INTEGER ) * 14 + ( 16 ) AS col1
----
22346

onlyif mysql # aggregate syntax: 
query II rowsort label-1785
SELECT ALL 25 * - COUNT( * ) + SUM( DISTINCT 57 ) AS col0, 66
----
32
66

skipif mysql # not compatible
query II rowsort label-1785
SELECT ALL 25 * - COUNT ( * ) + SUM ( DISTINCT 57 ) AS col0, 66
----
32
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT 61 + - 15 + + - 90 + ( + 50 ) + - MAX( ALL 42 ) + + 96 + - 63 * - 10 * - - 42 * + 83
----
2196240

skipif mysql # not compatible
query I rowsort label-1787
SELECT 61 + - 15 + + - 90 + ( + 50 ) + - MAX ( ALL 42 ) + + 96 + - 63 * - 10 * - - 42 * + 83
----
2196240

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL 43 * + + MIN( - 41 )
----
-1763

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL 43 * + + MIN ( - 41 )
----
-1763

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1790
SELECT + 4 AS col2, - MAX( + - ( 16 ) )
----
4
16

skipif mysql # not compatible
query II rowsort label-1790
SELECT + 4 AS col2, - MAX ( + - ( 16 ) )
----
4
16

query I rowsort
SELECT ALL 36 + + 11 col2
----
47

query I rowsort
SELECT 83 - 19 AS col0
----
64

query I rowsort
SELECT DISTINCT 48 + - 41 + + + 72 AS col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1794
SELECT ALL 7 * - + ( ( - 94 ) ) DIV - + CASE + 38 WHEN 40 THEN SUM( - 94 ) ELSE - - 97 * + 39 END * 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL 7 * - + ( ( - 94 ) ) / - + CASE + 38 WHEN 40 THEN SUM ( - 94 ) ELSE - - 97 * + 39 END * 73 AS col2
----
0

query II rowsort
SELECT - 15 AS col0, 54 + - 19 + 41 * + 29 AS col2
----
-15
1224

query I rowsort
SELECT 73 + - - 85 - - 45 AS col1
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT SUM( ALL - - 77 ) * + 37
----
2849

skipif mysql # not compatible
query I rowsort label-1797
SELECT SUM ( ALL - - 77 ) * + 37
----
2849

query I rowsort
SELECT 92 + - - COALESCE ( - + 99, + 58 ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL 70 - - + 56 + + COUNT( * ) * - 8
----
118

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL 70 - - + 56 + + COUNT ( * ) * - 8
----
118

query I rowsort
SELECT ALL COALESCE ( - - 84, - 27 ) * - 20 AS col2
----
-1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1801
SELECT ALL COUNT( * ) / 86 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL COUNT ( * ) / 86 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1802
SELECT - CAST( NULL AS SIGNED ) col0, + MIN( - - 90 )
----
NULL
90

skipif mysql # not compatible
query II rowsort label-1802
SELECT - CAST ( NULL AS INTEGER ) col0, + MIN ( - - 90 )
----
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL - SUM( DISTINCT - + 29 ) * - 55
----
-1595

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL - SUM ( DISTINCT - + 29 ) * - 55
----
-1595

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

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

query II rowsort
SELECT + 77 AS col2, 63
----
77
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1806
SELECT 41 + - - AVG ( 56 ) - - CAST( NULL AS DECIMAL ) * 30 * + - AVG ( DISTINCT + 21 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT 41 + - - AVG ( 56 ) - - CAST ( NULL AS REAL ) * 30 * + - AVG ( DISTINCT + 21 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 37 * 69
----
2553

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT - MAX( DISTINCT + 80 ) + - 48
----
-128

skipif mysql # not compatible
query I rowsort label-1808
SELECT - MAX ( DISTINCT + 80 ) + - 48
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT ALL 46 * COUNT( * ) + + - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL 46 * COUNT ( * ) + + - COUNT ( * )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1810
SELECT CAST( + + SUM( ALL + 13 ) AS SIGNED ) col1
----
13

skipif mysql # not compatible
query I rowsort label-1810
SELECT CAST ( + + SUM ( ALL + 13 ) AS INTEGER ) col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT - MIN( - 77 ) + - 57
----
20

skipif mysql # not compatible
query I rowsort label-1811
SELECT - MIN ( - 77 ) + - 57
----
20

query II rowsort
SELECT ALL + 77 AS col1, 22 AS col0
----
77
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT DISTINCT NULLIF ( + + 78, + 28 ) + - SUM( ALL - 14 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT NULLIF ( + + 78, + 28 ) + - SUM ( ALL - 14 ) AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1814
SELECT 97 * + 17 - + + 12 + + ( + 32 ) + + ( + CASE - - CAST( NULL AS SIGNED ) WHEN + 96 THEN + 60 * + 34 WHEN - 28 THEN - AVG ( ALL 43 ) + + 89 * 43 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1814
SELECT 97 * + 17 - + + 12 + + ( + 32 ) + + ( + CASE - - CAST ( NULL AS INTEGER ) WHEN + 96 THEN + 60 * + 34 WHEN - 28 THEN - AVG ( ALL 43 ) + + 89 * 43 END )
----
NULL

query I rowsort
SELECT DISTINCT 21 + + 47
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1816
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - NULLIF ( SUM( + - ( - + 78 ) ), - COUNT( * ) + + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - NULLIF ( SUM ( + - ( - + 78 ) ), - COUNT ( * ) + + 85 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1817
SELECT COUNT( * ), - COUNT( * ) DIV + 30 + - 83 * + 95 AS col1
----
1
-7885

skipif mysql # not compatible
query II rowsort label-1817
SELECT COUNT ( * ), - COUNT ( * ) / + 30 + - 83 * + 95 AS col1
----
1
-7885

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL + - 7 + + MAX( ALL + + 41 ) + - 49 * 60
----
-2906

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL + - 7 + + MAX ( ALL + + 41 ) + - 49 * 60
----
-2906

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1819
SELECT 77 DIV 97 * + 90 DIV - 90 DIV + 67 * COUNT( * ) - COUNT( * ) * + - MIN( DISTINCT 50 )
----
50

skipif mysql # not compatible
query I rowsort label-1819
SELECT 77 / 97 * + 90 / - 90 / + 67 * COUNT ( * ) - COUNT ( * ) * + - MIN ( DISTINCT 50 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1820
SELECT COUNT( * ) DIV COUNT( * ) * - + ( - 67 ) * + ( + 21 ) + 43 + + 24 + ( - - 67 ) * - - MIN( 74 ) * COALESCE ( + 89, - 21 + 38 * ( + 39 ) )
----
442736

skipif mysql # not compatible
query I rowsort label-1820
SELECT COUNT ( * ) / COUNT ( * ) * - + ( - 67 ) * + ( + 21 ) + 43 + + 24 + ( - - 67 ) * - - MIN ( 74 ) * COALESCE ( + 89, - 21 + 38 * ( + 39 ) )
----
442736

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

skipif mysql # not compatible
query I rowsort label-1821
SELECT + SUM ( - - 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT DISTINCT - - 78 + + 97 * MAX( + 55 )
----
5413

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT - - 78 + + 97 * MAX ( + 55 )
----
5413

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT ALL + 45 + MAX( COALESCE ( 47, + + COALESCE ( + + 17, + 9 + + + 76 ), - 90 + + - 77 ) )
----
92

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL + 45 + MAX ( COALESCE ( 47, + + COALESCE ( + + 17, + 9 + + + 76 ), - 90 + + - 77 ) )
----
92

query II rowsort
SELECT + + 13, 46 * - + 27 AS col1
----
13
-1242

query I rowsort
SELECT 48 + + + 55
----
103

query I rowsort
SELECT ALL - 85 * + 69
----
-5865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1827
SELECT COUNT( * ) * + CAST( - ( + 85 ) AS SIGNED ) + + 47 + + 75 DIV + 79 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1827
SELECT COUNT ( * ) * + CAST ( - ( + 85 ) AS INTEGER ) + + 47 + + 75 / + 79 AS col0
----
-38

query I rowsort
SELECT ALL + 49 * + 23 * - + 90
----
-101430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1829
SELECT ALL + 13 + - + COUNT( * ) + 35 * - 84 * + CAST( COUNT( * ) AS SIGNED ) * + 2 AS col2, 84 AS col1
----
-5868
84

skipif mysql # not compatible
query II rowsort label-1829
SELECT ALL + 13 + - + COUNT ( * ) + 35 * - 84 * + CAST ( COUNT ( * ) AS INTEGER ) * + 2 AS col2, 84 AS col1
----
-5868
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT DISTINCT + 40 * + - 39 * + + 75 * COUNT( * ) * - - 34
----
-3978000

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT + 40 * + - 39 * + + 75 * COUNT ( * ) * - - 34
----
-3978000

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1833
SELECT DISTINCT - COALESCE ( + NULLIF ( 41, - NULLIF ( + + COALESCE ( - 78, + 1 * + 28 + ( - + 31 ) + CASE - ( 71 ) WHEN - 56 * COUNT( ALL + 13 ) THEN NULL ELSE + 25 * + CASE 27 WHEN + 60 * CAST( - 55 AS DECIMAL ) THEN 73 END END ), MIN( - 83 ) ) ), 25 * + 42 + 83 )
----
-41

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT - COALESCE ( + NULLIF ( 41, - NULLIF ( + + COALESCE ( - 78, + 1 * + 28 + ( - + 31 ) + CASE - ( 71 ) WHEN - 56 * COUNT ( ALL + 13 ) THEN NULL ELSE + 25 * + CASE 27 WHEN + 60 * CAST ( - 55 AS REAL ) THEN 73 END END ), MIN ( - 83 ) ) ), 25 * + 42 + 83 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1834
SELECT - CAST( + - ( - CASE 80 WHEN - + 12 THEN NULL WHEN - - CAST( 82 AS SIGNED ) THEN + 34 END ) AS DECIMAL ) * - 44 + + + 39 * 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT - CAST ( + - ( - CASE 80 WHEN - + 12 THEN NULL WHEN - - CAST ( 82 AS INTEGER ) THEN + 34 END ) AS REAL ) * - 44 + + + 39 * 2 AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 19, - 58 ) AS col2
----
19

query I rowsort
SELECT 73 * - 38
----
-2774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1837
SELECT + MAX( 18 ) * + + 23 - - 64 + - 47 - COALESCE ( + + 54, + 76 * + + 46 DIV - 19 DIV - 45 ) * 74
----
-3565

skipif mysql # not compatible
query I rowsort label-1837
SELECT + MAX ( 18 ) * + + 23 - - 64 + - 47 - COALESCE ( + + 54, + 76 * + + 46 / - 19 / - 45 ) * 74
----
-3565

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL MAX( ALL + + 4 ) * - 53 AS col0
----
-212

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL MAX ( ALL + + 4 ) * - 53 AS col0
----
-212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1839
SELECT DISTINCT CASE + + 73 WHEN - - CAST( MAX( - 53 ) AS SIGNED ) + - 71 + + + ( + CASE + 78 WHEN - COUNT( * ) THEN 52 WHEN 98 THEN NULL ELSE NULL END ) THEN 13 END * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT CASE + + 73 WHEN - - CAST ( MAX ( - 53 ) AS INTEGER ) + - 71 + + + ( + CASE + 78 WHEN - COUNT ( * ) THEN 52 WHEN 98 THEN NULL ELSE NULL END ) THEN 13 END * 6
----
NULL

query I rowsort
SELECT DISTINCT + 32 * - 72
----
-2304

onlyif mysql # aggregate syntax: 
query II rowsort label-1841
SELECT ALL - 0 * 40 AS col0, 86 * - COUNT( * )
----
0
-86

skipif mysql # not compatible
query II rowsort label-1841
SELECT ALL - 0 * 40 AS col0, 86 * - COUNT ( * )
----
0
-86

query I rowsort
SELECT DISTINCT 12 * + 95 AS col1
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT + 91 * + + 28 * - - COUNT( * ) * + - ( - - ( - - 35 ) ) AS col0
----
-89180

skipif mysql # not compatible
query I rowsort label-1843
SELECT + 91 * + + 28 * - - COUNT ( * ) * + - ( - - ( - - 35 ) ) AS col0
----
-89180

query I rowsort
SELECT ( + 85 ) * - ( - - 29 ) - - 88
----
-2377

query I rowsort
SELECT + 0 - 60 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT ALL - COALESCE ( + 27, - 28 ) + - + COALESCE ( + 88, - 94 ) * + MIN( DISTINCT + 91 ) + 73 col2
----
-7962

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL - COALESCE ( + 27, - 28 ) + - + COALESCE ( + 88, - 94 ) * + MIN ( DISTINCT + 91 ) + 73 col2
----
-7962

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1847
SELECT - NULLIF ( + CASE - + 82 WHEN + - 49 THEN + - ( - + 32 ) ELSE NULL END, - - CASE - CAST( NULL AS DECIMAL ) WHEN - + COUNT( * ) + + CASE - - COUNT( * ) WHEN + 36 * + 70 THEN - 64 ELSE NULL END + 29 / - 12 THEN 32 * COUNT( * ) ELSE 7 / + 47 END ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT - NULLIF ( + CASE - + 82 WHEN + - 49 THEN + - ( - + 32 ) ELSE NULL END, - - CASE - CAST ( NULL AS REAL ) WHEN - + COUNT ( * ) + + CASE - - COUNT ( * ) WHEN + 36 * + 70 THEN - 64 ELSE NULL END + 29 / - 12 THEN 32 * COUNT ( * ) ELSE 7 / + 47 END ) * - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 10 + + 10 AS col2, 78
----
20
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL ( ( CASE COUNT( * ) WHEN + + 4 THEN - 79 + - 85 WHEN - + 70 THEN COUNT( ALL + + 11 ) + SUM( ALL - + ( + 92 ) ) * 77 END ) ) + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL ( ( CASE COUNT ( * ) WHEN + + 4 THEN - 79 + - 85 WHEN - + 70 THEN COUNT ( ALL + + 11 ) + SUM ( ALL - + ( + 92 ) ) * 77 END ) ) + - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT 15 + + - MAX( ALL - + 60 ) + + - 91 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1850
SELECT 15 + + - MAX ( ALL - + 60 ) + + - 91 AS col1
----
-16

query I rowsort
SELECT - COALESCE ( - 77, - 2 )
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-1852
SELECT DISTINCT 64 * 53 DIV + 77 AS col2, - 56
----
44
-56

skipif mysql # not compatible
query II rowsort label-1852
SELECT DISTINCT 64 * 53 / + 77 AS col2, - 56
----
44
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1853
SELECT ALL + - COUNT( DISTINCT + CAST( 17 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL + - COUNT ( DISTINCT + CAST ( 17 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1854
SELECT CASE + - 47 WHEN - 73 / 33 + + 16 + - - 15 * + CAST( - COUNT( * ) AS SIGNED ) THEN + 4 WHEN - MAX( - - 65 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT CASE + - 47 WHEN - 73 / 33 + + 16 + - - 15 * + CAST ( - COUNT ( * ) AS INTEGER ) THEN + 4 WHEN - MAX ( - - 65 ) THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT DISTINCT CASE + 79 WHEN - 15 * + COUNT( * ) THEN + - COUNT( - 96 ) * - 88 + + - 25 END * - 56 * - - 31 / 42 + + 17 + - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT CASE + 79 WHEN - 15 * + COUNT ( * ) THEN + - COUNT ( - 96 ) * - 88 + + - 25 END * - 56 * - - 31 / 42 + + 17 + - 78 AS col1
----
NULL

query I rowsort
SELECT ALL 30 * - 15 - + 34
----
-484

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT - COUNT( * ) + - COALESCE ( + + 35, 42, + + COUNT( * ) * + ( - - 88 ) ) + 47 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1857
SELECT - COUNT ( * ) + - COALESCE ( + + 35, 42, + + COUNT ( * ) * + ( - - 88 ) ) + 47 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT MIN( ALL ( - 11 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-1858
SELECT MIN ( ALL ( - 11 ) )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-1859
SELECT + 49 AS col2, + COUNT( * ) * + 14 AS col2
----
49
14

skipif mysql # not compatible
query II rowsort label-1859
SELECT + 49 AS col2, + COUNT ( * ) * + 14 AS col2
----
49
14

query I rowsort
SELECT + 89 * + + 91
----
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL MAX( DISTINCT - 77 ) * 14 * - COUNT( * ) - - 86 AS col1
----
1164

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL MAX ( DISTINCT - 77 ) * 14 * - COUNT ( * ) - - 86 AS col1
----
1164

query I rowsort
SELECT DISTINCT - 9 * 24 * - + 79 col2
----
17064

query I rowsort
SELECT - 59 * - + 52
----
3068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1864
SELECT ALL 10 * + CAST( 66 AS SIGNED ) - COUNT( 87 ) + - + 2
----
657

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL 10 * + CAST ( 66 AS INTEGER ) - COUNT ( 87 ) + - + 2
----
657

query I rowsort
SELECT DISTINCT + 46 * - - 83
----
3818

query I rowsort
SELECT - 29 - 12
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT - CAST( - - 84 AS SIGNED ) + 20 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1867
SELECT - CAST ( - - 84 AS INTEGER ) + 20 AS col0
----
-64

query I rowsort
SELECT ALL - + 3 + 76
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1869
SELECT - 84 + - - 23 DIV + 69 AS col1, - COALESCE ( - + COUNT( * ), + - 5 + - 76 DIV AVG ( ALL 43 ) + + + 29 )
----
-84
1

skipif mysql # not compatible
query II rowsort label-1869
SELECT - 84 + - - 23 / + 69 AS col1, - COALESCE ( - + COUNT ( * ), + - 5 + - 76 / AVG ( ALL 43 ) + + + 29 )
----
-84
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT DISTINCT - CASE - - 44 WHEN 79 * - 14 THEN NULL ELSE 53 - + 7 + + 91 * - - 40 * + - COUNT( * ) END + - 28
----
3566

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT - CASE - - 44 WHEN 79 * - 14 THEN NULL ELSE 53 - + 7 + + 91 * - - 40 * + - COUNT ( * ) END + - 28
----
3566

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL COUNT( * ) + + 92 col2
----
93

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL COUNT ( * ) + + 92 col2
----
93

query I rowsort
SELECT - 11 + - 77
----
-88

query I rowsort
SELECT ALL - - 11 + - 10
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1875
SELECT - 25 + - + COALESCE ( - - 63, - 71 * 37 * + + 52 ) - + COALESCE ( 47, + 80 * 66 + + 83 DIV + - 67, + 93 + - COUNT( * ) ) + - 66 DIV - 75 AS col0
----
-135

skipif mysql # not compatible
query I rowsort label-1875
SELECT - 25 + - + COALESCE ( - - 63, - 71 * 37 * + + 52 ) - + COALESCE ( 47, + 80 * 66 + + 83 / + - 67, + 93 + - COUNT ( * ) ) + - 66 / - 75 AS col0
----
-135

query I rowsort
SELECT ALL - 39 + - 66
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL - - 98 * 81 * + COUNT( + 36 ) + 80
----
8018

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL - - 98 * 81 * + COUNT ( + 36 ) + 80
----
8018

query I rowsort
SELECT ALL + - 36 + - ( 66 ) + 21
----
-81

query I rowsort
SELECT + - 58 + + - 62 + - 23
----
-143

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

skipif mysql # not compatible
query II rowsort label-1880
SELECT - 29, COUNT ( * ) AS col1
----
-29
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT - - 89 DIV 3
----
29

skipif mysql # not compatible
query I rowsort label-1881
SELECT - - 89 / 3
----
29

query I rowsort
SELECT + - 9 + - 43 col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1883
SELECT ALL 44 + 0 + - CAST( NULL AS SIGNED ) + 46 * 58 * + 8 / - - 64 * + AVG ( DISTINCT NULLIF ( 5, + 40 + - + CAST( 14 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL 44 + 0 + - CAST ( NULL AS INTEGER ) + 46 * 58 * + 8 / - - 64 * + AVG ( DISTINCT NULLIF ( 5, + 40 + - + CAST ( 14 AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + + ( 61 ) + - 94 AS col0
----
-33

query II rowsort
SELECT DISTINCT + + ( - - 56 ) + - 8 col1, 53 AS col2
----
48
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1886
SELECT ALL - 40 AS col0, + COUNT( * ) DIV + 47 + + - 84 * - 56
----
-40
4704

skipif mysql # not compatible
query II rowsort label-1886
SELECT ALL - 40 AS col0, + COUNT ( * ) / + 47 + + - 84 * - 56
----
-40
4704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1887
SELECT ALL 19 AS col1, COALESCE ( + - COUNT( * ), + + 84 ) * + 28 + + - CAST( NULL AS SIGNED ) col1
----
19
NULL

skipif mysql # not compatible
query II rowsort label-1887
SELECT ALL 19 AS col1, COALESCE ( + - COUNT ( * ), + + 84 ) * + 28 + + - CAST ( NULL AS INTEGER ) col1
----
19
NULL

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

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

query I rowsort
SELECT ALL + 42 - - ( - 28 ) AS col0
----
14

query I rowsort
SELECT + 25 * + 18 * - - 73 col1
----
32850

onlyif mysql # DIV for integer division: 
query I rowsort label-1891
SELECT ALL 31 DIV - 19 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL 31 / - 19 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1892
SELECT + MIN( ALL - + 34 ) AS col1, 24 * + COUNT( * ) * + - COALESCE ( - 80, + + 69 ) * ( + + 51 ) AS col2
----
-34
97920

skipif mysql # not compatible
query II rowsort label-1892
SELECT + MIN ( ALL - + 34 ) AS col1, 24 * + COUNT ( * ) * + - COALESCE ( - 80, + + 69 ) * ( + + 51 ) AS col2
----
-34
97920

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

skipif mysql # not compatible
query I rowsort label-1893
SELECT + CAST ( NULL AS REAL ) * - 71
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1894
SELECT + MIN( - + 47 ) col2, + 52 DIV - + 67 AS col2
----
-47
0

skipif mysql # not compatible
query II rowsort label-1894
SELECT + MIN ( - + 47 ) col2, + 52 / - + 67 AS col2
----
-47
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1895
SELECT CAST( + 72 AS SIGNED ) col0, 27 AS col1
----
72
27

skipif mysql # not compatible
query II rowsort label-1895
SELECT CAST ( + 72 AS INTEGER ) col0, 27 AS col1
----
72
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1896
SELECT CAST( 81 AS SIGNED ) AS col2, 26 AS col2
----
81
26

skipif mysql # not compatible
query II rowsort label-1896
SELECT CAST ( 81 AS INTEGER ) AS col2, 26 AS col2
----
81
26

query I rowsort
SELECT + 66 * - - 67 AS col0
----
4422

query I rowsort
SELECT - 72 * - + 97 AS col1
----
6984

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1899
SELECT ALL 77 * COUNT( * ) DIV - + 61 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL 77 * COUNT ( * ) / - + 61 AS col0
----
-1

query I rowsort
SELECT DISTINCT 89 * + ( + 70 ) AS col2
----
6230

query I rowsort
SELECT + 56 * + - 66 + + + 21 + + 36 * + - 33 + + 79
----
-4784

query II rowsort
SELECT + 36 * + - 41 * + 26 * NULLIF ( - 52, - 16 / 98 ), - 99 - + 15 AS col2
----
1995552
-114

query I rowsort
SELECT - 29 + + 38 col0
----
9

query I rowsort
SELECT + 0 * + + NULLIF ( + 89, - ( 40 ) ) * + 99 * - 33 * + + 20 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT - 5 + - - CAST( - + 4 AS SIGNED ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-1905
SELECT - 5 + - - CAST ( - + 4 AS INTEGER ) col1
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT CASE - MAX( DISTINCT + 58 ) WHEN - + 5 THEN 8 * 25 + + - 44 + - MAX( DISTINCT 95 ) + + 36 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT CASE - MAX ( DISTINCT + 58 ) WHEN - + 5 THEN 8 * 25 + + - 44 + - MAX ( DISTINCT 95 ) + + 36 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1908
SELECT ALL + 71 * 28 * + 30 - 51 + + CAST( NULL AS DECIMAL ) * - 9 / 66 * - 8 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL + 71 * 28 * + 30 - 51 + + CAST ( NULL AS REAL ) * - 9 / 66 * - 8 + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1909
SELECT + 82 * CASE 49 WHEN ( + - 36 ) + - + 49 THEN NULL ELSE 40 END, - 47 DIV 20 * + - 32 AS col0
----
3280
64

skipif mysql # not compatible
query II rowsort label-1909
SELECT + 82 * CASE 49 WHEN ( + - 36 ) + - + 49 THEN NULL ELSE 40 END, - 47 / 20 * + - 32 AS col0
----
3280
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT ALL + 59 * + 23 + - - 7 + - COUNT( * )
----
1363

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL + 59 * + 23 + - - 7 + - COUNT ( * )
----
1363

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL + 93 * + MAX( DISTINCT + 10 ) + MIN( DISTINCT - 24 ) + + + 72 col2
----
978

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL + 93 * + MAX ( DISTINCT + 10 ) + MIN ( DISTINCT - 24 ) + + + 72 col2
----
978

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1913
SELECT ALL COUNT( - - CAST( 10 AS SIGNED ) ) * + 66 + + 14 DIV + 67 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL COUNT ( - - CAST ( 10 AS INTEGER ) ) * + 66 + + 14 / + 67 AS col0
----
66

query I rowsort
SELECT - - 62 * - + ( 83 ) col1
----
-5146

query I rowsort
SELECT ALL + 98 * - 94 AS col0
----
-9212

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL + 7 + - 45 * 41 + - 20 + - COALESCE ( + COUNT( * ), + COUNT( * ) + + - COALESCE ( + 33, - ( 23 ), - COUNT( + 8 ), + 23 ), MAX( 82 ), - 46 ) * + 71 col1
----
-1929

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL + 7 + - 45 * 41 + - 20 + - COALESCE ( + COUNT ( * ), + COUNT ( * ) + + - COALESCE ( + 33, - ( 23 ), - COUNT ( + 8 ), + 23 ), MAX ( 82 ), - 46 ) * + 71 col1
----
-1929

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT - ( + ( + - 75 ) ) - 84 + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-1918
SELECT - ( + ( + - 75 ) ) - 84 + COUNT ( * )
----
-8

query I rowsort
SELECT - 12 - + + 97
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT ALL - - NULLIF ( - ( COUNT( * ) ), 49 * 66 / + COUNT( * ) * 51 ) * + 73 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL - - NULLIF ( - ( COUNT ( * ) ), 49 * 66 / + COUNT ( * ) * 51 ) * + 73 AS col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1921
SELECT - CASE + 27 WHEN - 41 THEN NULL WHEN - 47 THEN - + ( - 98 ) WHEN - + NULLIF ( 43, - COUNT( * ) * - 74 * + 86 + - 58 + MAX( ALL + - CAST( - CAST( - 33 AS SIGNED ) AS DECIMAL ) ) * CAST( - 7 AS SIGNED ) ) THEN - SUM( 33 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT - CASE + 27 WHEN - 41 THEN NULL WHEN - 47 THEN - + ( - 98 ) WHEN - + NULLIF ( 43, - COUNT ( * ) * - 74 * + 86 + - 58 + MAX ( ALL + - CAST ( - CAST ( - 33 AS INTEGER ) AS REAL ) ) * CAST ( - 7 AS INTEGER ) ) THEN - SUM ( 33 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT ALL - COUNT( DISTINCT + 99 ) - + 70 + + 98 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL - COUNT ( DISTINCT + 99 ) - + 70 + + 98 AS col2
----
27

query I rowsort
SELECT + 34 * + + 19 AS col0
----
646

query II rowsort
SELECT ALL + 91 - + + 94 AS col2, 67 col1
----
-3
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1925
SELECT 51 + + ( ( - 71 ) ) DIV SUM( + 11 ) DIV + 48 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-1925
SELECT 51 + + ( ( - 71 ) ) / SUM ( + 11 ) / + 48 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT 86 - NULLIF ( + COUNT( * ), + 92 )
----
85

skipif mysql # not compatible
query I rowsort label-1926
SELECT 86 - NULLIF ( + COUNT ( * ), + 92 )
----
85

query II rowsort
SELECT 57 * + 86 * - 75, + ( - + 20 ) * + - 18 * 54 + + 95 AS col0
----
-367650
19535

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT 60 + + CASE - 84 WHEN + - 62 THEN 15 + ( - + 21 ) * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT 60 + + CASE - 84 WHEN + - 62 THEN 15 + ( - + 21 ) * - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + 63 - - 37
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT - 9 * + COUNT( * ) * 36 * - COUNT( * )
----
324

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT - 9 * + COUNT ( * ) * 36 * - COUNT ( * )
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT + 52 * COUNT( * ) + + 99 col0
----
151

skipif mysql # not compatible
query I rowsort label-1931
SELECT + 52 * COUNT ( * ) + + 99 col0
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL - NULLIF ( - + 77, - 14 + + + COUNT( * ) + 94 / + - 97 * 84 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL - NULLIF ( - + 77, - 14 + + + COUNT ( * ) + 94 / + - 97 * 84 ) AS col0
----
77

query I rowsort
SELECT 85 * - 23
----
-1955

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1934
SELECT NULLIF ( + COUNT( + 61 ), + + ( - - 88 ) * + 82 - + 67 - + MAX( ALL + + 57 ) * + 78 * - - 85 * + + 70 ) DIV + 78 + - 18
----
-18

skipif mysql # not compatible
query I rowsort label-1934
SELECT NULLIF ( + COUNT ( + 61 ), + + ( - - 88 ) * + 82 - + 67 - + MAX ( ALL + + 57 ) * + 78 * - - 85 * + + 70 ) / + 78 + - 18
----
-18

query II rowsort
SELECT ALL - 66 AS col1, 43
----
-66
43

query I rowsort
SELECT 36 * - 80
----
-2880

query I rowsort
SELECT 56 * + + 47 - + 37 AS col2
----
2595

query I rowsort
SELECT DISTINCT 5 * + + 84
----
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1939
SELECT ALL ( + + 80 ) + - + 64 DIV 1 * - MIN( DISTINCT + - 53 )
----
-3312

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL ( + + 80 ) + - + 64 / 1 * - MIN ( DISTINCT + - 53 )
----
-3312

onlyif mysql # aggregate syntax: 
query II rowsort label-1940
SELECT - ( - COALESCE ( 37, - + 17 ) ) * 96 + - 42 AS col0, - 53 * MAX( + 29 ) AS col0
----
3510
-1537

skipif mysql # not compatible
query II rowsort label-1940
SELECT - ( - COALESCE ( 37, - + 17 ) ) * 96 + - 42 AS col0, - 53 * MAX ( + 29 ) AS col0
----
3510
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL MIN( ALL - 65 ) + - + 16 * + 25 * 72 * - 84 AS col1
----
2419135

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL MIN ( ALL - 65 ) + - + 16 * + 25 * 72 * - 84 AS col1
----
2419135

query I rowsort
SELECT ALL + 94 * + + 78
----
7332

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

query I rowsort
SELECT DISTINCT 58 * - - 11 AS col2
----
638

query I rowsort
SELECT ALL 63 + + 15 AS col1
----
78

query II rowsort
SELECT 21 + + ( + 60 ), - 32 * - 9 AS col1
----
81
288

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1947
SELECT 16 * - 43 - - 34 - ( + 75 ) + - + COUNT( * ) + - ( + + 62 ) * 46 + + 21 DIV + 92 AS col1, - 42 AS col0
----
-3582
-42

skipif mysql # not compatible
query II rowsort label-1947
SELECT 16 * - 43 - - 34 - ( + 75 ) + - + COUNT ( * ) + - ( + + 62 ) * 46 + + 21 / + 92 AS col1, - 42 AS col0
----
-3582
-42

query I rowsort
SELECT ALL 86 + - 53 AS col1
----
33

query I rowsort
SELECT ALL + NULLIF ( - 45, + 94 ) - + - 30
----
-15

query I rowsort
SELECT + 82 + + 3
----
85

query I rowsort
SELECT DISTINCT + - 31 * 20 AS col0
----
-620

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT ALL + NULLIF ( 22, + ( - + 75 ) / - - 18 * - COUNT( * ) + - 52 )
----
22

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL + NULLIF ( 22, + ( - + 75 ) / - - 18 * - COUNT ( * ) + - 52 )
----
22

query I rowsort
SELECT + 9 + ( + + 90 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT - COALESCE ( - 22, - ( SUM( - 37 ) ) ) * - + 42 - - 76 AS col1
----
-848

skipif mysql # not compatible
query I rowsort label-1954
SELECT - COALESCE ( - 22, - ( SUM ( - 37 ) ) ) * - + 42 - - 76 AS col1
----
-848

query I rowsort
SELECT - 32 + - 6
----
-38

query I rowsort
SELECT DISTINCT - + 27 * 7
----
-189

query II rowsort
SELECT ALL 32, - 76 * + 60 AS col0
----
32
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT COUNT( DISTINCT - 42 ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1958
SELECT COUNT ( DISTINCT - 42 ) * - COUNT ( * ) AS col0
----
-1

query II rowsort
SELECT - 42 AS col2, 71 * - 97
----
-42
-6887

query I rowsort
SELECT 92 * + + 61
----
5612

query III rowsort
SELECT DISTINCT - 79 AS col2, + 84 AS col1, + 83 + 5 + + 38 * + ( 29 ) + 48 + - 7 * + 75 AS col2
----
-79
84
713

query I rowsort
SELECT 82 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT COUNT( * ) * - - SUM( + - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-1963
SELECT COUNT ( * ) * - - SUM ( + - 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT ALL + COALESCE ( COUNT( + - 48 ), 64, - + 30 * - 15 ) * - COUNT( * ) + 26 col2
----
25

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL + COALESCE ( COUNT ( + - 48 ), 64, - + 30 * - 15 ) * - COUNT ( * ) + 26 col2
----
25

query II rowsort
SELECT + 19, - 1 AS col0
----
19
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1966
SELECT 17 + + 29 - + CAST( NULL AS SIGNED ) - - 85 * - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT 17 + + 29 - + CAST ( NULL AS INTEGER ) - - 85 * - 36
----
NULL

query I rowsort
SELECT - 72 * - 53 - - 74
----
3890

query I rowsort
SELECT ALL + 70 * - 24 AS col2
----
-1680

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT DISTINCT + 84 DIV - + 8
----
-10

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT + 84 / - + 8
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT DISTINCT + 73 + + 59 + - COUNT( * ) * + 26
----
106

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT + 73 + + 59 + - COUNT ( * ) * + 26
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT - 91 * - COUNT( ALL 44 ) * - - 23 - COUNT( * ) + - 29 col0
----
2063

skipif mysql # not compatible
query I rowsort label-1971
SELECT - 91 * - COUNT ( ALL 44 ) * - - 23 - COUNT ( * ) + - 29 col0
----
2063

query I rowsort
SELECT + CASE 71 WHEN + 75 * - - ( + 5 ) + - 7 + + 6 * 56 * - AVG ( DISTINCT + COALESCE ( - + 19, 62 ) ) * NULLIF ( 75, - - 70 + + 44 + 32 ) * AVG ( + 8 * 77 + 49 ) THEN 37 END
----
NULL

query I rowsort
SELECT + 0 + + 3
----
3

query I rowsort
SELECT DISTINCT + COALESCE ( + 60, - 18 ) - 98 - + 66 * - + 33
----
2140

query I rowsort
SELECT + 14 + - 86
----
-72

query I rowsort
SELECT ALL 88 * + 60
----
5280

query I rowsort
SELECT + - NULLIF ( + 89, + - 15 ) AS col0
----
-89

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1979
SELECT ALL - 16 * CASE CASE - + 53 WHEN 84 THEN + 7 * 44 END WHEN + 33 * - - NULLIF ( + - 14, + - CASE + CAST( - 57 AS SIGNED ) WHEN + 24 THEN 31 WHEN - + MAX( ALL 54 ) * 20 THEN 88 + - 16 ELSE 47 END ) - - 93 / CASE 68 WHEN 12 THEN 72 * AVG ( 40 * 94 ) WHEN - COUNT( * ) THEN 38 END THEN 83 + + 16 / 53 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL - 16 * CASE CASE - + 53 WHEN 84 THEN + 7 * 44 END WHEN + 33 * - - NULLIF ( + - 14, + - CASE + CAST ( - 57 AS INTEGER ) WHEN + 24 THEN 31 WHEN - + MAX ( ALL 54 ) * 20 THEN 88 + - 16 ELSE 47 END ) - - 93 / CASE 68 WHEN 12 THEN 72 * AVG ( 40 * 94 ) WHEN - COUNT ( * ) THEN 38 END THEN 83 + + 16 / 53 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT + 48 AS col0, 57
----
48
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT DISTINCT COUNT( * ) * - 52 col2
----
-52

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT COUNT ( * ) * - 52 col2
----
-52

query I rowsort
SELECT ALL 33 - - 74 col2
----
107

query I rowsort
SELECT + 7 * - 80 col0
----
-560

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1984
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1, - CAST( NULL AS SIGNED ) / - 26 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1984
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1, - CAST ( NULL AS INTEGER ) / - 26 AS col1
----
NULL
NULL

query I rowsort
SELECT ALL COALESCE ( - - 95, - 72, + + 75 * - 92 )
----
95

query I rowsort
SELECT + + 0 * - ( - - 57 ) col0
----
0

query II rowsort
SELECT - + 61 AS col1, + 2 AS col2
----
-61
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1988
SELECT DISTINCT 22 DIV - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT 22 / - 73 AS col1
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1991
SELECT + CAST( 51 AS SIGNED ) DIV + CASE - + 39 WHEN - 39 THEN - 77 DIV - 84 + - 85 WHEN - 33 THEN NULL ELSE NULL END * 14 + 39 + 56 DIV 72 DIV - + ( + + 87 ) * - + 40
----
39

skipif mysql # not compatible
query I rowsort label-1991
SELECT + CAST ( 51 AS INTEGER ) / + CASE - + 39 WHEN - 39 THEN - 77 / - 84 + - 85 WHEN - 33 THEN NULL ELSE NULL END * 14 + 39 + 56 / 72 / - + ( + + 87 ) * - + 40
----
39

query I rowsort
SELECT DISTINCT 66 + - 76 * + + 9 AS col0
----
-618

query I rowsort
SELECT DISTINCT 60 + 19 AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1994
SELECT + 24 DIV COUNT( * ) * ( - + COUNT( * ) ) * + 24 * + - 72
----
41472

skipif mysql # not compatible
query I rowsort label-1994
SELECT + 24 / COUNT ( * ) * ( - + COUNT ( * ) ) * + 24 * + - 72
----
41472

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT + CASE 62 WHEN + COUNT( * ) * + 78 THEN + - COUNT( * ) WHEN 9 THEN 62 END + + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT + CASE 62 WHEN + COUNT ( * ) * + 78 THEN + - COUNT ( * ) WHEN 9 THEN 62 END + + 20 AS col2
----
NULL

query I rowsort
SELECT - 89 - - + 4 + 7 * + 10 + - + 50 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT - 6 * - SUM( ( - - 26 ) ) * + 75 * - COUNT( * )
----
-11700

skipif mysql # not compatible
query I rowsort label-1997
SELECT - 6 * - SUM ( ( - - 26 ) ) * + 75 * - COUNT ( * )
----
-11700

query I rowsort
SELECT - 65 - - + ( - 47 ) + 58 * - 17
----
-1098

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2000
SELECT - 70 * 5 AS col1, - CAST( NULL AS DECIMAL ) AS col2
----
-350
NULL

skipif mysql # not compatible
query II rowsort label-2000
SELECT - 70 * 5 AS col1, - CAST ( NULL AS REAL ) AS col2
----
-350
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2001
SELECT 74 * + + 59 * + 81 + 57 * CAST( + 94 AS SIGNED )
----
359004

skipif mysql # not compatible
query I rowsort label-2001
SELECT 74 * + + 59 * + 81 + 57 * CAST ( + 94 AS INTEGER )
----
359004

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT - 5 * 1 DIV + ( + 17 ) + + - 45 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-2002
SELECT - 5 * 1 / + ( + 17 ) + + - 45 AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT ALL + 38 * 10 DIV ( + 44 ) col1
----
8

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL + 38 * 10 / ( + 44 ) col1
----
8

query I rowsort
SELECT ALL + 75 * - + 4 - - 44 * + 9 col2
----
96

query II rowsort
SELECT - 19 * 88 col1, 69 * + 43 * - 79 AS col0
----
-1672
-234393

query II rowsort
SELECT - - 16 + 66, 26 * + 88 AS col1
----
82
2288

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL + + 89 * + SUM( - 70 ) + + 73 AS col0
----
-6157

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL + + 89 * + SUM ( - 70 ) + + 73 AS col0
----
-6157

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2009
SELECT DISTINCT + 78 * - 1 * - 70 AS col0, + 13 DIV + 35 - 97 AS col0
----
5460
-97

skipif mysql # not compatible
query II rowsort label-2009
SELECT DISTINCT + 78 * - 1 * - 70 AS col0, + 13 / + 35 - 97 AS col0
----
5460
-97

query I rowsort
SELECT - + CASE + + 96 WHEN + - 61 THEN + 94 ELSE NULL END * - + 82 AS col0
----
NULL

query II rowsort
SELECT ALL + - 98 * - 86 col2, + 74 AS col2
----
8428
74

query I rowsort
SELECT + 81 * + 56 + - 57 AS col2
----
4479

query I rowsort
SELECT DISTINCT 64 * 84 - + 54 AS col1
----
5322

onlyif mysql # aggregate syntax: 
query II rowsort label-2014
SELECT DISTINCT - 17 * 20, 55 * - MAX( - - ( - 89 ) ) * - 83 * 18 * - - COUNT( * ) * - + 66 * 3 + 97 AS col2
----
-340
1447999837

skipif mysql # not compatible
query II rowsort label-2014
SELECT DISTINCT - 17 * 20, 55 * - MAX ( - - ( - 89 ) ) * - 83 * 18 * - - COUNT ( * ) * - + 66 * 3 + 97 AS col2
----
-340
1447999837

query I rowsort
SELECT - + 4 + - 33 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT - - ( - - 51 ) * - COUNT( * ) + - 71 AS col2
----
-122

skipif mysql # not compatible
query I rowsort label-2016
SELECT - - ( - - 51 ) * - COUNT ( * ) + - 71 AS col2
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2017
SELECT + - 24 + AVG ( ALL + 64 ) + + 39 + + - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT + - 24 + AVG ( ALL + 64 ) + + 39 + + - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT - 67 + - ( - 0 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT - + MAX( ALL + 11 ) * + 24
----
-264

skipif mysql # not compatible
query I rowsort label-2019
SELECT - + MAX ( ALL + 11 ) * + 24
----
-264

query I rowsort
SELECT ALL 9 * - 51 + - 63 + 23
----
-499

query I rowsort
SELECT - 80 + - + ( + 99 )
----
-179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL COALESCE ( + ( + COUNT( * ) ), 92 * + + SUM( - 13 ), + + COUNT( * ) ) * + CAST( NULL AS SIGNED ) / - - NULLIF ( - + ( - 41 ), - 61 * - - COUNT( ALL + - 73 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL COALESCE ( + ( + COUNT ( * ) ), 92 * + + SUM ( - 13 ), + + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) / - - NULLIF ( - + ( - 41 ), - 61 * - - COUNT ( ALL + - 73 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2023
SELECT ALL + 5 + ( 95 ) + - 91 * - - 99 * + COALESCE ( CASE - 50 WHEN COUNT( * ) THEN NULL ELSE + 54 END, + NULLIF ( + + COUNT( * ), - 38 + 34 ) - 33 * - 44 * - ( - CASE - AVG ( ALL 97 ) WHEN + 78 THEN NULL WHEN - 78 THEN NULL WHEN 52 + CASE 14 WHEN - 17 THEN 63 END THEN NULL ELSE - CAST( NULL AS SIGNED ) END ) + - 76, 84 ) AS col2
----
-486386

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL + 5 + ( 95 ) + - 91 * - - 99 * + COALESCE ( CASE - 50 WHEN COUNT ( * ) THEN NULL ELSE + 54 END, + NULLIF ( + + COUNT ( * ), - 38 + 34 ) - 33 * - 44 * - ( - CASE - AVG ( ALL 97 ) WHEN + 78 THEN NULL WHEN - 78 THEN NULL WHEN 52 + CASE 14 WHEN - 17 THEN 63 END THEN NULL ELSE - CAST ( NULL AS INTEGER ) END ) + - 76, 84 ) AS col2
----
-486386

onlyif mysql # aggregate syntax: 
query II rowsort label-2024
SELECT DISTINCT COUNT( * ) AS col0, - 79 AS col0
----
1
-79

skipif mysql # not compatible
query II rowsort label-2024
SELECT DISTINCT COUNT ( * ) AS col0, - 79 AS col0
----
1
-79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL COUNT( * ) + - + 9
----
-8

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL COUNT ( * ) + - + 9
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2027
SELECT - CAST( 64 AS SIGNED ) * + ( ( - - 69 ) )
----
-4416

skipif mysql # not compatible
query I rowsort label-2027
SELECT - CAST ( 64 AS INTEGER ) * + ( ( - - 69 ) )
----
-4416

query I rowsort
SELECT + 89 + 45 + + 68
----
202

onlyif mysql # aggregate syntax: 
query II rowsort label-2029
SELECT 56, + 58 - - CASE + - COUNT( DISTINCT 84 ) WHEN 67 / 6 THEN ( 78 ) END + + 23 AS col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-2029
SELECT 56, + 58 - - CASE + - COUNT ( DISTINCT 84 ) WHEN 67 / 6 THEN ( 78 ) END + + 23 AS col1
----
56
NULL

query I rowsort
SELECT + 65 + - 63 + - 28 * - + 16
----
450

query I rowsort
SELECT ALL 47 + - - 55
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT + 53 * - COUNT( - 11 )
----
-53

skipif mysql # not compatible
query I rowsort label-2032
SELECT + 53 * - COUNT ( - 11 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2033
SELECT - CAST( + CASE ( + 83 ) WHEN CASE MAX( 11 ) WHEN + 44 THEN - - COALESCE ( - + 64, + 66 * + 8 + + 83 ) ELSE 88 END * + + 96 THEN + 81 * - + 87 + 43 END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT - CAST ( + CASE ( + 83 ) WHEN CASE MAX ( 11 ) WHEN + 44 THEN - - COALESCE ( - + 64, + 66 * + 8 + + 83 ) ELSE 88 END * + + 96 THEN + 81 * - + 87 + 43 END AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT 65 col2, + 92 AS col1
----
65
92

query I rowsort
SELECT ALL 11 - - - 26
----
-15

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

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

query I rowsort
SELECT ALL ( - 14 ) col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2038
SELECT - MIN( DISTINCT 99 ) / - - CAST( NULL AS SIGNED ) - - + 86 * - MIN( ALL ( - CAST( + 93 AS SIGNED ) ) ), 0 * + + 98 + CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2038
SELECT - MIN ( DISTINCT 99 ) / - - CAST ( NULL AS INTEGER ) - - + 86 * - MIN ( ALL ( - CAST ( + 93 AS INTEGER ) ) ), 0 * + + 98 + CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2039
SELECT ALL + 81, COUNT( + - 10 ) AS col1
----
81
1

skipif mysql # not compatible
query II rowsort label-2039
SELECT ALL + 81, COUNT ( + - 10 ) AS col1
----
81
1

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

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

query I rowsort
SELECT + 13 * - 57 AS col0
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT 29 * COUNT( ALL + + 52 ) + 73 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-2042
SELECT 29 * COUNT ( ALL + + 52 ) + 73 AS col0
----
102

query I rowsort
SELECT + 35 + + + 28
----
63

query II rowsort
SELECT ALL - 8, - 21 AS col2
----
-8
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2045
SELECT DISTINCT - - 14, - 29 * + 38 + - 37 * - - CASE + 36 WHEN + ( + CASE + 62 WHEN - + 21 THEN NULL WHEN + ( 9 ) + ( + AVG ( DISTINCT + - 58 ) ) THEN - ( - 97 ) * 48 * + ( + AVG ( ALL + CAST( NULL AS SIGNED ) ) ) - + 84 / + 31 + 5 ELSE NULL END ) * 58 THEN NULL WHEN COUNT( * ) + + 57 THEN NULL ELSE NULLIF ( 32, 9 ) END AS col0
----
14
-2286

skipif mysql # not compatible
query II rowsort label-2045
SELECT DISTINCT - - 14, - 29 * + 38 + - 37 * - - CASE + 36 WHEN + ( + CASE + 62 WHEN - + 21 THEN NULL WHEN + ( 9 ) + ( + AVG ( DISTINCT + - 58 ) ) THEN - ( - 97 ) * 48 * + ( + AVG ( ALL + CAST ( NULL AS INTEGER ) ) ) - + 84 / + 31 + 5 ELSE NULL END ) * 58 THEN NULL WHEN COUNT ( * ) + + 57 THEN NULL ELSE NULLIF ( 32, 9 ) END AS col0
----
14
-2286

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2046
SELECT + 79 DIV 10 - + 95 AS col0, 3 - - + CASE - COALESCE ( + + 17, 67 + + COUNT( ALL + ( CASE + - 91 WHEN 22 - 59 THEN + + 93 END ) ), CASE - 65 WHEN - 14 + - 25 THEN NULL WHEN - CASE + COUNT( * ) WHEN 21 THEN NULL WHEN - COALESCE ( - COUNT( * ), 74 ) THEN - 95 ELSE - COUNT( * ) + 1 END THEN - 15 - - 84 END + 33 ) WHEN 43 + COUNT( + COALESCE ( + 31, - 29 + + 89 ) + 42 ) THEN 39 ELSE NULL END + + 28 * - 4
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-2046
SELECT + 79 / 10 - + 95 AS col0, 3 - - + CASE - COALESCE ( + + 17, 67 + + COUNT ( ALL + ( CASE + - 91 WHEN 22 - 59 THEN + + 93 END ) ), CASE - 65 WHEN - 14 + - 25 THEN NULL WHEN - CASE + COUNT ( * ) WHEN 21 THEN NULL WHEN - COALESCE ( - COUNT ( * ), 74 ) THEN - 95 ELSE - COUNT ( * ) + 1 END THEN - 15 - - 84 END + 33 ) WHEN 43 + COUNT ( + COALESCE ( + 31, - 29 + + 89 ) + 42 ) THEN 39 ELSE NULL END + + 28 * - 4
----
-88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT + NULLIF ( + SUM( - + ( + + 97 ) ), - 67 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2047
SELECT + NULLIF ( + SUM ( - + ( + + 97 ) ), - 67 ) AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2048
SELECT ALL - 85, ( - + COUNT( * ) ) / - ( + 36 ) + 5 + + - 58 + + 34 * - 10 * + CAST( NULL AS DECIMAL ) * COUNT( 31 ) * - 45 - 11 + + ( + 49 ) * - 84 * - + ( 12 ) + - 0 AS col2
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-2048
SELECT ALL - 85, ( - + COUNT ( * ) ) / - ( + 36 ) + 5 + + - 58 + + 34 * - 10 * + CAST ( NULL AS REAL ) * COUNT ( 31 ) * - 45 - 11 + + ( + 49 ) * - 84 * - + ( 12 ) + - 0 AS col2
----
-85
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT - 29 * - 9 * + + 4 * - ( - + 66 ) * COUNT( 56 ) AS col0
----
68904

skipif mysql # not compatible
query I rowsort label-2050
SELECT - 29 * - 9 * + + 4 * - ( - + 66 ) * COUNT ( 56 ) AS col0
----
68904

onlyif mysql # aggregate syntax: 
query II rowsort label-2051
SELECT 65 + + + MAX( DISTINCT + + 38 ) AS col2, ( COUNT( * ) )
----
103
1

skipif mysql # not compatible
query II rowsort label-2051
SELECT 65 + + + MAX ( DISTINCT + + 38 ) AS col2, ( COUNT ( * ) )
----
103
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2052
SELECT + 34, ( 16 ) + + 50 + + ( - NULLIF ( + - 10, COUNT( * ) ) ) AS col1
----
34
76

skipif mysql # not compatible
query II rowsort label-2052
SELECT + 34, ( 16 ) + + 50 + + ( - NULLIF ( + - 10, COUNT ( * ) ) ) AS col1
----
34
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT 57 * - COUNT( * ) + - 18 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-2053
SELECT 57 * - COUNT ( * ) + - 18 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT DISTINCT + - 7 + MAX( + 71 ) + 15 * + 54
----
874

skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT + - 7 + MAX ( + 71 ) + 15 * + 54
----
874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2055
SELECT DISTINCT - 45 + + + 81 + 6 + + 79 + 69 * CASE - - MIN( 39 ) WHEN - 81 THEN NULL WHEN + 47 THEN + CAST( + + 32 AS SIGNED ) + + - 64 + - 18 + + 2 / + MIN( - 39 ) ELSE 35 END - 81 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT - 45 + + + 81 + 6 + + 79 + 69 * CASE - - MIN ( 39 ) WHEN - 81 THEN NULL WHEN + 47 THEN + CAST ( + + 32 AS INTEGER ) + + - 64 + - 18 + + 2 / + MIN ( - 39 ) ELSE 35 END - 81 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2056
SELECT COUNT( * ) DIV - + 95 * + + MAX( ALL + 32 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT COUNT ( * ) / - + 95 * + + MAX ( ALL + 32 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2057
SELECT ALL - + 78 + - 56 + + - 12 DIV - MAX( - 5 ) AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL - + 78 + - 56 + + - 12 / - MAX ( - 5 ) AS col1
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT DISTINCT + COUNT( * ) + - 92 * - 37
----
3405

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT + COUNT ( * ) + - 92 * - 37
----
3405

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT DISTINCT 49 + COUNT( * ) col1
----
50

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT 49 + COUNT ( * ) col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL ( 73 ) + + 87 * SUM( DISTINCT + - ( 48 ) ) * + - 8 + - 91
----
33390

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL ( 73 ) + + 87 * SUM ( DISTINCT + - ( 48 ) ) * + - 8 + - 91
----
33390

query I rowsort
SELECT 85 + + 20
----
105

query II rowsort
SELECT 21 * + + 8 AS col1, - 91 AS col1
----
168
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL + CASE + + 53 WHEN 27 * + + COUNT( * ) THEN NULL WHEN + + ( - MIN( DISTINCT + 75 ) ) + + 97 THEN ( - 44 ) ELSE NULL END + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL + CASE + + 53 WHEN 27 * + + COUNT ( * ) THEN NULL WHEN + + ( - MIN ( DISTINCT + 75 ) ) + + 97 THEN ( - 44 ) ELSE NULL END + + 7
----
NULL

query I rowsort
SELECT ALL 41 * + 63 * - + 88
----
-227304

query I rowsort
SELECT ALL + 11 - + 90 AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2066
SELECT DISTINCT - CASE ( - + 89 ) WHEN + + 11 THEN ( - + 68 ) + - + 85 WHEN - MAX( + 53 ) * - COUNT( * ) * 0 + - 17 / 85 THEN 83 + - + 12 ELSE NULL END * CAST( - AVG ( - 72 ) AS SIGNED ) + - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT - CASE ( - + 89 ) WHEN + + 11 THEN ( - + 68 ) + - + 85 WHEN - MAX ( + 53 ) * - COUNT ( * ) * 0 + - 17 / 85 THEN 83 + - + 12 ELSE NULL END * CAST ( - AVG ( - 72 ) AS INTEGER ) + - 97 AS col0
----
NULL

query I rowsort
SELECT 10 + + + 43 + 92 * + - 35
----
-3167

onlyif mysql # aggregate syntax: 
query II rowsort label-2068
SELECT 46 * 22 AS col2, + 11 + + + 78 * - NULLIF ( - + 33, + 61 * - 23 ) * + - 64 * + 21 + + COUNT( * )
----
1012
-3459444

skipif mysql # not compatible
query II rowsort label-2068
SELECT 46 * 22 AS col2, + 11 + + + 78 * - NULLIF ( - + 33, + 61 * - 23 ) * + - 64 * + 21 + + COUNT ( * )
----
1012
-3459444

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

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

query I rowsort
SELECT 65 - 72 AS col2
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT COUNT( * ) + MAX( DISTINCT - 48 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-2072
SELECT COUNT ( * ) + MAX ( DISTINCT - 48 ) AS col2
----
-47

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

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

query I rowsort
SELECT DISTINCT 25 * 5 + + 1 + + - 14 AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2075
SELECT ALL COUNT( * ) * - + 27 DIV + - 56 * - - COUNT( - 3 ) + + - 39 + - 79 + + + COUNT( * ) + - 92 + + 10 + + COALESCE ( + + 79, + - CAST( NULL AS SIGNED ), - 33 ) * 76 * - ( - 86 ) AS col1
----
516145

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL COUNT ( * ) * - + 27 / + - 56 * - - COUNT ( - 3 ) + + - 39 + - 79 + + + COUNT ( * ) + - 92 + + 10 + + COALESCE ( + + 79, + - CAST ( NULL AS INTEGER ), - 33 ) * 76 * - ( - 86 ) AS col1
----
516145

query I rowsort
SELECT 90 + + 2 + - - 45
----
137

query I rowsort
SELECT 33 * + + 10
----
330

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2078
SELECT ALL + 76 + + - 47 + + 44 DIV - COUNT( * ), + 64 * - - 58 * - + 82 col2
----
-15
-304384

skipif mysql # not compatible
query II rowsort label-2078
SELECT ALL + 76 + + - 47 + + 44 / - COUNT ( * ), + 64 * - - 58 * - + 82 col2
----
-15
-304384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2079
SELECT + 10 DIV ( - MAX( + 38 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2079
SELECT + 10 / ( - MAX ( + 38 ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT DISTINCT + 85 DIV - 14
----
-6

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT + 85 / - 14
----
-6

query II rowsort
SELECT ALL - - 42 + - 91 AS col1, 29 AS col2
----
-49
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2082
SELECT + 76 + + MIN( - 8 ) + 34 col2, COUNT( * ) * + 35 + 58 DIV + 86
----
102
35

skipif mysql # not compatible
query II rowsort label-2082
SELECT + 76 + + MIN ( - 8 ) + 34 col2, COUNT ( * ) * + 35 + 58 / + 86
----
102
35

query I rowsort
SELECT ALL + 35 + - 13
----
22

query I rowsort
SELECT 11 - 83 col1
----
-72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2086
SELECT - COUNT( * ) * - 4 * + 69 * - COUNT( + 98 ) + CAST( NULL AS SIGNED ) + - - CASE 85 WHEN + 99 + + COUNT( * ) + + 25 + + + 57 / - 54 + - + NULLIF ( 36, + 54 ) THEN COUNT( * ) END + - 3 * + + CAST( - 21 AS SIGNED ) * + 41 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT - COUNT ( * ) * - 4 * + 69 * - COUNT ( + 98 ) + CAST ( NULL AS INTEGER ) + - - CASE 85 WHEN + 99 + + COUNT ( * ) + + 25 + + + 57 / - 54 + - + NULLIF ( 36, + 54 ) THEN COUNT ( * ) END + - 3 * + + CAST ( - 21 AS INTEGER ) * + 41 col2
----
NULL

query II rowsort
SELECT 92 AS col2, 94 AS col0
----
92
94

query II rowsort
SELECT 95, - 95 AS col1
----
95
-95

query I rowsort
SELECT 37 * + - 93
----
-3441

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

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

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

query I rowsort
SELECT 79 * - - 65 + + + 32 AS col1
----
5167

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT ALL - 43 - - 99 + COUNT( * ) + 32 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL - 43 - - 99 + COUNT ( * ) + 32 AS col1
----
89

query I rowsort
SELECT 39 * + + 40
----
1560

onlyif mysql # aggregate syntax: 
query II rowsort label-2095
SELECT - 59, + ( - - NULLIF ( + 77, 30 * 19 + + 73 ) ) * NULLIF ( - MAX( DISTINCT + - 11 ), - 37 * + 84 ) + 49 + 71 + - 93 * 49 AS col1
----
-59
-3590

skipif mysql # not compatible
query II rowsort label-2095
SELECT - 59, + ( - - NULLIF ( + 77, 30 * 19 + + 73 ) ) * NULLIF ( - MAX ( DISTINCT + - 11 ), - 37 * + 84 ) + 49 + 71 + - 93 * 49 AS col1
----
-59
-3590

onlyif mysql # DIV for integer division: 
query I rowsort label-2096
SELECT DISTINCT + 98 DIV - 37 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT + 98 / - 37 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT - 47 * - - CAST( + 37 AS SIGNED ) AS col1
----
-1739

skipif mysql # not compatible
query I rowsort label-2097
SELECT - 47 * - - CAST ( + 37 AS INTEGER ) AS col1
----
-1739

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT ALL + 80 DIV + + 77 col0
----
1

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL + 80 / + + 77 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2099
SELECT - 64 DIV COALESCE ( 48, + - 9 ) * + - 72 * 19 * - - 5
----
6840

skipif mysql # not compatible
query I rowsort label-2099
SELECT - 64 / COALESCE ( 48, + - 9 ) * + - 72 * 19 * - - 5
----
6840

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT + CASE - 9 WHEN - 55 - + 83 THEN - 14 + - COUNT( * ) WHEN - 67 * - 93 + + - 59 * - 58 * + 47 THEN + 32 ELSE NULL END / 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2100
SELECT + CASE - 9 WHEN - 55 - + 83 THEN - 14 + - COUNT ( * ) WHEN - 67 * - 93 + + - 59 * - 58 * + 47 THEN + 32 ELSE NULL END / 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT DISTINCT - MAX( DISTINCT 65 ) * + - 92
----
5980

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT - MAX ( DISTINCT 65 ) * + - 92
----
5980

query II rowsort
SELECT + COALESCE ( - + 32, + 68 ) AS col1, 65
----
-32
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL - + 78 * - - COUNT( * ) * + 73
----
-5694

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL - + 78 * - - COUNT ( * ) * + 73
----
-5694

onlyif mysql # aggregate syntax: 
query II rowsort label-2104
SELECT - 84 * + NULLIF ( - - MAX( + 98 ), + + 2 * + ( - 76 ) / MIN( + 62 ) - + 27 ), + 28 * + NULLIF ( - COUNT( * ), + - COUNT( - 38 ) ) * - 61 + + 17 AS col0
----
-8232
NULL

skipif mysql # not compatible
query II rowsort label-2104
SELECT - 84 * + NULLIF ( - - MAX ( + 98 ), + + 2 * + ( - 76 ) / MIN ( + 62 ) - + 27 ), + 28 * + NULLIF ( - COUNT ( * ), + - COUNT ( - 38 ) ) * - 61 + + 17 AS col0
----
-8232
NULL

query I rowsort
SELECT - 88 - - + 65
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT COUNT( * ) * + - 47 + + 79
----
32

skipif mysql # not compatible
query I rowsort label-2106
SELECT COUNT ( * ) * + - 47 + + 79
----
32

query I rowsort
SELECT + - CASE - 77 WHEN + - 18 THEN NULL ELSE + 7 END AS col2
----
-7

query I rowsort
SELECT + - 1 * 0 + - 76 - - - 91 AS col1
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2109
SELECT ALL - ( - + 46 ) * 74 * + SUM( DISTINCT - 97 ) * + 55 / - + CAST( + 38 AS SIGNED ) - CASE + + 94 WHEN - 98 * + 12 THEN + CAST( + ( 45 ) AS SIGNED ) WHEN - - 76 + - 34 THEN NULL END + + - 46 + - 23 + + 7 * - COUNT( * ) - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL - ( - + 46 ) * 74 * + SUM ( DISTINCT - 97 ) * + 55 / - + CAST ( + 38 AS INTEGER ) - CASE + + 94 WHEN - 98 * + 12 THEN + CAST ( + ( 45 ) AS INTEGER ) WHEN - - 76 + - 34 THEN NULL END + + - 46 + - 23 + + 7 * - COUNT ( * ) - 11 AS col2
----
NULL

query I rowsort
SELECT + 47 * + 83 * 30 AS col1
----
117030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2111
SELECT ALL - SUM( + - 33 ) * - COUNT( * ) + - 12 + + - 49 + 99 * COUNT( * ) DIV - + COUNT( * )
----
-193

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL - SUM ( + - 33 ) * - COUNT ( * ) + - 12 + + - 49 + 99 * COUNT ( * ) / - + COUNT ( * )
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT ALL - ( 40 ) * - + 38 + + COUNT( * )
----
1521

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - ( 40 ) * - + 38 + + COUNT ( * )
----
1521

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL 43 * - - 96 + - + 51 - + NULLIF ( + 17, - + COUNT( * ) ) * - 12 * - 60
----
-8163

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL 43 * - - 96 + - + 51 - + NULLIF ( + 17, - + COUNT ( * ) ) * - 12 * - 60
----
-8163

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT - 13 DIV - - 47
----
0

skipif mysql # not compatible
query I rowsort label-2114
SELECT - 13 / - - 47
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2115
SELECT + + COUNT( 10 ) + + COALESCE ( ( - COUNT( * ) ), COUNT( * ) * 33 * + COUNT( * ) * + 16, 45 ) - + CAST( - 54 AS SIGNED ) + - ( ( 24 ) ) - + + 55 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2115
SELECT + + COUNT ( 10 ) + + COALESCE ( ( - COUNT ( * ) ), COUNT ( * ) * 33 * + COUNT ( * ) * + 16, 45 ) - + CAST ( - 54 AS INTEGER ) + - ( ( 24 ) ) - + + 55 AS col1
----
-25

query I rowsort
SELECT DISTINCT 62 * + - 92
----
-5704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2117
SELECT ALL + ( - - ( 43 ) ) * + 54 * + - CASE - - COUNT( * ) WHEN + NULLIF ( - 92, - 41 * NULLIF ( + CAST( + 18 AS DECIMAL ), 59 ) * + 44 + - + 0 + + 10 ) * - 62 + - CAST( NULL AS SIGNED ) - - + 60 THEN - + COUNT( * ) DIV + 69 DIV - 74 + + 18 - - 96 ELSE + 26 END - - 46
----
-60326

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL + ( - - ( 43 ) ) * + 54 * + - CASE - - COUNT ( * ) WHEN + NULLIF ( - 92, - 41 * NULLIF ( + CAST ( + 18 AS REAL ), 59 ) * + 44 + - + 0 + + 10 ) * - 62 + - CAST ( NULL AS INTEGER ) - - + 60 THEN - + COUNT ( * ) / + 69 / - 74 + + 18 - - 96 ELSE + 26 END - - 46
----
-60326

onlyif mysql # DIV for integer division: 
query I rowsort label-2118
SELECT + 78 DIV + 4 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2118
SELECT + 78 / + 4 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT MAX( + - 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2119
SELECT MAX ( + - 74 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT COUNT( * ) * ( - ( - 62 ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT COUNT ( * ) * ( - ( - 62 ) ) AS col2
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-2121
SELECT ALL + 83 DIV + - 67, 10 DIV - 22 - 86 AS col2
----
-1
-86

skipif mysql # not compatible
query II rowsort label-2121
SELECT ALL + 83 / + - 67, 10 / - 22 - 86 AS col2
----
-1
-86

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2123
SELECT DISTINCT + 59 col0, NULLIF ( COUNT( * ), COUNT( * ) DIV - - 64 * - CASE - + 92 WHEN 84 + + - 69 + 67 THEN NULL WHEN - - 28 THEN + 77 * 98 DIV + - 49 END ) * - COUNT( * ) DIV - 24
----
59
0

skipif mysql # not compatible
query II rowsort label-2123
SELECT DISTINCT + 59 col0, NULLIF ( COUNT ( * ), COUNT ( * ) / - - 64 * - CASE - + 92 WHEN 84 + + - 69 + 67 THEN NULL WHEN - - 28 THEN + 77 * 98 / + - 49 END ) * - COUNT ( * ) / - 24
----
59
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT ALL NULLIF ( + 99, + ( COALESCE ( + + 64, + COALESCE ( - + 1, COUNT( DISTINCT 52 ) * 12 - + 96 + + AVG ( ALL + 98 ) ) + + - 95, - - 76 ) ) + + 71 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL NULLIF ( + 99, + ( COALESCE ( + + 64, + COALESCE ( - + 1, COUNT ( DISTINCT 52 ) * 12 - + 96 + + AVG ( ALL + 98 ) ) + + - 95, - - 76 ) ) + + 71 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2125
SELECT ALL 2 col1, ( + SUM( DISTINCT 85 ) ) AS col2
----
2
85

skipif mysql # not compatible
query II rowsort label-2125
SELECT ALL 2 col1, ( + SUM ( DISTINCT 85 ) ) AS col2
----
2
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT + 71 + - - 95 * - COUNT( * ) * ( - 79 ) * + COALESCE ( + 49, + 84, 19 ) + - - 78 col0
----
367894

skipif mysql # not compatible
query I rowsort label-2126
SELECT + 71 + - - 95 * - COUNT ( * ) * ( - 79 ) * + COALESCE ( + 49, + 84, 19 ) + - - 78 col0
----
367894

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2127
SELECT ALL + CAST( NULL AS DECIMAL ) * + 49 AS col2, 15 * - 84, + 78 AS col1
----
NULL
-1260
78

skipif mysql # not compatible
query III rowsort label-2127
SELECT ALL + CAST ( NULL AS REAL ) * + 49 AS col2, 15 * - 84, + 78 AS col1
----
NULL
-1260
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2128
SELECT + 88 * + CAST( - 60 AS SIGNED )
----
-5280

skipif mysql # not compatible
query I rowsort label-2128
SELECT + 88 * + CAST ( - 60 AS INTEGER )
----
-5280

query I rowsort
SELECT + 64 - + 80 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2130
SELECT - 16 col0, + MIN( - + 55 )
----
-16
-55

skipif mysql # not compatible
query II rowsort label-2130
SELECT - 16 col0, + MIN ( - + 55 )
----
-16
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT DISTINCT NULLIF ( + 1, - 49 / 21 / + - COUNT( * ) + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT NULLIF ( + 1, - 49 / 21 / + - COUNT ( * ) + 35 )
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-2132
SELECT - 17 + + 85, + COUNT( * ) + - - 65 AS col2, + 41 AS col1
----
68
66
41

skipif mysql # not compatible
query III rowsort label-2132
SELECT - 17 + + 85, + COUNT ( * ) + - - 65 AS col2, + 41 AS col1
----
68
66
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2133
SELECT ALL COUNT( * ) AS col0, CAST( + 21 AS SIGNED ) col2
----
1
21

skipif mysql # not compatible
query II rowsort label-2133
SELECT ALL COUNT ( * ) AS col0, CAST ( + 21 AS INTEGER ) col2
----
1
21

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

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

query II rowsort
SELECT - 28 AS col1, + 78 + - 61 col2
----
-28
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2136
SELECT ALL - + 76 + - 87 / + NULLIF ( - CAST( NULL AS DECIMAL ), + + 14 ) * - + COUNT( * ), - 70 AS col2
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-2136
SELECT ALL - + 76 + - 87 / + NULLIF ( - CAST ( NULL AS REAL ), + + 14 ) * - + COUNT ( * ), - 70 AS col2
----
NULL
-70

query I rowsort
SELECT - - 20 * + 90
----
1800

query I rowsort
SELECT - - CASE WHEN NOT - 69 IS NULL THEN 43 END - - 52 AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2139
SELECT - 65 DIV 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2139
SELECT - 65 / 98 AS col1
----
0

query I rowsort
SELECT - + 82 + - 35 * 21 AS col0
----
-817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 58 + + - 24 / - + 99 * - 45 + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 58 + + - 24 / - + 99 * - 45 + 45
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2142
SELECT ALL - 83 DIV - 53 + - - 64
----
65

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL - 83 / - 53 + - - 64
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT + + CASE - - CASE + MIN( DISTINCT 81 ) WHEN + 77 THEN NULL ELSE - 6 END WHEN - 82 THEN - 46 * COUNT( * ) * - 49 + - 4 + NULLIF ( 99, - 38 ) - + 54 + + 96 / + + 99 * + COUNT( * ) * + COALESCE ( + ( - 77 ), + 56 ) + 29 * - ( - CASE - 10 WHEN - 65 * - 10 THEN NULL WHEN - 13 + - 53 * - MAX( + 50 ) THEN NULL WHEN + MAX( + 67 ) THEN NULL ELSE COUNT( * ) END + 76 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT + + CASE - - CASE + MIN ( DISTINCT 81 ) WHEN + 77 THEN NULL ELSE - 6 END WHEN - 82 THEN - 46 * COUNT ( * ) * - 49 + - 4 + NULLIF ( 99, - 38 ) - + 54 + + 96 / + + 99 * + COUNT ( * ) * + COALESCE ( + ( - 77 ), + 56 ) + 29 * - ( - CASE - 10 WHEN - 65 * - 10 THEN NULL WHEN - 13 + - 53 * - MAX ( + 50 ) THEN NULL WHEN + MAX ( + 67 ) THEN NULL ELSE COUNT ( * ) END + 76 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2144
SELECT CAST( NULL AS SIGNED ) / + - COALESCE ( 45, 25 + - + 3, - CAST( NULL AS SIGNED ) - - + SUM( DISTINCT CAST( NULL AS SIGNED ) ) ) + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT CAST ( NULL AS INTEGER ) / + - COALESCE ( 45, 25 + - + 3, - CAST ( NULL AS INTEGER ) - - + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ) + - 8
----
NULL

query I rowsort
SELECT - 2 * - 85
----
170

query I rowsort
SELECT + - 55 * + 61 AS col1
----
-3355

query I rowsort
SELECT - + 44 + + 94
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT ALL + - 60 DIV + 45 - + - 70
----
69

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL + - 60 / + 45 - + - 70
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2150
SELECT - COALESCE ( + + NULLIF ( COUNT( * ), + - 40 ), 24 * + 66, - CAST( NULL AS SIGNED ), 57 + - ( + 22 ) + + 48 ) * + + 41 * SUM( ALL + - 81 ) + 65 + + 60 * - NULLIF ( CAST( NULL AS SIGNED ), - - CAST( - + 66 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT - COALESCE ( + + NULLIF ( COUNT ( * ), + - 40 ), 24 * + 66, - CAST ( NULL AS INTEGER ), 57 + - ( + 22 ) + + 48 ) * + + 41 * SUM ( ALL + - 81 ) + 65 + + 60 * - NULLIF ( CAST ( NULL AS INTEGER ), - - CAST ( - + 66 AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2151
SELECT + 31 + - COUNT( * ) + + 3, 17 * - 55 + MIN( - 83 ) * 62 * - + 64 AS col1
----
33
328409

skipif mysql # not compatible
query II rowsort label-2151
SELECT + 31 + - COUNT ( * ) + + 3, 17 * - 55 + MIN ( - 83 ) * 62 * - + 64 AS col1
----
33
328409

onlyif mysql # aggregate syntax: 
query II rowsort label-2152
SELECT DISTINCT + MIN( DISTINCT - 79 ), CASE 88 WHEN 94 + - 53 * + 98 / + 1 THEN MIN( - 35 ) WHEN - - CASE + COUNT( * ) WHEN + - 66 * + + 90 + - ( - 43 ) THEN + - 5 - + 7 WHEN - - 51 + 72 + - 60 * + COUNT( * ) + MAX( DISTINCT 0 ) THEN - 25 / 78 + 44 END / 78 + 69 * 34 THEN NULL ELSE - 8 END AS col0
----
-79
-8

skipif mysql # not compatible
query II rowsort label-2152
SELECT DISTINCT + MIN ( DISTINCT - 79 ), CASE 88 WHEN 94 + - 53 * + 98 / + 1 THEN MIN ( - 35 ) WHEN - - CASE + COUNT ( * ) WHEN + - 66 * + + 90 + - ( - 43 ) THEN + - 5 - + 7 WHEN - - 51 + 72 + - 60 * + COUNT ( * ) + MAX ( DISTINCT 0 ) THEN - 25 / 78 + 44 END / 78 + 69 * 34 THEN NULL ELSE - 8 END AS col0
----
-79
-8

query I rowsort
SELECT ALL 19 * + - 82
----
-1558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2154
SELECT + COUNT( * ) DIV - 25 * - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT + COUNT ( * ) / - 25 * - 97 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2155
SELECT + ( COALESCE ( + 18, - ( COALESCE ( - 15, - - MIN( + 39 ) * - 76 ) ) DIV 22 ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-2155
SELECT + ( COALESCE ( + 18, - ( COALESCE ( - 15, - - MIN ( + 39 ) * - 76 ) ) / 22 ) ) AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2156
SELECT + 1 + - - ( + + 85 ) + 26 + - ( + 7 ) * + COUNT( * ) DIV - 84
----
112

skipif mysql # not compatible
query I rowsort label-2156
SELECT + 1 + - - ( + + 85 ) + 26 + - ( + 7 ) * + COUNT ( * ) / - 84
----
112

query I rowsort
SELECT 20 * + - 36 AS col2
----
-720

query I rowsort
SELECT ALL 83 * - 30 * 65
----
-161850

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT 26 DIV - + 39
----
0

skipif mysql # not compatible
query I rowsort label-2159
SELECT 26 / - + 39
----
0

query I rowsort
SELECT ALL 35 + - ( - + 49 ) AS col1
----
84

query I rowsort
SELECT 45 + 46
----
91

query I rowsort
SELECT ALL 47 * - - 84 * + + 49 * - 76 AS col0
----
-14702352

onlyif mysql # aggregate syntax: 
query II rowsort label-2163
SELECT COUNT( * ) + - 24 col1, + 3 AS col0
----
-23
3

skipif mysql # not compatible
query II rowsort label-2163
SELECT COUNT ( * ) + - 24 col1, + 3 AS col0
----
-23
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT COALESCE ( COALESCE ( + 18, - + COUNT( * ) ), - 90 )
----
18

skipif mysql # not compatible
query I rowsort label-2166
SELECT COALESCE ( COALESCE ( + 18, - + COUNT ( * ) ), - 90 )
----
18

query I rowsort
SELECT ALL - + 48 + - - 56 * - 96 + 33 col1
----
-5391

query II rowsort
SELECT 65 + + 10 col2, 11 * 94 + - 51 col0
----
75
983

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - COALESCE ( - COUNT( * ), - 74, - 5 ) * 40 + - + 71 * + 65 + + + 90 * 83
----
2895

skipif mysql # not compatible
query I rowsort label-2169
SELECT - COALESCE ( - COUNT ( * ), - 74, - 5 ) * 40 + - + 71 * + 65 + + + 90 * 83
----
2895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2170
SELECT ALL - NULLIF ( - - CASE - COUNT( * ) WHEN 64 THEN NULL WHEN 22 + + 30 THEN CASE + CAST( NULL AS SIGNED ) WHEN 48 THEN 24 * + 80 + - 21 ELSE NULL END END, 90 ) * + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL - NULLIF ( - - CASE - COUNT ( * ) WHEN 64 THEN NULL WHEN 22 + + 30 THEN CASE + CAST ( NULL AS INTEGER ) WHEN 48 THEN 24 * + 80 + - 21 ELSE NULL END END, 90 ) * + 76 AS col0
----
NULL

query II rowsort
SELECT + 56 * + 34 AS col1, + 7 * 86 * - ( - 54 )
----
1904
32508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2172
SELECT 68 * CASE + + 20 WHEN + - CAST( NULL AS SIGNED ) / + 93 * - 75 * - - 75 * - 27 - + 49 + 5 * + 88 * 87 * - 17 THEN 6 END + - CAST( - + 58 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT 68 * CASE + + 20 WHEN + - CAST ( NULL AS INTEGER ) / + 93 * - 75 * - - 75 * - 27 - + 49 + 5 * + 88 * 87 * - 17 THEN 6 END + - CAST ( - + 58 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( - - 76, + - 30 )
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT DISTINCT - - 94 DIV + + COALESCE ( + - 85, - 19, + 45 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT - - 94 / + + COALESCE ( + - 85, - 19, + 45 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2175
SELECT - 22 DIV + 36 + - + 90
----
-90

skipif mysql # not compatible
query I rowsort label-2175
SELECT - 22 / + 36 + - + 90
----
-90

query I rowsort
SELECT ALL - NULLIF ( - NULLIF ( - 12, - 79 ), - 32 * + - 21 ) * + - 56 AS col2
----
672

onlyif mysql # DIV for integer division: 
query II rowsort label-2177
SELECT DISTINCT - + 27 DIV + 76 AS col2, 60 * 94 * - 63 * + 54
----
0
-19187280

skipif mysql # not compatible
query II rowsort label-2177
SELECT DISTINCT - + 27 / + 76 AS col2, 60 * 94 * - 63 * + 54
----
0
-19187280

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2179
SELECT 30 * + CASE - NULLIF ( + 79, + + AVG ( + + 93 ) ) WHEN + 83 + + COUNT( * ) THEN + 42 END AS col1, 85
----
NULL
85

skipif mysql # not compatible
query II rowsort label-2179
SELECT 30 * + CASE - NULLIF ( + 79, + + AVG ( + + 93 ) ) WHEN + 83 + + COUNT ( * ) THEN + 42 END AS col1, 85
----
NULL
85

query II rowsort
SELECT ALL - 65, - 45 AS col1
----
-65
-45

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

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

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

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT - MIN ( DISTINCT - 52 )
----
52

query I rowsort
SELECT DISTINCT + 11 * 46
----
506

query I rowsort
SELECT DISTINCT 94 + + 90 - - + ( 47 ) * + + 73 col1
----
3615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2185
SELECT 55 * + NULLIF ( + CAST( NULL AS SIGNED ), 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT 55 * + NULLIF ( + CAST ( NULL AS INTEGER ), 6 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2186
SELECT ALL 29 + - CAST( NULL AS SIGNED ) * + 84 AS col1, + 80 AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-2186
SELECT ALL 29 + - CAST ( NULL AS INTEGER ) * + 84 AS col1, + 80 AS col1
----
NULL
80

query II rowsort
SELECT 64, 36 AS col0
----
64
36

query I rowsort
SELECT 45 + + 20 AS col1
----
65

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

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

query I rowsort
SELECT ALL 93 * + 6 col0
----
558

query II rowsort
SELECT + 74 AS col2, + 19 AS col1
----
74
19

query I rowsort
SELECT - 77 - - 93 + - 65
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2193
SELECT ALL - 24 * + CAST( - 83 AS SIGNED ) AS col1, COUNT( * ) + 68 + - 63 + ( - 0 ) * 56 AS col2
----
1992
6

skipif mysql # not compatible
query II rowsort label-2193
SELECT ALL - 24 * + CAST ( - 83 AS INTEGER ) AS col1, COUNT ( * ) + 68 + - 63 + ( - 0 ) * 56 AS col2
----
1992
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT DISTINCT - SUM( ALL - - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT - SUM ( ALL - - 29 )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2195
SELECT ALL - 68 DIV - 53 col0
----
1

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL - 68 / - 53 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT + COUNT( * ) * + 71 * + 70 * + 36 * + - 57
----
-10198440

skipif mysql # not compatible
query I rowsort label-2196
SELECT + COUNT ( * ) * + 71 * + 70 * + 36 * + - 57
----
-10198440

query II rowsort
SELECT ALL 58, + 56 AS col2
----
58
56

query I rowsort
SELECT + 70 + - 51 AS col2
----
19

query I rowsort
SELECT 72 - 65
----
7

query I rowsort
SELECT - 54 - 24
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2201
SELECT - 93 * + COUNT( DISTINCT + 86 ), 67 AS col2
----
-93
67

skipif mysql # not compatible
query II rowsort label-2201
SELECT - 93 * + COUNT ( DISTINCT + 86 ), 67 AS col2
----
-93
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL - COUNT( * ) * - - 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL - COUNT ( * ) * - - 59 AS col2
----
-59

query I rowsort
SELECT + 20 + + 54 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL - MAX( ALL + + 29 ) * ( + + 10 ) - 4
----
-294

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL - MAX ( ALL + + 29 ) * ( + + 10 ) - 4
----
-294

query I rowsort
SELECT + 29 * - 67 * - 32 + + 85 * - - 4 AS col2
----
62516

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT COALESCE ( - - 23, COUNT( * ), + 3 * + 27 + + 90 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2207
SELECT COALESCE ( - - 23, COUNT ( * ), + 3 * + 27 + + 90 ) AS col0
----
23

query I rowsort
SELECT DISTINCT 72 * + 19
----
1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2209
SELECT 10 + + COUNT( * ) * + 63 * - CAST( + - 97 AS SIGNED ) col1
----
6121

skipif mysql # not compatible
query I rowsort label-2209
SELECT 10 + + COUNT ( * ) * + 63 * - CAST ( + - 97 AS INTEGER ) col1
----
6121

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

skipif mysql # not compatible
query I rowsort label-2210
SELECT + 48 / - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT 16 * - COALESCE ( + - 86, + + MAX( + - 7 ) * 43 * - 42, 83 ) + + 17 * 86 AS col2
----
2838

skipif mysql # not compatible
query I rowsort label-2211
SELECT 16 * - COALESCE ( + - 86, + + MAX ( + - 7 ) * 43 * - 42, 83 ) + + 17 * 86 AS col2
----
2838

query I rowsort
SELECT 53 * + 94 + - 80 + + 26 + + 14 * 75
----
5978

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT DISTINCT + 7 * - - COUNT( DISTINCT 35 ) + 82
----
89

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT + 7 * - - COUNT ( DISTINCT 35 ) + 82
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT ALL 8 * - CAST( NULL AS SIGNED ) + COUNT( * ) + - + 76 * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL 8 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) + - + 76 * - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT ALL + COALESCE ( - 28, - 78, - + 88 + + 79 + - - 56 - - 9 + - - 98 + - COUNT( * ) * + ( + 38 ) + + + SUM( 18 ) * + + 89, 7 )
----
-28

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL + COALESCE ( - 28, - 78, - + 88 + + 79 + - - 56 - - 9 + - - 98 + - COUNT ( * ) * + ( + 38 ) + + + SUM ( 18 ) * + + 89, 7 )
----
-28

query I rowsort
SELECT ( 98 ) * + 99 + + 61 * + 95 * + 42
----
253092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2217
SELECT + CAST( NULL AS SIGNED ) + 75 + - 28 + - 36 - 12 * - 82 + - ( + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2217
SELECT + CAST ( NULL AS INTEGER ) + 75 + - 28 + - 36 - 12 * - 82 + - ( + 89 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2218
SELECT ALL + + ( 35 ) + COUNT( * ) * COUNT( ALL 30 ) + - ( 15 ) / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL + + ( 35 ) + COUNT ( * ) * COUNT ( ALL 30 ) + - ( 15 ) / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2219
SELECT + MAX( DISTINCT + 7 ), + 92 AS col0
----
7
92

skipif mysql # not compatible
query II rowsort label-2219
SELECT + MAX ( DISTINCT + 7 ), + 92 AS col0
----
7
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2220
SELECT ALL - + COUNT( - 95 ) * + CASE - 55 WHEN + + 32 * - - 62 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN - + 57 ELSE COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL - + COUNT ( - 95 ) * + CASE - 55 WHEN + + 32 * - - 62 THEN NULL WHEN CAST ( NULL AS REAL ) THEN - + 57 ELSE COUNT ( * ) END AS col2
----
-1

query I rowsort
SELECT DISTINCT - 39 * - 49 * - - 96
----
183456

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT DISTINCT SUM( - - 31 ) * - + 87 AS col2
----
-2697

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT SUM ( - - 31 ) * - + 87 AS col2
----
-2697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2224
SELECT + COALESCE ( + + 75, - 60 * MIN( ALL + 31 ) * + ( 20 ) + + - 10 + 74 + - - COUNT( + + 69 ) DIV 44 + - + 27 * - + CASE - 34 WHEN 73 + - - ( - + 80 ) - COALESCE ( - - NULLIF ( + 55, - + 16 * - + 59 - COUNT( * ) + 39 * 54 ), - NULLIF ( 57, 28 ) * + 88 ) THEN + 10 * - 33 END + - 69, COALESCE ( - 51, + CAST( NULL AS SIGNED ) + ( + CAST( NULL AS SIGNED ) ) ) * ( + COUNT( ALL + 97 ) * ( 76 + + COUNT( * ) ) ) - 58 * 60, NULLIF ( 4, 83 * COALESCE ( ( + AVG ( DISTINCT CAST( 95 AS SIGNED ) ) ), 46 * 41 ) + + 54 * 2 ) + - 59 ) + + 28 DIV ( MIN( 73 ) * + 12 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2224
SELECT + COALESCE ( + + 75, - 60 * MIN ( ALL + 31 ) * + ( 20 ) + + - 10 + 74 + - - COUNT ( + + 69 ) / 44 + - + 27 * - + CASE - 34 WHEN 73 + - - ( - + 80 ) - COALESCE ( - - NULLIF ( + 55, - + 16 * - + 59 - COUNT ( * ) + 39 * 54 ), - NULLIF ( 57, 28 ) * + 88 ) THEN + 10 * - 33 END + - 69, COALESCE ( - 51, + CAST ( NULL AS INTEGER ) + ( + CAST ( NULL AS INTEGER ) ) ) * ( + COUNT ( ALL + 97 ) * ( 76 + + COUNT ( * ) ) ) - 58 * 60, NULLIF ( 4, 83 * COALESCE ( ( + AVG ( DISTINCT CAST ( 95 AS INTEGER ) ) ), 46 * 41 ) + + 54 * 2 ) + - 59 ) + + 28 / ( MIN ( 73 ) * + 12 ) AS col2
----
75

query I rowsort
SELECT - + ( - 4 ) * - - 46
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT + + 51 * - 96 * - MAX( ALL + + 28 ) * - 85 / - 50 + - + CASE - 33 WHEN - 6 + + 19 THEN + 94 + + 83 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT + + 51 * - 96 * - MAX ( ALL + + 28 ) * - 85 / - 50 + - + CASE - 33 WHEN - 6 + + 19 THEN + 94 + + 83 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT DISTINCT + 35 * CAST( + + 16 AS SIGNED ) * + COALESCE ( - 3, - - CASE + 93 WHEN 42 THEN + 44 ELSE NULL END + CAST( COUNT( - ( - 30 ) ) AS SIGNED ) - - + 43, - 77 ) * - CASE 92 WHEN CAST( - 92 AS SIGNED ) THEN 53 + 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT + 35 * CAST ( + + 16 AS INTEGER ) * + COALESCE ( - 3, - - CASE + 93 WHEN 42 THEN + 44 ELSE NULL END + CAST ( COUNT ( - ( - 30 ) ) AS INTEGER ) - - + 43, - 77 ) * - CASE 92 WHEN CAST ( - 92 AS INTEGER ) THEN 53 + 56 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT DISTINCT - 43 * - 9 + - COUNT( * ) col0
----
386

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT - 43 * - 9 + - COUNT ( * ) col0
----
386

query I rowsort
SELECT + 27 * 2 + + ( - 39 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL MAX( ALL - CASE WHEN ( NOT 48 IS NULL ) THEN + 84 END ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL MAX ( ALL - CASE WHEN ( NOT 48 IS NULL ) THEN + 84 END ) AS col2
----
-84

query I rowsort
SELECT - 71 - 53
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT + 54 + + SUM( - - ( - 3 ) ) + - 83 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-2233
SELECT + 54 + + SUM ( - - ( - 3 ) ) + - 83 AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2234
SELECT ALL 92 DIV + - ( - 28 ) + + 73 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL 92 / + - ( - 28 ) + + 73 AS col0
----
76

query II rowsort
SELECT ALL + 74, - 92 AS col0
----
74
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2236
SELECT DISTINCT + 12 DIV + 83 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT + 12 / + 83 + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2237
SELECT ALL + NULLIF ( 78, + CAST( COUNT( + CASE 22 WHEN + 29 / + + COALESCE ( - 38, 98 * - CAST( NULL AS SIGNED ) ) THEN - 94 END ) AS SIGNED ) ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL + NULLIF ( 78, + CAST ( COUNT ( + CASE 22 WHEN + 29 / + + COALESCE ( - 38, 98 * - CAST ( NULL AS INTEGER ) ) THEN - 94 END ) AS INTEGER ) ) AS col2
----
78

query II rowsort
SELECT + ( + + ( + 17 ) ), - 47 AS col1
----
17
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2239
SELECT ALL - 79 DIV NULLIF ( 97, + 14 + + - 2 ) DIV - - COUNT( * ) + + 73 + + + 80 - 60 * 29
----
-1587

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL - 79 / NULLIF ( 97, + 14 + + - 2 ) / - - COUNT ( * ) + + 73 + + + 80 - 60 * 29
----
-1587

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT ALL 48 * 15 + - + 82 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL 48 * 15 + - + 82 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT + NULLIF ( 76, COUNT( * ) + + + 95 ) col1
----
76

skipif mysql # not compatible
query I rowsort label-2241
SELECT + NULLIF ( 76, COUNT ( * ) + + + 95 ) col1
----
76

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT DISTINCT + + COALESCE ( - 43, + - CASE + 9 WHEN + 8 + + 47 THEN + 72 + + 64 DIV + 25 - - 67 ELSE NULL END )
----
-43

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT + + COALESCE ( - 43, + - CASE + 9 WHEN + 8 + + 47 THEN + 72 + + 64 / + 25 - - 67 ELSE NULL END )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL + - 4 * + MIN( 86 ) AS col1
----
-344

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL + - 4 * + MIN ( 86 ) AS col1
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT - 86 * - - SUM( - 69 )
----
5934

skipif mysql # not compatible
query I rowsort label-2245
SELECT - 86 * - - SUM ( - 69 )
----
5934

query I rowsort
SELECT + 25 + 16
----
41

query I rowsort
SELECT ALL + 41 * - 21 * + 51 - + 4 AS col1
----
-43915

query I rowsort
SELECT + - 77 + - 1 * 2 * + + 43 AS col2
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT CASE + 5 WHEN ( + COUNT( * ) ) THEN + 49 WHEN 74 / - CAST( + 40 AS SIGNED ) * 39 THEN COALESCE ( - - 75, CASE - 61 WHEN + 90 * - + 45 + - 84 THEN - - 96 + + CASE - 66 WHEN + MAX( DISTINCT 70 ) THEN 46 * - - 85 - + - 89 * 5 END END * 29, + COUNT( * ) ) ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-2249
SELECT CASE + 5 WHEN ( + COUNT ( * ) ) THEN + 49 WHEN 74 / - CAST ( + 40 AS INTEGER ) * 39 THEN COALESCE ( - - 75, CASE - 61 WHEN + 90 * - + 45 + - 84 THEN - - 96 + + CASE - 66 WHEN + MAX ( DISTINCT 70 ) THEN 46 * - - 85 - + - 89 * 5 END END * 29, + COUNT ( * ) ) ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2250
SELECT - - COUNT( * ) AS col0, 33 + + SUM( + 10 ) - - COUNT( * ) + 28 + + 95 DIV - 97 AS col1, - COUNT( * ) AS col1
----
1
72
-1

skipif mysql # not compatible
query III rowsort label-2250
SELECT - - COUNT ( * ) AS col0, 33 + + SUM ( + 10 ) - - COUNT ( * ) + 28 + + 95 / - 97 AS col1, - COUNT ( * ) AS col1
----
1
72
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2251
SELECT - CAST( 8 AS SIGNED ) + 83
----
75

skipif mysql # not compatible
query I rowsort label-2251
SELECT - CAST ( 8 AS INTEGER ) + 83
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT ALL + - 33 * + - 96 + 30 - + COUNT( * ) AS col0
----
3197

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL + - 33 * + - 96 + 30 - + COUNT ( * ) AS col0
----
3197

onlyif mysql # aggregate syntax: 
query II rowsort label-2253
SELECT DISTINCT ( + CASE + - 0 WHEN - - ( - 2 ) / 53 + + 92 THEN - - COUNT( * ) END ) AS col2, 1 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2253
SELECT DISTINCT ( + CASE + - 0 WHEN - - ( - 2 ) / 53 + + 92 THEN - - COUNT ( * ) END ) AS col2, 1 AS col0
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2254
SELECT - - 45 DIV COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2254
SELECT - - 45 / COUNT ( * ) AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2255
SELECT DISTINCT - NULLIF ( + ( + 52 ), + - NULLIF ( - 95, + + ( - + 97 ) ) ) + - + NULLIF ( + 30, - + ( - 52 ) ) + - ( 20 ) DIV + + SUM( - 40 ) + + 22 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT - NULLIF ( + ( + 52 ), + - NULLIF ( - 95, + + ( - + 97 ) ) ) + - + NULLIF ( + 30, - + ( - 52 ) ) + - ( 20 ) / + + SUM ( - 40 ) + + 22 AS col2
----
-60

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

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

query I rowsort
SELECT ALL - COALESCE ( + 63, - - 45, + 3 ) col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT CAST( - 15 AS SIGNED ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-2258
SELECT CAST ( - 15 AS INTEGER ) AS col0
----
-15

query I rowsort
SELECT 60 + + - 42 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2260
SELECT DISTINCT + CAST( SUM( DISTINCT - 58 ) AS SIGNED ) + MAX( + 24 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT + CAST ( SUM ( DISTINCT - 58 ) AS INTEGER ) + MAX ( + 24 ) AS col1
----
-34

query III rowsort
SELECT - 30, + 67 + + - 71 - + 32 AS col0, - - 31 AS col0
----
-30
-36
31

query II rowsort
SELECT 70, - 30 col1
----
70
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT - ( - - 96 ) + ( + 9 ) - + COUNT( * ) + + - 0 * + 42
----
-88

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT - ( - - 96 ) + ( + 9 ) - + COUNT ( * ) + + - 0 * + 42
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT DISTINCT + MIN( DISTINCT + 4 ) + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT + MIN ( DISTINCT + 4 ) + COUNT ( * ) AS col1
----
5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT - CASE COALESCE ( - 94, + - 82 ) WHEN COALESCE ( 68, - + 73 ) THEN NULL WHEN - 56 THEN + - MIN( + 3 ) * - - 94 * + - COUNT( * ) / - 22 * - 46 + - COUNT( * ) * - + 63 WHEN - 52 * - 39 / + ( + 99 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT - CASE COALESCE ( - 94, + - 82 ) WHEN COALESCE ( 68, - + 73 ) THEN NULL WHEN - 56 THEN + - MIN ( + 3 ) * - - 94 * + - COUNT ( * ) / - 22 * - 46 + - COUNT ( * ) * - + 63 WHEN - 52 * - 39 / + ( + 99 ) THEN NULL END
----
NULL

query I rowsort
SELECT 45 + - 23 + - 13 + + 6
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT + COALESCE ( 56, + NULLIF ( - COUNT( * ), + 0 * 95 ) * 48, + 8 ) * - COUNT( * ) + - 75 AS col0
----
-131

skipif mysql # not compatible
query I rowsort label-2269
SELECT + COALESCE ( 56, + NULLIF ( - COUNT ( * ), + 0 * 95 ) * 48, + 8 ) * - COUNT ( * ) + - 75 AS col0
----
-131

query I rowsort
SELECT DISTINCT 64 * - 14 * + + 13 AS col2
----
-11648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2271
SELECT 27 * + 37 + + 61 + - CASE - CASE - 53 WHEN + ( + 98 ) / 16 THEN NULL WHEN - 15 * + CAST( NULL AS DECIMAL ) + - - CASE - 62 WHEN 39 THEN - 29 * + 43 * - ( - + 78 ) * + + 1 - - + 28 + - + 71 + + + 24 + 8 ELSE NULL END * + COALESCE ( - ( - 28 ), SUM( COALESCE ( - 43, - 76 * - 8 - + 69 * ( - 28 * 66 ) ) ), + CASE - 13 WHEN + 23 * + 28 - ( + 22 ) THEN NULL WHEN 55 + - 84 THEN + CASE 24 WHEN 86 THEN NULL WHEN + 89 * + ( + CAST( NULL AS SIGNED ) ) THEN + 97 ELSE 86 + + ( 43 ) END END ) THEN 66 / - ( 4 ) ELSE NULL END WHEN + ( 65 ) THEN - 46 + + 27 WHEN + 66 + ( - COALESCE ( 23, + CAST( + 22 AS SIGNED ) ) + - 86 ) THEN 73 - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) WHEN 16 THEN - 66 ELSE + 32 * CASE 15 * + 40 WHEN 44 THEN + 83 END + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT 27 * + 37 + + 61 + - CASE - CASE - 53 WHEN + ( + 98 ) / 16 THEN NULL WHEN - 15 * + CAST ( NULL AS REAL ) + - - CASE - 62 WHEN 39 THEN - 29 * + 43 * - ( - + 78 ) * + + 1 - - + 28 + - + 71 + + + 24 + 8 ELSE NULL END * + COALESCE ( - ( - 28 ), SUM ( COALESCE ( - 43, - 76 * - 8 - + 69 * ( - 28 * 66 ) ) ), + CASE - 13 WHEN + 23 * + 28 - ( + 22 ) THEN NULL WHEN 55 + - 84 THEN + CASE 24 WHEN 86 THEN NULL WHEN + 89 * + ( + CAST ( NULL AS INTEGER ) ) THEN + 97 ELSE 86 + + ( 43 ) END END ) THEN 66 / - ( 4 ) ELSE NULL END WHEN + ( 65 ) THEN - 46 + + 27 WHEN + 66 + ( - COALESCE ( 23, + CAST ( + 22 AS INTEGER ) ) + - 86 ) THEN 73 - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN 16 THEN - 66 ELSE + 32 * CASE 15 * + 40 WHEN 44 THEN + 83 END + 31 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL 34 - + ( + - COUNT( * ) ) * + 41 * + 31 * - 48 AS col2
----
-60974

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL 34 - + ( + - COUNT ( * ) ) * + 41 * + 31 * - 48 AS col2
----
-60974

query I rowsort
SELECT ( + 4 ) + - - 84
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL + 61 * - 18 * - 98 + + MIN( ALL 37 ) AS col0
----
107641

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL + 61 * - 18 * - 98 + + MIN ( ALL 37 ) AS col0
----
107641

query I rowsort
SELECT + 66 * + 93 AS col2
----
6138

query I rowsort
SELECT DISTINCT - 45 * - 85 col2
----
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT DISTINCT - - SUM( DISTINCT + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT - - SUM ( DISTINCT + 55 )
----
55

query II rowsort
SELECT - 38 AS col0, ( + 28 ) col2
----
-38
28

query I rowsort
SELECT DISTINCT + 18 + - 6 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2280
SELECT 49 * + - 24 AS col0, - ( - CAST( NULL AS SIGNED ) ) AS col2
----
-1176
NULL

skipif mysql # not compatible
query II rowsort label-2280
SELECT 49 * + - 24 AS col0, - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
-1176
NULL

query I rowsort
SELECT ALL + 68 + + - 42
----
26

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

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

query I rowsort
SELECT - 48 * + - 23 AS col2
----
1104

query I rowsort
SELECT 18 * - ( - + 10 ) AS col1
----
180

query I rowsort
SELECT ALL 13 + + 36 + + 85 - - 70 AS col0
----
204

query I rowsort
SELECT DISTINCT + ( 96 ) * + 26 * - - 83
----
207168

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

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

query I rowsort
SELECT DISTINCT + 21 + + 38 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT 39 + + + 14 + + MIN( - 38 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2289
SELECT 39 + + + 14 + + MIN ( - 38 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2290
SELECT 64 * COUNT( * ), COALESCE ( ( 73 ), + + COUNT( * ), - 84 ) AS col0
----
64
73

skipif mysql # not compatible
query II rowsort label-2290
SELECT 64 * COUNT ( * ), COALESCE ( ( 73 ), + + COUNT ( * ), - 84 ) AS col0
----
64
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2291
SELECT COUNT( * ) DIV + 97 * + 42 + - 78
----
-78

skipif mysql # not compatible
query I rowsort label-2291
SELECT COUNT ( * ) / + 97 * + 42 + - 78
----
-78

query II rowsort
SELECT DISTINCT - 13 * - 62, 98 AS col1
----
806
98

query I rowsort
SELECT ALL - 4 * - ( - ( - 92 ) ) AS col0
----
368

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

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

query II rowsort
SELECT ALL - ( + 3 ) AS col0, 33 col1
----
-3
33

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

skipif mysql # not compatible
query I rowsort label-2296
SELECT COUNT ( * ) / - - 34
----
0

query I rowsort
SELECT 2 * 70 * + + 87
----
12180

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT - 21 * + MAX( ALL + - ( - 53 ) ) + + - 41 + + 88 * + 39 AS col2
----
2278

skipif mysql # not compatible
query I rowsort label-2298
SELECT - 21 * + MAX ( ALL + - ( - 53 ) ) + + - 41 + + 88 * + 39 AS col2
----
2278

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL - 9 + 52 * - 93 * COUNT( * )
----
-4845

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - 9 + 52 * - 93 * COUNT ( * )
----
-4845

query I rowsort
SELECT + - COALESCE ( - 18, - 69, + 10 ) * - 44 * 68
----
-53856

query I rowsort
SELECT ALL + 39 + + CASE - 83 WHEN - NULLIF ( 13, 26 * + 94 * + + 17 ) THEN 9 ELSE NULL END
----
NULL

query I rowsort
SELECT + 37 + - 26 * 5
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT COALESCE ( - ( COUNT( * ) ), + 58 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2305
SELECT COALESCE ( - ( COUNT ( * ) ), + 58 ) AS col0
----
-1

query I rowsort
SELECT - NULLIF ( ( - ( + 92 ) ), + 62 + + 33 * - 72 ) * + 69 + 92 + - 97
----
6343

query II rowsort
SELECT - ( - 21 ) * + - 0 AS col0, + 56 AS col1
----
0
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2308
SELECT ALL 90 + + 98 + - 97 * + + 73 * + COUNT( * ) + COALESCE ( - + 23, + + 76 + + 11 * 61 + + 39 ) DIV + - 72 * - - COUNT( - - 89 )
----
-6893

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL 90 + + 98 + - 97 * + + 73 * + COUNT ( * ) + COALESCE ( - + 23, + + 76 + + 11 * 61 + + 39 ) / + - 72 * - - COUNT ( - - 89 )
----
-6893

query I rowsort
SELECT ALL 34 + + - ( + 5 )
----
29

query I rowsort
SELECT - CASE + - 43 WHEN + - ( - + 45 ) THEN ( - + 85 ) WHEN + + 81 * 18 THEN NULL ELSE + 32 END AS col2
----
-32

query I rowsort
SELECT DISTINCT ( + + 49 ) + - ( - - 10 ) - 9 * - - 95 * + 43
----
-36726

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT + CASE + - 49 WHEN NULLIF ( - + 44, - ( - ( 4 ) ) ) * + COUNT( * ) THEN + 46 + 44 ELSE NULL END + + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2312
SELECT + CASE + - 49 WHEN NULLIF ( - + 44, - ( - ( 4 ) ) ) * + COUNT ( * ) THEN + 46 + 44 ELSE NULL END + + 0 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2313
SELECT + 65 DIV + 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2313
SELECT + 65 / + 61 AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT - NULLIF ( 43, + MAX( ALL - 13 ) ) + + - 14 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-2315
SELECT - NULLIF ( 43, + MAX ( ALL - 13 ) ) + + - 14 AS col0
----
-57

query I rowsort
SELECT ALL - 72 - 16
----
-88

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

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

query I rowsort
SELECT DISTINCT 0 * 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT DISTINCT 59 - + - 53 DIV + 22 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT 59 - + - 53 / + 22 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL NULLIF ( ( - - MAX( DISTINCT + 78 ) ), - COUNT( * ) * + + 89 * + + 83 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL NULLIF ( ( - - MAX ( DISTINCT + 78 ) ), - COUNT ( * ) * + + 89 * + + 83 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT DISTINCT CASE - NULLIF ( 19, 76 + 64 ) WHEN + + 75 THEN - 62 / - + 93 WHEN + + ( + 26 ) / + 85 * - - 66 + 36 / COUNT( * ) THEN + - 43 * - 23 + 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT CASE - NULLIF ( 19, 76 + 64 ) WHEN + + 75 THEN - 62 / - + 93 WHEN + + ( + 26 ) / + 85 * - - 66 + 36 / COUNT ( * ) THEN + - 43 * - 23 + 61 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2322
SELECT ALL - CASE + 86 WHEN - + 1 * - 53 / - CAST( COUNT( - - 43 ) AS SIGNED ) * + - 27 - - + 72 + - CAST( + + 18 AS SIGNED ) + 21 + 92 THEN NULL WHEN + - 88 * + + 91 THEN NULL WHEN 66 THEN + + CAST( 18 AS SIGNED ) ELSE + COUNT( * ) END * + 62 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL - CASE + 86 WHEN - + 1 * - 53 / - CAST ( COUNT ( - - 43 ) AS INTEGER ) * + - 27 - - + 72 + - CAST ( + + 18 AS INTEGER ) + 21 + 92 THEN NULL WHEN + - 88 * + + 91 THEN NULL WHEN 66 THEN + + CAST ( 18 AS INTEGER ) ELSE + COUNT ( * ) END * + 62 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT - ( + 26 ) + - CASE - + 60 WHEN ( COUNT( * ) ) THEN NULL WHEN 44 THEN + - 90 WHEN - 49 * 59 * - COUNT( * ) THEN - 30 END + - 66 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2323
SELECT - ( + 26 ) + - CASE - + 60 WHEN ( COUNT ( * ) ) THEN NULL WHEN 44 THEN + - 90 WHEN - 49 * 59 * - COUNT ( * ) THEN - 30 END + - 66 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT - NULLIF ( + 20, + ( 92 ) ) DIV - - 58 - + - 80 * 72 * - - 38
----
218880

skipif mysql # not compatible
query I rowsort label-2324
SELECT - NULLIF ( + 20, + ( 92 ) ) / - - 58 - + - 80 * 72 * - - 38
----
218880

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT - + CASE + 52 WHEN - + COUNT( * ) - - + 26 THEN + 3 / - 87 * ( - + NULLIF ( 26, + - ( + + 19 ) / + 44 ) ) * - - 95 WHEN + + 86 + + ( + 34 ) THEN NULL END * - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2325
SELECT - + CASE + 52 WHEN - + COUNT ( * ) - - + 26 THEN + 3 / - 87 * ( - + NULLIF ( 26, + - ( + + 19 ) / + 44 ) ) * - - 95 WHEN + + 86 + + ( + 34 ) THEN NULL END * - 54 AS col1
----
NULL

query I rowsort
SELECT - - 73 + - 41
----
32

query I rowsort
SELECT DISTINCT - 62 * - + 17 * - NULLIF ( + 67, - 46 ) AS col1
----
-70618

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT ALL - - SUM( - 55 ) * - 12 * - 96 + + + 45
----
-63315

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL - - SUM ( - 55 ) * - 12 * - 96 + + + 45
----
-63315

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2329
SELECT 23 DIV - 99 + + 6, CAST( NULL AS SIGNED ) AS col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-2329
SELECT 23 / - 99 + + 6, CAST ( NULL AS INTEGER ) AS col0
----
6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT ALL - 81 * 83 * - - COUNT( ( + + 94 ) ) + + + 73 AS col1
----
-6650

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL - 81 * 83 * - - COUNT ( ( + + 94 ) ) + + + 73 AS col1
----
-6650

query I rowsort
SELECT ALL - - 24 * - ( - 65 ) + - 42 - + 82 AS col1
----
1436

query I rowsort
SELECT - 8 * - + 18 col2
----
144

query I rowsort
SELECT + 77 + - - 37 AS col1
----
114

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

skipif mysql # not compatible
query I rowsort label-2334
SELECT - CAST ( NULL AS INTEGER ) * - 60 + 55 AS col0
----
NULL

query I rowsort
SELECT + - 8 + + 50
----
42

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

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

query I rowsort
SELECT ALL - 51 * + 34 - - 51 AS col2
----
-1683

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL 90 - + MIN( ALL + 17 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL 90 - + MIN ( ALL + 17 ) AS col1
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT + MAX( DISTINCT - 38 ) * + 54 * + + 66
----
-135432

skipif mysql # not compatible
query I rowsort label-2341
SELECT + MAX ( DISTINCT - 38 ) * + 54 * + + 66
----
-135432

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT + COUNT( * ) - + 82 + 76 + + 90 / - 45 + - - CASE 67 WHEN 3 THEN - 27 + - - 86 + + + COUNT( * ) WHEN - 75 THEN NULL END * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT + COUNT ( * ) - + 82 + 76 + + 90 / - 45 + - - CASE 67 WHEN 3 THEN - 27 + - - 86 + + + COUNT ( * ) WHEN - 75 THEN NULL END * - 61
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2343
SELECT DISTINCT NULLIF ( + 17, + MIN( ALL + 85 ) * - 23 ) AS col0, - 61
----
17
-61

skipif mysql # not compatible
query II rowsort label-2343
SELECT DISTINCT NULLIF ( + 17, + MIN ( ALL + 85 ) * - 23 ) AS col0, - 61
----
17
-61

query I rowsort
SELECT DISTINCT + 59 * 91 AS col0
----
5369

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2345
SELECT ALL + NULLIF ( - + 20, + 41 ) * - - 25, CAST( NULL AS SIGNED ) AS col0
----
-500
NULL

skipif mysql # not compatible
query II rowsort label-2345
SELECT ALL + NULLIF ( - + 20, + 41 ) * - - 25, CAST ( NULL AS INTEGER ) AS col0
----
-500
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT + 52 + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-2346
SELECT + 52 + COUNT ( * )
----
53

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

query I rowsort
SELECT DISTINCT 81 * + + 84
----
6804

onlyif mysql # aggregate syntax: 
query II rowsort label-2349
SELECT ALL COUNT( * ) * 8, - 37 AS col1
----
8
-37

skipif mysql # not compatible
query II rowsort label-2349
SELECT ALL COUNT ( * ) * 8, - 37 AS col1
----
8
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT - MAX( - - 1 ) * - - CASE - 44 WHEN - NULLIF ( + 62, - 27 + 55 ) THEN + 18 + + + COALESCE ( - 59, + 89 + - 45 ) WHEN 48 THEN - + COUNT( * ) * - 53 + + + COUNT( * ) END * - - MAX( 97 ) - - + COUNT( * ) + - 51 + 50 + + ( 86 ) - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT - MAX ( - - 1 ) * - - CASE - 44 WHEN - NULLIF ( + 62, - 27 + 55 ) THEN + 18 + + + COALESCE ( - 59, + 89 + - 45 ) WHEN 48 THEN - + COUNT ( * ) * - 53 + + + COUNT ( * ) END * - - MAX ( 97 ) - - + COUNT ( * ) + - 51 + 50 + + ( 86 ) - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT - MAX( - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-2352
SELECT - MAX ( - 73 )
----
73

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT DISTINCT 74 DIV - 22 + - 93 + + + ( 43 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT 74 / - 22 + - 93 + + + ( 43 ) col0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT DISTINCT + - 12 DIV 66 + - 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT + - 12 / 66 + - 27 AS col1
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT - 39 * - - COUNT( DISTINCT - COALESCE ( ( 11 ), 21 * 24 ) ) + - - ( + + 7 ) * 6 + - 35
----
-32

skipif mysql # not compatible
query I rowsort label-2357
SELECT - 39 * - - COUNT ( DISTINCT - COALESCE ( ( 11 ), 21 * 24 ) ) + - - ( + + 7 ) * 6 + - 35
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT ALL 9 + + 96 DIV + + 41 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL 9 + + 96 / + + 41 AS col0
----
11

query I rowsort
SELECT ALL + - 11 + + + 84 - - 86 * - + ( + 39 )
----
-3281

query I rowsort
SELECT + ( - 91 ) - - 53 AS col1
----
-38

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2362
SELECT 34 DIV + 65, + 40 * + CAST( + - 18 AS SIGNED ) - - 65 col0
----
0
-655

skipif mysql # not compatible
query II rowsort label-2362
SELECT 34 / + 65, + 40 * + CAST ( + - 18 AS INTEGER ) - - 65 col0
----
0
-655

query II rowsort
SELECT ALL - - 98 + - 95 AS col2, + 89 * 91
----
3
8099

onlyif mysql # aggregate syntax: 
query II rowsort label-2364
SELECT 26 * + 98 * - 33 - + - COUNT( * ) AS col0, - 62 AS col2
----
-84083
-62

skipif mysql # not compatible
query II rowsort label-2364
SELECT 26 * + 98 * - 33 - + - COUNT ( * ) AS col0, - 62 AS col2
----
-84083
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-2365
SELECT ALL + - COUNT( * ) * - 18, + 30 AS col1
----
18
30

skipif mysql # not compatible
query II rowsort label-2365
SELECT ALL + - COUNT ( * ) * - 18, + 30 AS col1
----
18
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT - COUNT( * ) - - 77 + - 40 * + + 75 + - + 48 - + + 39 + + 72
----
-2939

skipif mysql # not compatible
query I rowsort label-2366
SELECT - COUNT ( * ) - - 77 + - 40 * + + 75 + - + 48 - + + 39 + + 72
----
-2939

query I rowsort
SELECT DISTINCT + ( + 50 ) - - 12 AS col1
----
62

query I rowsort
SELECT DISTINCT + 12 * + - 34 * + 70
----
-28560

query I rowsort
SELECT DISTINCT - + 94 * - 97 + - - 28 - + 99 col1
----
9047

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT ( + + 75 ) * + - 12 * - COUNT( * )
----
900

skipif mysql # not compatible
query I rowsort label-2370
SELECT ( + + 75 ) * + - 12 * - COUNT ( * )
----
900

query I rowsort
SELECT 39 + - 62
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT CASE + 95 WHEN - - 21 THEN + 94 END * + + 25 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2372
SELECT CASE + 95 WHEN - - 21 THEN + 94 END * + + 25 - + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT 55 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-2373
SELECT 55 / - 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT DISTINCT + 62 DIV 59 col2
----
1

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT + 62 / 59 col2
----
1

query I rowsort
SELECT ALL 0 * - 70 AS col1
----
0

query I rowsort
SELECT 90 * + 39
----
3510

query I rowsort
SELECT ALL - 0 + + 20 col1
----
20

query I rowsort
SELECT 70 + + 29 AS col2
----
99

query I rowsort
SELECT ALL 64 * + + 84
----
5376

query I rowsort
SELECT 79 * - 19 AS col0
----
-1501

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2382
SELECT DISTINCT MIN( DISTINCT - + 83 ) + - COUNT( * ) + + 97 + - CAST( NULL AS DECIMAL ) - + CAST( NULL AS SIGNED ) * + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT MIN ( DISTINCT - + 83 ) + - COUNT ( * ) + + 97 + - CAST ( NULL AS REAL ) - + CAST ( NULL AS INTEGER ) * + 20 AS col0
----
NULL

query I rowsort
SELECT ALL 58 + 60 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT NULLIF ( - 83, 65 * - COUNT( * ) ) + - + 64 + + + COUNT( * ) AS col0
----
-146

skipif mysql # not compatible
query I rowsort label-2384
SELECT NULLIF ( - 83, 65 * - COUNT ( * ) ) + - + 64 + + + COUNT ( * ) AS col0
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT DISTINCT COUNT( * ) + + 59 * 4 * + 11
----
2597

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT COUNT ( * ) + + 59 * 4 * + 11
----
2597

onlyif mysql # aggregate syntax: 
query II rowsort label-2386
SELECT DISTINCT - MAX( 7 ) + + + COUNT( * ) AS col0, + COUNT( * )
----
-6
1

skipif mysql # not compatible
query II rowsort label-2386
SELECT DISTINCT - MAX ( 7 ) + + + COUNT ( * ) AS col0, + COUNT ( * )
----
-6
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2387
SELECT ALL + ( - + 48 ) + + + COUNT( * ) DIV + 63
----
-48

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL + ( - + 48 ) + + + COUNT ( * ) / + 63
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2388
SELECT DISTINCT CAST( + - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) + - 56
----
-57

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT CAST ( + - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) + - 56
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2389
SELECT COALESCE ( 17, ( + 16 ), + 82 * - 5 ) DIV - - 31 + - - 82
----
82

skipif mysql # not compatible
query I rowsort label-2389
SELECT COALESCE ( 17, ( + 16 ), + 82 * - 5 ) / - - 31 + - - 82
----
82

query I rowsort
SELECT 16 * - + 21 - - 51
----
-285

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL + 52 * + 98 + + + COUNT( * ) AS col2
----
5097

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + 52 * + 98 + + + COUNT ( * ) AS col2
----
5097

query I rowsort
SELECT + 90 + 23 + + + 50 * + NULLIF ( 65, - 5 * 51 ) AS col0
----
3363

query I rowsort
SELECT DISTINCT - 19 * + 27
----
-513

query I rowsort
SELECT 80 * - 30 + 2 AS col1
----
-2398

query I rowsort
SELECT ALL - ( + 18 ) - 55 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT ALL COUNT( * ) * - 15 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL COUNT ( * ) * - 15 AS col2
----
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT SUM( ALL + 64 ) * + - 78 * - CASE - 53 WHEN 28 * + 56 + 6 THEN 89 ELSE NULL END / + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT SUM ( ALL + 64 ) * + - 78 * - CASE - 53 WHEN 28 * + 56 + 6 THEN 89 ELSE NULL END / + + 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2400
SELECT + + COUNT( * ) * CAST( NULL AS SIGNED ) * 73 + + 90 + + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT + + COUNT ( * ) * CAST ( NULL AS INTEGER ) * 73 + + 90 + + 99 AS col2
----
NULL

query I rowsort
SELECT 58 * 4 * - NULLIF ( - + 47, + + 3 * 50 + + 1 + - 30 + + 12 ) AS col0
----
10904

query I rowsort
SELECT 93 + 71 AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ALL + 76 * COUNT( * ) * 50 * - 99 * + - 98 * - 21
----
-774219600

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL + 76 * COUNT ( * ) * 50 * - 99 * + - 98 * - 21
----
-774219600

query I rowsort
SELECT DISTINCT + 58 * + - 28 AS col0
----
-1624

query I rowsort
SELECT DISTINCT + 86 * 79
----
6794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2406
SELECT DISTINCT - 31 + - - 74 + - + CAST( COUNT( * ) AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT - 31 + - - 74 + - + CAST ( COUNT ( * ) AS INTEGER )
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT ALL - 13 + + COUNT( * ) * - 97 * + COUNT( * )
----
-110

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - 13 + + COUNT ( * ) * - 97 * + COUNT ( * )
----
-110

query II rowsort
SELECT 5, + 19 AS col0
----
5
19

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

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

query II rowsort
SELECT - 0, + 37 AS col2
----
0
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2412
SELECT 80 DIV - - 38 * + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2412
SELECT 80 / - - 38 * + - COUNT ( * )
----
-2

query I rowsort
SELECT 15 + 39 * - - 49 AS col2
----
1926

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL + MIN( ALL + + ( - + 35 ) ) + + 37 * + 29
----
1038

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL + MIN ( ALL + + ( - + 35 ) ) + + 37 * + 29
----
1038

query I rowsort
SELECT ALL - 14 + + 82 AS col0
----
68

query I rowsort
SELECT 8 - 70 AS col2
----
-62

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT ALL + 69 + + NULLIF ( - 53, + 65 ) DIV 21
----
67

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL + 69 + + NULLIF ( - 53, + 65 ) / 21
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT ALL + MIN( ALL 78 ) + - + 64 + 67 + - + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL + MIN ( ALL 78 ) + - + 64 + 67 + - + COUNT ( * )
----
80

query I rowsort
SELECT + 30 + + 56
----
86

query I rowsort
SELECT DISTINCT + 39 * ( - 35 )
----
-1365

query II rowsort
SELECT ALL + 28, 23 * - - 2 AS col0
----
28
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2423
SELECT DISTINCT + ( - - CASE 21 WHEN - COUNT( * ) / + 94 THEN - CASE ( - 14 ) WHEN - 33 + + COUNT( * ) * - COUNT( * ) * CAST( NULL AS SIGNED ) THEN 79 ELSE + 37 END END ) * + 94 * - + 7 * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT + ( - - CASE 21 WHEN - COUNT ( * ) / + 94 THEN - CASE ( - 14 ) WHEN - 33 + + COUNT ( * ) * - COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN 79 ELSE + 37 END END ) * + 94 * - + 7 * 63
----
NULL

query II rowsort
SELECT ALL + 54 AS col1, + 41
----
54
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2425
SELECT DISTINCT + - 89 AS col0, MIN( + - 68 ) + ( - 28 )
----
-89
-96

skipif mysql # not compatible
query II rowsort label-2425
SELECT DISTINCT + - 89 AS col0, MIN ( + - 68 ) + ( - 28 )
----
-89
-96

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2427
SELECT DISTINCT CASE + + 16 WHEN + COALESCE ( + 62, - 34 ) / + + COUNT( * ) * - ( - ( + 83 ) ) + 57 + + 51 THEN + 36 * ( - 36 ) + - 78 WHEN 40 * + - 50 THEN + 67 + + 38 * - MAX( DISTINCT + + CASE + 96 WHEN + - 86 THEN 9 END ) WHEN - 18 THEN NULL END * + 25, 33 AS col1
----
NULL
33

skipif mysql # not compatible
query II rowsort label-2427
SELECT DISTINCT CASE + + 16 WHEN + COALESCE ( + 62, - 34 ) / + + COUNT ( * ) * - ( - ( + 83 ) ) + 57 + + 51 THEN + 36 * ( - 36 ) + - 78 WHEN 40 * + - 50 THEN + 67 + + 38 * - MAX ( DISTINCT + + CASE + 96 WHEN + - 86 THEN 9 END ) WHEN - 18 THEN NULL END * + 25, 33 AS col1
----
NULL
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2428
SELECT DISTINCT - 96 DIV - - 52 col1, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-2428
SELECT DISTINCT - 96 / - - 52 col1, COUNT ( * ) AS col2
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2429
SELECT - - CAST( SUM( ALL 11 ) AS SIGNED ) DIV + NULLIF ( - + 19, + - 94 ) AS col0, - 32 + - COUNT( * )
----
0
-33

skipif mysql # not compatible
query II rowsort label-2429
SELECT - - CAST ( SUM ( ALL 11 ) AS INTEGER ) / + NULLIF ( - + 19, + - 94 ) AS col0, - 32 + - COUNT ( * )
----
0
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2430
SELECT + - 85 * - 63, - COUNT( * ) AS col1
----
5355
-1

skipif mysql # not compatible
query II rowsort label-2430
SELECT + - 85 * - 63, - COUNT ( * ) AS col1
----
5355
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT 74 * - - 7 + - 45 - 19 - 76 DIV + ( + 86 ) - + 80 + + 78 * - 51 AS col1
----
-3604

skipif mysql # not compatible
query I rowsort label-2431
SELECT 74 * - - 7 + - 45 - 19 - 76 / + ( + 86 ) - + 80 + + 78 * - 51 AS col1
----
-3604

query I rowsort
SELECT ALL 30 * - 20 AS col0
----
-600

onlyif mysql # aggregate syntax: 
query II rowsort label-2433
SELECT DISTINCT - 46 * 75 AS col1, 78 * 76 + MAX( ALL + 22 ) - 53 col0
----
-3450
5897

skipif mysql # not compatible
query II rowsort label-2433
SELECT DISTINCT - 46 * 75 AS col1, 78 * 76 + MAX ( ALL + 22 ) - 53 col0
----
-3450
5897

query I rowsort
SELECT + - 83 * + 88
----
-7304

query I rowsort
SELECT - 25 * - - 44
----
-1100

query I rowsort
SELECT 8 * + 4 - - 19
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT DISTINCT COUNT( * ) * + + 73 + - 86
----
-13

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT COUNT ( * ) * + + 73 + - 86
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2439
SELECT + CAST( + + COUNT( * ) AS SIGNED ) * - - 60 / + + MAX( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) * - - 60 / + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL ( + ( 34 ) ) * + 24 + + + 32
----
848

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT + COUNT( + + 30 ) + - - MAX( + 46 ) * + 78 - - 25
----
3614

skipif mysql # not compatible
query I rowsort label-2441
SELECT + COUNT ( + + 30 ) + - - MAX ( + 46 ) * + 78 - - 25
----
3614

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT - 59 - 35 + + 8 - CASE - + 77 WHEN 33 THEN + 30 / - - 4 * - + MAX( - 52 ) WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT - 59 - 35 + + 8 - CASE - + 77 WHEN 33 THEN + 30 / - - 4 * - + MAX ( - 52 ) WHEN - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2443
SELECT DISTINCT 0 * 60 + + COUNT( * ) DIV + 14
----
0

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT 0 * 60 + + COUNT ( * ) / + 14
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2445
SELECT - 35 - - - 10 AS col2, + ( + COUNT( * ) ) AS col1
----
-45
1

skipif mysql # not compatible
query II rowsort label-2445
SELECT - 35 - - - 10 AS col2, + ( + COUNT ( * ) ) AS col1
----
-45
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT ALL + 82 + + 71 + + CAST( NULL AS SIGNED ) + - 49 * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL + 82 + + 71 + + CAST ( NULL AS INTEGER ) + - 49 * - 46
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2447
SELECT DISTINCT 87 DIV - 13 col2
----
-6

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT 87 / - 13 col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT - 99 + + + SUM( + 92 ) * - 13 AS col1
----
-1295

skipif mysql # not compatible
query I rowsort label-2448
SELECT - 99 + + + SUM ( + 92 ) * - 13 AS col1
----
-1295

query I rowsort
SELECT ALL - 10 * - - 86 * 95 AS col1
----
-81700

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT DISTINCT + 37 - CAST( CAST( 18 AS SIGNED ) AS SIGNED ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT + 37 - CAST ( CAST ( 18 AS INTEGER ) AS INTEGER ) AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2453
SELECT + 63 * + CAST( NULL AS SIGNED ) * + + MIN( - 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT + 63 * + CAST ( NULL AS INTEGER ) * + + MIN ( - 86 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT DISTINCT + 94 - 74 * + - 64 * - + COUNT( * ) AS col2
----
-4642

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT + 94 - 74 * + - 64 * - + COUNT ( * ) AS col2
----
-4642

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - MAX( + 92 ) * - ( + MAX( ALL + + 44 ) )
----
4048

skipif mysql # not compatible
query I rowsort label-2455
SELECT - MAX ( + 92 ) * - ( + MAX ( ALL + + 44 ) )
----
4048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2456
SELECT ALL + + 29 - + 46 + - 34 DIV - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL + + 29 - + 46 + - 34 / - COUNT ( * )
----
17

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

query I rowsort
SELECT - 22 * - + 26 * - 81 - + - 58 * - 71 + - - 95 * 93 * - 62
----
-598220

query I rowsort
SELECT - ( + 55 ) - 90
----
-145

query I rowsort
SELECT DISTINCT - - 87 * - ( 93 )
----
-8091

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT - + 63 DIV + 73 * - + 94 + 77 + - + 16 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2461
SELECT - + 63 / + 73 * - + 94 + 77 + - + 16 AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT + NULLIF ( - - NULLIF ( + 94, - 84 + + 77 ), + CAST( + 27 AS SIGNED ) ) * - 69 + ( - 90 ) + 95 - - 97 + 4 AS col1
----
-6380

skipif mysql # not compatible
query I rowsort label-2462
SELECT + NULLIF ( - - NULLIF ( + 94, - 84 + + 77 ), + CAST ( + 27 AS INTEGER ) ) * - 69 + ( - 90 ) + 95 - - 97 + 4 AS col1
----
-6380

query I rowsort
SELECT + 49 * + 60
----
2940

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT + 20 DIV + 95 + - 92 + - 86 AS col2
----
-178

skipif mysql # not compatible
query I rowsort label-2464
SELECT + 20 / + 95 + - 92 + - 86 AS col2
----
-178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2465
SELECT ALL + 17 * - MAX( CAST( NULL AS SIGNED ) ) / + SUM( + - 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL + 17 * - MAX ( CAST ( NULL AS INTEGER ) ) / + SUM ( + - 27 ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2467
SELECT ALL - 34 DIV COUNT( * ) + - 91 + + + 36
----
-89

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL - 34 / COUNT ( * ) + - 91 + + + 36
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT + 16 * - - 76 + + 8 + 51 DIV + 20
----
1226

skipif mysql # not compatible
query I rowsort label-2468
SELECT + 16 * - - 76 + + 8 + 51 / + 20
----
1226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2469
SELECT ALL + SUM( + 38 ) DIV - + 31 + 36 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL + SUM ( + 38 ) / - + 31 + 36 AS col0
----
35

query I rowsort
SELECT + ( + 73 ) + - 39 col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2471
SELECT ALL 9 DIV - COUNT( * ) + - 42 + + 78 + - 75 * 28 AS col0
----
-2073

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL 9 / - COUNT ( * ) + - 42 + + 78 + - 75 * 28 AS col0
----
-2073

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT + COUNT( - 95 ) + + MIN( ALL 3 ) + 28 * - - ( + - 5 )
----
-136

skipif mysql # not compatible
query I rowsort label-2472
SELECT + COUNT ( - 95 ) + + MIN ( ALL 3 ) + 28 * - - ( + - 5 )
----
-136

query I rowsort
SELECT - 77 * 10 * + - 6 * - + 74 AS col2
----
-341880

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT ALL 89 DIV - 45 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL 89 / - 45 col0
----
-1

query I rowsort
SELECT - 46 * - 43 + - 79 * + ( - 96 )
----
9562

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2476
SELECT + COUNT( * ) DIV - - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2476
SELECT + COUNT ( * ) / - - 80 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT 50 * - - 95 + + MAX( - 10 )
----
4740

skipif mysql # not compatible
query I rowsort label-2477
SELECT 50 * - - 95 + + MAX ( - 10 )
----
4740

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL - 35 * + COUNT( * ) + - 17
----
-52

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL - 35 * + COUNT ( * ) + - 17
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT + COUNT( * ) * + COALESCE ( - 51, + - 40 * 18 + + - 42 + + - 32 + - + ( - COUNT( * ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-2479
SELECT + COUNT ( * ) * + COALESCE ( - 51, + - 40 * 18 + + - 42 + + - 32 + - + ( - COUNT ( * ) ) )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2480
SELECT ALL 35 * COUNT( * ) DIV + - 54
----
0

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL 35 * COUNT ( * ) / + - 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT COUNT( * ) * CASE 80 WHEN - ( + 26 ) + + COUNT( * ) THEN - + 24 END + 33 + + - 45 + - + 1 * 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT COUNT ( * ) * CASE 80 WHEN - ( + 26 ) + + COUNT ( * ) THEN - + 24 END + 33 + + - 45 + - + 1 * 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT NULLIF ( - 58, - 46 ) + - 66 + - COUNT( 39 ) + + 0 AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-2482
SELECT NULLIF ( - 58, - 46 ) + - 66 + - COUNT ( 39 ) + + 0 AS col1
----
-125

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

skipif mysql # not compatible
query I rowsort label-2483
SELECT 18 * + COUNT ( * ) / - + 38
----
0

query II rowsort
SELECT DISTINCT 59 col0, 38
----
59
38

onlyif mysql # aggregate syntax: 
query II rowsort label-2485
SELECT 38 AS col2, + 50 * + COUNT( * )
----
38
50

skipif mysql # not compatible
query II rowsort label-2485
SELECT 38 AS col2, + 50 * + COUNT ( * )
----
38
50

query I rowsort
SELECT + 26 + - - ( + - ( + 59 ) )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2487
SELECT ALL - 90 * + + 50 * - CAST( + - 83 AS SIGNED )
----
-373500

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL - 90 * + + 50 * - CAST ( + - 83 AS INTEGER )
----
-373500

query I rowsort
SELECT + 70 * + - 17 AS col1
----
-1190

query I rowsort
SELECT 32 + + 42 * - 91
----
-3790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2490
SELECT DISTINCT CAST( NULL AS SIGNED ) / + MAX( DISTINCT + - 98 ) * + - 71 / - 43 + - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + MAX ( DISTINCT + - 98 ) * + - 71 / - 43 + - 9 AS col2
----
NULL

query II rowsort
SELECT ALL - 34, 42 AS col0
----
-34
42

query I rowsort
SELECT DISTINCT - 40 * - 49 AS col2
----
1960

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

skipif mysql # not compatible
query I rowsort label-2493
SELECT - + MIN ( + 76 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2494
SELECT NULLIF ( - 1, 61 - + - SUM( DISTINCT - + 65 ) ) + - 24 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2494
SELECT NULLIF ( - 1, 61 - + - SUM ( DISTINCT - + 65 ) ) + - 24 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 3 * + 78
----
234

query I rowsort
SELECT + 42 + 38 * + 87 AS col1
----
3348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2497
SELECT ALL CASE - 44 WHEN - CASE CAST( NULL AS SIGNED ) WHEN - 7 THEN 6 + + + 59 END * 66 / - - 29 + COUNT( * ) * + 20 THEN NULL ELSE - 39 END
----
-39

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL CASE - 44 WHEN - CASE CAST ( NULL AS INTEGER ) WHEN - 7 THEN 6 + + + 59 END * 66 / - - 29 + COUNT ( * ) * + 20 THEN NULL ELSE - 39 END
----
-39

query I rowsort
SELECT ( - 45 ) * ( + - 70 )
----
3150

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

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

query I rowsort
SELECT ALL - - 9 + - 27 * - - 69
----
-1854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2501
SELECT DISTINCT + 99 + CASE + CAST( - + 1 AS SIGNED ) WHEN + + 74 + + CAST( + 65 AS SIGNED ) THEN NULL WHEN 25 THEN 73 + 22 END + COALESCE ( + - COUNT( * ), - COUNT( * ) * MAX( DISTINCT + 54 ) + - MIN( + 23 ), - + 39 ) + - ( + + 71 ) + + ( + NULLIF ( - 9, - + 73 ) ) * 2 + 96 + - 81, CAST( + 74 AS SIGNED ) * - 69 AS col2
----
NULL
-5106

skipif mysql # not compatible
query II rowsort label-2501
SELECT DISTINCT + 99 + CASE + CAST ( - + 1 AS INTEGER ) WHEN + + 74 + + CAST ( + 65 AS INTEGER ) THEN NULL WHEN 25 THEN 73 + 22 END + COALESCE ( + - COUNT ( * ), - COUNT ( * ) * MAX ( DISTINCT + 54 ) + - MIN ( + 23 ), - + 39 ) + - ( + + 71 ) + + ( + NULLIF ( - 9, - + 73 ) ) * 2 + 96 + - 81, CAST ( + 74 AS INTEGER ) * - 69 AS col2
----
NULL
-5106

query I rowsort
SELECT ALL - 45 + + - 79 AS col2
----
-124

query I rowsort
SELECT 64 - 93 * - 0
----
64

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

query I rowsort
SELECT ALL - 54 * 24 AS col2
----
-1296

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

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

query I rowsort
SELECT 9 * + 16 * + 90 AS col1
----
12960

onlyif mysql # aggregate syntax: 
query II rowsort label-2508
SELECT + 67 * + ( - - 50 ) + + COUNT( * ) AS col2, - 10 * ( + + COALESCE ( + 71, - - COUNT( * ) * - 37 ) ) * 40
----
3351
-28400

skipif mysql # not compatible
query II rowsort label-2508
SELECT + 67 * + ( - - 50 ) + + COUNT ( * ) AS col2, - 10 * ( + + COALESCE ( + 71, - - COUNT ( * ) * - 37 ) ) * 40
----
3351
-28400

query II rowsort
SELECT DISTINCT - 27 * - 26 col2, - 81 - + 1 + - 48
----
702
-130

query I rowsort
SELECT ALL - 55 * - 86 AS col0
----
4730

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

skipif mysql # not compatible
query I rowsort label-2511
SELECT 99 - 52 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT - COUNT( * ) * + 57 + - 17 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2512
SELECT - COUNT ( * ) * + 57 + - 17 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT 98 + - + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-2513
SELECT 98 + - + COUNT ( * ) AS col2
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2514
SELECT ALL COALESCE ( - + COUNT( * ), + MAX( + 36 ) + 60 - + 61 ) DIV - + 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL COALESCE ( - + COUNT ( * ), + MAX ( + 36 ) + 60 - + 61 ) / - + 62 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT NULLIF ( - - 89, - - COUNT( * ) - - 22 + + 23 ) - - + 95 AS col2
----
184

skipif mysql # not compatible
query I rowsort label-2515
SELECT NULLIF ( - - 89, - - COUNT ( * ) - - 22 + + 23 ) - - + 95 AS col2
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT COUNT( * ) * - - CASE - + 59 WHEN - + 73 THEN + 72 ELSE - - ( - 98 ) END AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-2516
SELECT COUNT ( * ) * - - CASE - + 59 WHEN - + 73 THEN + 72 ELSE - - ( - 98 ) END AS col1
----
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-2517
SELECT DISTINCT ( + + 9 ) * ( + 9 ) AS col2, 23 DIV - + 95 AS col2
----
81
0

skipif mysql # not compatible
query II rowsort label-2517
SELECT DISTINCT ( + + 9 ) * ( + 9 ) AS col2, 23 / - + 95 AS col2
----
81
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2518
SELECT ALL + + 58 DIV + + ( + 58 ) * + COUNT( DISTINCT + 31 )
----
1

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + + 58 / + + ( + 58 ) * + COUNT ( DISTINCT + 31 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT 0 * + + COUNT( DISTINCT - + 47 )
----
0

skipif mysql # not compatible
query I rowsort label-2519
SELECT 0 * + + COUNT ( DISTINCT - + 47 )
----
0

query I rowsort
SELECT - 81 + + + 22 * 1
----
-59

query I rowsort
SELECT DISTINCT 55 * - NULLIF ( + 35, + 32 / + - 38 ) + 90 AS col2
----
-1835

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT COUNT( ALL 62 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2522
SELECT COUNT ( ALL 62 ) AS col0
----
1

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

query I rowsort
SELECT 26 + 76 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT - 59 + + 68 + - 90 / + - CASE + + 4 WHEN + - ( - 54 ) / - COUNT( * ) * - 43 * - 49 THEN - 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT - 59 + + 68 + - 90 / + - CASE + + 4 WHEN + - ( - 54 ) / - COUNT ( * ) * - 43 * - 49 THEN - 41 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT DISTINCT - COUNT( * ) + + 52 * 79 * + + 73 AS col0
----
299883

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT - COUNT ( * ) + + 52 * 79 * + + 73 AS col0
----
299883

query I rowsort
SELECT DISTINCT + - 20 * + 88
----
-1760

query II rowsort
SELECT + 6 + + + 6 AS col1, 75
----
12
75

query I rowsort
SELECT ALL + - 44 + - + 59 AS col2
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT DISTINCT 85 * COUNT( * ) * - 85
----
-7225

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT 85 * COUNT ( * ) * - 85
----
-7225

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL ( - + COUNT( * ) ) * - 44 + CASE + 0 WHEN + 68 THEN - + 96 ELSE NULL END + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL ( - + COUNT ( * ) ) * - 44 + CASE + 0 WHEN + 68 THEN - + 96 ELSE NULL END + 40 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2532
SELECT CAST( NULL AS SIGNED ) * COALESCE ( 71, SUM( DISTINCT 45 ) ) * - - 97 - - 54 + + 69 + + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2532
SELECT CAST ( NULL AS INTEGER ) * COALESCE ( 71, SUM ( DISTINCT 45 ) ) * - - 97 - - 54 + + 69 + + - 6
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2533
SELECT MAX ( ALL - 45 )
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-2534
SELECT 86 DIV + 91 + 26 AS col2, 12
----
26
12

skipif mysql # not compatible
query II rowsort label-2534
SELECT 86 / + 91 + 26 AS col2, 12
----
26
12

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT DISTINCT + 78 DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + 78 / - 97 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2537
SELECT 87 DIV - COUNT( * ) + - NULLIF ( - 9, 38 * AVG ( - 8 ) + - 14 ) + - + 35 AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-2537
SELECT 87 / - COUNT ( * ) + - NULLIF ( - 9, 38 * AVG ( - 8 ) + - 14 ) + - + 35 AS col1
----
-113

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2539
SELECT DISTINCT - CASE 1 WHEN - + COUNT( * ) THEN + ( - 9 ) / + 9 * + COUNT( * ) * - 22 * 31 + - NULLIF ( - + 5, + + 71 + - - 92 ) + 81 END * 97 AS col0, + 85
----
NULL
85

skipif mysql # not compatible
query II rowsort label-2539
SELECT DISTINCT - CASE 1 WHEN - + COUNT ( * ) THEN + ( - 9 ) / + 9 * + COUNT ( * ) * - 22 * 31 + - NULLIF ( - + 5, + + 71 + - - 92 ) + 81 END * 97 AS col0, + 85
----
NULL
85

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2541
SELECT + 51 col2, - SUM( ALL + 27 ) AS col1
----
51
-27

skipif mysql # not compatible
query II rowsort label-2541
SELECT + 51 col2, - SUM ( ALL + 27 ) AS col1
----
51
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2542
SELECT - 70 * + CAST( NULL AS SIGNED ) * - NULLIF ( + - 45, - 82 ) AS col2, - 19 * - 37 * 46 + - 25 + - COUNT( * ) AS col1
----
NULL
32312

skipif mysql # not compatible
query II rowsort label-2542
SELECT - 70 * + CAST ( NULL AS INTEGER ) * - NULLIF ( + - 45, - 82 ) AS col2, - 19 * - 37 * 46 + - 25 + - COUNT ( * ) AS col1
----
NULL
32312

query I rowsort
SELECT DISTINCT + ( - 58 ) * + 28 AS col0
----
-1624

onlyif mysql # aggregate syntax: 
query II rowsort label-2544
SELECT COUNT( * ) AS col1, 92 AS col0
----
1
92

skipif mysql # not compatible
query II rowsort label-2544
SELECT COUNT ( * ) AS col1, 92 AS col0
----
1
92

query I rowsort
SELECT + 6 * - 19 + - NULLIF ( 54, + - 98 + + ( ( - 10 ) ) + 37 ) AS col2
----
-168

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

skipif mysql # not compatible
query I rowsort label-2546
SELECT - 34 * - - COUNT ( * )
----
-34

query II rowsort
SELECT ALL + 62 AS col1, - 41 AS col1
----
62
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT + COUNT( * ) * + 19 * + - COALESCE ( + 76, + - COUNT( * ) ) * COUNT( * )
----
-1444

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT + COUNT ( * ) * + 19 * + - COALESCE ( + 76, + - COUNT ( * ) ) * COUNT ( * )
----
-1444

query I rowsort
SELECT ALL + COALESCE ( + 15, + 59 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT - MAX( ALL + - 31 ) * + 17 - + 20 + + 96 AS col0
----
603

skipif mysql # not compatible
query I rowsort label-2550
SELECT - MAX ( ALL + - 31 ) * + 17 - + 20 + + 96 AS col0
----
603

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT + MAX( DISTINCT + + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-2551
SELECT + MAX ( DISTINCT + + 93 ) AS col2
----
93

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

query I rowsort
SELECT + COALESCE ( + 9, 3 + 52 )
----
9

query I rowsort
SELECT ALL - 71 + + + 78 * 37 AS col1
----
2815

query I rowsort
SELECT ALL + 12 + - ( 91 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT - - 7 - + + CASE + + COUNT( * ) WHEN - - 96 THEN + + 28 WHEN + + 60 * - 64 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT - - 7 - + + CASE + + COUNT ( * ) WHEN - - 96 THEN + + 28 WHEN + + 60 * - 64 THEN NULL END
----
NULL

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

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

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

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

query I rowsort
SELECT + 15 * - 35 AS col2
----
-525

query I rowsort
SELECT ALL 85 * 29 AS col2
----
2465

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

query I rowsort
SELECT ALL + ( COALESCE ( + 74, + + 37 + 66 + - 72 * - - 36 ) ) + - 72 + 62 * - ( - 55 ) col0
----
3412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2563
SELECT DISTINCT + 19 + - 71 + CAST( 81 AS SIGNED ) * - COUNT( * )
----
-133

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT + 19 + - 71 + CAST ( 81 AS INTEGER ) * - COUNT ( * )
----
-133

query I rowsort
SELECT DISTINCT + - 1 + - - 47 * 85 * + 67 + + 69 - - ( - + 49 ) AS col2
----
267684

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2566
SELECT ALL 66 - - 64 * CAST( NULL AS DECIMAL ) / + 87 * - 40 * CASE - - 16 WHEN + + 82 THEN NULL ELSE - 10 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL 66 - - 64 * CAST ( NULL AS REAL ) / + 87 * - 40 * CASE - - 16 WHEN + + 82 THEN NULL ELSE - 10 END col2
----
NULL

query I rowsort
SELECT + 36 + + - 65 AS col0
----
-29

query I rowsort
SELECT + ( - 48 ) * + ( + 73 ) - + 95
----
-3599

query II rowsort
SELECT ALL + 63, + COALESCE ( - NULLIF ( + 42, - 19 ), - 69 * + + 78 + - 24 ) AS col2
----
63
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL ( + 43 ) * - - 34 * COUNT( * )
----
1462

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL ( + 43 ) * - - 34 * COUNT ( * )
----
1462

onlyif mysql # DIV for integer division: 
query I rowsort label-2572
SELECT ALL 84 DIV 42 - - + 38
----
40

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL 84 / 42 - - + 38
----
40

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - 53 * SUM( ALL - + 95 ) AS col0
----
5035

skipif mysql # not compatible
query I rowsort label-2575
SELECT - 53 * SUM ( ALL - + 95 ) AS col0
----
5035

query I rowsort
SELECT ALL ( 46 ) * 71 AS col0
----
3266

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2577
SELECT 92 * - 28 + 82 - + 54 * + + 84 + 40 * 11 AS col2, CAST( NULL AS SIGNED ) + - - 80 * + ( + + 51 )
----
-6590
NULL

skipif mysql # not compatible
query II rowsort label-2577
SELECT 92 * - 28 + 82 - + 54 * + + 84 + 40 * 11 AS col2, CAST ( NULL AS INTEGER ) + - - 80 * + ( + + 51 )
----
-6590
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT 29 DIV - 13 + + 63 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2578
SELECT 29 / - 13 + + 63 AS col0
----
61

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

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

query II rowsort
SELECT DISTINCT + 95, + 61 AS col2
----
95
61

query I rowsort
SELECT ALL 57 * - 28 + - 91 AS col2
----
-1687

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2582
SELECT - 45 / - 32 + CASE + 42 WHEN + COALESCE ( - - ( - 61 ), + COALESCE ( - CAST( NULL AS DECIMAL ), + + COUNT( * ) + + 26 ) + - - 59 ) THEN NULL WHEN + CAST( - 47 AS SIGNED ) + - + 56 + - 1 - 5 / - 10 THEN NULL WHEN + 41 - - 70 THEN - - 15 ELSE NULL END + ( 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT - 45 / - 32 + CASE + 42 WHEN + COALESCE ( - - ( - 61 ), + COALESCE ( - CAST ( NULL AS REAL ), + + COUNT ( * ) + + 26 ) + - - 59 ) THEN NULL WHEN + CAST ( - 47 AS INTEGER ) + - + 56 + - 1 - 5 / - 10 THEN NULL WHEN + 41 - - 70 THEN - - 15 ELSE NULL END + ( 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT DISTINCT - COUNT( * ) * + + 57 + SUM( ALL + 63 )
----
6

skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT - COUNT ( * ) * + + 57 + SUM ( ALL + 63 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT ALL + CAST( NULL AS SIGNED ) * + 78 * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL + CAST ( NULL AS INTEGER ) * + 78 * + 49
----
NULL

query II rowsort
SELECT + + 76 AS col1, + 8
----
76
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ( - SUM( ALL - - 6 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-2586
SELECT ( - SUM ( ALL - - 6 ) )
----
-6

query I rowsort
SELECT - 86 - - ( + + ( 52 ) ) * 21 * - 89 AS col2
----
-97274

query I rowsort
SELECT ALL + + 78 * + 18 * + + 80
----
112320

onlyif mysql # aggregate syntax: 
query II rowsort label-2589
SELECT 50 AS col1, + 90 - + - COUNT( * ) AS col1
----
50
91

skipif mysql # not compatible
query II rowsort label-2589
SELECT 50 AS col1, + 90 - + - COUNT ( * ) AS col1
----
50
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT - + COALESCE ( + 36, + + 19, + COUNT( * ) ) * - 5
----
180

skipif mysql # not compatible
query I rowsort label-2590
SELECT - + COALESCE ( + 36, + + 19, + COUNT ( * ) ) * - 5
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2591
SELECT - 99 - + CASE - + COUNT( * ) WHEN 10 + 11 THEN 5 - 91 WHEN - 74 / - - CAST( NULL AS SIGNED ) / 19 + - + 60 * + 47 + SUM( + + 16 ) THEN COUNT( DISTINCT - ( + + CAST( 94 AS SIGNED ) ) ) / - 9 END / 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2591
SELECT - 99 - + CASE - + COUNT ( * ) WHEN 10 + 11 THEN 5 - 91 WHEN - 74 / - - CAST ( NULL AS INTEGER ) / 19 + - + 60 * + 47 + SUM ( + + 16 ) THEN COUNT ( DISTINCT - ( + + CAST ( 94 AS INTEGER ) ) ) / - 9 END / 14
----
NULL

query I rowsort
SELECT DISTINCT + 17 * - 3 AS col1
----
-51

query I rowsort
SELECT ALL + 82 * - + 92 + + 76 AS col2
----
-7468

query I rowsort
SELECT ALL + - 86 * + 8 + + 12 AS col2
----
-676

query I rowsort
SELECT - 61 * + 71 * - 35 AS col1
----
151585

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2598
SELECT ALL + NULLIF ( - - 84, + ( + 44 ) ), + MIN( - 37 ) * + - 78 * + - 2 AS col1
----
84
-5772

skipif mysql # not compatible
query II rowsort label-2598
SELECT ALL + NULLIF ( - - 84, + ( + 44 ) ), + MIN ( - 37 ) * + - 78 * + - 2 AS col1
----
84
-5772

query I rowsort
SELECT ALL + - CASE 4 WHEN + 97 * - 6 THEN + + ( 64 ) END + ( + + 41 ) * - 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2600
SELECT - + 25 AS col1, - 2 + - + MIN( - - 29 )
----
-25
-31

skipif mysql # not compatible
query II rowsort label-2600
SELECT - + 25 AS col1, - 2 + - + MIN ( - - 29 )
----
-25
-31

query I rowsort
SELECT - 28 + 25
----
-3

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

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT - SUM ( - 3 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2603
SELECT - NULLIF ( + 35, 49 - MIN( + 56 ) ) + - + 74 col1, COUNT( * ) * - ( + MIN( DISTINCT + ( - - 69 ) ) ) * - MAX( - CAST( - 70 AS SIGNED ) ) * + 12 AS col2
----
-109
57960

skipif mysql # not compatible
query II rowsort label-2603
SELECT - NULLIF ( + 35, 49 - MIN ( + 56 ) ) + - + 74 col1, COUNT ( * ) * - ( + MIN ( DISTINCT + ( - - 69 ) ) ) * - MAX ( - CAST ( - 70 AS INTEGER ) ) * + 12 AS col2
----
-109
57960

query I rowsort
SELECT - + NULLIF ( + + 47, 15 ) col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT + COUNT( * ) - + + 18
----
-17

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT + COUNT ( * ) - + + 18
----
-17

query I rowsort
SELECT - 55 + - 71
----
-126

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

skipif mysql # not compatible
query I rowsort label-2607
SELECT - COUNT ( - - CAST ( - 86 AS INTEGER ) ) col2
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2609
SELECT 2 DIV - - 11 DIV COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2609
SELECT 2 / - - 11 / COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2610
SELECT ALL - SUM( + 77 ) * - COUNT( * ) DIV + + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL - SUM ( + 77 ) * - COUNT ( * ) / + + 94 AS col2
----
0

query I rowsort
SELECT DISTINCT - 78 * 15 * 92 AS col0
----
-107640

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2613
SELECT ( 94 ) DIV COUNT( DISTINCT - 8 ) + + 91 AS col1
----
185

skipif mysql # not compatible
query I rowsort label-2613
SELECT ( 94 ) / COUNT ( DISTINCT - 8 ) + + 91 AS col1
----
185

query I rowsort
SELECT 87 * 51 + + 29 AS col2
----
4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT 27 * - + CAST( 79 AS SIGNED ) * + 91
----
-194103

skipif mysql # not compatible
query I rowsort label-2615
SELECT 27 * - + CAST ( 79 AS INTEGER ) * + 91
----
-194103

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT ALL - 34 + + + COUNT( * ) * 13 * + + 84
----
1058

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL - 34 + + + COUNT ( * ) * 13 * + + 84
----
1058

onlyif mysql # aggregate syntax: 
query II rowsort label-2617
SELECT 52 + - COUNT( * ) * + + 19 + 23 + - - COUNT( * ), 15 - 93 AS col1
----
57
-78

skipif mysql # not compatible
query II rowsort label-2617
SELECT 52 + - COUNT ( * ) * + + 19 + 23 + - - COUNT ( * ), 15 - 93 AS col1
----
57
-78

query I rowsort
SELECT ALL 69 + - ( + + 50 )
----
19

query I rowsort
SELECT ALL 17 + + + 86 * - 10 * + - 93
----
79997

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT DISTINCT + 12 + + - ( + ( + + 81 ) ) / CASE + 84 WHEN + CAST( NULL AS SIGNED ) * - 31 * 45 THEN + ( 97 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT + 12 + + - ( + ( + + 81 ) ) / CASE + 84 WHEN + CAST ( NULL AS INTEGER ) * - 31 * 45 THEN + ( 97 ) ELSE NULL END AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2622
SELECT ( - 33 ) * + + CAST( + NULLIF ( - NULLIF ( 64, + 78 - - ( - 13 ) ), + COUNT( + COALESCE ( - - 78, - 22 ) ) - CAST( + - 67 AS DECIMAL ) * - 61 / + - 55 ) AS SIGNED ) + NULLIF ( - 4, + 68 + - + CASE 64 WHEN - COUNT( * ) THEN - 59 - 17 * - - 24 + + + 41 END - - + 84 ) * 72
----
1824

skipif mysql # not compatible
query I rowsort label-2622
SELECT ( - 33 ) * + + CAST ( + NULLIF ( - NULLIF ( 64, + 78 - - ( - 13 ) ), + COUNT ( + COALESCE ( - - 78, - 22 ) ) - CAST ( + - 67 AS REAL ) * - 61 / + - 55 ) AS INTEGER ) + NULLIF ( - 4, + 68 + - + CASE 64 WHEN - COUNT ( * ) THEN - 59 - 17 * - - 24 + + + 41 END - - + 84 ) * 72
----
1824

query I rowsort
SELECT + 83 + - ( - 68 )
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT MIN( DISTINCT + 68 ) * + 71 + 25
----
4853

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT MIN ( DISTINCT + 68 ) * + 71 + 25
----
4853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT ALL - 30 + + + COALESCE ( - + 77, + + 59 * 62 + - + 55, - 98 * - CAST( 90 AS SIGNED ) ) AS col0
----
-107

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL - 30 + + + COALESCE ( - + 77, + + 59 * 62 + - + 55, - 98 * - CAST ( 90 AS INTEGER ) ) AS col0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT + 36 * 31 * + ( + COUNT( * ) ) + - 71 * + 3 * - 57
----
13257

skipif mysql # not compatible
query I rowsort label-2626
SELECT + 36 * 31 * + ( + COUNT ( * ) ) + - 71 * + 3 * - 57
----
13257

query I rowsort
SELECT DISTINCT - + 11 col0
----
-11

query I rowsort
SELECT + 42 * + + 84 * - 97 + - 62
----
-342278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2629
SELECT 62 DIV + - ( CAST( - + 76 AS SIGNED ) ) + - + 89 + 69 * SUM( ALL + + 72 ) DIV 95 + + COUNT( - + 72 ) * ( - 15 )
----
-52

skipif mysql # not compatible
query I rowsort label-2629
SELECT 62 / + - ( CAST ( - + 76 AS INTEGER ) ) + - + 89 + 69 * SUM ( ALL + + 72 ) / 95 + + COUNT ( - + 72 ) * ( - 15 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT ALL 33 - - 8 * - COUNT( * ) col1
----
25

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL 33 - - 8 * - COUNT ( * ) col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2631
SELECT + COUNT( - 31 ) col1, 49 + ( + - CASE - MAX( + 90 ) WHEN + + 57 + + 54 + + 69 THEN NULL WHEN + 8 + + + 2 * CASE 44 WHEN + + 28 + - - 62 THEN + + CAST( 49 AS SIGNED ) END * - 23 THEN - - 4 ELSE NULL END )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2631
SELECT + COUNT ( - 31 ) col1, 49 + ( + - CASE - MAX ( + 90 ) WHEN + + 57 + + 54 + + 69 THEN NULL WHEN + 8 + + + 2 * CASE 44 WHEN + + 28 + - - 62 THEN + + CAST ( 49 AS INTEGER ) END * - 23 THEN - - 4 ELSE NULL END )
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2632
SELECT ALL MAX( ALL 67 ) AS col2, 89 - + - 71 + + - 27 + 34 - + CAST( - + 63 AS SIGNED ) AS col1
----
67
230

skipif mysql # not compatible
query II rowsort label-2632
SELECT ALL MAX ( ALL 67 ) AS col2, 89 - + - 71 + + - 27 + 34 - + CAST ( - + 63 AS INTEGER ) AS col1
----
67
230

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT DISTINCT - - COUNT( * ) * + 69 + - 62 * + 99 col0
----
-6069

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT - - COUNT ( * ) * + 69 + - 62 * + 99 col0
----
-6069

query II rowsort
SELECT + 52 * 58 + 76 - - - 23 * 80 * + 95 * + 87, + 27 + + + 93 * 80 AS col2
----
-15204508
7467

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL - - 58 * - COUNT( * ) * 52
----
-3016

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL - - 58 * - COUNT ( * ) * 52
----
-3016

query II rowsort
SELECT ALL - ( + 98 ) col2, 33 + - 36 AS col2
----
-98
-3

query I rowsort
SELECT DISTINCT - 9 * - COALESCE ( + NULLIF ( - ( - 19 ), + 45 ), + + 9 + + - 68 ) AS col2
----
171

query I rowsort
SELECT 12 - - 88 AS col2
----
100

query II rowsort
SELECT ALL 25 AS col0, NULLIF ( - - ( + 0 ), + 26 + 94 ) AS col1
----
25
0

query I rowsort
SELECT 18 * - - 68 * 84 AS col1
----
102816

onlyif mysql # DIV for integer division: 
query II rowsort label-2641
SELECT ALL 27 col1, + 94 DIV - - 88
----
27
1

skipif mysql # not compatible
query II rowsort label-2641
SELECT ALL 27 col1, + 94 / - - 88
----
27
1

query II rowsort
SELECT DISTINCT 84 AS col2, - 32 * - 75 AS col1
----
84
2400

query I rowsort
SELECT 8 * + 86 AS col0
----
688

query I rowsort
SELECT DISTINCT - ( - - 70 ) + 37 - - - 79 + - + 43 + - 74 AS col2
----
-229

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL COUNT( - 60 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL COUNT ( - 60 ) col2
----
1

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

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

query I rowsort
SELECT DISTINCT 23 * 34
----
782

onlyif mysql # aggregate syntax: 
query II rowsort label-2648
SELECT DISTINCT + 47 + + 34 * - 15 AS col0, + 38 + + + COUNT( * ) AS col1
----
-463
39

skipif mysql # not compatible
query II rowsort label-2648
SELECT DISTINCT + 47 + + 34 * - 15 AS col0, + 38 + + + COUNT ( * ) AS col1
----
-463
39

query II rowsort
SELECT ALL - 14 AS col0, 80
----
-14
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2650
SELECT SUM( ALL - 30 ) DIV + - SUM( ALL - 19 ) + + 85
----
84

skipif mysql # not compatible
query I rowsort label-2650
SELECT SUM ( ALL - 30 ) / + - SUM ( ALL - 19 ) + + 85
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT ALL + ( + + 63 ) + + 81 + COUNT( * ) * + 84
----
228

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL + ( + + 63 ) + + 81 + COUNT ( * ) * + 84
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2652
SELECT + 60 AS col2, + 85 + + COALESCE ( + 47, + 47 * + CAST( + 85 AS SIGNED ) ) AS col1
----
60
132

skipif mysql # not compatible
query II rowsort label-2652
SELECT + 60 AS col2, + 85 + + COALESCE ( + 47, + 47 * + CAST ( + 85 AS INTEGER ) ) AS col1
----
60
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT - 15 * MIN( ALL 40 ) * + 68 + + + 76
----
-40724

skipif mysql # not compatible
query I rowsort label-2653
SELECT - 15 * MIN ( ALL 40 ) * + 68 + + + 76
----
-40724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2654
SELECT ( - COUNT( * ) ) DIV + 72 + 65 * - COUNT( * ) - - CAST( 81 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-2654
SELECT ( - COUNT ( * ) ) / + 72 + 65 * - COUNT ( * ) - - CAST ( 81 AS INTEGER )
----
16

query I rowsort
SELECT ALL - 34 + NULLIF ( - + 56, + 26 ) AS col1
----
-90

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

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

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

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

query I rowsort
SELECT + 40 * 62 + - CASE + - 63 WHEN - 94 THEN NULL WHEN - - 6 THEN + 19 ELSE NULL END * - 9 * + 97 * + 70 col1
----
NULL

query I rowsort
SELECT ALL 17 - 91
----
-74

query II rowsort
SELECT + + 62 AS col0, + 84 * ( - - 21 ) AS col1
----
62
1764

onlyif mysql # aggregate syntax: 
query II rowsort label-2661
SELECT ALL + 7 * + 39 * - COUNT( * ) * - 98 + 64 + + 21 AS col0, - SUM( ALL + 22 ) AS col0
----
26839
-22

skipif mysql # not compatible
query II rowsort label-2661
SELECT ALL + 7 * + 39 * - COUNT ( * ) * - 98 + 64 + + 21 AS col0, - SUM ( ALL + 22 ) AS col0
----
26839
-22

query I rowsort
SELECT 10 + - ( 31 ) + - 94
----
-115

query I rowsort
SELECT ALL 6 * 32 AS col1
----
192

query I rowsort
SELECT + 50 * - - 89 + + - 46
----
4404

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

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT CAST ( + + 86 AS INTEGER ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2666
SELECT + CAST( + + 32 AS SIGNED ) + - 2 DIV - + 87 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-2666
SELECT + CAST ( + + 32 AS INTEGER ) + - 2 / - + 87 AS col1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2667
SELECT ALL + ( - - MIN( + 79 ) ) * + 39, 69 AS col1
----
3081
69

skipif mysql # not compatible
query II rowsort label-2667
SELECT ALL + ( - - MIN ( + 79 ) ) * + 39, 69 AS col1
----
3081
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2668
SELECT ALL SUM( + 54 ) AS col0, 67 / - CAST( NULL AS DECIMAL )
----
54
NULL

skipif mysql # not compatible
query II rowsort label-2668
SELECT ALL SUM ( + 54 ) AS col0, 67 / - CAST ( NULL AS REAL )
----
54
NULL

query I rowsort
SELECT - 6 + - 29
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-2670
SELECT ALL - 60 + 78 + NULLIF ( + - 47, + + 96 * 41 ) * 41 DIV + 86
----
-4

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL - 60 + 78 + NULLIF ( + - 47, + + 96 * 41 ) * 41 / + 86
----
-4

query I rowsort
SELECT + 35 + + 3 + CASE 85 WHEN + - AVG ( DISTINCT - 82 ) + 90 + + 32 * - 77 / + 53 * - 99 THEN NULL WHEN 45 THEN + + ( 52 ) * - 6 ELSE 2 END AS col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2672
SELECT ALL NULLIF ( - - 30, + MIN( 96 ) ) + + ( + 12 ) + + - 66 AS col1, - 80 AS col1
----
-24
-80

skipif mysql # not compatible
query II rowsort label-2672
SELECT ALL NULLIF ( - - 30, + MIN ( 96 ) ) + + ( + 12 ) + + - 66 AS col1, - 80 AS col1
----
-24
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2673
SELECT - COUNT( * ) + - + 92 + - 11 + - 13 - 40 + + 25 * - CAST( NULL AS SIGNED ) + - 48 * + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2673
SELECT - COUNT ( * ) + - + 92 + - 11 + - 13 - 40 + + 25 * - CAST ( NULL AS INTEGER ) + - 48 * + 43 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2674
SELECT DISTINCT CASE 11 WHEN 1 * + 1 / - + NULLIF ( + 17, + CAST( - 49 AS SIGNED ) ) * 56 THEN - 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT CASE 11 WHEN 1 * + 1 / - + NULLIF ( + 17, + CAST ( - 49 AS INTEGER ) ) * 56 THEN - 41 END
----
NULL

query I rowsort
SELECT ALL - 34 + + 18 AS col2
----
-16

query II rowsort
SELECT - 64 + - + 53 AS col1, - 96 AS col1
----
-117
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT - COUNT( * ) + - 42 * CASE AVG ( + 18 ) WHEN - 79 THEN 33 + + + COUNT( * ) ELSE NULL END / + ( + 69 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT - COUNT ( * ) + - 42 * CASE AVG ( + 18 ) WHEN - 79 THEN 33 + + + COUNT ( * ) ELSE NULL END / + ( + 69 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2678
SELECT - 52 * + + 76, NULLIF ( + 45, - ( + 15 ) - - - MAX( - 11 ) - - 7 + + 6 ) * + - 34 col0
----
-3952
-1530

skipif mysql # not compatible
query II rowsort label-2678
SELECT - 52 * + + 76, NULLIF ( + 45, - ( + 15 ) - - - MAX ( - 11 ) - - 7 + + 6 ) * + - 34 col0
----
-3952
-1530

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2680
SELECT - ( - MIN( - - CAST( - - ( - 48 ) AS SIGNED ) ) ) * - 88
----
4224

skipif mysql # not compatible
query I rowsort label-2680
SELECT - ( - MIN ( - - CAST ( - - ( - 48 ) AS INTEGER ) ) ) * - 88
----
4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2681
SELECT DISTINCT - 84 * - 19 * COUNT( * ) * - 69 * 2 + 23 + - ( - + CAST( NULL AS SIGNED ) ) - - - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT - 84 * - 19 * COUNT ( * ) * - 69 * 2 + 23 + - ( - + CAST ( NULL AS INTEGER ) ) - - - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ALL 49 * + NULLIF ( + 26, COUNT( * ) / - 61 + 53 * + 48 * + COALESCE ( + - 10, - - 7 / - 62 ) + + 72 ) col0
----
1274

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL 49 * + NULLIF ( + 26, COUNT ( * ) / - 61 + 53 * + 48 * + COALESCE ( + - 10, - - 7 / - 62 ) + + 72 ) col0
----
1274

onlyif mysql # DIV for integer division: 
query I rowsort label-2683
SELECT + - 55 DIV NULLIF ( 74, 70 + + 44 ) + - + 13 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2683
SELECT + - 55 / NULLIF ( 74, 70 + + 44 ) + - + 13 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT - - 91 * + COUNT( DISTINCT - + 51 ) * + + 83
----
7553

skipif mysql # not compatible
query I rowsort label-2684
SELECT - - 91 * + COUNT ( DISTINCT - + 51 ) * + + 83
----
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT NULLIF ( + 90, + 92 + - 22 + - - 50 - - COUNT( * ) * + COUNT( * ) * - 77 )
----
90

skipif mysql # not compatible
query I rowsort label-2685
SELECT NULLIF ( + 90, + 92 + - 22 + - - 50 - - COUNT ( * ) * + COUNT ( * ) * - 77 )
----
90

query I rowsort
SELECT - COALESCE ( + 77, 35 ) * 35 + + 91 + + 20 AS col0
----
-2584

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

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

query I rowsort
SELECT ALL - ( - 42 ) * - + 71 AS col0
----
-2982

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT + - 90 + - - 68 - - COUNT( * ) * + - 9
----
-31

skipif mysql # not compatible
query I rowsort label-2689
SELECT + - 90 + - - 68 - - COUNT ( * ) * + - 9
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2690
SELECT - + CAST( + + 97 AS SIGNED ) col0, 64 + 74 col1
----
-97
138

skipif mysql # not compatible
query II rowsort label-2690
SELECT - + CAST ( + + 97 AS INTEGER ) col0, 64 + 74 col1
----
-97
138

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT + 54 DIV 52 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2691
SELECT + 54 / 52 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2692
SELECT ALL + 50 * - 2 * - COUNT( DISTINCT - 73 ) + + 4 AS col2, 10 + NULLIF ( - 9, + COUNT( * ) ) + + 22 DIV MIN( ALL + 61 ) * 87 DIV ( - 74 ) AS col1
----
104
1

skipif mysql # not compatible
query II rowsort label-2692
SELECT ALL + 50 * - 2 * - COUNT ( DISTINCT - 73 ) + + 4 AS col2, 10 + NULLIF ( - 9, + COUNT ( * ) ) + + 22 / MIN ( ALL + 61 ) * 87 / ( - 74 ) AS col1
----
104
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT MAX( + 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-2693
SELECT MAX ( + 78 ) AS col0
----
78

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

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

query I rowsort
SELECT + 48 + - 81 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT DISTINCT 53 + - + COALESCE ( + - 19, SUM( DISTINCT + - 82 ) + ( + 80 ) ) * + - 66 AS col1
----
-1201

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT 53 + - + COALESCE ( + - 19, SUM ( DISTINCT + - 82 ) + ( + 80 ) ) * + - 66 AS col1
----
-1201

onlyif mysql # DIV for integer division: 
query I rowsort label-2697
SELECT + 18 DIV - 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2697
SELECT + 18 / - 26 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT + COUNT( * ) + - 33 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-2698
SELECT + COUNT ( * ) + - 33 AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2699
SELECT ALL CAST( NULL AS SIGNED ) + - 46 / - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL CAST ( NULL AS INTEGER ) + - 46 / - - 21
----
NULL

query I rowsort
SELECT ALL 0 * - 98 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT ALL + 2 DIV + - 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL + 2 / + - 39 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2702
SELECT ALL CAST( - 24 AS SIGNED ) + - 79 + - + 43
----
-146

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL CAST ( - 24 AS INTEGER ) + - 79 + - + 43
----
-146

query I rowsort
SELECT DISTINCT + 84 + ( - 70 )
----
14

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

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

query I rowsort
SELECT + 34 * + 76 AS col2
----
2584

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT + 52 DIV - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT + 52 / - 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT - COALESCE ( - 65, + CASE 99 WHEN - 98 * - - 23 * - - 6 * + - 52 * - 36 * + 41 THEN NULL WHEN - 88 THEN NULL WHEN + 13 + - 50 - + + 16 * COUNT( * ) THEN COUNT( * ) END ) * + - 18 AS col2
----
-1170

skipif mysql # not compatible
query I rowsort label-2708
SELECT - COALESCE ( - 65, + CASE 99 WHEN - 98 * - - 23 * - - 6 * + - 52 * - 36 * + 41 THEN NULL WHEN - 88 THEN NULL WHEN + 13 + - 50 - + + 16 * COUNT ( * ) THEN COUNT ( * ) END ) * + - 18 AS col2
----
-1170

query I rowsort
SELECT ALL + 30 - - - 65 + - 50 * - 96
----
4765

query I rowsort
SELECT + 22 - - 42 + - 31
----
33

query I rowsort
SELECT DISTINCT ( - 54 ) col1
----
-54

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT DISTINCT + ( + 96 ) * + CAST( NULL AS SIGNED ) * - ( + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT + ( + 96 ) * + CAST ( NULL AS INTEGER ) * - ( + 13 )
----
NULL

query I rowsort
SELECT + 56 + - - 61 col2
----
117

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2716
SELECT - CASE + COUNT( * ) WHEN 85 THEN - + 11 WHEN + 48 THEN - - MIN( DISTINCT 80 ) + + 84 + + 94 ELSE 50 END * + 26 + CASE WHEN 92 IS NOT NULL THEN + 13 ELSE NULL END AS col1, - MAX( - 65 ) DIV + 84 AS col2, + 67 - - COUNT( * )
----
-1287
0
68

skipif mysql # not compatible
query III rowsort label-2716
SELECT - CASE + COUNT ( * ) WHEN 85 THEN - + 11 WHEN + 48 THEN - - MIN ( DISTINCT 80 ) + + 84 + + 94 ELSE 50 END * + 26 + CASE WHEN 92 IS NOT NULL THEN + 13 ELSE NULL END AS col1, - MAX ( - 65 ) / + 84 AS col2, + 67 - - COUNT ( * )
----
-1287
0
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT - COUNT( * ) - - 52 + COUNT( * ) * - 91 * + - SUM( ALL - 4 )
----
-313

skipif mysql # not compatible
query I rowsort label-2717
SELECT - COUNT ( * ) - - 52 + COUNT ( * ) * - 91 * + - SUM ( ALL - 4 )
----
-313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2718
SELECT + 68 * - + SUM( DISTINCT + 6 ) + + - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + - 20 * + 30 - - 94 + + 12 + 37 * - - ( 81 ) * + ( - - 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT + 68 * - + SUM ( DISTINCT + 6 ) + + - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 20 * + 30 - - 94 + + 12 + 37 * - - ( 81 ) * + ( - - 10 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT ALL + 90 DIV + - 27 col0
----
-3

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL + 90 / + - 27 col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2720
SELECT ALL + ( - 10 ) / + 82 / - COUNT( * ) * + CAST( NULL AS SIGNED ) + 79 + - 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL + ( - 10 ) / + 82 / - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 79 + - 65 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2721
SELECT CASE + ( 58 ) WHEN - CAST( 19 AS SIGNED ) THEN - + 8 ELSE NULL END + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT CASE + ( 58 ) WHEN - CAST ( 19 AS INTEGER ) THEN - + 8 ELSE NULL END + - 4
----
NULL

query I rowsort
SELECT ALL - + 51 * + 47 col2
----
-2397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT ALL - 64 + - CAST( + NULLIF ( - 97, + 36 ) AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL - 64 + - CAST ( + NULLIF ( - 97, + 36 ) AS INTEGER )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT 8 * CASE + - COALESCE ( 91, - + 29, COUNT( ALL 62 ) ) WHEN 18 THEN NULL WHEN COUNT( + 2 ) THEN + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT 8 * CASE + - COALESCE ( 91, - + 29, COUNT ( ALL 62 ) ) WHEN 18 THEN NULL WHEN COUNT ( + 2 ) THEN + 83 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2725
SELECT COUNT( * ) * - COUNT( * ) * + SUM( ALL + + 51 ) AS col1, 4 + + COUNT( * ) + - MIN( ALL + 15 ) AS col1
----
-51
-10

skipif mysql # not compatible
query II rowsort label-2725
SELECT COUNT ( * ) * - COUNT ( * ) * + SUM ( ALL + + 51 ) AS col1, 4 + + COUNT ( * ) + - MIN ( ALL + 15 ) AS col1
----
-51
-10

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

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT + 61 + - + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - + 21, - - 37 ) + - 36 - - 69
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2728
SELECT ALL 86 AS col2, - MIN( + + 23 ) * - ( 67 ) * + 13 * + 57 - - 82 AS col1
----
86
1141963

skipif mysql # not compatible
query II rowsort label-2728
SELECT ALL 86 AS col2, - MIN ( + + 23 ) * - ( 67 ) * + 13 * + 57 - - 82 AS col1
----
86
1141963

onlyif mysql # DIV for integer division: 
query II rowsort label-2729
SELECT DISTINCT 38 AS col1, - 93 DIV + + 42
----
38
-2

skipif mysql # not compatible
query II rowsort label-2729
SELECT DISTINCT 38 AS col1, - 93 / + + 42
----
38
-2

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

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

query I rowsort
SELECT NULLIF ( 66, + 49 ) + 79 col1
----
145

query II rowsort
SELECT - 54 AS col1, 26
----
-54
26

query I rowsort
SELECT 61 * - - 69
----
4209

query I rowsort
SELECT ALL 4 - + - 45 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT - 87 + AVG ( DISTINCT + CASE - + 0 WHEN - 90 THEN + 89 ELSE NULL END ) + 3 - 57 - COUNT( * ) + + ( 52 ) * - COUNT( * ) + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT - 87 + AVG ( DISTINCT + CASE - + 0 WHEN - 90 THEN + 89 ELSE NULL END ) + 3 - 57 - COUNT ( * ) + + ( 52 ) * - COUNT ( * ) + 9
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2736
SELECT ALL + 78, COUNT( * ) * 21 AS col2
----
78
21

skipif mysql # not compatible
query II rowsort label-2736
SELECT ALL + 78, COUNT ( * ) * 21 AS col2
----
78
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT DISTINCT - SUM( - 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT - SUM ( - 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2738
SELECT - ( + 30 ) DIV + 57 * + MAX( DISTINCT + - 19 ) * - + 70 + - + 62
----
-62

skipif mysql # not compatible
query I rowsort label-2738
SELECT - ( + 30 ) / + 57 * + MAX ( DISTINCT + - 19 ) * - + 70 + - + 62
----
-62

query II rowsort
SELECT - 10 AS col1, + 87 * - + 34 * - + ( + 28 ) AS col2
----
-10
82824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2740
SELECT DISTINCT - SUM( - - 76 ) DIV - 72
----
1

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT - SUM ( - - 76 ) / - 72
----
1

query I rowsort
SELECT 62 * + + 89
----
5518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2742
SELECT ALL - COUNT( * ) AS col1, + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-1
-1

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

query I rowsort
SELECT DISTINCT + + 99 * - ( + 70 )
----
-6930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2744
SELECT ALL + - COALESCE ( + 64, + COUNT( * ) ) + 29 DIV 36 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL + - COALESCE ( + 64, + COUNT ( * ) ) + 29 / 36 AS col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT 85 * - 84 + - 49 DIV - - 20
----
-7142

skipif mysql # not compatible
query I rowsort label-2745
SELECT 85 * - 84 + - 49 / - - 20
----
-7142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2746
SELECT DISTINCT - ( + 61 ) + CASE + - CAST( ( + COUNT( * ) ) AS SIGNED ) WHEN + + 48 + + 28 * - 67 THEN NULL WHEN + - 30 * + 57 THEN NULL ELSE 32 END
----
-29

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT - ( + 61 ) + CASE + - CAST ( ( + COUNT ( * ) ) AS INTEGER ) WHEN + + 48 + + 28 * - 67 THEN NULL WHEN + - 30 * + 57 THEN NULL ELSE 32 END
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL - - 57 + NULLIF ( + + 16, - - COALESCE ( + 64, + NULLIF ( 40, 87 / - 85 + + - 44 * CASE + 92 WHEN - + 55 THEN 79 * - 18 + ( + + COUNT( * ) ) * + 74 ELSE + 95 / 5 * + 41 * COUNT( * ) END * - 25 + - 23 - - 83 * MAX( ALL 33 ) / - 28 + + 74 ) - - + 88 + 1, - + 62 + - ( 98 ) ) ) + 43 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL - - 57 + NULLIF ( + + 16, - - COALESCE ( + 64, + NULLIF ( 40, 87 / - 85 + + - 44 * CASE + 92 WHEN - + 55 THEN 79 * - 18 + ( + + COUNT ( * ) ) * + 74 ELSE + 95 / 5 * + 41 * COUNT ( * ) END * - 25 + - 23 - - 83 * MAX ( ALL 33 ) / - 28 + + 74 ) - - + 88 + 1, - + 62 + - ( 98 ) ) ) + 43 AS col0
----
116

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

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

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

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT - ( + + COUNT ( * ) ) / - SUM ( 33 ) AS col0
----
0

query I rowsort
SELECT 27 * + - 87
----
-2349

query I rowsort
SELECT ALL - 1 * NULLIF ( + 18, - 70 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL + 47 + + + 58 + CASE - 87 WHEN - + 42 THEN + + 54 WHEN + COUNT( * ) THEN + COUNT( * ) ELSE NULL END * + 17 - - 57 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL + 47 + + + 58 + CASE - 87 WHEN - + 42 THEN + + 54 WHEN + COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END * + 17 - - 57 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2753
SELECT ALL - SUM( ALL 61 ), - COUNT( * ) * - + 8 - - 91 * 4 AS col2
----
-61
372

skipif mysql # not compatible
query II rowsort label-2753
SELECT ALL - SUM ( ALL 61 ), - COUNT ( * ) * - + 8 - - 91 * 4 AS col2
----
-61
372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2754
SELECT - 34 * NULLIF ( + + CAST( NULL AS SIGNED ), + COUNT( * ) / + AVG ( + 82 ) ) + + - COUNT( * ) * + COUNT( + 41 ) + 37 AS col2, + 79 + - + 39 * - - 29 AS col1
----
NULL
-1052

skipif mysql # not compatible
query II rowsort label-2754
SELECT - 34 * NULLIF ( + + CAST ( NULL AS INTEGER ), + COUNT ( * ) / + AVG ( + 82 ) ) + + - COUNT ( * ) * + COUNT ( + 41 ) + 37 AS col2, + 79 + - + 39 * - - 29 AS col1
----
NULL
-1052

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2755
SELECT 46 DIV 87 AS col2, + ( MIN( ALL - + 1 ) )
----
0
-1

skipif mysql # not compatible
query II rowsort label-2755
SELECT 46 / 87 AS col2, + ( MIN ( ALL - + 1 ) )
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT - CASE 40 WHEN - + 54 THEN NULL ELSE - 72 * - COUNT( * ) * + + 93 * COUNT( * ) + + - ( 79 ) END
----
-6617

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT - CASE 40 WHEN - + 54 THEN NULL ELSE - 72 * - COUNT ( * ) * + + 93 * COUNT ( * ) + + - ( 79 ) END
----
-6617

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT ALL - ( - - COALESCE ( + + 43, + 73, + 2 DIV + 94 ) ) * 84 * + ( + - 38 ) * 15 + + 32
----
2058872

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL - ( - - COALESCE ( + + 43, + 73, + 2 / + 94 ) ) * 84 * + ( + - 38 ) * 15 + + 32
----
2058872

query I rowsort
SELECT 72 * - 51
----
-3672

onlyif mysql # DIV for integer division: 
query II rowsort label-2759
SELECT 78 + + 62, 92 - 56 DIV + + 2 + - 1 AS col0
----
140
63

skipif mysql # not compatible
query II rowsort label-2759
SELECT 78 + + 62, 92 - 56 / + + 2 + - 1 AS col0
----
140
63

query I rowsort
SELECT ALL 86 * + + ( + NULLIF ( - + 45, + 25 * - 63 + - + ( + 22 ) ) )
----
-3870

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT 93 - + + 49 - - COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2761
SELECT 93 - + + 49 - - COUNT ( * ) AS col2
----
45

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

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

query I rowsort
SELECT + + 85 * - 49 + - 27 - - 64 AS col1
----
-4128

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT ALL - 79 + + 19 DIV + 36 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - 79 + + 19 / + 36 AS col2
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-2765
SELECT + 74 - - 62 + - - 55 + - 57 + + - 67 + - - 42 DIV + 67 + - 7 * 6 * + 82 + 36 * - 47 + + 10 + + - 96 * 89
----
-13603

skipif mysql # not compatible
query I rowsort label-2765
SELECT + 74 - - 62 + - - 55 + - 57 + + - 67 + - - 42 / + 67 + - 7 * 6 * + 82 + 36 * - 47 + + 10 + + - 96 * 89
----
-13603

query I rowsort
SELECT + COALESCE ( 55, + ( - ( + 41 ) ), + + 80 )
----
55

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

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

query I rowsort
SELECT + 1 * ( 97 ) col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT - COUNT( * ) * ( ( + + 53 ) ) * - 87 + + - 5 - - 17
----
4623

skipif mysql # not compatible
query I rowsort label-2769
SELECT - COUNT ( * ) * ( ( + + 53 ) ) * - 87 + + - 5 - - 17
----
4623

query I rowsort
SELECT - - 78 * 41
----
3198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2771
SELECT + - 8 + 31 col0, - CASE + - 1 WHEN MAX( + - 58 ) / 71 * - + CAST( - + 88 AS SIGNED ) - - 12 / - 17 + - 53 - - NULLIF ( - 40, 62 ) THEN - 65 WHEN + - 59 THEN NULL END + - - 76 * ( + 45 ) AS col2
----
23
NULL

skipif mysql # not compatible
query II rowsort label-2771
SELECT + - 8 + 31 col0, - CASE + - 1 WHEN MAX ( + - 58 ) / 71 * - + CAST ( - + 88 AS INTEGER ) - - 12 / - 17 + - 53 - - NULLIF ( - 40, 62 ) THEN - 65 WHEN + - 59 THEN NULL END + - - 76 * ( + 45 ) AS col2
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL + - 23 * 60 - 75 + - COUNT( * ) + 33 * + 19 AS col1
----
-829

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL + - 23 * 60 - 75 + - COUNT ( * ) + 33 * + 19 AS col1
----
-829

query I rowsort
SELECT DISTINCT - - 57 * + 43 + + + ( - 74 )
----
2377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2774
SELECT ALL 12 * - 46 + + + 98 * - MAX( ( 30 ) ) * + COUNT( DISTINCT - ( 0 ) ) + + 61 * - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL 12 * - 46 + + + 98 * - MAX ( ( 30 ) ) * + COUNT ( DISTINCT - ( 0 ) ) + + 61 * - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 71 + 17
----
88

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

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

query I rowsort
SELECT - 30 * - 99 + + 75
----
3045

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT ALL + COALESCE ( - SUM( + ( - + 98 ) ), + 10 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL + COALESCE ( - SUM ( + ( - + 98 ) ), + 10 ) AS col2
----
98

query I rowsort
SELECT 52 * 77 + 54 * 42 - - + 26 AS col2
----
6298

query I rowsort
SELECT ALL - 42 * - 61 - 78 AS col0
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT MAX( - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2781
SELECT MAX ( - 22 ) AS col1
----
-22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2783
SELECT ALL + NULLIF ( - 64, + + CAST( NULL AS SIGNED ) + - COUNT( DISTINCT + 22 ) ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL + NULLIF ( - 64, + + CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT + 22 ) ) AS col2
----
-64

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2785
SELECT ALL - 71 DIV SUM( ALL ( 37 ) ) * 84 col2
----
-84

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL - 71 / SUM ( ALL ( 37 ) ) * 84 col2
----
-84

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2787
SELECT 25, 19 + - 25 * + CASE - + ( - - 44 ) WHEN ( + + MAX( 67 ) ) - - 82 THEN NULL ELSE - + 51 + ( - - 42 ) END * - - 3 AS col0
----
25
694

skipif mysql # not compatible
query II rowsort label-2787
SELECT 25, 19 + - 25 * + CASE - + ( - - 44 ) WHEN ( + + MAX ( 67 ) ) - - 82 THEN NULL ELSE - + 51 + ( - - 42 ) END * - - 3 AS col0
----
25
694

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2788
SELECT ALL NULLIF ( 21, 1 * - COUNT( * ) + CASE + ( + 94 ) WHEN + ( 75 ) THEN NULLIF ( + 88, 3 - - - COALESCE ( + ( 51 ), - 31 * + - 72 * COUNT( * ) + 24 - - COUNT( + 72 ) ) + + - 0 * + 0 + - - 49 + + 93 / - 52 ) + - 93 + + 61 + - 41 * + ( + CAST( + + COUNT( * ) AS DECIMAL ) ) WHEN + 8 THEN NULL ELSE NULL END - - CASE - - ( ( - - 48 ) ) WHEN - - 70 * + COUNT( * ) THEN - 39 * + 96 * + 92 + - 3 + + MIN( DISTINCT - 69 ) * 15 * + COUNT( * ) - 23 * 22 WHEN + 13 THEN 97 END - + CASE 54 WHEN - 2 THEN NULL WHEN 42 THEN NULL WHEN + 40 * + 13 + - 33 * 97 THEN NULL ELSE - 46 END )
----
21

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL NULLIF ( 21, 1 * - COUNT ( * ) + CASE + ( + 94 ) WHEN + ( 75 ) THEN NULLIF ( + 88, 3 - - - COALESCE ( + ( 51 ), - 31 * + - 72 * COUNT ( * ) + 24 - - COUNT ( + 72 ) ) + + - 0 * + 0 + - - 49 + + 93 / - 52 ) + - 93 + + 61 + - 41 * + ( + CAST ( + + COUNT ( * ) AS REAL ) ) WHEN + 8 THEN NULL ELSE NULL END - - CASE - - ( ( - - 48 ) ) WHEN - - 70 * + COUNT ( * ) THEN - 39 * + 96 * + 92 + - 3 + + MIN ( DISTINCT - 69 ) * 15 * + COUNT ( * ) - 23 * 22 WHEN + 13 THEN 97 END - + CASE 54 WHEN - 2 THEN NULL WHEN 42 THEN NULL WHEN + 40 * + 13 + - 33 * 97 THEN NULL ELSE - 46 END )
----
21

query I rowsort
SELECT + 63 + - 44 * + 32 - 13
----
-1358

onlyif mysql # DIV for integer division: 
query II rowsort label-2790
SELECT - ( + 55 ) DIV + 51, - 14 AS col1
----
-1
-14

skipif mysql # not compatible
query II rowsort label-2790
SELECT - ( + 55 ) / + 51, - 14 AS col1
----
-1
-14

query II rowsort
SELECT - NULLIF ( + 57, - 0 + - 56 + - 48 ) + - - 32, 45 AS col1
----
-25
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - MIN( 10 ) - - 26 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2792
SELECT - MIN ( 10 ) - - 26 AS col2
----
16

query I rowsort
SELECT ALL - - ( - 41 ) * + 41 + - 55 AS col0
----
-1736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2794
SELECT - 6 AS col1, CASE + COUNT( CAST( NULL AS SIGNED ) ) WHEN 8 THEN + 40 WHEN 28 THEN + NULLIF ( 18, - - 50 * 40 ) WHEN + - 82 THEN NULL ELSE - + 4 * + - COUNT( * ) + - 38 END DIV 60 AS col2
----
-6
0

skipif mysql # not compatible
query II rowsort label-2794
SELECT - 6 AS col1, CASE + COUNT ( CAST ( NULL AS INTEGER ) ) WHEN 8 THEN + 40 WHEN 28 THEN + NULLIF ( 18, - - 50 * 40 ) WHEN + - 82 THEN NULL ELSE - + 4 * + - COUNT ( * ) + - 38 END / 60 AS col2
----
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT DISTINCT - + NULLIF ( + - 85, + + 15 + + ( - + ( - COALESCE ( - 45, + NULLIF ( - 94, 24 + + 7 - 79 + 52 ) + COUNT( * ) ) ) ) + - + 99 ) + ( - + 43 ) - - 58 + + 61 * - COUNT( * ) + - - 88 - + + COALESCE ( + 29, 15 ) + - - 35 / + - CASE 9 WHEN 57 THEN - SUM( + - 81 ) * + - SUM( DISTINCT + 14 ) * - 5 END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT - + NULLIF ( + - 85, + + 15 + + ( - + ( - COALESCE ( - 45, + NULLIF ( - 94, 24 + + 7 - 79 + 52 ) + COUNT ( * ) ) ) ) + - + 99 ) + ( - + 43 ) - - 58 + + 61 * - COUNT ( * ) + - - 88 - + + COALESCE ( + 29, 15 ) + - - 35 / + - CASE 9 WHEN 57 THEN - SUM ( + - 81 ) * + - SUM ( DISTINCT + 14 ) * - 5 END * 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2796
SELECT ALL + + 45 + - 95 + + 42 - + - COUNT( * ) DIV + + COALESCE ( 47, - CASE + 64 WHEN - 46 - - CASE + 5 WHEN + 52 THEN NULL WHEN 30 + - + ( - + 54 ) + MIN( - + 77 ) THEN - 8 END THEN - 82 WHEN + 55 THEN - 10 * + CAST( - 8 AS SIGNED ) + + 53 + 92 DIV 44 END + - 91, COUNT( * ) + + - COALESCE ( COUNT( * ), + 80 ) * + - 68 ) * 53 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + + 45 + - 95 + + 42 - + - COUNT ( * ) / + + COALESCE ( 47, - CASE + 64 WHEN - 46 - - CASE + 5 WHEN + 52 THEN NULL WHEN 30 + - + ( - + 54 ) + MIN ( - + 77 ) THEN - 8 END THEN - 82 WHEN + 55 THEN - 10 * + CAST ( - 8 AS INTEGER ) + + 53 + 92 / 44 END + - 91, COUNT ( * ) + + - COALESCE ( COUNT ( * ), + 80 ) * + - 68 ) * 53 AS col0
----
-8

query II rowsort
SELECT DISTINCT 89 AS col0, 60 + - - 30
----
89
90

onlyif mysql # aggregate syntax: 
query II rowsort label-2798
SELECT ALL - 28 + + 10 * - - 76, - COUNT( * ) AS col1
----
732
-1

skipif mysql # not compatible
query II rowsort label-2798
SELECT ALL - 28 + + 10 * - - 76, - COUNT ( * ) AS col1
----
732
-1

query I rowsort
SELECT - - NULLIF ( + 14, - 26 ) + - 25
----
-11

query I rowsort
SELECT DISTINCT - + 15 + + 80 AS col1
----
65

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

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

query I rowsort
SELECT ALL - 68 + + + 30
----
-38

query I rowsort
SELECT - + 62 * + 5
----
-310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2804
SELECT ALL + 50 DIV 37 * - COALESCE ( + 69, + 8, 29 + + 28 ) * + 3 + - ( 28 ) - - 31 - - - 85 * + COUNT( * )
----
-289

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL + 50 / 37 * - COALESCE ( + 69, + 8, 29 + + 28 ) * + 3 + - ( 28 ) - - 31 - - - 85 * + COUNT ( * )
----
-289

query II rowsort
SELECT ALL + - 31 AS col1, 93
----
-31
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT + + 46 DIV + 14
----
3

skipif mysql # not compatible
query I rowsort label-2806
SELECT + + 46 / + 14
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2807
SELECT CAST( - COALESCE ( - ( - MAX( + - 47 ) ), - 8 + + COUNT( * ) - + + 4 * COALESCE ( + - 21, + - MIN( + - ( + 16 ) ), - 82 + + + 23 ) ) AS SIGNED ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2807
SELECT CAST ( - COALESCE ( - ( - MAX ( + - 47 ) ), - 8 + + COUNT ( * ) - + + 4 * COALESCE ( + - 21, + - MIN ( + - ( + 16 ) ), - 82 + + + 23 ) ) AS INTEGER ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2808
SELECT ( + CASE 47 WHEN CAST( NULL AS SIGNED ) * + 59 * + - MAX( 97 ) - - - CASE + + 72 WHEN + COUNT( * ) THEN - + 88 WHEN + - 15 THEN 80 + 68 * - - 59 ELSE NULL END + - 36 * - 50 THEN 46 ELSE - 49 DIV + 9 * - - ( - - COUNT( * ) ) END ) AS col1, - 6 * - COALESCE ( - 38, + 9 + - 62 + + NULLIF ( - + 33, SUM( + 38 ) ) * + 3 * + 10 * - 51 ) AS col1
----
-5
-228

skipif mysql # not compatible
query II rowsort label-2808
SELECT ( + CASE 47 WHEN CAST ( NULL AS INTEGER ) * + 59 * + - MAX ( 97 ) - - - CASE + + 72 WHEN + COUNT ( * ) THEN - + 88 WHEN + - 15 THEN 80 + 68 * - - 59 ELSE NULL END + - 36 * - 50 THEN 46 ELSE - 49 / + 9 * - - ( - - COUNT ( * ) ) END ) AS col1, - 6 * - COALESCE ( - 38, + 9 + - 62 + + NULLIF ( - + 33, SUM ( + 38 ) ) * + 3 * + 10 * - 51 ) AS col1
----
-5
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT - 26 * - MAX( - 17 ) * + + 45 + SUM( ALL - 72 ) * + 77 col1
----
-25434

skipif mysql # not compatible
query I rowsort label-2809
SELECT - 26 * - MAX ( - 17 ) * + + 45 + SUM ( ALL - 72 ) * + 77 col1
----
-25434

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2811
SELECT + NULLIF ( + 40, - AVG ( ALL + NULLIF ( + 96, - - CAST( NULL AS SIGNED ) * + 66 + - - 14 ) ) )
----
40

skipif mysql # not compatible
query I rowsort label-2811
SELECT + NULLIF ( + 40, - AVG ( ALL + NULLIF ( + 96, - - CAST ( NULL AS INTEGER ) * + 66 + - - 14 ) ) )
----
40

query I rowsort
SELECT ALL 76 * - 37 AS col1
----
-2812

query I rowsort
SELECT + 82 * 77
----
6314

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT + MAX( ALL 97 ) + + + 49
----
146

skipif mysql # not compatible
query I rowsort label-2814
SELECT + MAX ( ALL 97 ) + + + 49
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2815
SELECT + CASE - 73 WHEN 88 + + - CAST( NULL AS SIGNED ) THEN NULL WHEN - - 92 THEN NULL ELSE - COALESCE ( + 59, - 93 ) * + 29 END * + 7 + 16 - + 28 AS col1
----
-11989

skipif mysql # not compatible
query I rowsort label-2815
SELECT + CASE - 73 WHEN 88 + + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 92 THEN NULL ELSE - COALESCE ( + 59, - 93 ) * + 29 END * + 7 + 16 - + 28 AS col1
----
-11989

query I rowsort
SELECT ALL + COALESCE ( + + ( 39 ), + 28, 73 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2817
SELECT + ( + 30 ) * + - 54 + - - CAST( - 15 AS SIGNED ) + - + 44 AS col1
----
-1679

skipif mysql # not compatible
query I rowsort label-2817
SELECT + ( + 30 ) * + - 54 + - - CAST ( - 15 AS INTEGER ) + - + 44 AS col1
----
-1679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2818
SELECT CASE + 1 WHEN - 8 THEN COALESCE ( + 43, - 90 ) WHEN + CAST( + + 33 AS SIGNED ) * - ( - - 62 ) THEN NULL ELSE + 62 END AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2818
SELECT CASE + 1 WHEN - 8 THEN COALESCE ( + 43, - 90 ) WHEN + CAST ( + + 33 AS INTEGER ) * - ( - - 62 ) THEN NULL ELSE + 62 END AS col0
----
62

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

query I rowsort
SELECT NULLIF ( + 98, + - 72 * - + 80 - - 7 )
----
98

query I rowsort
SELECT - 45 + - 76 AS col2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL CASE 97 WHEN - 66 + + 3 THEN + 49 - + 88 + - 26 + - COUNT( - 9 ) WHEN - + ( - 59 ) THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL CASE 97 WHEN - 66 + + 3 THEN + 49 - + 88 + - 26 + - COUNT ( - 9 ) WHEN - + ( - 59 ) THEN NULL ELSE + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT CASE 99 WHEN - 77 THEN ( + COUNT( * ) ) / - - 38 END * ( 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT CASE 99 WHEN - 77 THEN ( + COUNT ( * ) ) / - - 38 END * ( 22 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2824
SELECT ALL - COUNT( * ) + 50, + ( + 55 ) AS col0
----
49
55

skipif mysql # not compatible
query II rowsort label-2824
SELECT ALL - COUNT ( * ) + 50, + ( + 55 ) AS col0
----
49
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2825
SELECT ALL + CASE SUM( DISTINCT + 69 ) WHEN 23 * + - COUNT( * ) THEN NULL WHEN 16 THEN NULL WHEN + 64 - ( + 37 ) + - COUNT( ALL - 45 ) THEN + + 89 ELSE NULL END + + + AVG ( + + ( - 90 ) ) + - 42 * - 44 * - 94 * 89 AS col1, 7 * - 69 * + 19 AS col2
----
NULL
-9177

skipif mysql # not compatible
query II rowsort label-2825
SELECT ALL + CASE SUM ( DISTINCT + 69 ) WHEN 23 * + - COUNT ( * ) THEN NULL WHEN 16 THEN NULL WHEN + 64 - ( + 37 ) + - COUNT ( ALL - 45 ) THEN + + 89 ELSE NULL END + + + AVG ( + + ( - 90 ) ) + - 42 * - 44 * - 94 * 89 AS col1, 7 * - 69 * + 19 AS col2
----
NULL
-9177

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT DISTINCT + COUNT( * ) * - - 90 * 45 * - 13
----
-52650

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + COUNT ( * ) * - - 90 * 45 * - 13
----
-52650

query II rowsort
SELECT 78 - - 16 AS col2, - 27
----
94
-27

query II rowsort
SELECT - ( 9 ) AS col2, 20
----
-9
20

query I rowsort
SELECT - CASE 48 WHEN + 49 / + 80 / 48 + - 0 THEN - 98 * AVG ( 2 ) / - 80 + 49 + - 42 END col2
----
NULL

query I rowsort
SELECT - 22 - + 53
----
-75

query I rowsort
SELECT 68 * + - 38 * + 14
----
-36176

query I rowsort
SELECT DISTINCT + 80 * 57 AS col2
----
4560

onlyif mysql # DIV for integer division: 
query I rowsort label-2833
SELECT 60 DIV 3 * - 85 * - + 53 * - 42 AS col2
----
-3784200

skipif mysql # not compatible
query I rowsort label-2833
SELECT 60 / 3 * - 85 * - + 53 * - 42 AS col2
----
-3784200

query I rowsort
SELECT ALL + 45 * - 69 * - ( - + 21 ) * - + 44 + + COALESCE ( + - COALESCE ( 57, + 75 ), + 96, + 67 )
----
2868963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2835
SELECT COUNT( * ) - - 18 * + 30 - + - NULLIF ( - 69, 19 ) * + + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) / + - 95 * 48 / - - 18 + 73 * 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT COUNT ( * ) - - 18 * + 30 - + - NULLIF ( - 69, 19 ) * + + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) / + - 95 * 48 / - - 18 + 73 * 64 AS col1
----
NULL

query I rowsort
SELECT ALL + 95 - - 82
----
177

query I rowsort
SELECT 17 * 36
----
612

query I rowsort
SELECT 27 + - 28 AS col0
----
-1

query I rowsort
SELECT - 22 * - 11 + - + 1 AS col2
----
241

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2841
SELECT DISTINCT + CASE - 50 WHEN - 63 * - 70 THEN + 32 * - 34 + + - 22 ELSE 69 END DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT + CASE - 50 WHEN - 63 * - 70 THEN + 32 * - 34 + + - 22 ELSE 69 END / - 85
----
0

query I rowsort
SELECT 71 + + 59 AS col2
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2843
SELECT DISTINCT - 8 + + CASE - 51 WHEN - 11 + - - 70 * 43 / + 92 / 38 * + - 35 THEN - - 40 WHEN + 60 THEN + - CAST( 38 AS SIGNED ) + + - 66 ELSE + - COUNT( * ) + + 39 END - - 9 - + 97 + + + 46 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT - 8 + + CASE - 51 WHEN - 11 + - - 70 * 43 / + 92 / 38 * + - 35 THEN - - 40 WHEN + 60 THEN + - CAST ( 38 AS INTEGER ) + + - 66 ELSE + - COUNT ( * ) + + 39 END - - 9 - + 97 + + + 46 AS col2
----
-12

query I rowsort
SELECT 67 + + ( + 63 ) + + + 74 AS col2
----
204

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

skipif mysql # not compatible
query I rowsort label-2845
SELECT 12 / - 38
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2846
SELECT DISTINCT 28 + - 28 + 86 * 20 DIV - + 84 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT 28 + - 28 + 86 * 20 / - + 84 AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-2847
SELECT DISTINCT - 36 DIV 5 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT - 36 / 5 AS col2
----
-7

query I rowsort
SELECT ALL + 3 + + + 68
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2849
SELECT DISTINCT 66 * 46 DIV ( 78 ) * - - 71 AS col1, ( NULLIF ( - CAST( NULL AS SIGNED ), - ( - + SUM( - + 93 ) ) DIV - 97 * + + 79 ) )
----
2698
NULL

skipif mysql # not compatible
query II rowsort label-2849
SELECT DISTINCT 66 * 46 / ( 78 ) * - - 71 AS col1, ( NULLIF ( - CAST ( NULL AS INTEGER ), - ( - + SUM ( - + 93 ) ) / - 97 * + + 79 ) )
----
2698
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT DISTINCT - 34 + - 79 + + - NULLIF ( + - 68, - 89 ) * + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT - 34 + - 79 + + - NULLIF ( + - 68, - 89 ) * + COUNT ( * )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT COALESCE ( 36, 99, + ( + ( - + COUNT( * ) ) ) )
----
36

skipif mysql # not compatible
query I rowsort label-2851
SELECT COALESCE ( 36, 99, + ( + ( - + COUNT ( * ) ) ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT ALL 23 + MAX( DISTINCT ( 21 ) ) col0
----
44

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL 23 + MAX ( DISTINCT ( 21 ) ) col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT 47 + + 22 + - 38 DIV - 86 col1
----
69

skipif mysql # not compatible
query I rowsort label-2853
SELECT 47 + + 22 + - 38 / - 86 col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2854
SELECT 93 + + + CASE - ( + - 10 ) WHEN + 90 THEN 97 + - - CASE - - 7 WHEN - 45 * - CAST( + 43 AS SIGNED ) + + 17 THEN 6 WHEN - + 71 THEN NULL END ELSE - ( - 23 ) END - 2 * - - 69
----
-22

skipif mysql # not compatible
query I rowsort label-2854
SELECT 93 + + + CASE - ( + - 10 ) WHEN + 90 THEN 97 + - - CASE - - 7 WHEN - 45 * - CAST ( + 43 AS INTEGER ) + + 17 THEN 6 WHEN - + 71 THEN NULL END ELSE - ( - 23 ) END - 2 * - - 69
----
-22

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2855
SELECT COALESCE ( - - CAST( NULL AS DECIMAL ), ( + ( - - 87 ) ) * CAST( NULL AS SIGNED ) / + 7 ) - + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT COALESCE ( - - CAST ( NULL AS REAL ), ( + ( - - 87 ) ) * CAST ( NULL AS INTEGER ) / + 7 ) - + 2 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT + 20 + - + SUM( + 74 ) + - 58 + 26 * - 33 - + 62
----
-1032

skipif mysql # not compatible
query I rowsort label-2857
SELECT + 20 + - + SUM ( + 74 ) + - 58 + 26 * - 33 - + 62
----
-1032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2858
SELECT MAX( ALL + 66 ) + + - CAST( NULL AS SIGNED ) / COUNT( * ) + 64 + - - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2858
SELECT MAX ( ALL + 66 ) + + - CAST ( NULL AS INTEGER ) / COUNT ( * ) + 64 + - - 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT + 3 + + 39 + 67 * - 60 - - COUNT( 26 ) col0
----
-3977

skipif mysql # not compatible
query I rowsort label-2859
SELECT + 3 + + 39 + 67 * - 60 - - COUNT ( 26 ) col0
----
-3977

query II rowsort
SELECT 94 AS col1, - 89 AS col2
----
94
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2861
SELECT 62 + - - MIN( + 6 ) * - 78 + - 95 + - 42 * - - 27 * + 52 AS col0, 94 DIV + + 7 AS col2
----
-59469
13

skipif mysql # not compatible
query II rowsort label-2861
SELECT 62 + - - MIN ( + 6 ) * - 78 + - 95 + - 42 * - - 27 * + 52 AS col0, 94 / + + 7 AS col2
----
-59469
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT COUNT( 55 ) * + 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2862
SELECT COUNT ( 55 ) * + 19 AS col2
----
19

query I rowsort
SELECT - 97 + + - 65
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2864
SELECT - 10 * - COUNT( * ) + 36 + - CAST( AVG ( 57 ) AS SIGNED ) * 40 - - ( + ( - 69 ) )
----
-2303

skipif mysql # not compatible
query I rowsort label-2864
SELECT - 10 * - COUNT ( * ) + 36 + - CAST ( AVG ( 57 ) AS INTEGER ) * 40 - - ( + ( - 69 ) )
----
-2303

query I rowsort
SELECT ALL - 57 * + 27 * - + 46
----
70794

query I rowsort
SELECT 72 + + - 14
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT 43 DIV + ( + - 66 )
----
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT 43 / + ( + - 66 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT SUM( + + 2 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-2868
SELECT SUM ( + + 2 ) col0
----
2

query I rowsort
SELECT 81 + - - 67
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL - NULLIF ( - + COUNT( * ), + 39 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL - NULLIF ( - + COUNT ( * ), + 39 ) AS col0
----
1

query I rowsort
SELECT 52 * + 21 col1
----
1092

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

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

query I rowsort
SELECT ALL 47 * + + 90 col2
----
4230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2874
SELECT DISTINCT 48 * - - 64 + + - CAST( - - SUM( DISTINCT - ( + 69 ) ) AS SIGNED ) - MAX( ALL + 45 ) * + 14 + - 62 * + 15, - CAST( + 82 AS SIGNED ) AS col0
----
1581
-82

skipif mysql # not compatible
query II rowsort label-2874
SELECT DISTINCT 48 * - - 64 + + - CAST ( - - SUM ( DISTINCT - ( + 69 ) ) AS INTEGER ) - MAX ( ALL + 45 ) * + 14 + - 62 * + 15, - CAST ( + 82 AS INTEGER ) AS col0
----
1581
-82

query I rowsort
SELECT ALL 23 * - 26 + 73
----
-525

onlyif mysql # aggregate syntax: 
query II rowsort label-2876
SELECT COUNT( * ), ( + + 1 )
----
1
1

skipif mysql # not compatible
query II rowsort label-2876
SELECT COUNT ( * ), ( + + 1 )
----
1
1

query I rowsort
SELECT + 42 * + 79 - - 16 col2
----
3334

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

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

query II rowsort
SELECT + 49 AS col2, - 61
----
49
-61

query II rowsort
SELECT + 58 AS col2, 56
----
58
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT DISTINCT - 32 * + + 67 * + - MIN( ALL + - 23 ) AS col2
----
-49312

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT - 32 * + + 67 * + - MIN ( ALL + - 23 ) AS col2
----
-49312

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT DISTINCT + COALESCE ( - MAX( + 18 ), - 53 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT + COALESCE ( - MAX ( + 18 ), - 53 ) AS col1
----
-18

query I rowsort
SELECT ALL + + 71 + + COALESCE ( + 67, - 73 + NULLIF ( 97, - 60 ), - - 88 ) * + 75 + ( + 3 ) + + + 99
----
5198

query II rowsort
SELECT - 86, ( - + 65 ) + 49 + ( 1 ) + + 31 col1
----
-86
16

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

skipif mysql # not compatible
query I rowsort label-2885
SELECT - 95 * + - COUNT ( * ) + - 60 AS col2
----
35

query II rowsort
SELECT ALL ( - 21 ), 98 - - 8 * - - 16 AS col0
----
-21
226

query II rowsort
SELECT - + ( - 89 ) col2, + 0 AS col2
----
89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL 57 - - 37 + - COUNT( * ) + + - 80 * - 75 + 79 AS col2
----
6172

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL 57 - - 37 + - COUNT ( * ) + + - 80 * - 75 + 79 AS col2
----
6172

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

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

query I rowsort
SELECT + + 25 * - 21 AS col0
----
-525

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT ALL - - 67 DIV 50 col0
----
1

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - - 67 / 50 col0
----
1

query I rowsort
SELECT - - 48 - - - 93 AS col1
----
-45

query I rowsort
SELECT - 11 * + + 20 AS col2
----
-220

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT + - 98 + - 27 DIV + + 13 AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-2896
SELECT + - 98 + - 27 / + + 13 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT - NULLIF ( - 75, - COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-2897
SELECT - NULLIF ( - 75, - COUNT ( * ) )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2898
SELECT + 89 * CAST( - 55 AS SIGNED )
----
-4895

skipif mysql # not compatible
query I rowsort label-2898
SELECT + 89 * CAST ( - 55 AS INTEGER )
----
-4895

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2899
SELECT - COALESCE ( - + 88, 96 + - COUNT( * ), - 2 - + ( + 64 ) + + 19, 40 * + 88 - 77 - + 34 DIV + + 86 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-2899
SELECT - COALESCE ( - + 88, 96 + - COUNT ( * ), - 2 - + ( + 64 ) + + 19, 40 * + 88 - 77 - + 34 / + + 86 ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2900
SELECT ALL ( 61 ) + + + 23 + - 64 * + 73 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL ( 61 ) + + + 23 + - 64 * + 73 - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2901
SELECT + CASE - 47 WHEN + CASE + CAST( + 4 AS DECIMAL ) WHEN - ( + 2 ) THEN NULL WHEN 59 THEN - 85 / - - 97 END THEN + 77 END - - 43 + + COUNT( * ) * - COUNT( * ) * + + COUNT( * ) + + 40 * AVG ( ALL + + ( - + 31 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT + CASE - 47 WHEN + CASE + CAST ( + 4 AS REAL ) WHEN - ( + 2 ) THEN NULL WHEN 59 THEN - 85 / - - 97 END THEN + 77 END - - 43 + + COUNT ( * ) * - COUNT ( * ) * + + COUNT ( * ) + + 40 * AVG ( ALL + + ( - + 31 ) )
----
NULL

query I rowsort
SELECT ALL - 26 + + 97 AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2903
SELECT + 59 - COUNT( ALL - 8 ) + - + CASE + 79 WHEN CAST( - - 87 AS SIGNED ) - ( - + CASE WHEN NOT - 51 <> NULL THEN - 69 * - - 84 END ) + - - 14 THEN + CASE + + 6 WHEN - + 78 THEN 58 WHEN - 94 THEN + 35 WHEN - 60 THEN 73 / + 31 ELSE - 77 + - 20 / + - 28 + - SUM( - 75 ) END WHEN + - 11 THEN - 41 WHEN CASE - 88 WHEN + - 11 + + 47 THEN + 98 + 29 WHEN 43 - + 99 + 83 * + 46 / + 61 / + NULLIF ( + NULLIF ( + + COUNT( ALL - 53 ), - + 71 * + - COALESCE ( + 8, 61 + + 8, + 8 ) * 0 ), 12 * 24 ) + 59 / 41 THEN NULL ELSE NULL END * COUNT( * ) + - SUM( ALL 40 ) THEN NULL ELSE NULL END + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT + 59 - COUNT ( ALL - 8 ) + - + CASE + 79 WHEN CAST ( - - 87 AS INTEGER ) - ( - + CASE WHEN NOT - 51 <> NULL THEN - 69 * - - 84 END ) + - - 14 THEN + CASE + + 6 WHEN - + 78 THEN 58 WHEN - 94 THEN + 35 WHEN - 60 THEN 73 / + 31 ELSE - 77 + - 20 / + - 28 + - SUM ( - 75 ) END WHEN + - 11 THEN - 41 WHEN CASE - 88 WHEN + - 11 + + 47 THEN + 98 + 29 WHEN 43 - + 99 + 83 * + 46 / + 61 / + NULLIF ( + NULLIF ( + + COUNT ( ALL - 53 ), - + 71 * + - COALESCE ( + 8, 61 + + 8, + 8 ) * 0 ), 12 * 24 ) + 59 / 41 THEN NULL ELSE NULL END * COUNT ( * ) + - SUM ( ALL 40 ) THEN NULL ELSE NULL END + 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2904
SELECT + CASE + 72 WHEN 52 * - CASE - COUNT( + 3 ) WHEN + CASE CAST( NULL AS SIGNED ) WHEN 94 THEN NULL WHEN + COUNT( * ) * 33 * + + 99 - + 72 THEN + + 56 END + - ( 78 ) THEN NULL ELSE - 63 END THEN - 92 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT + CASE + 72 WHEN 52 * - CASE - COUNT ( + 3 ) WHEN + CASE CAST ( NULL AS INTEGER ) WHEN 94 THEN NULL WHEN + COUNT ( * ) * 33 * + + 99 - + 72 THEN + + 56 END + - ( 78 ) THEN NULL ELSE - 63 END THEN - 92 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT + 23 + + + 54 * COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-2905
SELECT + 23 + + + 54 * COUNT ( * )
----
77

query I rowsort
SELECT + 75 * + NULLIF ( + 94, - AVG ( ALL - + 41 ) + - 81 * + + COALESCE ( + - 62, 53 ) * + 51 * + - 48 ) + - 68 AS col1
----
6982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2907
SELECT + MIN( + + CAST( NULL AS SIGNED ) ) * + - 34 * - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT + MIN ( + + CAST ( NULL AS INTEGER ) ) * + - 34 * - 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT ALL 99 * 85 col0, COUNT( * ) + - 39
----
8415
-38

skipif mysql # not compatible
query II rowsort label-2908
SELECT ALL 99 * 85 col0, COUNT ( * ) + - 39
----
8415
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL COUNT( * ) * - COUNT( * ) + + NULLIF ( + 55, + - 25 + 70 + - + 77 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL COUNT ( * ) * - COUNT ( * ) + + NULLIF ( + 55, + - 25 + 70 + - + 77 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT ( ( + 32 ) ), COUNT( * ) - + - 38 AS col1
----
32
39

skipif mysql # not compatible
query II rowsort label-2910
SELECT ( ( + 32 ) ), COUNT ( * ) - + - 38 AS col1
----
32
39

query I rowsort
SELECT ALL - 58 * 93 + 27
----
-5367

query I rowsort
SELECT - 45 + + - 10 AS col1
----
-55

query I rowsort
SELECT 64 * COALESCE ( + 88, 38 ) + - 18 AS col2
----
5614

onlyif mysql # aggregate syntax: 
query II rowsort label-2914
SELECT + MIN( - - 60 ), 24 col1
----
60
24

skipif mysql # not compatible
query II rowsort label-2914
SELECT + MIN ( - - 60 ), 24 col1
----
60
24

query I rowsort
SELECT ALL + CASE + 72 WHEN + 66 * - 37 * + 95 THEN 89 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT - + 40 + - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-2916
SELECT - + 40 + - COUNT ( * )
----
-41

query II rowsort
SELECT DISTINCT - 1 * + 45 * + 2 * 92 - + 15 AS col2, - 24 AS col2
----
-8295
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2918
SELECT - 29 * - - CAST( + + 79 AS SIGNED ) * - 23
----
52693

skipif mysql # not compatible
query I rowsort label-2918
SELECT - 29 * - - CAST ( + + 79 AS INTEGER ) * - 23
----
52693

query I rowsort
SELECT ALL + COALESCE ( + 96, + + 46 ) AS col0
----
96

query I rowsort
SELECT ALL - 57 * - 9
----
513

query I rowsort
SELECT + - 13 * - NULLIF ( + 17, 10 ) col1
----
221

query I rowsort
SELECT - - 2 + - - 87 - + 6
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-2923
SELECT + COUNT( 99 ) - - COUNT( * ), 7 AS col1
----
2
7

skipif mysql # not compatible
query II rowsort label-2923
SELECT + COUNT ( 99 ) - - COUNT ( * ), 7 AS col1
----
2
7

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

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

query I rowsort
SELECT + 88 - + 47
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT + NULLIF ( - MIN( DISTINCT + 73 ), 23 )
----
-73

skipif mysql # not compatible
query I rowsort label-2926
SELECT + NULLIF ( - MIN ( DISTINCT + 73 ), 23 )
----
-73

query I rowsort
SELECT ALL + 47 + + + 89
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2928
SELECT - MIN( + 2 ), 81 + - + MIN( - - 41 ) DIV 53 AS col1
----
-2
81

skipif mysql # not compatible
query II rowsort label-2928
SELECT - MIN ( + 2 ), 81 + - + MIN ( - - 41 ) / 53 AS col1
----
-2
81

query I rowsort
SELECT ALL - - 60 + 82 * + 5 AS col0
----
470

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2931
SELECT ALL + 21 + - - 1 + - + 15 * + COUNT( * ) AS col2, 0 * + - 93 AS col2
----
7
0

skipif mysql # not compatible
query II rowsort label-2931
SELECT ALL + 21 + - - 1 + - + 15 * + COUNT ( * ) AS col2, 0 * + - 93 AS col2
----
7
0

query I rowsort
SELECT DISTINCT 59 * 36 * + ( - 95 ) AS col1
----
-201780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2933
SELECT ALL 17 + - ( + + 76 ) + + 44 + 14 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL 17 + - ( + + 76 ) + + 44 + 14 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 71 * + + 68
----
4828

query I rowsort
SELECT DISTINCT - 49 * + - 40
----
1960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT ALL - CASE + 7 WHEN + 68 THEN + - 61 * + 19 * + 35 + CAST( NULL AS SIGNED ) WHEN + - 73 * 82 + + 7 THEN 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL - CASE + 7 WHEN + 68 THEN + - 61 * + 19 * + 35 + CAST ( NULL AS INTEGER ) WHEN + - 73 * 82 + + 7 THEN 15 END
----
NULL

query II rowsort
SELECT ALL - 41 AS col1, - CASE + 20 WHEN 87 THEN ( + + 87 ) ELSE NULL END AS col2
----
-41
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2938
SELECT 86 / + + NULLIF ( - 72, + 49 ) * + + 30 + - + CAST( NULL AS DECIMAL ) * - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT 86 / + + NULLIF ( - 72, + 49 ) * + + 30 + - + CAST ( NULL AS REAL ) * - - 33
----
NULL

query II rowsort
SELECT 90 AS col0, + 92 AS col2
----
90
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2940
SELECT MAX( DISTINCT - ( - 86 ) ) * NULLIF ( + + CAST( 99 AS SIGNED ), + 59 ) * + 27 - + - 76 AS col0
----
229954

skipif mysql # not compatible
query I rowsort label-2940
SELECT MAX ( DISTINCT - ( - 86 ) ) * NULLIF ( + + CAST ( 99 AS INTEGER ), + 59 ) * + 27 - + - 76 AS col0
----
229954

onlyif mysql # aggregate syntax: 
query II rowsort label-2941
SELECT NULLIF ( + 7, - 35 ) * - SUM( - 41 ) + 92, - COUNT( * ) AS col1
----
379
-1

skipif mysql # not compatible
query II rowsort label-2941
SELECT NULLIF ( + 7, - 35 ) * - SUM ( - 41 ) + 92, - COUNT ( * ) AS col1
----
379
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT 96 * - 44 * CAST( NULL AS SIGNED ) - + - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT 96 * - 44 * CAST ( NULL AS INTEGER ) - + - 65 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2943
SELECT - 47 DIV - + ( + + 76 ) * + 45
----
0

skipif mysql # not compatible
query I rowsort label-2943
SELECT - 47 / - + ( + + 76 ) * + 45
----
0

query I rowsort
SELECT 91 * + + 9
----
819

query I rowsort
SELECT ALL - 53 * - 13 * - 69 + + - 6 AS col0
----
-47547

query II rowsort
SELECT ALL - 50 AS col0, + 15
----
-50
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2947
SELECT - COUNT( * ) * + + 78 - - 29 col2, COUNT( * )
----
-49
1

skipif mysql # not compatible
query II rowsort label-2947
SELECT - COUNT ( * ) * + + 78 - - 29 col2, COUNT ( * )
----
-49
1

query I rowsort
SELECT DISTINCT 74 * 4
----
296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2949
SELECT - 20 * + COUNT( * ) - + 42 + 62 + 43 + + + 74 + CASE - 97 WHEN 22 + + 59 THEN NULL WHEN + 80 * - + CAST( NULL AS SIGNED ) / + 46 THEN - - ( - - ( - COUNT( * ) ) ) ELSE NULL END + - + 85 - - + 77 col0, 13 + + 37 AS col0
----
NULL
50

skipif mysql # not compatible
query II rowsort label-2949
SELECT - 20 * + COUNT ( * ) - + 42 + 62 + 43 + + + 74 + CASE - 97 WHEN 22 + + 59 THEN NULL WHEN + 80 * - + CAST ( NULL AS INTEGER ) / + 46 THEN - - ( - - ( - COUNT ( * ) ) ) ELSE NULL END + - + 85 - - + 77 col0, 13 + + 37 AS col0
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ALL - + ( + NULLIF ( - COUNT( - COALESCE ( - + 84, 69 ) ), - + 0 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL - + ( + NULLIF ( - COUNT ( - COALESCE ( - + 84, 69 ) ), - + 0 ) ) AS col0
----
1

query I rowsort
SELECT - 58 + - 0
----
-58

query II rowsort
SELECT - 16 AS col0, 3
----
-16
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2953
SELECT - MIN( ALL - - 76 ) + + 6 * - CASE 93 WHEN + + 29 THEN NULL ELSE + 64 END - - - 31 DIV - - 55 - + - 99
----
-361

skipif mysql # not compatible
query I rowsort label-2953
SELECT - MIN ( ALL - - 76 ) + + 6 * - CASE 93 WHEN + + 29 THEN NULL ELSE + 64 END - - - 31 / - - 55 - + - 99
----
-361

query I rowsort
SELECT ALL - - 87 * + 67
----
5829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2955
SELECT DISTINCT 90 + - + ( + CAST( NULL AS SIGNED ) ) + - 49 + + + 29 + ( + + COUNT( * ) ) / + - 39 - COALESCE ( - + 41, - 57 - + 8 * - MIN( ALL 77 ), - - COUNT( * ) - + ( + - 74 ) / COUNT( * ) ) * 48 * 36 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT 90 + - + ( + CAST ( NULL AS INTEGER ) ) + - 49 + + + 29 + ( + + COUNT ( * ) ) / + - 39 - COALESCE ( - + 41, - 57 - + 8 * - MIN ( ALL 77 ), - - COUNT ( * ) - + ( + - 74 ) / COUNT ( * ) ) * 48 * 36 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT + NULLIF ( - 94, MIN( + 60 ) + + 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2956
SELECT + NULLIF ( - 94, MIN ( + 60 ) + + 94 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL + - ( 10 ) + CASE - + 91 WHEN - - CASE + 90 WHEN - - ( + 99 ) * + + 10 THEN - 52 ELSE + 36 * - 58 END * - COUNT( * ) * - 62 THEN NULLIF ( 33, - COUNT( * ) * MAX( DISTINCT + 76 ) ) / 92 * - 24 - + 61 * 99 * + 71 * + + MIN( + 16 ) * - - 93 WHEN - + CASE + 12 WHEN + - 53 THEN - 76 WHEN 51 THEN + 81 ELSE 42 END THEN NULL END + - SUM( ALL - 29 ) + + - 59 * - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + - ( 10 ) + CASE - + 91 WHEN - - CASE + 90 WHEN - - ( + 99 ) * + + 10 THEN - 52 ELSE + 36 * - 58 END * - COUNT ( * ) * - 62 THEN NULLIF ( 33, - COUNT ( * ) * MAX ( DISTINCT + 76 ) ) / 92 * - 24 - + 61 * 99 * + 71 * + + MIN ( + 16 ) * - - 93 WHEN - + CASE + 12 WHEN + - 53 THEN - 76 WHEN 51 THEN + 81 ELSE 42 END THEN NULL END + - SUM ( ALL - 29 ) + + - 59 * - 1 AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( 2, 98 * - + 55 ) * 69 - + 60
----
78

query I rowsort
SELECT ALL + - 95 * 94 * - - 25 + - 81
----
-223331

query I rowsort
SELECT DISTINCT + 7 + + 24 + + - 13
----
18

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

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

query II rowsort
SELECT ALL - 62 + + 95 col1, 66 * - 58 * + 68 * + 94 col1
----
33
-24468576

query I rowsort
SELECT DISTINCT + 8 - - 58
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2964
SELECT SUM( 18 ) - + + 19 + - MIN( - - 41 ), - 73 * + 76 - + + CAST( - - CASE 91 WHEN 86 * + + 90 - + 60 THEN - COUNT( * ) + 96 WHEN + 63 THEN NULL WHEN + 10 THEN NULL END AS SIGNED ) AS col2
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-2964
SELECT SUM ( 18 ) - + + 19 + - MIN ( - - 41 ), - 73 * + 76 - + + CAST ( - - CASE 91 WHEN 86 * + + 90 - + 60 THEN - COUNT ( * ) + 96 WHEN + 63 THEN NULL WHEN + 10 THEN NULL END AS INTEGER ) AS col2
----
-42
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT ALL + 91 DIV - 28
----
-3

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL + 91 / - 28
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT 6 - + - NULLIF ( - COUNT( * ), - 77 + + 19 )
----
5

skipif mysql # not compatible
query I rowsort label-2966
SELECT 6 - + - NULLIF ( - COUNT ( * ), - 77 + + 19 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2967
SELECT MIN( - - 56 ), 34 AS col1
----
56
34

skipif mysql # not compatible
query II rowsort label-2967
SELECT MIN ( - - 56 ), 34 AS col1
----
56
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT MIN( + 9 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-2968
SELECT MIN ( + 9 ) col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT + 22 * 8 * - 45 + 7 DIV - 35
----
-7920

skipif mysql # not compatible
query I rowsort label-2969
SELECT + 22 * 8 * - 45 + 7 / - 35
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT COUNT( * ) * AVG ( ALL + CASE - + 56 WHEN CASE + ( - + 45 ) WHEN + 54 THEN + + 26 END THEN - 9 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT COUNT ( * ) * AVG ( ALL + CASE - + 56 WHEN CASE + ( - + 45 ) WHEN + 54 THEN + + 26 END THEN - 9 END )
----
NULL

query I rowsort
SELECT 6 * - - 22 AS col1
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-2972
SELECT ALL - + NULLIF ( 5, ( + 80 ) ), 55 - - + COALESCE ( + COUNT( * ), COALESCE ( + + 75, - COUNT( * ) ), + + 7 ) + + + 68 + - 92 * + 5 AS col0
----
-5
-336

skipif mysql # not compatible
query II rowsort label-2972
SELECT ALL - + NULLIF ( 5, ( + 80 ) ), 55 - - + COALESCE ( + COUNT ( * ), COALESCE ( + + 75, - COUNT ( * ) ), + + 7 ) + + + 68 + - 92 * + 5 AS col0
----
-5
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2973
SELECT ALL - NULLIF ( COALESCE ( + + CAST( NULL AS SIGNED ), + 20 ), 0 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL - NULLIF ( COALESCE ( + + CAST ( NULL AS INTEGER ), + 20 ), 0 ) AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2974
SELECT ALL ( + + COUNT( * ) ) + + 86 DIV + ( + ( - 12 ) ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL ( + + COUNT ( * ) ) + + 86 / + ( + ( - 12 ) ) AS col0
----
-6

query I rowsort
SELECT + 87 + + - 35 * 26
----
-823

query I rowsort
SELECT + 56 * + 61 AS col1
----
3416

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

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

query I rowsort
SELECT ALL - 16 * + - 30 AS col1
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL + ( + COUNT( DISTINCT + NULLIF ( + + 57, - ( + 35 ) / - 82 + NULLIF ( 8, 17 ) + + 4 ) ) ) + + - 81 * + 9 * 82
----
-59777

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL + ( + COUNT ( DISTINCT + NULLIF ( + + 57, - ( + 35 ) / - 82 + NULLIF ( 8, 17 ) + + 4 ) ) ) + + - 81 * + 9 * 82
----
-59777

query II rowsort
SELECT DISTINCT 74 + + NULLIF ( 95, - 6 ), 5 * - 75 col1
----
169
-375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2981
SELECT ALL - COALESCE ( - 45, CAST( NULL AS SIGNED ) * + 84 + + 34 ) + NULLIF ( - - COUNT( * ), - 12 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL - COALESCE ( - 45, CAST ( NULL AS INTEGER ) * + 84 + + 34 ) + NULLIF ( - - COUNT ( * ), - 12 ) AS col1
----
46

query I rowsort
SELECT 19 * - - 53 + 12
----
1019

query I rowsort
SELECT DISTINCT + 97 + - 35 AS col1
----
62

query I rowsort
SELECT ALL 42 + - 38 AS col0
----
4

query I rowsort
SELECT 52 + - 57
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2986
SELECT - 64 AS col0, + CAST( NULL AS SIGNED )
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-2986
SELECT - 64 AS col0, + CAST ( NULL AS INTEGER )
----
-64
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2987
SELECT + COUNT( * ) + - 10 - COUNT( * ) * + 56 * - 11 AS col1, - 88
----
607
-88

skipif mysql # not compatible
query II rowsort label-2987
SELECT + COUNT ( * ) + - 10 - COUNT ( * ) * + 56 * - 11 AS col1, - 88
----
607
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2988
SELECT - ( + + CASE - COUNT( * ) WHEN 4 THEN - 36 END ) - + 9 * + - COALESCE ( 67, - - 52 ) / - + CAST( NULL AS SIGNED ) AS col0, - 89 + - + 38 + - - CASE 13 WHEN - - 42 THEN - 22 * - COUNT( * ) WHEN + 99 THEN 9 + - 94 END + - 76 * - - 74 + ( ( - 85 ) ) * 74 * - + AVG ( + + 45 ) + - 12 * - CAST( NULL AS SIGNED ) * - 10 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2988
SELECT - ( + + CASE - COUNT ( * ) WHEN 4 THEN - 36 END ) - + 9 * + - COALESCE ( 67, - - 52 ) / - + CAST ( NULL AS INTEGER ) AS col0, - 89 + - + 38 + - - CASE 13 WHEN - - 42 THEN - 22 * - COUNT ( * ) WHEN + 99 THEN 9 + - 94 END + - 76 * - - 74 + ( ( - 85 ) ) * 74 * - + AVG ( + + 45 ) + - 12 * - CAST ( NULL AS INTEGER ) * - 10 AS col2
----
NULL
NULL

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

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

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

query I rowsort
SELECT DISTINCT 41 - - 65 * + 76
----
4981

query II rowsort
SELECT - 29 AS col2, - 94 AS col2
----
-29
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-2993
SELECT ALL COUNT( * ) AS col2, + 89 * + + 67 AS col1
----
1
5963

skipif mysql # not compatible
query II rowsort label-2993
SELECT ALL COUNT ( * ) AS col2, + 89 * + + 67 AS col1
----
1
5963

query I rowsort
SELECT ALL + 4 * - 13
----
-52

query I rowsort
SELECT - 46 + 1 + ( 10 ) col2
----
-35

query I rowsort
SELECT - COALESCE ( - 83, - + 72 * - 40 + - 57 ) AS col1
----
83

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

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

query I rowsort
SELECT - 98 * + 8 * + + 30 AS col0
----
-23520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2999
SELECT ALL COALESCE ( + - ( + ( + 74 ) ), - - COUNT( * ) DIV - 81 * 40 )
----
-74

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL COALESCE ( + - ( + ( + 74 ) ), - - COUNT ( * ) / - 81 * 40 )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3000
SELECT - 28 + + - CASE + AVG ( DISTINCT - 17 ) WHEN - 58 THEN + 8 * + + 63 WHEN 55 + + 49 * - - NULLIF ( - + CASE - - 35 WHEN + SUM( ALL - 27 ) * 33 * - 7 - - 1 THEN + ( + + 40 ) END, + 64 * 16 + CAST( + MAX( DISTINCT - 95 ) AS SIGNED ) ) THEN - 50 END + - CAST( + - 22 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT - 28 + + - CASE + AVG ( DISTINCT - 17 ) WHEN - 58 THEN + 8 * + + 63 WHEN 55 + + 49 * - - NULLIF ( - + CASE - - 35 WHEN + SUM ( ALL - 27 ) * 33 * - 7 - - 1 THEN + ( + + 40 ) END, + 64 * 16 + CAST ( + MAX ( DISTINCT - 95 ) AS INTEGER ) ) THEN - 50 END + - CAST ( + - 22 AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + 92 + 19 AS col1
----
111

onlyif mysql # DIV for integer division: 
query II rowsort label-3002
SELECT ( - - ( 70 ) ), 33 DIV + + 55 AS col2
----
70
0

skipif mysql # not compatible
query II rowsort label-3002
SELECT ( - - ( 70 ) ), 33 / + + 55 AS col2
----
70
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT - 63 * - SUM( + NULLIF ( - 51, - - 46 ) )
----
-3213

skipif mysql # not compatible
query I rowsort label-3003
SELECT - 63 * - SUM ( + NULLIF ( - 51, - - 46 ) )
----
-3213

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT DISTINCT + MAX( + - 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT + MAX ( + - 69 ) AS col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3005
SELECT DISTINCT - 42 DIV + COALESCE ( ( + 12 ), COUNT( * ) + ( - 4 ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT - 42 / + COALESCE ( ( + 12 ), COUNT ( * ) + ( - 4 ) ) AS col0
----
-3

query I rowsort
SELECT NULLIF ( - 57, + 74 ) AS col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3007
SELECT 61 DIV 4 + 25
----
40

skipif mysql # not compatible
query I rowsort label-3007
SELECT 61 / 4 + 25
----
40

query I rowsort
SELECT ALL + 39 * NULLIF ( ( + ( - 72 ) ), + 72 ) + + 35
----
-2773

query I rowsort
SELECT ALL - 56 * + 7 + + 18 AS col1
----
-374

query I rowsort
SELECT - 38 * 31 AS col2
----
-1178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3011
SELECT MIN( - 23 ) DIV - 86 - + MIN( ALL 56 ) * 88 AS col1
----
-4928

skipif mysql # not compatible
query I rowsort label-3011
SELECT MIN ( - 23 ) / - 86 - + MIN ( ALL 56 ) * 88 AS col1
----
-4928

query I rowsort
SELECT + 20 + - 16
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3013
SELECT COALESCE ( COUNT( * ), + 57 + 13 DIV + 1, 45 * CASE + 7 * ( + NULLIF ( 71, + 93 + COUNT( 44 ) ) ) WHEN 46 + 89 THEN + 90 WHEN AVG ( + 42 ) THEN - 88 END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3013
SELECT COALESCE ( COUNT ( * ), + 57 + 13 / + 1, 45 * CASE + 7 * ( + NULLIF ( 71, + 93 + COUNT ( 44 ) ) ) WHEN 46 + 89 THEN + 90 WHEN AVG ( + 42 ) THEN - 88 END ) AS col0
----
1

query I rowsort
SELECT ALL 17 * 29 + 82
----
575

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

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

query I rowsort
SELECT + ( COALESCE ( 77, 13 * + 71 ) ) * 38
----
2926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3017
SELECT ALL 54 * CAST( + COALESCE ( + COUNT( * ), 66 - 75, - 53 + CASE 5 + + 49 WHEN 99 THEN + 52 / + 60 ELSE NULL END * + COUNT( + 37 ) ) AS SIGNED ) + + 57 col1
----
111

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL 54 * CAST ( + COALESCE ( + COUNT ( * ), 66 - 75, - 53 + CASE 5 + + 49 WHEN 99 THEN + 52 / + 60 ELSE NULL END * + COUNT ( + 37 ) ) AS INTEGER ) + + 57 col1
----
111

query I rowsort
SELECT ALL 60 * - 40 + 48
----
-2352

query I rowsort
SELECT - 7 * - 78
----
546

onlyif mysql # DIV for integer division: 
query I rowsort label-3020
SELECT + 24 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-3020
SELECT + 24 / + 87
----
0

query I rowsort
SELECT + 30 + + 36 AS col1
----
66

query I rowsort
SELECT DISTINCT 36 * - 26
----
-936

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3024
SELECT ALL - 8 DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL - 8 / - 75 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3025
SELECT + 77 * NULLIF ( COUNT( * ), 4 * + 85 + - ( CAST( NULL AS SIGNED ) ) ) col2
----
77

skipif mysql # not compatible
query I rowsort label-3025
SELECT + 77 * NULLIF ( COUNT ( * ), 4 * + 85 + - ( CAST ( NULL AS INTEGER ) ) ) col2
----
77

query I rowsort
SELECT DISTINCT 41 - + 98
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT SUM( DISTINCT + 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3027
SELECT SUM ( DISTINCT + 11 ) AS col2
----
11

query I rowsort
SELECT DISTINCT 23 - - 32 * 21
----
695

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

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT SUM ( DISTINCT 49 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT + 58 DIV 28 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3030
SELECT + 58 / 28 AS col1
----
2

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

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

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

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

query I rowsort
SELECT - 40 * ( 38 * 48 )
----
-72960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3034
SELECT ALL SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 4 * 97
----
388

query I rowsort
SELECT + 63 + 4 * + 84 AS col2
----
399

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT - 57 - ( COUNT( * ) ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-3039
SELECT - 57 - ( COUNT ( * ) ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT DISTINCT - MIN( DISTINCT NULLIF ( 57, 85 ) ) + + 40 * + 19
----
703

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT - MIN ( DISTINCT NULLIF ( 57, 85 ) ) + + 40 * + 19
----
703

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3042
SELECT CAST( NULL AS SIGNED ) / 76 + - ( - 70 ) * + ( + 66 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT CAST ( NULL AS INTEGER ) / 76 + - ( - 70 ) * + ( + 66 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT + - 35 + + 68 DIV + 68 col0
----
-34

skipif mysql # not compatible
query I rowsort label-3043
SELECT + - 35 + + 68 / + 68 col0
----
-34

query I rowsort
SELECT + NULLIF ( - ( + 23 ), 4 + 5 * - 30 ) AS col2
----
-23

query I rowsort
SELECT - 9 * - 30 + 31 * 75 AS col0
----
2595

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

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 90 + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3047
SELECT MAX( ALL 27 ) DIV + 47 + - 1 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3047
SELECT MAX ( ALL 27 ) / + 47 + - 1 col0
----
-1

query I rowsort
SELECT 80 * 91 - + 70 * - 78
----
12740

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT DISTINCT - CASE + 55 WHEN - 73 THEN 61 * 58 ELSE NULL END / + 38 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT - CASE + 55 WHEN - 73 THEN 61 * 58 ELSE NULL END / + 38 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3050
SELECT ALL - 59 DIV COALESCE ( + 12 + - COALESCE ( COUNT( * ) + 48, 97, + 12 ) * + 52, 52 * - 66, + 60, - 82 ) + 73
----
73

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - 59 / COALESCE ( + 12 + - COALESCE ( COUNT ( * ) + 48, 97, + 12 ) * + 52, 52 * - 66, + 60, - 82 ) + 73
----
73

query I rowsort
SELECT ALL - - ( - 76 ) - 71 AS col2
----
-147

query I rowsort
SELECT DISTINCT - - 75 * - 45 AS col2
----
-3375

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT 94 + MAX( ALL + 74 ) AS col0
----
168

skipif mysql # not compatible
query I rowsort label-3053
SELECT 94 + MAX ( ALL + 74 ) AS col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT + 76 * - CASE + 38 * 62 WHEN COALESCE ( + 24, + 16 ) / + ( - NULLIF ( COUNT( * ), 76 * COUNT( * ) + COUNT( * ) ) ) THEN + 99 * 88 + - 75 * + 35 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT + 76 * - CASE + 38 * 62 WHEN COALESCE ( + 24, + 16 ) / + ( - NULLIF ( COUNT ( * ), 76 * COUNT ( * ) + COUNT ( * ) ) ) THEN + 99 * 88 + - 75 * + 35 END AS col1
----
NULL

query I rowsort
SELECT ALL - + 25 * 78
----
-1950

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3057
SELECT ALL + 76 - - COUNT( * ) + 69 DIV 54 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + 76 - - COUNT ( * ) + 69 / 54 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT DISTINCT - 22 * - - COUNT( * ) * + 95
----
-2090

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT - 22 * - - COUNT ( * ) * + 95
----
-2090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3059
SELECT COUNT( DISTINCT - 61 ) + 52 DIV COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-3059
SELECT COUNT ( DISTINCT - 61 ) + 52 / COUNT ( * )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT DISTINCT - NULLIF ( + 47, COUNT( * ) * - 85 )
----
-47

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT - NULLIF ( + 47, COUNT ( * ) * - 85 )
----
-47

query I rowsort
SELECT ALL - 4 * 57
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ( + 11 ) * CASE 71 WHEN + 96 THEN + 92 - 17 ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT ( + 11 ) * CASE 71 WHEN + 96 THEN + 92 - 17 ELSE NULL END + + COUNT ( * )
----
NULL

query I rowsort
SELECT NULLIF ( - 93, + 7 ) + 28 col0
----
-65

query I rowsort
SELECT 80 * + 24
----
1920

query I rowsort
SELECT 15 + + - 61
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3066
SELECT DISTINCT 46 DIV - MIN( ALL - 98 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT 46 / - MIN ( ALL - 98 ) AS col2
----
0

query I rowsort
SELECT + 4 * + - 99 + 38
----
-358

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

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

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

skipif mysql # not compatible
query I rowsort label-3069
SELECT COUNT ( * ) / + - 66 * - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ALL 81 * 40 * - SUM( ALL NULLIF ( - 94, 99 * + 2 - + 66 * 79 ) ) AS col2
----
304560

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL 81 * 40 * - SUM ( ALL NULLIF ( - 94, 99 * + 2 - + 66 * 79 ) ) AS col2
----
304560

query I rowsort
SELECT 5 * - - COALESCE ( 90, 6, - 26, + 22 )
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT COUNT( * ) + + - 30 + 37 * 61
----
2228

skipif mysql # not compatible
query I rowsort label-3072
SELECT COUNT ( * ) + + - 30 + 37 * 61
----
2228

onlyif mysql # DIV for integer division: 
query I rowsort label-3073
SELECT DISTINCT - 60 DIV + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT - 60 / + 90 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3074
SELECT ALL CAST( 0 AS SIGNED ) + + 95 * 73 AS col2
----
6935

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL CAST ( 0 AS INTEGER ) + + 95 * 73 AS col2
----
6935

query I rowsort
SELECT ( - 31 ) + + 29 AS col2
----
-2

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

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

query I rowsort
SELECT DISTINCT 4 + + 23 AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3078
SELECT ALL 27 + + - 61 + - NULLIF ( 47, 10 + - CAST( NULL AS SIGNED ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL 27 + + - 61 + - NULLIF ( 47, 10 + - CAST ( NULL AS INTEGER ) ) AS col2
----
-81

query I rowsort
SELECT 40 + - + 26 AS col0
----
14

query I rowsort
SELECT ALL 39 + 41 * + 85
----
3524

query I rowsort
SELECT - NULLIF ( + - ( 40 ), - 22 * 66 + - 28 ) AS col1
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT 83 * MIN( - 88 ) * + 4 + + 65
----
-29151

skipif mysql # not compatible
query I rowsort label-3083
SELECT 83 * MIN ( - 88 ) * + 4 + + 65
----
-29151

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

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

query I rowsort
SELECT DISTINCT + 62 + - 27 + - 63 * + 93 col1
----
-5824

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT COALESCE ( + + COUNT( * ), 73 * SUM( + 69 ) + 31 )
----
1

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT COALESCE ( + + COUNT ( * ), 73 * SUM ( + 69 ) + 31 )
----
1

query I rowsort
SELECT + 66 * - 3 + + 40 * - ( + 99 )
----
-4158

query I rowsort
SELECT ALL - - ( - 70 ) AS col2
----
-70

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT + SUM( DISTINCT - 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3091
SELECT + SUM ( DISTINCT - 17 ) AS col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3092
SELECT + 2 DIV + 64 + 27 - SUM( ALL COALESCE ( 70, + 50 * ( ( 49 ) ) ) + 7 )
----
-50

skipif mysql # not compatible
query I rowsort label-3092
SELECT + 2 / + 64 + 27 - SUM ( ALL COALESCE ( 70, + 50 * ( ( 49 ) ) ) + 7 )
----
-50

query I rowsort
SELECT 22 * + 6 * - 48
----
-6336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT 9 * + + 59 * CAST( + 23 AS SIGNED )
----
12213

skipif mysql # not compatible
query I rowsort label-3094
SELECT 9 * + + 59 * CAST ( + 23 AS INTEGER )
----
12213

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3095
SELECT - - ( CAST( 58 AS SIGNED ) ) * + 51 + 96 DIV 27 AS col1
----
2961

skipif mysql # not compatible
query I rowsort label-3095
SELECT - - ( CAST ( 58 AS INTEGER ) ) * + 51 + 96 / 27 AS col1
----
2961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3096
SELECT ALL COUNT( * ) - CASE CAST( NULL AS SIGNED ) WHEN COUNT( * ) + 11 THEN NULL ELSE 77 END col2
----
-76

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL COUNT ( * ) - CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) + 11 THEN NULL ELSE 77 END col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3097
SELECT ALL - CASE 40 WHEN 29 / - 11 THEN 58 + MAX( DISTINCT 52 ) ELSE + ( CAST( NULL AS SIGNED ) ) - 90 / 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL - CASE 40 WHEN 29 / - 11 THEN 58 + MAX ( DISTINCT 52 ) ELSE + ( CAST ( NULL AS INTEGER ) ) - 90 / 55 END
----
NULL

query I rowsort
SELECT ALL + 45 - - 74 col1
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-3099
SELECT 90 DIV - 66 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3099
SELECT 90 / - 66 AS col1
----
-1

query II rowsort
SELECT 20 col2, + 61
----
20
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3101
SELECT DISTINCT + 63 DIV + 89 col1
----
0

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT + 63 / + 89 col1
----
0

query I rowsort
SELECT DISTINCT + 18 * - + 62
----
-1116

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT ALL + 45 DIV - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL + 45 / - 69 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3104
SELECT 80 DIV COUNT( * ) * + - 99 * 73 AS col2
----
-578160

skipif mysql # not compatible
query I rowsort label-3104
SELECT 80 / COUNT ( * ) * + - 99 * 73 AS col2
----
-578160

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT DISTINCT - ( - COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT - ( - COUNT ( * ) ) col2
----
1

query I rowsort
SELECT ALL - 73 * 49
----
-3577

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

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

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

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

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

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

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

query I rowsort
SELECT 15 * - 17
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL - MIN( 47 ) + - - 11 col2
----
-36

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL - MIN ( 47 ) + - - 11 col2
----
-36

query I rowsort
SELECT 21 - + 36
----
-15

query II rowsort
SELECT 39 AS col1, 86 AS col1
----
39
86

query I rowsort
SELECT DISTINCT - 55 + - + 80
----
-135

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT ALL 28 + - - ( - CAST( 46 AS SIGNED ) ) - 68
----
-86

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL 28 + - - ( - CAST ( 46 AS INTEGER ) ) - 68
----
-86

query I rowsort
SELECT 40 * 34 * COALESCE ( 92, + 28, 69 ) AS col1
----
125120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT 21 + ( MIN( ( ( - 19 ) ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-3120
SELECT 21 + ( MIN ( ( ( - 19 ) ) ) )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3121
SELECT DISTINCT 8 AS col1, CASE + 42 WHEN + COUNT( * ) THEN - 98 WHEN 42 THEN NULL END
----
8
NULL

skipif mysql # not compatible
query II rowsort label-3121
SELECT DISTINCT 8 AS col1, CASE + 42 WHEN + COUNT ( * ) THEN - 98 WHEN 42 THEN NULL END
----
8
NULL

query I rowsort
SELECT - NULLIF ( 4, - 43 ) + - 19 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT COUNT( 96 ) * - CASE - 35 WHEN - 26 * - COALESCE ( - 17, 26 ) THEN NULL WHEN + NULLIF ( - 16, - NULLIF ( - 73, + ( 56 ) + 45 * 83 ) * 90 ) THEN NULL ELSE 42 * + 58 END col1
----
-2436

skipif mysql # not compatible
query I rowsort label-3123
SELECT COUNT ( 96 ) * - CASE - 35 WHEN - 26 * - COALESCE ( - 17, 26 ) THEN NULL WHEN + NULLIF ( - 16, - NULLIF ( - 73, + ( 56 ) + 45 * 83 ) * 90 ) THEN NULL ELSE 42 * + 58 END col1
----
-2436

query I rowsort
SELECT 98 + 1 + + 75
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-3125
SELECT ALL + ( + - 1 ) + - 38 + - 74 DIV 97 col1
----
-39

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL + ( + - 1 ) + - 38 + - 74 / 97 col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT - - NULLIF ( COUNT( * ), - ( 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3126
SELECT - - NULLIF ( COUNT ( * ), - ( 37 ) )
----
1

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

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

query I rowsort
SELECT ALL + 72 * + 98
----
7056

query I rowsort
SELECT 67 + + - 0 + + + 37 AS col2
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT ALL 47 - + + 26 * + - CAST( NULL AS SIGNED ) * + 71
----
NULL

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

query I rowsort
SELECT - 17 * - 33
----
561

query II rowsort
SELECT ALL + - 57 AS col2, 2 + - + 93 * + 34 AS col1
----
-57
-3160

query I rowsort
SELECT + 31 + - - NULLIF ( - - 50, + ( 97 ) * 99 + - 10 / - 10 )
----
81

query I rowsort
SELECT + 0 * 16
----
0

query II rowsort
SELECT ALL + 88 AS col1, 65 AS col0
----
88
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT + 62 * - COUNT( * ) * COUNT( 11 ) * + COUNT( * ) + 51 + MAX( - 38 )
----
-49

skipif mysql # not compatible
query I rowsort label-3136
SELECT + 62 * - COUNT ( * ) * COUNT ( 11 ) * + COUNT ( * ) + 51 + MAX ( - 38 )
----
-49

query II rowsort
SELECT - 76 AS col1, + 21 col0
----
-76
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + - 51 * + 90 + ( + SUM( - 43 ) )
----
-4633

skipif mysql # not compatible
query I rowsort label-3138
SELECT + - 51 * + 90 + ( + SUM ( - 43 ) )
----
-4633

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

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

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

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

query I rowsort
SELECT DISTINCT + - 8 * - 2 AS col2
----
16

query I rowsort
SELECT + 30 + + 12 AS col2
----
42

query I rowsort
SELECT 50 * + COALESCE ( - 23, 40 ) + 51 AS col2
----
-1099

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT DISTINCT MIN( ALL - 2 ) * 41 * + 53
----
-4346

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT MIN ( ALL - 2 ) * 41 * + 53
----
-4346

query I rowsort
SELECT ALL - 22 * 67 + - ( - 12 ) + 61 * - 6 * 59 AS col2
----
-23056

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT MIN( + 94 ) * - 95 + + 28 + 30
----
-8872

skipif mysql # not compatible
query I rowsort label-3146
SELECT MIN ( + 94 ) * - 95 + + 28 + 30
----
-8872

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL - 72 * - 66 + - + 61 + + + ( + MIN( 43 ) ) AS col2
----
4734

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL - 72 * - 66 + - + 61 + + + ( + MIN ( 43 ) ) AS col2
----
4734

query I rowsort
SELECT + ( - - 57 ) + - 46 - 70
----
-59

query I rowsort
SELECT - 17 * + 63 AS col2
----
-1071

query I rowsort
SELECT + 88 + + 7 + ( + + 3 )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3152
SELECT ALL + ( COUNT( * ) ) * - + 94 + + + 0 + + COALESCE ( COUNT( * ), 69 + 55 DIV 3, 53 )
----
-93

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL + ( COUNT ( * ) ) * - + 94 + + + 0 + + COALESCE ( COUNT ( * ), 69 + 55 / 3, 53 )
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-3153
SELECT DISTINCT - COALESCE ( + - 5, - 36, - 45 + + 22 DIV + ( - 47 ), - 80 ) * 68 + + 76 AS col2
----
416

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT - COALESCE ( + - 5, - 36, - 45 + + 22 / + ( - 47 ), - 80 ) * 68 + + 76 AS col2
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL - NULLIF ( + 50, - + NULLIF ( 95, 78 ) / 94 + - ( MIN( - 2 ) ) / - 2 ) + 34 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL - NULLIF ( + 50, - + NULLIF ( 95, 78 ) / 94 + - ( MIN ( - 2 ) ) / - 2 ) + 34 AS col0
----
-16

query I rowsort
SELECT 5 * + 11 + + 11
----
66

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3157
SELECT ALL + 15 DIV + - COUNT( * ) AS col1, + 44 * - 92 AS col0
----
-15
-4048

skipif mysql # not compatible
query II rowsort label-3157
SELECT ALL + 15 / + - COUNT ( * ) AS col1, + 44 * - 92 AS col0
----
-15
-4048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3158
SELECT DISTINCT + CASE + 25 WHEN - ( + 89 ) THEN NULL WHEN + CAST( - 34 AS SIGNED ) THEN 33 * COUNT( * ) - - 53 * - 43 ELSE NULL END / - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT + CASE + 25 WHEN - ( + 89 ) THEN NULL WHEN + CAST ( - 34 AS INTEGER ) THEN 33 * COUNT ( * ) - - 53 * - 43 ELSE NULL END / - 75 AS col0
----
NULL

query I rowsort
SELECT ALL - 42 + + 43
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3160
SELECT - 21 * COALESCE ( 67, 29 ) * SUM( CAST( - 95 AS SIGNED ) DIV 13 ) AS col2
----
9849

skipif mysql # not compatible
query I rowsort label-3160
SELECT - 21 * COALESCE ( 67, 29 ) * SUM ( CAST ( - 95 AS INTEGER ) / 13 ) AS col2
----
9849

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT DISTINCT + NULLIF ( CASE - ( 18 ) WHEN 14 THEN NULL WHEN + 63 THEN + 61 ELSE NULL END, 62 ) + COUNT( * ) * - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT + NULLIF ( CASE - ( 18 ) WHEN 14 THEN NULL WHEN + 63 THEN + 61 ELSE NULL END, 62 ) + COUNT ( * ) * - 64 AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 77, 20 ) AS col1
----
77

query I rowsort
SELECT ALL + 62 - + 87 - + 35 * - - 57
----
-2020

query II rowsort
SELECT DISTINCT + + 44 - - 98, ( + 72 ) AS col1
----
142
72

query I rowsort
SELECT - 49 * + 56 * 38
----
-104272

onlyif mysql # DIV for integer division: 
query I rowsort label-3166
SELECT - - 46 DIV 46 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3166
SELECT - - 46 / 46 AS col0
----
1

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

skipif mysql # not compatible
query II rowsort label-3167
SELECT ALL - MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0, - 91 * COUNT ( * )
----
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT + CASE + - 7 WHEN MAX( ALL - + 39 ) THEN - ( 41 ) WHEN ( + 53 ) * - 32 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT + CASE + - 7 WHEN MAX ( ALL - + 39 ) THEN - ( 41 ) WHEN ( + 53 ) * - 32 THEN NULL ELSE NULL END AS col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3170
SELECT DISTINCT + 58 * + 52 + + COUNT( * ) * - 37 DIV 91
----
3016

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT + 58 * + 52 + + COUNT ( * ) * - 37 / 91
----
3016

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

query I rowsort
SELECT ALL - - 27 * + 62 AS col0
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT DISTINCT - 67 * - - 45 * + MIN( + + 26 ) + ( + 87 + - 72 )
----
-78375

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT - 67 * - - 45 * + MIN ( + + 26 ) + ( + 87 + - 72 )
----
-78375

query II rowsort
SELECT DISTINCT + 48 AS col1, 59 AS col1
----
48
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3175
SELECT ALL + 95 DIV 21 + - 18
----
-14

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL + 95 / 21 + - 18
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3176
SELECT CAST( 32 AS SIGNED ) * + - SUM( - 87 ) - - - 18 AS col2
----
2766

skipif mysql # not compatible
query I rowsort label-3176
SELECT CAST ( 32 AS INTEGER ) * + - SUM ( - 87 ) - - - 18 AS col2
----
2766

query I rowsort
SELECT + COALESCE ( + - 87, 55 * - - 93 )
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3178
SELECT + ( + + CAST( NULL AS DECIMAL ) ) + - ( - 18 ) * - 58 - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT + ( + + CAST ( NULL AS REAL ) ) + - ( - 18 ) * - 58 - 1 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3179
SELECT + CAST( - ( + 38 ) AS SIGNED ) AS col2, 51 - + 59
----
-38
-8

skipif mysql # not compatible
query II rowsort label-3179
SELECT + CAST ( - ( + 38 ) AS INTEGER ) AS col2, 51 - + 59
----
-38
-8

query I rowsort
SELECT + 88 * - ( + 87 ) AS col1
----
-7656

query I rowsort
SELECT ALL + 51 * - 0 + - ( - 73 ) + 0 * + 76
----
73

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3183
SELECT ALL + 12 * 82 + + COUNT( DISTINCT + 44 ) + 82 + CASE COUNT( * ) + + 11 / - 78 WHEN + 81 THEN COALESCE ( + 80, + 3, CAST( - 88 AS SIGNED ) * 72 + + 87 ) * 52 + - 3 END * COUNT( * ) * ( 44 * 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL + 12 * 82 + + COUNT ( DISTINCT + 44 ) + 82 + CASE COUNT ( * ) + + 11 / - 78 WHEN + 81 THEN COALESCE ( + 80, + 3, CAST ( - 88 AS INTEGER ) * 72 + + 87 ) * 52 + - 3 END * COUNT ( * ) * ( 44 * 53 ) AS col2
----
NULL

query I rowsort
SELECT + 58 * - 88
----
-5104

query I rowsort
SELECT ALL + 35 * 83 + + - 22 * + 39 col1
----
2047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3186
SELECT DISTINCT ( + SUM( + + 86 ) ) * CAST( - 87 AS SIGNED ) + - COUNT( * )
----
-7483

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT ( + SUM ( + + 86 ) ) * CAST ( - 87 AS INTEGER ) + - COUNT ( * )
----
-7483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3187
SELECT CASE + CAST( - NULLIF ( - - 57, COUNT( * ) ) AS SIGNED ) WHEN 69 THEN - 52 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT CASE + CAST ( - NULLIF ( - - 57, COUNT ( * ) ) AS INTEGER ) WHEN 69 THEN - 52 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT CASE + MIN( ALL - 72 ) WHEN + + 84 THEN - 51 / 54 + - 36 WHEN + 37 * - COUNT( * ) + 4 * 51 THEN 87 WHEN 90 THEN NULL ELSE - 65 - - 57 END AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3188
SELECT CASE + MIN ( ALL - 72 ) WHEN + + 84 THEN - 51 / 54 + - 36 WHEN + 37 * - COUNT ( * ) + 4 * 51 THEN 87 WHEN 90 THEN NULL ELSE - 65 - - 57 END AS col0
----
-8

query I rowsort
SELECT ALL - 35 * 88 + - 99 AS col0
----
-3179

query I rowsort
SELECT + 22 * + 89 * - - 60 AS col0
----
117480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3191
SELECT - NULLIF ( - 71, CAST( NULL AS SIGNED ) ) * + 24
----
1704

skipif mysql # not compatible
query I rowsort label-3191
SELECT - NULLIF ( - 71, CAST ( NULL AS INTEGER ) ) * + 24
----
1704

query I rowsort
SELECT NULLIF ( ( - ( + 89 ) ), + 98 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT NULLIF ( 42, - 11 * COUNT( + + 44 ) )
----
42

skipif mysql # not compatible
query I rowsort label-3193
SELECT NULLIF ( 42, - 11 * COUNT ( + + 44 ) )
----
42

query I rowsort
SELECT ALL CASE - 10 WHEN 45 + + + 30 + + 16 + 43 THEN 27 WHEN 92 * 20 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 80 * 33 * + 60 AS col0
----
158400

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

skipif mysql # not compatible
query I rowsort label-3196
SELECT + 92 * - CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT ALL 54 * ( 8 ) - 33
----
399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3199
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN AVG ( ALL + 94 ) * + 51 + - 26 THEN 56 + - 15 / 56 ELSE CAST( NULL AS SIGNED ) END * 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3199
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN AVG ( ALL + 94 ) * + 51 + - 26 THEN 56 + - 15 / 56 ELSE CAST ( NULL AS INTEGER ) END * 40 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - + 79 * + 42
----
-3318

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT 38 + + + 56 DIV - 59
----
38

skipif mysql # not compatible
query I rowsort label-3202
SELECT 38 + + + 56 / - 59
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT 15 * 64 / + 59 + + CASE + 56 WHEN 29 THEN - 26 - - 38 WHEN + 45 * COUNT( * ) THEN - COUNT( * ) * 27 + 9 ELSE NULL END + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT 15 * 64 / + 59 + + CASE + 56 WHEN 29 THEN - 26 - - 38 WHEN + 45 * COUNT ( * ) THEN - COUNT ( * ) * 27 + 9 ELSE NULL END + - 86
----
NULL

query I rowsort
SELECT DISTINCT + 56 * + 52 * + + 82 + + - 69
----
238715

onlyif mysql # aggregate syntax: 
query II rowsort label-3205
SELECT ALL + - 99 * + COUNT( * ) + - 17, COUNT( * ) - - + 35 AS col0
----
-116
36

skipif mysql # not compatible
query II rowsort label-3205
SELECT ALL + - 99 * + COUNT ( * ) + - 17, COUNT ( * ) - - + 35 AS col0
----
-116
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL + 29 * + - 50 * COALESCE ( + 0, - - 3 * - MIN( DISTINCT 17 * - 21 ) ) * 8 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + 29 * + - 50 * COALESCE ( + 0, - - 3 * - MIN ( DISTINCT 17 * - 21 ) ) * 8 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3207
SELECT ALL - 65 + - 92 + - NULLIF ( - 37, - COUNT( * ) * - 18 + COUNT( * ) ) DIV 97
----
-157

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL - 65 + - 92 + - NULLIF ( - 37, - COUNT ( * ) * - 18 + COUNT ( * ) ) / 97
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT 53 + COALESCE ( - - 39, 82 * COALESCE ( 42, 20 * COUNT( * ) ), 19 * - 98 ) * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-3208
SELECT 53 + COALESCE ( - - 39, 82 * COALESCE ( 42, 20 * COUNT ( * ) ), 19 * - 98 ) * + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3209
SELECT 77 col1, - COUNT( * ) DIV + 87 AS col1
----
77
0

skipif mysql # not compatible
query II rowsort label-3209
SELECT 77 col1, - COUNT ( * ) / + 87 AS col1
----
77
0

query I rowsort
SELECT DISTINCT + - 62 + - + ( - 90 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL - SUM( - 79 ) + + 34 + - - 76 + - 97 * + 54 AS col0
----
-5049

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL - SUM ( - 79 ) + + 34 + - - 76 + - 97 * + 54 AS col0
----
-5049

query I rowsort
SELECT ALL + + 12 + - + 3
----
9

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

skipif mysql # not compatible
query I rowsort label-3213
SELECT + MAX ( - 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT DISTINCT + SUM( DISTINCT + 84 ) + + + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + SUM ( DISTINCT + 84 ) + + + COUNT ( * )
----
85

query I rowsort
SELECT ALL + 87 + - 81
----
6

query I rowsort
SELECT DISTINCT 17 * + 94 AS col1
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT ALL 35 + + ( - - COUNT( * ) )
----
36

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL 35 + + ( - - COUNT ( * ) )
----
36

query I rowsort
SELECT 25 * + 86 AS col2
----
2150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3219
SELECT ALL - 14 * NULLIF ( - MIN( DISTINCT - CAST( 99 AS SIGNED ) ), + CAST( 56 AS SIGNED ) / - COUNT( * ) ) AS col1
----
-1386

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL - 14 * NULLIF ( - MIN ( DISTINCT - CAST ( 99 AS INTEGER ) ), + CAST ( 56 AS INTEGER ) / - COUNT ( * ) ) AS col1
----
-1386

query I rowsort
SELECT NULLIF ( - 48, 54 ) + - ( + - 83 ) col0
----
35

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

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

query I rowsort
SELECT DISTINCT - ( 13 ) * - 77 + + 79 + 24 * 58 col0
----
2472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3223
SELECT ALL + COUNT( * ) + + 73 + + - CAST( + 54 AS SIGNED ) + COUNT( * ) * - 58 + COALESCE ( - ( 11 ), MIN( - 85 ), + 88 + + NULLIF ( 8 + 7, + 96 * 61 ) * 20 )
----
-49

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL + COUNT ( * ) + + 73 + + - CAST ( + 54 AS INTEGER ) + COUNT ( * ) * - 58 + COALESCE ( - ( 11 ), MIN ( - 85 ), + 88 + + NULLIF ( 8 + 7, + 96 * 61 ) * 20 )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-3224
SELECT 15 * ( - + 14 ) * - COUNT( * ), + 10 AS col1
----
210
10

skipif mysql # not compatible
query II rowsort label-3224
SELECT 15 * ( - + 14 ) * - COUNT ( * ), + 10 AS col1
----
210
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT 42 * 91 * - 38 + - COUNT( * ) - 95
----
-145332

skipif mysql # not compatible
query I rowsort label-3225
SELECT 42 * 91 * - 38 + - COUNT ( * ) - 95
----
-145332

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT COALESCE ( 44, - 56 ) + + 65 * + NULLIF ( - - 0, + NULLIF ( 92, + 27 * - 36 ) * - COUNT( * ) + ( + 24 ) )
----
44

skipif mysql # not compatible
query I rowsort label-3226
SELECT COALESCE ( 44, - 56 ) + + 65 * + NULLIF ( - - 0, + NULLIF ( 92, + 27 * - 36 ) * - COUNT ( * ) + ( + 24 ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT DISTINCT 10 - - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT 10 - - COUNT ( * )
----
11

query I rowsort
SELECT DISTINCT + 34 * + - 41 * - 29 AS col0
----
40426

query II rowsort
SELECT DISTINCT - 8, + 11 col1
----
-8
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT COUNT( * ) * + 69 + 16 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3230
SELECT COUNT ( * ) * + 69 + 16 AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT + 23 * 43 + + + 51 - + 55 DIV + 36 * 81 DIV 71 AS col2
----
1039

skipif mysql # not compatible
query I rowsort label-3231
SELECT + 23 * 43 + + + 51 - + 55 / + 36 * 81 / 71 AS col2
----
1039

query I rowsort
SELECT + 61 * - - 94
----
5734

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL + 85 * - COALESCE ( - 7, + 18 * + 83 ) + - - SUM( 84 ) + + ( + 2 )
----
681

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL + 85 * - COALESCE ( - 7, + 18 * + 83 ) + - - SUM ( 84 ) + + ( + 2 )
----
681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3234
SELECT - COALESCE ( + + 26, + CASE 34 WHEN - - 91 THEN NULL WHEN 31 THEN + 87 + ( MAX( ALL + 88 ) + - CAST( NULL AS SIGNED ) DIV 51 ) WHEN - ( - 47 ) * - 95 THEN NULL ELSE CASE + 38 WHEN COUNT( * ) + 55 THEN NULL WHEN 9 + COUNT( * ) THEN NULL WHEN COUNT( 97 ) * 57 THEN NULL ELSE 57 - CASE + SUM( ALL + 3 ) + 86 * + 98 WHEN ( 58 ) THEN 72 END END END + + 61 * - 41 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3234
SELECT - COALESCE ( + + 26, + CASE 34 WHEN - - 91 THEN NULL WHEN 31 THEN + 87 + ( MAX ( ALL + 88 ) + - CAST ( NULL AS INTEGER ) / 51 ) WHEN - ( - 47 ) * - 95 THEN NULL ELSE CASE + 38 WHEN COUNT ( * ) + 55 THEN NULL WHEN 9 + COUNT ( * ) THEN NULL WHEN COUNT ( 97 ) * 57 THEN NULL ELSE 57 - CASE + SUM ( ALL + 3 ) + 86 * + 98 WHEN ( 58 ) THEN 72 END END END + + 61 * - 41 ) AS col0
----
-26

query I rowsort
SELECT + 44 + - 92 AS col2
----
-48

query I rowsort
SELECT DISTINCT + 52 * - 26
----
-1352

query II rowsort
SELECT DISTINCT 82 AS col0, 99 AS col1
----
82
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3238
SELECT + 10 AS col1, COUNT( - 28 ) + - NULLIF ( + 14, 43 * 60 ) AS col1
----
10
-13

skipif mysql # not compatible
query II rowsort label-3238
SELECT + 10 AS col1, COUNT ( - 28 ) + - NULLIF ( + 14, 43 * 60 ) AS col1
----
10
-13

query II rowsort
SELECT - 67 + 71, 46 + 76 col0
----
4
122

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT ALL + 55, + MIN( + ( + 3 ) ) AS col1
----
55
3

skipif mysql # not compatible
query II rowsort label-3240
SELECT ALL + 55, + MIN ( + ( + 3 ) ) AS col1
----
55
3

query II rowsort
SELECT + 61 AS col1, 35 * - + 33
----
61
-1155

query II rowsort
SELECT ALL - 42 AS col0, - 75 * + - 55 * + + 80
----
-42
330000

query I rowsort
SELECT - 24 * + 10 + + 80
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL - 69 + - + SUM( + CASE + - 33 WHEN - 17 THEN + 70 + 40 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL - 69 + - + SUM ( + CASE + - 33 WHEN - 17 THEN + 70 + 40 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT ALL 7 + - CAST( NULL AS SIGNED ) + - ( + 68 ) + 77 + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL 7 + - CAST ( NULL AS INTEGER ) + - ( + 68 ) + 77 + 55
----
NULL

query I rowsort
SELECT 52 * + 51
----
2652

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3247
SELECT DISTINCT COUNT( * ) + - + CAST( NULL AS DECIMAL ), 89 - + 47 AS col0
----
NULL
42

skipif mysql # not compatible
query II rowsort label-3247
SELECT DISTINCT COUNT ( * ) + - + CAST ( NULL AS REAL ), 89 - + 47 AS col0
----
NULL
42

query I rowsort
SELECT ALL + 8 + + 69 AS col0
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT + 74 * ( - + MAX( DISTINCT 8 ) ) + - + 13 + + 98 + 96 col1
----
-411

skipif mysql # not compatible
query I rowsort label-3250
SELECT + 74 * ( - + MAX ( DISTINCT 8 ) ) + - + 13 + + 98 + 96 col1
----
-411

query I rowsort
SELECT 32 + 49 AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3252
SELECT - COUNT( * ) DIV + - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3252
SELECT - COUNT ( * ) / + - 70 AS col2
----
0

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

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

query I rowsort
SELECT 9 * ( + 34 )
----
306

query II rowsort
SELECT ALL + 74 * + 89 + + 75 * + 47 * 80, - 91 AS col0
----
288586
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT ALL - MIN( DISTINCT 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL - MIN ( DISTINCT 48 ) AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3257
SELECT DISTINCT - 28 * 11, ( + 20 ) * + ( + 18 ) + + COALESCE ( 22, - 64, + 76, 80 * + COUNT( ALL - CAST( + 63 AS SIGNED ) * 88 ) ) AS col0
----
-308
382

skipif mysql # not compatible
query II rowsort label-3257
SELECT DISTINCT - 28 * 11, ( + 20 ) * + ( + 18 ) + + COALESCE ( 22, - 64, + 76, 80 * + COUNT ( ALL - CAST ( + 63 AS INTEGER ) * 88 ) ) AS col0
----
-308
382

query I rowsort
SELECT 34 * - ( + + 44 ) AS col1
----
-1496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3259
SELECT ALL + CAST( COALESCE ( - 37, - COUNT( * ) / - 65 * 18 * - + 1, 39 ) AS SIGNED ) * NULLIF ( + 37 * COALESCE ( 40, 49, + 6 - 65 * - 47 ) + SUM( + 81 ), 88 ) - - 22 * 42 AS col0
----
-56833

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL + CAST ( COALESCE ( - 37, - COUNT ( * ) / - 65 * 18 * - + 1, 39 ) AS INTEGER ) * NULLIF ( + 37 * COALESCE ( 40, 49, + 6 - 65 * - 47 ) + SUM ( + 81 ), 88 ) - - 22 * 42 AS col0
----
-56833

query I rowsort
SELECT 60 * - ( + - 5 )
----
300

query I rowsort
SELECT 66 + - 28
----
38

query II rowsort
SELECT DISTINCT - ( 2 ) col0, - 11
----
-2
-11

query I rowsort
SELECT ALL 63 * + 33
----
2079

onlyif mysql # DIV for integer division: 
query I rowsort label-3264
SELECT DISTINCT - ( + + 82 ) DIV + 75
----
-1

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT - ( + + 82 ) / + 75
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3265
SELECT + 64 * 39 - - 13 + + CAST( NULL AS SIGNED ) * MAX( DISTINCT 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT + 64 * 39 - - 13 + + CAST ( NULL AS INTEGER ) * MAX ( DISTINCT 96 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT - 15 * 99 * + - 17 * + ( - + COUNT( * ) )
----
-25245

skipif mysql # not compatible
query I rowsort label-3266
SELECT - 15 * 99 * + - 17 * + ( - + COUNT ( * ) )
----
-25245

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT - + 50 * + 73 * + COUNT( ALL - 85 ) * COALESCE ( - 82, + + MAX( - 32 ) * 68, - ( 72 ) ) AS col2
----
299300

skipif mysql # not compatible
query I rowsort label-3268
SELECT - + 50 * + 73 * + COUNT ( ALL - 85 ) * COALESCE ( - 82, + + MAX ( - 32 ) * 68, - ( 72 ) ) AS col2
----
299300

query I rowsort
SELECT - 68 - 53 AS col0
----
-121

query II rowsort
SELECT - 81 * - - 33 AS col2, 79 AS col2
----
-2673
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + + COUNT( DISTINCT + NULLIF ( + 44, 30 + 19 ) ) * + 75 col1
----
75

skipif mysql # not compatible
query I rowsort label-3271
SELECT + + COUNT ( DISTINCT + NULLIF ( + 44, 30 + 19 ) ) * + 75 col1
----
75

query I rowsort
SELECT ALL - 78 + - 13 AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT ALL + 98 + + ( + 17 ) + 89 DIV - - 82 - + ( 50 )
----
66

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL + 98 + + ( + 17 ) + 89 / - - 82 - + ( 50 )
----
66

query II rowsort
SELECT + - 93 - + 34 AS col2, + ( + 0 ) * - - ( 53 ) + + 0 col2
----
-127
0

query II rowsort
SELECT ALL - 29 + + 26 AS col2, - 68
----
-3
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT DISTINCT 96 + MAX( DISTINCT + - 28 ) * 90
----
-2424

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT 96 + MAX ( DISTINCT + - 28 ) * 90
----
-2424

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

query I rowsort
SELECT ALL 14 + + 50
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT DISTINCT - 79 * - - MAX( - 39 ) AS col2
----
3081

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT - 79 * - - MAX ( - 39 ) AS col2
----
3081

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT + SUM( + + 75 ) * - 10 * + 69 + - 7
----
-51757

skipif mysql # not compatible
query I rowsort label-3280
SELECT + SUM ( + + 75 ) * - 10 * + 69 + - 7
----
-51757

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT + CASE - + 31 WHEN + 70 * - + COALESCE ( + 57, - + 60, 2 ) THEN COUNT( * ) + + ( - 18 ) ELSE NULL END + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT + CASE - + 31 WHEN + 70 * - + COALESCE ( + 57, - + 60, 2 ) THEN COUNT ( * ) + + ( - 18 ) ELSE NULL END + 42
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + 46 * + COUNT ( ALL - 82 ) + + COUNT ( + - 82 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT + - CASE - 84 WHEN 63 THEN COALESCE ( - ( + 74 ), 15 * 16, - 83 * COUNT( * ) ) ELSE + 70 END - 0
----
-70

skipif mysql # not compatible
query I rowsort label-3283
SELECT + - CASE - 84 WHEN 63 THEN COALESCE ( - ( + 74 ), 15 * 16, - 83 * COUNT ( * ) ) ELSE + 70 END - 0
----
-70

query I rowsort
SELECT + NULLIF ( + NULLIF ( - 78, - + 79 ), - ( 3 ) ) + - + 46 + 28 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT + - MAX( - + CASE + 94 WHEN 85 * + 40 + + - 0 + - + 49 THEN - 38 + 14 ELSE NULL END ) * + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT + - MAX ( - + CASE + 94 WHEN 85 * + 40 + + - 0 + - + 49 THEN - 38 + 14 ELSE NULL END ) * + 10 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3286
SELECT + 41 + CAST( NULL AS SIGNED ) / NULLIF ( 71, 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT + 41 + CAST ( NULL AS INTEGER ) / NULLIF ( 71, 5 ) AS col2
----
NULL

query II rowsort
SELECT ALL 11 AS col2, ( - 55 ) AS col1
----
11
-55

query II rowsort
SELECT DISTINCT 63 AS col2, + 33 * - 58 AS col1
----
63
-1914

query I rowsort
SELECT DISTINCT 64 - + 92
----
-28

query I rowsort
SELECT + 29 * - 59
----
-1711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3291
SELECT DISTINCT COALESCE ( 83, + + 24 + 17, - CASE 66 WHEN + + 37 * - 13 DIV 71 THEN ( AVG ( ALL 5 ) ) * CAST( + COUNT( * ) + - CAST( NULL AS SIGNED ) AS SIGNED ) + - 73 WHEN ( + 49 ) THEN NULL ELSE - ( + 49 ) END ) DIV ( 31 )
----
2

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT COALESCE ( 83, + + 24 + 17, - CASE 66 WHEN + + 37 * - 13 / 71 THEN ( AVG ( ALL 5 ) ) * CAST ( + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 73 WHEN ( + 49 ) THEN NULL ELSE - ( + 49 ) END ) / ( 31 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3292
SELECT ALL 99 - + CAST( + 99 AS SIGNED ) col2, + 15
----
0
15

skipif mysql # not compatible
query II rowsort label-3292
SELECT ALL 99 - + CAST ( + 99 AS INTEGER ) col2, + 15
----
0
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3293
SELECT DISTINCT ( + 88 ) DIV 54 - + 42 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT ( + 88 ) / 54 - + 42 AS col1
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT + 81 DIV + 67 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3294
SELECT + 81 / + 67 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT + 99 * CASE + ( - + 58 ) WHEN ( - - 12 ) / + SUM( DISTINCT + 20 ) THEN 13 END * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3295
SELECT + 99 * CASE + ( - + 58 ) WHEN ( - - 12 ) / + SUM ( DISTINCT + 20 ) THEN 13 END * 26
----
NULL

query I rowsort
SELECT + ( - ( 11 ) ) col2
----
-11

query I rowsort
SELECT ALL + 92 * - 86 - - COALESCE ( + - 58, + 3, 6 ) AS col2
----
-7970

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

query I rowsort
SELECT DISTINCT - 79 * - + 3
----
237

query II rowsort
SELECT + 87 AS col2, + 59 + - 38 col0
----
87
21

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3302
SELECT ALL + COUNT( * ), 14 * - 10 col1
----
1
-140

skipif mysql # not compatible
query II rowsort label-3302
SELECT ALL + COUNT ( * ), 14 * - 10 col1
----
1
-140

query I rowsort
SELECT - 28 * ( 23 ) AS col2
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT + CASE + MIN( DISTINCT 85 ) WHEN - 17 THEN + 15 WHEN - + 5 THEN - 91 + + 48 ELSE - 85 END AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT + CASE + MIN ( DISTINCT 85 ) WHEN - 17 THEN + 15 WHEN - + 5 THEN - 91 + + 48 ELSE - 85 END AS col1
----
-85

query I rowsort
SELECT ALL - 80 * 51 AS col1
----
-4080

onlyif mysql # aggregate syntax: 
query II rowsort label-3306
SELECT 80 * - - 63 + + + 95 + ( - - MIN( 12 ) ) AS col2, - COUNT( * )
----
5147
-1

skipif mysql # not compatible
query II rowsort label-3306
SELECT 80 * - - 63 + + + 95 + ( - - MIN ( 12 ) ) AS col2, - COUNT ( * )
----
5147
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT 82 * - + 30 * - CAST( 33 AS SIGNED ) - + 93
----
81087

skipif mysql # not compatible
query I rowsort label-3308
SELECT 82 * - + 30 * - CAST ( 33 AS INTEGER ) - + 93
----
81087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT - 64 * - COALESCE ( + 19, 77 + - 16 ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT - 64 * - COALESCE ( + 19, 77 + - 16 ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3310
SELECT - CASE + 16 WHEN CAST( NULL AS SIGNED ) THEN - COUNT( * ) * 55 * - 64 * + MIN( + + 39 ) / SUM( DISTINCT - 80 ) + 24 WHEN 38 / 45 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT - CASE + 16 WHEN CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) * 55 * - 64 * + MIN ( + + 39 ) / SUM ( DISTINCT - 80 ) + 24 WHEN 38 / 45 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3311
SELECT ALL + + CASE 8 WHEN - - 65 THEN NULL ELSE - + 75 END * + 59 + + CAST( NULL AS SIGNED ) AS col1, - 27
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-3311
SELECT ALL + + CASE 8 WHEN - - 65 THEN NULL ELSE - + 75 END * + 59 + + CAST ( NULL AS INTEGER ) AS col1, - 27
----
NULL
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3312
SELECT ALL - NULLIF ( 36, + 49 * CAST( - ( - 12 ) AS SIGNED ) + - - NULLIF ( - 4, - 36 ) ) * + COUNT( + 58 ) + + 31 * 74 AS col2
----
2258

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL - NULLIF ( 36, + 49 * CAST ( - ( - 12 ) AS INTEGER ) + - - NULLIF ( - 4, - 36 ) ) * + COUNT ( + 58 ) + + 31 * 74 AS col2
----
2258

query I rowsort
SELECT ALL ( - 26 ) * 41 * + 64 + - 40 AS col1
----
-68264

onlyif mysql # aggregate syntax: 
query II rowsort label-3314
SELECT - 79 AS col2, COUNT( * ) * - 7 - + 49
----
-79
-56

skipif mysql # not compatible
query II rowsort label-3314
SELECT - 79 AS col2, COUNT ( * ) * - 7 - + 49
----
-79
-56

query I rowsort
SELECT DISTINCT - 50 * + 50
----
-2500

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

skipif mysql # not compatible
query I rowsort label-3316
SELECT - - COUNT ( DISTINCT + + 18 ) / - 15 * + + 70
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3317
SELECT + - SUM( + - 55 ) + 40 + + + 69 * + ( - CAST( NULL AS SIGNED ) ) * - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT + - SUM ( + - 55 ) + 40 + + + 69 * + ( - CAST ( NULL AS INTEGER ) ) * - 92 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3319
SELECT ALL - - 88 + + + COUNT( * ) DIV SUM( DISTINCT + 11 )
----
88

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL - - 88 + + + COUNT ( * ) / SUM ( DISTINCT + 11 )
----
88

query I rowsort
SELECT ALL + 26 - - + 88
----
114

query II rowsort
SELECT 8 AS col0, + 45 + + 89 AS col0
----
8
134

onlyif mysql # aggregate syntax: 
query II rowsort label-3322
SELECT - CASE + 94 WHEN + 95 THEN + COUNT( * ) * + 29 ELSE - - 58 END AS col1, ( + 39 ) + + ( - ( COUNT( * ) ) )
----
-58
38

skipif mysql # not compatible
query II rowsort label-3322
SELECT - CASE + 94 WHEN + 95 THEN + COUNT ( * ) * + 29 ELSE - - 58 END AS col1, ( + 39 ) + + ( - ( COUNT ( * ) ) )
----
-58
38

query I rowsort
SELECT ALL - 55 - - + 99 AS col1
----
44

query II rowsort
SELECT - ( + 46 ), 40 + 87 AS col0
----
-46
127

query I rowsort
SELECT ALL ( + 33 ) * + - ( - 30 ) * 86 col2
----
85140

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT - 82 - NULLIF ( + COUNT( * ), - COALESCE ( + + COUNT( * ), + 86 + + + NULLIF ( COUNT( * ), + + 70 + 0 * 0 ) ) + - 84 ) * - 65
----
-17

skipif mysql # not compatible
query I rowsort label-3326
SELECT - 82 - NULLIF ( + COUNT ( * ), - COALESCE ( + + COUNT ( * ), + 86 + + + NULLIF ( COUNT ( * ), + + 70 + 0 * 0 ) ) + - 84 ) * - 65
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT ALL + CASE 42 WHEN + 85 + - 56 + + - 62 * + 35 THEN MIN( DISTINCT - 25 ) END * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL + CASE 42 WHEN + 85 + - 56 + + - 62 * + 35 THEN MIN ( DISTINCT - 25 ) END * + 79
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3328
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 99 * 47 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT CAST ( NULL AS REAL ) * 99 * 47 col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3329
SELECT ALL 39 DIV - 94 AS col1, 72 DIV 58 + 55 + - 68 AS col1
----
0
-12

skipif mysql # not compatible
query II rowsort label-3329
SELECT ALL 39 / - 94 AS col1, 72 / 58 + 55 + - 68 AS col1
----
0
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3330
SELECT ALL 86 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL 86 / 98
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3331
SELECT 85 DIV + 76 AS col1, 31 + 76 AS col2
----
1
107

skipif mysql # not compatible
query II rowsort label-3331
SELECT 85 / + 76 AS col1, 31 + 76 AS col2
----
1
107

onlyif mysql # DIV for integer division: 
query I rowsort label-3332
SELECT + 56 DIV + 69 + + 26 col2
----
26

skipif mysql # not compatible
query I rowsort label-3332
SELECT + 56 / + 69 + + 26 col2
----
26

query I rowsort
SELECT DISTINCT 89 + - 20
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT + 63 DIV 58 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3334
SELECT + 63 / 58 AS col0
----
1

query I rowsort
SELECT ALL - + 20 + 39 AS col0
----
19

query I rowsort
SELECT ALL + - 57 * + 14 + 40 + 94 * 96
----
8266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3337
SELECT ALL CAST( NULL AS SIGNED ) + - - CASE + + 6 WHEN - 55 - MIN( + NULLIF ( 15, - + 76 ) ) THEN 2 WHEN ( + ( 29 ) ) THEN NULL END + ( CAST( 66 AS SIGNED ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL CAST ( NULL AS INTEGER ) + - - CASE + + 6 WHEN - 55 - MIN ( + NULLIF ( 15, - + 76 ) ) THEN 2 WHEN ( + ( 29 ) ) THEN NULL END + ( CAST ( 66 AS INTEGER ) ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 4 + + - 93 AS col1
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3339
SELECT ALL CAST( + 8 AS SIGNED ) * - 72
----
-576

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL CAST ( + 8 AS INTEGER ) * - 72
----
-576

query I rowsort
SELECT + 52 - + 6
----
46

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

skipif mysql # not compatible
query I rowsort label-3341
SELECT + + SUM ( - 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL + - 40 - - - CASE WHEN NOT - COUNT( * ) NOT BETWEEN - 65 AND ( 45 ) THEN NULL ELSE - COALESCE ( - 53, 69 * - 49 + 97 * ( 50 ) ) END / 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL + - 40 - - - CASE WHEN NOT - COUNT ( * ) NOT BETWEEN - 65 AND ( 45 ) THEN NULL ELSE - COALESCE ( - 53, 69 * - 49 + 97 * ( 50 ) ) END / 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3343
SELECT 45 * 36 * + 68 DIV - COUNT( * ) - + COUNT( * )
----
-110161

skipif mysql # not compatible
query I rowsort label-3343
SELECT 45 * 36 * + 68 / - COUNT ( * ) - + COUNT ( * )
----
-110161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3344
SELECT ALL + ( 93 ) DIV CAST( + ( + COALESCE ( + SUM( ALL + + 68 ), - ( + 38 ) ) ) AS SIGNED ) + + 8 * - 2
----
-15

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL + ( 93 ) / CAST ( + ( + COALESCE ( + SUM ( ALL + + 68 ), - ( + 38 ) ) ) AS INTEGER ) + + 8 * - 2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT DISTINCT - - 11 - 10 + + 1 - + + 13 + 83 DIV + COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT - - 11 - 10 + + 1 - + + 13 + 83 / + COUNT ( * ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT DISTINCT + + COUNT( * ) * + + 90 * 43 AS col1
----
3870

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + + COUNT ( * ) * + + 90 * 43 AS col1
----
3870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3347
SELECT DISTINCT - CASE + - ( - 79 ) WHEN - + ( + 8 ) + - CAST( - 35 AS SIGNED ) + + - 78 * + + 91 THEN - COUNT( * ) END * + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT - CASE + - ( - 79 ) WHEN - + ( + 8 ) + - CAST ( - 35 AS INTEGER ) + + - 78 * + + 91 THEN - COUNT ( * ) END * + 86 AS col2
----
NULL

query I rowsort
SELECT ALL + ( - + 57 ) - COALESCE ( 10, + - 87, + + 87 )
----
-67

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

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

query I rowsort
SELECT 8 + + 4
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3351
SELECT - 6, + COUNT( * ) col1
----
-6
1

skipif mysql # not compatible
query II rowsort label-3351
SELECT - 6, + COUNT ( * ) col1
----
-6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT 15 + + 4 + - 94 * + CASE - 87 WHEN + - 21 + - + NULLIF ( + 51, NULLIF ( + + COUNT( * ), - MAX( ALL - ( + 37 ) ) ) * - 8 + + 90 / 1 ) * COUNT( * ) THEN 15 WHEN 26 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT 15 + + 4 + - 94 * + CASE - 87 WHEN + - 21 + - + NULLIF ( + 51, NULLIF ( + + COUNT ( * ), - MAX ( ALL - ( + 37 ) ) ) * - 8 + + 90 / 1 ) * COUNT ( * ) THEN 15 WHEN 26 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3353
SELECT 50 DIV - 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3353
SELECT 50 / - 47 AS col1
----
-1

query I rowsort
SELECT 24 + + 73 + + 96 - ( + 30 ) * - NULLIF ( 51, - 32 ) * - 15 * - 12 - + 14 AS col2
----
275579

query I rowsort
SELECT 34 + - 53 * + 55 - - - 5 * - + 99 AS col2
----
-2386

onlyif mysql # DIV for integer division: 
query I rowsort label-3356
SELECT ALL - 24 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL - 24 / + 25
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3357
SELECT 40 DIV + ( - COUNT( * ) ) AS col0, 30 * COUNT( * )
----
-40
30

skipif mysql # not compatible
query II rowsort label-3357
SELECT 40 / + ( - COUNT ( * ) ) AS col0, 30 * COUNT ( * )
----
-40
30

query I rowsort
SELECT 59 + + 25
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT CASE - 88 WHEN - ( 14 ) * - 93 * - 99 * + 99 - + + 96 * + COUNT( + + ( NULLIF ( 6, + 41 + 58 ) ) ) * + 11 THEN NULL WHEN - 2 THEN - 73 END * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT CASE - 88 WHEN - ( 14 ) * - 93 * - 99 * + 99 - + + 96 * + COUNT ( + + ( NULLIF ( 6, + 41 + 58 ) ) ) * + 11 THEN NULL WHEN - 2 THEN - 73 END * 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT 78 + - 33 + + - SUM( ALL - 31 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-3360
SELECT 78 + - 33 + + - SUM ( ALL - 31 ) AS col1
----
76

query I rowsort
SELECT ALL 4 + - - 77 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT 53 / + ( + COUNT( * ) ) + - 30 * - + CASE 52 WHEN - 13 + + 21 + - - 64 THEN 91 - - 79 WHEN - 87 + - 68 THEN - 73 + + 16 ELSE NULL END * 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3362
SELECT 53 / + ( + COUNT ( * ) ) + - 30 * - + CASE 52 WHEN - 13 + + 21 + - - 64 THEN 91 - - 79 WHEN - 87 + - 68 THEN - 73 + + 16 ELSE NULL END * 96 AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 44 * + 52 AS col2
----
-2288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3365
SELECT ALL + 86 + + COALESCE ( - ( + - 24 ), + - 32 ) * 97 * + - 10 + - COUNT( * ) - - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + 15 * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL + 86 + + COALESCE ( - ( + - 24 ), + - 32 ) * 97 * + - 10 + - COUNT ( * ) - - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 15 * 9
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3366
SELECT + CASE COUNT( * ) WHEN - - AVG ( + 54 ) + - 10 THEN CAST( NULL AS SIGNED ) ELSE - + 73 END * 92 - 84 AS col1
----
-6800

skipif mysql # not compatible
query I rowsort label-3366
SELECT + CASE COUNT ( * ) WHEN - - AVG ( + 54 ) + - 10 THEN CAST ( NULL AS INTEGER ) ELSE - + 73 END * 92 - 84 AS col1
----
-6800

onlyif mysql # aggregate syntax: 
query II rowsort label-3367
SELECT DISTINCT + SUM( + + 14 ) + + - 25 AS col1, 24 * 17 * - 88 AS col1
----
-11
-35904

skipif mysql # not compatible
query II rowsort label-3367
SELECT DISTINCT + SUM ( + + 14 ) + + - 25 AS col1, 24 * 17 * - 88 AS col1
----
-11
-35904

query I rowsort
SELECT + 84 + - 88
----
-4

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3370
SELECT DISTINCT 76 DIV + 72
----
1

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT 76 / + 72
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3371
SELECT + + 49 DIV - SUM( + COALESCE ( + CASE + ( 34 ) WHEN - 82 THEN 63 DIV + 48 WHEN ( 22 ) + - 46 THEN 27 END, + 93 + - 34, + 66 * 68 ) ) * + 23 + + 96
----
96

skipif mysql # not compatible
query I rowsort label-3371
SELECT + + 49 / - SUM ( + COALESCE ( + CASE + ( 34 ) WHEN - 82 THEN 63 / + 48 WHEN ( 22 ) + - 46 THEN 27 END, + 93 + - 34, + 66 * 68 ) ) * + 23 + + 96
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT - 96 * - COUNT( * ) - + + 17 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3372
SELECT - 96 * - COUNT ( * ) - + + 17 AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3373
SELECT 22 + 38 + COALESCE ( + CAST( NULL AS SIGNED ), - COUNT( * ) + + 88 ) + CASE CAST( NULL AS SIGNED ) WHEN 26 - - - 41 * - 49 THEN + 78 END - - 21 * 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT 22 + 38 + COALESCE ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) + + 88 ) + CASE CAST ( NULL AS INTEGER ) WHEN 26 - - - 41 * - 49 THEN + 78 END - - 21 * 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3374
SELECT ALL 3 - + COUNT( ALL + 5 ) AS col0, - ( - 31 )
----
2
31

skipif mysql # not compatible
query II rowsort label-3374
SELECT ALL 3 - + COUNT ( ALL + 5 ) AS col0, - ( - 31 )
----
2
31

query I rowsort
SELECT DISTINCT + + 88 * + 66 - + 90 + 76
----
5794

query I rowsort
SELECT ( - 66 ) + + 74 AS col1
----
8

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

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL + COUNT ( * ) * 94 - - 72 + - - SUM ( 18 )
----
184

query I rowsort
SELECT DISTINCT 92 * + 76 AS col1
----
6992

query I rowsort
SELECT 53 * - 10 * - + 52 AS col2
----
27560

onlyif mysql # DIV for integer division: 
query I rowsort label-3380
SELECT 60 + + 3 DIV - 76
----
60

skipif mysql # not compatible
query I rowsort label-3380
SELECT 60 + + 3 / - 76
----
60

query II rowsort
SELECT 1 AS col1, 99 AS col2
----
1
99

query II rowsort
SELECT DISTINCT 65 AS col2, - 60 AS col1
----
65
-60

query I rowsort
SELECT DISTINCT - 20 + - + 89 * - 35
----
3095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3384
SELECT ALL + 66 + + CAST( - 78 AS SIGNED ) + - COUNT( * ) + - 57 * - - SUM( ALL + 96 ) * - COALESCE ( - - 77, 28 * 75 ) * - 65
----
-27387373

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL + 66 + + CAST ( - 78 AS INTEGER ) + - COUNT ( * ) + - 57 * - - SUM ( ALL + 96 ) * - COALESCE ( - - 77, 28 * 75 ) * - 65
----
-27387373

query II rowsort
SELECT - 73 AS col2, 12
----
-73
12

query I rowsort
SELECT - 5 * + - 1 AS col2
----
5

query I rowsort
SELECT ALL - 30 * - - 69 AS col0
----
-2070

query II rowsort
SELECT - 84, - 81 * - 92 AS col2
----
-84
7452

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL - 3 + + - 83 * + NULLIF ( + ( + 64 ), - + ( - COUNT( * ) ) ) + - 93 * COUNT( * ) * - 63 + - 88
----
456

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL - 3 + + - 83 * + NULLIF ( + ( + 64 ), - + ( - COUNT ( * ) ) ) + - 93 * COUNT ( * ) * - 63 + - 88
----
456

query I rowsort
SELECT - 69 - + 75 AS col0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT - SUM( - + 18 ) + - 13
----
5

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT - SUM ( - + 18 ) + - 13
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3392
SELECT DISTINCT - 76 DIV 2 col1
----
-38

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - 76 / 2 col1
----
-38

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

skipif mysql # not compatible
query I rowsort label-3393
SELECT - COUNT ( * ) * 92 * - - CAST ( NULL AS INTEGER ) * 6
----
NULL

query I rowsort
SELECT ALL - 30 * + 39 + + ( 20 ) * + 44 AS col2
----
-290

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

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

query I rowsort
SELECT + 57 * ( 60 ) * + 18 + - 8 + 82 AS col0
----
61634

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT + + ( + - NULLIF ( + COUNT( * ), 48 ) ) - - 29 * + COALESCE ( - + 77, 59 ) * + - 12 col1
----
26795

skipif mysql # not compatible
query I rowsort label-3397
SELECT + + ( + - NULLIF ( + COUNT ( * ), 48 ) ) - - 29 * + COALESCE ( - + 77, 59 ) * + - 12 col1
----
26795

onlyif mysql # aggregate syntax: 
query II rowsort label-3398
SELECT ALL + + 42 AS col2, COUNT( * ) * + + 34 - + 12 AS col1
----
42
22

skipif mysql # not compatible
query II rowsort label-3398
SELECT ALL + + 42 AS col2, COUNT ( * ) * + + 34 - + 12 AS col1
----
42
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3399
SELECT - COUNT( * ) AS col2, CASE + 97 WHEN CAST( 74 AS SIGNED ) + ( ( + 4 ) ) THEN - 3 * 36 WHEN - + 2 THEN - 90 ELSE - COUNT( * ) END - + 18 AS col2
----
-1
-19

skipif mysql # not compatible
query II rowsort label-3399
SELECT - COUNT ( * ) AS col2, CASE + 97 WHEN CAST ( 74 AS INTEGER ) + ( ( + 4 ) ) THEN - 3 * 36 WHEN - + 2 THEN - 90 ELSE - COUNT ( * ) END - + 18 AS col2
----
-1
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-3400
SELECT ALL + - 51 AS col1, + COUNT( * ) * + 5
----
-51
5

skipif mysql # not compatible
query II rowsort label-3400
SELECT ALL + - 51 AS col1, + COUNT ( * ) * + 5
----
-51
5

query I rowsort
SELECT - 25 * + + 33 + 9
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT + - 68 + + COUNT( + 39 )
----
-67

skipif mysql # not compatible
query I rowsort label-3402
SELECT + - 68 + + COUNT ( + 39 )
----
-67

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

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

query II rowsort
SELECT + + 90, - 10 AS col0
----
90
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3405
SELECT ALL + + COALESCE ( - + COUNT( * ), - + 60 ) * + 0 - - CAST( - - MAX( 18 ) AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL + + COALESCE ( - + COUNT ( * ), - + 60 ) * + 0 - - CAST ( - - MAX ( 18 ) AS INTEGER )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3406
SELECT ALL CAST( - 47 AS SIGNED ) * + 22 AS col1
----
-1034

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL CAST ( - 47 AS INTEGER ) * + 22 AS col1
----
-1034

query I rowsort
SELECT - + 24 * + 7
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL - 19 * - COALESCE ( 23, + 3, 91 * 66 ) * MAX( ALL - 50 ) + 27 AS col1
----
-21823

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL - 19 * - COALESCE ( 23, + 3, 91 * 66 ) * MAX ( ALL - 50 ) + 27 AS col1
----
-21823

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3409
SELECT + - COALESCE ( - - 30, ( - NULLIF ( - - COUNT( * ), + 34 ) ) * + ( + - 84 ) + MIN( + - 14 ) - - 12 * + 55, 90 + + ( 30 ) ) DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-3409
SELECT + - COALESCE ( - - 30, ( - NULLIF ( - - COUNT ( * ), + 34 ) ) * + ( + - 84 ) + MIN ( + - 14 ) - - 12 * + 55, 90 + + ( 30 ) ) / + 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT ALL + + NULLIF ( - NULLIF ( 76, 68 * + 43 + + 82 ), + + 18 + - COUNT( * ) )
----
-76

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL + + NULLIF ( - NULLIF ( 76, 68 * + 43 + + 82 ), + + 18 + - COUNT ( * ) )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3411
SELECT + + 75 DIV + ( - CAST( + - NULLIF ( - 22, - + COUNT( * ) ) AS SIGNED ) ) + - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-3411
SELECT + + 75 / + ( - CAST ( + - NULLIF ( - 22, - + COUNT ( * ) ) AS INTEGER ) ) + - COUNT ( * )
----
-4

query I rowsort
SELECT - - 64 * + 44 * 28 AS col0
----
78848

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT + 25 * CASE 17 WHEN 66 THEN NULL WHEN - 52 + - - NULLIF ( - + NULLIF ( + 60, 98 + - 9 / - 68 * COALESCE ( 44 * - 70, + 92 + 55 * - 86 ) + 38 ), - NULLIF ( - MIN( DISTINCT 15 ), + 10 ) ) + - 73 THEN NULL ELSE - MAX( - 14 ) END
----
350

skipif mysql # not compatible
query I rowsort label-3413
SELECT + 25 * CASE 17 WHEN 66 THEN NULL WHEN - 52 + - - NULLIF ( - + NULLIF ( + 60, 98 + - 9 / - 68 * COALESCE ( 44 * - 70, + 92 + 55 * - 86 ) + 38 ), - NULLIF ( - MIN ( DISTINCT 15 ), + 10 ) ) + - 73 THEN NULL ELSE - MAX ( - 14 ) END
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT + COUNT( + + 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3414
SELECT + COUNT ( + + 66 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT ALL + 86 DIV + COALESCE ( 76, 86 * 90 + - 29 + + + 85 + + 45 + 3 * - 7 )
----
1

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL + 86 / + COALESCE ( 76, 86 * 90 + - 29 + + + 85 + + 45 + 3 * - 7 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT - NULLIF ( - 50, - COUNT( ALL - 38 ) )
----
50

skipif mysql # not compatible
query I rowsort label-3416
SELECT - NULLIF ( - 50, - COUNT ( ALL - 38 ) )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3417
SELECT + 35 / + 65 * - CASE 96 WHEN + 2 * - - ( CAST( + MAX( ALL - 40 ) AS SIGNED ) ) THEN - + 98 + - 63 * - 92 / - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT + 35 / + 65 * - CASE 96 WHEN + 2 * - - ( CAST ( + MAX ( ALL - 40 ) AS INTEGER ) ) THEN - + 98 + - 63 * - 92 / - 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT ALL - 66 * + - 65 / ( - 16 ) * + 61 + + 44 + - - 20 + CASE + - CASE + - 55 WHEN + + 33 THEN + - MIN( - 32 ) ELSE + MAX( + 0 ) + + 52 END WHEN - 21 THEN 54 * ( 60 ) END * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL - 66 * + - 65 / ( - 16 ) * + 61 + + 44 + - - 20 + CASE + - CASE + - 55 WHEN + + 33 THEN + - MIN ( - 32 ) ELSE + MAX ( + 0 ) + + 52 END WHEN - 21 THEN 54 * ( 60 ) END * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 11 * - 92
----
-1012

query I rowsort
SELECT ALL - 34 + - 51
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3421
SELECT + 29 - - 70 / CASE 83 WHEN + COUNT( * ) THEN NULL WHEN - 94 THEN + COALESCE ( - 65, + + COALESCE ( - 6, + + NULLIF ( + - 76, + COUNT( * ) ) / + 84 ) ) * - 27 - + CAST( + 10 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3421
SELECT + 29 - - 70 / CASE 83 WHEN + COUNT ( * ) THEN NULL WHEN - 94 THEN + COALESCE ( - 65, + + COALESCE ( - 6, + + NULLIF ( + - 76, + COUNT ( * ) ) / + 84 ) ) * - 27 - + CAST ( + 10 AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3422
SELECT ALL ( + CASE - 80 WHEN COUNT( * ) THEN + + 66 - 2 WHEN + - 40 THEN NULL END ) + + COUNT( * ) AS col1, 35 AS col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-3422
SELECT ALL ( + CASE - 80 WHEN COUNT ( * ) THEN + + 66 - 2 WHEN + - 40 THEN NULL END ) + + COUNT ( * ) AS col1, 35 AS col2
----
NULL
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3423
SELECT - ( - 55 ) * + 21 + + CAST( NULL AS SIGNED ) - + 41 + + + COUNT( + 4 ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT - ( - 55 ) * + 21 + + CAST ( NULL AS INTEGER ) - + 41 + + + COUNT ( + 4 ) * - 79
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3424
SELECT + NULLIF ( + 84, + + 95 ) - 54 + + 23, - COUNT( * ) * 25 AS col2
----
53
-25

skipif mysql # not compatible
query II rowsort label-3424
SELECT + NULLIF ( + 84, + + 95 ) - 54 + + 23, - COUNT ( * ) * 25 AS col2
----
53
-25

query II rowsort
SELECT - 81 * - COALESCE ( 92, + COALESCE ( - 49, + + 81 ) * - 10 ) AS col2, 17 + 19 AS col1
----
7452
36

query I rowsort
SELECT ALL 87 + - + 22
----
65

query I rowsort
SELECT + 93 + + 38 - ( - ( + 21 ) )
----
152

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

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL 63 + + ( + ( + CAST ( + 37 AS INTEGER ) ) )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT + CASE + 0 WHEN - 99 * - 8 * + + 49 + 5 / - 48 + + SUM( + + 24 ) + + MIN( + 49 ) THEN NULL ELSE - COUNT( * ) END + + 11 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3429
SELECT + CASE + 0 WHEN - 99 * - 8 * + + 49 + 5 / - 48 + + SUM ( + + 24 ) + + MIN ( + 49 ) THEN NULL ELSE - COUNT ( * ) END + + 11 AS col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3430
SELECT DISTINCT 92 + + 96 DIV - 66
----
91

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT 92 + + 96 / - 66
----
91

query I rowsort
SELECT ALL NULLIF ( + 7, 98 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT DISTINCT CASE + - ( + 36 ) WHEN + 98 THEN + - COUNT( DISTINCT + 47 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT CASE + - ( + 36 ) WHEN + 98 THEN + - COUNT ( DISTINCT + 47 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3433
SELECT ALL 21 DIV - 22 AS col2, + COUNT( * ) + 33
----
0
34

skipif mysql # not compatible
query II rowsort label-3433
SELECT ALL 21 / - 22 AS col2, + COUNT ( * ) + 33
----
0
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3434
SELECT - 91 + - + 6 DIV - 58 + + COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3434
SELECT - 91 + - + 6 / - 58 + + COUNT ( * ) AS col2
----
-90

query I rowsort
SELECT DISTINCT + - 84 * - 99
----
8316

query I rowsort
SELECT + 10 * - 25 AS col2
----
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT - 79 * - COUNT( * ) * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3437
SELECT - 79 * - COUNT ( * ) * - 0 AS col0
----
0

query I rowsort
SELECT - 23 * + 7
----
-161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3439
SELECT ALL + ( - CAST( 68 AS SIGNED ) ), - CAST( NULL AS SIGNED ) + - - COUNT( 67 ) AS col0
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-3439
SELECT ALL + ( - CAST ( 68 AS INTEGER ) ), - CAST ( NULL AS INTEGER ) + - - COUNT ( 67 ) AS col0
----
-68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT 28 * + COUNT( * ) + - 25 + + - 3 * - CASE - - 77 WHEN COUNT( * ) + + + 66 THEN NULL ELSE - - 56 + - 8 + 11 * - + 65 END + 17
----
-1981

skipif mysql # not compatible
query I rowsort label-3440
SELECT 28 * + COUNT ( * ) + - 25 + + - 3 * - CASE - - 77 WHEN COUNT ( * ) + + + 66 THEN NULL ELSE - - 56 + - 8 + 11 * - + 65 END + 17
----
-1981

query I rowsort
SELECT ALL - 23 * 99 * + 55 + + 40 AS col1
----
-125195

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT - - SUM( - 13 ) * - COUNT( * ) * - - 81 AS col1
----
1053

skipif mysql # not compatible
query I rowsort label-3442
SELECT - - SUM ( - 13 ) * - COUNT ( * ) * - - 81 AS col1
----
1053

query I rowsort
SELECT DISTINCT + + NULLIF ( 82, 4 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3444
SELECT + 45 * - CAST( NULL AS SIGNED ) + - ( - 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT + 45 * - CAST ( NULL AS INTEGER ) + - ( - 28 )
----
NULL

query I rowsort
SELECT COALESCE ( + CASE - 36 WHEN - 92 + 45 * - 10 THEN 62 - 45 * - + 12 WHEN + + 13 THEN NULL ELSE NULL END, + 66, 28 * - 39 ) AS col1
----
66

query II rowsort
SELECT - - 26 + + 62 AS col0, 89 AS col1
----
88
89

query I rowsort
SELECT ALL + 57 * + 11 + + 0 col2
----
627

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT ALL + COUNT( * ) * + ( + 12 ) + - 0
----
12

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL + COUNT ( * ) * + ( + 12 ) + - 0
----
12

query I rowsort
SELECT ALL 47 + - 69
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3450
SELECT 50 + - ( - SUM( DISTINCT + COALESCE ( - 39, - CAST( 86 AS SIGNED ) + 6 + + 15 ) ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3450
SELECT 50 + - ( - SUM ( DISTINCT + COALESCE ( - 39, - CAST ( 86 AS INTEGER ) + 6 + + 15 ) ) ) AS col1
----
11

query I rowsort
SELECT ALL 23 + - 21
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT + 22 * + + 76 + - + ( ( + - COUNT( * ) ) ) AS col1
----
1673

skipif mysql # not compatible
query I rowsort label-3452
SELECT + 22 * + + 76 + - + ( ( + - COUNT ( * ) ) ) AS col1
----
1673

query II rowsort
SELECT DISTINCT - 30, - 98 AS col2
----
-30
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-3454
SELECT + 13, SUM( + 97 ) + + SUM( ALL + - 40 ) * - - 13 + 73 AS col0
----
13
-350

skipif mysql # not compatible
query II rowsort label-3454
SELECT + 13, SUM ( + 97 ) + + SUM ( ALL + - 40 ) * - - 13 + 73 AS col0
----
13
-350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT 69 + - CAST( - 91 AS SIGNED )
----
160

skipif mysql # not compatible
query I rowsort label-3455
SELECT 69 + - CAST ( - 91 AS INTEGER )
----
160

query II rowsort
SELECT - 68, - 26 AS col0
----
-68
-26

query I rowsort
SELECT ALL 87 + CASE - 66 WHEN - - 32 THEN + ( + + 21 ) / + 31 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3458
SELECT 51, - 21 * + COUNT( * ) AS col1
----
51
-21

skipif mysql # not compatible
query II rowsort label-3458
SELECT 51, - 21 * + COUNT ( * ) AS col1
----
51
-21

query I rowsort
SELECT ALL 40 * + 56 AS col2
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT CASE 34 WHEN + + 56 * + 76 THEN 67 ELSE NULL END / - COUNT( * ) / - 56 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT CASE 34 WHEN + + 56 * + 76 THEN 67 ELSE NULL END / - COUNT ( * ) / - 56 col1
----
NULL

query II rowsort
SELECT - 34 AS col2, + COALESCE ( 56, - - 6 )
----
-34
56

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

skipif mysql # not compatible
query II rowsort label-3462
SELECT ALL 33 - + CAST ( NULL AS INTEGER ) + - COUNT ( * ), + 44 col0
----
NULL
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL NULLIF ( COALESCE ( + + 14, 36, - - 40 + - - 54 ), MAX( - + 17 ) ) - 52 * + + 52 col1
----
-2690

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL NULLIF ( COALESCE ( + + 14, 36, - - 40 + - - 54 ), MAX ( - + 17 ) ) - 52 * + + 52 col1
----
-2690

query II rowsort
SELECT - 92 AS col0, - 54
----
-92
-54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT CASE - 86 WHEN - 5 * - 68 THEN + + 98 + + + CAST( NULL AS SIGNED ) - - + 73 END - - - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT CASE - 86 WHEN - 5 * - 68 THEN + + 98 + + + CAST ( NULL AS INTEGER ) - - + 73 END - - - 66
----
NULL

query I rowsort
SELECT 97 - + 22 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3468
SELECT COUNT( * ) * + MIN( ALL + 14 ), 91 * + + CAST( - 50 AS SIGNED ) - - 95 AS col2
----
14
-4455

skipif mysql # not compatible
query II rowsort label-3468
SELECT COUNT ( * ) * + MIN ( ALL + 14 ), 91 * + + CAST ( - 50 AS INTEGER ) - - 95 AS col2
----
14
-4455

onlyif mysql # aggregate syntax: 
query II rowsort label-3469
SELECT - - 27, 17 + - 65 * - COUNT( ALL + - 37 ) + - - 88 AS col2
----
27
170

skipif mysql # not compatible
query II rowsort label-3469
SELECT - - 27, 17 + - 65 * - COUNT ( ALL + - 37 ) + - - 88 AS col2
----
27
170

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

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

query I rowsort
SELECT ALL + NULLIF ( ( + + 79 ), + 48 ) * + - 99
----
-7821

query I rowsort
SELECT 20 * - 31 col2
----
-620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3473
SELECT COUNT( * ) DIV + MIN( DISTINCT 69 ) - ( 49 ) + + 58 * - 69 * + COUNT( ALL - 76 ) * - COUNT( * ) + + + COUNT( * ) * + 61 * - SUM( DISTINCT - 15 )
----
4868

skipif mysql # not compatible
query I rowsort label-3473
SELECT COUNT ( * ) / + MIN ( DISTINCT 69 ) - ( 49 ) + + 58 * - 69 * + COUNT ( ALL - 76 ) * - COUNT ( * ) + + + COUNT ( * ) * + 61 * - SUM ( DISTINCT - 15 )
----
4868

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

skipif mysql # not compatible
query II rowsort label-3474
SELECT - COUNT ( * ) AS col0, 94
----
-1
94

query I rowsort
SELECT - 71 - - - 5 AS col2
----
-76

query I rowsort
SELECT DISTINCT + 19 * - - 37
----
703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3477
SELECT + - ( - + CASE 99 WHEN 92 * NULLIF ( - 30, - MAX( DISTINCT 9 ) - - 96 ) THEN - + COUNT( * ) * + + CAST( 88 AS SIGNED ) WHEN - 8 - - COALESCE ( + 60 + 25 * 74, 65, CAST( NULL AS SIGNED ) + 24 ) / 80 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT + - ( - + CASE 99 WHEN 92 * NULLIF ( - 30, - MAX ( DISTINCT 9 ) - - 96 ) THEN - + COUNT ( * ) * + + CAST ( 88 AS INTEGER ) WHEN - 8 - - COALESCE ( + 60 + 25 * 74, 65, CAST ( NULL AS INTEGER ) + 24 ) / 80 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3478
SELECT ALL - 79 AS col0, SUM( DISTINCT - - 9 ) AS col1
----
-79
9

skipif mysql # not compatible
query II rowsort label-3478
SELECT ALL - 79 AS col0, SUM ( DISTINCT - - 9 ) AS col1
----
-79
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3479
SELECT - 46 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-3479
SELECT - 46 / - 79
----
0

query I rowsort
SELECT ALL 16 + - ( - 18 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3481
SELECT 59 * - 20 AS col1, CAST( NULL AS DECIMAL ) - CASE - 43 WHEN - CAST( NULL AS SIGNED ) THEN - ( + MAX( DISTINCT - - 58 ) ) + 1 ELSE + ( CAST( NULL AS SIGNED ) ) END AS col0
----
-1180
NULL

skipif mysql # not compatible
query II rowsort label-3481
SELECT 59 * - 20 AS col1, CAST ( NULL AS REAL ) - CASE - 43 WHEN - CAST ( NULL AS INTEGER ) THEN - ( + MAX ( DISTINCT - - 58 ) ) + 1 ELSE + ( CAST ( NULL AS INTEGER ) ) END AS col0
----
-1180
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3482
SELECT DISTINCT - 88 + + ( + 30 ) DIV + 57
----
-88

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT - 88 + + ( + 30 ) / + 57
----
-88

query I rowsort
SELECT ALL + 34 + 78 AS col2
----
112

query I rowsort
SELECT 49 - + 17
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3485
SELECT SUM( - 15 ) * + + 68 + - 51 AS col1, ( + - 28 ) + - 29 * + - 8 * + 64 AS col2
----
-1071
14820

skipif mysql # not compatible
query II rowsort label-3485
SELECT SUM ( - 15 ) * + + 68 + - 51 AS col1, ( + - 28 ) + - 29 * + - 8 * + 64 AS col2
----
-1071
14820

query I rowsort
SELECT ALL + 98 * 33 AS col1
----
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT COUNT( * ) * + 88 + + 79 + MAX( - 37 ) AS col0
----
130

skipif mysql # not compatible
query I rowsort label-3487
SELECT COUNT ( * ) * + 88 + + 79 + MAX ( - 37 ) AS col0
----
130

query I rowsort
SELECT DISTINCT + 17 * - - 85 * 62
----
89590

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL COUNT( * ) - + 89 col0
----
-88

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL COUNT ( * ) - + 89 col0
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-3490
SELECT MAX( - 34 ) * - 74 + + 88, 62 AS col0
----
2604
62

skipif mysql # not compatible
query II rowsort label-3490
SELECT MAX ( - 34 ) * - 74 + + 88, 62 AS col0
----
2604
62

query I rowsort
SELECT ALL + 99 * + + ( + 38 ) AS col2
----
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT COALESCE ( + + 95, - 95 - + - 87 ) + + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3492
SELECT COALESCE ( + + 95, - 95 - + - 87 ) + + COUNT ( * ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT 74 * - 94 * + COUNT( * ) AS col2
----
-6956

skipif mysql # not compatible
query I rowsort label-3493
SELECT 74 * - 94 * + COUNT ( * ) AS col2
----
-6956

query I rowsort
SELECT ( 97 ) * + 68
----
6596

query I rowsort
SELECT 93 + + + 95 + - - 42 AS col1
----
230

query I rowsort
SELECT 29 - - 87 + 70 * + ( 14 ) + + 60 * - 47 * + 16
----
-44024

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3497
SELECT ALL 31 DIV + 5 AS col1, COUNT( * ) col0
----
6
1

skipif mysql # not compatible
query II rowsort label-3497
SELECT ALL 31 / + 5 AS col1, COUNT ( * ) col0
----
6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT COUNT( * ) + + + COUNT( * ) + - 79 * + 33
----
-2605

skipif mysql # not compatible
query I rowsort label-3498
SELECT COUNT ( * ) + + + COUNT ( * ) + - 79 * + 33
----
-2605

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT DISTINCT - + COALESCE ( + - 8, + - 47 * - - 95, - + 17 ) DIV - 42 * + 16
----
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT - + COALESCE ( + - 8, + - 47 * - - 95, - + 17 ) / - 42 * + 16
----
0

query I rowsort
SELECT ALL 58 * NULLIF ( - + NULLIF ( 86, 94 * + ( + + ( + + 42 ) ) ), - 2 ) + + + 13
----
-4975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3501
SELECT DISTINCT - 40 + - COUNT( * ) + 98 * ( 95 ) DIV + 70 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT - 40 + - COUNT ( * ) + 98 * ( 95 ) / + 70 AS col0
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ALL 47 + 73 / 92 * 54 - - + CASE + 17 WHEN + 87 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL 47 + 73 / 92 * 54 - - + CASE + 17 WHEN + 87 THEN - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT 45 + - + 85
----
-40

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

skipif mysql # not compatible
query I rowsort label-3505
SELECT + 91 * + - 37 + + COUNT ( * ) AS col1
----
-3366

query II rowsort
SELECT ALL 86 * + - 72 + 6 + 3, - 70 * + + 76 col0
----
-6183
-5320

query I rowsort
SELECT + + 16 * - 14 + + 9
----
-215

query I rowsort
SELECT DISTINCT + + 61 * + 34 * 74 AS col0
----
153476

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT + 71 * - - COUNT( * ) / - 34 / - 64 * - CASE + 72 WHEN - 51 THEN NULL WHEN + 35 + - + 80 THEN COUNT( * ) END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT + 71 * - - COUNT ( * ) / - 34 / - 64 * - CASE + 72 WHEN - 51 THEN NULL WHEN + 35 + - + 80 THEN COUNT ( * ) END + COUNT ( * )
----
NULL

query I rowsort
SELECT + NULLIF ( - ( 48 ), 67 ) AS col2
----
-48

query I rowsort
SELECT - 6 + + + 12 + + 57 * 18
----
1032

query I rowsort
SELECT + 52 * 57 AS col1
----
2964

query I rowsort
SELECT ALL - 75 * 9 col1
----
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3514
SELECT + 70 + - CAST( + - 42 AS SIGNED ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-3514
SELECT + 70 + - CAST ( + - 42 AS INTEGER ) AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3515
SELECT CAST( NULL AS SIGNED ) * - 10 + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT CAST ( NULL AS INTEGER ) * - 10 + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT SUM( ALL - 96 ) col2
----
-96

skipif mysql # not compatible
query I rowsort label-3516
SELECT SUM ( ALL - 96 ) col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT ALL 51 * + 40 - + - 70 + - 53 * + 86 * SUM( DISTINCT 38 )
----
-171094

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL 51 * + 40 - + - 70 + - 53 * + 86 * SUM ( DISTINCT 38 )
----
-171094

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT ALL - 39 DIV - 24 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - 39 / - 24 AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT - COUNT ( * ) / - + 94
----
0

query I rowsort
SELECT + 75 * - + 55 + 75
----
-4050

query I rowsort
SELECT + 86 * - 26 col1
----
-2236

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

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

query II rowsort
SELECT - 90 AS col0, + 17
----
-90
17

query I rowsort
SELECT - 86 * 65
----
-5590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3525
SELECT ALL COALESCE ( - 29, CAST( + 87 AS SIGNED ) ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL COALESCE ( - 29, CAST ( + 87 AS INTEGER ) ) AS col0
----
-29

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

skipif mysql # not compatible
query II rowsort label-3526
SELECT 13, COUNT ( * ) AS col1
----
13
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT ALL - COUNT( * ) * - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL - COUNT ( * ) * - COUNT ( * ) col0
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3529
SELECT - - ( + MIN( ALL + 44 ) ) / MIN( + CAST( NULL AS DECIMAL ) ) + - COUNT( * ) + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT - - ( + MIN ( ALL + 44 ) ) / MIN ( + CAST ( NULL AS REAL ) ) + - COUNT ( * ) + + 11
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT ALL + CAST( NULLIF ( - 72, - + 13 ) AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL + CAST ( NULLIF ( - 72, - + 13 ) AS INTEGER )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT - MAX( ALL - 70 ) - 29
----
41

skipif mysql # not compatible
query I rowsort label-3531
SELECT - MAX ( ALL - 70 ) - 29
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3532
SELECT - 6 - - 8 * - COUNT( * ) - - ( MAX( DISTINCT + 79 ) ) DIV 37 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3532
SELECT - 6 - - 8 * - COUNT ( * ) - - ( MAX ( DISTINCT + 79 ) ) / 37 AS col0
----
-12

query I rowsort
SELECT DISTINCT + 28 + - + ( + - 38 ) AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT ALL - - ( + 22 ) DIV + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL - - ( + 22 ) / + 78 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3535
SELECT ALL - 95 + + 96 DIV - 78
----
-96

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL - 95 + + 96 / - 78
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3536
SELECT ALL - COUNT( * ) * + COALESCE ( + + COUNT( * ), 24 * + 52 * ( - + 22 ) / 91 + 57 ) / - CAST( NULL AS SIGNED ) - AVG ( - 77 ) + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL - COUNT ( * ) * + COALESCE ( + + COUNT ( * ), 24 * + 52 * ( - + 22 ) / 91 + 57 ) / - CAST ( NULL AS INTEGER ) - AVG ( - 77 ) + 90 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + + 43 AS col0, + 62 col0
----
43
62

query I rowsort
SELECT + 94 * - - 98
----
9212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3539
SELECT ALL + 23 AS col0, 0 * - COUNT( DISTINCT + 27 ) + + MIN( ALL + CAST( + - 80 AS SIGNED ) ) + - 31 col2
----
23
-111

skipif mysql # not compatible
query II rowsort label-3539
SELECT ALL + 23 AS col0, 0 * - COUNT ( DISTINCT + 27 ) + + MIN ( ALL + CAST ( + - 80 AS INTEGER ) ) + - 31 col2
----
23
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3540
SELECT + CASE + 44 WHEN + 51 * + 22 THEN 32 + + - COUNT( * ) * COUNT( * ) * - 84 + + 71 + + CAST( NULL AS SIGNED ) * + 17 * - + MIN( - 59 ) / + 83 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3540
SELECT + CASE + 44 WHEN + 51 * + 22 THEN 32 + + - COUNT ( * ) * COUNT ( * ) * - 84 + + 71 + + CAST ( NULL AS INTEGER ) * + 17 * - + MIN ( - 59 ) / + 83 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT ALL + COALESCE ( + 17, - ( - + 1 ) ) DIV + - 26 * - + 94 - + 70
----
-70

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL + COALESCE ( + 17, - ( - + 1 ) ) / + - 26 * - + 94 - + 70
----
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT + COALESCE ( + MAX( + 52 ), 68, - + 56 )
----
52

skipif mysql # not compatible
query I rowsort label-3543
SELECT + COALESCE ( + MAX ( + 52 ), 68, - + 56 )
----
52

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

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

query I rowsort
SELECT + 99 * + 47 * 67 AS col2
----
311751

query I rowsort
SELECT ALL - 44 * - - 48 AS col2
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT + ( 15 ) - + COUNT( * ) + 27 + - ( + 48 ) * + ( 17 ) * + 60 * + 72
----
-3525079

skipif mysql # not compatible
query I rowsort label-3547
SELECT + ( 15 ) - + COUNT ( * ) + 27 + - ( + 48 ) * + ( 17 ) * + 60 * + 72
----
-3525079

query I rowsort
SELECT + 63 * - 9 AS col2
----
-567

query I rowsort
SELECT - 69 * - 76
----
5244

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

query I rowsort
SELECT COALESCE ( ( + - 80 ), NULLIF ( + + 51, 81 ) )
----
-80

query I rowsort
SELECT + 46 * - - 64 + + 84
----
3028

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT 82 * - - 59 + + NULLIF ( COUNT( * ), ( 42 ) ) + 51 * - - 97
----
9786

skipif mysql # not compatible
query I rowsort label-3553
SELECT 82 * - - 59 + + NULLIF ( COUNT ( * ), ( 42 ) ) + 51 * - - 97
----
9786

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL 56 * + MIN( DISTINCT - 98 )
----
-5488

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL 56 * + MIN ( DISTINCT - 98 )
----
-5488

query I rowsort
SELECT - 26 - 6
----
-32

query II rowsort
SELECT ALL 50, COALESCE ( 94, 68 ) AS col1
----
50
94

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

skipif mysql # not compatible
query I rowsort label-3557
SELECT - 19 / + 88
----
0

query I rowsort
SELECT - 23 + + 48
----
25

query I rowsort
SELECT + 76 + + 0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT - CASE 1 WHEN + - 33 THEN COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN + ( 56 ) * + - 76 * 12 THEN 53 + COALESCE ( + 78, - 8 ) * - + 86 + - - MAX( DISTINCT - 73 ) + + COUNT( * ) * 63 ELSE - 49 END + - 76 * + 40
----
-2991

skipif mysql # not compatible
query I rowsort label-3560
SELECT - CASE 1 WHEN + - 33 THEN COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN + ( 56 ) * + - 76 * 12 THEN 53 + COALESCE ( + 78, - 8 ) * - + 86 + - - MAX ( DISTINCT - 73 ) + + COUNT ( * ) * 63 ELSE - 49 END + - 76 * + 40
----
-2991

query I rowsort
SELECT ALL + 79 + 68 AS col0
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3562
SELECT CAST( NULL AS SIGNED ) * - 18 * + MAX( ALL 0 ) / - - 85 + - 69 col1, 89 * - ( + + 53 ) - 42
----
NULL
-4759

skipif mysql # not compatible
query II rowsort label-3562
SELECT CAST ( NULL AS INTEGER ) * - 18 * + MAX ( ALL 0 ) / - - 85 + - 69 col1, 89 * - ( + + 53 ) - 42
----
NULL
-4759

onlyif mysql # DIV for integer division: 
query I rowsort label-3563
SELECT 51 DIV + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3563
SELECT 51 / + 59 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3564
SELECT DISTINCT - 97 - + COUNT( * ) AS col0, 71
----
-98
71

skipif mysql # not compatible
query II rowsort label-3564
SELECT DISTINCT - 97 - + COUNT ( * ) AS col0, 71
----
-98
71

query I rowsort
SELECT 0 * + - 38 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3566
SELECT - - 43 AS col2, 95 + COUNT( * ) AS col0
----
43
96

skipif mysql # not compatible
query II rowsort label-3566
SELECT - - 43 AS col2, 95 + COUNT ( * ) AS col0
----
43
96

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

skipif mysql # not compatible
query I rowsort label-3567
SELECT + MIN ( + 99 )
----
99

query I rowsort
SELECT + ( + 35 ) + + 47 * - - 59
----
2808

onlyif mysql # DIV for integer division: 
query I rowsort label-3569
SELECT 62 DIV 28
----
2

skipif mysql # not compatible
query I rowsort label-3569
SELECT 62 / 28
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3570
SELECT ALL - MAX( DISTINCT + - CAST( NULL AS SIGNED ) ), + 53 * 88 col2
----
NULL
4664

skipif mysql # not compatible
query II rowsort label-3570
SELECT ALL - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ), + 53 * 88 col2
----
NULL
4664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3571
SELECT COUNT( DISTINCT 1 ) DIV + 89 * 65 + 64 * - 24
----
-1536

skipif mysql # not compatible
query I rowsort label-3571
SELECT COUNT ( DISTINCT 1 ) / + 89 * 65 + 64 * - 24
----
-1536

query I rowsort
SELECT ALL + 40 * 15 AS col1
----
600

query I rowsort
SELECT 3 + + 5
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT - COUNT( * ) * - + 42 * COUNT( * ) * - + 4 + + + ( + 5 ) + + 68 - - 76 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-3574
SELECT - COUNT ( * ) * - + 42 * COUNT ( * ) * - + 4 + + + ( + 5 ) + + 68 - - 76 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT + ( - - 15 ) * + 20 + CASE WHEN 30 IN ( + 60, + 18 + + - 59 + + SUM( DISTINCT + 27 ) ) THEN + NULLIF ( - 40, - - 14 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT + ( - - 15 ) * + 20 + CASE WHEN 30 IN ( + 60, + 18 + + - 59 + + SUM ( DISTINCT + 27 ) ) THEN + NULLIF ( - 40, - - 14 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT DISTINCT CAST( - - 13 AS SIGNED ) + + 69
----
82

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT CAST ( - - 13 AS INTEGER ) + + 69
----
82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL ( - ( + 61 ) ) + + 66 * COUNT( * ) * + 73 + 70 * + - COUNT( * ) * - 81
----
10427

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL ( - ( + 61 ) ) + + 66 * COUNT ( * ) * + 73 + 70 * + - COUNT ( * ) * - 81
----
10427

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

skipif mysql # not compatible
query I rowsort label-3579
SELECT - COUNT ( * ) / + 28 col1
----
0

query I rowsort
SELECT ALL - ( + - 18 ) + - 29
----
-11

query I rowsort
SELECT + ( + NULLIF ( 0, 48 ) )
----
0

query I rowsort
SELECT + 74 * + 18 * + 21 * - + 66
----
-1846152

query II rowsort
SELECT DISTINCT 53 * + 21, 66 col0
----
1113
66

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3585
SELECT ALL - 59 * CAST( NULL AS SIGNED ), - ( 33 ) * - 81 * + 82 AS col2
----
NULL
219186

skipif mysql # not compatible
query II rowsort label-3585
SELECT ALL - 59 * CAST ( NULL AS INTEGER ), - ( 33 ) * - 81 * + 82 AS col2
----
NULL
219186

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

skipif mysql # not compatible
query I rowsort label-3586
SELECT - CAST ( 38 AS INTEGER ) + + + ( + COUNT ( * ) )
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3587
SELECT - COUNT( * ) * - + 45, 19 AS col0
----
45
19

skipif mysql # not compatible
query II rowsort label-3587
SELECT - COUNT ( * ) * - + 45, 19 AS col0
----
45
19

query I rowsort
SELECT 66 + - + 76
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3589
SELECT SUM( ALL - + 21 ) DIV - 18 + 53
----
54

skipif mysql # not compatible
query I rowsort label-3589
SELECT SUM ( ALL - + 21 ) / - 18 + 53
----
54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3591
SELECT ALL - CAST( 93 AS SIGNED ), 37 - + ( + + 21 ) + - 10 * - - ( + MIN( DISTINCT - 5 ) ) AS col0
----
-93
66

skipif mysql # not compatible
query II rowsort label-3591
SELECT ALL - CAST ( 93 AS INTEGER ), 37 - + ( + + 21 ) + - 10 * - - ( + MIN ( DISTINCT - 5 ) ) AS col0
----
-93
66

query I rowsort
SELECT ALL COALESCE ( 29, - 1 ) AS col1
----
29

query I rowsort
SELECT 58 * - 96 AS col1
----
-5568

onlyif mysql # aggregate syntax: 
query II rowsort label-3594
SELECT + COUNT( * ) - - 39 AS col2, + 94
----
40
94

skipif mysql # not compatible
query II rowsort label-3594
SELECT + COUNT ( * ) - - 39 AS col2, + 94
----
40
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3595
SELECT DISTINCT + COALESCE ( + + CAST( NULL AS SIGNED ), - 34 + COUNT( * ), + 91 ) AS col1, 29 DIV - 62 AS col1
----
-33
0

skipif mysql # not compatible
query II rowsort label-3595
SELECT DISTINCT + COALESCE ( + + CAST ( NULL AS INTEGER ), - 34 + COUNT ( * ), + 91 ) AS col1, 29 / - 62 AS col1
----
-33
0

query I rowsort
SELECT 78 * 95 AS col0
----
7410

query I rowsort
SELECT ALL + 44 * ( 38 ) AS col2
----
1672

query II rowsort
SELECT 19 AS col0, 72
----
19
72

query I rowsort
SELECT DISTINCT + 71 * + + NULLIF ( - 67, + 56 * + 49 + 56 ) AS col2
----
-4757

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3600
SELECT + ( COUNT( * ) ) DIV - + 47 * - 37 - + SUM( 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3600
SELECT + ( COUNT ( * ) ) / - + 47 * - 37 - + SUM ( 35 ) AS col1
----
-35

query I rowsort
SELECT ALL + 53 * 94
----
4982

query I rowsort
SELECT 3 * + 95 * 82 * - 45
----
-1051650

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT 74 - - - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-3603
SELECT 74 - - - COUNT ( * )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3604
SELECT COUNT( * ) DIV ( - 39 ) * + 43 + 65
----
65

skipif mysql # not compatible
query I rowsort label-3604
SELECT COUNT ( * ) / ( - 39 ) * + 43 + 65
----
65

query I rowsort
SELECT 93 * + 45 AS col2
----
4185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3606
SELECT ALL + NULLIF ( - - 94, - + COUNT( * ) + + 52 ) DIV + ( - COALESCE ( - 37, ( - 44 ) ) ) col2
----
2

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL + NULLIF ( - - 94, - + COUNT ( * ) + + 52 ) / + ( - COALESCE ( - 37, ( - 44 ) ) ) col2
----
2

query II rowsort
SELECT ALL - 68, + 57 + 29 AS col2
----
-68
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL - COUNT( * ) * 19 + - COUNT( * ) * 38 + + 33 * + 92
----
2979

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL - COUNT ( * ) * 19 + - COUNT ( * ) * 38 + + 33 * + 92
----
2979

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3610
SELECT ALL + 9 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL + 9 / + 17
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3611
SELECT 2 + 24 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT 2 + 24 * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT COUNT( * ) + - 95 * - 29 * + + 85 + - COALESCE ( - - 25, 50 ) - + 24 * - - COUNT( * )
----
234127

skipif mysql # not compatible
query I rowsort label-3612
SELECT COUNT ( * ) + - 95 * - 29 * + + 85 + - COALESCE ( - - 25, 50 ) - + 24 * - - COUNT ( * )
----
234127

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3614
SELECT COUNT( - - ( - - 27 ) ), + 80 + + - 18 DIV + COALESCE ( - CAST( NULL AS SIGNED ), + 67, - COUNT( * ) DIV 52 + 64 + 76 * - 33 ) - - - 86 * + 91 col0
----
1
-7746

skipif mysql # not compatible
query II rowsort label-3614
SELECT COUNT ( - - ( - - 27 ) ), + 80 + + - 18 / + COALESCE ( - CAST ( NULL AS INTEGER ), + 67, - COUNT ( * ) / 52 + 64 + 76 * - 33 ) - - - 86 * + 91 col0
----
1
-7746

query I rowsort
SELECT + 45 + + 71 AS col0
----
116

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

skipif mysql # not compatible
query I rowsort label-3616
SELECT - ( - - SUM ( + + 99 ) )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3617
SELECT - 57 * + 53 + + + COUNT( * ) AS col0, - CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2
----
-3020
NULL

skipif mysql # not compatible
query II rowsort label-3617
SELECT - 57 * + 53 + + + COUNT ( * ) AS col0, - CAST ( NULL AS REAL ) * COUNT ( * ) AS col2
----
-3020
NULL

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

skipif mysql # not compatible
query I rowsort label-3618
SELECT + - SUM ( 69 )
----
-69

query I rowsort
SELECT ALL + 63 - + 32 - + 61 * - 35 * + 64
----
136671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3620
SELECT + 81 * - 91 + - COUNT( * ) DIV 91 + + MIN( DISTINCT + 90 )
----
-7281

skipif mysql # not compatible
query I rowsort label-3620
SELECT + 81 * - 91 + - COUNT ( * ) / 91 + + MIN ( DISTINCT + 90 )
----
-7281

onlyif mysql # DIV for integer division: 
query I rowsort label-3621
SELECT + 85 + 16 DIV - 25
----
85

skipif mysql # not compatible
query I rowsort label-3621
SELECT + 85 + 16 / - 25
----
85

query I rowsort
SELECT ALL 25 - - 78 * 77 AS col0
----
6031

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT + + 27 + 60 * - COUNT( * ) AS col2, 2 col2
----
-33
2

skipif mysql # not compatible
query II rowsort label-3624
SELECT + + 27 + 60 * - COUNT ( * ) AS col2, 2 col2
----
-33
2

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

skipif mysql # not compatible
query I rowsort label-3625
SELECT - - MAX ( + CAST ( + - 36 AS INTEGER ) )
----
-36

query I rowsort
SELECT ALL + 47 * + - 55 * - 38
----
98230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3627
SELECT + + ( + - COALESCE ( SUM( DISTINCT 23 ), + 78 ) ) + + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3627
SELECT + + ( + - COALESCE ( SUM ( DISTINCT 23 ), + 78 ) ) + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3628
SELECT DISTINCT 98, 12 + COUNT( * ) + CAST( NULL AS SIGNED ) AS col0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-3628
SELECT DISTINCT 98, 12 + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT + - 67 + 50 + CASE COUNT( * ) WHEN - 75 THEN + - CASE 42 WHEN + CASE - 21 WHEN - 38 / - + 86 + - ( 14 ) - + 99 + - - 30 * - 48 * + ( - 99 ) + 88 THEN + ( ( + 53 ) ) * 95 WHEN 55 / + 53 THEN AVG ( - 24 ) ELSE NULL END THEN COUNT( * ) WHEN - 17 THEN NULL WHEN + 80 * AVG ( DISTINCT - 67 ) THEN + SUM( ALL + 8 ) * 34 + 54 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT + - 67 + 50 + CASE COUNT ( * ) WHEN - 75 THEN + - CASE 42 WHEN + CASE - 21 WHEN - 38 / - + 86 + - ( 14 ) - + 99 + - - 30 * - 48 * + ( - 99 ) + 88 THEN + ( ( + 53 ) ) * 95 WHEN 55 / + 53 THEN AVG ( - 24 ) ELSE NULL END THEN COUNT ( * ) WHEN - 17 THEN NULL WHEN + 80 * AVG ( DISTINCT - 67 ) THEN + SUM ( ALL + 8 ) * 34 + 54 END ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 71 * + + 90 * + 90, 22 AS col0
----
575100
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT + 10 DIV + 2
----
5

skipif mysql # not compatible
query I rowsort label-3631
SELECT + 10 / + 2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT + COUNT( * ) + + + 21 * - 32
----
-671

skipif mysql # not compatible
query I rowsort label-3632
SELECT + COUNT ( * ) + + + 21 * - 32
----
-671

query I rowsort
SELECT + 76 + 2 + + ( + + 22 ) AS col0
----
100

query I rowsort
SELECT ALL 99 + + + 46
----
145

query I rowsort
SELECT - 70 * + - 71 AS col0
----
4970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3636
SELECT ALL + 22 * + CASE - CASE WHEN 7 <= SUM( - - CAST( NULL AS SIGNED ) ) THEN + + 33 END WHEN + + 57 * + CAST( NULL AS SIGNED ) / + - 31 + - CASE - 67 WHEN + - COUNT( * ) THEN NULL ELSE + CASE 28 WHEN + + 36 THEN 24 - 92 + + 42 * - CASE + 69 WHEN 22 THEN 14 / + 85 ELSE NULL END WHEN - 13 + 15 * 50 THEN 88 * 56 END END THEN + COUNT( * ) * + COUNT( * ) + 91 * + 27 END * - ( 75 - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL + 22 * + CASE - CASE WHEN 7 <= SUM ( - - CAST ( NULL AS INTEGER ) ) THEN + + 33 END WHEN + + 57 * + CAST ( NULL AS INTEGER ) / + - 31 + - CASE - 67 WHEN + - COUNT ( * ) THEN NULL ELSE + CASE 28 WHEN + + 36 THEN 24 - 92 + + 42 * - CASE + 69 WHEN 22 THEN 14 / + 85 ELSE NULL END WHEN - 13 + 15 * 50 THEN 88 * 56 END END THEN + COUNT ( * ) * + COUNT ( * ) + 91 * + 27 END * - ( 75 - 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3637
SELECT ALL - COUNT( DISTINCT 99 ) * - 6 + + COALESCE ( - + ( - - CASE 33 WHEN 73 * + 32 THEN NULL WHEN + 56 THEN 80 END ), + 81 ) - 95 + 99, - 8 * - 46 + COUNT( * ) AS col1
----
91
369

skipif mysql # not compatible
query II rowsort label-3637
SELECT ALL - COUNT ( DISTINCT 99 ) * - 6 + + COALESCE ( - + ( - - CASE 33 WHEN 73 * + 32 THEN NULL WHEN + 56 THEN 80 END ), + 81 ) - 95 + 99, - 8 * - 46 + COUNT ( * ) AS col1
----
91
369

query I rowsort
SELECT ( 62 ) col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3639
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), - COUNT( * ) * + + COALESCE ( - MAX( + ( + 63 ) ), + - 59 + - ( - + 87 ), + CASE + 1 WHEN 69 THEN NULL ELSE + 80 END, + + CASE + 86 WHEN - NULLIF ( + - ( - + 13 ), + 59 ) THEN NULL ELSE MAX( + 8 ) END ), 60 ) * + 92 AS col1
----
5796

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), - COUNT ( * ) * + + COALESCE ( - MAX ( + ( + 63 ) ), + - 59 + - ( - + 87 ), + CASE + 1 WHEN 69 THEN NULL ELSE + 80 END, + + CASE + 86 WHEN - NULLIF ( + - ( - + 13 ), + 59 ) THEN NULL ELSE MAX ( + 8 ) END ), 60 ) * + 92 AS col1
----
5796

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT - 4 + - + 26 * + + COUNT( * ) * - - 16
----
-420

skipif mysql # not compatible
query I rowsort label-3640
SELECT - 4 + - + 26 * + + COUNT ( * ) * - - 16
----
-420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3641
SELECT DISTINCT + 5 * - ( SUM( 73 ) ) * - 7 - - 71 + - MAX( - 98 ) DIV - 74
----
2625

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT + 5 * - ( SUM ( 73 ) ) * - 7 - - 71 + - MAX ( - 98 ) / - 74
----
2625

query I rowsort
SELECT ALL + 7 * - 97 + 68
----
-611

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

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

query I rowsort
SELECT - 68 * - 6 AS col0
----
408

onlyif mysql # DIV for integer division: 
query I rowsort label-3645
SELECT ALL - - 38 DIV 50 col0
----
0

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL - - 38 / 50 col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3647
SELECT ALL - + 46 DIV + 83 * 22
----
0

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - + 46 / + 83 * 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT - 32 * SUM( - 7 ) * + + COUNT( * ) AS col2
----
224

skipif mysql # not compatible
query I rowsort label-3648
SELECT - 32 * SUM ( - 7 ) * + + COUNT ( * ) AS col2
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT DISTINCT - COUNT( * ) * + - 32 + - MIN( 41 ) + - 7 - - 0
----
-16

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT - COUNT ( * ) * + - 32 + - MIN ( 41 ) + - 7 - - 0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3650
SELECT ALL + + COUNT( * ) * 91 - - + COALESCE ( - 46, - 26 + - - 42, 82 ) * 84 + 79, - 4 * + 0 + 13 + - - 30 AS col0
----
-3694
43

skipif mysql # not compatible
query II rowsort label-3650
SELECT ALL + + COUNT ( * ) * 91 - - + COALESCE ( - 46, - 26 + - - 42, 82 ) * 84 + 79, - 4 * + 0 + 13 + - - 30 AS col0
----
-3694
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3651
SELECT - 45 * 66 * - ( - - AVG ( ALL - ( CAST( NULL AS DECIMAL ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT - 45 * 66 * - ( - - AVG ( ALL - ( CAST ( NULL AS REAL ) ) ) )
----
NULL

query I rowsort
SELECT + NULLIF ( 35, 27 ) * - 79 + + + 75
----
-2690

query I rowsort
SELECT DISTINCT + 18 * + 11 AS col0
----
198

query II rowsort
SELECT DISTINCT + - 67 * + + 47 AS col2, + 39 + - + 81
----
-3149
-42

query I rowsort
SELECT DISTINCT - NULLIF ( - + 53, - 24 )
----
53

query I rowsort
SELECT - - 79 * 64 + ( 14 ) - + 80 col2
----
4990

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL - ( - - COUNT( DISTINCT - 57 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL - ( - - COUNT ( DISTINCT - 57 ) ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3658
SELECT ALL COALESCE ( 1, - CAST( NULL AS SIGNED ) * + - 68 ) col0, + 88
----
1
88

skipif mysql # not compatible
query II rowsort label-3658
SELECT ALL COALESCE ( 1, - CAST ( NULL AS INTEGER ) * + - 68 ) col0, + 88
----
1
88

query I rowsort
SELECT - 48 * + 52
----
-2496

query I rowsort
SELECT + 94 + + ( - + 61 )
----
33

query I rowsort
SELECT ALL 0 + NULLIF ( + 80, + 75 )
----
80

query I rowsort
SELECT ALL 58 + 1 AS col2
----
59

query I rowsort
SELECT + 82 * - - 45 * + 93 * 11
----
3774870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3664
SELECT + NULLIF ( - ( - 36 ), + CAST( NULL AS SIGNED ) ) - CAST( NULL AS SIGNED ) + - - COUNT( * ) * + 26 + + 49 / + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT + NULLIF ( - ( - 36 ), + CAST ( NULL AS INTEGER ) ) - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * + 26 + + 49 / + 99
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3666
SELECT DISTINCT - 36 + COUNT( ALL 91 ) AS col2, 98
----
-35
98

skipif mysql # not compatible
query II rowsort label-3666
SELECT DISTINCT - 36 + COUNT ( ALL 91 ) AS col2, 98
----
-35
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3667
SELECT ALL 46 + + + 73 DIV - 92 + + + COUNT( * ) * 8 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL 46 + + + 73 / - 92 + + + COUNT ( * ) * 8 AS col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT DISTINCT 57 * 12 DIV - + 92
----
-7

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT 57 * 12 / - + 92
----
-7

query I rowsort
SELECT ALL 81 + + ( - 18 ) * - + 13
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT - COALESCE ( - CASE - 80 WHEN 93 THEN - COUNT( * ) WHEN COUNT( + + 66 ) THEN NULL END, - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-3670
SELECT - COALESCE ( - CASE - 80 WHEN 93 THEN - COUNT ( * ) WHEN COUNT ( + + 66 ) THEN NULL END, - 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT + 92 - + 3 * - - COUNT( * ) + 93
----
182

skipif mysql # not compatible
query I rowsort label-3671
SELECT + 92 - + 3 * - - COUNT ( * ) + 93
----
182

query I rowsort
SELECT + 50 * + 82 AS col2
----
4100

onlyif mysql # DIV for integer division: 
query I rowsort label-3673
SELECT + 68 DIV + 85 col1
----
0

skipif mysql # not compatible
query I rowsort label-3673
SELECT + 68 / + 85 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT - 74 DIV + 84 * + + 3
----
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT - 74 / + 84 * + + 3
----
0

query I rowsort
SELECT ALL - CASE + 61 WHEN + 98 * - 14 THEN + 30 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3676
SELECT ALL ( + - 59 ) - 11 AS col1, - 94 * - 34 * + CASE - - CASE + 57 WHEN + - 78 * - 24 / 93 - - - 54 + - 50 * + 59 THEN - 10 * 81 * - + SUM( + - 54 ) WHEN 61 + 61 * + CAST( + 64 AS DECIMAL ) THEN NULL ELSE NULL END WHEN 60 * 78 THEN NULL WHEN 96 * - 49 THEN 24 - - COUNT( * ) ELSE 23 * 9 END AS col1
----
-70
661572

skipif mysql # not compatible
query II rowsort label-3676
SELECT ALL ( + - 59 ) - 11 AS col1, - 94 * - 34 * + CASE - - CASE + 57 WHEN + - 78 * - 24 / 93 - - - 54 + - 50 * + 59 THEN - 10 * 81 * - + SUM ( + - 54 ) WHEN 61 + 61 * + CAST ( + 64 AS REAL ) THEN NULL ELSE NULL END WHEN 60 * 78 THEN NULL WHEN 96 * - 49 THEN 24 - - COUNT ( * ) ELSE 23 * 9 END AS col1
----
-70
661572

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT + ( 81 ) * - NULLIF ( + SUM( DISTINCT - 48 ), NULLIF ( - MIN( ALL - - 94 ), + - 27 + NULLIF ( SUM( + 2 ), COUNT( * ) ) / + + 6 ) ) AS col2
----
3888

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT + ( 81 ) * - NULLIF ( + SUM ( DISTINCT - 48 ), NULLIF ( - MIN ( ALL - - 94 ), + - 27 + NULLIF ( SUM ( + 2 ), COUNT ( * ) ) / + + 6 ) ) AS col2
----
3888

query I rowsort
SELECT ALL + 15 - 76 AS col0
----
-61

query I rowsort
SELECT 95 - + 38
----
57

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

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL - MAX ( ALL - 66 )
----
66

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

skipif mysql # not compatible
query I rowsort label-3681
SELECT + MAX ( + + 76 )
----
76

query I rowsort
SELECT 43 + 7 AS col0
----
50

query I rowsort
SELECT ALL - 80 * + 28 AS col2
----
-2240

query I rowsort
SELECT 74 + - + ( + 99 ) + + 78
----
53

query I rowsort
SELECT + 99 * + ( + 4 ) + - 56
----
340

query I rowsort
SELECT - 43 + 89 + + + ( + + 39 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT + ( - 27 ) DIV + + 11 + 48
----
46

skipif mysql # not compatible
query I rowsort label-3687
SELECT + ( - 27 ) / + + 11 + 48
----
46

query I rowsort
SELECT - ( + + 10 ) + + 1 + 22
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3689
SELECT - ( + COUNT( * ) ) DIV - - ( + 85 ) - 53 * - + COUNT( - 29 ) * - ( 50 ) col0
----
-2650

skipif mysql # not compatible
query I rowsort label-3689
SELECT - ( + COUNT ( * ) ) / - - ( + 85 ) - 53 * - + COUNT ( - 29 ) * - ( 50 ) col0
----
-2650

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT + 35 * 91 + 23 - + + 81 - MAX( - 32 ) * - COUNT( * ) * 74 + - 38
----
721

skipif mysql # not compatible
query I rowsort label-3691
SELECT + 35 * 91 + 23 - + + 81 - MAX ( - 32 ) * - COUNT ( * ) * 74 + - 38
----
721

query II rowsort
SELECT 16, 67 + 38 AS col0
----
16
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3693
SELECT DISTINCT - 49 + 82 + ( - 91 ) DIV COUNT( + 58 ) * + 74 AS col0, CASE + + 59 WHEN + ( + + 4 ) * + 95 + + 61 * - - 17 + - 65 THEN - 64 + - 88 WHEN + 57 THEN ( - MIN( - + 81 ) ) DIV - 10 ELSE - 11 * 19 + 72 END * - 34
----
-6701
4658

skipif mysql # not compatible
query II rowsort label-3693
SELECT DISTINCT - 49 + 82 + ( - 91 ) / COUNT ( + 58 ) * + 74 AS col0, CASE + + 59 WHEN + ( + + 4 ) * + 95 + + 61 * - - 17 + - 65 THEN - 64 + - 88 WHEN + 57 THEN ( - MIN ( - + 81 ) ) / - 10 ELSE - 11 * 19 + 72 END * - 34
----
-6701
4658

query I rowsort
SELECT ALL + 95 + 73
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT - COUNT( * ) * + 27 * + 60 col1
----
-1620

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT - COUNT ( * ) * + 27 * + 60 col1
----
-1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3696
SELECT ALL 5 + 71 DIV - - COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL 5 + 71 / - - COUNT ( * ) AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3697
SELECT ALL - 23 * CAST( NULL AS SIGNED ) * - 0 / 84 * + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL - 23 * CAST ( NULL AS INTEGER ) * - 0 / 84 * + - 69
----
NULL

query I rowsort
SELECT 19 - 17 AS col2
----
2

query II rowsort
SELECT - 71 AS col0, 52 * - - 51
----
-71
2652

query I rowsort
SELECT ALL + 50 - - - 30 + + 61 * + 86 - + + ( + 23 ) col1
----
5243

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3702
SELECT COUNT( * ) + + + COALESCE ( + - CAST( - ( 0 ) AS SIGNED ), - 75 ) * - 12 * - - 76 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3702
SELECT COUNT ( * ) + + + COALESCE ( + - CAST ( - ( 0 ) AS INTEGER ), - 75 ) * - 12 * - - 76 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ( - 21 ) - 12 + + + MAX( DISTINCT - - 90 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3703
SELECT ( - 21 ) - 12 + + + MAX ( DISTINCT - - 90 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-3704
SELECT 28 + - + COUNT( * ), 30 col2
----
27
30

skipif mysql # not compatible
query II rowsort label-3704
SELECT 28 + - + COUNT ( * ), 30 col2
----
27
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3705
SELECT ALL - COUNT( - - 75 ) DIV - + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL - COUNT ( - - 75 ) / - + 55 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3707
SELECT - 25 * 35 + - NULLIF ( + 52, 67 + CAST( + COUNT( * ) AS SIGNED ) * - COALESCE ( 43, 58, + COUNT( * ) ) ) - - CAST( NULL AS SIGNED ) - 64 + - 85 + - COUNT( * ) - - + COUNT( * ) / + 32 * + + CASE + - 83 WHEN - - 40 THEN ( - 28 ) + COUNT( - 73 ) ELSE + 28 * + 93 + 9 * - 33 END * 16 / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3707
SELECT - 25 * 35 + - NULLIF ( + 52, 67 + CAST ( + COUNT ( * ) AS INTEGER ) * - COALESCE ( 43, 58, + COUNT ( * ) ) ) - - CAST ( NULL AS INTEGER ) - 64 + - 85 + - COUNT ( * ) - - + COUNT ( * ) / + 32 * + + CASE + - 83 WHEN - - 40 THEN ( - 28 ) + COUNT ( - 73 ) ELSE + 28 * + 93 + 9 * - 33 END * 16 / COUNT ( * ) AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3709
SELECT + - 2 / + 90 + - + CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT 9 + 62 * + MAX( ALL + - 81 )
----
-5013

skipif mysql # not compatible
query I rowsort label-3711
SELECT 9 + 62 * + MAX ( ALL + - 81 )
----
-5013

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT + + 87 * 93 * - - 14 - 46 * + - 93 + - 20 * - COUNT( * )
----
117572

skipif mysql # not compatible
query I rowsort label-3713
SELECT + + 87 * 93 * - - 14 - 46 * + - 93 + - 20 * - COUNT ( * )
----
117572

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT + + ( NULLIF ( - 24, 71 + SUM( 33 ) * - 92 / - + 90 * COUNT( * ) ) )
----
-24

skipif mysql # not compatible
query I rowsort label-3714
SELECT + + ( NULLIF ( - 24, 71 + SUM ( 33 ) * - 92 / - + 90 * COUNT ( * ) ) )
----
-24

query II rowsort
SELECT DISTINCT - + 15 AS col1, 62
----
-15
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + SUM( DISTINCT 94 ) * - - 28 AS col1
----
2632

skipif mysql # not compatible
query I rowsort label-3716
SELECT + SUM ( DISTINCT 94 ) * - - 28 AS col1
----
2632

query I rowsort
SELECT ALL - + ( 90 ) * + 11 AS col1
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL - - COALESCE ( MAX( + ( NULLIF ( - - 82, 66 ) ) ), + 85 + + + 75 )
----
82

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL - - COALESCE ( MAX ( + ( NULLIF ( - - 82, 66 ) ) ), + 85 + + + 75 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3719
SELECT - 90 * - 83 + + COUNT( * ) + COUNT( * ) * - ( + 4 ) * - 72 * ( - - ( + - COALESCE ( + COALESCE ( - 93, - CASE - 45 WHEN + NULLIF ( + - 28, 10 ) + + CAST( NULL AS DECIMAL ) + 70 * NULLIF ( - - 76, + ( + COALESCE ( 90, - 60 + + ( + 93 + + 37 ), CAST( - 30 AS SIGNED ) + + 15 ) ) * + CAST( NULL AS SIGNED ) ) THEN NULL ELSE 42 * 97 END ), - 59, - ( - 0 ) + 32 ) ) ) + 19 col0
----
34274

skipif mysql # not compatible
query I rowsort label-3719
SELECT - 90 * - 83 + + COUNT ( * ) + COUNT ( * ) * - ( + 4 ) * - 72 * ( - - ( + - COALESCE ( + COALESCE ( - 93, - CASE - 45 WHEN + NULLIF ( + - 28, 10 ) + + CAST ( NULL AS REAL ) + 70 * NULLIF ( - - 76, + ( + COALESCE ( 90, - 60 + + ( + 93 + + 37 ), CAST ( - 30 AS INTEGER ) + + 15 ) ) * + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE 42 * 97 END ), - 59, - ( - 0 ) + 32 ) ) ) + 19 col0
----
34274

onlyif mysql # aggregate syntax: 
query II rowsort label-3720
SELECT NULLIF ( - 26, + 39 - + 50 ), + COUNT( * ) col0
----
-26
1

skipif mysql # not compatible
query II rowsort label-3720
SELECT NULLIF ( - 26, + 39 - + 50 ), + COUNT ( * ) col0
----
-26
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3721
SELECT + 78 * + 18 + 58 + - + COALESCE ( - 91, - 84, - 7 ) - + CAST( - + 16 AS SIGNED ) + - - 60 AS col0
----
1629

skipif mysql # not compatible
query I rowsort label-3721
SELECT + 78 * + 18 + 58 + - + COALESCE ( - 91, - 84, - 7 ) - + CAST ( - + 16 AS INTEGER ) + - - 60 AS col0
----
1629

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT + CAST( - 21 AS SIGNED ) * - 15
----
315

skipif mysql # not compatible
query I rowsort label-3723
SELECT + CAST ( - 21 AS INTEGER ) * - 15
----
315

query I rowsort
SELECT ALL 47 * ( 98 )
----
4606

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT - COUNT( DISTINCT + 44 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3725
SELECT - COUNT ( DISTINCT + 44 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL + 63 + - 62 - + COUNT( * ) * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL + 63 + - 62 - + COUNT ( * ) * + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT 22 - - - ( + 52 ) * 76 AS col1
----
-3930

query I rowsort
SELECT 29 + - - 83 AS col2
----
112

query I rowsort
SELECT DISTINCT - 18 - + 37 - - 76 col2
----
21

query I rowsort
SELECT DISTINCT + 46 * - NULLIF ( + 18, - - ( + + 51 ) )
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT - 27 + + - 47 + + COUNT( * ) * - 55
----
-129

skipif mysql # not compatible
query I rowsort label-3731
SELECT - 27 + + - 47 + + COUNT ( * ) * - 55
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT SUM( ALL - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT SUM ( ALL - 88 )
----
-88

query I rowsort
SELECT ALL - 92 * - ( 9 ) * + + 30 + + 68 AS col2
----
24908

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

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

query I rowsort
SELECT - 73 * 91 AS col0
----
-6643

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3736
SELECT - 85 * 70 AS col1, + 35 + - CASE - + 81 WHEN - 79 * CAST( NULL AS SIGNED ) + + - 23 THEN NULL ELSE 99 END
----
-5950
-64

skipif mysql # not compatible
query II rowsort label-3736
SELECT - 85 * 70 AS col1, + 35 + - CASE - + 81 WHEN - 79 * CAST ( NULL AS INTEGER ) + + - 23 THEN NULL ELSE 99 END
----
-5950
-64

query II rowsort
SELECT ALL + ( 82 ) col1, + 15 * - 74 + + 14 * + 78 - + 30 col0
----
82
-48

query I rowsort
SELECT ALL + NULLIF ( 49, - - AVG ( + + 44 ) )
----
49

query I rowsort
SELECT - - 33 - 82 + - 66
----
-115

onlyif mysql # aggregate syntax: 
query II rowsort label-3740
SELECT + + CASE - 96 WHEN 99 THEN NULL WHEN + 37 THEN + 79 + - + 40 - COALESCE ( - 29, 83 ) + - NULLIF ( - + 77, - 66 + + ( + - 69 ) * - 75 ) * - COUNT( * ) + + - ( + 24 ) ELSE - 76 END * 33 AS col1, COUNT( * )
----
-2508
1

skipif mysql # not compatible
query II rowsort label-3740
SELECT + + CASE - 96 WHEN 99 THEN NULL WHEN + 37 THEN + 79 + - + 40 - COALESCE ( - 29, 83 ) + - NULLIF ( - + 77, - 66 + + ( + - 69 ) * - 75 ) * - COUNT ( * ) + + - ( + 24 ) ELSE - 76 END * 33 AS col1, COUNT ( * )
----
-2508
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3741
SELECT ALL 27 * + - 24 + - 32 + - 0 + + + 78 AS col2, + CASE + 86 WHEN + 90 * - 18 THEN NULL WHEN - - 51 THEN NULL ELSE + 44 END DIV COALESCE ( - ( - 69 ), 25 )
----
-602
0

skipif mysql # not compatible
query II rowsort label-3741
SELECT ALL 27 * + - 24 + - 32 + - 0 + + + 78 AS col2, + CASE + 86 WHEN + 90 * - 18 THEN NULL WHEN - - 51 THEN NULL ELSE + 44 END / COALESCE ( - ( - 69 ), 25 )
----
-602
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT + - 11 * - 57 - - - COUNT( * ) AS col2
----
626

skipif mysql # not compatible
query I rowsort label-3742
SELECT + - 11 * - 57 - - - COUNT ( * ) AS col2
----
626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3743
SELECT ALL - 39 * 83 + - 25 + 94 * + CAST( + 28 AS SIGNED ) + COUNT( * ) + ( - 38 )
----
-667

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL - 39 * 83 + - 25 + 94 * + CAST ( + 28 AS INTEGER ) + COUNT ( * ) + ( - 38 )
----
-667

query I rowsort
SELECT DISTINCT + 11 * - - 84 + 37 col2
----
961

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT - - 48 + COUNT( * ) * - - 54
----
102

skipif mysql # not compatible
query I rowsort label-3745
SELECT - - 48 + COUNT ( * ) * - - 54
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3746
SELECT ALL 34 * - - 38 - + + 93 + + COUNT( * ) DIV - 57 * COUNT( - 56 ) * + 32 * - 79
----
1199

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL 34 * - - 38 - + + 93 + + COUNT ( * ) / - 57 * COUNT ( - 56 ) * + 32 * - 79
----
1199

query I rowsort
SELECT + + 67 * - 10
----
-670

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT + - 56 + - 30 + - + 20 + - COUNT( * ) + - + 85 * - + 33 AS col1
----
2698

skipif mysql # not compatible
query I rowsort label-3748
SELECT + - 56 + - 30 + - + 20 + - COUNT ( * ) + - + 85 * - + 33 AS col1
----
2698

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3749
SELECT ALL - + 2 * + 23 + - CAST( NULL AS SIGNED ), 32 AS col0
----
NULL
32

skipif mysql # not compatible
query II rowsort label-3749
SELECT ALL - + 2 * + 23 + - CAST ( NULL AS INTEGER ), 32 AS col0
----
NULL
32

query I rowsort
SELECT + 94 + - + 77 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3751
SELECT ALL ( - ( - - 97 ) ) * - - 83 + + ( NULLIF ( - 17, - 23 + + 33 * + - 22 * COUNT( * ) + 24 ) ) + - NULLIF ( - 18, - 60 * - NULLIF ( - 96, - ( - + COUNT( * ) ) ) * + 19 * - 22 + + - 23 - + CASE - ( + 98 ) WHEN + 27 DIV - CAST( NULL AS SIGNED ) + COUNT( * ) THEN NULL WHEN + MAX( - COALESCE ( - 61, 4 - 65 DIV - 22 ) ) * - CAST( NULL AS SIGNED ) THEN NULL ELSE 26 END ) DIV 18 - + MIN( DISTINCT - 91 - 15 )
----
-7961

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL ( - ( - - 97 ) ) * - - 83 + + ( NULLIF ( - 17, - 23 + + 33 * + - 22 * COUNT ( * ) + 24 ) ) + - NULLIF ( - 18, - 60 * - NULLIF ( - 96, - ( - + COUNT ( * ) ) ) * + 19 * - 22 + + - 23 - + CASE - ( + 98 ) WHEN + 27 / - CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN NULL WHEN + MAX ( - COALESCE ( - 61, 4 - 65 / - 22 ) ) * - CAST ( NULL AS INTEGER ) THEN NULL ELSE 26 END ) / 18 - + MIN ( DISTINCT - 91 - 15 )
----
-7961

query I rowsort
SELECT + 87 + + 85
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT SUM( - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-3753
SELECT SUM ( - 68 )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3754
SELECT ALL 69 - - 79 + 93 DIV 42
----
150

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL 69 - - 79 + 93 / 42
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT - NULLIF ( COUNT( * ), - 25 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3755
SELECT - NULLIF ( COUNT ( * ), - 25 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3756
SELECT - 68 * - CAST( NULL AS SIGNED ) / 59 * - 18 * + CAST( - COALESCE ( - + 11, + + 18 * + 54 * + 14 / + CAST( NULL AS SIGNED ), 53 ) AS DECIMAL ) + + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT - 68 * - CAST ( NULL AS INTEGER ) / 59 * - 18 * + CAST ( - COALESCE ( - + 11, + + 18 * + 54 * + 14 / + CAST ( NULL AS INTEGER ), 53 ) AS REAL ) + + 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT - COUNT( + 76 ) * - 88 * COUNT( * ) * + ( - 73 )
----
-6424

skipif mysql # not compatible
query I rowsort label-3757
SELECT - COUNT ( + 76 ) * - 88 * COUNT ( * ) * + ( - 73 )
----
-6424

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

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL COUNT ( DISTINCT - 54 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3759
SELECT ALL CASE + 97 WHEN + 75 + + + 69 * CAST( - 37 AS SIGNED ) THEN - COUNT( * ) + - - 86 + + + COUNT( * ) + + + 6 + + - 14 WHEN + - 42 + - 48 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL CASE + 97 WHEN + 75 + + + 69 * CAST ( - 37 AS INTEGER ) THEN - COUNT ( * ) + - - 86 + + + COUNT ( * ) + + + 6 + + - 14 WHEN + - 42 + - 48 THEN NULL END
----
NULL

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

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

query II rowsort
SELECT 8, + 10 AS col2
----
8
10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3763
SELECT - ( + NULLIF ( + CAST( COUNT( DISTINCT - 92 ) AS SIGNED ), - - COUNT( * ) - + 58 * - 46 * - 83 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3763
SELECT - ( + NULLIF ( + CAST ( COUNT ( DISTINCT - 92 ) AS INTEGER ), - - COUNT ( * ) - + 58 * - 46 * - 83 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3764
SELECT - ( 69 ) * 6 AS col0, - 86 * ( - - SUM( + 29 ) )
----
-414
-2494

skipif mysql # not compatible
query II rowsort label-3764
SELECT - ( 69 ) * 6 AS col0, - 86 * ( - - SUM ( + 29 ) )
----
-414
-2494

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + 61 * ( + SUM( - 86 ) ) * 91 AS col1
----
-477386

skipif mysql # not compatible
query I rowsort label-3766
SELECT + 61 * ( + SUM ( - 86 ) ) * 91 AS col1
----
-477386

query II rowsort
SELECT - 46 col2, 71 * - + 51 + 9 AS col2
----
-46
-3612

query I rowsort
SELECT ALL - 93 + - ( - - 15 )
----
-108

query I rowsort
SELECT DISTINCT + 65 + 8
----
73

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3771
SELECT ALL + - MIN( COALESCE ( + 51, + 97 ) ) AS col0, 27 AS col1
----
-51
27

skipif mysql # not compatible
query II rowsort label-3771
SELECT ALL + - MIN ( COALESCE ( + 51, + 97 ) ) AS col0, 27 AS col1
----
-51
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL + + 43 / - 40 * - 13 + COUNT( * ) / 30 + - - ( + 28 ) * + + CASE + + 34 WHEN 12 THEN + 42 END + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL + + 43 / - 40 * - 13 + COUNT ( * ) / 30 + - - ( + 28 ) * + + CASE + + 34 WHEN 12 THEN + 42 END + + 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3773
SELECT + - MAX( DISTINCT + + 71 ) DIV + - 32 + 11 + + - 51 DIV + 14 AS col0, 97 col2
----
10
97

skipif mysql # not compatible
query II rowsort label-3773
SELECT + - MAX ( DISTINCT + + 71 ) / + - 32 + 11 + + - 51 / + 14 AS col0, 97 col2
----
10
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3774
SELECT + 7, CASE COUNT( * ) WHEN + COUNT( * ) THEN - 76 WHEN - 95 THEN - - 17 WHEN - + 4 * - CAST( NULL AS SIGNED ) + - ( 63 ) THEN 60 END AS col0
----
7
-76

skipif mysql # not compatible
query II rowsort label-3774
SELECT + 7, CASE COUNT ( * ) WHEN + COUNT ( * ) THEN - 76 WHEN - 95 THEN - - 17 WHEN - + 4 * - CAST ( NULL AS INTEGER ) + - ( 63 ) THEN 60 END AS col0
----
7
-76

query II rowsort
SELECT + ( ( + 35 ) ) AS col1, + ( + 8 )
----
35
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT DISTINCT + + COALESCE ( COUNT( - 34 ), - 59 + - COUNT( * ), + - 41 * + 69 + - 14 + - 37 * + - 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT + + COALESCE ( COUNT ( - 34 ), - 59 + - COUNT ( * ), + - 41 * + 69 + - 14 + - 37 * + - 16 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3777
SELECT DISTINCT + 14 DIV + - 78 DIV 3 AS col0, MIN( + - 0 ) + 35 + + 89 * - + 1
----
0
-54

skipif mysql # not compatible
query II rowsort label-3777
SELECT DISTINCT + 14 / + - 78 / 3 AS col0, MIN ( + - 0 ) + 35 + + 89 * - + 1
----
0
-54

query I rowsort
SELECT - 99 * - 89 AS col0
----
8811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT ( - NULLIF ( + 62, 47 + - CASE 63 WHEN + 92 + + 77 / 24 THEN ( + COUNT( * ) ) * - - CASE 19 WHEN - + 3 THEN NULL WHEN - NULLIF ( 36, + CAST( NULL AS SIGNED ) / 71 ) THEN - - AVG ( - - 47 ) * - ( - + 61 ) + 68 + + MIN( + 7 ) END WHEN ( - 34 ) THEN NULL ELSE NULL END / - 42 ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-3779
SELECT ( - NULLIF ( + 62, 47 + - CASE 63 WHEN + 92 + + 77 / 24 THEN ( + COUNT ( * ) ) * - - CASE 19 WHEN - + 3 THEN NULL WHEN - NULLIF ( 36, + CAST ( NULL AS INTEGER ) / 71 ) THEN - - AVG ( - - 47 ) * - ( - + 61 ) + 68 + + MIN ( + 7 ) END WHEN ( - 34 ) THEN NULL ELSE NULL END / - 42 ) ) AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3780
SELECT 0 * 97 - + NULLIF ( + CASE - 8 WHEN 96 THEN - 60 WHEN - + 41 + - 90 + - 67 + + 82 / - 38 THEN - 26 END, + 32 * - 26 ) * + CAST( NULL AS SIGNED ) / - 14 + - ( + NULLIF ( + 61, 82 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT 0 * 97 - + NULLIF ( + CASE - 8 WHEN 96 THEN - 60 WHEN - + 41 + - 90 + - 67 + + 82 / - 38 THEN - 26 END, + 32 * - 26 ) * + CAST ( NULL AS INTEGER ) / - 14 + - ( + NULLIF ( + 61, 82 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3781
SELECT 48 DIV + 54 col0
----
0

skipif mysql # not compatible
query I rowsort label-3781
SELECT 48 / + 54 col0
----
0

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

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

query I rowsort
SELECT ( 53 ) * + 71
----
3763

query II rowsort
SELECT ALL 9 * - 45 col0, + 35 AS col0
----
-405
35

query I rowsort
SELECT 57 - - 86
----
143

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

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

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

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL 73 + + CAST ( - + 87 AS INTEGER )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3788
SELECT - 84 + - + COUNT( * ) + - CAST( 22 AS SIGNED ) + 79 + 81 * + 95 * + 74 + + 7 * - 11 + - - 76 * 1 * - 16 + - 97 / CASE - 2 WHEN + 59 THEN NULL WHEN + + 39 + + 30 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT - 84 + - + COUNT ( * ) + - CAST ( 22 AS INTEGER ) + 79 + 81 * + 95 * + 74 + + 7 * - 11 + - - 76 * 1 * - 16 + - 97 / CASE - 2 WHEN + 59 THEN NULL WHEN + + 39 + + 30 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 54 * + + 25
----
1350

query I rowsort
SELECT DISTINCT - 14 + - 17
----
-31

query I rowsort
SELECT DISTINCT 81 + - ( + + 53 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT 64 * 6 * - MAX( - - 12 ) * + 31 + - 74
----
-142922

skipif mysql # not compatible
query I rowsort label-3792
SELECT 64 * 6 * - MAX ( - - 12 ) * + 31 + - 74
----
-142922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3793
SELECT ALL 99 + - + 46 + - CAST( NULL AS SIGNED ) * + - COALESCE ( + 81, + 76 / - 99 - + + 72, - - 95 * + CAST( + ( + + COALESCE ( NULLIF ( - + 81, + 33 ), + 8, 75 ) ) AS SIGNED ) / - - ( + + NULLIF ( COUNT( * ), + + 50 ) ) + - 81 * + + 98 + - SUM( DISTINCT 37 ) * + 24 ) + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL 99 + - + 46 + - CAST ( NULL AS INTEGER ) * + - COALESCE ( + 81, + 76 / - 99 - + + 72, - - 95 * + CAST ( + ( + + COALESCE ( NULLIF ( - + 81, + 33 ), + 8, 75 ) ) AS INTEGER ) / - - ( + + NULLIF ( COUNT ( * ), + + 50 ) ) + - 81 * + + 98 + - SUM ( DISTINCT 37 ) * + 24 ) + 77 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3794
SELECT DISTINCT - 53 DIV + 47
----
-1

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - 53 / + 47
----
-1

query I rowsort
SELECT - ( + 10 ) - + 37
----
-47

query I rowsort
SELECT ALL - 20 + + 86 AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3797
SELECT 43 - + + COUNT( * ), + 17 AS col1
----
42
17

skipif mysql # not compatible
query II rowsort label-3797
SELECT 43 - + + COUNT ( * ), + 17 AS col1
----
42
17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3799
SELECT ALL - CAST( + ( + ( + 27 ) ) AS SIGNED ) - - + 28 + 30
----
31

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL - CAST ( + ( + ( + 27 ) ) AS INTEGER ) - - + 28 + 30
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT + COUNT( * ) * + 96 * - + 95 + - - 40 + + - 54 + 55 + - 66
----
-9145

skipif mysql # not compatible
query I rowsort label-3800
SELECT + COUNT ( * ) * + 96 * - + 95 + - - 40 + + - 54 + 55 + - 66
----
-9145

query I rowsort
SELECT ALL + - 88 * - 74
----
6512

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT DISTINCT - - 25 - + SUM( 71 ) + - - 74 * 13 * + 22
----
21118

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT - - 25 - + SUM ( 71 ) + - - 74 * 13 * + 22
----
21118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3803
SELECT ALL + 68 * - CAST( NULL AS DECIMAL ) * - 68 - + 78 * + - 13 * + + ( + 45 ) + - ( - ( COUNT( * ) ) ) + + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL + 68 * - CAST ( NULL AS REAL ) * - 68 - + 78 * + - 13 * + + ( + 45 ) + - ( - ( COUNT ( * ) ) ) + + 97 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3804
SELECT 96 + COALESCE ( CAST( NULL AS SIGNED ), - 3 ) + - 22 + CASE + 75 WHEN + 86 THEN - + 41 + - + 90 WHEN - - ( + - 31 ) THEN COUNT( * ) ELSE NULL END + 37 * - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT 96 + COALESCE ( CAST ( NULL AS INTEGER ), - 3 ) + - 22 + CASE + 75 WHEN + 86 THEN - + 41 + - + 90 WHEN - - ( + - 31 ) THEN COUNT ( * ) ELSE NULL END + 37 * - - 94
----
NULL

query I rowsort
SELECT 38 * + 76
----
2888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3806
SELECT ALL - CASE + 50 WHEN + COUNT( * ) THEN - - COUNT( * ) DIV - 42 DIV 13 + - 31 ELSE - - 48 * + 11 END
----
-528

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL - CASE + 50 WHEN + COUNT ( * ) THEN - - COUNT ( * ) / - 42 / 13 + - 31 ELSE - - 48 * + 11 END
----
-528

onlyif mysql # DIV for integer division: 
query I rowsort label-3807
SELECT 51 * 44 DIV - + 10 col1
----
-224

skipif mysql # not compatible
query I rowsort label-3807
SELECT 51 * 44 / - + 10 col1
----
-224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3808
SELECT 5 * - ( - - COUNT( * ) ) + + - 57 * + 81 * + + 60 + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT 5 * - ( - - COUNT ( * ) ) + + - 57 * + 81 * + + 60 + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3809
SELECT 28 * MIN( ALL - 40 ), - COUNT( * ) AS col1
----
-1120
-1

skipif mysql # not compatible
query II rowsort label-3809
SELECT 28 * MIN ( ALL - 40 ), - COUNT ( * ) AS col1
----
-1120
-1

query II rowsort
SELECT - 59 * - + 81 + - 9 AS col1, 58 AS col0
----
4770
58

query I rowsort
SELECT ALL - CASE 41 WHEN + + COALESCE ( - ( - 2 ), - 26 ) THEN - + 11 ELSE + - ( - 7 ) * 21 END AS col0
----
-147

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3813
SELECT ALL - ( 83 ) * NULLIF ( - 10, - - 59 ) * 65 + - - COUNT( * ) + COUNT( 9 ) + + COALESCE ( 77, 50, + 34 + - 10 DIV - - 17 ) DIV + 49
----
53953

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL - ( 83 ) * NULLIF ( - 10, - - 59 ) * 65 + - - COUNT ( * ) + COUNT ( 9 ) + + COALESCE ( 77, 50, + 34 + - 10 / - - 17 ) / + 49
----
53953

onlyif mysql # aggregate syntax: 
query II rowsort label-3814
SELECT DISTINCT - CASE - COUNT( * ) WHEN - 12 + - + 13 THEN COALESCE ( + - COALESCE ( + - 95, - + 23 ), - + 48, COUNT( * ) ) END AS col0, 54 * - - COUNT( * ) * 85 AS col1
----
NULL
4590

skipif mysql # not compatible
query II rowsort label-3814
SELECT DISTINCT - CASE - COUNT ( * ) WHEN - 12 + - + 13 THEN COALESCE ( + - COALESCE ( + - 95, - + 23 ), - + 48, COUNT ( * ) ) END AS col0, 54 * - - COUNT ( * ) * 85 AS col1
----
NULL
4590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3815
SELECT 18 + 57 - + 31 + - COUNT( * ) * COUNT( - + NULLIF ( 84, + 30 ) ) * - CAST( NULL AS SIGNED ) / + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT 18 + 57 - + 31 + - COUNT ( * ) * COUNT ( - + NULLIF ( 84, + 30 ) ) * - CAST ( NULL AS INTEGER ) / + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT SUM( 42 ) + 21 * + 56 AS col1
----
1218

skipif mysql # not compatible
query I rowsort label-3816
SELECT SUM ( 42 ) + 21 * + 56 AS col1
----
1218

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3819
SELECT 73 DIV - 28 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3819
SELECT 73 / - 28 AS col2
----
-2

query I rowsort
SELECT ALL 74 + - + 98 * + - 67 + + 77 - + - 17 AS col2
----
6734

query I rowsort
SELECT ALL 32 + + 36 - - + ( + 73 )
----
141

query I rowsort
SELECT DISTINCT - 16 + - - ( 80 ) + - 96 col2
----
-32

query I rowsort
SELECT 56 * 39 * + + 36
----
78624

onlyif mysql # DIV for integer division: 
query I rowsort label-3824
SELECT ALL 26 DIV + 74 col2
----
0

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL 26 / + 74 col2
----
0

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

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + COUNT ( * ) + 33 AS col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3826
SELECT ALL COUNT( * ) + 87 - - 27 - + + CAST( NULL AS SIGNED ) + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL COUNT ( * ) + 87 - - 27 - + + CAST ( NULL AS INTEGER ) + 16
----
NULL

query I rowsort
SELECT - 14 + + - 50
----
-64

query I rowsort
SELECT ALL - 24 + - 14
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT COUNT( * ) * + 35 + + ( - COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-3829
SELECT COUNT ( * ) * + 35 + + ( - COUNT ( * ) )
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3830
SELECT 58 + + - COALESCE ( - 89, + ( - 27 ) + + 62 ) * + - CAST( NULL AS DECIMAL ) * - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT 58 + + - COALESCE ( - 89, + ( - 27 ) + + 62 ) * + - CAST ( NULL AS REAL ) * - 14 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 72 * - 99 - - 78 AS col1
----
-7050

query I rowsort
SELECT DISTINCT + COALESCE ( + 63, - - ( 53 ) ) - + ( - - ( + + 64 ) ) AS col2
----
-1

query I rowsort
SELECT 50 * 68
----
3400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3834
SELECT COUNT( * ) AS col1, 56 * - - 32 * + + NULLIF ( - - 21, 14 + + 1 + + COUNT( * ) + - 73 - + NULLIF ( - 91, + 87 ) * + - 51 - + - CASE 69 WHEN + 34 * 32 THEN COUNT( ALL + 38 ) WHEN + + 46 THEN - CAST( + 86 AS SIGNED ) ELSE NULL END + + 37 )
----
1
37632

skipif mysql # not compatible
query II rowsort label-3834
SELECT COUNT ( * ) AS col1, 56 * - - 32 * + + NULLIF ( - - 21, 14 + + 1 + + COUNT ( * ) + - 73 - + NULLIF ( - 91, + 87 ) * + - 51 - + - CASE 69 WHEN + 34 * 32 THEN COUNT ( ALL + 38 ) WHEN + + 46 THEN - CAST ( + 86 AS INTEGER ) ELSE NULL END + + 37 )
----
1
37632

query I rowsort
SELECT 30 * + 2 + - 98 + + 77 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT - MIN( ALL + 57 ) + - 86
----
-143

skipif mysql # not compatible
query I rowsort label-3836
SELECT - MIN ( ALL + 57 ) + - 86
----
-143

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3837
SELECT ALL + 48 DIV SUM( - 86 ), 95 + - 2 AS col1
----
0
93

skipif mysql # not compatible
query II rowsort label-3837
SELECT ALL + 48 / SUM ( - 86 ), 95 + - 2 AS col1
----
0
93

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

skipif mysql # not compatible
query I rowsort label-3838
SELECT + + ( - 79 ) / + COUNT ( * ) AS col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3839
SELECT - 50 * CAST( + - 51 AS SIGNED ) * - + 63 + + COALESCE ( 88, + MIN( DISTINCT 74 ) + - - 33 * + 73 )
----
-160562

skipif mysql # not compatible
query I rowsort label-3839
SELECT - 50 * CAST ( + - 51 AS INTEGER ) * - + 63 + + COALESCE ( 88, + MIN ( DISTINCT 74 ) + - - 33 * + 73 )
----
-160562

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT ALL + CASE + 41 WHEN + + COUNT( + + 33 ) THEN - 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL + CASE + 41 WHEN + + COUNT ( + + 33 ) THEN - 53 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3841
SELECT ALL 17 DIV 61 * - + 84
----
0

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL 17 / 61 * - + 84
----
0

query II rowsort
SELECT DISTINCT + 54 AS col2, NULLIF ( + + 65, - - 56 + 83 ) + + - 25 AS col0
----
54
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT - 46 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT - 46 / - 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT - 81 DIV ( 2 )
----
-40

skipif mysql # not compatible
query I rowsort label-3844
SELECT - 81 / ( 2 )
----
-40

query I rowsort
SELECT + 69 - + - 16
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT - 89 * - ( - COUNT( * ) ) + MAX( DISTINCT - 55 ) + + + COUNT( * ) / - 81 + + ( + CASE COUNT( * ) WHEN + + 6 THEN NULL WHEN + 28 THEN 28 * + + 97 * 72 * - + 74 + - + 1 WHEN + 11 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - 89 * - ( - COUNT ( * ) ) + MAX ( DISTINCT - 55 ) + + + COUNT ( * ) / - 81 + + ( + CASE COUNT ( * ) WHEN + + 6 THEN NULL WHEN + 28 THEN 28 * + + 97 * 72 * - + 74 + - + 1 WHEN + 11 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT + CASE + + COUNT( * ) WHEN + 90 THEN + - 89 * + 99 WHEN - 27 - 75 / + 86 * COUNT( * ) - 78 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT + CASE + + COUNT ( * ) WHEN + 90 THEN + - 89 * + 99 WHEN - 27 - 75 / + 86 * COUNT ( * ) - 78 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3848
SELECT COUNT( * ) col0, - 47 + - 70 AS col0
----
1
-117

skipif mysql # not compatible
query II rowsort label-3848
SELECT COUNT ( * ) col0, - 47 + - 70 AS col0
----
1
-117

query I rowsort
SELECT - 27 * 84 AS col0
----
-2268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3850
SELECT 75 * + 48 DIV + COUNT( * ) - - 96 AS col2
----
3696

skipif mysql # not compatible
query I rowsort label-3850
SELECT 75 * + 48 / + COUNT ( * ) - - 96 AS col2
----
3696

query I rowsort
SELECT - 56 * - 19 * - 80 * - 36
----
3064320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3852
SELECT ALL - 11 + - COUNT( DISTINCT + - 0 ) DIV + + ( + 43 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL - 11 + - COUNT ( DISTINCT + - 0 ) / + + ( + 43 ) AS col1
----
-11

query I rowsort
SELECT ALL 20 + - 25
----
-5

query I rowsort
SELECT ALL 19 + - ( - 28 )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3855
SELECT - - 34 + 76 AS col0, - NULLIF ( 21, - - COUNT( * ) + - AVG ( DISTINCT - 29 ) ) AS col0
----
110
-21

skipif mysql # not compatible
query II rowsort label-3855
SELECT - - 34 + 76 AS col0, - NULLIF ( 21, - - COUNT ( * ) + - AVG ( DISTINCT - 29 ) ) AS col0
----
110
-21

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

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

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

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

query II rowsort
SELECT + 25 AS col2, 50
----
25
50

query I rowsort
SELECT - - ( - 25 ) * - + 23 AS col2
----
575

query I rowsort
SELECT ALL + - 9 * - - 17 + - + 1 AS col1
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-3861
SELECT DISTINCT - + 46 * 39 DIV - 57
----
31

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT - + 46 * 39 / - 57
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT - + COUNT( * ) + 99 + + 4
----
102

skipif mysql # not compatible
query I rowsort label-3862
SELECT - + COUNT ( * ) + 99 + + 4
----
102

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3864
SELECT + 5 * CAST( + 38 AS SIGNED ) DIV - - 46
----
4

skipif mysql # not compatible
query I rowsort label-3864
SELECT + 5 * CAST ( + 38 AS INTEGER ) / - - 46
----
4

query I rowsort
SELECT ALL 44 * - 17
----
-748

query I rowsort
SELECT DISTINCT 49 - 26 col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT - - MAX( ALL - 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-3867
SELECT - - MAX ( ALL - 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT - - 71 - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-3868
SELECT - - 71 - COUNT ( * )
----
70

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

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

query I rowsort
SELECT DISTINCT 33 * + 2 * ( 74 )
----
4884

query I rowsort
SELECT + 5 * - 40 AS col0
----
-200

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT ALL - 94 DIV 8 + 47 + - 72 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL - 94 / 8 + 47 + - 72 AS col2
----
-36

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3874
SELECT + 99 - - SUM( 37 ), 85 * + 57 * - + 79 AS col1
----
136
-382755

skipif mysql # not compatible
query II rowsort label-3874
SELECT + 99 - - SUM ( 37 ), 85 * + 57 * - + 79 AS col1
----
136
-382755

query I rowsort
SELECT ALL + 95 * 13 + - + 2 AS col1
----
1233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3876
SELECT - CASE - 77 WHEN - 47 * - 2 + 63 + - 12 THEN - 92 - + 70 - + + CAST( - - 98 AS SIGNED ) + + 63 * 46 * - + 72 * - 97 * + 0 WHEN + ( + COUNT( * ) ) THEN + ( CASE - + 71 WHEN ( 2 ) THEN - + 12 WHEN + - 96 THEN + + 20 ELSE NULL END ) ELSE + - 36 END DIV - NULLIF ( + 80, 36 ) + 74 * 25
----
1850

skipif mysql # not compatible
query I rowsort label-3876
SELECT - CASE - 77 WHEN - 47 * - 2 + 63 + - 12 THEN - 92 - + 70 - + + CAST ( - - 98 AS INTEGER ) + + 63 * 46 * - + 72 * - 97 * + 0 WHEN + ( + COUNT ( * ) ) THEN + ( CASE - + 71 WHEN ( 2 ) THEN - + 12 WHEN + - 96 THEN + + 20 ELSE NULL END ) ELSE + - 36 END / - NULLIF ( + 80, 36 ) + 74 * 25
----
1850

query I rowsort
SELECT + 45 + + 66 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL 82 * + - CASE + + 43 WHEN + COUNT( * ) THEN + 57 + - - 78 ELSE NULL END + - 38 * - 83 * + ( + - 1 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL 82 * + - CASE + + 43 WHEN + COUNT ( * ) THEN + 57 + - - 78 ELSE NULL END + - 38 * - 83 * + ( + - 1 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3879
SELECT DISTINCT 16 DIV + - 68, 1 col0
----
0
1

skipif mysql # not compatible
query II rowsort label-3879
SELECT DISTINCT 16 / + - 68, 1 col0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT - NULLIF ( - - 83, - 19 ) DIV 36
----
-2

skipif mysql # not compatible
query I rowsort label-3880
SELECT - NULLIF ( - - 83, - 19 ) / 36
----
-2

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

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

query I rowsort
SELECT - ( - 0 ) * 2 AS col2
----
0

query I rowsort
SELECT ALL + 70 * ( 29 )
----
2030

query I rowsort
SELECT ALL - 2 * - - 99 * - 73 + - 3
----
14451

query I rowsort
SELECT DISTINCT + 52 * - 0 * + + 62 AS col0
----
0

query I rowsort
SELECT + 13 * + 96 * + + 90 + + - 14
----
112306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3887
SELECT ALL CAST( NULL AS SIGNED ) * + 20 + - ( 7 ) + 20 - - + 24 * 46 / - 78 * + 72 * - 59, 65 * - CASE 34 WHEN - 30 THEN NULL WHEN - 46 * + CAST( NULL AS SIGNED ) * + 68 THEN 84 - - 9 * - 88 WHEN + COUNT( * ) / MIN( ALL - - 21 ) + + + 40 + + MAX( ALL + 88 ) * 58 - + 91 THEN NULL WHEN - 97 THEN + 1 * - 55 END col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3887
SELECT ALL CAST ( NULL AS INTEGER ) * + 20 + - ( 7 ) + 20 - - + 24 * 46 / - 78 * + 72 * - 59, 65 * - CASE 34 WHEN - 30 THEN NULL WHEN - 46 * + CAST ( NULL AS INTEGER ) * + 68 THEN 84 - - 9 * - 88 WHEN + COUNT ( * ) / MIN ( ALL - - 21 ) + + + 40 + + MAX ( ALL + 88 ) * 58 - + 91 THEN NULL WHEN - 97 THEN + 1 * - 55 END col0
----
NULL
NULL

query I rowsort
SELECT - ( + 69 ) * 9 AS col2
----
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT ALL 91 * - CASE + COUNT( * ) WHEN + 18 + 43 - 31 + + COUNT( * ) * + + 89 THEN + 22 ELSE NULL END * + 28 * + - 99 * COUNT( * ) * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL 91 * - CASE + COUNT ( * ) WHEN + 18 + 43 - 31 + + COUNT ( * ) * + + 89 THEN + 22 ELSE NULL END * + 28 * + - 99 * COUNT ( * ) * 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT - CAST( - 32 AS SIGNED ) col1
----
32

skipif mysql # not compatible
query I rowsort label-3890
SELECT - CAST ( - 32 AS INTEGER ) col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3891
SELECT - + CAST( NULL AS SIGNED ) + - 51, 28 + + ( + - 96 ) AS col2
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-3891
SELECT - + CAST ( NULL AS INTEGER ) + - 51, 28 + + ( + - 96 ) AS col2
----
NULL
-68

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

skipif mysql # not compatible
query I rowsort label-3892
SELECT - - CAST ( 68 AS INTEGER )
----
68

query I rowsort
SELECT ALL + 47 * + 18 - + - 15
----
861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3894
SELECT + 40 * - 77 * - - 13 + + COUNT( * ) DIV + 45 + + 29 col0
----
-40011

skipif mysql # not compatible
query I rowsort label-3894
SELECT + 40 * - 77 * - - 13 + + COUNT ( * ) / + 45 + + 29 col0
----
-40011

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT - MIN( ALL - 78 ) + MAX( ALL - + 38 ) * - 87 + - 63
----
3321

skipif mysql # not compatible
query I rowsort label-3895
SELECT - MIN ( ALL - 78 ) + MAX ( ALL - + 38 ) * - 87 + - 63
----
3321

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL + 41 * ( COUNT( * ) ) * + - 51 - 1
----
-2092

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL + 41 * ( COUNT ( * ) ) * + - 51 - 1
----
-2092

query I rowsort
SELECT DISTINCT ( + - 86 ) col2
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3898
SELECT - + 3 DIV + - NULLIF ( 22, + 51 * 8 ) DIV - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3898
SELECT - + 3 / + - NULLIF ( 22, + 51 * 8 ) / - - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT - - 86 + + 4 - - + 63 * + COUNT( * )
----
153

skipif mysql # not compatible
query I rowsort label-3899
SELECT - - 86 + + 4 - - + 63 * + COUNT ( * )
----
153

query II rowsort
SELECT ALL + 81 * + 63, 69 AS col2
----
5103
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT - - CASE + - COUNT( * ) WHEN - 82 - 26 + - 54 THEN NULL WHEN + 19 * 44 THEN - + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT - - CASE + - COUNT ( * ) WHEN - 82 - 26 + - 54 THEN NULL WHEN + 19 * 44 THEN - + 5 END
----
NULL

query I rowsort
SELECT ( + 49 ) + - NULLIF ( - - 58, - + 5 )
----
-9

query I rowsort
SELECT 98 + + ( + - 78 ) AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT 57 * 97 * - + 98 * + COALESCE ( - 85, + + COUNT( DISTINCT + 21 ) * 9 - - - 68, 78 ) * + 90 / - COUNT( * ) * 95 + + 15 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT 57 * 97 * - + 98 * + COALESCE ( - 85, + + COUNT ( DISTINCT + 21 ) * 9 - - - 68, 78 ) * + 90 / - COUNT ( * ) * 95 + + 15 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT - 78 + + + MAX( - 67 )
----
-145

skipif mysql # not compatible
query I rowsort label-3905
SELECT - 78 + + + MAX ( - 67 )
----
-145

query I rowsort
SELECT 87 - - + 48 + - 76 col2
----
59

query I rowsort
SELECT ALL - - 93 + - 79 + - - 32
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) + - MIN( - - 71 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-3908
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - MIN ( - - 71 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL - 45 + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL - 45 + COUNT ( * )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3910
SELECT COUNT( * ) DIV CAST( - 72 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT COUNT ( * ) / CAST ( - 72 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT ALL 17 + 52 + - + 99 * - + COALESCE ( 86, - - 60, - - 92 )
----
8583

query II rowsort
SELECT 46 AS col1, 70 + - 63 AS col2
----
46
7

query I rowsort
SELECT 41 * + 59
----
2419

query II rowsort
SELECT ALL + ( - - 23 ) + - 64 AS col1, + 21
----
-41
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3915
SELECT - CAST( - CASE 30 WHEN - + 4 THEN - COUNT( * ) DIV - 33 ELSE 85 END AS SIGNED ) DIV COUNT( DISTINCT + 85 ) - + 26 + + 33
----
92

skipif mysql # not compatible
query I rowsort label-3915
SELECT - CAST ( - CASE 30 WHEN - + 4 THEN - COUNT ( * ) / - 33 ELSE 85 END AS INTEGER ) / COUNT ( DISTINCT + 85 ) - + 26 + + 33
----
92

query I rowsort
SELECT ALL 57 + 63 AS col1
----
120

query I rowsort
SELECT ALL 10 * - 75 * + - 40 * - 49
----
-1470000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT ALL + 11 + + 37 + 12 * 22 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + 11 + + 37 + 12 * 22 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3919
SELECT DISTINCT 45 + - - 96 + + - 72 * - 4 - CAST( - 31 AS SIGNED ) + + 27 col0
----
487

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT 45 + - - 96 + + - 72 * - 4 - CAST ( - 31 AS INTEGER ) + + 27 col0
----
487

query I rowsort
SELECT ALL 3 - 9
----
-6

query II rowsort
SELECT ALL - 8, - 68 AS col2
----
-8
-68

query I rowsort
SELECT ALL 74 * + 49 AS col1
----
3626

query II rowsort
SELECT ALL - 27 AS col1, 39
----
-27
39

query II rowsort
SELECT 57, 23 AS col2
----
57
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3925
SELECT 94 AS col2, - 71 * + 31 * + COUNT( - - CAST( NULL AS DECIMAL ) )
----
94
0

skipif mysql # not compatible
query II rowsort label-3925
SELECT 94 AS col2, - 71 * + 31 * + COUNT ( - - CAST ( NULL AS REAL ) )
----
94
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL COUNT( * ) - - + 92
----
93

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL COUNT ( * ) - - + 92
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3927
SELECT ALL 63 DIV ( - 35 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL 63 / ( - 35 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3928
SELECT - 51 - CAST( NULL AS SIGNED ) * + ( + 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT - 51 - CAST ( NULL AS INTEGER ) * + ( + 67 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL 21 - + COUNT( * ) + 24 * + - COUNT( * ) * + 18 * 5
----
-2140

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL 21 - + COUNT ( * ) + 24 * + - COUNT ( * ) * + 18 * 5
----
-2140

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT + 60 * - + MIN( DISTINCT + ( 3 ) )
----
-180

skipif mysql # not compatible
query I rowsort label-3930
SELECT + 60 * - + MIN ( DISTINCT + ( 3 ) )
----
-180

query I rowsort
SELECT ALL + - 46 * - 56 + + 99 AS col2
----
2675

query I rowsort
SELECT ( 29 ) * + - 37 AS col1
----
-1073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3933
SELECT ALL ( - COALESCE ( - 64, + COUNT( * ) * - COUNT( * ) DIV + - CAST( NULL AS SIGNED ) - 29, + 71 ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL ( - COALESCE ( - 64, + COUNT ( * ) * - COUNT ( * ) / + - CAST ( NULL AS INTEGER ) - 29, + 71 ) ) AS col1
----
64

query I rowsort
SELECT DISTINCT - 43 * - 80
----
3440

query I rowsort
SELECT 35 * - 77
----
-2695

query I rowsort
SELECT - 10 * - 50 * + NULLIF ( + 15, + 6 )
----
7500

query II rowsort
SELECT ALL 50, 28 AS col2
----
50
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL + 85 + + 23 * - + 14 + - 36 * - + 68 * COUNT( * ) + - 45
----
2166

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL + 85 + + 23 * - + 14 + - 36 * - + 68 * COUNT ( * ) + - 45
----
2166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3939
SELECT DISTINCT + - 28 + COALESCE ( + CAST( 77 AS SIGNED ), + 69, - + 20 * - 71 * 31 * ( - 21 ) * + COUNT( DISTINCT 30 ) * - ( + 53 ) + + - 51 + + 44 + + + 83 * + - 46 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT + - 28 + COALESCE ( + CAST ( 77 AS INTEGER ), + 69, - + 20 * - 71 * 31 * ( - 21 ) * + COUNT ( DISTINCT 30 ) * - ( + 53 ) + + - 51 + + 44 + + + 83 * + - 46 ) AS col2
----
49

query I rowsort
SELECT ALL - 94 + - + 56 AS col2
----
-150

query I rowsort
SELECT ALL + 36 * + + 65 AS col2
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT MIN( ALL + - 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-3942
SELECT MIN ( ALL + - 91 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL + ( + 47 ) + - + COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL + ( + 47 ) + - + COUNT ( * ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT - MIN( ALL + 97 ) + - - 25 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT - MIN ( ALL + 97 ) + - - 25 AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT ALL + CAST( NULL AS SIGNED ) + - + 73 + - AVG ( DISTINCT + 50 ) / + 88 / COALESCE ( - 43, 1, - 70 ) + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 73 + - AVG ( DISTINCT + 50 ) / + 88 / COALESCE ( - 43, 1, - 70 ) + - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT ALL - COUNT( DISTINCT + - 61 ) * + 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL - COUNT ( DISTINCT + - 61 ) * + 38 AS col0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT 66 DIV - + 10
----
-6

skipif mysql # not compatible
query I rowsort label-3947
SELECT 66 / - + 10
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3948
SELECT 37 - - 83 AS col2, - COUNT( * ) AS col2
----
120
-1

skipif mysql # not compatible
query II rowsort label-3948
SELECT 37 - - 83 AS col2, - COUNT ( * ) AS col2
----
120
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT - MIN( + 29 ) * - 68 - COUNT( * )
----
1971

skipif mysql # not compatible
query I rowsort label-3949
SELECT - MIN ( + 29 ) * - 68 - COUNT ( * )
----
1971

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT ALL - MIN( - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL - MIN ( - 1 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3951
SELECT ALL - ( + CASE - 34 WHEN - COALESCE ( 18, - + CAST( - 60 AS SIGNED ) / + COUNT( * ) * 92 + + - COUNT( * ) + 74 * - - 16 + + + 98 * - COUNT( * ) ) THEN + 65 ELSE NULL END ) * + + COUNT( * ) - + NULLIF ( - + CAST( NULL AS SIGNED ), - 37 * + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - ( + CASE - 34 WHEN - COALESCE ( 18, - + CAST ( - 60 AS INTEGER ) / + COUNT ( * ) * 92 + + - COUNT ( * ) + 74 * - - 16 + + + 98 * - COUNT ( * ) ) THEN + 65 ELSE NULL END ) * + + COUNT ( * ) - + NULLIF ( - + CAST ( NULL AS INTEGER ), - 37 * + 16 )
----
NULL

query I rowsort
SELECT 66 + - - 11 * 7
----
143

query I rowsort
SELECT ALL 92 * + - 69 * + 23 - + 91 AS col2
----
-146095

onlyif mysql # DIV for integer division: 
query II rowsort label-3954
SELECT DISTINCT 62 DIV - 93 AS col1, 23 - 58 + + 37 + 23
----
0
25

skipif mysql # not compatible
query II rowsort label-3954
SELECT DISTINCT 62 / - 93 AS col1, 23 - 58 + + 37 + 23
----
0
25

query I rowsort
SELECT ALL + 80 - - 70 + - 46
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT COUNT( DISTINCT - 7 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3956
SELECT COUNT ( DISTINCT - 7 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT DISTINCT COUNT( * ) * - 39
----
-39

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT COUNT ( * ) * - 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT COUNT( - - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-3958
SELECT COUNT ( - - 17 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT MAX( + + 44 ) + + 92 * - 29
----
-2624

skipif mysql # not compatible
query I rowsort label-3959
SELECT MAX ( + + 44 ) + + 92 * - 29
----
-2624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3960
SELECT COUNT( * ) * COUNT( * ) + COALESCE ( + 73, + 13 * 63 * NULLIF ( - + 78, - 59 * + 77 * - + 63 ), - + COUNT( * ) ) DIV + + 16 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3960
SELECT COUNT ( * ) * COUNT ( * ) + COALESCE ( + 73, + 13 * 63 * NULLIF ( - + 78, - 59 * + 77 * - + 63 ), - + COUNT ( * ) ) / + + 16 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3961
SELECT ALL - CASE - CAST( - 45 AS DECIMAL ) WHEN - 82 DIV - + 54 + - - 98 + 81 + - ( + + CASE 82 WHEN + 9 * NULLIF ( COUNT( * ), + ( + COUNT( * ) ) DIV + 46 ) + CAST( NULL AS SIGNED ) DIV 50 * 81 THEN - + 17 * - 1 * + COALESCE ( NULLIF ( - COALESCE ( 62, + 23 ), - - 20 ), + 3 * + 46 ) * 81 + - 73 ELSE NULL END ) - 86 DIV CAST( NULL AS SIGNED ) THEN + CAST( + 28 AS SIGNED ) WHEN COUNT( * ) THEN NULL ELSE 60 + - COUNT( * ) DIV NULLIF ( + COUNT( * ) + 1, - COUNT( * ) ) END AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL - CASE - CAST ( - 45 AS REAL ) WHEN - 82 / - + 54 + - - 98 + 81 + - ( + + CASE 82 WHEN + 9 * NULLIF ( COUNT ( * ), + ( + COUNT ( * ) ) / + 46 ) + CAST ( NULL AS INTEGER ) / 50 * 81 THEN - + 17 * - 1 * + COALESCE ( NULLIF ( - COALESCE ( 62, + 23 ), - - 20 ), + 3 * + 46 ) * 81 + - 73 ELSE NULL END ) - 86 / CAST ( NULL AS INTEGER ) THEN + CAST ( + 28 AS INTEGER ) WHEN COUNT ( * ) THEN NULL ELSE 60 + - COUNT ( * ) / NULLIF ( + COUNT ( * ) + 1, - COUNT ( * ) ) END AS col1
----
-60

query I rowsort
SELECT + CASE + 73 WHEN - 37 THEN NULL ELSE - 48 + 48 END
----
0

query I rowsort
SELECT + 49 + + - 63 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL - COUNT( + + 11 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL - COUNT ( + + 11 ) AS col2
----
-1

query I rowsort
SELECT ALL - + ( - + 17 )
----
17

query I rowsort
SELECT 58 + + ( - - 23 )
----
81

query II rowsort
SELECT - 15 * - - 81, 49 AS col2
----
-1215
49

query I rowsort
SELECT + 85 + + - 46 col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3969
SELECT + + CASE + 21 WHEN MAX( - + 48 ) THEN 10 + + - 83 ELSE NULL END * + 97 + + 94 + + 67 AS col0, - CASE + MAX( - 67 ) WHEN + 95 THEN NULL ELSE - 17 * + - ( + 34 ) + + + 79 END * + + 88 + 31 AS col1
----
NULL
-57785

skipif mysql # not compatible
query II rowsort label-3969
SELECT + + CASE + 21 WHEN MAX ( - + 48 ) THEN 10 + + - 83 ELSE NULL END * + 97 + + 94 + + 67 AS col0, - CASE + MAX ( - 67 ) WHEN + 95 THEN NULL ELSE - 17 * + - ( + 34 ) + + + 79 END * + + 88 + 31 AS col1
----
NULL
-57785

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT - + 66 * - 53 + - COUNT( * )
----
3497

skipif mysql # not compatible
query I rowsort label-3970
SELECT - + 66 * - 53 + - COUNT ( * )
----
3497

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3971
SELECT - - CAST( - - 78 AS DECIMAL ) * CAST( NULL AS DECIMAL ) + + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT - - CAST ( - - 78 AS REAL ) * CAST ( NULL AS REAL ) + + - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT DISTINCT + - 85 + 95
----
10

query I rowsort
SELECT + - 9 + 79 + + 18 AS col0
----
88

query I rowsort
SELECT ALL - 40 * 58 AS col1
----
-2320

query I rowsort
SELECT + + NULLIF ( + 91, 80 ) + + 97 + 25
----
213

query I rowsort
SELECT ALL 44 + - 74 + + - 85 AS col2
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3977
SELECT ALL + CAST( 0 AS SIGNED ) AS col2, - 53 col2
----
0
-53

skipif mysql # not compatible
query II rowsort label-3977
SELECT ALL + CAST ( 0 AS INTEGER ) AS col2, - 53 col2
----
0
-53

query I rowsort
SELECT ALL 57 * - + 14 * + + 25
----
-19950

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT - CASE - - COUNT( ALL + 64 ) WHEN + 49 + + - 4 THEN + 87 WHEN + 73 THEN NULL ELSE NULL END + + ( 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT - CASE - - COUNT ( ALL + 64 ) WHEN + 49 + + - 4 THEN + 87 WHEN + 73 THEN NULL ELSE NULL END + + ( 2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3980
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) * - - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3980
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) * - - 5 AS col2
----
NULL

query I rowsort
SELECT - CASE + + 34 WHEN 51 - + 86 + + 15 THEN + 43 WHEN - ( + 83 ) THEN NULL ELSE 48 END + + 32 * - + 20
----
-688

query II rowsort
SELECT - NULLIF ( + + 61, - + 89 * - - 20 * + 16 ) col2, 13 AS col2
----
-61
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT + 64 + - + 16 + + 20 * - ( 22 ) + + - 41 + - ( - COUNT( + + NULLIF ( - - 56, 49 / - - 25 ) ) )
----
-432

skipif mysql # not compatible
query I rowsort label-3983
SELECT + 64 + - + 16 + + 20 * - ( 22 ) + + - 41 + - ( - COUNT ( + + NULLIF ( - - 56, 49 / - - 25 ) ) )
----
-432

query I rowsort
SELECT + 40 + - - 98 * + 17 + 69
----
1775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT ALL 46 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL 46 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3986
SELECT + COUNT( * ) + - ( + 94 ) DIV + MAX( DISTINCT - 92 ) AS col1, - 39 * 94
----
2
-3666

skipif mysql # not compatible
query II rowsort label-3986
SELECT + COUNT ( * ) + - ( + 94 ) / + MAX ( DISTINCT - 92 ) AS col1, - 39 * 94
----
2
-3666

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL - 57 * + + COUNT( * ) * - 82 AS col1
----
4674

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - 57 * + + COUNT ( * ) * - 82 AS col1
----
4674

query I rowsort
SELECT - 10 * 23
----
-230

query I rowsort
SELECT DISTINCT - 39 * + 80
----
-3120

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT DISTINCT 33 DIV + - 40
----
0

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT 33 / + - 40
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT ALL + COUNT( * ) AS col0, + 21
----
1
21

skipif mysql # not compatible
query II rowsort label-3991
SELECT ALL + COUNT ( * ) AS col0, + 21
----
1
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3992
SELECT + 74 * 50 * COUNT( * ) AS col0, + COUNT( * ) - + + 66 * + - CASE + 13 WHEN 69 + + + 88 * - 99 THEN NULL WHEN COUNT( * ) * + + 57 THEN + 68 * - + 73 ELSE NULL END * 5 AS col0
----
3700
NULL

skipif mysql # not compatible
query II rowsort label-3992
SELECT + 74 * 50 * COUNT ( * ) AS col0, + COUNT ( * ) - + + 66 * + - CASE + 13 WHEN 69 + + + 88 * - 99 THEN NULL WHEN COUNT ( * ) * + + 57 THEN + 68 * - + 73 ELSE NULL END * 5 AS col0
----
3700
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT + ( + COUNT( ALL 55 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3993
SELECT + ( + COUNT ( ALL 55 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ( - + MIN( ALL + - 20 ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-3994
SELECT ( - + MIN ( ALL + - 20 ) ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3995
SELECT DISTINCT + COUNT( * ) AS col1, + 6 + + + COUNT( * ) * - 86 - NULLIF ( + 21, 93 + 96 ) + - ( - 34 ) * + 33 AS col0
----
1
1021

skipif mysql # not compatible
query II rowsort label-3995
SELECT DISTINCT + COUNT ( * ) AS col1, + 6 + + + COUNT ( * ) * - 86 - NULLIF ( + 21, 93 + 96 ) + - ( - 34 ) * + 33 AS col0
----
1
1021

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT DISTINCT + COUNT( ALL - - ( + 31 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT + COUNT ( ALL - - ( + 31 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - + 82 * - 97 * + - ( - MAX( + - 14 ) ) AS col2
----
-111356

skipif mysql # not compatible
query I rowsort label-3997
SELECT - + 82 * - 97 * + - ( - MAX ( + - 14 ) ) AS col2
----
-111356

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT COALESCE ( + 68, + - COUNT( * ) * - 71 * 54 ) col1
----
68

skipif mysql # not compatible
query I rowsort label-3998
SELECT COALESCE ( + 68, + - COUNT ( * ) * - 71 * 54 ) col1
----
68

query I rowsort
SELECT DISTINCT - + 54 * ( + 73 ) + - 70
----
-4012

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL + MAX( DISTINCT 29 )
----
29

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL + MAX ( DISTINCT 29 )
----
29

query I rowsort
SELECT - + 79 * - - 52 AS col1
----
-4108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4002
SELECT - CAST( - 88 AS SIGNED ) * 60 - - 60 + 56 * 79
----
9764

skipif mysql # not compatible
query I rowsort label-4002
SELECT - CAST ( - 88 AS INTEGER ) * 60 - - 60 + 56 * 79
----
9764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT DISTINCT + CASE ( + - NULLIF ( - 62, CAST( - COUNT( * ) AS SIGNED ) * 68 ) ) WHEN - 92 THEN NULL WHEN 70 * + 32 * + + 84 * - 1 THEN + + SUM( + + 82 ) ELSE + 75 END * + ( - MIN( ALL + 6 ) ) + + ( - NULLIF ( + - CAST( - 69 AS SIGNED ), + 71 ) ) + + 40 * 29
----
641

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT + CASE ( + - NULLIF ( - 62, CAST ( - COUNT ( * ) AS INTEGER ) * 68 ) ) WHEN - 92 THEN NULL WHEN 70 * + 32 * + + 84 * - 1 THEN + + SUM ( + + 82 ) ELSE + 75 END * + ( - MIN ( ALL + 6 ) ) + + ( - NULLIF ( + - CAST ( - 69 AS INTEGER ), + 71 ) ) + + 40 * 29
----
641

query I rowsort
SELECT ALL - - COALESCE ( + 89, + 78 ) * - + 88 * - 56 + - 39
----
438553

query I rowsort
SELECT - + 80 - + - 68 AS col0
----
-12

query II rowsort
SELECT DISTINCT - 14 AS col0, + 12
----
-14
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT ( + SUM( + 33 ) )
----
33

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT ( + SUM ( + 33 ) )
----
33

query I rowsort
SELECT + 85 * 65 AS col2
----
5525

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT MAX( + 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4009
SELECT MAX ( + 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT COUNT( ALL + - 0 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4010
SELECT COUNT ( ALL + - 0 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4011
SELECT + 23 * - 3 AS col1, 39 * 41 * 63 + + - COUNT( DISTINCT + + 85 ) AS col2
----
-69
100736

skipif mysql # not compatible
query II rowsort label-4011
SELECT + 23 * - 3 AS col1, 39 * 41 * 63 + + - COUNT ( DISTINCT + + 85 ) AS col2
----
-69
100736

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT - NULLIF ( - 7, 47 * - 95 + + COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-4012
SELECT - NULLIF ( - 7, 47 * - 95 + + COUNT ( * ) )
----
7

query I rowsort
SELECT DISTINCT 52 * CASE - + 43 WHEN + 72 THEN 66 + + 98 END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4014
SELECT ALL 87 * - COUNT( * ) AS col0, + 27 DIV - 27 AS col1
----
-87
-1

skipif mysql # not compatible
query II rowsort label-4014
SELECT ALL 87 * - COUNT ( * ) AS col0, + 27 / - 27 AS col1
----
-87
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT + COUNT( + 59 ) * - SUM( DISTINCT + + ( + - 9 ) ) * 54 + + + 37 * - + 26 AS col1
----
-476

skipif mysql # not compatible
query I rowsort label-4015
SELECT + COUNT ( + 59 ) * - SUM ( DISTINCT + + ( + - 9 ) ) * 54 + + + 37 * - + 26 AS col1
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT DISTINCT 57 - + SUM( - - 30 )
----
27

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT 57 - + SUM ( - - 30 )
----
27

query II rowsort
SELECT 81, ( + - 54 ) AS col1
----
81
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT + 80 + + AVG ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4018
SELECT + 80 + + AVG ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4019
SELECT 86, - 95 AS col0, - - ( + 46 ) DIV + MIN( DISTINCT - 55 ) AS col2
----
86
-95
0

skipif mysql # not compatible
query III rowsort label-4019
SELECT 86, - 95 AS col0, - - ( + 46 ) / + MIN ( DISTINCT - 55 ) AS col2
----
86
-95
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT + 33 + - ( + 93 ) + + CASE + 21 WHEN + 43 * + 71 / 30 * + - 83 + + MAX( ALL - 72 ) THEN + + 94 + + 35 + COUNT( * ) * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT + 33 + - ( + 93 ) + + CASE + 21 WHEN + 43 * + 71 / 30 * + - 83 + + MAX ( ALL - 72 ) THEN + + 94 + + 35 + COUNT ( * ) * - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 50 - + 97
----
-47

query I rowsort
SELECT - 56 * - - 56 AS col1
----
-3136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT + 9 * - 50 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT + 9 * - 50 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4024
SELECT + COUNT( * ) * + CAST( + 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-4024
SELECT + COUNT ( * ) * + CAST ( + 22 AS INTEGER )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4025
SELECT DISTINCT 64 DIV 37 * - 70 + + + 83 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT 64 / 37 * - 70 + + + 83 AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4026
SELECT DISTINCT - 27 / 70 * - ( - CAST( NULL AS SIGNED ) ) + - 1 + + - 20 / - - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT - 27 / 70 * - ( - CAST ( NULL AS INTEGER ) ) + - 1 + + - 20 / - - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT - NULLIF ( - 65, - COUNT( * ) / - COUNT( * ) * + 48 + + - 71 ) * 63 col2
----
4095

skipif mysql # not compatible
query I rowsort label-4027
SELECT - NULLIF ( - 65, - COUNT ( * ) / - COUNT ( * ) * + 48 + + - 71 ) * 63 col2
----
4095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT 11 + + 58 * CAST( + 30 AS SIGNED ) * - NULLIF ( 28, 97 ) * 20 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT 11 + + 58 * CAST ( + 30 AS INTEGER ) * - NULLIF ( 28, 97 ) * 20 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT + 43 * - - 36 + - COUNT( * ) + 14 * - 9 * CAST( 82 AS SIGNED ) + - - 70 AS col1
----
-8715

skipif mysql # not compatible
query I rowsort label-4029
SELECT + 43 * - - 36 + - COUNT ( * ) + 14 * - 9 * CAST ( 82 AS INTEGER ) + - - 70 AS col1
----
-8715

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4030
SELECT + - CAST( NULL AS SIGNED ), + 20 col2
----
NULL
20

skipif mysql # not compatible
query II rowsort label-4030
SELECT + - CAST ( NULL AS INTEGER ), + 20 col2
----
NULL
20

query II rowsort
SELECT + + 85 AS col2, + 39 * + 95 + + + 98
----
85
3803

query I rowsort
SELECT DISTINCT - 22 + + 4 + + 6 AS col0
----
-12

query I rowsort
SELECT ALL + 64 + + 78
----
142

query II rowsort
SELECT ALL - 21 AS col0, 31
----
-21
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4035
SELECT DISTINCT - 62 + NULLIF ( + COUNT( * ), - 57 * - 35 + COUNT( * ) * - + 96 ) - - 30 + - COUNT( DISTINCT - 71 ) DIV - + 23
----
-31

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT - 62 + NULLIF ( + COUNT ( * ), - 57 * - 35 + COUNT ( * ) * - + 96 ) - - 30 + - COUNT ( DISTINCT - 71 ) / - + 23
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT DISTINCT + + ( 71 ) + + 37 + - 77 + + 85 * - - 57 + - NULLIF ( + - COUNT( * ), + 74 ) + - + 30 - - 49 + - + 23 * + - 47 AS col0
----
5977

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT + + ( 71 ) + + 37 + - 77 + + 85 * - - 57 + - NULLIF ( + - COUNT ( * ), + 74 ) + - + 30 - - 49 + - + 23 * + - 47 AS col0
----
5977

onlyif mysql # DIV for integer division: 
query I rowsort label-4037
SELECT 59 DIV + 75 * - 71 + 25 - + 75
----
-50

skipif mysql # not compatible
query I rowsort label-4037
SELECT 59 / + 75 * - 71 + 25 - + 75
----
-50

query I rowsort
SELECT + 70 * 23
----
1610

onlyif mysql # DIV for integer division: 
query I rowsort label-4039
SELECT ALL + - 55 DIV - 23 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + - 55 / - 23 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4040
SELECT CAST( + - 98 AS SIGNED ) + + + COUNT( * ) * - 94 DIV + COUNT( * )
----
-192

skipif mysql # not compatible
query I rowsort label-4040
SELECT CAST ( + - 98 AS INTEGER ) + + + COUNT ( * ) * - 94 / + COUNT ( * )
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4041
SELECT 49 + - - 80 * + - CAST( 7 AS SIGNED ) AS col0, - MIN( DISTINCT - + 58 ) * - 36 AS col2
----
-511
-2088

skipif mysql # not compatible
query II rowsort label-4041
SELECT 49 + - - 80 * + - CAST ( 7 AS INTEGER ) AS col0, - MIN ( DISTINCT - + 58 ) * - 36 AS col2
----
-511
-2088

query I rowsort
SELECT ALL + - ( - 30 ) - 79 * - - 6 AS col1
----
-444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT 47 + + 30 * + CAST( + 77 AS SIGNED ) AS col1
----
2357

skipif mysql # not compatible
query I rowsort label-4043
SELECT 47 + + 30 * + CAST ( + 77 AS INTEGER ) AS col1
----
2357

onlyif mysql # aggregate syntax: 
query II rowsort label-4044
SELECT 50 * - 33 AS col0, COUNT( * ) + + MAX( DISTINCT - - 12 )
----
-1650
13

skipif mysql # not compatible
query II rowsort label-4044
SELECT 50 * - 33 AS col0, COUNT ( * ) + + MAX ( DISTINCT - - 12 )
----
-1650
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4045
SELECT ALL - 56 * 87 DIV + 86 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL - 56 * 87 / + 86 AS col2
----
-56

query I rowsort
SELECT 57 + 87 + - 3
----
141

onlyif mysql # aggregate syntax: 
query III rowsort label-4047
SELECT DISTINCT + 66 * 61, 0 AS col0, - - COUNT( * ) AS col0
----
4026
0
1

skipif mysql # not compatible
query III rowsort label-4047
SELECT DISTINCT + 66 * 61, 0 AS col0, - - COUNT ( * ) AS col0
----
4026
0
1

query I rowsort
SELECT 91 + + 71
----
162

query I rowsort
SELECT NULLIF ( + + 36, - 45 ) + - 59 AS col2
----
-23

query I rowsort
SELECT DISTINCT ( - 28 ) + - 63 + + 22 AS col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT - 91 DIV + 12 + - 50 DIV 26 + - - 70 + + 92 * + 9 AS col2
----
890

skipif mysql # not compatible
query I rowsort label-4051
SELECT - 91 / + 12 + - 50 / 26 + - - 70 + + 92 * + 9 AS col2
----
890

query I rowsort
SELECT + 68 * - - 55 AS col2
----
3740

onlyif mysql # aggregate syntax: 
query II rowsort label-4053
SELECT + 38 + + 35, ( + 11 ) * 34 + + 28 * + - ( COUNT( * ) ) AS col1
----
73
346

skipif mysql # not compatible
query II rowsort label-4053
SELECT + 38 + + 35, ( + 11 ) * 34 + + 28 * + - ( COUNT ( * ) ) AS col1
----
73
346

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL 21 + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL 21 + - COUNT ( * )
----
20

query I rowsort
SELECT ALL 65 * 79 AS col1
----
5135

query I rowsort
SELECT ALL - + NULLIF ( + + 5, 94 )
----
-5

query I rowsort
SELECT DISTINCT - ( + 4 ) AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4058
SELECT ALL + CAST( NULL AS SIGNED ) + - 97 / 7 * - - 97 - + + 88 + - - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + CAST ( NULL AS INTEGER ) + - 97 / 7 * - - 97 - + + 88 + - - 65 AS col0
----
NULL

query I rowsort
SELECT ALL - 58 - + 3 + ( - 41 ) AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT ALL - + NULLIF ( - COUNT( * ), 72 * - ( + 41 ) * + 59 + - - 97 - COALESCE ( COUNT( * ), + - MAX( DISTINCT 19 ) * 57 ) * - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL - + NULLIF ( - COUNT ( * ), 72 * - ( + 41 ) * + 59 + - - 97 - COALESCE ( COUNT ( * ), + - MAX ( DISTINCT 19 ) * 57 ) * - 71 )
----
1

query I rowsort
SELECT + 84 + 9 + - + 11 AS col0
----
82

query I rowsort
SELECT ( 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4063
SELECT + 67 DIV - 56 + COUNT( * ) + + 6
----
6

skipif mysql # not compatible
query I rowsort label-4063
SELECT + 67 / - 56 + COUNT ( * ) + + 6
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT - 76 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT - 76 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 17 - + 36
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + 43 * ( MAX( ALL 64 ) )
----
2752

skipif mysql # not compatible
query I rowsort label-4066
SELECT + 43 * ( MAX ( ALL 64 ) )
----
2752

query I rowsort
SELECT ALL - 15 * - 47
----
705

onlyif mysql # DIV for integer division: 
query I rowsort label-4068
SELECT 76 DIV + - 74 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4068
SELECT 76 / + - 74 AS col0
----
-1

query I rowsort
SELECT 47 * + - 9
----
-423

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4070
SELECT 25, + CAST( NULL AS DECIMAL ) * + + ( + 35 ) AS col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-4070
SELECT 25, + CAST ( NULL AS REAL ) * + + ( + 35 ) AS col0
----
25
NULL

query II rowsort
SELECT - 53 AS col2, - ( + - 33 )
----
-53
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4072
SELECT 1 DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4072
SELECT 1 / 79 AS col0
----
0

query I rowsort
SELECT ALL - 89 + + 76 + - 83
----
-96

query I rowsort
SELECT 72 * + - NULLIF ( + 46, - 10 ) AS col2
----
-3312

onlyif mysql # aggregate syntax: 
query II rowsort label-4075
SELECT DISTINCT COUNT( * ), + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4075
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT DISTINCT - 8 + 5
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT + 17 * + MIN( DISTINCT + 55 ) col2
----
935

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT + 17 * + MIN ( DISTINCT + 55 ) col2
----
935

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT + COUNT( * ) + - + 11 - 81
----
-91

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT + COUNT ( * ) + - + 11 - 81
----
-91

query I rowsort
SELECT 1 * + 63 * + 80
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT COUNT( * ) - + COUNT( ALL + 66 ) * + + 43
----
-42

skipif mysql # not compatible
query I rowsort label-4080
SELECT COUNT ( * ) - + COUNT ( ALL + 66 ) * + + 43
----
-42

query I rowsort
SELECT DISTINCT + 17 * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT + 49 * COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-4082
SELECT + 49 * COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT ALL + MAX( ALL - 78 ) + - 23 + + COUNT( * ) * 19 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL + MAX ( ALL - 78 ) + - 23 + + COUNT ( * ) * 19 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-4084
SELECT - 90 AS col1, + MAX( + - ( 76 ) ) AS col2
----
-90
-76

skipif mysql # not compatible
query II rowsort label-4084
SELECT - 90 AS col1, + MAX ( + - ( 76 ) ) AS col2
----
-90
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-4085
SELECT - - 17 + 73 + + 43 AS col1, + CASE - - 91 WHEN 36 THEN NULL WHEN - - 32 / 43 THEN + - 35 ELSE - + COUNT( * ) END AS col2
----
133
-1

skipif mysql # not compatible
query II rowsort label-4085
SELECT - - 17 + 73 + + 43 AS col1, + CASE - - 91 WHEN 36 THEN NULL WHEN - - 32 / 43 THEN + - 35 ELSE - + COUNT ( * ) END AS col2
----
133
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4086
SELECT ALL + 84, COUNT( * ) + + + MAX( + 53 ) + + 45 AS col0
----
84
99

skipif mysql # not compatible
query II rowsort label-4086
SELECT ALL + 84, COUNT ( * ) + + + MAX ( + 53 ) + + 45 AS col0
----
84
99

query I rowsort
SELECT DISTINCT + 6 * - - 6 + + 15 AS col2
----
51

query II rowsort
SELECT ALL + 73, 3 AS col0
----
73
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4089
SELECT ALL + + COALESCE ( CASE - 86 WHEN - 83 + + 96 + - 99 * + 54 DIV - 32 * ( 51 ) THEN NULL WHEN + - 78 THEN + 59 ELSE - 62 END, 77, - 61 - ( - 59 ) * - CAST( NULL AS SIGNED ) DIV - 91 DIV - + 84 DIV + 83 DIV + 11 * 10 + SUM( DISTINCT 92 ) ) * - 0 - 64 * + 43 AS col1
----
-2752

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + + COALESCE ( CASE - 86 WHEN - 83 + + 96 + - 99 * + 54 / - 32 * ( 51 ) THEN NULL WHEN + - 78 THEN + 59 ELSE - 62 END, 77, - 61 - ( - 59 ) * - CAST ( NULL AS INTEGER ) / - 91 / - + 84 / + 83 / + 11 * 10 + SUM ( DISTINCT 92 ) ) * - 0 - 64 * + 43 AS col1
----
-2752

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT DISTINCT - + 13 DIV + 18 * + 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT - + 13 / + 18 * + 11 AS col2
----
0

query I rowsort
SELECT + + 93 + 71
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-4092
SELECT ALL + ( + - 16 ) * + ( + 27 ) * 84 - - + COUNT( * ) + - COUNT( * ) + - 35, + 87 AS col2
----
-36323
87

skipif mysql # not compatible
query II rowsort label-4092
SELECT ALL + ( + - 16 ) * + ( + 27 ) * 84 - - + COUNT ( * ) + - COUNT ( * ) + - 35, + 87 AS col2
----
-36323
87

query I rowsort
SELECT - + 91 * NULLIF ( + 41, 82 ) + + 92
----
-3639

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT + COUNT( * ) + - 46 - + - COUNT( * ) * 52 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4094
SELECT + COUNT ( * ) + - 46 - + - COUNT ( * ) * 52 AS col1
----
7

query I rowsort
SELECT DISTINCT - 37 * + 45
----
-1665

query I rowsort
SELECT + 65 + + 74
----
139

query I rowsort
SELECT + + 41 * - - 44
----
1804

onlyif mysql # aggregate syntax: 
query II rowsort label-4098
SELECT ALL + + 44, 81 + + 83 + - - 12 * - + COUNT( * ) * 78 * 31 * + 31 * - COUNT( * ) col1
----
44
899660

skipif mysql # not compatible
query II rowsort label-4098
SELECT ALL + + 44, 81 + + 83 + - - 12 * - + COUNT ( * ) * 78 * 31 * + 31 * - COUNT ( * ) col1
----
44
899660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT + 41 * + CAST( - 71 AS SIGNED ) * + + 88 * - 53
----
13576904

skipif mysql # not compatible
query I rowsort label-4099
SELECT + 41 * + CAST ( - 71 AS INTEGER ) * + + 88 * - 53
----
13576904

query I rowsort
SELECT + 81 + - 8 - + 72 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT + CAST( NULL AS SIGNED ) + - + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT + CAST ( NULL AS INTEGER ) + - + 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT + CASE - + 38 WHEN - MAX( DISTINCT - 45 ) * 56 THEN NULL WHEN 89 * COUNT( * ) * 60 THEN - + 84 WHEN - 52 THEN NULL END * - - 13 * + 51 * COALESCE ( + ( - 80 ), + 9 ) * - 52 * - 10 * + 59 + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT + CASE - + 38 WHEN - MAX ( DISTINCT - 45 ) * 56 THEN NULL WHEN 89 * COUNT ( * ) * 60 THEN - + 84 WHEN - 52 THEN NULL END * - - 13 * + 51 * COALESCE ( + ( - 80 ), + 9 ) * - 52 * - 10 * + 59 + 95 AS col1
----
NULL

query I rowsort
SELECT - 63 * + - 52 AS col0
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL 66 * - + 24 * + ( + COUNT( * ) ) + 10 * + 61 AS col2
----
-974

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL 66 * - + 24 * + ( + COUNT ( * ) ) + 10 * + 61 AS col2
----
-974

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL - 94 + - - COUNT( * ) * - 74 AS col2
----
-168

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - 94 + - - COUNT ( * ) * - 74 AS col2
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT + 27 + - 57 + 75 * - COUNT( * ) * 51 - - 88 AS col1
----
-3767

skipif mysql # not compatible
query I rowsort label-4106
SELECT + 27 + - 57 + 75 * - COUNT ( * ) * 51 - - 88 AS col1
----
-3767

query I rowsort
SELECT + ( + - 90 ) + + 60
----
-30

query I rowsort
SELECT ALL - ( - + 76 ) + 83
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-4109
SELECT - 97 + 42 + CASE + - 23 WHEN COUNT( * ) THEN + ( - + COUNT( * ) ) WHEN 66 THEN - 71 END, 7 * 53 AS col1
----
NULL
371

skipif mysql # not compatible
query II rowsort label-4109
SELECT - 97 + 42 + CASE + - 23 WHEN COUNT ( * ) THEN + ( - + COUNT ( * ) ) WHEN 66 THEN - 71 END, 7 * 53 AS col1
----
NULL
371

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT ALL MIN( ALL ( - - 82 ) )
----
82

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL MIN ( ALL ( - - 82 ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT + ( 55 ) * + - MIN( DISTINCT - ( - - 86 ) )
----
4730

skipif mysql # not compatible
query I rowsort label-4111
SELECT + ( 55 ) * + - MIN ( DISTINCT - ( - - 86 ) )
----
4730

query I rowsort
SELECT - 73 + - - 16
----
-57

query I rowsort
SELECT - 50 + 91 * + 43 AS col2
----
3863

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT + MAX( ALL 76 ) * + 10
----
760

skipif mysql # not compatible
query I rowsort label-4114
SELECT + MAX ( ALL 76 ) * + 10
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT - 96 * + MIN( DISTINCT + + 30 ) AS col0
----
-2880

skipif mysql # not compatible
query I rowsort label-4115
SELECT - 96 * + MIN ( DISTINCT + + 30 ) AS col0
----
-2880

query I rowsort
SELECT ALL + 85 - - 65 AS col1
----
150

query II rowsort
SELECT - 95 * - 31 AS col2, 47
----
2945
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4118
SELECT ALL + - 40 - + CASE + 97 WHEN - - ( COUNT( * ) ) * - COUNT( * ) THEN + + 71 WHEN - - CAST( 20 AS SIGNED ) + 29 * + 2 THEN - + ( - - 69 ) ELSE NULL END + + + 89 * + - 37 + - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL + - 40 - + CASE + 97 WHEN - - ( COUNT ( * ) ) * - COUNT ( * ) THEN + + 71 WHEN - - CAST ( 20 AS INTEGER ) + 29 * + 2 THEN - + ( - - 69 ) ELSE NULL END + + + 89 * + - 37 + - 58 AS col0
----
NULL

query I rowsort
SELECT ALL - 41 * + 56 AS col1
----
-2296

onlyif mysql # aggregate syntax: 
query II rowsort label-4120
SELECT - + ( - COALESCE ( - SUM( ALL 73 ), + 27 + - 11 + - + COALESCE ( - 24, - 53 ) + - 24 * - 92, + 77 ) ) * + - 52 + - 3, ( - 23 ) AS col1
----
3793
-23

skipif mysql # not compatible
query II rowsort label-4120
SELECT - + ( - COALESCE ( - SUM ( ALL 73 ), + 27 + - 11 + - + COALESCE ( - 24, - 53 ) + - 24 * - 92, + 77 ) ) * + - 52 + - 3, ( - 23 ) AS col1
----
3793
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT DISTINCT + + ( - COALESCE ( + 17, COUNT( * ) * - + COUNT( DISTINCT + + 62 ), 40 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT + + ( - COALESCE ( + 17, COUNT ( * ) * - + COUNT ( DISTINCT + + 62 ), 40 ) )
----
-17

query I rowsort
SELECT DISTINCT + - ( - 95 )
----
95

query I rowsort
SELECT DISTINCT - 26 * + 65 AS col2
----
-1690

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT - + 20 * - + COUNT( * ) * - + 35 AS col0
----
-700

skipif mysql # not compatible
query I rowsort label-4124
SELECT - + 20 * - + COUNT ( * ) * - + 35 AS col0
----
-700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT + 25 DIV 45 * - 43 * + MIN( ALL - 96 ) + - - 89 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4125
SELECT + 25 / 45 * - 43 * + MIN ( ALL - 96 ) + - - 89 AS col2
----
89

query I rowsort
SELECT ALL 69 * + 97 * - - 98
----
655914

query I rowsort
SELECT + ( - - 20 ) AS col1
----
20

query I rowsort
SELECT ( 51 ) * 89 + 77
----
4616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4129
SELECT + CASE + + AVG ( ALL - - 82 ) WHEN + + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) THEN - COALESCE ( COUNT( * ), - 62 + 8 - - 4, 70 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT + CASE + + AVG ( ALL - - 82 ) WHEN + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - COALESCE ( COUNT ( * ), - 62 + 8 - - 4, 70 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT ALL 5 * 13 * - + NULLIF ( + - CAST( NULL AS SIGNED ), - 39 ) * - 40 + - 96 * + + 26 * + + 70 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL 5 * 13 * - + NULLIF ( + - CAST ( NULL AS INTEGER ), - 39 ) * - 40 + - 96 * + + 26 * + + 70 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT DISTINCT COUNT( * ) * + 44 * + - 42 + 66 * 61
----
2178

skipif mysql # not compatible
query I rowsort label-4131
SELECT DISTINCT COUNT ( * ) * + 44 * + - 42 + 66 * 61
----
2178

query I rowsort
SELECT ALL - 35 * + - NULLIF ( - 69, + - 59 + - - 82 + 91 + 43 ) col2
----
-2415

query I rowsort
SELECT + 4 * - - 58
----
232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4134
SELECT ALL SUM( ALL + - ( CAST( NULL AS SIGNED ) ) ), + 28 * - 7 + + + 10 - - ( ( + + 90 ) ) + - 47 AS col1
----
NULL
-143

skipif mysql # not compatible
query II rowsort label-4134
SELECT ALL SUM ( ALL + - ( CAST ( NULL AS INTEGER ) ) ), + 28 * - 7 + + + 10 - - ( ( + + 90 ) ) + - 47 AS col1
----
NULL
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT DISTINCT COUNT( * ) + 54 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT COUNT ( * ) + 54 AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT DISTINCT 80 + - 97 DIV - - 58 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT 80 + - 97 / - - 58 AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT ALL 15 * + 24 * - 33 * 80 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL 15 * + 24 * - 33 * 80 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 6 - - 49
----
55

query II rowsort
SELECT ALL 85 AS col0, + 91 * - NULLIF ( - + 38, - 85 )
----
85
3458

query I rowsort
SELECT ALL 79 * + 9 AS col0
----
711

query I rowsort
SELECT 31 - - + 97 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT NULLIF ( - - ( + COUNT( * ) ), + + NULLIF ( - + COUNT( * ), - - COUNT( * ) * - 74 ) / + ( + - 67 ) ) + 12 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4142
SELECT NULLIF ( - - ( + COUNT ( * ) ), + + NULLIF ( - + COUNT ( * ), - - COUNT ( * ) * - 74 ) / + ( + - 67 ) ) + 12 AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4143
SELECT + 46 DIV 2 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-4143
SELECT + 46 / 2 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT 80 + + + 77 * 55 - + 69 * - - SUM( + 94 )
----
-2171

skipif mysql # not compatible
query I rowsort label-4144
SELECT 80 + + + 77 * 55 - + 69 * - - SUM ( + 94 )
----
-2171

query I rowsort
SELECT 10 * + 62
----
620

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT - COUNT( * ) * + + 46 * 22
----
-1012

skipif mysql # not compatible
query I rowsort label-4146
SELECT - COUNT ( * ) * + + 46 * 22
----
-1012

query I rowsort
SELECT - 73 + - 14 col2
----
-87

query I rowsort
SELECT ALL + 88 * + CASE 6 WHEN - + 47 + 53 - - 18 THEN 67 ELSE - ( + + ( + 69 ) ) END
----
-6072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4149
SELECT - 25 * - 76 DIV - 75 * COUNT( * ) + - 58 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4149
SELECT - 25 * - 76 / - 75 * COUNT ( * ) + - 58 AS col1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4150
SELECT + 37 DIV - CAST( - COUNT( * ) AS SIGNED ) + + - 9
----
28

skipif mysql # not compatible
query I rowsort label-4150
SELECT + 37 / - CAST ( - COUNT ( * ) AS INTEGER ) + + - 9
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT - + MAX( - 5 ) * + 11 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT - + MAX ( - 5 ) * + 11 AS col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4152
SELECT - ( + 50 ) + + - NULLIF ( + - 32, + - 56 * 2 ) + - 21 * + COUNT( * ) + + ( - - 41 ), - 11 AS col1
----
2
-11

skipif mysql # not compatible
query II rowsort label-4152
SELECT - ( + 50 ) + + - NULLIF ( + - 32, + - 56 * 2 ) + - 21 * + COUNT ( * ) + + ( - - 41 ), - 11 AS col1
----
2
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL - - ( SUM( 19 ) ) + + - 40 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL - - ( SUM ( 19 ) ) + + - 40 AS col0
----
-21

query I rowsort
SELECT + 62 * 24 AS col0
----
1488

onlyif mysql # aggregate syntax: 
query II rowsort label-4155
SELECT ALL - + 6 AS col2, + COUNT( * ) * + COUNT( * )
----
-6
1

skipif mysql # not compatible
query II rowsort label-4155
SELECT ALL - + 6 AS col2, + COUNT ( * ) * + COUNT ( * )
----
-6
1

query I rowsort
SELECT + - ( - + 78 ) AS col0
----
78

query I rowsort
SELECT + ( + + 71 ) * + + 33 col2
----
2343

query I rowsort
SELECT - 49 * + + 99 + 40
----
-4811

query I rowsort
SELECT ALL - 3 + - + 19
----
-22

query I rowsort
SELECT ALL - 94 + - - 93 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4161
SELECT ALL - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4161
SELECT ALL - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT DISTINCT - 23 AS col1, - 54 * + ( + + 6 ) + - COUNT( * ) AS col1
----
-23
-325

skipif mysql # not compatible
query II rowsort label-4162
SELECT DISTINCT - 23 AS col1, - 54 * + ( + + 6 ) + - COUNT ( * ) AS col1
----
-23
-325

query II rowsort
SELECT + 4 AS col0, 14 + - 14
----
4
0

query II rowsort
SELECT + 7, - 69 AS col0
----
7
-69

query I rowsort
SELECT ALL + 76 + - 39
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4166
SELECT 75 * - 89 * ( - - 56 ) * + CAST( NULL AS SIGNED ) DIV + - 70 AS col0, 74 DIV 3 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-4166
SELECT 75 * - 89 * ( - - 56 ) * + CAST ( NULL AS INTEGER ) / + - 70 AS col0, 74 / 3 AS col0
----
NULL
24

query I rowsort
SELECT 81 + + - 23 AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4168
SELECT COUNT( * ) - + - 30 DIV + + 63 - - COALESCE ( 84, + 58 ) col0
----
85

skipif mysql # not compatible
query I rowsort label-4168
SELECT COUNT ( * ) - + - 30 / + + 63 - - COALESCE ( 84, + 58 ) col0
----
85

query I rowsort
SELECT - 76 * - - 82 * 84 + + - 0 AS col2
----
-523488

query I rowsort
SELECT ALL NULLIF ( - - 89, - 36 ) * - 63
----
-5607

query I rowsort
SELECT 0 * 44
----
0

query II rowsort
SELECT ALL 74 AS col0, 74 AS col1
----
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT - COUNT( * ) * + 29 + + - 29 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4173
SELECT - COUNT ( * ) * + 29 + + - 29 AS col2
----
-58

query I rowsort
SELECT DISTINCT + 59 - + + 23 AS col1
----
36

query I rowsort
SELECT 16 + - 89 + - 7
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-4176
SELECT DISTINCT 32 AS col2, 26 * - - COUNT( * ) * - 38 AS col0
----
32
-988

skipif mysql # not compatible
query II rowsort label-4176
SELECT DISTINCT 32 AS col2, 26 * - - COUNT ( * ) * - 38 AS col0
----
32
-988

query I rowsort
SELECT DISTINCT - 86 * - COALESCE ( 31, + NULLIF ( - - 64, - - 52 * + + 55 * - - 54 ) ) AS col1
----
2666

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT ALL + NULLIF ( + 47, COUNT( * ) * + 80 )
----
47

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL + NULLIF ( + 47, COUNT ( * ) * + 80 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT + 77 + COUNT( * ) - + + 73 * + - NULLIF ( + + 58, - + 63 )
----
4312

skipif mysql # not compatible
query I rowsort label-4179
SELECT + 77 + COUNT ( * ) - + + 73 * + - NULLIF ( + + 58, - + 63 )
----
4312

onlyif mysql # DIV for integer division: 
query I rowsort label-4180
SELECT 46 + - + 25 DIV - 88 - - 53
----
99

skipif mysql # not compatible
query I rowsort label-4180
SELECT 46 + - + 25 / - 88 - - 53
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT CAST( NULL AS SIGNED ) * - 53 + + 73 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT CAST ( NULL AS INTEGER ) * - 53 + + 73 col2
----
NULL

query I rowsort
SELECT DISTINCT ( + + 2 ) AS col1
----
2

query I rowsort
SELECT 38 + + 58 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT + CASE - + 57 WHEN + - ( 46 ) THEN NULL ELSE COUNT( * ) + - 68 END AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT + CASE - + 57 WHEN + - ( 46 ) THEN NULL ELSE COUNT ( * ) + - 68 END AS col0
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4185
SELECT - 71 * + COUNT( * ) DIV COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4185
SELECT - 71 * + COUNT ( * ) / COUNT ( * ) AS col0
----
-71

query I rowsort
SELECT DISTINCT + 31 + 72 AS col2
----
103

query I rowsort
SELECT ALL - ( 85 ) AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4188
SELECT + CAST( NULL AS SIGNED ) AS col0, 36 + + 65
----
NULL
101

skipif mysql # not compatible
query II rowsort label-4188
SELECT + CAST ( NULL AS INTEGER ) AS col0, 36 + + 65
----
NULL
101

query I rowsort
SELECT ALL - 98 + + 88 + - 24 AS col0
----
-34

query I rowsort
SELECT DISTINCT 72 + + 47 + ( - 10 ) * + 5
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4191
SELECT - 89 AS col0, 60 * 62 * 20 + + ( - 90 ) + COUNT( * )
----
-89
74311

skipif mysql # not compatible
query II rowsort label-4191
SELECT - 89 AS col0, 60 * 62 * 20 + + ( - 90 ) + COUNT ( * )
----
-89
74311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4192
SELECT COUNT( * ) DIV - - 8 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4192
SELECT COUNT ( * ) / - - 8 AS col2
----
0

query I rowsort
SELECT 86 * - 53
----
-4558

onlyif mysql # aggregate syntax: 
query II rowsort label-4194
SELECT COUNT( * ) AS col0, + 99 AS col2
----
1
99

skipif mysql # not compatible
query II rowsort label-4194
SELECT COUNT ( * ) AS col0, + 99 AS col2
----
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4195
SELECT ALL - 70 * CAST( 40 AS SIGNED ) * 94 + + + 48 + - 35 col0
----
-263187

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL - 70 * CAST ( 40 AS INTEGER ) * 94 + + + 48 + - 35 col0
----
-263187

query I rowsort
SELECT ALL + COALESCE ( + + 74, + 63, - + 0 ) * + - 43 + - 28 AS col2
----
-3210

query I rowsort
SELECT DISTINCT + ( + + 50 ) * + + 46 col0
----
2300

onlyif mysql # aggregate syntax: 
query II rowsort label-4198
SELECT + 51 + - + 63 AS col2, + COUNT( * )
----
-12
1

skipif mysql # not compatible
query II rowsort label-4198
SELECT + 51 + - + 63 AS col2, + COUNT ( * )
----
-12
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT - 97 / - + CAST( + - 72 AS SIGNED ) - + CAST( NULL AS SIGNED ) + + - ( + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT - 97 / - + CAST ( + - 72 AS INTEGER ) - + CAST ( NULL AS INTEGER ) + + - ( + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + CASE - 56 WHEN - 0 THEN + + 42 * - + 50 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL + 73 * MAX( DISTINCT - 28 ) * - 45 * + 84 * + - 95 AS col0
----
-734000400

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL + 73 * MAX ( DISTINCT - 28 ) * - 45 * + 84 * + - 95 AS col0
----
-734000400

query I rowsort
SELECT - 73 + + 36
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4203
SELECT ALL 61 * - 89 DIV COUNT( * ) col2
----
-5429

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL 61 * - 89 / COUNT ( * ) col2
----
-5429

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT - SUM( ALL 12 ) * - 14 AS col1
----
168

skipif mysql # not compatible
query I rowsort label-4204
SELECT - SUM ( ALL 12 ) * - 14 AS col1
----
168

query I rowsort
SELECT - NULLIF ( ( - + 55 ), - 75 )
----
55

query I rowsort
SELECT - 19 * ( 22 ) col1
----
-418

query I rowsort
SELECT - + 32 - - 58 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL - MIN( 6 ) + - ( - 52 ) + - 65
----
-19

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL - MIN ( 6 ) + - ( - 52 ) + - 65
----
-19

query I rowsort
SELECT ALL - + 62 * + 97 AS col2
----
-6014

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT - + 82 * + ( + - COUNT( * ) ) + - + ( - 90 ) * - - 4
----
442

skipif mysql # not compatible
query I rowsort label-4210
SELECT - + 82 * + ( + - COUNT ( * ) ) + - + ( - 90 ) * - - 4
----
442

query II rowsort
SELECT DISTINCT - 60 + - 99 AS col2, 96
----
-159
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT ALL COUNT( 94 )
----
1

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL COUNT ( 94 )
----
1

query I rowsort
SELECT DISTINCT 17 + - - 62 AS col1
----
79

query I rowsort
SELECT - 21 + + + 98
----
77

query I rowsort
SELECT + 5 - - + 61
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT - + MIN( - - 10 ) col0
----
-10

skipif mysql # not compatible
query I rowsort label-4216
SELECT - + MIN ( - - 10 ) col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT - COALESCE ( + - 11, + 5, - COUNT( * ) * 41 )
----
11

skipif mysql # not compatible
query I rowsort label-4217
SELECT - COALESCE ( + - 11, + 5, - COUNT ( * ) * 41 )
----
11

query I rowsort
SELECT ALL + 86 + + 31 AS col2
----
117

query I rowsort
SELECT + + ( + 83 ) + - 33 * - - 21
----
-610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4220
SELECT COUNT( * ) DIV + + 88 + - 27 DIV + + CAST( COUNT( * ) AS SIGNED ) + 55
----
28

skipif mysql # not compatible
query I rowsort label-4220
SELECT COUNT ( * ) / + + 88 + - 27 / + + CAST ( COUNT ( * ) AS INTEGER ) + 55
----
28

query I rowsort
SELECT + COALESCE ( + 52, - + 56, - ( + - 49 ) ) AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4222
SELECT DISTINCT 62 DIV + MIN( + + 98 ) - + 58 col1
----
-58

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT 62 / + MIN ( + + 98 ) - + 58 col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4223
SELECT ( + CASE 20 WHEN - 69 + MIN( ALL + 94 ) - 73 * + 92 * 7 THEN NULL ELSE - 43 DIV 32 + + 14 END ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4223
SELECT ( + CASE 20 WHEN - 69 + MIN ( ALL + 94 ) - 73 * + 92 * 7 THEN NULL ELSE - 43 / 32 + + 14 END ) AS col2
----
13

query II rowsort
SELECT + COALESCE ( + + 43, + 71 ) AS col1, 73 AS col0
----
43
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT + 45 * COALESCE ( + - 36, AVG ( ALL - 81 ) + + 71, + 21 + ( ( + ( + - 63 ) ) ) ) DIV + 15
----
-108

skipif mysql # not compatible
query I rowsort label-4225
SELECT + 45 * COALESCE ( + - 36, AVG ( ALL - 81 ) + + 71, + 21 + ( ( + ( + - 63 ) ) ) ) / + 15
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-4226
SELECT ALL 92 DIV 83
----
1

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL 92 / 83
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4227
SELECT + 97 DIV + - COALESCE ( COUNT( * ), + 21 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-4227
SELECT + 97 / + - COALESCE ( COUNT ( * ), + 21 ) AS col1
----
-97

query II rowsort
SELECT DISTINCT - 95 * 89 * - 51 AS col1, 55
----
431205
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT ALL + CAST( NULL AS SIGNED ) * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL + CAST ( NULL AS INTEGER ) * - 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4230
SELECT + CAST( - + COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4230
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) col1
----
-1

query I rowsort
SELECT DISTINCT + 23 * + 96 * + 80
----
176640

query I rowsort
SELECT + 79 + + 94 AS col2
----
173

query II rowsort
SELECT - 4 * + 45 - + 9 AS col2, 27 * - + 46 + 88 AS col0
----
-189
-1154

query II rowsort
SELECT ALL ( + 78 ) * - 49 * - 69 AS col2, - 63 * - 61 * + 75 + - - 84 - 35
----
263718
288274

query II rowsort
SELECT + 35 AS col0, 73 * - 11 AS col0
----
35
-803

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4236
SELECT + CAST( NULL AS SIGNED ), 36 AS col2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-4236
SELECT + CAST ( NULL AS INTEGER ), 36 AS col2
----
NULL
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4237
SELECT - 5, SUM( 48 ) * COUNT( * ) AS col1
----
-5
48

skipif mysql # not compatible
query II rowsort label-4237
SELECT - 5, SUM ( 48 ) * COUNT ( * ) AS col1
----
-5
48

query I rowsort
SELECT ALL - ( - - 29 ) * - ( + 30 ) + + 47 - - - 50 AS col1
----
867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4239
SELECT - - CAST( NULL AS SIGNED ) * + + MAX( - 79 ) - 85 + + 32 + - 53 * - - 39 + - - 48, 86 AS col0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-4239
SELECT - - CAST ( NULL AS INTEGER ) * + + MAX ( - 79 ) - 85 + + 32 + - 53 * - - 39 + - - 48, 86 AS col0
----
NULL
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT ALL - - COUNT( * ) DIV - 34 * - 34
----
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - - COUNT ( * ) / - 34 * - 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT - COUNT( * ) * 98 + + + 62 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT - COUNT ( * ) * 98 + + + 62 AS col0
----
-36

query II rowsort
SELECT - + 1 AS col0, - 12
----
-1
-12

query I rowsort
SELECT - 75 + 27
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4244
SELECT - 19 DIV - + 38 - + 36
----
-36

skipif mysql # not compatible
query I rowsort label-4244
SELECT - 19 / - + 38 - + 36
----
-36

query I rowsort
SELECT - - ( 41 ) + 2 + 42 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - COUNT( - 80 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4246
SELECT - COUNT ( - 80 ) AS col2
----
-1

query I rowsort
SELECT + + 96 + + + 28 AS col2
----
124

query II rowsort
SELECT ALL + + ( + 75 ) + + 22 AS col0, - 91 * - 39
----
97
3549

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4249
SELECT - - COUNT( * ) DIV - 22 * SUM( - 20 ) * + 66 - + 89 + + - CAST( COUNT( * ) AS SIGNED ) - - 73 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-4249
SELECT - - COUNT ( * ) / - 22 * SUM ( - 20 ) * + 66 - + 89 + + - CAST ( COUNT ( * ) AS INTEGER ) - - 73 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT - - SUM( DISTINCT + 29 ) * 43 * + 49
----
61103

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT - - SUM ( DISTINCT + 29 ) * 43 * + 49
----
61103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4251
SELECT ALL - 66 DIV - + 97 * - 15 col0, ( + MIN( + - 61 ) ) + - - 58 + - + 16
----
0
-19

skipif mysql # not compatible
query II rowsort label-4251
SELECT ALL - 66 / - + 97 * - 15 col0, ( + MIN ( + - 61 ) ) + - - 58 + - + 16
----
0
-19

query II rowsort
SELECT - + 49 AS col2, 4 - + 91
----
-49
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT DISTINCT CAST( + 27 AS SIGNED ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT CAST ( + 27 AS INTEGER ) AS col0
----
27

query I rowsort
SELECT 75 - 38 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT COALESCE ( - 9, ( COUNT( + - 39 ) ) ) * + 15
----
-135

skipif mysql # not compatible
query I rowsort label-4255
SELECT COALESCE ( - 9, ( COUNT ( + - 39 ) ) ) * + 15
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT 0 * - MIN( - 42 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4256
SELECT 0 * - MIN ( - 42 ) AS col2
----
0

query I rowsort
SELECT 36 * 25 AS col1
----
900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4258
SELECT 26 * + CASE + AVG ( ALL 8 ) WHEN 10 THEN NULL ELSE - + 7 * 63 + 47 + - + COUNT( * ) DIV - - 72 - - + 37 END col0
----
-9282

skipif mysql # not compatible
query I rowsort label-4258
SELECT 26 * + CASE + AVG ( ALL 8 ) WHEN 10 THEN NULL ELSE - + 7 * 63 + 47 + - + COUNT ( * ) / - - 72 - - + 37 END col0
----
-9282

query I rowsort
SELECT DISTINCT 15 * 20
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4260
SELECT 9 + + 43 + + 56 DIV + - MIN( - 90 ) + 38 + - CAST( + + 42 AS SIGNED ) * - 62 + - - COUNT( * ) * + 39 AS col0
----
2733

skipif mysql # not compatible
query I rowsort label-4260
SELECT 9 + + 43 + + 56 / + - MIN ( - 90 ) + 38 + - CAST ( + + 42 AS INTEGER ) * - 62 + - - COUNT ( * ) * + 39 AS col0
----
2733

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT 16 * + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-4261
SELECT 16 * + + COUNT ( * )
----
16

query I rowsort
SELECT NULLIF ( - 15, 19 * + CASE - 82 WHEN + + 92 THEN + 96 * + - NULLIF ( - 78, 7 ) END * 81 / 63 + - 65 + - 36 ) * + 63 * - 88
----
83160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4263
SELECT 31 * MIN( DISTINCT - CAST( + 85 AS SIGNED ) )
----
-2635

skipif mysql # not compatible
query I rowsort label-4263
SELECT 31 * MIN ( DISTINCT - CAST ( + 85 AS INTEGER ) )
----
-2635

query I rowsort
SELECT + + NULLIF ( - + 47, - + 60 )
----
-47

query I rowsort
SELECT ALL 54 + 83 * + ( 84 ) + 6 AS col1
----
7032

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ALL 93 + - COALESCE ( COUNT( * ), 97 )
----
92

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL 93 + - COALESCE ( COUNT ( * ), 97 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4267
SELECT ALL - CASE - 48 WHEN + + 49 THEN - NULLIF ( + 25, - 65 + + 8 ) + 26 DIV 96 ELSE + - 88 - 6 * + 25 END * + 14
----
3332

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL - CASE - 48 WHEN + + 49 THEN - NULLIF ( + 25, - 65 + + 8 ) + 26 / 96 ELSE + - 88 - 6 * + 25 END * + 14
----
3332

query I rowsort
SELECT DISTINCT + ( 23 ) + + - 70 + + - 3 + 2 * - + 20
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL - - MIN( DISTINCT + 77 ) + + 40 * + 7 AS col1
----
357

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL - - MIN ( DISTINCT + 77 ) + + 40 * + 7 AS col1
----
357

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4270
SELECT 0 * + - 58 + - + COALESCE ( + COUNT( * ), - + 71 ) + - 18 DIV 2 * + - 88 * - 76, ( 36 ) + + 65 AS col0
----
-60193
101

skipif mysql # not compatible
query II rowsort label-4270
SELECT 0 * + - 58 + - + COALESCE ( + COUNT ( * ), - + 71 ) + - 18 / 2 * + - 88 * - 76, ( 36 ) + + 65 AS col0
----
-60193
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4271
SELECT DISTINCT COALESCE ( + 85, + 64, 14 * 27 + + 1 + COUNT( * ) + + 65 DIV + 34 - - + NULLIF ( + ( + - CAST( + ( - + 92 ) AS SIGNED ) ), - 13 ) ) + + ( - 85 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT COALESCE ( + 85, + 64, 14 * 27 + + 1 + COUNT ( * ) + + 65 / + 34 - - + NULLIF ( + ( + - CAST ( + ( - + 92 ) AS INTEGER ) ), - 13 ) ) + + ( - 85 ) AS col2
----
0

query I rowsort
SELECT ALL - 19 + + 93 AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4273
SELECT - + CASE - - CAST( + 81 AS SIGNED ) WHEN - + 99 THEN + + 26 WHEN 23 THEN - 94 + + - CAST( + CASE - 45 WHEN 21 / 65 THEN - NULLIF ( - ( + 97 ), 37 ) * + COUNT( * ) + - 81 WHEN 72 THEN NULL ELSE - CASE 0 WHEN + + 58 + - - 42 + - 37 THEN NULL WHEN - ( 89 ) THEN - 56 + - - ( + COUNT( * ) ) + + - COUNT( * ) * + 75 * - 92 * - - 45 * + - COUNT( * ) * - 53 END * ( - 45 ) + - 98 END AS SIGNED ) + - 80 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT - + CASE - - CAST ( + 81 AS INTEGER ) WHEN - + 99 THEN + + 26 WHEN 23 THEN - 94 + + - CAST ( + CASE - 45 WHEN 21 / 65 THEN - NULLIF ( - ( + 97 ), 37 ) * + COUNT ( * ) + - 81 WHEN 72 THEN NULL ELSE - CASE 0 WHEN + + 58 + - - 42 + - 37 THEN NULL WHEN - ( 89 ) THEN - 56 + - - ( + COUNT ( * ) ) + + - COUNT ( * ) * + 75 * - 92 * - - 45 * + - COUNT ( * ) * - 53 END * ( - 45 ) + - 98 END AS INTEGER ) + - 80 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT - 40 - - CASE SUM( ALL - + 37 ) WHEN - 90 THEN + 38 WHEN + 7 + - 14 THEN NULL WHEN + 93 - + - 89 + 9 * + 37 THEN 14 ELSE NULL END * + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT - 40 - - CASE SUM ( ALL - + 37 ) WHEN - 90 THEN + 38 WHEN + 7 + - 14 THEN NULL WHEN + 93 - + - 89 + 9 * + 37 THEN 14 ELSE NULL END * + + 44
----
NULL

query I rowsort
SELECT 72 + + ( + 92 ) * 59 + - ( - 35 )
----
5535

query I rowsort
SELECT ALL 23 - 20 * - 65 AS col1
----
1323

query I rowsort
SELECT ALL + 78 - 11 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT MAX( + 24 ) + + - 5 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4278
SELECT MAX ( + 24 ) + + - 5 AS col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT + CAST( - - 36 AS SIGNED ) - + - 93
----
129

skipif mysql # not compatible
query I rowsort label-4279
SELECT + CAST ( - - 36 AS INTEGER ) - + - 93
----
129

query I rowsort
SELECT 84 + - 36 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT COUNT( * ) - - COUNT( ALL + 79 )
----
2

skipif mysql # not compatible
query I rowsort label-4281
SELECT COUNT ( * ) - - COUNT ( ALL + 79 )
----
2

query I rowsort
SELECT 94 + + - 38
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4283
SELECT 0 DIV 26 DIV - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4283
SELECT 0 / 26 / - 33 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT ALL - 40 DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - 40 / + 41
----
0

query I rowsort
SELECT 10 + 30 col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4286
SELECT - COUNT( * ) DIV + 44 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4286
SELECT - COUNT ( * ) / + 44 + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT 29 + 97 * + 67 AS col0
----
6528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4288
SELECT DISTINCT - CASE - - 75 WHEN + 3 + - COUNT( * ) THEN + 96 WHEN - - 38 + - 47 THEN NULL WHEN + CAST( - 52 AS SIGNED ) * + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT - CASE - - 75 WHEN + 3 + - COUNT ( * ) THEN + 96 WHEN - - 38 + - 47 THEN NULL WHEN + CAST ( - 52 AS INTEGER ) * + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4289
SELECT ALL - 71 AS col2, 27 * + - 7 * 88 * - MIN( - 24 ) + + 78
----
-71
-399090

skipif mysql # not compatible
query II rowsort label-4289
SELECT ALL - 71 AS col2, 27 * + - 7 * 88 * - MIN ( - 24 ) + + 78
----
-71
-399090

query I rowsort
SELECT DISTINCT - 23 + - 72 + + 10
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4291
SELECT 19 * + 98 DIV - COUNT( DISTINCT 26 )
----
-1862

skipif mysql # not compatible
query I rowsort label-4291
SELECT 19 * + 98 / - COUNT ( DISTINCT 26 )
----
-1862

query I rowsort
SELECT 61 * 48 AS col0
----
2928

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4293
SELECT + CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) / - 0 + + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT + CAST ( CAST ( NULL AS REAL ) AS REAL ) / - 0 + + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 61 * + - 38
----
-2318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4295
SELECT DISTINCT - COALESCE ( - 48, + NULLIF ( - CAST( - COALESCE ( - 58, + 96 ) AS SIGNED ), - COUNT( * ) + - - 78 + + 82 ) ) + 88
----
136

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT - COALESCE ( - 48, + NULLIF ( - CAST ( - COALESCE ( - 58, + 96 ) AS INTEGER ), - COUNT ( * ) + - - 78 + + 82 ) ) + 88
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL 96 * - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL 96 * - COUNT ( * )
----
-96

query I rowsort
SELECT DISTINCT 55 + 13 AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4298
SELECT + + CASE + + 14 WHEN - COUNT( * ) + - + 88 * + 92 + 57 + - CAST( NULL AS SIGNED ) * + 40 THEN + COALESCE ( + 65, + 79 + + - 75 ) * 1 + - - 36 * + ( + MIN( - - 71 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT + + CASE + + 14 WHEN - COUNT ( * ) + - + 88 * + 92 + 57 + - CAST ( NULL AS INTEGER ) * + 40 THEN + COALESCE ( + 65, + 79 + + - 75 ) * 1 + - - 36 * + ( + MIN ( - - 71 ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT COALESCE ( - 25, - COUNT( - - 30 ) ) + + - 65
----
-90

skipif mysql # not compatible
query I rowsort label-4299
SELECT COALESCE ( - 25, - COUNT ( - - 30 ) ) + + - 65
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT - COUNT( 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-4300
SELECT - COUNT ( 69 )
----
-1

query I rowsort
SELECT 15 + - 90 col2
----
-75

query I rowsort
SELECT ALL 27 - + 61
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT - CASE + - MIN( + 63 ) WHEN 56 * - - 51 * + 83 / - 83 THEN NULL WHEN 29 THEN + 86 + - COUNT( - + 23 ) END + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT - CASE + - MIN ( + 63 ) WHEN 56 * - - 51 * + 83 / - 83 THEN NULL WHEN 29 THEN + 86 + - COUNT ( - + 23 ) END + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4304
SELECT 94 + + 91 - - 37 DIV + 99 + - + COUNT( * ) + - 9 DIV - 99 col2
----
184

skipif mysql # not compatible
query I rowsort label-4304
SELECT 94 + + 91 - - 37 / + 99 + - + COUNT ( * ) + - 9 / - 99 col2
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT - 28 DIV + 39 + - + 59
----
-59

skipif mysql # not compatible
query I rowsort label-4305
SELECT - 28 / + 39 + - + 59
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT ALL CAST( - 63 AS SIGNED ) * - - 75 - 77 col1
----
-4802

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL CAST ( - 63 AS INTEGER ) * - - 75 - 77 col1
----
-4802

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4307
SELECT ALL - 88 DIV - COALESCE ( COALESCE ( - - 68, COUNT( * ) ), - 33 DIV - 15 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL - 88 / - COALESCE ( COALESCE ( - - 68, COUNT ( * ) ), - 33 / - 15 ) AS col1
----
1

query II rowsort
SELECT - - 86 AS col2, - 28 AS col1
----
86
-28

query I rowsort
SELECT - - ( + 46 ) * + 56
----
2576

query I rowsort
SELECT - 87 + + + 88 + - - 88 * + 10 AS col0
----
881

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT - CASE + 18 WHEN + 38 THEN + 21 + 15 + 85 + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT - CASE + 18 WHEN + 38 THEN + 21 + 15 + 85 + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT + 81 * - 6 AS col0
----
-486

query I rowsort
SELECT ALL + ( 9 ) + + 2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4314
SELECT DISTINCT 52 AS col0, - COUNT( * ) * ( 37 ) AS col2
----
52
-37

skipif mysql # not compatible
query II rowsort label-4314
SELECT DISTINCT 52 AS col0, - COUNT ( * ) * ( 37 ) AS col2
----
52
-37

query I rowsort
SELECT - 51 * + 0 * + 58
----
0

query I rowsort
SELECT ALL + 82 * - 17
----
-1394

query II rowsort
SELECT - 57, - 1 col2
----
-57
-1

query I rowsort
SELECT ALL - 55 + - - 8 * + + 13 col1
----
49

query I rowsort
SELECT + 39 - - 53 AS col1
----
92

query I rowsort
SELECT DISTINCT + 65 * - - 10
----
650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4321
SELECT ALL - 10 * - 24 * CAST( - - ( + 38 ) AS SIGNED ) AS col0
----
9120

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL - 10 * - 24 * CAST ( - - ( + 38 ) AS INTEGER ) AS col0
----
9120

query I rowsort
SELECT - 61 - ( + ( - 54 ) )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT DISTINCT + 65 * 17 * 44 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT + 65 * 17 * 44 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT DISTINCT ( - - 61 ) * 10 + - 98 * + 53 + - - COUNT( * ) - - + 8 AS col1
----
-4575

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT ( - - 61 ) * 10 + - 98 * + 53 + - - COUNT ( * ) - - + 8 AS col1
----
-4575

query I rowsort
SELECT - + 49 * 61
----
-2989

onlyif mysql # aggregate syntax: 
query II rowsort label-4326
SELECT DISTINCT 90 * 10 - + 94 * 29, CASE - COUNT( DISTINCT - 66 ) WHEN + ( + - 0 ) - - 77 THEN + 36 WHEN + + NULLIF ( + 87, 65 + + + 27 + - + 62 + 86 ) / + 5 THEN NULL ELSE NULL END AS col2
----
-1826
NULL

skipif mysql # not compatible
query II rowsort label-4326
SELECT DISTINCT 90 * 10 - + 94 * 29, CASE - COUNT ( DISTINCT - 66 ) WHEN + ( + - 0 ) - - 77 THEN + 36 WHEN + + NULLIF ( + 87, 65 + + + 27 + - + 62 + 86 ) / + 5 THEN NULL ELSE NULL END AS col2
----
-1826
NULL

query II rowsort
SELECT ALL + 42, - 91 col0
----
42
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT - 99 * MIN( - + 69 )
----
6831

skipif mysql # not compatible
query I rowsort label-4328
SELECT - 99 * MIN ( - + 69 )
----
6831

query I rowsort
SELECT ALL + 3 * ( 20 ) * + - 81 + + + 68 * 73 + 33 AS col0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT + - 48 * + CASE MAX( + 51 ) WHEN AVG ( DISTINCT + 68 ) THEN NULL WHEN 77 THEN NULL WHEN - 28 * - + 32 THEN - ( + COALESCE ( 65, - - 2 * - 50 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT + - 48 * + CASE MAX ( + 51 ) WHEN AVG ( DISTINCT + 68 ) THEN NULL WHEN 77 THEN NULL WHEN - 28 * - + 32 THEN - ( + COALESCE ( 65, - - 2 * - 50 ) ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL + 42 AS col0, + 39
----
42
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT + COALESCE ( - 63, 23 * - MAX( ALL + + 15 ), + + 17, + - 5 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-4332
SELECT + COALESCE ( - 63, 23 * - MAX ( ALL + + 15 ), + + 17, + - 5 ) AS col2
----
-63

query I rowsort
SELECT + - 96 - + - 46 + + 60 AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT + 29 / 77 / ( - 24 ) + CAST( NULL AS SIGNED ) / AVG ( ALL - 9 ) + - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT + 29 / 77 / ( - 24 ) + CAST ( NULL AS INTEGER ) / AVG ( ALL - 9 ) + - 86 AS col2
----
NULL

query I rowsort
SELECT ALL ( - 7 ) + + - 68 + 38 AS col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT + 75 + - + ( 78 ) DIV 94 + - 14 * 41
----
-499

skipif mysql # not compatible
query I rowsort label-4336
SELECT + 75 + - + ( 78 ) / 94 + - 14 * 41
----
-499

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4337
SELECT DISTINCT COALESCE ( - 32, 78 DIV - 36, + CAST( NULL AS SIGNED ) * - 27 DIV - 7 ) DIV + 3
----
-10

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT COALESCE ( - 32, 78 / - 36, + CAST ( NULL AS INTEGER ) * - 27 / - 7 ) / + 3
----
-10

query I rowsort
SELECT ALL 63 + - 4 AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT - CAST( + - 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-4339
SELECT - CAST ( + - 11 AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL COUNT( * ) + MIN( ALL + 50 )
----
51

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL COUNT ( * ) + MIN ( ALL + 50 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT + 39 + - MAX( DISTINCT + 7 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4341
SELECT + 39 + - MAX ( DISTINCT + 7 ) AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4342
SELECT - CASE - - 15 WHEN 28 THEN - + COUNT( * ) + 3 / CASE + 56 WHEN - 3 THEN + 42 * - 12 - - ( + + 31 ) + - 95 * - COUNT( * ) WHEN - 12 * - 2 THEN NULL WHEN + - COUNT( * ) * CAST( NULL AS SIGNED ) + - 47 THEN NULL ELSE + - 62 + - 36 * - - 32 END * + 95 ELSE - - CAST( NULL AS SIGNED ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4342
SELECT - CASE - - 15 WHEN 28 THEN - + COUNT ( * ) + 3 / CASE + 56 WHEN - 3 THEN + 42 * - 12 - - ( + + 31 ) + - 95 * - COUNT ( * ) WHEN - 12 * - 2 THEN NULL WHEN + - COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 47 THEN NULL ELSE + - 62 + - 36 * - - 32 END * + 95 ELSE - - CAST ( NULL AS INTEGER ) END col0
----
NULL

query I rowsort
SELECT + 21 - + 9 AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4344
SELECT ALL 27 + - 10, - COUNT( * ) DIV 86 AS col2
----
17
0

skipif mysql # not compatible
query II rowsort label-4344
SELECT ALL 27 + - 10, - COUNT ( * ) / 86 AS col2
----
17
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT ( - 55 ) * - 21 / - - 41 * + COUNT( * ) + + - ( - CASE - + 14 WHEN 46 * - 15 THEN - 52 / COUNT( * ) * - 49 * + + 24 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT ( - 55 ) * - 21 / - - 41 * + COUNT ( * ) + + - ( - CASE - + 14 WHEN 46 * - 15 THEN - 52 / COUNT ( * ) * - 49 * + + 24 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - MAX( 18 ) + - 73
----
-91

skipif mysql # not compatible
query I rowsort label-4346
SELECT - MAX ( 18 ) + - 73
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT + MAX( DISTINCT + 78 ) + - 66
----
12

skipif mysql # not compatible
query I rowsort label-4347
SELECT + MAX ( DISTINCT + 78 ) + - 66
----
12

query I rowsort
SELECT ALL + COALESCE ( + - 95, + + 83 + - - 31 ) AS col0
----
-95

query I rowsort
SELECT - 37 + + - 53 + 51 * - 1
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4350
SELECT + 67 + COALESCE ( - COUNT( * ), 54 * + 2 * + - 18, CAST( 35 AS SIGNED ) * ( + COUNT( * ) ) + + 69 ) + + + 40 * + + 3 + - COUNT( * ) + 57 * - - ( 19 ) * - 0 * - + 35 AS col1
----
185

skipif mysql # not compatible
query I rowsort label-4350
SELECT + 67 + COALESCE ( - COUNT ( * ), 54 * + 2 * + - 18, CAST ( 35 AS INTEGER ) * ( + COUNT ( * ) ) + + 69 ) + + + 40 * + + 3 + - COUNT ( * ) + 57 * - - ( 19 ) * - 0 * - + 35 AS col1
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT + CAST( NULL AS SIGNED ) / 85 * + 98 - + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT + CAST ( NULL AS INTEGER ) / 85 * + 98 - + 72 AS col0
----
NULL

query I rowsort
SELECT - 17 + + + 77 + + - 48 AS col2
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4353
SELECT + CASE - 64 WHEN - 23 - 17 THEN 93 * + + CAST( NULL AS DECIMAL ) + 14 WHEN + 60 THEN NULL END * + 3 + + 90 AS col0, - 33 AS col0
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-4353
SELECT + CASE - 64 WHEN - 23 - 17 THEN 93 * + + CAST ( NULL AS REAL ) + 14 WHEN + 60 THEN NULL END * + 3 + + 90 AS col0, - 33 AS col0
----
NULL
-33

query I rowsort
SELECT - COALESCE ( + - 52, 44 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-4355
SELECT + MIN( ALL 24 ) AS col0, + 91
----
24
91

skipif mysql # not compatible
query II rowsort label-4355
SELECT + MIN ( ALL 24 ) AS col0, + 91
----
24
91

query I rowsort
SELECT - - 43 * + 5
----
215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4357
SELECT ALL - + CAST( NULLIF ( 68, 41 + - 0 + - SUM( ALL - ( - 85 ) ) + - 45 * - + SUM( + 74 ) * 4 * + COUNT( * ) ) AS SIGNED ) col2, - 58 - + + 69 AS col0, - 64 + + + 42
----
-68
-127
-22

skipif mysql # not compatible
query III rowsort label-4357
SELECT ALL - + CAST ( NULLIF ( 68, 41 + - 0 + - SUM ( ALL - ( - 85 ) ) + - 45 * - + SUM ( + 74 ) * 4 * + COUNT ( * ) ) AS INTEGER ) col2, - 58 - + + 69 AS col0, - 64 + + + 42
----
-68
-127
-22

query II rowsort
SELECT 78 + + + 64 AS col1, 82
----
142
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT + COALESCE ( ( COUNT( * ) ), + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-4359
SELECT + COALESCE ( ( COUNT ( * ) ), + 23 )
----
1

query I rowsort
SELECT - 19 * + + 53
----
-1007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4361
SELECT ALL - + ( - 12 ) * - + 1 + - - 98 - + CAST( 69 AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL - + ( - 12 ) * - + 1 + - - 98 - + CAST ( 69 AS INTEGER ) AS col1
----
17

query I rowsort
SELECT - 33 * - 78
----
2574

query I rowsort
SELECT 57 + 0 * - + 62 AS col0
----
57

query I rowsort
SELECT ( 67 ) + + 87 AS col1
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4365
SELECT + 99 * - CASE NULLIF ( 48, + + 17 ) WHEN - 31 THEN - COUNT( * ) + 80 + - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT + 99 * - CASE NULLIF ( 48, + + 17 ) WHEN - 31 THEN - COUNT ( * ) + 80 + - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + MAX( + + 54 ) + - 50 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4366
SELECT + MAX ( + + 54 ) + - 50 AS col2
----
4

query I rowsort
SELECT - - 65 * + 41 + + 12 + ( - + COALESCE ( 85, + 48 ) ) + 3
----
2595

query II rowsort
SELECT 26 + - 83 + + 31 AS col0, + 88
----
-26
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT + ( + + COUNT( * ) ) * - MAX( + 40 ) * - 72
----
2880

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT + ( + + COUNT ( * ) ) * - MAX ( + 40 ) * - 72
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL - MAX( - 52 ) + 2 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL - MAX ( - 52 ) + 2 AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4371
SELECT 9 * 12 * + 80 col1, COUNT( * )
----
8640
1

skipif mysql # not compatible
query II rowsort label-4371
SELECT 9 * 12 * + 80 col1, COUNT ( * )
----
8640
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4372
SELECT ( + - COUNT( * ) ) + + 69 + - - COALESCE ( - 14, - 46 + 34 - 12, + ( - COUNT( * ) ) DIV + + 57 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4372
SELECT ( + - COUNT ( * ) ) + + 69 + - - COALESCE ( - 14, - 46 + 34 - 12, + ( - COUNT ( * ) ) / + + 57 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT MAX( DISTINCT + 88 ) + 90 * - 98
----
-8732

skipif mysql # not compatible
query I rowsort label-4373
SELECT MAX ( DISTINCT + 88 ) + 90 * - 98
----
-8732

query II rowsort
SELECT 39 AS col2, 55 AS col1
----
39
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4375
SELECT 64 + + + 62 DIV - COUNT( * ) + ( - COUNT( * ) ) * 67
----
-65

skipif mysql # not compatible
query I rowsort label-4375
SELECT 64 + + + 62 / - COUNT ( * ) + ( - COUNT ( * ) ) * 67
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT + COUNT( * ) + + 99
----
100

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + COUNT ( * ) + + 99
----
100

query I rowsort
SELECT ALL - 83 * 89 col1
----
-7387

query II rowsort
SELECT 55 AS col1, 4 AS col0
----
55
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4379
SELECT ALL 65 AS col0, - ( COUNT( * ) )
----
65
-1

skipif mysql # not compatible
query II rowsort label-4379
SELECT ALL 65 AS col0, - ( COUNT ( * ) )
----
65
-1

query II rowsort
SELECT 63, 71 * - 37 AS col1
----
63
-2627

query I rowsort
SELECT ALL 73 * - 64 AS col2
----
-4672

query II rowsort
SELECT ALL 74 AS col0, 15 AS col2
----
74
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT COUNT( * ) - 68 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4383
SELECT COUNT ( * ) - 68 AS col1
----
-67

query I rowsort
SELECT 44 - + 45 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4385
SELECT 79 DIV 39 * + COALESCE ( 65, - ( - 9 ) ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-4385
SELECT 79 / 39 * + COALESCE ( 65, - ( - 9 ) ) AS col1
----
130

query I rowsort
SELECT ALL 37 * 98
----
3626

onlyif mysql # aggregate syntax: 
query II rowsort label-4387
SELECT CASE + COUNT( * ) WHEN - 48 + - - 75 THEN NULL WHEN 77 + + - 70 * + - COUNT( ALL 44 ) THEN - 22 + + COUNT( * ) ELSE NULL END + + 81 AS col2, - 47 AS col2
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-4387
SELECT CASE + COUNT ( * ) WHEN - 48 + - - 75 THEN NULL WHEN 77 + + - 70 * + - COUNT ( ALL 44 ) THEN - 22 + + COUNT ( * ) ELSE NULL END + + 81 AS col2, - 47 AS col2
----
NULL
-47

query I rowsort
SELECT DISTINCT 93 * - 61 AS col2
----
-5673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4389
SELECT DISTINCT CAST( NULL AS SIGNED ) - COUNT( * ) * - MAX( - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT CAST ( NULL AS INTEGER ) - COUNT ( * ) * - MAX ( - 82 )
----
NULL

query II rowsort
SELECT + 15, ( - - 97 ) * 11 + - 2 AS col2
----
15
1065

query I rowsort
SELECT + 81 - + - 87 * - 33 * 32 * - 59
----
5420529

query I rowsort
SELECT ALL 51 * + 7
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + + 91 * + 9 * + ( - 98 ) - - + 22 - COUNT( * ) + - 28 * - 69 * - + 68 AS col0
----
-211617

skipif mysql # not compatible
query I rowsort label-4393
SELECT + + 91 * + 9 * + ( - 98 ) - - + 22 - COUNT ( * ) + - 28 * - 69 * - + 68 AS col0
----
-211617

query II rowsort
SELECT ALL - - 34, + 73 + - - 43 AS col2
----
34
116

query II rowsort
SELECT DISTINCT - 64, 25 AS col2
----
-64
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4396
SELECT - 17 DIV - 65 * + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4396
SELECT - 17 / - 65 * + 52 AS col0
----
0

query I rowsort
SELECT + 39 * - 20 + - 79 * - - 45
----
-4335

query II rowsort
SELECT ALL - + 0 AS col1, - 95
----
0
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4399
SELECT - 38 AS col1, 23 - ( - 13 ) + - 64 * - 20 - + COUNT( ALL + 0 ) DIV 17 col2
----
-38
1316

skipif mysql # not compatible
query II rowsort label-4399
SELECT - 38 AS col1, 23 - ( - 13 ) + - 64 * - 20 - + COUNT ( ALL + 0 ) / 17 col2
----
-38
1316

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT 49 * + + MAX( ALL ( 65 ) )
----
3185

skipif mysql # not compatible
query I rowsort label-4400
SELECT 49 * + + MAX ( ALL ( 65 ) )
----
3185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4401
SELECT CAST( NULL AS SIGNED ) + + + 93 / - CASE - 65 WHEN - + 46 * 15 THEN + - 42 * - - 94 WHEN + - MIN( ALL 24 ) THEN NULL END / 62 + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4401
SELECT CAST ( NULL AS INTEGER ) + + + 93 / - CASE - 65 WHEN - + 46 * 15 THEN + - 42 * - - 94 WHEN + - MIN ( ALL 24 ) THEN NULL END / 62 + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT DISTINCT - ( - - 24 ) + 1 + + + COUNT( 84 ) + - + 84 + - 72 - - 65 + + 35 * 14 * - COUNT( * ) * - + 37 + + 28
----
18045

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT - ( - - 24 ) + 1 + + + COUNT ( 84 ) + - + 84 + - 72 - - 65 + + 35 * 14 * - COUNT ( * ) * - + 37 + + 28
----
18045

query II rowsort
SELECT ALL - - 64, - 92 AS col0
----
64
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT DISTINCT - 41 + - + 37 DIV 82 * + 44
----
-41

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT - 41 + - + 37 / 82 * + 44
----
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4405
SELECT CAST( NULL AS DECIMAL ) + - 73 + - ( + 38 ) - + 80 * - 46 * - - 43 * + 85 * 85 / + 9 + COUNT( * ) * - + 12 * - 99 + 92 AS col1, + 12 AS col0
----
NULL
12

skipif mysql # not compatible
query II rowsort label-4405
SELECT CAST ( NULL AS REAL ) + - 73 + - ( + 38 ) - + 80 * - 46 * - - 43 * + 85 * 85 / + 9 + COUNT ( * ) * - + 12 * - 99 + 92 AS col1, + 12 AS col0
----
NULL
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT COUNT( * ) * + 23 col2
----
23

skipif mysql # not compatible
query I rowsort label-4406
SELECT COUNT ( * ) * + 23 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT MAX( - + 23 ) * COUNT( * ) * - COUNT( * ) * - - MIN( ALL 57 ) - + COUNT( * ) AS col1
----
1310

skipif mysql # not compatible
query I rowsort label-4407
SELECT MAX ( - + 23 ) * COUNT ( * ) * - COUNT ( * ) * - - MIN ( ALL 57 ) - + COUNT ( * ) AS col1
----
1310

query I rowsort
SELECT 44 + + 20
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4409
SELECT ALL - 51 * COUNT( * ) DIV + 19
----
-2

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - 51 * COUNT ( * ) / + 19
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4410
SELECT 54 + - 42 * - 10 * CASE WHEN NOT 98 IS NULL THEN COUNT( * ) DIV - CAST( - SUM( DISTINCT + 96 ) AS SIGNED ) + + + 95 ELSE - - 29 * - 55 * 45 DIV - + 84 + + 0 DIV AVG ( DISTINCT - 34 ) END AS col0
----
39954

skipif mysql # not compatible
query I rowsort label-4410
SELECT 54 + - 42 * - 10 * CASE WHEN NOT 98 IS NULL THEN COUNT ( * ) / - CAST ( - SUM ( DISTINCT + 96 ) AS INTEGER ) + + + 95 ELSE - - 29 * - 55 * 45 / - + 84 + + 0 / AVG ( DISTINCT - 34 ) END AS col0
----
39954

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL 32 * MAX( ALL + 21 ) * + - 14 * + + 38 * + 34 AS col2
----
-12155136

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL 32 * MAX ( ALL + 21 ) * + - 14 * + + 38 * + 34 AS col2
----
-12155136

query I rowsort
SELECT 63 + + 17 * - 23 col2
----
-328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT 70 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4413
SELECT 70 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 44 + - 36 AS col0
----
8

query I rowsort
SELECT DISTINCT - 34 * - + 92 * + 5
----
15640

query I rowsort
SELECT 53 + + 21
----
74

query I rowsort
SELECT 89 + + - 33
----
56

query I rowsort
SELECT DISTINCT - 43 * - 15 * - - 46 AS col2
----
29670

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4419
SELECT ALL 5 DIV COUNT( * ) DIV + 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL 5 / COUNT ( * ) / + 60 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4420
SELECT + - 10 * + 34 + + - 24 + + 71 * ( CAST( - AVG ( - 50 ) AS DECIMAL ) ) * + ( + ( CAST( NULL AS SIGNED ) ) ) / - - 27 * - - ( AVG ( ALL 75 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT + - 10 * + 34 + + - 24 + + 71 * ( CAST ( - AVG ( - 50 ) AS REAL ) ) * + ( + ( CAST ( NULL AS INTEGER ) ) ) / - - 27 * - - ( AVG ( ALL 75 ) )
----
NULL

query I rowsort
SELECT + 79 + + 62 AS col1
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-4422
SELECT ALL 62 DIV - 3 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL 62 / - 3 AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT + 37 * + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT + 37 * + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4424
SELECT ALL + CAST( 11 AS SIGNED ) AS col2, + 2 AS col0
----
11
2

skipif mysql # not compatible
query II rowsort label-4424
SELECT ALL + CAST ( 11 AS INTEGER ) AS col2, + 2 AS col0
----
11
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4425
SELECT ALL - 14 * CAST( NULL AS DECIMAL ) + - COUNT( * ) + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL - 14 * CAST ( NULL AS REAL ) + - COUNT ( * ) + 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT ALL + 79 * + COUNT( * ) + - 54 col0
----
25

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL + 79 * + COUNT ( * ) + - 54 col0
----
25

query I rowsort
SELECT COALESCE ( - 80, - 3, + + 36 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT ALL - COUNT( * ) * - 37 + + + 49 * - SUM( DISTINCT 40 ) + + - COUNT( * ) * + COUNT( * ) AS col0
----
-1924

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - COUNT ( * ) * - 37 + + + 49 * - SUM ( DISTINCT 40 ) + + - COUNT ( * ) * + COUNT ( * ) AS col0
----
-1924

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT DISTINCT + COALESCE ( - - 19, COUNT( * ), 95 + + ( - 59 ) ) * + - 87 + - + 7 - - 70 + 39 col2
----
-1551

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT + COALESCE ( - - 19, COUNT ( * ), 95 + + ( - 59 ) ) * + - 87 + - + 7 - - 70 + 39 col2
----
-1551

onlyif mysql # aggregate syntax: 
query II rowsort label-4430
SELECT ALL + MAX( + 3 ) AS col2, 92 * - - 47
----
3
4324

skipif mysql # not compatible
query II rowsort label-4430
SELECT ALL + MAX ( + 3 ) AS col2, 92 * - - 47
----
3
4324

query I rowsort
SELECT 59 * 43 + - + 57
----
2480

query I rowsort
SELECT + + 48 * + 78 * 98
----
366912

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT COUNT( + + 63 )
----
1

skipif mysql # not compatible
query I rowsort label-4433
SELECT COUNT ( + + 63 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - 8 * - COUNT( DISTINCT - 62 ) + - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4434
SELECT - 8 * - COUNT ( DISTINCT - 62 ) + - COUNT ( * ) AS col0
----
7

query I rowsort
SELECT - 4 * 36
----
-144

query I rowsort
SELECT + NULLIF ( + - 45, - - 25 - + 48 ) AS col2
----
-45

query I rowsort
SELECT - 22 + + - 63 + 76 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT + CASE CASE - 84 WHEN + 29 * + - 9 * + COUNT( * ) THEN 70 END WHEN - 3 THEN + - 17 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4438
SELECT + CASE CASE - 84 WHEN + 29 * + - 9 * + COUNT ( * ) THEN 70 END WHEN - 3 THEN + - 17 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4439
SELECT ALL + CASE + 21 WHEN - 16 * COUNT( * ) + - CAST( NULL AS SIGNED ) - + ( + 36 ) * + 67 + + 60 THEN NULL WHEN 47 THEN - - ( + 31 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL + CASE + 21 WHEN - 16 * COUNT ( * ) + - CAST ( NULL AS INTEGER ) - + ( + 36 ) * + 67 + + 60 THEN NULL WHEN 47 THEN - - ( + 31 ) END AS col1
----
NULL

query I rowsort
SELECT - 45 * ( - + 48 ) + + 27 AS col2
----
2187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4441
SELECT + 68 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT + 68 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT ALL SUM( 73 ) / COUNT( * ) * + 88 + + + COUNT( * ) * + CASE + COUNT( * ) WHEN 93 / + - 44 THEN - 40 * 19 + + - 37 / - 46 ELSE NULL END / + COUNT( ALL + ( - 34 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL SUM ( 73 ) / COUNT ( * ) * + 88 + + + COUNT ( * ) * + CASE + COUNT ( * ) WHEN 93 / + - 44 THEN - 40 * 19 + + - 37 / - 46 ELSE NULL END / + COUNT ( ALL + ( - 34 ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 1 AS col2, 24 AS col2
----
1
24

query I rowsort
SELECT ALL NULLIF ( + + 29, + 10 / + 23 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT - COUNT( * ) * + + 81 * + COUNT( * ) * - 15
----
1215

skipif mysql # not compatible
query I rowsort label-4445
SELECT - COUNT ( * ) * + + 81 * + COUNT ( * ) * - 15
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT NULLIF ( + ( + 62 ), + - 76 + COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT NULLIF ( + ( + 62 ), + - 76 + COUNT ( * ) )
----
62

query I rowsort
SELECT - 79 * ( - ( + - 34 ) ) AS col1
----
-2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4448
SELECT ALL NULLIF ( - + MIN( - CAST( NULL AS SIGNED ) ), - - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL NULLIF ( - + MIN ( - CAST ( NULL AS INTEGER ) ), - - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL + COALESCE ( 94, - COUNT( * ) )
----
94

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL + COALESCE ( 94, - COUNT ( * ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT - COUNT( DISTINCT + 19 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4450
SELECT - COUNT ( DISTINCT + 19 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4451
SELECT - - 64 * - - COUNT( ALL 83 ) * + 54 * + CASE - + 48 WHEN + - 98 * + 11 + + + 81 THEN - - 16 WHEN 3 THEN NULL END - + 19 * + AVG ( - CASE + 79 WHEN 69 THEN - - 56 * + - 66 END ) + 97 + - + COUNT( * ) * + 59, 29 - + - CASE COALESCE ( - + 18, + CASE + NULLIF ( + ( - 47 ), CAST( NULL AS SIGNED ) ) WHEN - ( - 98 ) + + 94 + + COUNT( * ) + + 20 + - 92 THEN NULL WHEN 71 THEN NULL WHEN - CASE - 21 WHEN - CAST( NULL AS SIGNED ) THEN + 32 * + - 99 * + 52 - - + CAST( NULL AS SIGNED ) + 71 + CAST( 33 AS SIGNED ) WHEN 45 THEN NULL END + + COUNT( * ) * - NULLIF ( - 54 + 23, 50 ) THEN NULL ELSE 60 END / + 98 ) WHEN - 78 * + 88 THEN - 73 + CASE 76 - - COUNT( * ) WHEN + 7 + - 45 THEN 54 / 32 WHEN 96 * - 33 THEN NULL END * 26 WHEN + 74 THEN - 54 + 69 / + NULLIF ( 78, 50 + - 16 ) WHEN + CASE ( + 34 ) WHEN - CAST( NULL AS SIGNED ) + - 21 * - 88 THEN NULL ELSE ( 19 ) * - SUM( - 36 ) END THEN NULL END + 44
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4451
SELECT - - 64 * - - COUNT ( ALL 83 ) * + 54 * + CASE - + 48 WHEN + - 98 * + 11 + + + 81 THEN - - 16 WHEN 3 THEN NULL END - + 19 * + AVG ( - CASE + 79 WHEN 69 THEN - - 56 * + - 66 END ) + 97 + - + COUNT ( * ) * + 59, 29 - + - CASE COALESCE ( - + 18, + CASE + NULLIF ( + ( - 47 ), CAST ( NULL AS INTEGER ) ) WHEN - ( - 98 ) + + 94 + + COUNT ( * ) + + 20 + - 92 THEN NULL WHEN 71 THEN NULL WHEN - CASE - 21 WHEN - CAST ( NULL AS INTEGER ) THEN + 32 * + - 99 * + 52 - - + CAST ( NULL AS INTEGER ) + 71 + CAST ( 33 AS INTEGER ) WHEN 45 THEN NULL END + + COUNT ( * ) * - NULLIF ( - 54 + 23, 50 ) THEN NULL ELSE 60 END / + 98 ) WHEN - 78 * + 88 THEN - 73 + CASE 76 - - COUNT ( * ) WHEN + 7 + - 45 THEN 54 / 32 WHEN 96 * - 33 THEN NULL END * 26 WHEN + 74 THEN - 54 + 69 / + NULLIF ( 78, 50 + - 16 ) WHEN + CASE ( + 34 ) WHEN - CAST ( NULL AS INTEGER ) + - 21 * - 88 THEN NULL ELSE ( 19 ) * - SUM ( - 36 ) END THEN NULL END + 44
----
NULL
NULL

query I rowsort
SELECT - + 95 - + 71 * - 78 AS col2
----
5443

query I rowsort
SELECT - - 20 + - 34 - 68
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT DISTINCT - + COUNT( * ) + - 34
----
-35

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT - + COUNT ( * ) + - 34
----
-35

query I rowsort
SELECT - + 45 + 42 - + + 83
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-4456
SELECT + COUNT( * ) AS col2, CASE - 18 WHEN 68 THEN + 55 ELSE - CASE + 70 WHEN + 40 + - 94 THEN COUNT( * ) + + - 54 WHEN + 94 THEN + 26 * 3 END END + - - 56 + + 67 col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4456
SELECT + COUNT ( * ) AS col2, CASE - 18 WHEN 68 THEN + 55 ELSE - CASE + 70 WHEN + 40 + - 94 THEN COUNT ( * ) + + - 54 WHEN + 94 THEN + 26 * 3 END END + - - 56 + + 67 col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4457
SELECT + - 1 AS col2, - 75 + - COUNT( * ) AS col1
----
-1
-76

skipif mysql # not compatible
query II rowsort label-4457
SELECT + - 1 AS col2, - 75 + - COUNT ( * ) AS col1
----
-1
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT CASE + CAST( 94 AS SIGNED ) WHEN - 80 * + + 44 + + 55 THEN NULL WHEN - 48 THEN - + 52 * - 55 ELSE + + 7 END
----
7

skipif mysql # not compatible
query I rowsort label-4458
SELECT CASE + CAST ( 94 AS INTEGER ) WHEN - 80 * + + 44 + + 55 THEN NULL WHEN - 48 THEN - + 52 * - 55 ELSE + + 7 END
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4459
SELECT CASE + CAST( - + 50 AS SIGNED ) WHEN - 71 + NULLIF ( + + 39, + 56 + - 40 + 59 ) / + 59 THEN + - 91 / + ( - + 88 ) + + COALESCE ( 90, + 90 ) * - + 10 * - 76 WHEN - + 87 THEN + 87 ELSE NULL END AS col1, 20
----
NULL
20

skipif mysql # not compatible
query II rowsort label-4459
SELECT CASE + CAST ( - + 50 AS INTEGER ) WHEN - 71 + NULLIF ( + + 39, + 56 + - 40 + 59 ) / + 59 THEN + - 91 / + ( - + 88 ) + + COALESCE ( 90, + 90 ) * - + 10 * - 76 WHEN - + 87 THEN + 87 ELSE NULL END AS col1, 20
----
NULL
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4460
SELECT - 41 DIV + 11
----
-3

skipif mysql # not compatible
query I rowsort label-4460
SELECT - 41 / + 11
----
-3

query I rowsort
SELECT - - 18 + - - 2 + + + 8
----
28

query I rowsort
SELECT + 24 * + + 22
----
528

query I rowsort
SELECT + 29 * - 39
----
-1131

query I rowsort
SELECT ALL - 30 * - - 0 - - - 95
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT + NULLIF ( + 11, 3 + 59 * - COALESCE ( + 91, + - COUNT( * ) * - 51 ) ) col0
----
11

skipif mysql # not compatible
query I rowsort label-4465
SELECT + NULLIF ( + 11, 3 + 59 * - COALESCE ( + 91, + - COUNT ( * ) * - 51 ) ) col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL + COUNT( ALL - ( + + 42 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL + COUNT ( ALL - ( + + 42 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4467
SELECT + CASE - 41 WHEN - + 86 THEN - + COUNT( * ) WHEN - 78 / ( + CASE + 99 WHEN 58 THEN 34 ELSE + 98 * - CAST( NULL AS SIGNED ) / - + 84 END ) + - + 82 THEN + ( + 97 ) + + 49 * - 75 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT + CASE - 41 WHEN - + 86 THEN - + COUNT ( * ) WHEN - 78 / ( + CASE + 99 WHEN 58 THEN 34 ELSE + 98 * - CAST ( NULL AS INTEGER ) / - + 84 END ) + - + 82 THEN + ( + 97 ) + + 49 * - 75 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT ALL + 53 * + 56 - - ( + + 64 ) + 35 + - 31 - - + 56 + - 58 DIV - 71 * + 54
----
3092

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL + 53 * + 56 - - ( + + 64 ) + 35 + - 31 - - + 56 + - 58 / - 71 * + 54
----
3092

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT CASE + COALESCE ( 57, 9 ) WHEN - + 40 + COUNT( * ) * - + 60 + ( + + ( - 56 ) ) THEN + - 88 * - + 82 + - 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT CASE + COALESCE ( 57, 9 ) WHEN - + 40 + COUNT ( * ) * - + 60 + ( + + ( - 56 ) ) THEN + - 88 * - + 82 + - 31 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4470
SELECT CASE + 64 WHEN - + 34 * + - 4 * - 82 THEN + 77 * 26 + - - 61 * + 88 ELSE + MIN( + 66 ) END, - 86 + - + 12 * 53 * + - 82 AS col1
----
66
52066

skipif mysql # not compatible
query II rowsort label-4470
SELECT CASE + 64 WHEN - + 34 * + - 4 * - 82 THEN + 77 * 26 + - - 61 * + 88 ELSE + MIN ( + 66 ) END, - 86 + - + 12 * 53 * + - 82 AS col1
----
66
52066

query I rowsort
SELECT - 50 + - - 66
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT CASE + 37 WHEN 99 + + - COUNT( * ) * 33 THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT CASE + 37 WHEN 99 + + - COUNT ( * ) * 33 THEN - + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT + COALESCE ( - 64, + MIN( 29 ) ) * MIN( 44 ) DIV NULLIF ( - 56, 18 ) * - 82 + - 49 - + COUNT( * ) DIV - + 58
----
-4149

skipif mysql # not compatible
query I rowsort label-4473
SELECT + COALESCE ( - 64, + MIN ( 29 ) ) * MIN ( 44 ) / NULLIF ( - 56, 18 ) * - 82 + - 49 - + COUNT ( * ) / - + 58
----
-4149

query I rowsort
SELECT + 3 + + 32 + 75
----
110

query II rowsort
SELECT - 16 AS col1, + 14 * 50 AS col1
----
-16
700

onlyif mysql # aggregate syntax: 
query II rowsort label-4476
SELECT DISTINCT COUNT( * ) * + 52, 78 AS col1
----
52
78

skipif mysql # not compatible
query II rowsort label-4476
SELECT DISTINCT COUNT ( * ) * + 52, 78 AS col1
----
52
78

query I rowsort
SELECT DISTINCT 20 + - + 73 + + 80 AS col2
----
27

query I rowsort
SELECT + 61 + - 15
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4479
SELECT - 0 + CAST( + CAST( 7 AS SIGNED ) AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-4479
SELECT - 0 + CAST ( + CAST ( 7 AS INTEGER ) AS INTEGER )
----
7

query II rowsort
SELECT 27, + 98 AS col2
----
27
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL COUNT( * ) * 27 + 15 * - 46 * - - 9 AS col2
----
-6183

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL COUNT ( * ) * 27 + 15 * - 46 * - - 9 AS col2
----
-6183

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT 47 + + + SUM( DISTINCT + 61 ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-4482
SELECT 47 + + + SUM ( DISTINCT + 61 ) AS col1
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4483
SELECT 37 + - 26 + 56 DIV + COALESCE ( + - 67, - + 71, - - 58 * + 41 ) * 85 * - COUNT( * ) + + 97 DIV - 1 + - 4
----
-90

skipif mysql # not compatible
query I rowsort label-4483
SELECT 37 + - 26 + 56 / + COALESCE ( + - 67, - + 71, - - 58 * + 41 ) * 85 * - COUNT ( * ) + + 97 / - 1 + - 4
----
-90

query I rowsort
SELECT ALL + 52 * 90 + + 80
----
4760

onlyif mysql # DIV for integer division: 
query I rowsort label-4485
SELECT ALL ( 35 ) + - + 20 * + 2 DIV + 55 * - - 87 + - 47 * - - 85
----
-3960

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL ( 35 ) + - + 20 * + 2 / + 55 * - - 87 + - 47 * - - 85
----
-3960

query I rowsort
SELECT DISTINCT 29 + + 28 AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4487
SELECT - - 47 AS col1, - 26 + 73 + 53 + - CASE 63 WHEN + + CAST( NULL AS SIGNED ) THEN - COUNT( * ) + + CASE - - 31 WHEN 63 THEN NULL WHEN - - COALESCE ( CASE + 86 WHEN + 59 THEN 23 END, + 0 * + 92 + - + CASE - - 84 WHEN - 92 THEN + 33 WHEN - 72 * - 73 THEN NULL END + + - 61 ) * - - 15 * + COUNT( * ) + 60 THEN - 2 WHEN - 86 THEN - 41 + + + COUNT( * ) - 12 ELSE NULL END * - - COUNT( * ) WHEN 89 + - 23 / + + 68 THEN + + 85 END + 27 * + 32
----
47
NULL

skipif mysql # not compatible
query II rowsort label-4487
SELECT - - 47 AS col1, - 26 + 73 + 53 + - CASE 63 WHEN + + CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) + + CASE - - 31 WHEN 63 THEN NULL WHEN - - COALESCE ( CASE + 86 WHEN + 59 THEN 23 END, + 0 * + 92 + - + CASE - - 84 WHEN - 92 THEN + 33 WHEN - 72 * - 73 THEN NULL END + + - 61 ) * - - 15 * + COUNT ( * ) + 60 THEN - 2 WHEN - 86 THEN - 41 + + + COUNT ( * ) - 12 ELSE NULL END * - - COUNT ( * ) WHEN 89 + - 23 / + + 68 THEN + + 85 END + 27 * + 32
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT + 77 + - + MIN( + 57 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4488
SELECT + 77 + - + MIN ( + 57 ) AS col0
----
20

query II rowsort
SELECT + + 93 AS col0, 76
----
93
76

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4490
SELECT ALL - 36 AS col2, + ( + - CAST( NULL AS DECIMAL ) )
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-4490
SELECT ALL - 36 AS col2, + ( + - CAST ( NULL AS REAL ) )
----
-36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT - NULLIF ( - ( + 4 ), - 75 ) + - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-4491
SELECT - NULLIF ( - ( + 4 ), - 75 ) + - COUNT ( * )
----
3

query I rowsort
SELECT - 61 * - 61 + - 3 * - - 64 + - 0
----
3529

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT MAX( ALL + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4493
SELECT MAX ( ALL + 16 )
----
16

query II rowsort
SELECT ALL - 75 col1, 59
----
-75
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL + 76 * - 23 * - SUM( - 16 )
----
-27968

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL + 76 * - 23 * - SUM ( - 16 )
----
-27968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4496
SELECT - 0 DIV 85 * - MAX( 36 ) + + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4496
SELECT - 0 / 85 * - MAX ( 36 ) + + + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT + 46 * + + 80
----
3680

query II rowsort
SELECT ALL - ( + 12 ), - 19 AS col1
----
-12
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT + COUNT( * ) * 76 + - 75 + - 73 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4499
SELECT + COUNT ( * ) * 76 + - 75 + - 73 AS col1
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT ALL 74 DIV - + 36 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL 74 / - + 36 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL - MIN( ALL - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL - MIN ( ALL - 14 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT 73 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-4502
SELECT 73 / 90
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT 44 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT 44 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4504
SELECT 79 + + 37 AS col0, - NULLIF ( + CAST( NULL AS SIGNED ), 86 * + + 16 ) AS col0
----
116
NULL

skipif mysql # not compatible
query II rowsort label-4504
SELECT 79 + + 37 AS col0, - NULLIF ( + CAST ( NULL AS INTEGER ), 86 * + + 16 ) AS col0
----
116
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4505
SELECT ALL 15 * + COALESCE ( - CAST( NULL AS SIGNED ), 69 + + 38 DIV - 44, + - 2 )
----
1035

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL 15 * + COALESCE ( - CAST ( NULL AS INTEGER ), 69 + + 38 / - 44, + - 2 )
----
1035

query II rowsort
SELECT ALL 73 * - 26, 51 col0
----
-1898
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4507
SELECT ALL - CAST( NULL AS DECIMAL ) + ( + - 54 ) * - - ( - 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL - CAST ( NULL AS REAL ) + ( + - 54 ) * - - ( - 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT DISTINCT + 48 + 61 * + COUNT( * ) * + SUM( DISTINCT + 3 ) * ( + 59 ) + - 86 * 14 * + MAX( + 92 ) AS col2
----
-99923

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT + 48 + 61 * + COUNT ( * ) * + SUM ( DISTINCT + 3 ) * ( + 59 ) + - 86 * 14 * + MAX ( + 92 ) AS col2
----
-99923

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT DISTINCT COALESCE ( + 87, + 47 - 52, + + 18 * + 62 + - 76 + + COUNT( * ) ) + - 44 col2
----
43

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT COALESCE ( + 87, + 47 - 52, + + 18 * + 62 + - 76 + + COUNT ( * ) ) + - 44 col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4510
SELECT ALL 61 + + COUNT( * ), ( + - CAST( - - 55 AS SIGNED ) ) col2
----
62
-55

skipif mysql # not compatible
query II rowsort label-4510
SELECT ALL 61 + + COUNT ( * ), ( + - CAST ( - - 55 AS INTEGER ) ) col2
----
62
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT ( - 60 ) * 37 * + COUNT( + - 61 )
----
-2220

skipif mysql # not compatible
query I rowsort label-4511
SELECT ( - 60 ) * 37 * + COUNT ( + - 61 )
----
-2220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4512
SELECT MAX( ALL + - 93 ) * CAST( ( 74 ) AS SIGNED ) AS col1
----
-6882

skipif mysql # not compatible
query I rowsort label-4512
SELECT MAX ( ALL + - 93 ) * CAST ( ( 74 ) AS INTEGER ) AS col1
----
-6882

query I rowsort
SELECT ALL 29 + - 0 + + 56 + + + 8 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT DISTINCT COUNT( * ) + - - 78 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT COUNT ( * ) + - - 78 AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4515
SELECT - CAST( + 71 AS SIGNED ) AS col1, + 96 AS col1
----
-71
96

skipif mysql # not compatible
query II rowsort label-4515
SELECT - CAST ( + 71 AS INTEGER ) AS col1, + 96 AS col1
----
-71
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4516
SELECT CASE - ( CASE 45 WHEN - 70 THEN 1 WHEN ( - 5 ) * 93 + + 40 THEN NULL END ) WHEN + CAST( - 28 AS SIGNED ) THEN NULL ELSE + 84 END DIV + 26
----
3

skipif mysql # not compatible
query I rowsort label-4516
SELECT CASE - ( CASE 45 WHEN - 70 THEN 1 WHEN ( - 5 ) * 93 + + 40 THEN NULL END ) WHEN + CAST ( - 28 AS INTEGER ) THEN NULL ELSE + 84 END / + 26
----
3

query I rowsort
SELECT ALL - 92 + 56
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL - COUNT( + 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - COUNT ( + 54 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT DISTINCT + COUNT( DISTINCT 79 ) * - - ( - - 10 ) * - - 58 * - 70
----
-40600

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT + COUNT ( DISTINCT 79 ) * - - ( - - 10 ) * - - 58 * - 70
----
-40600

query I rowsort
SELECT ALL 45 * + + 60 AS col2
----
2700

query I rowsort
SELECT 64 + - 89
----
-25

query II rowsort
SELECT + 84 * - - 73 * + 36 AS col1, 10 + - + 38
----
220752
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4523
SELECT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1, 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-4523
SELECT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, 45
----
NULL
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4524
SELECT COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4524
SELECT COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
2

query I rowsort
SELECT ( 9 ) * + ( 66 ) AS col0
----
594

onlyif mysql # DIV for integer division: 
query I rowsort label-4526
SELECT + ( 0 ) DIV + - 15
----
0

skipif mysql # not compatible
query I rowsort label-4526
SELECT + ( 0 ) / + - 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT 33 * - - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4527
SELECT 33 * - - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4528
SELECT 48 - - ( + 88 ) + - 67 AS col0, - ( 32 ) * COUNT( * ) AS col1
----
69
-32

skipif mysql # not compatible
query II rowsort label-4528
SELECT 48 - - ( + 88 ) + - 67 AS col0, - ( 32 ) * COUNT ( * ) AS col1
----
69
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT COUNT( * ) + + 85 + + ( - 75 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4529
SELECT COUNT ( * ) + + 85 + + ( - 75 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT + NULLIF ( + + ( 19 ), - - MIN( + - 12 ) )
----
19

skipif mysql # not compatible
query I rowsort label-4530
SELECT + NULLIF ( + + ( 19 ), - - MIN ( + - 12 ) )
----
19

query I rowsort
SELECT 83 - - 21 * + - 77
----
-1534

query I rowsort
SELECT 54 * - 34 AS col1
----
-1836

query II rowsort
SELECT DISTINCT + 31, - 48 AS col0
----
31
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4534
SELECT ALL NULLIF ( 35, - 0 + - 56 ) * 10 + + 2 + + + NULLIF ( - 90, + SUM( DISTINCT - 78 ) + 22 + - 28 + + + 56 - - 39 + + ( ( 52 ) ) * + 61 * - CAST( + MIN( - 84 ) AS SIGNED ) ) + COUNT( * ) AS col2
----
263

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL NULLIF ( 35, - 0 + - 56 ) * 10 + + 2 + + + NULLIF ( - 90, + SUM ( DISTINCT - 78 ) + 22 + - 28 + + + 56 - - 39 + + ( ( 52 ) ) * + 61 * - CAST ( + MIN ( - 84 ) AS INTEGER ) ) + COUNT ( * ) AS col2
----
263

query I rowsort
SELECT - 73 * 4 AS col2
----
-292

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL - 98 + - COUNT( * ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - 98 + - COUNT ( * ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4537
SELECT DISTINCT - 89 + + 17 * - COUNT( * ), COALESCE ( + 3, - 45 + 15 ) * - + 80 AS col1
----
-106
-240

skipif mysql # not compatible
query II rowsort label-4537
SELECT DISTINCT - 89 + + 17 * - COUNT ( * ), COALESCE ( + 3, - 45 + 15 ) * - + 80 AS col1
----
-106
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL COUNT( DISTINCT - + 61 ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL COUNT ( DISTINCT - + 61 ) + + 76
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4539
SELECT + 71 AS col2, ( - 71 ) * + + 54 - + - SUM( - 69 ) - 18
----
71
-3921

skipif mysql # not compatible
query II rowsort label-4539
SELECT + 71 AS col2, ( - 71 ) * + + 54 - + - SUM ( - 69 ) - 18
----
71
-3921

query I rowsort
SELECT DISTINCT + COALESCE ( 99, + 12 )
----
99

query I rowsort
SELECT ALL - 71 + + + 23 - + 28 * 91 AS col1
----
-2596

onlyif mysql # aggregate syntax: 
query II rowsort label-4542
SELECT - 18, COUNT( * ) AS col0
----
-18
1

skipif mysql # not compatible
query II rowsort label-4542
SELECT - 18, COUNT ( * ) AS col0
----
-18
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4543
SELECT + - COALESCE ( + CAST( NULL AS SIGNED ), + 31 + + - 2 ) DIV 88 + - - 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4543
SELECT + - COALESCE ( + CAST ( NULL AS INTEGER ), + 31 + + - 2 ) / 88 + - - 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4544
SELECT - COUNT( * ) * COALESCE ( - 65, COUNT( * ) ) AS col1, - 1
----
65
-1

skipif mysql # not compatible
query II rowsort label-4544
SELECT - COUNT ( * ) * COALESCE ( - 65, COUNT ( * ) ) AS col1, - 1
----
65
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT - - CAST( + 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-4545
SELECT - - CAST ( + 9 AS INTEGER )
----
9

query II rowsort
SELECT ALL - 20 AS col0, - 40
----
-20
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4547
SELECT + COUNT( * ) + 24 * 70, COUNT( * ) + - COUNT( 21 ) AS col0
----
1681
0

skipif mysql # not compatible
query II rowsort label-4547
SELECT + COUNT ( * ) + 24 * 70, COUNT ( * ) + - COUNT ( 21 ) AS col0
----
1681
0

query I rowsort
SELECT ALL - + 90 - 81
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT + - 28 * - ( + - COUNT( * ) )
----
-28

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT + - 28 * - ( + - COUNT ( * ) )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4550
SELECT + 46 + + 7 + + COUNT( * ) + - 13 + - 5 * 39 DIV 85 * - 0 + + ( - MIN( ALL 44 ) ) DIV + 57
----
41

skipif mysql # not compatible
query I rowsort label-4550
SELECT + 46 + + 7 + + COUNT ( * ) + - 13 + - 5 * 39 / 85 * - 0 + + ( - MIN ( ALL 44 ) ) / + 57
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4551
SELECT - - CAST( - 3 AS SIGNED ) * + - 5 - + COALESCE ( COUNT( * ), - 21 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4551
SELECT - - CAST ( - 3 AS INTEGER ) * + - 5 - + COALESCE ( COUNT ( * ), - 21 ) AS col2
----
14

query I rowsort
SELECT + + 75 * - + 79
----
-5925

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL - + 78 * - + MIN( + 65 ) col2
----
5070

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL - + 78 * - + MIN ( + 65 ) col2
----
5070

onlyif mysql # aggregate syntax: 
query II rowsort label-4554
SELECT - + COUNT( * ) + - ( 29 ), 77 AS col1
----
-30
77

skipif mysql # not compatible
query II rowsort label-4554
SELECT - + COUNT ( * ) + - ( 29 ), 77 AS col1
----
-30
77

query II rowsort
SELECT 80, + 9 AS col0
----
80
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4556
SELECT - 21 * - COUNT( * ) - + 67 AS col0, 13 * + 55 * + 22 AS col0
----
-46
15730

skipif mysql # not compatible
query II rowsort label-4556
SELECT - 21 * - COUNT ( * ) - + 67 AS col0, 13 * + 55 * + 22 AS col0
----
-46
15730

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT + - ( - 40 ) + - COUNT( * ) + 91 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-4557
SELECT + - ( - 40 ) + - COUNT ( * ) + 91 AS col1
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT DISTINCT - 87 DIV - - NULLIF ( 23, 27 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT - 87 / - - NULLIF ( 23, 27 ) AS col1
----
-3

query I rowsort
SELECT ALL - NULLIF ( - 3, 84 * 11 + + 44 ) col0
----
3

query II rowsort
SELECT + - 48 * - + 21 - 23 - - + 23 AS col0, 74 - - 64
----
1008
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT + 62 + - + MAX( 31 ) + + 52
----
83

skipif mysql # not compatible
query I rowsort label-4561
SELECT + 62 + - + MAX ( 31 ) + + 52
----
83

query I rowsort
SELECT ALL + NULLIF ( + 18, - 72 ) AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT + 40 DIV - ( + 87 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4563
SELECT + 40 / - ( + 87 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL COUNT( * ) * CASE 37 WHEN - - 77 + - 78 THEN - COUNT( * ) * - NULLIF ( + 98, - 78 ) / ( - 74 ) - - ( + COALESCE ( - - 20, + 14, + 5, + 14 ) ) WHEN + - 47 THEN NULL ELSE NULL END * + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL COUNT ( * ) * CASE 37 WHEN - - 77 + - 78 THEN - COUNT ( * ) * - NULLIF ( + 98, - 78 ) / ( - 74 ) - - ( + COALESCE ( - - 20, + 14, + 5, + 14 ) ) WHEN + - 47 THEN NULL ELSE NULL END * + 75 AS col2
----
NULL

query I rowsort
SELECT + 51 + 58 * + - 98 AS col1
----
-5633

query II rowsort
SELECT ( + + 93 ), NULLIF ( 99, 57 ) * - - 4 + + 92 - 54 AS col1
----
93
434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4567
SELECT - 4 * + - CAST( NULL AS SIGNED ) + + COUNT( * ) * + ( ( + - CAST( NULL AS SIGNED ) ) ) / - 45 AS col2, CAST( - CASE + + 31 WHEN + CASE - + MIN( DISTINCT + 40 ) WHEN - 8 THEN + NULLIF ( 24, 83 + - 99 ) WHEN - ( 0 ) THEN NULL END THEN NULL WHEN + - 81 THEN + 45 END AS SIGNED ) * + COUNT( * ) * + + 49 / - ( - - 14 ) col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4567
SELECT - 4 * + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + ( ( + - CAST ( NULL AS INTEGER ) ) ) / - 45 AS col2, CAST ( - CASE + + 31 WHEN + CASE - + MIN ( DISTINCT + 40 ) WHEN - 8 THEN + NULLIF ( 24, 83 + - 99 ) WHEN - ( 0 ) THEN NULL END THEN NULL WHEN + - 81 THEN + 45 END AS INTEGER ) * + COUNT ( * ) * + + 49 / - ( - - 14 ) col0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT CAST( NULL AS SIGNED ) * - 85 + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT CAST ( NULL AS INTEGER ) * - 85 + 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4569
SELECT + 4 DIV 57, + COUNT( * ) + - 66 + - 25 AS col0
----
0
-90

skipif mysql # not compatible
query II rowsort label-4569
SELECT + 4 / 57, + COUNT ( * ) + - 66 + - 25 AS col0
----
0
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4570
SELECT - COUNT( * ) DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-4570
SELECT - COUNT ( * ) / 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ( MIN( DISTINCT + 82 ) ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4571
SELECT ( MIN ( DISTINCT + 82 ) ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL 41 * COUNT( * ) + - 17 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL 41 * COUNT ( * ) + - 17 AS col1
----
24

query I rowsort
SELECT + 97 + - 39 * - 21 * - + 67 * + - 1 * - - 22
----
1207303

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4574
SELECT DISTINCT 66 * 78 + - + ( + - MAX( DISTINCT - 7 ) ) + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT 66 * 78 + - + ( + - MAX ( DISTINCT - 7 ) ) + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL 78 * 49 + + + 58 AS col2
----
3880

query I rowsort
SELECT NULLIF ( - + 78, + - ( 11 ) )
----
-78

query I rowsort
SELECT - 20 + + + 45 AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4578
SELECT + CAST( + 58 AS SIGNED ), + 28 AS col0
----
58
28

skipif mysql # not compatible
query II rowsort label-4578
SELECT + CAST ( + 58 AS INTEGER ), + 28 AS col0
----
58
28

query I rowsort
SELECT DISTINCT 1 * + 51 - - + 94
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT DISTINCT - - 23 * + 1 - + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT - - 23 * + 1 - + COUNT ( * )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4581
SELECT - CASE - + 63 WHEN 78 + + ( - CASE - + 34 WHEN - - 7 + COUNT( * ) / - 71 THEN - COUNT( * ) * + 9 + + 69 + - 30 + - + 61 + + - 84 WHEN 40 / + 6 THEN 71 + - 58 + MIN( + - 31 ) ELSE NULL END ) * + - 18 THEN CAST( 73 AS SIGNED ) WHEN + + SUM( ALL + + 59 ) * 40 THEN NULL ELSE 68 + + + 32 - 32 END
----
-68

skipif mysql # not compatible
query I rowsort label-4581
SELECT - CASE - + 63 WHEN 78 + + ( - CASE - + 34 WHEN - - 7 + COUNT ( * ) / - 71 THEN - COUNT ( * ) * + 9 + + 69 + - 30 + - + 61 + + - 84 WHEN 40 / + 6 THEN 71 + - 58 + MIN ( + - 31 ) ELSE NULL END ) * + - 18 THEN CAST ( 73 AS INTEGER ) WHEN + + SUM ( ALL + + 59 ) * 40 THEN NULL ELSE 68 + + + 32 - 32 END
----
-68

query I rowsort
SELECT - 39 * - 98
----
3822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4583
SELECT - 52 * - COUNT( * ) * - CAST( - 2 AS SIGNED ) + - - COUNT( * ) * + 60 + COALESCE ( - 18, CAST( 42 AS SIGNED ), 68 ) DIV + CAST( 49 AS SIGNED ) * + - 85 * - MAX( + 7 )
----
164

skipif mysql # not compatible
query I rowsort label-4583
SELECT - 52 * - COUNT ( * ) * - CAST ( - 2 AS INTEGER ) + - - COUNT ( * ) * + 60 + COALESCE ( - 18, CAST ( 42 AS INTEGER ), 68 ) / + CAST ( 49 AS INTEGER ) * + - 85 * - MAX ( + 7 )
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4584
SELECT - 5 DIV 82 AS col1, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-4584
SELECT - 5 / 82 AS col1, COUNT ( * ) AS col0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT DISTINCT - 58 * - 83 * - ( COUNT( * ) ) * - 34 * 94
----
15385544

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT - 58 * - 83 * - ( COUNT ( * ) ) * - 34 * 94
----
15385544

query I rowsort
SELECT ALL + 89 * + 29
----
2581

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT COUNT( + + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-4587
SELECT COUNT ( + + 87 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT - + COALESCE ( 90, + COUNT( * ) ) + - 52 * - COUNT( * ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-4588
SELECT - + COALESCE ( 90, + COUNT ( * ) ) + - 52 * - COUNT ( * ) col0
----
-38

query I rowsort
SELECT ALL - + 8 + + + 59 + ( 71 )
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT - 10 + CAST( NULL AS SIGNED ) / AVG ( 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT - 10 + CAST ( NULL AS INTEGER ) / AVG ( 57 )
----
NULL

query I rowsort
SELECT - 28 * - - 78 AS col0
----
-2184

onlyif mysql # DIV for integer division: 
query II rowsort label-4592
SELECT DISTINCT 57 + - 26 DIV - 28 AS col1, 89 + 77 AS col0
----
57
166

skipif mysql # not compatible
query II rowsort label-4592
SELECT DISTINCT 57 + - 26 / - 28 AS col1, 89 + 77 AS col0
----
57
166

onlyif mysql # DIV for integer division: 
query I rowsort label-4593
SELECT ALL - ( - 31 ) + - 69 + + 26 - + 28 + + - 15 DIV + 76 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL - ( - 31 ) + - 69 + + 26 - + 28 + + - 15 / + 76 AS col1
----
-40

query I rowsort
SELECT 70 * - + 31
----
-2170

onlyif mysql # DIV for integer division: 
query II rowsort label-4595
SELECT DISTINCT - 98 + + 41 DIV + - 91 col2, ( - 36 ) AS col2
----
-98
-36

skipif mysql # not compatible
query II rowsort label-4595
SELECT DISTINCT - 98 + + 41 / + - 91 col2, ( - 36 ) AS col2
----
-98
-36

query I rowsort
SELECT DISTINCT + 89 + 6 col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL COUNT( * ) * 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL COUNT ( * ) * 61 AS col0
----
61

query II rowsort
SELECT 72 AS col0, 77
----
72
77

query I rowsort
SELECT ALL 56 + + 10
----
66

query I rowsort
SELECT ( - 26 ) * + 33 * - 82
----
70356

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT ( - 9 ) DIV - COALESCE ( + + 27, - 50 DIV + 47 ) * 85
----
0

skipif mysql # not compatible
query I rowsort label-4601
SELECT ( - 9 ) / - COALESCE ( + + 27, - 50 / + 47 ) * 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4602
SELECT 17 - CASE + - 99 WHEN + + CASE + 21 WHEN + COUNT( * ) * - - 37 THEN NULL WHEN 33 THEN 16 - - 78 * + COUNT( * ) END + + 38 * - - COUNT( * ) THEN - 59 ELSE CASE + - 4 WHEN - + CAST( + SUM( ALL 65 ) AS SIGNED ) THEN 99 WHEN + - 14 THEN NULL ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT 17 - CASE + - 99 WHEN + + CASE + 21 WHEN + COUNT ( * ) * - - 37 THEN NULL WHEN 33 THEN 16 - - 78 * + COUNT ( * ) END + + 38 * - - COUNT ( * ) THEN - 59 ELSE CASE + - 4 WHEN - + CAST ( + SUM ( ALL 65 ) AS INTEGER ) THEN 99 WHEN + - 14 THEN NULL ELSE NULL END END AS col2
----
NULL

query I rowsort
SELECT ALL 2 - ( ( - 64 ) ) * + 62
----
3970

query I rowsort
SELECT 94 - + - 18 - 76 - - 8 * 94
----
788

query I rowsort
SELECT DISTINCT 14 * + - COALESCE ( + 95, + 96 )
----
-1330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4606
SELECT ALL CASE - + 29 WHEN - COUNT( * ) * - - 97 * + CAST( NULL AS DECIMAL ) + + NULLIF ( + 13, - 89 ) + - 94 + 12 THEN - 87 / - 90 * 71 * 57 + + 79 / 63 * + 35 / - 45 ELSE + 76 + NULLIF ( - CAST( NULL AS SIGNED ), + - 64 * - 73 + - 92 ) END / COUNT( * ) + 93 - - CAST( NULL AS SIGNED ) + - 84 * - 97 + + 59 * - - 59 * 96 * 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL CASE - + 29 WHEN - COUNT ( * ) * - - 97 * + CAST ( NULL AS REAL ) + + NULLIF ( + 13, - 89 ) + - 94 + 12 THEN - 87 / - 90 * 71 * 57 + + 79 / 63 * + 35 / - 45 ELSE + 76 + NULLIF ( - CAST ( NULL AS INTEGER ), + - 64 * - 73 + - 92 ) END / COUNT ( * ) + 93 - - CAST ( NULL AS INTEGER ) + - 84 * - 97 + + 59 * - - 59 * 96 * 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL - CASE 31 WHEN - 17 + 85 THEN + 28 + + COUNT( DISTINCT + 37 ) * + 14 WHEN 86 * 98 THEN 58 + - 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL - CASE 31 WHEN - 17 + 85 THEN + 28 + + COUNT ( DISTINCT + 37 ) * + 14 WHEN 86 * 98 THEN 58 + - 21 END
----
NULL

query I rowsort
SELECT ( 15 ) + 11 * + 29 col2
----
334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4609
SELECT 33 * CAST( + 56 * 47 AS SIGNED ) AS col2
----
86856

skipif mysql # not compatible
query I rowsort label-4609
SELECT 33 * CAST ( + 56 * 47 AS INTEGER ) AS col2
----
86856

query I rowsort
SELECT 9 * 67 + + 80
----
683

query I rowsort
SELECT 39 - 37 AS col2
----
2

query I rowsort
SELECT ALL + ( 95 ) * + 2
----
190

query I rowsort
SELECT COALESCE ( 84, 20 ) + 82 col0
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT ALL + CAST( NULL AS SIGNED ) * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL + CAST ( NULL AS INTEGER ) * 36
----
NULL

query I rowsort
SELECT 38 + + 23
----
61

query I rowsort
SELECT DISTINCT NULLIF ( + 88, 48 + 10 * 15 ) * - 91 AS col0
----
-8008

query I rowsort
SELECT DISTINCT 94 + 1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4618
SELECT 54 DIV - 16
----
-3

skipif mysql # not compatible
query I rowsort label-4618
SELECT 54 / - 16
----
-3

query I rowsort
SELECT DISTINCT + ( 10 ) + + 88 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL - 47 + - MIN( - 78 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL - 47 + - MIN ( - 78 ) AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4621
SELECT CAST( NULL AS SIGNED ) * COUNT( ALL + 34 / 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT CAST ( NULL AS INTEGER ) * COUNT ( ALL + 34 / 93 )
----
NULL

query I rowsort
SELECT 73 + 66 AS col0
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4623
SELECT ALL + 74 DIV COALESCE ( COUNT( * ), - 98, 83, + COALESCE ( + MAX( + 49 ), 75 ) )
----
74

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + 74 / COALESCE ( COUNT ( * ), - 98, 83, + COALESCE ( + MAX ( + 49 ), 75 ) )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4624
SELECT 44 DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4624
SELECT 44 / 95 AS col1
----
0

query I rowsort
SELECT 83 + + 66 * ( 89 )
----
5957

query I rowsort
SELECT DISTINCT + 56 * 54
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT DISTINCT - 2 + - COUNT( * ) * MIN( 73 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT - 2 + - COUNT ( * ) * MIN ( 73 ) AS col0
----
-75

query I rowsort
SELECT ALL + 47 + 15 * 48 AS col0
----
767

query I rowsort
SELECT 63 * - ( 5 )
----
-315

query I rowsort
SELECT DISTINCT + 57 * + 83
----
4731

query I rowsort
SELECT DISTINCT - 2 + 39
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4632
SELECT ALL + 84 + - CAST( + 3 AS SIGNED ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL + 84 + - CAST ( + 3 AS INTEGER ) AS col1
----
81

query I rowsort
SELECT 63 * 68
----
4284

query I rowsort
SELECT 69 + - 70 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT + 66 - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT + 66 - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT - ( - 55 ) * + COUNT( * ) + - 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4636
SELECT - ( - 55 ) * + COUNT ( * ) + - 56 AS col2
----
-1

query I rowsort
SELECT ALL 61 - + 67 * 99
----
-6572

query I rowsort
SELECT 4 + 67 * 91
----
6101

query I rowsort
SELECT ALL - ( - ( - ( + 19 ) ) ) AS col1
----
-19

query I rowsort
SELECT COALESCE ( + 73, 78 ) + 46
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4641
SELECT - CAST( + 29 AS SIGNED ) * - 79 + - COUNT( * ) * 63
----
2228

skipif mysql # not compatible
query I rowsort label-4641
SELECT - CAST ( + 29 AS INTEGER ) * - 79 + - COUNT ( * ) * 63
----
2228

query I rowsort
SELECT DISTINCT 73 * 48
----
3504

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT - 42 DIV 37
----
-1

skipif mysql # not compatible
query I rowsort label-4643
SELECT - 42 / 37
----
-1

query I rowsort
SELECT - 12 * 27 AS col2
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL + 82 * + COUNT( 47 * + 41 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL + 82 * + COUNT ( 47 * + 41 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL MAX( 6 ) * - 60
----
-360

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL MAX ( 6 ) * - 60
----
-360

query I rowsort
SELECT DISTINCT 0 * - 53 col2
----
0

query I rowsort
SELECT + 78 * 7
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT DISTINCT - + COUNT( * ) * - 40 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4649
SELECT DISTINCT - + COUNT ( * ) * - 40 AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT DISTINCT - NULLIF ( 20, CAST( NULL AS SIGNED ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT - NULLIF ( 20, CAST ( NULL AS INTEGER ) ) AS col1
----
-20

query I rowsort
SELECT + 92 * - 27 AS col1
----
-2484

query I rowsort
SELECT ALL - 63 * 94 AS col2
----
-5922

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT NULLIF ( - 95, 46 * COUNT( * ) )
----
-95

skipif mysql # not compatible
query I rowsort label-4653
SELECT NULLIF ( - 95, 46 * COUNT ( * ) )
----
-95

query I rowsort
SELECT ALL - + CASE 5 WHEN 97 + 21 THEN NULL ELSE 71 * 41 END AS col1
----
-2911

query I rowsort
SELECT ALL 84 + 68 AS col0
----
152

query I rowsort
SELECT - 28 * 78
----
-2184

query I rowsort
SELECT ALL 98 + 53
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT - + 84 * + COUNT( - 66 ) - + 90
----
-174

skipif mysql # not compatible
query I rowsort label-4658
SELECT - + 84 * + COUNT ( - 66 ) - + 90
----
-174

query I rowsort
SELECT ALL 25 + 24 AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4660
SELECT + + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT + + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT - + 37 * 47 AS col0
----
-1739

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4662
SELECT DISTINCT + COUNT( * ) + 28 DIV - 81 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT + COUNT ( * ) + 28 / - 81 AS col0
----
1

query I rowsort
SELECT ALL - 56 + 7
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT - COALESCE ( - 39, + 20 * + COUNT( * ), 25 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-4664
SELECT - COALESCE ( - 39, + 20 * + COUNT ( * ), 25 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL MIN( ALL + 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL MIN ( ALL + 69 ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4666
SELECT DISTINCT 80 + + CAST( NULL AS SIGNED ) + - 39 * - MAX( ( 84 ) * + 72 + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT 80 + + CAST ( NULL AS INTEGER ) + - 39 * - MAX ( ( 84 ) * + 72 + 21 )
----
NULL

query I rowsort
SELECT ALL 39 + + 14 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT DISTINCT CASE + MIN( ALL - 69 ) WHEN COUNT( * ) + 98 THEN 81 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT CASE + MIN ( ALL - 69 ) WHEN COUNT ( * ) + 98 THEN 81 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 15 - 15 AS col2
----
0

query I rowsort
SELECT + ( - 67 ) + 48 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT + MIN( - 24 ) + 44 col1
----
20

skipif mysql # not compatible
query I rowsort label-4671
SELECT + MIN ( - 24 ) + 44 col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT ALL MIN( - 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL MIN ( - 33 ) AS col0
----
-33

query I rowsort
SELECT - 73 + + ( + 58 ) + + 35 * + 93
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT - 91 * + NULLIF ( + 14, 6 + + COUNT( * ) * 58 )
----
-1274

skipif mysql # not compatible
query I rowsort label-4674
SELECT - 91 * + NULLIF ( + 14, 6 + + COUNT ( * ) * 58 )
----
-1274

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL - 8 * SUM( DISTINCT 90 )
----
-720

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL - 8 * SUM ( DISTINCT 90 )
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL + COUNT( ALL + 6 ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL + COUNT ( ALL + 6 ) - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4677
SELECT DISTINCT - 99 * - - CASE MIN( + 9 ) WHEN 94 * ( - 67 ) + 60 THEN + 78 WHEN - 94 THEN - CAST( - 41 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT - 99 * - - CASE MIN ( + 9 ) WHEN 94 * ( - 67 ) + 60 THEN + 78 WHEN - 94 THEN - CAST ( - 41 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT DISTINCT - 26 DIV - - 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT - 26 / - - 77 AS col2
----
0

query I rowsort
SELECT - 43 + + - ( - 75 )
----
32

query I rowsort
SELECT ALL + 54 * + 92
----
4968

query I rowsort
SELECT COALESCE ( + + 13, 60 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT + 71 * + 34 - 1 * CASE - 45 WHEN COUNT( * ) THEN NULL WHEN + 56 THEN NULL WHEN + 68 THEN - COUNT( * ) - 80 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT + 71 * + 34 - 1 * CASE - 45 WHEN COUNT ( * ) THEN NULL WHEN + 56 THEN NULL WHEN + 68 THEN - COUNT ( * ) - 80 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT DISTINCT + COUNT( * ) * + 72
----
72

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT + COUNT ( * ) * + 72
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT - + 48 * - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-4684
SELECT - + 48 * - COUNT ( * )
----
48

query I rowsort
SELECT + CASE + 20 WHEN + 91 + 56 THEN - 46 * - 81 ELSE + 60 * + 21 END AS col1
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL + COUNT( * ) * + COUNT( * ) + 50 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL + COUNT ( * ) * + COUNT ( * ) + 50 AS col2
----
51

query I rowsort
SELECT - 72 - + ( 66 ) AS col1
----
-138

query I rowsort
SELECT DISTINCT + - COALESCE ( - 65, 24 + 5 * 82 ) AS col2
----
65

query I rowsort
SELECT DISTINCT - - 54 * + 48 + - 83
----
2509

query I rowsort
SELECT ALL - 9 * 80 + 26 + + 65
----
-629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4691
SELECT DISTINCT - + COUNT( * ) / - + CAST( NULL AS SIGNED ) * COALESCE ( 57, - 78 + ( 47 + 71 * - CAST( NULL AS SIGNED ) ) ) + 41 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT - + COUNT ( * ) / - + CAST ( NULL AS INTEGER ) * COALESCE ( 57, - 78 + ( 47 + 71 * - CAST ( NULL AS INTEGER ) ) ) + 41 * - 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4692
SELECT + 12 DIV 35 + 49 DIV + 13
----
3

skipif mysql # not compatible
query I rowsort label-4692
SELECT + 12 / 35 + 49 / + 13
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT - - COUNT( * ) + + - COUNT( * ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4693
SELECT - - COUNT ( * ) + + - COUNT ( * ) + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4694
SELECT DISTINCT - COUNT( * ) * - 26 * - 77 + 98 DIV - CAST( - SUM( ALL - 69 ) * 71 AS SIGNED ) AS col0
----
-2002

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - COUNT ( * ) * - 26 * - 77 + 98 / - CAST ( - SUM ( ALL - 69 ) * 71 AS INTEGER ) AS col0
----
-2002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT ALL + CASE WHEN - CAST( NULL AS SIGNED ) >= 84 THEN - ( + 56 ) END * - 44 + NULLIF ( AVG ( + 85 ), + 12 + 41 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + CASE WHEN - CAST ( NULL AS INTEGER ) >= 84 THEN - ( + 56 ) END * - 44 + NULLIF ( AVG ( + 85 ), + 12 + 41 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - MAX( DISTINCT - 65 ) * COUNT( DISTINCT - 3 ) + + 3
----
68

skipif mysql # not compatible
query I rowsort label-4696
SELECT - MAX ( DISTINCT - 65 ) * COUNT ( DISTINCT - 3 ) + + 3
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL - 77 * 36 - 47 * - COUNT( * )
----
-2725

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL - 77 * 36 - 47 * - COUNT ( * )
----
-2725

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT - - COUNT( - + 55 ) + 45
----
46

skipif mysql # not compatible
query I rowsort label-4698
SELECT - - COUNT ( - + 55 ) + 45
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4699
SELECT CASE - + COUNT( * ) WHEN - CAST( - COUNT( * ) AS SIGNED ) THEN COUNT( * ) ELSE NULL END * - 70 - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT CASE - + COUNT ( * ) WHEN - CAST ( - COUNT ( * ) AS INTEGER ) THEN COUNT ( * ) ELSE NULL END * - 70 - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT - - COUNT( + 75 ) * 33
----
33

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT - - COUNT ( + 75 ) * 33
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4701
SELECT ALL - CAST( - 98 AS SIGNED ) * - 13 + - COUNT( * ) * CASE + COUNT( * ) * - CAST( NULL AS SIGNED ) WHEN - 85 THEN 98 + 15 * COUNT( * ) WHEN + 57 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL - CAST ( - 98 AS INTEGER ) * - 13 + - COUNT ( * ) * CASE + COUNT ( * ) * - CAST ( NULL AS INTEGER ) WHEN - 85 THEN 98 + 15 * COUNT ( * ) WHEN + 57 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4702
SELECT ALL + CASE WHEN + 94 IS NOT NULL THEN NULL WHEN ( - COUNT( * ) * + 80 + 84 / CAST( NULL AS SIGNED ) ) = NULL THEN 68 ELSE + COALESCE ( 93, + 2 ) / 94 END * NULLIF ( 89, CASE 6 WHEN 1 + + MAX( ALL - 48 ) THEN 69 ELSE NULL END * 5 - 94 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL + CASE WHEN + 94 IS NOT NULL THEN NULL WHEN ( - COUNT ( * ) * + 80 + 84 / CAST ( NULL AS INTEGER ) ) = NULL THEN 68 ELSE + COALESCE ( 93, + 2 ) / 94 END * NULLIF ( 89, CASE 6 WHEN 1 + + MAX ( ALL - 48 ) THEN 69 ELSE NULL END * 5 - 94 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT DISTINCT + + NULLIF ( - - 88, - 81 + MAX( 91 ) ) + + 66 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT + + NULLIF ( - - 88, - 81 + MAX ( 91 ) ) + + 66 AS col2
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT ALL 69 DIV + 3 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL 69 / + 3 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL MIN( - 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL MIN ( - 7 ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT + ( + 16 ) + + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-4706
SELECT + ( + 16 ) + + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL 39 - - 12 + - + AVG ( DISTINCT 54 ) + 35 * CASE 51 WHEN - 96 - + 40 THEN 98 * COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL 39 - - 12 + - + AVG ( DISTINCT 54 ) + 35 * CASE 51 WHEN - 96 - + 40 THEN 98 * COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT - ( - ( + - 90 ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT + COUNT( * ) + + + CASE - 4 WHEN 92 + - 95 THEN - NULLIF ( + ( 83 ), + 0 * + 94 ) - 12 ELSE 19 * + 60 - - 48 * 55 END
----
3781

skipif mysql # not compatible
query I rowsort label-4709
SELECT + COUNT ( * ) + + + CASE - 4 WHEN 92 + - 95 THEN - NULLIF ( + ( 83 ), + 0 * + 94 ) - 12 ELSE 19 * + 60 - - 48 * 55 END
----
3781

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4710
SELECT + COUNT( * ) + 64 - + - 18 + - 4 DIV 33 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4710
SELECT + COUNT ( * ) + 64 - + - 18 + - 4 / 33 AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4711
SELECT + 3 + + - 45 DIV 47 + - ( + 93 ) * + 0 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4711
SELECT + 3 + + - 45 / 47 + - ( + 93 ) * + 0 AS col0
----
3

query II rowsort
SELECT 69, 75 + - 9 + - 20 AS col1
----
69
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4713
SELECT - 79 + + ( + 36 ) - COALESCE ( 53 + ( ( + 9 ) ) DIV + 72, - ( COUNT( * ) ) )
----
-96

skipif mysql # not compatible
query I rowsort label-4713
SELECT - 79 + + ( + 36 ) - COALESCE ( 53 + ( ( + 9 ) ) / + 72, - ( COUNT ( * ) ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT ALL MIN( DISTINCT + NULLIF ( - - 72, - ( 68 ) + 78 ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL MIN ( DISTINCT + NULLIF ( - - 72, - ( 68 ) + 78 ) ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL 62 * - COUNT( * ) * - 6 AS col2
----
372

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL 62 * - COUNT ( * ) * - 6 AS col2
----
372

query I rowsort
SELECT + 67 * - 24 AS col2
----
-1608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4717
SELECT ALL - NULLIF ( + 49, ( - CAST( NULL AS SIGNED ) ) * COUNT( * ) ) * 86 AS col0
----
-4214

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL - NULLIF ( + 49, ( - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) ) * 86 AS col0
----
-4214

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT + 85 + COUNT( * ) - + - 58 * - 45
----
-2524

skipif mysql # not compatible
query I rowsort label-4718
SELECT + 85 + COUNT ( * ) - + - 58 * - 45
----
-2524

query I rowsort
SELECT ALL 26 * 93 AS col2
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT DISTINCT MIN( DISTINCT + - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT MIN ( DISTINCT + - 57 )
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4721
SELECT - 4 * + + CAST( NULL AS DECIMAL ) + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT - 4 * + + CAST ( NULL AS REAL ) + 96
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4722
SELECT - 17 DIV - 90 - - 5
----
5

skipif mysql # not compatible
query I rowsort label-4722
SELECT - 17 / - 90 - - 5
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4723
SELECT ALL - + 30 DIV 43 + + COUNT( ALL + CAST( NULLIF ( + 15, 44 ) AS DECIMAL ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL - + 30 / 43 + + COUNT ( ALL + CAST ( NULLIF ( + 15, 44 ) AS REAL ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT ALL + 26 DIV 25 + - - 96 + 75
----
172

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + 26 / 25 + - - 96 + 75
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4725
SELECT - + 12 DIV + 4 + - COUNT( * ) + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4725
SELECT - + 12 / + 4 + - COUNT ( * ) + COUNT ( * )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT ALL 30 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL 30 / - 51
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT ALL 29 DIV - 70 + + - 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL 29 / - 70 + + - 3 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT - + COUNT( * ) + ( COUNT( * ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4728
SELECT - + COUNT ( * ) + ( COUNT ( * ) ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT ALL + 47 DIV - 59 + + 25 + ( + ( - 1 ) )
----
24

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL + 47 / - 59 + + 25 + ( + ( - 1 ) )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT ALL 41 DIV - + 62 + + 66
----
66

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL 41 / - + 62 + + 66
----
66

query I rowsort
SELECT - + 97 * + 19 + + 69 AS col1
----
-1774

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT ALL + - 11 DIV - - 23 + + ( + 66 ) * - 90 AS col1
----
-5940

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL + - 11 / - - 23 + + ( + 66 ) * - 90 AS col1
----
-5940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL - SUM( - CAST( - - 43 AS SIGNED ) ) * + 67 col0
----
2881

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL - SUM ( - CAST ( - - 43 AS INTEGER ) ) * + 67 col0
----
2881

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT DISTINCT + + 99 * + - NULLIF ( - MIN( - 65 ), + 85 ) AS col0
----
-6435

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT + + 99 * + - NULLIF ( - MIN ( - 65 ), + 85 ) AS col0
----
-6435

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT + - 18 * + + 45 + COUNT( ALL 49 ) + 71
----
-738

skipif mysql # not compatible
query I rowsort label-4735
SELECT + - 18 * + + 45 + COUNT ( ALL 49 ) + 71
----
-738

query II rowsort
SELECT DISTINCT + 11 AS col1, + 58 AS col2
----
11
58

query I rowsort
SELECT ALL - 81 * 53
----
-4293

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT - 49 * - SUM( ALL 54 )
----
2646

skipif mysql # not compatible
query I rowsort label-4738
SELECT - 49 * - SUM ( ALL 54 )
----
2646

query I rowsort
SELECT 70 * 90 + - 45 * 65 AS col2
----
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT ALL + 89 + + 90 + + - COUNT( * ) * + 97 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL + 89 + + 90 + + - COUNT ( * ) * + 97 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT ALL - 20 * + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL - 20 * + - COUNT ( * )
----
20

query II rowsort
SELECT - 80, - 21 AS col1
----
-80
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL - SUM( + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL - SUM ( + 71 )
----
-71

query I rowsort
SELECT ALL + ( ( + + 70 ) ) - 78
----
-8

query I rowsort
SELECT ALL + 65 * - + COALESCE ( - 54, - ( 4 ) - + 25 ) * - 21 - - 85
----
-73625

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT - ( + + COALESCE ( + CASE SUM( - 70 ) WHEN 60 THEN - COUNT( * ) END, + 87, + 82 + + 94, - 81 ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4746
SELECT - ( + + COALESCE ( + CASE SUM ( - 70 ) WHEN 60 THEN - COUNT ( * ) END, + 87, + 82 + + 94, - 81 ) ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT 89 * + COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4747
SELECT 89 * + COUNT ( * ) AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4748
SELECT DISTINCT - 43 DIV 21 * + SUM( DISTINCT - - NULLIF ( 25, 48 * 73 ) ) DIV ( 17 * 87 + COUNT( 36 ) * 26 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT - 43 / 21 * + SUM ( DISTINCT - - NULLIF ( 25, 48 * 73 ) ) / ( 17 * 87 + COUNT ( 36 ) * 26 ) AS col2
----
0

query I rowsort
SELECT 63 - - COALESCE ( + 44, - 51 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL - COUNT( * ) * + + 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL - COUNT ( * ) * + + 24 AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4751
SELECT 72 - + 58 - + COUNT( * ) DIV - - 43 * 79 + 78 DIV 66 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4751
SELECT 72 - + 58 - + COUNT ( * ) / - - 43 * 79 + 78 / 66 AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT 8 DIV ( + + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-4752
SELECT 8 / ( + + 54 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT 79 * + COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-4753
SELECT 79 * + COUNT ( * ) AS col0
----
79

query I rowsort
SELECT DISTINCT 27 * - 30 AS col1
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL CASE COUNT( * ) WHEN + 97 THEN - 17 / NULLIF ( COUNT( - 88 ), 78 ) WHEN COUNT( * ) THEN NULL END - + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL CASE COUNT ( * ) WHEN + 97 THEN - 17 / NULLIF ( COUNT ( - 88 ), 78 ) WHEN COUNT ( * ) THEN NULL END - + 45 AS col0
----
NULL

query I rowsort
SELECT ALL - 26 * 31 * 5 * - 38
----
153140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4757
SELECT 98 DIV + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-4757
SELECT 98 / + COUNT ( * )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4758
SELECT DISTINCT - 63 * ( - COUNT( * ) ) * + 24 - - 96 DIV 70
----
1513

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT - 63 * ( - COUNT ( * ) ) * + 24 - - 96 / 70
----
1513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4759
SELECT ALL - 54 * + + CAST( NULL AS SIGNED ) * - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL - 54 * + + CAST ( NULL AS INTEGER ) * - 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4760
SELECT DISTINCT COALESCE ( 24, + COUNT( * ) ) DIV + + 6 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT COALESCE ( 24, + COUNT ( * ) ) / + + 6 AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4761
SELECT NULLIF ( + 97, + + COUNT( * ) * - + 35 ) DIV + 79 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4761
SELECT NULLIF ( + 97, + + COUNT ( * ) * - + 35 ) / + 79 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4762
SELECT ALL COUNT( * ) DIV - - ( 54 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL COUNT ( * ) / - - ( 54 ) AS col2
----
0

query I rowsort
SELECT 97 + + 88 col1
----
185

query I rowsort
SELECT 4 * COALESCE ( 78, - 11, 76 ) col0
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT COUNT( * ) + 52 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4765
SELECT COUNT ( * ) + 52 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ( - COUNT( * ) ) + 60
----
59

skipif mysql # not compatible
query I rowsort label-4766
SELECT ( - COUNT ( * ) ) + 60
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT DISTINCT ( + COUNT( * ) ) + 29 + + + 63 + - 84 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT ( + COUNT ( * ) ) + 29 + + + 63 + - 84 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT DISTINCT ( + COUNT( * ) ) + + COUNT( * ) * + 20
----
21

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT ( + COUNT ( * ) ) + + COUNT ( * ) * + 20
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT COALESCE ( + 18, - MIN( DISTINCT 28 ) ) + 96
----
114

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT COALESCE ( + 18, - MIN ( DISTINCT 28 ) ) + 96
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT - + MIN( ALL - 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4770
SELECT - + MIN ( ALL - 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL - ( + COUNT( * ) ) + - 14 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL - ( + COUNT ( * ) ) + - 14 AS col0
----
-15

query I rowsort
SELECT DISTINCT 89 + + 9 - + 70 + + 62
----
90

query I rowsort
SELECT ALL - 76 * NULLIF ( 14, 69 ) + - 37
----
-1101

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ( - 53 ) * 34 * - COUNT( * ) col1
----
1802

skipif mysql # not compatible
query I rowsort label-4774
SELECT ( - 53 ) * 34 * - COUNT ( * ) col1
----
1802

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT - - 76 + MIN( DISTINCT 63 )
----
139

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT - - 76 + MIN ( DISTINCT 63 )
----
139

query I rowsort
SELECT DISTINCT 46 * 48 AS col2
----
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT ALL 50 + 17 DIV 7
----
52

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL 50 + 17 / 7
----
52

query I rowsort
SELECT NULLIF ( - - 37, - 11 + + 54 ) * - 53 AS col2
----
-1961

query I rowsort
SELECT ALL - - ( - 24 ) AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4780
SELECT - 1 DIV 56 + - NULLIF ( - ( + 98 ), 31 + - 81 ) + 82 * NULLIF ( COUNT( * ) + - CAST( - ( + CAST( 65 AS SIGNED ) ) AS SIGNED ), MIN( DISTINCT - 51 ) )
----
5510

skipif mysql # not compatible
query I rowsort label-4780
SELECT - 1 / 56 + - NULLIF ( - ( + 98 ), 31 + - 81 ) + 82 * NULLIF ( COUNT ( * ) + - CAST ( - ( + CAST ( 65 AS INTEGER ) ) AS INTEGER ), MIN ( DISTINCT - 51 ) )
----
5510

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4781
SELECT - CAST( NULL AS DECIMAL ) * - + 70 + 89 / CAST( + 55 AS SIGNED ) * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4781
SELECT - CAST ( NULL AS REAL ) * - + 70 + 89 / CAST ( + 55 AS INTEGER ) * - 85
----
NULL

query I rowsort
SELECT ALL - 93 + - 94
----
-187

query I rowsort
SELECT ALL - + 97 - + + 26 AS col2
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4784
SELECT DISTINCT 35 - - CAST( + 62 AS SIGNED ) * - - 59 * - COUNT( * )
----
-3623

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT 35 - - CAST ( + 62 AS INTEGER ) * - - 59 * - COUNT ( * )
----
-3623

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT DISTINCT + + 59 - + + COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT + + 59 - + + COUNT ( * ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4786
SELECT ALL + COUNT( * ) DIV CAST( ( - - COUNT( * ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL + COUNT ( * ) / CAST ( ( - - COUNT ( * ) ) AS INTEGER ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4787
SELECT + COALESCE ( + CAST( NULL AS SIGNED ), - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4787
SELECT + COALESCE ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4788
SELECT 85 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-4788
SELECT 85 / 96
----
0

query I rowsort
SELECT ALL - - 30 * + 0 * - - 73 * - 78
----
0

query I rowsort
SELECT 87 + 47 - - 31 + + - ( + 15 )
----
150

query I rowsort
SELECT - 19 * - + 33
----
627

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL - COALESCE ( - 70, + - COUNT( * ) * + - 2 * - 74 )
----
70

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - COALESCE ( - 70, + - COUNT ( * ) * + - 2 * - 74 )
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4793
SELECT + NULLIF ( + + 95, - 24 * + - CAST( NULL AS DECIMAL ) * - 61 + + 42 * ( 16 ) ) * - 64 + - 98 AS col2
----
-6178

skipif mysql # not compatible
query I rowsort label-4793
SELECT + NULLIF ( + + 95, - 24 * + - CAST ( NULL AS REAL ) * - 61 + + 42 * ( 16 ) ) * - 64 + - 98 AS col2
----
-6178

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT COUNT( * ) - - 44 + + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4794
SELECT COUNT ( * ) - - 44 + + COUNT ( * ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT 57 * 42 - - 86 - COUNT( * )
----
2479

skipif mysql # not compatible
query I rowsort label-4795
SELECT 57 * 42 - - 86 - COUNT ( * )
----
2479

query I rowsort
SELECT 88 * + 46 col1
----
4048

query I rowsort
SELECT DISTINCT - 40 * + 97 AS col2
----
-3880

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT ALL SUM( ALL 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL SUM ( ALL 45 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-4799
SELECT DISTINCT 97, - COUNT( * ) col1
----
97
-1

skipif mysql # not compatible
query II rowsort label-4799
SELECT DISTINCT 97, - COUNT ( * ) col1
----
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT SUM( ALL - 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT SUM ( ALL - 78 ) AS col2
----
-78

query I rowsort
SELECT 14 * - - 87
----
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT 95 * + - COUNT( * ) + + 40
----
-55

skipif mysql # not compatible
query I rowsort label-4802
SELECT 95 * + - COUNT ( * ) + + 40
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT MIN( ALL + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT MIN ( ALL + 16 )
----
16

query I rowsort
SELECT 4 + + + 95
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4805
SELECT - 13, COUNT( * ) * + + 46 AS col0, + 29 / SUM( - 65 ) * COUNT( * ) + - COUNT( * ) + ( 15 + - CAST( NULL AS SIGNED ) * + 4 ) / 94 AS col2
----
-13
46
NULL

skipif mysql # not compatible
query III rowsort label-4805
SELECT - 13, COUNT ( * ) * + + 46 AS col0, + 29 / SUM ( - 65 ) * COUNT ( * ) + - COUNT ( * ) + ( 15 + - CAST ( NULL AS INTEGER ) * + 4 ) / 94 AS col2
----
-13
46
NULL

query I rowsort
SELECT 16 * - + 35
----
-560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4807
SELECT ALL ( - COUNT( ALL 0 ) ) * + + NULLIF ( 67, - 39 - 31 * - CASE 59 / + 42 WHEN COUNT( * ) THEN NULL WHEN - CAST( NULL AS SIGNED ) + + MAX( 76 ) THEN NULL WHEN + 26 THEN 19 ELSE NULL END ) + + 54
----
-13

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL ( - COUNT ( ALL 0 ) ) * + + NULLIF ( 67, - 39 - 31 * - CASE 59 / + 42 WHEN COUNT ( * ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) + + MAX ( 76 ) THEN NULL WHEN + 26 THEN 19 ELSE NULL END ) + + 54
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-4808
SELECT 37 AS col0, 12 DIV + + 59 AS col2
----
37
0

skipif mysql # not compatible
query II rowsort label-4808
SELECT 37 AS col0, 12 / + + 59 AS col2
----
37
0

query I rowsort
SELECT DISTINCT + 77 + + 37
----
114

query II rowsort
SELECT ALL 27, + NULLIF ( - + 34, + 14 * + + 84 ) * - 34 AS col2
----
27
1156

query I rowsort
SELECT DISTINCT - - 33 + + 89
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT + SUM( ALL + - ( - 0 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + SUM ( ALL + - ( - 0 ) ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT - 51 + 88 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT - 51 + 88 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 91 + - + 87 + - 46 col0
----
-42

query I rowsort
SELECT DISTINCT - NULLIF ( 1, - 31 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT + NULLIF ( - COUNT( * ), + + 18 - + - ( + + COUNT( * ) ) ) + 73
----
72

skipif mysql # not compatible
query I rowsort label-4816
SELECT + NULLIF ( - COUNT ( * ), + + 18 - + - ( + + COUNT ( * ) ) ) + 73
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4817
SELECT - 9 - - + 39 * COUNT( * ), - COUNT( * ) col1
----
30
-1

skipif mysql # not compatible
query II rowsort label-4817
SELECT - 9 - - + 39 * COUNT ( * ), - COUNT ( * ) col1
----
30
-1

query I rowsort
SELECT - 61 * - - 14 + + - 29 col2
----
-883

query I rowsort
SELECT + - ( 26 )
----
-26

query I rowsort
SELECT + NULLIF ( - 32, + + 66 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4821
SELECT + + 9 * - + COUNT( * ) * + 70 * MIN( - CAST( ( + 3 ) AS SIGNED ) ) * 3
----
5670

skipif mysql # not compatible
query I rowsort label-4821
SELECT + + 9 * - + COUNT ( * ) * + 70 * MIN ( - CAST ( ( + 3 ) AS INTEGER ) ) * 3
----
5670

query I rowsort
SELECT ALL 98 * + - 47 AS col2
----
-4606

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT DISTINCT + 70 * 87 DIV + 87 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT + 70 * 87 / + 87 AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT + 25 * ( - CASE 64 WHEN - 83 + 19 THEN + 91 * + AVG ( + NULLIF ( COALESCE ( + 37, - CAST( + 19 AS SIGNED ) * 14 ), + 68 ) ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT + 25 * ( - CASE 64 WHEN - 83 + 19 THEN + 91 * + AVG ( + NULLIF ( COALESCE ( + 37, - CAST ( + 19 AS INTEGER ) * 14 ), + 68 ) ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT + 95 * 17 * 82 + + COUNT( * )
----
132431

skipif mysql # not compatible
query I rowsort label-4825
SELECT + 95 * 17 * 82 + + COUNT ( * )
----
132431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4826
SELECT - COALESCE ( CAST( NULL AS SIGNED ), - 68 + - 98, + COUNT( * ) )
----
166

skipif mysql # not compatible
query I rowsort label-4826
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), - 68 + - 98, + COUNT ( * ) )
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT + 73 * + 67 + - - CAST( NULL AS SIGNED ) - 51 * + 11 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT + 73 * + 67 + - - CAST ( NULL AS INTEGER ) - 51 * + 11 col0
----
NULL

query I rowsort
SELECT + ( + + 2 ) * - 45
----
-90

query I rowsort
SELECT - 80 + + - 83
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT + COALESCE ( + - COUNT( * ), - 76 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4830
SELECT + COALESCE ( + - COUNT ( * ), - 76 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL - 72 * + 93 + + MAX( + ( 11 ) ) - 90
----
-6775

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL - 72 * + 93 + + MAX ( + ( 11 ) ) - 90
----
-6775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT + 44 * COALESCE ( + COUNT( * ), + - 12, - - 27 ) DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-4832
SELECT + 44 * COALESCE ( + COUNT ( * ), + - 12, - - 27 ) / - 35
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4833
SELECT ALL COUNT( + 52 ) DIV - + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL COUNT ( + 52 ) / - + 85 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ALL + CASE + 42 WHEN + COUNT( * ) THEN 58 WHEN - 61 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL + CASE + 42 WHEN + COUNT ( * ) THEN 58 WHEN - 61 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE NULL END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4835
SELECT - COALESCE ( - - 41, - 72 * - - 23, - + 67 + - COUNT( * ) + + 37 DIV 88 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4835
SELECT - COALESCE ( - - 41, - 72 * - - 23, - + 67 + - COUNT ( * ) + + 37 / 88 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-4836
SELECT DISTINCT COUNT( * ) + + 45 col0, + 48 + + 38 AS col0
----
46
86

skipif mysql # not compatible
query II rowsort label-4836
SELECT DISTINCT COUNT ( * ) + + 45 col0, + 48 + + 38 AS col0
----
46
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL - 63 + - - 97 + + COUNT( * ) * + - 83 * - + 47 + - + 67 * - 5 * 57
----
23030

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - 63 + - - 97 + + COUNT ( * ) * + - 83 * - + 47 + - + 67 * - 5 * 57
----
23030

query I rowsort
SELECT + 9 - 69 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT + 85 - + - COUNT( * ) * 50 + 42 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-4839
SELECT + 85 - + - COUNT ( * ) * 50 + 42 AS col1
----
177

onlyif mysql # aggregate syntax: 
query II rowsort label-4840
SELECT 28 AS col0, + MAX( 19 ) col1
----
28
19

skipif mysql # not compatible
query II rowsort label-4840
SELECT 28 AS col0, + MAX ( 19 ) col1
----
28
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4841
SELECT ALL + CAST( - MIN( ALL + 88 ) AS SIGNED ) * - COALESCE ( + 36, - COALESCE ( 20, - 60 ) ) AS col0
----
3168

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL + CAST ( - MIN ( ALL + 88 ) AS INTEGER ) * - COALESCE ( + 36, - COALESCE ( 20, - 60 ) ) AS col0
----
3168

query II rowsort
SELECT 99 AS col1, 82
----
99
82

query II rowsort
SELECT 36, 81 AS col0
----
36
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4844
SELECT ALL - CAST( NULL AS SIGNED ) + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL - CAST ( NULL AS INTEGER ) + + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL SUM( DISTINCT + 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL SUM ( DISTINCT + 81 ) AS col2
----
81

query I rowsort
SELECT - 31 - 0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT ALL - COALESCE ( + + 79, 97 DIV + 62 * - 94 + - ( ( 21 ) ) ) + 66
----
-13

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL - COALESCE ( + + 79, 97 / + 62 * - 94 + - ( ( 21 ) ) ) + 66
----
-13

query II rowsort
SELECT - 80 * - - 71, 75 AS col1
----
-5680
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4849
SELECT ALL COUNT( * ) AS col0, 89 AS col0
----
1
89

skipif mysql # not compatible
query II rowsort label-4849
SELECT ALL COUNT ( * ) AS col0, 89 AS col0
----
1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT - SUM( + + 71 ) + + 63 * 1 * + 38 AS col0
----
2323

skipif mysql # not compatible
query I rowsort label-4850
SELECT - SUM ( + + 71 ) + + 63 * 1 * + 38 AS col0
----
2323

query I rowsort
SELECT + - 57 + - + 93
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT CAST( + - 55 AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-4852
SELECT CAST ( + - 55 AS INTEGER )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT ALL - + 63 - - COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL - + 63 - - COUNT ( * ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL - COALESCE ( 3, + 35 - + COUNT( * ) ) - + 79 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - COALESCE ( 3, + 35 - + COUNT ( * ) ) - + 79 AS col1
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4855
SELECT - 43 DIV 68 * + COUNT( * ) + MIN( DISTINCT 9 ) - + 11 * 29 * + 26 AS col0
----
-8285

skipif mysql # not compatible
query I rowsort label-4855
SELECT - 43 / 68 * + COUNT ( * ) + MIN ( DISTINCT 9 ) - + 11 * 29 * + 26 AS col0
----
-8285

query I rowsort
SELECT ALL - + 51 * 10
----
-510

onlyif mysql # aggregate syntax: 
query II rowsort label-4857
SELECT + + COUNT( * ) AS col0, - COUNT( * ) + + 89 + - + 55 + + 84 AS col0
----
1
117

skipif mysql # not compatible
query II rowsort label-4857
SELECT + + COUNT ( * ) AS col0, - COUNT ( * ) + + 89 + - + 55 + + 84 AS col0
----
1
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4858
SELECT - ( + - 5 ) + + CAST( + - ( - + COUNT( * ) ) AS SIGNED ) * + 97 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT - ( + - 5 ) + + CAST ( + - ( - + COUNT ( * ) ) AS INTEGER ) * + 97 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT - COALESCE ( + COUNT( + - 49 ), 8 * + COUNT( * ) + - 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-4859
SELECT - COALESCE ( + COUNT ( + - 49 ), 8 * + COUNT ( * ) + - 23 )
----
-1

query I rowsort
SELECT - + 36 - + 59 AS col0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT - ( 95 ) DIV - 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4861
SELECT - ( 95 ) / - 65 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT + + MIN( ALL 68 ) * + 30
----
2040

skipif mysql # not compatible
query I rowsort label-4862
SELECT + + MIN ( ALL 68 ) * + 30
----
2040

query II rowsort
SELECT 65 AS col0, + 18 AS col0
----
65
18

query II rowsort
SELECT ALL + + ( - 26 ) AS col1, + 11 AS col0
----
-26
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4865
SELECT + CAST( - 15 AS SIGNED ) * - - 19 AS col0, 0 * - 59 + 64 AS col2
----
-285
64

skipif mysql # not compatible
query II rowsort label-4865
SELECT + CAST ( - 15 AS INTEGER ) * - - 19 AS col0, 0 * - 59 + 64 AS col2
----
-285
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL + 77 * + - MIN( ALL - + 38 ) + 14 col0
----
2940

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + 77 * + - MIN ( ALL - + 38 ) + 14 col0
----
2940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4867
SELECT + CAST( 9 AS SIGNED ) - - CASE - 70 WHEN - ( + ( + - SUM( - 50 ) ) ) THEN COALESCE ( SUM( DISTINCT 39 ), - 2 ) END - NULLIF ( + 49, 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT + CAST ( 9 AS INTEGER ) - - CASE - 70 WHEN - ( + ( + - SUM ( - 50 ) ) ) THEN COALESCE ( SUM ( DISTINCT 39 ), - 2 ) END - NULLIF ( + 49, 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT + NULLIF ( + COUNT( - + 66 ), + - 13 - - + 26 )
----
1

skipif mysql # not compatible
query I rowsort label-4868
SELECT + NULLIF ( + COUNT ( - + 66 ), + - 13 - - + 26 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT 94 * - 17 * + + 5 + COUNT( * ) col0
----
-7989

skipif mysql # not compatible
query I rowsort label-4869
SELECT 94 * - 17 * + + 5 + COUNT ( * ) col0
----
-7989

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL COUNT( * ) * - 44 * + COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL COUNT ( * ) * - 44 * + COUNT ( * ) AS col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT - CAST( NULL AS SIGNED ) + 72 + - + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT - CAST ( NULL AS INTEGER ) + 72 + - + 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL - 50 * + COUNT( * ) + + + COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL - 50 * + COUNT ( * ) + + + COUNT ( * ) AS col2
----
-49

query I rowsort
SELECT 31 * - ( - 27 ) + + 98 AS col2
----
935

onlyif mysql # DIV for integer division: 
query I rowsort label-4874
SELECT + 91 - + 22 DIV - - 22
----
90

skipif mysql # not compatible
query I rowsort label-4874
SELECT + 91 - + 22 / - - 22
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4875
SELECT + ( - MIN( DISTINCT + + 16 ) ) AS col1, 4
----
-16
4

skipif mysql # not compatible
query II rowsort label-4875
SELECT + ( - MIN ( DISTINCT + + 16 ) ) AS col1, 4
----
-16
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4876
SELECT CASE - 30 WHEN + 97 THEN + + 38 WHEN - 70 THEN + - CAST( + - 51 AS SIGNED ) * 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT CASE - 30 WHEN + 97 THEN + + 38 WHEN - 70 THEN + - CAST ( + - 51 AS INTEGER ) * 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL - 35 * - COALESCE ( + 64, COUNT( * ) * 89 + + - 93 ) + + + CASE - 49 WHEN + 84 + 86 * 49 THEN 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL - 35 * - COALESCE ( + 64, COUNT ( * ) * 89 + + - 93 ) + + + CASE - 49 WHEN + 84 + 86 * 49 THEN 0 END
----
NULL

query I rowsort
SELECT + 31 + - 11 AS col0
----
20

query I rowsort
SELECT - 7 + 75 AS col0
----
68

query I rowsort
SELECT + 19 * + 64 * + - 86
----
-104576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 46 AS col0
----
NULL

query II rowsort
SELECT 14 * - 19, + 55 AS col2
----
-266
55

query I rowsort
SELECT ALL 17 * + + 26 * + 67 * - 87 * - 66 AS col0
----
170043588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4884
SELECT 45 + - - 11 DIV - - 32 * + 3 - + ( - COUNT( * ) ) + + + 78 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-4884
SELECT 45 + - - 11 / - - 32 * + 3 - + ( - COUNT ( * ) ) + + + 78 AS col1
----
124

query I rowsort
SELECT 14 + + + 97 + - 3
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4886
SELECT DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), + CASE 70 WHEN - 51 * COUNT( * ) - + 79 + - CASE AVG ( 22 ) WHEN + 95 THEN NULL ELSE - 79 END THEN 2 WHEN + COUNT( DISTINCT 40 ) / 5 THEN NULL ELSE NULL END + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), + CASE 70 WHEN - 51 * COUNT ( * ) - + 79 + - CASE AVG ( 22 ) WHEN + 95 THEN NULL ELSE - 79 END THEN 2 WHEN + COUNT ( DISTINCT 40 ) / 5 THEN NULL ELSE NULL END + COUNT ( * ) )
----
NULL

query II rowsort
SELECT ALL - - ( 25 ) * - - 66, 24 * 25 AS col0
----
1650
600

onlyif mysql # aggregate syntax: 
query II rowsort label-4888
SELECT + 7 - + 80, MAX( - 71 ) AS col0
----
-73
-71

skipif mysql # not compatible
query II rowsort label-4888
SELECT + 7 - + 80, MAX ( - 71 ) AS col0
----
-73
-71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4889
SELECT CAST( - ( - - 64 ) AS SIGNED ) DIV + 46
----
-1

skipif mysql # not compatible
query I rowsort label-4889
SELECT CAST ( - ( - - 64 ) AS INTEGER ) / + 46
----
-1

query I rowsort
SELECT ALL - + 23 * + 50
----
-1150

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT + + COUNT( ALL - 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4891
SELECT + + COUNT ( ALL - 52 ) AS col1
----
1

query I rowsort
SELECT + 2 * 84 * + + 50 + 33
----
8433

onlyif mysql # DIV for integer division: 
query I rowsort label-4893
SELECT 32 DIV 24 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4893
SELECT 32 / 24 AS col0
----
1

query I rowsort
SELECT ALL - 55 + ( + + ( + 66 ) ) AS col2
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4895
SELECT COUNT( * ) DIV 1 + + + 26 col2, 39 AS col1
----
27
39

skipif mysql # not compatible
query II rowsort label-4895
SELECT COUNT ( * ) / 1 + + + 26 col2, 39 AS col1
----
27
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4896
SELECT DISTINCT - + MAX( ALL - 82 ) AS col1, + CAST( NULL AS SIGNED ) + + 2 * + - 57 + - - 54
----
82
NULL

skipif mysql # not compatible
query II rowsort label-4896
SELECT DISTINCT - + MAX ( ALL - 82 ) AS col1, + CAST ( NULL AS INTEGER ) + + 2 * + - 57 + - - 54
----
82
NULL

query I rowsort
SELECT DISTINCT - AVG ( ALL + 5 ) + - 94 * CASE - + ( + - NULLIF ( 24, + + 20 ) ) WHEN 51 + 30 / 45 THEN ( 42 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4898
SELECT ALL 15 DIV COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL 15 / COUNT ( * ) AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT 17 DIV - 17
----
-1

skipif mysql # not compatible
query I rowsort label-4899
SELECT 17 / - 17
----
-1

query I rowsort
SELECT 88 * 6 AS col1
----
528

query II rowsort
SELECT 18 col2, + 22
----
18
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4902
SELECT ALL - ( COUNT( * ) ) DIV 54 + 78 * - 26 AS col2
----
-2028

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL - ( COUNT ( * ) ) / 54 + 78 * - 26 AS col2
----
-2028

onlyif mysql # aggregate syntax: 
query II rowsort label-4903
SELECT ALL - 81 AS col0, COUNT( * )
----
-81
1

skipif mysql # not compatible
query II rowsort label-4903
SELECT ALL - 81 AS col0, COUNT ( * )
----
-81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT COUNT( * ) + COALESCE ( 25, - 14 * + 49 + CASE 98 WHEN 81 THEN - COUNT( * ) + + 79 WHEN - 19 - - COALESCE ( + 72, - COUNT( * ), + 76 ) THEN NULL END * 73 ) + 48 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT COUNT ( * ) + COALESCE ( 25, - 14 * + 49 + CASE 98 WHEN 81 THEN - COUNT ( * ) + + 79 WHEN - 19 - - COALESCE ( + 72, - COUNT ( * ), + 76 ) THEN NULL END * 73 ) + 48 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL NULLIF ( + - 91, + AVG ( DISTINCT + 38 ) ) + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL NULLIF ( + - 91, + AVG ( DISTINCT + 38 ) ) + COUNT ( * )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4906
SELECT ALL - 16, COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-4906
SELECT ALL - 16, COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
-16
NULL

query I rowsort
SELECT - 96 * - 67 - + 33
----
6399

query II rowsort
SELECT - 19 col2, - 24 - + - 85 + 4
----
-19
65

query I rowsort
SELECT 67 * 12
----
804

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT COALESCE ( + + 15, + + COUNT( * ) / + 75 * - + COUNT( * ) * 49 ) + + CASE + 62 WHEN 46 THEN 76 * COUNT( * ) + - ( 24 ) END + AVG ( ALL 72 + ( 61 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT COALESCE ( + + 15, + + COUNT ( * ) / + 75 * - + COUNT ( * ) * 49 ) + + CASE + 62 WHEN 46 THEN 76 * COUNT ( * ) + - ( 24 ) END + AVG ( ALL 72 + ( 61 ) ) AS col2
----
NULL

query II rowsort
SELECT 46 col1, 86 + + + 29 AS col0
----
46
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT + 46 * 31 + COALESCE ( 20, - - 79 + - COUNT( * ), 88 * + + 63 + 66 ) - + 89 AS col2
----
1357

skipif mysql # not compatible
query I rowsort label-4912
SELECT + 46 * 31 + COALESCE ( 20, - - 79 + - COUNT ( * ), 88 * + + 63 + 66 ) - + 89 AS col2
----
1357

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL - MAX( DISTINCT - 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL - MAX ( DISTINCT - 30 ) AS col1
----
30

query I rowsort
SELECT + 98 * + 91 AS col0
----
8918

query I rowsort
SELECT 98 - + + 80
----
18

query I rowsort
SELECT + 38 - - 62
----
100

query I rowsort
SELECT DISTINCT + 83 * 84
----
6972

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4918
SELECT - - 21 col2, + ( COALESCE ( + + CAST( 50 AS SIGNED ), - 43 ) ) DIV 77 AS col1
----
21
0

skipif mysql # not compatible
query II rowsort label-4918
SELECT - - 21 col2, + ( COALESCE ( + + CAST ( 50 AS INTEGER ), - 43 ) ) / 77 AS col1
----
21
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4919
SELECT 8 DIV 70 * 43 + - 83 + - 53 * + 41 AS col2
----
-2256

skipif mysql # not compatible
query I rowsort label-4919
SELECT 8 / 70 * 43 + - 83 + - 53 * + 41 AS col2
----
-2256

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT - 14 * + + 47 + - - SUM( DISTINCT + 89 ) + + 7
----
-562

skipif mysql # not compatible
query I rowsort label-4920
SELECT - 14 * + + 47 + - - SUM ( DISTINCT + 89 ) + + 7
----
-562

query I rowsort
SELECT ALL - 59 + 23 AS col0
----
-36

query I rowsort
SELECT DISTINCT + 48 * - - ( + - ( - 51 ) ) * + - 19
----
-46512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT ALL - CAST( - ( - 23 ) AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL - CAST ( - ( - 23 ) AS INTEGER )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + COUNT( * ) * - 52 + - 40 + - - 17 * - ( 62 ) * - ( COUNT( * ) )
----
962

skipif mysql # not compatible
query I rowsort label-4924
SELECT + COUNT ( * ) * - 52 + - 40 + - - 17 * - ( 62 ) * - ( COUNT ( * ) )
----
962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4925
SELECT DISTINCT - CASE - - CASE 54 WHEN 75 * - + COUNT( * ) * 41 THEN 31 WHEN - COALESCE ( COUNT( * ), + 53, - 63 - NULLIF ( NULLIF ( - 19, CAST( - ( - 49 ) AS SIGNED ) ), 10 * COALESCE ( - 71, + COUNT( * ) ) + - 19 ) ) THEN NULL END WHEN - AVG ( DISTINCT 47 ) THEN NULL WHEN 7 THEN - COUNT( * ) WHEN + 18 * + 95 - - 39 * - 27 THEN 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT - CASE - - CASE 54 WHEN 75 * - + COUNT ( * ) * 41 THEN 31 WHEN - COALESCE ( COUNT ( * ), + 53, - 63 - NULLIF ( NULLIF ( - 19, CAST ( - ( - 49 ) AS INTEGER ) ), 10 * COALESCE ( - 71, + COUNT ( * ) ) + - 19 ) ) THEN NULL END WHEN - AVG ( DISTINCT 47 ) THEN NULL WHEN 7 THEN - COUNT ( * ) WHEN + 18 * + 95 - - 39 * - 27 THEN 33 END AS col2
----
NULL

query I rowsort
SELECT 31 * - 40 + - 0
----
-1240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4927
SELECT 33 * - CAST( NULL AS SIGNED ), - 89 AS col1
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-4927
SELECT 33 * - CAST ( NULL AS INTEGER ), - 89 AS col1
----
NULL
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT DISTINCT - 58 / + CAST( NULL AS SIGNED )
----
NULL

skipif m