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 mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT - 58 / + CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT 7 + 57 * - 73 - + 0 * - 57
----
-4154

query I rowsort
SELECT ALL + 96 * ( 38 ) - + 20 col2
----
3628

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT 23 * + + 11 * COUNT( * )
----
253

skipif mysql # not compatible
query I rowsort label-4932
SELECT 23 * + + 11 * COUNT ( * )
----
253

query I rowsort
SELECT ALL - NULLIF ( 41, - 19 * 26 ) AS col2
----
-41

query I rowsort
SELECT ALL - 19 * - 58 - 37 AS col1
----
1065

query I rowsort
SELECT 51 + + ( + - 20 ) AS col0
----
31

query II rowsort
SELECT - 20 + - + 93 AS col1, 82
----
-113
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4937
SELECT - ( 2 ) * - CAST( NULL AS DECIMAL ) + - - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT - ( 2 ) * - CAST ( NULL AS REAL ) + - - 15
----
NULL

query I rowsort
SELECT ( - - 35 ) * - 60 - 17 col2
----
-2117

query I rowsort
SELECT - 89 * + 77 * 4 * + 54 AS col1
----
-1480248

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4940
SELECT ALL 35 * CAST( NULL AS SIGNED ), 27 AS col1
----
NULL
27

skipif mysql # not compatible
query II rowsort label-4940
SELECT ALL 35 * CAST ( NULL AS INTEGER ), 27 AS col1
----
NULL
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4941
SELECT + 5 * CASE + 83 WHEN 66 THEN CAST( NULL AS DECIMAL ) WHEN 39 * COUNT( * ) * - COUNT( * ) * + 38 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4941
SELECT + 5 * CASE + 83 WHEN 66 THEN CAST ( NULL AS REAL ) WHEN 39 * COUNT ( * ) * - COUNT ( * ) * + 38 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT + - 14 * COUNT( * ) + ( - + 75 )
----
-89

skipif mysql # not compatible
query I rowsort label-4942
SELECT + - 14 * COUNT ( * ) + ( - + 75 )
----
-89

query I rowsort
SELECT + - 76 + 97 col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT - + 48 + + 37 + MIN( 61 ) + - 22 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4944
SELECT - + 48 + + 37 + MIN ( 61 ) + - 22 AS col2
----
28

query I rowsort
SELECT + 59 + - ( 53 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT - - COALESCE ( CAST( NULL AS SIGNED ), - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-4946
SELECT - - COALESCE ( CAST ( NULL AS INTEGER ), - 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL + 88 + - + 87 - + - COUNT( * ) + - 38 * + + ( + 72 )
----
-2734

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL + 88 + - + 87 - + - COUNT ( * ) + - 38 * + + ( + 72 )
----
-2734

query I rowsort
SELECT ALL - 29 + - - 96 - 78 * - CASE + 16 WHEN 47 + - + 67 * + + 72 THEN - 85 * 33 + 95 END * 19 - 10
----
NULL

query I rowsort
SELECT + COALESCE ( - ( - 60 ), + 69, 15 )
----
60

query I rowsort
SELECT ALL 64 * 41 + + 50
----
2674

query I rowsort
SELECT + 34 + 65 + 23 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT - SUM( ALL - - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-4952
SELECT - SUM ( ALL - - 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT ALL NULLIF ( - 60, - 68 + 9 + + 35 ) * - - MAX( - 16 )
----
960

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL NULLIF ( - 60, - 68 + 9 + + 35 ) * - - MAX ( - 16 )
----
960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4954
SELECT + CAST( NULL AS DECIMAL ) / 80 * - 15 * + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT + CAST ( NULL AS REAL ) / 80 * - 15 * + + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT + 16 + + - 65 * - ( MIN( ALL + + 56 ) )
----
3656

skipif mysql # not compatible
query I rowsort label-4955
SELECT + 16 + + - 65 * - ( MIN ( ALL + + 56 ) )
----
3656

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL 80 * + - SUM( ALL + 91 ) AS col1
----
-7280

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL 80 * + - SUM ( ALL + 91 ) AS col1
----
-7280

query I rowsort
SELECT + NULLIF ( 54, - - 6 ) AS col1
----
54

query I rowsort
SELECT + CASE 30 WHEN + 12 THEN 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4959
SELECT DISTINCT + COUNT( * ) AS col1, ( + - 34 ) - - 77
----
1
43

skipif mysql # not compatible
query II rowsort label-4959
SELECT DISTINCT + COUNT ( * ) AS col1, ( + - 34 ) - - 77
----
1
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT - COUNT( * ) + - - 32 + + - 57
----
-26

skipif mysql # not compatible
query I rowsort label-4961
SELECT - COUNT ( * ) + - - 32 + + - 57
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT ALL - 75 * - 21 - COUNT( * )
----
1574

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - 75 * - 21 - COUNT ( * )
----
1574

onlyif mysql # aggregate syntax: 
query II rowsort label-4963
SELECT - COUNT( * ) * + - 18 * + 71 * - - 24 * 99 col1, 17 AS col1
----
3036528
17

skipif mysql # not compatible
query II rowsort label-4963
SELECT - COUNT ( * ) * + - 18 * + 71 * - - 24 * 99 col1, 17 AS col1
----
3036528
17

query I rowsort
SELECT ALL + 10 * - 47 AS col2
----
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - CASE + - 78 WHEN 5 + 99 * - - 36 / + 10 THEN - ( 22 ) * 18 - 6 END + SUM( + 22 + 16 * 13 ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT - CASE + - 78 WHEN 5 + 99 * - - 36 / + 10 THEN - ( 22 ) * 18 - 6 END + SUM ( + 22 + 16 * 13 ) * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + 1 * + 37 AS col1
----
37

query II rowsort
SELECT ALL + 22 AS col0, 35
----
22
35

query I rowsort
SELECT DISTINCT + 83 * - - 83 AS col0
----
6889

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4969
SELECT ALL ( + 96 ) * + CAST( - 15 AS SIGNED ) - + + 45 AS col1, - 94 col0
----
-1485
-94

skipif mysql # not compatible
query II rowsort label-4969
SELECT ALL ( + 96 ) * + CAST ( - 15 AS INTEGER ) - + + 45 AS col1, - 94 col0
----
-1485
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4970
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2, + 14 AS col2
----
NULL
14

skipif mysql # not compatible
query II rowsort label-4970
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, + 14 AS col2
----
NULL
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4971
SELECT ALL - 17 * - 64 / + + MAX( - 8 ) + - CASE 38 WHEN 3 THEN 61 END * 50 + - 44 + 38 * CAST( NULL AS SIGNED ) + COALESCE ( + COUNT( * ) + COUNT( * ), 1 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL - 17 * - 64 / + + MAX ( - 8 ) + - CASE 38 WHEN 3 THEN 61 END * 50 + - 44 + 38 * CAST ( NULL AS INTEGER ) + COALESCE ( + COUNT ( * ) + COUNT ( * ), 1 ) AS col1
----
NULL

query II rowsort
SELECT - 22, 11 + ( - + 84 ) AS col0
----
-22
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL - CASE 31 WHEN - MAX( DISTINCT + ( + 94 ) ) * - 65 THEN - 33 WHEN - + 36 THEN NULL ELSE NULL END * COUNT( * ) + 17 + + 22 * - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - CASE 31 WHEN - MAX ( DISTINCT + ( + 94 ) ) * - 65 THEN - 33 WHEN - + 36 THEN NULL ELSE NULL END * COUNT ( * ) + 17 + + 22 * - 49 AS col0
----
NULL

query I rowsort
SELECT - ( 18 ) * - ( + - ( - 20 ) ) AS col0
----
360

query I rowsort
SELECT + - 38 * 3 - + 32
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4976
SELECT ALL + CAST( NULL AS SIGNED ) * COALESCE ( - 60, + - COUNT( + 99 ) * + COUNT( * ) + - 95 * - - CAST( - 73 AS SIGNED ) - 44, + 41 ) * 35 + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL + CAST ( NULL AS INTEGER ) * COALESCE ( - 60, + - COUNT ( + 99 ) * + COUNT ( * ) + - 95 * - - CAST ( - 73 AS INTEGER ) - 44, + 41 ) * 35 + + 80
----
NULL

query I rowsort
SELECT ALL + 88 * + 81 + + 2 AS col1
----
7130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT - - MAX( + 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4979
SELECT - - MAX ( + 66 ) AS col2
----
66

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

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

query I rowsort
SELECT - + NULLIF ( - 42, + 31 ) + - + 55 + 4 + - 73
----
-82

query I rowsort
SELECT + - 39 * - 55 AS col0
----
2145

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT ALL 99 * - COUNT( * ) + + - COUNT( * ) * + 29
----
-128

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL 99 * - COUNT ( * ) + + - COUNT ( * ) * + 29
----
-128

query I rowsort
SELECT ALL + + 29 + + - 72 AS col1
----
-43

query I rowsort
SELECT ALL 35 + + 43 - + 46
----
32

query I rowsort
SELECT DISTINCT + 31 + - 50 AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT DISTINCT ( + ( + + CAST( NULL AS SIGNED ) ) ) + + 46 - + 65 * - - 88 / + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT ( + ( + + CAST ( NULL AS INTEGER ) ) ) + + 46 - + 65 * - - 88 / + 42 AS col1
----
NULL

query I rowsort
SELECT - 23 - + 71
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-4989
SELECT - + 63 AS col0, COUNT( DISTINCT - - 25 ) + - 29 col1
----
-63
-28

skipif mysql # not compatible
query II rowsort label-4989
SELECT - + 63 AS col0, COUNT ( DISTINCT - - 25 ) + - 29 col1
----
-63
-28

query II rowsort
SELECT ALL 74 AS col0, + 22
----
74
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT - ( CASE - COUNT( * ) WHEN - + COUNT( * ) * COUNT( * ) * 39 / - - 70 + - + 22 * - 22 THEN + + ( 53 ) * 6 ELSE + 61 END ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-4991
SELECT - ( CASE - COUNT ( * ) WHEN - + COUNT ( * ) * COUNT ( * ) * 39 / - - 70 + - + 22 * - 22 THEN + + ( 53 ) * 6 ELSE + 61 END ) AS col2
----
-61

query I rowsort
SELECT - - 43 + - 61 AS col1
----
-18

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

skipif mysql # not compatible
query I rowsort label-4993
SELECT + - COUNT ( * ) * 0 * + - 98 + - 13 AS col2
----
-13

query II rowsort
SELECT 40 AS col0, 18
----
40
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT ALL 28 AS col2, 12 + 77 * + 83 * - - 42 * + - COUNT( * )
----
28
-268410

skipif mysql # not compatible
query II rowsort label-4995
SELECT ALL 28 AS col2, 12 + 77 * + 83 * - - 42 * + - COUNT ( * )
----
28
-268410

query I rowsort
SELECT + 39 * - - 76 AS col0
----
2964

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4997
SELECT ALL CAST( - + ( 40 ) AS SIGNED ) DIV + NULLIF ( - 12, - + 2 * + + 7 )
----
3

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL CAST ( - + ( 40 ) AS INTEGER ) / + NULLIF ( - 12, - + 2 * + + 7 )
----
3

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

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT 85 * - + COUNT ( * ) AS col2
----
-85

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5000
SELECT CAST( + ( ( 85 ) ) AS SIGNED ) DIV + - 56 col0
----
-1

skipif mysql # not compatible
query I rowsort label-5000
SELECT CAST ( + ( ( 85 ) ) AS INTEGER ) / + - 56 col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT - 85 DIV 82 + + - ( + 39 )
----
-40

skipif mysql # not compatible
query I rowsort label-5001
SELECT - 85 / 82 + + - ( + 39 )
----
-40

query II rowsort
SELECT 91 AS col2, 56 AS col2
----
91
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT 48 DIV - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5003
SELECT 48 / - 85 AS col1
----
0

query II rowsort
SELECT + 16 AS col0, 68 * - 97 - + 10 col2
----
16
-6606

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ALL - 42 + + COUNT( * ) - + + 49
----
-90

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - 42 + + COUNT ( * ) - + + 49
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT COUNT( * ) * + 1 * - 38 + 63 col2
----
25

skipif mysql # not compatible
query I rowsort label-5006
SELECT COUNT ( * ) * + 1 * - 38 + 63 col2
----
25

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5008
SELECT + 46 * - + 76 + + ( - AVG ( + + CAST( NULL AS SIGNED ) ) ) + - + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT + 46 * - + 76 + + ( - AVG ( + + CAST ( NULL AS INTEGER ) ) ) + - + 14 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5010
SELECT + 58 + 79 DIV + 85 + + - 98 * - COALESCE ( - 81, + 88, - CASE + MIN( DISTINCT - 40 ) WHEN 35 THEN 26 WHEN 96 * COUNT( * ) THEN NULL ELSE NULL END - 2 )
----
-7880

skipif mysql # not compatible
query I rowsort label-5010
SELECT + 58 + 79 / + 85 + + - 98 * - COALESCE ( - 81, + 88, - CASE + MIN ( DISTINCT - 40 ) WHEN 35 THEN 26 WHEN 96 * COUNT ( * ) THEN NULL ELSE NULL END - 2 )
----
-7880

query I rowsort
SELECT DISTINCT + - 14 * + 21 + 45
----
-249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5012
SELECT ALL 41 + - COUNT( * ) DIV + 57 * + 72 + + 13 * - 46 AS col1
----
-557

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL 41 + - COUNT ( * ) / + 57 * + 72 + + 13 * - 46 AS col1
----
-557

query I rowsort
SELECT ALL + + 64 * - 70 + 62
----
-4418

query I rowsort
SELECT ALL - - 1 + + 32 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT COUNT( 63 ) + - 82 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-5015
SELECT COUNT ( 63 ) + - 82 AS col0
----
-81

query I rowsort
SELECT 33 * - 46 + 73 AS col1
----
-1445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5017
SELECT MIN( + - 78 ) * + CAST( + COUNT( + 63 ) AS SIGNED )
----
-78

skipif mysql # not compatible
query I rowsort label-5017
SELECT MIN ( + - 78 ) * + CAST ( + COUNT ( + 63 ) AS INTEGER )
----
-78

query I rowsort
SELECT 62 + + 60 - + 59
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT ( COALESCE ( - 59, 39 DIV + 62 + + 34 + - + 28, 73 DIV 31 - 65 * - COALESCE ( + 83, - 49 ) ) ) * - 15 AS col2
----
885

skipif mysql # not compatible
query I rowsort label-5019
SELECT ( COALESCE ( - 59, 39 / + 62 + + 34 + - + 28, 73 / 31 - 65 * - COALESCE ( + 83, - 49 ) ) ) * - 15 AS col2
----
885

query I rowsort
SELECT - 83 + + - 80 + 91 * - 74 * - 8
----
53709

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

skipif mysql # not compatible
query II rowsort label-5021
SELECT COUNT ( * ), - 81 AS col0
----
1
-81

query I rowsort
SELECT - 57 + - - 59
----
2

query II rowsort
SELECT - - 55 AS col2, + 35 AS col0
----
55
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5024
SELECT ALL + 98 col0, COUNT( * ) * + 54
----
98
54

skipif mysql # not compatible
query II rowsort label-5024
SELECT ALL + 98 col0, COUNT ( * ) * + 54
----
98
54

query I rowsort
SELECT 36 * 53 AS col0
----
1908

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5026
SELECT COUNT( * ) + + + COUNT( * ) AS col2, - 6 + - + ( COALESCE ( 7, - COUNT( * ), - ( - 77 ) DIV - - 75 - COUNT( * ) + + - 97, CAST( NULL AS SIGNED ) * 98 ) ) DIV + 53
----
2
-6

skipif mysql # not compatible
query II rowsort label-5026
SELECT COUNT ( * ) + + + COUNT ( * ) AS col2, - 6 + - + ( COALESCE ( 7, - COUNT ( * ), - ( - 77 ) / - - 75 - COUNT ( * ) + + - 97, CAST ( NULL AS INTEGER ) * 98 ) ) / + 53
----
2
-6

query I rowsort
SELECT DISTINCT + NULLIF ( - ( - 78 ), + 30 + 47 - + - 80 * - 63 + - - 57 ) * - - ( 2 ) * + 1 * 80 * + 33
----
411840

query I rowsort
SELECT 26 * + - 34 AS col1
----
-884

query I rowsort
SELECT ( 32 ) + - 63 col0
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT - CASE - - 12 WHEN 33 THEN - + 16 ELSE - 99 + 22 + 4 * - - ( - - COUNT( * ) ) END
----
73

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT - CASE - - 12 WHEN 33 THEN - + 16 ELSE - 99 + 22 + 4 * - - ( - - COUNT ( * ) ) END
----
73

query I rowsort
SELECT 76 * - 11 AS col1
----
-836

query I rowsort
SELECT DISTINCT 42 + - - 84
----
126

query I rowsort
SELECT 98 * 85
----
8330

onlyif mysql # DIV for integer division: 
query I rowsort label-5035
SELECT 41 + + 70 + + 56 DIV 50
----
112

skipif mysql # not compatible
query I rowsort label-5035
SELECT 41 + + 70 + + 56 / 50
----
112

query I rowsort
SELECT DISTINCT + 75 * ( - - 17 )
----
1275

query I rowsort
SELECT DISTINCT 30 + - 26 * + NULLIF ( - 27, - 98 + 8 )
----
732

query I rowsort
SELECT ALL - 42 + - - 19 * + 52
----
946

query II rowsort
SELECT 21 * - - 83 col2, ( 81 ) + - 67
----
1743
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT ALL + COUNT( * ) * - SUM( ALL - 2 ) + - 50 * - - 3 + 89 + - 39 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + COUNT ( * ) * - SUM ( ALL - 2 ) + - 50 * - - 3 + 89 + - 39 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT - MIN( DISTINCT + NULLIF ( + + 56, + - 93 / - COALESCE ( + + 74, 26 ) * - 45 ) ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT - MIN ( DISTINCT + NULLIF ( + + 56, + - 93 / - COALESCE ( + + 74, 26 ) * - 45 ) ) col2
----
-56

query I rowsort
SELECT DISTINCT + - 11 - - ( - + 78 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-5043
SELECT - COUNT( * ) * + 3, - 65 col0
----
-3
-65

skipif mysql # not compatible
query II rowsort label-5043
SELECT - COUNT ( * ) * + 3, - 65 col0
----
-3
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT - COUNT( * ) * - - 58 + + 42
----
-16

skipif mysql # not compatible
query I rowsort label-5044
SELECT - COUNT ( * ) * - - 58 + + 42
----
-16

query I rowsort
SELECT + 80 * - 4
----
-320

query II rowsort
SELECT ALL - 99 * 41 AS col2, 56 * - 33 * - + 77
----
-4059
142296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5047
SELECT DISTINCT COUNT( - + ( + 96 ) ) DIV - 48
----
0

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT COUNT ( - + ( + 96 ) ) / - 48
----
0

query II rowsort
SELECT ALL - 86 * + 8 * + 40 AS col1, + 99 * + 73 AS col1
----
-27520
7227

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT 36 - + - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5049
SELECT 36 - + - COUNT ( * ) AS col2
----
37

query I rowsort
SELECT ALL 21 * 72 * + 46 col2
----
69552

query I rowsort
SELECT 42 * 28 AS col0
----
1176

onlyif mysql # aggregate syntax: 
query II rowsort label-5052
SELECT ALL 84 AS col0, 55 * + COUNT( * ) + - - COUNT( * )
----
84
56

skipif mysql # not compatible
query II rowsort label-5052
SELECT ALL 84 AS col0, 55 * + COUNT ( * ) + - - COUNT ( * )
----
84
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5053
SELECT - 85 DIV + 80
----
-1

skipif mysql # not compatible
query I rowsort label-5053
SELECT - 85 / + 80
----
-1

query I rowsort
SELECT + 97 * + ( 59 )
----
5723

onlyif mysql # DIV for integer division: 
query II rowsort label-5055
SELECT - 92 AS col0, + 82 DIV 16 AS col0
----
-92
5

skipif mysql # not compatible
query II rowsort label-5055
SELECT - 92 AS col0, + 82 / 16 AS col0
----
-92
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5056
SELECT DISTINCT + ( - 64 ) DIV + - 1 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT + ( - 64 ) / + - 1 AS col0
----
64

query II rowsort
SELECT - 6 AS col2, 18
----
-6
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT DISTINCT - 97 + - 13 + + - MIN( DISTINCT + + 76 ) * - 57 + + 68 AS col0
----
4290

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT - 97 + - 13 + + - MIN ( DISTINCT + + 76 ) * - 57 + + 68 AS col0
----
4290

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT - 95 * - SUM( + 9 ) * - 24 AS col0
----
-20520

skipif mysql # not compatible
query I rowsort label-5059
SELECT - 95 * - SUM ( + 9 ) * - 24 AS col0
----
-20520

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL 19 * - 99 + SUM( DISTINCT + 13 )
----
-1868

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL 19 * - 99 + SUM ( DISTINCT + 13 )
----
-1868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5061
SELECT 43 * COUNT( * ) DIV 54 + CAST( + - 12 AS SIGNED ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5061
SELECT 43 * COUNT ( * ) / 54 + CAST ( + - 12 AS INTEGER ) AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5062
SELECT + COUNT( DISTINCT + CAST( + 29 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5062
SELECT + COUNT ( DISTINCT + CAST ( + 29 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT - MAX( DISTINCT + + 23 ) * + 70 * - + 43 - COUNT( * ) AS col0
----
69229

skipif mysql # not compatible
query I rowsort label-5063
SELECT - MAX ( DISTINCT + + 23 ) * + 70 * - + 43 - COUNT ( * ) AS col0
----
69229

query II rowsort
SELECT ALL 5 * 29 + - 79 AS col1, - 34
----
66
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT + 26 * - + 91 * CAST( NULL AS SIGNED ) - + + 86 + CAST( - - 33 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT + 26 * - + 91 * CAST ( NULL AS INTEGER ) - + + 86 + CAST ( - - 33 AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5066
SELECT - - 40 + + 72 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT - - 40 + + 72 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5067
SELECT + COUNT( * ) * + MAX( - 98 ) + 34 + + - 26 + + 67 * - COUNT( DISTINCT + 7 ) * + - 58 * - 53 + 7 + - MIN( DISTINCT + + 27 ) + + MAX( ALL - 85 - + CAST( NULL AS SIGNED ) * + 80 ) * + 50 * 54 + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT + COUNT ( * ) * + MAX ( - 98 ) + 34 + + - 26 + + 67 * - COUNT ( DISTINCT + 7 ) * + - 58 * - 53 + 7 + - MIN ( DISTINCT + + 27 ) + + MAX ( ALL - 85 - + CAST ( NULL AS INTEGER ) * + 80 ) * + 50 * 54 + - 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5068
SELECT ALL 2 DIV + 64 + CASE + + 16 WHEN - CAST( + AVG ( - + 69 ) AS SIGNED ) THEN NULL ELSE ( - COUNT( * ) ) - + - 10 END + + 23 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL 2 / + 64 + CASE + + 16 WHEN - CAST ( + AVG ( - + 69 ) AS INTEGER ) THEN NULL ELSE ( - COUNT ( * ) ) - + - 10 END + + 23 AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5069
SELECT DISTINCT + 64, - 51 DIV - 59 * + COUNT( * ) + - - 59 col1
----
64
59

skipif mysql # not compatible
query II rowsort label-5069
SELECT DISTINCT + 64, - 51 / - 59 * + COUNT ( * ) + - - 59 col1
----
64
59

query II rowsort
SELECT + 80 col0, 5 AS col0
----
80
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT + CAST( 67 AS SIGNED ) + - 13 + 48 * - 66 AS col1
----
-3114

skipif mysql # not compatible
query I rowsort label-5071
SELECT + CAST ( 67 AS INTEGER ) + - 13 + 48 * - 66 AS col1
----
-3114

onlyif mysql # DIV for integer division: 
query I rowsort label-5072
SELECT - 29 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-5072
SELECT - 29 / 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT + NULLIF ( + 25, - ( + - 44 ) * - 16 * + 63 - + 54 + - NULLIF ( + NULLIF ( + + 12, - 77 ), + + COALESCE ( + 19, + MAX( DISTINCT 73 ) ) * 99 ) ) + + CASE 48 + + 62 WHEN NULLIF ( 63, + 85 * + COUNT( * ) ) THEN NULL WHEN SUM( ALL ( - 11 ) ) THEN 26 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT + NULLIF ( + 25, - ( + - 44 ) * - 16 * + 63 - + 54 + - NULLIF ( + NULLIF ( + + 12, - 77 ), + + COALESCE ( + 19, + MAX ( DISTINCT 73 ) ) * 99 ) ) + + CASE 48 + + 62 WHEN NULLIF ( 63, + 85 * + COUNT ( * ) ) THEN NULL WHEN SUM ( ALL ( - 11 ) ) THEN 26 END AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT 86 * + + 14 - - 75 * 61 * - 47 * + - ( - - 14 ) AS col1
----
3011554

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT ALL + 50 DIV ( - 35 ) + - 21 DIV + 10
----
-3

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL + 50 / ( - 35 ) + - 21 / + 10
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT + - ( - - NULLIF ( MAX( + - 44 ), + 47 / + - 77 + - COUNT( * ) ) )
----
44

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT + - ( - - NULLIF ( MAX ( + - 44 ), + 47 / + - 77 + - COUNT ( * ) ) )
----
44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5079
SELECT + + CAST( AVG ( ALL 75 ) AS SIGNED ) + + - 37 + + ( - 88 ) + - 30 + - MAX( DISTINCT 8 ) + 36
----
-52

skipif mysql # not compatible
query I rowsort label-5079
SELECT + + CAST ( AVG ( ALL 75 ) AS INTEGER ) + + - 37 + + ( - 88 ) + - 30 + - MAX ( DISTINCT 8 ) + 36
----
-52

query II rowsort
SELECT + 9 * - 55, 18 AS col0
----
-495
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT + 97 + + COUNT( * ) + + 84 + + 14 * 95 * - 90
----
-119518

skipif mysql # not compatible
query I rowsort label-5081
SELECT + 97 + + COUNT ( * ) + + 84 + + 14 * 95 * - 90
----
-119518

query I rowsort
SELECT - NULLIF ( + ( 62 ), 83 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL + 10 + - COUNT( ALL - 79 )
----
9

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + 10 + - COUNT ( ALL - 79 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5084
SELECT ALL COALESCE ( + - 38, 54 + - + MAX( - 27 ) ) DIV - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL COALESCE ( + - 38, 54 + - + MAX ( - 27 ) ) / - 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT + COUNT( * ) + + - 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5085
SELECT + COUNT ( * ) + + - 93 AS col0
----
-92

query I rowsort
SELECT DISTINCT + 38 * 97 * 17 * + 65 AS col0
----
4073030

query I rowsort
SELECT ALL NULLIF ( - - 23, - 41 )
----
23

query I rowsort
SELECT - 20 + 85
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5089
SELECT ALL 25 + + 49, COUNT( ALL + + 71 ) * - 75 * + + 32 * + CASE - 82 WHEN 7 THEN 23 ELSE 79 * + MAX( COALESCE ( - 6, 92 + + 84 ) ) + - COUNT( * ) END * 30 AS col2
----
74
34200000

skipif mysql # not compatible
query II rowsort label-5089
SELECT ALL 25 + + 49, COUNT ( ALL + + 71 ) * - 75 * + + 32 * + CASE - 82 WHEN 7 THEN 23 ELSE 79 * + MAX ( COALESCE ( - 6, 92 + + 84 ) ) + - COUNT ( * ) END * 30 AS col2
----
74
34200000

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT - CASE 72 WHEN - COUNT( * ) THEN + 1 ELSE NULL END + + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT - CASE 72 WHEN - COUNT ( * ) THEN + 1 ELSE NULL END + + + 60
----
NULL

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

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

query I rowsort
SELECT - ( - - 79 ) + + ( - 89 ) col0
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5093
SELECT DISTINCT CASE - CAST( - + 10 AS SIGNED ) WHEN + COUNT( * ) THEN - + 64 + + COUNT( * ) + + NULLIF ( + NULLIF ( COALESCE ( + - 6, + + 81 * + 79 * - + ( + 38 ) ), 57 + - COUNT( * ) ), - COALESCE ( + 95, - 52 * 28 + + 70, 35 * 85 ) ) / + 28 WHEN - 52 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT CASE - CAST ( - + 10 AS INTEGER ) WHEN + COUNT ( * ) THEN - + 64 + + COUNT ( * ) + + NULLIF ( + NULLIF ( COALESCE ( + - 6, + + 81 * + 79 * - + ( + 38 ) ), 57 + - COUNT ( * ) ), - COALESCE ( + 95, - 52 * 28 + + 70, 35 * 85 ) ) / + 28 WHEN - 52 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT + 84 * 15 DIV - - 30 col0
----
42

skipif mysql # not compatible
query I rowsort label-5094
SELECT + 84 * 15 / - - 30 col0
----
42

query I rowsort
SELECT - 89 + - 56 AS col1
----
-145

query I rowsort
SELECT - 48 * - - 91 * 39 AS col2
----
-170352

query I rowsort
SELECT DISTINCT NULLIF ( + 27, 89 * 9 ) AS col0
----
27

query I rowsort
SELECT - 33 * + + 59 * 66 AS col2
----
-128502

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT ALL - 6 DIV - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL - 6 / - 81 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5100
SELECT DISTINCT + - 52 DIV - SUM( - 77 ) - + - 37, + 51 AS col2
----
37
51

skipif mysql # not compatible
query II rowsort label-5100
SELECT DISTINCT + - 52 / - SUM ( - 77 ) - + - 37, + 51 AS col2
----
37
51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5102
SELECT - + 34 - - + 41 DIV - 39 + - ( + 38 )
----
-73

skipif mysql # not compatible
query I rowsort label-5102
SELECT - + 34 - - + 41 / - 39 + - ( + 38 )
----
-73

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

query II rowsort
SELECT ALL + + ( + 92 ), 19 * + - 69 AS col1
----
92
-1311

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT - - COUNT( * ) * 12 + - - 91 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-5105
SELECT - - COUNT ( * ) * 12 + - - 91 AS col0
----
103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT DISTINCT + CASE COUNT( * ) WHEN + COUNT( * ) THEN NULL WHEN + + ( + - 87 ) * + 15 THEN + + 40 / - 53 + + ( - 51 ) WHEN - 61 * - + CASE 24 WHEN - + COUNT( * ) THEN NULL ELSE 56 END THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT + CASE COUNT ( * ) WHEN + COUNT ( * ) THEN NULL WHEN + + ( + - 87 ) * + 15 THEN + + 40 / - 53 + + ( - 51 ) WHEN - 61 * - + CASE 24 WHEN - + COUNT ( * ) THEN NULL ELSE 56 END THEN NULL END AS col0
----
NULL

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

query I rowsort
SELECT ALL 20 + - 61 + 21 * 68
----
1387

query I rowsort
SELECT 99 * - ( + 66 )
----
-6534

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL - - MAX( + NULLIF ( + 56, 4 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - - MAX ( + NULLIF ( + 56, 4 ) ) AS col0
----
56

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

skipif mysql # not compatible
query I rowsort label-5112
SELECT ( + COUNT ( DISTINCT + ( + 84 ) ) ) / COUNT ( * )
----
1

query II rowsort
SELECT - 27, - 81 * + - 62 AS col0
----
-27
5022

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

skipif mysql # not compatible
query I rowsort label-5114
SELECT COUNT ( * ) / - - 76
----
0

query I rowsort
SELECT DISTINCT 85 + + 94
----
179

query I rowsort
SELECT ALL 20 + 70 AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5117
SELECT ALL 26 + - COALESCE ( + 64, COUNT( 56 ) ) * - + COUNT( * ) DIV + 73
----
26

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL 26 + - COALESCE ( + 64, COUNT ( 56 ) ) * - + COUNT ( * ) / + 73
----
26

query I rowsort
SELECT 57 - + + 5
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5119
SELECT SUM( - 15 ) * + 88 AS col2, - 39 + - + COUNT( * ) - - 20 + - - 53 DIV - 74 - + - 86
----
-1320
66

skipif mysql # not compatible
query II rowsort label-5119
SELECT SUM ( - 15 ) * + 88 AS col2, - 39 + - + COUNT ( * ) - - 20 + - - 53 / - 74 - + - 86
----
-1320
66

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

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

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

query I rowsort
SELECT ALL + 44 * - 40
----
-1760

query I rowsort
SELECT + CASE 70 WHEN + 8 + - 74 THEN 16 END + 48 + - 60 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5124
SELECT + - CASE WHEN CAST( NULL AS SIGNED ) IS NOT NULL THEN + + 41 ELSE - CAST( - - 74 AS SIGNED ) END
----
74

skipif mysql # not compatible
query I rowsort label-5124
SELECT + - CASE WHEN CAST ( NULL AS INTEGER ) IS NOT NULL THEN + + 41 ELSE - CAST ( - - 74 AS INTEGER ) END
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5125
SELECT SUM( DISTINCT 58 ) * ( - - COUNT( * ) ) * 61, - 97 DIV - 2 AS col0
----
3538
48

skipif mysql # not compatible
query II rowsort label-5125
SELECT SUM ( DISTINCT 58 ) * ( - - COUNT ( * ) ) * 61, - 97 / - 2 AS col0
----
3538
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT DISTINCT - + MIN( ALL - NULLIF ( - 97, + 10 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT - + MIN ( ALL - NULLIF ( - 97, + 10 ) )
----
-97

query I rowsort
SELECT 75 + - - ( + + 67 )
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT DISTINCT - NULLIF ( 59, - COUNT( * ) * 78 ) * - 32
----
1888

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT - NULLIF ( 59, - COUNT ( * ) * 78 ) * - 32
----
1888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5130
SELECT + 74 + - 47 - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - CAST( + 75 AS SIGNED ) + + + ( + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5130
SELECT + 74 + - 47 - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - CAST ( + 75 AS INTEGER ) + + + ( + 87 )
----
NULL

query I rowsort
SELECT ALL - 67 + - 31 - 9 + 30 * - - ( 2 ) - - + 18 * + + 59 + 91 * - 19
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL + ( ( + MIN( + 30 ) ) ) * - + CASE + 89 WHEN 93 * + 96 - - - 90 * - ( + - 63 ) + - + 27 THEN + - 68 - - 25 + - 93 * 37 WHEN 98 THEN NULL END * 8 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + ( ( + MIN ( + 30 ) ) ) * - + CASE + 89 WHEN 93 * + 96 - - - 90 * - ( + - 63 ) + - + 27 THEN + - 68 - - 25 + - 93 * 37 WHEN 98 THEN NULL END * 8 col1
----
NULL

query I rowsort
SELECT 31 * 18 + + 83 * COALESCE ( 46, + 20 ) * - 8 col0
----
-29986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5134
SELECT 71 + - CASE - + COALESCE ( - + 79, + 60 * 1 + + + NULLIF ( + 4, - 56 ) * 47 ) WHEN 16 + - - 86 + - + 44 + - NULLIF ( COUNT( * ), - 13 ) - + CAST( 58 + + 10 * 71 AS SIGNED ) THEN 53 * 80 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT 71 + - CASE - + COALESCE ( - + 79, + 60 * 1 + + + NULLIF ( + 4, - 56 ) * 47 ) WHEN 16 + - - 86 + - + 44 + - NULLIF ( COUNT ( * ), - 13 ) - + CAST ( 58 + + 10 * 71 AS INTEGER ) THEN 53 * 80 END * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5135
SELECT + 25, - CAST( - 1 AS SIGNED ) + + 70 - - AVG ( + - CAST( NULL AS SIGNED ) ) / - CAST( NULL AS SIGNED ) * + - AVG ( - 45 ) * 3 * COUNT( * ) * ( - + 59 ) * - 97 + + 63 AS col2
----
25
NULL

skipif mysql # not compatible
query II rowsort label-5135
SELECT + 25, - CAST ( - 1 AS INTEGER ) + + 70 - - AVG ( + - CAST ( NULL AS INTEGER ) ) / - CAST ( NULL AS INTEGER ) * + - AVG ( - 45 ) * 3 * COUNT ( * ) * ( - + 59 ) * - 97 + + 63 AS col2
----
25
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5136
SELECT 45 * ( - 65 ) DIV + + 94, - 99 AS col1
----
-31
-99

skipif mysql # not compatible
query II rowsort label-5136
SELECT 45 * ( - 65 ) / + + 94, - 99 AS col1
----
-31
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5137
SELECT ALL + 55 + + + 34 col2, 83 * + + CAST( NULL AS SIGNED )
----
89
NULL

skipif mysql # not compatible
query II rowsort label-5137
SELECT ALL + 55 + + + 34 col2, 83 * + + CAST ( NULL AS INTEGER )
----
89
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5138
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, 42 * - NULLIF ( CAST( NULL AS SIGNED ), 23 ) + + ( CAST( - + 7 AS DECIMAL ) ) + 28 * + - 89
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5138
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 42 * - NULLIF ( CAST ( NULL AS INTEGER ), 23 ) + + ( CAST ( - + 7 AS REAL ) ) + 28 * + - 89
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 10 + - 81
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5140
SELECT - 91 AS col2, + COALESCE ( + + COUNT( * ), + ( 82 ), 72 )
----
-91
1

skipif mysql # not compatible
query II rowsort label-5140
SELECT - 91 AS col2, + COALESCE ( + + COUNT ( * ), + ( 82 ), 72 )
----
-91
1

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

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL - 93 + - COUNT ( * ) * + 64 AS col2
----
-157

query I rowsort
SELECT 60 - + 83 * - 93
----
7779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5143
SELECT 2 - - - 22 + + ( MIN( - CAST( NULL AS SIGNED ) ) ) - - + SUM( DISTINCT + - 54 ) * + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT 2 - - - 22 + + ( MIN ( - CAST ( NULL AS INTEGER ) ) ) - - + SUM ( DISTINCT + - 54 ) * + 4 AS col2
----
NULL

query II rowsort
SELECT ALL 59, + 14 AS col0
----
59
14

query I rowsort
SELECT ALL - 21 * - ( - 71 ) AS col0
----
-1491

query II rowsort
SELECT ALL 67 AS col1, CASE - 74 WHEN 88 THEN + 32 END * + 32 + + 12
----
67
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5147
SELECT - COUNT( * ) AS col0, 35 DIV - + COUNT( * ) + + COUNT( * ) - 31 AS col0
----
-1
-65

skipif mysql # not compatible
query II rowsort label-5147
SELECT - COUNT ( * ) AS col0, 35 / - + COUNT ( * ) + + COUNT ( * ) - 31 AS col0
----
-1
-65

query II rowsort
SELECT + 87 col0, 63 AS col1
----
87
63

query I rowsort
SELECT 18 + - 18 * - + 44 * - + 21 AS col1
----
-16614

query II rowsort
SELECT DISTINCT 43 AS col1, + 14 AS col2
----
43
14

query II rowsort
SELECT - 66 AS col1, 20 AS col1
----
-66
20

query II rowsort
SELECT DISTINCT - 41 AS col1, 50 AS col0
----
-41
50

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

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

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

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

query I rowsort
SELECT DISTINCT - 47 * + 92 + + - 53
----
-4377

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

skipif mysql # not compatible
query I rowsort label-5156
SELECT + COUNT ( * ) - + ( - 98 ) AS col1
----
99

query II rowsort
SELECT + + 13 AS col2, 88
----
13
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL + 4 * + - 58 - - + MAX( ALL + - 84 ) + COUNT( * ) * - 41
----
-357

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL + 4 * + - 58 - - + MAX ( ALL + - 84 ) + COUNT ( * ) * - 41
----
-357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5159
SELECT DISTINCT + CAST( + CAST( - - COUNT( * ) AS SIGNED ) AS SIGNED ) * + ( - 97 ) + 98 * + - 34 - + 73
----
-3502

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT + CAST ( + CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) * + ( - 97 ) + 98 * + - 34 - + 73
----
-3502

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT DISTINCT - 19 * - SUM( - 99 ) col2
----
-1881

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT - 19 * - SUM ( - 99 ) col2
----
-1881

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5162
SELECT ALL - COUNT( * ) * - 60 * COUNT( * ) DIV + 35 + + + 60, NULLIF ( - + 62, - + 73 * - - 54 + SUM( DISTINCT + 62 ) ) AS col0
----
61
-62

skipif mysql # not compatible
query II rowsort label-5162
SELECT ALL - COUNT ( * ) * - 60 * COUNT ( * ) / + 35 + + + 60, NULLIF ( - + 62, - + 73 * - - 54 + SUM ( DISTINCT + 62 ) ) AS col0
----
61
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + 67 * 1 * + - 85 - + COUNT( * ) AS col2
----
-5696

skipif mysql # not compatible
query I rowsort label-5163
SELECT + 67 * 1 * + - 85 - + COUNT ( * ) AS col2
----
-5696

query I rowsort
SELECT ALL + NULLIF ( - 33, 35 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-5165
SELECT ALL 9 DIV + COALESCE ( COALESCE ( + 60, + + 51 ), - 30 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL 9 / + COALESCE ( COALESCE ( + 60, + + 51 ), - 30 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT + CASE - 94 WHEN + + 12 * - + 25 + 72 * ( 71 ) * - 61 + 96 THEN + - 55 + 59 END * + 43 * + 5 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT + CASE - 94 WHEN + + 12 * - + 25 + 72 * ( 71 ) * - 61 + 96 THEN + - 55 + 59 END * + 43 * + 5 * + + COUNT ( * )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5168
SELECT + ( + - 63 ) + 91 * + CAST( NULL AS SIGNED ) + + COUNT( * ) + + - CASE - 2 WHEN COUNT( * ) + 45 THEN - - 87 ELSE 50 * + ( - - 89 ) * + - 39 + + + MIN( + 7 ) * - 63 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT + ( + - 63 ) + 91 * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + - CASE - 2 WHEN COUNT ( * ) + 45 THEN - - 87 ELSE 50 * + ( - - 89 ) * + - 39 + + + MIN ( + 7 ) * - 63 * + COUNT ( * ) END
----
NULL

query II rowsort
SELECT - 49 - + 15 col0, + 68 * 94 * + 22
----
-64
140624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT ALL 67 * + CAST( + + 99 AS SIGNED ) AS col2
----
6633

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL 67 * + CAST ( + + 99 AS INTEGER ) AS col2
----
6633

query I rowsort
SELECT DISTINCT COALESCE ( 9, + + 94 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT DISTINCT 2 * COALESCE ( - - COUNT( * ), - 5 )
----
2

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT 2 * COALESCE ( - - COUNT ( * ), - 5 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5173
SELECT - 13 * + 21 DIV + COUNT( * ) DIV - - COUNT( * ) AS col1
----
-273

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT DISTINCT ( - SUM( ALL - ( - 87 ) ) )
----
-87

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT ( - SUM ( ALL - ( - 87 ) ) )
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT - 89 + 27 DIV + 21 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-5175
SELECT - 89 + 27 / + 21 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT - 66 - COUNT( * ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-5176
SELECT - 66 - COUNT ( * ) col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5177
SELECT - + CASE + SUM( COALESCE ( - + 51, 63 / - 94, + 44 ) ) WHEN + 79 THEN NULL ELSE CAST( - - 31 AS SIGNED ) + - 19 + + 25 - + 77 * + - CAST( CASE + CAST( - + 92 AS SIGNED ) WHEN 96 THEN NULLIF ( + 47, + 9 ) + - 75 ELSE CASE - 47 WHEN 7 * 56 THEN + COUNT( ALL 20 ) ELSE - AVG ( 1 ) END / 71 END AS SIGNED ) END AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5177
SELECT - + CASE + SUM ( COALESCE ( - + 51, 63 / - 94, + 44 ) ) WHEN + 79 THEN NULL ELSE CAST ( - - 31 AS INTEGER ) + - 19 + + 25 - + 77 * + - CAST ( CASE + CAST ( - + 92 AS INTEGER ) WHEN 96 THEN NULLIF ( + 47, + 9 ) + - 75 ELSE CASE - 47 WHEN 7 * 56 THEN + COUNT ( ALL 20 ) ELSE - AVG ( 1 ) END / 71 END AS INTEGER ) END AS col0
----
-37

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

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT - MIN ( - 5 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5179
SELECT ALL - + MIN( 66 ) + - 17 + - CAST( - 91 AS SIGNED ) * + 19 * - - 36 AS col1, 89 - + - 19 * COUNT( * ) AS col2
----
62161
108

skipif mysql # not compatible
query II rowsort label-5179
SELECT ALL - + MIN ( 66 ) + - 17 + - CAST ( - 91 AS INTEGER ) * + 19 * - - 36 AS col1, 89 - + - 19 * COUNT ( * ) AS col2
----
62161
108

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

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

query I rowsort
SELECT - + 97 * - ( - + 57 )
----
-5529

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT ALL + 11 + - - 49 DIV - + 74
----
11

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL + 11 + - - 49 / - + 74
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5183
SELECT - NULLIF ( + 62, + 22 + - COUNT( * ) ) - - - 42 AS col2, 90 * + COUNT( * ) AS col0
----
-104
90

skipif mysql # not compatible
query II rowsort label-5183
SELECT - NULLIF ( + 62, + 22 + - COUNT ( * ) ) - - - 42 AS col2, 90 * + COUNT ( * ) AS col0
----
-104
90

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

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

query II rowsort
SELECT ALL + 42 * - 64 AS col0, ( - 69 ) * 2
----
-2688
-138

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5186
SELECT + 42 * + NULLIF ( 78, CAST( NULL AS DECIMAL ) )
----
3276

skipif mysql # not compatible
query I rowsort label-5186
SELECT + 42 * + NULLIF ( 78, CAST ( NULL AS REAL ) )
----
3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5187
SELECT + 83 * 12 * + - 59 + - 95 - - - CAST( 36 AS SIGNED ) DIV + 67 + COUNT( * ) AS col2
----
-58858

skipif mysql # not compatible
query I rowsort label-5187
SELECT + 83 * 12 * + - 59 + - 95 - - - CAST ( 36 AS INTEGER ) / + 67 + COUNT ( * ) AS col2
----
-58858

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5188
SELECT ALL + 57 DIV 44 + - 71 + + 59 * - 78 + - ( + 51 ) * 56 * + NULLIF ( - ( ( ( + 50 ) ) ), + 44 ) + 14 * - COALESCE ( - COALESCE ( 19, CAST( NULL AS SIGNED ) ), + 62 ) + - 49 * + 46
----
136140

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL + 57 / 44 + - 71 + + 59 * - 78 + - ( + 51 ) * 56 * + NULLIF ( - ( ( ( + 50 ) ) ), + 44 ) + 14 * - COALESCE ( - COALESCE ( 19, CAST ( NULL AS INTEGER ) ), + 62 ) + - 49 * + 46
----
136140

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT + 8 DIV - 39 * + 94 + 7 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5189
SELECT + 8 / - 39 * + 94 + 7 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT - CASE + 85 WHEN - + 72 THEN NULL WHEN SUM( DISTINCT 47 ) THEN NULL ELSE + MIN( 0 ) END * 9 - - SUM( DISTINCT 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5190
SELECT - CASE + 85 WHEN - + 72 THEN NULL WHEN SUM ( DISTINCT 47 ) THEN NULL ELSE + MIN ( 0 ) END * 9 - - SUM ( DISTINCT 37 ) AS col2
----
37

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT ALL - + 0 DIV - - 7 + - - 74 + + + 53
----
127

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL - + 0 / - - 7 + - - 74 + + + 53
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT + 0 * + 59 + - - 26 * + + SUM( - 11 )
----
-286

skipif mysql # not compatible
query I rowsort label-5193
SELECT + 0 * + 59 + - - 26 * + + SUM ( - 11 )
----
-286

query I rowsort
SELECT ( + NULLIF ( - 92, + 92 * 96 + + + 20 + + + 10 * + 96 + + 72 * - 73 ) ) AS col2
----
-92

query I rowsort
SELECT + 80 + + 54 + - 35 * 43
----
-1371

onlyif mysql # aggregate syntax: 
query II rowsort label-5196
SELECT ALL + 25 AS col1, COALESCE ( + 62, + COUNT( * ) ) * + COALESCE ( - 71, + 58, - 22 ) AS col2
----
25
-4402

skipif mysql # not compatible
query II rowsort label-5196
SELECT ALL + 25 AS col1, COALESCE ( + 62, + COUNT ( * ) ) * + COALESCE ( - 71, + 58, - 22 ) AS col2
----
25
-4402

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + ( + COALESCE ( + 71, - - 79, MIN( DISTINCT - 25 ) ) )
----
71

skipif mysql # not compatible
query I rowsort label-5198
SELECT + ( + COALESCE ( + 71, - - 79, MIN ( DISTINCT - 25 ) ) )
----
71

query II rowsort
SELECT ALL + 41 col0, 30
----
41
30

query I rowsort
SELECT ALL 67 * - 39 AS col0
----
-2613

query I rowsort
SELECT + 31 + - + 0 AS col2
----
31

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

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

query I rowsort
SELECT + 1 * - 18 AS col0
----
-18

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

skipif mysql # not compatible
query I rowsort label-5204
SELECT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + 54 - 49 AS col2
----
5

query I rowsort
SELECT - + 70 + + + 53 + 71 * + 19
----
1332

onlyif mysql # aggregate syntax: 
query III rowsort label-5207
SELECT DISTINCT - - 19 * + - NULLIF ( 55, - MAX( + 9 ) ) * - 56 + + - 28 + - 29 AS col1, - COUNT( * ) AS col2, - 67 AS col2
----
58463
-1
-67

skipif mysql # not compatible
query III rowsort label-5207
SELECT DISTINCT - - 19 * + - NULLIF ( 55, - MAX ( + 9 ) ) * - 56 + + - 28 + - 29 AS col1, - COUNT ( * ) AS col2, - 67 AS col2
----
58463
-1
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT DISTINCT - COUNT( * ) + 28 + + - CAST( - AVG ( 66 ) AS SIGNED ) * + ( + 84 ) AS col2
----
5571

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT - COUNT ( * ) + 28 + + - CAST ( - AVG ( 66 ) AS INTEGER ) * + ( + 84 ) AS col2
----
5571

query I rowsort
SELECT DISTINCT + - 6 + + 31
----
25

query I rowsort
SELECT ALL - - 43 + + 93
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT 81 + COUNT( * ) + + + 77 + - 78 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5211
SELECT 81 + COUNT ( * ) + + + 77 + - 78 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT DISTINCT 69 * COUNT( * ) col2
----
69

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT 69 * COUNT ( * ) col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT - 13 + + 88 + COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-5213
SELECT - 13 + + 88 + COUNT ( * ) AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5214
SELECT - ( 33 ) + + CAST( 62 AS SIGNED ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5214
SELECT - ( 33 ) + + CAST ( 62 AS INTEGER ) AS col1
----
29

query I rowsort
SELECT ALL + 80 + 41 col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT - SUM( ALL 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-5216
SELECT - SUM ( ALL 48 )
----
-48

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

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL + 88 + ( ( COUNT ( * ) ) ) AS col0
----
89

query II rowsort
SELECT ALL COALESCE ( 9, + 90 ) AS col0, 51 * 71 col0
----
9
3621

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

query I rowsort
SELECT ALL + 39 * - + 44 AS col2
----
-1716

query I rowsort
SELECT ALL + - 59 * + 72 + 63 col0
----
-4185

query II rowsort
SELECT ALL - - 3 col0, 24 AS col2
----
3
24

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5224
SELECT DISTINCT + 6 * 70 AS col1, + SUM( - - 40 ) AS col1
----
420
40

skipif mysql # not compatible
query II rowsort label-5224
SELECT DISTINCT + 6 * 70 AS col1, + SUM ( - - 40 ) AS col1
----
420
40

query I rowsort
SELECT 45 * + - 37
----
-1665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5226
SELECT + CASE - CASE 22 WHEN - COUNT( * ) - - 85 + + + COUNT( * ) * - 58 THEN NULL WHEN - 75 * CAST( 88 AS SIGNED ) + - - 70 THEN - - 63 WHEN - - 89 * - + 34 THEN + 77 END WHEN - COUNT( * ) THEN MIN( DISTINCT 53 ) ELSE NULL END / - + 69 + - 37 - - MIN( 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT + CASE - CASE 22 WHEN - COUNT ( * ) - - 85 + + + COUNT ( * ) * - 58 THEN NULL WHEN - 75 * CAST ( 88 AS INTEGER ) + - - 70 THEN - - 63 WHEN - - 89 * - + 34 THEN + 77 END WHEN - COUNT ( * ) THEN MIN ( DISTINCT 53 ) ELSE NULL END / - + 69 + - 37 - - MIN ( 73 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT 60 - - CASE - 54 WHEN + 63 THEN - 84 ELSE + 86 * + - 15 END * - CAST( + - 59 AS SIGNED )
----
-76050

skipif mysql # not compatible
query I rowsort label-5227
SELECT 60 - - CASE - 54 WHEN + 63 THEN - 84 ELSE + 86 * + - 15 END * - CAST ( + - 59 AS INTEGER )
----
-76050

query I rowsort
SELECT 96 * + + 68 * 0
----
0

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

query I rowsort
SELECT 86 * 29 AS col2
----
2494

query I rowsort
SELECT ALL 49 * - - 98 AS col2
----
4802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT DISTINCT - COALESCE ( - - CAST( NULL AS SIGNED ), + 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT - COALESCE ( - - CAST ( NULL AS INTEGER ), + 93 )
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-5233
SELECT 76 DIV ( + 56 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5233
SELECT 76 / ( + 56 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL COUNT( * ) + - CASE ( NULLIF ( - + COUNT( * ), + 63 ) ) WHEN 35 THEN NULL ELSE + 39 END * - 6 + 24 AS col1
----
259

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL COUNT ( * ) + - CASE ( NULLIF ( - + COUNT ( * ), + 63 ) ) WHEN 35 THEN NULL ELSE + 39 END * - 6 + 24 AS col1
----
259

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5235
SELECT MIN( - 8 ) + - 45 DIV + 44 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5235
SELECT MIN ( - 8 ) + - 45 / + 44 AS col0
----
-9

query II rowsort
SELECT ALL + 66 + 18 col0, - 66 * 20
----
84
-1320

query I rowsort
SELECT ALL 14 + + 58 AS col1
----
72

query I rowsort
SELECT + 84 * + 3
----
252

query I rowsort
SELECT DISTINCT + COALESCE ( 89, 80 ) + + 36 AS col0
----
125

query II rowsort
SELECT - 2 + - 53 col1, 1
----
-55
1

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

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

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL + ( - - 2 ) + - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + 50 - + 78 AS col0
----
-28

query I rowsort
SELECT - - COALESCE ( - 29, 78 ) AS col2
----
-29

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

query I rowsort
SELECT - 33 * - - 72
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL + 59 * + MIN( 24 )
----
1416

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + 59 * + MIN ( 24 )
----
1416

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT DISTINCT - 90 - COUNT( * ) * 30
----
-120

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT - 90 - COUNT ( * ) * 30
----
-120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ALL COALESCE ( 34, - + MIN( ALL - - 8 ) * + 56, + + 50 )
----
34

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL COALESCE ( 34, - + MIN ( ALL - - 8 ) * + 56, + + 50 )
----
34

query I rowsort
SELECT + COALESCE ( + + 8, 90 ) + + 99 AS col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT - - SUM( 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5252
SELECT - - SUM ( 6 ) AS col1
----
6

query II rowsort
SELECT + 4 * - + ( + 29 ) - + 79 + - 92, 18 * 72 AS col0
----
-287
1296

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5254
SELECT ALL + 93 DIV MAX( DISTINCT - 39 ), 57 AS col1
----
-2
57

skipif mysql # not compatible
query II rowsort label-5254
SELECT ALL + 93 / MAX ( DISTINCT - 39 ), 57 AS col1
----
-2
57

query I rowsort
SELECT 70 + - - 23
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5256
SELECT ALL + 93 DIV - 58 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL + 93 / - 58 AS col0
----
-1

query I rowsort
SELECT 66 * - 44 * - 18 + 20 AS col0
----
52292

query I rowsort
SELECT DISTINCT + 75 * + 39 AS col0
----
2925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5259
SELECT COUNT( * ) DIV + NULLIF ( - 2, + - 73 )
----
0

skipif mysql # not compatible
query I rowsort label-5259
SELECT COUNT ( * ) / + NULLIF ( - 2, + - 73 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT DISTINCT + 57 + - + 97 + - - CAST( - - 85 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT + 57 + - + 97 + - - CAST ( - - 85 AS INTEGER )
----
45

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5262
SELECT COUNT( * ) AS col0, 95 * 29 AS col1
----
1
2755

skipif mysql # not compatible
query II rowsort label-5262
SELECT COUNT ( * ) AS col0, 95 * 29 AS col1
----
1
2755

query I rowsort
SELECT DISTINCT + 85 + - 68 + + 33 - - 86 col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT 94 * + 20 + + COUNT( * ) * - 35 * - 47 + - - 27 + + 35 AS col2
----
3587

skipif mysql # not compatible
query I rowsort label-5264
SELECT 94 * + 20 + + COUNT ( * ) * - 35 * - 47 + - - 27 + + 35 AS col2
----
3587

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT ALL + 4 + - 60 + - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL + 4 + - 60 + - COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT CASE - 10 WHEN - + COALESCE ( + - 91, COUNT( * ) ) - + + 42 THEN NULL ELSE + + 0 END + + 65 + 54 + + COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT CASE - 10 WHEN - + COALESCE ( + - 91, COUNT ( * ) ) - + + 42 THEN NULL ELSE + + 0 END + + 65 + 54 + + COUNT ( * )
----
120

query I rowsort
SELECT ALL 3 + - - 67
----
70

query I rowsort
SELECT + 73 * - 16 * + 73 + + + 7
----
-85257

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5269
SELECT ALL + + 42, + CAST( NULL AS SIGNED ) AS col2
----
42
NULL

skipif mysql # not compatible
query II rowsort label-5269
SELECT ALL + + 42, + CAST ( NULL AS INTEGER ) AS col2
----
42
NULL

query I rowsort
SELECT ( - - CASE 78 WHEN - 58 THEN + + 58 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5271
SELECT ALL 65 + 58 + + - COUNT( * ) + + 82 + MIN( ALL + CAST( - 60 AS SIGNED ) ) + - 49 * 8
----
-248

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL 65 + 58 + + - COUNT ( * ) + + 82 + MIN ( ALL + CAST ( - 60 AS INTEGER ) ) + - 49 * 8
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - - 49 * + NULLIF ( COUNT( * ), - 74 * + - NULLIF ( - ( COUNT( 67 ) ), 91 + - 50 + + 80 / + - 79 ) * 61 + - SUM( - 98 ) / + + COUNT( * ) ) col0
----
49

skipif mysql # not compatible
query I rowsort label-5272
SELECT - - 49 * + NULLIF ( COUNT ( * ), - 74 * + - NULLIF ( - ( COUNT ( 67 ) ), 91 + - 50 + + 80 / + - 79 ) * 61 + - SUM ( - 98 ) / + + COUNT ( * ) ) col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-5273
SELECT + ( + ( - + 56 ) ) col1, COUNT( * ) * - 35 - - 55 * + - ( 3 ) * + 4
----
-56
-695

skipif mysql # not compatible
query II rowsort label-5273
SELECT + ( + ( - + 56 ) ) col1, COUNT ( * ) * - 35 - - 55 * + - ( 3 ) * + 4
----
-56
-695

query I rowsort
SELECT ALL + 94 - 91
----
3

query I rowsort
SELECT + 75 * - + ( + - 18 ) col2
----
1350

query I rowsort
SELECT DISTINCT - 61 * + - 38 * 23 AS col0
----
53314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5277
SELECT + + 92 + + 7 * - CAST( + - 25 AS SIGNED )
----
267

skipif mysql # not compatible
query I rowsort label-5277
SELECT + + 92 + + 7 * - CAST ( + - 25 AS INTEGER )
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT + - 17 + - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-5278
SELECT + - 17 + - COUNT ( * )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT + 51 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-5279
SELECT + 51 / + 39
----
1

query I rowsort
SELECT + + 42 + + - 91
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5281
SELECT DISTINCT + ( 61 ) DIV 78 * + 74
----
0

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT + ( 61 ) / 78 * + 74
----
0

query II rowsort
SELECT + - 67 * + 31 * + + 34 col0, 56 * 52
----
-70618
2912

query I rowsort
SELECT ALL 39 * - 37
----
-1443

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

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

query I rowsort
SELECT + ( 59 ) * - 8 AS col1
----
-472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5286
SELECT ALL 50 * - COUNT( * ) + - + COALESCE ( 57, COUNT( * ) - - 36 ) + + - CAST( - - 18 AS SIGNED ) * + MIN( DISTINCT - - 29 ) AS col1
----
-629

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL 50 * - COUNT ( * ) + - + COALESCE ( 57, COUNT ( * ) - - 36 ) + + - CAST ( - - 18 AS INTEGER ) * + MIN ( DISTINCT - - 29 ) AS col1
----
-629

onlyif mysql # aggregate syntax: 
query II rowsort label-5287
SELECT DISTINCT + 63 AS col0, - COUNT( * ) * 20 AS col1
----
63
-20

skipif mysql # not compatible
query II rowsort label-5287
SELECT DISTINCT + 63 AS col0, - COUNT ( * ) * 20 AS col1
----
63
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5288
SELECT DISTINCT COUNT( * ) * + 86 DIV - 95 + - 66 AS col1, 54
----
-66
54

skipif mysql # not compatible
query II rowsort label-5288
SELECT DISTINCT COUNT ( * ) * + 86 / - 95 + - 66 AS col1, 54
----
-66
54

query I rowsort
SELECT + COALESCE ( - 97, 15 + - NULLIF ( - COALESCE ( + + 37, + - 85 + - 12 * - 25 - + 77 + 89 ), AVG ( - 73 ) ) + + 89 + COALESCE ( 40, - 7 ) * + 5 * - 30 * - 45, - 46 + 70 * + ( + 88 ) ) AS col0
----
-97

query I rowsort
SELECT - 67 * - 22 AS col0
----
1474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN + 46 / - 77 THEN NULL WHEN - 99 + - 89 / NULLIF ( 38, + + 39 + - + 58 + + + 17 ) THEN + 89 END - - + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN + 46 / - 77 THEN NULL WHEN - 99 + - 89 / NULLIF ( 38, + + 39 + - + 58 + + + 17 ) THEN + 89 END - - + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL + SUM( ALL + - 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL + SUM ( ALL + - 82 ) AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5293
SELECT ( - COUNT( * ) ) AS col1, CAST( + - 86 AS SIGNED ) * - 73 - 20 + CAST( NULL AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5293
SELECT ( - COUNT ( * ) ) AS col1, CAST ( + - 86 AS INTEGER ) * - 73 - 20 + CAST ( NULL AS INTEGER ) AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5294
SELECT DISTINCT 68 * 40 + COUNT( * ) - 98 - - + 64 DIV - 27
----
2621

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT 68 * 40 + COUNT ( * ) - 98 - - + 64 / - 27
----
2621

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL 36 * 89 * + 46 + - COUNT( DISTINCT + + 18 ) AS col2
----
147383

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL 36 * 89 * + 46 + - COUNT ( DISTINCT + + 18 ) AS col2
----
147383

query II rowsort
SELECT DISTINCT + 43 AS col1, + 94
----
43
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5297
SELECT DISTINCT + 90 * + 33 + + + 57 + + 63 + + + 34 * + + 65 + - - 7 + - MAX( ALL + CAST( NULL AS SIGNED ) ) + 14 + - 14 + + + 69 * - + 38 * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT + 90 * + 33 + + + 57 + + 63 + + + 34 * + + 65 + - - 7 + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + 14 + - 14 + + + 69 * - + 38 * - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT ALL + MAX( DISTINCT 68 )
----
68

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL + MAX ( DISTINCT 68 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5299
SELECT - 1 - - + 41 + + - CAST( + 95 AS SIGNED ) + - 89 * COALESCE ( + - 68, - COALESCE ( - 26, 88 ) ) - - 9, COUNT( * ) + - - 7 AS col1
----
6006
8

skipif mysql # not compatible
query II rowsort label-5299
SELECT - 1 - - + 41 + + - CAST ( + 95 AS INTEGER ) + - 89 * COALESCE ( + - 68, - COALESCE ( - 26, 88 ) ) - - 9, COUNT ( * ) + - - 7 AS col1
----
6006
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT DISTINCT + SUM( DISTINCT + - 51 ), 98 + - 23 * - CASE - 94 WHEN + MAX( DISTINCT - 72 ) / - COALESCE ( - COALESCE ( 71, - 20 ), 81 ) THEN + - 44 END AS col2
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-5300
SELECT DISTINCT + SUM ( DISTINCT + - 51 ), 98 + - 23 * - CASE - 94 WHEN + MAX ( DISTINCT - 72 ) / - COALESCE ( - COALESCE ( 71, - 20 ), 81 ) THEN + - 44 END AS col2
----
-51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT - 74 * - COUNT( * ) + - + 36 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5301
SELECT - 74 * - COUNT ( * ) + - + 36 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL + + 43 * - 93 + - COUNT( * ) - - 29
----
-3971

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL + + 43 * - 93 + - COUNT ( * ) - - 29
----
-3971

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

skipif mysql # not compatible
query I rowsort label-5303
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( 70 ) AS col0
----
NULL

query I rowsort
SELECT - 93 * + + 68 AS col2
----
-6324

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

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

query II rowsort
SELECT 54 AS col2, 40 * - + NULLIF ( + 60, - - ( 32 ) + + 25 ) AS col2
----
54
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL + - 40 * - 12 * + ( + + 68 ) - COUNT( * )
----
32639

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL + - 40 * - 12 * + ( + + 68 ) - COUNT ( * )
----
32639

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

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

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

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

query II rowsort
SELECT - 9 AS col1, 50 * + 41
----
-9
2050

query I rowsort
SELECT DISTINCT 21 * 12 * + 58
----
14616

query II rowsort
SELECT - 59, - 17 AS col0
----
-59
-17

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5314
SELECT - COUNT( * ) * + + 2 * - SUM( - + 80 ) AS col0, - ( - 54 )
----
-160
54

skipif mysql # not compatible
query II rowsort label-5314
SELECT - COUNT ( * ) * + + 2 * - SUM ( - + 80 ) AS col0, - ( - 54 )
----
-160
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT + 9 * + - 59 + + + COUNT( * )
----
-530

skipif mysql # not compatible
query I rowsort label-5315
SELECT + 9 * + - 59 + + + COUNT ( * )
----
-530

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5316
SELECT - 48 - + + 54 * - 46 DIV + COUNT( * ) AS col2, COUNT( * ) * + - COUNT( * ) col0
----
2436
-1

skipif mysql # not compatible
query II rowsort label-5316
SELECT - 48 - + + 54 * - 46 / + COUNT ( * ) AS col2, COUNT ( * ) * + - COUNT ( * ) col0
----
2436
-1

query II rowsort
SELECT - - 76 AS col0, - 55 * + 8 AS col0
----
76
-440

query I rowsort
SELECT - 62 + - - 8 + + + 78 + + 49 * - 36 + + + 18 * - 29 AS col2
----
-2262

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT + MIN( + 10 ) col0
----
10

skipif mysql # not compatible
query I rowsort label-5319
SELECT + MIN ( + 10 ) col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5320
SELECT + 36 DIV 76 + - 64 * - - COUNT( * ) * 46 * - 19 AS col2
----
55936

skipif mysql # not compatible
query I rowsort label-5320
SELECT + 36 / 76 + - 64 * - - COUNT ( * ) * 46 * - 19 AS col2
----
55936

query II rowsort
SELECT ALL 6 * 29 AS col0, - 81
----
174
-81

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

skipif mysql # not compatible
query I rowsort label-5322
SELECT - - COUNT ( * ) + COUNT ( * ) * - + ( - 67 ) + - + 32 AS col0
----
36

query I rowsort
SELECT ALL - COALESCE ( 13, 99 * 84 ) * 87 AS col2
----
-1131

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5325
SELECT ALL COUNT( * ) + 79 AS col1, - CAST( - - 89 AS SIGNED )
----
80
-89

skipif mysql # not compatible
query II rowsort label-5325
SELECT ALL COUNT ( * ) + 79 AS col1, - CAST ( - - 89 AS INTEGER )
----
80
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5326
SELECT + ( - CAST( 57 AS SIGNED ) ) - 78 col1
----
-135

skipif mysql # not compatible
query I rowsort label-5326
SELECT + ( - CAST ( 57 AS INTEGER ) ) - 78 col1
----
-135

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

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

query I rowsort
SELECT ALL - 75 + + NULLIF ( - 78, + + 46 ) * - 88 * - 86 col0
----
-590379

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

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT 26 / COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5330
SELECT - COALESCE ( - 42, - 57 ) AS col0, MIN( DISTINCT + ( + + 43 ) ) AS col1
----
42
43

skipif mysql # not compatible
query II rowsort label-5330
SELECT - COALESCE ( - 42, - 57 ) AS col0, MIN ( DISTINCT + ( + + 43 ) ) AS col1
----
42
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT + 67 + + - 2 + + - ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT + 67 + + - 2 + + - ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5332
SELECT DISTINCT 90 DIV + 70 AS col1, + 44 AS col1
----
1
44

skipif mysql # not compatible
query II rowsort label-5332
SELECT DISTINCT 90 / + 70 AS col1, + 44 AS col1
----
1
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5333
SELECT + 45 DIV 10 + - - 60 + - + COUNT( * ) DIV 47 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5333
SELECT + 45 / 10 + - - 60 + - + COUNT ( * ) / 47 AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5334
SELECT - 58 * - CAST( + - 0 AS SIGNED ) * - 7 * + 51 - - 72 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5334
SELECT - 58 * - CAST ( + - 0 AS INTEGER ) * - 7 * + 51 - - 72 AS col1
----
72

query I rowsort
SELECT 13 * - 81 + - 59 * + 3
----
-1230

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT ALL 31 * - - 10 * + + 4 * + SUM( DISTINCT - 95 ) AS col2
----
-117800

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL 31 * - - 10 * + + 4 * + SUM ( DISTINCT - 95 ) AS col2
----
-117800

query I rowsort
SELECT ALL 83 - + - 59
----
142

query I rowsort
SELECT 10 * - - 92
----
920

query II rowsort
SELECT 49 + 60, + 40 col0
----
109
40

query I rowsort
SELECT DISTINCT - NULLIF ( - + 97, 43 * + 30 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT ( + 90 ) + ( + + CASE + COALESCE ( - 31, - - ( + COUNT( * ) ) ) WHEN + + 63 THEN + 5 * + 19 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT ( + 90 ) + ( + + CASE + COALESCE ( - 31, - - ( + COUNT ( * ) ) ) WHEN + + 63 THEN + 5 * + 19 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT 16 * 62 + + + 96 * - SUM( ALL 11 )
----
-64

skipif mysql # not compatible
query I rowsort label-5342
SELECT 16 * 62 + + + 96 * - SUM ( ALL 11 )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5343
SELECT DISTINCT - - 92 DIV + NULLIF ( - 94, + NULLIF ( 73, + 89 ) * 58 DIV + - 75 - - 30 + - ( + - 85 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT - - 92 / + NULLIF ( - 94, + NULLIF ( 73, + 89 ) * 58 / + - 75 - - 30 + - ( + - 85 ) ) AS col1
----
0

query I rowsort
SELECT ALL - ( 37 ) * 19 + + ( - 59 ) * - - 23
----
-2060

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

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

query I rowsort
SELECT DISTINCT - + NULLIF ( + 29, + 14 * + + 30 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5347
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + MIN( DISTINCT 31 ) + + + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + + MIN ( DISTINCT 31 ) + + + 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ALL - COUNT( * ) * - 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL - COUNT ( * ) * - 49 AS col0
----
49

query I rowsort
SELECT - 34 * 7 + 51
----
-187

query I rowsort
SELECT ALL - 20 * 39 * - 87 + + ( + - 32 ) + + 87 * + 45
----
71743

query I rowsort
SELECT 9 * + ( 17 ) + - 41
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT - CASE - 34 WHEN 30 THEN NULL WHEN + - 63 * - 83 / 84 + + 70 THEN NULL WHEN + - 50 + - - 29 - - 18 * + MAX( - 71 ) - + 82 / - ( 79 ) * + 15 + 73 + - NULLIF ( + 23, + 73 * - 62 ) THEN NULL WHEN 45 / SUM( ALL NULLIF ( + 86, + 34 * - 25 ) ) THEN 49 ELSE 70 END AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5352
SELECT - CASE - 34 WHEN 30 THEN NULL WHEN + - 63 * - 83 / 84 + + 70 THEN NULL WHEN + - 50 + - - 29 - - 18 * + MAX ( - 71 ) - + 82 / - ( 79 ) * + 15 + 73 + - NULLIF ( + 23, + 73 * - 62 ) THEN NULL WHEN 45 / SUM ( ALL NULLIF ( + 86, + 34 * - 25 ) ) THEN 49 ELSE 70 END AS col1
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5353
SELECT DISTINCT - + CAST( + 17 AS SIGNED ) + - 3 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT - + CAST ( + 17 AS INTEGER ) + - 3 AS col1
----
-20

query I rowsort
SELECT ALL - 76 * + - 4 * - - 6 * + 96 AS col2
----
175104

query I rowsort
SELECT ALL - - 46 + 73 + - + ( + 43 )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5356
SELECT 30 col2, 35 * - 29 + ( SUM( 53 ) ) + - - 53 + - 71 DIV - 57
----
30
-908

skipif mysql # not compatible
query II rowsort label-5356
SELECT 30 col2, 35 * - 29 + ( SUM ( 53 ) ) + - - 53 + - 71 / - 57
----
30
-908

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5357
SELECT ALL + 43 + + 31 + - - 26 AS col1, 87 + - - CAST( NULL AS SIGNED )
----
100
NULL

skipif mysql # not compatible
query II rowsort label-5357
SELECT ALL + 43 + + 31 + - - 26 AS col1, 87 + - - CAST ( NULL AS INTEGER )
----
100
NULL

query I rowsort
SELECT DISTINCT - 89 + + 5
----
-84

query I rowsort
SELECT ALL + 34 + + 96
----
130

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

skipif mysql # not compatible
query II rowsort label-5360
SELECT - 27 AS col1, COUNT ( * ) AS col0
----
-27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL - COUNT( * ) + + 34 * MAX( - 81 ) AS col2
----
-2755

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL - COUNT ( * ) + + 34 * MAX ( - 81 ) AS col2
----
-2755

query I rowsort
SELECT 30 + 98 * - 97 + - - 41 AS col1
----
-9435

onlyif mysql # aggregate syntax: 
query II rowsort label-5363
SELECT DISTINCT MAX( + - 22 ) + + - 70, + 62 * - - 19 AS col1
----
-92
1178

skipif mysql # not compatible
query II rowsort label-5363
SELECT DISTINCT MAX ( + - 22 ) + + - 70, + 62 * - - 19 AS col1
----
-92
1178

query I rowsort
SELECT ALL - 45 * - - 77 * 54 AS col2
----
-187110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT 20 * CASE + 65 WHEN + - CAST( NULL AS SIGNED ) THEN CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT 20 * CASE + 65 WHEN + - CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 91, + 35 AS col2
----
-91
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT + COUNT( * ) - - 45 * 80 + + 54 * 85 AS col1
----
8191

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT + COUNT ( * ) - - 45 * 80 + + 54 * 85 AS col1
----
8191

onlyif mysql # DIV for integer division: 
query I rowsort label-5368
SELECT - ( - 54 ) DIV 58 + + NULLIF ( + 49, - 17 DIV 5 * + 15 + + 72 ) * - 65 * - 87 + + - 70 AS col2
----
277025

skipif mysql # not compatible
query I rowsort label-5368
SELECT - ( - 54 ) / 58 + + NULLIF ( + 49, - 17 / 5 * + 15 + + 72 ) * - 65 * - 87 + + - 70 AS col2
----
277025

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ALL CASE COUNT( * ) WHEN - + 40 THEN - - 84 WHEN 30 / - SUM( + + 1 ) THEN 17 * + - 42 / + COUNT( * ) ELSE NULL END - 21 + - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL CASE COUNT ( * ) WHEN - + 40 THEN - - 84 WHEN 30 / - SUM ( + + 1 ) THEN 17 * + - 42 / + COUNT ( * ) ELSE NULL END - 21 + - 65 AS col2
----
NULL

query I rowsort
SELECT 10 * + + ( - 4 ) * + CASE + 85 WHEN + 10 + - + 22 * + 71 * 69 THEN + 70 END / - 10 AS col0
----
NULL

query I rowsort
SELECT COALESCE ( 19, - - 8 ) * + ( 22 ) AS col2
----
418

onlyif mysql # DIV for integer division: 
query II rowsort label-5372
SELECT DISTINCT NULLIF ( - 99, + 4 * + 43 ) DIV 15 * + 72 AS col1, 4
----
-432
4

skipif mysql # not compatible
query II rowsort label-5372
SELECT DISTINCT NULLIF ( - 99, + 4 * + 43 ) / 15 * + 72 AS col1, 4
----
-432
4

query II rowsort
SELECT 20 - - ( + 87 ) AS col1, 66 * - 52 + 66
----
107
-3366

onlyif mysql # DIV for integer division: 
query I rowsort label-5374
SELECT ALL ( 72 ) DIV - 41 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL ( 72 ) / - 41 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5375
SELECT COALESCE ( - 29, 80 * + COALESCE ( + 84, - + 19 ) + MIN( + + 66 ) DIV 64 ) DIV - - ( - + 20 ) + - + 36 * - 43 * + 52 AS col1
----
80497

skipif mysql # not compatible
query I rowsort label-5375
SELECT COALESCE ( - 29, 80 * + COALESCE ( + 84, - + 19 ) + MIN ( + + 66 ) / 64 ) / - - ( - + 20 ) + - + 36 * - 43 * + 52 AS col1
----
80497

query II rowsort
SELECT DISTINCT - + 80 AS col0, - 53
----
-80
-53

query I rowsort
SELECT 87 * - 66 * - - NULLIF ( 28, + 27 ) * + 7 + 99 + 37 AS col2
----
-1125296

query I rowsort
SELECT ALL 58 * + - 40 col2
----
-2320

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - 28 * + + SUM( ( 48 ) )
----
-1344

skipif mysql # not compatible
query I rowsort label-5379
SELECT - 28 * + + SUM ( ( 48 ) )
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT DISTINCT 16 * 72 * - - COUNT( - 11 )
----
1152

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT 16 * 72 * - - COUNT ( - 11 )
----
1152

query I rowsort
SELECT ALL - NULLIF ( 53, - 49 ) AS col2
----
-53

query I rowsort
SELECT DISTINCT 43 * - 16 * 72 + - 46
----
-49582

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL + 49 + COUNT( - ( 52 ) ) - + 98
----
-48

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL + 49 + COUNT ( - ( 52 ) ) - + 98
----
-48

query I rowsort
SELECT 44 * + 37 + + COALESCE ( - + 72, 73, - - 78 + - 53 * + 10 + + + ( 19 ) )
----
1556

query I rowsort
SELECT + 35 + + 50 AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5387
SELECT - 44 AS col0, + MIN( + 6 ) * NULLIF ( + 67, ( 86 ) + - + 14 )
----
-44
402

skipif mysql # not compatible
query II rowsort label-5387
SELECT - 44 AS col0, + MIN ( + 6 ) * NULLIF ( + 67, ( 86 ) + - + 14 )
----
-44
402

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT DISTINCT - + CASE COUNT( * ) WHEN - - 10 - - 0 * 36 / + COUNT( * ) * 27 + + 37 THEN NULL WHEN + + 35 THEN NULL ELSE - 52 + - 38 + + + 99 END + 31 * 87 AS col0
----
2688

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT - + CASE COUNT ( * ) WHEN - - 10 - - 0 * 36 / + COUNT ( * ) * 27 + + 37 THEN NULL WHEN + + 35 THEN NULL ELSE - 52 + - 38 + + + 99 END + 31 * 87 AS col0
----
2688

query I rowsort
SELECT ALL 27 + + + 18 AS col0
----
45

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

skipif mysql # not compatible
query I rowsort label-5390
SELECT DISTINCT - COUNT ( * ) + 0 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5391
SELECT DISTINCT + + 73 * - 88 + - - 48 DIV ( + 13 ) AS col0
----
-6421

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT + + 73 * - 88 + - - 48 / ( + 13 ) AS col0
----
-6421

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

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

query I rowsort
SELECT CASE - ( + 98 ) WHEN + 35 * - 69 + + + ( 54 ) THEN NULL WHEN - - 32 THEN - + 20 * - 0 END + 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5394
SELECT ( 95 ) + + + ( - 77 ) DIV 89 AS col0, - COUNT( * ) DIV - CASE - - 54 WHEN + 21 + 58 THEN - ( 91 ) * 54 + + 68 END
----
95
NULL

skipif mysql # not compatible
query II rowsort label-5394
SELECT ( 95 ) + + + ( - 77 ) / 89 AS col0, - COUNT ( * ) / - CASE - - 54 WHEN + 21 + 58 THEN - ( 91 ) * 54 + + 68 END
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL - COUNT( ALL + 41 ) + COALESCE ( ( - 55 ), 68 ) * + + COUNT( + 58 )
----
-56

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL - COUNT ( ALL + 41 ) + COALESCE ( ( - 55 ), 68 ) * + + COUNT ( + 58 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5396
SELECT 86 + - - COUNT( * ) + + - CAST( NULL AS DECIMAL ) + + 28 + MAX( 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT 86 + - - COUNT ( * ) + + - CAST ( NULL AS REAL ) + + 28 + MAX ( 1 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT ALL SUM( ALL + COALESCE ( + 82, 52, + 98 ) ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL SUM ( ALL + COALESCE ( + 82, 52, + 98 ) ) AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT 30 DIV - - 64
----
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT 30 / - - 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT ALL SUM( ALL 19 )
----
19

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL SUM ( ALL 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT DISTINCT MAX( DISTINCT + ( 42 ) ) * + + 43 * 41 AS col0
----
74046

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT MAX ( DISTINCT + ( 42 ) ) * + + 43 * 41 AS col0
----
74046

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ALL SUM( 86 )
----
86

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL SUM ( 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT DISTINCT - COUNT( DISTINCT + 81 ) - - 76 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT - COUNT ( DISTINCT + 81 ) - - 76 AS col1
----
75

query I rowsort
SELECT ALL COALESCE ( 90, + 26 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT - 2 + 51 * SUM( DISTINCT - 26 ) - + + 55
----
-1383

skipif mysql # not compatible
query I rowsort label-5406
SELECT - 2 + 51 * SUM ( DISTINCT - 26 ) - + + 55
----
-1383

query I rowsort
SELECT ALL - 40 - + + 68
----
-108

query I rowsort
SELECT - 78 + + 12
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT - 48 * + MAX( 96 ) * + - 25
----
115200

skipif mysql # not compatible
query I rowsort label-5409
SELECT - 48 * + MAX ( 96 ) * + - 25
----
115200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5410
SELECT ALL + COALESCE ( - + CAST( NULL AS SIGNED ), ( + CAST( + + 71 AS SIGNED ) ) ) * - 44
----
-3124

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL + COALESCE ( - + CAST ( NULL AS INTEGER ), ( + CAST ( + + 71 AS INTEGER ) ) ) * - 44
----
-3124

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT + MIN( - 67 ) * 39
----
-2613

skipif mysql # not compatible
query I rowsort label-5411
SELECT + MIN ( - 67 ) * 39
----
-2613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5412
SELECT AVG ( - - 7 ) * - 60 * AVG ( DISTINCT 6 ) * - 53 - + + MIN( ALL - 80 ) + - - COALESCE ( + COUNT( * ), + - 3 * - - 86 * + 78 + 15, 75 ) + + 12 + - - NULLIF ( + + 70, + CAST( 49 AS SIGNED ) + - - COUNT( * ) ) + + + 48 * CAST( NULL AS SIGNED ) * + - CAST( NULL AS DECIMAL ) * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT AVG ( - - 7 ) * - 60 * AVG ( DISTINCT 6 ) * - 53 - + + MIN ( ALL - 80 ) + - - COALESCE ( + COUNT ( * ), + - 3 * - - 86 * + 78 + 15, 75 ) + + 12 + - - NULLIF ( + + 70, + CAST ( 49 AS INTEGER ) + - - COUNT ( * ) ) + + + 48 * CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS REAL ) * 35
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT DISTINCT + 23 DIV - - 69
----
0

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT + 23 / - - 69
----
0

query I rowsort
SELECT - 18 + + 70 AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5415
SELECT - 12 DIV - + 61
----
0

skipif mysql # not compatible
query I rowsort label-5415
SELECT - 12 / - + 61
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5416
SELECT ALL + CASE 45 WHEN + - 33 THEN CAST( NULL AS SIGNED ) ELSE + + CAST( NULL AS SIGNED ) * 12 * - NULLIF ( - 99, - - 94 + 43 + - 25 ) + + MIN( - 28 ) + + - 42 END * - - 33 * MIN( - ( + 48 ) ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL + CASE 45 WHEN + - 33 THEN CAST ( NULL AS INTEGER ) ELSE + + CAST ( NULL AS INTEGER ) * 12 * - NULLIF ( - 99, - - 94 + 43 + - 25 ) + + MIN ( - 28 ) + + - 42 END * - - 33 * MIN ( - ( + 48 ) ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5417
SELECT DISTINCT + CAST( + COUNT( - 69 ) AS SIGNED ) * + 77 * COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT + CAST ( + COUNT ( - 69 ) AS INTEGER ) * + 77 * COUNT ( * ) AS col0
----
77

query I rowsort
SELECT ALL + COALESCE ( - + 94, - 63, - - 51, - - 65 ) col1
----
-94

query I rowsort
SELECT + 67 * + ( 12 ) - + 22 + + + 62
----
844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5420
SELECT - - CAST( NULL AS SIGNED ) / - 23 + - - COUNT( * ) * + + AVG ( DISTINCT 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5420
SELECT - - CAST ( NULL AS INTEGER ) / - 23 + - - COUNT ( * ) * + + AVG ( DISTINCT 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + - 33 * - 55 * 75 * COUNT( * )
----
136125

skipif mysql # not compatible
query I rowsort label-5421
SELECT + - 33 * - 55 * 75 * COUNT ( * )
----
136125

query I rowsort
SELECT ( + - NULLIF ( + + 4, + 77 ) ) AS col2
----
-4

query I rowsort
SELECT ALL 46 * - - 19 + - 94 col2
----
780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5424
SELECT DISTINCT + + COALESCE ( - + 12, + 59 * + COUNT( * ) + - 97 - - 9 * - - COUNT( + 52 ) DIV 9 - - - 51 + + 21 + 65 * - + 22 * + ( 65 ) * 61 DIV - 19 + - 72 ) DIV 10
----
-1

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT + + COALESCE ( - + 12, + 59 * + COUNT ( * ) + - 97 - - 9 * - - COUNT ( + 52 ) / 9 - - - 51 + + 21 + 65 * - + 22 * + ( 65 ) * 61 / - 19 + - 72 ) / 10
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5425
SELECT + - COALESCE ( - + 24, + COUNT( * ) ) + - + COUNT( * ) DIV + - 44 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5425
SELECT + - COALESCE ( - + 24, + COUNT ( * ) ) + - + COUNT ( * ) / + - 44 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT DISTINCT 54 * COUNT( * ) - + + 69 / - 36 + + 17 * CASE - 24 WHEN - + COUNT( * ) * 29 + + COUNT( ALL + CASE + - 17 WHEN 45 * - 30 THEN 4 * - NULLIF ( NULLIF ( + + 45, + 9 ), 5 ) END ) THEN - 95 + - 0 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT 54 * COUNT ( * ) - + + 69 / - 36 + + 17 * CASE - 24 WHEN - + COUNT ( * ) * 29 + + COUNT ( ALL + CASE + - 17 WHEN 45 * - 30 THEN 4 * - NULLIF ( NULLIF ( + + 45, + 9 ), 5 ) END ) THEN - 95 + - 0 END col0
----
NULL

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

query I rowsort
SELECT - COALESCE ( + 75, + 20 * 0 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT MAX( 86 ) col0
----
86

skipif mysql # not compatible
query I rowsort label-5429
SELECT MAX ( 86 ) col0
----
86

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

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

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

query I rowsort
SELECT ALL 20 * - ( + 93 ) AS col0
----
-1860

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT + 84 * - + 32 * CASE 48 WHEN + 10 THEN MIN( 15 ) - 67 * + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT + 84 * - + 32 * CASE 48 WHEN + 10 THEN MIN ( 15 ) - 67 * + 37 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5436
SELECT + 2 + + 85 + + 47 DIV + - 37 * + ( - COUNT( * ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5436
SELECT + 2 + + 85 + + 47 / + - 37 * + ( - COUNT ( * ) ) AS col2
----
88

query I rowsort
SELECT - NULLIF ( 28, - 7 * - 80 ) AS col2
----
-28

query II rowsort
SELECT - 44, - 15 col1
----
-44
-15

query I rowsort
SELECT + 90 * + 27 AS col0
----
2430

query I rowsort
SELECT + 49 * + 28 AS col2
----
1372

query I rowsort
SELECT DISTINCT + 27 * - + 19
----
-513

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT DISTINCT COALESCE ( - ( - 83 ), + COUNT( 70 ) )
----
83

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT COALESCE ( - ( - 83 ), + COUNT ( 70 ) )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5443
SELECT ALL NULLIF ( + CASE 0 WHEN 90 THEN NULL WHEN MIN( ALL - 8 ) - + CAST( + - 51 AS SIGNED ) THEN 9 ELSE + + 77 END, + 12 * + ( + 6 ) )
----
77

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL NULLIF ( + CASE 0 WHEN 90 THEN NULL WHEN MIN ( ALL - 8 ) - + CAST ( + - 51 AS INTEGER ) THEN 9 ELSE + + 77 END, + 12 * + ( + 6 ) )
----
77

query I rowsort
SELECT - 18 * 28 * - + 66 * - 74
----
-2461536

query I rowsort
SELECT ALL 24 * - 6 col0
----
-144

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT - MAX( 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-5447
SELECT - MAX ( 24 )
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT DISTINCT 94 DIV ( - 49 ) + - 9 * - - ( 95 ) * + - 6 AS col0
----
5129

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT 94 / ( - 49 ) + - 9 * - - ( 95 ) * + - 6 AS col0
----
5129

onlyif mysql # DIV for integer division: 
query II rowsort label-5449
SELECT + - 5 AS col0, 46 + + 92 DIV - 68 AS col2
----
-5
45

skipif mysql # not compatible
query II rowsort label-5449
SELECT + - 5 AS col0, 46 + + 92 / - 68 AS col2
----
-5
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5450
SELECT ALL 44 / + CASE + - 8 WHEN 70 THEN NULL WHEN MIN( ALL - + 18 ) + 93 THEN 48 * - ( - COUNT( * ) ) * + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + + 62 END * ( + + 17 ) + - 59 + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL 44 / + CASE + - 8 WHEN 70 THEN NULL WHEN MIN ( ALL - + 18 ) + 93 THEN 48 * - ( - COUNT ( * ) ) * + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + 62 END * ( + + 17 ) + - 59 + 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL + COUNT( * ) * - ( 40 ) + 81
----
41

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL + COUNT ( * ) * - ( 40 ) + 81
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5452
SELECT ALL + COUNT( * ) DIV + - 75 * + - 16 + 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL + COUNT ( * ) / + - 75 * + - 16 + 54 AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5453
SELECT ALL - - 23 DIV 74 + + 45 + + - 15 * COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL - - 23 / 74 + + 45 + + - 15 * COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT - - COUNT( * ) - + 42 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-5454
SELECT - - COUNT ( * ) - + 42 AS col2
----
-41

query II rowsort
SELECT ALL + + 23 AS col1, + 59
----
23
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5456
SELECT - CAST( NULL AS SIGNED ) * - + CASE - 53 WHEN COUNT( * ) THEN - 36 END + + 8 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5456
SELECT - CAST ( NULL AS INTEGER ) * - + CASE - 53 WHEN COUNT ( * ) THEN - 36 END + + 8 * COUNT ( * ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT - 15 + + SUM( DISTINCT + 22 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5458
SELECT - 15 + + SUM ( DISTINCT + 22 ) AS col2
----
7

query I rowsort
SELECT ALL 27 * - 58 * - + 96 col0
----
150336

query I rowsort
SELECT 5 * 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5461
SELECT ALL - 12 DIV - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - 12 / - 87 AS col1
----
0

query II rowsort
SELECT DISTINCT 27 AS col0, + 22 * + 23
----
27
506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5463
SELECT DISTINCT CAST( - 56 AS SIGNED ) * + 65 AS col1
----
-3640

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT CAST ( - 56 AS INTEGER ) * + 65 AS col1
----
-3640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5464
SELECT ( + - 45 ) + - CAST( + 68 AS SIGNED ) * + COALESCE ( + + MIN( ALL + 90 ), - 40 ) + + 2 * 98
----
-5969

skipif mysql # not compatible
query I rowsort label-5464
SELECT ( + - 45 ) + - CAST ( + 68 AS INTEGER ) * + COALESCE ( + + MIN ( ALL + 90 ), - 40 ) + + 2 * 98
----
-5969

query I rowsort
SELECT ALL ( - 70 ) * + 8 AS col1
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT COUNT( * ) + - 92 * - COUNT( 80 ) * 65
----
5981

skipif mysql # not compatible
query I rowsort label-5466
SELECT COUNT ( * ) + - 92 * - COUNT ( 80 ) * 65
----
5981

query II rowsort
SELECT ALL 43 AS col1, ( + + 38 ) AS col2
----
43
38

query I rowsort
SELECT ( + 24 ) + - 29
----
-5

query II rowsort
SELECT DISTINCT 3 AS col0, - ( 28 )
----
3
-28

query I rowsort
SELECT DISTINCT 72 + + + 29
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-5471
SELECT DISTINCT 6 col1, + COALESCE ( + COUNT( * ), - + 28 ) * + + 19 * 94 AS col2
----
6
1786

skipif mysql # not compatible
query II rowsort label-5471
SELECT DISTINCT 6 col1, + COALESCE ( + COUNT ( * ), - + 28 ) * + + 19 * 94 AS col2
----
6
1786

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT 49 + - 73 + COUNT( * ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-5472
SELECT 49 + - 73 + COUNT ( * ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL 7 + COALESCE ( + COUNT( * ), ( MAX( DISTINCT - 95 ) ), - 14 * + - 37 ) - 4 * - 16 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL 7 + COALESCE ( + COUNT ( * ), ( MAX ( DISTINCT - 95 ) ), - 14 * + - 37 ) - 4 * - 16 AS col1
----
72

query II rowsort
SELECT ALL 12 AS col0, 5 AS col0
----
12
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT ALL ( - 91 ) + 23 * + MAX( - 61 ) AS col1
----
-1494

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL ( - 91 ) + 23 * + MAX ( - 61 ) AS col1
----
-1494

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

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

query I rowsort
SELECT DISTINCT + 86 + + 81 AS col0
----
167

query I rowsort
SELECT ALL 91 + - 5
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5479
SELECT 40 AS col0, - ( - MIN( DISTINCT + - 31 ) ) AS col1
----
40
-31

skipif mysql # not compatible
query II rowsort label-5479
SELECT 40 AS col0, - ( - MIN ( DISTINCT + - 31 ) ) AS col1
----
40
-31

query I rowsort
SELECT 32 + + ( - 80 ) AS col2
----
-48

query I rowsort
SELECT ALL 4 + 94 AS col0
----
98

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

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL + 36 * - + COUNT ( * ) * + 64 AS col2
----
-2304

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

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

query I rowsort
SELECT DISTINCT 66 * + 90
----
5940

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT DISTINCT - COUNT( * ) + + 7 + + 69 * 11 AS col0
----
765

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT - COUNT ( * ) + + 7 + + 69 * 11 AS col0
----
765

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5488
SELECT ALL - 32 AS col0, CASE - 12 WHEN + COALESCE ( 62, - + ( - 84 ) * + - COALESCE ( + 31, 69 ) - - 48 + - 79 ) * 35 + - + CAST( NULL AS DECIMAL ) - - ( - 52 ) + - - 0 + - 72 * + COUNT( * ) - - 76 + + COALESCE ( - - COUNT( * ), + 53 * + CASE ( - MAX( - 31 ) ) WHEN CASE 42 WHEN - 7 * + 46 THEN NULL WHEN - COUNT( * ) / - 54 THEN NULL ELSE 70 / - COUNT( * ) END * - ( - 64 + + 73 ) THEN 43 + 19 * 39 END + 39 * - 73, 0, + 41 + COALESCE ( + 67, 68 * - 44 + AVG ( DISTINCT + 70 ) ) ) + ( 89 ) * + COUNT( * ) * 7 * 67 THEN ( COUNT( ALL 19 ) ) END + - COUNT( * ) AS col2
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-5488
SELECT ALL - 32 AS col0, CASE - 12 WHEN + COALESCE ( 62, - + ( - 84 ) * + - COALESCE ( + 31, 69 ) - - 48 + - 79 ) * 35 + - + CAST ( NULL AS REAL ) - - ( - 52 ) + - - 0 + - 72 * + COUNT ( * ) - - 76 + + COALESCE ( - - COUNT ( * ), + 53 * + CASE ( - MAX ( - 31 ) ) WHEN CASE 42 WHEN - 7 * + 46 THEN NULL WHEN - COUNT ( * ) / - 54 THEN NULL ELSE 70 / - COUNT ( * ) END * - ( - 64 + + 73 ) THEN 43 + 19 * 39 END + 39 * - 73, 0, + 41 + COALESCE ( + 67, 68 * - 44 + AVG ( DISTINCT + 70 ) ) ) + ( 89 ) * + COUNT ( * ) * 7 * 67 THEN ( COUNT ( ALL 19 ) ) END + - COUNT ( * ) AS col2
----
-32
NULL

query I rowsort
SELECT ALL + 51 - + 40 AS col0
----
11

query II rowsort
SELECT + - 11 AS col2, + 93 AS col1
----
-11
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT - 4 * - COALESCE ( + 86, + 36 + + 91 + 91 * COUNT( * ), + 50 ) col2
----
344

skipif mysql # not compatible
query I rowsort label-5491
SELECT - 4 * - COALESCE ( + 86, + 36 + + 91 + 91 * COUNT ( * ), + 50 ) col2
----
344

query I rowsort
SELECT + CASE + 69 WHEN - 85 - 2 THEN 37 + - 26 ELSE NULL END * - 71 - - 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT 55 * 75 + - - MIN( ALL 3 ) AS col2
----
4128

skipif mysql # not compatible
query I rowsort label-5493
SELECT 55 * 75 + - - MIN ( ALL 3 ) AS col2
----
4128

query I rowsort
SELECT - - 45 * 32 + + 77
----
1517

onlyif mysql # aggregate syntax: 
query II rowsort label-5495
SELECT ALL - COUNT( * ) * + - 13 AS col1, - 64
----
13
-64

skipif mysql # not compatible
query II rowsort label-5495
SELECT ALL - COUNT ( * ) * + - 13 AS col1, - 64
----
13
-64

query I rowsort
SELECT 14 * 38
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ALL - ( ( + SUM( 3 ) ) ) col1
----
-3

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL - ( ( + SUM ( 3 ) ) ) col1
----
-3

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

query I rowsort
SELECT 40 + COALESCE ( - 63, - 47 * + 20, + 38 )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-5500
SELECT DISTINCT COUNT( ALL - 44 ) AS col0, - 71
----
1
-71

skipif mysql # not compatible
query II rowsort label-5500
SELECT DISTINCT COUNT ( ALL - 44 ) AS col0, - 71
----
1
-71

query II rowsort
SELECT 30 * 23 AS col0, 0 - + 30 AS col0
----
690
-30

query I rowsort
SELECT DISTINCT 72 + 93 + - 31 * - - 17 AS col2
----
-362

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

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

query I rowsort
SELECT ALL 7 + + 33 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5505
SELECT ALL - CAST( - - 3 AS SIGNED ) + - 79 - + 31 * COUNT( * )
----
-113

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL - CAST ( - - 3 AS INTEGER ) + - 79 - + 31 * COUNT ( * )
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT DISTINCT + COUNT( * ) + - 55 * - 70 AS col2
----
3851

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT + COUNT ( * ) + - 55 * - 70 AS col2
----
3851

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT DISTINCT 12 + - + COUNT( * ) * 61
----
-49

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT 12 + - + COUNT ( * ) * 61
----
-49

query I rowsort
SELECT ALL 71 + + 82 - 39 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT - CASE - 75 WHEN 35 THEN - + 51 WHEN - + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT - CASE - 75 WHEN 35 THEN - + 51 WHEN - + COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ( + 14 ) * + 92
----
1288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5511
SELECT ALL + SUM( + ( - 30 ) ) + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL + SUM ( + ( - 30 ) ) + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - 95 * + COALESCE ( - 70, - COUNT( * ) ) * - 55 AS col1
----
-365750

skipif mysql # not compatible
query I rowsort label-5512
SELECT - 95 * + COALESCE ( - 70, - COUNT ( * ) ) * - 55 AS col1
----
-365750

query I rowsort
SELECT ALL 38 - - - 47
----
-9

query I rowsort
SELECT ALL - NULLIF ( 56, 91 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5515
SELECT COUNT( ALL + NULLIF ( + 15, CAST( NULL AS SIGNED ) ) ) * + - 48 + COUNT( * ) + - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-5515
SELECT COUNT ( ALL + NULLIF ( + 15, CAST ( NULL AS INTEGER ) ) ) * + - 48 + COUNT ( * ) + - COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5516
SELECT - 22 DIV + + 11 - + + 79 AS col2, COUNT( * )
----
-81
1

skipif mysql # not compatible
query II rowsort label-5516
SELECT - 22 / + + 11 - + + 79 AS col2, COUNT ( * )
----
-81
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5518
SELECT CASE - SUM( CAST( NULL AS SIGNED ) ) WHEN - 2 * COUNT( * ) THEN - - 25 * CASE + + CAST( NULL AS SIGNED ) WHEN - - 95 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + + 77 + 73 + + 11 + - 39 WHEN - + ( + + 67 ) THEN NULL ELSE NULL END / - 63 - + 73 WHEN - - 98 * + ( + COUNT( * ) ) + - + 19 + - COUNT( * ) * - - CASE - 17 WHEN + 4 THEN 46 / 28 ELSE NULL END THEN MAX( - 52 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT CASE - SUM ( CAST ( NULL AS INTEGER ) ) WHEN - 2 * COUNT ( * ) THEN - - 25 * CASE + + CAST ( NULL AS INTEGER ) WHEN - - 95 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + + 77 + 73 + + 11 + - 39 WHEN - + ( + + 67 ) THEN NULL ELSE NULL END / - 63 - + 73 WHEN - - 98 * + ( + COUNT ( * ) ) + - + 19 + - COUNT ( * ) * - - CASE - 17 WHEN + 4 THEN 46 / 28 ELSE NULL END THEN MAX ( - 52 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT ALL - ( + 17 ) * NULLIF ( - + 25, - + COUNT( 30 ) ) * 76 + 35 - + + 93 AS col0
----
32242

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL - ( + 17 ) * NULLIF ( - + 25, - + COUNT ( 30 ) ) * 76 + 35 - + + 93 AS col0
----
32242

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5522
SELECT COALESCE ( - 92, + + COUNT( * ) * - 93 + 0 + + - 7 * - COALESCE ( - 32, COUNT( * ) ), NULLIF ( + 98, COUNT( - - 42 ) ) ) / SUM( ALL - + ( + 28 ) ) - + CASE CASE + - 38 WHEN + 73 * 45 + + 84 + + - AVG ( ( + + 95 ) ) THEN CAST( + 2 AS SIGNED ) * 7 + 27 WHEN 8 * + 95 THEN NULL END WHEN COUNT( * ) + 38 THEN - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT COALESCE ( - 92, + + COUNT ( * ) * - 93 + 0 + + - 7 * - COALESCE ( - 32, COUNT ( * ) ), NULLIF ( + 98, COUNT ( - - 42 ) ) ) / SUM ( ALL - + ( + 28 ) ) - + CASE CASE + - 38 WHEN + 73 * 45 + + 84 + + - AVG ( ( + + 95 ) ) THEN CAST ( + 2 AS INTEGER ) * 7 + 27 WHEN 8 * + 95 THEN NULL END WHEN COUNT ( * ) + 38 THEN - 12 END
----
NULL

query I rowsort
SELECT + 97 * + 84 + + - 3
----
8145

onlyif mysql # aggregate syntax: 
query II rowsort label-5524
SELECT ALL + 45 * - 7 + + 22 AS col1, 95 + 74 * 45 + + - 75 + + ( - + COUNT( * ) ) - - - 40 - + + 27 * COUNT( * )
----
-293
3282

skipif mysql # not compatible
query II rowsort label-5524
SELECT ALL + 45 * - 7 + + 22 AS col1, 95 + 74 * 45 + + - 75 + + ( - + COUNT ( * ) ) - - - 40 - + + 27 * COUNT ( * )
----
-293
3282

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5526
SELECT + 24 DIV MIN( + ( - 82 ) ) - 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5526
SELECT + 24 / MIN ( + ( - 82 ) ) - 10 AS col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5527
SELECT - 62 - + - ( 19 ) + + 13 - + 63 * + + 46 - - 74 * - - CAST( - 50 AS SIGNED ) AS col0, 7
----
-6628
7

skipif mysql # not compatible
query II rowsort label-5527
SELECT - 62 - + - ( 19 ) + + 13 - + 63 * + + 46 - - 74 * - - CAST ( - 50 AS INTEGER ) AS col0, 7
----
-6628
7

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5529
SELECT + NULLIF ( - CAST( + + 22 AS SIGNED ), - 65 * - + COUNT( * ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5529
SELECT + NULLIF ( - CAST ( + + 22 AS INTEGER ), - 65 * - + COUNT ( * ) ) AS col0
----
-22

query I rowsort
SELECT + NULLIF ( - ( + 40 ), - 96 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5531
SELECT + 26 + - 29 DIV ( - 68 ) + CAST( + 59 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-5531
SELECT + 26 + - 29 / ( - 68 ) + CAST ( + 59 AS INTEGER )
----
85

query I rowsort
SELECT - 19 * 94 AS col0
----
-1786

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL CASE - COUNT( * ) WHEN + 7 / + 76 + - SUM( DISTINCT - 49 ) - + + COUNT( * ) * - 20 THEN 64 WHEN COUNT( * ) / - - 28 * - - 27 + - COUNT( * ) + + 96 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL CASE - COUNT ( * ) WHEN + 7 / + 76 + - SUM ( DISTINCT - 49 ) - + + COUNT ( * ) * - 20 THEN 64 WHEN COUNT ( * ) / - - 28 * - - 27 + - COUNT ( * ) + + 96 THEN NULL END
----
NULL

query II rowsort
SELECT - 95, + ( - 97 ) AS col0
----
-95
-97

query I rowsort
SELECT ALL + 23 + - 61
----
-38

query I rowsort
SELECT - COALESCE ( + + 25, 25, - 82 * - NULLIF ( + 34, + + 88 * 1 ) + - 76 ) - + 44 * - 50 AS col2
----
2175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5537
SELECT ALL + CAST( - 29 AS SIGNED ) * - + CAST( - 98 AS SIGNED ) col0, + 94 col0
----
-2842
94

skipif mysql # not compatible
query II rowsort label-5537
SELECT ALL + CAST ( - 29 AS INTEGER ) * - + CAST ( - 98 AS INTEGER ) col0, + 94 col0
----
-2842
94

query I rowsort
SELECT ALL + 23 + - 97
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT - COUNT( ALL + + 90 ) * + 96 * COUNT( - + 6 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-5539
SELECT - COUNT ( ALL + + 90 ) * + 96 * COUNT ( - + 6 ) AS col2
----
-96

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5541
SELECT 38, + 32 DIV - 61 AS col0
----
38
0

skipif mysql # not compatible
query II rowsort label-5541
SELECT 38, + 32 / - 61 AS col0
----
38
0

query I rowsort
SELECT - 77 + 54 * - 56 * 76
----
-229901

query II rowsort
SELECT - 60, 1 AS col1
----
-60
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5544
SELECT - COUNT( 6 ) + + 71 AS col1, MAX( - 39 ) * - COUNT( * ) * + 28
----
70
1092

skipif mysql # not compatible
query II rowsort label-5544
SELECT - COUNT ( 6 ) + + 71 AS col1, MAX ( - 39 ) * - COUNT ( * ) * + 28
----
70
1092

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5545
SELECT DISTINCT + - CAST( + + 99 AS SIGNED ) DIV 72 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT + - CAST ( + + 99 AS INTEGER ) / 72 AS col0
----
-1

query I rowsort
SELECT - 56 + ( + 84 ) AS col0
----
28

query I rowsort
SELECT ALL - 25 + 11
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT - 70 + - COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5548
SELECT - 70 + - COUNT ( * ) AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5549
SELECT - + ( - - CAST( + - SUM( - 86 ) AS SIGNED ) ) * - 15 + + + 13 col0, COALESCE ( - 14, - 12 + + CASE 88 WHEN - COUNT( * ) * - - 75 THEN NULL WHEN - - ( - CAST( NULL AS DECIMAL ) ) THEN + - 74 * 41 ELSE - SUM( ALL - ( + - 69 ) ) END ) AS col0
----
1303
-14

skipif mysql # not compatible
query II rowsort label-5549
SELECT - + ( - - CAST ( + - SUM ( - 86 ) AS INTEGER ) ) * - 15 + + + 13 col0, COALESCE ( - 14, - 12 + + CASE 88 WHEN - COUNT ( * ) * - - 75 THEN NULL WHEN - - ( - CAST ( NULL AS REAL ) ) THEN + - 74 * 41 ELSE - SUM ( ALL - ( + - 69 ) ) END ) AS col0
----
1303
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-5550
SELECT DISTINCT + - 7 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT + - 7 / 83
----
0

query I rowsort
SELECT - - 65 + + 39 AS col2
----
104

query I rowsort
SELECT + + 90 + 29
----
119

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

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

query I rowsort
SELECT + - 15 + + 51
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ALL - NULLIF ( COUNT( * ), 99 * + + 42 + 85 ) * - 60 * ( - COUNT( * ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL - NULLIF ( COUNT ( * ), 99 * + + 42 + 85 ) * - 60 * ( - COUNT ( * ) ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT - - 4 * 82 * + + MAX( 28 )
----
9184

skipif mysql # not compatible
query I rowsort label-5556
SELECT - - 4 * 82 * + + MAX ( 28 )
----
9184

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT + COUNT( * ) * - + 65 * + + 77 * 65 + - + 20 + 58 col2
----
-325287

skipif mysql # not compatible
query I rowsort label-5557
SELECT + COUNT ( * ) * - + 65 * + + 77 * 65 + - + 20 + 58 col2
----
-325287

query I rowsort
SELECT ALL ( 79 ) * + + 3 * + - NULLIF ( + 14, + 58 ) + + 57
----
-3261

query II rowsort
SELECT + - 82 AS col1, - 21 + - 57 * - + 90
----
-82
5109

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

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

query II rowsort
SELECT ALL + 31, + CASE + 38 WHEN 54 THEN NULL WHEN - 27 THEN + AVG ( ALL 78 ) + 93 ELSE NULL END AS col1
----
31
NULL

query I rowsort
SELECT ALL - 77 * - 21
----
1617

query I rowsort
SELECT + 3 * - 2 col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5564
SELECT 63 DIV - 84 + NULLIF ( + 93, + - COUNT( + ( - 40 ) ) + - 63 + 4 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5564
SELECT 63 / - 84 + NULLIF ( + 93, + - COUNT ( + ( - 40 ) ) + - 63 + 4 ) AS col0
----
93

query II rowsort
SELECT ( + 44 ), + ( + 97 ) AS col2
----
44
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5566
SELECT + COUNT( * ) + - COUNT( * ) + 32 DIV 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5566
SELECT + COUNT ( * ) + - COUNT ( * ) + 32 / 80 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5567
SELECT ALL COALESCE ( + - COUNT( * ), - + 80 + + - ( COALESCE ( 90, + CAST( + + 11 AS SIGNED ) + 94 + - 91 - + 31 * - 61, - 38 ) ), + 44, - CASE 67 WHEN COUNT( * ) * + 12 / 2 THEN CASE 44 WHEN + 69 + 85 + 8 - ( + 21 ) / + + 28 * 3 + 13 * - CAST( - ( + 1 ) * + 26 + 38 * - 66 AS SIGNED ) THEN 69 END - + CAST( NULL AS SIGNED ) ELSE NULL END ) * + 64 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL COALESCE ( + - COUNT ( * ), - + 80 + + - ( COALESCE ( 90, + CAST ( + + 11 AS INTEGER ) + 94 + - 91 - + 31 * - 61, - 38 ) ), + 44, - CASE 67 WHEN COUNT ( * ) * + 12 / 2 THEN CASE 44 WHEN + 69 + 85 + 8 - ( + 21 ) / + + 28 * 3 + 13 * - CAST ( - ( + 1 ) * + 26 + 38 * - 66 AS INTEGER ) THEN 69 END - + CAST ( NULL AS INTEGER ) ELSE NULL END ) * + 64 AS col0
----
-64

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5569
SELECT + COUNT( 11 ) DIV - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5569
SELECT + COUNT ( 11 ) / - 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT ALL + 27 * - + ( 8 ) + + 99 + - - COUNT( * ) * + - 89
----
-206

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL + 27 * - + ( 8 ) + + 99 + - - COUNT ( * ) * + - 89
----
-206

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5571
SELECT + 67 + 19 AS col1, - 48 - - - CAST( NULL AS SIGNED )
----
86
NULL

skipif mysql # not compatible
query II rowsort label-5571
SELECT + 67 + 19 AS col1, - 48 - - - CAST ( NULL AS INTEGER )
----
86
NULL

query I rowsort
SELECT + NULLIF ( 32, 33 + + 44 )
----
32

query I rowsort
SELECT ALL 38 * - + 75
----
-2850

query I rowsort
SELECT 54 * - 5 + - - 44 AS col1
----
-226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5575
SELECT + COUNT( * ) DIV - - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5575
SELECT + COUNT ( * ) / - - 90 AS col0
----
0

query I rowsort
SELECT ALL 66 * - + 42 * + 61 + - 46
----
-169138

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5577
SELECT DISTINCT + NULLIF ( CAST( NULL AS DECIMAL ), - 2 / - CAST( NULL AS SIGNED ) + - + 71 + + 71 * + 39 - 64 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT + NULLIF ( CAST ( NULL AS REAL ), - 2 / - CAST ( NULL AS INTEGER ) + - + 71 + + 71 * + 39 - 64 ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 17 * 89 + + 78
----
1591

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT + CASE - ( + COUNT( * ) ) WHEN 94 THEN + - 84 + - 56 WHEN + + COUNT( * ) THEN - 85 / - 77 END * 54 * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT + CASE - ( + COUNT ( * ) ) WHEN 94 THEN + - 84 + - 56 WHEN + + COUNT ( * ) THEN - 85 / - 77 END * 54 * + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT DISTINCT - 67 * - MIN( - 56 ) + - + 83 AS col0
----
-3835

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT - 67 * - MIN ( - 56 ) + - + 83 AS col0
----
-3835

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL 3 * + + COUNT( * ) * + 5 + + ( - 79 )
----
-64

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL 3 * + + COUNT ( * ) * + 5 + + ( - 79 )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT + ( - + 26 ) * - 10 + + 16 * + + 1 DIV 97 DIV + 77
----
260

skipif mysql # not compatible
query I rowsort label-5582
SELECT + ( - + 26 ) * - 10 + + 16 * + + 1 / 97 / + 77
----
260

query I rowsort
SELECT + 77 * ( 11 ) AS col0
----
847

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL NULLIF ( - + 9, - 0 * + + 18 * - COUNT( DISTINCT 17 ) / - + SUM( DISTINCT - 86 ) + 97 + - - CASE 54 WHEN + - 24 - - - 71 * 66 / 6 / + - 67 * + 55 * 82 * 55 + - - COUNT( * ) + ( ( + 67 ) ) / - 89 / 14 THEN NULL WHEN + - 85 THEN 53 END ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL NULLIF ( - + 9, - 0 * + + 18 * - COUNT ( DISTINCT 17 ) / - + SUM ( DISTINCT - 86 ) + 97 + - - CASE 54 WHEN + - 24 - - - 71 * 66 / 6 / + - 67 * + 55 * 82 * 55 + - - COUNT ( * ) + ( ( + 67 ) ) / - 89 / 14 THEN NULL WHEN + - 85 THEN 53 END ) AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5585
SELECT AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col2, NULLIF ( + + NULLIF ( + 93, 88 * + 35 + + COUNT( * ) * 97 - + 5 ), + COALESCE ( - 80, - + 78 ) ) AS col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-5585
SELECT AVG ( DISTINCT + CAST ( NULL AS REAL ) ) AS col2, NULLIF ( + + NULLIF ( + 93, 88 * + 35 + + COUNT ( * ) * 97 - + 5 ), + COALESCE ( - 80, - + 78 ) ) AS col1
----
NULL
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT ALL + 29 * - 6 * - MIN( CAST( 75 AS SIGNED ) ) col1
----
13050

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL + 29 * - 6 * - MIN ( CAST ( 75 AS INTEGER ) ) col1
----
13050

query I rowsort
SELECT ALL - 74 - 97 * 70 * + - 43 * 14
----
4087506

query I rowsort
SELECT DISTINCT + 16 * + 10
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5589
SELECT - - CAST( + MAX( 60 ) AS SIGNED ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-5589
SELECT - - CAST ( + MAX ( 60 ) AS INTEGER ) AS col0
----
60

query I rowsort
SELECT - 43 - - 83 + + 74
----
114

query I rowsort
SELECT - 13 * + 49 AS col2
----
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT - COUNT( * ) * - 32 col2
----
32

skipif mysql # not compatible
query I rowsort label-5592
SELECT - COUNT ( * ) * - 32 col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5593
SELECT ALL + - 30 / + NULLIF ( CAST( NULL AS SIGNED ), - 31 ) / - - CAST( + COALESCE ( - 3, - + 61 * - 59 * + 58 + + + COALESCE ( COUNT( * ), COUNT( * ) + - 39, 91 ) - + + COUNT( * ) ) AS DECIMAL ) * 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL + - 30 / + NULLIF ( CAST ( NULL AS INTEGER ), - 31 ) / - - CAST ( + COALESCE ( - 3, - + 61 * - 59 * + 58 + + + COALESCE ( COUNT ( * ), COUNT ( * ) + - 39, 91 ) - + + COUNT ( * ) ) AS REAL ) * 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT 97 / + CASE - 90 WHEN 58 * COUNT( * ) THEN NULL WHEN + AVG ( - 59 ) THEN + 6 ELSE NULL END - - - 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT 97 / + CASE - 90 WHEN 58 * COUNT ( * ) THEN NULL WHEN + AVG ( - 59 ) THEN + 6 ELSE NULL END - - - 44 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - 22 )
----
-22

query I rowsort
SELECT DISTINCT 32 * + 90 + + 32 AS col0
----
2912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5597
SELECT + COUNT( * ) - + - NULLIF ( - CAST( - + 85 AS SIGNED ), + ( + - 60 ) ) - - COUNT( * ) + - 16 + - + 67 * ( - + 48 )
----
3287

skipif mysql # not compatible
query I rowsort label-5597
SELECT + COUNT ( * ) - + - NULLIF ( - CAST ( - + 85 AS INTEGER ), + ( + - 60 ) ) - - COUNT ( * ) + - 16 + - + 67 * ( - + 48 )
----
3287

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT + + 18 DIV + 46 + 22 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5598
SELECT + + 18 / + 46 + 22 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT ALL + 68 + - 81 + - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL + 68 + - 81 + - COUNT ( * )
----
-14

query I rowsort
SELECT 23 + 25
----
48

query I rowsort
SELECT DISTINCT 97 + - + COALESCE ( - - 80, 78 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT 68 * - 90 + - COUNT( * ) * - - COUNT( * ) AS col2
----
-6121

skipif mysql # not compatible
query I rowsort label-5602
SELECT 68 * - 90 + - COUNT ( * ) * - - COUNT ( * ) AS col2
----
-6121

query I rowsort
SELECT ALL 8 + - 41 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT DISTINCT + 50 + - MAX( ALL - 13 )
----
63

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT + 50 + - MAX ( ALL - 13 )
----
63

query I rowsort
SELECT DISTINCT 96 + 71 AS col2
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT ALL 54 DIV + 10 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL 54 / + 10 AS col2
----
5

query I rowsort
SELECT DISTINCT 89 * 66
----
5874

query I rowsort
SELECT 58 + - 67 AS col2
----
-9

query I rowsort
SELECT 93 * - 97 * - 9 AS col1
----
81189

query I rowsort
SELECT DISTINCT 83 * NULLIF ( ( + - 6 ), + 1 + - 72 ) AS col0
----
-498

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

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL 42 - + COUNT ( * ) / - - 44
----
42

query I rowsort
SELECT DISTINCT 53 * - 57 AS col2
----
-3021

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5613
SELECT ALL - 29 DIV - 50 * 93 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL - 29 / - 50 * 93 * - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - 14 * - 79 AS col0
----
1106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5615
SELECT ALL MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT + 41 + 40 * - NULLIF ( - CAST( - + 57 AS SIGNED ), - CASE + 55 WHEN - NULLIF ( 84, - - 15 ) THEN - 80 ELSE 64 END * - 9 ) + + 64
----
-2175

skipif mysql # not compatible
query I rowsort label-5616
SELECT + 41 + 40 * - NULLIF ( - CAST ( - + 57 AS INTEGER ), - CASE + 55 WHEN - NULLIF ( 84, - - 15 ) THEN - 80 ELSE 64 END * - 9 ) + + 64
----
-2175

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

skipif mysql # not compatible
query I rowsort label-5617
SELECT 32 - + - COUNT ( * ) AS col2
----
33

query I rowsort
SELECT + 54 + + 17
----
71

query I rowsort
SELECT 81 + + - 0 AS col2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5620
SELECT - + COALESCE ( + + ( + 82 ), + - 62 DIV 48, + + 33 + - - 95 + + 43 )
----
-82

skipif mysql # not compatible
query I rowsort label-5620
SELECT - + COALESCE ( + + ( + 82 ), + - 62 / 48, + + 33 + - - 95 + + 43 )
----
-82

query I rowsort
SELECT ALL - - 90 + - + ( - 58 ) + - 0 col2
----
148

query I rowsort
SELECT 60 * - 10
----
-600

onlyif mysql # DIV for integer division: 
query I rowsort label-5623
SELECT - 4 + + 69 DIV 56
----
-3

skipif mysql # not compatible
query I rowsort label-5623
SELECT - 4 + + 69 / 56
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5624
SELECT ALL - - CASE NULLIF ( COUNT( * ), 41 ) WHEN + 73 * + 53 - - + NULLIF ( + 6, + 34 ) + 11 * 50 + + 10 + + + CASE AVG ( + - 62 ) WHEN + 82 - + - NULLIF ( CAST( NULL AS SIGNED ), + 84 ) + - ( + 6 ) THEN + CASE - - 91 WHEN + + 79 THEN CASE - 55 WHEN - 25 THEN NULL WHEN 76 THEN - - 43 ELSE + COUNT( * ) END END + 4 ELSE NULL END * + AVG ( ALL 79 ) THEN + 1 * - SUM( + 48 * 46 ) + + 57 / MIN( + 70 * 69 ) WHEN - 9 * 78 + 44 THEN NULL END * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL - - CASE NULLIF ( COUNT ( * ), 41 ) WHEN + 73 * + 53 - - + NULLIF ( + 6, + 34 ) + 11 * 50 + + 10 + + + CASE AVG ( + - 62 ) WHEN + 82 - + - NULLIF ( CAST ( NULL AS INTEGER ), + 84 ) + - ( + 6 ) THEN + CASE - - 91 WHEN + + 79 THEN CASE - 55 WHEN - 25 THEN NULL WHEN 76 THEN - - 43 ELSE + COUNT ( * ) END END + 4 ELSE NULL END * + AVG ( ALL 79 ) THEN + 1 * - SUM ( + 48 * 46 ) + + 57 / MIN ( + 70 * 69 ) WHEN - 9 * 78 + 44 THEN NULL END * 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5625
SELECT 40 AS col1, + CASE - - 58 WHEN - + 61 + + - 27 * 88 * + 75 THEN - 76 * + + ( - - COUNT( * ) ) / - - 78 * + COUNT( + + 96 ) * - - 13 WHEN 24 THEN NULL ELSE - 38 END AS col1
----
40
-38

skipif mysql # not compatible
query II rowsort label-5625
SELECT 40 AS col1, + CASE - - 58 WHEN - + 61 + + - 27 * 88 * + 75 THEN - 76 * + + ( - - COUNT ( * ) ) / - - 78 * + COUNT ( + + 96 ) * - - 13 WHEN 24 THEN NULL ELSE - 38 END AS col1
----
40
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT DISTINCT - + SUM( ALL - 88 ) + + - 71
----
17

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT - + SUM ( ALL - 88 ) + + - 71
----
17

query I rowsort
SELECT ALL - - 10 + 7 AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT 23 * CAST( NULL AS SIGNED ) * - - 53 * - 5 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5629
SELECT 23 * CAST ( NULL AS INTEGER ) * - - 53 * - 5 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5630
SELECT + 17, COUNT( * ) DIV + 98 AS col2
----
17
0

skipif mysql # not compatible
query II rowsort label-5630
SELECT + 17, COUNT ( * ) / + 98 AS col2
----
17
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5631
SELECT DISTINCT - 9 DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT - 9 / + 36
----
0

query I rowsort
SELECT DISTINCT - ( - 22 ) AS col0
----
22

query I rowsort
SELECT ALL - 91 * + 16
----
-1456

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT ALL 96 * COUNT( * ) + 16
----
112

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL 96 * COUNT ( * ) + 16
----
112

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

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

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

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

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

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

query I rowsort
SELECT ALL + 28 * + 32
----
896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5639
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( - 39 ) * - 26 + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( - 39 ) * - 26 + + 81
----
NULL

query I rowsort
SELECT DISTINCT 42 - + - 16
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT DISTINCT - COALESCE ( + - 64, COUNT( * ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT - COALESCE ( + - 64, COUNT ( * ) ) AS col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5642
SELECT DISTINCT - 51, - COUNT( * ) DIV - 73 * + + 22 AS col2
----
-51
0

skipif mysql # not compatible
query II rowsort label-5642
SELECT DISTINCT - 51, - COUNT ( * ) / - 73 * + + 22 AS col2
----
-51
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5643
SELECT ALL - 54 AS col2, + MIN( DISTINCT + 98 ) * + 37 + 67 * - - CASE - + MIN( ALL + + 2 ) WHEN - 45 + + 2 * - 95 THEN 73 ELSE - - 28 END * - 64 + 49 - - 20
----
-54
-116369

skipif mysql # not compatible
query II rowsort label-5643
SELECT ALL - 54 AS col2, + MIN ( DISTINCT + 98 ) * + 37 + 67 * - - CASE - + MIN ( ALL + + 2 ) WHEN - 45 + + 2 * - 95 THEN 73 ELSE - - 28 END * - 64 + 49 - - 20
----
-54
-116369

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT AVG ( ALL + + 42 ) + - CASE + 46 WHEN - SUM( DISTINCT - 75 ) * AVG ( ALL + 94 ) * - + 82 * + 68 / + - 39 * + 12 + AVG ( + 56 ) + 59 THEN 77 WHEN + - 7 + + 97 THEN AVG ( ALL + + 14 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5644
SELECT AVG ( ALL + + 42 ) + - CASE + 46 WHEN - SUM ( DISTINCT - 75 ) * AVG ( ALL + 94 ) * - + 82 * + 68 / + - 39 * + 12 + AVG ( + 56 ) + 59 THEN 77 WHEN + - 7 + + 97 THEN AVG ( ALL + + 14 ) END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 57 - - 87 AS col1, 92 AS col1
----
144
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT - 89 * - + MAX( + 28 ) + + COUNT( * )
----
2493

skipif mysql # not compatible
query I rowsort label-5646
SELECT - 89 * - + MAX ( + 28 ) + + COUNT ( * )
----
2493

query I rowsort
SELECT 78 + + + 32 * + 94
----
3086

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT DISTINCT + 55 DIV + 5 col0
----
11

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT + 55 / + 5 col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5649
SELECT - 16 DIV 6
----
-2

skipif mysql # not compatible
query I rowsort label-5649
SELECT - 16 / 6
----
-2

query I rowsort
SELECT + - ( - 61 ) * ( - + 58 )
----
-3538

query I rowsort
SELECT ALL + 22 * + ( - 37 ) * - 44 AS col1
----
35816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5652
SELECT - 21 * + 31 + + 19 - + 69 * - 20 + - 71 DIV + SUM( - - 75 ) * - - COUNT( * ) + - - 49 * - - 22 AS col0
----
1826

skipif mysql # not compatible
query I rowsort label-5652
SELECT - 21 * + 31 + + 19 - + 69 * - 20 + - 71 / + SUM ( - - 75 ) * - - COUNT ( * ) + - - 49 * - - 22 AS col0
----
1826

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

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT - 95 / - COUNT ( * )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5654
SELECT ALL - COALESCE ( - - CAST( - 23 AS SIGNED ), - 99 + + + 70 + NULLIF ( + + CAST( NULL AS SIGNED ), + 59 * - SUM( DISTINCT - 31 ) ) + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + 33 )
----
23

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL - COALESCE ( - - CAST ( - 23 AS INTEGER ), - 99 + + + 70 + NULLIF ( + + CAST ( NULL AS INTEGER ), + 59 * - SUM ( DISTINCT - 31 ) ) + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + 33 )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5655
SELECT + + 67 DIV - MAX( DISTINCT - - 25 )
----
-2

skipif mysql # not compatible
query I rowsort label-5655
SELECT + + 67 / - MAX ( DISTINCT - - 25 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT ALL CAST( NULL AS SIGNED ) + 64 * + 66 + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL CAST ( NULL AS INTEGER ) + 64 * + 66 + + 4
----
NULL

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

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

query II rowsort
SELECT 37 AS col2, + 72 + + 75
----
37
147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT DISTINCT - MAX( - 59 ) + + 74
----
133

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT - MAX ( - 59 ) + + 74
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT ALL - 46 + - MIN( - 10 ) * + COALESCE ( + - 66, + 85 * - - COUNT( * ) )
----
-706

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL - 46 + - MIN ( - 10 ) * + COALESCE ( + - 66, + 85 * - - COUNT ( * ) )
----
-706

query I rowsort
SELECT DISTINCT 33 + + - 26
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5663
SELECT ALL - 32 * - 31 AS col2, - COUNT( - + 68 ) AS col0
----
992
-1

skipif mysql # not compatible
query II rowsort label-5663
SELECT ALL - 32 * - 31 AS col2, - COUNT ( - + 68 ) AS col0
----
992
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5664
SELECT - NULLIF ( - + CAST( - - 41 AS SIGNED ), 11 + - 65 )
----
41

skipif mysql # not compatible
query I rowsort label-5664
SELECT - NULLIF ( - + CAST ( - - 41 AS INTEGER ), 11 + - 65 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT DISTINCT 44 + - + 72 * NULLIF ( COUNT( * ), + 88 )
----
-28

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT 44 + - + 72 * NULLIF ( COUNT ( * ), + 88 )
----
-28

query I rowsort
SELECT ALL - 5 - - 69 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT ALL 79 * + COUNT( - 53 ) * - + 34 * - + 94 * - 95
----
-23985980

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL 79 * + COUNT ( - 53 ) * - + 34 * - + 94 * - 95
----
-23985980

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5669
SELECT - 29 DIV + 51 + 14, 47 * + CASE CAST( NULL AS SIGNED ) WHEN - + 52 * - 55 THEN NULL WHEN 56 + 93 THEN COUNT( * ) - - COUNT( ALL - - ( 27 ) ) - + 67 - - SUM( 21 ) * + CAST( - 53 AS SIGNED ) ELSE - - 62 * - - 22 + - - 11 + SUM( ALL - 48 ) + + NULLIF ( - 63, + + COUNT( * ) ) END AS col0
----
14
59408

skipif mysql # not compatible
query II rowsort label-5669
SELECT - 29 / + 51 + 14, 47 * + CASE CAST ( NULL AS INTEGER ) WHEN - + 52 * - 55 THEN NULL WHEN 56 + 93 THEN COUNT ( * ) - - COUNT ( ALL - - ( 27 ) ) - + 67 - - SUM ( 21 ) * + CAST ( - 53 AS INTEGER ) ELSE - - 62 * - - 22 + - - 11 + SUM ( ALL - 48 ) + + NULLIF ( - 63, + + COUNT ( * ) ) END AS col0
----
14
59408

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

query I rowsort
SELECT + 37 * + - 62
----
-2294

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5672
SELECT + ( - 6 ) AS col2, CAST( + - 81 AS SIGNED ) AS col0
----
-6
-81

skipif mysql # not compatible
query II rowsort label-5672
SELECT + ( - 6 ) AS col2, CAST ( + - 81 AS INTEGER ) AS col0
----
-6
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5673
SELECT + NULLIF ( + - COUNT( * ), SUM( 16 ) * + 2 ) + + + 98 + - COUNT( - 11 ) DIV + 26 * + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-5673
SELECT + NULLIF ( + - COUNT ( * ), SUM ( 16 ) * + 2 ) + + + 98 + - COUNT ( - 11 ) / + 26 * + + COUNT ( * )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5674
SELECT ALL + ( 58 ) col0, + 14 + + + CAST( + 14 AS SIGNED )
----
58
28

skipif mysql # not compatible
query II rowsort label-5674
SELECT ALL + ( 58 ) col0, + 14 + + + CAST ( + 14 AS INTEGER )
----
58
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT ALL - 61 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL - 61 / - 83
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT DISTINCT + 88 DIV - + 14 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT + 88 / - + 14 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL + COUNT( * ) * SUM( - 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL + COUNT ( * ) * SUM ( - 18 ) AS col1
----
-18

query I rowsort
SELECT COALESCE ( COALESCE ( - 55, - - 20 + 32 * 67 ), - 55 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5679
SELECT ALL + 70 DIV - 24
----
-2

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL + 70 / - 24
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT - ( + 68 ) * COUNT( * ) + - 62 * - ( + 8 ) + - ( - NULLIF ( - 82, - COUNT( ALL + 85 ) * - 20 * 11 - - 48 ) ) * - 3 AS col2
----
674

skipif mysql # not compatible
query I rowsort label-5680
SELECT - ( + 68 ) * COUNT ( * ) + - 62 * - ( + 8 ) + - ( - NULLIF ( - 82, - COUNT ( ALL + 85 ) * - 20 * 11 - - 48 ) ) * - 3 AS col2
----
674

query I rowsort
SELECT - - COALESCE ( - 89, + 42, + - 71 ) * + 19 * NULLIF ( + 20, 77 ) col2
----
-33820

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT + 77 * 17 * + 19 - - CASE - - 52 WHEN + - 30 / CASE 77 WHEN - ( - - 52 ) * + 39 * + COUNT( * ) + 51 THEN NULL WHEN 8 THEN NULL ELSE - 63 END THEN - + 56 WHEN + - 39 THEN NULL END + - + 78 - + + ( + + 28 ) - + 6 * - CASE 66 WHEN + + COUNT( * ) THEN - 53 WHEN + CASE - ( - 18 ) WHEN + 11 THEN + 3 * + 48 * + 2 WHEN 94 + - 79 THEN NULL END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT + 77 * 17 * + 19 - - CASE - - 52 WHEN + - 30 / CASE 77 WHEN - ( - - 52 ) * + 39 * + COUNT ( * ) + 51 THEN NULL WHEN 8 THEN NULL ELSE - 63 END THEN - + 56 WHEN + - 39 THEN NULL END + - + 78 - + + ( + + 28 ) - + 6 * - CASE 66 WHEN + + COUNT ( * ) THEN - 53 WHEN + CASE - ( - 18 ) WHEN + 11 THEN + 3 * + 48 * + 2 WHEN 94 + - 79 THEN NULL END THEN NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5685
SELECT DISTINCT 56 * - 45 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT 56 * - 45 + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT ALL ( + - 91 ) * - - 11 + 1 - COUNT( * ) + + - ( - SUM( + 85 ) ) AS col0
----
-916

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL ( + - 91 ) * - - 11 + 1 - COUNT ( * ) + + - ( - SUM ( + 85 ) ) AS col0
----
-916

query I rowsort
SELECT - + 80 - - 93
----
13

query I rowsort
SELECT - - NULLIF ( - 10, - NULLIF ( + + 31, 92 ) + - 81 + + + 4 * - 75 * + - 97 / + 69 ) - 95 AS col1
----
-105

query I rowsort
SELECT - - 36 + + + 13
----
49

query II rowsort
SELECT - 14 * + 90 + + 44, + 15 + - + 98 AS col0
----
-1216
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5691
SELECT + - CAST( + 71 AS SIGNED ) DIV + MAX( ALL - 26 ) * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5691
SELECT + - CAST ( + 71 AS INTEGER ) / + MAX ( ALL - 26 ) * - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT ALL - 50 + COUNT( * ) + - 61 * + 49 col2
----
-3038

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL - 50 + COUNT ( * ) + - 61 * + 49 col2
----
-3038

query I rowsort
SELECT - 25 + - 25 + - 87 * + - 67
----
5779

query I rowsort
SELECT - 39 + - 12 + 72 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL 83 * MAX( DISTINCT + - ( - - 42 ) ) * + - 63 + - COUNT( * )
----
219617

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL 83 * MAX ( DISTINCT + - ( - - 42 ) ) * + - 63 + - COUNT ( * )
----
219617

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT ALL + 89 + COUNT( + - 76 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL + 89 + COUNT ( + - 76 ) AS col2
----
90

query I rowsort
SELECT ALL 91 - 7
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL - 64 * - MIN( ALL 38 )
----
2432

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL - 64 * - MIN ( ALL 38 )
----
2432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5699
SELECT + MAX( DISTINCT + 22 ) + - ( - ( + 64 ) ) / CAST( NULL AS SIGNED ) / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT + MAX ( DISTINCT + 22 ) + - ( - ( + 64 ) ) / CAST ( NULL AS INTEGER ) / 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5700
SELECT - 85 * + COALESCE ( - 1, + MIN( 59 ) DIV + 72 )
----
85

skipif mysql # not compatible
query I rowsort label-5700
SELECT - 85 * + COALESCE ( - 1, + MIN ( 59 ) / + 72 )
----
85

query I rowsort
SELECT + 61 * 89
----
5429

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT + ( + 91 ) + - 24 AS col2, - 32 + + COUNT( * ) AS col2
----
67
-31

skipif mysql # not compatible
query II rowsort label-5702
SELECT + ( + 91 ) + - 24 AS col2, - 32 + + COUNT ( * ) AS col2
----
67
-31

query I rowsort
SELECT DISTINCT 66 - - 62 * - - 31
----
1988

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

query I rowsort
SELECT DISTINCT 60 * - + 78 AS col0
----
-4680

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT + MAX( DISTINCT - - 74 ) * - COUNT( ALL + - 26 )
----
-74

skipif mysql # not compatible
query I rowsort label-5707
SELECT + MAX ( DISTINCT - - 74 ) * - COUNT ( ALL + - 26 )
----
-74

query I rowsort
SELECT 9 * - + 40 AS col2
----
-360

query I rowsort
SELECT ALL 59 + 89 AS col1
----
148

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5711
SELECT - CAST( - COUNT( * ) AS SIGNED ) + - 79 - + 10
----
-88

skipif mysql # not compatible
query I rowsort label-5711
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + - 79 - + 10
----
-88

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

skipif mysql # not compatible
query I rowsort label-5712
SELECT 40 / + ( + - COUNT ( * ) ) col0
----
-40

query I rowsort
SELECT ALL - ( 71 ) + + 12
----
-59

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

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

query I rowsort
SELECT 9 * + - 74 - 33 + - ( + - 0 ) AS col1
----
-699

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT CASE + NULLIF ( + 87, - COUNT( * ) ) WHEN - MIN( - - 1 ) THEN + 26 WHEN - - 85 + + + COALESCE ( - 61, - 33 ) THEN + + AVG ( - - 21 ) + 59 + + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5716
SELECT CASE + NULLIF ( + 87, - COUNT ( * ) ) WHEN - MIN ( - - 1 ) THEN + 26 WHEN - - 85 + + + COALESCE ( - 61, - 33 ) THEN + + AVG ( - - 21 ) + 59 + + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5717
SELECT ALL - 45 DIV + NULLIF ( + 92, 78 * 36 - 39 ) DIV + COUNT( DISTINCT + 78 ), 66 AS col0
----
0
66

skipif mysql # not compatible
query II rowsort label-5717
SELECT ALL - 45 / + NULLIF ( + 92, 78 * 36 - 39 ) / + COUNT ( DISTINCT + 78 ), 66 AS col0
----
0
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT + COUNT( * ) + + 61 + + - 67 * ( + - 19 ) AS col2
----
1335

skipif mysql # not compatible
query I rowsort label-5718
SELECT + COUNT ( * ) + + 61 + + - 67 * ( + - 19 ) AS col2
----
1335

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

query I rowsort
SELECT 10 + + 40 * 87 AS col2
----
3490

query II rowsort
SELECT 91 AS col2, 69 * 33 * + - 43 - 56 AS col0
----
91
-97967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5722
SELECT - + CAST( NULL AS SIGNED ) * 57 + + + 5 + + - 91 + COALESCE ( + - SUM( + + 33 ), + CASE - CAST( - 73 AS SIGNED ) WHEN + + 42 / - 13 THEN - + SUM( + - COALESCE ( - 60, - 41 * - 90 + - + 66 + 3 * NULLIF ( - 44, - 96 ) * - 44 ) ) WHEN 2 - + 25 THEN NULL END * 49 / COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5722
SELECT - + CAST ( NULL AS INTEGER ) * 57 + + + 5 + + - 91 + COALESCE ( + - SUM ( + + 33 ), + CASE - CAST ( - 73 AS INTEGER ) WHEN + + 42 / - 13 THEN - + SUM ( + - COALESCE ( - 60, - 41 * - 90 + - + 66 + 3 * NULLIF ( - 44, - 96 ) * - 44 ) ) WHEN 2 - + 25 THEN NULL END * 49 / COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT - - 16 + - 6 col0
----
10

query II rowsort
SELECT - 1 AS col0, 14 AS col1
----
-1
14

query II rowsort
SELECT ALL + 92 AS col1, 87 * + 30
----
92
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT ALL - + 87 - 14 - - COALESCE ( + - COUNT( * ), - 62 )
----
-102

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL - + 87 - 14 - - COALESCE ( + - COUNT ( * ), - 62 )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT DISTINCT + 60 * MAX( DISTINCT + 63 ) AS col0
----
3780

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT + 60 * MAX ( DISTINCT + 63 ) AS col0
----
3780

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT ALL + + COUNT( + 18 ) - 17 * - - NULLIF ( + + 87, COUNT( * ) ) AS col2
----
-1478

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL + + COUNT ( + 18 ) - 17 * - - NULLIF ( + + 87, COUNT ( * ) ) AS col2
----
-1478

query II rowsort
SELECT ALL + + 74 * - + ( 18 ) AS col0, 31
----
-1332
31

query II rowsort
SELECT 39 * + + 91 AS col1, + 30 AS col2
----
3549
30

query I rowsort
SELECT 48 - 95
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT ALL 25 * + + SUM( - 12 ) col2
----
-300

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL 25 * + + SUM ( - 12 ) col2
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT MAX( - - 37 ) * - + 89 + - + NULLIF ( 44, + 84 + ( - + 63 ) ) col2
----
-3337

skipif mysql # not compatible
query I rowsort label-5733
SELECT MAX ( - - 37 ) * - + 89 + - + NULLIF ( 44, + 84 + ( - + 63 ) ) col2
----
-3337

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

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

query I rowsort
SELECT ALL - 15 * + - 61 * - ( 75 ) * - + 91 + - 99
----
6244776

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT 57 + - 48 * + - COUNT( * ) col1
----
105

skipif mysql # not compatible
query I rowsort label-5736
SELECT 57 + - 48 * + - COUNT ( * ) col1
----
105

query I rowsort
SELECT 93 - + + 22
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5738
SELECT 64 * + - NULLIF ( + ( - 0 ), + 23 DIV - 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT 64 * + - NULLIF ( + ( - 0 ), + 23 / - 28 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT 9 DIV + - 19 col1
----
0

skipif mysql # not compatible
query I rowsort label-5739
SELECT 9 / + - 19 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5740
SELECT ALL COUNT( * ) + + 28 * 6 + 74 AS col2, 59 col0
----
243
59

skipif mysql # not compatible
query II rowsort label-5740
SELECT ALL COUNT ( * ) + + 28 * 6 + 74 AS col2, 59 col0
----
243
59

query I rowsort
SELECT DISTINCT + 98 + - 86 * 11 AS col1
----
-848

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT DISTINCT - COUNT( * ) + 5 + + - 75 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT - COUNT ( * ) + 5 + + - 75 AS col2
----
-71

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

query II rowsort
SELECT + 32 + - + 3 AS col0, 92
----
29
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5745
SELECT ALL 11 + - 83 + + - 27 - + - 89 + + + COUNT( * ) DIV + 74 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL 11 + - 83 + + - 27 - + - 89 + + + COUNT ( * ) / + 74 AS col0
----
-10

query I rowsort
SELECT 3 * 78 * + 95 * - - ( + 61 ) + 71 + - 27 - 74 - - 16
----
1356016

query I rowsort
SELECT - 98 * - 99
----
9702

query I rowsort
SELECT - - 62 * - - 65 + + 76
----
4106

query I rowsort
SELECT ALL - + 39 - - 68
----
29

query I rowsort
SELECT ( - NULLIF ( + 60, 6 * AVG ( DISTINCT 61 ) ) ) * + 52 + 19
----
-3101

onlyif mysql # DIV for integer division: 
query I rowsort label-5751
SELECT ALL + 67 DIV - - 55 + - 72 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL + 67 / - - 55 + - 72 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT 81 - COALESCE ( + 19, - 3 ) + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-5752
SELECT 81 - COALESCE ( + 19, - 3 ) + - COUNT ( * )
----
61

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

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

query I rowsort
SELECT ALL - NULLIF ( - 77, 64 - + 47 )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5755
SELECT 83 + + 34 DIV + 86
----
83

skipif mysql # not compatible
query I rowsort label-5755
SELECT 83 + + 34 / + 86
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT 29 * + 22, MAX( - 77 ) AS col2
----
638
-77

skipif mysql # not compatible
query II rowsort label-5756
SELECT 29 * + 22, MAX ( - 77 ) AS col2
----
638
-77

query I rowsort
SELECT 73 + + - 82 AS col2
----
-9

query I rowsort
SELECT ALL - 6 * - + 67 AS col0
----
402

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT 39 DIV - 34 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5759
SELECT 39 / - 34 AS col0
----
-1

query I rowsort
SELECT ( 13 ) + - 64 * 52
----
-3315

query I rowsort
SELECT DISTINCT + 1 * - 94
----
-94

query II rowsort
SELECT ALL 21 AS col2, 68 + 7
----
21
75

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

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

query I rowsort
SELECT ALL + 1 * + NULLIF ( - - 85, 34 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT ALL NULLIF ( COUNT( * ), - ( + 73 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL NULLIF ( COUNT ( * ), - ( + 73 ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL COALESCE ( COUNT( * ), + 38, + - 7 + + NULLIF ( + + 55, 45 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL COALESCE ( COUNT ( * ), + 38, + - 7 + + NULLIF ( + + 55, 45 ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5767
SELECT CAST( 12 AS SIGNED ) * 36 AS col0
----
432

skipif mysql # not compatible
query I rowsort label-5767
SELECT CAST ( 12 AS INTEGER ) * 36 AS col0
----
432

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

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

query I rowsort
SELECT + 13 + 35
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT ALL + 39 * + + COUNT( * ) col1
----
39

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL + 39 * + + COUNT ( * ) col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT - 42 + - - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-5771
SELECT - 42 + - - COUNT ( * )
----
-41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5773
SELECT - NULLIF ( - ( + + CASE - 84 WHEN - COUNT( * ) THEN + 88 END ), + 97 ) + - CAST( NULL AS SIGNED ) col0, 67 - - - 40
----
NULL
27

skipif mysql # not compatible
query II rowsort label-5773
SELECT - NULLIF ( - ( + + CASE - 84 WHEN - COUNT ( * ) THEN + 88 END ), + 97 ) + - CAST ( NULL AS INTEGER ) col0, 67 - - - 40
----
NULL
27

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

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

query I rowsort
SELECT NULLIF ( - 76, + 40 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-5776
SELECT ALL - 39 * 39 * 4 * + ( 87 ) AS col0, COUNT( * )
----
-529308
1

skipif mysql # not compatible
query II rowsort label-5776
SELECT ALL - 39 * 39 * 4 * + ( 87 ) AS col0, COUNT ( * )
----
-529308
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5777
SELECT + - 57, - 64 DIV + 28 AS col1, - - COUNT( * ) AS col2
----
-57
-2
1

skipif mysql # not compatible
query III rowsort label-5777
SELECT + - 57, - 64 / + 28 AS col1, - - COUNT ( * ) AS col2
----
-57
-2
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5778
SELECT DISTINCT + + ( - 14 ) * 41 DIV + COUNT( * ) + - - 36 * - 21 col0
----
-1330

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT + + ( - 14 ) * 41 / + COUNT ( * ) + - - 36 * - 21 col0
----
-1330

query I rowsort
SELECT 18 * - 83 + 63 AS col2
----
-1431

query I rowsort
SELECT + 30 * - + 76
----
-2280

query I rowsort
SELECT ALL - + 49 * 99 + + 51 + 10 * + 73
----
-4070

query I rowsort
SELECT - + ( + 67 ) + + + ( - + 87 ) AS col1
----
-154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5783
SELECT 57 * + 35 * - + ( - ( 60 ) ) + - + SUM( DISTINCT 95 ) DIV 48
----
119699

skipif mysql # not compatible
query I rowsort label-5783
SELECT 57 * + 35 * - + ( - ( 60 ) ) + - + SUM ( DISTINCT 95 ) / 48
----
119699

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

query II rowsort
SELECT - 3 * 50 + - + ( + - 84 ) + 10 * + + 22, - 25 col1
----
154
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5786
SELECT ALL - 10 * - 82 + COUNT( * ) + - + 87 * + 36 + - 62 DIV + 65 AS col0
----
-2311

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL - 10 * - 82 + COUNT ( * ) + - + 87 * + 36 + - 62 / + 65 AS col0
----
-2311

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT + 28 * - 64 * + - COUNT( * ) * - 2 * 67 + - + CASE + 37 WHEN + 29 THEN 10 WHEN - 3 / - - 55 * - + 51 THEN 18 ELSE NULL END * + ( ( + 21 ) ) / NULLIF ( + 16, 2 ) + + - 18 + + + 28 * 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT + 28 * - 64 * + - COUNT ( * ) * - 2 * 67 + - + CASE + 37 WHEN + 29 THEN 10 WHEN - 3 / - - 55 * - + 51 THEN 18 ELSE NULL END * + ( ( + 21 ) ) / NULLIF ( + 16, 2 ) + + - 18 + + + 28 * 99 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 29 * + 15
----
435

query I rowsort
SELECT + 99 * - 14 + 45 * 40
----
414

query I rowsort
SELECT + - ( - 24 ) * 49
----
1176

onlyif mysql # aggregate syntax: 
query II rowsort label-5791
SELECT COUNT( * ) AS col1, - 72 + + - 15 + COALESCE ( - 79, + - 33 * + + COALESCE ( + 54, - 18, - - 8 ) + - 22 ) + + COUNT( * ) * + - 95 * + 64
----
1
-6246

skipif mysql # not compatible
query II rowsort label-5791
SELECT COUNT ( * ) AS col1, - 72 + + - 15 + COALESCE ( - 79, + - 33 * + + COALESCE ( + 54, - 18, - - 8 ) + - 22 ) + + COUNT ( * ) * + - 95 * + 64
----
1
-6246

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT SUM( ALL - - COALESCE ( 37, + 70 + - ( + 83 ) ) )
----
37

skipif mysql # not compatible
query I rowsort label-5792
SELECT SUM ( ALL - - COALESCE ( 37, + 70 + - ( + 83 ) ) )
----
37

query I rowsort
SELECT - ( + COALESCE ( - + 60, + - 99, + 53 + + 29 * - 23 ) )
----
60

query I rowsort
SELECT ALL 73 + 10 AS col1
----
83

query I rowsort
SELECT - ( - CASE + 77 WHEN + 16 THEN 93 * + 46 + NULLIF ( 7, + 70 - - - 40 - + 56 * + 34 * + - 24 ) * + + 24 ELSE - 20 + - 6 * - 13 + + 94 END )
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-5796
SELECT + 55 + - 27 AS col0, ( - COUNT( * ) )
----
28
-1

skipif mysql # not compatible
query II rowsort label-5796
SELECT + 55 + - 27 AS col0, ( - COUNT ( * ) )
----
28
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT ALL 66 DIV 19
----
3

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL 66 / 19
----
3

query I rowsort
SELECT - COALESCE ( 59, 25 )
----
-59

query I rowsort
SELECT DISTINCT 1 * + 32 * + + 70 AS col0
----
2240

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5800
SELECT DISTINCT + 70 + + COALESCE ( 87, - ( - + 97 ) * + 68 + + + 34 * - + 40 ) DIV - NULLIF ( - COUNT( * ), 1 - COALESCE ( + CASE - 25 WHEN 60 THEN - 6 ELSE + - 92 - - SUM( DISTINCT - CAST( + + ( - 90 ) AS DECIMAL ) ) END, - 84, - CASE - 27 WHEN ( - 80 ) - + 97 THEN + 69 * - 1 DIV + ( - 76 ) * + 71 * - CASE 22 WHEN - MAX( ALL + 65 ) THEN 22 ELSE NULL END DIV 64 ELSE 52 END, ( COUNT( * ) ) ) ) * + COUNT( * ) AS col1
----
157

skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT + 70 + + COALESCE ( 87, - ( - + 97 ) * + 68 + + + 34 * - + 40 ) / - NULLIF ( - COUNT ( * ), 1 - COALESCE ( + CASE - 25 WHEN 60 THEN - 6 ELSE + - 92 - - SUM ( DISTINCT - CAST ( + + ( - 90 ) AS REAL ) ) END, - 84, - CASE - 27 WHEN ( - 80 ) - + 97 THEN + 69 * - 1 / + ( - 76 ) * + 71 * - CASE 22 WHEN - MAX ( ALL + 65 ) THEN 22 ELSE NULL END / 64 ELSE 52 END, ( COUNT ( * ) ) ) ) * + COUNT ( * ) AS col1
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5801
SELECT + COUNT( * ) - 75 + - 60 DIV + 11 * + - COUNT( * ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-5801
SELECT + COUNT ( * ) - 75 + - 60 / + 11 * + - COUNT ( * ) col1
----
-69

query I rowsort
SELECT ALL ( NULLIF ( - 5, - 84 ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL MIN( - 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL MIN ( - 13 ) AS col1
----
-13

query I rowsort
SELECT ALL 59 + + ( + 36 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5805
SELECT - 71 * - - COUNT( * ) * - 76 * 8 AS col1, + 55 - + - 62 AS col0
----
43168
117

skipif mysql # not compatible
query II rowsort label-5805
SELECT - 71 * - - COUNT ( * ) * - 76 * 8 AS col1, + 55 - + - 62 AS col0
----
43168
117

query I rowsort
SELECT + 31 + + + 88 * 60
----
5311

onlyif mysql # aggregate syntax: 
query II rowsort label-5807
SELECT - COUNT( * ) - + COALESCE ( COUNT( * ), + - 93 + - 23 ) * - COUNT( * ) AS col1, 3 * - 57 AS col0
----
0
-171

skipif mysql # not compatible
query II rowsort label-5807
SELECT - COUNT ( * ) - + COALESCE ( COUNT ( * ), + - 93 + - 23 ) * - COUNT ( * ) AS col1, 3 * - 57 AS col0
----
0
-171

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

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

query II rowsort
SELECT 80 AS col1, 55 * + - 58
----
80
-3190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5810
SELECT - 93 * + 59 - + ( - NULLIF ( ( CAST( - + 78 AS SIGNED ) ), - 76 + COUNT( ALL - - NULLIF ( 9, 86 ) ) ) ) DIV + COALESCE ( - 72, 0 )
----
-5486

skipif mysql # not compatible
query I rowsort label-5810
SELECT - 93 * + 59 - + ( - NULLIF ( ( CAST ( - + 78 AS INTEGER ) ), - 76 + COUNT ( ALL - - NULLIF ( 9, 86 ) ) ) ) / + COALESCE ( - 72, 0 )
----
-5486

query I rowsort
SELECT - - 77 * - - 6 + 71
----
533

query II rowsort
SELECT 17, - 93 AS col2
----
17
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT DISTINCT + + SUM( - - 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT + + SUM ( - - 72 ) AS col1
----
72

query I rowsort
SELECT ALL - - 59 * 32
----
1888

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

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

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

query I rowsort
SELECT ALL + 81 * - 44 AS col0
----
-3564

query I rowsort
SELECT + COALESCE ( + 82, + 75 ) AS col2
----
82

query I rowsort
SELECT - ( 80 ) - + - 66 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5820
SELECT - + 1 DIV MIN( ALL + + 32 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5820
SELECT - + 1 / MIN ( ALL + + 32 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5821
SELECT - CAST( + 65 AS SIGNED ) * 39 * - 13 - + 15 * NULLIF ( - 79, + + 50 ) + - 99 + - COALESCE ( - 75, + 72 + - - 13 + + 57 ) + + 26 AS col0
----
34142

skipif mysql # not compatible
query I rowsort label-5821
SELECT - CAST ( + 65 AS INTEGER ) * 39 * - 13 - + 15 * NULLIF ( - 79, + + 50 ) + - 99 + - COALESCE ( - 75, + 72 + - - 13 + + 57 ) + + 26 AS col0
----
34142

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5823
SELECT + 67 * - 42 AS col1, ( + COUNT( * ) )
----
-2814
1

skipif mysql # not compatible
query II rowsort label-5823
SELECT + 67 * - 42 AS col1, ( + COUNT ( * ) )
----
-2814
1

query I rowsort
SELECT ALL ( - ( + 62 ) ) * 66 + 83 + + 83 AS col2
----
-3926

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT DISTINCT 9 * - 28 + + - SUM( ALL - 49 ) * 47
----
2051

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT 9 * - 28 + + - SUM ( ALL - 49 ) * 47
----
2051

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5826
SELECT - COUNT( ALL + - 58 ) + 56 DIV - NULLIF ( - 24, + - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5826
SELECT - COUNT ( ALL + - 58 ) + 56 / - NULLIF ( - 24, + - COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5827
SELECT + MIN( DISTINCT + CASE + 52 WHEN + 82 THEN NULL ELSE 77 - CAST( - 17 AS SIGNED ) * - + 8 END ) * - + 58 + - ( - 42 ) + - 82, 58 * + 80 AS col1
----
3382
4640

skipif mysql # not compatible
query II rowsort label-5827
SELECT + MIN ( DISTINCT + CASE + 52 WHEN + 82 THEN NULL ELSE 77 - CAST ( - 17 AS INTEGER ) * - + 8 END ) * - + 58 + - ( - 42 ) + - 82, 58 * + 80 AS col1
----
3382
4640

query II rowsort
SELECT ALL 67 + - 31 AS col2, ( ( - 98 ) ) AS col1
----
36
-98

query II rowsort
SELECT ALL 25 * + 17 AS col2, - 24
----
425
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT 67 * CASE 29 WHEN + 40 - + 17 THEN COUNT( * ) + 27 ELSE NULL END * 45 / - ( - 88 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT 67 * CASE 29 WHEN + 40 - + 17 THEN COUNT ( * ) + 27 ELSE NULL END * 45 / - ( - 88 ) AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT 60 * - 86 * 11
----
-56760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5833
SELECT ALL COUNT( * ) + - 28 DIV - + 66 * 61 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL COUNT ( * ) + - 28 / - + 66 * 61 AS col1
----
1

query I rowsort
SELECT DISTINCT 24 * ( - 61 ) AS col1
----
-1464

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

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT COUNT ( * ) / - 94 / + ( - - ( - + 78 ) ) / - 36
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5836
SELECT DISTINCT 18 - + COUNT( * ), + 58 AS col0
----
17
58

skipif mysql # not compatible
query II rowsort label-5836
SELECT DISTINCT 18 - + COUNT ( * ), + 58 AS col0
----
17
58

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

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT COUNT ( * ) / + - 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT COUNT( - 62 ) + + 79 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-5838
SELECT COUNT ( - 62 ) + + 79 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT 87 * COUNT( * ) * - 42
----
-3654

skipif mysql # not compatible
query I rowsort label-5839
SELECT 87 * COUNT ( * ) * - 42
----
-3654

query II rowsort
SELECT 30 * 10 AS col1, 7 AS col1
----
300
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5841
SELECT ALL CAST( - 47 AS SIGNED ) * 46
----
-2162

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL CAST ( - 47 AS INTEGER ) * 46
----
-2162

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT - 51 * MIN( - + 61 ) + + ( 4 ) + + 78 AS col0
----
3193

skipif mysql # not compatible
query I rowsort label-5842
SELECT - 51 * MIN ( - + 61 ) + + ( 4 ) + + 78 AS col0
----
3193

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT 76 * MIN( + 55 )
----
4180

skipif mysql # not compatible
query I rowsort label-5843
SELECT 76 * MIN ( + 55 )
----
4180

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT DISTINCT - + 7 * - NULLIF ( + + 56, - - 8 * - 16 * - 74 ) * - - 79 + - 91 + + 66 - 56 * - + COUNT( * ) + + - 23
----
30976

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT - + 7 * - NULLIF ( + + 56, - - 8 * - 16 * - 74 ) * - - 79 + - 91 + + 66 - 56 * - + COUNT ( * ) + + - 23
----
30976

query I rowsort
SELECT DISTINCT 66 * ( + ( 42 ) )
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT + 48 * - + 33 + + 67 - + + MIN( - 98 ) + 9 AS col2
----
-1410

skipif mysql # not compatible
query I rowsort label-5846
SELECT + 48 * - + 33 + + 67 - + + MIN ( - 98 ) + 9 AS col2
----
-1410

onlyif mysql # DIV for integer division: 
query I rowsort label-5847
SELECT + 61 DIV - + 96 + - 87 + ( 11 ) + + 82
----
6

skipif mysql # not compatible
query I rowsort label-5847
SELECT + 61 / - + 96 + - 87 + ( 11 ) + + 82
----
6

query I rowsort
SELECT ALL + + 52 + 64
----
116

query I rowsort
SELECT - 76 + - 40
----
-116

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

query I rowsort
SELECT DISTINCT + 28 * + 28 * 65 + + + ( 50 ) + - NULLIF ( 0, 40 + - 32 + 5 + 81 ) * + + 47
----
51010

query I rowsort
SELECT DISTINCT - 70 + + 37 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL + COUNT( * ) + 57 + + + 0 + 37 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL + COUNT ( * ) + 57 + + + 0 + 37 AS col2
----
95

query II rowsort
SELECT + 16 AS col2, 12 * 64
----
16
768

query I rowsort
SELECT 93 + - + 34 AS col1
----
59

query I rowsort
SELECT ALL + 25 * - + 52 * + 92 * - 27
----
3229200

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT - 4 * + COUNT( * ) * - ( - 48 ) + + 86
----
-106

skipif mysql # not compatible
query I rowsort label-5857
SELECT - 4 * + COUNT ( * ) * - ( - 48 ) + + 86
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT 73 * + COUNT( DISTINCT + 81 ) * + 11
----
803

skipif mysql # not compatible
query I rowsort label-5858
SELECT 73 * + COUNT ( DISTINCT + 81 ) * + 11
----
803

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT ALL - 52 + - ( COUNT( DISTINCT + - 84 ) ) + 2
----
-51

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - 52 + - ( COUNT ( DISTINCT + - 84 ) ) + 2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT 83 * COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5860
SELECT 83 * COUNT ( * ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT ALL - SUM( - 14 ) - + - 87
----
101

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL - SUM ( - 14 ) - + - 87
----
101

query II rowsort
SELECT 52 AS col0, - ( - 92 ) AS col0
----
52
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT ALL MIN( DISTINCT + NULLIF ( + 46, - - 65 + ( - + 59 ) + - 84 ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL MIN ( DISTINCT + NULLIF ( + 46, - - 65 + ( - + 59 ) + - 84 ) ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT COUNT( * ) * - 27 col0
----
-27

skipif mysql # not compatible
query I rowsort label-5864
SELECT COUNT ( * ) * - 27 col0
----
-27

query I rowsort
SELECT 98 * + 6
----
588

query I rowsort
SELECT - 35 - + 82 AS col0
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL + - 1 * + 54 + + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL + - 1 * + 54 + + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - 49 + + 64 AS col2
----
15

query II rowsort
SELECT 77 AS col2, + 57
----
77
57

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

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL MAX ( - 94 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-5871
SELECT 24 DIV + + 42
----
0

skipif mysql # not compatible
query I rowsort label-5871
SELECT 24 / + + 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5872
SELECT ALL 11 DIV + CAST( + - 91 AS SIGNED ) * - COUNT( * ) DIV - ( COUNT( * ) ) AS col2, 39 AS col1
----
0
39

skipif mysql # not compatible
query II rowsort label-5872
SELECT ALL 11 / + CAST ( + - 91 AS INTEGER ) * - COUNT ( * ) / - ( COUNT ( * ) ) AS col2, 39 AS col1
----
0
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5873
SELECT 4 DIV - ( 13 )
----
0

skipif mysql # not compatible
query I rowsort label-5873
SELECT 4 / - ( 13 )
----
0

query II rowsort
SELECT + 88 AS col0, 22
----
88
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT MAX( ALL 87 ) * + 73 * - 21 + - 33 AS col0
----
-133404

skipif mysql # not compatible
query I rowsort label-5875
SELECT MAX ( ALL 87 ) * + 73 * - 21 + - 33 AS col0
----
-133404

onlyif mysql # DIV for integer division: 
query I rowsort label-5876
SELECT ALL 35 DIV - - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL 35 / - - 46 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL - 99 * COUNT( * ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL - 99 * COUNT ( * ) AS col0
----
-99

query I rowsort
SELECT 73 * + - 46 AS col0
----
-3358

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5879
SELECT - CAST( NULL AS SIGNED ), 81 AS col1
----
NULL
81

skipif mysql # not compatible
query II rowsort label-5879
SELECT - CAST ( NULL AS INTEGER ), 81 AS col1
----
NULL
81

query I rowsort
SELECT ALL 50 * - 70 AS col1
----
-3500

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT + MAX( - - 95 ) + - + CASE + 75 WHEN - 74 THEN - MIN( ALL 98 ) END + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5881
SELECT + MAX ( - - 95 ) + - + CASE + 75 WHEN - 74 THEN - MIN ( ALL 98 ) END + 86
----
NULL

query I rowsort
SELECT - ( 28 ) * + 98
----
-2744

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT ALL COUNT( * ) * + SUM( DISTINCT + 31 ) + - 65
----
-34

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL COUNT ( * ) * + SUM ( DISTINCT + 31 ) + - 65
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT + 49 + COUNT( - COALESCE ( + CASE + + 26 WHEN - 61 THEN 37 WHEN - 91 THEN NULL END, - 22 + + 71 + + 82 * - 98, + 38 * - 67, - - 75 * ( - 2 ) / - 40 * + 74 + + 6 ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5884
SELECT + 49 + COUNT ( - COALESCE ( + CASE + + 26 WHEN - 61 THEN 37 WHEN - 91 THEN NULL END, - 22 + + 71 + + 82 * - 98, + 38 * - 67, - - 75 * ( - 2 ) / - 40 * + 74 + + 6 ) ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT DISTINCT - 66 - + 78 + + 90 + - 17 + + COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT - 66 - + 78 + + 90 + - 17 + + COUNT ( * ) AS col1
----
-70

query I rowsort
SELECT - 72 - - 2
----
-70

query I rowsort
SELECT ALL + 94 * + 58 * - 36 AS col0
----
-196272

query I rowsort
SELECT - 24 * + ( + + 58 ) + 80 + 77 * + 62
----
3462

query I rowsort
SELECT - 12 + - 61 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL ( + SUM( DISTINCT - 93 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL ( + SUM ( DISTINCT - 93 ) )
----
-93

query I rowsort
SELECT - 88 + 25 * + NULLIF ( + 13, - 16 ) col1
----
237

query I rowsort
SELECT - 42 * + + 79 - 10 AS col2
----
-3328

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT - - COUNT( * ) + + 43 - ( + 81 ) + + - 67 + - - 83 * - - 7 * - + 49 AS col0
----
-28573

skipif mysql # not compatible
query I rowsort label-5893
SELECT - - COUNT ( * ) + + 43 - ( + 81 ) + + - 67 + - - 83 * - - 7 * - + 49 AS col0
----
-28573

query I rowsort
SELECT + 69 + - 58 * - + 70 * + - 87 + - + 85 - - 29 + + 16
----
-353191

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT - 9 * + ( ( 15 ) ) + + - 77 + - COUNT( - 18 ) * + + 70 AS col0
----
-282

skipif mysql # not compatible
query I rowsort label-5895
SELECT - 9 * + ( ( 15 ) ) + + - 77 + - COUNT ( - 18 ) * + + 70 AS col0
----
-282

query II rowsort
SELECT - ( + + 75 ) col2, - 8 AS col2
----
-75
-8

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

query I rowsort
SELECT DISTINCT + 50 + 50
----
100

query I rowsort
SELECT DISTINCT - 92 + 78 AS col2
----
-14

query II rowsort
SELECT DISTINCT + 69 + - - 1 AS col0, + 47 col2
----
70
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5901
SELECT DISTINCT 73 / - 46 + - 12 + + ( + 51 ) + - - NULLIF ( + 55, + ( - 96 ) ) + - + 14 - + CAST( NULL AS SIGNED ) * + 7 * - + MAX( DISTINCT - 36 ) + + 36 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT 73 / - 46 + - 12 + + ( + 51 ) + - - NULLIF ( + 55, + ( - 96 ) ) + - + 14 - + CAST ( NULL AS INTEGER ) * + 7 * - + MAX ( DISTINCT - 36 ) + + 36 col2
----
NULL

query I rowsort
SELECT + 94 + - - 80 AS col0
----
174

query I rowsort
SELECT + 99 * - 42
----
-4158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5904
SELECT 56 * + + 96 + - + CAST( NULL AS SIGNED ) * - COALESCE ( 60, + + 80 + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT 56 * + + 96 + - + CAST ( NULL AS INTEGER ) * - COALESCE ( 60, + + 80 + COUNT ( * ) )
----
NULL

query I rowsort
SELECT + 8 * + 23 AS col1
----
184

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5907
SELECT ALL MAX( DISTINCT + 62 ) * 14 AS col1, + 13
----
868
13

skipif mysql # not compatible
query II rowsort label-5907
SELECT ALL MAX ( DISTINCT + 62 ) * 14 AS col1, + 13
----
868
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5908
SELECT ALL 9 * - + ( - 52 ) - + COALESCE ( - ( - + 57 ), - - MIN( 8 ) ) AS col1, 75 * ( 1 )
----
411
75

skipif mysql # not compatible
query II rowsort label-5908
SELECT ALL 9 * - + ( - 52 ) - + COALESCE ( - ( - + 57 ), - - MIN ( 8 ) ) AS col1, 75 * ( 1 )
----
411
75

query I rowsort
SELECT DISTINCT + 7 * - + 7 * + 54 AS col1
----
-2646

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT CASE 86 WHEN + 24 / + 84 * - 16 * + 40 THEN - 82 WHEN COUNT( * ) + - - 92 THEN - + 31 * - 90 + - 67 + 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5910
SELECT CASE 86 WHEN + 24 / + 84 * - 16 * + 40 THEN - 82 WHEN COUNT ( * ) + - - 92 THEN - + 31 * - 90 + - 67 + 74 ELSE NULL END
----
NULL

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

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

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

query I rowsort
SELECT NULLIF ( + - ( + - 87 ), - 23 )
----
87

query II rowsort
SELECT ALL COALESCE ( COALESCE ( - 47, - 49 ), + 6 ), 8 col0
----
-47
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5915
SELECT ALL - CAST( + 23 AS SIGNED ) DIV - 82 * - 87 + + 4
----
4

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL - CAST ( + 23 AS INTEGER ) / - 82 * - 87 + + 4
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5916
SELECT - 6 DIV 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5916
SELECT - 6 / 22 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT DISTINCT 57 * - 19 + - 92 DIV 65 col2
----
-1084

skipif mysql # not compatible
query I rowsort label-5917
SELECT DISTINCT 57 * - 19 + - 92 / 65 col2
----
-1084

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5918
SELECT DISTINCT - 6 DIV - + 43 + - MAX( - 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT - 6 / - + 43 + - MAX ( - 79 ) AS col0
----
79

query I rowsort
SELECT + 97 + - + 75 AS col1
----
22

query I rowsort
SELECT - + ( + 41 ) * - ( - 89 ) AS col1
----
-3649

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

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

query II rowsort
SELECT ALL - - 58 + + - ( - 66 ), + 31 + - 8 AS col1
----
124
23

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

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

query I rowsort
SELECT DISTINCT 99 + + 30 AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT DISTINCT - - ( - 46 ) + COALESCE ( + + MAX( ALL 62 ), - - 92 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5925
SELECT DISTINCT - - ( - 46 ) + COALESCE ( + + MAX ( ALL 62 ), - - 92 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT - - SUM( ALL + - 0 ) + - + COUNT( * ) + + 76 * + + 75 * - 59 * 94 AS col0
----
-31612201

skipif mysql # not compatible
query I rowsort label-5926
SELECT - - SUM ( ALL + - 0 ) + - + COUNT ( * ) + + 76 * + + 75 * - 59 * 94 AS col0
----
-31612201

query I rowsort
SELECT ALL - 62 + - - 57
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT DISTINCT - + COUNT( * ) + + 21 * 72
----
1511

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT - + COUNT ( * ) + + 21 * 72
----
1511

query I rowsort
SELECT ALL 0 + - 52 * - 29 * 8
----
12064

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL + NULLIF ( + - CASE - CASE - 85 WHEN 60 THEN + 53 END WHEN - COUNT( * ) THEN + 95 WHEN 15 * - - 89 * - NULLIF ( - ( + 2 ), - 86 ) THEN + 43 WHEN - 4 THEN NULL ELSE - - 98 END, + 6 )
----
-98

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL + NULLIF ( + - CASE - CASE - 85 WHEN 60 THEN + 53 END WHEN - COUNT ( * ) THEN + 95 WHEN 15 * - - 89 * - NULLIF ( - ( + 2 ), - 86 ) THEN + 43 WHEN - 4 THEN NULL ELSE - - 98 END, + 6 )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5931
SELECT - 14 + + CAST( NULL AS DECIMAL ) - + 81 + - 64 * - ( + + 74 ) * - ( SUM( + 69 ) ) + + 21 * - - 15 * 86 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT - 14 + + CAST ( NULL AS REAL ) - + 81 + - 64 * - ( + + 74 ) * - ( SUM ( + 69 ) ) + + 21 * - - 15 * 86 col2
----
NULL

query II rowsort
SELECT DISTINCT 63 AS col0, + 23
----
63
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT DISTINCT - + COALESCE ( - COUNT( * ), + 78 ) - + ( MIN( DISTINCT + - 82 ) ) * - 55 * + CASE + + 40 WHEN ( + 5 ) THEN - 18 END + - SUM( + 61 ) + + 90 - 16 * - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT - + COALESCE ( - COUNT ( * ), + 78 ) - + ( MIN ( DISTINCT + - 82 ) ) * - 55 * + CASE + + 40 WHEN ( + 5 ) THEN - 18 END + - SUM ( + 61 ) + + 90 - 16 * - 23 AS col0
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL + COUNT ( * ) - - - 29 AS col2
----
-28

query I rowsort
SELECT DISTINCT + 84 - - + NULLIF ( + + 96, 28 + - 82 ) AS col1
----
180

query I rowsort
SELECT ALL 96 * - - 93
----
8928

query I rowsort
SELECT ALL - 21 * - 53
----
1113

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5939
SELECT ALL - COALESCE ( + + COUNT( * ), + - 15 + - + 16 ), + 45 + - 62 * ( + + 19 ) + + + ( - 11 ) DIV + 64 + + - 61 AS col0
----
-1
-1194

skipif mysql # not compatible
query II rowsort label-5939
SELECT ALL - COALESCE ( + + COUNT ( * ), + - 15 + - + 16 ), + 45 + - 62 * ( + + 19 ) + + + ( - 11 ) / + 64 + + - 61 AS col0
----
-1
-1194

query II rowsort
SELECT 52 AS col2, + 95 + 41 + + - 51
----
52
85

query I rowsort
SELECT DISTINCT - ( + - 1 ) AS col2
----
1

query II rowsort
SELECT ALL - 47 AS col1, 95
----
-47
95

onlyif mysql # DIV for integer division: 
query II rowsort label-5943
SELECT ALL - 63 AS col1, 37 DIV 44 AS col2
----
-63
0

skipif mysql # not compatible
query II rowsort label-5943
SELECT ALL - 63 AS col1, 37 / 44 AS col2
----
-63
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT COUNT( * ) * + 54 * 24
----
1296

skipif mysql # not compatible
query I rowsort label-5945
SELECT COUNT ( * ) * + 54 * 24
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT 22 * + NULLIF ( - - 93, + 40 + - CASE - - 82 WHEN + + 34 / - + 38 THEN NULL WHEN + 15 * + + 23 THEN - - COUNT( * ) * - 93 WHEN + + COUNT( * ) THEN NULL ELSE - + 23 END + - 13 * + 50 ) + + 43 * + - COUNT( * ) + + - NULLIF ( 81, + + SUM( - 24 ) + - COUNT( * ) )
----
1922

skipif mysql # not compatible
query I rowsort label-5946
SELECT 22 * + NULLIF ( - - 93, + 40 + - CASE - - 82 WHEN + + 34 / - + 38 THEN NULL WHEN + 15 * + + 23 THEN - - COUNT ( * ) * - 93 WHEN + + COUNT ( * ) THEN NULL ELSE - + 23 END + - 13 * + 50 ) + + 43 * + - COUNT ( * ) + + - NULLIF ( 81, + + SUM ( - 24 ) + - COUNT ( * ) )
----
1922

onlyif mysql # aggregate syntax: 
query II rowsort label-5947
SELECT DISTINCT - MIN( DISTINCT 98 ), COUNT( * ) AS col1
----
-98
1

skipif mysql # not compatible
query II rowsort label-5947
SELECT DISTINCT - MIN ( DISTINCT 98 ), COUNT ( * ) AS col1
----
-98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL MAX( - 85 ) * + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL MAX ( - 85 ) * + COUNT ( * )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5949
SELECT ALL MIN( + 55 ) DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL MIN ( + 55 ) / 45
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT ALL 76 + + COUNT( * ) + + 14 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL 76 + + COUNT ( * ) + + 14 AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5951
SELECT 82, + SUM( - 46 ) AS col2
----
82
-46

skipif mysql # not compatible
query II rowsort label-5951
SELECT 82, + SUM ( - 46 ) AS col2
----
82
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT DISTINCT 88 * + SUM( DISTINCT + - CASE + - 61 WHEN 90 * + 58 THEN - + ( + 57 ) + + 56 WHEN + 68 * + 88 + 63 THEN - ( 11 ) END ) / 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT DISTINCT 88 * + SUM ( DISTINCT + - CASE + - 61 WHEN 90 * + 58 THEN - + ( + 57 ) + + 56 WHEN + 68 * + 88 + 63 THEN - ( 11 ) END ) / 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT + 38 + - + 38 + 66 + + 5 * + 23 * - COUNT( 12 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-5953
SELECT + 38 + - + 38 + 66 + + 5 * + 23 * - COUNT ( 12 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT CASE + 37 WHEN + 34 THEN - 65 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT CASE + 37 WHEN + 34 THEN - 65 END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT - 15 * - + ( - COUNT( * ) ) * - 65 + 29 AS col2
----
1004

skipif mysql # not compatible
query I rowsort label-5955
SELECT - 15 * - + ( - COUNT ( * ) ) * - 65 + 29 AS col2
----
1004

query I rowsort
SELECT ALL + 27 + 58
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5957
SELECT - NULLIF ( - 76, + 83 * + 65 + NULLIF ( - 62, + + MIN( ALL CAST( NULL AS SIGNED ) ) ) * ( - 49 ) )
----
76

skipif mysql # not compatible
query I rowsort label-5957
SELECT - NULLIF ( - 76, + 83 * + 65 + NULLIF ( - 62, + + MIN ( ALL CAST ( NULL AS INTEGER ) ) ) * ( - 49 ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT SUM( ALL + 3 ) + - 46 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-5958
SELECT SUM ( ALL + 3 ) + - 46 AS col2
----
-43

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

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

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

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

query I rowsort
SELECT DISTINCT - 25 + + - 82 + 86 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-5962
SELECT - NULLIF ( + COUNT( * ), ( + + 12 ) ) AS col2, 76
----
-1
76

skipif mysql # not compatible
query II rowsort label-5962
SELECT - NULLIF ( + COUNT ( * ), ( + + 12 ) ) AS col2, 76
----
-1
76

query I rowsort
SELECT 48 + 84 AS col2
----
132

query I rowsort
SELECT ALL - ( + 24 ) + + 43
----
19

query I rowsort
SELECT + 54 * - 28 * + 74 AS col1
----
-111888

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5966
SELECT ALL + 0 DIV - 34 - - + MIN( ALL - 88 ) AS col0, + ( 82 ) * - - 87 AS col0
----
-88
7134

skipif mysql # not compatible
query II rowsort label-5966
SELECT ALL + 0 / - 34 - - + MIN ( ALL - 88 ) AS col0, + ( 82 ) * - - 87 AS col0
----
-88
7134

query II rowsort
SELECT - 79, + 65 * + - 6 AS col2
----
-79
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT + ( 84 ) + 18 + + ( + 16 ) + - + 27 - - 76 * - - 62 * + MAX( ALL 60 ) AS col2
----
282811

skipif mysql # not compatible
query I rowsort label-5968
SELECT + ( 84 ) + 18 + + ( + 16 ) + - + 27 - - 76 * - - 62 * + MAX ( ALL 60 ) AS col2
----
282811

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

query I rowsort
SELECT - 20 * 58 * - NULLIF ( + + 81, - CASE 57 WHEN + 91 THEN + 70 * - - 88 ELSE + 91 * 15 * + - 34 END ) * + 48
----
4510080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5971
SELECT + ( + CAST( NULL AS SIGNED ) ) + + MAX( ALL + 56 ) / - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT + ( + CAST ( NULL AS INTEGER ) ) + + MAX ( ALL + 56 ) / - + 90
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5973
SELECT ALL - COALESCE ( 45, 87 + - - SUM( - + 91 ), + 3 + - 74 DIV - CASE - 12 WHEN - ( - AVG ( + 35 ) ) THEN + 90 END + + - COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL - COALESCE ( 45, 87 + - - SUM ( - + 91 ), + 3 + - 74 / - CASE - 12 WHEN - ( - AVG ( + 35 ) ) THEN + 90 END + + - COUNT ( * ) )
----
-45

query I rowsort
SELECT 18 + + + 94 * + + NULLIF ( + 38, 54 )
----
3590

onlyif mysql # aggregate syntax: 
query II rowsort label-5975
SELECT 21 * + 51 AS col2, - SUM( ALL + 51 ) AS col0
----
1071
-51

skipif mysql # not compatible
query II rowsort label-5975
SELECT 21 * + 51 AS col2, - SUM ( ALL + 51 ) AS col0
----
1071
-51

query I rowsort
SELECT 92 * + 29 * - 22 AS col2
----
-58696

query I rowsort
SELECT 26 * 0 + - 1 * - 36 AS col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5978
SELECT - 12 DIV 45 * - 60 * - 85 + - 86 col1
----
-86

skipif mysql # not compatible
query I rowsort label-5978
SELECT - 12 / 45 * - 60 * - 85 + - 86 col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT DISTINCT - CAST( - - 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT - CAST ( - - 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT - NULLIF ( MIN( + 58 ), + 12 * - ( + 41 ) * 55 + + COUNT( * ) * + - 2 * 19 * 61 ) * 38 - - COUNT( * ) AS col0
----
-2203

skipif mysql # not compatible
query I rowsort label-5980
SELECT - NULLIF ( MIN ( + 58 ), + 12 * - ( + 41 ) * 55 + + COUNT ( * ) * + - 2 * 19 * 61 ) * 38 - - COUNT ( * ) AS col0
----
-2203

onlyif mysql # aggregate syntax: 
query II rowsort label-5981
SELECT ALL - ( 21 ) AS col2, - MAX( + 92 ) * - 28
----
-21
2576

skipif mysql # not compatible
query II rowsort label-5981
SELECT ALL - ( 21 ) AS col2, - MAX ( + 92 ) * - 28
----
-21
2576

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5982
SELECT DISTINCT - MAX( DISTINCT + 9 ) * + COUNT( - 12 ) DIV - 95 - + 41 * - 27 AS col1, 23 AS col0
----
1107
23

skipif mysql # not compatible
query II rowsort label-5982
SELECT DISTINCT - MAX ( DISTINCT + 9 ) * + COUNT ( - 12 ) / - 95 - + 41 * - 27 AS col1, 23 AS col0
----
1107
23

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5983
SELECT DISTINCT - CAST( + - COALESCE ( + - 74, - 59 / CAST( CAST( - 89 AS DECIMAL ) AS SIGNED ) + + 21, - 37 ) AS SIGNED ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT - CAST ( + - COALESCE ( + - 74, - 59 / CAST ( CAST ( - 89 AS REAL ) AS INTEGER ) + + 21, - 37 ) AS INTEGER ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT COUNT( - 2 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5984
SELECT COUNT ( - 2 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5985
SELECT ALL + COUNT( * ) + - 12 * - 23 * + CAST( NULL AS DECIMAL ) + - 98 + + SUM( + 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL + COUNT ( * ) + - 12 * - 23 * + CAST ( NULL AS REAL ) + - 98 + + SUM ( + 97 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5986
SELECT DISTINCT + 45 + - - 18 * - 85 * + NULLIF ( + 64, + 0 * CAST( + 12 AS SIGNED ) ) + + - CAST( - COUNT( * ) AS SIGNED ) col1
----
-97874

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT + 45 + - - 18 * - 85 * + NULLIF ( + 64, + 0 * CAST ( + 12 AS INTEGER ) ) + + - CAST ( - COUNT ( * ) AS INTEGER ) col1
----
-97874

onlyif mysql # DIV for integer division: 
query I rowsort label-5987
SELECT 27 DIV + CASE WHEN NOT - 83 BETWEEN - 47 AND NULL THEN - + 80 DIV + 48 * - + ( - + 88 ) * 88 + - 31 ELSE NULL END
----
0

skipif mysql # not compatible
query I rowsort label-5987
SELECT 27 / + CASE WHEN NOT - 83 BETWEEN - 47 AND NULL THEN - + 80 / + 48 * - + ( - + 88 ) * 88 + - 31 ELSE NULL END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT MAX( ALL + 8 ) * 14
----
112

skipif mysql # not compatible
query I rowsort label-5988
SELECT MAX ( ALL + 8 ) * 14
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5989
SELECT 24 - + - 27 DIV - - NULLIF ( - 98, 99 ) * - - ( - ( + COUNT( * ) ) ) + + - 56 + + ( - + 88 ) + - 50
----
-170

skipif mysql # not compatible
query I rowsort label-5989
SELECT 24 - + - 27 / - - NULLIF ( - 98, 99 ) * - - ( - ( + COUNT ( * ) ) ) + + - 56 + + ( - + 88 ) + - 50
----
-170

query II rowsort
SELECT ALL 32 + 53 AS col1, + 86 + + 92 * + + 8 * + + 99 AS col2
----
85
72950

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

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

query I rowsort
SELECT 17 * 68 AS col0
----
1156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5993
SELECT ALL - 15 * - - COALESCE ( CAST( + + 55 AS SIGNED ), - + 24, - 13 ) * CAST( NULL AS SIGNED ) * 1 AS col1, 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-5993
SELECT ALL - 15 * - - COALESCE ( CAST ( + + 55 AS INTEGER ), - + 24, - 13 ) * CAST ( NULL AS INTEGER ) * 1 AS col1, 10
----
NULL
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5994
SELECT + + COUNT( * ) * + COALESCE ( - 4, - + COUNT( * ) + 73 + - + MAX( 36 ) DIV - 28, 24 )
----
-4

skipif mysql # not compatible
query I rowsort label-5994
SELECT + + COUNT ( * ) * + COALESCE ( - 4, - + COUNT ( * ) + 73 + - + MAX ( 36 ) / - 28, 24 )
----
-4

query I rowsort
SELECT ALL - 71 * + 31 * - 47 * + - 37 * 96 + - 23 AS col2
----
-367443767

query I rowsort
SELECT + - 60 * + 18 * + 98
----
-105840

query I rowsort
SELECT + 18 * - + 30 AS col0
----
-540

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5998
SELECT - CAST( + + 2 AS SIGNED ) col2, - 61
----
-2
-61

skipif mysql # not compatible
query II rowsort label-5998
SELECT - CAST ( + + 2 AS INTEGER ) col2, - 61
----
-2
-61

query I rowsort
SELECT + - 33 * NULLIF ( + 45, 11 / 62 + - 29 + - + 53 ) + 45
----
-1440

query I rowsort
SELECT DISTINCT + 48 * + 39 AS col1
----
1872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6001
SELECT + NULLIF ( + 10, - 55 + + 64 ) + - 7 + - 28 DIV + COUNT( * ) + + 66
----
41

skipif mysql # not compatible
query I rowsort label-6001
SELECT + NULLIF ( + 10, - 55 + + 64 ) + - 7 + - 28 / + COUNT ( * ) + + 66
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT - 49 * - MAX( 57 ) * - 99 AS col2
----
-276507

skipif mysql # not compatible
query I rowsort label-6002
SELECT - 49 * - MAX ( 57 ) * - 99 AS col2
----
-276507

query I rowsort
SELECT - NULLIF ( 48, - - 62 ) col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL - 49 * 72 + - COUNT( * ) + 18 AS col1
----
-3511

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL - 49 * 72 + - COUNT ( * ) + 18 AS col1
----
-3511

query I rowsort
SELECT + 13 * + 21 AS col2
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6006
SELECT ALL - CASE - CAST( NULL AS SIGNED ) WHEN - 68 THEN ( - 87 ) + + + COUNT( * ) + + 37 * + 62 END * + CAST( 32 AS SIGNED ) + - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL - CASE - CAST ( NULL AS INTEGER ) WHEN - 68 THEN ( - 87 ) + + + COUNT ( * ) + + 37 * + 62 END * + CAST ( 32 AS INTEGER ) + - 18 AS col1
----
NULL

query I rowsort
SELECT ALL 78 * 44 AS col1
----
3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6008
SELECT ALL - 33 * - - 89 + + ( COALESCE ( COUNT( * ), + 70 ) ) + - 44 DIV 43
----
-2937

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - 33 * - - 89 + + ( COALESCE ( COUNT ( * ), + 70 ) ) + - 44 / 43
----
-2937

onlyif mysql # DIV for integer division: 
query I rowsort label-6009
SELECT ALL + 4 DIV + - 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL + 4 / + - 77 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6010
SELECT - SUM( DISTINCT 23 ) DIV + ( + 89 ) + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6010
SELECT - SUM ( DISTINCT 23 ) / + ( + 89 ) + - + COUNT ( * )
----
-1

query I rowsort
SELECT + 53 + 96
----
149

query I rowsort
SELECT - 59 * - NULLIF ( - 15, - 54 )
----
-885

query I rowsort
SELECT COALESCE ( - 86, + 92 * + 0 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6014
SELECT NULLIF ( + ( 87 ), CAST( + MAX( ALL + 58 ) AS SIGNED ) )
----
87

skipif mysql # not compatible
query I rowsort label-6014
SELECT NULLIF ( + ( 87 ), CAST ( + MAX ( ALL + 58 ) AS INTEGER ) )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-6015
SELECT DISTINCT + 4 col1, - COUNT( DISTINCT 2 )
----
4
-1

skipif mysql # not compatible
query II rowsort label-6015
SELECT DISTINCT + 4 col1, - COUNT ( DISTINCT 2 )
----
4
-1

query II rowsort
SELECT - 63 * + + 83 + + - 52, 64 AS col1
----
-5281
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6017
SELECT - CASE - - 15 WHEN - 41 THEN NULL WHEN - CASE - 88 WHEN + - 59 + - 88 * COUNT( * ) THEN + 46 * + 22 * + + 77 END - + 22 + - 91 THEN - - SUM( - - 1 ) * + 13 ELSE NULL END AS col1, COUNT( * ) * - + 23 + 6
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-6017
SELECT - CASE - - 15 WHEN - 41 THEN NULL WHEN - CASE - 88 WHEN + - 59 + - 88 * COUNT ( * ) THEN + 46 * + 22 * + + 77 END - + 22 + - 91 THEN - - SUM ( - - 1 ) * + 13 ELSE NULL END AS col1, COUNT ( * ) * - + 23 + 6
----
NULL
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT COUNT( * ) * + ( + 21 ) * + 72 + - 59
----
1453

skipif mysql # not compatible
query I rowsort label-6018
SELECT COUNT ( * ) * + ( + 21 ) * + 72 + - 59
----
1453

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ALL + ( - + 91 ) * - COUNT( * ) * - 11
----
-1001

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL + ( - + 91 ) * - COUNT ( * ) * - 11
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT - + 55 + + MAX( - + 24 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6020
SELECT - + 55 + + MAX ( - + 24 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6021
SELECT ALL - 95 * - COUNT( * ) + 18 - - + 65 AS col2, NULLIF ( 69, ( + + COUNT( * ) ) ) AS col1
----
178
69

skipif mysql # not compatible
query II rowsort label-6021
SELECT ALL - 95 * - COUNT ( * ) + 18 - - + 65 AS col2, NULLIF ( 69, ( + + COUNT ( * ) ) ) AS col1
----
178
69

query I rowsort
SELECT - 9 * 41 * + CASE WHEN ( NULL = + 24 ) THEN NULL WHEN NOT - 11 <= NULL THEN 43 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6023
SELECT DISTINCT + 9 * + + CAST( NULL AS DECIMAL ) * COUNT( + 68 ) * + COUNT( * ) * + - 24 / - + 52 - 94 - - - CAST( - - CASE 63 WHEN 13 + - 96 THEN + CAST( + MIN( 88 ) AS SIGNED ) * + 19 - CASE + 70 WHEN - 53 THEN 26 * - 65 + - 46 - - 68 * - 97 * 27 + + COUNT( * ) + - - 20 WHEN - 92 THEN + - ( - 72 ) END - + AVG ( DISTINCT - 89 ) / 60 + - 2 + + - COUNT( ALL + 6 ) + - - 73 * - + AVG ( DISTINCT + 70 ) ELSE + 80 + - + COALESCE ( + 38, 7 * 87 + ( 53 + 99 ) / 25 ) + + 4 END AS DECIMAL ) * - ( 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT + 9 * + + CAST ( NULL AS REAL ) * COUNT ( + 68 ) * + COUNT ( * ) * + - 24 / - + 52 - 94 - - - CAST ( - - CASE 63 WHEN 13 + - 96 THEN + CAST ( + MIN ( 88 ) AS INTEGER ) * + 19 - CASE + 70 WHEN - 53 THEN 26 * - 65 + - 46 - - 68 * - 97 * 27 + + COUNT ( * ) + - - 20 WHEN - 92 THEN + - ( - 72 ) END - + AVG ( DISTINCT - 89 ) / 60 + - 2 + + - COUNT ( ALL + 6 ) + - - 73 * - + AVG ( DISTINCT + 70 ) ELSE + 80 + - + COALESCE ( + 38, 7 * 87 + ( 53 + 99 ) / 25 ) + + 4 END AS REAL ) * - ( 58 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6024
SELECT - 91 col1, - COUNT( * ) * - - 41
----
-91
-41

skipif mysql # not compatible
query II rowsort label-6024
SELECT - 91 col1, - COUNT ( * ) * - - 41
----
-91
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6025
SELECT + MAX( - - 4 ) * + COUNT( * ) + + 87 DIV - - 3 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-6025
SELECT + MAX ( - - 4 ) * + COUNT ( * ) + + 87 / - - 3 AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6026
SELECT - - CAST( + - SUM( DISTINCT - 57 ) AS SIGNED ) * - 83
----
-4731

skipif mysql # not compatible
query I rowsort label-6026
SELECT - - CAST ( + - SUM ( DISTINCT - 57 ) AS INTEGER ) * - 83
----
-4731

onlyif mysql # aggregate syntax: 
query II rowsort label-6027
SELECT - CASE 30 WHEN - 54 / MIN( + 35 ) THEN - + 66 + - NULLIF ( - AVG ( ALL + - ( - 40 ) ), - + 21 * + + 96 ) * + 12 END, + 67 + - 52 AS col2
----
NULL
15

skipif mysql # not compatible
query II rowsort label-6027
SELECT - CASE 30 WHEN - 54 / MIN ( + 35 ) THEN - + 66 + - NULLIF ( - AVG ( ALL + - ( - 40 ) ), - + 21 * + + 96 ) * + 12 END, + 67 + - 52 AS col2
----
NULL
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT - COUNT( DISTINCT 91 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6028
SELECT - COUNT ( DISTINCT 91 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6029
SELECT DISTINCT + CAST( + + 8 AS SIGNED ) DIV - 2 + - 81 + - 64
----
-149

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT + CAST ( + + 8 AS INTEGER ) / - 2 + - 81 + - 64
----
-149

query I rowsort
SELECT + - 79 * + ( + 8 ) * - + 40 AS col2
----
25280

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

skipif mysql # not compatible
query I rowsort label-6031
SELECT + 38 / + + 63 * + ( - - COUNT ( * ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6032
SELECT ALL - + 55 DIV + 22
----
-2

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL - + 55 / + 22
----
-2

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

query I rowsort
SELECT + 8 + - 56 + + 50 + - 2 + - - 42
----
42

query I rowsort
SELECT - NULLIF ( + ( - + 48 ), ( + + 48 ) / - 15 )
----
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT + 89 + + - CASE 99 WHEN - 55 THEN NULL WHEN + 92 - - COALESCE ( 89, - + 15 ) THEN 56 END + - - MIN( + 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6037
SELECT + 89 + + - CASE 99 WHEN - 55 THEN NULL WHEN + 92 - - COALESCE ( 89, - + 15 ) THEN 56 END + - - MIN ( + 90 )
----
NULL

query I rowsort
SELECT DISTINCT + 18 * - + 30
----
-540

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

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT + 12 / COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) - + ( - 49 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6040
SELECT + COALESCE ( + 84, SUM( + - 29 ) + - - 86, 38, - 29 ) DIV - 63 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6040
SELECT + COALESCE ( + 84, SUM ( + - 29 ) + - - 86, 38, - 29 ) / - 63 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6041
SELECT ALL - MAX( ALL 70 ) * 40 + + 35, - ( - 48 ) col0
----
-2765
48

skipif mysql # not compatible
query II rowsort label-6041
SELECT ALL - MAX ( ALL 70 ) * 40 + + 35, - ( - 48 ) col0
----
-2765
48

onlyif mysql # DIV for integer division: 
query II rowsort label-6042
SELECT DISTINCT 49 * + 67 AS col0, + 47 DIV 75 AS col2
----
3283
0

skipif mysql # not compatible
query II rowsort label-6042
SELECT DISTINCT 49 * + 67 AS col0, + 47 / 75 AS col2
----
3283
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL SUM( - + 53 ) * + COUNT( * ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL SUM ( - + 53 ) * + COUNT ( * ) col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT ALL - ( MIN( - 98 ) )
----
98

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL - ( MIN ( - 98 ) )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6045
SELECT DISTINCT - + 74 DIV - ( - 61 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT - + 74 / - ( - 61 ) AS col0
----
-1

query I rowsort
SELECT 46 * + 99
----
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT + SUM( ALL 59 ) col2
----
59

skipif mysql # not compatible
query I rowsort label-6047
SELECT + SUM ( ALL 59 ) col2
----
59

query I rowsort
SELECT + 73 * 81
----
5913

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT MIN( + 46 ) * 96 * + 28 AS col2
----
123648

skipif mysql # not compatible
query I rowsort label-6049
SELECT MIN ( + 46 ) * 96 * + 28 AS col2
----
123648

query I rowsort
SELECT DISTINCT - - NULLIF ( 19, - 90 * + 84 ) AS col2
----
19

query I rowsort
SELECT ALL - NULLIF ( + + 78, 64 ) col0
----
-78

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

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

query I rowsort
SELECT 95 * 22
----
2090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT ( + 17 ) * CAST( + 46 AS SIGNED ) * + 90
----
70380

skipif mysql # not compatible
query I rowsort label-6054
SELECT ( + 17 ) * CAST ( + 46 AS INTEGER ) * + 90
----
70380

query I rowsort
SELECT - 80 + - ( - 40 )
----
-40

query II rowsort
SELECT 71 - + NULLIF ( + + ( - - 98 ), + 42 + - ( + 23 ) ), - 58 AS col1
----
-27
-58

query I rowsort
SELECT - COALESCE ( - - 13, + CASE + AVG ( DISTINCT - 27 ) WHEN + 39 THEN - 73 ELSE NULL END + - 76, + 58, + 9 + - 37 ) col2
----
-13

query I rowsort
SELECT 96 + ( + 58 ) + + 67 - 60 * - 5 * + 2
----
821

query I rowsort
SELECT 31 * + 20
----
620

onlyif mysql # DIV for integer division: 
query I rowsort label-6060
SELECT 37 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-6060
SELECT 37 / + 88
----
0

query I rowsort
SELECT ALL - 30 + - 98
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT ALL + ( + + ( - 81 ) ) + + + MAX( + + 71 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL + ( + + ( - 81 ) ) + + + MAX ( + + 71 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT 11 + - + 41 + 17 + + - 23 * 71 + COUNT( 40 ) * - 42
----
-1688

skipif mysql # not compatible
query I rowsort label-6063
SELECT 11 + - + 41 + 17 + + - 23 * 71 + COUNT ( 40 ) * - 42
----
-1688

query I rowsort
SELECT 21 + - + 82 * - COALESCE ( - 91, 30 * 89 - 36 )
----
-7441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6065
SELECT ALL 84 * + 30 * - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL 84 * + 30 * - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT ALL - ( - NULLIF ( - + 12, 97 ) ) + + 76 * + 80 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL - ( - NULLIF ( - + 12, 97 ) ) + + 76 * + 80 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 19 * + 33 * + 31
----
19437

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

query I rowsort
SELECT 46 * - 70 AS col1
----
-3220

query I rowsort
SELECT 43 - - 38
----
81

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

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

query II rowsort
SELECT DISTINCT - CASE 16 WHEN 72 THEN - 59 * - + 82 END, + ( + 35 ) + - 53 AS col1
----
NULL
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT COUNT( * ) * - + 47 + + + 27 * - 23
----
-668

skipif mysql # not compatible
query I rowsort label-6073
SELECT COUNT ( * ) * - + 47 + + + 27 * - 23
----
-668

query II rowsort
SELECT ALL - 26 AS col2, 46 * + - 48
----
-26
-2208

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6075
SELECT ALL 41 - 12 + - - CAST( AVG ( 78 ) AS SIGNED ) AS col1, 99
----
107
99

skipif mysql # not compatible
query II rowsort label-6075
SELECT ALL 41 - 12 + - - CAST ( AVG ( 78 ) AS INTEGER ) AS col1, 99
----
107
99

query I rowsort
SELECT ALL + 28 * + ( 78 ) - 4 AS col1
----
2180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6077
SELECT + 63 * 15 + + - COUNT( * ) + - 27 * - - 43 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6077
SELECT + 63 * 15 + + - COUNT ( * ) + - 27 * - - 43 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL - CASE + 13 WHEN - 24 * COUNT( * ) THEN - 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL - CASE + 13 WHEN - 24 * COUNT ( * ) THEN - 33 END AS col2
----
NULL

query I rowsort
SELECT 2 + + 56 AS col0
----
58

query I rowsort
SELECT ALL - 84 * 73
----
-6132

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL + COUNT( DISTINCT - 2 ) * - 6 * - 5 * 28 * + 15 * - + 12 * + + 16
----
-2419200

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL + COUNT ( DISTINCT - 2 ) * - 6 * - 5 * 28 * + 15 * - + 12 * + + 16
----
-2419200

query II rowsort
SELECT - 87 AS col2, 82 AS col2
----
-87
82

query II rowsort
SELECT ALL - 81, - 91 AS col0
----
-81
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ALL MAX( - + 89 ) * - SUM( + 13 ) col0
----
1157

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL MAX ( - + 89 ) * - SUM ( + 13 ) col0
----
1157

onlyif mysql # aggregate syntax: 
query II rowsort label-6085
SELECT DISTINCT - - CASE - 66 WHEN + AVG ( ALL - 88 ) THEN MAX( + 5 ) WHEN + 34 THEN - 63 END AS col0, CASE 79 WHEN + + SUM( ALL - 8 ) THEN + COUNT( + 96 ) ELSE NULL END col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6085
SELECT DISTINCT - - CASE - 66 WHEN + AVG ( ALL - 88 ) THEN MAX ( + 5 ) WHEN + 34 THEN - 63 END AS col0, CASE 79 WHEN + + SUM ( ALL - 8 ) THEN + COUNT ( + 96 ) ELSE NULL END col1
----
NULL
NULL

query I rowsort
SELECT ALL - 51 + - 81
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT + 21 + COUNT( * ) * - 7 - + - 60
----
74

skipif mysql # not compatible
query I rowsort label-6087
SELECT + 21 + COUNT ( * ) * - 7 - + - 60
----
74

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6089
SELECT - 8 * - 73 + - - COUNT( * ) + + - 72 * + 2 + + - 11 AS col1, - COUNT( * )
----
430
-1

skipif mysql # not compatible
query II rowsort label-6089
SELECT - 8 * - 73 + - - COUNT ( * ) + + - 72 * + 2 + + - 11 AS col1, - COUNT ( * )
----
430
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT ALL + 91 + 37 + NULLIF ( - + 13, - 24 + NULLIF ( + - 79, - + NULLIF ( 39, 96 ) ) + ( - 3 ) * - + MAX( + + 96 ) ) col2
----
115

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL + 91 + 37 + NULLIF ( - + 13, - 24 + NULLIF ( + - 79, - + NULLIF ( 39, 96 ) ) + ( - 3 ) * - + MAX ( + + 96 ) ) col2
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6091
SELECT + 61 + - ( + NULLIF ( 6, + 9 * - 33 * + CASE - ( + 70 ) WHEN + 55 THEN NULL WHEN - CAST( NULL AS SIGNED ) * + + 14 + + 12 * 85 + + 71 / - 22 THEN - - 94 END + + - 52 ) ), - ( - COUNT( * ) ) AS col1
----
55
1

skipif mysql # not compatible
query II rowsort label-6091
SELECT + 61 + - ( + NULLIF ( 6, + 9 * - 33 * + CASE - ( + 70 ) WHEN + 55 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * + + 14 + + 12 * 85 + + 71 / - 22 THEN - - 94 END + + - 52 ) ), - ( - COUNT ( * ) ) AS col1
----
55
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6092
SELECT DISTINCT 20 + + + CASE 16 WHEN COALESCE ( + - 86, 83 ) THEN + + 68 * + - ( - - 38 ) + + 11 * MIN( DISTINCT 40 ) ELSE 35 * + - 99 * + 11 END * + CAST( + + SUM( ALL - 79 ) AS SIGNED )
----
3011105

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT 20 + + + CASE 16 WHEN COALESCE ( + - 86, 83 ) THEN + + 68 * + - ( - - 38 ) + + 11 * MIN ( DISTINCT 40 ) ELSE 35 * + - 99 * + 11 END * + CAST ( + + SUM ( ALL - 79 ) AS INTEGER )
----
3011105

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

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

query II rowsort
SELECT - 63, + 33 AS col2
----
-63
33

query I rowsort
SELECT ALL + 45 + - 98 * + 51
----
-4953

query I rowsort
SELECT DISTINCT - 18 * - - 90 AS col2
----
-1620

query II rowsort
SELECT 20 * - 5, - 63 AS col0
----
-100
-63

query II rowsort
SELECT 56 * + 94 col2, 23 AS col0
----
5264
23

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6100
SELECT ALL + 45 - 51 + COUNT( * ) DIV + 36 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL + 45 - 51 + COUNT ( * ) / + 36 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT 43 + 46 + 75 * - COUNT( * ) * 4 AS col2
----
-211

skipif mysql # not compatible
query I rowsort label-6101
SELECT 43 + 46 + 75 * - COUNT ( * ) * 4 AS col2
----
-211

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

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

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

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

query II rowsort
SELECT - 95 col1, + 38
----
-95
38

query I rowsort
SELECT ALL 64 * - 59
----
-3776

query I rowsort
SELECT DISTINCT + 65 * 94
----
6110

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT DISTINCT + - 90 * 77 + + COUNT( * ) AS col1
----
-6929

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT + - 90 * 77 + + COUNT ( * ) AS col1
----
-6929

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

query I rowsort
SELECT - 33 * 23
----
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT + - 53 * 70 + + - 31 * COUNT( * )
----
-3741

skipif mysql # not compatible
query I rowsort label-6110
SELECT + - 53 * 70 + + - 31 * COUNT ( * )
----
-3741

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6112
SELECT - 61 DIV 37 + + NULLIF ( + 71, + 11 * 16 * 16 DIV - 45 ) * - 82 * COUNT( * )
----
-5823

skipif mysql # not compatible
query I rowsort label-6112
SELECT - 61 / 37 + + NULLIF ( + 71, + 11 * 16 * 16 / - 45 ) * - 82 * COUNT ( * )
----
-5823

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6113
SELECT - 93 AS col1, + CASE 95 WHEN 27 THEN - 39 * - AVG ( DISTINCT 76 ) ELSE - 71 * 22 + + AVG ( DISTINCT 41 ) END * - CAST( NULL AS SIGNED ) + + 30 AS col1
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-6113
SELECT - 93 AS col1, + CASE 95 WHEN 27 THEN - 39 * - AVG ( DISTINCT 76 ) ELSE - 71 * 22 + + AVG ( DISTINCT 41 ) END * - CAST ( NULL AS INTEGER ) + + 30 AS col1
----
-93
NULL

query II rowsort
SELECT ALL + 52, - 74 AS col0
----
52
-74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6116
SELECT + + ( + + ( + COUNT( * ) ) ) * 26 * + + CAST( + AVG ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * 87 + CAST( NULL AS SIGNED ) * - CAST( - 31 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT + + ( + + ( + COUNT ( * ) ) ) * 26 * + + CAST ( + AVG ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * 87 + CAST ( NULL AS INTEGER ) * - CAST ( - 31 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6117
SELECT + - 16 AS col1, + 86 * + - COUNT( * ) * 35
----
-16
-3010

skipif mysql # not compatible
query II rowsort label-6117
SELECT + - 16 AS col1, + 86 * + - COUNT ( * ) * 35
----
-16
-3010

query II rowsort
SELECT ALL + 6 AS col2, - COALESCE ( - NULLIF ( - + 44, - 14 * - - 25 / + 21 + - + 95 ), 44 ) * - 43 AS col2
----
6
1892

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT ALL - - MIN( DISTINCT + - 94 ) * + 28 + + 23 * - 84
----
-4564

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL - - MIN ( DISTINCT + - 94 ) * + 28 + + 23 * - 84
----
-4564

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

skipif mysql # not compatible
query I rowsort label-6120
SELECT - - COUNT ( * ) * + 22 / - 70 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6122
SELECT - CASE - 73 WHEN CASE - + 96 WHEN - 93 THEN CASE + 30 WHEN + - 70 / - 68 + + CAST( NULL AS DECIMAL ) + + CASE - 40 WHEN CAST( 16 AS DECIMAL ) THEN - 95 WHEN - COUNT( ALL 64 ) * COUNT( * ) + - - 84 + - 27 THEN + - COUNT( * ) * + 77 + CASE - - CAST( + 2 AS SIGNED ) WHEN 72 THEN NULL WHEN + 17 THEN - 23 END WHEN - - AVG ( - - 30 ) * 9 THEN - - 81 + - + 59 END THEN NULL WHEN 56 THEN NULL WHEN COUNT( 68 ) + + + COUNT( * ) + - - COUNT( * ) + - 28 / + 38 THEN - 75 ELSE + 63 * - 48 * + - MAX( 28 ) END * - 65 * 88 + 63 END + CAST( NULL AS SIGNED ) THEN COUNT( ALL ( 45 ) ) WHEN + 36 THEN NULL ELSE 53 END AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-6122
SELECT - CASE - 73 WHEN CASE - + 96 WHEN - 93 THEN CASE + 30 WHEN + - 70 / - 68 + + CAST ( NULL AS REAL ) + + CASE - 40 WHEN CAST ( 16 AS REAL ) THEN - 95 WHEN - COUNT ( ALL 64 ) * COUNT ( * ) + - - 84 + - 27 THEN + - COUNT ( * ) * + 77 + CASE - - CAST ( + 2 AS INTEGER ) WHEN 72 THEN NULL WHEN + 17 THEN - 23 END WHEN - - AVG ( - - 30 ) * 9 THEN - - 81 + - + 59 END THEN NULL WHEN 56 THEN NULL WHEN COUNT ( 68 ) + + + COUNT ( * ) + - - COUNT ( * ) + - 28 / + 38 THEN - 75 ELSE + 63 * - 48 * + - MAX ( 28 ) END * - 65 * 88 + 63 END + CAST ( NULL AS INTEGER ) THEN COUNT ( ALL ( 45 ) ) WHEN + 36 THEN NULL ELSE 53 END AS col1
----
-53

query I rowsort
SELECT ALL - 66 * + 42 + + 70 - - 40 * + 26 AS col1
----
-1662

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6126
SELECT + CASE - - COALESCE ( CAST( - 4 AS SIGNED ), + - SUM( + ( + + 61 ) ) DIV + - 86, + 7 ) WHEN - 86 THEN 86 DIV + 42 + - 89 * + 79 + + 30 ELSE COUNT( * ) END - - 51 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6126
SELECT + CASE - - COALESCE ( CAST ( - 4 AS INTEGER ), + - SUM ( + ( + + 61 ) ) / + - 86, + 7 ) WHEN - 86 THEN 86 / + 42 + - 89 * + 79 + + 30 ELSE COUNT ( * ) END - - 51 AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6127
SELECT ALL + 28 * + CAST( - 70 AS SIGNED )
----
-1960

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL + 28 * + CAST ( - 70 AS INTEGER )
----
-1960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6128
SELECT DISTINCT - - COUNT( * ) * - CAST( NULL AS SIGNED ) + + + ( - 74 ) + ( - 12 ) + - NULLIF ( - 17, - ( 42 ) - + COUNT( * ) ) + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + + ( - 74 ) + ( - 12 ) + - NULLIF ( - 17, - ( 42 ) - + COUNT ( * ) ) + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL + COALESCE ( 69, MIN( - ( - 50 ) ), + - 47 ) * 53 + + - CASE + 96 WHEN ( + 33 ) * 35 THEN NULL ELSE + + 41 * - 73 * - 18 END
----
-50217

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL + COALESCE ( 69, MIN ( - ( - 50 ) ), + - 47 ) * 53 + + - CASE + 96 WHEN ( + 33 ) * 35 THEN NULL ELSE + + 41 * - 73 * - 18 END
----
-50217

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

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

query I rowsort
SELECT DISTINCT 14 * - ( - 8 ) AS col1
----
112

query II rowsort
SELECT + 37 + - NULLIF ( COALESCE ( - - NULLIF ( - 67, + - 18 ), + - 29 ), 80 ) AS col2, 2 AS col0
----
104
2

query I rowsort
SELECT + 13 + - + 12 * 77 AS col0
----
-911

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT - COUNT( * ) - - MIN( ALL 71 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6134
SELECT - COUNT ( * ) - - MIN ( ALL 71 ) AS col0
----
70

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

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

query I rowsort
SELECT - 59 + - + COALESCE ( - 54, - + CASE + + 70 WHEN - ( + + 48 ) THEN + ( - 5 ) + + 45 * + 35 + - 94 * - 12 WHEN + 8 / - COALESCE ( - - 18, + 20 * - - 99 ) + - 68 * + 28 THEN NULL END + 46 ) AS col1
----
-5

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

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

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

query I rowsort
SELECT ALL - 78 * 74 col2
----
-5772

query I rowsort
SELECT + 41 * 46
----
1886

query I rowsort
SELECT DISTINCT + 69 * - 80 col0
----
-5520

query I rowsort
SELECT - 0 * - 6 * 77 + 29
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT - - 45 - + 7 + 54 * - COUNT( * ) DIV - 62
----
38

skipif mysql # not compatible
query I rowsort label-6143
SELECT - - 45 - + 7 + 54 * - COUNT ( * ) / - 62
----
38

query I rowsort
SELECT - + 70 + - 71 + + 64
----
-77

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6146
SELECT - + MAX( ALL - - 89 ) DIV + ( + 90 )
----
0

skipif mysql # not compatible
query I rowsort label-6146
SELECT - + MAX ( ALL - - 89 ) / + ( + 90 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6147
SELECT DISTINCT + - MAX( ALL + + 69 ) DIV 89 DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT + - MAX ( ALL + + 69 ) / 89 / + 38
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6148
SELECT 10 DIV ( - 29 ) + + COUNT( DISTINCT + 24 ) + + MAX( ALL + + 81 ) + + 74 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-6148
SELECT 10 / ( - 29 ) + + COUNT ( DISTINCT + 24 ) + + MAX ( ALL + + 81 ) + + 74 AS col1
----
156

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

skipif mysql # not compatible
query I rowsort label-6149
SELECT 4 * + 6 - + COUNT ( * ) - 27 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT + CASE SUM( DISTINCT - 11 ) WHEN 18 THEN + 20 + - + 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT + CASE SUM ( DISTINCT - 11 ) WHEN 18 THEN + 20 + - + 25 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6151
SELECT - - 76 DIV + + 95 - - 4 + + - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-6151
SELECT - - 76 / + + 95 - - 4 + + - COUNT ( * )
----
3

query I rowsort
SELECT + 16 * - + 19 + - + COALESCE ( + + 98, + + 63 ) AS col1
----
-402

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT - + 43 + - - COUNT( DISTINCT 21 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6153
SELECT - + 43 + - - COUNT ( DISTINCT 21 ) AS col0
----
-42

query I rowsort
SELECT DISTINCT - 26 * - 52 + + 77 + - 98 + + CASE WHEN ( NULL ) IS NULL THEN 12 END
----
1343

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT + - COALESCE ( - + 37, 88 * + - MAX( ALL + 95 ) ) + + COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6155
SELECT + - COALESCE ( - + 37, 88 * + - MAX ( ALL + 95 ) ) + + COUNT ( * ) AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6156
SELECT ALL 7 * 73 - + + CAST( - - 33 AS SIGNED )
----
478

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL 7 * 73 - + + CAST ( - - 33 AS INTEGER )
----
478

query I rowsort
SELECT + 43 + - 44
----
-1

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

skipif mysql # not compatible
query I rowsort label-6158
SELECT NULLIF ( + COUNT ( + 93 ), - ( + 36 ) )
----
1

query I rowsort
SELECT 81 * - 73 + + 73
----
-5840

query I rowsort
SELECT + 7 * + 68
----
476

query I rowsort
SELECT ALL 19 * + 3 AS col1
----
57

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

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

query I rowsort
SELECT + 1 + + + 76 AS col1
----
77

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6165
SELECT DISTINCT 84, 73 * - MAX( ALL - + ( + + 31 ) ) * 13 + COUNT( * ) AS col1
----
84
29420

skipif mysql # not compatible
query II rowsort label-6165
SELECT DISTINCT 84, 73 * - MAX ( ALL - + ( + + 31 ) ) * 13 + COUNT ( * ) AS col1
----
84
29420

query II rowsort
SELECT ALL 36, - 9 AS col1
----
36
-9

query I rowsort
SELECT 42 + + 47 * 16 * - ( 58 )
----
-43574

query I rowsort
SELECT ( - 22 ) * - + 51 * + - 35 AS col2
----
-39270

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT 97 + - - 63 - MAX( ALL - + 16 )
----
176

skipif mysql # not compatible
query I rowsort label-6169
SELECT 97 + - - 63 - MAX ( ALL - + 16 )
----
176

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

query II rowsort
SELECT 80, + 80 col2
----
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6172
SELECT + 24 + + 33 + 56 + 49 * + CAST( + 95 AS SIGNED )
----
4768

skipif mysql # not compatible
query I rowsort label-6172
SELECT + 24 + + 33 + 56 + 49 * + CAST ( + 95 AS INTEGER )
----
4768

query II rowsort
SELECT DISTINCT 93 + - 57 * 66 * + - 89, + COALESCE ( + + 36, - + 39 ) AS col1
----
334911
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT 77 + 75 * - - MAX( + - ( 49 ) )
----
-3598

skipif mysql # not compatible
query I rowsort label-6174
SELECT 77 + 75 * - - MAX ( + - ( 49 ) )
----
-3598

query I rowsort
SELECT ALL 7 + NULLIF ( 73, - 34 ) * + 36 * - 44 * + 51
----
-5897225

query II rowsort
SELECT ALL 34 + - 18 * + 81 AS col0, 82
----
-1424
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT AVG ( 18 ) * - AVG ( 94 ) / CASE + - 63 WHEN + + 62 + - + 63 THEN NULL WHEN MIN( - 19 ) THEN + 95 * + + 89 END + + 92 * - 78 + + 42 * + + 13 + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT AVG ( 18 ) * - AVG ( 94 ) / CASE + - 63 WHEN + + 62 + - + 63 THEN NULL WHEN MIN ( - 19 ) THEN + 95 * + + 89 END + + 92 * - 78 + + 42 * + + 13 + - 68
----
NULL

query I rowsort
SELECT + 73 + - 96
----
-23

query II rowsort
SELECT + 6, - 23 col1
----
6
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT ALL - + SUM( ALL 37 ) + + + 65 col0
----
28

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL - + SUM ( ALL 37 ) + + + 65 col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6182
SELECT - - 15 * - 9 * SUM( DISTINCT 25 ) + + 64 + + + 42, 10 AS col2
----
-3269
10

skipif mysql # not compatible
query II rowsort label-6182
SELECT - - 15 * - 9 * SUM ( DISTINCT 25 ) + + 64 + + + 42, 10 AS col2
----
-3269
10

query II rowsort
SELECT + 40 * + - 68 * 3 col1, 53 AS col2
----
-8160
53

query II rowsort
SELECT 97 AS col2, 74
----
97
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ALL COALESCE ( + 47, 34, + 64 * - - CASE - 6 WHEN ( 88 ) + - + 20 THEN - 51 * - 48 WHEN + - 26 THEN - ( 20 ) END ) + COUNT( * ) + + 73 * - 47
----
-3383

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL COALESCE ( + 47, 34, + 64 * - - CASE - 6 WHEN ( 88 ) + - + 20 THEN - 51 * - 48 WHEN + - 26 THEN - ( 20 ) END ) + COUNT ( * ) + + 73 * - 47
----
-3383

onlyif mysql # DIV for integer division: 
query I rowsort label-6186
SELECT ALL + 28 DIV 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL + 28 / 71 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6187
SELECT + - 71 AS col2, - 53 / + CAST( NULL AS SIGNED ) * + + 74 AS col2
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-6187
SELECT + - 71 AS col2, - 53 / + CAST ( NULL AS INTEGER ) * + + 74 AS col2
----
-71
NULL

query I rowsort
SELECT ALL + 17 - + 37
----
-20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT ALL - - 5 - + 73 * - - 40 * + - 34 * - 90 + COUNT( * ) AS col0
----
-8935194

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL - - 5 - + 73 * - - 40 * + - 34 * - 90 + COUNT ( * ) AS col0
----
-8935194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6191
SELECT + + COALESCE ( + 87, + 2, 46 + - + CAST( + ( + 25 ) AS SIGNED ) )
----
87

skipif mysql # not compatible
query I rowsort label-6191
SELECT + + COALESCE ( + 87, + 2, 46 + - + CAST ( + ( + 25 ) AS INTEGER ) )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6192
SELECT DISTINCT - 92 AS col1, CAST( NULL AS SIGNED ) - + 18
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-6192
SELECT DISTINCT - 92 AS col1, CAST ( NULL AS INTEGER ) - + 18
----
-92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT 51 - + 7 + - - 72 * - 7 * + 42 + + - COUNT( * ) AS col2
----
-21125

skipif mysql # not compatible
query I rowsort label-6193
SELECT 51 - + 7 + - - 72 * - 7 * + 42 + + - COUNT ( * ) AS col2
----
-21125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6194
SELECT 46 / 4 * - ( - CAST( NULL AS SIGNED ) ) AS col2, 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6194
SELECT 46 / 4 * - ( - CAST ( NULL AS INTEGER ) ) AS col2, 0
----
NULL
0

query I rowsort
SELECT DISTINCT - ( - 83 ) * + - 17 col1
----
-1411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6196
SELECT 36 DIV COUNT( * ) * + CAST( 52 AS SIGNED ), + 30 * - COUNT( * ) col2
----
1872
-30

skipif mysql # not compatible
query II rowsort label-6196
SELECT 36 / COUNT ( * ) * + CAST ( 52 AS INTEGER ), + 30 * - COUNT ( * ) col2
----
1872
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-6197
SELECT 72 DIV 13
----
5

skipif mysql # not compatible
query I rowsort label-6197
SELECT 72 / 13
----
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6199
SELECT 46 - COALESCE ( - 71, + 30 + - 24 DIV - 74 ) * + - 46 * 59 AS col2
----
-192648

skipif mysql # not compatible
query I rowsort label-6199
SELECT 46 - COALESCE ( - 71, + 30 + - 24 / - 74 ) * + - 46 * 59 AS col2
----
-192648

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6200
SELECT ALL + CAST( NULL AS SIGNED ) * + 18 AS col0, 89
----
NULL
89

skipif mysql # not compatible
query II rowsort label-6200
SELECT ALL + CAST ( NULL AS INTEGER ) * + 18 AS col0, 89
----
NULL
89

query I rowsort
SELECT 55 - + + 95 * - 71 * - 66 AS col0
----
-445115

query I rowsort
SELECT DISTINCT + 96 * + 84 * 8
----
64512

query I rowsort
SELECT 45 + 64 + - 5 AS col1
----
104

query I rowsort
SELECT ( 17 ) - - 8
----
25

query I rowsort
SELECT ( + - 21 ) * ( NULLIF ( + 36, + 91 / - - 51 * - + 98 * + 59 ) ) * + + 53 AS col1
----
-40068

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

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

query I rowsort
SELECT ALL 5 + + - 56
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6208
SELECT ALL CASE - + 63 WHEN - 47 * - + COUNT( * ) THEN 94 WHEN + COALESCE ( - + 96, - 69 / CAST( + COUNT( * ) AS SIGNED ) + 67, - - 57 ) THEN NULL END + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL CASE - + 63 WHEN - 47 * - + COUNT ( * ) THEN 94 WHEN + COALESCE ( - + 96, - 69 / CAST ( + COUNT ( * ) AS INTEGER ) + 67, - - 57 ) THEN NULL END + 0 AS col2
----
NULL

query I rowsort
SELECT 80 + - 9 * 14 + - + 71 AS col2
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-6210
SELECT ALL - 52 DIV + ( - - NULLIF ( 76, - - 28 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL - 52 / + ( - - NULLIF ( 76, - - 28 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6211
SELECT - 21 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-6211
SELECT - 21 / 89
----
0

query I rowsort
SELECT 61 + - + 38
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6213
SELECT ALL 96 + + - 55 + 87 * + CAST( NULL AS SIGNED ) AS col0, - 93 * 2
----
NULL
-186

skipif mysql # not compatible
query II rowsort label-6213
SELECT ALL 96 + + - 55 + 87 * + CAST ( NULL AS INTEGER ) AS col0, - 93 * 2
----
NULL
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT DISTINCT + 6 * - COUNT( * ) * - 33 AS col2
----
198

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT + 6 * - COUNT ( * ) * - 33 AS col2
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6215
SELECT ALL + 48 + + + NULLIF ( + COUNT( * ), + 86 / ( 62 ) * - ( 26 ) - + 42 - - + 30 + + CAST( NULL AS DECIMAL ) / - NULLIF ( + 43, CAST( - - 98 AS SIGNED ) ) ) * - + SUM( DISTINCT + - 6 ) + - ( + 18 ), + 50 AS col2
----
36
50

skipif mysql # not compatible
query II rowsort label-6215
SELECT ALL + 48 + + + NULLIF ( + COUNT ( * ), + 86 / ( 62 ) * - ( 26 ) - + 42 - - + 30 + + CAST ( NULL AS REAL ) / - NULLIF ( + 43, CAST ( - - 98 AS INTEGER ) ) ) * - + SUM ( DISTINCT + - 6 ) + - ( + 18 ), + 50 AS col2
----
36
50

query I rowsort
SELECT ALL - 73 * + 61 + + ( - + 29 ) + + - 62 AS col0
----
-4544

query I rowsort
SELECT + 88 + + 46
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT MIN( ALL + 48 ) * + 9 * NULLIF ( + + 74, + 94 + - 71 ) + 69 AS col1
----
32037

skipif mysql # not compatible
query I rowsort label-6218
SELECT MIN ( ALL + 48 ) * + 9 * NULLIF ( + + 74, + 94 + - 71 ) + 69 AS col1
----
32037

query I rowsort
SELECT DISTINCT + 57 + 69 + + 11 + + 42 * 71 AS col1
----
3119

query I rowsort
SELECT ( 28 ) + - 83
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6221
SELECT ALL 41 + - 95 + 71 * - + 41, + MAX( DISTINCT + - 17 ) + 14 + MAX( DISTINCT + 19 ) + - - 42 + - 48 + - 78 - 8 + - COUNT( * ) + ( - 77 ) * + + 53 / 54 * 34 * - - MIN( ALL - CAST( NULL AS SIGNED ) ) * COUNT( * ) / AVG ( + - 2 ) AS col2
----
-2965
NULL

skipif mysql # not compatible
query II rowsort label-6221
SELECT ALL 41 + - 95 + 71 * - + 41, + MAX ( DISTINCT + - 17 ) + 14 + MAX ( DISTINCT + 19 ) + - - 42 + - 48 + - 78 - 8 + - COUNT ( * ) + ( - 77 ) * + + 53 / 54 * 34 * - - MIN ( ALL - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) / AVG ( + - 2 ) AS col2
----
-2965
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT - NULLIF ( - 26, NULLIF ( - 50, - 30 ) * - - COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-6222
SELECT - NULLIF ( - 26, NULLIF ( - 50, - 30 ) * - - COUNT ( * ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT 48 - CASE - 85 WHEN + COUNT( * ) THEN NULL ELSE - 72 END AS col2
----
120

skipif mysql # not compatible
query I rowsort label-6223
SELECT 48 - CASE - 85 WHEN + COUNT ( * ) THEN NULL ELSE - 72 END AS col2
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6224
SELECT DISTINCT COUNT( 89 ) / - 26 + + - 69 + 2 + + 40 * SUM( ALL CASE + 58 WHEN - CAST( NULL AS SIGNED ) THEN - 10 + + + 78 WHEN + - 94 + - 36 THEN + 61 ELSE - 60 END ) * + ( - 15 ) - + - 4 + + SUM( ALL - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT COUNT ( 89 ) / - 26 + + - 69 + 2 + + 40 * SUM ( ALL CASE + 58 WHEN - CAST ( NULL AS INTEGER ) THEN - 10 + + + 78 WHEN + - 94 + - 36 THEN + 61 ELSE - 60 END ) * + ( - 15 ) - + - 4 + + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6225
SELECT DISTINCT - CASE - 82 WHEN COALESCE ( + 80, + COALESCE ( CAST( + ( + + 78 ) AS SIGNED ), + 79 + - - 69 + + 29 + - 66 + COUNT( * ) ) ) + - + CAST( - 41 AS SIGNED ) + - ( 6 ) * + + CAST( NULL AS SIGNED ) * SUM( + - 29 ) THEN NULL WHEN - 55 / COUNT( * ) THEN + ( + - ( + COUNT( * ) ) ) + + - 75 / - MIN( ALL - 18 ) WHEN + + 91 THEN + - COUNT( * ) + - COUNT( * ) END - ( - - 83 ) * - MAX( DISTINCT + 80 ) * + + MAX( ALL - 42 ) + + - ( - 22 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT - CASE - 82 WHEN COALESCE ( + 80, + COALESCE ( CAST ( + ( + + 78 ) AS INTEGER ), + 79 + - - 69 + + 29 + - 66 + COUNT ( * ) ) ) + - + CAST ( - 41 AS INTEGER ) + - ( 6 ) * + + CAST ( NULL AS INTEGER ) * SUM ( + - 29 ) THEN NULL WHEN - 55 / COUNT ( * ) THEN + ( + - ( + COUNT ( * ) ) ) + + - 75 / - MIN ( ALL - 18 ) WHEN + + 91 THEN + - COUNT ( * ) + - COUNT ( * ) END - ( - - 83 ) * - MAX ( DISTINCT + 80 ) * + + MAX ( ALL - 42 ) + + - ( - 22 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6226
SELECT ALL + COUNT( ALL - 35 ) * + + 61 DIV 16 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL + COUNT ( ALL - 35 ) * + + 61 / 16 AS col1
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6228
SELECT ALL - + ( CASE + + 87 WHEN - 60 THEN NULL WHEN CAST( NULL AS SIGNED ) * + + 12 + 49 THEN 92 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL - + ( CASE + + 87 WHEN - 60 THEN NULL WHEN CAST ( NULL AS INTEGER ) * + + 12 + 49 THEN 92 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6229
SELECT - 78 DIV 97 + 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6229
SELECT - 78 / 97 + 69 AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6230
SELECT + 31 + + - COUNT( * ), 61 AS col1
----
30
61

skipif mysql # not compatible
query II rowsort label-6230
SELECT + 31 + + - COUNT ( * ), 61 AS col1
----
30
61

onlyif mysql # DIV for integer division: 
query I rowsort label-6231
SELECT - 82 DIV 5 - + - 79 - - 27 * + 79 col0
----
2196

skipif mysql # not compatible
query I rowsort label-6231
SELECT - 82 / 5 - + - 79 - - 27 * + 79 col0
----
2196

query I rowsort
SELECT ALL - 81 * + + NULLIF ( 92, - 28 ) AS col2
----
-7452

onlyif mysql # aggregate syntax: 
query II rowsort label-6233
SELECT + MAX( DISTINCT + CASE + 33 WHEN + COALESCE ( + 80, - ( + ( 95 ) ) / - 7 * + 67 + + 13 + - 55 + - - 68 + - + 39 ) THEN + 29 + - 13 + 24 ELSE - - 18 * + + 54 * - - 86 END ), - 3 * - 41 * + + 27 AS col2
----
83592
3321

skipif mysql # not compatible
query II rowsort label-6233
SELECT + MAX ( DISTINCT + CASE + 33 WHEN + COALESCE ( + 80, - ( + ( 95 ) ) / - 7 * + 67 + + 13 + - 55 + - - 68 + - + 39 ) THEN + 29 + - 13 + 24 ELSE - - 18 * + + 54 * - - 86 END ), - 3 * - 41 * + + 27 AS col2
----
83592
3321

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT 66 + - - 87 + - - COUNT( ALL - 85 ) * - + NULLIF ( - + 34, + 34 + + 68 ) + + COUNT( * ) - 85 * + ( + 9 ) AS col1
----
-577

skipif mysql # not compatible
query I rowsort label-6234
SELECT 66 + - - 87 + - - COUNT ( ALL - 85 ) * - + NULLIF ( - + 34, + 34 + + 68 ) + + COUNT ( * ) - 85 * + ( + 9 ) AS col1
----
-577

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT - 17 * 99 + ( - COUNT( * ) ) col1
----
-1684

skipif mysql # not compatible
query I rowsort label-6235
SELECT - 17 * 99 + ( - COUNT ( * ) ) col1
----
-1684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6236
SELECT COUNT( * ) * - 21 * - - 58 + - 84 + 20 - - + 14 * + + COUNT( * ) DIV + - 47 - - CAST( + 17 AS SIGNED ) + + CAST( + 12 AS SIGNED )
----
-1253

skipif mysql # not compatible
query I rowsort label-6236
SELECT COUNT ( * ) * - 21 * - - 58 + - 84 + 20 - - + 14 * + + COUNT ( * ) / + - 47 - - CAST ( + 17 AS INTEGER ) + + CAST ( + 12 AS INTEGER )
----
-1253

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT - MIN( + 52 ) + + + 30 * - 55 AS col2
----
-1702

skipif mysql # not compatible
query I rowsort label-6237
SELECT - MIN ( + 52 ) + + + 30 * - 55 AS col2
----
-1702

query I rowsort
SELECT - 36 + + - 70
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT ALL + 92 + + COALESCE ( + COUNT( * ), - 7, 83, - 57 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL + 92 + + COALESCE ( + COUNT ( * ), - 7, 83, - 57 ) AS col1
----
93

query I rowsort
SELECT ALL + NULLIF ( + ( + 56 ), + 4 + + 26 ) AS col1
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT 56 * - 16 + + ( SUM( DISTINCT 72 ) ) AS col2
----
-824

skipif mysql # not compatible
query I rowsort label-6242
SELECT 56 * - 16 + + ( SUM ( DISTINCT 72 ) ) AS col2
----
-824

query I rowsort
SELECT ALL - 19 * - - 21 AS col1
----
-399

query I rowsort
SELECT DISTINCT + 65 * - 41 AS col1
----
-2665

query I rowsort
SELECT DISTINCT - 10 + - 46
----
-56

query I rowsort
SELECT DISTINCT + 65 * + 72 AS col1
----
4680

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT DISTINCT CASE - COALESCE ( + 73, - COUNT( * ) ) WHEN - MAX( + 31 ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT CASE - COALESCE ( + 73, - COUNT ( * ) ) WHEN - MAX ( + 31 ) THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - 47 + ( + 50 )
----
3

query I rowsort
SELECT ALL + 93 + 39
----
132

query I rowsort
SELECT - 11 - - 99 * NULLIF ( + 81 * + 25, - 6 * 23 )
----
200464

query I rowsort
SELECT + 16 * + 46
----
736

query I rowsort
SELECT + 34 + + 10
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6253
SELECT DISTINCT 57 / ( 98 * CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT 57 / ( 98 * CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 80 * - 13 AS col2
----
1040

query I rowsort
SELECT ALL 92 * - 52 AS col1
----
-4784

query I rowsort
SELECT - 98 + + 18 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6257
SELECT DISTINCT 10 * + CASE 57 / - 65 WHEN 6 * - 4 THEN COALESCE ( + 20, ( 40 ) + + 34, - COUNT( * ) ) WHEN COUNT( * ) * ( - 18 * + CAST( - 28 AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6257
SELECT DISTINCT 10 * + CASE 57 / - 65 WHEN 6 * - 4 THEN COALESCE ( + 20, ( 40 ) + + 34, - COUNT ( * ) ) WHEN COUNT ( * ) * ( - 18 * + CAST ( - 28 AS INTEGER ) ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 3 * 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT DISTINCT CAST( - 86 AS SIGNED ) - - 68
----
-18

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT CAST ( - 86 AS INTEGER ) - - 68
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT + 50 * CASE - 55 * 85 WHEN - 31 * 12 THEN - COUNT( 55 ) * 26 WHEN - 65 THEN + 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT + 50 * CASE - 55 * 85 WHEN - 31 * 12 THEN - COUNT ( 55 ) * 26 WHEN - 65 THEN + 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT ALL - SUM( DISTINCT 43 ) * COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL - SUM ( DISTINCT 43 ) * COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6262
SELECT + 3 DIV + MIN( DISTINCT 14 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6262
SELECT + 3 / + MIN ( DISTINCT 14 ) AS col0
----
0

query I rowsort
SELECT + 14 * 34
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT 86 * 85 + - COUNT( * )
----
7309

skipif mysql # not compatible
query I rowsort label-6264
SELECT 86 * 85 + - COUNT ( * )
----
7309

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6265
SELECT DISTINCT NULLIF ( COUNT( * ), 70 ) DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT NULLIF ( COUNT ( * ), 70 ) / - 79
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT ALL 78 DIV 14 col0
----
5

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL 78 / 14 col0
----
5

query I rowsort
SELECT + 84 * + 51 AS col2
----
4284

query I rowsort
SELECT DISTINCT - 77 * 17 + + 48
----
-1261

query I rowsort
SELECT ALL - 50 * - 94
----
4700

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT DISTINCT COUNT( * ) * 77 + 67 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT COUNT ( * ) * 77 + 67 AS col1
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT + 13 * + CAST( 30 AS SIGNED ) col2
----
390

skipif mysql # not compatible
query I rowsort label-6272
SELECT + 13 * + CAST ( 30 AS INTEGER ) col2
----
390

query I rowsort
SELECT 24 * - 44 + + ( - 0 )
----
-1056

query I rowsort
SELECT ALL 36 * - 71
----
-2556

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT COALESCE ( - CASE NULLIF ( 28, + 90 ) WHEN 68 + - 35 THEN - MIN( + 85 ) WHEN 97 THEN NULL END, 38, 33 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6275
SELECT COALESCE ( - CASE NULLIF ( 28, + 90 ) WHEN 68 + - 35 THEN - MIN ( + 85 ) WHEN 97 THEN NULL END, 38, 33 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT + ( + MIN( + NULLIF ( 58, 24 * - 99 - + 99 ) ) )
----
58

skipif mysql # not compatible
query I rowsort label-6276
SELECT + ( + MIN ( + NULLIF ( 58, 24 * - 99 - + 99 ) ) )
----
58

query I rowsort
SELECT COALESCE ( 50, - 24 )
----
50

query I rowsort
SELECT DISTINCT 62 * NULLIF ( 42, - 23 ) + + 58 AS col0
----
2662

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6279
SELECT ALL 31 * ( 35 * - CAST( NULL AS SIGNED ) ) + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL 31 * ( 35 * - CAST ( NULL AS INTEGER ) ) + + 5
----
NULL

query I rowsort
SELECT CASE + 39 WHEN - ( 74 ) * + 62 + ( + 96 ) THEN NULL ELSE - ( 69 ) END AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL COUNT( * ) * - 91 + 23 * 82
----
1795

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL COUNT ( * ) * - 91 + 23 * 82
----
1795

query I rowsort
SELECT + ( - 40 ) - 41
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6283
SELECT DISTINCT CAST( + 32 AS SIGNED ) * COUNT( * ) + - 93 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT CAST ( + 32 AS INTEGER ) * COUNT ( * ) + - 93 AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6284
SELECT ALL - COUNT( DISTINCT ( CAST( + 54 AS SIGNED ) ) ) DIV ( - COUNT( * ) * 47 )
----
0

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL - COUNT ( DISTINCT ( CAST ( + 54 AS INTEGER ) ) ) / ( - COUNT ( * ) * 47 )
----
0

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

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

query I rowsort
SELECT DISTINCT + 96 * 54 + ( - 71 ) AS col0
----
5113

query I rowsort
SELECT DISTINCT NULLIF ( + 65, - 35 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6288
SELECT + + CASE - 22 WHEN 76 THEN AVG ( - 65 ) - 20 * + 22 WHEN 34 THEN NULL END + - CASE + CAST( NULL AS DECIMAL ) + 85 WHEN COUNT( * ) THEN - 28 ELSE NULL END * ( CAST( + MIN( ALL - 55 ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT + + CASE - 22 WHEN 76 THEN AVG ( - 65 ) - 20 * + 22 WHEN 34 THEN NULL END + - CASE + CAST ( NULL AS REAL ) + 85 WHEN COUNT ( * ) THEN - 28 ELSE NULL END * ( CAST ( + MIN ( ALL - 55 ) AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6289
SELECT ALL + + 87 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL + + 87 / - 89
----
0

query I rowsort
SELECT 93 * 17 + - 26
----
1555

query I rowsort
SELECT - 44 - 68
----
-112

query I rowsort
SELECT DISTINCT + - 37 * 93 AS col2
----
-3441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6293
SELECT ALL - - 74 * + COALESCE ( - 48 * + COUNT( * ) - - 89 * - 25, - ( CAST( + MAX( + ( + 49 ) ) AS SIGNED ) ) ) AS col1
----
-168202

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL - - 74 * + COALESCE ( - 48 * + COUNT ( * ) - - 89 * - 25, - ( CAST ( + MAX ( + ( + 49 ) ) AS INTEGER ) ) ) AS col1
----
-168202

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT ALL + + 12 - + NULLIF ( ( 67 ) + - NULLIF ( MAX( 64 ), + 59 * 35 ) * - 18, 56 ) AS col2
----
-1207

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL + + 12 - + NULLIF ( ( 67 ) + - NULLIF ( MAX ( 64 ), + 59 * 35 ) * - 18, 56 ) AS col2
----
-1207

onlyif mysql # DIV for integer division: 
query I rowsort label-6295
SELECT - 97 DIV 91
----
-1

skipif mysql # not compatible
query I rowsort label-6295
SELECT - 97 / 91
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT ALL - COUNT( + 63 ) * - COUNT( DISTINCT 99 )
----
1

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL - COUNT ( + 63 ) * - COUNT ( DISTINCT 99 )
----
1

query I rowsort
SELECT ALL - 32 * 59 AS col2
----
-1888

query I rowsort
SELECT - 11 + + 47 AS col2
----
36

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

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

query I rowsort
SELECT ALL + COALESCE ( - 64, 43 + 0 )
----
-64

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

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

query I rowsort
SELECT ALL - - 82 * - 50
----
-4100

query I rowsort
SELECT - 86 + - 55 * + 68 AS col2
----
-3826

query I rowsort
SELECT - 0 + - 8
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6305
SELECT + CASE - 32 WHEN + 85 * 78 THEN - 28 ELSE NULL END + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6305
SELECT + CASE - 32 WHEN + 85 * 78 THEN - 28 ELSE NULL END + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 13 * 42 col2
----
-546

query I rowsort
SELECT + 83 * - 47
----
-3901

query I rowsort
SELECT ALL - 89 * 14 AS col0
----
-1246

query I rowsort
SELECT COALESCE ( ( - 56 ), 7 ) AS col2
----
-56

query I rowsort
SELECT + 36 + 65
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6311
SELECT ALL + MIN( 53 ) DIV - 5
----
-10

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL + MIN ( 53 ) / - 5
----
-10

query I rowsort
SELECT DISTINCT - 9 + + 92
----
83

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

skipif mysql # not compatible
query I rowsort label-6313
SELECT 28 * + - COUNT ( * ) + + 27 AS col2
----
-1

query I rowsort
SELECT ALL - 91 + - + 52 col2
----
-143

query I rowsort
SELECT ALL 49 + + 21
----
70

query I rowsort
SELECT 46 + ( - 31 )
----
15

query I rowsort
SELECT + 34 * + + 55 - - 74 * 11 AS col2
----
2684

query I rowsort
SELECT 55 + COALESCE ( 72, - 81 - 28 )
----
127

query I rowsort
SELECT 91 + 3 AS col0
----
94

query I rowsort
SELECT DISTINCT 30 + + 18 * 25 AS col2
----
480

onlyif mysql # DIV for integer division: 
query I rowsort label-6321
SELECT ( 89 ) * - 16 + 63 DIV NULLIF ( + 45, 28 ) AS col2
----
-1423

skipif mysql # not compatible
query I rowsort label-6321
SELECT ( 89 ) * - 16 + 63 / NULLIF ( + 45, 28 ) AS col2
----
-1423

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT ALL - MIN( DISTINCT 88 ) col1
----
-88

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL - MIN ( DISTINCT 88 ) col1
----
-88

query I rowsort
SELECT ( + 74 ) + 3
----
77

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

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL 53 + COUNT ( * ) / + 87
----
53

query I rowsort
SELECT DISTINCT 18 * + 85 AS col2
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT COUNT( * ) + - + NULLIF ( - 90, - 1 + - CASE NULLIF ( - ( - 9 ), - COUNT( * ) * 66 ) WHEN 45 THEN - ( 18 ) + + 83 END )
----
91

skipif mysql # not compatible
query I rowsort label-6326
SELECT COUNT ( * ) + - + NULLIF ( - 90, - 1 + - CASE NULLIF ( - ( - 9 ), - COUNT ( * ) * 66 ) WHEN 45 THEN - ( 18 ) + + 83 END )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6327
SELECT ALL - 93 - COALESCE ( MIN( 54 ), - ( 77 ) DIV - 45 )
----
-147

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL - 93 - COALESCE ( MIN ( 54 ), - ( 77 ) / - 45 )
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT COUNT( * ) * 55 * - 92 AS col0
----
-5060

skipif mysql # not compatible
query I rowsort label-6328
SELECT COUNT ( * ) * 55 * - 92 AS col0
----
-5060

query I rowsort
SELECT ALL 47 * 18 * 10
----
8460

query I rowsort
SELECT - 32 * + 42 * + 2 + 52
----
-2636

query I rowsort
SELECT DISTINCT 82 * + 43 * + 76
----
267976

query I rowsort
SELECT - 68 * - 89 + 29 + 16 * 54 AS col2
----
6945

query I rowsort
SELECT + 68 * 51 AS col1
----
3468

query I rowsort
SELECT DISTINCT - 95 * 87 + - 11
----
-8276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6335
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), 61 + - 33, 6 * 82 + 37 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), 61 + - 33, 6 * 82 + 37 ) AS col2
----
28

query I rowsort
SELECT DISTINCT + 67 * + 6
----
402

query I rowsort
SELECT DISTINCT - 3 - - - 33
----
-36

query I rowsort
SELECT 46 + + 52
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6339
SELECT DISTINCT + + 9 DIV - - ( - 20 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT + + 9 / - - ( - 20 ) AS col1
----
0

query I rowsort
SELECT 95 - - + 70 * 41
----
2965

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT - 31 DIV + 78 * 69 + + 12
----
12

skipif mysql # not compatible
query I rowsort label-6341
SELECT - 31 / + 78 * 69 + + 12
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6342
SELECT ALL COUNT( * ) DIV + + COUNT( - 15 ) - 42
----
-41

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL COUNT ( * ) / + + COUNT ( - 15 ) - 42
----
-41

query I rowsort
SELECT + COALESCE ( + 84, + 57 - 26 ) + 28
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT + CASE 97 WHEN 10 THEN NULL WHEN 44 THEN NULL ELSE ( - 92 ) END + COALESCE ( + 22, - COUNT( * ) + + 15, - 96 )
----
-70

skipif mysql # not compatible
query I rowsort label-6344
SELECT + CASE 97 WHEN 10 THEN NULL WHEN 44 THEN NULL ELSE ( - 92 ) END + COALESCE ( + 22, - COUNT ( * ) + + 15, - 96 )
----
-70

query I rowsort
SELECT ALL + - 67 + - + 28 + 69
----
-26

query I rowsort
SELECT + NULLIF ( - 22, - 64 ) + 57
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT DISTINCT + 2 * + SUM( 98 ) AS col0
----
196

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT + 2 * + SUM ( 98 ) AS col0
----
196

query I rowsort
SELECT DISTINCT 85 + - 33 AS col2
----
52

query I rowsort
SELECT + 24 - 70 + - 11
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL + + CASE + ( + 95 ) WHEN COUNT( * ) THEN NULL WHEN - 72 * NULLIF ( 3, 48 - - 78 ) THEN 9 / - 39 + 9 END + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL + + CASE + ( + 95 ) WHEN COUNT ( * ) THEN NULL WHEN - 72 * NULLIF ( 3, 48 - - 78 ) THEN 9 / - 39 + 9 END + - 90
----
NULL

query I rowsort
SELECT DISTINCT - 10 + - 19
----
-29

query I rowsort
SELECT ALL + 99 * 45
----
4455

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT 65 * - 26 * + COUNT( * ) * + 71 AS col2
----
-119990

skipif mysql # not compatible
query I rowsort label-6353
SELECT 65 * - 26 * + COUNT ( * ) * + 71 AS col2
----
-119990

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT ALL + 23 + + COUNT( * ) + + + 23
----
47

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL + 23 + + COUNT ( * ) + + + 23
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6355
SELECT 72 + 59 + - - CAST( NULL AS SIGNED ) + 10 * - 57 * + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6355
SELECT 72 + 59 + - - CAST ( NULL AS INTEGER ) + 10 * - 57 * + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL - 96 + - SUM( DISTINCT + - 11 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL - 96 + - SUM ( DISTINCT + - 11 ) AS col2
----
-85

query II rowsort
SELECT - 61 col0, - 47
----
-61
-47

query I rowsort
SELECT ALL - COALESCE ( 30, - 85, - 77 * - 4 ) AS col0
----
-30

query II rowsort
SELECT + 63 AS col1, - 83 col1
----
63
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT + 67 * - - CAST( NULL AS SIGNED ) * - 43 + - 28 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT + 67 * - - CAST ( NULL AS INTEGER ) * - 43 + - 28 * 33
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6361
SELECT + 18, + COALESCE ( - 37, - 34 DIV + 82 ) + 71 col0
----
18
34

skipif mysql # not compatible
query II rowsort label-6361
SELECT + 18, + COALESCE ( - 37, - 34 / + 82 ) + 71 col0
----
18
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL - COUNT( + 94 ) + 99
----
98

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL - COUNT ( + 94 ) + 99
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6363
SELECT COUNT( * ), - 32 col0
----
1
-32

skipif mysql # not compatible
query II rowsort label-6363
SELECT COUNT ( * ), - 32 col0
----
1
-32

query II rowsort
SELECT + 72 AS col2, 74
----
72
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL - COALESCE ( - SUM( - 97 ), - 26 )
----
-97

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL - COALESCE ( - SUM ( - 97 ), - 26 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6366
SELECT DISTINCT - 79 + CAST( ( - 92 ) AS SIGNED ) + - COUNT( * ) * + 95
----
-266

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT - 79 + CAST ( ( - 92 ) AS INTEGER ) + - COUNT ( * ) * + 95
----
-266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6367
SELECT DISTINCT COALESCE ( - + ( - - 98 ), COUNT( * ) * - ( + 76 * CAST( NULL AS SIGNED ) ) ) - COUNT( * ) * + 50 AS col1
----
-148

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT COALESCE ( - + ( - - 98 ), COUNT ( * ) * - ( + 76 * CAST ( NULL AS INTEGER ) ) ) - COUNT ( * ) * + 50 AS col1
----
-148

query I rowsort
SELECT DISTINCT + 6 * + 28
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT COUNT( - - 68 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6369
SELECT COUNT ( - - 68 ) AS col0
----
1

query I rowsort
SELECT 71 - ( 87 )
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT 98 * CASE - + AVG ( DISTINCT 29 ) WHEN + 31 + - 61 THEN 90 ELSE NULL END + - COUNT( * ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6372
SELECT 98 * CASE - + AVG ( DISTINCT 29 ) WHEN + 31 + - 61 THEN 90 ELSE NULL END + - COUNT ( * ) * 21
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6374
SELECT ALL ( - - 6 ) - + COUNT( * ) + - CAST( 65 AS SIGNED ) * COUNT( 62 + + ( - 92 ) ) * 60
----
-3895

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL ( - - 6 ) - + COUNT ( * ) + - CAST ( 65 AS INTEGER ) * COUNT ( 62 + + ( - 92 ) ) * 60
----
-3895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT CAST( NULL AS SIGNED ) * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT CAST ( NULL AS INTEGER ) * 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT + 66 - - - 89 - COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-6376
SELECT + 66 - - - 89 - COUNT ( * ) AS col1
----
-24

query II rowsort
SELECT DISTINCT - 12, + ( + - 66 ) col0
----
-12
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT - 88 * - 72 * - - NULLIF ( - COUNT( * ), - NULLIF ( - 24, - 59 / ( 23 ) ) ) * SUM( 84 - 90 ) AS col1
----
38016

skipif mysql # not compatible
query I rowsort label-6378
SELECT - 88 * - 72 * - - NULLIF ( - COUNT ( * ), - NULLIF ( - 24, - 59 / ( 23 ) ) ) * SUM ( 84 - 90 ) AS col1
----
38016

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT DISTINCT - SUM( - + ( + 91 ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT - SUM ( - + ( + 91 ) ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT - NULLIF ( + ( + 54 ), COUNT( * ) ) + 22 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6380
SELECT - NULLIF ( + ( + 54 ), COUNT ( * ) ) + 22 AS col2
----
-32

query II rowsort
SELECT ALL 4 AS col0, 13
----
4
13

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

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

query I rowsort
SELECT + 29 - - + 71 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT COALESCE ( - + 14, CASE + 49 WHEN + ( ( 93 ) ) + - COUNT( * ) THEN NULL ELSE 22 END, + COUNT( * ) * 42 ) * + 54 col0
----
-756

skipif mysql # not compatible
query I rowsort label-6384
SELECT COALESCE ( - + 14, CASE + 49 WHEN + ( ( 93 ) ) + - COUNT ( * ) THEN NULL ELSE 22 END, + COUNT ( * ) * 42 ) * + 54 col0
----
-756

query I rowsort
SELECT DISTINCT 7 + + + 99
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT ALL + 89 + CASE - + 49 WHEN COUNT( * ) * COUNT( * ) THEN NULL WHEN + 90 THEN NULL ELSE + COUNT( * ) - 2 END col2
----
88

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL + 89 + CASE - + 49 WHEN COUNT ( * ) * COUNT ( * ) THEN NULL WHEN + 90 THEN NULL ELSE + COUNT ( * ) - 2 END col2
----
88

query II rowsort
SELECT 95 AS col2, + 27 * - 81
----
95
-2187

query I rowsort
SELECT ALL 34 + + - 12 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT DISTINCT 74 + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT 74 + COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6390
SELECT ALL + 66, 85 * - COUNT( * ) col0
----
66
-85

skipif mysql # not compatible
query II rowsort label-6390
SELECT ALL + 66, 85 * - COUNT ( * ) col0
----
66
-85

query I rowsort
SELECT DISTINCT + + 90 + + 47 AS col2
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6392
SELECT DISTINCT - + COALESCE ( 22, + 62 * 73, - 35, 63 + + SUM( ALL 47 ) ) + 58 DIV + 37 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT - + COALESCE ( 22, + 62 * 73, - 35, 63 + + SUM ( ALL 47 ) ) + 58 / + 37 AS col0
----
-21

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6394
SELECT - 90 * + COUNT( + + CAST( NULL AS DECIMAL ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6394
SELECT - 90 * + COUNT ( + + CAST ( NULL AS REAL ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT + 2 + + COUNT( * ) * 86 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6395
SELECT + 2 + + COUNT ( * ) * 86 AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6396
SELECT - 7 DIV - COALESCE ( - 62, + 58 * COUNT( * ) ) * + 1
----
0

skipif mysql # not compatible
query I rowsort label-6396
SELECT - 7 / - COALESCE ( - 62, + 58 * COUNT ( * ) ) * + 1
----
0

query I rowsort
SELECT ALL - 92 + 32
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT + CASE - 49 WHEN + COALESCE ( - - 44, ( COUNT( * ) ) ) / ( - 10 ) THEN + NULLIF ( + 41, + 43 + 87 * - 71 ) ELSE NULL END + - 17 / 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT + CASE - 49 WHEN + COALESCE ( - - 44, ( COUNT ( * ) ) ) / ( - 10 ) THEN + NULLIF ( + 41, + 43 + 87 * - 71 ) ELSE NULL END + - 17 / 64 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 20 * - + 87 col2
----
-1740

query I rowsort
SELECT - 72 + + 38
----
-34

query I rowsort
SELECT ALL 77 - 52 + 49 * + 84 AS col0
----
4141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT 29 / + COUNT( * ) + 53 * 89 + + CASE 37 WHEN - 38 THEN 90 + 43 WHEN 20 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT 29 / + COUNT ( * ) + 53 * 89 + + CASE 37 WHEN - 38 THEN 90 + 43 WHEN 20 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + - 89, - + 44 )
----
-89

query I rowsort
SELECT + ( 73 ) + - 0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6406
SELECT - 87 * COALESCE ( + 98, + ( + 8 ) + 2 ) * + COUNT( * ) + CAST( COUNT( * ) AS SIGNED ) * 94
----
-8432

skipif mysql # not compatible
query I rowsort label-6406
SELECT - 87 * COALESCE ( + 98, + ( + 8 ) + 2 ) * + COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) * 94
----
-8432

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

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

query I rowsort
SELECT NULLIF ( + 47, 17 )
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6409
SELECT - 94 + + 28 + 36 * - - 34 * + CAST( NULL AS DECIMAL ) - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6409
SELECT - 94 + + 28 + 36 * - - 34 * + CAST ( NULL AS REAL ) - 90
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6410
SELECT NULLIF ( - + 66, 30 * CASE WHEN NULL IN ( - ( COUNT( * ) ) ) THEN - 61 * + CAST( COUNT( * ) AS DECIMAL ) END - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-6410
SELECT NULLIF ( - + 66, 30 * CASE WHEN NULL IN ( - ( COUNT ( * ) ) ) THEN - 61 * + CAST ( COUNT ( * ) AS REAL ) END - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) ) AS col1
----
-66

query I rowsort
SELECT - 24 * - - 38 * + COALESCE ( + 96, 95 ) + + 30
----
-87522

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ALL + CASE - 18 WHEN + 77 + COUNT( * ) THEN NULL ELSE 90 END AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL + CASE - 18 WHEN + 77 + COUNT ( * ) THEN NULL ELSE 90 END AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6413
SELECT - + 33 DIV + - MAX( - + 19 ) + CAST( + ( COALESCE ( + 0, SUM( DISTINCT 37 ) ) ) AS SIGNED ) * MAX( 78 ) + 63 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6413
SELECT - + 33 / + - MAX ( - + 19 ) + CAST ( + ( COALESCE ( + 0, SUM ( DISTINCT 37 ) ) ) AS INTEGER ) * MAX ( 78 ) + 63 AS col0
----
62

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

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

query I rowsort
SELECT - ( + 19 ) + - + 99 + + - 85
----
-203

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6417
SELECT - + 23 DIV + 15 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6417
SELECT - + 23 / + 15 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT ALL - COUNT( * ) * + - MIN( ALL 50 )
----
50

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL - COUNT ( * ) * + - MIN ( ALL 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT - - COUNT( * ) * COUNT( * ) + - 91 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-6419
SELECT - - COUNT ( * ) * COUNT ( * ) + - 91 AS col0
----
-90

query I rowsort
SELECT - 9 * - 55 + + + ( + 66 )
----
561

onlyif mysql # DIV for integer division: 
query I rowsort label-6421
SELECT - 52 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-6421
SELECT - 52 / + 59
----
0

query I rowsort
SELECT + 22 * + COALESCE ( - 14, - + 15 + 76 ) - ( + 44 + ( + 72 ) )
----
-424

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT DISTINCT - + 88 * + MAX( 28 ) + + 22
----
-2442

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT - + 88 * + MAX ( 28 ) + + 22
----
-2442

query I rowsort
SELECT DISTINCT + ( - + 75 ) col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6425
SELECT ALL + 24 * CAST( ( 36 ) AS SIGNED ) * 62 - ( - 92 ) * - 62 + 80
----
47944

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL + 24 * CAST ( ( 36 ) AS INTEGER ) * 62 - ( - 92 ) * - 62 + 80
----
47944

query I rowsort
SELECT ALL - 96 * + - 38 * - + 31 + - 99 AS col1
----
-113187

query I rowsort
SELECT - + 96 + - 42 * + + 2 + ( - 32 ) AS col1
----
-212

query I rowsort
SELECT DISTINCT + + ( 53 ) * - 46 + - 73 AS col1
----
-2511

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6430
SELECT + 6 DIV - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6430
SELECT + 6 / - 89 AS col2
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6433
SELECT - COALESCE ( 22, - CAST( NULL AS SIGNED ) + - 87, - ( 52 ) - 18 )
----
-22

skipif mysql # not compatible
query I rowsort label-6433
SELECT - COALESCE ( 22, - CAST ( NULL AS INTEGER ) + - 87, - ( 52 ) - 18 )
----
-22

query I rowsort
SELECT DISTINCT - 8 + + 15 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6435
SELECT - - NULLIF ( - - CAST( - + 70 AS SIGNED ), COALESCE ( 53, 0 * - ( - COUNT( * ) ) + - ( - 55 ) ) )
----
-70

skipif mysql # not compatible
query I rowsort label-6435
SELECT - - NULLIF ( - - CAST ( - + 70 AS INTEGER ), COALESCE ( 53, 0 * - ( - COUNT ( * ) ) + - ( - 55 ) ) )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6436
SELECT + COALESCE ( 63, - 89, 4 + - NULLIF ( COUNT( * ), + 0 / ( 63 ) ) + + 99 * COALESCE ( 97, CAST( COALESCE ( COUNT( * ), 60 + 63, 72 * - CASE - 46 * - 64 WHEN 99 * 76 THEN 20 + 34 END ) AS SIGNED ) * 39 ), ( - 78 ) + + COALESCE ( 50 + - 16, + 92, ( - COUNT( * ) ) ) * + COUNT( * ) ) + - 28 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-6436
SELECT + COALESCE ( 63, - 89, 4 + - NULLIF ( COUNT ( * ), + 0 / ( 63 ) ) + + 99 * COALESCE ( 97, CAST ( COALESCE ( COUNT ( * ), 60 + 63, 72 * - CASE - 46 * - 64 WHEN 99 * 76 THEN 20 + 34 END ) AS INTEGER ) * 39 ), ( - 78 ) + + COALESCE ( 50 + - 16, + 92, ( - COUNT ( * ) ) ) * + COUNT ( * ) ) + - 28 AS col1
----
35

query I rowsort
SELECT ALL 14 - - 35 AS col0
----
49

query I rowsort
SELECT ALL 72 * 74
----
5328

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT DISTINCT + 78 - - NULLIF ( - 9, + - COUNT( * ) ) + + 7 + - 79 * + 14 * - 7
----
7818

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT + 78 - - NULLIF ( - 9, + - COUNT ( * ) ) + + 7 + - 79 * + 14 * - 7
----
7818

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL MIN( ALL 47 ) col2
----
47

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL MIN ( ALL 47 ) col2
----
47

query I rowsort
SELECT ALL 78 - - 87 * - - 45 + + 99 * - CASE 49 WHEN + 24 + - 50 THEN 4 + 90 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6443
SELECT ALL 36 * 24 DIV - MIN( + + 93 )
----
-9

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL 36 * 24 / - MIN ( + + 93 )
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL - COUNT( DISTINCT - 99 ) - - - 90 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL - COUNT ( DISTINCT - 99 ) - - - 90 AS col0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6446
SELECT - CAST( NULLIF ( + 88, ( + 66 ) ) AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-6446
SELECT - CAST ( NULLIF ( + 88, ( + 66 ) ) AS INTEGER )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6447
SELECT DISTINCT MIN( ALL + + NULLIF ( CAST( NULL AS DECIMAL ), 75 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6447
SELECT DISTINCT MIN ( ALL + + NULLIF ( CAST ( NULL AS REAL ), 75 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT ALL 24 - + COALESCE ( - 6, + 1 * - - 13, - ( MAX( DISTINCT - 10 ) ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL 24 - + COALESCE ( - 6, + 1 * - - 13, - ( MAX ( DISTINCT - 10 ) ) ) AS col2
----
30

query I rowsort
SELECT - 70 * - - 15
----
-1050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6450
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( * ) * + AVG ( DISTINCT + 32 ) * COUNT( DISTINCT - ( 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + AVG ( DISTINCT + 32 ) * COUNT ( DISTINCT - ( 85 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT ALL + MIN( DISTINCT - 50 ) * 32
----
-1600

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL + MIN ( DISTINCT - 50 ) * 32
----
-1600

query I rowsort
SELECT DISTINCT 23 * + 9 AS col1
----
207

query I rowsort
SELECT - + 94 * + + 66 * - + 63 + 96
----
390948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6454
SELECT ALL - ( + COUNT( * ) ) DIV - 74 + 84 + 21 * 81
----
1785

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL - ( + COUNT ( * ) ) / - 74 + 84 + 21 * 81
----
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT + + 83 + + COUNT( * ) + - + 24 + - 64 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6455
SELECT + + 83 + + COUNT ( * ) + - + 24 + - 64 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT - 77 * COUNT( * ) * - 34 * + COALESCE ( + ( + 78 ), + 82 ) + - 45 + 10 AS col2
----
204169

skipif mysql # not compatible
query I rowsort label-6456
SELECT - 77 * COUNT ( * ) * - 34 * + COALESCE ( + ( + 78 ), + 82 ) + - 45 + 10 AS col2
----
204169

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6457
SELECT + 90 DIV 89 + - 88 + CAST( - 52 AS SIGNED ) AS col0
----
-139

skipif mysql # not compatible
query I rowsort label-6457
SELECT + 90 / 89 + - 88 + CAST ( - 52 AS INTEGER ) AS col0
----
-139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6458
SELECT - 11 * COUNT( * ) * - 3 + 55 * + 22 + - 31 DIV 41 AS col1
----
1243

skipif mysql # not compatible
query I rowsort label-6458
SELECT - 11 * COUNT ( * ) * - 3 + 55 * + 22 + - 31 / 41 AS col1
----
1243

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT DISTINCT - - SUM( + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT - - SUM ( + 76 )
----
76

query I rowsort
SELECT DISTINCT - - 48 + 74 AS col0
----
122

query I rowsort
SELECT ALL - 73 + 23
----
-50

query II rowsort
SELECT ALL - 49, 61 AS col1
----
-49
61

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT DISTINCT - 23 * + 2 DIV + - 84 + 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT - 23 * + 2 / + - 84 + 12 AS col0
----
12

query I rowsort
SELECT 39 * ( - 64 ) AS col1
----
-2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6465
SELECT DISTINCT - CAST( - 91 AS SIGNED ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT - CAST ( - 91 AS INTEGER ) AS col0
----
91

query I rowsort
SELECT 41 + 21 AS col2
----
62

query I rowsort
SELECT - 27 - - - 63
----
-90

query II rowsort
SELECT ALL - 28 AS col2, - 74
----
-28
-74

query I rowsort
SELECT 31 - + 76 col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT COUNT( * ) * - + 64 * - 73 col1
----
4672

skipif mysql # not compatible
query I rowsort label-6470
SELECT COUNT ( * ) * - + 64 * - 73 col1
----
4672

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

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

query II rowsort
SELECT 42, - 96 * 60 + 56 AS col1
----
42
-5704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6473
SELECT 84 + + CASE - 70 WHEN COALESCE ( + 13, + 90 * COUNT( * ) + COALESCE ( 38 + + 18, - 27 + - 2 * 60 ) ) THEN NULL ELSE + 93 + 80 DIV 59 END
----
178

skipif mysql # not compatible
query I rowsort label-6473
SELECT 84 + + CASE - 70 WHEN COALESCE ( + 13, + 90 * COUNT ( * ) + COALESCE ( 38 + + 18, - 27 + - 2 * 60 ) ) THEN NULL ELSE + 93 + 80 / 59 END
----
178

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

skipif mysql # not compatible
query II rowsort label-6474
SELECT ALL 58, - 24 * CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
58
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6475
SELECT ALL 14 AS col2, 33 DIV - 5 AS col2
----
14
-6

skipif mysql # not compatible
query II rowsort label-6475
SELECT ALL 14 AS col2, 33 / - 5 AS col2
----
14
-6

query I rowsort
SELECT 71 + 50 - - + 66
----
187

query I rowsort
SELECT 6 - + 50 AS col0
----
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT ALL 83 * - COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL 83 * - COUNT ( * ) AS col2
----
-83

query I rowsort
SELECT 96 + - 80 AS col0
----
16

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

skipif mysql # not compatible
query I rowsort label-6481
SELECT DISTINCT 18 * + - COUNT ( * ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT DISTINCT - 85 * - COALESCE ( - ( + - 87 ), + 34 - - 70 * NULLIF ( + ( - 25 ), COUNT( * ) / MAX( DISTINCT 2 ) ) )
----
7395

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT - 85 * - COALESCE ( - ( + - 87 ), + 34 - - 70 * NULLIF ( + ( - 25 ), COUNT ( * ) / MAX ( DISTINCT 2 ) ) )
----
7395

query I rowsort
SELECT 15 + - 51 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT ALL - MIN( ALL 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL - MIN ( ALL 68 ) AS col0
----
-68

query I rowsort
SELECT 76 * - 21 + + 90 + - 40 * - 9 * 71 AS col2
----
24054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6486
SELECT - COUNT( * ) DIV + - 23 - - 95 * ( + 15 ) AS col0
----
1425

skipif mysql # not compatible
query I rowsort label-6486
SELECT - COUNT ( * ) / + - 23 - - 95 * ( + 15 ) AS col0
----
1425

query I rowsort
SELECT ( - 97 ) col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6488
SELECT ALL - CAST( - 72 AS SIGNED ) + MIN( - - 98 ) AS col2
----
170

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL - CAST ( - 72 AS INTEGER ) + MIN ( - - 98 ) AS col2
----
170

query I rowsort
SELECT 71 * 86 + 76 * + - 70
----
786

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

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

query I rowsort
SELECT ALL + - 58 + + - 94 * - - 15 AS col0
----
-1468

query I rowsort
SELECT ( + + 48 ) + + 41 - - + 67
----
156

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

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

query I rowsort
SELECT ALL 58 - - 94 AS col1
----
152

query II rowsort
SELECT + 7 AS col1, 79 * + + 10
----
7
790

query I rowsort
SELECT - - 94 * 34 + - - ( + 19 ) + - 77 AS col1
----
3138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6497
SELECT + 62 * - ( + + 24 ) + - 49 + 37 + - CAST( NULL AS SIGNED ) * + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6497
SELECT + 62 * - ( + + 24 ) + - 49 + 37 + - CAST ( NULL AS INTEGER ) * + 83 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6499
SELECT - 25 + - 4 + CAST( NULL AS SIGNED ) + + 37 * - 12 * - + 34 * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6499
SELECT - 25 + - 4 + CAST ( NULL AS INTEGER ) + + 37 * - 12 * - + 34 * + 3
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6501
SELECT 81 + 38 AS col2, COUNT( * )
----
119
1

skipif mysql # not compatible
query II rowsort label-6501
SELECT 81 + 38 AS col2, COUNT ( * )
----
119
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT CASE - 1 WHEN + 83 THEN NULL WHEN + 42 THEN - - COUNT( * ) ELSE NULL END * - + 4 + + + 44 + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT CASE - 1 WHEN + 83 THEN NULL WHEN + 42 THEN - - COUNT ( * ) ELSE NULL END * - + 4 + + + 44 + - 52
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6504
SELECT 0 * 86 AS col1, CAST( + COUNT( * ) AS SIGNED ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-6504
SELECT 0 * 86 AS col1, CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
0
1

query I rowsort
SELECT 16 + - 25
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT 90 * - + COUNT( ALL - 54 )
----
-90

skipif mysql # not compatible
query I rowsort label-6506
SELECT 90 * - + COUNT ( ALL - 54 )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6507
SELECT COUNT( * ) + + - 2 + 23 - ( + 59 ) DIV + - 34
----
23

skipif mysql # not compatible
query I rowsort label-6507
SELECT COUNT ( * ) + + - 2 + 23 - ( + 59 ) / + - 34
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6508
SELECT 99 * - CASE 66 WHEN + 86 THEN NULL ELSE + COUNT( * ) END DIV - - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6508
SELECT 99 * - CASE 66 WHEN + 86 THEN NULL ELSE + COUNT ( * ) END / - - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-99

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

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT SUM ( 62 )
----
62

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6511
SELECT DISTINCT CAST( + + 79 AS SIGNED ) DIV - 72 + + 97 + 67 + + - 13 + - 96 * - 68 * + NULLIF ( + CAST( 1 AS SIGNED ), - 6 + 69 * CAST( NULL AS SIGNED ) ) AS col1
----
6678

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT CAST ( + + 79 AS INTEGER ) / - 72 + + 97 + 67 + + - 13 + - 96 * - 68 * + NULLIF ( + CAST ( 1 AS INTEGER ), - 6 + 69 * CAST ( NULL AS INTEGER ) ) AS col1
----
6678

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT ALL + CASE - COUNT( DISTINCT - 86 ) WHEN + 6 THEN COUNT( * ) WHEN + 21 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL + CASE - COUNT ( DISTINCT - 86 ) WHEN + 6 THEN COUNT ( * ) WHEN + 21 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT ALL + 5 * + ( - CASE + 52 WHEN + + 47 + 27 THEN 64 ELSE 32 + - 99 END ) * - 62 + - COUNT( * )
----
-20771

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL + 5 * + ( - CASE + 52 WHEN + + 47 + 27 THEN 64 ELSE 32 + - 99 END ) * - 62 + - COUNT ( * )
----
-20771

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT + 32 * 69 + + MIN( 69 ) * - 50 * + 58 AS col0
----
-197892

skipif mysql # not compatible
query I rowsort label-6515
SELECT + 32 * 69 + + MIN ( 69 ) * - 50 * + 58 AS col0
----
-197892

query I rowsort
SELECT DISTINCT ( 34 ) * 26 + + 43 col1
----
927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6517
SELECT ALL + - CASE + 61 WHEN - 77 * + 12 THEN - 1 + - + 84 * - + 13 WHEN ( 74 ) - COUNT( * ) THEN + ( 14 ) + 91 ELSE 30 * + CAST( 6 AS SIGNED ) END AS col2
----
-180

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL + - CASE + 61 WHEN - 77 * + 12 THEN - 1 + - + 84 * - + 13 WHEN ( 74 ) - COUNT ( * ) THEN + ( 14 ) + 91 ELSE 30 * + CAST ( 6 AS INTEGER ) END AS col2
----
-180

query I rowsort
SELECT ALL - 76 * - 5 - + 99 * + 8 * 40 * - 9
----
285500

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT - 18 * - 14 + - - 56 + - 95 * - + 47 * COUNT( * )
----
4773

skipif mysql # not compatible
query I rowsort label-6519
SELECT - 18 * - 14 + - - 56 + - 95 * - + 47 * COUNT ( * )
----
4773

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT - - 4 * - + 21 * + + CASE - 78 WHEN 89 THEN + - 89 WHEN + 43 THEN NULL END + + MIN( - ( + 79 ) - + 30 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT - - 4 * - + 21 * + + CASE - 78 WHEN 89 THEN + - 89 WHEN + 43 THEN NULL END + + MIN ( - ( + 79 ) - + 30 ) AS col2
----
NULL

query I rowsort
SELECT + - 73 * 38
----
-2774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6523
SELECT + - CASE - MAX( - - 83 ) WHEN - - 86 THEN + 29 * 40 + + 18 WHEN 48 / + 83 THEN + CASE + CAST( + 5 AS DECIMAL ) WHEN 4 / 13 THEN CASE 77 WHEN 75 * CASE - ( 81 ) WHEN 78 THEN ( - 94 ) * - CAST( NULL AS SIGNED ) WHEN ( - 56 ) * - 20 THEN NULL ELSE NULL END + - CAST( ( - 87 ) + - 6 AS SIGNED ) THEN 30 * - 36 + + 1 END + + 48 WHEN 53 THEN NULL ELSE NULL END * + 63 WHEN + AVG ( - CAST( NULL AS SIGNED ) ) * + 68 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT + - CASE - MAX ( - - 83 ) WHEN - - 86 THEN + 29 * 40 + + 18 WHEN 48 / + 83 THEN + CASE + CAST ( + 5 AS REAL ) WHEN 4 / 13 THEN CASE 77 WHEN 75 * CASE - ( 81 ) WHEN 78 THEN ( - 94 ) * - CAST ( NULL AS INTEGER ) WHEN ( - 56 ) * - 20 THEN NULL ELSE NULL END + - CAST ( ( - 87 ) + - 6 AS INTEGER ) THEN 30 * - 36 + + 1 END + + 48 WHEN 53 THEN NULL ELSE NULL END * + 63 WHEN + AVG ( - CAST ( NULL AS INTEGER ) ) * + 68 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT ALL - NULLIF ( 59, + ( - CASE + COUNT( * ) WHEN + - COUNT( * ) THEN 46 * 2 WHEN COUNT( * ) THEN 97 - + 74 END ) + + 10 ) * - 28
----
1652

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL - NULLIF ( 59, + ( - CASE + COUNT ( * ) WHEN + - COUNT ( * ) THEN 46 * 2 WHEN COUNT ( * ) THEN 97 - + 74 END ) + + 10 ) * - 28
----
1652

onlyif mysql # aggregate syntax: 
query II rowsort label-6525
SELECT + 62 + 97, COUNT( * ) AS col1
----
159
1

skipif mysql # not compatible
query II rowsort label-6525
SELECT + 62 + 97, COUNT ( * ) AS col1
----
159
1

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

query I rowsort
SELECT ALL - 38 * ( + + ( 30 ) ) AS col0
----
-1140

query I rowsort
SELECT ALL 14 * - 89 AS col0
----
-1246

onlyif mysql # DIV for integer division: 
query II rowsort label-6529
SELECT + 25 DIV + 55 * 22 AS col0, - 76 col1
----
0
-76

skipif mysql # not compatible
query II rowsort label-6529
SELECT + 25 / + 55 * 22 AS col0, - 76 col1
----
0
-76

query I rowsort
SELECT + 37 * 80 AS col1
----
2960

query I rowsort
SELECT ALL 7 * + + 67 * ( - 79 ) AS col0
----
-37051

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ( + 69 ) * - 79 + + CASE - CASE + 46 WHEN + 45 THEN NULL ELSE - 19 END WHEN + COUNT( * ) * 8 + - 29 THEN + ( + 98 ) * + 45 + - 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6532
SELECT ( + 69 ) * - 79 + + CASE - CASE + 46 WHEN + 45 THEN NULL ELSE - 19 END WHEN + COUNT ( * ) * 8 + - 29 THEN + ( + 98 ) * + 45 + - 57 END
----
NULL

query I rowsort
SELECT - 78 - - 60 col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6534
SELECT - COALESCE ( + + 24, + 98 * 45 DIV 47 )
----
-24

skipif mysql # not compatible
query I rowsort label-6534
SELECT - COALESCE ( + + 24, + 98 * 45 / 47 )
----
-24

query I rowsort
SELECT ALL - 2 + - 24 AS col1
----
-26

query I rowsort
SELECT + 83 - + + 60 AS col0
----
23

query I rowsort
SELECT - 18 + - + 26
----
-44

query I rowsort
SELECT ALL + 12 * + 87
----
1044

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

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

query III rowsort
SELECT + 23 + - + 45 + - 4 AS col1, - 84 * + + 23 * + + 23 AS col0, 50 + 71 AS col0
----
-26
-44436
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6541
SELECT - 29 - + CAST( MAX( ALL 59 ) AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-6541
SELECT - 29 - + CAST ( MAX ( ALL 59 ) AS INTEGER )
----
-88

query I rowsort
SELECT DISTINCT COALESCE ( - 35, - 92 + + 49 ) AS col2
----
-35

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

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

query I rowsort
SELECT + 99 + + - 11 + 23 * - 0 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT - NULLIF ( - COUNT( * ), - + 1 ) * 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT - NULLIF ( - COUNT ( * ), - + 1 ) * 16 AS col1
----
NULL

query I rowsort
SELECT - 76 + + 79 AS col2
----
3

query II rowsort
SELECT 43, - 63 AS col0
----
43
-63

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

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

query II rowsort
SELECT DISTINCT + 73 AS col1, 39
----
73
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6550
SELECT ALL - 35 + - 19 * - 73 / - - CAST( NULL AS SIGNED ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL - 35 + - 19 * - 73 / - - CAST ( NULL AS INTEGER ) * 0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT DISTINCT + MIN( 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT + MIN ( 95 ) AS col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6553
SELECT + 95 DIV - 79 + + 71 DIV + SUM( - 75 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6553
SELECT + 95 / - 79 + + 71 / + SUM ( - 75 ) AS col0
----
-1

query II rowsort
SELECT 81 AS col0, 9 AS col1
----
81
9

query II rowsort
SELECT - 3 AS col1, ( + 24 )
----
-3
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT + 93 + - + 13 + + 22 * - + 51 * - 58 + + 16 + 29 * - + 98 + COUNT( * )
----
62331

skipif mysql # not compatible
query I rowsort label-6556
SELECT + 93 + - + 13 + + 22 * - + 51 * - 58 + + 16 + 29 * - + 98 + COUNT ( * )
----
62331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6557
SELECT + + 70, + CAST( - + 52 AS SIGNED ) + + - MAX( + 89 ) + 75 AS col2
----
70
-66

skipif mysql # not compatible
query II rowsort label-6557
SELECT + + 70, + CAST ( - + 52 AS INTEGER ) + + - MAX ( + 89 ) + 75 AS col2
----
70
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT + 89 * 65 + - - 92 + + 7 + + - 56 + + + 99 * - NULLIF ( + COUNT( * ), - 88 ) * 95 * - 95 AS col0
----
899303

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT + 89 * 65 + - - 92 + + 7 + + - 56 + + + 99 * - NULLIF ( + COUNT ( * ), - 88 ) * 95 * - 95 AS col0
----
899303

query II rowsort
SELECT - 54, 99 + 18 AS col0
----
-54
117

onlyif mysql # aggregate syntax: 
query II rowsort label-6560
SELECT ALL + COALESCE ( 80, COUNT( * ), - COUNT( * ) ) AS col1, 65 * + + 19 + - 68
----
80
1167

skipif mysql # not compatible
query II rowsort label-6560
SELECT ALL + COALESCE ( 80, COUNT ( * ), - COUNT ( * ) ) AS col1, 65 * + + 19 + - 68
----
80
1167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6561
SELECT 92 * - COUNT( * ) - + 33 - - 22 DIV - 78
----
-125

skipif mysql # not compatible
query I rowsort label-6561
SELECT 92 * - COUNT ( * ) - + 33 - - 22 / - 78
----
-125

query II rowsort
SELECT 80, + 36 col1
----
80
36

query II rowsort
SELECT + ( - 10 ) AS col0, 19 col0
----
-10
19

query I rowsort
SELECT - 13 * NULLIF ( - 9, + 47 + - 80 )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT COALESCE ( COUNT( - 1 ), - 43, + 92 * + - 57 * - - 52 - + + 41 - - + 21 * 20 * + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-6565
SELECT COALESCE ( COUNT ( - 1 ), - 43, + 92 * + - 57 * - - 52 - + + 41 - - + 21 * 20 * + 35 )
----
1

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

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

query I rowsort
SELECT CASE WHEN NOT NULL <= + 12 THEN NULL WHEN NULL IS NULL THEN 48 END AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL + 0 * + - 17 + + NULLIF ( + ( - + COUNT( * ) ), + + 35 * - 97 * - 37 + - 67 - + 33 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL + 0 * + - 17 + + NULLIF ( + ( - + COUNT ( * ) ), + + 35 * - 97 * - 37 + - 67 - + 33 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT CASE + 42 WHEN - + 32 THEN NULL ELSE - + 76 * - 1 * + - COALESCE ( + 38, + 31 * 33 + COUNT( * ) + + 18 ) + + 88 END
----
-2800

skipif mysql # not compatible
query I rowsort label-6569
SELECT CASE + 42 WHEN - + 32 THEN NULL ELSE - + 76 * - 1 * + - COALESCE ( + 38, + 31 * 33 + COUNT ( * ) + + 18 ) + + 88 END
----
-2800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6570
SELECT + 83 + - 23 + CAST( NULL AS SIGNED ) * + 98 * - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6570
SELECT + 83 + - 23 + CAST ( NULL AS INTEGER ) * + 98 * - 0 AS col0
----
NULL

query I rowsort
SELECT - 29 * + 69 - + 78
----
-2079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6572
SELECT + 59 + + ( + CAST( NULL AS SIGNED ) ) + + - 75 + - + 79 + + + COUNT( * ) + + 41 col2, - 44 AS col0
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-6572
SELECT + 59 + + ( + CAST ( NULL AS INTEGER ) ) + + - 75 + - + 79 + + + COUNT ( * ) + + 41 col2, - 44 AS col0
----
NULL
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT ALL + NULLIF ( - 72, 70 * - 22 * + + MAX( DISTINCT - 66 ) ) * - 6 * 74 + - 23 AS col0
----
31945

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL + NULLIF ( - 72, 70 * - 22 * + + MAX ( DISTINCT - 66 ) ) * - 6 * 74 + - 23 AS col0
----
31945

query II rowsort
SELECT DISTINCT + 50 * + 66 * + 0 + 22, + 53 * 95 AS col0
----
22
5035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6575
SELECT ALL - ( + AVG ( ALL - ( + + ( - CAST( NULL AS SIGNED ) ) ) ) ) * 7 + - CASE + AVG ( + + ( 30 ) ) WHEN + 75 * + 86 THEN + 19 + SUM( ( ( 29 ) ) + + 70 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL - ( + AVG ( ALL - ( + + ( - CAST ( NULL AS INTEGER ) ) ) ) ) * 7 + - CASE + AVG ( + + ( 30 ) ) WHEN + 75 * + 86 THEN + 19 + SUM ( ( ( 29 ) ) + + 70 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 88 * 77 AS col0
----
6776

query I rowsort
SELECT - ( - - 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT 60 + SUM( DISTINCT - - 3 ) * - - 45 + + 40 + - - 69
----
304

skipif mysql # not compatible
query I rowsort label-6578
SELECT 60 + SUM ( DISTINCT - - 3 ) * - - 45 + + 40 + - - 69
----
304

onlyif mysql # aggregate syntax: 
query II rowsort label-6579
SELECT DISTINCT + 91 - - COALESCE ( + 47, COUNT( * ) ) col1, - 5
----
138
-5

skipif mysql # not compatible
query II rowsort label-6579
SELECT DISTINCT + 91 - - COALESCE ( + 47, COUNT ( * ) ) col1, - 5
----
138
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6580
SELECT - COUNT( + 11 ) AS col0, NULLIF ( - - MIN( DISTINCT + + 57 ), + 48 * - - 4 * 9 + + COUNT( * ) )
----
-1
57

skipif mysql # not compatible
query II rowsort label-6580
SELECT - COUNT ( + 11 ) AS col0, NULLIF ( - - MIN ( DISTINCT + + 57 ), + 48 * - - 4 * 9 + + COUNT ( * ) )
----
-1
57

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

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

query I rowsort
SELECT + 72 * 64 + - 63
----
4545

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT MIN( + 11 ) * - 61
----
-671

skipif mysql # not compatible
query I rowsort label-6583
SELECT MIN ( + 11 ) * - 61
----
-671

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6584
SELECT 13 DIV - CAST( 67 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6584
SELECT 13 / - CAST ( 67 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT 62 * 49 * + SUM( 44 ) + 57 + + + 26 AS col1
----
133755

skipif mysql # not compatible
query I rowsort label-6585
SELECT 62 * 49 * + SUM ( 44 ) + 57 + + + 26 AS col1
----
133755

query I rowsort
SELECT + 44 * 60 * - 99 col2
----
-261360

onlyif mysql # DIV for integer division: 
query I rowsort label-6587
SELECT - 53 DIV - 2
----
26

skipif mysql # not compatible
query I rowsort label-6587
SELECT - 53 / - 2
----
26

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6589
SELECT - ( COUNT( * ) ) DIV 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6589
SELECT - ( COUNT ( * ) ) / 59 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT + 7 * - + COUNT( * ) * + 23 + + 60 + + ( + CASE + 68 WHEN + NULLIF ( - - 41, + COUNT( * ) * - 85 + 35 ) THEN + 63 WHEN + AVG ( + 60 ) + MAX( ALL 23 ) THEN 29 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6590
SELECT + 7 * - + COUNT ( * ) * + 23 + + 60 + + ( + CASE + 68 WHEN + NULLIF ( - - 41, + COUNT ( * ) * - 85 + 35 ) THEN + 63 WHEN + AVG ( + 60 ) + MAX ( ALL 23 ) THEN 29 END ) AS col0
----
NULL

query I rowsort
SELECT 25 * + + 91 col1
----
2275

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT ALL + MAX( ALL - - ( + + 66 ) ) + + MIN( + - 94 ) col2
----
-28

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL + MAX ( ALL - - ( + + 66 ) ) + + MIN ( + - 94 ) col2
----
-28

query II rowsort
SELECT + 55 AS col1, 27 + + 47 + + + ( - 40 )
----
55
34

query II rowsort
SELECT 9 + 72 * + - 78 AS col0, 86 * ( 64 )
----
-5607
5504

query I rowsort
SELECT ALL 54 * + 66 AS col0
----
3564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6596
SELECT 15 * + COUNT( * ) * + ( CAST( + - COALESCE ( 89, - - 93 * 8 + + 86 ) AS SIGNED ) ) * + - CASE 89 WHEN - MAX( - 60 ) / ( - 30 ) THEN NULL WHEN 90 THEN + NULLIF ( - COUNT( * ), + COUNT( * ) ) ELSE + 50 END * 99 + - 48 * ( 27 )
----
6606954

skipif mysql # not compatible
query I rowsort label-6596
SELECT 15 * + COUNT ( * ) * + ( CAST ( + - COALESCE ( 89, - - 93 * 8 + + 86 ) AS INTEGER ) ) * + - CASE 89 WHEN - MAX ( - 60 ) / ( - 30 ) THEN NULL WHEN 90 THEN + NULLIF ( - COUNT ( * ), + COUNT ( * ) ) ELSE + 50 END * 99 + - 48 * ( 27 )
----
6606954

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT ALL + 85 + 44 * - COUNT( * ) * 88 * + + 92 AS col0
----
-356139

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL + 85 + 44 * - COUNT ( * ) * 88 * + + 92 AS col0
----
-356139

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

skipif mysql # not compatible
query I rowsort label-6598
SELECT 99 * AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6599
SELECT 5 DIV 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6599
SELECT 5 / 79 AS col2
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL CAST ( NULL AS INTEGER ) - 95 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 5 * - 21 col1
----
-105

query I rowsort
SELECT 43 * - 82 col0
----
-3526

query I rowsort
SELECT ALL 40 * + - 44 AS col2
----
-1760

query I rowsort
SELECT DISTINCT 99 * - 27
----
-2673

query I rowsort
SELECT - 26 * - + 84
----
2184

query I rowsort
SELECT ALL 95 * - + 14 * - ( 96 )
----
127680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6608
SELECT 38 + + 71 * + COUNT( * ) * - COUNT( - + 82 ) DIV 88
----
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT - COUNT( * ) - 50 + + - 53 * + COUNT( * ) AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-6609
SELECT - COUNT ( * ) - 50 + + - 53 * + COUNT ( * ) AS col1
----
-104

query II rowsort
SELECT ALL + 71, + NULLIF ( - 29, + 36 ) + + 29 AS col2
----
71
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6611
SELECT + COUNT( * ) + MIN( DISTINCT 11 ) DIV - 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6611
SELECT + COUNT ( * ) + MIN ( DISTINCT 11 ) / - 34 AS col1
----
1

query I rowsort
SELECT ALL + 22 * + COALESCE ( - 52, + 7 ) col2
----
-1144

query II rowsort
SELECT DISTINCT 10, + 80 AS col0
----
10
80

query I rowsort
SELECT ALL + - 32 + - 8 AS col0
----
-40

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6616
SELECT ALL NULLIF ( + 92, - CAST( NULL AS SIGNED ) + + 1 + + - 22 / ( COUNT( * ) ) * MIN( DISTINCT - 10 ) - COUNT( * ) - - 30 * 59 * 64 ) * - SUM( + 98 * 2 )
----
-18032

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL NULLIF ( + 92, - CAST ( NULL AS INTEGER ) + + 1 + + - 22 / ( COUNT ( * ) ) * MIN ( DISTINCT - 10 ) - COUNT ( * ) - - 30 * 59 * 64 ) * - SUM ( + 98 * 2 )
----
-18032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT ALL + 97 * - - 10 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL + 97 * - - 10 + - + CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT COUNT( * ) + + + 8 * + 36 + COUNT( * ) * - + 45
----
244

skipif mysql # not compatible
query I rowsort label-6619
SELECT COUNT ( * ) + + + 8 * + 36 + COUNT ( * ) * - + 45
----
244

query II rowsort
SELECT ALL - 70 AS col1, 31 * - + 65
----
-70
-2015

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

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT - COUNT ( DISTINCT + 38 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6622
SELECT COUNT( * ) AS col0, + 60 + + 38 AS col0
----
1
98

skipif mysql # not compatible
query II rowsort label-6622
SELECT COUNT ( * ) AS col0, + 60 + + 38 AS col0
----
1
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6623
SELECT ALL + 80 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL + 80 / 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT 8 * + + MAX( - 96 )
----
-768

skipif mysql # not compatible
query I rowsort label-6624
SELECT 8 * + + MAX ( - 96 )
----
-768

query I rowsort
SELECT - 6 + 32 * 38 col0
----
1210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6626
SELECT DISTINCT - 8 - - ( - 77 ) + - CASE - 47 WHEN + - 33 * - - 94 THEN 4 * - 29 ELSE CAST( NULL AS SIGNED ) * - + ( + 92 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT - 8 - - ( - 77 ) + - CASE - 47 WHEN + - 33 * - - 94 THEN 4 * - 29 ELSE CAST ( NULL AS INTEGER ) * - + ( + 92 ) END
----
NULL

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

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

query I rowsort
SELECT - 53 * + - 89
----
4717

query I rowsort
SELECT DISTINCT - ( 36 ) - 99 * 39 AS col1
----
-3897

onlyif mysql # DIV for integer division: 
query II rowsort label-6630
SELECT - 95, 65 DIV + 21 AS col0
----
-95
3

skipif mysql # not compatible
query II rowsort label-6630
SELECT - 95, 65 / + 21 AS col0
----
-95
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6631
SELECT - CASE - - ( + 33 ) WHEN - 59 * + 90 + + - 94 THEN + 2 ELSE + 69 DIV + 93 END
----
0

skipif mysql # not compatible
query I rowsort label-6631
SELECT - CASE - - ( + 33 ) WHEN - 59 * + 90 + + - 94 THEN + 2 ELSE + 69 / + 93 END
----
0

query I rowsort
SELECT + + 76 + - 63 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6633
SELECT + 23 DIV SUM( ALL 67 ) * - - 37 + - 31 + - - 31 + - + SUM( DISTINCT 48 ) + + 55 + + + 24 * + + 97 * + CAST( - 69 AS SIGNED ) DIV ( + COUNT( * ) ) * 41
----
-6585905

skipif mysql # not compatible
query I rowsort label-6633
SELECT + 23 / SUM ( ALL 67 ) * - - 37 + - 31 + - - 31 + - + SUM ( DISTINCT 48 ) + + 55 + + + 24 * + + 97 * + CAST ( - 69 AS INTEGER ) / ( + COUNT ( * ) ) * 41
----
-6585905

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT - - COUNT( * ) * + 12 * + 91
----
1092

skipif mysql # not compatible
query I rowsort label-6634
SELECT - - COUNT ( * ) * + 12 * + 91
----
1092

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6636
SELECT + + 26 + 52 - + CASE 52 WHEN + 68 - - 78 THEN NULL WHEN + 99 / 39 - - COUNT( * ) THEN + CASE - SUM( 6 ) WHEN 99 + 45 THEN NULL WHEN + MAX( CAST( - 74 AS SIGNED ) ) THEN NULL ELSE 29 * CAST( NULL AS SIGNED ) END ELSE 34 END
----
44

skipif mysql # not compatible
query I rowsort label-6636
SELECT + + 26 + 52 - + CASE 52 WHEN + 68 - - 78 THEN NULL WHEN + 99 / 39 - - COUNT ( * ) THEN + CASE - SUM ( 6 ) WHEN 99 + 45 THEN NULL WHEN + MAX ( CAST ( - 74 AS INTEGER ) ) THEN NULL ELSE 29 * CAST ( NULL AS INTEGER ) END ELSE 34 END
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6637
SELECT DISTINCT - NULLIF ( - - COUNT( * ), + 75 * + 66 + 92 + 74 * + + 45 * - 56 * + - 94 + - 5 ) + - 50 + - 36 * + COALESCE ( + MAX( DISTINCT - 67 ), - 80 DIV CASE 31 WHEN + 25 THEN 65 * 6 END ) AS col2
----
2361

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), + 75 * + 66 + 92 + 74 * + + 45 * - 56 * + - 94 + - 5 ) + - 50 + - 36 * + COALESCE ( + MAX ( DISTINCT - 67 ), - 80 / CASE 31 WHEN + 25 THEN 65 * 6 END ) AS col2
----
2361

query I rowsort
SELECT - - 5 - - - 9 * NULLIF ( - 38, + 78 * - 51 * + + 82 + + - 91 + + 67 / + - 43 ) * COALESCE ( 39, 12 + 66 ) - 30 * - 93
----
16133

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6639
SELECT + + NULLIF ( + ( - + 24 ), - 34 ) DIV + 85 * - - 17 * - COUNT( * ), 3 col0
----
0
3

skipif mysql # not compatible
query II rowsort label-6639
SELECT + + NULLIF ( + ( - + 24 ), - 34 ) / + 85 * - - 17 * - COUNT ( * ), 3 col0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT + - 13 * + 6 + + 85 * - COUNT( * ) * + 47 + - 8 * - - 60
----
-4553

skipif mysql # not compatible
query I rowsort label-6640
SELECT + - 13 * + 6 + + 85 * - COUNT ( * ) * + 47 + - 8 * - - 60
----
-4553

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

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL COUNT ( * ) / + + 99 + COUNT ( * ) + + ( + 31 )
----
32

query I rowsort
SELECT + 15 - - 32 * 92 col1
----
2959

query I rowsort
SELECT - 11 * + 77 - ( 42 ) - 92 - 26 * + 9 * - 32 col1
----
6507

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT + 19 * - + 81 * CASE 71 WHEN + 83 + + MAX( DISTINCT - 53 ) THEN NULL ELSE + + 15 END
----
-23085

skipif mysql # not compatible
query I rowsort label-6644
SELECT + 19 * - + 81 * CASE 71 WHEN + 83 + + MAX ( DISTINCT - 53 ) THEN NULL ELSE + + 15 END
----
-23085

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL + 85 * - 3 * - COALESCE ( 6, + 25 * COUNT( * ) - - 57 - + 71 )
----
1530

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL + 85 * - 3 * - COALESCE ( 6, + 25 * COUNT ( * ) - - 57 - + 71 )
----
1530

query I rowsort
SELECT + 7 + + - 77
----
-70

query I rowsort
SELECT - 89 - - 37
----
-52

query II rowsort
SELECT ( - - 38 ), 12 AS col0
----
38
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT SUM( DISTINCT - 91 ) * 0 * MAX( - 63 ) + - - 71 - ( 75 ) + - 73 * + 90 + - 80 AS col2
----
-6654

skipif mysql # not compatible
query I rowsort label-6649
SELECT SUM ( DISTINCT - 91 ) * 0 * MAX ( - 63 ) + - - 71 - ( 75 ) + - 73 * + 90 + - 80 AS col2
----
-6654

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6650
SELECT NULLIF ( 91, - COALESCE ( + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ), + - 46, + 7 ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6650
SELECT NULLIF ( 91, - COALESCE ( + CAST ( CAST ( NULL AS REAL ) AS INTEGER ), + - 46, + 7 ) ) AS col2
----
91

query I rowsort
SELECT + 53 * - 44 AS col2
----
-2332

query I rowsort
SELECT ALL + COALESCE ( - 53, - + ( 54 ) * 93 ) AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6653
SELECT + CAST( + SUM( ALL + CAST( + 54 AS SIGNED ) ) AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-6653
SELECT + CAST ( + SUM ( ALL + CAST ( + 54 AS INTEGER ) ) AS INTEGER )
----
54

query I rowsort
SELECT DISTINCT ( 28 ) * + 41
----
1148

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT NULLIF ( + + COUNT( * ), CASE + 6 WHEN + 38 + + 69 THEN - 61 ELSE NULL END )
----
1

skipif mysql # not compatible
query I rowsort label-6655
SELECT NULLIF ( + + COUNT ( * ), CASE + 6 WHEN + 38 + + 69 THEN - 61 ELSE NULL END )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6656
SELECT ALL + CASE + 15 WHEN + CAST( + 88 AS SIGNED ) / - CASE + CAST( NULL AS SIGNED ) WHEN - - 28 THEN - - 17 * + - 9 END * - - 47 THEN + + SUM( ALL + ( - NULLIF ( 28, 47 * 55 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL + CASE + 15 WHEN + CAST ( + 88 AS INTEGER ) / - CASE + CAST ( NULL AS INTEGER ) WHEN - - 28 THEN - - 17 * + - 9 END * - - 47 THEN + + SUM ( ALL + ( - NULLIF ( 28, 47 * 55 ) ) ) END
----
NULL

query I rowsort
SELECT - 78 * - + 38 + 85 AS col2
----
3049

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT CASE + 25 WHEN ( - 15 ) * 55 / + 9 + - COUNT( * ) + + COUNT( * ) - + ( + NULLIF ( 47, - 36 ) ) / + 37 THEN - ( 47 ) WHEN COUNT( * ) THEN 86 + + 11 WHEN + 38 + COUNT( * ) * 0 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT CASE + 25 WHEN ( - 15 ) * 55 / + 9 + - COUNT ( * ) + + COUNT ( * ) - + ( + NULLIF ( 47, - 36 ) ) / + 37 THEN - ( 47 ) WHEN COUNT ( * ) THEN 86 + + 11 WHEN + 38 + COUNT ( * ) * 0 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT - 99 * + 2 / - - CASE + 35 WHEN + 85 THEN ( + - 37 ) WHEN COALESCE ( SUM( DISTINCT + 47 ), - - 24 ) * + COALESCE ( - MAX( - 73 ), - ( 32 ) * 88 ) + - 64 * + 23 THEN + COALESCE ( 9, COUNT( ALL - 12 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT - 99 * + 2 / - - CASE + 35 WHEN + 85 THEN ( + - 37 ) WHEN COALESCE ( SUM ( DISTINCT + 47 ), - - 24 ) * + COALESCE ( - MAX ( - 73 ), - ( 32 ) * 88 ) + - 64 * + 23 THEN + COALESCE ( 9, COUNT ( ALL - 12 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT + 11 + + 98 * - - 79 * + - 49 + + - COUNT( * )
----
-379348

skipif mysql # not compatible
query I rowsort label-6660
SELECT + 11 + + 98 * - - 79 * + - 49 + + - COUNT ( * )
----
-379348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6661
SELECT + CAST( - + 85 AS SIGNED ), 66 DIV - + COUNT( * ) + - - 24 AS col1
----
-85
-42

skipif mysql # not compatible
query II rowsort label-6661
SELECT + CAST ( - + 85 AS INTEGER ), 66 / - + COUNT ( * ) + - - 24 AS col1
----
-85
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT - - MIN( + 97 ) * 44
----
4268

skipif mysql # not compatible
query I rowsort label-6662
SELECT - - MIN ( + 97 ) * 44
----
4268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6663
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 37 + - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 37 + - + 30
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6664
SELECT ALL - 75 + - 73 AS col1, COALESCE ( - COUNT( * ), 2 DIV COALESCE ( - 91, + SUM( DISTINCT + 83 ), 77 * - + 23, - 54 + + 49 ) * - 6 ) * - 41
----
-148
41

skipif mysql # not compatible
query II rowsort label-6664
SELECT ALL - 75 + - 73 AS col1, COALESCE ( - COUNT ( * ), 2 / COALESCE ( - 91, + SUM ( DISTINCT + 83 ), 77 * - + 23, - 54 + + 49 ) * - 6 ) * - 41
----
-148
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6665
SELECT MAX( + - 42 ) * - + CAST( + - 29 AS SIGNED ) * 26 * - 23 + 96 + + 78 + + 73 AS col2
----
728611

skipif mysql # not compatible
query I rowsort label-6665
SELECT MAX ( + - 42 ) * - + CAST ( + - 29 AS INTEGER ) * 26 * - 23 + 96 + + 78 + + 73 AS col2
----
728611

query I rowsort
SELECT ALL + - 61 * + - 76 + + 64 - 59 - 85 AS col0
----
4556

query I rowsort
SELECT - ( 36 ) * + - 26 * 47 + + 61 AS col1
----
44053

query I rowsort
SELECT ALL - ( 64 ) + + 20 + + + 48 * - 3 * - 15 AS col1
----
2116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6669
SELECT - + 9 + COALESCE ( 2, MAX( ALL - 88 ) + 40 + + COUNT( * ) * 11 * 46 * + 33 DIV - 35 * - + CASE + 13 WHEN + 25 THEN 13 DIV - 75 END, - 38 * 30 )
----
-7

skipif mysql # not compatible
query I rowsort label-6669
SELECT - + 9 + COALESCE ( 2, MAX ( ALL - 88 ) + 40 + + COUNT ( * ) * 11 * 46 * + 33 / - 35 * - + CASE + 13 WHEN + 25 THEN 13 / - 75 END, - 38 * 30 )
----
-7

query I rowsort
SELECT - + 3 - 13
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6671
SELECT - - COALESCE ( + + 40, NULLIF ( + ( + COALESCE ( - + 47, 15 + - - 3 + + CASE 68 WHEN 33 + - CAST( NULL AS SIGNED ) THEN 78 + CASE 63 WHEN - 80 THEN NULL WHEN 27 * COUNT( * ) THEN + 13 DIV + ( - 97 ) WHEN ( - 87 ) + + COUNT( * ) THEN + COUNT( * ) END * - COALESCE ( - 3, 58 ) WHEN - COUNT( * ) - - 96 THEN NULL END + 68 ) ), COUNT( * ) ) + 27 ) + 94
----
134

skipif mysql # not compatible
query I rowsort label-6671
SELECT - - COALESCE ( + + 40, NULLIF ( + ( + COALESCE ( - + 47, 15 + - - 3 + + CASE 68 WHEN 33 + - CAST ( NULL AS INTEGER ) THEN 78 + CASE 63 WHEN - 80 THEN NULL WHEN 27 * COUNT ( * ) THEN + 13 / + ( - 97 ) WHEN ( - 87 ) + + COUNT ( * ) THEN + COUNT ( * ) END * - COALESCE ( - 3, 58 ) WHEN - COUNT ( * ) - - 96 THEN NULL END + 68 ) ), COUNT ( * ) ) + 27 ) + 94
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6672
SELECT ( - CAST( 23 AS SIGNED ) )
----
-23

skipif mysql # not compatible
query I rowsort label-6672
SELECT ( - CAST ( 23 AS INTEGER ) )
----
-23

query II rowsort
SELECT - + 59 + 93 AS col1, 82 AS col2
----
34
82

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

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

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

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

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

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

query I rowsort
SELECT + 37 * 66 AS col0
----
2442

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT + 72 * + COUNT( * ) * - - MAX( 50 ) * + 8 AS col1
----
28800

skipif mysql # not compatible
query I rowsort label-6678
SELECT + 72 * + COUNT ( * ) * - - MAX ( 50 ) * + 8 AS col1
----
28800

query I rowsort
SELECT ALL 95 * - + 69
----
-6555

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

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

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

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

query I rowsort
SELECT DISTINCT + 8 * + - 95
----
-760

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6683
SELECT ALL - 79, CAST( 51 AS SIGNED ) AS col2
----
-79
51

skipif mysql # not compatible
query II rowsort label-6683
SELECT ALL - 79, CAST ( 51 AS INTEGER ) AS col2
----
-79
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT + 75 * + 0 + + - COUNT( * ) + CASE + 33 WHEN 67 - - MIN( ALL ( + 25 ) ) THEN - + 20 * - MIN( 83 ) END * - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6684
SELECT + 75 * + 0 + + - COUNT ( * ) + CASE + 33 WHEN 67 - - MIN ( ALL ( + 25 ) ) THEN - + 20 * - MIN ( 83 ) END * - 24 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6685
SELECT CAST( + 7 AS SIGNED ) * + 55 * + COUNT( * )
----
385

skipif mysql # not compatible
query I rowsort label-6685
SELECT CAST ( + 7 AS INTEGER ) * + 55 * + COUNT ( * )
----
385

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6686
SELECT NULLIF ( - CASE - NULLIF ( - - COUNT( * ), - 30 ) WHEN - CAST( NULL AS DECIMAL ) * 69 * - 20 THEN - 15 * - 55 * - 44 / - 37 * - 55 - 41 * + 51 END, 20 * - 79 ) * ( - AVG ( DISTINCT + 47 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT NULLIF ( - CASE - NULLIF ( - - COUNT ( * ), - 30 ) WHEN - CAST ( NULL AS REAL ) * 69 * - 20 THEN - 15 * - 55 * - 44 / - 37 * - 55 - 41 * + 51 END, 20 * - 79 ) * ( - AVG ( DISTINCT + 47 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT 43 - - + COUNT( * ) * + 22 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6687
SELECT 43 - - + COUNT ( * ) * + 22 AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-6688
SELECT + 40, + COUNT( * ) * + 87 AS col1
----
40
87

skipif mysql # not compatible
query II rowsort label-6688
SELECT + 40, + COUNT ( * ) * + 87 AS col1
----
40
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6689
SELECT CAST( NULL AS SIGNED ) * - NULLIF ( + 81, - SUM( + + 48 ) ) + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT CAST ( NULL AS INTEGER ) * - NULLIF ( + 81, - SUM ( + + 48 ) ) + 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6690
SELECT ALL 84 + - 13 DIV - 52 + + ( - 89 ) * + 93 * COUNT( * )
----
-8193

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL 84 + - 13 / - 52 + + ( - 89 ) * + 93 * COUNT ( * )
----
-8193

query I rowsort
SELECT DISTINCT - 68 * - + 30
----
2040

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6692
SELECT 40 * ( CASE - + 81 WHEN + + 42 THEN - 4 / + + 40 + + ( ( - - SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) ) ) END ) - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT 40 * ( CASE - + 81 WHEN + + 42 THEN - 4 / + + 40 + + ( ( - - SUM ( DISTINCT - CAST ( NULL AS REAL ) ) ) ) END ) - 38
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL + COUNT ( * ) + + - 91 AS col0
----
-90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6696
SELECT - 47 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-6696
SELECT - 47 / - 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6697
SELECT DISTINCT - - CASE - 12 WHEN - 62 DIV + AVG ( + CAST( + + 94 AS SIGNED ) ) + - ( + 44 ) + - - COALESCE ( + COUNT( * ), COUNT( * ), + 87 ) THEN NULL ELSE ( 7 ) DIV - COUNT( * ) END + 63 * CAST( + 37 * + 96 AS SIGNED ) AS col2
----
223769

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT - - CASE - 12 WHEN - 62 / + AVG ( + CAST ( + + 94 AS INTEGER ) ) + - ( + 44 ) + - - COALESCE ( + COUNT ( * ), COUNT ( * ), + 87 ) THEN NULL ELSE ( 7 ) / - COUNT ( * ) END + 63 * CAST ( + 37 * + 96 AS INTEGER ) AS col2
----
223769

onlyif mysql # aggregate syntax: 
query II rowsort label-6698
SELECT ALL - 41 AS col0, + 79 * - CASE + 36 WHEN + ( + 37 ) + + COUNT( * ) + + 53 / - - CASE + COUNT( * ) WHEN + 45 THEN NULL WHEN - 67 + + - 67 / COUNT( * ) THEN NULL ELSE - COUNT( * ) * - 19 END * 64 THEN 16 END AS col0
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-6698
SELECT ALL - 41 AS col0, + 79 * - CASE + 36 WHEN + ( + 37 ) + + COUNT ( * ) + + 53 / - - CASE + COUNT ( * ) WHEN + 45 THEN NULL WHEN - 67 + + - 67 / COUNT ( * ) THEN NULL ELSE - COUNT ( * ) * - 19 END * 64 THEN 16 END AS col0
----
-41
NULL

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

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

query I rowsort
SELECT ALL - - 20 + + + 19
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT + 97 * + SUM( - 6 )
----
-582

skipif mysql # not compatible
query I rowsort label-6701
SELECT + 97 * + SUM ( - 6 )
----
-582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6702
SELECT ALL + + 8 * 2 - - + 74 * COALESCE ( - 75, - + 56 + CASE + 19 WHEN + - COUNT( * ) THEN + 62 * + COUNT( * ) + + - 13 * - 45 END * - CAST( 88 * - 90 + - 65 * 10 AS SIGNED ) ) DIV 37 AS col0
----
-134

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL + + 8 * 2 - - + 74 * COALESCE ( - 75, - + 56 + CASE + 19 WHEN + - COUNT ( * ) THEN + 62 * + COUNT ( * ) + + - 13 * - 45 END * - CAST ( 88 * - 90 + - 65 * 10 AS INTEGER ) ) / 37 AS col0
----
-134

query I rowsort
SELECT 99 - 89 + + 17 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT 24 * - - SUM( ALL + 39 ) AS col0
----
936

skipif mysql # not compatible
query I rowsort label-6704
SELECT 24 * - - SUM ( ALL + 39 ) AS col0
----
936

query I rowsort
SELECT ALL - ( - 50 ) col0
----
50

query I rowsort
SELECT 34 - - 60
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL - MIN( 96 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL - MIN ( 96 ) AS col1
----
-96

query I rowsort
SELECT 95 * + 45 - + COALESCE ( + - 42, 15, 73 ) AS col2
----
4317

onlyif mysql # DIV for integer division: 
query II rowsort label-6709
SELECT ALL 41 * 6 * + 93 * + - 29, 73 DIV + 65 col0
----
-663462
1

skipif mysql # not compatible
query II rowsort label-6709
SELECT ALL 41 * 6 * + 93 * + - 29, 73 / + 65 col0
----
-663462
1

query I rowsort
SELECT 50 * 62
----
3100

onlyif mysql # DIV for integer division: 
query I rowsort label-6711
SELECT DISTINCT - CASE - 39 WHEN - 9 + 75 - + 74 * - - 74 THEN 29 + 94 * - 17 * + + 15 ELSE - - 23 - - - 38 END DIV 21 + - 36
----
-36

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT - CASE - 39 WHEN - 9 + 75 - + 74 * - - 74 THEN 29 + 94 * - 17 * + + 15 ELSE - - 23 - - - 38 END / 21 + - 36
----
-36

query I rowsort
SELECT 63 * + 16 * 43
----
43344

onlyif mysql # DIV for integer division: 
query I rowsort label-6713
SELECT 33 + + 62 + 51 DIV + ( + 66 ) * 68
----
95

skipif mysql # not compatible
query I rowsort label-6713
SELECT 33 + + 62 + 51 / + ( + 66 ) * 68
----
95

query I rowsort
SELECT ALL 82 * - 61 * - 39 * - 64
----
-12484992

onlyif mysql # aggregate syntax: 
query II rowsort label-6715
SELECT COUNT( * ) * - + 53 AS col2, + 22
----
-53
22

skipif mysql # not compatible
query II rowsort label-6715
SELECT COUNT ( * ) * - + 53 AS col2, + 22
----
-53
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6716
SELECT 69 DIV + COUNT( * ) + - CAST( + 90 AS SIGNED ) + - - 60 * + COUNT( ALL + 42 ) + - COALESCE ( - - CASE - 83 WHEN - - 45 THEN NULL WHEN + 46 THEN - 93 * + 49 + + CASE WHEN COUNT( * ) NOT IN ( SUM( + 77 ) * COUNT( * ) ) THEN NULL WHEN NOT CAST( COUNT( * ) AS SIGNED ) * - 52 NOT IN ( SUM( DISTINCT 40 ) + + 25 * COUNT( * ) ) THEN + 57 + 21 * 86 ELSE 28 END - 30 * 82 END, + 60, 98 + 93 DIV - 69 )
----
-21

skipif mysql # not compatible
query I rowsort label-6716
SELECT 69 / + COUNT ( * ) + - CAST ( + 90 AS INTEGER ) + - - 60 * + COUNT ( ALL + 42 ) + - COALESCE ( - - CASE - 83 WHEN - - 45 THEN NULL WHEN + 46 THEN - 93 * + 49 + + CASE WHEN COUNT ( * ) NOT IN ( SUM ( + 77 ) * COUNT ( * ) ) THEN NULL WHEN NOT CAST ( COUNT ( * ) AS INTEGER ) * - 52 NOT IN ( SUM ( DISTINCT 40 ) + + 25 * COUNT ( * ) ) THEN + 57 + 21 * 86 ELSE 28 END - 30 * 82 END, + 60, 98 + 93 / - 69 )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6717
SELECT ALL 75 + - - 18 DIV MIN( - 20 ) + - - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL 75 + - - 18 / MIN ( - 20 ) + - - COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL COUNT( * ) + - + 46 + - 73
----
-118

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL COUNT ( * ) + - + 46 + - 73
----
-118

query I rowsort
SELECT ALL + 60 * - - 67
----
4020

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

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

query I rowsort
SELECT ALL 35 + + - 62
----
-27

query I rowsort
SELECT + 60 * 55 + + 76 AS col0
----
3376

query II rowsort
SELECT DISTINCT - COALESCE ( 42, 23 + - + 59 ) AS col0, 85 * - 55
----
-42
-4675

query I rowsort
SELECT 7 + - + 81
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT + COALESCE ( + + 36, NULLIF ( + - MIN( + 88 ), 13 ) * - 26 * 39 * - 43 - COUNT( * ) * + - NULLIF ( - - 49, + COUNT( * ) ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6725
SELECT + COALESCE ( + + 36, NULLIF ( + - MIN ( + 88 ), 13 ) * - 26 * 39 * - 43 - COUNT ( * ) * + - NULLIF ( - - 49, + COUNT ( * ) ) ) AS col1
----
36

query I rowsort
SELECT ALL 75 * + ( CASE 42 WHEN 60 THEN + - 93 END ) * + 45 + + 26 AS col1
----
NULL

query I rowsort
SELECT + 68 - 84
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6728
SELECT DISTINCT 60 * + 31 DIV - - COUNT( * ) + - 26 + + 14
----
1848

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT 60 * + 31 / - - COUNT ( * ) + - 26 + + 14
----
1848

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

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

query I rowsort
SELECT - ( - 72 ) * 55
----
3960

query I rowsort
SELECT 56 + 19 * - 63
----
-1141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6732
SELECT - COUNT( * ) - 6 DIV - 83 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6732
SELECT - COUNT ( * ) - 6 / - 83 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT + 61 + - - SUM( ALL + 75 ) + + 32 + + - 98 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6733
SELECT + 61 + - - SUM ( ALL + 75 ) + + 32 + + - 98 AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6734
SELECT + 60 + - + 71 * 41 + + - COUNT( * ) + - 13 AS col1, 99 * + 26 * - - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-2865
2574

skipif mysql # not compatible
query II rowsort label-6734
SELECT + 60 + - + 71 * 41 + + - COUNT ( * ) + - 13 AS col1, 99 * + 26 * - - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-2865
2574

query I rowsort
SELECT - 66 + 79 * + CASE + 66 WHEN + ( - - 38 ) * + 19 THEN NULL WHEN + 41 * + 33 * - 26 - - + 1 THEN + 96 ELSE NULL END + - - NULLIF ( - 51, - 11 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6736
SELECT + 78 DIV + + ( + 54 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6736
SELECT + 78 / + + ( + 54 ) AS col1
----
1

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

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

query I rowsort
SELECT - 30 + - 30 * + - ( + + 40 ) AS col2
----
1170

query I rowsort
SELECT ALL - 36 * + 91 AS col1
----
-3276

query I rowsort
SELECT - 6 + + 56
----
50

query I rowsort
SELECT ( ( - 42 ) )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6742
SELECT - 70 * 52 DIV + - 41
----
88

skipif mysql # not compatible
query I rowsort label-6742
SELECT - 70 * 52 / + - 41
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6743
SELECT NULLIF ( 64, 8 * CASE - COALESCE ( 96, + 57 + + 22 ) WHEN - 34 * - + NULLIF ( COUNT( * ), - - 3 ) + CAST( + - COALESCE ( - 59, 32 + + 16 ) AS SIGNED ) THEN 38 + COALESCE ( COUNT( + 47 ), - COUNT( * ) - 65 * + 56 ) WHEN + 3 THEN ( 35 ) ELSE - 91 END )
----
64

skipif mysql # not compatible
query I rowsort label-6743
SELECT NULLIF ( 64, 8 * CASE - COALESCE ( 96, + 57 + + 22 ) WHEN - 34 * - + NULLIF ( COUNT ( * ), - - 3 ) + CAST ( + - COALESCE ( - 59, 32 + + 16 ) AS INTEGER ) THEN 38 + COALESCE ( COUNT ( + 47 ), - COUNT ( * ) - 65 * + 56 ) WHEN + 3 THEN ( 35 ) ELSE - 91 END )
----
64

query II rowsort
SELECT COALESCE ( - 69, 77 ) AS col0, - 63 + + 57
----
-69
-6

query I rowsort
SELECT - ( + - 76 ) + - 57 AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6746
SELECT COALESCE ( - 52, + + MAX( 88 ) * - COUNT( * ) + - 89, SUM( DISTINCT - - 63 ) DIV ( + - COUNT( * ) ) DIV - 21 * - ( - - COUNT( * ) ) )
----
-52

skipif mysql # not compatible
query I rowsort label-6746
SELECT COALESCE ( - 52, + + MAX ( 88 ) * - COUNT ( * ) + - 89, SUM ( DISTINCT - - 63 ) / ( + - COUNT ( * ) ) / - 21 * - ( - - COUNT ( * ) ) )
----
-52

query I rowsort
SELECT DISTINCT 66 * + 62 * 16 + - + 51
----
65421

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT DISTINCT 35 * 33 + + 56 + - 91 DIV 87 * + 11 AS col0
----
1200

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT 35 * 33 + + 56 + - 91 / 87 * + 11 AS col0
----
1200

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT ALL - 85 * + COUNT( * ) + + COALESCE ( 87, - 81 * + - 70 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL - 85 * + COUNT ( * ) + + COALESCE ( 87, - 81 * + - 70 ) AS col2
----
2

query I rowsort
SELECT - - 96 + + - 52
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT 38 * - + COUNT( - + 45 ) - - 72
----
34

skipif mysql # not compatible
query I rowsort label-6752
SELECT 38 * - + COUNT ( - + 45 ) - - 72
----
34

query I rowsort
SELECT NULLIF ( ( - 71 ), 98 ) AS col2
----
-71

query I rowsort
SELECT + + 16 + + + 47 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT DISTINCT 64 * + COALESCE ( COUNT( * ), - ( 41 ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT 64 * + COALESCE ( COUNT ( * ), - ( 41 ) ) AS col2
----
64

query I rowsort
SELECT ALL + - 75 * 30 * - 41 + - COALESCE ( 28, - + 79 ) - + 23
----
92199

query I rowsort
SELECT DISTINCT + + 12 * - 39
----
-468

query I rowsort
SELECT ALL - - 49 * + - 36
----
-1764

query I rowsort
SELECT DISTINCT - 33 * - ( 93 ) * - + 9
----
-27621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6760
SELECT ALL + - COALESCE ( - 71, + COALESCE ( - 30, + 56 * + 28 + - + 74 ) + + + ( + ( CAST( + + 24 AS SIGNED ) ) ) * - 12, - + 97 )
----
71

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL + - COALESCE ( - 71, + COALESCE ( - 30, + 56 * + 28 + - + 74 ) + + + ( + ( CAST ( + + 24 AS INTEGER ) ) ) * - 12, - + 97 )
----
71

query I rowsort
SELECT + + 14 + + 40
----
54

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

skipif mysql # not compatible
query I rowsort label-6762
SELECT + 6 * + CAST ( CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT + - 39 + - 13 * - - 97 AS col2
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT SUM( + 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6764
SELECT SUM ( + 89 ) AS col2
----
89

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

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

query II rowsort
SELECT - ( - + 30 ), 37 AS col2
----
30
37

onlyif mysql # aggregate syntax: 
query II rowsort label-6767
SELECT ALL 0 AS col2, - 70 + + 38 * - COUNT( * ) * + NULLIF ( - + 90, - - 77 * 4 + - + 22 * - 62 * + 7 ) col1
----
0
3350

skipif mysql # not compatible
query II rowsort label-6767
SELECT ALL 0 AS col2, - 70 + + 38 * - COUNT ( * ) * + NULLIF ( - + 90, - - 77 * 4 + - + 22 * - 62 * + 7 ) col1
----
0
3350

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

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

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

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

query II rowsort
SELECT 94, 69 AS col0
----
94
69

query I rowsort
SELECT + 94 - + 13 AS col0
----
81

query I rowsort
SELECT ALL 65 + - 65 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT + SUM( DISTINCT 58 ) + + 28
----
86

skipif mysql # not compatible
query I rowsort label-6773
SELECT + SUM ( DISTINCT 58 ) + + 28
----
86

query I rowsort
SELECT DISTINCT 0 + 92 AS col2
----
92

query I rowsort
SELECT ALL - 32 + + 11 + 53 * + - 50
----
-2671

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6776
SELECT - CAST( NULL AS SIGNED ) AS col1, 51 col0
----
NULL
51

skipif mysql # not compatible
query II rowsort label-6776
SELECT - CAST ( NULL AS INTEGER ) AS col1, 51 col0
----
NULL
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6777
SELECT ALL 31 DIV + + 26 + + 63 col1
----
64

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL 31 / + + 26 + + 63 col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6778
SELECT + 24 DIV + 77 + + MIN( - 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6778
SELECT + 24 / + 77 + + MIN ( - 2 ) AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6779
SELECT ALL ( - 22 ) DIV + 23 + + - 80 + - - 58 - - 35 DIV + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL ( - 22 ) / + 23 + + - 80 + - - 58 - - 35 / + COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT - ( - 0 ) * - 43 + + COUNT( * ) - + - 64 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6780
SELECT - ( - 0 ) * - 43 + + COUNT ( * ) - + - 64 AS col0
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6781
SELECT ALL - 56 * - ( + 15 ) / + 27 - 98 / CAST( NULL AS DECIMAL ) * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL - 56 * - ( + 15 ) / + 27 - 98 / CAST ( NULL AS REAL ) * + 65
----
NULL

query I rowsort
SELECT + NULLIF ( - 65, - + 8 ) AS col0
----
-65

query I rowsort
SELECT COALESCE ( + 64, - - 5 ) AS col0
----
64

query I rowsort
SELECT - 35 * - + 99 - 41 AS col2
----
3424

onlyif mysql # DIV for integer division: 
query I rowsort label-6785
SELECT ALL - - 31 DIV 56 - ( 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL - - 31 / 56 - ( 63 )
----
-63

query I rowsort
SELECT - 27 * - 29 AS col1
----
783

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

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

skipif mysql # not compatible
query I rowsort label-6788
SELECT + SUM ( + 18 )
----
18

query II rowsort
SELECT + - 6 AS col2, 8 + - - 96 AS col1
----
-6
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6790
SELECT + COUNT( 14 ) DIV - + COALESCE ( CAST( NULL AS SIGNED ), + - 8 ) * + 50 DIV - COUNT( * ) + - 20 + - 45 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-6790
SELECT + COUNT ( 14 ) / - + COALESCE ( CAST ( NULL AS INTEGER ), + - 8 ) * + 50 / - COUNT ( * ) + - 20 + - 45 AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6791
SELECT ALL + + NULLIF ( - - NULLIF ( - ( - 16 ), - ( - 86 ) * - 55 - + CASE 30 WHEN + 30 * COALESCE ( + + 89, 96 * 58 + + - 28, 65 ) + + 46 THEN 72 + - MAX( 51 ) ELSE NULL END * + 65 ), - 91 * COALESCE ( ( 67 ), + 15 * COUNT( * ) ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL + + NULLIF ( - - NULLIF ( - ( - 16 ), - ( - 86 ) * - 55 - + CASE 30 WHEN + 30 * COALESCE ( + + 89, 96 * 58 + + - 28, 65 ) + + 46 THEN 72 + - MAX ( 51 ) ELSE NULL END * + 65 ), - 91 * COALESCE ( ( 67 ), + 15 * COUNT ( * ) ) ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - - 65, - 82 AS col0
----
65
-82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6793
SELECT ALL - + CAST( NULL AS SIGNED ) * - - 5, 37 DIV 15 + - 37 AS col2
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-6793
SELECT ALL - + CAST ( NULL AS INTEGER ) * - - 5, 37 / 15 + - 37 AS col2
----
NULL
-35

query I rowsort
SELECT DISTINCT - 61 + - - CASE ( + 56 ) WHEN - 56 THEN NULL WHEN 57 * 4 - - + 78 THEN + 2 * - 56 * - 66 END * + 88
----
NULL

query I rowsort
SELECT ALL 25 + + + 16
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT 53 + - 51 + + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6796
SELECT 53 + - 51 + + COUNT ( * ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT COUNT( DISTINCT - - 27 ) * + 49 + - 26 + - - 19 + + 71 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-6797
SELECT COUNT ( DISTINCT - - 27 ) * + 49 + - 26 + - - 19 + + 71 AS col1
----
113

query I rowsort
SELECT 34 + + - 14 + COALESCE ( 70, 59 ) * + 12 AS col1
----
860

onlyif mysql # DIV for integer division: 
query I rowsort label-6799
SELECT ALL 65 + - - 8 + - 63 + + 59 DIV - 76 + - + 75 * - 25 AS col2
----
1885

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL 65 + - - 8 + - 63 + + 59 / - 76 + - + 75 * - 25 AS col2
----
1885

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT 79 + COUNT( DISTINCT - 20 ) + + 80 * 55 AS col0
----
4480

skipif mysql # not compatible
query I rowsort label-6800
SELECT 79 + COUNT ( DISTINCT - 20 ) + + 80 * 55 AS col0
----
4480

query I rowsort
SELECT ALL 59 + 78
----
137

query I rowsort
SELECT DISTINCT + 19 + - 47 * + - 4
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6803
SELECT DISTINCT 64 + - CAST( - - 63 AS SIGNED ) * ( 81 )
----
-5039

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT 64 + - CAST ( - - 63 AS INTEGER ) * ( 81 )
----
-5039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6804
SELECT ALL 23 + - 51 + + - COUNT( * ) + CAST( NULL AS SIGNED ) + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL 23 + - 51 + + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - 76
----
NULL

query I rowsort
SELECT DISTINCT 58 * - 73 AS col2
----
-4234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT CASE - COUNT( * ) WHEN - 14 + + 60 + ( - 21 ) * 61 * CAST( NULL AS SIGNED ) THEN NULL WHEN 99 THEN + 70 / + 98 - + 67 / + 39 + + 37 - - COUNT( * ) + - 34 END / ( 34 ) * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT CASE - COUNT ( * ) WHEN - 14 + + 60 + ( - 21 ) * 61 * CAST ( NULL AS INTEGER ) THEN NULL WHEN 99 THEN + 70 / + 98 - + 67 / + 39 + + 37 - - COUNT ( * ) + - 34 END / ( 34 ) * - 98
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6807
SELECT CAST ( NULL AS INTEGER ) * + 61 * + 90
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6808
SELECT + COUNT( * ) DIV - COALESCE ( + 55, 51 ) + - 76 - 3 * - + 83 AS col0, + CAST( NULL AS SIGNED ) + - COALESCE ( + + 69, - - 28 )
----
173
NULL

skipif mysql # not compatible
query II rowsort label-6808
SELECT + COUNT ( * ) / - COALESCE ( + 55, 51 ) + - 76 - 3 * - + 83 AS col0, + CAST ( NULL AS INTEGER ) + - COALESCE ( + + 69, - - 28 )
----
173
NULL

query II rowsort
SELECT + ( + 14 ) AS col1, - 33 * - - 73 * 37 AS col2
----
14
-89133

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

skipif mysql # not compatible
query I rowsort label-6810
SELECT COUNT ( * ) / - COUNT ( * ) + - - 31 + - + 69
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6811
SELECT ALL NULLIF ( + NULLIF ( - 0, - 75 ), + 68 + - - 70 ) - MAX( - 9 ) + SUM( ALL 10 ) DIV + 67 - + 24, 72 + - 71 AS col0
----
-15
1

skipif mysql # not compatible
query II rowsort label-6811
SELECT ALL NULLIF ( + NULLIF ( - 0, - 75 ), + 68 + - - 70 ) - MAX ( - 9 ) + SUM ( ALL 10 ) / + 67 - + 24, 72 + - 71 AS col0
----
-15
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6812
SELECT 5 DIV + 88 AS col1, SUM( ALL 95 ) DIV ( - - 46 ) * MAX( + + 64 ) AS col1
----
0
128

skipif mysql # not compatible
query II rowsort label-6812
SELECT 5 / + 88 AS col1, SUM ( ALL 95 ) / ( - - 46 ) * MAX ( + + 64 ) AS col1
----
0
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6813
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - CAST( 19 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - CAST ( 19 AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT ALL - NULLIF ( - 98, + - COUNT( 47 ) + - ( SUM( ALL - 17 ) ) ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL - NULLIF ( - 98, + - COUNT ( 47 ) + - ( SUM ( ALL - 17 ) ) ) AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6816
SELECT 64 DIV - + 72 + + 21
----
21

skipif mysql # not compatible
query I rowsort label-6816
SELECT 64 / - + 72 + + 21
----
21

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

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

query I rowsort
SELECT ALL 31 * + ( - 53 ) col2
----
-1643

query I rowsort
SELECT 20 * + 51 - + + 5 * ( - 91 ) + + + 41
----
1516

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT DISTINCT + MAX( 84 ) + - - 97
----
181

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT + MAX ( 84 ) + - - 97
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT NULLIF ( - 81, + 72 + + COUNT( * ) ) - - - 99 * 33
----
-3348

skipif mysql # not compatible
query I rowsort label-6821
SELECT NULLIF ( - 81, + 72 + + COUNT ( * ) ) - - - 99 * 33
----
-3348

query I rowsort
SELECT 54 * 9
----
486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6823
SELECT + + 46 * + - 50 + - 70 * NULLIF ( - COUNT( * ), CASE + CAST( NULL AS SIGNED ) WHEN + + 26 * 57 + + 72 THEN NULL WHEN + MIN( ALL - + 95 ) + - 41 THEN + - 28 END ) AS col0
----
-2230

skipif mysql # not compatible
query I rowsort label-6823
SELECT + + 46 * + - 50 + - 70 * NULLIF ( - COUNT ( * ), CASE + CAST ( NULL AS INTEGER ) WHEN + + 26 * 57 + + 72 THEN NULL WHEN + MIN ( ALL - + 95 ) + - 41 THEN + - 28 END ) AS col0
----
-2230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6824
SELECT DISTINCT COUNT( * ) + + CASE - 82 WHEN + - 28 + - 9 THEN - + NULLIF ( + 26, 80 ) / - - 66 / - MAX( ALL - 81 ) END * COALESCE ( + CAST( + 57 AS SIGNED ), + 98 * 2 ) / + 90 + 63 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT COUNT ( * ) + + CASE - 82 WHEN + - 28 + - 9 THEN - + NULLIF ( + 26, 80 ) / - - 66 / - MAX ( ALL - 81 ) END * COALESCE ( + CAST ( + 57 AS INTEGER ), + 98 * 2 ) / + 90 + 63 col0
----
NULL

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

query I rowsort
SELECT + 64 * + 84 AS col1
----
5376

query I rowsort
SELECT ALL + 57 + + 52 * CASE - ( 3 ) WHEN + + ( 37 ) THEN NULL ELSE - 14 END * - + 76 AS col0
----
55385

query I rowsort
SELECT 34 * + 44 AS col0
----
1496

query I rowsort
SELECT 69 + - 68
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT ALL - NULLIF ( 76, + 8 / - 18 * 92 ) + + - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL - NULLIF ( 76, + 8 / - 18 * 92 ) + + - COUNT ( * )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6831
SELECT 59 * - 98 * + 20, + 4 * - 19 * COUNT( * ) + 77 + - 61 * + 38 + - COALESCE ( + 13, - CAST( NULL AS SIGNED ), - - 8, - 24 ) col0
----
-115640
-2330

skipif mysql # not compatible
query II rowsort label-6831
SELECT 59 * - 98 * + 20, + 4 * - 19 * COUNT ( * ) + 77 + - 61 * + 38 + - COALESCE ( + 13, - CAST ( NULL AS INTEGER ), - - 8, - 24 ) col0
----
-115640
-2330

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

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

query I rowsort
SELECT DISTINCT - 87 - - 88 AS col0
----
1

query I rowsort
SELECT ALL + 32 * - 14 AS col0
----
-448

onlyif mysql # DIV for integer division: 
query I rowsort label-6835
SELECT ALL 12 DIV - 11
----
-1

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL 12 / - 11
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6836
SELECT 78 DIV 79 * - 92 DIV + - 96
----
0

skipif mysql # not compatible
query I rowsort label-6836
SELECT 78 / 79 * - 92 / + - 96
----
0

query I rowsort
SELECT 59 - ( - 22 ) AS col1
----
81

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

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

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

skipif mysql # not compatible
query I rowsort label-6839
SELECT 68 + COALESCE ( + COUNT ( * ), + 23 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT MIN( + 94 ) + + 48
----
142

skipif mysql # not compatible
query I rowsort label-6840
SELECT MIN ( + 94 ) + + 48
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT SUM( - 81 ) * - 76 * - + 74
----
-455544

skipif mysql # not compatible
query I rowsort label-6841
SELECT SUM ( - 81 ) * - 76 * - + 74
----
-455544

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT 87 + - MIN( - 90 ) col0
----
177

skipif mysql # not compatible
query I rowsort label-6842
SELECT 87 + - MIN ( - 90 ) col0
----
177

onlyif mysql # aggregate syntax: 
query II rowsort label-6843
SELECT ALL 14 AS col1, + COUNT( * ) * - + 46
----
14
-46

skipif mysql # not compatible
query II rowsort label-6843
SELECT ALL 14 AS col1, + COUNT ( * ) * - + 46
----
14
-46

query II rowsort
SELECT DISTINCT 31 * 26 - + 56 AS col0, 17 AS col2
----
750
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ( - - ( + - COUNT( * ) ) ) - - 94 * - + 82 AS col0
----
-7709

skipif mysql # not compatible
query I rowsort label-6845
SELECT ( - - ( + - COUNT ( * ) ) ) - - 94 * - + 82 AS col0
----
-7709

query I rowsort
SELECT ALL - + ( - ( 60 ) ) * + 52 AS col2
----
3120

query I rowsort
SELECT DISTINCT + 46 * + + 65 AS col1
----
2990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6848
SELECT - 76 DIV + 35 + 85 + - MAX( - + 32 ) + - - 43 * - 57 * + 47
----
-115082

skipif mysql # not compatible
query I rowsort label-6848
SELECT - 76 / + 35 + 85 + - MAX ( - + 32 ) + - - 43 * - 57 * + 47
----
-115082

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT + 72 - + + NULLIF ( - 64, + 99 * + + ( - SUM( 81 ) ) + - 79 / + - 55 + - + COUNT( * ) ) * - 10 * - 99 col0
----
63432

skipif mysql # not compatible
query I rowsort label-6849
SELECT + 72 - + + NULLIF ( - 64, + 99 * + + ( - SUM ( 81 ) ) + - 79 / + - 55 + - + COUNT ( * ) ) * - 10 * - 99 col0
----
63432

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT + - 58 DIV - + 25 col2
----
2

skipif mysql # not compatible
query I rowsort label-6850
SELECT + - 58 / - + 25 col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6851
SELECT - + CASE - + COUNT( * ) WHEN + 52 - SUM( ALL 91 ) * + ( 69 ) / ( - 53 ) + + ( + COUNT( - CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN 44 - + + 36 THEN + - 19 END / 55 * - 52 * - 30 * - 31 + + ( - ( 46 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT - + CASE - + COUNT ( * ) WHEN + 52 - SUM ( ALL 91 ) * + ( 69 ) / ( - 53 ) + + ( + COUNT ( - CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN 44 - + + 36 THEN + - 19 END / 55 * - 52 * - 30 * - 31 + + ( - ( 46 ) ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT 60 / - ( - ( - - COUNT ( * ) ) )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6853
SELECT ALL + 2 DIV + - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL + 2 / + - 75 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6854
SELECT + COUNT( * ) DIV + - 82 + COUNT( * ) * + COUNT( * ) + 61 + - 28 + + 43 + + + 24 * - 75 * + + 79 + - - 94
----
-142029

skipif mysql # not compatible
query I rowsort label-6854
SELECT + COUNT ( * ) / + - 82 + COUNT ( * ) * + COUNT ( * ) + 61 + - 28 + + 43 + + + 24 * - 75 * + + 79 + - - 94
----
-142029

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT - + COUNT( * ) * + 84 - + 38 + - - 41 * - COUNT( * )
----
-163

skipif mysql # not compatible
query I rowsort label-6855
SELECT - + COUNT ( * ) * + 84 - + 38 + - - 41 * - COUNT ( * )
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT - 69 * SUM( ALL 81 ) AS col2
----
-5589

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT - 69 * SUM ( ALL 81 ) AS col2
----
-5589

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT MIN( 92 ) col0
----
92

skipif mysql # not compatible
query I rowsort label-6857
SELECT MIN ( 92 ) col0
----
92

query I rowsort
SELECT + 95 + 28
----
123

query I rowsort
SELECT ALL - 0 + + 35 * 72
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT + 48 + MAX( 90 )
----
138

skipif mysql # not compatible
query I rowsort label-6860
SELECT + 48 + MAX ( 90 )
----
138

query II rowsort
SELECT DISTINCT 12 - 24 AS col0, - 72 * + 98 AS col2
----
-12
-7056

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT - ( + + ( SUM( DISTINCT + 52 ) ) ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-6862
SELECT - ( + + ( SUM ( DISTINCT + 52 ) ) ) col1
----
-52

query II rowsort
SELECT ALL NULLIF ( + 58, + - 94 * - 71 * + 64 * - 66 + + - 30 - - ( - - 73 ) ), + 60 - 94 * 49 AS col2
----
58
-4546

query I rowsort
SELECT ALL 47 - - 81
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT ALL CASE 91 WHEN + COUNT( ALL - 89 ) THEN - 74 + + 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL CASE 91 WHEN + COUNT ( ALL - 89 ) THEN - 74 + + 56 END
----
NULL

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

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

query I rowsort
SELECT + 5 + 5 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6868
SELECT - 11 * COALESCE ( - MAX( ALL - CAST( NULL AS SIGNED ) ), 55, + + 31 DIV + CASE - MAX( - NULLIF ( - 66, - 13 ) ) WHEN + 17 THEN CAST( NULL AS SIGNED ) END ) AS col2
----
-605

skipif mysql # not compatible
query I rowsort label-6868
SELECT - 11 * COALESCE ( - MAX ( ALL - CAST ( NULL AS INTEGER ) ), 55, + + 31 / + CASE - MAX ( - NULLIF ( - 66, - 13 ) ) WHEN + 17 THEN CAST ( NULL AS INTEGER ) END ) AS col2
----
-605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6869
SELECT - CAST( - 66 AS SIGNED ) + - + 75 col2
----
-9

skipif mysql # not compatible
query I rowsort label-6869
SELECT - CAST ( - 66 AS INTEGER ) + - + 75 col2
----
-9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6871
SELECT + CASE 5 WHEN + - 67 THEN + 26 + 70 WHEN - SUM( DISTINCT 27 ) THEN 14 * + 85 - + MAX( + + ( + - 20 ) ) * - - 51 WHEN - - CAST( - - 80 AS SIGNED ) * - 27 THEN NULL ELSE NULL END + + - 39 AS col0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6871
SELECT + CASE 5 WHEN + - 67 THEN + 26 + 70 WHEN - SUM ( DISTINCT 27 ) THEN 14 * + 85 - + MAX ( + + ( + - 20 ) ) * - - 51 WHEN - - CAST ( - - 80 AS INTEGER ) * - 27 THEN NULL ELSE NULL END + + - 39 AS col0, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6872
SELECT - 88 + + 40 AS col1, 68 DIV 98 + + 13 AS col0
----
-48
13

skipif mysql # not compatible
query II rowsort label-6872
SELECT - 88 + + 40 AS col1, 68 / 98 + + 13 AS col0
----
-48
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6873
SELECT - 64 + - ( - 3 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6873
SELECT - 64 + - ( - 3 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ALL - COUNT( * ) - + - 44 + - COUNT( * ) + + 31 + - + 81 * - 19
----
1612

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL - COUNT ( * ) - + - 44 + - COUNT ( * ) + + 31 + - + 81 * - 19
----
1612

onlyif mysql # aggregate syntax: 
query II rowsort label-6875
SELECT ALL MAX( - 85 ) AS col0, 91 AS col2
----
-85
91

skipif mysql # not compatible
query II rowsort label-6875
SELECT ALL MAX ( - 85 ) AS col0, 91 AS col2
----
-85
91

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

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

query I rowsort
SELECT - + 39 + - - 92 AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT DISTINCT - 17 + 25 DIV + 63 * 22 + - - 80 col0
----
63

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT - 17 + 25 / + 63 * 22 + - - 80 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT - NULLIF ( + 92, + ( 58 ) + 36 / - - NULLIF ( - COALESCE ( ( + 84 ), - AVG ( + 3 ) * + 20 + - SUM( - 60 ) - + - 24 ), - - 99 ) ) / + CASE - 8 WHEN ( 51 ) THEN NULL WHEN - ( 0 ) THEN + 93 + - 32 ELSE NULL END + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6879
SELECT - NULLIF ( + 92, + ( 58 ) + 36 / - - NULLIF ( - COALESCE ( ( + 84 ), - AVG ( + 3 ) * + 20 + - SUM ( - 60 ) - + - 24 ), - - 99 ) ) / + CASE - 8 WHEN ( 51 ) THEN NULL WHEN - ( 0 ) THEN + 93 + - 32 ELSE NULL END + + 73
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6880
SELECT DISTINCT - 16 DIV + 25 + + + 56 + - + 26 * ( 73 ) - 23 * - 30 * - - 23
----
14028

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT - 16 / + 25 + + + 56 + - + 26 * ( 73 ) - 23 * - 30 * - - 23
----
14028

onlyif mysql # DIV for integer division: 
query I rowsort label-6881
SELECT ALL - - 62 DIV - 84 + + + 53 + - 72
----
-19

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL - - 62 / - 84 + + + 53 + - 72
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6882
SELECT ALL + 73 DIV 13 + + 34 * + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL + 73 / 13 + + 34 * + COUNT ( * ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6883
SELECT DISTINCT - SUM( DISTINCT ( + + 75 ) ) * 66 AS col2, 76
----
-4950
76

skipif mysql # not compatible
query II rowsort label-6883
SELECT DISTINCT - SUM ( DISTINCT ( + + 75 ) ) * 66 AS col2, 76
----
-4950
76

query I rowsort
SELECT + + 62 * + - 55 + 31 AS col2
----
-3379

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6885
SELECT + NULLIF ( - CAST( - + 12 AS SIGNED ), - 56 ) + + 5
----
17

skipif mysql # not compatible
query I rowsort label-6885
SELECT + NULLIF ( - CAST ( - + 12 AS INTEGER ), - 56 ) + + 5
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT ALL - 44 * - COUNT( DISTINCT - 39 ) + + COALESCE ( - + 19, - 23, COUNT( * ), 21 + + COALESCE ( - COUNT( * ), - + 16, - 94, + 24 + + + 43 ) * + 10 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL - 44 * - COUNT ( DISTINCT - 39 ) + + COALESCE ( - + 19, - 23, COUNT ( * ), 21 + + COALESCE ( - COUNT ( * ), - + 16, - 94, + 24 + + + 43 ) * + 10 ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT ALL + NULLIF ( + + 81, + 81 ) * 67 * - ( - CAST( + - ( - 75 ) AS SIGNED ) ) + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL + NULLIF ( + + 81, + 81 ) * 67 * - ( - CAST ( + - ( - 75 ) AS INTEGER ) ) + + 55
----
NULL

query I rowsort
SELECT DISTINCT - 1 * 37 + - - 13 + + NULLIF ( + 8, - 45 ) - COALESCE ( 53, + 0 ) * - 2
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6889
SELECT + NULLIF ( 14, + + 10 * NULLIF ( + 62, + 55 + - 18 * - 57 - CASE 20 WHEN - - ( + + 12 ) THEN + 77 WHEN NULLIF ( + 17, CAST( NULL AS DECIMAL ) ) + 43 * - + 18 THEN NULL END ) * 99 / + 95 * COUNT( * ) + - 99 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-6889
SELECT + NULLIF ( 14, + + 10 * NULLIF ( + 62, + 55 + - 18 * - 57 - CASE 20 WHEN - - ( + + 12 ) THEN + 77 WHEN NULLIF ( + 17, CAST ( NULL AS REAL ) ) + 43 * - + 18 THEN NULL END ) * 99 / + 95 * COUNT ( * ) + - 99 ) AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6890
SELECT ( - + COUNT( 99 ) ) * - + 15 + - 1 - COUNT( * ) DIV 47
----
14

skipif mysql # not compatible
query I rowsort label-6890
SELECT ( - + COUNT ( 99 ) ) * - + 15 + - 1 - COUNT ( * ) / 47
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6891
SELECT ALL 36 DIV 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL 36 / 71 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT DISTINCT 65 DIV + 2 col1
----
32

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT 65 / + 2 col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT DISTINCT 52 * - 37 - - COUNT( * ) + CAST( NULL AS SIGNED ) - AVG ( ALL - 86 ) * - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT 52 * - 37 - - COUNT ( * ) + CAST ( NULL AS INTEGER ) - AVG ( ALL - 86 ) * - - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ALL + NULLIF ( COUNT( * ), + - 85 ) * + + 37
----
37

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL + NULLIF ( COUNT ( * ), + - 85 ) * + + 37
----
37

query I rowsort
SELECT ALL 0 * 65 * + 31 * - 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT + 65 * - - CASE 56 WHEN - COUNT( * ) * + 73 * + - 22 - CASE - NULLIF ( - 79, - 62 / + 32 + - AVG ( DISTINCT + - 43 ) ) WHEN - - ( - - 59 ) * + 68 * + ( SUM( ALL + + 1 ) ) THEN NULL ELSE 57 END / + COUNT( * ) THEN 86 / + 77 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT + 65 * - - CASE 56 WHEN - COUNT ( * ) * + 73 * + - 22 - CASE - NULLIF ( - 79, - 62 / + 32 + - AVG ( DISTINCT + - 43 ) ) WHEN - - ( - - 59 ) * + 68 * + ( SUM ( ALL + + 1 ) ) THEN NULL ELSE 57 END / + COUNT ( * ) THEN 86 / + 77 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6897
SELECT ALL 94 * + 43 * + CASE 21 WHEN - + 55 * 91 + + 29 * + 32 THEN NULL WHEN 65 * + + 69 THEN 44 + - - CAST( + - 19 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL 94 * + 43 * + CASE 21 WHEN - + 55 * 91 + + 29 * + 32 THEN NULL WHEN 65 * + + 69 THEN 44 + - - CAST ( + - 19 AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6898
SELECT - CAST( + + COALESCE ( 30, 50 ) AS SIGNED ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-6898
SELECT - CAST ( + + COALESCE ( 30, 50 ) AS INTEGER ) AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6899
SELECT + 34 * MIN( + CAST( NULL AS SIGNED ) ) * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6899
SELECT + 34 * MIN ( + CAST ( NULL AS INTEGER ) ) * - 13
----
NULL

query I rowsort
SELECT ALL 40 * + + 81
----
3240

query I rowsort
SELECT ALL 58 * - - 71 col2
----
4118

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT ALL 74 + - 14 DIV + - 23 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL 74 + - 14 / + - 23 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT 37 + - MAX( DISTINCT - 41 ) * 54 AS col0
----
2251

skipif mysql # not compatible
query I rowsort label-6905
SELECT 37 + - MAX ( DISTINCT - 41 ) * 54 AS col0
----
2251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6906
SELECT - NULLIF ( - + 98, - 57 * + - 71 ) DIV 32 * - MIN( ALL - 24 )
----
72

skipif mysql # not compatible
query I rowsort label-6906
SELECT - NULLIF ( - + 98, - 57 * + - 71 ) / 32 * - MIN ( ALL - 24 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6907
SELECT + ( 90 ) + - ( - CAST( NULL AS SIGNED ) ) + 54, 91 * + + 19 + - 76 - 39 - 20 * + + 1 AS col0
----
NULL
1594

skipif mysql # not compatible
query II rowsort label-6907
SELECT + ( 90 ) + - ( - CAST ( NULL AS INTEGER ) ) + 54, 91 * + + 19 + - 76 - 39 - 20 * + + 1 AS col0
----
NULL
1594

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

skipif mysql # not compatible
query I rowsort label-6908
SELECT MAX ( ALL - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT + CASE + + 31 WHEN COUNT( * ) - + 83 * + ( - + 50 ) THEN - 51 WHEN COUNT( * ) THEN + 28 ELSE NULL END + - ( + + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT + CASE + + 31 WHEN COUNT ( * ) - + 83 * + ( - + 50 ) THEN - 51 WHEN COUNT ( * ) THEN + 28 ELSE NULL END + - ( + + 21 )
----
NULL

query I rowsort
SELECT ALL + 52 + - 60 AS col0
----
-8

query I rowsort
SELECT DISTINCT - 94 + - 95 AS col0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL 63 * COUNT( * ) + + 83
----
146

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL 63 * COUNT ( * ) + + 83
----
146

query I rowsort
SELECT ALL - 72 + + 23 AS col1
----
-49

query I rowsort
SELECT DISTINCT + - 33 * 76 AS col2
----
-2508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6915
SELECT - 29 DIV - 68 + + 30 + NULLIF ( - SUM( DISTINCT 38 ), COUNT( * ) ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-6915
SELECT - 29 / - 68 + + 30 + NULLIF ( - SUM ( DISTINCT 38 ), COUNT ( * ) ) col0
----
-8

query I rowsort
SELECT ALL - + 21 + 50 AS col2
----
29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT ( - MIN( ALL - 95 ) ) col0
----
95

skipif mysql # not compatible
query I rowsort label-6918
SELECT ( - MIN ( ALL - 95 ) ) col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6919
SELECT - + 90 * + 67 / - 79 + 34 * + 57 + CAST( NULL AS SIGNED ) + - - ( + 88 ) / - 40 + - - 73 + - - 55 * ( - + 41 ) AS col0, - 48 AS col1
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-6919
SELECT - + 90 * + 67 / - 79 + 34 * + 57 + CAST ( NULL AS INTEGER ) + - - ( + 88 ) / - 40 + - - 73 + - - 55 * ( - + 41 ) AS col0, - 48 AS col1
----
NULL
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6920
SELECT DISTINCT - + COALESCE ( + 90, 61 DIV + COUNT( * ) + - 42 )
----
-90

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT - + COALESCE ( + 90, 61 / + COUNT ( * ) + - 42 )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6921
SELECT - 37 DIV - + 20 + 46
----
47

skipif mysql # not compatible
query I rowsort label-6921
SELECT - 37 / - + 20 + 46
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT + COUNT( * ) * 63 - 61 * 60 + + 94
----
-3503

skipif mysql # not compatible
query I rowsort label-6922
SELECT + COUNT ( * ) * 63 - 61 * 60 + + 94
----
-3503

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

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

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

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

query II rowsort
SELECT + 98 AS col1, + 80 AS col2
----
98
80

query I rowsort
SELECT 72 + 12 AS col2
----
84

query I rowsort
SELECT ALL + 82 * 79 AS col0
----
6478

query II rowsort
SELECT 49 AS col0, 84 AS col1
----
49
84

query I rowsort
SELECT ALL + 73 * + + ( 71 ) AS col2
----
5183

onlyif mysql # aggregate syntax: 
query II rowsort label-6930
SELECT + 6 col1, + 34 * COALESCE ( COUNT( * ), + + 97 * - 69 * + - 6 ) AS col0
----
6
34

skipif mysql # not compatible
query II rowsort label-6930
SELECT + 6 col1, + 34 * COALESCE ( COUNT ( * ), + + 97 * - 69 * + - 6 ) AS col0
----
6
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6931
SELECT 62 DIV - MIN( ALL 14 )
----
-4

skipif mysql # not compatible
query I rowsort label-6931
SELECT 62 / - MIN ( ALL 14 )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6932
SELECT SUM( DISTINCT 30 ) * - 92 + - NULLIF ( 79, - 73 ) AS col0, - MAX( + 26 )
----
-2839
-26

skipif mysql # not compatible
query II rowsort label-6932
SELECT SUM ( DISTINCT 30 ) * - 92 + - NULLIF ( 79, - 73 ) AS col0, - MAX ( + 26 )
----
-2839
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT 68 + + + COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6933
SELECT 68 + + + COUNT ( * ) AS col2
----
69

query I rowsort
SELECT - ( 82 ) * - 20 + - 18 - 47 col0
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT + COUNT( * ) * - 46 * 78 + - 78 * 2
----
-3744

skipif mysql # not compatible
query I rowsort label-6935
SELECT + COUNT ( * ) * - 46 * 78 + - 78 * 2
----
-3744

onlyif mysql # DIV for integer division: 
query I rowsort label-6936
SELECT ALL NULLIF ( - ( - 47 ), 98 ) DIV + - 38 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL NULLIF ( - ( - 47 ), 98 ) / + - 38 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT 97 * + SUM( 52 )
----
5044

skipif mysql # not compatible
query I rowsort label-6937
SELECT 97 * + SUM ( 52 )
----
5044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6938
SELECT DISTINCT 52 + 40 + COUNT( * ) + + 96 * CAST( COUNT( * ) AS SIGNED ) AS col1
----
189

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT 52 + 40 + COUNT ( * ) + + 96 * CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ALL COUNT( * ) + 32 col2
----
33

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL COUNT ( * ) + 32 col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6940
SELECT COUNT( * ) + ( MIN( DISTINCT - 46 ) ) DIV - - 1
----
-45

skipif mysql # not compatible
query I rowsort label-6940
SELECT COUNT ( * ) + ( MIN ( DISTINCT - 46 ) ) / - - 1
----
-45

query I rowsort
SELECT ALL 87 + - 23 * ( + + 4 )
----
-5

query I rowsort
SELECT DISTINCT ( - COALESCE ( - NULLIF ( - 69, + 12 ), - - 2 + 65, + ( + 18 ) * - - 45 ) ) + - - 37
----
-32

query II rowsort
SELECT DISTINCT 0 AS col0, + 82 AS col0
----
0
82

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

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

query I rowsort
SELECT 95 + + 45 AS col1
----
140

query II rowsort
SELECT ALL + 39 AS col1, - 77 * - ( - 92 ) AS col0
----
39
-7084

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT ALL + CASE 48 WHEN + 80 - - COUNT( * ) * - - 46 THEN + - 51 / - 34 * + 76 END * - 67 / + 60 * + + 89 * + - 98 / + ( 44 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL + CASE 48 WHEN + 80 - - COUNT ( * ) * - - 46 THEN + - 51 / - 34 * + 76 END * - 67 / + 60 * + + 89 * + - 98 / + ( 44 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT 41 + - COALESCE ( + + SUM( ALL + + ( CASE + + NULLIF ( + 41, - 73 ) WHEN + 14 * - - 64 - + CASE WHEN 32 IS NULL THEN - 90 WHEN NOT NULL = NULL THEN NULL ELSE NULL END / 69 THEN - 6 - + - COALESCE ( - CASE + + 7 WHEN + NULLIF ( 80, 22 + 26 ) THEN 15 WHEN 36 THEN NULL END, 57 ) + + 18 END ) ), 29 + + 32 )
----
-20

skipif mysql # not compatible
query I rowsort label-6948
SELECT 41 + - COALESCE ( + + SUM ( ALL + + ( CASE + + NULLIF ( + 41, - 73 ) WHEN + 14 * - - 64 - + CASE WHEN 32 IS NULL THEN - 90 WHEN NOT NULL = NULL THEN NULL ELSE NULL END / 69 THEN - 6 - + - COALESCE ( - CASE + + 7 WHEN + NULLIF ( 80, 22 + 26 ) THEN 15 WHEN 36 THEN NULL END, 57 ) + + 18 END ) ), 29 + + 32 )
----
-20

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

skipif mysql # not compatible
query I rowsort label-6949
SELECT NULLIF ( - + 47, + COUNT ( * ) ) col0
----
-47

query II rowsort
SELECT DISTINCT - 34 + + 16 AS col1, - ( + 9 ) - - + 6 AS col0
----
-18
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ALL 8 + + - CASE + 2 WHEN - 81 + + 75 THEN CASE + MIN( - 11 ) WHEN 69 * 17 - COUNT( * ) THEN - 90 * - 84 END END + 65 * + - 26 * + 5 * 38 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL 8 + + - CASE + 2 WHEN - 81 + + 75 THEN CASE + MIN ( - 11 ) WHEN 69 * 17 - COUNT ( * ) THEN - 90 * - 84 END END + 65 * + - 26 * + 5 * 38 col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6952
SELECT - 62 col1, - 65 AS col0, - + ( 20 ) + ( + 22 ) - - 48 - + + COUNT( * ) + - 95 * + - 83 * 12 * - + MAX( DISTINCT ( + ( 88 ) ) ) * + 82 + + 70 + + + 35 * + 44 AS col0
----
-62
-65
-682776261

skipif mysql # not compatible
query III rowsort label-6952
SELECT - 62 col1, - 65 AS col0, - + ( 20 ) + ( + 22 ) - - 48 - + + COUNT ( * ) + - 95 * + - 83 * 12 * - + MAX ( DISTINCT ( + ( 88 ) ) ) * + 82 + + 70 + + + 35 * + 44 AS col0
----
-62
-65
-682776261

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT 20 * + COUNT( * ) + + 28
----
48

skipif mysql # not compatible
query I rowsort label-6953
SELECT 20 * + COUNT ( * ) + + 28
----
48

query I rowsort
SELECT ALL NULLIF ( - 37, - - 77 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT DISTINCT + ( - 96 ) + + 35 * + - 57 + + 86 + COUNT( * ) * - COUNT( * ) * MIN( ALL ( 57 ) )
----
-2062

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT + ( - 96 ) + + 35 * + - 57 + + 86 + COUNT ( * ) * - COUNT ( * ) * MIN ( ALL ( 57 ) )
----
-2062

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT ALL + 15 + - + 6 - - MIN( ALL 74 ) * - 1
----
-65

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL + 15 + - + 6 - - MIN ( ALL 74 ) * - 1
----
-65

query II rowsort
SELECT 77 AS col0, + 24 AS col1
----
77
24

query II rowsort
SELECT - - 13, - 27 AS col2
----
13
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT ALL - COALESCE ( - SUM( + 91 ), + + 83, + + 46 ) - 50
----
41

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL - COALESCE ( - SUM ( + 91 ), + + 83, + + 46 ) - 50
----
41

query I rowsort
SELECT NULLIF ( - 32, - + 71 ) * + 72 + - 2 AS col0
----
-2306

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6961
SELECT CASE + 98 WHEN + - 45 * 92 + CAST( NULL AS SIGNED ) THEN NULL WHEN 84 THEN - - 36 * 58 WHEN + 61 + 34 * + 11 THEN NULL ELSE NULL END, ( - 26 ) AS col0
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-6961
SELECT CASE + 98 WHEN + - 45 * 92 + CAST ( NULL AS INTEGER ) THEN NULL WHEN 84 THEN - - 36 * 58 WHEN + 61 + 34 * + 11 THEN NULL ELSE NULL END, ( - 26 ) AS col0
----
NULL
-26

query II rowsort
SELECT + + 77 AS col1, - 69 col2
----
77
-69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6963
SELECT - 55 + COALESCE ( - 77, + CAST( + - 99 AS SIGNED ) + - 41 ) DIV + + 75 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-6963
SELECT - 55 + COALESCE ( - 77, + CAST ( + - 99 AS INTEGER ) + - 41 ) / + + 75 AS col0
----
-56

query I rowsort
SELECT ALL + - 55 * 70
----
-3850

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT DISTINCT 89 * - COUNT( 37 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT 89 * - COUNT ( 37 ) AS col2
----
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-6966
SELECT 72 DIV 42, ( 93 ) AS col1
----
1
93

skipif mysql # not compatible
query II rowsort label-6966
SELECT 72 / 42, ( 93 ) AS col1
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT DISTINCT - 96 * + ( 2 ) * - 43 + - 26 - COUNT( * )
----
8229

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT - 96 * + ( 2 ) * - 43 + - 26 - COUNT ( * )
----
8229

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT ALL + 42 * - + 40 * MIN( DISTINCT - 2 )
----
3360

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL + 42 * - + 40 * MIN ( DISTINCT - 2 )
----
3360

onlyif mysql # aggregate syntax: 
query II rowsort label-6969
SELECT MIN( ALL + 12 ) AS col0, + 63
----
12
63

skipif mysql # not compatible
query II rowsort label-6969
SELECT MIN ( ALL + 12 ) AS col0, + 63
----
12
63

query I rowsort
SELECT + COALESCE ( + - 40, + 8 + 74 )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6971
SELECT 4 + + CASE - 36 WHEN + 18 + - - COUNT( * ) * ( - ( + 76 ) ) THEN + 49 WHEN CAST( + 37 AS SIGNED ) * - 28 - - - 40 + + - 40 + MAX( DISTINCT + + 69 ) + + - ( - + COALESCE ( + COUNT( 4 ), - 12 / + - 40, ( 49 ) * - CASE + 41 WHEN 41 * + MIN( ALL 62 ) THEN 76 ELSE NULL END + + 3 ) ) THEN 63 - 47 * MIN( ALL + 41 + + 60 ) ELSE NULL END * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT 4 + + CASE - 36 WHEN + 18 + - - COUNT ( * ) * ( - ( + 76 ) ) THEN + 49 WHEN CAST ( + 37 AS INTEGER ) * - 28 - - - 40 + + - 40 + MAX ( DISTINCT + + 69 ) + + - ( - + COALESCE ( + COUNT ( 4 ), - 12 / + - 40, ( 49 ) * - CASE + 41 WHEN 41 * + MIN ( ALL 62 ) THEN 76 ELSE NULL END + + 3 ) ) THEN 63 - 47 * MIN ( ALL + 41 + + 60 ) ELSE NULL END * - 35
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 59, - 3 * + 82, + 69 * - + ( + 51 ) + + 61 + + 52 * - 31 * 52 ) AS col2
----
59

query I rowsort
SELECT ALL - COALESCE ( + 14, 97 )
----
-14

query I rowsort
SELECT ALL + 24 * 79 AS col1
----
1896

query I rowsort
SELECT ALL - NULLIF ( 88, + 73 )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-6976
SELECT DISTINCT - 97 + 57 col1, - COUNT( * ) AS col0
----
-40
-1

skipif mysql # not compatible
query II rowsort label-6976
SELECT DISTINCT - 97 + 57 col1, - COUNT ( * ) AS col0
----
-40
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT DISTINCT NULLIF ( - COUNT( 78 ), - + 9 ) * - 19
----
19

skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT NULLIF ( - COUNT ( 78 ), - + 9 ) * - 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT ALL 99 + - + 61 * - - COUNT( * ) + - 90
----
-52

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL 99 + - + 61 * - - COUNT ( * ) + - 90
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6979
SELECT ALL - 79 + - 78 - SUM( DISTINCT - - 80 ) DIV NULLIF ( 24, + SUM( 59 ) + - COUNT( * ) ) DIV + 26 * - - 7 AS col2
----
-157

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL - 79 + - 78 - SUM ( DISTINCT - - 80 ) / NULLIF ( 24, + SUM ( 59 ) + - COUNT ( * ) ) / + 26 * - - 7 AS col2
----
-157

query I rowsort
SELECT + 81 * + + 74 * + - 2
----
-11988

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

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

query I rowsort
SELECT DISTINCT + 7 * - 98
----
-686

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6983
SELECT - 40 DIV - 63 AS col1, - 49 * - - COUNT( * )
----
0
-49

skipif mysql # not compatible
query II rowsort label-6983
SELECT - 40 / - 63 AS col1, - 49 * - - COUNT ( * )
----
0
-49

query I rowsort
SELECT + 9 * - 82
----
-738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6985
SELECT - + CASE - 71 WHEN + - 33 * + COUNT( ALL 27 ) THEN 5 - - + 15 - + 46 + + MAX( DISTINCT 19 ) END * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6985
SELECT - + CASE - 71 WHEN + - 33 * + COUNT ( ALL 27 ) THEN 5 - - + 15 - + 46 + + MAX ( DISTINCT 19 ) END * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + - 92 * + 51 AS col0, 18 + + 67 * + - 43 * 91
----
-4692
-262153

query I rowsort
SELECT + - 99 - - 42 AS col1
----
-57

query I rowsort
SELECT ALL NULLIF ( - + 81, - 0 / + + AVG ( - 51 ) + - 16 + 56 + 99 + + 13 * 23 * - 58 * + + 46 / - 56 )
----
-81

query I rowsort
SELECT ALL + 13 * ( - 14 )
----
-182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6990
SELECT DISTINCT - COUNT( * ) DIV + + CASE - 42 WHEN + + 26 THEN NULL WHEN + - 55 THEN NULL ELSE - 18 END + - - 67 col2
----
67

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT - COUNT ( * ) / + + CASE - 42 WHEN + + 26 THEN NULL WHEN + - 55 THEN NULL ELSE - 18 END + - - 67 col2
----
67

query I rowsort
SELECT ALL - NULLIF ( 92, + 39 + - 65 + + 65 ) - + 71 * + 82 - - 57
----
-5857

onlyif mysql # aggregate syntax: 
query II rowsort label-6992
SELECT + 12 * - 3 AS col1, COUNT( + 99 ) AS col0
----
-36
1

skipif mysql # not compatible
query II rowsort label-6992
SELECT + 12 * - 3 AS col1, COUNT ( + 99 ) AS col0
----
-36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT ALL 82 * - 36 + + COUNT( * ) - 37 * - 9 AS col0
----
-2618

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL 82 * - 36 + + COUNT ( * ) - 37 * - 9 AS col0
----
-2618

query I rowsort
SELECT ALL 86 * + 64 * 1 AS col0
----
5504

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT + 56 + + COUNT( * ) * 85 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-6995
SELECT + 56 + + COUNT ( * ) * 85 AS col2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT + COUNT( * ) - + NULLIF ( - 84, 62 )
----
85

skipif mysql # not compatible
query I rowsort label-6996
SELECT + COUNT ( * ) - + NULLIF ( - 84, 62 )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6997
SELECT DISTINCT + 50 * + - COUNT( - 43 ) DIV + COUNT( - 81 ) col2
----
-50

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT + 50 * + - COUNT ( - 43 ) / + COUNT ( - 81 ) col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-6998
SELECT ALL COUNT( + 50 ) AS col0, NULLIF ( - + 33, + 85 * 95 ) AS col0
----
1
-33

skipif mysql # not compatible
query II rowsort label-6998
SELECT ALL COUNT ( + 50 ) AS col0, NULLIF ( - + 33, + 85 * 95 ) AS col0
----
1
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT + + COUNT( * ) * + 42 * - NULLIF ( - 59, 50 * 59 ) + - 80
----
2398

skipif mysql # not compatible
query I rowsort label-6999
SELECT + + COUNT ( * ) * + 42 * - NULLIF ( - 59, 50 * 59 ) + - 80
----
2398

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL + NULLIF ( 80, COUNT( * ) ) * + + 74 + - COUNT( * ) AS col1
----
5919

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL + NULLIF ( 80, COUNT ( * ) ) * + + 74 + - COUNT ( * ) AS col1
----
5919

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7001
SELECT DISTINCT + COALESCE ( + - 16, + CAST( 95 AS SIGNED ) + 18 - + - 40 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT + COALESCE ( + - 16, + CAST ( 95 AS INTEGER ) + 18 - + - 40 ) AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7002
SELECT ALL + 17 col2, + ( + CASE + + NULLIF ( + COALESCE ( - 71, + - 52 * + + 38, - - COUNT( * ) + - 27 - + 93 + + + 84 ), + 43 * - 86 * + 57 * + + 87 + - 94 + 50 + + - 1 * + 35 + - COUNT( * ) / - ( - ( CAST( NULL AS DECIMAL ) ) ) * 58 ) WHEN + CAST( NULL AS SIGNED ) THEN + 42 * - 38 ELSE NULL END )
----
17
NULL

skipif mysql # not compatible
query II rowsort label-7002
SELECT ALL + 17 col2, + ( + CASE + + NULLIF ( + COALESCE ( - 71, + - 52 * + + 38, - - COUNT ( * ) + - 27 - + 93 + + + 84 ), + 43 * - 86 * + 57 * + + 87 + - 94 + 50 + + - 1 * + 35 + - COUNT ( * ) / - ( - ( CAST ( NULL AS REAL ) ) ) * 58 ) WHEN + CAST ( NULL AS INTEGER ) THEN + 42 * - 38 ELSE NULL END )
----
17
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7003
SELECT + CAST( - + 32 AS SIGNED ) * CAST( - + 92 AS SIGNED )
----
2944

skipif mysql # not compatible
query I rowsort label-7003
SELECT + CAST ( - + 32 AS INTEGER ) * CAST ( - + 92 AS INTEGER )
----
2944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7004
SELECT + 59 * + 4 DIV - COUNT( * )
----
-236

skipif mysql # not compatible
query I rowsort label-7004
SELECT + 59 * + 4 / - COUNT ( * )
----
-236

query I rowsort
SELECT - 65 * 67 * 48 AS col0
----
-209040

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL COUNT( + + 12 ) * + 79 + 30 * - - MIN( + 35 ) AS col2
----
1129

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL COUNT ( + + 12 ) * + 79 + 30 * - - MIN ( + 35 ) AS col2
----
1129

query I rowsort
SELECT - 5 * - + 83 AS col0
----
415

query I rowsort
SELECT ALL 21 * ( - 52 ) + - - 83
----
-1009

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

query I rowsort
SELECT ALL + CASE - + ( + - 96 ) WHEN - 84 THEN + 65 * - - 62 WHEN - + 76 * - + COALESCE ( - 26, - + 20 ) THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT NULLIF ( - 86, 43 * + - COUNT( - ( 55 ) ) + + 38 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-7012
SELECT NULLIF ( - 86, 43 * + - COUNT ( - ( 55 ) ) + + 38 ) AS col0
----
-86

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT ALL + - 41 * 13 + - 25 DIV - 53
----
-533

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL + - 41 * 13 + - 25 / - 53
----
-533

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT - + 28 + + + MIN( 46 ) * + 37 col0
----
1674

skipif mysql # not compatible
query I rowsort label-7015
SELECT - + 28 + + + MIN ( 46 ) * + 37 col0
----
1674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7016
SELECT ALL - COUNT( * ) * + MAX( DISTINCT - 14 ) + + NULLIF ( + - 50, + COUNT( ALL - + 32 ) * + 72 ) - - ( MIN( CAST( NULL AS SIGNED ) ) ) AS col2, - 19
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-7016
SELECT ALL - COUNT ( * ) * + MAX ( DISTINCT - 14 ) + + NULLIF ( + - 50, + COUNT ( ALL - + 32 ) * + 72 ) - - ( MIN ( CAST ( NULL AS INTEGER ) ) ) AS col2, - 19
----
NULL
-19

query I rowsort
SELECT ALL + 84 * + 79 AS col2
----
6636

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7018
SELECT - 74 + - CASE - - 65 WHEN - + CAST( + CAST( 57 AS DECIMAL ) AS DECIMAL ) THEN + - ( + + 32 ) + COUNT( - + 9 ) END / - 13 + 68 / - + 39 + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7018
SELECT - 74 + - CASE - - 65 WHEN - + CAST ( + CAST ( 57 AS REAL ) AS REAL ) THEN + - ( + + 32 ) + COUNT ( - + 9 ) END / - 13 + 68 / - + 39 + - 7
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7019
SELECT ALL - - COUNT( + 78 ) - - 43 * - 96 AS col1, ( 29 )
----
-4127
29

skipif mysql # not compatible
query II rowsort label-7019
SELECT ALL - - COUNT ( + 78 ) - - 43 * - 96 AS col1, ( 29 )
----
-4127
29

query I rowsort
SELECT - 83 * + + 95
----
-7885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7021
SELECT + - 13 + + 93 + 9 DIV - + NULLIF ( - - MIN( DISTINCT 71 ), COUNT( DISTINCT - 43 ) ) + - ( - + 87 ) + - 3 * 52 * - 31
----
5003

skipif mysql # not compatible
query I rowsort label-7021
SELECT + - 13 + + 93 + 9 / - + NULLIF ( - - MIN ( DISTINCT 71 ), COUNT ( DISTINCT - 43 ) ) + - ( - + 87 ) + - 3 * 52 * - 31
----
5003

onlyif mysql # DIV for integer division: 
query II rowsort label-7022
SELECT DISTINCT - 1 col1, - 37 * 44 * + 30 * + 92 DIV + - 2
----
-1
2246640

skipif mysql # not compatible
query II rowsort label-7022
SELECT DISTINCT - 1 col1, - 37 * 44 * + 30 * + 92 / + - 2
----
-1
2246640

query II rowsort
SELECT DISTINCT 86, - 64 AS col0
----
86
-64

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

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

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

query I rowsort
SELECT DISTINCT ( 59 ) AS col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7027
SELECT ALL 1 DIV - 1 * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL 1 / - 1 * COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT - ( - + 2 ) - - 8 col0
----
10

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( 57, - 4 * 92 - + 35 ) AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7031
SELECT ALL 67 DIV - + 47 + 44
----
43

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL 67 / - + 47 + 44
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7032
SELECT ALL - 11 DIV - 91 + + + 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL - 11 / - 91 + + + 25 AS col1
----
25

query II rowsort
SELECT - 30 * 88 + + 2 - 99 AS col1, + 84 * - - 36 AS col2
----
-2737
3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7034
SELECT DISTINCT 35 + + 77 * - CAST( NULL AS SIGNED ) + - 77 + + 17 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT 35 + + 77 * - CAST ( NULL AS INTEGER ) + - 77 + + 17 * + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7035
SELECT ALL 94 * 13 DIV - - 43 col2
----
28

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL 94 * 13 / - - 43 col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7036
SELECT 52 DIV 10 + 79 + + COUNT( DISTINCT + + 61 ) * - + 40 DIV 48 + - 19 - MAX( ALL - + 83 ) * - 44 * + + 71 * 57
----
-14779579

skipif mysql # not compatible
query I rowsort label-7036
SELECT 52 / 10 + 79 + + COUNT ( DISTINCT + + 61 ) * - + 40 / 48 + - 19 - MAX ( ALL - + 83 ) * - 44 * + + 71 * 57
----
-14779579

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT ALL MIN( ALL + 64 ) + + COUNT( * ) + + 61
----
126

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL MIN ( ALL + 64 ) + + COUNT ( * ) + + 61
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7038
SELECT DISTINCT NULLIF ( - 54, - COUNT( * ) * + 24 ) + + ( - ( - NULLIF ( + 17, + - 55 - + 45 ) ) ) + + - CAST( NULL AS SIGNED ) + - - 53 - + 4 * + 14 * 63 * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT NULLIF ( - 54, - COUNT ( * ) * + 24 ) + + ( - ( - NULLIF ( + 17, + - 55 - + 45 ) ) ) + + - CAST ( NULL AS INTEGER ) + - - 53 - + 4 * + 14 * 63 * - 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7039
SELECT DISTINCT 81 + + 30 DIV - 83
----
81

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT 81 + + 30 / - 83
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7040
SELECT - 91 * - - 33 + + + CAST( + 97 AS SIGNED ), + 39 AS col2
----
-2906
39

skipif mysql # not compatible
query II rowsort label-7040
SELECT - 91 * - - 33 + + + CAST ( + 97 AS INTEGER ), + 39 AS col2
----
-2906
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL ( - 90 ) - - COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL ( - 90 ) - - COUNT ( * ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT DISTINCT CASE - MAX( DISTINCT 50 ) WHEN 59 * + 16 - - ( + - COUNT( * ) ) THEN 89 / - ( - - ( + - 26 ) ) * 90 + + 25 END - - + ( - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT CASE - MAX ( DISTINCT 50 ) WHEN 59 * + 16 - - ( + - COUNT ( * ) ) THEN 89 / - ( - - ( + - 26 ) ) * 90 + + 25 END - - + ( - 99 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7043
SELECT ALL - - ( - - COALESCE ( + 66, - 23 * + 75 - - NULLIF ( 8, - + 21 ), + + COUNT( * ) + ( + 26 ) + - 72 ) ) AS col2, 1 + + + 43 * + 84 + 36 + - 82 DIV + 2 col2
----
66
3608

skipif mysql # not compatible
query II rowsort label-7043
SELECT ALL - - ( - - COALESCE ( + 66, - 23 * + 75 - - NULLIF ( 8, - + 21 ), + + COUNT ( * ) + ( + 26 ) + - 72 ) ) AS col2, 1 + + + 43 * + 84 + 36 + - 82 / + 2 col2
----
66
3608

query I rowsort
SELECT DISTINCT - + 91 - - - NULLIF ( - 50, + 40 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT COUNT( ALL 76 ) - COALESCE ( + 51, + 36 ) * + COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-7045
SELECT COUNT ( ALL 76 ) - COALESCE ( + 51, + 36 ) * + COUNT ( * ) AS col0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7046
SELECT ALL + CASE + NULLIF ( 48, + 21 + + + ( + COUNT( * ) ) + + 82 ) WHEN - + 49 THEN NULL ELSE + COALESCE ( - 34, ( - - 67 ) DIV - 69 - 2 + + 27 + - 88 + - 71 + + 17 * 34 DIV 72 + 51 * 0 + + + 59 + - 97 DIV + 9 * AVG ( DISTINCT 34 ) ) DIV + 49 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL + CASE + NULLIF ( 48, + 21 + + + ( + COUNT ( * ) ) + + 82 ) WHEN - + 49 THEN NULL ELSE + COALESCE ( - 34, ( - - 67 ) / - 69 - 2 + + 27 + - 88 + - 71 + + 17 * 34 / 72 + 51 * 0 + + + 59 + - 97 / + 9 * AVG ( DISTINCT 34 ) ) / + 49 END AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-7047
SELECT - + MAX ( - + 1 )
----
1

query I rowsort
SELECT 29 * 7 col1
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT - CASE + COUNT( * ) WHEN 92 THEN NULL WHEN NULLIF ( 0, - COUNT( * ) ) THEN - - 20 + - 15 + + COUNT( + + 86 ) - - COUNT( ( + 81 ) ) * + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7049
SELECT - CASE + COUNT ( * ) WHEN 92 THEN NULL WHEN NULLIF ( 0, - COUNT ( * ) ) THEN - - 20 + - 15 + + COUNT ( + + 86 ) - - COUNT ( ( + 81 ) ) * + 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT ALL - 12 * - 84 * + - SUM( ALL 38 ) * 15 - - 35 + - - 3
----
-574522

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL - 12 * - 84 * + - SUM ( ALL 38 ) * 15 - - 35 + - - 3
----
-574522

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT - - COUNT( 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7051
SELECT - - COUNT ( 42 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT DISTINCT - 68 * + CASE 30 WHEN ( - 34 ) / - + 52 + - 55 THEN NULL WHEN - 85 * - COUNT( * ) THEN - 10 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT - 68 * + CASE 30 WHEN ( - 34 ) / - + 52 + - 55 THEN NULL WHEN - 85 * - COUNT ( * ) THEN - 10 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7053
SELECT ALL - COUNT( - - 96 ) + + - COUNT( * ) + + 65, ( - 25 ) AS col1
----
63
-25

skipif mysql # not compatible
query II rowsort label-7053
SELECT ALL - COUNT ( - - 96 ) + + - COUNT ( * ) + + 65, ( - 25 ) AS col1
----
63
-25

query I rowsort
SELECT - + NULLIF ( + 81, - 75 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT 72 + - ( + MIN( DISTINCT + 90 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-7055
SELECT 72 + - ( + MIN ( DISTINCT + 90 ) )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7056
SELECT NULLIF ( + COALESCE ( + - SUM( + 55 ), 66, 20 ), 18 * - COUNT( * ) ) - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7056
SELECT NULLIF ( + COALESCE ( + - SUM ( + 55 ), 66, 20 ), 18 * - COUNT ( * ) ) - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7057
SELECT 81 + + - COALESCE ( 3, CAST( 90 AS SIGNED ) * - 14 + + 17 * + - 40 + + 6 * - - 95 ) + 15 * COUNT( DISTINCT + 42 ) AS col2, + 66 + + COUNT( * )
----
93
67

skipif mysql # not compatible
query II rowsort label-7057
SELECT 81 + + - COALESCE ( 3, CAST ( 90 AS INTEGER ) * - 14 + + 17 * + - 40 + + 6 * - - 95 ) + 15 * COUNT ( DISTINCT + 42 ) AS col2, + 66 + + COUNT ( * )
----
93
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7058
SELECT ALL - 92 + - + 85 - - 8 DIV + - CAST( 94 AS SIGNED ) * + + 71 + - COALESCE ( - 49, 90 + + 19 )
----
-128

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL - 92 + - + 85 - - 8 / + - CAST ( 94 AS INTEGER ) * + + 71 + - COALESCE ( - 49, 90 + + 19 )
----
-128

query I rowsort
SELECT ALL - 83 + 63 AS col2
----
-20

query I rowsort
SELECT DISTINCT + 11 + + 3 AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7061
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) + + - 1 + - + 48 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) + + - 1 + - + 48 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT 6 + SUM( ALL 93 )
----
99

skipif mysql # not compatible
query I rowsort label-7062
SELECT 6 + SUM ( ALL 93 )
----
99

query I rowsort
SELECT ALL - COALESCE ( NULLIF ( - 40, - 94 / - + 30 ), 20 )
----
40

query II rowsort
SELECT DISTINCT - 45 AS col0, ( + ( - 13 ) ) + - 89 - + 99 * + - 94 - + 63 + + 39 AS col0
----
-45
9180

onlyif mysql # DIV for integer division: 
query I rowsort label-7065
SELECT 66 DIV 89 + + NULLIF ( + 50, + + 39 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7065
SELECT 66 / 89 + + NULLIF ( + 50, + + 39 ) AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7066
SELECT 23, 20 + + CAST( + AVG ( 36 ) AS SIGNED ) AS col2
----
23
56

skipif mysql # not compatible
query II rowsort label-7066
SELECT 23, 20 + + CAST ( + AVG ( 36 ) AS INTEGER ) AS col2
----
23
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7067
SELECT 96 * - 4 / + 1 / CASE - 0 WHEN NULLIF ( NULLIF ( + 40, 79 * - ( COALESCE ( + 28, + COALESCE ( - 33, + + 69 * 51 / - CAST( 17 AS SIGNED ) * 98 + + ( - + 67 ) + + - NULLIF ( + 28, + 11 + - - 85 + + 52 / 44 * 89 ) * - 49 ), - 78 + 54 ) ) * MAX( - 51 ) ), + AVG ( DISTINCT ( + 35 ) ) ) THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT 96 * - 4 / + 1 / CASE - 0 WHEN NULLIF ( NULLIF ( + 40, 79 * - ( COALESCE ( + 28, + COALESCE ( - 33, + + 69 * 51 / - CAST ( 17 AS INTEGER ) * 98 + + ( - + 67 ) + + - NULLIF ( + 28, + 11 + - - 85 + + 52 / 44 * 89 ) * - 49 ), - 78 + 54 ) ) * MAX ( - 51 ) ), + AVG ( DISTINCT ( + 35 ) ) ) THEN COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7068
SELECT COALESCE ( - - COUNT( * ), + + 8, + 27 * + SUM( - 0 ) * - 42 * 14 - 91 + + ( - COUNT( * ) ) * + ( - + ( - 99 ) ) * COALESCE ( - 77, ( NULLIF ( - 69, MAX( DISTINCT - 41 ) ) ) * ( + 81 ) ) DIV + 44 + 55 + - 41 ) * 41 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7068
SELECT COALESCE ( - - COUNT ( * ), + + 8, + 27 * + SUM ( - 0 ) * - 42 * 14 - 91 + + ( - COUNT ( * ) ) * + ( - + ( - 99 ) ) * COALESCE ( - 77, ( NULLIF ( - 69, MAX ( DISTINCT - 41 ) ) ) * ( + 81 ) ) / + 44 + 55 + - 41 ) * 41 AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7069
SELECT COALESCE ( 63, COUNT( * ) DIV - 26 ) DIV + - 95 + - ( 85 ) * + 19 AS col1, + 94 AS col0
----
-1615
94

skipif mysql # not compatible
query II rowsort label-7069
SELECT COALESCE ( 63, COUNT ( * ) / - 26 ) / + - 95 + - ( 85 ) * + 19 AS col1, + 94 AS col0
----
-1615
94

query I rowsort
SELECT ALL 40 * + 67
----
2680

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7072
SELECT DISTINCT - COALESCE ( + COALESCE ( 17, - 53 * + + CASE - - 89 WHEN + COUNT( * ) * 14 + - 27 THEN NULL WHEN - 15 + COUNT( * ) THEN + - 29 - 68 END - 62 ), - 10 ) * - CAST( NULL AS SIGNED ) + + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT - COALESCE ( + COALESCE ( 17, - 53 * + + CASE - - 89 WHEN + COUNT ( * ) * 14 + - 27 THEN NULL WHEN - 15 + COUNT ( * ) THEN + - 29 - 68 END - 62 ), - 10 ) * - CAST ( NULL AS INTEGER ) + + 44 AS col0
----
NULL

query I rowsort
SELECT 38 + - + 34 col0
----
4

query I rowsort
SELECT ALL 22 - - 39 - 6 + - 54 * + 70 AS col2
----
-3725

onlyif mysql # aggregate syntax: 
query II rowsort label-7075
SELECT - 1 * - ( 75 ) + - MIN( ALL + 63 ) * + 97 * - COUNT( * ) * - 20 + - - 79 * 36 AS col0, - 16 * - 95 AS col2
----
-119301
1520

skipif mysql # not compatible
query II rowsort label-7075
SELECT - 1 * - ( 75 ) + - MIN ( ALL + 63 ) * + 97 * - COUNT ( * ) * - 20 + - - 79 * 36 AS col0, - 16 * - 95 AS col2
----
-119301
1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7076
SELECT + SUM( - 49 ) * + CAST( NULL AS SIGNED ) AS col1, + 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-7076
SELECT + SUM ( - 49 ) * + CAST ( NULL AS INTEGER ) AS col1, + 23
----
NULL
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7077
SELECT + 9 + - NULLIF ( + SUM( - 83 ), - + COUNT( * ) ) + 89 AS col2, COUNT( * )
----
181
1

skipif mysql # not compatible
query II rowsort label-7077
SELECT + 9 + - NULLIF ( + SUM ( - 83 ), - + COUNT ( * ) ) + 89 AS col2, COUNT ( * )
----
181
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL - 7 / - COUNT( * ) + + 90 + - 26 * - AVG ( - 67 ) / + ( + CASE - 92 WHEN ( 23 ) THEN - 50 WHEN 27 THEN + COUNT( + + ( + 10 ) ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL - 7 / - COUNT ( * ) + + 90 + - 26 * - AVG ( - 67 ) / + ( + CASE - 92 WHEN ( 23 ) THEN - 50 WHEN 27 THEN + COUNT ( + + ( + 10 ) ) END ) AS col0
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7082
SELECT DISTINCT - 63 DIV - + COUNT( * ) + - + 47 AS col1, - COUNT( * ) - + + 55 AS col2
----
16
-56

skipif mysql # not compatible
query II rowsort label-7082
SELECT DISTINCT - 63 / - + COUNT ( * ) + - + 47 AS col1, - COUNT ( * ) - + + 55 AS col2
----
16
-56

query I rowsort
SELECT ALL CASE + 43 WHEN + 65 THEN 82 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT ALL - 30 * + CAST( + + 90 AS SIGNED )
----
-2700

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL - 30 * + CAST ( + + 90 AS INTEGER )
----
-2700

query I rowsort
SELECT DISTINCT 37 + + - NULLIF ( - + 35, + + 73 + - + 30 )
----
72

query I rowsort
SELECT DISTINCT 50 + + 80
----
130

query I rowsort
SELECT ALL - 80 + 8
----
-72

query I rowsort
SELECT + 25 * - + 57 AS col0
----
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT DISTINCT + + COUNT( * ) + + - ( + COUNT( * ) ) + + COUNT( 23 ) * COALESCE ( + 67, - 81, 4 )
----
67

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT + + COUNT ( * ) + + - ( + COUNT ( * ) ) + + COUNT ( 23 ) * COALESCE ( + 67, - 81, 4 )
----
67

query II rowsort
SELECT ALL - 2 AS col2, + 30 + 75
----
-2
105

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

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

query I rowsort
SELECT ALL 25 + 33 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT DISTINCT + 52 + - - CASE - + 28 WHEN + - 15 * + - 91 THEN NULL WHEN - 84 THEN COUNT( ALL + ( - 1 ) ) END + + + 28 * + - 59 * + 73 * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT + 52 + - - CASE - + 28 WHEN + - 15 * + - 91 THEN NULL WHEN - 84 THEN COUNT ( ALL + ( - 1 ) ) END + + + 28 * + - 59 * + 73 * - 13
----
NULL

query I rowsort
SELECT ALL - 97 + - - 70
----
-27

query II rowsort
SELECT ALL 0, ( + - 83 ) * + 43 AS col2
----
0
-3569

query I rowsort
SELECT ALL COALESCE ( - ( - 59 ), 70, + 9 )
----
59

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

skipif mysql # not compatible
query I rowsort label-7097
SELECT - 65 * + CAST ( 63 AS INTEGER ) AS col0
----
-4095

onlyif mysql # DIV for integer division: 
query II rowsort label-7098
SELECT 27 AS col0, 86 + + - 26 - 15 DIV - 16 + - ( 55 )
----
27
5

skipif mysql # not compatible
query II rowsort label-7098
SELECT 27 AS col0, 86 + + - 26 - 15 / - 16 + - ( 55 )
----
27
5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT COALESCE ( 30, 12, + - 23, COUNT( * ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7101
SELECT COALESCE ( 30, 12, + - 23, COUNT ( * ) ) AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7102
SELECT ALL COUNT( + 36 ) * + CASE + CASE + 66 WHEN 66 + 84 * - 85 + + - AVG ( DISTINCT + 81 ) + 82 - - 33 THEN - AVG ( ALL + 10 ) * - + 0 * 87 + + - 26 + 33 + - 91 / + 67 * 11 * + COUNT( * ) + - + 19 + 91 / COUNT( * ) * - 55 + 49 WHEN + 57 / - 63 THEN NULL WHEN + 75 THEN + 99 END WHEN + COUNT( * ) - 87 THEN - 72 ELSE CAST( 91 AS SIGNED ) END * - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL COUNT ( + 36 ) * + CASE + CASE + 66 WHEN 66 + 84 * - 85 + + - AVG ( DISTINCT + 81 ) + 82 - - 33 THEN - AVG ( ALL + 10 ) * - + 0 * 87 + + - 26 + 33 + - 91 / + 67 * 11 * + COUNT ( * ) + - + 19 + 91 / COUNT ( * ) * - 55 + 49 WHEN + 57 / - 63 THEN NULL WHEN + 75 THEN + 99 END WHEN + COUNT ( * ) - 87 THEN - 72 ELSE CAST ( 91 AS INTEGER ) END * - COUNT ( * )
----
-91

query I rowsort
SELECT - 99 * - + 40
----
3960

query II rowsort
SELECT - 83 * + 37 + ( 25 ) AS col2, 63 col1
----
-3046
63

query I rowsort
SELECT - 75 - - 88
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7106
SELECT ALL + 12 AS col0, + COUNT( * ) * 63 DIV + - 19
----
12
-3

skipif mysql # not compatible
query II rowsort label-7106
SELECT ALL + 12 AS col0, + COUNT ( * ) * 63 / + - 19
----
12
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7107
SELECT - + 97 DIV - 33 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7107
SELECT - + 97 / - 33 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7108
SELECT + + 91 * + + COALESCE ( - 36, 3 DIV - 19 + 86 )
----
-3276

skipif mysql # not compatible
query I rowsort label-7108
SELECT + + 91 * + + COALESCE ( - 36, 3 / - 19 + 86 )
----
-3276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7109
SELECT CAST( NULL AS SIGNED ) col2, 20
----
NULL
20

skipif mysql # not compatible
query II rowsort label-7109
SELECT CAST ( NULL AS INTEGER ) col2, 20
----
NULL
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT DISTINCT + 69 * + SUM( - 41 ) AS col2
----
-2829

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT + 69 * + SUM ( - 41 ) AS col2
----
-2829

query I rowsort
SELECT + 63 + 30 AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-7112
SELECT DISTINCT + + ( COUNT( * ) ), 47 * 79 + 16 AS col2
----
1
3729

skipif mysql # not compatible
query II rowsort label-7112
SELECT DISTINCT + + ( COUNT ( * ) ), 47 * 79 + 16 AS col2
----
1
3729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7113
SELECT ALL - ( - + 29 ) DIV + 51 + + - 46 + - - COALESCE ( + + 68, 86 * CAST( - + CAST( - - 13 AS SIGNED ) AS SIGNED ) + - 22, - 13 DIV + 61 * - + COUNT( * ) - + 33 + AVG ( 29 ) DIV + + 34 * - 28 + + 93 )
----
22

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL - ( - + 29 ) / + 51 + + - 46 + - - COALESCE ( + + 68, 86 * CAST ( - + CAST ( - - 13 AS INTEGER ) AS INTEGER ) + - 22, - 13 / + 61 * - + COUNT ( * ) - + 33 + AVG ( 29 ) / + + 34 * - 28 + + 93 )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-7114
SELECT DISTINCT + - SUM( 48 ) AS col2, + 59 * + 6
----
-48
354

skipif mysql # not compatible
query II rowsort label-7114
SELECT DISTINCT + - SUM ( 48 ) AS col2, + 59 * + 6
----
-48
354

onlyif mysql # aggregate syntax: 
query II rowsort label-7115
SELECT ALL + COALESCE ( - - 49, 13 ) * - 49 * - 79 + 59 * - COUNT( * ) AS col0, - COUNT( * )
----
189620
-1

skipif mysql # not compatible
query II rowsort label-7115
SELECT ALL + COALESCE ( - - 49, 13 ) * - 49 * - 79 + 59 * - COUNT ( * ) AS col0, - COUNT ( * )
----
189620
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT ALL + - MIN( DISTINCT - 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL + - MIN ( DISTINCT - 37 ) AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7118
SELECT - 95 - COUNT( * ) DIV MIN( ALL - 95 ) + 37
----
-58

skipif mysql # not compatible
query I rowsort label-7118
SELECT - 95 - COUNT ( * ) / MIN ( ALL - 95 ) + 37
----
-58

query II rowsort
SELECT + 50 AS col0, + 78 AS col1
----
50
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT - 9 - + NULLIF ( + COALESCE ( ( + CASE - AVG ( DISTINCT + 83 ) WHEN - - 19 * + 16 + - COUNT( * ) THEN - - 60 WHEN + 85 * ( + 99 ) THEN NULL ELSE NULL END ), + + 6, + + COUNT( 3 ) + 87 ), + 85 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7120
SELECT - 9 - + NULLIF ( + COALESCE ( ( + CASE - AVG ( DISTINCT + 83 ) WHEN - - 19 * + 16 + - COUNT ( * ) THEN - - 60 WHEN + 85 * ( + 99 ) THEN NULL ELSE NULL END ), + + 6, + + COUNT ( 3 ) + 87 ), + 85 ) AS col0
----
-15

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

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

query I rowsort
SELECT + 22 * 59 AS col1
----
1298

query I rowsort
SELECT + 92 * 84 col2
----
7728

query II rowsort
SELECT ALL 62 AS col1, + 48 * - 23
----
62
-1104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7125
SELECT DISTINCT + 2 + - 85 * - 7 * + 30 + + - 20 - - + COALESCE ( + 4, + 46 * - 35 + - + CAST( 31 AS SIGNED ), - 47, ( + + 65 ) * + 7 + + 51 + + 9 + - 83 + - - 9 - - 25 * - + 94 + - - SUM( DISTINCT - + 95 ) + + 78 - - 81 ) * + COUNT( * ) AS col2
----
17836

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT + 2 + - 85 * - 7 * + 30 + + - 20 - - + COALESCE ( + 4, + 46 * - 35 + - + CAST ( 31 AS INTEGER ), - 47, ( + + 65 ) * + 7 + + 51 + + 9 + - 83 + - - 9 - - 25 * - + 94 + - - SUM ( DISTINCT - + 95 ) + + 78 - - 81 ) * + COUNT ( * ) AS col2
----
17836

query I rowsort
SELECT DISTINCT + 91 + - 41 AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7127
SELECT ALL COALESCE ( 78, - + 31 DIV + + 16 + - 27 ) + + 74 + 49
----
201

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL COALESCE ( 78, - + 31 / + + 16 + - 27 ) + + 74 + 49
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7128
SELECT + CAST( 48 AS SIGNED ) + + 52
----
100

skipif mysql # not compatible
query I rowsort label-7128
SELECT + CAST ( 48 AS INTEGER ) + + 52
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT ALL COUNT( * ) * + 78 * 94 AS col0
----
7332

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL COUNT ( * ) * + 78 * 94 AS col0
----
7332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7130
SELECT + CASE ( 87 ) WHEN CAST( NULL AS SIGNED ) THEN + 15 WHEN - + ( + 49 ) THEN 77 / + + 72 / - + ( + 74 ) * + 95 / - 14 END + 8 + - 88 * 35 + + SUM( DISTINCT + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT + CASE ( 87 ) WHEN CAST ( NULL AS INTEGER ) THEN + 15 WHEN - + ( + 49 ) THEN 77 / + + 72 / - + ( + 74 ) * + 95 / - 14 END + 8 + - 88 * 35 + + SUM ( DISTINCT + 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7131
SELECT + 29 + + + 81, + COUNT( * ) + - + SUM( ALL + 51 ) AS col2
----
110
-50

skipif mysql # not compatible
query II rowsort label-7131
SELECT + 29 + + + 81, + COUNT ( * ) + - + SUM ( ALL + 51 ) AS col2
----
110
-50

query I rowsort
SELECT - 35 - - + 41 col0
----
6

query I rowsort
SELECT + 47 * + 91 AS col0
----
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL COUNT( * ) * + COUNT( ALL - + NULLIF ( 63, - 27 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL COUNT ( * ) * + COUNT ( ALL - + NULLIF ( 63, - 27 ) )
----
1

query I rowsort
SELECT ALL COALESCE ( 51, + 81 + - COALESCE ( - 11, + 86 ) )
----
51

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

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT SUM ( DISTINCT - - 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT - AVG ( DISTINCT - + 42 ) + 96 + NULLIF ( COUNT( * ), + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7137
SELECT - AVG ( DISTINCT - + 42 ) + 96 + NULLIF ( COUNT ( * ), + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT - COUNT( + 90 ) * + 31
----
-31

skipif mysql # not compatible
query I rowsort label-7138
SELECT - COUNT ( + 90 ) * + 31
----
-31

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7140
SELECT CAST( - 44 AS SIGNED ) AS col2, - 35 * - - CASE 51 WHEN - 40 THEN 85 * - 13 ELSE 86 - - 24 + - + 63 END * 43 + + + MIN( + 71 ) + + 42 * - 38 AS col1
----
-44
-72260

skipif mysql # not compatible
query II rowsort label-7140
SELECT CAST ( - 44 AS INTEGER ) AS col2, - 35 * - - CASE 51 WHEN - 40 THEN 85 * - 13 ELSE 86 - - 24 + - + 63 END * 43 + + + MIN ( + 71 ) + + 42 * - 38 AS col1
----
-44
-72260

query I rowsort
SELECT - ( - 40 ) * 29 AS col2
----
1160

query II rowsort
SELECT ALL + 40 * + - 40 AS col1, + 90 AS col0
----
-1600
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT + - NULLIF ( + 74, - 61 ) + CASE - + 52 WHEN 68 THEN 51 - - SUM( DISTINCT - 19 ) + - 30 END + + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT + - NULLIF ( + 74, - 61 ) + CASE - + 52 WHEN 68 THEN 51 - - SUM ( DISTINCT - 19 ) + - 30 END + + 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7144
SELECT DISTINCT - 25 DIV + 38 + + 82 DIV COUNT( * ) DIV - - SUM( DISTINCT 3 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT - 25 / + 38 + + 82 / COUNT ( * ) / - - SUM ( DISTINCT 3 ) AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7145
SELECT ALL COUNT( DISTINCT + CASE - + 61 WHEN + 1 THEN - 88 END ) DIV - 27 * - - MIN( 35 ) + - COUNT( * ) + + - 57 + 91
----
33

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL COUNT ( DISTINCT + CASE - + 61 WHEN + 1 THEN - 88 END ) / - 27 * - - MIN ( 35 ) + - COUNT ( * ) + + - 57 + 91
----
33

query I rowsort
SELECT DISTINCT + - CASE + - 53 WHEN - 8 THEN ( - + 0 ) END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7147
SELECT DISTINCT + 96 DIV 85 + COALESCE ( - 73, ( MAX( ALL - 39 ) ), 89 ) * COUNT( * ) - - 66 + + - 9 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT + 96 / 85 + COALESCE ( - 73, ( MAX ( ALL - 39 ) ), 89 ) * COUNT ( * ) - - 66 + + - 9 AS col0
----
-15

query I rowsort
SELECT DISTINCT 25 * - CASE + 23 WHEN 98 THEN NULL WHEN + - 42 * 95 THEN + 59 END * 8 + 8 * - 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT ALL 63 * + - COUNT( * ) + COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL 63 * + - COUNT ( * ) + COUNT ( * ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT + + 31 * - 89 * + COUNT( * ) - + 18 AS col0
----
-2777

skipif mysql # not compatible
query I rowsort label-7150
SELECT + + 31 * - 89 * + COUNT ( * ) - + 18 AS col0
----
-2777

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT DISTINCT + MAX( - - 38 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT + MAX ( - - 38 ) col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7152
SELECT ALL - - 88 * CAST( - ( + 54 ) AS SIGNED ) AS col2
----
-4752

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL - - 88 * CAST ( - ( + 54 ) AS INTEGER ) AS col2
----
-4752

query I rowsort
SELECT - + 58 + - 61 * 93 AS col0
----
-5731

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT + MAX( + 74 ) * - + 11 * 97 + - COUNT( ALL + - 3 ) + - + 8 * - 6 + - + 5 - 81 AS col1
----
-78997

skipif mysql # not compatible
query I rowsort label-7154
SELECT + MAX ( + 74 ) * - + 11 * 97 + - COUNT ( ALL + - 3 ) + - + 8 * - 6 + - + 5 - 81 AS col1
----
-78997

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT ALL + 89 * - MIN( + 61 )
----
-5429

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL + 89 * - MIN ( + 61 )
----
-5429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7156
SELECT + - CAST( + 82 AS SIGNED ) * CAST( + + 30 AS SIGNED ) + + SUM( DISTINCT + 95 ) * + + 68 AS col2
----
4000

skipif mysql # not compatible
query I rowsort label-7156
SELECT + - CAST ( + 82 AS INTEGER ) * CAST ( + + 30 AS INTEGER ) + + SUM ( DISTINCT + 95 ) * + + 68 AS col2
----
4000

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT ALL - + NULLIF ( + - 16, + 91 * - + 52 ) * - + 80 + NULLIF ( MAX( + 74 ), + - ( 98 ) )
----
-1206

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL - + NULLIF ( + - 16, + 91 * - + 52 ) * - + 80 + NULLIF ( MAX ( + 74 ), + - ( 98 ) )
----
-1206

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7159
SELECT ALL - 98 + 10 * + 7 * + CAST( NULL AS SIGNED ) * COALESCE ( + 72, + 57 ) + + MAX( + - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL - 98 + 10 * + 7 * + CAST ( NULL AS INTEGER ) * COALESCE ( + 72, + 57 ) + + MAX ( + - 71 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7160
SELECT COALESCE ( CAST( - COUNT( - 71 ) AS SIGNED ), - + 12 * - + 96 + + + CASE COUNT( * ) WHEN + + 28 * - 65 * - - 42 THEN + COUNT( * ) END ) + - + 25 + - CAST( NULL AS SIGNED ), COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7160
SELECT COALESCE ( CAST ( - COUNT ( - 71 ) AS INTEGER ), - + 12 * - + 96 + + + CASE COUNT ( * ) WHEN + + 28 * - 65 * - - 42 THEN + COUNT ( * ) END ) + - + 25 + - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL - COUNT( * ) - NULLIF ( 61, + - COUNT( DISTINCT + 83 ) * + 47 * 7 + + 7 ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL - COUNT ( * ) - NULLIF ( 61, + - COUNT ( DISTINCT + 83 ) * + 47 * 7 + + 7 ) col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT ( 81 ) + COUNT( * ) + - 60 * + 94
----
-5558

skipif mysql # not compatible
query I rowsort label-7162
SELECT ( 81 ) + COUNT ( * ) + - 60 * + 94
----
-5558

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT DISTINCT COUNT( * ) - + + 0
----
1

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT COUNT ( * ) - + + 0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7164
SELECT DISTINCT 57 col0, 94 + - 97 DIV 57 + - + 84 + - + 71 * + 78 * - 73 + + 43 * - 0 + - - 92
----
57
404375

skipif mysql # not compatible
query II rowsort label-7164
SELECT DISTINCT 57 col0, 94 + - 97 / 57 + - + 84 + - + 71 * + 78 * - 73 + + 43 * - 0 + - - 92
----
57
404375

onlyif mysql # DIV for integer division: 
query I rowsort label-7165
SELECT DISTINCT 64 DIV - 46
----
-1

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT 64 / - 46
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7166
SELECT 12 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-7166
SELECT 12 / + 58
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7167
SELECT 47 * + - CAST( + - 24 AS SIGNED ) * + - COUNT( * ) * COUNT( * ) AS col1
----
-1128

skipif mysql # not compatible
query I rowsort label-7167
SELECT 47 * + - CAST ( + - 24 AS INTEGER ) * + - COUNT ( * ) * COUNT ( * ) AS col1
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT DISTINCT 16 * COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT 16 * COUNT ( * ) AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7169
SELECT COALESCE ( 33, - 6 DIV + - 55 DIV - + 22 - + 25, + 83 * - + 50 ) + + COUNT( DISTINCT - + 41 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7169
SELECT COALESCE ( 33, - 6 / + - 55 / - + 22 - + 25, + 83 * - + 50 ) + + COUNT ( DISTINCT - + 41 ) AS col1
----
34

query I rowsort
SELECT 31 - - 22 + - 63 AS col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7171
SELECT 37 DIV + - 26
----
-1

skipif mysql # not compatible
query I rowsort label-7171
SELECT 37 / + - 26
----
-1

query I rowsort
SELECT 73 + + 57
----
130

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT 49 + - - ( + ( 41 ) ) DIV - 35
----
48

skipif mysql # not compatible
query I rowsort label-7174
SELECT 49 + - - ( + ( 41 ) ) / - 35
----
48

query II rowsort
SELECT DISTINCT - + 37 col2, 94 * + 72 AS col1
----
-37
6768

query I rowsort
SELECT ALL + + 27 + - + 31
----
-4

query I rowsort
SELECT + - 63 * - + 38 + + 88 + + 69
----
2551

query II rowsort
SELECT 30, 19 AS col1
----
30
19

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7179
SELECT + ( - 59 ) * 48 + CAST( NULL AS SIGNED ) * + + AVG ( CAST( NULL AS SIGNED ) ) - - - CASE 20 WHEN - 3 THEN 62 WHEN + 39 THEN NULL WHEN 52 / - CAST( - + 1 AS DECIMAL ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT + ( - 59 ) * 48 + CAST ( NULL AS INTEGER ) * + + AVG ( CAST ( NULL AS INTEGER ) ) - - - CASE 20 WHEN - 3 THEN 62 WHEN + 39 THEN NULL WHEN 52 / - CAST ( - + 1 AS REAL ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 51 * - ( + 53 ) AS col0
----
2703

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7181
SELECT ALL - 77, - CAST( + 18 AS SIGNED ) col1
----
-77
-18

skipif mysql # not compatible
query II rowsort label-7181
SELECT ALL - 77, - CAST ( + 18 AS INTEGER ) col1
----
-77
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-7182
SELECT DISTINCT - COUNT( * ), - 96 col1
----
-1
-96

skipif mysql # not compatible
query II rowsort label-7182
SELECT DISTINCT - COUNT ( * ), - 96 col1
----
-1
-96

query I rowsort
SELECT ALL - 2 - - + 49
----
47

query I rowsort
SELECT 98 * + 8 AS col2
----
784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7185
SELECT DISTINCT 83 * - 66 * CAST( NULL AS SIGNED ) + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT 83 * - 66 * CAST ( NULL AS INTEGER ) + - 86
----
NULL

query II rowsort
SELECT ALL - 57 AS col1, 16 col2
----
-57
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7187
SELECT CAST( - - 88 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2, + 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7187
SELECT CAST ( - - 88 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2, + 0
----
NULL
0

query I rowsort
SELECT ALL - 41 - + + 52 * + 52 - + + 98 + + 21
----
-2822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7189
SELECT 77 * - + ( - CAST( + MAX( + 21 ) AS SIGNED ) )
----
1617

skipif mysql # not compatible
query I rowsort label-7189
SELECT 77 * - + ( - CAST ( + MAX ( + 21 ) AS INTEGER ) )
----
1617

query II rowsort
SELECT + 58 col2, + 36 AS col0
----
58
36

query I rowsort
SELECT 87 - - 60 + ( 17 ) * 98 * ( - 30 )
----
-49833

onlyif mysql # aggregate syntax: 
query II rowsort label-7192
SELECT 90 * - ( + SUM( ALL ( - - 55 ) ) ), 1 + + 88 + 64 * + + 39 AS col2
----
-4950
2585

skipif mysql # not compatible
query II rowsort label-7192
SELECT 90 * - ( + SUM ( ALL ( - - 55 ) ) ), 1 + + 88 + 64 * + + 39 AS col2
----
-4950
2585

query I rowsort
SELECT 26 * + 53
----
1378

query I rowsort
SELECT 97 - - 65 AS col1
----
162

onlyif mysql # DIV for integer division: 
query II rowsort label-7195
SELECT 32 DIV + + 10 col0, + 72 AS col1
----
3
72

skipif mysql # not compatible
query II rowsort label-7195
SELECT 32 / + + 10 col0, + 72 AS col1
----
3
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7196
SELECT ALL - COALESCE ( - 89, 66 ) DIV + 78 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - COALESCE ( - 89, 66 ) / + 78 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7197
SELECT DISTINCT - COALESCE ( + NULLIF ( COUNT( * ), - + COUNT( + + CAST( + 35 AS SIGNED ) ) ), 67 ) DIV + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT - COALESCE ( + NULLIF ( COUNT ( * ), - + COUNT ( + + CAST ( + 35 AS INTEGER ) ) ), 67 ) / + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT 16 * MAX( ALL - 83 )
----
-1328

skipif mysql # not compatible
query I rowsort label-7198
SELECT 16 * MAX ( ALL - 83 )
----
-1328

query II rowsort
SELECT ALL + 3 * + 96 AS col1, + 69 * + 24
----
288
1656

query I rowsort
SELECT ALL + 30 * + 56 AS col2
----
1680

query I rowsort
SELECT 32 - - 11
----
43

query I rowsort
SELECT DISTINCT - 58 * + + 46 AS col0
----
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT DISTINCT COUNT( 80 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT COUNT ( 80 ) AS col0
----
1

query I rowsort
SELECT 31 + + + 2 AS col2
----
33

query I rowsort
SELECT 41 + - + 55 AS col2
----
-14

query I rowsort
SELECT 76 - + COALESCE ( 28, + - 82 - 67 + - + 2 + - 51, 85 - - 40 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7207
SELECT DISTINCT SUM( DISTINCT 57 ) AS col1, 35 + + + CASE - 84 WHEN 61 + 0 + - CASE - 43 WHEN + + 42 * + 19 / + + 15 THEN NULL WHEN - 21 THEN + + 81 + - 49 + + 69 + - COUNT( - 36 ) * + 53 + + + ( - COUNT( * ) ) + - 53 END * + - 23 THEN + ( + 34 ) + 80 ELSE NULL END
----
57
NULL

skipif mysql # not compatible
query II rowsort label-7207
SELECT DISTINCT SUM ( DISTINCT 57 ) AS col1, 35 + + + CASE - 84 WHEN 61 + 0 + - CASE - 43 WHEN + + 42 * + 19 / + + 15 THEN NULL WHEN - 21 THEN + + 81 + - 49 + + 69 + - COUNT ( - 36 ) * + 53 + + + ( - COUNT ( * ) ) + - 53 END * + - 23 THEN + ( + 34 ) + 80 ELSE NULL END
----
57
NULL

query I rowsort
SELECT DISTINCT - 91 * - 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7209
SELECT 64 DIV + + 86
----
0

skipif mysql # not compatible
query I rowsort label-7209
SELECT 64 / + + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT + - MAX( ALL - - 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7210
SELECT + - MAX ( ALL - - 3 ) AS col2
----
-3

query I rowsort
SELECT + + NULLIF ( + 22, 57 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7212
SELECT 13 * - CASE - AVG ( - COALESCE ( - 56, 79 ) ) WHEN + + 97 THEN + 79 ELSE + CAST( NULL AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7212
SELECT 13 * - CASE - AVG ( - COALESCE ( - 56, 79 ) ) WHEN + + 97 THEN + 79 ELSE + CAST ( NULL AS INTEGER ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT 43 + 85 + - - 52 * 66 * - CASE + - MIN( DISTINCT - + 84 ) WHEN + + 58 THEN - - 31 END * + + ( + - 11 ) + - 95 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT 43 + 85 + - - 52 * 66 * - CASE + - MIN ( DISTINCT - + 84 ) WHEN + + 58 THEN - - 31 END * + + ( + - 11 ) + - 95 + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7214
SELECT + CASE - + 81 WHEN - 50 THEN + 13 * + 31 + + + 63 - - CAST( + 77 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7214
SELECT + CASE - + 81 WHEN - 50 THEN + 13 * + 31 + + + 63 - - CAST ( + 77 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 0 * - 72 + 28 + + 32 AS col2
----
60

query I rowsort
SELECT 33 * 81 AS col0
----
2673

onlyif mysql # DIV for integer division: 
query I rowsort label-7217
SELECT DISTINCT + 14 DIV + - 24
----
0

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT + 14 / + - 24
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7218
SELECT ( - 45 ) AS col0, - 9 DIV 83 AS col0
----
-45
0

skipif mysql # not compatible
query II rowsort label-7218
SELECT ( - 45 ) AS col0, - 9 / 83 AS col0
----
-45
0

query I rowsort
SELECT + + 76 + + - 58
----
18

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT - CAST( - CAST( - NULLIF ( - 62, - + 7 ) AS SIGNED ) AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-7221
SELECT - CAST ( - CAST ( - NULLIF ( - 62, - + 7 ) AS INTEGER ) AS INTEGER )
----
62

query I rowsort
SELECT - 47 * + 9 AS col2
----
-423

query I rowsort
SELECT DISTINCT + - COALESCE ( NULLIF ( + 1, 81 ), + - 39 + + 40 * 54 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7224
SELECT ALL + CAST( - 40 AS SIGNED ), 85 * - 87 AS col2
----
-40
-7395

skipif mysql # not compatible
query II rowsort label-7224
SELECT ALL + CAST ( - 40 AS INTEGER ), 85 * - 87 AS col2
----
-40
-7395

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT - 18 * + + SUM( - - 62 ) * - 53
----
59148

skipif mysql # not compatible
query I rowsort label-7226
SELECT - 18 * + + SUM ( - - 62 ) * - 53
----
59148

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

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

query I rowsort
SELECT + 30 + 41
----
71

query I rowsort
SELECT + 48 * - 27
----
-1296

query I rowsort
SELECT DISTINCT 53 * + - 61
----
-3233

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT DISTINCT + SUM( + - 17 )
----
-17

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

query I rowsort
SELECT - 83 * - - 12
----
-996

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT - 55 * - 47 + + - MAX( ALL + 25 )
----
2560

skipif mysql # not compatible
query I rowsort label-7233
SELECT - 55 * - 47 + + - MAX ( ALL + 25 )
----
2560

query I rowsort
SELECT - 76 + 87 col1
----
11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7236
SELECT + 47 DIV + + 42 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7236
SELECT + 47 / + + 42 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT - MIN( DISTINCT 23 ) + 78 + COUNT( * ) * + COUNT( DISTINCT + 54 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-7237
SELECT - MIN ( DISTINCT 23 ) + 78 + COUNT ( * ) * + COUNT ( DISTINCT + 54 ) AS col0
----
56

query I rowsort
SELECT - ( 32 ) col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7239
SELECT ALL + ( + 14 ) DIV + - ( - COUNT( * ) ) + - 47
----
-33

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL + ( + 14 ) / + - ( - COUNT ( * ) ) + - 47
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT ALL - COUNT( * ) + - 90 + + 59 * CASE 19 WHEN 50 THEN + ( + 48 ) - + 95 WHEN 0 * - - 25 + 67 THEN - 33 END + + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL - COUNT ( * ) + - 90 + + 59 * CASE 19 WHEN 50 THEN + ( + 48 ) - + 95 WHEN 0 * - - 25 + 67 THEN - 33 END + + 51 AS col1
----
NULL

query I rowsort
SELECT - 58 + - 9 * 85 AS col0
----
-823

query I rowsort
SELECT DISTINCT - 27 + + 54 AS col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7243
SELECT ALL + 72 * - COUNT( * ) * 40 col2, + 60 * - 75
----
-2880
-4500

skipif mysql # not compatible
query II rowsort label-7243
SELECT ALL + 72 * - COUNT ( * ) * 40 col2, + 60 * - 75
----
-2880
-4500

query I rowsort
SELECT ALL - 0 * - 38
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT ALL - COALESCE ( + + 16, 93 DIV 44 + - 3, + 70 + 80 ) + + ( + 68 ) + + 25 + + 89
----
166

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL - COALESCE ( + + 16, 93 / 44 + - 3, + 70 + 80 ) + + ( + 68 ) + + 25 + + 89
----
166

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7247
SELECT - COALESCE ( SUM( - + 56 ), - 51, COALESCE ( - COUNT( * ), + 57 * - - 5 * + COUNT( DISTINCT - 0 ) DIV COUNT( * ) * - + 19 * - + 58 * - CAST( NULL AS SIGNED ) + - 74 * - - COUNT( * ) DIV 41, + 13 ) * - + CASE - - 53 WHEN - 88 DIV + + 3 THEN + 53 END - - CASE + 60 WHEN + + 58 + 58 THEN - 62 * - 44 + - 57 * 76 ELSE NULL END DIV - 49 + 22, - 68 * 93 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7247
SELECT - COALESCE ( SUM ( - + 56 ), - 51, COALESCE ( - COUNT ( * ), + 57 * - - 5 * + COUNT ( DISTINCT - 0 ) / COUNT ( * ) * - + 19 * - + 58 * - CAST ( NULL AS INTEGER ) + - 74 * - - COUNT ( * ) / 41, + 13 ) * - + CASE - - 53 WHEN - 88 / + + 3 THEN + 53 END - - CASE + 60 WHEN + + 58 + 58 THEN - 62 * - 44 + - 57 * 76 ELSE NULL END / - 49 + 22, - 68 * 93 ) AS col1
----
56

query I rowsort
SELECT - - ( - - 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT ALL - ( - COUNT( * ) ) - - 39 * 77 AS col0
----
3004

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL - ( - COUNT ( * ) ) - - 39 * 77 AS col0
----
3004

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7250
SELECT - - 62 - - - ( + 39 ) DIV - - CAST( - 18 AS SIGNED ) + + + 52
----
116

skipif mysql # not compatible
query I rowsort label-7250
SELECT - - 62 - - - ( + 39 ) / - - CAST ( - 18 AS INTEGER ) + + + 52
----
116

query I rowsort
SELECT + 20 * + 64
----
1280

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT ALL + 61 DIV - 36 - + 68 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + 61 / - 36 - + 68 AS col2
----
-69

query I rowsort
SELECT - 87 * + 65 AS col2
----
-5655

query I rowsort
SELECT ALL + 85 * + + 87
----
7395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7255
SELECT + + COALESCE ( + 0, - 38 + + - 22 ) * + 33 DIV + SUM( ALL - 8 ) + - ( MIN( ALL 91 ) ) + + 45 + - - ( - + SUM( ALL + 35 ) ) - + + 78 * + 60 + 74 AS col2
----
-4687

skipif mysql # not compatible
query I rowsort label-7255
SELECT + + COALESCE ( + 0, - 38 + + - 22 ) * + 33 / + SUM ( ALL - 8 ) + - ( MIN ( ALL 91 ) ) + + 45 + - - ( - + SUM ( ALL + 35 ) ) - + + 78 * + 60 + 74 AS col2
----
-4687

onlyif mysql # DIV for integer division: 
query II rowsort label-7256
SELECT ALL + + 39, - 12 DIV + 49 - - + 30 AS col1
----
39
30

skipif mysql # not compatible
query II rowsort label-7256
SELECT ALL + + 39, - 12 / + 49 - - + 30 AS col1
----
39
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7257
SELECT DISTINCT COUNT( * ) * - 97 DIV + 30, 61 AS col0
----
-3
61

skipif mysql # not compatible
query II rowsort label-7257
SELECT DISTINCT COUNT ( * ) * - 97 / + 30, 61 AS col0
----
-3
61

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

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

query I rowsort
SELECT - + 35 * + CASE 79 WHEN 36 * CASE - 65 WHEN + 4 THEN NULL ELSE - 13 END THEN NULL WHEN - + 36 THEN 10 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL 6 * + + 40 + + 40 - + COUNT( ALL - 40 ) * COUNT( * ) * - 20 AS col2
----
300

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL 6 * + + 40 + + 40 - + COUNT ( ALL - 40 ) * COUNT ( * ) * - 20 AS col2
----
300

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7262
SELECT + 89 * + + 3 - + MAX( DISTINCT 79 ) - 85 AS col1, 74 AS col2
----
103
74

skipif mysql # not compatible
query II rowsort label-7262
SELECT + 89 * + + 3 - + MAX ( DISTINCT 79 ) - 85 AS col1, 74 AS col2
----
103
74

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

skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT + 30 * - - COUNT ( * ) AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7264
SELECT ALL - 75 * + - ( + 98 ) DIV + COUNT( * )
----
7350

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL - 75 * + - ( + 98 ) / + COUNT ( * )
----
7350

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7265
SELECT DISTINCT CAST( - 33 AS SIGNED ) DIV - + 59 * 47
----
0

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT CAST ( - 33 AS INTEGER ) / - + 59 * 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7266
SELECT + 83 DIV 80
----
1

skipif mysql # not compatible
query I rowsort label-7266
SELECT + 83 / 80
----
1

query I rowsort
SELECT ALL 76 * + - 81 + 56 AS col1
----
-6100

query I rowsort
SELECT + CASE 74 WHEN + 18 THEN NULL WHEN 1 THEN - - 89 END
----
NULL

query I rowsort
SELECT + 64 - + 33 + 51
----
82

query I rowsort
SELECT ALL - 0 * - + 69 + 33 AS col0
----
33

query I rowsort
SELECT COALESCE ( 9, - + 24 * - ( - + ( - 9 ) ) - + 56 + - - 54 * 56 * 5 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT 13 * 63 + + CASE + 25 WHEN ( + COUNT( * ) ) THEN + 48 ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT 13 * 63 + + CASE + 25 WHEN ( + COUNT ( * ) ) THEN + 48 ELSE NULL END * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL NULLIF ( + + 9, + ( - - AVG ( DISTINCT 97 ) ) )
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7274
SELECT - CAST( NULL AS SIGNED ), + 38 DIV 90 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7274
SELECT - CAST ( NULL AS INTEGER ), + 38 / 90 AS col0
----
NULL
0

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

skipif mysql # not compatible
query I rowsort label-7275
SELECT SUM ( DISTINCT - 55 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7276
SELECT ALL + 23 * 14 + + NULLIF ( + - 81, 79 / - 19 + + 34 ) + + COUNT( * ) * + CASE WHEN NOT CASE - MIN( + 82 ) WHEN + ( 23 ) + + + 42 THEN CASE SUM( 39 ) WHEN - SUM( - 72 ) + + + 96 + 10 + - COALESCE ( - 63, ( 61 ) ) * 85 THEN + + 25 WHEN + 71 + + COUNT( * ) THEN NULL END ELSE NULL END NOT BETWEEN NULL AND COUNT( * ) THEN + 66 * CAST( 59 AS SIGNED ) - COUNT( * ) * + 29 WHEN NOT ( + COUNT( * ) ) = - COUNT( * ) THEN NULL ELSE NULL END + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL + 23 * 14 + + NULLIF ( + - 81, 79 / - 19 + + 34 ) + + COUNT ( * ) * + CASE WHEN NOT CASE - MIN ( + 82 ) WHEN + ( 23 ) + + + 42 THEN CASE SUM ( 39 ) WHEN - SUM ( - 72 ) + + + 96 + 10 + - COALESCE ( - 63, ( 61 ) ) * 85 THEN + + 25 WHEN + 71 + + COUNT ( * ) THEN NULL END ELSE NULL END NOT BETWEEN NULL AND COUNT ( * ) THEN + 66 * CAST ( 59 AS INTEGER ) - COUNT ( * ) * + 29 WHEN NOT ( + COUNT ( * ) ) = - COUNT ( * ) THEN NULL ELSE NULL END + + 75
----
NULL

query I rowsort
SELECT DISTINCT ( - - 67 )
----
67

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

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

query I rowsort
SELECT - 87 - - + 92 * - - 98
----
8929

onlyif mysql # aggregate syntax: 
query II rowsort label-7280
SELECT ALL COUNT( * ), SUM( DISTINCT 99 ) col1
----
1
99

skipif mysql # not compatible
query II rowsort label-7280
SELECT ALL COUNT ( * ), SUM ( DISTINCT 99 ) col1
----
1
99

query I rowsort
SELECT - ( + 6 ) - - 65 * - COALESCE ( - - 30, 41 ) * + 48
----
-93606

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT + MIN( + - 30 ) * - COALESCE ( + 35, + SUM( DISTINCT + 48 ) + - + 54 ) AS col1
----
1050

skipif mysql # not compatible
query I rowsort label-7282
SELECT + MIN ( + - 30 ) * - COALESCE ( + 35, + SUM ( DISTINCT + 48 ) + - + 54 ) AS col1
----
1050

query II rowsort
SELECT - 84 AS col0, + 51 * - 88 AS col0
----
-84
-4488

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

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

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

query II rowsort
SELECT - - 94 AS col2, 58
----
94
58

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

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

query I rowsort
SELECT + ( + 0 ) + - + 95 + - + NULLIF ( + - 98, + 99 ) * - 15 * 88 AS col2
----
-129455

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

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

query II rowsort
SELECT - 2, 86 AS col0
----
-2
86

query I rowsort
SELECT - 48 + 79
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT ALL NULLIF ( - COALESCE ( + CASE + + 18 WHEN + CAST( 34 AS SIGNED ) THEN NULL WHEN 53 THEN + 68 * + - 1 * + 55 + - 59 ELSE NULL END, 4 ), + 59 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL NULLIF ( - COALESCE ( + CASE + + 18 WHEN + CAST ( 34 AS INTEGER ) THEN NULL WHEN 53 THEN + 68 * + - 1 * + 55 + - 59 ELSE NULL END, 4 ), + 59 ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7293
SELECT + 71 DIV COUNT( + 66 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7293
SELECT + 71 / COUNT ( + 66 ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7294
SELECT COUNT( DISTINCT - + 98 ) + - + CASE + + COUNT( * ) WHEN - 25 * + - 61 + + 39 THEN NULL WHEN + 79 * 46 THEN - + ( 61 ) * + + 34 + - - NULLIF ( + ( - + 64 ), + 38 * COUNT( * ) ) + - + 29 + + - COUNT( * ) END / ( CASE - + 95 WHEN - SUM( DISTINCT 46 ) * 10 - - - 71 + - 18 THEN NULL WHEN + + COUNT( * ) - - CAST( NULL AS SIGNED ) * - - 89 * - 6 THEN NULL ELSE 15 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT COUNT ( DISTINCT - + 98 ) + - + CASE + + COUNT ( * ) WHEN - 25 * + - 61 + + 39 THEN NULL WHEN + 79 * 46 THEN - + ( 61 ) * + + 34 + - - NULLIF ( + ( - + 64 ), + 38 * COUNT ( * ) ) + - + 29 + + - COUNT ( * ) END / ( CASE - + 95 WHEN - SUM ( DISTINCT 46 ) * 10 - - - 71 + - 18 THEN NULL WHEN + + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * - - 89 * - 6 THEN NULL ELSE 15 END )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT + 98 + - 73 * - - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-7296
SELECT + 98 + - 73 * - - COUNT ( * )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT - 28 DIV + 14 - 28 + 48 col0
----
18

skipif mysql # not compatible
query I rowsort label-7297
SELECT - 28 / + 14 - 28 + 48 col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7298
SELECT - CAST( NULL AS SIGNED ) * - CAST( - CASE - 4 WHEN COUNT( * ) THEN NULL ELSE + ( - + CAST( - 35 AS SIGNED ) ) * + COUNT( ALL 61 ) END AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7298
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( - CASE - 4 WHEN COUNT ( * ) THEN NULL ELSE + ( - + CAST ( - 35 AS INTEGER ) ) * + COUNT ( ALL 61 ) END AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7299
SELECT - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * + + MIN( ALL - - ( + + 24 ) ) + - 15 + + 80 * - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + MIN ( ALL - - ( + + 24 ) ) + - 15 + + 80 * - 17 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7300
SELECT ALL - NULLIF ( + ( + ( + + 0 ) ), + 23 DIV + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL - NULLIF ( + ( + ( + + 0 ) ), + 23 / + 81 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7301
SELECT + 87 * CAST( + 67 AS SIGNED )
----
5829

skipif mysql # not compatible
query I rowsort label-7301
SELECT + 87 * CAST ( + 67 AS INTEGER )
----
5829

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT ALL + 18 + 61 + + COUNT( * ) + + 86 * - + 24 + - COUNT( 13 ) * + 47
----
-2031

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL + 18 + 61 + + COUNT ( * ) + + 86 * - + 24 + - COUNT ( 13 ) * + 47
----
-2031

query I rowsort
SELECT DISTINCT - 60 + 3
----
-57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7305
SELECT ALL MIN( DISTINCT - 64 ) + - ( - 63 ) * - NULLIF ( - - 36, CAST( NULL AS SIGNED ) * 52 - - + 46 )
----
-2332

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL MIN ( DISTINCT - 64 ) + - ( - 63 ) * - NULLIF ( - - 36, CAST ( NULL AS INTEGER ) * 52 - - + 46 )
----
-2332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7306
SELECT 7 DIV - ( - + 57 ) + - 58 - + + MIN( ALL 94 ) - - + 48 DIV - 63 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-7306
SELECT 7 / - ( - + 57 ) + - 58 - + + MIN ( ALL 94 ) - - + 48 / - 63 AS col1
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT COALESCE ( + 20, + 89 * + COALESCE ( - 84, + + 9 * + 53, - + 97 ), - - 64 * - - 23 + - COUNT( * ) * + - COUNT( * ) * + 79 * - + 91, - - 32 ) + COUNT( * ) * - - 47 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7307
SELECT COALESCE ( + 20, + 89 * + COALESCE ( - 84, + + 9 * + 53, - + 97 ), - - 64 * - - 23 + - COUNT ( * ) * + - COUNT ( * ) * + 79 * - + 91, - - 32 ) + COUNT ( * ) * - - 47 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT DISTINCT + 99 + - MIN( DISTINCT 41 ) * - 14
----
673

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT + 99 + - MIN ( DISTINCT 41 ) * - 14
----
673

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT 31 + + 77 + - COUNT( * ) + + 19 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-7309
SELECT 31 + + 77 + - COUNT ( * ) + + 19 AS col2
----
126

query I rowsort
SELECT 41 + - 84 AS col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7311
SELECT DISTINCT + NULLIF ( + 24, 74 ) + - COUNT( * ) DIV - 42
----
24

skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT + NULLIF ( + 24, 74 ) + - COUNT ( * ) / - 42
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7312
SELECT DISTINCT 22 / CAST( NULL AS SIGNED ) * + CAST( - 76 AS SIGNED ) * 57 - - 0 + + 44 + + 85 * + 22 * + 66 + + 77 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT 22 / CAST ( NULL AS INTEGER ) * + CAST ( - 76 AS INTEGER ) * 57 - - 0 + + 44 + + 85 * + 22 * + 66 + + 77 col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7313
SELECT ALL 81 + + 61 - - 75 * 7 DIV - 89 + + 36 * 16 AS col2, 98 AS col1
----
713
98

skipif mysql # not compatible
query II rowsort label-7313
SELECT ALL 81 + + 61 - - 75 * 7 / - 89 + + 36 * 16 AS col2, 98 AS col1
----
713
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7314
SELECT + COUNT( * ) * - 70 + - 65 + 81 + ( + - COUNT( * ) ) DIV - COUNT( ALL - 25 ) + 8 * + ( + 22 )
----
123

skipif mysql # not compatible
query I rowsort label-7314
SELECT + COUNT ( * ) * - 70 + - 65 + 81 + ( + - COUNT ( * ) ) / - COUNT ( ALL - 25 ) + 8 * + ( + 22 )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT 76 + + COUNT( * ) - - - 44 * - ( - NULLIF ( + 23, + + 78 ) ) AS col0
----
-935

skipif mysql # not compatible
query I rowsort label-7315
SELECT 76 + + COUNT ( * ) - - - 44 * - ( - NULLIF ( + 23, + + 78 ) ) AS col0
----
-935

query I rowsort
SELECT ( 75 ) + + - 21 AS col1
----
54

query I rowsort
SELECT 8 + - 34 + - 75 AS col1
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-7318
SELECT - ( 77 ), MIN( - 26 ) * SUM( ALL - 50 ) AS col1
----
-77
1300

skipif mysql # not compatible
query II rowsort label-7318
SELECT - ( 77 ), MIN ( - 26 ) * SUM ( ALL - 50 ) AS col1
----
-77
1300

query I rowsort
SELECT ALL 38 * - + 47 AS col0
----
-1786

onlyif mysql # DIV for integer division: 
query I rowsort label-7320
SELECT 57 DIV ( - - 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7320
SELECT 57 / ( - - 45 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT MIN( - 40 ) - - - 21
----
-61

skipif mysql # not compatible
query I rowsort label-7321
SELECT MIN ( - 40 ) - - - 21
----
-61

query I rowsort
SELECT ALL 27 + 34
----
61

query I rowsort
SELECT ALL - 59 * - 17 * 83 + - 81 + - - 53 AS col2
----
83221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7324
SELECT DISTINCT 50 DIV - 65 + + COALESCE ( - 66, 31 * + COALESCE ( - 24, + ( + COUNT( * ) ) * + COALESCE ( - 68, + 6 - + 34, + 88 * 27 + 14, - ( - 94 ) ), - CAST( + + CASE - ( + 63 ) WHEN AVG ( ALL 37 ) THEN - ( + ( COUNT( * ) ) ) ELSE NULL END AS SIGNED ) DIV 32 ) + - - 86 + 87 * - 36, + 44 ) - - 59
----
-7

skipif mysql # not compatible
query I rowsort label-7324
SELECT DISTINCT 50 / - 65 + + COALESCE ( - 66, 31 * + COALESCE ( - 24, + ( + COUNT ( * ) ) * + COALESCE ( - 68, + 6 - + 34, + 88 * 27 + 14, - ( - 94 ) ), - CAST ( + + CASE - ( + 63 ) WHEN AVG ( ALL 37 ) THEN - ( + ( COUNT ( * ) ) ) ELSE NULL END AS INTEGER ) / 32 ) + - - 86 + 87 * - 36, + 44 ) - - 59
----
-7

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7326
SELECT ALL + COALESCE ( 43, 30, + COALESCE ( + COUNT( * ), 72 * 74 ) * + 88 - 14 + + COUNT( * ) - - 53 ) + COUNT( * ) + + - CAST( NULL AS DECIMAL ) * + + ( - 2 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL + COALESCE ( 43, 30, + COALESCE ( + COUNT ( * ), 72 * 74 ) * + 88 - 14 + + COUNT ( * ) - - 53 ) + COUNT ( * ) + + - CAST ( NULL AS REAL ) * + + ( - 2 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT 67 + - - 33 * + + 29 * + MAX( DISTINCT + 86 ) col1
----
82369

skipif mysql # not compatible
query I rowsort label-7327
SELECT 67 + - - 33 * + + 29 * + MAX ( DISTINCT + 86 ) col1
----
82369

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7328
SELECT + 0 AS col1, - CAST( + + 66 AS SIGNED ) + - 45
----
0
-111

skipif mysql # not compatible
query II rowsort label-7328
SELECT + 0 AS col1, - CAST ( + + 66 AS INTEGER ) + - 45
----
0
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7329
SELECT ALL - 13 + + COUNT( * ) + 64 * + - COUNT( + 83 ) + + + NULLIF ( - 26, + 17 ) * - COUNT( * ) DIV + + NULLIF ( + - COUNT( * ), - - COUNT( * ) * - 68 ) + + + 96 col0
----
-6

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - 13 + + COUNT ( * ) + 64 * + - COUNT ( + 83 ) + + + NULLIF ( - 26, + 17 ) * - COUNT ( * ) / + + NULLIF ( + - COUNT ( * ), - - COUNT ( * ) * - 68 ) + + + 96 col0
----
-6

query I rowsort
SELECT 47 * - 43
----
-2021

query I rowsort
SELECT ALL + 13 - + 11 AS col0
----
2

query I rowsort
SELECT ALL 81 * - + 86 * - 57 AS col0
----
397062

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7333
SELECT DISTINCT 40 - - - COUNT( * ) - + 37 DIV 96 * + 93 * - 33 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT 40 - - - COUNT ( * ) - + 37 / 96 * + 93 * - 33 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7334
SELECT ALL 99 * - ( + COUNT( * ) ) * - + ( + - NULLIF ( + 30, - 40 * - 83 / + + CAST( + - 42 AS SIGNED ) * + 27 * + + 55 + + 91 ) ) AS col0
----
-2970

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL 99 * - ( + COUNT ( * ) ) * - + ( + - NULLIF ( + 30, - 40 * - 83 / + + CAST ( + - 42 AS INTEGER ) * + 27 * + + 55 + + 91 ) ) AS col0
----
-2970

onlyif mysql # aggregate syntax: 
query II rowsort label-7335
SELECT 40 + + 60 * - + COUNT( * ) col1, - 86 + - - 32 * - + 45 * + 38 col1
----
-20
-54806

skipif mysql # not compatible
query II rowsort label-7335
SELECT 40 + + 60 * - + COUNT ( * ) col1, - 86 + - - 32 * - + 45 * + 38 col1
----
-20
-54806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7336
SELECT 17 AS col2, + 99 * + 64 * + - SUM( CAST( ( 63 ) AS SIGNED ) ) + - ( + 74 ) * - - 69 AS col2
----
17
-404274

skipif mysql # not compatible
query II rowsort label-7336
SELECT 17 AS col2, + 99 * + 64 * + - SUM ( CAST ( ( 63 ) AS INTEGER ) ) + - ( + 74 ) * - - 69 AS col2
----
17
-404274

query II rowsort
SELECT + 71 AS col2, 95 AS col1
----
71
95

query II rowsort
SELECT 55, + 5 col0
----
55
5

query I rowsort
SELECT ALL - 50 * - - 79 AS col2
----
-3950

query I rowsort
SELECT 56 - - + 30 - + 68
----
18

query II rowsort
SELECT 69 AS col0, 53
----
69
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7342
SELECT DISTINCT - 8 AS col2, SUM( ALL + 35 ) AS col2
----
-8
35

skipif mysql # not compatible
query II rowsort label-7342
SELECT DISTINCT - 8 AS col2, SUM ( ALL + 35 ) AS col2
----
-8
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT ALL - 69 * + ( + + 82 ) * - + 1 - + - ( MAX( ALL - - 75 ) ) AS col2
----
5733

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL - 69 * + ( + + 82 ) * - + 1 - + - ( MAX ( ALL - - 75 ) ) AS col2
----
5733

query I rowsort
SELECT + + 0 + 67
----
67

query II rowsort
SELECT + 14 AS col1, + 44 * + 60
----
14
2640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7346
SELECT ALL + 78 * + + 60 + - 66 + - CAST( NULL AS DECIMAL ) / - COUNT( * ) * - + CAST( - - CASE + - 58 WHEN + SUM( - 39 ) * - 78 * - + 60 * 48 + + 0 / - NULLIF ( 27, + 82 ) * - + 34 + + ( 42 ) THEN NULL WHEN 68 - - 52 + - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) THEN 83 * 85 * + 50 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL + 78 * + + 60 + - 66 + - CAST ( NULL AS REAL ) / - COUNT ( * ) * - + CAST ( - - CASE + - 58 WHEN + SUM ( - 39 ) * - 78 * - + 60 * 48 + + 0 / - NULLIF ( 27, + 82 ) * - + 34 + + ( 42 ) THEN NULL WHEN 68 - - 52 + - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN 83 * 85 * + 50 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT + 53 - 2 - 60 AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7348
SELECT ALL + CAST( - COUNT( + - 68 ) AS SIGNED ) / + ( + + CASE 30 WHEN ( + COUNT( * ) ) - - 78 + COUNT( * ) THEN + 11 + + - ( COUNT( * ) ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL + CAST ( - COUNT ( + - 68 ) AS INTEGER ) / + ( + + CASE 30 WHEN ( + COUNT ( * ) ) - - 78 + COUNT ( * ) THEN + 11 + + - ( COUNT ( * ) ) ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT + + 92 * + + CASE - 32 WHEN + 67 THEN + 18 END + - 9
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7350
SELECT DISTINCT - 87 DIV - 26
----
3

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT - 87 / - 26
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT + - ( - COUNT( * ) ) * - COUNT( * ) + + 48 - + - 62 * 12
----
791

skipif mysql # not compatible
query I rowsort label-7351
SELECT + - ( - COUNT ( * ) ) * - COUNT ( * ) + + 48 - + - 62 * 12
----
791

query I rowsort
SELECT + ( + + 96 ) + 6 - + 54 + - 78 AS col2
----
-30

query I rowsort
SELECT - + 48 + - 29
----
-77

query II rowsort
SELECT - 99, + 37 * + 40 * - 34 AS col1
----
-99
-50320

onlyif mysql # DIV for integer division: 
query I rowsort label-7355
SELECT + - 73 + 16 DIV 90
----
-73

skipif mysql # not compatible
query I rowsort label-7355
SELECT + - 73 + 16 / 90
----
-73

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

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

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

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

query I rowsort
SELECT ALL + 93 + - 98
----
-5

query II rowsort
SELECT - 22, 77 AS col2
----
-22
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL SUM( ALL + - 80 ) + 83 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL SUM ( ALL + - 80 ) + 83 AS col1
----
3

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-7364
SELECT - COUNT ( * ) * + 63, - 75 AS col2
----
-63
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7365
SELECT ALL - 54 DIV 31
----
-1

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL - 54 / 31
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7367
SELECT 45 * - 36 DIV - COUNT( * ) + - CAST( 61 AS SIGNED ) AS col2
----
1559

skipif mysql # not compatible
query I rowsort label-7367
SELECT 45 * - 36 / - COUNT ( * ) + - CAST ( 61 AS INTEGER ) AS col2
----
1559

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT - COUNT( - 64 ) * - 90 * + COUNT( - 74 ) - - 41
----
131

skipif mysql # not compatible
query I rowsort label-7368
SELECT - COUNT ( - 64 ) * - 90 * + COUNT ( - 74 ) - - 41
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT - COUNT( DISTINCT - + 2 ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7369
SELECT - COUNT ( DISTINCT - + 2 ) + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( + 22, + - 9 ) col0
----
22

query I rowsort
SELECT + 75 * 47
----
3525

onlyif mysql # aggregate syntax: 
query III rowsort label-7372
SELECT DISTINCT + COALESCE ( 37, - + COUNT( * ) * - COUNT( * ) ), 76 AS col1, + - 94 AS col1
----
37
76
-94

skipif mysql # not compatible
query III rowsort label-7372
SELECT DISTINCT + COALESCE ( 37, - + COUNT ( * ) * - COUNT ( * ) ), 76 AS col1, + - 94 AS col1
----
37
76
-94

query I rowsort
SELECT - 28 + - 35 AS col2
----
-63

query I rowsort
SELECT 82 * 35 * 22 + - 39 AS col2
----
63101

query I rowsort
SELECT DISTINCT 69 * + + 51
----
3519

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7377
SELECT ALL + - CAST( 49 AS SIGNED ), SUM( DISTINCT - 11 ) DIV - + 9 + - - 9 col1
----
-49
10

skipif mysql # not compatible
query II rowsort label-7377
SELECT ALL + - CAST ( 49 AS INTEGER ), SUM ( DISTINCT - 11 ) / - + 9 + - - 9 col1
----
-49
10

query I rowsort
SELECT - - 38 + 65 + 4
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT - + ( - SUM( - 54 ) ) * 56 * - 74 * 54
----
12083904

skipif mysql # not compatible
query I rowsort label-7379
SELECT - + ( - SUM ( - 54 ) ) * 56 * - 74 * 54
----
12083904

query I rowsort
SELECT - + 63 + - 68 * + 67 AS col1
----
-4619

onlyif mysql # DIV for integer division: 
query I rowsort label-7381
SELECT - 60 DIV 69 * - 80 col2
----
0

skipif mysql # not compatible
query I rowsort label-7381
SELECT - 60 / 69 * - 80 col2
----
0

query I rowsort
SELECT DISTINCT + 24 * + + 10 * + 52 AS col1
----
12480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7383
SELECT - ( 34 ) + 62 + + + CAST( NULL AS SIGNED ) / + + NULLIF ( + 7, + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT - ( 34 ) + 62 + + + CAST ( NULL AS INTEGER ) / + + NULLIF ( + 7, + + COUNT ( * ) )
----
NULL

query II rowsort
SELECT DISTINCT + - 0 * 4 AS col0, 7
----
0
7

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

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

query I rowsort
SELECT ALL - 39 + 61 - - 59 AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT ALL + 81 + + 43 + - CAST( NULL AS SIGNED ) * 97 * 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL + 81 + + 43 + - CAST ( NULL AS INTEGER ) * 97 * 79 AS col1
----
NULL

query I rowsort
SELECT - + 76 * - + 31 + 63
----
2419

query I rowsort
SELECT - NULLIF ( + 24, CASE - + ( - - 14 ) WHEN - + 20 - + 90 THEN NULL ELSE - 63 + - 49 END ) AS col2
----
-24

query I rowsort
SELECT + 48 + - 20
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7391
SELECT - CAST( MAX( 76 ) AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-7391
SELECT - CAST ( MAX ( 76 ) AS INTEGER ) AS col0
----
-76

query I rowsort
SELECT ALL 30 - 15 AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7393
SELECT DISTINCT COALESCE ( 7, - 63 DIV + 52 * - 69 DIV + - 65, - CAST( + + COUNT( * ) AS SIGNED ) * - + 38 ) * + 3 AS col1, 44 + - + SUM( DISTINCT + + 53 ) AS col2
----
21
-9

skipif mysql # not compatible
query II rowsort label-7393
SELECT DISTINCT COALESCE ( 7, - 63 / + 52 * - 69 / + - 65, - CAST ( + + COUNT ( * ) AS INTEGER ) * - + 38 ) * + 3 AS col1, 44 + - + SUM ( DISTINCT + + 53 ) AS col2
----
21
-9

query I rowsort
SELECT + 58 * + 23 AS col0
----
1334

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

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

query I rowsort
SELECT ALL 70 * - + 10 * - + 56
----
39200

query I rowsort
SELECT + 76 - + - 71 AS col0
----
147

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7398
SELECT CAST( + + ( 4 ) AS SIGNED ) AS col2, + 27 + - 46 DIV - + 22 + - - 90 + - 17
----
4
102

skipif mysql # not compatible
query II rowsort label-7398
SELECT CAST ( + + ( 4 ) AS INTEGER ) AS col2, + 27 + - 46 / - + 22 + - - 90 + - 17
----
4
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT - ( + SUM( - + 66 ) ) * + + 92 AS col2
----
6072

skipif mysql # not compatible
query I rowsort label-7399
SELECT - ( + SUM ( - + 66 ) ) * + + 92 AS col2
----
6072

query II rowsort
SELECT + 66 AS col1, 6
----
66
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7401
SELECT DISTINCT - 17, MIN( DISTINCT + ( + 92 ) ) * - 78 * 34 * COUNT( * ) AS col2
----
-17
-243984

skipif mysql # not compatible
query II rowsort label-7401
SELECT DISTINCT - 17, MIN ( DISTINCT + ( + 92 ) ) * - 78 * 34 * COUNT ( * ) AS col2
----
-17
-243984

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7402
SELECT DISTINCT CASE + CASE + 16 WHEN + 47 * + CAST( + 55 AS DECIMAL ) + 6 THEN ( - 54 ) END WHEN - 21 THEN - ( + COUNT( * ) ) + - 79 / - - 29 WHEN - - 35 THEN NULL ELSE NULL END + - + 39 - - - 0 * - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT CASE + CASE + 16 WHEN + 47 * + CAST ( + 55 AS REAL ) + 6 THEN ( - 54 ) END WHEN - 21 THEN - ( + COUNT ( * ) ) + - 79 / - - 29 WHEN - - 35 THEN NULL ELSE NULL END + - + 39 - - - 0 * - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT + 65 + + + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7403
SELECT + 65 + + + COUNT ( * ) AS col2
----
66

query I rowsort
SELECT 86 * + 19 AS col2
----
1634

query I rowsort
SELECT ALL 5 + - 43
----
-38

query I rowsort
SELECT DISTINCT + 28 * 30 AS col1
----
840

query I rowsort
SELECT - 48 * 78 AS col2
----
-3744

query I rowsort
SELECT - 88 + - 10 AS col1
----
-98

query I rowsort
SELECT ALL + 37 + + 47 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT - 15 + - + 79 - - 19 - - + 72 * + 7 * - 68 * - NULLIF ( - MIN( ALL - 65 ), + 51 / 42 + - + 30 ) * + + 71
----
158165205

skipif mysql # not compatible
query I rowsort label-7410
SELECT - 15 + - + 79 - - 19 - - + 72 * + 7 * - 68 * - NULLIF ( - MIN ( ALL - 65 ), + 51 / 42 + - + 30 ) * + + 71
----
158165205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7411
SELECT DISTINCT - 43 + + CAST( NULL AS SIGNED ) + + + ( 34 ) * - COUNT( * ), - 42 AS col1
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-7411
SELECT DISTINCT - 43 + + CAST ( NULL AS INTEGER ) + + + ( 34 ) * - COUNT ( * ), - 42 AS col1
----
NULL
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL - - 35 + + MAX( ALL - 40 )
----
-5

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - - 35 + + MAX ( ALL - 40 )
----
-5

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

skipif mysql # not compatible
query I rowsort label-7413
SELECT NULLIF ( - COUNT ( * ), CAST ( NULL AS INTEGER ) )
----
-1

query I rowsort
SELECT ALL + - 23 * + - 35 col1
----
805

query I rowsort
SELECT - 31 + + + 27
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7416
SELECT DISTINCT 36 AS col0, 26 * - - 67 + - COUNT( * ) + + 95 col0
----
36
1836

skipif mysql # not compatible
query II rowsort label-7416
SELECT DISTINCT 36 AS col0, 26 * - - 67 + - COUNT ( * ) + + 95 col0
----
36
1836

query I rowsort
SELECT ALL + 54 * - 61
----
-3294

query II rowsort
SELECT DISTINCT 45, 36 col1
----
45
36

query I rowsort
SELECT 40 * + 25
----
1000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7420
SELECT + 55 DIV + - COUNT( * ) + - 97 col1
----
-152

skipif mysql # not compatible
query I rowsort label-7420
SELECT + 55 / + - COUNT ( * ) + - 97 col1
----
-152

query II rowsort
SELECT ALL - 30, - 12 + - + 20 AS col0
----
-30
-32

query I rowsort
SELECT 66 + - + 41 AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7423
SELECT + 67 * + NULLIF ( + COUNT( * ), 99 ) * + 68 * - ( - 90 ) DIV - - 9 + + 26 * - - 98 + + 48 AS col0, 46 AS col1
----
48156
46

skipif mysql # not compatible
query II rowsort label-7423
SELECT + 67 * + NULLIF ( + COUNT ( * ), 99 ) * + 68 * - ( - 90 ) / - - 9 + + 26 * - - 98 + + 48 AS col0, 46 AS col1
----
48156
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT ALL COUNT( * ) * - SUM( DISTINCT - 90 )
----
90

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL COUNT ( * ) * - SUM ( DISTINCT - 90 )
----
90

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7426
SELECT 66 col1, - MIN( - 66 ) * 84 * + 79 * 97 AS col2
----
66
42483672

skipif mysql # not compatible
query II rowsort label-7426
SELECT 66 col1, - MIN ( - 66 ) * 84 * + 79 * 97 AS col2
----
66
42483672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7427
SELECT COALESCE ( + 33, - - 53 / - COUNT( * ) ) + 3 * 63 - + + 28 + + MAX( - + CAST( NULL AS SIGNED ) ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7427
SELECT COALESCE ( + 33, - - 53 / - COUNT ( * ) ) + 3 * 63 - + + 28 + + MAX ( - + CAST ( NULL AS INTEGER ) ) + - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 80 + + 41 + + ( 66 )
----
187

onlyif mysql # aggregate syntax: 
query III rowsort label-7429
SELECT + - 42 AS col1, - 70, COUNT( * ) AS col2
----
-42
-70
1

skipif mysql # not compatible
query III rowsort label-7429
SELECT + - 42 AS col1, - 70, COUNT ( * ) AS col2
----
-42
-70
1

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

query II rowsort
SELECT DISTINCT - 93 AS col1, - 6 + - - 25 AS col1
----
-93
19

query I rowsort
SELECT ALL + 75 + - 58 col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7433
SELECT 11 * + COUNT( * ) * + 97 + + 92 AS col1, 37 * ( + 19 ) AS col0
----
1159
703

skipif mysql # not compatible
query II rowsort label-7433
SELECT 11 * + COUNT ( * ) * + 97 + + 92 AS col1, 37 * ( + 19 ) AS col0
----
1159
703

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT ALL - + 0 * - - SUM( 28 )
----
0

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL - + 0 * - - SUM ( 28 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7435
SELECT - 35 DIV 12 + - + 67 + - COUNT( * ) * + 61
----
-130

skipif mysql # not compatible
query I rowsort label-7435
SELECT - 35 / 12 + - + 67 + - COUNT ( * ) * + 61
----
-130

query I rowsort
SELECT ALL 5 * 41 - - 56 AS col0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT 90 * - - SUM( + - 35 )
----
-3150

skipif mysql # not compatible
query I rowsort label-7437
SELECT 90 * - - SUM ( + - 35 )
----
-3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7438
SELECT ALL + 23 * - + 96 * - 19 + - CAST( - ( - + 86 ) AS SIGNED ) - - ( 28 ) * + 75 * + 7 * - COUNT( 41 ) * + COUNT( - 47 ) DIV - COUNT( * ) AS col2
----
56566

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL + 23 * - + 96 * - 19 + - CAST ( - ( - + 86 ) AS INTEGER ) - - ( 28 ) * + 75 * + 7 * - COUNT ( 41 ) * + COUNT ( - 47 ) / - COUNT ( * ) AS col2
----
56566

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT + 2 DIV - 21
----
0

skipif mysql # not compatible
query I rowsort label-7439
SELECT + 2 / - 21
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7440
SELECT - COUNT( * ), - 40 DIV - - COALESCE ( + MAX( ( + 89 ) ), - - ( - 24 ) ) - + 11 AS col0
----
-1
-11

skipif mysql # not compatible
query II rowsort label-7440
SELECT - COUNT ( * ), - 40 / - - COALESCE ( + MAX ( ( + 89 ) ), - - ( - 24 ) ) - + 11 AS col0
----
-1
-11

query I rowsort
SELECT + 11 + - 22
----
-11

query I rowsort
SELECT DISTINCT - - 58 - - + 89 AS col2
----
147

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7444
SELECT ALL 94 * + 89 + - + 72 DIV 91 + - + COUNT( * ) AS col0
----
8365

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL 94 * + 89 + - + 72 / 91 + - + COUNT ( * ) AS col0
----
8365

query I rowsort
SELECT 60 * + 68
----
4080

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7446
SELECT 66 + + CAST( NULL AS DECIMAL ) / + CAST( - ( 46 ) AS SIGNED ) * - ( + + 68 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT 66 + + CAST ( NULL AS REAL ) / + CAST ( - ( 46 ) AS INTEGER ) * - ( + + 68 ) col0
----
NULL

query I rowsort
SELECT ALL + 23 * - - 90
----
2070

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7448
SELECT DISTINCT - 5 + + CAST( CASE 43 WHEN + 20 THEN - - 0 WHEN - NULLIF ( - COUNT( * ), 68 + + + 27 ) * 52 * - 49 / - 4 * - + NULLIF ( - 35, 87 ) + - + COUNT( - 33 ) THEN - 62 ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT - 5 + + CAST ( CASE 43 WHEN + 20 THEN - - 0 WHEN - NULLIF ( - COUNT ( * ), 68 + + + 27 ) * 52 * - 49 / - 4 * - + NULLIF ( - 35, 87 ) + - + COUNT ( - 33 ) THEN - 62 ELSE NULL END AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7449
SELECT DISTINCT MAX( + CASE NULLIF ( - 2, - 79 * + CASE + 94 WHEN - 34 * 14 THEN + 83 END ) WHEN + + 29 DIV - 81 THEN NULL WHEN 86 DIV - 33 THEN 30 END ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT MAX ( + CASE NULLIF ( - 2, - 79 * + CASE + 94 WHEN - 34 * 14 THEN + 83 END ) WHEN + + 29 / - 81 THEN NULL WHEN 86 / - 33 THEN 30 END ) AS col2
----
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT ALL CASE - 8 WHEN - COALESCE ( - COUNT( 37 ), + COUNT( * ) ) * 37 - - 64 THEN - 13 * + - 60 WHEN SUM( ALL 17 ) * 99 THEN + 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL CASE - 8 WHEN - COALESCE ( - COUNT ( 37 ), + COUNT ( * ) ) * 37 - - 64 THEN - 13 * + - 60 WHEN SUM ( ALL 17 ) * 99 THEN + 93 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL + 77 * - 93 + 1 + 10 + + MAX( ALL - - 74 ) AS col0
----
-7076

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL + 77 * - 93 + 1 + 10 + + MAX ( ALL - - 74 ) AS col0
----
-7076

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT - 75 * 58 DIV 84 * 85
----
-4335

skipif mysql # not compatible
query I rowsort label-7453
SELECT - 75 * 58 / 84 * 85
----
-4335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7454
SELECT ALL CAST( + + 96 AS SIGNED ) * + + 95 + - + 76 + - COUNT( * ) AS col2
----
9043

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL CAST ( + + 96 AS INTEGER ) * + + 95 + - + 76 + - COUNT ( * ) AS col2
----
9043

query I rowsort
SELECT ALL + NULLIF ( - - 97, - 29 ) AS col1
----
97

query I rowsort
SELECT COALESCE ( - 67, - 31 + + 88 ) AS col1
----
-67

query I rowsort
SELECT - 51 * + 7
----
-357

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

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

query I rowsort
SELECT + - 59 * ( - 17 ) AS col2
----
1003

query I rowsort
SELECT - + 90 * + 88 * + - 62 + - 88
----
490952

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT DISTINCT + + NULLIF ( + ( - - COUNT( * ) ), + - 77 * + 68 / 8 )
----
1

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT + + NULLIF ( + ( - - COUNT ( * ) ), + - 77 * + 68 / 8 )
----
1

query II rowsort
SELECT ALL + 17 * - 36 + + 16 AS col2, 21 AS col2
----
-596
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT DISTINCT - + ( + 99 ) * + CAST( NULL AS SIGNED ) - 72 * - + 50 + - 11 - - 27 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT - + ( + 99 ) * + CAST ( NULL AS INTEGER ) - 72 * - + 50 + - 11 - - 27 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT + + CASE + 46 WHEN - 31 * - + 57 - + 0 THEN + SUM( + 42 ) END + - 99 * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7466
SELECT + + CASE + 46 WHEN - 31 * - + 57 - + 0 THEN + SUM ( + 42 ) END + - 99 * + 19
----
NULL

query I rowsort
SELECT + + 39 + + 93 * - 4 * 35 AS col1
----
-12981

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT DISTINCT - 69 DIV + 51 * + 64 DIV - - 58 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT - 69 / + 51 * + 64 / - - 58 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT + 89 * + COALESCE ( + + ( + 4 ), + 80, + 24 + - 94 - COUNT( * ) + + - NULLIF ( - 44, SUM( 45 ) / 37 + - 83 ) ) AS col1
----
356

skipif mysql # not compatible
query I rowsort label-7469
SELECT + 89 * + COALESCE ( + + ( + 4 ), + 80, + 24 + - 94 - COUNT ( * ) + + - NULLIF ( - 44, SUM ( 45 ) / 37 + - 83 ) ) AS col1
----
356

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT + MAX( ALL + + 87 ) * - 65 - - 55
----
-5600

skipif mysql # not compatible
query I rowsort label-7470
SELECT + MAX ( ALL + + 87 ) * - 65 - - 55
----
-5600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7471
SELECT + COUNT( * ) + - + COUNT( * ) + + CASE + + 71 WHEN - 3 THEN NULL WHEN 50 THEN CAST( - 61 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT + COUNT ( * ) + - + COUNT ( * ) + + CASE + + 71 WHEN - 3 THEN NULL WHEN 50 THEN CAST ( - 61 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7472
SELECT - COUNT( * ) DIV + COALESCE ( - MAX( DISTINCT 1 ), 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7472
SELECT - COUNT ( * ) / + COALESCE ( - MAX ( DISTINCT 1 ), 73 ) AS col1
----
1

query I rowsort
SELECT + 53 + - 94
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT + NULLIF ( - 51, - NULLIF ( 62, - ( + 59 ) ) ) + + - COUNT( * ) * - 19 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-7474
SELECT + NULLIF ( - 51, - NULLIF ( 62, - ( + 59 ) ) ) + + - COUNT ( * ) * - 19 AS col0
----
-32

query II rowsort
SELECT 10 AS col1, 56 * - 28 AS col2
----
10
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT + MAX( DISTINCT + 19 ) + - - 1 * 12 + + + 33
----
64

skipif mysql # not compatible
query I rowsort label-7476
SELECT + MAX ( DISTINCT + 19 ) + - - 1 * 12 + + + 33
----
64

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

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

query I rowsort
SELECT ALL 11 + - 99
----
-88

query I rowsort
SELECT ALL 70 + + 50
----
120

query I rowsort
SELECT - 34 + + 19 - 27
----
-42

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

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

query I rowsort
SELECT + 63 + 94 AS col0
----
157

onlyif mysql # aggregate syntax: 
query III rowsort label-7483
SELECT + ( 88 ) + - + COUNT( * ) AS col0, + 30 col0, - 60
----
87
30
-60

skipif mysql # not compatible
query III rowsort label-7483
SELECT + ( 88 ) + - + COUNT ( * ) AS col0, + 30 col0, - 60
----
87
30
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7484
SELECT - 20 * + 25 * - CAST( NULL AS SIGNED ) * - 34 - 50 + SUM( - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT - 20 * + 25 * - CAST ( NULL AS INTEGER ) * - 34 - 50 + SUM ( - 8 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7485
SELECT ALL - - 70 / - 79 + - 37 + - COUNT( * ) + + 65 + + CASE + 60 WHEN - 79 THEN - COUNT( * ) + 47 WHEN - - 28 THEN - MAX( + 4 ) * 74 WHEN - 60 * - 11 THEN NULL ELSE NULL END, COUNT( * ) * + 92 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-7485
SELECT ALL - - 70 / - 79 + - 37 + - COUNT ( * ) + + 65 + + CASE + 60 WHEN - 79 THEN - COUNT ( * ) + 47 WHEN - - 28 THEN - MAX ( + 4 ) * 74 WHEN - 60 * - 11 THEN NULL ELSE NULL END, COUNT ( * ) * + 92 AS col0
----
NULL
92

query II rowsort
SELECT + - 63 AS col0, - 67
----
-63
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-7487
SELECT ALL - - COUNT( ALL COALESCE ( + + 73, + - 37 ) ) * - ( 88 ) AS col0, - 90
----
-88
-90

skipif mysql # not compatible
query II rowsort label-7487
SELECT ALL - - COUNT ( ALL COALESCE ( + + 73, + - 37 ) ) * - ( 88 ) AS col0, - 90
----
-88
-90

query I rowsort
SELECT - - 78 + - + 34 AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT - 26 DIV + 39 * - - 36 DIV + + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7489
SELECT - 26 / + 39 * - - 36 / + + 31 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7490
SELECT DISTINCT + 65 DIV - - CAST( 52 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT + 65 / - - CAST ( 52 AS INTEGER ) AS col1
----
1

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

query II rowsort
SELECT + - 12 AS col2, - 39 * - 55 AS col0
----
-12
2145

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7493
SELECT DISTINCT + 71 AS col2, - 8 DIV COUNT( * ) * - 71 AS col2
----
71
568

skipif mysql # not compatible
query II rowsort label-7493
SELECT DISTINCT + 71 AS col2, - 8 / COUNT ( * ) * - 71 AS col2
----
71
568

query I rowsort
SELECT DISTINCT + 40 * 39
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT - CASE - 32 WHEN - 74 / + ( 15 ) + COUNT( * ) THEN NULL WHEN + ( 36 ) / + - COUNT( * ) THEN NULL ELSE - ( + 26 ) * + 9 END
----
234

skipif mysql # not compatible
query I rowsort label-7495
SELECT - CASE - 32 WHEN - 74 / + ( 15 ) + COUNT ( * ) THEN NULL WHEN + ( 36 ) / + - COUNT ( * ) THEN NULL ELSE - ( + 26 ) * + 9 END
----
234

query I rowsort
SELECT + 65 * - - 4 * - 58
----
-15080

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7498
SELECT ALL 6 + + NULLIF ( + - 17, - ( + 53 ) + + 84 + NULLIF ( + 20, 24 ) * - 3 + + 54 + CASE - 12 WHEN 84 + + + 96 + - 39 * - - NULLIF ( - 37, + + ( + 50 ) - - + 50 - 39 ) + + - 90 * - 24 * NULLIF ( 67, - CAST( NULL AS SIGNED ) ) * + 79 * NULLIF ( - + 64, 80 + - - CASE - COUNT( * ) WHEN + - 35 THEN NULL WHEN 78 + - 78 + - + 35 - + 80 / - 66 * + SUM( DISTINCT ( + 51 ) ) * + MAX( 31 * 64 ) THEN + 32 ELSE 86 END ) * + CAST( NULL AS SIGNED ) THEN - 84 + 68 * 54 END + 63 / + CASE - 95 - 58 * 47 WHEN 4 THEN CASE ( + 21 ) WHEN AVG ( 12 ) - - COUNT( * ) THEN 33 WHEN - SUM( DISTINCT 10 ) THEN NULL END END ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL 6 + + NULLIF ( + - 17, - ( + 53 ) + + 84 + NULLIF ( + 20, 24 ) * - 3 + + 54 + CASE - 12 WHEN 84 + + + 96 + - 39 * - - NULLIF ( - 37, + + ( + 50 ) - - + 50 - 39 ) + + - 90 * - 24 * NULLIF ( 67, - CAST ( NULL AS INTEGER ) ) * + 79 * NULLIF ( - + 64, 80 + - - CASE - COUNT ( * ) WHEN + - 35 THEN NULL WHEN 78 + - 78 + - + 35 - + 80 / - 66 * + SUM ( DISTINCT ( + 51 ) ) * + MAX ( 31 * 64 ) THEN + 32 ELSE 86 END ) * + CAST ( NULL AS INTEGER ) THEN - 84 + 68 * 54 END + 63 / + CASE - 95 - 58 * 47 WHEN 4 THEN CASE ( + 21 ) WHEN AVG ( 12 ) - - COUNT ( * ) THEN 33 WHEN - SUM ( DISTINCT 10 ) THEN NULL END END ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT 59 * 47 + MAX( + 94 ) * + + 88
----
11045

skipif mysql # not compatible
query I rowsort label-7499
SELECT 59 * 47 + MAX ( + 94 ) * + + 88
----
11045

query I rowsort
SELECT DISTINCT - 23 + + 36 AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7501
SELECT ALL - 5 + + - 32 + + COUNT( - - 82 ) AS col2, 62 - + 36 - - - COALESCE ( + 54, + COUNT( * ) ) AS col2
----
-36
-28

skipif mysql # not compatible
query II rowsort label-7501
SELECT ALL - 5 + + - 32 + + COUNT ( - - 82 ) AS col2, 62 - + 36 - - - COALESCE ( + 54, + COUNT ( * ) ) AS col2
----
-36
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL SUM( ALL 48 ) + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL SUM ( ALL 48 ) + + COUNT ( * )
----
49

query II rowsort
SELECT ALL 52 + - + 37 AS col2, ( - - NULLIF ( 85, - - 49 ) ) AS col0
----
15
85

query I rowsort
SELECT 1 + 90 + - 37 * + + 64 - - 12 + 24 AS col2
----
-2241

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7505
SELECT NULLIF ( CASE + 91 WHEN + 80 THEN + ( - COUNT( * ) ) ELSE NULL END, + - 12 * + 74 * + + CAST( NULL AS DECIMAL ) ) * - MIN( 34 ) + + + 67 + + + 84 - 92 / 14 / 41 - 23 / 99 * + 55 + + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7505
SELECT NULLIF ( CASE + 91 WHEN + 80 THEN + ( - COUNT ( * ) ) ELSE NULL END, + - 12 * + 74 * + + CAST ( NULL AS REAL ) ) * - MIN ( 34 ) + + + 67 + + + 84 - 92 / 14 / 41 - 23 / 99 * + 55 + + 40 AS col1
----
NULL

query I rowsort
SELECT 91 * 81
----
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT CASE - 70 WHEN ( + - 56 ) THEN NULL WHEN - ( - 37 ) / + 78 THEN NULL WHEN 26 THEN 96 * + - COUNT( * ) END + - ( - + 6 ) * ( + 58 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT CASE - 70 WHEN ( + - 56 ) THEN NULL WHEN - ( - 37 ) / + 78 THEN NULL WHEN 26 THEN 96 * + - COUNT ( * ) END + - ( - + 6 ) * ( + 58 ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT 29 * + ( + - 86 ) AS col0
----
-2494

query I rowsort
SELECT ALL 21 - + ( + - 72 ) * + - 0 * 7 AS col2
----
21

query I rowsort
SELECT ALL 98 * + - 70
----
-6860

query I rowsort
SELECT DISTINCT 26 - - - 3 + + - 57
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT DISTINCT + 51 * + COUNT( ALL 83 ) * - 23 + - COUNT( * ) * + + 57
----
-1230

skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT + 51 * + COUNT ( ALL 83 ) * - 23 + - COUNT ( * ) * + + 57
----
-1230

query I rowsort
SELECT CASE 25 WHEN + 34 * 98 + - 79 THEN + ( + 37 ) / - 36 - 43 - 82 END AS col2
----
NULL

query I rowsort
SELECT + + COALESCE ( - 27, - 83 ) AS col2
----
-27

query I rowsort
SELECT - 41 - + - 51 AS col2
----
10

query I rowsort
SELECT - 15 * + + 44 + + 8 col1
----
-652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7517
SELECT ALL + CAST( NULL AS SIGNED ) * + 24 * - - 96 - - CAST( 9 AS SIGNED ) col2, 97 + + COALESCE ( + - CASE 45 WHEN COUNT( * ) THEN + - 79 END, - 97 * 37 + - 25 + + COUNT( * ) * + 41 * + + ( + - COUNT( * ) ) ) AS col2
----
NULL
-3558

skipif mysql # not compatible
query II rowsort label-7517
SELECT ALL + CAST ( NULL AS INTEGER ) * + 24 * - - 96 - - CAST ( 9 AS INTEGER ) col2, 97 + + COALESCE ( + - CASE 45 WHEN COUNT ( * ) THEN + - 79 END, - 97 * 37 + - 25 + + COUNT ( * ) * + 41 * + + ( + - COUNT ( * ) ) ) AS col2
----
NULL
-3558

query I rowsort
SELECT - ( - - 65 ) * - 39 AS col2
----
2535

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT + NULLIF ( + + 41, - + AVG ( NULLIF ( 74, - - 83 * + + 15 ) ) + 78 * + + 73 + - + ( - - COUNT( * ) ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-7520
SELECT + NULLIF ( + + 41, - + AVG ( NULLIF ( 74, - - 83 * + + 15 ) ) + 78 * + + 73 + - + ( - - COUNT ( * ) ) ) AS col1
----
41

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

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - SUM ( + 91 ) * COUNT ( * ) AS col2
----
-91

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

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

query I rowsort
SELECT + 48 + 85 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT 3 * + COUNT( - 8 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7524
SELECT 3 * + COUNT ( - 8 ) AS col1
----
3

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

skipif mysql # not compatible
query I rowsort label-7525
SELECT 34 / + COUNT ( * ) AS col0
----
34

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

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

query I rowsort
SELECT ALL - + 9 + + 18
----
9

query I rowsort
SELECT 60 + 23 AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7529
SELECT DISTINCT + 91 + - COUNT( * ) - - CASE - 85 WHEN 54 - COUNT( * ) - + NULLIF ( + - 60, + + 80 * + 66 ) THEN NULL ELSE - 48 + + 93 + - 34 DIV 94 * 39 + 34 * - 96 END DIV - 2 - - + 9 * + 12
----
1807

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT + 91 + - COUNT ( * ) - - CASE - 85 WHEN 54 - COUNT ( * ) - + NULLIF ( + - 60, + + 80 * + 66 ) THEN NULL ELSE - 48 + + 93 + - 34 / 94 * 39 + 34 * - 96 END / - 2 - - + 9 * + 12
----
1807

query I rowsort
SELECT ALL - 37 + + - 5
----
-42

query I rowsort
SELECT 79 + 30 AS col1
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-7532
SELECT - 4 AS col0, + 49 * - COUNT( * )
----
-4
-49

skipif mysql # not compatible
query II rowsort label-7532
SELECT - 4 AS col0, + 49 * - COUNT ( * )
----
-4
-49

query I rowsort
SELECT ALL + 74 - - 72
----
146

query I rowsort
SELECT 84 * 98 col0
----
8232

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7535
SELECT - 13 col0, + 76 * CAST( NULL AS DECIMAL ) + - - 65 * - 70
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-7535
SELECT - 13 col0, + 76 * CAST ( NULL AS REAL ) + - - 65 * - 70
----
-13
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7536
SELECT ALL ( + - CAST( + 71 AS SIGNED ) ) DIV + ( + COUNT( ALL + + 88 ) ) + 32
----
-39

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL ( + - CAST ( + 71 AS INTEGER ) ) / + ( + COUNT ( ALL + + 88 ) ) + 32
----
-39

query I rowsort
SELECT 26 - 95
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7538
SELECT + MIN( DISTINCT + + ( + - 84 ) ) DIV + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7538
SELECT + MIN ( DISTINCT + + ( + - 84 ) ) / + 86 AS col0
----
0

query I rowsort
SELECT 34 * 36
----
1224

onlyif mysql # DIV for integer division: 
query I rowsort label-7540
SELECT ALL 42 DIV + 57 * + 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL 42 / + 57 * + 67 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL SUM( DISTINCT - 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL SUM ( DISTINCT - 1 ) AS col2
----
-1

query I rowsort
SELECT NULLIF ( 90, + 33 ) + 10
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT - 30 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-7543
SELECT - 30 / + 89
----
0

query I rowsort
SELECT 70 * + - 8
----
-560

query I rowsort
SELECT + 39 + + - 92 col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT DISTINCT + MAX( DISTINCT + - 50 ) * + 15 AS col1
----
-750

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT + MAX ( DISTINCT + - 50 ) * + 15 AS col1
----
-750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7547
SELECT ALL + COALESCE ( - - 67, - 50 DIV - 24 ) * ( + 17 ) * + MIN( - - 65 ) * + 6 + + - 94 AS col1
----
444116

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL + COALESCE ( - - 67, - 50 / - 24 ) * ( + 17 ) * + MIN ( - - 65 ) * + 6 + + - 94 AS col1
----
444116

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT - 53 * + + ( - 73 ) * - 17 * 37 * COUNT( * ) * + 4 + - + 87
----
-9734491

skipif mysql # not compatible
query I rowsort label-7548
SELECT - 53 * + + ( - 73 ) * - 17 * 37 * COUNT ( * ) * + 4 + - + 87
----
-9734491

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL - + COALESCE ( - + 8, - SUM( DISTINCT 44 ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL - + COALESCE ( - + 8, - SUM ( DISTINCT 44 ) ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7550
SELECT COUNT( * ) / + COUNT( * ) + - 56 + + 27 - - CASE - - 5 WHEN + 22 THEN NULL WHEN + - 19 + COUNT( * ) + - + 8 * + - 30 - CAST( NULL AS SIGNED ) + + 86 / + - 92 THEN + + 75 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7550
SELECT COUNT ( * ) / + COUNT ( * ) + - 56 + + 27 - - CASE - - 5 WHEN + 22 THEN NULL WHEN + - 19 + COUNT ( * ) + - + 8 * + - 30 - CAST ( NULL AS INTEGER ) + + 86 / + - 92 THEN + + 75 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT DISTINCT + 62 * + - CASE 20 WHEN 61 THEN - SUM( DISTINCT 15 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT + 62 * + - CASE 20 WHEN 61 THEN - SUM ( DISTINCT 15 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7552
SELECT ALL + COUNT( * ) * - 68 + + 22 AS col1, 39
----
-46
39

skipif mysql # not compatible
query II rowsort label-7552
SELECT ALL + COUNT ( * ) * - 68 + + 22 AS col1, 39
----
-46
39

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7554
SELECT ALL MAX( - CAST( NULL AS SIGNED ) ) * - 60 + - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL MAX ( - CAST ( NULL AS INTEGER ) ) * - 60 + - 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT + 78 * + - ( - COUNT( DISTINCT - 22 ) ) + + 50 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-7555
SELECT + 78 * + - ( - COUNT ( DISTINCT - 22 ) ) + + 50 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT ALL + COALESCE ( - 78, 10 * + 69, + 92 ) * + 64 + + MIN( DISTINCT - + 94 ) - + COUNT( * ) * - 62 * - MAX( ALL - 5 )
----
-4776

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL + COALESCE ( - 78, 10 * + 69, + 92 ) * + 64 + + MIN ( DISTINCT - + 94 ) - + COUNT ( * ) * - 62 * - MAX ( ALL - 5 )
----
-4776

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7558
SELECT ALL ( - 76 ) * CASE + 51 WHEN NULLIF ( + + 72, 81 ) THEN + ( - - 80 ) * + + 93 + - + 9 + + 65 * - SUM( - 72 ) * + 31 + + ( - 74 ) ELSE - 10 * - + 49 DIV + COUNT( * ) - + 66 END + - 13
----
-32237

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL ( - 76 ) * CASE + 51 WHEN NULLIF ( + + 72, 81 ) THEN + ( - - 80 ) * + + 93 + - + 9 + + 65 * - SUM ( - 72 ) * + 31 + + ( - 74 ) ELSE - 10 * - + 49 / + COUNT ( * ) - + 66 END + - 13
----
-32237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7559
SELECT + CASE - 11 WHEN - + ( - COALESCE ( 72, NULLIF ( - + COALESCE ( + + 21, - + ( - + AVG ( DISTINCT + + 46 ) ) ), + 49 + + AVG ( DISTINCT + 90 ) ) ) ) THEN - COUNT( * ) ELSE NULL END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT + CASE - 11 WHEN - + ( - COALESCE ( 72, NULLIF ( - + COALESCE ( + + 21, - + ( - + AVG ( DISTINCT + + 46 ) ) ), + 49 + + AVG ( DISTINCT + 90 ) ) ) ) THEN - COUNT ( * ) ELSE NULL END * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7560
SELECT ALL 79 * - CAST( NULL AS SIGNED ) + + ( - + 70 ) AS col2, - 25
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-7560
SELECT ALL 79 * - CAST ( NULL AS INTEGER ) + + ( - + 70 ) AS col2, - 25
----
NULL
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-7561
SELECT DISTINCT + 8 AS col2, + 14 + + 26 + - 71 * - 34 * - 97 * - NULLIF ( - COALESCE ( ( + 30 ), 43 ), - 48 / - 44 * + NULLIF ( + COUNT( * ), - 48 ) * 8 * - 16 + + 21 ) AS col1
----
8
-7024700

skipif mysql # not compatible
query II rowsort label-7561
SELECT DISTINCT + 8 AS col2, + 14 + + 26 + - 71 * - 34 * - 97 * - NULLIF ( - COALESCE ( ( + 30 ), 43 ), - 48 / - 44 * + NULLIF ( + COUNT ( * ), - 48 ) * 8 * - 16 + + 21 ) AS col1
----
8
-7024700

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT ALL - COUNT( * ) + 59 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL - COUNT ( * ) + 59 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL 47 * + NULLIF ( - 65, + + 96 ) * + + COALESCE ( 47, MAX( + ( - 12 ) ) )
----
-143585

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL 47 * + NULLIF ( - 65, + + 96 ) * + + COALESCE ( 47, MAX ( + ( - 12 ) ) )
----
-143585

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT ALL - 6 + SUM( - 0 ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL - 6 + SUM ( - 0 ) col2
----
-6

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7566
SELECT + 23 * + SUM( ( - 71 ) ) AS col0, SUM( DISTINCT - 48 ) * COUNT( * ) * - 85
----
-1633
4080

skipif mysql # not compatible
query II rowsort label-7566
SELECT + 23 * + SUM ( ( - 71 ) ) AS col0, SUM ( DISTINCT - 48 ) * COUNT ( * ) * - 85
----
-1633
4080

query I rowsort
SELECT - 28 * + - 58 * 52 * - 87
----
-7346976

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT ALL - COUNT( * ) - - 17 + 30 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL - COUNT ( * ) - - 17 + 30 AS col2
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT ALL + COALESCE ( 72, + COALESCE ( - 81, - 38, + COALESCE ( + SUM( - 2 ), + 41 ) ) ) - + 87
----
-15

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL + COALESCE ( 72, + COALESCE ( - 81, - 38, + COALESCE ( + SUM ( - 2 ), + 41 ) ) ) - + 87
----
-15

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

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

query I rowsort
SELECT - 86 + + ( + 34 ) * + 67
----
2192

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

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

query I rowsort
SELECT DISTINCT + 53 * + + 82
----
4346

onlyif mysql # aggregate syntax: 
query II rowsort label-7575
SELECT ALL COALESCE ( 21, - 30 + - 9, - + MIN( - 9 ) ) AS col2, - COUNT( * ) * - 34
----
21
34

skipif mysql # not compatible
query II rowsort label-7575
SELECT ALL COALESCE ( 21, - 30 + - 9, - + MIN ( - 9 ) ) AS col2, - COUNT ( * ) * - 34
----
21
34

query I rowsort
SELECT ALL + - 22 * + - 92 AS col0
----
2024

query I rowsort
SELECT - 0 * - + 20
----
0

query I rowsort
SELECT - - ( + - 75 ) * - 96
----
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT CASE - 16 WHEN 23 * - 7 * - COUNT( * ) + + - COUNT( * ) THEN - - 53 ELSE - COALESCE ( - 95, + 33, - 29 ) * - 58 END
----
-5510

skipif mysql # not compatible
query I rowsort label-7579
SELECT CASE - 16 WHEN 23 * - 7 * - COUNT ( * ) + + - COUNT ( * ) THEN - - 53 ELSE - COALESCE ( - 95, + 33, - 29 ) * - 58 END
----
-5510

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

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

query I rowsort
SELECT - - 30 * - 68
----
-2040

query I rowsort
SELECT ALL + NULLIF ( - 53, 35 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL 89 + - MAX( DISTINCT + 34 ) + + 60 + + 21 + 49 * + 6 * - 70 AS col0
----
-20444

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL 89 + - MAX ( DISTINCT + 34 ) + + 60 + + 21 + 49 * + 6 * - 70 AS col0
----
-20444

query I rowsort
SELECT ALL - - 30 + + + 93
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7585
SELECT DISTINCT + COUNT( * ) DIV 85 + - 16 col2
----
-16

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT + COUNT ( * ) / 85 + - 16 col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-7586
SELECT + + 14 DIV 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7586
SELECT + + 14 / 42 AS col1
----
0

query I rowsort
SELECT DISTINCT 78 * - 15 AS col2
----
-1170

onlyif mysql # aggregate syntax: 
query II rowsort label-7588
SELECT - 61 AS col0, COUNT( - 66 ) * + 32 + 55 AS col1
----
-61
87

skipif mysql # not compatible
query II rowsort label-7588
SELECT - 61 AS col0, COUNT ( - 66 ) * + 32 + 55 AS col1
----
-61
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7589
SELECT DISTINCT + 25, COUNT( * ) + + 96 + + + ( + 6 ) * 82 AS col0
----
25
589

skipif mysql # not compatible
query II rowsort label-7589
SELECT DISTINCT + 25, COUNT ( * ) + + 96 + + + ( + 6 ) * 82 AS col0
----
25
589

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7590
SELECT ALL 88 * - SUM( DISTINCT + 76 ) * - ( - 15 ) * + CASE + 78 WHEN - CASE WHEN NOT NULL IS NULL THEN 0 ELSE NULL END THEN + MAX( ALL + - 52 ) + + 19 END * + - 45 * + ( + 48 ) + ( + - ( + ( + 59 ) ) ) - + 26 / + + 89 * - + CAST( NULL AS DECIMAL ) + 74 - + COUNT( * ) + - - 1 + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL 88 * - SUM ( DISTINCT + 76 ) * - ( - 15 ) * + CASE + 78 WHEN - CASE WHEN NOT NULL IS NULL THEN 0 ELSE NULL END THEN + MAX ( ALL + - 52 ) + + 19 END * + - 45 * + ( + 48 ) + ( + - ( + ( + 59 ) ) ) - + 26 / + + 89 * - + CAST ( NULL AS REAL ) + 74 - + COUNT ( * ) + - - 1 + 82
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT + ( NULLIF ( - - 96, - CAST( NULL AS SIGNED ) + + 76 ) ) + + 40 + + 90 AS col2
----
226

skipif mysql # not compatible
query I rowsort label-7592
SELECT + ( NULLIF ( - - 96, - CAST ( NULL AS INTEGER ) + + 76 ) ) + + 40 + + 90 AS col2
----
226

query I rowsort
SELECT - 49 * - 68 - - ( + 16 ) AS col0
----
3348

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7596
SELECT - 5 * + - 66 AS col1, COUNT( * ) + - 85 AS col0
----
330
-84

skipif mysql # not compatible
query II rowsort label-7596
SELECT - 5 * + - 66 AS col1, COUNT ( * ) + - 85 AS col0
----
330
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT ALL - NULLIF ( + - 0, - + NULLIF ( + COUNT( ALL + 41 ), + 62 + - 44 + + COALESCE ( - + 37, + 86 ) * - 34 ) ) * 25 + 74
----
74

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL - NULLIF ( + - 0, - + NULLIF ( + COUNT ( ALL + 41 ), + 62 + - 44 + + COALESCE ( - + 37, + 86 ) * - 34 ) ) * 25 + 74
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7598
SELECT ALL 75 * 27 DIV - COUNT( * ) AS col2
----
-2025

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL 75 * 27 / - COUNT ( * ) AS col2
----
-2025

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

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT MIN ( 22 )
----
22

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT SUM ( DISTINCT ( - 77 ) )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7603
SELECT ALL COALESCE ( CAST( - 45 AS SIGNED ), - - 53 * + - 31 * - 73 )
----
-45

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL COALESCE ( CAST ( - 45 AS INTEGER ), - - 53 * + - 31 * - 73 )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-7604
SELECT + 33 DIV + + ( 18 )
----
1

skipif mysql # not compatible
query I rowsort label-7604
SELECT + 33 / + + ( 18 )
----
1

query I rowsort
SELECT + NULLIF ( + 42, 66 ) + + 75
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT ALL - CAST( - NULLIF ( 34, - 90 ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL - CAST ( - NULLIF ( 34, - 90 ) AS INTEGER )
----
34

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

skipif mysql # not compatible
query I rowsort label-7607
SELECT - COUNT ( * ) / + + ( - 29 ) col0
----
0

query I rowsort
SELECT DISTINCT - 48 + - 73 - + ( + + 58 ) + 43 * - + 61 + - - 29 * + - 59 col1
----
-4513

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT DISTINCT + 57 * + ( - 6 ) - - COUNT( * )
----
-341

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT + 57 * + ( - 6 ) - - COUNT ( * )
----
-341

query I rowsort
SELECT ALL - 87 + + 8
----
-79

query I rowsort
SELECT - + 24 * - 59 AS col2
----
1416

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT DISTINCT - MIN( DISTINCT - - 77 ) * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7612
SELECT DISTINCT - MIN ( DISTINCT - - 77 ) * - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7613
SELECT + MIN( + 12 ), + MAX( 62 ) + 80 * - COUNT( * ) * + + 59 + 36 + - + 55 AS col2
----
12
-4677

skipif mysql # not compatible
query II rowsort label-7613
SELECT + MIN ( + 12 ), + MAX ( 62 ) + 80 * - COUNT ( * ) * + + 59 + 36 + - + 55 AS col2
----
12
-4677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT 89 + + - CAST( + 97 AS SIGNED ) + 50 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7614
SELECT 89 + + - CAST ( + 97 AS INTEGER ) + 50 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7615
SELECT + COUNT( * ) * + + CAST( 92 AS SIGNED ) + + 13 * - + ( - 9 ) + - CASE - 95 WHEN - + 81 + - + 40 + - SUM( DISTINCT + NULLIF ( + 64, - 12 ) ) THEN + - ( CAST( - + 37 AS SIGNED ) ) * + - 24 WHEN + 94 * 13 + + - 15 * + - COALESCE ( - 35, MIN( ALL - 91 ), + - 84 ) THEN NULL WHEN - + 1 / + - 34 + - - 0 + - ( + ( - CASE - + 7 WHEN MIN( DISTINCT + + 80 ) THEN 52 WHEN + - 54 THEN NULL ELSE + 89 * - - ( - ( + 90 ) ) * - 50 * AVG ( DISTINCT 49 / + 96 ) END ) ) * 95 THEN NULL END + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT + COUNT ( * ) * + + CAST ( 92 AS INTEGER ) + + 13 * - + ( - 9 ) + - CASE - 95 WHEN - + 81 + - + 40 + - SUM ( DISTINCT + NULLIF ( + 64, - 12 ) ) THEN + - ( CAST ( - + 37 AS INTEGER ) ) * + - 24 WHEN + 94 * 13 + + - 15 * + - COALESCE ( - 35, MIN ( ALL - 91 ), + - 84 ) THEN NULL WHEN - + 1 / + - 34 + - - 0 + - ( + ( - CASE - + 7 WHEN MIN ( DISTINCT + + 80 ) THEN 52 WHEN + - 54 THEN NULL ELSE + 89 * - - ( - ( + 90 ) ) * - 50 * AVG ( DISTINCT 49 / + 96 ) END ) ) * 95 THEN NULL END + 78
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL + - ( - COUNT ( * ) ) + - CAST ( + - CAST ( + 53 AS INTEGER ) AS INTEGER ) + + 46 AS col1
----
100

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

skipif mysql # not compatible
query I rowsort label-7617
SELECT - SUM ( DISTINCT 27 )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT DISTINCT + 80 DIV + 82 * + 86
----
0

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT + 80 / + 82 * + 86
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7619
SELECT DISTINCT - 60 - + - CAST( 2 AS SIGNED ) + 66 + 26 + + - 35 * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT - 60 - + - CAST ( 2 AS INTEGER ) + 66 + 26 + + - 35 * + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7620
SELECT 4 + - + CAST( + - 17 AS SIGNED ) AS col2, - COUNT( * ) * - ( 76 ) AS col1
----
21
76

skipif mysql # not compatible
query II rowsort label-7620
SELECT 4 + - + CAST ( + - 17 AS INTEGER ) AS col2, - COUNT ( * ) * - ( 76 ) AS col1
----
21
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT ALL - 42 - ( - MAX( - 8 ) ) * - + 4 * + COUNT( * ) - 38 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - 42 - ( - MAX ( - 8 ) ) * - + 4 * + COUNT ( * ) - 38 AS col2
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7622
SELECT 10 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7622
SELECT 10 * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT DISTINCT - 33 DIV - 16 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT - 33 / - 16 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT MAX( 96 ) * - 58 * ( + 60 )
----
-334080

skipif mysql # not compatible
query I rowsort label-7624
SELECT MAX ( 96 ) * - 58 * ( + 60 )
----
-334080

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT ALL 94 * - CASE + 74 WHEN - - 82 * + 77 / + - 26 * 55 * - - 21 + - 28 THEN NULL WHEN 35 THEN COUNT( + 7 ) ELSE NULL END * - 34 - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL 94 * - CASE + 74 WHEN - - 82 * + 77 / + - 26 * 55 * - - 21 + - 28 THEN NULL WHEN 35 THEN COUNT ( + 7 ) ELSE NULL END * - 34 - - 59
----
NULL

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

query I rowsort
SELECT ALL 87 * - 57 AS col2
----
-4959

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

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

query I rowsort
SELECT ALL + 16 * 93
----
1488

query II rowsort
SELECT ALL - 90 col0, + 41
----
-90
41

query II rowsort
SELECT ALL - 64 AS col1, + 54 - - 65 * 20 * + 44 col0
----
-64
57254

onlyif mysql # DIV for integer division: 
query II rowsort label-7633
SELECT ALL - 74, + 81 + - + 9 DIV 10 AS col0
----
-74
81

skipif mysql # not compatible
query II rowsort label-7633
SELECT ALL - 74, + 81 + - + 9 / 10 AS col0
----
-74
81

query I rowsort
SELECT 25 * + 57 AS col1
----
1425

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7635
SELECT COALESCE ( + SUM( + 94 ), - CAST( - COUNT( * ) AS DECIMAL ) ) - - + CAST( NULL AS DECIMAL ) AS col2, - ( - 40 )
----
NULL
40

skipif mysql # not compatible
query II rowsort label-7635
SELECT COALESCE ( + SUM ( + 94 ), - CAST ( - COUNT ( * ) AS REAL ) ) - - + CAST ( NULL AS REAL ) AS col2, - ( - 40 )
----
NULL
40

query I rowsort
SELECT DISTINCT 93 + + + 89 * + 66 col2
----
5967

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT DISTINCT - + ( - + 91 ) * - 36 + + MAX( - 34 )
----
-3310

skipif mysql # not compatible
query I rowsort label-7637
SELECT DISTINCT - + ( - + 91 ) * - 36 + + MAX ( - 34 )
----
-3310

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7638
SELECT ALL + + 42 + 57 * ( - - 62 ) * - 5 + + COUNT( * ) AS col2, + CAST( NULL AS DECIMAL ) AS col0
----
-17627
NULL

skipif mysql # not compatible
query II rowsort label-7638
SELECT ALL + + 42 + 57 * ( - - 62 ) * - 5 + + COUNT ( * ) AS col2, + CAST ( NULL AS REAL ) AS col0
----
-17627
NULL

query I rowsort
SELECT DISTINCT 11 + - 50 + + 5
----
-34

query I rowsort
SELECT ALL - 58 * - - 12 * 14 AS col2
----
-9744

query I rowsort
SELECT 78 + - 79 AS col0
----
-1

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

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

query II rowsort
SELECT - 89, 60 AS col2
----
-89
60

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

query I rowsort
SELECT DISTINCT ( + + 46 ) col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT ALL - ( COUNT( * ) ) - COUNT( * ) + 41
----
39

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL - ( COUNT ( * ) ) - COUNT ( * ) + 41
----
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7647
SELECT ALL + - MIN( - 42 ) / + 21 + + + CAST( NULL AS DECIMAL ) * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL + - MIN ( - 42 ) / + 21 + + + CAST ( NULL AS REAL ) * - 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7648
SELECT ALL + 31 / - CAST( - 42 AS DECIMAL ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL + 31 / - CAST ( - 42 AS REAL ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 22 - - - 24 AS col1
----
-2

query I rowsort
SELECT + - COALESCE ( 4, + 95 * + ( + 99 ) - + 1 * + 68 + + 13 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT ALL - + 58 - 82 * + COUNT( * ) * + 70 + + 35 + - 1 * 6 + SUM( DISTINCT + + 27 ) + + 55 * + - CASE 27 WHEN - + 46 THEN 3 - 85 ELSE NULL END * - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL - + 58 - 82 * + COUNT ( * ) * + 70 + + 35 + - 1 * 6 + SUM ( DISTINCT + + 27 ) + + 55 * + - CASE 27 WHEN - + 46 THEN 3 - 85 ELSE NULL END * - 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT SUM( ALL + - 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7652
SELECT SUM ( ALL + - 66 ) AS col1
----
-66

query I rowsort
SELECT 78 * 53 AS col0
----
4134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7654
SELECT 10 * + NULLIF ( - 46, - SUM( + + 43 ) ) - - CAST( + + 7 AS SIGNED ) * 14
----
-362

skipif mysql # not compatible
query I rowsort label-7654
SELECT 10 * + NULLIF ( - 46, - SUM ( + + 43 ) ) - - CAST ( + + 7 AS INTEGER ) * 14
----
-362

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT 20 * - MAX( - 66 ) * - 72 + 93
----
-94947

skipif mysql # not compatible
query I rowsort label-7655
SELECT 20 * - MAX ( - 66 ) * - 72 + 93
----
-94947

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

query I rowsort
SELECT DISTINCT - NULLIF ( + - 43, 76 )
----
43

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

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL - COUNT ( + - 7 ) AS col0
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7660
SELECT ALL COALESCE ( 93, 13, 27 - NULLIF ( 60, + COUNT( * ) + + - SUM( ALL + 65 ) + - ( - CAST( NULL AS SIGNED ) ) DIV + MAX( ALL - 31 ) * + - 72 ) + + + COUNT( * ) ) DIV + 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL COALESCE ( 93, 13, 27 - NULLIF ( 60, + COUNT ( * ) + + - SUM ( ALL + 65 ) + - ( - CAST ( NULL AS INTEGER ) ) / + MAX ( ALL - 31 ) * + - 72 ) + + + COUNT ( * ) ) / + 96 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7661
SELECT - 96 * 69 DIV - 42 - - - CAST( + - 58 AS SIGNED ) + + COUNT( * )
----
216

skipif mysql # not compatible
query I rowsort label-7661
SELECT - 96 * 69 / - 42 - - - CAST ( + - 58 AS INTEGER ) + + COUNT ( * )
----
216

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7662
SELECT 0 DIV + + 46, CAST( NULL AS DECIMAL ) * + 42 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7662
SELECT 0 / + + 46, CAST ( NULL AS REAL ) * + 42 AS col1
----
0
NULL

query I rowsort
SELECT 35 * - + 13 AS col1
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT 84 * 14 - - - 95 * COALESCE ( + + 6, + 29, COUNT( * ) * COUNT( * ) + + 58 ) AS col0
----
606

skipif mysql # not compatible
query I rowsort label-7664
SELECT 84 * 14 - - - 95 * COALESCE ( + + 6, + 29, COUNT ( * ) * COUNT ( * ) + + 58 ) AS col0
----
606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7665
SELECT DISTINCT + ( - COALESCE ( - CASE + + 84 WHEN - CASE 0 WHEN 90 * - 98 * - + 16 + + 54 THEN - ( + 17 ) + + - 43 WHEN + - CASE 90 WHEN - + 70 * 80 + + 16 + + 25 THEN - NULLIF ( + 36, COUNT( * ) * - 73 + - + 60 ) WHEN + - 36 THEN NULL END DIV + 87 * + + COUNT( * ) * - + 76 THEN - - 52 DIV + 87 - + 17 END * - - ( + - AVG ( 39 ) ) THEN + 60 END, + - 41, + - ( - + 10 ) ) ) DIV + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT + ( - COALESCE ( - CASE + + 84 WHEN - CASE 0 WHEN 90 * - 98 * - + 16 + + 54 THEN - ( + 17 ) + + - 43 WHEN + - CASE 90 WHEN - + 70 * 80 + + 16 + + 25 THEN - NULLIF ( + 36, COUNT ( * ) * - 73 + - + 60 ) WHEN + - 36 THEN NULL END / + 87 * + + COUNT ( * ) * - + 76 THEN - - 52 / + 87 - + 17 END * - - ( + - AVG ( 39 ) ) THEN + 60 END, + - 41, + - ( - + 10 ) ) ) / + 88 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL + 85 + + + COUNT ( * ) AS col0
----
86

query I rowsort
SELECT 19 + 53 AS col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7668
SELECT 25 DIV + ( - 34 )
----
0

skipif mysql # not compatible
query I rowsort label-7668
SELECT 25 / + ( - 34 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT 85 * 57 + + - 37 + - - 38 + 35 DIV + 92
----
4846

skipif mysql # not compatible
query I rowsort label-7669
SELECT 85 * 57 + + - 37 + - - 38 + 35 / + 92
----
4846

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

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

query I rowsort
SELECT ALL 98 * 92 AS col1
----
9016

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + - NULLIF ( + 45, 58 * 78 / + ( + - COUNT( * ) ) - - 65 + + 55 + SUM( ALL + 37 ) + - 55 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7672
SELECT + - NULLIF ( + 45, 58 * 78 / + ( + - COUNT ( * ) ) - - 65 + + 55 + SUM ( ALL + 37 ) + - 55 ) AS col0
----
-45

query I rowsort
SELECT ALL - + ( 25 ) + - + 93 * COALESCE ( - NULLIF ( 52, 88 ), + 72, + 22 ) + 53
----
4864

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7675
SELECT 0 * 70 + - ( + + 91 ) - - CAST( 88 AS SIGNED ) - - 42 + - + COUNT( * ) * 56
----
-17

skipif mysql # not compatible
query I rowsort label-7675
SELECT 0 * 70 + - ( + + 91 ) - - CAST ( 88 AS INTEGER ) - - 42 + - + COUNT ( * ) * 56
----
-17

query II rowsort
SELECT DISTINCT + ( - 48 ), 48 AS col2
----
-48
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7677
SELECT + 43 + + COUNT( * ) + - CAST( NULL AS SIGNED ) * - + NULLIF ( + + 73, + 85 * + + 1 ) + - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT + 43 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - + NULLIF ( + + 73, + 85 * + + 1 ) + - 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT ALL MAX( - NULLIF ( 34, - 23 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL MAX ( - NULLIF ( 34, - 23 ) )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7679
SELECT DISTINCT - 5 - + 52 + - + 54 * + 38 * 26 - + 5 * + 35 AS col0, 37 DIV 87 * 90 * 52 + 71 + NULLIF ( + 71, - AVG ( DISTINCT 81 ) DIV - 60 + - ( - 93 ) + - 3 + + 51 - 82 * + 81 + - - COUNT( * ) * 49 + - COUNT( + 10 ) DIV 29 ) AS col0
----
-53584
142

skipif mysql # not compatible
query II rowsort label-7679
SELECT DISTINCT - 5 - + 52 + - + 54 * + 38 * 26 - + 5 * + 35 AS col0, 37 / 87 * 90 * 52 + 71 + NULLIF ( + 71, - AVG ( DISTINCT 81 ) / - 60 + - ( - 93 ) + - 3 + + 51 - 82 * + 81 + - - COUNT ( * ) * 49 + - COUNT ( + 10 ) / 29 ) AS col0
----
-53584
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT + + 41 + - MAX( + + 44 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7680
SELECT + + 41 + - MAX ( + + 44 ) AS col2
----
-3

query I rowsort
SELECT DISTINCT 67 * + 77 + - 23 - + 51 - + 23 col0
----
5062

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7682
SELECT DISTINCT - 2 DIV - + 90 + + ( 62 ) * + - MIN( DISTINCT - 33 ) - - COUNT( * ) + + 13 + NULLIF ( - 81, + - CAST( NULL AS DECIMAL ) ) * ( - 5 ) * + + 11 AS col2
----
6515

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT - 2 / - + 90 + + ( 62 ) * + - MIN ( DISTINCT - 33 ) - - COUNT ( * ) + + 13 + NULLIF ( - 81, + - CAST ( NULL AS REAL ) ) * ( - 5 ) * + + 11 AS col2
----
6515

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT + + MIN( - + 52 ) * + 93
----
-4836

skipif mysql # not compatible
query I rowsort label-7683
SELECT + + MIN ( - + 52 ) * + 93
----
-4836

query I rowsort
SELECT ALL + + ( + 9 ) * + - 28 AS col0
----
-252

query I rowsort
SELECT + 55 + - + 43
----
12

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

query I rowsort
SELECT DISTINCT - 53 * - 71 + 20 * 69 * + 96 + - - 50 AS col0
----
136293

query II rowsort
SELECT + + 89 + + + 34 AS col2, 78 * - - 49
----
123
3822

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7689
SELECT + COUNT( * ) * + 52 + - 92 DIV - COUNT( * ) AS col1, - 12 + + COUNT( * ) AS col0
----
144
-11

skipif mysql # not compatible
query II rowsort label-7689
SELECT + COUNT ( * ) * + 52 + - 92 / - COUNT ( * ) AS col1, - 12 + + COUNT ( * ) AS col0
----
144
-11

query I rowsort
SELECT - 82 * - 21 AS col0
----
1722

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7692
SELECT - 30 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-7692
SELECT - 30 / 72
----
0

query II rowsort
SELECT - 29, 47 AS col0
----
-29
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT - COUNT( * ) + + - 42 - - 25 * - + 18
----
-493

skipif mysql # not compatible
query I rowsort label-7695
SELECT - COUNT ( * ) + + - 42 - - 25 * - + 18
----
-493

query I rowsort
SELECT + 16 * - + 8 AS col0
----
-128

query I rowsort
SELECT - 22 + - 4 + + 98
----
72

query I rowsort
SELECT - 86 * + 1 * + - 17
----
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT DISTINCT - 78 * - 99 * + - 48 + + + COUNT( * ) col1
----
-370655

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT - 78 * - 99 * + - 48 + + + COUNT ( * ) col1
----
-370655

query I rowsort
SELECT NULLIF ( + 35, 70 * - 26 ) AS col2
----
35

query I rowsort
SELECT DISTINCT 35 * + 56 + - 57
----
1903

query I rowsort
SELECT - 44 - - 48 - + ( 55 ) + 12
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT - + 36 * + 10 - - - 83 * + COUNT( * ) * 18 * + 32
----
-48168

skipif mysql # not compatible
query I rowsort label-7703
SELECT - + 36 * + 10 - - - 83 * + COUNT ( * ) * 18 * + 32
----
-48168

query I rowsort
SELECT ALL 8 * + 64 - 56 col0
----
456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7705
SELECT CASE - 85 WHEN + 35 THEN 15 ELSE NULL END * - 44 * - 33 + 11 * CAST( NULL AS SIGNED ) - 93 - 44 + - + COUNT( * ) + - 47 * + ( CAST( NULL AS SIGNED ) ) * 64 + + 60 - - 90 + + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT CASE - 85 WHEN + 35 THEN 15 ELSE NULL END * - 44 * - 33 + 11 * CAST ( NULL AS INTEGER ) - 93 - 44 + - + COUNT ( * ) + - 47 * + ( CAST ( NULL AS INTEGER ) ) * 64 + + 60 - - 90 + + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - + 87 - + 23
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT - 3 * + COUNT( DISTINCT + ( + 90 ) ) + - NULLIF ( 51, - ( + COUNT( * ) ) ) + + 84 * 43 AS col0
----
3558

skipif mysql # not compatible
query I rowsort label-7707
SELECT - 3 * + COUNT ( DISTINCT + ( + 90 ) ) + - NULLIF ( 51, - ( + COUNT ( * ) ) ) + + 84 * 43 AS col0
----
3558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7708
SELECT ALL + - 16 - + - SUM( 87 ) DIV COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL + - 16 - + - SUM ( 87 ) / COUNT ( * )
----
71

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7710
SELECT DISTINCT + ( - 91 ) * + 46 col1, + 81 + - 21 DIV + 9 AS col2
----
-4186
79

skipif mysql # not compatible
query II rowsort label-7710
SELECT DISTINCT + ( - 91 ) * + 46 col1, + 81 + - 21 / + 9 AS col2
----
-4186
79

query I rowsort
SELECT ALL - 15 * 50 AS col1
----
-750

query I rowsort
SELECT + + 4 + 7 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT + ( 13 ) - CASE + 54 WHEN + + ( - 75 ) THEN 70 WHEN - - 67 - - 91 THEN + 65 * + 18 ELSE - 76 * - 18 + + 9 + - ( COUNT( * ) ) - + 87 END + + 87
----
-1189

skipif mysql # not compatible
query I rowsort label-7713
SELECT + ( 13 ) - CASE + 54 WHEN + + ( - 75 ) THEN 70 WHEN - - 67 - - 91 THEN + 65 * + 18 ELSE - 76 * - 18 + + 9 + - ( COUNT ( * ) ) - + 87 END + + 87
----
-1189

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7714
SELECT ALL + - 16 * 70 + + 63 AS col2, 58 DIV + 90 * + - 8 * + COUNT( * ) col1
----
-1057
0

skipif mysql # not compatible
query II rowsort label-7714
SELECT ALL + - 16 * 70 + + 63 AS col2, 58 / + 90 * + - 8 * + COUNT ( * ) col1
----
-1057
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7715
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), + 13 * COUNT( * ) + - - 26 + - 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7715
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), + 13 * COUNT ( * ) + - - 26 + - 65 ) AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-7716
SELECT - COUNT ( * ), 42 AS col2
----
-1
42

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

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

query I rowsort
SELECT + - 79 * + 51 AS col1
----
-4029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7719
SELECT - CAST( NULL AS SIGNED ) AS col0, 63 + + + 24 * + 94 * SUM( 73 ) - 50 + - ( ( + 22 ) )
----
NULL
164679

skipif mysql # not compatible
query II rowsort label-7719
SELECT - CAST ( NULL AS INTEGER ) AS col0, 63 + + + 24 * + 94 * SUM ( 73 ) - 50 + - ( ( + 22 ) )
----
NULL
164679

query II rowsort
SELECT ALL 77 AS col0, ( 51 ) * - - 28 + - ( - - 56 )
----
77
1372

query II rowsort
SELECT ALL 28 AS col2, - 35 AS col0
----
28
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7722
SELECT DISTINCT ( - CAST( + 71 AS SIGNED ) ) + + + 31 * - + MAX( + 44 ) + + 68 + + - COUNT( * ) * 49 * - - 37 col2
----
-3180

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT ( - CAST ( + 71 AS INTEGER ) ) + + + 31 * - + MAX ( + 44 ) + + 68 + + - COUNT ( * ) * 49 * - - 37 col2
----
-3180

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT - ( + NULLIF ( - MIN( ALL - + 9 ), - 40 ) ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-7723
SELECT - ( + NULLIF ( - MIN ( ALL - + 9 ), - 40 ) ) col1
----
-9

query I rowsort
SELECT + 53 * - 61 AS col2
----
-3233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT ALL CAST( COALESCE ( 61, + - 69 + + 25 + + 51 * - + 29 ) AS SIGNED ) + + 83 + - - 60 AS col2
----
204

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL CAST ( COALESCE ( 61, + - 69 + + 25 + + 51 * - + 29 ) AS INTEGER ) + + 83 + - - 60 AS col2
----
204

onlyif mysql # aggregate syntax: 
query II rowsort label-7726
SELECT 75 AS col1, - MIN( ALL - COALESCE ( + 98, + 84 ) ) * 69
----
75
6762

skipif mysql # not compatible
query II rowsort label-7726
SELECT 75 AS col1, - MIN ( ALL - COALESCE ( + 98, + 84 ) ) * 69
----
75
6762

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT - COUNT( * ) + 13
----
12

skipif mysql # not compatible
query I rowsort label-7727
SELECT - COUNT ( * ) + 13
----
12

query I rowsort
SELECT + NULLIF ( 18, + 96 )
----
18

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7730
SELECT ALL - ( ( + 62 ) ) DIV NULLIF ( - NULLIF ( ( - 94 ), + - COUNT( * ) ), 63 + 74 + - - 38 ) DIV - 48 * - + NULLIF ( - MIN( DISTINCT - - 71 ), + 68 ) + + 64 * 58 - 38 + - COUNT( * ) + - 21 + - 32 + + + COUNT( * ) * + 72 AS col2
----
3692

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL - ( ( + 62 ) ) / NULLIF ( - NULLIF ( ( - 94 ), + - COUNT ( * ) ), 63 + 74 + - - 38 ) / - 48 * - + NULLIF ( - MIN ( DISTINCT - - 71 ), + 68 ) + + 64 * 58 - 38 + - COUNT ( * ) + - 21 + - 32 + + + COUNT ( * ) * + 72 AS col2
----
3692

onlyif mysql # aggregate syntax: 
query II rowsort label-7731
SELECT - 88 * 74 - + COUNT( * ) * 48 AS col1, 51 AS col1
----
-6560
51

skipif mysql # not compatible
query II rowsort label-7731
SELECT - 88 * 74 - + COUNT ( * ) * 48 AS col1, 51 AS col1
----
-6560
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7732
SELECT + 4 col2, 80 * - + COALESCE ( COUNT( * ), - 82 + - + 29 ) * - 27
----
4
2160

skipif mysql # not compatible
query II rowsort label-7732
SELECT + 4 col2, 80 * - + COALESCE ( COUNT ( * ), - 82 + - + 29 ) * - 27
----
4
2160

query I rowsort
SELECT + 63 + 45 AS col1
----
108

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7735
SELECT ALL 31 DIV 90 + + COUNT( * ) + - + 77
----
-76

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL 31 / 90 + + COUNT ( * ) + - + 77
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7736
SELECT ALL 62 DIV COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL 62 / COUNT ( * ) AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7737
SELECT + 50 * + 63 - - NULLIF ( - + 89, + CAST( 59 AS SIGNED ) + + - COUNT( * ) + + + CASE - 40 WHEN + 52 + + 78 THEN - + 48 ELSE NULL END ) * - 82 + MAX( ALL + 60 )
----
10508

skipif mysql # not compatible
query I rowsort label-7737
SELECT + 50 * + 63 - - NULLIF ( - + 89, + CAST ( 59 AS INTEGER ) + + - COUNT ( * ) + + + CASE - 40 WHEN + 52 + + 78 THEN - + 48 ELSE NULL END ) * - 82 + MAX ( ALL + 60 )
----
10508

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT 81, + 44 * + + COUNT( * ) AS col0
----
81
44

skipif mysql # not compatible
query II rowsort label-7738
SELECT 81, + 44 * + + COUNT ( * ) AS col0
----
81
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7739
SELECT + CASE - - CAST( NULL AS SIGNED ) WHEN 78 THEN NULL WHEN - - NULLIF ( - 91, 83 ) THEN - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT + CASE - - CAST ( NULL AS INTEGER ) WHEN 78 THEN NULL WHEN - - NULLIF ( - 91, 83 ) THEN - COUNT ( * ) ELSE NULL END AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT + 35 * + 82 * 87 + - - 58
----
249748

query II rowsort
SELECT - 30 col1, - 32 AS col0
----
-30
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7744
SELECT ALL - - NULLIF ( NULLIF ( - + 65, + + COALESCE ( 58, - SUM( - + 66 ) ) ), + 1 * ( CAST( - CAST( - 78 AS SIGNED ) AS SIGNED ) ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL - - NULLIF ( NULLIF ( - + 65, + + COALESCE ( 58, - SUM ( - + 66 ) ) ), + 1 * ( CAST ( - CAST ( - 78 AS INTEGER ) AS INTEGER ) ) ) AS col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7745
SELECT ALL - MIN( ALL + COALESCE ( 14, 78 * - 15 - - - 81 + + COALESCE ( + - 25, - - 80 * - 22 + - + 10, + + 42 * + - 88 DIV 80 * + 67 ) ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL - MIN ( ALL + COALESCE ( 14, 78 * - 15 - - - 81 + + COALESCE ( + - 25, - - 80 * - 22 + - + 10, + + 42 * + - 88 / 80 * + 67 ) ) ) AS col1
----
-14

query I rowsort
SELECT ALL 62 * 96
----
5952

query I rowsort
SELECT - 1 * - 4 * - ( + 16 )
----
-64

query II rowsort
SELECT ALL 70 AS col2, + 11 * - 63
----
70
-693

query II rowsort
SELECT + 54 + 72 AS col0, - 10
----
126
-10

query I rowsort
SELECT - 28 + + + 86 * 55 AS col0
----
4702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT + 67 * + COALESCE ( + CAST( - MIN( 76 ) AS SIGNED ), - 49 * - + 82 - 71 - 17 ) + - 49 + 45
----
-5096

skipif mysql # not compatible
query I rowsort label-7751
SELECT + 67 * + COALESCE ( + CAST ( - MIN ( 76 ) AS INTEGER ), - 49 * - + 82 - 71 - 17 ) + - 49 + 45
----
-5096

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7752
SELECT - CAST( NULL AS SIGNED ) AS col1, 23 - + ( - 29 ) AS col2
----
NULL
52

skipif mysql # not compatible
query II rowsort label-7752
SELECT - CAST ( NULL AS INTEGER ) AS col1, 23 - + ( - 29 ) AS col2
----
NULL
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7753
SELECT ( + - 45 ) DIV + 69 + - COUNT( * ) + 51 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7753
SELECT ( + - 45 ) / + 69 + - COUNT ( * ) + 51 AS col0
----
50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7755
SELECT ALL + COUNT( * ) + 57 + - 95 - CASE - MAX( 10 ) WHEN - COUNT( * ) THEN NULL WHEN + - 16 THEN COUNT( * ) - - 63 END + - 67 * + NULLIF ( + MIN( DISTINCT - CAST( - - 33 AS SIGNED ) ), COALESCE ( + 11, - + 52 ) * + COUNT( * ) ) / COUNT( * ) * 17 + + 37 + + 28 + - + 78 - MAX( + - ( + 52 ) ) / + + 41 * 10 * - COUNT( * ) * + 2 * + + 9 - - 16 - + 1 + + - 48 - - COUNT( + 15 ) / - 97 * + 83 + + CAST( - 90 AS DECIMAL ) - - NULLIF ( - MAX( DISTINCT 27 ), + + ( - 20 ) / 72 ) - - 64 * + 21 * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL + COUNT ( * ) + 57 + - 95 - CASE - MAX ( 10 ) WHEN - COUNT ( * ) THEN NULL WHEN + - 16 THEN COUNT ( * ) - - 63 END + - 67 * + NULLIF ( + MIN ( DISTINCT - CAST ( - - 33 AS INTEGER ) ), COALESCE ( + 11, - + 52 ) * + COUNT ( * ) ) / COUNT ( * ) * 17 + + 37 + + 28 + - + 78 - MAX ( + - ( + 52 ) ) / + + 41 * 10 * - COUNT ( * ) * + 2 * + + 9 - - 16 - + 1 + + - 48 - - COUNT ( + 15 ) / - 97 * + 83 + + CAST ( - 90 AS REAL ) - - NULLIF ( - MAX ( DISTINCT 27 ), + + ( - 20 ) / 72 ) - - 64 * + 21 * 57
----
NULL

query I rowsort
SELECT ALL 65 + - 95
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-7757
SELECT 20 + - COUNT( * ) AS col0, 22 AS col0
----
19
22

skipif mysql # not compatible
query II rowsort label-7757
SELECT 20 + - COUNT ( * ) AS col0, 22 AS col0
----
19
22

query I rowsort
SELECT ALL + 25 + 47
----
72

query I rowsort
SELECT 94 * + 4 * + 82
----
30832

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT NULLIF ( + COUNT( * ), - 14 ) + + 35
----
36

skipif mysql # not compatible
query I rowsort label-7760
SELECT NULLIF ( + COUNT ( * ), - 14 ) + + 35
----
36

query I rowsort
SELECT DISTINCT + NULLIF ( + + 63, + + 98 * - + 8 * 46 ) + + + 19 AS col2
----
82

query I rowsort
SELECT ALL - 52 + - 95
----
-147

query I rowsort
SELECT 10 + + ( - - 38 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7764
SELECT ( 53 ) + + 89, + COUNT( * ) AS col2
----
142
1

skipif mysql # not compatible
query II rowsort label-7764
SELECT ( 53 ) + + 89, + COUNT ( * ) AS col2
----
142
1

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

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

query I rowsort
SELECT DISTINCT 16 + 10 + - ( + + ( 80 ) ) + - 91 - + 30 AS col1
----
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7767
SELECT ALL 75 + ( - COUNT( * ) ) - + - CASE 50 WHEN CAST( 27 AS SIGNED ) + - + ( NULLIF ( + 57, + 8 + 5 ) ) THEN NULL WHEN - 6 * 85 THEN NULL WHEN + + 90 THEN - AVG ( DISTINCT + 87 ) ELSE NULL END / + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL 75 + ( - COUNT ( * ) ) - + - CASE 50 WHEN CAST ( 27 AS INTEGER ) + - + ( NULLIF ( + 57, + 8 + 5 ) ) THEN NULL WHEN - 6 * 85 THEN NULL WHEN + + 90 THEN - AVG ( DISTINCT + 87 ) ELSE NULL END / + 28 AS col0
----
NULL

query I rowsort
SELECT 45 * - 50 AS col1
----
-2250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7769
SELECT ALL 51 - + - CASE 74 WHEN + - 83 * 96 * - 36 * + 3 * + 75 THEN 32 * + 57 - - + 26 ELSE + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) END * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL 51 - + - CASE 74 WHEN + - 83 * 96 * - 36 * + 3 * + 75 THEN 32 * + 57 - - + 26 ELSE + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) END * - 38
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7770
SELECT + SUM( DISTINCT - 17 ) DIV 26 + - 31 * + + 26 AS col0, + 29 AS col1
----
-806
29

skipif mysql # not compatible
query II rowsort label-7770
SELECT + SUM ( DISTINCT - 17 ) / 26 + - 31 * + + 26 AS col0, + 29 AS col1
----
-806
29

query II rowsort
SELECT ALL 21 * + + 90 * + 31 * + + 92 * - 53, 48 + - + 12 AS col1
----
-285684840
36

query I rowsort
SELECT 35 * ( - 56 )
----
-1960

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT ALL 15 - - 26 DIV + - 93
----
15

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL 15 - - 26 / + - 93
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT - 49 DIV ( + 90 )
----
0

skipif mysql # not compatible
query I rowsort label-7774
SELECT - 49 / ( + 90 )
----
0

query I rowsort
SELECT - 95 * - + 68 * + - 23 + + 86 + + 5 + + 56 + - 49 * - 75
----
-144758

query I rowsort
SELECT DISTINCT + 98 * - + 33 * + + 9 * + 71
----
-2066526

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7778
SELECT DISTINCT 6 DIV + 99 * - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT 6 / + 99 * - 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT DISTINCT - CASE 15 WHEN + MAX( + - 87 ) THEN NULL ELSE - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT - CASE 15 WHEN + MAX ( + - 87 ) THEN NULL ELSE - COUNT ( * ) END
----
1

query I rowsort
SELECT ALL + 59 - + 3 + + + 88 AS col2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7781
SELECT ALL - CAST( 26 AS SIGNED ) AS col2, 39
----
-26
39

skipif mysql # not compatible
query II rowsort label-7781
SELECT ALL - CAST ( 26 AS INTEGER ) AS col2, 39
----
-26
39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT + NULLIF ( - 85, ( - 75 ) * COUNT( * ) ) + ( + 21 )
----
-64

skipif mysql # not compatible
query I rowsort label-7783
SELECT + NULLIF ( - 85, ( - 75 ) * COUNT ( * ) ) + ( + 21 )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7784
SELECT - 52 / - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + 24 * + 29 + + - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT - 52 / - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + 24 * + 29 + + - 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT ALL - - COUNT( 48 ) AS col1, 24 AS col1
----
1
24

skipif mysql # not compatible
query II rowsort label-7785
SELECT ALL - - COUNT ( 48 ) AS col1, 24 AS col1
----
1
24

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT + + 30 * - 33 - - - 38 - 67 - - NULLIF ( + - COUNT( * ), + COALESCE ( - 56, 56 + + 51 ) )
----
-1096

skipif mysql # not compatible
query I rowsort label-7788
SELECT + + 30 * - 33 - - - 38 - 67 - - NULLIF ( + - COUNT ( * ), + COALESCE ( - 56, 56 + + 51 ) )
----
-1096

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT - 92 - + 50 * + - 67 + - 62 + - + MIN( + 50 ) AS col0
----
3146

skipif mysql # not compatible
query I rowsort label-7789
SELECT - 92 - + 50 * + - 67 + - 62 + - + MIN ( + 50 ) AS col0
----
3146

query I rowsort
SELECT ALL ( - 58 ) * - - 92
----
-5336

query I rowsort
SELECT ALL - 41 + + 99 AS col2
----
58

query II rowsort
SELECT DISTINCT 80 * - 88 AS col0, - 67 AS col0
----
-7040
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7793
SELECT 94 DIV + 34 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7793
SELECT 94 / + 34 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT 29 * MAX( - 4 )
----
-116

skipif mysql # not compatible
query I rowsort label-7794
SELECT 29 * MAX ( - 4 )
----
-116

query II rowsort
SELECT 94 AS col2, + 53 col0
----
94
53

query I rowsort
SELECT ALL + 21 + - - 2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT 55 * - MAX( DISTINCT + - 14 )
----
770

skipif mysql # not compatible
query I rowsort label-7797
SELECT 55 * - MAX ( DISTINCT + - 14 )
----
770

query I rowsort
SELECT DISTINCT - 48 * + 15 AS col2
----
-720

query I rowsort
SELECT 29 * + + 71
----
2059

query I rowsort
SELECT ALL + ( - 37 ) + + 30 + + 4 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7801
SELECT ALL - MAX( + 95 ) / - AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL - MAX ( + 95 ) / - AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 76 * 8 AS col2
----
608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7803
SELECT ALL + 21 - + + 59 * - - 62 + + - 55 + + COUNT( * ) + - 10 * 99 DIV MAX( 49 ) DIV 25
----
-3691

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL + 21 - + + 59 * - - 62 + + - 55 + + COUNT ( * ) + - 10 * 99 / MAX ( 49 ) / 25
----
-3691

query II rowsort
SELECT - 60 AS col0, + 19 * - - 33
----
-60
627

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL - 96 * 23 * ( - COUNT( * ) ) - - 5 AS col0
----
2213

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL - 96 * 23 * ( - COUNT ( * ) ) - - 5 AS col0
----
2213

onlyif mysql # DIV for integer division: 
query I rowsort label-7806
SELECT - 45 DIV - - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7806
SELECT - 45 / - - 46 AS col1
----
0

query I rowsort
SELECT 31 * - 89 * 72 + + + 37 * 5 + - ( - - 15 ) AS col0
----
-198478

query I rowsort
SELECT - 21 - - - 72
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT + 27 * - + MAX( - 3 ) col2
----
81

skipif mysql # not compatible
query I rowsort label-7809
SELECT + 27 * - + MAX ( - 3 ) col2
----
81

query I rowsort
SELECT + ( - 68 ) * - ( + - 21 ) + 0 * 10
----
-1428

query II rowsort
SELECT ALL + 72 AS col1, + 64 AS col2
----
72
64

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

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

query I rowsort
SELECT - + 57 * - 35 AS col2
----
1995

onlyif mysql # DIV for integer division: 
query II rowsort label-7814
SELECT ALL + + 0 col1, 16 DIV - + 7 AS col0
----
0
-2

skipif mysql # not compatible
query II rowsort label-7814
SELECT ALL + + 0 col1, 16 / - + 7 AS col0
----
0
-2

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

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

query I rowsort
SELECT - - 39 + + 59 AS col2
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-7817
SELECT + + 4 * - COUNT( * ) - - ( 32 ) + - COALESCE ( 76, 66 - 40 ) + + 55 * - 18 - - - 65 + - + MAX( ALL - + 36 ), - CASE - 31 WHEN + COUNT( * ) THEN 52 ELSE NULL END AS col1
----
-1067
NULL

skipif mysql # not compatible
query II rowsort label-7817
SELECT + + 4 * - COUNT ( * ) - - ( 32 ) + - COALESCE ( 76, 66 - 40 ) + + 55 * - 18 - - - 65 + - + MAX ( ALL - + 36 ), - CASE - 31 WHEN + COUNT ( * ) THEN 52 ELSE NULL END AS col1
----
-1067
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7818
SELECT ALL + - 66, 50 - + - 53 * ( + 66 ) DIV - 77 AS col0
----
-66
5

skipif mysql # not compatible
query II rowsort label-7818
SELECT ALL + - 66, 50 - + - 53 * ( + 66 ) / - 77 AS col0
----
-66
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT ALL 80 * - COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL 80 * - COUNT ( * ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT - ( - NULLIF ( - + COUNT( * ), + - MIN( DISTINCT - 45 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7820
SELECT - ( - NULLIF ( - + COUNT ( * ), + - MIN ( DISTINCT - 45 ) ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7821
SELECT + CAST( NULL AS SIGNED ) * + + COUNT( * ) + - 72 + + NULLIF ( + + 69, - 3 ) * + 29 * 46 + + + 58 * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + - 72 + + NULLIF ( + + 69, - 3 ) * + 29 * 46 + + + 58 * - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT ALL - 11 * + 25 + - 58 + - 92 + MAX( ALL + 30 ) AS col0
----
-395

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL - 11 * + 25 + - 58 + - 92 + MAX ( ALL + 30 ) AS col0
----
-395

onlyif mysql # aggregate syntax: 
query II rowsort label-7823
SELECT + - COUNT( * ) AS col2, 97 + + 40 + - - COUNT( * ) * 19 + - 8 AS col1
----
-1
148

skipif mysql # not compatible
query II rowsort label-7823
SELECT + - COUNT ( * ) AS col2, 97 + + 40 + - - COUNT ( * ) * 19 + - 8 AS col1
----
-1
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7824
SELECT DISTINCT + ( - SUM( DISTINCT 64 ) ) * 26 + ( + - NULLIF ( - CAST( - 48 AS SIGNED ), - - 23 ) ) AS col0, + 91 * + - ( 50 ) + + 41
----
-1712
-4509

skipif mysql # not compatible
query II rowsort label-7824
SELECT DISTINCT + ( - SUM ( DISTINCT 64 ) ) * 26 + ( + - NULLIF ( - CAST ( - 48 AS INTEGER ), - - 23 ) ) AS col0, + 91 * + - ( 50 ) + + 41
----
-1712
-4509

query II rowsort
SELECT DISTINCT + - 64 AS col0, + 66 * + 85
----
-64
5610

onlyif mysql # DIV for integer division: 
query I rowsort label-7826
SELECT DISTINCT 34 DIV + + 9
----
3

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT 34 / + + 9
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT + 52 + + - COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-7827
SELECT + 52 + + - COUNT ( * ) AS col0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7828
SELECT + NULLIF ( + 66, + ( + + COUNT( * ) ) ) DIV + + 92
----
0

skipif mysql # not compatible
query I rowsort label-7828
SELECT + NULLIF ( + 66, + ( + + COUNT ( * ) ) ) / + + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT DISTINCT 91 + - COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT 91 + - COUNT ( * ) AS col2
----
90

query I rowsort
SELECT - NULLIF ( - - 30, 42 * 49 + COALESCE ( 12, 31 + - + 18 * + + 91 + - + 72 ) )
----
-30

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT + 11 + + COUNT( * ) * - 13 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7833
SELECT + 11 + + COUNT ( * ) * - 13 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-7834
SELECT - COALESCE ( - ( 81 ), + - 20 DIV 64 * - - 45 - 16 ) - - - 56 DIV + + 70, - ( 44 ) AS col0
----
81
-44

skipif mysql # not compatible
query II rowsort label-7834
SELECT - COALESCE ( - ( 81 ), + - 20 / 64 * - - 45 - 16 ) - - - 56 / + + 70, - ( 44 ) AS col0
----
81
-44

query I rowsort
SELECT + 88 + + 12
----
100

query II rowsort
SELECT ALL - 53 - - + 53 AS col1, 49 AS col2
----
0
49

query I rowsort
SELECT ALL + 90 - + 69 + + 99 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT CASE + - 37 WHEN + + 42 * - 49 THEN NULL WHEN + - 60 * MAX( ALL - + 10 ) + 68 + - - ( + 81 ) THEN 36 + - 32 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT CASE + - 37 WHEN + + 42 * - 49 THEN NULL WHEN + - 60 * MAX ( ALL - + 10 ) + 68 + - - ( + 81 ) THEN 36 + - 32 END AS col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7841
SELECT + 4 * - COUNT( * ) * + 63 * - COALESCE ( 97, + 18 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT + 4 * - COUNT ( * ) * + 63 * - COALESCE ( 97, + 18 ) / CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - COALESCE ( 34, - - 29 ) + - + 80 - + - 5 col2, + 85
----
-109
85

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7843
SELECT + 22 DIV + NULLIF ( 31, - + CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-7843
SELECT + 22 / + NULLIF ( 31, - + CAST ( NULL AS REAL ) )
----
0

query II rowsort
SELECT ALL NULLIF ( ( - 78 ), 64 ) AS col0, - 26
----
-78
-26

query I rowsort
SELECT - 98 + - - 10
----
-88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7847
SELECT DISTINCT 97 DIV - 79
----
-1

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT 97 / - 79
----
-1

query II rowsort
SELECT ALL - - 49 * + COALESCE ( + 38, + 98 ) AS col1, ( 72 ) AS col2
----
1862
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7849
SELECT DISTINCT + COUNT( DISTINCT + - ( + CAST( NULL AS SIGNED ) ) ) * - - NULLIF ( + + 93, 9 + - + 57 ) - ( + 2 ) * 1
----
-2

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT + COUNT ( DISTINCT + - ( + CAST ( NULL AS INTEGER ) ) ) * - - NULLIF ( + + 93, 9 + - + 57 ) - ( + 2 ) * 1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7850
SELECT ALL + 48 * + 30 + - 16 + + 71 AS col0, COUNT( * ) DIV + ( + + COALESCE ( + COUNT( * ), CAST( NULL AS SIGNED ) + - + 35 ) ) + + 28 col2
----
1495
29

skipif mysql # not compatible
query II rowsort label-7850
SELECT ALL + 48 * + 30 + - 16 + + 71 AS col0, COUNT ( * ) / + ( + + COALESCE ( + COUNT ( * ), CAST ( NULL AS INTEGER ) + - + 35 ) ) + + 28 col2
----
1495
29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7852
SELECT DISTINCT - 29 DIV 71 + 59 * 90 + - + 9 col0
----
5301

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT - 29 / 71 + 59 * 90 + - + 9 col0
----
5301

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT - NULLIF ( + COUNT( * ), AVG ( ALL + 60 ) * + SUM( + 49 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7853
SELECT - NULLIF ( + COUNT ( * ), AVG ( ALL + 60 ) * + SUM ( + 49 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7854
SELECT - - CAST( NULL AS SIGNED ) * - 70 / - SUM( 74 ) / + COUNT( * ) AS col0, 10 AS col0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-7854
SELECT - - CAST ( NULL AS INTEGER ) * - 70 / - SUM ( 74 ) / + COUNT ( * ) AS col0, 10 AS col0
----
NULL
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7855
SELECT ALL + - ( - CAST( NULL AS SIGNED ) ) / SUM( + 2 ) + - - ( - 14 )
----
NULL

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

query I rowsort
SELECT + NULLIF ( + - 6, - 81 )
----
-6

query I rowsort
SELECT DISTINCT - + 76 * 62 + - 2 * + 47 AS col0
----
-4806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7858
SELECT DISTINCT + NULLIF ( + - 64, - CASE MAX( - - 29 ) WHEN + - CASE - ( 50 ) WHEN + - 37 THEN - + 4 WHEN - 64 THEN NULL ELSE - + COALESCE ( + 54, COUNT( - CAST( NULL AS SIGNED ) ) ) END * - - 94 THEN + 95 + + 4 * - - 3 * + + MAX( + ( + 26 ) ) ELSE NULL END * 94 - - + 42 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT + NULLIF ( + - 64, - CASE MAX ( - - 29 ) WHEN + - CASE - ( 50 ) WHEN + - 37 THEN - + 4 WHEN - 64 THEN NULL ELSE - + COALESCE ( + 54, COUNT ( - CAST ( NULL AS INTEGER ) ) ) END * - - 94 THEN + 95 + + 4 * - - 3 * + + MAX ( + ( + 26 ) ) ELSE NULL END * 94 - - + 42 ) AS col0
----
-64

query I rowsort
SELECT - COALESCE ( + ( + + 67 ), - + 68 )
----
-67

query I rowsort
SELECT 44 * + - 26 + + + NULLIF ( - - 63, 44 + COALESCE ( + 19, - 70, + 14 * + COALESCE ( 49, - 87 + + 54, - 30 + + + 67 ) ) ) + + 69
----
NULL

query I rowsort
SELECT ALL + + ( - 83 ) * + + 74 AS col2
----
-6142

query I rowsort
SELECT + + 69 + - - 8 * - 50 AS col0
----
-331

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT CASE + 53 WHEN 46 * - + 57 * + 27 - - COUNT( * ) + + + 88 THEN NULL ELSE + 7 END
----
7

skipif mysql # not compatible
query I rowsort label-7863
SELECT CASE + 53 WHEN 46 * - + 57 * + 27 - - COUNT ( * ) + + + 88 THEN NULL ELSE + 7 END
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7864
SELECT - NULLIF ( + 2, + CAST( NULL AS DECIMAL ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7864
SELECT - NULLIF ( + 2, + CAST ( NULL AS REAL ) ) AS col0
----
-2

query I rowsort
SELECT - 70 - - - 14 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query III rowsort label-7866
SELECT DISTINCT 28 * + 10 * SUM( DISTINCT 37 ) - - + 97 AS col0, 92 AS col0, - COUNT( * ) + + 60 AS col0
----
10457
92
59

skipif mysql # not compatible
query III rowsort label-7866
SELECT DISTINCT 28 * + 10 * SUM ( DISTINCT 37 ) - - + 97 AS col0, 92 AS col0, - COUNT ( * ) + + 60 AS col0
----
10457
92
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT DISTINCT + 48 * + - 59 * - - COUNT( * ) AS col0
----
-2832

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT + 48 * + - 59 * - - COUNT ( * ) AS col0
----
-2832

onlyif mysql # DIV for integer division: 
query I rowsort label-7868
SELECT ALL 52 DIV - + 51
----
-1

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL 52 / - + 51
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7869
SELECT ALL 99 DIV 43
----
2

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL 99 / 43
----
2

query I rowsort
SELECT 38 * + 32 AS col0
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT 73 * 45 * - + COUNT( * )
----
-3285

skipif mysql # not compatible
query I rowsort label-7871
SELECT 73 * 45 * - + COUNT ( * )
----
-3285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7872
SELECT 44 - + - 23 + 99 - 92 DIV + COUNT( + - 6 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7872
SELECT 44 - + - 23 + 99 - 92 / + COUNT ( + - 6 ) AS col1
----
74

query I rowsort
SELECT 83 * + 22
----
1826

query I rowsort
SELECT ALL 92 * 12
----
1104

query I rowsort
SELECT DISTINCT 27 * + 22
----
594

query II rowsort
SELECT ALL 15, + 34 AS col2
----
15
34

query I rowsort
SELECT ALL + 5 * - 38 AS col0
----
-190

query I rowsort
SELECT ( - + 3 ) * 42 AS col1
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT ALL 56 + + CAST( NULL AS SIGNED ) + ( + 53 ) * - 36 * + 85 + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL 56 + + CAST ( NULL AS INTEGER ) + ( + 53 ) * - 36 * + 85 + + 59
----
NULL

query I rowsort
SELECT ALL 32 + + 30
----
62

query I rowsort
SELECT ALL - 32 + - NULLIF ( 75, 99 ) * - 63
----
4693

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT ( + COUNT( 43 ) ) + + 76 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7882
SELECT ( + COUNT ( 43 ) ) + + 76 AS col1
----
77

query I rowsort
SELECT 98 * 55
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT ( 84 ) * MAX( - 6 ) + - 91 AS col2
----
-595

skipif mysql # not compatible
query I rowsort label-7884
SELECT ( 84 ) * MAX ( - 6 ) + - 91 AS col2
----
-595

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

skipif mysql # not compatible
query I rowsort label-7885
SELECT 17 / - COUNT ( * ) AS col2
----
-17

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

skipif mysql # not compatible
query I rowsort label-7886
SELECT ( - COUNT ( * ) ) / 24 + 5
----
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7888
SELECT 7 + CAST( 84 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-7888
SELECT 7 + CAST ( 84 AS INTEGER )
----
91

query I rowsort
SELECT ALL 43 + - 50 AS col1
----
-7

query I rowsort
SELECT 14 * + 24 AS col2
----
336

query I rowsort
SELECT ALL + 70 + 54
----
124

query I rowsort
SELECT 23 + + ( 7 + 31 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT ALL - MAX( DISTINCT 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL - MAX ( DISTINCT 35 ) AS col2
----
-35

query I rowsort
SELECT 70 * - 15 + - 55 * - 72 AS col0
----
2910

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL - 34 * - COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - 34 * - COUNT ( * ) AS col0
----
34

query I rowsort
SELECT 42 + + 40 AS col1
----
82

query I rowsort
SELECT 71 * - ( 46 ) + - 94
----
-3360

query I rowsort
SELECT DISTINCT + 80 * + 90 AS col2
----
7200

query I rowsort
SELECT - 99 * - ( + 88 ) + - 5 col2
----
8707

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

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT 94 * CAST ( COUNT ( * ) AS INTEGER )
----
94

query I rowsort
SELECT 28 + - 2 AS col1
----
26

query I rowsort
SELECT 67 + + 38 AS col0
----
105

query I rowsort
SELECT DISTINCT + 17 * ( + 70 ) AS col0
----
1190

query I rowsort
SELECT 44 + 73
----
117

query I rowsort
SELECT ALL 92 * 32
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT 54 + + 43 * CASE COALESCE ( 99, - COUNT( * ) ) WHEN COUNT( * ) + 60 * + 92 THEN 75 WHEN 24 * - 5 + + ( - COUNT( * ) - COUNT( * ) / 77 ) / + COALESCE ( COUNT( * ), 65 ) THEN - ( 38 ) WHEN 11 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT 54 + + 43 * CASE COALESCE ( 99, - COUNT ( * ) ) WHEN COUNT ( * ) + 60 * + 92 THEN 75 WHEN 24 * - 5 + + ( - COUNT ( * ) - COUNT ( * ) / 77 ) / + COALESCE ( COUNT ( * ), 65 ) THEN - ( 38 ) WHEN 11 THEN NULL ELSE NULL END col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7908
SELECT 73 + COALESCE ( + NULLIF ( + 43, COUNT( * ) ), + 41 * - 32 - - 22, - CAST( 81 AS SIGNED ) + 23 * - 1 )
----
116

skipif mysql # not compatible
query I rowsort label-7908
SELECT 73 + COALESCE ( + NULLIF ( + 43, COUNT ( * ) ), + 41 * - 32 - - 22, - CAST ( 81 AS INTEGER ) + 23 * - 1 )
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-7909
SELECT DISTINCT 80 DIV + 62 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT 80 / + 62 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7910
SELECT 63 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-7910
SELECT 63 / 99
----
0

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

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

query I rowsort
SELECT ALL ( - 38 ) + ( 20 )
----
-18

query I rowsort
SELECT DISTINCT - 7 + 51
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT DISTINCT + COUNT( * ) + - 75 * - 45
----
3376

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT + COUNT ( * ) + - 75 * - 45
----
3376

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT ALL - 74 * + MIN( ALL - 55 * 65 )
----
264550

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL - 74 * + MIN ( ALL - 55 * 65 )
----
264550

query I rowsort
SELECT DISTINCT - 57 * - 85 AS col2
----
4845

query I rowsort
SELECT DISTINCT 48 * 45 + + 85 * 86
----
9470

query I rowsort
SELECT 96 * - 57 AS col1
----
-5472

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7920
SELECT + CASE - 68 WHEN + CASE 45 WHEN 53 THEN + 50 + + 31 ELSE 76 * CASE NULLIF ( 4, - 14 + 29 * + ( - CAST( NULL AS SIGNED ) ) ) WHEN + 51 + + 42 THEN 29 + + MAX( ALL 82 ) WHEN + 25 + - 95 THEN NULL END END THEN 45 + COUNT( * ) / + 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7920
SELECT + CASE - 68 WHEN + CASE 45 WHEN 53 THEN + 50 + + 31 ELSE 76 * CASE NULLIF ( 4, - 14 + 29 * + ( - CAST ( NULL AS INTEGER ) ) ) WHEN + 51 + + 42 THEN 29 + + MAX ( ALL 82 ) WHEN + 25 + - 95 THEN NULL END END THEN 45 + COUNT ( * ) / + 27 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT ALL + + 38 * ( 11 ) - COUNT( * ) * 81
----
337

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL + + 38 * ( 11 ) - COUNT ( * ) * 81
----
337

query I rowsort
SELECT 19 * 90
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT - COUNT( * ) * - 46 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7923
SELECT - COUNT ( * ) * - 46 AS col2
----
46

query I rowsort
SELECT 38 * + - 89 col1
----
-3382

query I rowsort
SELECT + 29 * - ( ( 2 ) )
----
-58

query I rowsort
SELECT 31 * 99 + 30 * 44 AS col0
----
4389

query I rowsort
SELECT - ( 5 ) + - 25 AS col1
----
-30

query I rowsort
SELECT ALL + 31 * + 66 * 27 AS col2
----
55242

query I rowsort
SELECT DISTINCT + 13 + + 32 col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT - CASE + + 92 WHEN 44 * - COUNT( + 52 ) THEN NULL WHEN - 47 THEN - ( - 84 ) ELSE NULL END - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7930
SELECT - CASE + + 92 WHEN 44 * - COUNT ( + 52 ) THEN NULL WHEN - 47 THEN - ( - 84 ) ELSE NULL END - 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7931
SELECT - 75 * + COUNT( * ) DIV + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7931
SELECT - 75 * + COUNT ( * ) / + 78 AS col0
----
0

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

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

query I rowsort
SELECT DISTINCT - 86 + + 81 AS col0
----
-5

query I rowsort
SELECT ALL + 32 + ( 81 ) * - 68
----
-5476

query I rowsort
SELECT - 39 * + 87 AS col0
----
-3393

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT - 45 * COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7936
SELECT - 45 * COUNT ( * ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL CASE + + ( 42 ) WHEN + 72 * NULLIF ( 77, + 48 ) THEN + 48 WHEN + COUNT( * ) - ( - 80 + + ( + NULLIF ( + 81, - 43 ) + - 30 ) * ( + ( - 66 ) ) ) THEN + 92 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL CASE + + ( 42 ) WHEN + 72 * NULLIF ( 77, + 48 ) THEN + 48 WHEN + COUNT ( * ) - ( - 80 + + ( + NULLIF ( + 81, - 43 ) + - 30 ) * ( + ( - 66 ) ) ) THEN + 92 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7938
SELECT DISTINCT CASE 9 WHEN - 85 * ( COALESCE ( + 94, CAST( - COUNT( * ) AS SIGNED ) + COUNT( * ) / - 16 ) ) THEN + 72 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT CASE 9 WHEN - 85 * ( COALESCE ( + 94, CAST ( - COUNT ( * ) AS INTEGER ) + COUNT ( * ) / - 16 ) ) THEN + 72 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT - SUM( - 59 ) - ( + 18 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7939
SELECT - SUM ( - 59 ) - ( + 18 ) AS col2
----
41

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7941
SELECT ALL - - 58 + + ( 67 ) DIV + 30 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - - 58 + + ( 67 ) / + 30 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ALL - 28 - - COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL - 28 - - COUNT ( * ) AS col1
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT + 50 - + COUNT( * ) col2
----
49

skipif mysql # not compatible
query I rowsort label-7944
SELECT + 50 - + COUNT ( * ) col2
----
49

query I rowsort
SELECT - - 79 + + - 59 AS col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7946
SELECT + - 82 DIV + - 39 col0
----
2

skipif mysql # not compatible
query I rowsort label-7946
SELECT + - 82 / + - 39 col0
----
2

query I rowsort
SELECT 13 * - 90 + + 61
----
-1109

query I rowsort
SELECT ALL + 1 * - 48
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7949
SELECT + + ( CASE WHEN 57 IS NOT NULL THEN 63 + 48 WHEN NOT 16 + 61 IN ( + COUNT( CAST( + 56 AS DECIMAL ) ) + - 32 ) THEN 83 END )
----
111

skipif mysql # not compatible
query I rowsort label-7949
SELECT + + ( CASE WHEN 57 IS NOT NULL THEN 63 + 48 WHEN NOT 16 + 61 IN ( + COUNT ( CAST ( + 56 AS REAL ) ) + - 32 ) THEN 83 END )
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7950
SELECT - - COUNT( * ) DIV + 19 + + 56 + - 0 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7950
SELECT - - COUNT ( * ) / + 19 + + 56 + - 0 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT DISTINCT SUM( + ( 27 ) ) * 83 AS col2
----
2241

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT SUM ( + ( 27 ) ) * 83 AS col2
----
2241

query I rowsort
SELECT + - 63 + + + 32 AS col0
----
-31

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

query I rowsort
SELECT ALL 47 * ( + - 38 ) AS col1
----
-1786

query I rowsort
SELECT - 53 * - - 23
----
-1219

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT + MAX( - + 89 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-7956
SELECT + MAX ( - + 89 ) AS col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-7957
SELECT + 4 * - 14 DIV - 62 * - 57 + 90 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-7957
SELECT + 4 * - 14 / - 62 * - 57 + 90 / 63
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT + 5 DIV - - 93
----
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT + 5 / - - 93
----
0

query I rowsort
SELECT - 11 * + CASE + 25 WHEN 79 THEN - 12 + + 49 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL 60 * 30 * + + ( + 54 ) + ( - 82 + COUNT( * ) ) col1
----
97119

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL 60 * 30 * + + ( + 54 ) + ( - 82 + COUNT ( * ) ) col1
----
97119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT CASE ( 99 ) WHEN + 91 THEN + 85 + ( + 21 ) ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7963
SELECT CASE ( 99 ) WHEN + 91 THEN + 85 + ( + 21 ) ELSE CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT - 82 * 39 + + 75 AS col0
----
-3123

query I rowsort
SELECT DISTINCT + NULLIF ( + + 82, - 0 / - 78 ) AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7966
SELECT ALL - 72 DIV - + 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL - 72 / - + 41 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7967
SELECT ALL 65 * - + CAST( + 96 AS SIGNED ) + COUNT( * )
----
-6239

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL 65 * - + CAST ( + 96 AS INTEGER ) + COUNT ( * )
----
-6239

query I rowsort
SELECT DISTINCT 46 * + 44 + + - 47 AS col0
----
1977

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL 15 * COUNT( 56 ) + - 97
----
-82

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL 15 * COUNT ( 56 ) + - 97
----
-82

query I rowsort
SELECT ALL 84 * + ( + + 85 ) + 25
----
7165

query I rowsort
SELECT COALESCE ( + 89, 76 ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT ALL 33 DIV - + 50 * - - 1
----
0

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL 33 / - + 50 * - - 1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT - ( + COALESCE ( CAST( NULL AS SIGNED ), CAST( + CASE ( + 58 ) WHEN + 32 + + 9 THEN 58 WHEN 11 / 85 THEN NULL ELSE NULL END AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT - ( + COALESCE ( CAST ( NULL AS INTEGER ), CAST ( + CASE ( + 58 ) WHEN + 32 + + 9 THEN 58 WHEN 11 / 85 THEN NULL ELSE NULL END AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT - 21 * - 37
----
777

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT ALL 52 * 7 DIV + 29 + + 3
----
15

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL 52 * 7 / + 29 + + 3
----
15

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

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

query II rowsort
SELECT - 64, 85 AS col1
----
-64
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7978
SELECT + 71 * + MIN( DISTINCT + + ( + ( + CAST( NULL AS SIGNED ) ) ) ) + - 39 * + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT + 71 * + MIN ( DISTINCT + + ( + ( + CAST ( NULL AS INTEGER ) ) ) ) + - 39 * + 31 AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( + 56 ) AS col0
----
56

query I rowsort
SELECT - + NULLIF ( + 2, - 95 ) + - 39
----
-41

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - - 93, + ( - 75 ) * 77 ) AS col2
----
93

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

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

query I rowsort
SELECT - 20 + - ( + 0 ) - 50
----
-70

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

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

query I rowsort
SELECT ALL - + 31 * 72 * + 94 + 88 * - 22 AS col0
----
-211744

query I rowsort
SELECT - - 91 * + 24 + + 97 AS col1
----
2281

query I rowsort
SELECT - 61 + + 19
----
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT DISTINCT MAX( ALL - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT MAX ( ALL - 14 )
----
-14

query I rowsort
SELECT 94 * 14 - + 29
----
1287

query II rowsort
SELECT + 37, 29 AS col2
----
37
29

query I rowsort
SELECT + 89 * - 6 AS col2
----
-534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7994
SELECT - 87 AS col1, SUM( ALL 2 ) + - CAST( NULL AS SIGNED )
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-7994
SELECT - 87 AS col1, SUM ( ALL 2 ) + - CAST ( NULL AS INTEGER )
----
-87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT 28 * MAX( DISTINCT 77 )
----
2156

skipif mysql # not compatible
query I rowsort label-7995
SELECT 28 * MAX ( DISTINCT 77 )
----
2156

query I rowsort
SELECT 32 * - 56 AS col2
----
-1792

onlyif mysql # DIV for integer division: 
query I rowsort label-7997
SELECT ALL + 76 DIV - 53
----
-1

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL + 76 / - 53
----
-1

query I rowsort
SELECT ALL 76 + - 90 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT SUM( 10 ) DIV + + 50 - + + 89 - 58
----
-147

skipif mysql # not compatible
query I rowsort label-7999
SELECT SUM ( 10 ) / + + 50 - + + 89 - 58
----
-147

query II rowsort
SELECT ALL 93 + 29 col2, - 68 AS col1
----
122
-68

query I rowsort
SELECT CASE + 25 WHEN - 56 THEN + + 52 WHEN + 2 THEN NULL END * - 66 + - 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8002
SELECT DISTINCT 28 + + COUNT( * ) * + + CAST( + 54 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT 28 + + COUNT ( * ) * + + CAST ( + 54 AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8003
SELECT 67 * + COUNT( * ), 39 * + 9 * + COUNT( * ) AS col0
----
67
351

skipif mysql # not compatible
query II rowsort label-8003
SELECT 67 * + COUNT ( * ), 39 * + 9 * + COUNT ( * ) AS col0
----
67
351

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT ALL - 13 + - + COUNT( * ) - + ( + ( 55 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL - 13 + - + COUNT ( * ) - + ( + ( 55 ) )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT DISTINCT 92 + - 5 + - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT 92 + - 5 + - COUNT ( * )
----
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT + 67 * + - 92 * 46 * 53 + COUNT( ALL 5 ) AS col1
----
-15027831

skipif mysql # not compatible
query I rowsort label-8007
SELECT + 67 * + - 92 * 46 * 53 + COUNT ( ALL 5 ) AS col1
----
-15027831

query I rowsort
SELECT ALL 27 + - 51 * + 49 * - - 24 * + 12 AS col2
----
-719685

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT SUM( 39 ) * - + 73 AS col1
----
-2847

skipif mysql # not compatible
query I rowsort label-8009
SELECT SUM ( 39 ) * - + 73 AS col1
----
-2847

query I rowsort
SELECT ALL 91 - - 10
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8011
SELECT DISTINCT NULLIF ( 86, - COUNT( * ) * - 46 ) DIV 7 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT NULLIF ( 86, - COUNT ( * ) * - 46 ) / 7 AS col0
----
12

query I rowsort
SELECT ALL - - 71 - + + 60 + 67 + + + 73
----
151

query II rowsort
SELECT DISTINCT + ( + 83 ) AS col0, 79 AS col0
----
83
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL + 87 * - + ( - SUM( ALL 93 ) ) AS col2
----
8091

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL + 87 * - + ( - SUM ( ALL 93 ) ) AS col2
----
8091

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8015
SELECT + COUNT( * ) DIV + - 32 * 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8015
SELECT + COUNT ( * ) / + - 32 * 69 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT DISTINCT ( - 79 ) * - - NULLIF ( - COUNT( * ), 92 ) + 2 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT ( - 79 ) * - - NULLIF ( - COUNT ( * ), 92 ) + 2 AS col0
----
81

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

skipif mysql # not compatible
query I rowsort label-8017
SELECT - 23 / - 17 * + + COUNT ( * )
----
1

query I rowsort
SELECT + 62 * 84 AS col2
----
5208

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT 24 - - 64 - - COALESCE ( - 67, - 67 * + 88 ) * COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-8019
SELECT 24 - - 64 - - COALESCE ( - 67, - 67 * + 88 ) * COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT - 54 * 21 + COUNT( DISTINCT - + 72 ) + 65
----
-1068

skipif mysql # not compatible
query I rowsort label-8020
SELECT - 54 * 21 + COUNT ( DISTINCT - + 72 ) + 65
----
-1068

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT ALL + NULLIF ( - 36, MIN( ALL - 33 ) / 65 )
----
-36

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL + NULLIF ( - 36, MIN ( ALL - 33 ) / 65 )
----
-36

query I rowsort
SELECT - 21 * + + 40
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT DISTINCT - COUNT( DISTINCT - 99 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT - COUNT ( DISTINCT - 99 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ALL + 41 + + COUNT( * ) + 1 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL + 41 + + COUNT ( * ) + 1 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT - MAX( - - 77 ) + - 51
----
-128

skipif mysql # not compatible
query I rowsort label-8025
SELECT - MAX ( - - 77 ) + - 51
----
-128

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8027
SELECT COALESCE ( - 66, + + 37 + - MIN( 56 ) DIV 87, - CASE COUNT( ALL 51 ) WHEN ( - COUNT( * ) ) * COUNT( * ) THEN ( 92 ) ELSE CAST( NULL AS SIGNED ) END * + 22 ) + 22
----
-44

skipif mysql # not compatible
query I rowsort label-8027
SELECT COALESCE ( - 66, + + 37 + - MIN ( 56 ) / 87, - CASE COUNT ( ALL 51 ) WHEN ( - COUNT ( * ) ) * COUNT ( * ) THEN ( 92 ) ELSE CAST ( NULL AS INTEGER ) END * + 22 ) + 22
----
-44

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8029
SELECT ALL - 50 + - - 91 AS col1, COUNT( * ) + + + COALESCE ( + 11, + 45 * - 14 )
----
41
12

skipif mysql # not compatible
query II rowsort label-8029
SELECT ALL - 50 + - - 91 AS col1, COUNT ( * ) + + + COALESCE ( + 11, + 45 * - 14 )
----
41
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8030
SELECT DISTINCT + 91 * - 61 * - - CAST( - 22 AS SIGNED )
----
122122

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT + 91 * - 61 * - - CAST ( - 22 AS INTEGER )
----
122122

onlyif mysql # aggregate syntax: 
query II rowsort label-8031
SELECT SUM( + 62 ) * + - 29, 78 AS col2
----
-1798
78

skipif mysql # not compatible
query II rowsort label-8031
SELECT SUM ( + 62 ) * + - 29, 78 AS col2
----
-1798
78

query I rowsort
SELECT ALL + 72 * 9
----
648

query I rowsort
SELECT ALL - 18 + - 23
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL - ( - MAX( + 49 ) ) + - + COUNT( * ) + - - 46
----
94

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL - ( - MAX ( + 49 ) ) + - + COUNT ( * ) + - - 46
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT 67 + + COUNT( * ) AS col1
----
68

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

query I rowsort
SELECT ALL + 73 * - - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT ALL 22 + MAX( ALL - + 21 ) + - - 81 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL 22 + MAX ( ALL - + 21 ) + - - 81 AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT 57 DIV - + 24 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8038
SELECT 57 / - + 24 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8039
SELECT + 57 * - CAST( NULL AS SIGNED ) + 65 + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT + 57 * - CAST ( NULL AS INTEGER ) + 65 + + 21
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8040
SELECT 27 col1, + 68 DIV - + 88 col0
----
27
0

skipif mysql # not compatible
query II rowsort label-8040
SELECT 27 col1, + 68 / - + 88 col0
----
27
0

query I rowsort
SELECT 82 * + + ( - + 91 )
----
-7462

query I rowsort
SELECT 88 + 53 + + 54 + - 51 * - + ( + ( 76 ) ) AS col1
----
4071

query I rowsort
SELECT DISTINCT - 37 - - 5 AS col0
----
-32

query I rowsort
SELECT DISTINCT 15 * + - 61
----
-915

query I rowsort
SELECT 70 + + 16 + 36 * 91 + + 70 * 83
----
9172

query I rowsort
SELECT + 2 - - 24 col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8047
SELECT - - COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8047
SELECT - - COUNT ( * ), + COUNT ( * )
----
1
1

query II rowsort
SELECT 93 AS col1, 79
----
93
79

query I rowsort
SELECT 47 + 46
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8050
SELECT + 60 * + CAST( NULL AS SIGNED ) / + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT + 60 * + CAST ( NULL AS INTEGER ) / + 60 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8051
SELECT COUNT( * ) * - 25 + - ( - - 90 ) / CAST( NULL AS SIGNED ) + + COUNT( * ) * AVG ( DISTINCT + 62 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT COUNT ( * ) * - 25 + - ( - - 90 ) / CAST ( NULL AS INTEGER ) + + COUNT ( * ) * AVG ( DISTINCT + 62 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT 37 - + NULLIF ( - ( + - 60 ), 37 * 11 + COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-8052
SELECT 37 - + NULLIF ( - ( + - 60 ), 37 * 11 + COUNT ( * ) )
----
-23

query I rowsort
SELECT 39 + + - 42
----
-3

query I rowsort
SELECT ALL + 14 * - - 5 * + 47 + 77 * + 11 col1
----
4137

query II rowsort
SELECT DISTINCT - 60 AS col0, + 22 * 51
----
-60
1122

query I rowsort
SELECT ALL - ( - + 49 ) + + - 12 AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8057
SELECT + - 34 + COALESCE ( + + 42, - 71 * + 97 - 17, CAST( 45 AS SIGNED ) + 68, + MIN( ALL - 24 ) - 13 ) * 55 AS col2
----
2276

skipif mysql # not compatible
query I rowsort label-8057
SELECT + - 34 + COALESCE ( + + 42, - 71 * + 97 - 17, CAST ( 45 AS INTEGER ) + 68, + MIN ( ALL - 24 ) - 13 ) * 55 AS col2
----
2276

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT + + COUNT( + 18 ) * - - 70 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8058
SELECT + + COUNT ( + 18 ) * - - 70 AS col2
----
70

query I rowsort
SELECT + + 59 + - 30 * - 54
----
1679

query I rowsort
SELECT - - 84 + - 94 * - 66 - - + 45 AS col1
----
6333

query II rowsort
SELECT - 83 AS col2, + 70
----
-83
70

query I rowsort
SELECT + 98 * + + 11 AS col1
----
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT + MIN( 92 ) * - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-8063
SELECT + MIN ( 92 ) * - - COUNT ( * )
----
92

query I rowsort
SELECT ALL ( - - 15 ) + - + 51 + 30 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT DISTINCT 23 * - - 0 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT 23 * - - 0 * + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT + 35 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-8066
SELECT + 35 / - 60
----
0

query I rowsort
SELECT ALL - 13 + + 16 + - - 10 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT ALL 53 * + - 58 + + - MIN( DISTINCT - + 45 ) * + 23 col2
----
-2039

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL 53 * + - 58 + + - MIN ( DISTINCT - + 45 ) * + 23 col2
----
-2039

query II rowsort
SELECT ( - 56 ) AS col1, + 80
----
-56
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT DISTINCT COUNT( * ) * - - 24 - - - ( - 42 )
----
66

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT COUNT ( * ) * - - 24 - - - ( - 42 )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8071
SELECT CASE 76 WHEN + - 34 THEN - CASE 1 WHEN - - CAST( NULL AS SIGNED ) - - 60 THEN - 27 ELSE - COUNT( * ) END ELSE + 68 * + MAX( DISTINCT - 53 * 36 ) END
----
-129744

skipif mysql # not compatible
query I rowsort label-8071
SELECT CASE 76 WHEN + - 34 THEN - CASE 1 WHEN - - CAST ( NULL AS INTEGER ) - - 60 THEN - 27 ELSE - COUNT ( * ) END ELSE + 68 * + MAX ( DISTINCT - 53 * 36 ) END
----
-129744

query I rowsort
SELECT - 81 * + 74 AS col0
----
-5994

query I rowsort
SELECT + ( 51 ) * - - 40 * + 80 AS col2
----
163200

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT COALESCE ( + + 2, - 40 - + COUNT( 26 ), + - COUNT( * ) * NULLIF ( + 23 - - MAX( 97 ) * - 65, + COUNT( * ) * - 20 + 60 * - 52 ), 99 + + 38 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8074
SELECT COALESCE ( + + 2, - 40 - + COUNT ( 26 ), + - COUNT ( * ) * NULLIF ( + 23 - - MAX ( 97 ) * - 65, + COUNT ( * ) * - 20 + 60 * - 52 ), 99 + + 38 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT CASE 2 WHEN - - COUNT( * ) + COUNT( * ) + 88 THEN + 31 + MIN( ALL - 93 ) ELSE NULL END / SUM( DISTINCT 83 + ( + 38 ) ) - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT CASE 2 WHEN - - COUNT ( * ) + COUNT ( * ) + 88 THEN + 31 + MIN ( ALL - 93 ) ELSE NULL END / SUM ( DISTINCT 83 + ( + 38 ) ) - 14 AS col2
----
NULL

query I rowsort
SELECT - 45 - 97 AS col2
----
-142

query I rowsort
SELECT ALL 51 * - 84
----
-4284

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT - 62 * + COUNT( * ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-8078
SELECT - 62 * + COUNT ( * ) col2
----
-62

query II rowsort
SELECT DISTINCT + 69 AS col2, - 65
----
69
-65

query I rowsort
SELECT COALESCE ( - 57, + 54 * + 69 )
----
-57

query I rowsort
SELECT DISTINCT - 24 * - + 42 * - + 40
----
-40320

query I rowsort
SELECT - 26 * - 61
----
1586

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT 43 * - COUNT( * ) * + 93 + COUNT( * )
----
-3998

skipif mysql # not compatible
query I rowsort label-8083
SELECT 43 * - COUNT ( * ) * + 93 + COUNT ( * )
----
-3998

query I rowsort
SELECT - 20 * - 42 + + - 44
----
796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8085
SELECT - 44 DIV MIN( ALL + - 53 ) DIV + + COUNT( * ) + - NULLIF ( 50, CAST( - CASE - 25 WHEN 47 THEN - 73 + 16 ELSE 44 * - ( 3 ) END AS SIGNED ) ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-8085
SELECT - 44 / MIN ( ALL + - 53 ) / + + COUNT ( * ) + - NULLIF ( 50, CAST ( - CASE - 25 WHEN 47 THEN - 73 + 16 ELSE 44 * - ( 3 ) END AS INTEGER ) ) AS col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8086
SELECT ALL - 9 DIV 10 + 9 * 36, + COUNT( + 38 ) + 57 AS col0
----
324
58

skipif mysql # not compatible
query II rowsort label-8086
SELECT ALL - 9 / 10 + 9 * 36, + COUNT ( + 38 ) + 57 AS col0
----
324
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8087
SELECT - - COUNT( * ) * CASE + 33 WHEN - CASE + 48 WHEN + 53 + + CAST( NULL AS SIGNED ) THEN - 52 - 48 * - 72 WHEN - COUNT( * ) * + COUNT( * ) THEN + 90 + - 8 ELSE 27 + + 2 END * - 83 THEN NULL ELSE 78 END * + CASE WHEN ( 70 * - NULLIF ( - COUNT( * ), - NULLIF ( 89, SUM( 30 ) + CAST( NULL AS SIGNED ) * - AVG ( ALL + COALESCE ( + 88, 52 ) / 86 ) ) ) ) IS NULL THEN - CASE - AVG ( DISTINCT - 5 ) WHEN 22 THEN 79 + ( + 73 ) WHEN 31 + + 76 * COALESCE ( 61, - COUNT( * ) ) THEN NULLIF ( 97, + 40 ) ELSE 2 + 70 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT - - COUNT ( * ) * CASE + 33 WHEN - CASE + 48 WHEN + 53 + + CAST ( NULL AS INTEGER ) THEN - 52 - 48 * - 72 WHEN - COUNT ( * ) * + COUNT ( * ) THEN + 90 + - 8 ELSE 27 + + 2 END * - 83 THEN NULL ELSE 78 END * + CASE WHEN ( 70 * - NULLIF ( - COUNT ( * ), - NULLIF ( 89, SUM ( 30 ) + CAST ( NULL AS INTEGER ) * - AVG ( ALL + COALESCE ( + 88, 52 ) / 86 ) ) ) ) IS NULL THEN - CASE - AVG ( DISTINCT - 5 ) WHEN 22 THEN 79 + ( + 73 ) WHEN 31 + + 76 * COALESCE ( 61, - COUNT ( * ) ) THEN NULLIF ( 97, + 40 ) ELSE 2 + 70 END END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8088
SELECT + + 77 AS col2, 21 * COUNT( + 27 ) AS col2
----
77
21

skipif mysql # not compatible
query II rowsort label-8088
SELECT + + 77 AS col2, 21 * COUNT ( + 27 ) AS col2
----
77
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT - - CASE - + 96 WHEN 19 THEN - - 54 * - ( - 33 ) + + 61 / - 93 WHEN - 94 THEN + COUNT( * ) ELSE NULL END / ( + 59 * + 43 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8090
SELECT - - CASE - + 96 WHEN 19 THEN - - 54 * - ( - 33 ) + + 61 / - 93 WHEN - 94 THEN + COUNT ( * ) ELSE NULL END / ( + 59 * + 43 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ALL 24 * - - COUNT( * ) * - 43 + 34
----
-998

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL 24 * - - COUNT ( * ) * - 43 + 34
----
-998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT ALL + 85 * + CAST( + 64 AS SIGNED ) AS col2
----
5440

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL + 85 * + CAST ( + 64 AS INTEGER ) AS col2
----
5440

query I rowsort
SELECT + + 79 * + 53 + + 0 AS col2
----
4187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8094
SELECT ALL + - NULLIF ( 6, 50 - + ( COALESCE ( - 16, 48 * COALESCE ( MAX( ( - 56 ) ), NULLIF ( - CAST( + 93 AS SIGNED ), COUNT( * ) * CAST( 75 AS SIGNED ) ), NULLIF ( COUNT( * ), AVG ( + 49 ) + + COALESCE ( 48, 26 + 13, CASE COUNT( DISTINCT + 15 ) WHEN + 37 + + 3 THEN NULL WHEN - 72 THEN ( + 77 ) ELSE NULL END - - 74 ) * 85 ) ) - 67 * - 47 ) ) ) + - 81 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL + - NULLIF ( 6, 50 - + ( COALESCE ( - 16, 48 * COALESCE ( MAX ( ( - 56 ) ), NULLIF ( - CAST ( + 93 AS INTEGER ), COUNT ( * ) * CAST ( 75 AS INTEGER ) ), NULLIF ( COUNT ( * ), AVG ( + 49 ) + + COALESCE ( 48, 26 + 13, CASE COUNT ( DISTINCT + 15 ) WHEN + 37 + + 3 THEN NULL WHEN - 72 THEN ( + 77 ) ELSE NULL END - - 74 ) * 85 ) ) - 67 * - 47 ) ) ) + - 81 AS col0
----
-87

query I rowsort
SELECT DISTINCT - + 82 + + 53 + + - 37 AS col0
----
-66

query II rowsort
SELECT - ( - + 59 ), 2 * - 42 + + 38 AS col0
----
59
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL + COUNT( * ) * - COALESCE ( + - SUM( - - ( - + 81 ) ), + COUNT( * ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL + COUNT ( * ) * - COALESCE ( + - SUM ( - - ( - + 81 ) ), + COUNT ( * ) ) AS col2
----
-81

query I rowsort
SELECT + 30 * - 27 AS col1
----
-810

query I rowsort
SELECT - 69 - + + 51 AS col2
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8101
SELECT DISTINCT CASE - CASE + + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN - 14 * COUNT( * ) + + 71 - + 55 END WHEN 59 THEN - 42 WHEN - AVG ( DISTINCT + COALESCE ( 0, - 93 + COALESCE ( 76, NULLIF ( CAST( NULL AS SIGNED ), + 30 * 17 ), 21 ) ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT CASE - CASE + + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN - 14 * COUNT ( * ) + + 71 - + 55 END WHEN 59 THEN - 42 WHEN - AVG ( DISTINCT + COALESCE ( 0, - 93 + COALESCE ( 76, NULLIF ( CAST ( NULL AS INTEGER ), + 30 * 17 ), 21 ) ) ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 13 + + 31
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT + + NULLIF ( - COUNT( DISTINCT - 88 ), + 95 + + COUNT( - 11 ) + + 43 ) - - 71 * 56 col0
----
3975

skipif mysql # not compatible
query I rowsort label-8103
SELECT + + NULLIF ( - COUNT ( DISTINCT - 88 ), + 95 + + COUNT ( - 11 ) + + 43 ) - - 71 * 56 col0
----
3975

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL - COALESCE ( + 69, 24 * 60 + - + COUNT( * ) )
----
-69

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL - COALESCE ( + 69, 24 * 60 + - + COUNT ( * ) )
----
-69

query I rowsort
SELECT + - 53 - + 41 * 72 col1
----
-3005

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8107
SELECT ALL 47 + 47 + - NULLIF ( 4, - 45 ) - + - MIN( + 62 ) * + 91 DIV COUNT( * ) AS col2
----
5732

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL 47 + 47 + - NULLIF ( 4, - 45 ) - + - MIN ( + 62 ) * + 91 / COUNT ( * ) AS col2
----
5732

query II rowsort
SELECT DISTINCT 5 * 7 AS col0, 33 AS col2
----
35
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT DISTINCT 76 - + 5 + + 69 + - 40 - - - MIN( + + 33 ) * + 31 AS col0
----
-923

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT 76 - + 5 + + 69 + - 40 - - - MIN ( + + 33 ) * + 31 AS col0
----
-923

onlyif mysql # aggregate syntax: 
query II rowsort label-8110
SELECT - COALESCE ( + COUNT( * ), + 43 ) AS col0, 66 * + 48
----
-1
3168

skipif mysql # not compatible
query II rowsort label-8110
SELECT - COALESCE ( + COUNT ( * ), + 43 ) AS col0, 66 * + 48
----
-1
3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8111
SELECT + CASE WHEN MAX( + 73 ) > 60 THEN - CAST( NULL AS SIGNED ) END + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT + CASE WHEN MAX ( + 73 ) > 60 THEN - CAST ( NULL AS INTEGER ) END + - 7
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT - CASE 76 WHEN 56 * - COUNT( * ) THEN NULL ELSE - 15 END
----
15

skipif mysql # not compatible
query I rowsort label-8113
SELECT - CASE 76 WHEN 56 * - COUNT ( * ) THEN NULL ELSE - 15 END
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8114
SELECT - CAST( COUNT( * ) AS SIGNED ) col0, 47 DIV - COUNT( * ) + + 63 * + 19
----
-1
1150

skipif mysql # not compatible
query II rowsort label-8114
SELECT - CAST ( COUNT ( * ) AS INTEGER ) col0, 47 / - COUNT ( * ) + + 63 * + 19
----
-1
1150

query I rowsort
SELECT - 99 * 47 * + 11
----
-51183

query I rowsort
SELECT ALL 4 * - 65 * - 31
----
8060

query I rowsort
SELECT + 49 * - 95 * 89 + - - 17 AS col0
----
-414278

query I rowsort
SELECT + 21 + + 15 * + 2 * - 20
----
-579

query I rowsort
SELECT + 39 * + 24 * 24 * + ( + + 64 ) AS col2
----
1437696

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8121
SELECT + 29 * 17 DIV + + 46 + + - COUNT( * ) * + - ( ( - COUNT( * ) ) ) * 70
----
-60

skipif mysql # not compatible
query I rowsort label-8121
SELECT + 29 * 17 / + + 46 + + - COUNT ( * ) * + - ( ( - COUNT ( * ) ) ) * 70
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8122
SELECT CAST( - 28 AS SIGNED ) AS col0, 50
----
-28
50

skipif mysql # not compatible
query II rowsort label-8122
SELECT CAST ( - 28 AS INTEGER ) AS col0, 50
----
-28
50

query I rowsort
SELECT 56 * 9 + - - 76 AS col1
----
580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8124
SELECT - ( - ( + 16 ) ) DIV COUNT( * ) + - - 68 + ( COALESCE ( 24, 15, + 88 + 44 ) ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-8124
SELECT - ( - ( + 16 ) ) / COUNT ( * ) + - - 68 + ( COALESCE ( 24, 15, + 88 + 44 ) ) AS col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8125
SELECT ALL + - 74 / - CAST( NULL AS SIGNED ) - 0 * - 42 + - CASE WHEN NOT MAX( DISTINCT + 61 ) > 14 THEN NULL ELSE 37 END + - CAST( 46 + 89 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL + - 74 / - CAST ( NULL AS INTEGER ) - 0 * - 42 + - CASE WHEN NOT MAX ( DISTINCT + 61 ) > 14 THEN NULL ELSE 37 END + - CAST ( 46 + 89 AS INTEGER )
----
NULL

query I rowsort
SELECT + + 33 + + 87 + - 51 * + + 41 * + + 57 + + ( 43 ) AS col1
----
-119024

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT 76 + + - 90 + + - 71 * - + ( - 77 ) + + COUNT( * )
----
-5480

skipif mysql # not compatible
query I rowsort label-8127
SELECT 76 + + - 90 + + - 71 * - + ( - 77 ) + + COUNT ( * )
----
-5480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8128
SELECT + COALESCE ( - 52, - 25 ), + COUNT( * ) * CASE + 76 WHEN - NULLIF ( - COUNT( DISTINCT 18 ), CAST( NULL AS SIGNED ) - - 40 * 94 ) THEN - NULLIF ( + ( ( 45 ) ), 17 ) ELSE NULL END AS col1
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-8128
SELECT + COALESCE ( - 52, - 25 ), + COUNT ( * ) * CASE + 76 WHEN - NULLIF ( - COUNT ( DISTINCT 18 ), CAST ( NULL AS INTEGER ) - - 40 * 94 ) THEN - NULLIF ( + ( ( 45 ) ), 17 ) ELSE NULL END AS col1
----
-52
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8129
SELECT + CAST( + - CAST( + 90 AS SIGNED ) AS SIGNED ) AS col2, CAST( NULL AS DECIMAL ) + CAST( 76 AS DECIMAL ) AS col0
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-8129
SELECT + CAST ( + - CAST ( + 90 AS INTEGER ) AS INTEGER ) AS col2, CAST ( NULL AS REAL ) + CAST ( 76 AS REAL ) AS col0
----
-90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT DISTINCT + 56 + + 59 * + COUNT( - 19 )
----
115

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT + 56 + + 59 * + COUNT ( - 19 )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT ALL - + 96 + + COUNT( * ) + 86 * - - 75 * - 31 AS col0
----
-200045

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL - + 96 + + COUNT ( * ) + 86 * - - 75 * - 31 AS col0
----
-200045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8132
SELECT DISTINCT - - CASE 30 WHEN 35 THEN - 81 WHEN + 91 * + COUNT( DISTINCT + 42 ) + - MIN( 44 ) * 15 - CAST( 61 AS SIGNED ) THEN ( + 52 ) END * - MAX( - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT - - CASE 30 WHEN 35 THEN - 81 WHEN + 91 * + COUNT ( DISTINCT + 42 ) + - MIN ( 44 ) * 15 - CAST ( 61 AS INTEGER ) THEN ( + 52 ) END * - MAX ( - 68 )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8134
SELECT 46 + - 75, + 15 * 32 * NULLIF ( + CAST( NULL AS SIGNED ), 64 ) col2
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-8134
SELECT 46 + - 75, + 15 * 32 * NULLIF ( + CAST ( NULL AS INTEGER ), 64 ) col2
----
-29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT - 5 * - - COUNT( * ) * 31 * + 1 * + COUNT( * ) * + 24 AS col2
----
-3720

skipif mysql # not compatible
query I rowsort label-8135
SELECT - 5 * - - COUNT ( * ) * 31 * + 1 * + COUNT ( * ) * + 24 AS col2
----
-3720

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT ( 68 ) + - - 87 / + CASE - 38 WHEN + 65 THEN - + ( - COUNT( 35 ) ) * 21 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8136
SELECT ( 68 ) + - - 87 / + CASE - 38 WHEN + 65 THEN - + ( - COUNT ( 35 ) ) * 21 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT ALL - CAST( - 27 AS SIGNED ) + + 59 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL - CAST ( - 27 AS INTEGER ) + + 59 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT 25 + + CASE SUM( + 71 ) WHEN 74 * - - 79 THEN + 93 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT 25 + + CASE SUM ( + 71 ) WHEN 74 * - - 79 THEN + 93 END * COUNT ( * ) AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8140
SELECT + ( + SUM( ALL - + 39 ) ) + - - CAST( + 95 AS SIGNED ) col2
----
56

skipif mysql # not compatible
query I rowsort label-8140
SELECT + ( + SUM ( ALL - + 39 ) ) + - - CAST ( + 95 AS INTEGER ) col2
----
56

query I rowsort
SELECT ALL + 71 * + 12 * + - 71 AS col0
----
-60492

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT ALL COALESCE ( + 31, - MAX( + 14 ) * 10, 49 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL COALESCE ( + 31, - MAX ( + 14 ) * 10, 49 ) AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8143
SELECT COUNT( * ) + COALESCE ( 46, + - MAX( 55 ) + + 95 DIV 83 + - 92 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8143
SELECT COUNT ( * ) + COALESCE ( 46, + - MAX ( 55 ) + + 95 / 83 + - 92 ) AS col0
----
47

query II rowsort
SELECT DISTINCT + 38 * + 54 * + 82 AS col1, 72
----
168264
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT + NULLIF ( - 9, + - 44 ) * + - 88 - - COUNT( * ) AS col0
----
793

skipif mysql # not compatible
query I rowsort label-8145
SELECT + NULLIF ( - 9, + - 44 ) * + - 88 - - COUNT ( * ) AS col0
----
793

query II rowsort
SELECT - 24 AS col0, 74 + - 77 + - + 56 * - 27 + - - 92 AS col1
----
-24
1601

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT 92 + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-8147
SELECT 92 + COUNT ( * ) AS col2
----
93

query I rowsort
SELECT 63 * - 65 AS col0
----
-4095

query II rowsort
SELECT 70 AS col0, 39
----
70
39

query I rowsort
SELECT 11 + 4 + + 32 * - + 96
----
-3057

onlyif mysql # DIV for integer division: 
query II rowsort label-8151
SELECT 43, + 53 DIV + - 33 AS col1
----
43
-1

skipif mysql # not compatible
query II rowsort label-8151
SELECT 43, + 53 / + - 33 AS col1
----
43
-1

query I rowsort
SELECT ALL - 51 * - 22
----
1122

onlyif mysql # DIV for integer division: 
query II rowsort label-8153
SELECT 51 AS col0, - 3 DIV - + 22
----
51
0

skipif mysql # not compatible
query II rowsort label-8153
SELECT 51 AS col0, - 3 / - + 22
----
51
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8154
SELECT ALL 92 AS col0, COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
92
0

skipif mysql # not compatible
query II rowsort label-8154
SELECT ALL 92 AS col0, COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
92
0

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

skipif mysql # not compatible
query I rowsort label-8155
SELECT COUNT ( * ) / 20
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8156
SELECT DISTINCT SUM( ALL - 12 ) * CAST( NULL AS SIGNED ) AS col2, + 89 AS col2
----
NULL
89

skipif mysql # not compatible
query II rowsort label-8156
SELECT DISTINCT SUM ( ALL - 12 ) * CAST ( NULL AS INTEGER ) AS col2, + 89 AS col2
----
NULL
89

query I rowsort
SELECT 82 - + 8 col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8158
SELECT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) / - COUNT( + + 97 ) + 43 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8158
SELECT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - COUNT ( + + 97 ) + 43 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8159
SELECT NULLIF ( 39, - CAST( - - 3 AS SIGNED ) ) + + 25 + - + COALESCE ( COUNT( * ), 37 - NULLIF ( 6, 5 + + 26 ), ( - CAST( ( - 74 ) AS SIGNED ) ) + 81 ) - 44
----
19

skipif mysql # not compatible
query I rowsort label-8159
SELECT NULLIF ( 39, - CAST ( - - 3 AS INTEGER ) ) + + 25 + - + COALESCE ( COUNT ( * ), 37 - NULLIF ( 6, 5 + + 26 ), ( - CAST ( ( - 74 ) AS INTEGER ) ) + 81 ) - 44
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8160
SELECT DISTINCT COUNT( * ) + - 64 DIV 30 + + 55
----
54

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT COUNT ( * ) + - 64 / 30 + + 55
----
54

query II rowsort
SELECT + 13, ( - 57 ) * + + 2 AS col2
----
13
-114

query I rowsort
SELECT 42 * + + 93 col2
----
3906

query I rowsort
SELECT ALL CASE 21 WHEN + 42 THEN NULL WHEN + 89 THEN 26 - 77 END + + 8 + + 28 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8164
SELECT COALESCE ( - 49, - 75 - + 78 + + 69 DIV - - COUNT( * ) * + - 37 + - 79 DIV + CAST( NULL AS SIGNED ) ) - MIN( ALL 17 )
----
-66

skipif mysql # not compatible
query I rowsort label-8164
SELECT COALESCE ( - 49, - 75 - + 78 + + 69 / - - COUNT ( * ) * + - 37 + - 79 / + CAST ( NULL AS INTEGER ) ) - MIN ( ALL 17 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT DISTINCT + 40 + - 76 - - + CASE ( - 47 ) WHEN + COUNT( * ) + - 25 THEN COUNT( * ) WHEN + 64 + + 68 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT + 40 + - 76 - - + CASE ( - 47 ) WHEN + COUNT ( * ) + - 25 THEN COUNT ( * ) WHEN + 64 + + 68 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT - COUNT( * ) * + 31 + - COALESCE ( + - 61, 68 * - + 42 * + + 13 * - COALESCE ( + 34, - 78 ) * + 15 + 94 - 1, + 91, - 35 )
----
30

skipif mysql # not compatible
query I rowsort label-8166
SELECT - COUNT ( * ) * + 31 + - COALESCE ( + - 61, 68 * - + 42 * + + 13 * - COALESCE ( + 34, - 78 ) * + 15 + 94 - 1, + 91, - 35 )
----
30

query I rowsort
SELECT ALL 18 + 47
----
65

query I rowsort
SELECT ALL + 49 + - 8 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL + 27 + - 72 + 35 * + 88 * + COUNT( * ) AS col0
----
3035

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL + 27 + - 72 + 35 * + 88 * + COUNT ( * ) AS col0
----
3035

query I rowsort
SELECT - 6 + + + 97 + - 10 * + COALESCE ( + 54, + 86 ) AS col2
----
-449

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8171
SELECT - 89 - - 6 + + - 68 DIV - + COUNT( * ) + + 95 * - 90 * + 17
----
-145365

skipif mysql # not compatible
query I rowsort label-8171
SELECT - 89 - - 6 + + - 68 / - + COUNT ( * ) + + 95 * - 90 * + 17
----
-145365

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

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

query I rowsort
SELECT ALL - 66 + 19 col1
----
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT 94 * + - 86 + - MIN( 65 ) + - 43
----
-8192

skipif mysql # not compatible
query I rowsort label-8175
SELECT 94 * + - 86 + - MIN ( 65 ) + - 43
----
-8192

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8177
SELECT + + 40 AS col2, - 2 + - CAST( - 14 AS SIGNED ) AS col0
----
40
12

skipif mysql # not compatible
query II rowsort label-8177
SELECT + + 40 AS col2, - 2 + - CAST ( - 14 AS INTEGER ) AS col0
----
40
12

query I rowsort
SELECT ALL + - 2 * - 66 AS col0
----
132

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8180
SELECT - 41, - 53 + 37 - + + ( + - 86 ) DIV + 49 + + + 65 + - 54 + - 39 DIV 97 * 30 AS col1
----
-41
-4

skipif mysql # not compatible
query II rowsort label-8180
SELECT - 41, - 53 + 37 - + + ( + - 86 ) / + 49 + + + 65 + - 54 + - 39 / 97 * 30 AS col1
----
-41
-4

query I rowsort
SELECT - 31 + + 69 * - 75
----
-5206

query I rowsort
SELECT ALL + 81 * + 8 * 78 col0
----
50544

query I rowsort
SELECT ( - 85 ) + + - ( - 32 ) + 91 + 54 AS col0
----
92

query I rowsort
SELECT ( + 68 ) * - - 44
----
2992

query I rowsort
SELECT 76 * + 92 * + 89 col2
----
622288

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

skipif mysql # not compatible
query I rowsort label-8186
SELECT COUNT ( * ) * - 12
----
-12

query I rowsort
SELECT 82 - + 17 * + 71
----
-1125

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8189
SELECT 1 * MIN( - 95 ) * - CAST( NULL AS SIGNED ) AS col1, 2 AS col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-8189
SELECT 1 * MIN ( - 95 ) * - CAST ( NULL AS INTEGER ) AS col1, 2 AS col0
----
NULL
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8190
SELECT ALL + 92 DIV - 26 * + COUNT( - 94 ) AS col2, + ( + 19 ) + + + 66
----
-3
85

skipif mysql # not compatible
query II rowsort label-8190
SELECT ALL + 92 / - 26 * + COUNT ( - 94 ) AS col2, + ( + 19 ) + + + 66
----
-3
85

query I rowsort
SELECT 11 * + - 59
----
-649

query I rowsort
SELECT 82 + 94 col1
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT 1 + - ( - + COUNT( * ) ) * - - 40
----
41

skipif mysql # not compatible
query I rowsort label-8193
SELECT 1 + - ( - + COUNT ( * ) ) * - - 40
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT ALL + CASE - - 23 WHEN + 2 THEN - ( 66 ) WHEN 49 THEN - COUNT( * ) ELSE NULL END + - 11 * - 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL + CASE - - 23 WHEN + 2 THEN - ( 66 ) WHEN 49 THEN - COUNT ( * ) ELSE NULL END + - 11 * - 72 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8195
SELECT ALL COUNT( DISTINCT - + 3 ) * - 0 + - 72 - + ( - + NULLIF ( + + 23, + 92 ) ) * + ( 62 ) + + 63 * ( CASE 90 WHEN + 88 THEN NULL ELSE MAX( ALL CAST( NULL AS DECIMAL ) ) - + 80 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL COUNT ( DISTINCT - + 3 ) * - 0 + - 72 - + ( - + NULLIF ( + + 23, + 92 ) ) * + ( 62 ) + + 63 * ( CASE 90 WHEN + 88 THEN NULL ELSE MAX ( ALL CAST ( NULL AS REAL ) ) - + 80 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8196
SELECT 93 * 8 + + ( - COUNT( * ) ) + - 95 AS col1, + SUM( 63 ) * 32 * COUNT( * ) AS col2
----
648
2016

skipif mysql # not compatible
query II rowsort label-8196
SELECT 93 * 8 + + ( - COUNT ( * ) ) + - 95 AS col1, + SUM ( 63 ) * 32 * COUNT ( * ) AS col2
----
648
2016

query I rowsort
SELECT DISTINCT + 2 * - + 3 * 3 * + 94 * - 42
----
71064

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT DISTINCT 5 * MIN( ALL 65 ) * + 62 * + + 35 + + - 16 + - 42 AS col2
----
705192

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT 5 * MIN ( ALL 65 ) * + 62 * + + 35 + + - 16 + - 42 AS col2
----
705192

query I rowsort
SELECT - 90 * + - 41
----
3690

onlyif mysql # DIV for integer division: 
query I rowsort label-8201
SELECT + - ( - - 73 ) DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-8201
SELECT + - ( - - 73 ) / + 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT ALL + 56 * 61 * 22 * - 9 * + - ( + CASE 36 WHEN - + SUM( DISTINCT + 8 ) * + 72 THEN NULL WHEN + 2 + + 77 THEN - COUNT( * ) * 42 ELSE NULL END ) - ( COUNT( * ) ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL + 56 * 61 * 22 * - 9 * + - ( + CASE 36 WHEN - + SUM ( DISTINCT + 8 ) * + 72 THEN NULL WHEN + 2 + + 77 THEN - COUNT ( * ) * 42 ELSE NULL END ) - ( COUNT ( * ) ) - COUNT ( * )
----
NULL

query I rowsort
SELECT + - 31 * + + ( 79 ) + - 3 * - 56 AS col2
----
-2281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8204
SELECT ALL + - CASE CASE - 30 WHEN - CAST( NULL AS SIGNED ) THEN 28 WHEN + 47 THEN NULL END WHEN 16 THEN - 66 WHEN 24 + + 77 THEN NULL WHEN AVG ( DISTINCT ( + 78 ) ) * 57 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL + - CASE CASE - 30 WHEN - CAST ( NULL AS INTEGER ) THEN 28 WHEN + 47 THEN NULL END WHEN 16 THEN - 66 WHEN 24 + + 77 THEN NULL WHEN AVG ( DISTINCT ( + 78 ) ) * 57 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 49 + 66 + - - 62
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT MIN( - 69 ) * - 97 * + 72 - 26 * - - 13 * + 16 + - 52 + - 81
----
476355

skipif mysql # not compatible
query I rowsort label-8206
SELECT MIN ( - 69 ) * - 97 * + 72 - 26 * - - 13 * + 16 + - 52 + - 81
----
476355

query I rowsort
SELECT - CASE + + ( + 14 ) WHEN COALESCE ( - 60, + 71 ) + - + 50 THEN 38 * + 37 * - 60 + 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + - 79 + + 35 + + - COUNT( * ) * - 22
----
-22

skipif mysql # not compatible
query I rowsort label-8208
SELECT + - 79 + + 35 + + - COUNT ( * ) * - 22
----
-22

query I rowsort
SELECT + ( - - 19 ) * + + 42 + + + COALESCE ( - 84, + 4 + 96 ) + + NULLIF ( 40, 96 ) AS col2
----
754

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8210
SELECT + - COUNT( * ) * + - 70 DIV - + MAX( ALL + - 29 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8210
SELECT + - COUNT ( * ) * + - 70 / - + MAX ( ALL + - 29 ) AS col1
----
2

query I rowsort
SELECT - 12 + + 90 col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8212
SELECT + CAST( NULL AS SIGNED ) * - + 42 + + 25 + - - 54 * + ( 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT + CAST ( NULL AS INTEGER ) * - + 42 + + 25 + - - 54 * + ( 13 )
----
NULL

query II rowsort
SELECT - 21, - 20 * - - 10 col0
----
-21
-200

query I rowsort
SELECT + 70 + 80 + 71 + 59 AS col0
----
280

query I rowsort
SELECT ALL + 96 * - 28 AS col2
----
-2688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8216
SELECT + CAST( NULL AS SIGNED ) + + - 25 - - 48 - 39 * - 10 * - 70 AS col2, COUNT( * ) + + - 73
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-8216
SELECT + CAST ( NULL AS INTEGER ) + + - 25 - - 48 - 39 * - 10 * - 70 AS col2, COUNT ( * ) + + - 73
----
NULL
-72

query I rowsort
SELECT ALL COALESCE ( - 37, 77 ) AS col1
----
-37

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

skipif mysql # not compatible
query I rowsort label-8218
SELECT - 99 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query I rowsort
SELECT - 16 + - - 87
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8221
SELECT ALL 81 + 39 - + COUNT( * ), 59 + + ( + 9 ) col2
----
119
68

skipif mysql # not compatible
query II rowsort label-8221
SELECT ALL 81 + 39 - + COUNT ( * ), 59 + + ( + 9 ) col2
----
119
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT - 92 + 61 * - + 42 * - COUNT( * ) AS col2
----
2470

skipif mysql # not compatible
query I rowsort label-8222
SELECT - 92 + 61 * - + 42 * - COUNT ( * ) AS col2
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT - COUNT( DISTINCT - + 41 ) + + NULLIF ( - - 5, - + 66 ) col1
----
4

skipif mysql # not compatible
query I rowsort label-8223
SELECT - COUNT ( DISTINCT - + 41 ) + + NULLIF ( - - 5, - + 66 ) col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8224
SELECT DISTINCT CASE - NULLIF ( + 54, 60 ) WHEN 66 THEN NULL WHEN - + CASE + NULLIF ( + 50, + + 5 * + 88 ) WHEN 74 + 5 * - 99 THEN NULL WHEN + 6 THEN 7 END THEN + 44 WHEN 69 * 16 THEN - CAST( NULL AS SIGNED ) / - 54 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT CASE - NULLIF ( + 54, 60 ) WHEN 66 THEN NULL WHEN - + CASE + NULLIF ( + 50, + + 5 * + 88 ) WHEN 74 + 5 * - 99 THEN NULL WHEN + 6 THEN 7 END THEN + 44 WHEN 69 * 16 THEN - CAST ( NULL AS INTEGER ) / - 54 ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL 45 + + 1 + + 31 - - 99 + 28 / - - CASE + 48 WHEN - 80 / 92 + + 53 THEN + 23 ELSE NULL END * + 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8226
SELECT DISTINCT 3 + - + 1 * - CAST( NULL AS SIGNED ), + 36 col1
----
NULL
36

skipif mysql # not compatible
query II rowsort label-8226
SELECT DISTINCT 3 + - + 1 * - CAST ( NULL AS INTEGER ), + 36 col1
----
NULL
36

query I rowsort
SELECT - 74 + - 23 * - - ( + 52 ) AS col2
----
-1270

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT ALL 38 + COUNT( ALL 71 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL 38 + COUNT ( ALL 71 ) AS col0
----
39

query I rowsort
SELECT - 9 * 67 AS col2
----
-603

query I rowsort
SELECT ALL + 62 + - 12 * + 26 * + 8
----
-2434

query I rowsort
SELECT - - ( - - 9 ) - + 74
----
-65

query I rowsort
SELECT - - 21 * 13 col0
----
273

query II rowsort
SELECT 10 AS col0, 11
----
10
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT + 81 / NULLIF ( + - 78, 18 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT + 81 / NULLIF ( + - 78, 18 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - COALESCE ( - 62, + 12 )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8236
SELECT DISTINCT + + 60 * + 74 + 11 + COUNT( * ) * + COUNT( DISTINCT 82 ), - 13 * + 33 col0
----
4452
-429

skipif mysql # not compatible
query II rowsort label-8236
SELECT DISTINCT + + 60 * + 74 + 11 + COUNT ( * ) * + COUNT ( DISTINCT 82 ), - 13 * + 33 col0
----
4452
-429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 26 * + - 3 / + 27 * 27 * - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 26 * + - 3 / + 27 * 27 * - 94 AS col2
----
NULL

query II rowsort
SELECT ALL + 33 AS col0, - 41
----
33
-41

query I rowsort
SELECT ALL + - 93 * 77
----
-7161

onlyif mysql # DIV for integer division: 
query I rowsort label-8240
SELECT ALL - 73 DIV ( 93 ) - 1 * + 64
----
-64

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL - 73 / ( 93 ) - 1 * + 64
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT ALL - 25 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL - 25 / + 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT + + COUNT( * ) * 4 + + NULLIF ( ( ( 76 ) ), 60 ) + - - 54
----
134

skipif mysql # not compatible
query I rowsort label-8242
SELECT + + COUNT ( * ) * 4 + + NULLIF ( ( ( 76 ) ), 60 ) + - - 54
----
134

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8244
SELECT - COUNT( * ) * - - 40 DIV - + 49 AS col1, + 36 AS col2
----
0
36

skipif mysql # not compatible
query II rowsort label-8244
SELECT - COUNT ( * ) * - - 40 / - + 49 AS col1, + 36 AS col2
----
0
36

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

query I rowsort
SELECT ALL - 92 * - - ( - NULLIF ( + 66, 29 + - + 2 - + + 84 / 89 ) )
----
6072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8247
SELECT CASE - COUNT( * ) WHEN - - 98 THEN NULL WHEN - SUM( + ( - - ( - 34 ) ) ) THEN - CAST( - + ( - 45 ) AS SIGNED ) * + + ( 24 ) + - COUNT( * ) * + 18 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT CASE - COUNT ( * ) WHEN - - 98 THEN NULL WHEN - SUM ( + ( - - ( - 34 ) ) ) THEN - CAST ( - + ( - 45 ) AS INTEGER ) * + + ( 24 ) + - COUNT ( * ) * + 18 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT SUM( - 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8248
SELECT SUM ( - 20 ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8249
SELECT DISTINCT COUNT( * ) * CAST( + MIN( ALL - + 6 ) AS SIGNED ) * - 29 AS col0
----
174

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT COUNT ( * ) * CAST ( + MIN ( ALL - + 6 ) AS INTEGER ) * - 29 AS col0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ALL 89 * - MAX( 3 ) + + 7 * - + 49 * - CASE + COUNT( * ) WHEN + 10 * + + MIN( DISTINCT - ( + ( 90 ) ) ) * 66 + 35 + - 47 THEN NULL WHEN - 71 THEN 30 * 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL 89 * - MAX ( 3 ) + + 7 * - + 49 * - CASE + COUNT ( * ) WHEN + 10 * + + MIN ( DISTINCT - ( + ( 90 ) ) ) * 66 + 35 + - 47 THEN NULL WHEN - 71 THEN 30 * 25 END
----
NULL

query I rowsort
SELECT + 16 * - 19
----
-304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8252
SELECT ALL + COUNT( * ) * + CASE + 42 WHEN 5 * - 22 THEN - 43 * ( - 95 ) - - NULLIF ( - 0, - 97 DIV - 92 ) * + COUNT( * ) WHEN 37 * - CAST( NULL AS SIGNED ) THEN NULL ELSE 48 * + COUNT( * ) END DIV COUNT( * ) + CAST( - COUNT( * ) AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL + COUNT ( * ) * + CASE + 42 WHEN 5 * - 22 THEN - 43 * ( - 95 ) - - NULLIF ( - 0, - 97 / - 92 ) * + COUNT ( * ) WHEN 37 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE 48 * + COUNT ( * ) END / COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER )
----
47

query II rowsort
SELECT - 45, + 94 col2
----
-45
94

query I rowsort
SELECT ALL 62 + 60 + - 33 + 61 * - 70 * + ( - 96 ) + - 57 + - 60 * - 97
----
415772

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT NULLIF ( ( + 74 ), SUM( ALL - 70 ) ) + + - 0 + + - 26 * + 65
----
-1616

skipif mysql # not compatible
query I rowsort label-8255
SELECT NULLIF ( ( + 74 ), SUM ( ALL - 70 ) ) + + - 0 + + - 26 * + 65
----
-1616

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

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL COUNT ( * ) + - - COUNT ( * ) AS col1
----
2

query I rowsort
SELECT 36 + - + ( + - 76 )
----
112

query I rowsort
SELECT ALL - 30 + + 34 + + + 43 * 59 + 40 * - + 90 * 58 * - + 7 + - 3 * + 82 AS col0
----
1463895

query I rowsort
SELECT 42 * 27 col1
----
1134

query I rowsort
SELECT 92 + - 80 * 84 AS col2
----
-6628

query I rowsort
SELECT ALL COALESCE ( - + 13, + 37 ) - + 53 AS col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8262
SELECT - 81 * + + COUNT( * ) * + COUNT( * ) + 5 - + - 3 + + 13 * - 30 - 46 DIV - + 85 AS col0, 20
----
-463
20

skipif mysql # not compatible
query II rowsort label-8262
SELECT - 81 * + + COUNT ( * ) * + COUNT ( * ) + 5 - + - 3 + + 13 * - 30 - 46 / - + 85 AS col0, 20
----
-463
20

query I rowsort
SELECT 81 + - 44 + + 76 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL + MAX( DISTINCT + + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL + MAX ( DISTINCT + + 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8265
SELECT + 18 * + - COALESCE ( - 15, 66 * - CASE + 2 WHEN - 40 / - + CAST( + ( + COALESCE ( - 84, - 57 ) ) AS SIGNED ) + COUNT( * ) THEN - 41 WHEN + ( 33 ) * 36 THEN 69 END )
----
270

skipif mysql # not compatible
query I rowsort label-8265
SELECT + 18 * + - COALESCE ( - 15, 66 * - CASE + 2 WHEN - 40 / - + CAST ( + ( + COALESCE ( - 84, - 57 ) ) AS INTEGER ) + COUNT ( * ) THEN - 41 WHEN + ( 33 ) * 36 THEN 69 END )
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-8266
SELECT + - 76 DIV 2 + - 90
----
-128

skipif mysql # not compatible
query I rowsort label-8266
SELECT + - 76 / 2 + - 90
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8267
SELECT ALL - 35 - - NULLIF ( - + CAST( 66 AS SIGNED ), + + 85 + + COUNT( * ) * - 85 ) AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL - 35 - - NULLIF ( - + CAST ( 66 AS INTEGER ), + + 85 + + COUNT ( * ) * - 85 ) AS col0
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-8268
SELECT DISTINCT - 20 AS col2, + COUNT( * ) + + COUNT( * ) * 96 * - - MAX( - 68 ) + - 15 - - - 7
----
-20
-6549

skipif mysql # not compatible
query II rowsort label-8268
SELECT DISTINCT - 20 AS col2, + COUNT ( * ) + + COUNT ( * ) * 96 * - - MAX ( - 68 ) + - 15 - - - 7
----
-20
-6549

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8269
SELECT 38 DIV + COUNT( * ) + COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8269
SELECT 38 / + COUNT ( * ) + COUNT ( * ) AS col0
----
39

query I rowsort
SELECT + - COALESCE ( - 20, NULLIF ( - - ( + 76 ), - 30 ) ) AS col0
----
20

query I rowsort
SELECT DISTINCT - 52 * + - 62 AS col1
----
3224

query II rowsort
SELECT + + 61 col0, - 2 AS col2
----
61
-2

query I rowsort
SELECT + 70 * + 47 + 18 + - + ( - 96 ) AS col2
----
3404

query I rowsort
SELECT ALL - 91 * - - 98
----
-8918

query I rowsort
SELECT + 95 * + + 63 + NULLIF ( - 11, 49 ) + - 32 - - 71
----
6013

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT DISTINCT - COALESCE ( + 42, SUM( - CASE + - NULLIF ( + 15, 97 - 9 ) WHEN + 61 THEN NULL ELSE - 0 * + 63 END ) )
----
-42

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT - COALESCE ( + 42, SUM ( - CASE + - NULLIF ( + 15, 97 - 9 ) WHEN + 61 THEN NULL ELSE - 0 * + 63 END ) )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT 24 * - 14 + - COUNT( * )
----
-337

skipif mysql # not compatible
query I rowsort label-8277
SELECT 24 * - 14 + - COUNT ( * )
----
-337

query I rowsort
SELECT ALL - ( + 89 ) + 78
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ( - ( + - COUNT( * ) ) ) + - ( - NULLIF ( 92, - + ( - 54 ) ) ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-8279
SELECT ( - ( + - COUNT ( * ) ) ) + - ( - NULLIF ( 92, - + ( - 54 ) ) ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT - CASE - COUNT( * ) WHEN 93 + 51 + 70 THEN - 91 WHEN - COUNT( * ) THEN NULL ELSE NULL END * 39 + 6 + 9 * + 22 / 24 * COUNT( * ) + ( ( - 25 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT - CASE - COUNT ( * ) WHEN 93 + 51 + 70 THEN - 91 WHEN - COUNT ( * ) THEN NULL ELSE NULL END * 39 + 6 + 9 * + 22 / 24 * COUNT ( * ) + ( ( - 25 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8281
SELECT ALL - COUNT( ALL - 5 ) + - - ( + + CAST( NULL AS SIGNED ) ) + - 99 + - ( + 15 ) + + 20 - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL - COUNT ( ALL - 5 ) + - - ( + + CAST ( NULL AS INTEGER ) ) + - 99 + - ( + 15 ) + + 20 - + 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT ALL + 34 * 55 * - 74 * CAST( NULL AS SIGNED ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8283
SELECT COUNT( * ) * + 80 AS col2, - 23 + - NULLIF ( - 82, + + 16 ) AS col2
----
80
59

skipif mysql # not compatible
query II rowsort label-8283
SELECT COUNT ( * ) * + 80 AS col2, - 23 + - NULLIF ( - 82, + + 16 ) AS col2
----
80
59

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

skipif mysql # not compatible
query I rowsort label-8284
SELECT + COUNT ( * ) + + 2 AS col0
----
3

query I rowsort
SELECT ALL NULLIF ( 42, + 97 - + - 53 - + - 37 ) AS col0
----
42

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

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

query I rowsort
SELECT ALL 46 * - 77 AS col1
----
-3542

query I rowsort
SELECT 9 * + + 72 - + 24 AS col1
----
624

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT CASE - 28 WHEN - 67 * 95 THEN + - NULLIF ( NULLIF ( + 41, COUNT( * ) ), - 14 ) + + 2 / - COUNT( * ) WHEN + + 57 + 40 THEN NULL END / - 31 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT CASE - 28 WHEN - 67 * 95 THEN + - NULLIF ( NULLIF ( + 41, COUNT ( * ) ), - 14 ) + + 2 / - COUNT ( * ) WHEN + + 57 + 40 THEN NULL END / - 31 + - COUNT ( * )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8292
SELECT 63 * - 42, + CASE - 80 WHEN - 13 THEN + CAST( NULL AS SIGNED ) * 3 * + 61 * COUNT( * ) * 74 ELSE NULL END AS col2
----
-2646
NULL

skipif mysql # not compatible
query II rowsort label-8292
SELECT 63 * - 42, + CASE - 80 WHEN - 13 THEN + CAST ( NULL AS INTEGER ) * 3 * + 61 * COUNT ( * ) * 74 ELSE NULL END AS col2
----
-2646
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8293
SELECT DISTINCT 34 * + - 43 + + - 41, + COUNT( * ) col1
----
-1503
1

skipif mysql # not compatible
query II rowsort label-8293
SELECT DISTINCT 34 * + - 43 + + - 41, + COUNT ( * ) col1
----
-1503
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT 9 * COUNT( - 58 ) + - 40 col1
----
-31

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT 9 * COUNT ( - 58 ) + - 40 col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8295
SELECT DISTINCT + - 60 * 83 - + 62 + CAST( NULL AS SIGNED ) + + + ( 52 ) * + + 68 * MAX( + - 49 ) - - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT + - 60 * 83 - + 62 + CAST ( NULL AS INTEGER ) + + + ( 52 ) * + + 68 * MAX ( + - 49 ) - - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8296
SELECT ALL - SUM( + 14 ) * 35 + + - 80 - - CAST( NULL AS SIGNED ), + 36 AS col1
----
NULL
36

skipif mysql # not compatible
query II rowsort label-8296
SELECT ALL - SUM ( + 14 ) * 35 + + - 80 - - CAST ( NULL AS INTEGER ), + 36 AS col1
----
NULL
36

query II rowsort
SELECT + 17, ( 10 ) AS col2
----
17
10

query I rowsort
SELECT 82 * + 60 * - CASE + 27 WHEN - 4 * - 77 + - 96 THEN 6 ELSE NULL END * - 51 * - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL - MIN( - 75 ) * - 15 * + 86 AS col0
----
-96750

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL - MIN ( - 75 ) * - 15 * + 86 AS col0
----
-96750

query I rowsort
SELECT - 81 * 32
----
-2592

onlyif mysql # aggregate syntax: 
query II rowsort label-8301
SELECT ALL + ( SUM( DISTINCT + - 77 ) ) AS col0, - 10
----
-77
-10

skipif mysql # not compatible
query II rowsort label-8301
SELECT ALL + ( SUM ( DISTINCT + - 77 ) ) AS col0, - 10
----
-77
-10

query I rowsort
SELECT ALL - 75 * + NULLIF ( ( - 67 ), - 77 ) AS col1
----
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT DISTINCT + CASE + 23 WHEN + 79 * + 68 / CAST( + 48 AS SIGNED ) THEN + 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT + CASE + 23 WHEN + 79 * + 68 / CAST ( + 48 AS INTEGER ) THEN + 95 END AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 21, + 92 ) - - 15 AS col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8305
SELECT ALL SUM( + - ( + + 74 ) ) AS col1, + 89 DIV - 67
----
-74
-1

skipif mysql # not compatible
query II rowsort label-8305
SELECT ALL SUM ( + - ( + + 74 ) ) AS col1, + 89 / - 67
----
-74
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT DISTINCT - NULLIF ( + - COUNT( * ), - - COUNT( * ) ) - 78 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT - NULLIF ( + - COUNT ( * ), - - COUNT ( * ) ) - 78 AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT - 55 * - 11 + - + 75 * - 91 + - 76 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT - 55 * - 11 + - + 75 * - 91 + - 76 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8308
SELECT - 3 DIV + - 52
----
0

skipif mysql # not compatible
query I rowsort label-8308
SELECT - 3 / + - 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL CASE - 24 WHEN COUNT( * ) THEN NULL ELSE + 47 END
----
47

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL CASE - 24 WHEN COUNT ( * ) THEN NULL ELSE + 47 END
----
47

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8311
SELECT DISTINCT + 12 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT + 12 / + 62
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8312
SELECT + + 82 DIV + 10 + + 79 * - 91 + ( 68 ) + - - 10 AS col1
----
-7103

skipif mysql # not compatible
query I rowsort label-8312
SELECT + + 82 / + 10 + + 79 * - 91 + ( 68 ) + - - 10 AS col1
----
-7103

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

skipif mysql # not compatible
query II rowsort label-8313
SELECT - COUNT ( * ) AS col0, - 21
----
-1
-21

query I rowsort
SELECT + + 32 - + + 72 AS col2
----
-40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8316
SELECT - + 21 DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-8316
SELECT - + 21 / 28
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8317
SELECT + 36 DIV 31
----
1

skipif mysql # not compatible
query I rowsort label-8317
SELECT + 36 / 31
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT + - 57 + + - COUNT( * ) - - + 13 + - + 0 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8318
SELECT + - 57 + + - COUNT ( * ) - - + 13 + - + 0 AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8319
SELECT ALL - 3 DIV 41 * + + ( 24 ) + + 66 * - + 66 - 74
----
-4430

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL - 3 / 41 * + + ( 24 ) + + 66 * - + 66 - 74
----
-4430

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT 97 DIV - ( - + ( + 38 ) ) + 52
----
54

skipif mysql # not compatible
query I rowsort label-8320
SELECT 97 / - ( - + ( + 38 ) ) + 52
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-8321
SELECT DISTINCT + + 81, 39 DIV 84 * + 23 AS col2
----
81
0

skipif mysql # not compatible
query II rowsort label-8321
SELECT DISTINCT + + 81, 39 / 84 * + 23 AS col2
----
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT ALL ( + + 37 ) * - 33 + + - 44 * - - MIN( ALL - - 47 ) + + 27 + 54
----
-3208

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL ( + + 37 ) * - 33 + + - 44 * - - MIN ( ALL - - 47 ) + + 27 + 54
----
-3208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8323
SELECT + + 45 * + COUNT( * ) + CAST( NULL AS SIGNED ) * + 1 + - + COUNT( * ) - + COUNT( * ) + + + 2 + - - 16 + + + 77 * 65 + - - 46 / 18 - - 78 * - COUNT( * ) * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8323
SELECT + + 45 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 1 + - + COUNT ( * ) - + COUNT ( * ) + + + 2 + - - 16 + + + 77 * 65 + - - 46 / 18 - - 78 * - COUNT ( * ) * + 68
----
NULL

query II rowsort
SELECT + - 14 * + 38 * + + 8 + 78 AS col0, 0
----
-4178
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8326
SELECT - SUM( DISTINCT - + 38 ) * - 18 * - - 58 + 71 DIV 94 * 55 DIV - MAX( ALL - 94 ) + - + 39 AS col0
----
-39711

skipif mysql # not compatible
query I rowsort label-8326
SELECT - SUM ( DISTINCT - + 38 ) * - 18 * - - 58 + 71 / 94 * 55 / - MAX ( ALL - 94 ) + - + 39 AS col0
----
-39711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8327
SELECT - CAST( NULL AS SIGNED ) / - 21 + - COUNT( + 77 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT - CAST ( NULL AS INTEGER ) / - 21 + - COUNT ( + 77 ) AS col2
----
NULL

query II rowsort
SELECT + 16 * - - 91, + 17 col2
----
1456
17

query I rowsort
SELECT - 45 * 82 + 25 AS col0
----
-3665

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8330
SELECT DISTINCT + 13 * - 45 * + ( + 88 ) - - CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT + 13 * - 45 * + ( + 88 ) - - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT - NULLIF ( COUNT( * ), - - 80 ) + - 73 + - + COALESCE ( + 22, - 37 * 22 ) * - MAX( ALL - 72 )
----
-1658

skipif mysql # not compatible
query I rowsort label-8331
SELECT - NULLIF ( COUNT ( * ), - - 80 ) + - 73 + - + COALESCE ( + 22, - 37 * 22 ) * - MAX ( ALL - 72 )
----
-1658

query I rowsort
SELECT ALL - 80 * ( + - 1 ) - + 28 AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8333
SELECT - SUM( - - 40 ) + COALESCE ( COALESCE ( + + COUNT( * ), - 61 ), + ( - CAST( NULL AS SIGNED ) ) * - 43, + - 17 DIV - 27 - - + 66 - - - 73 + 81 )
----
-39

skipif mysql # not compatible
query I rowsort label-8333
SELECT - SUM ( - - 40 ) + COALESCE ( COALESCE ( + + COUNT ( * ), - 61 ), + ( - CAST ( NULL AS INTEGER ) ) * - 43, + - 17 / - 27 - - + 66 - - - 73 + 81 )
----
-39

query II rowsort
SELECT + 91 * - 53 col1, 21
----
-4823
21

query II rowsort
SELECT + 50 * + 54 AS col0, 31 * + 33
----
2700
1023

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8336
SELECT COUNT( * ) * - 13 + - + MIN( + 91 ) + + CAST( + + 79 AS SIGNED ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-8336
SELECT COUNT ( * ) * - 13 + - + MIN ( + 91 ) + + CAST ( + + 79 AS INTEGER ) AS col2
----
-25

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

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

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

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

query I rowsort
SELECT DISTINCT ( NULLIF ( - 84, + 19 * - + 44 * + + ( 27 ) ) ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8340
SELECT - - 53 * - + CAST( - 68 AS SIGNED ) AS col2
----
3604

skipif mysql # not compatible
query I rowsort label-8340
SELECT - - 53 * - + CAST ( - 68 AS INTEGER ) AS col2
----
3604

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

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

query I rowsort
SELECT - - 61 + + 57 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT DISTINCT + 64 + - COUNT( * ) + - 55 * + 98 + 46 * - - 23 + - 96 AS col2
----
-4365

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT + 64 + - COUNT ( * ) + - 55 * + 98 + 46 * - - 23 + - 96 AS col2
----
-4365

query I rowsort
SELECT ALL - 6 + 80 * ( - 37 ) AS col2
----
-2966

query I rowsort
SELECT DISTINCT + - 17 + + + 27 + + 24 AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8346
SELECT - 91 * CAST( NULL AS SIGNED ), - CAST( NULL AS DECIMAL ) * 86 + ( 20 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8346
SELECT - 91 * CAST ( NULL AS INTEGER ), - CAST ( NULL AS REAL ) * 86 + ( 20 )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8347
SELECT ALL - 15 * + 4 DIV + + 90 col1
----
0

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL - 15 * + 4 / + + 90 col1
----
0

query I rowsort
SELECT DISTINCT + ( + 63 ) + + 51 + 84 + - 58
----
140

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT DISTINCT - MIN( ALL - 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8350
SELECT DISTINCT - MIN ( ALL - 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8351
SELECT DISTINCT 53 + - + 19 + - - 15 DIV - - 17 * - + COUNT( * ) * - - 75 + - 80 * - 15 col1
----
1234

skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT 53 + - + 19 + - - 15 / - - 17 * - + COUNT ( * ) * - - 75 + - 80 * - 15 col1
----
1234

query I rowsort
SELECT + - 60 * - 3 col2
----
180

query I rowsort
SELECT 1 * + - 73
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8354
SELECT ALL 76 DIV + COALESCE ( - - MAX( 57 ), + 14 + - 57 + + 0 DIV COUNT( DISTINCT - 9 ) + - 26 DIV 15 - + - 19 + + - 9 DIV + 85 * - 26 * - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL 76 / + COALESCE ( - - MAX ( 57 ), + 14 + - 57 + + 0 / COUNT ( DISTINCT - 9 ) + - 26 / 15 - + - 19 + + - 9 / + 85 * - 26 * - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT 20 - 80 AS col0
----
-60

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

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

query I rowsort
SELECT ALL + ( - + 93 ) - 90 AS col0
----
-183

query I rowsort
SELECT 10 + + 94 + - 94 * - 79
----
7530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8359
SELECT ALL CAST( + 13 AS SIGNED ) * - + 13 * - 79 * 20 * + - 72 - - 19
----
-19225421

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL CAST ( + 13 AS INTEGER ) * - + 13 * - 79 * 20 * + - 72 - - 19
----
-19225421

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT COALESCE ( - + 70, - + NULLIF ( + - 16, 27 * + 82 + + - COUNT( * ) ) - ( 6 ) - - CASE WHEN NOT + 63 NOT IN ( - + 15 + + COUNT( * ) * - + SUM( DISTINCT ( - 3 ) ) ) THEN 63 END ) * 75
----
-5250

skipif mysql # not compatible
query I rowsort label-8360
SELECT COALESCE ( - + 70, - + NULLIF ( + - 16, 27 * + 82 + + - COUNT ( * ) ) - ( 6 ) - - CASE WHEN NOT + 63 NOT IN ( - + 15 + + COUNT ( * ) * - + SUM ( DISTINCT ( - 3 ) ) ) THEN 63 END ) * 75
----
-5250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8361
SELECT ( - CASE + 90 WHEN + CAST( + 62 AS SIGNED ) THEN NULL ELSE - 86 + + 71 END ) - + 87
----
-72

skipif mysql # not compatible
query I rowsort label-8361
SELECT ( - CASE + 90 WHEN + CAST ( + 62 AS INTEGER ) THEN NULL ELSE - 86 + + 71 END ) - + 87
----
-72

query II rowsort
SELECT ALL - 6 AS col1, 50
----
-6
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8363
SELECT 45 DIV - 58 * - 7 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8363
SELECT 45 / - 58 * - 7 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT 51 * 39 DIV 39 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8364
SELECT 51 * 39 / 39 AS col0
----
51

query II rowsort
SELECT ALL - 22 col0, - ( + 21 ) AS col2
----
-22
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT 70 DIV - - 81 * - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8366
SELECT 70 / - - 81 * - 64 AS col1
----
0

query I rowsort
SELECT 69 + + COALESCE ( 43, + 62, 9 )
----
112

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

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

query I rowsort
SELECT + 49 * 17 + - 57
----
776

query I rowsort
SELECT ALL 69 * + ( - 86 ) + 99
----
-5835

query I rowsort
SELECT 61 + - 98 AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8372
SELECT - 9 * 98 / + CASE + CASE + - 52 WHEN + + 75 THEN NULL WHEN 36 THEN NULL ELSE + 56 * - 8 END WHEN - 93 THEN NULL WHEN - + 87 * + CAST( - - 79 AS SIGNED ) + - CASE + 9 WHEN + 62 * 87 THEN + 51 * ( 57 ) + - 98 * - ( 64 * - CASE WHEN NOT + 97 * + 60 < AVG ( DISTINCT + 78 ) + - 65 THEN NULLIF ( - 62, COUNT( * ) + + 99 * - 52 ) ELSE NULL END ) ELSE NULL END + CAST( + 54 AS SIGNED ) * - 33 THEN 43 ELSE NULL END * + 5 + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT - 9 * 98 / + CASE + CASE + - 52 WHEN + + 75 THEN NULL WHEN 36 THEN NULL ELSE + 56 * - 8 END WHEN - 93 THEN NULL WHEN - + 87 * + CAST ( - - 79 AS INTEGER ) + - CASE + 9 WHEN + 62 * 87 THEN + 51 * ( 57 ) + - 98 * - ( 64 * - CASE WHEN NOT + 97 * + 60 < AVG ( DISTINCT + 78 ) + - 65 THEN NULLIF ( - 62, COUNT ( * ) + + 99 * - 52 ) ELSE NULL END ) ELSE NULL END + CAST ( + 54 AS INTEGER ) * - 33 THEN 43 ELSE NULL END * + 5 + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL 78 + MAX( ALL + 40 )
----
118

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL 78 + MAX ( ALL + 40 )
----
118

query I rowsort
SELECT 51 * + 93
----
4743

query I rowsort
SELECT DISTINCT 40 + 81
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL COUNT( - + 90 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL COUNT ( - + 90 ) col0
----
1

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

skipif mysql # not compatible
query I rowsort label-8377
SELECT 30 + - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) / 94 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8378
SELECT - COALESCE ( COALESCE ( - 47, 81 * CAST( NULL AS SIGNED ) - + 44, - + 52 ), + COUNT( * ) ) + 59 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-8378
SELECT - COALESCE ( COALESCE ( - 47, 81 * CAST ( NULL AS INTEGER ) - + 44, - + 52 ), + COUNT ( * ) ) + 59 AS col2
----
106

query II rowsort
SELECT DISTINCT + 66 AS col1, 14
----
66
14

query I rowsort
SELECT 9 + - 46 AS col0
----
-37

query I rowsort
SELECT 99 + - 55 AS col1
----
44

query I rowsort
SELECT ALL + 34 - - + 15 + + 23 + - 53 * - - 94 * - + 57
----
284046

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL - + 89 - + + 98 + + - COUNT( * ) col2
----
-188

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL - + 89 - + + 98 + + - COUNT ( * ) col2
----
-188

query I rowsort
SELECT 11 + + 87 AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8385
SELECT DISTINCT - COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

query I rowsort
SELECT ALL - ( + - 84 ) * - 1 AS col1
----
-84

query I rowsort
SELECT 7 + - 8 col2
----
-1

query I rowsort
SELECT DISTINCT - 98 * - 68 AS col1
----
6664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8390
SELECT ALL + CAST( NULL AS SIGNED ) * - 61 * - SUM( - - 66 )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8391
SELECT - 37 * + - 60 + + CAST( NULL AS SIGNED ) + CASE - - 7 WHEN + 98 / + 95 THEN - 16 * - 42 WHEN + COUNT( * ) THEN NULL ELSE - 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT - 37 * + - 60 + + CAST ( NULL AS INTEGER ) + CASE - - 7 WHEN + 98 / + 95 THEN - 16 * - 42 WHEN + COUNT ( * ) THEN NULL ELSE - 33 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8392
SELECT 51 AS col2, 98 + + NULLIF ( - CAST( NULL AS SIGNED ), 3 / + 87 - + 94 + + 62 ) + + ( - 70 ) - - - NULLIF ( - 99, + 68 * + 18 * + 21 ) AS col1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-8392
SELECT 51 AS col2, 98 + + NULLIF ( - CAST ( NULL AS INTEGER ), 3 / + 87 - + 94 + + 62 ) + + ( - 70 ) - - - NULLIF ( - 99, + 68 * + 18 * + 21 ) AS col1
----
51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT COUNT( * ) * 73 + 54
----
127

skipif mysql # not compatible
query I rowsort label-8393
SELECT COUNT ( * ) * 73 + 54
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8394
SELECT 61 * - COALESCE ( 48, CAST( NULL AS DECIMAL ) ) * + - ( 89 ) * - 44 * - 16 * - ( + - 26 ) * + CAST( NULL AS SIGNED ) * 43 - + - MAX( - 77 ) + 7 + + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT 61 * - COALESCE ( 48, CAST ( NULL AS REAL ) ) * + - ( 89 ) * - 44 * - 16 * - ( + - 26 ) * + CAST ( NULL AS INTEGER ) * 43 - + - MAX ( - 77 ) + 7 + + 78 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ( + 70 ) * + - MAX( + + 80 ) col0
----
-5600

skipif mysql # not compatible
query I rowsort label-8396
SELECT ( + 70 ) * + - MAX ( + + 80 ) col0
----
-5600

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT COUNT( * ) + - 92 * + 22 AS col1
----
-2023

skipif mysql # not compatible
query I rowsort label-8397
SELECT COUNT ( * ) + - 92 * + 22 AS col1
----
-2023

query II rowsort
SELECT DISTINCT - 13 AS col0, 36 AS col2
----
-13
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8399
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( * ) + - NULLIF ( - 74, - 86 + COALESCE ( + - 65, COUNT( + 57 ), 79 ) * + 84 ) / 95 - - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - NULLIF ( - 74, - 86 + COALESCE ( + - 65, COUNT ( + 57 ), 79 ) * + 84 ) / 95 - - 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8400
SELECT ALL - MIN( ALL - 80 ) AS col1, 56 + - 41 DIV - 59 - + 20 AS col0
----
80
36

skipif mysql # not compatible
query II rowsort label-8400
SELECT ALL - MIN ( ALL - 80 ) AS col1, 56 + - 41 / - 59 - + 20 AS col0
----
80
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8401
SELECT 45 * - 24 + + CASE - 52 WHEN + 21 * 72 THEN NULL WHEN + - ( + + 71 ) THEN NULL WHEN - + MAX( ALL - 95 ) THEN - CASE - - COALESCE ( + 24, + 34 ) WHEN - 15 THEN + 29 * + 85 ELSE + 94 END ELSE - 91 END + 20 DIV 45
----
-1171

skipif mysql # not compatible
query I rowsort label-8401
SELECT 45 * - 24 + + CASE - 52 WHEN + 21 * 72 THEN NULL WHEN + - ( + + 71 ) THEN NULL WHEN - + MAX ( ALL - 95 ) THEN - CASE - - COALESCE ( + 24, + 34 ) WHEN - 15 THEN + 29 * + 85 ELSE + 94 END ELSE - 91 END + 20 / 45
----
-1171

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL - 8 + NULLIF ( + + COUNT( - 4 ), - 77 * 91 + - 45 )
----
-7

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL - 8 + NULLIF ( + + COUNT ( - 4 ), - 77 * 91 + - 45 )
----
-7

query I rowsort
SELECT ALL 79 + NULLIF ( - 25, - 14 / + 20 * - - 50 * 51 + - - 14 )
----
54

query I rowsort
SELECT 83 * + 7 AS col2
----
581

query I rowsort
SELECT 27 + 84
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL - 39 + COUNT( + 58 ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL - 39 + COUNT ( + 58 ) col0
----
-38

query I rowsort
SELECT ALL - 70 + - ( - + 21 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT NULLIF ( - 4, 16 ) * + - 64 + + 27 - - COUNT( * ) * - - 81
----
364

skipif mysql # not compatible
query I rowsort label-8408
SELECT NULLIF ( - 4, 16 ) * + - 64 + + 27 - - COUNT ( * ) * - - 81
----
364

query I rowsort
SELECT ALL 29 + + 37 + + - 46 AS col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8410
SELECT DISTINCT + 57 + + COUNT( * ) DIV + + 93 * + - ( - + 53 ) + 62 * + 48 AS col1
----
3033

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT + 57 + + COUNT ( * ) / + + 93 * + - ( - + 53 ) + 62 * + 48 AS col1
----
3033

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8412
SELECT - 46 AS col0, 82 * + COALESCE ( + + CAST( NULL AS SIGNED ), - ( 94 ) + 22 + - 46 )
----
-46
-9676

skipif mysql # not compatible
query II rowsort label-8412
SELECT - 46 AS col0, 82 * + COALESCE ( + + CAST ( NULL AS INTEGER ), - ( 94 ) + 22 + - 46 )
----
-46
-9676

query II rowsort
SELECT - 68 AS col0, 43 AS col1
----
-68
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT - + MAX( + - 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8414
SELECT - + MAX ( + - 70 ) AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8415
SELECT NULLIF ( - 34, 72 * - CAST( + NULLIF ( - + 80, - 90 ) AS SIGNED ) ) DIV - 80 col1
----
0

skipif mysql # not compatible
query I rowsort label-8415
SELECT NULLIF ( - 34, 72 * - CAST ( + NULLIF ( - + 80, - 90 ) AS INTEGER ) ) / - 80 col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8417
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( * ) + COALESCE ( + COUNT( * ), + 91 + - - 7 + + COUNT( * ), MIN( + - 81 ), + + COUNT( * ) ) / - + ( - 60 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + COALESCE ( + COUNT ( * ), + 91 + - - 7 + + COUNT ( * ), MIN ( + - 81 ), + + COUNT ( * ) ) / - + ( - 60 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 63 - + + 9 AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8419
SELECT ALL + 94 DIV + 62 - + COUNT( * ) * - - ( + + 2 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL + 94 / + 62 - + COUNT ( * ) * - - ( + + 2 ) AS col0
----
-1

query I rowsort
SELECT + - 83 - - + 76 + - - 24 AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8421
SELECT DISTINCT COUNT( * ) AS col2, CASE 27 WHEN + COUNT( * ) * 84 THEN + + 46 * - 30 END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8421
SELECT DISTINCT COUNT ( * ) AS col2, CASE 27 WHEN + COUNT ( * ) * 84 THEN + + 46 * - 30 END AS col0
----
1
NULL

query I rowsort
SELECT DISTINCT 58 * + 18 * - 33
----
-34452

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

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

query I rowsort
SELECT + 99 * + 82 AS col2
----
8118

query I rowsort
SELECT - 4 + + 23 AS col0
----
19

query II rowsort
SELECT ( + 9 ) col1, 74 AS col2
----
9
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT CASE + + MIN( + 77 ) WHEN - + 83 THEN NULL WHEN + - 48 * - + 79 + + 45 THEN - 40 / 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8427
SELECT CASE + + MIN ( + 77 ) WHEN - + 83 THEN NULL WHEN + - 48 * - + 79 + + 45 THEN - 40 / 93 END
----
NULL

query I rowsort
SELECT ALL + CASE - 10 WHEN - + ( - - 48 ) * + 12 * - + 24 + 12 * + 13 + 72 + + 38 + + - 99 - + 18 * 3 + + 6 THEN NULL WHEN + 59 THEN - 87 / 40 + 93 ELSE - 62 END
----
-62

query I rowsort
SELECT DISTINCT + ( - 3 ) col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8430
SELECT ALL + 21 * + + CAST( - + 53 AS SIGNED ) + + 70 + + 87 + 11 * + + 12 / - COUNT( * ) * + - 11 + + CAST( CASE + ( 78 ) WHEN - 37 THEN - - 44 END AS SIGNED ) + + 99 + - 94 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL + 21 * + + CAST ( - + 53 AS INTEGER ) + + 70 + + 87 + 11 * + + 12 / - COUNT ( * ) * + - 11 + + CAST ( CASE + ( 78 ) WHEN - 37 THEN - - 44 END AS INTEGER ) + + 99 + - 94 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8431
SELECT ALL - 85 DIV + ( 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL - 85 / + ( 57 )
----
-1

query I rowsort
SELECT ALL 51 * + - 27 + + 62 - - 42
----
-1273

query II rowsort
SELECT DISTINCT + 67 * - 35, 87 AS col2
----
-2345
87

query I rowsort
SELECT ALL 44 * + 87 + + 70 AS col2
----
3898

query I rowsort
SELECT ALL + 50 * + - 40 * + - 54 AS col1
----
108000

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT NULLIF ( - MAX( DISTINCT - + 6 ), + 48 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8436
SELECT NULLIF ( - MAX ( DISTINCT - + 6 ), + 48 ) AS col1
----
6

query I rowsort
SELECT - 17 - ( - 78 ) * 58
----
4507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8438
SELECT ALL + + CAST( + MAX( - + 22 ) AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL + + CAST ( + MAX ( - + 22 ) AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT ALL - 72 * 36 + - + COUNT( * )
----
-2593

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL - 72 * 36 + - + COUNT ( * )
----
-2593

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT DISTINCT - MIN( + ( - 21 ) ) * - + 74 * + 6 * - 37
----
344988

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT - MIN ( + ( - 21 ) ) * - + 74 * + 6 * - 37
----
344988

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL + MIN( DISTINCT + 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL + MIN ( DISTINCT + 2 ) AS col2
----
2

query I rowsort
SELECT - 90 * + 86 + - 95 + + - 36 col1
----
-7871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8443
SELECT ALL + COALESCE ( + 62, + 75 DIV + 80 + - NULLIF ( + 47, 30 + 60 - - 32 * - + COUNT( * ) + + 90 DIV 77 * 21 DIV + COALESCE ( + 97, - 85 ) ) )
----
62

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL + COALESCE ( + 62, + 75 / + 80 + - NULLIF ( + 47, 30 + 60 - - 32 * - + COUNT ( * ) + + 90 / 77 * 21 / + COALESCE ( + 97, - 85 ) ) )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8444
SELECT - - CAST( 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-8444
SELECT - - CAST ( 97 AS INTEGER )
----
97

query I rowsort
SELECT ALL - ( - 26 ) * - - COALESCE ( + 8, + 71 ) - 85
----
123

query I rowsort
SELECT - 46 * + ( 16 )
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT + 16 * + 92 + MAX( + 95 ) AS col1
----
1567

skipif mysql # not compatible
query I rowsort label-8447
SELECT + 16 * + 92 + MAX ( + 95 ) AS col1
----
1567

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT ALL + 31 * 57 DIV - ( - + 79 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL + 31 * 57 / - ( - + 79 ) AS col2
----
22

query II rowsort
SELECT 85 AS col0, 66 AS col2
----
85
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT + 99 * + SUM( - 14 ) AS col0
----
-1386

skipif mysql # not compatible
query I rowsort label-8451
SELECT + 99 * + SUM ( - 14 ) AS col0
----
-1386

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT DISTINCT ( - 89 ) DIV - 27
----
3

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT ( - 89 ) / - 27
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT + 75 * + SUM( + + 34 ) * + 86
----
219300

skipif mysql # not compatible
query I rowsort label-8453
SELECT + 75 * + SUM ( + + 34 ) * + 86
----
219300

query I rowsort
SELECT ALL 46 * + 1
----
46

query I rowsort
SELECT ALL 63 + - 31 AS col2
----
32

query I rowsort
SELECT DISTINCT ( + - CASE + 66 WHEN 76 THEN - - 25 END ) + 68 col1
----
NULL

query I rowsort
SELECT ALL 39 + + 84
----
123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8458
SELECT + 45 * CAST( NULL AS DECIMAL ) / - - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT + 45 * CAST ( NULL AS REAL ) / - - 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT ALL 78 DIV + 38 + - - 16 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL 78 / + 38 + - - 16 AS col0
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-8460
SELECT ALL 71 DIV - + 4 + - 98 AS col0, 65 col2
----
-115
65

skipif mysql # not compatible
query II rowsort label-8460
SELECT ALL 71 / - + 4 + - 98 AS col0, 65 col2
----
-115
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT + 9 + + + COUNT( * ) * 32 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8461
SELECT + 9 + + + COUNT ( * ) * 32 AS col1
----
41

query I rowsort
SELECT - 91 - + - 46 + - 39 AS col0
----
-84

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

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

query I rowsort
SELECT + 33 * - 97 + ( 33 ) * - 96
----
-6369

onlyif mysql # aggregate syntax: 
query II rowsort label-8465
SELECT DISTINCT + COUNT( * ) AS col1, 91 * 1
----
1
91

skipif mysql # not compatible
query II rowsort label-8465
SELECT DISTINCT + COUNT ( * ) AS col1, 91 * 1
----
1
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8466
SELECT DISTINCT + ( COUNT( * ) ) DIV COUNT( * ) + + + ( + - MIN( 71 ) ) + + 92 + 89 col2
----
111

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT + ( COUNT ( * ) ) / COUNT ( * ) + + + ( + - MIN ( 71 ) ) + + 92 + 89 col2
----
111

query I rowsort
SELECT - 28 + + - 28 AS col1
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8468
SELECT ALL COUNT( * ) DIV COALESCE ( - + 17, + 61, + 52 + 47 ) - 78 + + 52 AS col2, + 7
----
-26
7

skipif mysql # not compatible
query II rowsort label-8468
SELECT ALL COUNT ( * ) / COALESCE ( - + 17, + 61, + 52 + 47 ) - 78 + + 52 AS col2, + 7
----
-26
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8469
SELECT DISTINCT + 20 DIV ( - 97 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT + 20 / ( - 97 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8470
SELECT ALL - + 31 * - CAST( - 50 AS SIGNED ) * + + 84 * + 7 - - MIN( + 90 ) * - 98
----
-920220

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL - + 31 * - CAST ( - 50 AS INTEGER ) * + + 84 * + 7 - - MIN ( + 90 ) * - 98
----
-920220

query I rowsort
SELECT + 85 * + 76 col1
----
6460

query I rowsort
SELECT ALL + 87 * - - 37 AS col0
----
3219

onlyif mysql # aggregate syntax: 
query II rowsort label-8473
SELECT DISTINCT + - 29, - 47 + - COALESCE ( - MIN( 73 ), - 61 ) AS col1
----
-29
26

skipif mysql # not compatible
query II rowsort label-8473
SELECT DISTINCT + - 29, - 47 + - COALESCE ( - MIN ( 73 ), - 61 ) AS col1
----
-29
26

query I rowsort
SELECT CASE + 42 WHEN + - ( - + 35 ) THEN 65 + + + 0 ELSE NULL END
----
NULL

query I rowsort
SELECT - 78 + - 89
----
-167

query I rowsort
SELECT ALL - 96 - + ( - 96 ) AS col0
----
0

query II rowsort
SELECT ALL - + 52, + 37 AS col1
----
-52
37

query I rowsort
SELECT 5 + + 29 AS col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8479
SELECT 92 DIV + 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8479
SELECT 92 / + 37 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL - 52 * + - 41 * ( - COUNT( * ) ) * + COUNT( * ) AS col2
----
-2132

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL - 52 * + - 41 * ( - COUNT ( * ) ) * + COUNT ( * ) AS col2
----
-2132

onlyif mysql # aggregate syntax: 
query II rowsort label-8481
SELECT ALL - 35 * + + 65 + - 97, + SUM( 53 ) AS col2
----
-2372
53

skipif mysql # not compatible
query II rowsort label-8481
SELECT ALL - 35 * + + 65 + - 97, + SUM ( 53 ) AS col2
----
-2372
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8482
SELECT ALL + - ( COUNT( 86 ) ) DIV 72 * - - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL + - ( COUNT ( 86 ) ) / 72 * - - 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT MIN( DISTINCT + 30 ) * - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-8483
SELECT MIN ( DISTINCT + 30 ) * - COUNT ( * )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8484
SELECT ALL + 80 * - CASE + COUNT( * ) WHEN + 49 THEN NULL ELSE - + CAST( NULL AS SIGNED ) END * 41 * + + 33 + - 54 * + COUNT( * ) + - MIN( - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL + 80 * - CASE + COUNT ( * ) WHEN + 49 THEN NULL ELSE - + CAST ( NULL AS INTEGER ) END * 41 * + + 33 + - 54 * + COUNT ( * ) + - MIN ( - 74 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT - SUM( DISTINCT + 98 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-8485
SELECT - SUM ( DISTINCT + 98 ) AS col2
----
-98

query I rowsort
SELECT ALL + ( NULLIF ( 30, 18 * + 17 ) ) * - + NULLIF ( - + 32, - - 30 * 26 + - 27 )
----
960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8487
SELECT ALL 63 + + CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8487
SELECT ALL 63 + + CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

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

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

query I rowsort
SELECT ALL + 85 * + 50 AS col1
----
4250

query I rowsort
SELECT CASE + + ( + - 69 ) WHEN - + 7 THEN - 75 END + - AVG ( ALL + 34 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8491
SELECT ALL - 13 + + COUNT( ALL + 71 ) DIV - 12 + 93
----
80

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL - 13 + + COUNT ( ALL + 71 ) / - 12 + 93
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8492
SELECT ALL MAX( ALL 81 ) / - 45 + - 89 - + - CASE CASE - 25 WHEN CASE 7 WHEN + ( + 63 ) / + 68 - + 22 - - ( - CAST( NULL AS SIGNED ) ) THEN + - 32 ELSE NULL END THEN 80 WHEN 41 THEN 18 * 34 END WHEN CAST( CAST( - 74 AS SIGNED ) AS SIGNED ) * - 82 THEN - 79 WHEN + 13 THEN NULL ELSE NULL END * - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL MAX ( ALL 81 ) / - 45 + - 89 - + - CASE CASE - 25 WHEN CASE 7 WHEN + ( + 63 ) / + 68 - + 22 - - ( - CAST ( NULL AS INTEGER ) ) THEN + - 32 ELSE NULL END THEN 80 WHEN 41 THEN 18 * 34 END WHEN CAST ( CAST ( - 74 AS INTEGER ) AS INTEGER ) * - 82 THEN - 79 WHEN + 13 THEN NULL ELSE NULL END * - 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8493
SELECT COUNT( * ) DIV ( - 96 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8493
SELECT COUNT ( * ) / ( - 96 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 97 + 86
----
183

query I rowsort
SELECT DISTINCT 91 * 50
----
4550

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT DISTINCT 3 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT 3 / - 75
----
0

query I rowsort
SELECT DISTINCT 8 - - 3 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-8498
SELECT 79 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-8498
SELECT 79 / 92
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8499
SELECT DISTINCT 47 * 95 AS col1, COUNT( * ) AS col1
----
4465
1

skipif mysql # not compatible
query II rowsort label-8499
SELECT DISTINCT 47 * 95 AS col1, COUNT ( * ) AS col1
----
4465
1

query I rowsort
SELECT DISTINCT - 60 - - + ( 13 ) AS col2
----
-47

query I rowsort
SELECT + + COALESCE ( 73, - 18 )
----
73

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8503
SELECT COUNT( * ) * 57 + + + 28 DIV + ( - - 22 ) DIV - - COUNT( * ) + - 5 * - + 36 AS col1
----
238

skipif mysql # not compatible
query I rowsort label-8503
SELECT COUNT ( * ) * 57 + + + 28 / + ( - - 22 ) / - - COUNT ( * ) + - 5 * - + 36 AS col1
----
238

query I rowsort
SELECT NULLIF ( 7, + 0 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT - 22 * - + 46 * 69 + + 82 * 84 + + 96 - - COUNT( * ) - - COUNT( DISTINCT - + 55 ) * - - COUNT( * ) col2
----
76814

skipif mysql # not compatible
query I rowsort label-8505
SELECT - 22 * - + 46 * 69 + + 82 * 84 + + 96 - - COUNT ( * ) - - COUNT ( DISTINCT - + 55 ) * - - COUNT ( * ) col2
----
76814

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8506
SELECT ALL - CAST( + 92 AS SIGNED ), 98 + - 21 + + - 77 col1
----
-92
0

skipif mysql # not compatible
query II rowsort label-8506
SELECT ALL - CAST ( + 92 AS INTEGER ), 98 + - 21 + + - 77 col1
----
-92
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8507
SELECT ( - 92 ) * + 29 + + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-2667

skipif mysql # not compatible
query I rowsort label-8507
SELECT ( - 92 ) * + 29 + + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-2667

query I rowsort
SELECT ALL + 15 + - 49 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL + COUNT( * ) + - 55 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL + COUNT ( * ) + - 55 AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8510
SELECT - 43 * - - COALESCE ( - 13, + - 20 ) + 24 DIV + CAST( + 87 AS SIGNED ) AS col0, 83 AS col0
----
559
83

skipif mysql # not compatible
query II rowsort label-8510
SELECT - 43 * - - COALESCE ( - 13, + - 20 ) + 24 / + CAST ( + 87 AS INTEGER ) AS col0, 83 AS col0
----
559
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8511
SELECT - SUM( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT - SUM ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT 79 + + 39 AS col2
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-8513
SELECT 62 DIV + 64 col1
----
0

skipif mysql # not compatible
query I rowsort label-8513
SELECT 62 / + 64 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8514
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + - CAST( NULL AS SIGNED ) / COUNT( * ) * + 55 * - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT - CAST ( NULL AS REAL ) + + - CAST ( NULL AS INTEGER ) / COUNT ( * ) * + 55 * - 95 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8515
SELECT ALL + 80 + - 5 + CAST( 14 AS SIGNED ) * - 13
----
-107

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL + 80 + - 5 + CAST ( 14 AS INTEGER ) * - 13
----
-107

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8517
SELECT DISTINCT COUNT( * ), + 31 * - COALESCE ( + 7, - + 86, + 84 * - 25 - - - 10 + - 76 + + ( + - 51 ) * - NULLIF ( + MAX( ALL - 49 ), - ( + 72 ) ) DIV + 96 - + - 14 + - 39 * COUNT( * ) ) AS col2
----
1
-217

skipif mysql # not compatible
query II rowsort label-8517
SELECT DISTINCT COUNT ( * ), + 31 * - COALESCE ( + 7, - + 86, + 84 * - 25 - - - 10 + - 76 + + ( + - 51 ) * - NULLIF ( + MAX ( ALL - 49 ), - ( + 72 ) ) / + 96 - + - 14 + - 39 * COUNT ( * ) ) AS col2
----
1
-217

query I rowsort
SELECT 64 + + + 48 + + 31 * - 43
----
-1221

onlyif mysql # aggregate syntax: 
query II rowsort label-8519
SELECT ALL - 26 + 77 - COUNT( * ) * + SUM( + + 46 ) AS col2, + 78 AS col1
----
5
78

skipif mysql # not compatible
query II rowsort label-8519
SELECT ALL - 26 + 77 - COUNT ( * ) * + SUM ( + + 46 ) AS col2, + 78 AS col1
----
5
78

query II rowsort
SELECT 39, + 71 AS col2
----
39
71

query I rowsort
SELECT 41 + 74
----
115

query I rowsort
SELECT 45 * - + 75
----
-3375

query I rowsort
SELECT 90 + + 42
----
132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8524
SELECT DISTINCT - 46 - MAX( DISTINCT 5 ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT - 46 - MAX ( DISTINCT 5 ) + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT DISTINCT - 37 * + NULLIF ( 68, - - 30 * COUNT( * ) + - - 93 ) * + - 80 col0
----
201280

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT - 37 * + NULLIF ( 68, - - 30 * COUNT ( * ) + - - 93 ) * + - 80 col0
----
201280

query I rowsort
SELECT DISTINCT - 58 * - 95 - - 20 AS col0
----
5530

query II rowsort
SELECT ALL - 60, 60 AS col1
----
-60
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8528
SELECT - - 81 DIV - MAX( - + ( + - 25 ) ) - - 92 DIV + - 7 + 42 * + - ( 70 ) + - - 7 DIV 72 DIV - 20 + + 23
----
-2933

skipif mysql # not compatible
query I rowsort label-8528
SELECT - - 81 / - MAX ( - + ( + - 25 ) ) - - 92 / + - 7 + 42 * + - ( 70 ) + - - 7 / 72 / - 20 + + 23
----
-2933

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT DISTINCT + CASE - 37 WHEN + 3 * 14 THEN 63 * - - 30 + - + 19 WHEN - - 10 THEN + + COUNT( * ) + + COUNT( * ) * 17 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT + CASE - 37 WHEN + 3 * 14 THEN 63 * - - 30 + - + 19 WHEN - - 10 THEN + + COUNT ( * ) + + COUNT ( * ) * 17 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + CASE WHEN NOT ( - 82 = + 59 ) THEN NULL ELSE - + 58 * 38 - - AVG ( DISTINCT - 76 ) - + - 91 + - 53 + - 80 - - 67 - 6 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8531
SELECT + - 16 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-8531
SELECT + - 16 / + 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8532
SELECT ALL - - CAST( - 20 AS SIGNED ) DIV - 83 + - - COUNT( DISTINCT + 20 ) + + ( - 12 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL - - CAST ( - 20 AS INTEGER ) / - 83 + - - COUNT ( DISTINCT + 20 ) + + ( - 12 ) AS col1
----
-11

query I rowsort
SELECT ALL 65 * - 14 AS col0
----
-910

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8534
SELECT ALL + COUNT( * ) AS col2, - 98 * + 20 AS col2, - 39 DIV - 11 + + 84 AS col1
----
1
-1960
87

skipif mysql # not compatible
query III rowsort label-8534
SELECT ALL + COUNT ( * ) AS col2, - 98 * + 20 AS col2, - 39 / - 11 + + 84 AS col1
----
1
-1960
87

query I rowsort
SELECT DISTINCT + 86 * 6
----
516

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT + 92 * - COUNT( * ) * 2
----
-184

skipif mysql # not compatible
query I rowsort label-8537
SELECT + 92 * - COUNT ( * ) * 2
----
-184

query II rowsort
SELECT ALL + 58 * - 96 + - - 99 AS col2, 4 * - 42 + - - 85 + + - ( - 0 ) AS col0
----
-5469
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT - + ( + - 83 ) + - + 97 + + 88 * + 41 + - 51 - 90 * - COALESCE ( + 11, 16 + SUM( 99 ) + + 30 )
----
4533

skipif mysql # not compatible
query I rowsort label-8539
SELECT - + ( + - 83 ) + - + 97 + + 88 * + 41 + - 51 - 90 * - COALESCE ( + 11, 16 + SUM ( 99 ) + + 30 )
----
4533

query II rowsort
SELECT + + 78, 99 * + 83 col0
----
78
8217

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT DISTINCT 54 + 88 - + 40 + ( - COUNT( ALL 90 ) ) * - 3 * - - 54 col2
----
264

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT 54 + 88 - + 40 + ( - COUNT ( ALL 90 ) ) * - 3 * - - 54 col2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL - NULLIF ( - + 15, - - COUNT( * ) ) + 16
----
31

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL - NULLIF ( - + 15, - - COUNT ( * ) ) + 16
----
31

query I rowsort
SELECT + - NULLIF ( - 67, - ( + 38 ) )
----
67

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8545
SELECT ALL + 94 + + MIN( - 47 ) DIV 76 * - COALESCE ( + - 90, - 5 - + 44 + + 75 DIV - 68, - + 89 + 18 * + + 96 ) + 17 AS col2, 90 DIV + 38 AS col1
----
111
2

skipif mysql # not compatible
query II rowsort label-8545
SELECT ALL + 94 + + MIN ( - 47 ) / 76 * - COALESCE ( + - 90, - 5 - + 44 + + 75 / - 68, - + 89 + 18 * + + 96 ) + 17 AS col2, 90 / + 38 AS col1
----
111
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT SUM( 2 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-8546
SELECT SUM ( 2 ) col0
----
2

query I rowsort
SELECT ALL - 22 * - 99 * 38 * + - 80 * + 94 AS col2
----
-622385280

query I rowsort
SELECT DISTINCT CASE - + 11 WHEN + 68 / + + 23 THEN + 11 * + - 86 END
----
NULL

query I rowsort
SELECT DISTINCT - 13 + 47 AS col0
----
34

query I rowsort
SELECT + 93 - + 97 col2
----
-4

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

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

query I rowsort
SELECT + 69 - - 22 * + 34 AS col0
----
817

query I rowsort
SELECT ALL - 22 * + + ( + 15 ) AS col0
----
-330

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

query II rowsort
SELECT 30 col2, 66 AS col1
----
30
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8556
SELECT ALL - 95 - 91 DIV + COUNT( * ) - - + 52
----
-134

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL - 95 - 91 / + COUNT ( * ) - - + 52
----
-134

query I rowsort
SELECT ALL 21 * - 35 AS col2
----
-735

query III rowsort
SELECT 16 AS col2, + 48, 6 AS col2
----
16
48
6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT ALL + 59 DIV 6
----
9

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + 59 / 6
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8561
SELECT ALL + 87 DIV 41 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL + 87 / 41 AS col0
----
2

query I rowsort
SELECT ALL NULLIF ( + - 51, 49 )
----
-51

query I rowsort
SELECT + 79 * - + 93
----
-7347

query I rowsort
SELECT - 85 * - 77
----
6545

query I rowsort
SELECT - 2 + - 41 * - 70 AS col2
----
2868

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

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

query I rowsort
SELECT - + 89 + + - 67 - 49
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT - + 31 - - 3 * - NULLIF ( - MIN( ALL + - 1 ), 95 * - 52 ) * 6 + + 93 * - 62 AS col1
----
-5815

skipif mysql # not compatible
query I rowsort label-8568
SELECT - + 31 - - 3 * - NULLIF ( - MIN ( ALL + - 1 ), 95 * - 52 ) * 6 + + 93 * - 62 AS col1
----
-5815

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT - - COALESCE ( - 1, CASE 17 WHEN - + 89 THEN + COUNT( * ) WHEN + + COUNT( * ) * + 71 * - - 58 + 73 THEN NULL ELSE NULL END - + 11, 85 ) * - - COUNT( * ) + - ( + + ( - SUM( DISTINCT + 1 ) ) ) - 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8569
SELECT - - COALESCE ( - 1, CASE 17 WHEN - + 89 THEN + COUNT ( * ) WHEN + + COUNT ( * ) * + 71 * - - 58 + 73 THEN NULL ELSE NULL END - + 11, 85 ) * - - COUNT ( * ) + - ( + + ( - SUM ( DISTINCT + 1 ) ) ) - 21 AS col2
----
-21

query III rowsort
SELECT DISTINCT + 42 AS col1, + 18 * ( - 67 ) AS col1, + 77 AS col2
----
42
-1206
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8571
SELECT ALL + - 41 AS col2, - NULLIF ( - COUNT( * ), 87 ) AS col0
----
-41
1

skipif mysql # not compatible
query II rowsort label-8571
SELECT ALL + - 41 AS col2, - NULLIF ( - COUNT ( * ), 87 ) AS col0
----
-41
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8572
SELECT - COALESCE ( 89, 62 + - 71 + 49 + + 66 * + 63, 63 * + 89 DIV + CAST( NULL AS SIGNED ) + - 61 - - COUNT( * ) - - 38 ) * - 42 AS col0
----
3738

skipif mysql # not compatible
query I rowsort label-8572
SELECT - COALESCE ( 89, 62 + - 71 + 49 + + 66 * + 63, 63 * + 89 / + CAST ( NULL AS INTEGER ) + - 61 - - COUNT ( * ) - - 38 ) * - 42 AS col0
----
3738

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8574
SELECT ALL - + 62 DIV 17 + COUNT( * ) + + - CAST( 4 AS SIGNED ) * - 95 * + ( - + 34 ) * - 78 AS col0
----
1007758

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL - + 62 / 17 + COUNT ( * ) + + - CAST ( 4 AS INTEGER ) * - 95 * + ( - + 34 ) * - 78 AS col0
----
1007758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8575
SELECT + CAST( + 22 AS SIGNED ) / + 12 * + + 80 * - - CASE - 94 WHEN - 92 THEN + - 30 + + CAST( NULL AS DECIMAL ) ELSE + 26 + - COUNT( DISTINCT + - 78 ) END * ( CAST( NULL AS SIGNED ) ) + 64 + + ( + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT + CAST ( + 22 AS INTEGER ) / + 12 * + + 80 * - - CASE - 94 WHEN - 92 THEN + - 30 + + CAST ( NULL AS REAL ) ELSE + 26 + - COUNT ( DISTINCT + - 78 ) END * ( CAST ( NULL AS INTEGER ) ) + 64 + + ( + 73 )
----
NULL

query I rowsort
SELECT + + 87 * + 70
----
6090

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8577
SELECT + CAST( + - 87 AS SIGNED ) AS col2, 45 + - - 86 + 46 DIV + 98
----
-87
131

skipif mysql # not compatible
query II rowsort label-8577
SELECT + CAST ( + - 87 AS INTEGER ) AS col2, 45 + - - 86 + 46 / + 98
----
-87
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8578
SELECT + + 38 DIV + - MIN( ALL 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-8578
SELECT + + 38 / + - MIN ( ALL 27 )
----
-1

query I rowsort
SELECT ALL 71 * 60 + + 88 AS col2
----
4348

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

query I rowsort
SELECT ALL 66 * + 49
----
3234

query I rowsort
SELECT ALL 99 * - 46 * + - COALESCE ( + + 70, 97, - - 81 ) col0
----
318780

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT + COUNT( * ) + + 11 + - 92 + 34 * + 47 AS col2
----
1518

skipif mysql # not compatible
query I rowsort label-8583
SELECT + COUNT ( * ) + + 11 + - 92 + 34 * + 47 AS col2
----
1518

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8585
SELECT ALL COALESCE ( + 41, 0 ) * + CASE + 91 WHEN - - 36 + + 32 THEN + 50 * + 55 * - - 27 WHEN CAST( - + CASE 61 WHEN 10 THEN 14 WHEN - 92 + 1 + + 15 THEN NULL ELSE - 76 END AS SIGNED ) THEN NULL ELSE NULL END - + COUNT( + 39 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL COALESCE ( + 41, 0 ) * + CASE + 91 WHEN - - 36 + + 32 THEN + 50 * + 55 * - - 27 WHEN CAST ( - + CASE 61 WHEN 10 THEN 14 WHEN - 92 + 1 + + 15 THEN NULL ELSE - 76 END AS INTEGER ) THEN NULL ELSE NULL END - + COUNT ( + 39 ) AS col0
----
NULL

query I rowsort
SELECT - 93 + - 20 - + - 53 - + 91 col0
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL 4 * + - CASE 67 WHEN + 46 THEN + MIN( - 74 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL 4 * + - CASE 67 WHEN + 46 THEN + MIN ( - 74 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT + ( - COUNT( * ) ) - + + COALESCE ( - + 51, 16 + - 48 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8588
SELECT + ( - COUNT ( * ) ) - + + COALESCE ( - + 51, 16 + - 48 ) AS col0
----
50

query I rowsort
SELECT + 63 * - - 82
----
5166

onlyif mysql # aggregate syntax: 
query II rowsort label-8590
SELECT COUNT( ALL + - 18 ) col1, COUNT( * ) * 28
----
1
28

skipif mysql # not compatible
query II rowsort label-8590
SELECT COUNT ( ALL + - 18 ) col1, COUNT ( * ) * 28
----
1
28

query I rowsort
SELECT ALL - 91 * + 40 * - - 60 col2
----
-218400

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT - ( CASE - 72 WHEN + 22 * + + 70 + + - CASE + 92 WHEN - 22 THEN + 77 WHEN - + 90 THEN + 49 + + MAX( DISTINCT + - 70 ) END THEN - + 34 - + - NULLIF ( 49, + + 20 - + 13 - + - 96 + - - 29 - + + 27 * - 85 - - CASE WHEN NOT 89 NOT BETWEEN NULL AND ( 5 ) THEN 97 + COUNT( * ) END / + 12 * - 26 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8592
SELECT - ( CASE - 72 WHEN + 22 * + + 70 + + - CASE + 92 WHEN - 22 THEN + 77 WHEN - + 90 THEN + 49 + + MAX ( DISTINCT + - 70 ) END THEN - + 34 - + - NULLIF ( 49, + + 20 - + 13 - + - 96 + - - 29 - + + 27 * - 85 - - CASE WHEN NOT 89 NOT BETWEEN NULL AND ( 5 ) THEN 97 + COUNT ( * ) END / + 12 * - 26 ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8593
SELECT 5 DIV - 14 * + 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8593
SELECT 5 / - 14 * + 59 AS col0
----
0

query I rowsort
SELECT ALL 91 * + + 44
----
4004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8595
SELECT COUNT( DISTINCT + 62 ) + - NULLIF ( - 19, - 20 * - COALESCE ( 41, - - 14 ) ) DIV + 94 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8595
SELECT COUNT ( DISTINCT + 62 ) + - NULLIF ( - 19, - 20 * - COALESCE ( 41, - - 14 ) ) / + 94 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT DISTINCT COUNT( * ) * + - 77 * - - 97 AS col2
----
-7469

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT COUNT ( * ) * + - 77 * - - 97 AS col2
----
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT 24 + - MAX( ALL + 83 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-8597
SELECT 24 + - MAX ( ALL + 83 ) AS col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8598
SELECT 36 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-8598
SELECT 36 / - 94
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT - ( + - COUNT( * ) ) * - 37 * - 68 * 93 + - 32 * - 46 col1, - ( + + 35 ) - + - 7 * - 17 AS col1
----
235460
-154

skipif mysql # not compatible
query II rowsort label-8599
SELECT - ( + - COUNT ( * ) ) * - 37 * - 68 * 93 + - 32 * - 46 col1, - ( + + 35 ) - + - 7 * - 17 AS col1
----
235460
-154

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8601
SELECT ALL + - 24 DIV - - NULLIF ( 1, - MAX( 56 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL + - 24 / - - NULLIF ( 1, - MAX ( 56 ) )
----
-24

query II rowsort
SELECT + 95 + + 48 AS col1, 55 - + + 88 AS col1
----
143
-33

query III rowsort
SELECT ALL - 77 + + - 58, 96 col0, + 49 AS col0
----
-135
96
49

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

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

query I rowsort
SELECT + - COALESCE ( 15, - 29 ) col2
----
-15

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

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

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

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

query II rowsort
SELECT - 44 + - 51 AS col1, - 38 * + 62 * 28 AS col1
----
-95
-65968

query I rowsort
SELECT ALL + - 32 + 48 * - 81
----
-3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8610
SELECT - + 13 / - COUNT( * ) + - 20 + - + CASE WHEN + 19 BETWEEN + + 36 AND NULL THEN CAST( + 58 AS SIGNED ) + + 45 WHEN - 90 IS NOT NULL THEN NULL WHEN 29 + - 55 + - - 20 + 11 + COUNT( * ) * + 43 * - 89 + 63 NOT BETWEEN + 15 * + 4 - 73 AND ( + 47 ) THEN 7 END * + COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT - + 13 / - COUNT ( * ) + - 20 + - + CASE WHEN + 19 BETWEEN + + 36 AND NULL THEN CAST ( + 58 AS INTEGER ) + + 45 WHEN - 90 IS NOT NULL THEN NULL WHEN 29 + - 55 + - - 20 + 11 + COUNT ( * ) * + 43 * - 89 + 63 NOT BETWEEN + 15 * + 4 - 73 AND ( + 47 ) THEN 7 END * + COUNT ( * ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT ALL - - ( - - 24 ) * + MIN( ALL + - 31 )
----
-744

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL - - ( - - 24 ) * + MIN ( ALL + - 31 )
----
-744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8612
SELECT DISTINCT + + COALESCE ( + 63, - CASE - COUNT( * ) WHEN + 19 * - 41 + + - AVG ( DISTINCT - 13 ) THEN NULL WHEN + 12 * - - 76 - 43 + - 5 THEN 79 END - - COUNT( * ) + - 4 + 22 * - 64 + + + 16 DIV + MAX( DISTINCT + 25 ) ) * - 92
----
-5796

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT + + COALESCE ( + 63, - CASE - COUNT ( * ) WHEN + 19 * - 41 + + - AVG ( DISTINCT - 13 ) THEN NULL WHEN + 12 * - - 76 - 43 + - 5 THEN 79 END - - COUNT ( * ) + - 4 + 22 * - 64 + + + 16 / + MAX ( DISTINCT + 25 ) ) * - 92
----
-5796

query I rowsort
SELECT ALL - + 40 - + 61 + - 91 AS col2
----
-192

query I rowsort
SELECT ALL + 95 - - - 46
----
49

query I rowsort
SELECT 70 * CASE 9 WHEN + 48 THEN NULL WHEN + 13 THEN 33 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8616
SELECT ALL + 4 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL + 4 / + 83
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8617
SELECT ALL COALESCE ( + 47, - 88 ) * - 79 AS col2, COALESCE ( + CAST( NULL AS DECIMAL ), 25 - + CAST( NULL AS SIGNED ) * - 51 )
----
-3713
NULL

skipif mysql # not compatible
query II rowsort label-8617
SELECT ALL COALESCE ( + 47, - 88 ) * - 79 AS col2, COALESCE ( + CAST ( NULL AS REAL ), 25 - + CAST ( NULL AS INTEGER ) * - 51 )
----
-3713
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT CASE SUM( DISTINCT - 14 ) WHEN - COUNT( * ) THEN + 1 * + ( - + COUNT( * ) ) ELSE 20 END + - MAX( 17 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8618
SELECT CASE SUM ( DISTINCT - 14 ) WHEN - COUNT ( * ) THEN + 1 * + ( - + COUNT ( * ) ) ELSE 20 END + - MAX ( 17 ) AS col2
----
3

query I rowsort
SELECT DISTINCT + 78 * 97 AS col1
----
7566

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT ALL 50 + 66 + + 89 DIV - 70 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL 50 + 66 + + 89 / - 70 AS col0
----
115

query I rowsort
SELECT 79 - + NULLIF ( 93, + - 91 ) * - 90
----
8449

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT DISTINCT COUNT( DISTINCT 50 ) + + - ( 6 )
----
-5

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT COUNT ( DISTINCT 50 ) + + - ( 6 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8623
SELECT ALL COUNT( * ) + - - CAST( - + 85 AS SIGNED ) col1, - ( + 80 ) + + 54 + - + 38 + 9 * - 40 AS col1
----
-84
-424

skipif mysql # not compatible
query II rowsort label-8623
SELECT ALL COUNT ( * ) + - - CAST ( - + 85 AS INTEGER ) col1, - ( + 80 ) + + 54 + - + 38 + 9 * - 40 AS col1
----
-84
-424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT 81 * + CAST( NULL AS SIGNED ) + - CAST( - 57 AS SIGNED ) + - - 27 / + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT 81 * + CAST ( NULL AS INTEGER ) + - CAST ( - 57 AS INTEGER ) + - - 27 / + + 51
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT ALL ( - SUM( DISTINCT + - 11 ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL ( - SUM ( DISTINCT + - 11 ) ) AS col0
----
11

query II rowsort
SELECT 81 AS col0, - COALESCE ( + + 70, + 88 ) + - 55 AS col1
----
81
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8628
SELECT ALL + NULLIF ( + 94, + COALESCE ( CASE ( COUNT( * ) ) WHEN + 40 * - - 15 * 56 THEN + 34 + + ( - - COUNT( * ) ) - COUNT( * ) END, NULLIF ( ( + 97 ), + CAST( + + 35 AS SIGNED ) ) ) ) + - ( - 24 )
----
118

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL + NULLIF ( + 94, + COALESCE ( CASE ( COUNT ( * ) ) WHEN + 40 * - - 15 * 56 THEN + 34 + + ( - - COUNT ( * ) ) - COUNT ( * ) END, NULLIF ( ( + 97 ), + CAST ( + + 35 AS INTEGER ) ) ) ) + - ( - 24 )
----
118

query II rowsort
SELECT DISTINCT 5, 50 + - + 80 AS col0
----
5
-30

query I rowsort
SELECT 61 * - NULLIF ( - 14, 79 ) * - + 8
----
-6832

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT + COUNT( * ) + 37 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-8631
SELECT + COUNT ( * ) + 37 AS col2
----
38

query I rowsort
SELECT + 19 * - 31 * 59
----
-34751

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT ( - NULLIF ( + + MIN( + + ( + 51 ) ), + ( - 11 ) + - + 52 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT ( - NULLIF ( + + MIN ( + + ( + 51 ) ), + ( - 11 ) + - + 52 ) ) AS col1
----
-51

query II rowsort
SELECT ALL 98 + + + 47 - 60 * - + 16 AS col2, + ( + 69 )
----
1105
69

query I rowsort
SELECT ALL 29 * - 19 + + 17 + - 0 - - 71
----
-463

query I rowsort
SELECT - 86 * + 19 AS col0
----
-1634

query I rowsort
SELECT DISTINCT 60 * + + 88 col1
----
5280

query I rowsort
SELECT DISTINCT - - ( 74 ) col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT + COUNT( * ) * + COUNT( * ) + 96 + 58 * - 25 * + MIN( DISTINCT - 55 )
----
79847

skipif mysql # not compatible
query I rowsort label-8639
SELECT + COUNT ( * ) * + COUNT ( * ) + 96 + 58 * - 25 * + MIN ( DISTINCT - 55 )
----
79847

onlyif mysql # DIV for integer division: 
query I rowsort label-8640
SELECT 99 DIV 94 + 46
----
47

skipif mysql # not compatible
query I rowsort label-8640
SELECT 99 / 94 + 46
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT DISTINCT - 38 DIV - + 27 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT - 38 / - + 27 AS col1
----
1

query I rowsort
SELECT DISTINCT + 9 * + 28 AS col0
----
252

query I rowsort
SELECT 64 * 97 * + 41 AS col1
----
254528

query I rowsort
SELECT 70 - + 48 col2
----
22

query I rowsort
SELECT 89 + 70 * - 30
----
-2011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8646
SELECT ALL - CAST( - + 79 AS SIGNED ) AS col1, COALESCE ( + ( + 58 ), COUNT( * ), 6 * - 54 ) * + 95 col0
----
79
5510

skipif mysql # not compatible
query II rowsort label-8646
SELECT ALL - CAST ( - + 79 AS INTEGER ) AS col1, COALESCE ( + ( + 58 ), COUNT ( * ), 6 * - 54 ) * + 95 col0
----
79
5510

query I rowsort
SELECT 96 * 43 AS col2
----
4128

query I rowsort
SELECT NULLIF ( - 78, + + COALESCE ( - 77, - 1, + 93 * 95 * + + 71 * - 41 ) ) * 87 + + 79 * - 10 AS col1
----
-7576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8649
SELECT + 15 * + + ( + ( + 71 ) ) * + CAST( + 83 AS SIGNED ) + 57 AS col1
----
88452

skipif mysql # not compatible
query I rowsort label-8649
SELECT + 15 * + + ( + ( + 71 ) ) * + CAST ( + 83 AS INTEGER ) + 57 AS col1
----
88452

query I rowsort
SELECT - 62 - 80 AS col1
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8651
SELECT - CAST( - + CASE - - 15 WHEN - + 49 THEN NULL ELSE 64 END AS SIGNED ) DIV - - 97 + - MIN( DISTINCT - + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-8651
SELECT - CAST ( - + CASE - - 15 WHEN - + 49 THEN NULL ELSE 64 END AS INTEGER ) / - - 97 + - MIN ( DISTINCT - + 80 )
----
80

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

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

query I rowsort
SELECT 37 * - 65 - - 73
----
-2332

query I rowsort
SELECT ALL 38 * 50 col1
----
1900

onlyif mysql # aggregate syntax: 
query II rowsort label-8655
SELECT ALL CASE 80 WHEN + 72 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN + ( 92 ) + + - 32 THEN NULL ELSE 37 + - - 26 - - 87 + - 99 + COALESCE ( 33, + 37 * 21 - 17, + 93 ) + COUNT( * ) END + 53, + 93 AS col1
----
138
93

skipif mysql # not compatible
query II rowsort label-8655
SELECT ALL CASE 80 WHEN + 72 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN + ( 92 ) + + - 32 THEN NULL ELSE 37 + - - 26 - - 87 + - 99 + COALESCE ( 33, + 37 * 21 - 17, + 93 ) + COUNT ( * ) END + 53, + 93 AS col1
----
138
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - 2 + + + MAX( - 46 )
----
-48

skipif mysql # not compatible
query I rowsort label-8656
SELECT - 2 + + + MAX ( - 46 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8657
SELECT + - 82 + + + 7 + - + CASE 92 WHEN - 44 + - 84 THEN COALESCE ( CASE - 45 WHEN + 59 * - 29 + - 47 / + 15 THEN - CASE - 86 WHEN ( + 61 ) + + 90 THEN - 64 WHEN - 70 + 96 THEN - - 85 * + + 98 - - - AVG ( 41 ) / 95 WHEN 46 THEN + 62 END * 36 + - NULLIF ( - 72 + - 30 * + 74, 51 * - 91 ) WHEN 62 THEN + 70 ELSE + 85 END, COUNT( * ) - CAST( NULL AS SIGNED ), 42 * 97 + 63 ) - - ( + COUNT( 12 ) + 91 ) WHEN MIN( - 26 ) THEN 5 ELSE NULL END * 27 * - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT + - 82 + + + 7 + - + CASE 92 WHEN - 44 + - 84 THEN COALESCE ( CASE - 45 WHEN + 59 * - 29 + - 47 / + 15 THEN - CASE - 86 WHEN ( + 61 ) + + 90 THEN - 64 WHEN - 70 + 96 THEN - - 85 * + + 98 - - - AVG ( 41 ) / 95 WHEN 46 THEN + 62 END * 36 + - NULLIF ( - 72 + - 30 * + 74, 51 * - 91 ) WHEN 62 THEN + 70 ELSE + 85 END, COUNT ( * ) - CAST ( NULL AS INTEGER ), 42 * 97 + 63 ) - - ( + COUNT ( 12 ) + 91 ) WHEN MIN ( - 26 ) THEN 5 ELSE NULL END * 27 * - 48 AS col2
----
NULL

query I rowsort
SELECT ALL - + 40 * - - 20 AS col1
----
-800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8659
SELECT DISTINCT + CASE CAST( COUNT( * ) AS SIGNED ) WHEN - COUNT( * ) * + 45 THEN + - 21 * - + COUNT( * ) / COUNT( * ) + - ( + 20 ) * 11 * - CAST( NULL AS DECIMAL ) WHEN - ( COUNT( * ) ) + - 24 + + 47 THEN - + 84 + CASE + - COUNT( * ) WHEN + 93 + - + CAST( NULL AS SIGNED ) THEN - - 34 WHEN + + 74 * + + ( 27 ) + 51 * 16 THEN NULL ELSE NULL END + - 2 * 6 * COALESCE ( - AVG ( 23 ), - 33 * 18 ) END + COUNT( CASE + 46 WHEN ( + 17 ) THEN 32 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT + CASE CAST ( COUNT ( * ) AS INTEGER ) WHEN - COUNT ( * ) * + 45 THEN + - 21 * - + COUNT ( * ) / COUNT ( * ) + - ( + 20 ) * 11 * - CAST ( NULL AS REAL ) WHEN - ( COUNT ( * ) ) + - 24 + + 47 THEN - + 84 + CASE + - COUNT ( * ) WHEN + 93 + - + CAST ( NULL AS INTEGER ) THEN - - 34 WHEN + + 74 * + + ( 27 ) + 51 * 16 THEN NULL ELSE NULL END + - 2 * 6 * COALESCE ( - AVG ( 23 ), - 33 * 18 ) END + COUNT ( CASE + 46 WHEN ( + 17 ) THEN 32 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8660
SELECT - + 5 + - CAST( - 20 AS SIGNED ) * - + 25 * COUNT( * )
----
-505

skipif mysql # not compatible
query I rowsort label-8660
SELECT - + 5 + - CAST ( - 20 AS INTEGER ) * - + 25 * COUNT ( * )
----
-505

query I rowsort
SELECT ALL - 94 - - 56 + + 46 AS col2
----
8

query I rowsort
SELECT ALL + - 61 * - 4 AS col2
----
244

query I rowsort
SELECT + + ( + + 7 ) + - 79 AS col1
----
-72

query II rowsort
SELECT ALL ( - 72 ), + ( 38 ) AS col1
----
-72
38

query I rowsort
SELECT + 79 + + 57 col1
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-8666
SELECT + ( - MAX( + 41 ) ) + + 85 AS col1, + 67 * + COUNT( * )
----
44
67

skipif mysql # not compatible
query II rowsort label-8666
SELECT + ( - MAX ( + 41 ) ) + + 85 AS col1, + 67 * + COUNT ( * )
----
44
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8667
SELECT ALL CAST( NULL AS SIGNED ) - + + 16 * - ( - 94 ) + - - MAX( + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL CAST ( NULL AS INTEGER ) - + + 16 * - ( - 94 ) + - - MAX ( + 44 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL + - COUNT ( ALL + + 58 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8669
SELECT + - COUNT( * ) DIV - ( + - 61 ) - + MIN( - + ( - 14 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-8669
SELECT + - COUNT ( * ) / - ( + - 61 ) - + MIN ( - + ( - 14 ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT + ( + 39 ) * - - MAX( DISTINCT - 26 )
----
-1014

skipif mysql # not compatible
query I rowsort label-8670
SELECT + ( + 39 ) * - - MAX ( DISTINCT - 26 )
----
-1014

query I rowsort
SELECT ALL 89 * 29 AS col1
----
2581

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8672
SELECT ALL 28 * CAST( - - 87 AS SIGNED ) AS col1, 21
----
2436
21

skipif mysql # not compatible
query II rowsort label-8672
SELECT ALL 28 * CAST ( - - 87 AS INTEGER ) AS col1, 21
----
2436
21

query I rowsort
SELECT + 40 + - 46 - + 15
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT + CASE 85 WHEN - - 78 * COUNT( 67 ) THEN NULL ELSE 16 END * 85 + + - 30 + + 34 * - NULLIF ( + CASE + + 49 WHEN - 23 * + - 71 THEN 1 * + COUNT( * ) WHEN - 4 THEN NULL ELSE NULL END, - CASE - - 27 WHEN + 12 THEN - + 72 - + + 74 END ) * + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT + CASE 85 WHEN - - 78 * COUNT ( 67 ) THEN NULL ELSE 16 END * 85 + + - 30 + + 34 * - NULLIF ( + CASE + + 49 WHEN - 23 * + - 71 THEN 1 * + COUNT ( * ) WHEN - 4 THEN NULL ELSE NULL END, - CASE - - 27 WHEN + 12 THEN - + 72 - + + 74 END ) * + 34 AS col0
----
NULL

query I rowsort
SELECT ALL 22 * 54 * + 78
----
92664

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8677
SELECT ALL - 32 DIV 74 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL - 32 / 74 * COUNT ( * ) AS col0
----
0

query II rowsort
SELECT NULLIF ( 75, + - 44 ), 25 col1
----
75
25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8679
SELECT - CAST( - 56 AS SIGNED ) * 58 DIV 99
----
32

skipif mysql # not compatible
query I rowsort label-8679
SELECT - CAST ( - 56 AS INTEGER ) * 58 / 99
----
32

query I rowsort
SELECT ALL 24 * + 26 + + + 3
----
627

onlyif mysql # DIV for integer division: 
query I rowsort label-8681
SELECT - 45 DIV - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8681
SELECT - 45 / - 93 AS col2
----
0

query I rowsort
SELECT ALL 30 * - 79 + - 69 col2
----
-2439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8683
SELECT - 62 + - + 93 * + ( + COUNT( * ) ) - - NULLIF ( NULLIF ( CAST( NULL AS SIGNED ), 4 + - 90 * 90 * - 30 ), + 84 * - + COALESCE ( + 96, - 10 ) - + 21 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT - 62 + - + 93 * + ( + COUNT ( * ) ) - - NULLIF ( NULLIF ( CAST ( NULL AS INTEGER ), 4 + - 90 * 90 * - 30 ), + 84 * - + COALESCE ( + 96, - 10 ) - + 21 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT - 38 + + COUNT( * ) + 88 * + - 33
----
-2941

skipif mysql # not compatible
query I rowsort label-8685
SELECT - 38 + + COUNT ( * ) + 88 * + - 33
----
-2941

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

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

query I rowsort
SELECT ALL 67 * - 85 + - 15 * - 72 col1
----
-4615

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT ( - + CASE AVG ( DISTINCT + 90 ) WHEN + AVG ( + 53 ) THEN 66 END ) * - 95 * SUM( ALL 58 ) + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT ( - + CASE AVG ( DISTINCT + 90 ) WHEN + AVG ( + 53 ) THEN 66 END ) * - 95 * SUM ( ALL 58 ) + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT ALL + MAX( ALL 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL + MAX ( ALL 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL + COUNT( * ) * + + 63 + + + 41 * - 44
----
-1741

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL + COUNT ( * ) * + + 63 + + + 41 * - 44
----
-1741

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

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

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

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL COALESCE ( 55, + + COUNT ( * ) ) col2
----
55

query I rowsort
SELECT + 5 - - 94 + 94
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT - MAX( + 19 ) * + CASE - 52 WHEN 40 THEN - ( + COUNT( * ) ) WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT - MAX ( + 19 ) * + CASE - 52 WHEN 40 THEN - ( + COUNT ( * ) ) WHEN - COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT - 18 - - 81 - 63 + COALESCE ( 69, + 35 * - NULLIF ( 37, - 27 ) + 5 + - 10 * - 46, + 9 * 83 )
----
69

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8697
SELECT + + 71 DIV - 9 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8697
SELECT + + 71 / - 9 AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8698
SELECT - + 60 * ( 28 ) DIV - 80 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8698
SELECT - + 60 * ( 28 ) / - 80 AS col0
----
21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8700
SELECT DISTINCT - 38 - + + 6 DIV + + 21
----
-38

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT - 38 - + + 6 / + + 21
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - MIN( + 22 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - MIN ( + 22 ) AS col2
----
NULL

query I rowsort
SELECT - + 10 - + 44 col2
----
-54

query I rowsort
SELECT - 77 * - + 16 AS col2
----
1232

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT ALL - COALESCE ( - ( + + 61 ), + 1 DIV 60 )
----
61

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL - COALESCE ( - ( + + 61 ), + 1 / 60 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8705
SELECT + 4 DIV COUNT( ALL + 93 ) AS col0, - 79
----
4
-79

skipif mysql # not compatible
query II rowsort label-8705
SELECT + 4 / COUNT ( ALL + 93 ) AS col0, - 79
----
4
-79

query I rowsort
SELECT - + 33 * + 35
----
-1155

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT + + 27 + - + ( + COUNT( - - 50 ) ) + - + COUNT( + 17 ) + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-8707
SELECT + + 27 + - + ( + COUNT ( - - 50 ) ) + - + COUNT ( + 17 ) + COUNT ( * )
----
26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8708
SELECT DISTINCT + CAST( NULL AS SIGNED ), + 78 DIV 82 * - 11 + + 70 AS col2
----
NULL
70

skipif mysql # not compatible
query II rowsort label-8708
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + 78 / 82 * - 11 + + 70 AS col2
----
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT ALL + MIN( ALL + + 41 ) * 12
----
492

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL + MIN ( ALL + + 41 ) * 12
----
492

query I rowsort
SELECT DISTINCT - 18 * + 64
----
-1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8711
SELECT DISTINCT + NULLIF ( - + 12, + CASE + - 15 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - ( - 48 ) + - 17 + 46 THEN - COUNT( * ) WHEN 25 THEN ( + 89 ) ELSE NULL END - 88 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT + NULLIF ( - + 12, + CASE + - 15 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - ( - 48 ) + - 17 + 46 THEN - COUNT ( * ) WHEN 25 THEN ( + 89 ) ELSE NULL END - 88 ) AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8712
SELECT ALL 14 DIV + 39 * - 43 * + + 12 + COUNT( * ) * + + MIN( DISTINCT 61 ) col1
----
61

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL 14 / + 39 * - 43 * + + 12 + COUNT ( * ) * + + MIN ( DISTINCT 61 ) col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8713
SELECT + COALESCE ( + 64, + MIN( + CAST( NULL AS SIGNED ) ), + 39 * - + 10 - - 55 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8713
SELECT + COALESCE ( + 64, + MIN ( + CAST ( NULL AS INTEGER ) ), + 39 * - + 10 - - 55 ) AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8714
SELECT DISTINCT + 51, CAST( NULL AS SIGNED ) AS col1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-8714
SELECT DISTINCT + 51, CAST ( NULL AS INTEGER ) AS col1
----
51
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8715
SELECT DISTINCT COUNT( DISTINCT + 21 ) DIV - 79 + 70 + + 35 + SUM( + - 51 ) + - 28 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT COUNT ( DISTINCT + 21 ) / - 79 + 70 + + 35 + SUM ( + - 51 ) + - 28 AS col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8716
SELECT 99 * - CAST( - + 30 AS SIGNED )
----
2970

skipif mysql # not compatible
query I rowsort label-8716
SELECT 99 * - CAST ( - + 30 AS INTEGER )
----
2970

query I rowsort
SELECT COALESCE ( - 48, + - 5 + + 61 * + 86 ) * + 29 + - 36 * 39
----
-2796

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT MIN( DISTINCT - - 64 ) + 27 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8718
SELECT MIN ( DISTINCT - - 64 ) + 27 AS col1
----
91

query I rowsort
SELECT ALL 27 * + 42 AS col0
----
1134

query I rowsort
SELECT 89 + + 93 - - + 73 * + 19
----
1569

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT DISTINCT 62 * + COUNT( * ) * + + 67 AS col1
----
4154

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT 62 * + COUNT ( * ) * + + 67 AS col1
----
4154

onlyif mysql # aggregate syntax: 
query II rowsort label-8722
SELECT 74 * + 76 + COALESCE ( ( + 0 ), - COUNT( * ), - 11 ) AS col2, ( + 77 )
----
5624
77

skipif mysql # not compatible
query II rowsort label-8722
SELECT 74 * + 76 + COALESCE ( ( + 0 ), - COUNT ( * ), - 11 ) AS col2, ( + 77 )
----
5624
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT CASE - + 47 WHEN - COUNT( * ) THEN + + 83 END * 60 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT CASE - + 47 WHEN - COUNT ( * ) THEN + + 83 END * 60 col2
----
NULL

query I rowsort
SELECT 24 + + 62 AS col2
----
86

query I rowsort
SELECT 95 + + 21 * - 45 AS col0
----
-850

query II rowsort
SELECT 98 AS col1, 73 AS col2
----
98
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8727
SELECT + + 13 AS col2, 77 - ( - + COUNT( * ) ) col1
----
13
78

skipif mysql # not compatible
query II rowsort label-8727
SELECT + + 13 AS col2, 77 - ( - + COUNT ( * ) ) col1
----
13
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT NULLIF ( - + 47, 97 * MIN( ALL + 94 ) + - COUNT( * ) - - ( COUNT( * ) ) * - 43 ) + + - 18 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-8728
SELECT NULLIF ( - + 47, 97 * MIN ( ALL + 94 ) + - COUNT ( * ) - - ( COUNT ( * ) ) * - 43 ) + + - 18 AS col0
----
-65

query I rowsort
SELECT + ( 45 ) - + - 19
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8730
SELECT + 6 * + + 51 + ( + COUNT( * ) ) col1, ( 95 )
----
307
95

skipif mysql # not compatible
query II rowsort label-8730
SELECT + 6 * + + 51 + ( + COUNT ( * ) ) col1, ( 95 )
----
307
95

onlyif mysql # aggregate syntax: 
query II rowsort label-8731
SELECT 12 AS col2, + 41 + - COUNT( * ) AS col2
----
12
40

skipif mysql # not compatible
query II rowsort label-8731
SELECT 12 AS col2, + 41 + - COUNT ( * ) AS col2
----
12
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL - - 10 * COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - - 10 * COUNT ( * ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8733
SELECT - 39 + + COALESCE ( - - CAST( - 33 AS SIGNED ), 64 ) + ( + - 42 )
----
-114

skipif mysql # not compatible
query I rowsort label-8733
SELECT - 39 + + COALESCE ( - - CAST ( - 33 AS INTEGER ), 64 ) + ( + - 42 )
----
-114

query II rowsort
SELECT 56, 27 * 6 AS col0
----
56
162

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT 97 + 54 + + 96 DIV + 3
----
183

skipif mysql # not compatible
query I rowsort label-8735
SELECT 97 + 54 + + 96 / + 3
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT DISTINCT COALESCE ( + 85, - 83, + - 3 * ( + COALESCE ( + - 0, MAX( - 37 ) * 68 * + 73 * + 74 * + 55 ) ) + - 56 ) * - 63 AS col1
----
-5355

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT COALESCE ( + 85, - 83, + - 3 * ( + COALESCE ( + - 0, MAX ( - 37 ) * 68 * + 73 * + 74 * + 55 ) ) + - 56 ) * - 63 AS col1
----
-5355

query I rowsort
SELECT ALL CASE + - 4 WHEN + 59 THEN + 34 WHEN 21 * + ( - + 54 ) THEN + ( 93 ) + 79 ELSE NULL END
----
NULL

query I rowsort
SELECT 74 * - 87 * + - 31 AS col0
----
199578

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

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

query II rowsort
SELECT DISTINCT + 71 AS col1, + 49
----
71
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8741
SELECT ALL - CAST( NULL AS SIGNED ) + SUM( DISTINCT 27 ) / - 38 AS col2, COUNT( * ) + + 40 * - 44 * + 89 - 75 AS col0
----
NULL
-156714

skipif mysql # not compatible
query II rowsort label-8741
SELECT ALL - CAST ( NULL AS INTEGER ) + SUM ( DISTINCT 27 ) / - 38 AS col2, COUNT ( * ) + + 40 * - 44 * + 89 - 75 AS col0
----
NULL
-156714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8742
SELECT CASE ( - 20 ) WHEN + + 90 + + AVG ( DISTINCT - 33 ) + + 92 * - 60 THEN NULL WHEN NULLIF ( SUM( ALL 65 ), + CAST( NULL AS SIGNED ) ) THEN - 73 * 24 ELSE NULL END + - 14 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT CASE ( - 20 ) WHEN + + 90 + + AVG ( DISTINCT - 33 ) + + 92 * - 60 THEN NULL WHEN NULLIF ( SUM ( ALL 65 ), + CAST ( NULL AS INTEGER ) ) THEN - 73 * 24 ELSE NULL END + - 14 col2
----
NULL

query I rowsort
SELECT DISTINCT + 59 + + 26 - + 73 * ( - 95 ) AS col1
----
7020

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT ALL - 5 + ( - + COUNT( * ) ) * - + 11
----
6

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL - 5 + ( - + COUNT ( * ) ) * - + 11
----
6

query I rowsort
SELECT 70 * - - 81
----
5670

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8746
SELECT - ( 73 ) DIV 53 + - COUNT( * ) + + 35 * - COUNT( * ) + - + 80 * - SUM( - + 83 ) + + 20
----
-6657

skipif mysql # not compatible
query I rowsort label-8746
SELECT - ( 73 ) / 53 + - COUNT ( * ) + + 35 * - COUNT ( * ) + - + 80 * - SUM ( - + 83 ) + + 20
----
-6657

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT DISTINCT + COUNT( * ) * 34 * 0, + 24 AS col0
----
0
24

skipif mysql # not compatible
query II rowsort label-8747
SELECT DISTINCT + COUNT ( * ) * 34 * 0, + 24 AS col0
----
0
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8748
SELECT ALL - CAST( COUNT( - CAST( 45 AS DECIMAL ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - CAST ( COUNT ( - CAST ( 45 AS REAL ) ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 87 + 21 * + 38 + + 36 * - 68 AS col2
----
-1737

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8750
SELECT ALL 21 + + - CASE - - 15 WHEN + CAST( - 34 AS DECIMAL ) / - 85 THEN COUNT( * ) WHEN - MAX( DISTINCT 84 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL 21 + + - CASE - - 15 WHEN + CAST ( - 34 AS REAL ) / - 85 THEN COUNT ( * ) WHEN - MAX ( DISTINCT 84 ) THEN NULL END
----
NULL

query I rowsort
SELECT 5 + 95 AS col1
----
100

query II rowsort
SELECT ALL - 69 * - - 92 col0, + 91
----
-6348
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT NULLIF ( - 39, - ( - - 72 ) * 86 + - ( + 20 ) + 11 + ( - - 28 ) * - 40 ) + - ( - 53 ) * - - 43 * - + COUNT( * ) + - 36
----
-2354

skipif mysql # not compatible
query I rowsort label-8753
SELECT NULLIF ( - 39, - ( - - 72 ) * 86 + - ( + 20 ) + 11 + ( - - 28 ) * - 40 ) + - ( - 53 ) * - - 43 * - + COUNT ( * ) + - 36
----
-2354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8754
SELECT DISTINCT - CAST( - - 12 AS SIGNED ), COUNT( * ) AS col2
----
-12
1

skipif mysql # not compatible
query II rowsort label-8754
SELECT DISTINCT - CAST ( - - 12 AS INTEGER ), COUNT ( * ) AS col2
----
-12
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8755
SELECT DISTINCT COUNT( * ) - - + 90, - COUNT( * ) * - 93 col2
----
91
93

skipif mysql # not compatible
query II rowsort label-8755
SELECT DISTINCT COUNT ( * ) - - + 90, - COUNT ( * ) * - 93 col2
----
91
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT - 96 * - COALESCE ( - 6, + CASE + CASE 1 WHEN + 11 THEN 68 + - 89 + ( - 96 ) * - + 3 * - 57 * + 65 ELSE NULL END WHEN + CASE CASE - MAX( 24 ) WHEN + 63 + - ( + 17 ) * + 54 THEN 37 ELSE NULL END WHEN 21 * 29 - + 90 THEN - COUNT( * ) * ( 1 + + ( - 15 + + COALESCE ( - NULLIF ( 13, 89 ) + - 64, - 55 ) ) ) END - 16 THEN + 69 ELSE NULL END, + ( 98 ) ) * + COUNT( * ) AS col2
----
-576

skipif mysql # not compatible
query I rowsort label-8756
SELECT - 96 * - COALESCE ( - 6, + CASE + CASE 1 WHEN + 11 THEN 68 + - 89 + ( - 96 ) * - + 3 * - 57 * + 65 ELSE NULL END WHEN + CASE CASE - MAX ( 24 ) WHEN + 63 + - ( + 17 ) * + 54 THEN 37 ELSE NULL END WHEN 21 * 29 - + 90 THEN - COUNT ( * ) * ( 1 + + ( - 15 + + COALESCE ( - NULLIF ( 13, 89 ) + - 64, - 55 ) ) ) END - 16 THEN + 69 ELSE NULL END, + ( 98 ) ) * + COUNT ( * ) AS col2
----
-576

query I rowsort
SELECT DISTINCT + 82 * 15
----
1230

onlyif mysql # aggregate syntax: 
query II rowsort label-8758
SELECT DISTINCT + 71 - CASE 11 WHEN - 65 + - + 54 * + 56 THEN NULL ELSE - COUNT( * ) END AS col0, 27 * + 9 + + 8
----
72
251

skipif mysql # not compatible
query II rowsort label-8758
SELECT DISTINCT + 71 - CASE 11 WHEN - 65 + - + 54 * + 56 THEN NULL ELSE - COUNT ( * ) END AS col0, 27 * + 9 + + 8
----
72
251

query I rowsort
SELECT ALL + ( - + 96 ) * - 23
----
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8760
SELECT DISTINCT - - ( + 3 ) AS col1, + 58 * + COALESCE ( + - CAST( + - 65 AS SIGNED ), - + 45, + COUNT( * ) )
----
3
3770

skipif mysql # not compatible
query II rowsort label-8760
SELECT DISTINCT - - ( + 3 ) AS col1, + 58 * + COALESCE ( + - CAST ( + - 65 AS INTEGER ), - + 45, + COUNT ( * ) )
----
3
3770

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

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

query I rowsort
SELECT ALL + CASE + 9 WHEN - 83 + - + 22 THEN + + 88 + 62 WHEN + 11 / - - 70 THEN 11 * - ( - 34 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8763
SELECT CAST( 45 AS SIGNED ) + + ( MAX( ALL - 90 ) ) + - + 93 AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-8763
SELECT CAST ( 45 AS INTEGER ) + + ( MAX ( ALL - 90 ) ) + - + 93 AS col0
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8764
SELECT 22 DIV ( - 2 ) * - SUM( - 18 ) AS col0
----
-198

skipif mysql # not compatible
query I rowsort label-8764
SELECT 22 / ( - 2 ) * - SUM ( - 18 ) AS col0
----
-198

query I rowsort
SELECT - 95 + 27
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT - 5 + - 6 * + + COUNT( DISTINCT + - 80 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT - 5 + - 6 * + + COUNT ( DISTINCT + - 80 ) AS col2
----
-11

query I rowsort
SELECT DISTINCT + CASE 90 WHEN 87 THEN - - ( + 50 ) END
----
NULL

query I rowsort
SELECT ALL - + 66 + 70 + + + 64 AS col1
----
68

query I rowsort
SELECT ALL + ( - ( 54 ) ) + 78 AS col2
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT DISTINCT COUNT( * ) + + ( - - 28 ) col0
----
29

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT COUNT ( * ) + + ( - - 28 ) col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT SUM( ALL + - 93 ) - - 1 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-8772
SELECT SUM ( ALL + - 93 ) - - 1 AS col2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT ALL + - 90 * - CASE + 21 WHEN + 99 + - 24 THEN NULL ELSE - 57 DIV - + 36 END AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL + - 90 * - CASE + 21 WHEN + 99 + - 24 THEN NULL ELSE - 57 / - + 36 END AS col0
----
90

query I rowsort
SELECT - + ( + - 79 ) * + - 58 + - 71 AS col0
----
-4653

query I rowsort
SELECT ALL 45 + - + 81 * + 72 * + - 68
----
396621

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

skipif mysql # not compatible
query I rowsort label-8776
SELECT + COUNT ( * ) * + CAST ( - - SUM ( - 22 ) AS INTEGER )
----
-22

query I rowsort
SELECT - COALESCE ( - 48, - 28, 88 + - 27 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT + NULLIF ( + 58, + COUNT( * ) + - - 29 ) + + - 33
----
25

skipif mysql # not compatible
query I rowsort label-8778
SELECT + NULLIF ( + 58, + COUNT ( * ) + - - 29 ) + + - 33
----
25

query I rowsort
SELECT ALL + 46 * - 81 col1
----
-3726

query I rowsort
SELECT - 63 * - - 41 AS col2
----
-2583

query I rowsort
SELECT - 22 - - 39 AS col2
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT NULLIF ( + COUNT( - 7 ), + NULLIF ( - 74, + ( 44 ) / - - 77 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8783
SELECT NULLIF ( + COUNT ( - 7 ), + NULLIF ( - 74, + ( 44 ) / - - 77 ) ) col2
----
1

query I rowsort
SELECT DISTINCT + COALESCE ( + 61, 95 ) col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL + ( ( - 8 ) ) * + - MIN( ALL 40 ) + + 55 AS col2
----
375

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL + ( ( - 8 ) ) * + - MIN ( ALL 40 ) + + 55 AS col2
----
375

query I rowsort
SELECT + ( + ( + 84 ) ) * - 52 + - 3
----
-4371

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT - 97 * + MAX( + 2 )
----
-194

skipif mysql # not compatible
query I rowsort label-8787
SELECT - 97 * + MAX ( + 2 )
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT 11 * 19 + + - COUNT( * ) * + 0 + - + 0
----
209

skipif mysql # not compatible
query I rowsort label-8788
SELECT 11 * 19 + + - COUNT ( * ) * + 0 + - + 0
----
209

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

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

query I rowsort
SELECT - 44 + + 6 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT + MIN( 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-8791
SELECT + MIN ( 14 ) AS col0
----
14

query I rowsort
SELECT - 20 + 58 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT ALL + COUNT( * ) * + 18 col2
----
18

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL + COUNT ( * ) * + 18 col2
----
18

query I rowsort
SELECT ALL + 39 * + 79 AS col0
----
3081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8795
SELECT 72 * 74 + 29 AS col1, 13 * - + SUM( + 37 ) * - + 26 * 44 + + 69 + ( + + CAST( NULL AS SIGNED ) ) * + + 84 AS col1
----
5357
NULL

skipif mysql # not compatible
query II rowsort label-8795
SELECT 72 * 74 + 29 AS col1, 13 * - + SUM ( + 37 ) * - + 26 * 44 + + 69 + ( + + CAST ( NULL AS INTEGER ) ) * + + 84 AS col1
----
5357
NULL

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

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

query II rowsort
SELECT ALL + - 60 AS col2, 85 * 30 - + - 16 * 83
----
-60
3878

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

skipif mysql # not compatible
query I rowsort label-8798
SELECT + ( CAST ( NULL AS REAL ) ) * - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT + - 23 + COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8799
SELECT + - 23 + COUNT ( * ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT - COUNT( * ) * - NULLIF ( - 40, + 89 - - 52 * - - 96 ) - COUNT( * ) + + 41 * + 68 + + ( - 61 )
----
2686

skipif mysql # not compatible
query I rowsort label-8800
SELECT - COUNT ( * ) * - NULLIF ( - 40, + 89 - - 52 * - - 96 ) - COUNT ( * ) + + 41 * + 68 + + ( - 61 )
----
2686

query II rowsort
SELECT + 98 AS col1, - 11 AS col2
----
98
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT - - NULLIF ( + + 31, - + 68 ) * + MAX( ALL + 88 )
----
2728

skipif mysql # not compatible
query I rowsort label-8802
SELECT - - NULLIF ( + + 31, - + 68 ) * + MAX ( ALL + 88 )
----
2728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8803
SELECT - 1 + - COUNT( * ) * - 90 * - - 56 + - 61 DIV + 10 + + - 3 AS col0
----
5030

skipif mysql # not compatible
query I rowsort label-8803
SELECT - 1 + - COUNT ( * ) * - 90 * - - 56 + - 61 / + 10 + + - 3 AS col0
----
5030

query I rowsort
SELECT 56 * + 37 + + 3 - + 44 * - 21 col0
----
2999

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8806
SELECT DISTINCT + COUNT( * ) + - SUM( 79 ) col0, CASE - CAST( NULL AS SIGNED ) WHEN - 37 * - COALESCE ( 24, + - ( 9 ), + - 42 * + - 90 ) * - CASE + - 77 WHEN 99 THEN - 82 / COUNT( * ) WHEN - + 49 * + - 89 - 29 THEN NULL ELSE NULL END + + + 79 + - 22 + 45 THEN + - 58 WHEN + + 47 / 22 - + 36 + COUNT( * ) * COALESCE ( + 56 * + 47, 78, COUNT( * ) * - COUNT( * ) ) THEN NULL END * 98 col1
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-8806
SELECT DISTINCT + COUNT ( * ) + - SUM ( 79 ) col0, CASE - CAST ( NULL AS INTEGER ) WHEN - 37 * - COALESCE ( 24, + - ( 9 ), + - 42 * + - 90 ) * - CASE + - 77 WHEN 99 THEN - 82 / COUNT ( * ) WHEN - + 49 * + - 89 - 29 THEN NULL ELSE NULL END + + + 79 + - 22 + 45 THEN + - 58 WHEN + + 47 / 22 - + 36 + COUNT ( * ) * COALESCE ( + 56 * + 47, 78, COUNT ( * ) * - COUNT ( * ) ) THEN NULL END * 98 col1
----
-78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT + + MIN( + + 31 ) + + 18
----
49

skipif mysql # not compatible
query I rowsort label-8807
SELECT + + MIN ( + + 31 ) + + 18
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT ALL CAST( 33 AS SIGNED ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL CAST ( 33 AS INTEGER ) AS col1
----
33

query I rowsort
SELECT DISTINCT 15 + - - 91 AS col2
----
106

query II rowsort
SELECT - + 60 AS col1, 85 + 51 AS col2
----
-60
136

query I rowsort
SELECT ALL + 41 + - 5 * + + 66 - 74 col1
----
-363

query II rowsort
SELECT + 94 AS col1, + 97
----
94
97

query I rowsort
SELECT + 12 + 56 AS col2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-8814
SELECT + 40 * - + 11 AS col1, 44 * + + ( - COUNT( * ) ) + + - 92 AS col0
----
-440
-136

skipif mysql # not compatible
query II rowsort label-8814
SELECT + 40 * - + 11 AS col1, 44 * + + ( - COUNT ( * ) ) + + - 92 AS col0
----
-440
-136

query I rowsort
SELECT + 57 + 9 * + 25 AS col1
----
282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8816
SELECT ALL COUNT( * ) - + 75 + - + 14 DIV 18 + + + 25 * 49 AS col0
----
1151

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL COUNT ( * ) - + 75 + - + 14 / 18 + + + 25 * 49 AS col0
----
1151

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL 4 - - + COUNT( * ) + - + 4 + 82 * - 48 * - SUM( + + 60 ) * 79 + - - 47
----
18656688

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL 4 - - + COUNT ( * ) + - + 4 + 82 * - 48 * - SUM ( + + 60 ) * 79 + - - 47
----
18656688

query I rowsort
SELECT + 86 * + + 57
----
4902

query I rowsort
SELECT + 4 + - + 16
----
-12

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

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL COUNT ( * ) - + + COUNT ( * ) + 56 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT + 80 + - 78 + + SUM( + 39 ) + - + 87 * + 16
----
-1351

skipif mysql # not compatible
query I rowsort label-8821
SELECT + 80 + - 78 + + SUM ( + 39 ) + - + 87 * + 16
----
-1351

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT - MIN( - 4 ) * + - 5 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8823
SELECT - MIN ( - 4 ) * + - 5 AS col0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8824
SELECT - COUNT( - 8 ) DIV - 8 + + 23 + + 63 * - 52 + - - 50, + ( + 53 ) AS col2
----
-3203
53

skipif mysql # not compatible
query II rowsort label-8824
SELECT - COUNT ( - 8 ) / - 8 + + 23 + + 63 * - 52 + - - 50, + ( + 53 ) AS col2
----
-3203
53

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8826
SELECT DISTINCT - 62 DIV + SUM( 77 )
----
0

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT - 62 / + SUM ( 77 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8827
SELECT - 14 DIV MIN( ALL + - 37 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8827
SELECT - 14 / MIN ( ALL + - 37 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8828
SELECT DISTINCT 61 * + - 90 DIV + COUNT( * ) - + - 81 * + COUNT( * ) + 46
----
-5363

skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT 61 * + - 90 / + COUNT ( * ) - + - 81 * + COUNT ( * ) + 46
----
-5363

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

query II rowsort
SELECT DISTINCT + - 82 + + 81 AS col1, 16 AS col2
----
-1
16

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

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

query I rowsort
SELECT 31 * + 90 AS col0
----
2790

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL - NULLIF ( - 16, - COUNT( * ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL - NULLIF ( - 16, - COUNT ( * ) ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT COUNT( ALL + 78 ) + - 47
----
-46

skipif mysql # not compatible
query I rowsort label-8835
SELECT COUNT ( ALL + 78 ) + - 47
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT DISTINCT + + MIN( + 67 ) - + 82
----
-15

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT + + MIN ( + 67 ) - + 82
----
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT COUNT( ( + + COALESCE ( - 61, 55 / + 54 - + 14, + 8 ) ) ) - 3 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8838
SELECT COUNT ( ( + + COALESCE ( - 61, 55 / + 54 - + 14, + 8 ) ) ) - 3 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8839
SELECT 98 DIV + + 74 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8839
SELECT 98 / + + 74 AS col2
----
1

query II rowsort
SELECT 33 * - - 58 * 8, 22 AS col0
----
15312
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ( NULLIF ( - 26, 66 ) ) * + SUM( + 1 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8841
SELECT ( NULLIF ( - 26, 66 ) ) * + SUM ( + 1 ) AS col2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8842
SELECT 23 DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8842
SELECT 23 / - 91 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8844
SELECT ( + - 24 ) * - 52 * + CASE 7 WHEN + - 70 * + 75 * - 97 + 76 * 56 + - 17 + - CASE 70 WHEN - CASE 19 WHEN + 40 THEN NULL WHEN + 29 THEN 75 DIV - AVG ( CAST( - 19 AS SIGNED ) ) WHEN 21 THEN NULL END DIV - + MIN( - 68 ) THEN COALESCE ( - - 95, + COALESCE ( - 61, + 63 - - + 17 ) ) END THEN NULL ELSE 28 DIV COUNT( * ) END
----
34944

skipif mysql # not compatible
query I rowsort label-8844
SELECT ( + - 24 ) * - 52 * + CASE 7 WHEN + - 70 * + 75 * - 97 + 76 * 56 + - 17 + - CASE 70 WHEN - CASE 19 WHEN + 40 THEN NULL WHEN + 29 THEN 75 / - AVG ( CAST ( - 19 AS INTEGER ) ) WHEN 21 THEN NULL END / - + MIN ( - 68 ) THEN COALESCE ( - - 95, + COALESCE ( - 61, + 63 - - + 17 ) ) END THEN NULL ELSE 28 / COUNT ( * ) END
----
34944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8845
SELECT 18 * 78 DIV 92 + - - COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8845
SELECT 18 * 78 / 92 + - - COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT 70 * - 24 + - ( - MAX( - - 23 ) )
----
-1657

skipif mysql # not compatible
query I rowsort label-8846
SELECT 70 * - 24 + - ( - MAX ( - - 23 ) )
----
-1657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT DISTINCT + CAST( 11 AS SIGNED ) * + - 56 AS col2
----
-616

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT + CAST ( 11 AS INTEGER ) * + - 56 AS col2
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT + - CASE 90 WHEN 43 * - 30 * + 35 * + CASE - ( - + 19 ) WHEN - 63 THEN COUNT( * ) WHEN - 27 + 32 / 49 THEN NULL WHEN + MAX( DISTINCT - 59 ) + + COUNT( * ) / + ( + + 66 ) * 93 + + + 55 * 38 * + 52 THEN - 26 * + - 88 ELSE NULL END THEN NULL ELSE - ( - 31 ) END * - + CASE - 82 WHEN - ( + 10 ) - 56 * 76 THEN - MIN( ALL - 18 ) + - ( 84 ) WHEN COUNT( * ) THEN NULL END - 83 * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT + - CASE 90 WHEN 43 * - 30 * + 35 * + CASE - ( - + 19 ) WHEN - 63 THEN COUNT ( * ) WHEN - 27 + 32 / 49 THEN NULL WHEN + MAX ( DISTINCT - 59 ) + + COUNT ( * ) / + ( + + 66 ) * 93 + + + 55 * 38 * + 52 THEN - 26 * + - 88 ELSE NULL END THEN NULL ELSE - ( - 31 ) END * - + CASE - 82 WHEN - ( + 10 ) - 56 * 76 THEN - MIN ( ALL - 18 ) + - ( 84 ) WHEN COUNT ( * ) THEN NULL END - 83 * - 13
----
NULL

query I rowsort
SELECT + 39 * 11
----
429

onlyif mysql # aggregate syntax: 
query II rowsort label-8850
SELECT ALL ( + CASE + - 3 WHEN - - COUNT( ALL - 88 ) THEN NULL WHEN + 26 THEN NULL WHEN 87 THEN 93 END ) + + + SUM( ( + + 98 ) ), + 61 AS col1
----
NULL
61

skipif mysql # not compatible
query II rowsort label-8850
SELECT ALL ( + CASE + - 3 WHEN - - COUNT ( ALL - 88 ) THEN NULL WHEN + 26 THEN NULL WHEN 87 THEN 93 END ) + + + SUM ( ( + + 98 ) ), + 61 AS col1
----
NULL
61

query I rowsort
SELECT ALL 66 + + 58 * - - 64
----
3778

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8852
SELECT DISTINCT + COUNT( * ) + - ( - - 91 ), - 11 DIV - - 49 AS col0
----
-90
0

skipif mysql # not compatible
query II rowsort label-8852
SELECT DISTINCT + COUNT ( * ) + - ( - - 91 ), - 11 / - - 49 AS col0
----
-90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL 88 + ( - 37 ) - - CASE + + 49 WHEN + + 77 + + NULLIF ( 82, - 84 / + SUM( DISTINCT + ( - - 19 ) ) ) + - CASE - 8 WHEN - 78 THEN - 74 ELSE ( + 60 ) END * 3 * + + CASE 28 WHEN + COALESCE ( + 5, + - 79 / - - 71 + - 41, - 9 ) + 88 - COUNT( * ) THEN NULL ELSE + 17 + - 57 END + ( 70 ) THEN + 62 END + 76 * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL 88 + ( - 37 ) - - CASE + + 49 WHEN + + 77 + + NULLIF ( 82, - 84 / + SUM ( DISTINCT + ( - - 19 ) ) ) + - CASE - 8 WHEN - 78 THEN - 74 ELSE ( + 60 ) END * 3 * + + CASE 28 WHEN + COALESCE ( + 5, + - 79 / - - 71 + - 41, - 9 ) + 88 - COUNT ( * ) THEN NULL ELSE + 17 + - 57 END + ( 70 ) THEN + 62 END + 76 * 14
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT + 72 * + + COUNT( DISTINCT - 29 ) * - 6 - 47
----
-479

skipif mysql # not compatible
query I rowsort label-8855
SELECT + 72 * + + COUNT ( DISTINCT - 29 ) * - 6 - 47
----
-479

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

skipif mysql # not compatible
query I rowsort label-8856
SELECT + 41 * + COUNT ( * ) AS col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8857
SELECT ALL - 82 DIV + ( 40 )
----
-2

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL - 82 / + ( 40 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT + 96 * + MAX( + 21 ) - 25 * - COUNT( DISTINCT + ( + 25 ) ) + - 44 AS col0
----
1997

skipif mysql # not compatible
query I rowsort label-8858
SELECT + 96 * + MAX ( + 21 ) - 25 * - COUNT ( DISTINCT + ( + 25 ) ) + - 44 AS col0
----
1997

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT SUM( DISTINCT - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-8859
SELECT SUM ( DISTINCT - 24 )
----
-24

query II rowsort
SELECT + - 76 AS col0, 8 AS col1
----
-76
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT - COALESCE ( - 39, 35 * + 38 + + COUNT( ALL + 85 ), + 61 )
----
39

skipif mysql # not compatible
query I rowsort label-8861
SELECT - COALESCE ( - 39, 35 * + 38 + + COUNT ( ALL + 85 ), + 61 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8862
SELECT 38 * CAST( NULL AS SIGNED ) + - 22 - - 8 + - - 71 + - + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT 38 * CAST ( NULL AS INTEGER ) + - 22 - - 8 + - - 71 + - + 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT - 8 * 42 * + - ( - COUNT( ALL 64 ) ) - + + 85
----
-421

skipif mysql # not compatible
query I rowsort label-8863
SELECT - 8 * 42 * + - ( - COUNT ( ALL 64 ) ) - + + 85
----
-421

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT ALL MAX( ALL + - 67 ) * - + ( 64 )
----
4288

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL MAX ( ALL + - 67 ) * - + ( 64 )
----
4288

query I rowsort
SELECT 99 * + 53 * - 87
----
-456489

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT DISTINCT - 42 * - - NULLIF ( - 14, + ( - COUNT( * ) ) )
----
588

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT - 42 * - - NULLIF ( - 14, + ( - COUNT ( * ) ) )
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL - COUNT( * ) - + 96
----
-97

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL - COUNT ( * ) - + 96
----
-97

query I rowsort
SELECT 24 * + 14 * - 38
----
-12768

query II rowsort
SELECT - 71 AS col1, + 9 col0
----
-71
9

query I rowsort
SELECT 43 * - 35
----
-1505

query II rowsort
SELECT 14 + 15 + - 88 * - 45, + 37 * - CASE + 79 WHEN + + 80 + - 76 THEN + 92 ELSE + 66 END AS col2
----
3989
-2442

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT ALL COUNT( - - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL COUNT ( - - 99 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8873
SELECT COUNT( * ) + + COALESCE ( 63, + - CAST( NULL AS SIGNED ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8873
SELECT COUNT ( * ) + + COALESCE ( 63, + - CAST ( NULL AS INTEGER ) ) AS col2
----
64

query I rowsort
SELECT ALL 9 + + - 48 + - 18 * - ( 67 )
----
1167

onlyif mysql # aggregate syntax: 
query II rowsort label-8875
SELECT 39 + + - 55 + + 69 * - 65 * - - 17 + + - COUNT( * ), 76 * COALESCE ( 63, + + 40 * 38 * + 33, + 84 ) AS col0
----
-76262
4788

skipif mysql # not compatible
query II rowsort label-8875
SELECT 39 + + - 55 + + 69 * - 65 * - - 17 + + - COUNT ( * ), 76 * COALESCE ( 63, + + 40 * 38 * + 33, + 84 ) AS col0
----
-76262
4788

query I rowsort
SELECT ALL - 80 * + 82 * + 65
----
-426400

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT COALESCE ( - + 76, + 8 ) + - NULLIF ( + + 4, 94 - + CASE - 87 WHEN + 39 * ( - COUNT( * ) ) + 44 THEN - + 86 * MAX( ALL 24 ) WHEN - 6 / - 59 + + 22 THEN NULL ELSE NULL END ) * + 79
----
-392

skipif mysql # not compatible
query I rowsort label-8877
SELECT COALESCE ( - + 76, + 8 ) + - NULLIF ( + + 4, 94 - + CASE - 87 WHEN + 39 * ( - COUNT ( * ) ) + 44 THEN - + 86 * MAX ( ALL 24 ) WHEN - 6 / - 59 + + 22 THEN NULL ELSE NULL END ) * + 79
----
-392

query I rowsort
SELECT DISTINCT + 7 + 76
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT - SUM( DISTINCT 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-8879
SELECT - SUM ( DISTINCT 86 )
----
-86

query I rowsort
SELECT 63 + 51 + - 31 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8881
SELECT - 53 DIV 44
----
-1

skipif mysql # not compatible
query I rowsort label-8881
SELECT - 53 / 44
----
-1

query I rowsort
SELECT ALL + 33 * - 97 * - + 16 + + 10 + - ( - 26 ) AS col2
----
51252

onlyif mysql # aggregate syntax: 
query II rowsort label-8883
SELECT - MAX( - 81 ) * + + ( - COUNT( * ) ), 38 col1
----
-81
38

skipif mysql # not compatible
query II rowsort label-8883
SELECT - MAX ( - 81 ) * + + ( - COUNT ( * ) ), 38 col1
----
-81
38

query I rowsort
SELECT ALL - 82 * + 46 + + 2 + + 53 + ( 6 ) * COALESCE ( + - 86, - - 1 ) + - 93 AS col1
----
-4326

query I rowsort
SELECT ALL 44 * 95 + - 24 AS col1
----
4156

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT + + 8 * - COUNT( * ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-8886
SELECT + + 8 * - COUNT ( * ) col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT + + COUNT( * ) - 92 - - 66 + + ( - 2 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8887
SELECT + + COUNT ( * ) - 92 - - 66 + + ( - 2 ) AS col1
----
-27

query II rowsort
SELECT 72 AS col1, 86 col1
----
72
86

query I rowsort
SELECT ALL - 53 * + 42 * + 2 col0
----
-4452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8890
SELECT + 39 * CAST( - COUNT( * ) AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-8890
SELECT + 39 * CAST ( - COUNT ( * ) AS INTEGER )
----
-39

query II rowsort
SELECT 15 AS col2, + 91 + 99
----
15
190

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT ALL - COUNT( * ) * - + 82 - - - 57 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL - COUNT ( * ) * - + 82 - - - 57 AS col1
----
25

query II rowsort
SELECT + 96 col1, + 53 + - 66 AS col1
----
96
-13

query II rowsort
SELECT ALL + + 62 AS col2, 29
----
62
29

query I rowsort
SELECT ALL 66 * + 37 * + + 37
----
90354

query I rowsort
SELECT ALL + ( - 58 ) * - 26
----
1508

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT - 81 * COUNT( 21 )
----
-81

skipif mysql # not compatible
query I rowsort label-8897
SELECT - 81 * COUNT ( 21 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT + 51 + - + CAST( NULL AS SIGNED ) / 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT + 51 + - + CAST ( NULL AS INTEGER ) / 79 AS col0
----
NULL

query I rowsort
SELECT + 27 + - 47 - + NULLIF ( - NULLIF ( + 80, + 8 ), - 81 )
----
60

query I rowsort
SELECT + 45 * + 37
----
1665

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT - COUNT( - ( 83 ) ) + + 72
----
71

skipif mysql # not compatible
query I rowsort label-8901
SELECT - COUNT ( - ( 83 ) ) + + 72
----
71

query I rowsort
SELECT - 21 * - - 20 AS col1
----
-420

query I rowsort
SELECT ALL 27 + - + 78 - + 9 AS col1
----
-60

query I rowsort
SELECT DISTINCT CASE + 58 WHEN NULLIF ( - - 93, + + 56 * - + 12 ) THEN + + ( - 69 ) END + + 32 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL + 21 + - 79 - + + 15 + - + 4 + 83 + + 91 * + COUNT( * ) + - 63 * 68
----
-4187

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL + 21 + - 79 - + + 15 + - + 4 + 83 + + 91 * + COUNT ( * ) + - 63 * 68
----
-4187

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT - COUNT( * ) * + COALESCE ( + COUNT( * ), - + 65 + - 27 - 82 * + 69 + 26, - - CASE COALESCE ( + 15, + - ( 2 ) ) WHEN + 64 - + - COUNT( * ) * - ( - 73 ) * + 13 * + + COUNT( * ) - + - 73 * - - 60 + - - 18 + + COUNT( * ) + + ( + + COUNT( * ) ) THEN + SUM( - 41 ) WHEN - 96 / - AVG ( ALL - 78 ) + - 96 THEN NULL END + + COUNT( DISTINCT ( 63 ) ) ) * - 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8906
SELECT - COUNT ( * ) * + COALESCE ( + COUNT ( * ), - + 65 + - 27 - 82 * + 69 + 26, - - CASE COALESCE ( + 15, + - ( 2 ) ) WHEN + 64 - + - COUNT ( * ) * - ( - 73 ) * + 13 * + + COUNT ( * ) - + - 73 * - - 60 + - - 18 + + COUNT ( * ) + + ( + + COUNT ( * ) ) THEN + SUM ( - 41 ) WHEN - 96 / - AVG ( ALL - 78 ) + - 96 THEN NULL END + + COUNT ( DISTINCT ( 63 ) ) ) * - 57 AS col2
----
57

query I rowsort
SELECT DISTINCT ( 45 ) + 50 col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8908
SELECT ALL - ( 24 ) * - COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) / - + COUNT( * ) + - 97 + + 22 + + + 72
----
24
NULL

skipif mysql # not compatible
query II rowsort label-8908
SELECT ALL - ( 24 ) * - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) / - + COUNT ( * ) + - 97 + + 22 + + + 72
----
24
NULL

query I rowsort
SELECT DISTINCT - 48 + + - ( - + 50 ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8910
SELECT DISTINCT COALESCE ( 3, + CAST( 4 AS SIGNED ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT COALESCE ( 3, + CAST ( 4 AS INTEGER ) ) AS col1
----
3

query I rowsort
SELECT - 79 - - + 55 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT - COUNT( + 86 ) * + 44
----
-44

skipif mysql # not compatible
query I rowsort label-8912
SELECT - COUNT ( + 86 ) * + 44
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT ALL + COUNT( * ) * - 19 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL + COUNT ( * ) * - 19 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT DISTINCT - 40 + + 70 * - COUNT( * ) * - SUM( - 67 ) AS col2
----
-4730

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT - 40 + + 70 * - COUNT ( * ) * - SUM ( - 67 ) AS col2
----
-4730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8915
SELECT ALL 88 DIV MAX( 53 ) + - 27 + + 60 * COALESCE ( 36, + CASE + 98 WHEN - 28 DIV COUNT( * ) THEN NULL WHEN 89 THEN NULL ELSE - 8 + + 37 END ) - 91 col2
----
2043

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL 88 / MAX ( 53 ) + - 27 + + 60 * COALESCE ( 36, + CASE + 98 WHEN - 28 / COUNT ( * ) THEN NULL WHEN 89 THEN NULL ELSE - 8 + + 37 END ) - 91 col2
----
2043

query I rowsort
SELECT + NULLIF ( + 15, + 9 - + + 15 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT 52 * + 27 * 48 * - 79 + COUNT( DISTINCT - 16 )
----
-5323967

skipif mysql # not compatible
query I rowsort label-8917
SELECT 52 * + 27 * 48 * - 79 + COUNT ( DISTINCT - 16 )
----
-5323967

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT + - 88 * - COUNT( * ) + + - SUM( 59 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-8918
SELECT + - 88 * - COUNT ( * ) + + - SUM ( 59 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8919
SELECT - 8 * COUNT( * ) - + 33 AS col1, - ( + 63 )
----
-41
-63

skipif mysql # not compatible
query II rowsort label-8919
SELECT - 8 * COUNT ( * ) - + 33 AS col1, - ( + 63 )
----
-41
-63

query I rowsort
SELECT - - 60 * + + 77
----
4620

onlyif mysql # aggregate syntax: 
query II rowsort label-8921
SELECT - 67 + - - SUM( ALL + - COALESCE ( 19, - 70, - 44 ) ) + - 4 AS col1, 23 + + 42 * - - 89 * + 5 + + 64
----
-90
18777

skipif mysql # not compatible
query II rowsort label-8921
SELECT - 67 + - - SUM ( ALL + - COALESCE ( 19, - 70, - 44 ) ) + - 4 AS col1, 23 + + 42 * - - 89 * + 5 + + 64
----
-90
18777

query I rowsort
SELECT - ( - - NULLIF ( - 84, - 2 ) )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8923
SELECT + + 55 * 87 + + 64 * 29 - 82 DIV + SUM( + 39 ) AS col1
----
6639

skipif mysql # not compatible
query I rowsort label-8923
SELECT + + 55 * 87 + + 64 * 29 - 82 / + SUM ( + 39 ) AS col1
----
6639

query I rowsort
SELECT + - 11 + NULLIF ( - 73, 16 + + CASE - - 63 WHEN + 69 THEN - ( + ( - 67 ) ) END ) AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8925
SELECT + 29 * - 91 * - 63 + 47 DIV - 63 + + + 91 AS col0
----
166348

skipif mysql # not compatible
query I rowsort label-8925
SELECT + 29 * - 91 * - 63 + 47 / - 63 + + + 91 AS col0
----
166348

query I rowsort
SELECT NULLIF ( + 84, - - 15 - - 57 + + - 75 ) AS col0
----
84

query II rowsort
SELECT ALL + 59 AS col1, 25
----
59
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL COUNT( * ) * - 42
----
-42

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL COUNT ( * ) * - 42
----
-42

query I rowsort
SELECT + 69 * + - 42 * CASE WHEN NOT NULL IS NULL THEN 13 ELSE NULL END
----
NULL

query I rowsort
SELECT + NULLIF ( - 5, - - ( - 45 ) * - - 87 * + 28 ) AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8931
SELECT + 33 + + COALESCE ( - - COUNT( DISTINCT + NULLIF ( - + 24, - NULLIF ( + CAST( NULL AS SIGNED ), - 65 ) ) ), - - 67 )
----
34

skipif mysql # not compatible
query I rowsort label-8931
SELECT + 33 + + COALESCE ( - - COUNT ( DISTINCT + NULLIF ( - + 24, - NULLIF ( + CAST ( NULL AS INTEGER ), - 65 ) ) ), - - 67 )
----
34

query I rowsort
SELECT + NULLIF ( + 78, - 91 ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8933
SELECT + 41 * + + ( + 79 ) * + + COALESCE ( CAST( NULL AS SIGNED ), - 75 ) + - + 90 + + 78 + + 69 + + 11 * - 33 * 36
----
-255936

skipif mysql # not compatible
query I rowsort label-8933
SELECT + 41 * + + ( + 79 ) * + + COALESCE ( CAST ( NULL AS INTEGER ), - 75 ) + - + 90 + + 78 + + 69 + + 11 * - 33 * 36
----
-255936

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT ALL 66 * - + MAX( 29 ) + + 92 - + - 84 * ( 91 ) AS col0
----
5822

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL 66 * - + MAX ( 29 ) + + 92 - + - 84 * ( 91 ) AS col0
----
5822

query I rowsort
SELECT DISTINCT - 38 * 69 * - 22 + - + 34 AS col1
----
57650

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT MAX( DISTINCT + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8936
SELECT MAX ( DISTINCT + 38 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT MAX( + 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8937
SELECT MAX ( + 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL COUNT( - 68 ) + + - 3 + + + 53 * - 77 + + + 75 col1
----
-4008

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL COUNT ( - 68 ) + + - 3 + + + 53 * - 77 + + + 75 col1
----
-4008

query I rowsort
SELECT + 79 + - 33
----
46

query I rowsort
SELECT + 31 + 87
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT - COUNT( * ) * + 43
----
-43

skipif mysql # not compatible
query I rowsort label-8941
SELECT - COUNT ( * ) * + 43
----
-43

query I rowsort
SELECT ALL - - 52 + ( + 91 )
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8943
SELECT + 44 + + 67 + 59, + CAST( + 68 AS SIGNED ) + 37 * 60 AS col1
----
170
2288

skipif mysql # not compatible
query II rowsort label-8943
SELECT + 44 + + 67 + 59, + CAST ( + 68 AS INTEGER ) + 37 * 60 AS col1
----
170
2288

query II rowsort
SELECT DISTINCT 14 * - 41 * + + 93, 25 * - 59 AS col0
----
-53382
-1475

query I rowsort
SELECT - 58 + + 54 + + 27 * - 63 AS col0
----
-1705

onlyif mysql # aggregate syntax: 
query II rowsort label-8946
SELECT DISTINCT + 19 * + 63 * - 62, + ( - 22 ) + COUNT( * ) + - MAX( + ( 88 ) ) - - + 81 + + ( - 86 ) + 88 * - 71 * + 52 AS col2
----
-74214
-325010

skipif mysql # not compatible
query II rowsort label-8946
SELECT DISTINCT + 19 * + 63 * - 62, + ( - 22 ) + COUNT ( * ) + - MAX ( + ( 88 ) ) - - + 81 + + ( - 86 ) + 88 * - 71 * + 52 AS col2
----
-74214
-325010

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT - 85 + - - 93 / 63 / - COUNT( * ) + - 84 * - 57 / + CASE - 7 WHEN - 65 THEN + 28 * 86 WHEN - 16 THEN NULL WHEN - COUNT( * ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT - 85 + - - 93 / 63 / - COUNT ( * ) + - 84 * - 57 / + CASE - 7 WHEN - 65 THEN + 28 * 86 WHEN - 16 THEN NULL WHEN - COUNT ( * ) THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT DISTINCT - + 10 - - - MIN( ALL - - 56 )
----
-66

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT - + 10 - - - MIN ( ALL - - 56 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT + COUNT( * ) + + 40 - + 10 + + - 43
----
-12

skipif mysql # not compatible
query I rowsort label-8949
SELECT + COUNT ( * ) + + 40 - + 10 + + - 43
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + COUNT( ALL - - 84 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8950
SELECT + COUNT ( ALL - - 84 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8951
SELECT - 81 * + 27 * + 67 + ( 96 ) DIV + 16
----
-146523

skipif mysql # not compatible
query I rowsort label-8951
SELECT - 81 * + 27 * + 67 + ( 96 ) / + 16
----
-146523

query I rowsort
SELECT DISTINCT 26 - + 52 col2
----
-26

query I rowsort
SELECT ALL 27 * + - 72 * + 18 * - 84 col1
----
2939328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8954
SELECT DISTINCT + + COUNT( ALL - 82 ) * - + 99 * CAST( + 89 AS SIGNED ) - 74
----
-8885

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT + + COUNT ( ALL - 82 ) * - + 99 * CAST ( + 89 AS INTEGER ) - 74
----
-8885

onlyif mysql # aggregate syntax: 
query II rowsort label-8955
SELECT + + MIN( DISTINCT - COALESCE ( + 72, - + 43 ) ), + 13 col1
----
-72
13

skipif mysql # not compatible
query II rowsort label-8955
SELECT + + MIN ( DISTINCT - COALESCE ( + 72, - + 43 ) ), + 13 col1
----
-72
13

query I rowsort
SELECT 13 * + 54 AS col2
----
702

query I rowsort
SELECT 0 - + 54 AS col0
----
-54

query I rowsort
SELECT 14 * - 81 AS col2
----
-1134

query I rowsort
SELECT 17 * + 15 AS col2
----
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8960
SELECT 53 * - 4 AS col0, 48 * + - COUNT( * ) + COALESCE ( - - 5, + 33, 84 * 81 DIV 64 - - 3 ) + + COUNT( * ) * + 67 + 88 + - 99 * + 85 AS col2
----
-212
-8303

skipif mysql # not compatible
query II rowsort label-8960
SELECT 53 * - 4 AS col0, 48 * + - COUNT ( * ) + COALESCE ( - - 5, + 33, 84 * 81 / 64 - - 3 ) + + COUNT ( * ) * + 67 + 88 + - 99 * + 85 AS col2
----
-212
-8303

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT DISTINCT + COUNT( * ) * 25 * + 65
----
1625

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT + COUNT ( * ) * 25 * + 65
----
1625

query II rowsort
SELECT ALL ( 68 ) + - - ( + - 54 ), 95 AS col0
----
14
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8963
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - 16 - COUNT( * ) * - COUNT( * ) / 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - 16 - COUNT ( * ) * - COUNT ( * ) / 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT COUNT( * ) * - - 36 * + COUNT( * ) * + 58 AS col2
----
2088

skipif mysql # not compatible
query I rowsort label-8964
SELECT COUNT ( * ) * - - 36 * + COUNT ( * ) * + 58 AS col2
----
2088

query I rowsort
SELECT ALL 26 * 44 AS col2
----
1144

query I rowsort
SELECT DISTINCT + NULLIF ( + ( - 63 ), - - 15 ) * - 85
----
5355

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - COUNT( * ) * + 92
----
-92

skipif mysql # not compatible
query I rowsort label-8967
SELECT - COUNT ( * ) * + 92
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT 87 * - 59 + - - MAX( DISTINCT + 83 ) + + + 40 AS col0
----
-5010

skipif mysql # not compatible
query I rowsort label-8968
SELECT 87 * - 59 + - - MAX ( DISTINCT + 83 ) + + + 40 AS col0
----
-5010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8969
SELECT + 9 - + - 96 AS col0, COUNT( * ) * + CAST( NULL AS SIGNED )
----
105
NULL

skipif mysql # not compatible
query II rowsort label-8969
SELECT + 9 - + - 96 AS col0, COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
105
NULL

query I rowsort
SELECT - CASE WHEN NOT NULL NOT IN ( 36 ) THEN + 69 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8971
SELECT 79 / + - 28 * - CAST( NULL AS SIGNED ) * + ( COALESCE ( + 75, - + 58, + - 0 ) ) + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT 79 / + - 28 * - CAST ( NULL AS INTEGER ) * + ( COALESCE ( + 75, - + 58, + - 0 ) ) + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ALL + 75 * 27 * - COUNT( * ) AS col2
----
-2025

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL + 75 * 27 * - COUNT ( * ) AS col2
----
-2025

query I rowsort
SELECT - 58 - + 12 AS col0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8974
SELECT SUM( - 49 ) DIV - 11 + + 45 + + COALESCE ( + 71, - + 86 ) DIV + + 37 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8974
SELECT SUM ( - 49 ) / - 11 + + 45 + + COALESCE ( + 71, - + 86 ) / + + 37 AS col1
----
50

query I rowsort
SELECT ALL 33 * - ( - 42 ) + - - 42 AS col2
----
1428

query I rowsort
SELECT DISTINCT - NULLIF ( + 47, - 99 ) col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT DISTINCT - + 12 * - 36 + - + 41 + + 97 * + 51 + + - 52 * MAX( - 69 )
----
8926

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT - + 12 * - 36 + - + 41 + + 97 * + 51 + + - 52 * MAX ( - 69 )
----
8926

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT + 45 * 65 + 49 + + 18 DIV + - 52 + - 59 * 53 + + 99 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-8978
SELECT + 45 * 65 + 49 + + 18 / + - 52 + - 59 * 53 + + 99 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT + 57 * + 30 + - SUM( DISTINCT - 50 ) + - 21 + + + 11
----
1750

skipif mysql # not compatible
query I rowsort label-8979
SELECT + 57 * + 30 + - SUM ( DISTINCT - 50 ) + - 21 + + + 11
----
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT 28 * 79 + COALESCE ( - COUNT( * ), - 80 + MAX( ALL 15 ) + - 58 + - 92 * + - ( 24 ) * 24 ) col0
----
2211

skipif mysql # not compatible
query I rowsort label-8980
SELECT 28 * 79 + COALESCE ( - COUNT ( * ), - 80 + MAX ( ALL 15 ) + - 58 + - 92 * + - ( 24 ) * 24 ) col0
----
2211

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT COUNT( * ) + - - 13
----
14

skipif mysql # not compatible
query I rowsort label-8981
SELECT COUNT ( * ) + - - 13
----
14

query I rowsort
SELECT 17 + + - 80 + - 9 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL COUNT( * ) + - 78 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL COUNT ( * ) + - 78 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT - SUM( + 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT - SUM ( + 96 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8985
SELECT DISTINCT + CAST( - ( - 32 ) AS SIGNED ) + + + MIN( - 82 )
----
-50

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT + CAST ( - ( - 32 ) AS INTEGER ) + + + MIN ( - 82 )
----
-50

query I rowsort
SELECT 23 * + 87
----
2001

query I rowsort
SELECT DISTINCT - 17 * 60 AS col0
----
-1020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT 39 + - CAST( NULL AS SIGNED ) - ( + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT 39 + - CAST ( NULL AS INTEGER ) - ( + 7 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8989
SELECT 42 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-8989
SELECT 42 / + 89
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8990
SELECT - MAX( 2 ) DIV - MIN( 3 ) + MIN( + 54 ) * - COUNT( * ) + + 6 + 26
----
-22

skipif mysql # not compatible
query I rowsort label-8990
SELECT - MAX ( 2 ) / - MIN ( 3 ) + MIN ( + 54 ) * - COUNT ( * ) + + 6 + 26
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8991
SELECT DISTINCT - 90 DIV + COUNT( ALL - - 69 ) * - 1 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT - 90 / + COUNT ( ALL - - 69 ) * - 1 AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8992
SELECT DISTINCT 31 * + ( 82 ) * COUNT( * ) DIV 82 * + 88 - + 13 AS col1
----
2715

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT 31 * + ( 82 ) * COUNT ( * ) / 82 * + 88 - + 13 AS col1
----
2715

query I rowsort
SELECT ALL + 61 - - 2 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT - - CASE + CASE 50 WHEN - + ( ( 0 ) ) THEN - COUNT( * ) ELSE - - 55 + + COUNT( * ) END WHEN + 74 * + ( - + ( - 4 ) ) + - + 6 THEN NULL WHEN + - 43 THEN + + 58 ELSE 31 END
----
31

skipif mysql # not compatible
query I rowsort label-8994
SELECT - - CASE + CASE 50 WHEN - + ( ( 0 ) ) THEN - COUNT ( * ) ELSE - - 55 + + COUNT ( * ) END WHEN + 74 * + ( - + ( - 4 ) ) + - + 6 THEN NULL WHEN + - 43 THEN + + 58 ELSE 31 END
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT - MAX( ALL - 3 ) + + + 10 - 12 * - 13 + - - 24 AS col2
----
193

skipif mysql # not compatible
query I rowsort label-8995
SELECT - MAX ( ALL - 3 ) + + + 10 - 12 * - 13 + - - 24 AS col2
----
193

query I rowsort
SELECT - - ( - + 27 ) * 26 * + 81 AS col0
----
-56862

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT + - 75 * 57 * - MIN( + + 97 )
----
414675

skipif mysql # not compatible
query I rowsort label-8997
SELECT + - 75 * 57 * - MIN ( + + 97 )
----
414675

query I rowsort
SELECT ALL - 70 * 42 AS col2
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT - COUNT( * ) + - - COUNT( * ) * + + COUNT( 3 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8999
SELECT - COUNT ( * ) + - - COUNT ( * ) * + + COUNT ( 3 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9000
SELECT + 76 - + 92 * ( - COUNT( * ) ) + + + 25 AS col2, 9 + - 15 + + - ( - 72 ) DIV + 76 * - MIN( - 36 ) * - 64 DIV 15 + + - 80 - + 43 col0, + - 1
----
193
-129
-1

skipif mysql # not compatible
query III rowsort label-9000
SELECT + 76 - + 92 * ( - COUNT ( * ) ) + + + 25 AS col2, 9 + - 15 + + - ( - 72 ) / + 76 * - MIN ( - 36 ) * - 64 / 15 + + - 80 - + 43 col0, + - 1
----
193
-129
-1

query I rowsort
SELECT DISTINCT + 37 * - - 52
----
1924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9002
SELECT COALESCE ( - 56, COUNT( * ) * - 88 * CAST( NULL AS SIGNED ) + - 41, + ( + + 77 ) ) AS col1, 14 * + 61
----
-56
854

skipif mysql # not compatible
query II rowsort label-9002
SELECT COALESCE ( - 56, COUNT ( * ) * - 88 * CAST ( NULL AS INTEGER ) + - 41, + ( + + 77 ) ) AS col1, 14 * + 61
----
-56
854

query I rowsort
SELECT DISTINCT 21 + - + 84 * - - 59
----
-4935

query I rowsort
SELECT + + 49 + - 33 AS col1
----
16

query I rowsort
SELECT - NULLIF ( 83, - - 79 ) AS col1
----
-83

query I rowsort
SELECT + ( + 65 ) col0
----
65

query I rowsort
SELECT NULLIF ( - 31, + + NULLIF ( + - 24, AVG ( + 51 ) * - - 19 ) ) AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - 29 + 1 * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 29 + 1 * 5
----
NULL

query I rowsort
SELECT ALL + 6 * - 35 + + 16
----
-194

query I rowsort
SELECT + 98 * + 59 AS col2
----
5782

onlyif mysql # aggregate syntax: 
query II rowsort label-9011
SELECT ALL + COUNT( * ), 35 AS col0
----
1
35

skipif mysql # not compatible
query II rowsort label-9011
SELECT ALL + COUNT ( * ), 35 AS col0
----
1
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9012
SELECT + 92 + - 4 DIV - ( - ( + 86 ) )
----
92

skipif mysql # not compatible
query I rowsort label-9012
SELECT + 92 + - 4 / - ( - ( + 86 ) )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9013
SELECT - MAX( ALL - 57 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9013
SELECT - MAX ( ALL - 57 ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 40 * 40 - - 7 AS col2
----
1607

query II rowsort
SELECT + 62 * + 1 AS col1, + 99 * 50 * - 85 col2
----
62
-420750

query I rowsort
SELECT - 3 * + 45 - + 17 * - 58
----
851

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT CASE + - 87 WHEN + COUNT( * ) THEN + + ( COUNT( * ) ) * 3 WHEN + - 59 + + SUM( ( + 49 ) ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9017
SELECT CASE + - 87 WHEN + COUNT ( * ) THEN + + ( COUNT ( * ) ) * 3 WHEN + - 59 + + SUM ( ( + 49 ) ) THEN NULL ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - ( + 57 ) + - ( + 46 ), + 70 + - - 50 - - - 98 AS col2
----
-103
22

query I rowsort
SELECT DISTINCT + NULLIF ( - ( - 9 ), - 30 ) AS col2
----
9

query I rowsort
SELECT - 9 * - + 43 AS col2
----
387

query I rowsort
SELECT COALESCE ( - 8, - 43 + - - 32 )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9022
SELECT + 90 * - 54 + - 68 + - + 3 DIV + 16
----
-4928

skipif mysql # not compatible
query I rowsort label-9022
SELECT + 90 * - 54 + - 68 + - + 3 / + 16
----
-4928

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9023
SELECT DISTINCT + NULLIF ( MAX( + + 72 ), - + CAST( NULL AS DECIMAL ) ), + 63 AS col1
----
72
63

skipif mysql # not compatible
query II rowsort label-9023
SELECT DISTINCT + NULLIF ( MAX ( + + 72 ), - + CAST ( NULL AS REAL ) ), + 63 AS col1
----
72
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9024
SELECT ALL - 4 DIV - - 37 * - + 16
----
0

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL - 4 / - - 37 * - + 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - MAX( DISTINCT + 44 ) * 77 * 89
----
-301532

skipif mysql # not compatible
query I rowsort label-9025
SELECT - MAX ( DISTINCT + 44 ) * 77 * 89
----
-301532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9026
SELECT - CASE + 15 WHEN - + COUNT( * ) THEN NULL WHEN + + CAST( NULL AS SIGNED ) THEN NULL ELSE - SUM( DISTINCT - 78 ) END DIV - - 86 col2, 52
----
0
52

skipif mysql # not compatible
query II rowsort label-9026
SELECT - CASE + 15 WHEN - + COUNT ( * ) THEN NULL WHEN + + CAST ( NULL AS INTEGER ) THEN NULL ELSE - SUM ( DISTINCT - 78 ) END / - - 86 col2, 52
----
0
52

query I rowsort
SELECT - 65 - + - 64 AS col2
----
-1

query III rowsort
SELECT ALL - 6, - 27 AS col1, - 33 * + 98 col0
----
-6
-27
-3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9029
SELECT - NULLIF ( CAST( 62 AS SIGNED ), 9 ) DIV 51 + 48 * - - 0 * - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9029
SELECT - NULLIF ( CAST ( 62 AS INTEGER ), 9 ) / 51 + 48 * - - 0 * - COUNT ( * ) col1
----
-1

query II rowsort
SELECT DISTINCT - 80 + - 76 col1, 7 * - 22
----
-156
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL + ( + - 45 ) + + - 64 + COALESCE ( - - COUNT( * ), COUNT( * ) * + 25 - + + 90 )
----
-108

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL + ( + - 45 ) + + - 64 + COALESCE ( - - COUNT ( * ), COUNT ( * ) * + 25 - + + 90 )
----
-108

query I rowsort
SELECT - - ( 65 ) AS col1
----
65

query I rowsort
SELECT ALL - + 62 + 18
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-9034
SELECT ALL + 89 DIV + - 78 col2
----
-1

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL + 89 / + - 78 col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9035
SELECT - - COUNT( ALL + 95 ) / 15 * + CASE - 31 WHEN - COUNT( * ) / + - 74 + 92 THEN - + 8 + + + SUM( + ( 29 ) ) + 28 * - CASE - COUNT( * ) WHEN + 2 THEN - 33 * - 8 + 7 WHEN - 2 + 70 THEN NULL END + + 49 + - 14 / + 74 * + - 5 * - 31 END * CAST( NULL AS DECIMAL ) + - 24 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT - - COUNT ( ALL + 95 ) / 15 * + CASE - 31 WHEN - COUNT ( * ) / + - 74 + 92 THEN - + 8 + + + SUM ( + ( 29 ) ) + 28 * - CASE - COUNT ( * ) WHEN + 2 THEN - 33 * - 8 + 7 WHEN - 2 + 70 THEN NULL END + + 49 + - 14 / + 74 * + - 5 * - 31 END * CAST ( NULL AS REAL ) + - 24 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT - SUM( ALL 2 ) - 59 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9036
SELECT - SUM ( ALL 2 ) - 59 AS col2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9037
SELECT - 7 - - 87 DIV 96 - 77 * + - COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9037
SELECT - 7 - - 87 / 96 - 77 * + - COUNT ( * ) AS col2
----
70

query I rowsort
SELECT - 20 + - 83 col1
----
-103

query II rowsort
SELECT - 61 AS col2, + COALESCE ( - 59, - 35 ) * + - 12 AS col2
----
-61
708

onlyif mysql # aggregate syntax: 
query II rowsort label-9040
SELECT ALL - ( 77 ) + - 15 + 9, + COUNT( * ) AS col1
----
-83
1

skipif mysql # not compatible
query II rowsort label-9040
SELECT ALL - ( 77 ) + - 15 + 9, + COUNT ( * ) AS col1
----
-83
1

query II rowsort
SELECT DISTINCT + 1 AS col2, + 53
----
1
53

query I rowsort
SELECT DISTINCT - - 44 + - 96 - 88
----
-140

onlyif mysql # DIV for integer division: 
query I rowsort label-9043
SELECT DISTINCT - 29 DIV 39 + + + 7
----
7

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT - 29 / 39 + + + 7
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9044
SELECT ALL + 45 DIV - ( + 19 ) - - + 7 col2
----
5

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL + 45 / - ( + 19 ) - - + 7 col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9045
SELECT - 25 DIV - ( - 19 ) + + 73
----
72

skipif mysql # not compatible
query I rowsort label-9045
SELECT - 25 / - ( - 19 ) + + 73
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9046
SELECT + 15 + - NULLIF ( - CAST( NULL AS SIGNED ), - SUM( + 41 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9046
SELECT + 15 + - NULLIF ( - CAST ( NULL AS INTEGER ), - SUM ( + 41 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9047
SELECT ALL 3 - 37 * 23 + - ( + + CAST( - 0 AS SIGNED ) ) * + COUNT( * )
----
-848

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL 3 - 37 * 23 + - ( + + CAST ( - 0 AS INTEGER ) ) * + COUNT ( * )
----
-848

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9048
SELECT ALL CAST( NULL AS DECIMAL ) / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL CAST ( NULL AS REAL ) / + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT ALL 97 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL 97 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 86 * - 7 + + - 43 AS col0
----
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL 67 * + + 7 * + + COUNT( * )
----
469

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL 67 * + + 7 * + + COUNT ( * )
----
469

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT MAX( - 46 ) + 90
----
44

skipif mysql # not compatible
query I rowsort label-9052
SELECT MAX ( - 46 ) + 90
----
44

query II rowsort
SELECT 93 * - 73, - 5 * - 43 AS col2
----
-6789
215

query I rowsort
SELECT ALL 61 * + 62 * - 14 AS col2
----
-52948

query III rowsort
SELECT DISTINCT - ( + 19 ) AS col1, 94 * ( + 93 ) col2, + 78 col1
----
-19
8742
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ( + COUNT( * ) ) * - 62 * + + CASE + 84 WHEN - ( - 16 ) THEN NULL WHEN + + 9 THEN NULL WHEN 26 THEN - ( - 97 ) + + 95 ELSE NULL END + - ( - + 79 ) * + - 32 + + + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9056
SELECT ( + COUNT ( * ) ) * - 62 * + + CASE + 84 WHEN - ( - 16 ) THEN NULL WHEN + + 9 THEN NULL WHEN 26 THEN - ( - 97 ) + + 95 ELSE NULL END + - ( - + 79 ) * + - 32 + + + 71 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( + 11, 18 ) AS col2
----
11

query I rowsort
SELECT DISTINCT + ( + 92 ) + 57 AS col0
----
149

query I rowsort
SELECT 95 + - 0
----
95

query I rowsort
SELECT ALL 94 + + 86 AS col1
----
180

query II rowsort
SELECT ALL - ( + 88 ) AS col1, + 36 * 99 * + - NULLIF ( - + 51, + 29 ) col0
----
-88
181764

query I rowsort
SELECT 96 * 43 + - 5
----
4123

query II rowsort
SELECT ALL + 27 + 51 AS col2, 52 + - 13 + + + 37
----
78
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9064
SELECT COUNT( + 81 ) + + + 20 * - 37 + + NULLIF ( ( - 44 ), AVG ( CAST( NULL AS SIGNED ) ) ) + 12 * + 68 - - 13 + - 68 + + 9 DIV + + 32 + + 5 * 68 * - - COUNT( ALL + 74 ) + + + COALESCE ( + + NULLIF ( + 8, - + ( + + 9 ) * + COUNT( * ) * + 38 + - COUNT( * ) ), 54 + - 66 ) col1
----
326

skipif mysql # not compatible
query I rowsort label-9064
SELECT COUNT ( + 81 ) + + + 20 * - 37 + + NULLIF ( ( - 44 ), AVG ( CAST ( NULL AS INTEGER ) ) ) + 12 * + 68 - - 13 + - 68 + + 9 / + + 32 + + 5 * 68 * - - COUNT ( ALL + 74 ) + + + COALESCE ( + + NULLIF ( + 8, - + ( + + 9 ) * + COUNT ( * ) * + 38 + - COUNT ( * ) ), 54 + - 66 ) col1
----
326

query I rowsort
SELECT + 61 - 79 + + 17 AS col2
----
-1

query I rowsort
SELECT 21 + + + 18
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT ALL - 35 + - NULLIF ( + COUNT( * ), - + 38 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL - 35 + - NULLIF ( + COUNT ( * ), - + 38 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT - CASE + COUNT( + 13 ) WHEN + 52 + + + 28 / + 2 + - - 40 * + 29 + 84 THEN + SUM( + - 86 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT - CASE + COUNT ( + 13 ) WHEN + 52 + + + 28 / + 2 + - - 40 * + 29 + 84 THEN + SUM ( + - 86 ) END
----
NULL

query I rowsort
SELECT ALL + 66 + + 92 AS col0
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-9070
SELECT ALL + - 71 DIV + 77 + + NULLIF ( + 64, 2 )
----
64

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL + - 71 / + 77 + + NULLIF ( + 64, 2 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9071
SELECT ALL + 0 - + CAST( - 67 AS SIGNED ) + 91 + - 60 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + 0 - + CAST ( - 67 AS INTEGER ) + 91 + - 60 AS col0
----
98

query I rowsort
SELECT ALL NULLIF ( + - 73, - 31 ) AS col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9073
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) DIV + 85 + 56 - 71
----
-15

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) / + 85 + 56 - 71
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT 23 * - MIN( ALL ( 51 ) )
----
-1173

skipif mysql # not compatible
query I rowsort label-9074
SELECT 23 * - MIN ( ALL ( 51 ) )
----
-1173

onlyif mysql # aggregate syntax: 
query II rowsort label-9075
SELECT - 55 AS col1, MIN( DISTINCT - - 78 ) + - - 66 AS col1
----
-55
144

skipif mysql # not compatible
query II rowsort label-9075
SELECT - 55 AS col1, MIN ( DISTINCT - - 78 ) + - - 66 AS col1
----
-55
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT DISTINCT + 21 - MAX( + 25 ) + NULLIF ( - ( + - 20 ), - CASE + + 63 WHEN - + COUNT( * ) THEN + 74 + + 4 END ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT + 21 - MAX ( + 25 ) + NULLIF ( - ( + - 20 ), - CASE + + 63 WHEN - + COUNT ( * ) THEN + 74 + + 4 END ) AS col1
----
16

query II rowsort
SELECT DISTINCT - 10 AS col2, 3 AS col0
----
-10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT 49 * + 39 * + SUM( ALL + - 34 )
----
-64974

skipif mysql # not compatible
query I rowsort label-9078
SELECT 49 * + 39 * + SUM ( ALL + - 34 )
----
-64974

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9079
SELECT ALL + CAST( NULL AS DECIMAL ) * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL + CAST ( NULL AS REAL ) * - 14
----
NULL

query I rowsort
SELECT ALL + 4 * 58 * + 87 * + 48 AS col1
----
968832

onlyif mysql # aggregate syntax: 
query II rowsort label-9081
SELECT DISTINCT - COUNT( * ) AS col2, 69 col2
----
-1
69

skipif mysql # not compatible
query II rowsort label-9081
SELECT DISTINCT - COUNT ( * ) AS col2, 69 col2
----
-1
69

query I rowsort
SELECT ALL 20 + - - 79 + + + 92 * + 8 AS col2
----
835

query I rowsort
SELECT 67 - + 25
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT + 57 * 10 - + + COUNT( + ( - ( ( - - 65 ) ) ) ) * 11 AS col0
----
559

skipif mysql # not compatible
query I rowsort label-9084
SELECT + 57 * 10 - + + COUNT ( + ( - ( ( - - 65 ) ) ) ) * 11 AS col0
----
559

query I rowsort
SELECT ALL + 14 + 41 * + 37 AS col1
----
1531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9086
SELECT ALL CASE 4 WHEN + 93 THEN NULL WHEN + 75 + + 22 THEN - 12 ELSE CASE - + 51 WHEN - COUNT( * ) THEN + + 84 + + CASE COUNT( * ) WHEN - 21 * - CAST( NULL AS DECIMAL ) * - COUNT( * ) - + MIN( ALL + - 0 ) + + AVG ( 50 ) THEN NULL WHEN + - 16 + - 80 THEN - - 87 ELSE NULL END WHEN + - 88 + - - 86 * + 57 THEN + - 28 WHEN - - ( 90 ) + - COUNT( * ) * - 5 * - - NULLIF ( - 39, + 19 ) THEN NULL ELSE 70 + + COUNT( * ) * + - 18 END + CAST( NULL AS SIGNED ) * 43 END * NULLIF ( 44 / 65, NULLIF ( 41, + MAX( 31 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL CASE 4 WHEN + 93 THEN NULL WHEN + 75 + + 22 THEN - 12 ELSE CASE - + 51 WHEN - COUNT ( * ) THEN + + 84 + + CASE COUNT ( * ) WHEN - 21 * - CAST ( NULL AS REAL ) * - COUNT ( * ) - + MIN ( ALL + - 0 ) + + AVG ( 50 ) THEN NULL WHEN + - 16 + - 80 THEN - - 87 ELSE NULL END WHEN + - 88 + - - 86 * + 57 THEN + - 28 WHEN - - ( 90 ) + - COUNT ( * ) * - 5 * - - NULLIF ( - 39, + 19 ) THEN NULL ELSE 70 + + COUNT ( * ) * + - 18 END + CAST ( NULL AS INTEGER ) * 43 END * NULLIF ( 44 / 65, NULLIF ( 41, + MAX ( 31 ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9087
SELECT - NULLIF ( + NULLIF ( + 82, - 68 * + COUNT( * ) * + 79 + - CAST( - + 81 AS SIGNED ) * CASE + - 63 WHEN - 42 THEN NULL ELSE - 31 DIV + ( + 73 ) + - + ( + 23 ) END + + 76 + 2 - 58 - + ( 82 ) ), - 25 DIV - 2 ) DIV 21 DIV - 43 + 38
----
38

skipif mysql # not compatible
query I rowsort label-9087
SELECT - NULLIF ( + NULLIF ( + 82, - 68 * + COUNT ( * ) * + 79 + - CAST ( - + 81 AS INTEGER ) * CASE + - 63 WHEN - 42 THEN NULL ELSE - 31 / + ( + 73 ) + - + ( + 23 ) END + + 76 + 2 - 58 - + ( 82 ) ), - 25 / - 2 ) / 21 / - 43 + 38
----
38

query I rowsort
SELECT 79 - 82 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9089
SELECT + 75 DIV + + 57 DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9089
SELECT + 75 / + + 57 / + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT - NULLIF ( 49, - CAST( - 25 AS SIGNED ) - - + 83 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-9090
SELECT - NULLIF ( 49, - CAST ( - 25 AS INTEGER ) - - + 83 ) AS col2
----
-49

query I rowsort
SELECT + 59 + - + 20
----
39

query I rowsort
SELECT DISTINCT 68 * + 94 - + - 66 * 10
----
7052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9093
SELECT DISTINCT CAST( + 68 AS SIGNED ) col1
----
68

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT CAST ( + 68 AS INTEGER ) col1
----
68

query I rowsort
SELECT DISTINCT 95 - + + 57 + + 81 AS col0
----
119

query II rowsort
SELECT DISTINCT - COALESCE ( + 13, + 12 ), - 69 AS col0
----
-13
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9096
SELECT - CASE 75 WHEN + + 58 * - + 0 THEN 68 + + MIN( - 94 ) * - - 34 / 30 * 61 * - COALESCE ( + 29, - CAST( - + COUNT( * ) AS SIGNED ) + - 68 + + + CAST( NULL AS SIGNED ) + - ( - CAST( NULL AS SIGNED ) ), + - COALESCE ( 3, + 70 ) ) WHEN + 72 THEN 60 END * + 94 * + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9096
SELECT - CASE 75 WHEN + + 58 * - + 0 THEN 68 + + MIN ( - 94 ) * - - 34 / 30 * 61 * - COALESCE ( + 29, - CAST ( - + COUNT ( * ) AS INTEGER ) + - 68 + + + CAST ( NULL AS INTEGER ) + - ( - CAST ( NULL AS INTEGER ) ), + - COALESCE ( 3, + 70 ) ) WHEN + 72 THEN 60 END * + 94 * + + 64 AS col2
----
NULL

query I rowsort
SELECT + 91 - 58
----
33

query II rowsort
SELECT 42 + - + 54 AS col0, - ( + ( + 26 ) ) AS col0
----
-12
-26

query I rowsort
SELECT - 33 * - 47
----
1551

query I rowsort
SELECT DISTINCT 57 * + + 49 AS col1
----
2793

query I rowsort
SELECT - 68 * + 59 * + 60 AS col1
----
-240720

query I rowsort
SELECT ALL NULLIF ( - + 26, - - 83 ) col2
----
-26

query I rowsort
SELECT - 86 - - 61
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9104
SELECT ALL AVG ( ALL - - CAST( NULL AS SIGNED ) ) AS col1, + NULLIF ( COUNT( * ), + COALESCE ( COUNT( * ), + COUNT( * ) ) ) * + AVG ( - 41 ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9104
SELECT ALL AVG ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1, + NULLIF ( COUNT ( * ), + COALESCE ( COUNT ( * ), + COUNT ( * ) ) ) * + AVG ( - 41 ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9105
SELECT + 41 DIV + COALESCE ( + - COUNT( * ), - COUNT( * ) * - 57 ) + + 69 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-9105
SELECT + 41 / + COALESCE ( + - COUNT ( * ), - COUNT ( * ) * - 57 ) + + 69 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT COUNT( * ) * + - CASE COUNT( DISTINCT + 32 ) WHEN + 14 * 6 THEN + ( - 66 ) ELSE NULL END * + 78 + + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT COUNT ( * ) * + - CASE COUNT ( DISTINCT + 32 ) WHEN + 14 * 6 THEN + ( - 66 ) ELSE NULL END * + 78 + + 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT NULLIF ( MAX( 17 ), - + 98 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9107
SELECT NULLIF ( MAX ( 17 ), - + 98 ) AS col1
----
17

query I rowsort
SELECT ALL 66 * 85 + + 82
----
5692

onlyif mysql # DIV for integer division: 
query I rowsort label-9109
SELECT + 78 DIV 45 * - + 93 + + + 13
----
-80

skipif mysql # not compatible
query I rowsort label-9109
SELECT + 78 / 45 * - + 93 + + + 13
----
-80

query I rowsort
SELECT - 91 * - 79 * - 62 * + 7 - + 57 AS col0
----
-3120083

query I rowsort
SELECT ALL + ( 20 ) AS col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9112
SELECT - ( 28 ) * + 46 * 85 + + 69 DIV 90 + - 49 - - 17 AS col1
----
-109512

skipif mysql # not compatible
query I rowsort label-9112
SELECT - ( 28 ) * + 46 * 85 + + 69 / 90 + - 49 - - 17 AS col1
----
-109512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9113
SELECT - COUNT( * ) + 19 DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-9113
SELECT - COUNT ( * ) + 19 / - 35
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT 45 * + - 72 - + 27 + + 54 + 47 * - + COALESCE ( + 18, 50, - 76 * - 40 ) + - 89 + - - ( + - SUM( - + 49 ) ) + ( - 54 ) - - COUNT( * )
----
-4152

skipif mysql # not compatible
query I rowsort label-9114
SELECT 45 * + - 72 - + 27 + + 54 + 47 * - + COALESCE ( + 18, 50, - 76 * - 40 ) + - 89 + - - ( + - SUM ( - + 49 ) ) + ( - 54 ) - - COUNT ( * )
----
-4152

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT NULLIF ( - ( + COUNT( * ) ), 1 / - 20 * 52 + + - 50 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9115
SELECT NULLIF ( - ( + COUNT ( * ) ), 1 / - 20 * 52 + + - 50 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL 34 * ( - MAX( ALL 33 ) ) + + COUNT( DISTINCT 74 ) * COUNT( * )
----
-1121

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL 34 * ( - MAX ( ALL 33 ) ) + + COUNT ( DISTINCT 74 ) * COUNT ( * )
----
-1121

onlyif mysql # DIV for integer division: 
query II rowsort label-9117
SELECT ALL ( + + 63 ) * - + 41 * - - 69 + + - 11, + 86 * 24 DIV + - 72 col0
----
-178238
-28

skipif mysql # not compatible
query II rowsort label-9117
SELECT ALL ( + + 63 ) * - + 41 * - - 69 + + - 11, + 86 * 24 / + - 72 col0
----
-178238
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9118
SELECT DISTINCT 71 * + + 46 + 47 * COALESCE ( 13, 56 + - - 87 + CASE + 47 WHEN - CAST( + 54 AS SIGNED ) THEN SUM( DISTINCT + - 62 ) END, + 59 + - + NULLIF ( CASE 16 WHEN + - COUNT( * ) THEN NULL WHEN + COUNT( * ) THEN + - MIN( - 43 ) / + - MAX( + 4 ) ELSE - ( + CAST( - + 71 AS SIGNED ) ) END, - - 39 + - 3 ) + - 39 + - COALESCE ( 50, 10, - + 20 ) - - - 52 * + COUNT( * ) ) / + CAST( NULL AS SIGNED ) * + AVG ( ALL 23 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT 71 * + + 46 + 47 * COALESCE ( 13, 56 + - - 87 + CASE + 47 WHEN - CAST ( + 54 AS INTEGER ) THEN SUM ( DISTINCT + - 62 ) END, + 59 + - + NULLIF ( CASE 16 WHEN + - COUNT ( * ) THEN NULL WHEN + COUNT ( * ) THEN + - MIN ( - 43 ) / + - MAX ( + 4 ) ELSE - ( + CAST ( - + 71 AS INTEGER ) ) END, - - 39 + - 3 ) + - 39 + - COALESCE ( 50, 10, - + 20 ) - - - 52 * + COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) * + AVG ( ALL 23 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9119
SELECT ALL - 83 * - 99 + - 15 + + 81 DIV - 73
----
8201

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL - 83 * - 99 + - 15 + + 81 / - 73
----
8201

query I rowsort
SELECT ALL + 0 * - 90 + - - 61 col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9121
SELECT + + CAST( + COUNT( ALL + 98 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9121
SELECT + + CAST ( + COUNT ( ALL + 98 ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT - 60 + + 66 * - 23 * - 18 AS col0
----
27264

query I rowsort
SELECT + + 15 * + + 19 AS col2
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT COALESCE ( - + 88, COUNT( * ) ) * - 8 + + 71 * + + 66 + - 13 + 18 AS col0
----
5395

skipif mysql # not compatible
query I rowsort label-9124
SELECT COALESCE ( - + 88, COUNT ( * ) ) * - 8 + + 71 * + + 66 + - 13 + 18 AS col0
----
5395

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT - 0 * + 1 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9125
SELECT - 0 * + 1 + - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9126
SELECT ALL + + 74 * COUNT( * ) DIV - 49 * + + COUNT( * ) + + 80 - - COUNT( DISTINCT - 83 )
----
80

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL + + 74 * COUNT ( * ) / - 49 * + + COUNT ( * ) + + 80 - - COUNT ( DISTINCT - 83 )
----
80

query I rowsort
SELECT DISTINCT COALESCE ( 32, - 53 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT + + 38 + 51 * - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-9128
SELECT + + 38 + 51 * - COUNT ( * )
----
-13

query I rowsort
SELECT DISTINCT - 53 - + - 41 * - 34 AS col1
----
-1447

query I rowsort
SELECT + + 89 + + + 73 * + + 78 + - 1
----
5782

query I rowsort
SELECT + + ( - - 17 ) * + 42
----
714

query I rowsort
SELECT + 89 + - 27
----
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9133
SELECT + 59 + + - 68 DIV - 70 - + COALESCE ( - - NULLIF ( - 60, - 62 * + + 8 * 20 * + NULLIF ( - 69, 60 ) * 77 + 30 + - + 48 ), 48 + CAST( 31 AS SIGNED ) )
----
119

skipif mysql # not compatible
query I rowsort label-9133
SELECT + 59 + + - 68 / - 70 - + COALESCE ( - - NULLIF ( - 60, - 62 * + + 8 * 20 * + NULLIF ( - 69, 60 ) * 77 + 30 + - + 48 ), 48 + CAST ( 31 AS INTEGER ) )
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9134
SELECT + + COUNT( * ) DIV 40 * 77
----
0

skipif mysql # not compatible
query I rowsort label-9134
SELECT + + COUNT ( * ) / 40 * 77
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9135
SELECT ALL COUNT( * ), - NULLIF ( - - 13, - 19 * 44 ) AS col1
----
1
-13

skipif mysql # not compatible
query II rowsort label-9135
SELECT ALL COUNT ( * ), - NULLIF ( - - 13, - 19 * 44 ) AS col1
----
1
-13

query I rowsort
SELECT + 92 * - 26
----
-2392

query I rowsort
SELECT + 10 + - - 89
----
99

query II rowsort
SELECT DISTINCT 8 AS col2, - 32 - - - 77
----
8
-109

query I rowsort
SELECT DISTINCT 9 + + 66
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9140
SELECT - NULLIF ( + 92, 28 * 37 * - + 32 - + MIN( DISTINCT COALESCE ( + 94, - + CAST( - - 89 AS SIGNED ) ) ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-9140
SELECT - NULLIF ( + 92, 28 * 37 * - + 32 - + MIN ( DISTINCT COALESCE ( + 94, - + CAST ( - - 89 AS INTEGER ) ) ) ) AS col2
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-9141
SELECT 67 AS col2, + 91 DIV + 92 * 36 AS col2
----
67
0

skipif mysql # not compatible
query II rowsort label-9141
SELECT 67 AS col2, + 91 / + 92 * 36 AS col2
----
67
0

query I rowsort
SELECT ALL 44 + + 69 AS col1
----
113

query I rowsort
SELECT DISTINCT 3 * + - 86
----
-258

query I rowsort
SELECT - 15 * + 44
----
-660

query I rowsort
SELECT + 26 * 53 AS col0
----
1378

query I rowsort
SELECT - 32 + - 23 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL - 41 * COUNT( * ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL - 41 * COUNT ( * ) AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT + CAST( + ( - 62 ) AS SIGNED ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-9148
SELECT + CAST ( + ( - 62 ) AS INTEGER ) AS col1
----
-62

query I rowsort
SELECT - 8 + 21 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9150
SELECT + CAST( - + COALESCE ( - 2, + COUNT( * ) ) AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9150
SELECT + CAST ( - + COALESCE ( - 2, + COUNT ( * ) ) AS INTEGER ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9151
SELECT + COUNT( + 13 ) DIV + - 46
----
0

skipif mysql # not compatible
query I rowsort label-9151
SELECT + COUNT ( + 13 ) / + - 46
----
0

query I rowsort
SELECT ALL 2 * - 56 AS col0
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9153
SELECT ALL + 56 DIV 81 + + COUNT( * ) + - MIN( 14 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL + 56 / 81 + + COUNT ( * ) + - MIN ( 14 ) AS col2
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-9154
SELECT DISTINCT - 72 DIV - 46 + + 66 col0, 35
----
67
35

skipif mysql # not compatible
query II rowsort label-9154
SELECT DISTINCT - 72 / - 46 + + 66 col0, 35
----
67
35

query I rowsort
SELECT + - 0 * 81
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT ALL - - 15 DIV + - ( - 32 ) + + + 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL - - 15 / + - ( - 32 ) + + + 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT - COUNT( * ) - - - ( + 72 )
----
-73

skipif mysql # not compatible
query I rowsort label-9157
SELECT - COUNT ( * ) - - - ( + 72 )
----
-73

query I rowsort
SELECT - 18 * - 64
----
1152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9159
SELECT ALL + + COUNT( * ) * + MIN( ALL + 99 ) * + 59 + + + 97 DIV 99 + - - 41 * 6 * - + COUNT( * ) + - - CASE 66 WHEN - 49 THEN + + ( 60 ) - - 96 ELSE + + SUM( 56 ) END + 29 col2
----
5680

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL + + COUNT ( * ) * + MIN ( ALL + 99 ) * + 59 + + + 97 / 99 + - - 41 * 6 * - + COUNT ( * ) + - - CASE 66 WHEN - 49 THEN + + ( 60 ) - - 96 ELSE + + SUM ( 56 ) END + 29 col2
----
5680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT DISTINCT + CAST( - 33 AS SIGNED ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT + CAST ( - 33 AS INTEGER ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - CASE 71 WHEN - + 35 * 18 THEN NULL WHEN - - 30 THEN + 64 + 16 + 47 + 76 ELSE NULL END * COUNT( * ) + - + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT - CASE 71 WHEN - + 35 * 18 THEN NULL WHEN - - 30 THEN + 64 + 16 + 47 + 76 ELSE NULL END * COUNT ( * ) + - + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ALL + + CASE - + 8 WHEN - - COUNT( * ) THEN - 49 WHEN 95 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL + + CASE - + 8 WHEN - - COUNT ( * ) THEN - 49 WHEN 95 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9163
SELECT - - ( COUNT( * ) ) - - 35, + 23 * + + CASE + 82 WHEN COUNT( * ) THEN NULL WHEN - 69 THEN - - COUNT( * ) * 51 END AS col2
----
36
NULL

skipif mysql # not compatible
query II rowsort label-9163
SELECT - - ( COUNT ( * ) ) - - 35, + 23 * + + CASE + 82 WHEN COUNT ( * ) THEN NULL WHEN - 69 THEN - - COUNT ( * ) * 51 END AS col2
----
36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT ALL - 4 * - COALESCE ( 52, - COUNT( * ) )
----
208

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL - 4 * - COALESCE ( 52, - COUNT ( * ) )
----
208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9165
SELECT ALL - - ( ( + 13 ) ) * - - 7 DIV - 99 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL - - ( ( + 13 ) ) * - - 7 / - 99 * + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9166
SELECT DISTINCT + MAX( - ( - CAST( NULL AS DECIMAL ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT + MAX ( - ( - CAST ( NULL AS REAL ) ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 4 * + 40 AS col1
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9168
SELECT - 5 AS col2, COUNT( * ) * + COUNT( ALL + - 92 ) * + 47 * COUNT( * ) + + 81 / + - CAST( NULL AS SIGNED ) col0
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-9168
SELECT - 5 AS col2, COUNT ( * ) * + COUNT ( ALL + - 92 ) * + 47 * COUNT ( * ) + + 81 / + - CAST ( NULL AS INTEGER ) col0
----
-5
NULL

query II rowsort
SELECT 58 AS col2, 19
----
58
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9170
SELECT ALL + 54 DIV + - 18 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL + 54 / + - 18 AS col2
----
-3

query I rowsort
SELECT ALL + 45 + + 63
----
108

query II rowsort
SELECT - 13 AS col2, 36 AS col2
----
-13
36

query I rowsort
SELECT 87 * - ( + 10 )
----
-870

query I rowsort
SELECT ALL 44 + + + ( 23 ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9175
SELECT DISTINCT 62 * + - CASE + 51 WHEN - + COUNT( DISTINCT - NULLIF ( 16, - + 86 + + 60 - + ( 14 ) + - 37 * 83 * - 57 ) ) * + MAX( - NULLIF ( + CAST( + 26 AS SIGNED ), - 6 ) ) + - COUNT( * ) THEN + + 58 * - + 29 * COUNT( * ) * COALESCE ( COUNT( * ), 75 ) + - 34 / 54 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT 62 * + - CASE + 51 WHEN - + COUNT ( DISTINCT - NULLIF ( 16, - + 86 + + 60 - + ( 14 ) + - 37 * 83 * - 57 ) ) * + MAX ( - NULLIF ( + CAST ( + 26 AS INTEGER ), - 6 ) ) + - COUNT ( * ) THEN + + 58 * - + 29 * COUNT ( * ) * COALESCE ( COUNT ( * ), 75 ) + - 34 / 54 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT ( - 33 ) * - - COUNT( 75 ) + - 77 AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-9176
SELECT ( - 33 ) * - - COUNT ( 75 ) + - 77 AS col0
----
-110

query II rowsort
SELECT ALL 24, + ( - + 45 ) + - 93 + + 84 col0
----
24
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT 12 * + CAST( + 9 AS SIGNED ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-9178
SELECT 12 * + CAST ( + 9 AS INTEGER ) AS col0
----
108

query I rowsort
SELECT ( - + 63 ) - - 32 AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9180
SELECT COUNT( * ) + SUM( + CAST( NULL AS SIGNED ) ) * + 93 + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT COUNT ( * ) + SUM ( + CAST ( NULL AS INTEGER ) ) * + 93 + - 43
----
NULL

query I rowsort
SELECT ALL - ( 71 ) * 9
----
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT ALL 31 - SUM( DISTINCT + ( 88 ) ) + 48 * - + ( - - 14 ) + + 59
----
-670

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL 31 - SUM ( DISTINCT + ( 88 ) ) + 48 * - + ( - - 14 ) + + 59
----
-670

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT MAX( + 89 ) * - - 49 - + + 26 + - 7 + + + MAX( + - 61 ) AS col2
----
4267

skipif mysql # not compatible
query I rowsort label-9183
SELECT MAX ( + 89 ) * - - 49 - + + 26 + - 7 + + + MAX ( + - 61 ) AS col2
----
4267

query I rowsort
SELECT 62 * - 26 - - 6
----
-1606

query I rowsort
SELECT ALL + 43 * - - 91
----
3913

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT + 17 / AVG ( DISTINCT 40 ) + CASE 30 WHEN - 7 / + 53 * + MAX( ALL - 82 ) / - 21 THEN + 44 - + + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT + 17 / AVG ( DISTINCT 40 ) + CASE 30 WHEN - 7 / + 53 * + MAX ( ALL - 82 ) / - 21 THEN + 44 - + + COUNT ( * ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT + 29 AS col2, + 71 AS col1
----
29
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT DISTINCT - - NULLIF ( + 31, - NULLIF ( + 85, 8 ) + - AVG ( 40 ) / - COUNT( * ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT - - NULLIF ( + 31, - NULLIF ( + 85, 8 ) + - AVG ( 40 ) / - COUNT ( * ) ) AS col0
----
31

query II rowsort
SELECT DISTINCT - - 95 AS col2, - 52 col2
----
95
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT DISTINCT 34 - + + 2 * - 33 * + - COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT 34 - + + 2 * - 33 * + - COUNT ( * ) AS col1
----
-32

query I rowsort
SELECT DISTINCT + 49 * - 71 * + ( + 32 ) * - + 87
----
9685536

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - COUNT( * ) * 7 + + 26
----
19

skipif mysql # not compatible
query I rowsort label-9192
SELECT - COUNT ( * ) * 7 + + 26
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9193
SELECT ALL + 27 / - CASE - MIN( CAST( NULL AS DECIMAL ) ) WHEN - + 63 THEN NULL WHEN COALESCE ( - - 66, ( + + CAST( + - AVG ( - 58 ) AS DECIMAL ) ), + 55 / + 49, 46 * CASE MIN( - - 31 ) WHEN - 13 + - 14 THEN NULL ELSE + COUNT( * ) * - - ( - NULLIF ( 3, + - 93 ) ) - + 66 END + + COALESCE ( - + 60, + COUNT( * ) / - - 50 ) + + 22 ) * - COUNT( * ) * - 12 THEN - + 26 ELSE NULL END * + + ( + + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL + 27 / - CASE - MIN ( CAST ( NULL AS REAL ) ) WHEN - + 63 THEN NULL WHEN COALESCE ( - - 66, ( + + CAST ( + - AVG ( - 58 ) AS REAL ) ), + 55 / + 49, 46 * CASE MIN ( - - 31 ) WHEN - 13 + - 14 THEN NULL ELSE + COUNT ( * ) * - - ( - NULLIF ( 3, + - 93 ) ) - + 66 END + + COALESCE ( - + 60, + COUNT ( * ) / - - 50 ) + + 22 ) * - COUNT ( * ) * - 12 THEN - + 26 ELSE NULL END * + + ( + + 6 )
----
NULL

query I rowsort
SELECT 64 * - - 34 AS col2
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT + 96 + COUNT( DISTINCT - ( + ( - + COALESCE ( 44, - + 37 ) ) ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-9195
SELECT + 96 + COUNT ( DISTINCT - ( + ( - + COALESCE ( 44, - + 37 ) ) ) ) AS col2
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9196
SELECT - 18 DIV - ( - 1 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-9196
SELECT - 18 / - ( - 1 ) AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT ALL + 67 DIV 12 + - 16 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL + 67 / 12 + - 16 AS col1
----
-11

query I rowsort
SELECT 44 + 97 * + + 89
----
8677

query II rowsort
SELECT + + 59 AS col2, 36
----
59
36

query II rowsort
SELECT + ( + + 81 ) * + 77 + + - 39 AS col1, 20 AS col0
----
6198
20

query II rowsort
SELECT - 98, 22 AS col0
----
-98
22

query I rowsort
SELECT + ( 74 ) col2
----
74

query I rowsort
SELECT ALL + - 20 + 10 AS col0
----
-10

query I rowsort
SELECT ALL - - 58 * + 60
----
3480

onlyif mysql # DIV for integer division: 
query II rowsort label-9205
SELECT DISTINCT 93 AS col2, + 75 DIV - 20 AS col1
----
93
-3

skipif mysql # not compatible
query II rowsort label-9205
SELECT DISTINCT 93 AS col2, + 75 / - 20 AS col1
----
93
-3

query I rowsort
SELECT DISTINCT + 31 + 37 + + - 50
----
18

query I rowsort
SELECT ALL - 85 + 21
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT ALL - 13 + - 38 + - MAX( DISTINCT - ( - 29 ) ) * + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL - 13 + - 38 + - MAX ( DISTINCT - ( - 29 ) ) * + COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ALL + 58 * CASE - + 91 WHEN + - 94 THEN 25 WHEN + COALESCE ( - AVG ( DISTINCT + 85 ), - 59 * + 1 * ( + 49 ), + - 17 * MAX( DISTINCT - 86 ) * - 62 + + 45 * + - 26 + - - 67 + + 65 - - + ( - - SUM( + 24 ) ) + + MIN( + 14 ) ) + MIN( DISTINCT + + 99 ) / - 1 - + 94 THEN 66 ELSE NULL END / + - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL + 58 * CASE - + 91 WHEN + - 94 THEN 25 WHEN + COALESCE ( - AVG ( DISTINCT + 85 ), - 59 * + 1 * ( + 49 ), + - 17 * MAX ( DISTINCT - 86 ) * - 62 + + 45 * + - 26 + - - 67 + + 65 - - + ( - - SUM ( + 24 ) ) + + MIN ( + 14 ) ) + MIN ( DISTINCT + + 99 ) / - 1 - + 94 THEN 66 ELSE NULL END / + - 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9210
SELECT 58 * - COUNT( * ) DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-9210
SELECT 58 * - COUNT ( * ) / + 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9211
SELECT ALL - 86 + + 3 * 55 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL - 86 + + 3 * 55 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT ALL MIN( ALL + + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL MIN ( ALL + + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT ALL + 50 + ( 57 ) * 13 col1
----
791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9214
SELECT ALL 91 + - 60 + MIN( DISTINCT + ( + + 64 ) ) * + 27 * + 22 + - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL 91 + - 60 + MIN ( DISTINCT + ( + + 64 ) ) * + 27 * + 22 + - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 93 + 46
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL MAX( ALL - 12 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL MAX ( ALL - 12 ) AS col2
----
-12

query I rowsort
SELECT DISTINCT - 69 + - 14 * + 56 * 0 AS col0
----
-69

query I rowsort
SELECT 12 + + 6 + ( 85 ) * + + 5 col2
----
443

query I rowsort
SELECT DISTINCT + 96 * - 43 AS col1
----
-4128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9220
SELECT 86 * + CAST( 71 AS SIGNED ) * - CAST( NULL AS SIGNED ) / - - ( - 75 ) - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT 86 * + CAST ( 71 AS INTEGER ) * - CAST ( NULL AS INTEGER ) / - - ( - 75 ) - + 91
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9221
SELECT MAX( DISTINCT + 57 ) DIV - 75 * - - 10
----
0

skipif mysql # not compatible
query I rowsort label-9221
SELECT MAX ( DISTINCT + 57 ) / - 75 * - - 10
----
0

query I rowsort
SELECT ALL ( 35 ) * + + 38
----
1330

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL COUNT( * ) * 18 * - 99 * + 38 AS col1
----
-67716

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL COUNT ( * ) * 18 * - 99 * + 38 AS col1
----
-67716

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT COUNT( * ) + + + 33 - 28 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9224
SELECT COUNT ( * ) + + + 33 - 28 AS col0
----
6

query I rowsort
SELECT ALL - 28 * - 93 * - 69
----
-179676

onlyif mysql # aggregate syntax: 
query II rowsort label-9226
SELECT ALL - - COUNT( * ) * + 10 - 51 - 91 + 84 * COUNT( * ) + 39, - COUNT( * ) AS col0
----
-9
-1

skipif mysql # not compatible
query II rowsort label-9226
SELECT ALL - - COUNT ( * ) * + 10 - 51 - 91 + 84 * COUNT ( * ) + 39, - COUNT ( * ) AS col0
----
-9
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9227
SELECT MIN( - 81 ) AS col2, + 70 * - - 84 DIV + COUNT( * )
----
-81
5880

skipif mysql # not compatible
query II rowsort label-9227
SELECT MIN ( - 81 ) AS col2, + 70 * - - 84 / + COUNT ( * )
----
-81
5880

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT NULLIF ( - COUNT( * ), 51 * 57 * - COUNT( * ) + COUNT( * ) * - - ( + 69 ) * - - 71 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9228
SELECT NULLIF ( - COUNT ( * ), 51 * 57 * - COUNT ( * ) + COUNT ( * ) * - - ( + 69 ) * - - 71 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT DISTINCT - CASE - 86 WHEN + 21 THEN NULL WHEN + COUNT( * ) + 5 THEN NULL ELSE + COUNT( * ) * + 75 + - - SUM( 59 ) END AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT - CASE - 86 WHEN + 21 THEN NULL WHEN + COUNT ( * ) + 5 THEN NULL ELSE + COUNT ( * ) * + 75 + - - SUM ( 59 ) END AS col1
----
-134

query I rowsort
SELECT - 19 * + + 36 AS col1
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT + MAX( - - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-9231
SELECT + MAX ( - - 86 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9232
SELECT + CAST( + - 8 AS SIGNED ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-9232
SELECT + CAST ( + - 8 AS INTEGER ) AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9233
SELECT + - 32 - + ( + NULLIF ( + 21, CASE + ( 19 ) WHEN + 26 + + + ( 70 ) + + 63 + + 41 * - NULLIF ( + CAST( NULL AS SIGNED ), - 79 ) + - COUNT( + 64 ) THEN + NULLIF ( + + 25, + - 93 * + + 46 + + 46 + - MIN( DISTINCT 82 ) / COALESCE ( COUNT( * ), + + AVG ( + ( - 8 ) ) ) / - - 97 * - NULLIF ( + 27, - 92 ) + + 67 ) / + - 58 ELSE - 4 END ) )
----
-53

skipif mysql # not compatible
query I rowsort label-9233
SELECT + - 32 - + ( + NULLIF ( + 21, CASE + ( 19 ) WHEN + 26 + + + ( 70 ) + + 63 + + 41 * - NULLIF ( + CAST ( NULL AS INTEGER ), - 79 ) + - COUNT ( + 64 ) THEN + NULLIF ( + + 25, + - 93 * + + 46 + + 46 + - MIN ( DISTINCT 82 ) / COALESCE ( COUNT ( * ), + + AVG ( + ( - 8 ) ) ) / - - 97 * - NULLIF ( + 27, - 92 ) + + 67 ) / + - 58 ELSE - 4 END ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT + - COUNT( * ) * + 24 + 45 * + 76 col2
----
3396

skipif mysql # not compatible
query I rowsort label-9234
SELECT + - COUNT ( * ) * + 24 + 45 * + 76 col2
----
3396

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL + NULLIF ( 65, - + 29 - COUNT( * ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL + NULLIF ( 65, - + 29 - COUNT ( * ) ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9236
SELECT ALL + COUNT( * ) * - CAST( - AVG ( + + 43 ) AS SIGNED ) + 24
----
67

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL + COUNT ( * ) * - CAST ( - AVG ( + + 43 ) AS INTEGER ) + 24
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT ALL 93 * - 51 + - CAST( NULL AS SIGNED ) * - - NULLIF ( - 22, + CAST( NULL AS SIGNED ) + 41 + + + 1 + - + AVG ( 20 ) * 34 * - + 13 * 43 * + - ( + 61 ) * 1 * 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL 93 * - 51 + - CAST ( NULL AS INTEGER ) * - - NULLIF ( - 22, + CAST ( NULL AS INTEGER ) + 41 + + + 1 + - + AVG ( 20 ) * 34 * - + 13 * 43 * + - ( + 61 ) * 1 * 25 )
----
NULL

query I rowsort
SELECT DISTINCT + 44 + + 64
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-9239
SELECT COUNT( * ), 77 + - 61 AS col0
----
1
16

skipif mysql # not compatible
query II rowsort label-9239
SELECT COUNT ( * ), 77 + - 61 AS col0
----
1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL MAX( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL MAX ( 61 )
----
61

query I rowsort
SELECT ALL - 82 + 84 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL + COUNT( * ) * - - 35 col1
----
35

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + COUNT ( * ) * - - 35 col1
----
35

query II rowsort
SELECT - 67 col0, 5
----
-67
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT - ( 32 ) * + - CASE - - 99 WHEN - 46 THEN NULL WHEN - 17 THEN - 44 ELSE NULL END + - ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT - ( 32 ) * + - CASE - - 99 WHEN - 46 THEN NULL WHEN - 17 THEN - 44 ELSE NULL END + - ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT DISTINCT + 9 * - MAX( ALL 63 ) AS col1
----
-567

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT + 9 * - MAX ( ALL 63 ) AS col1
----
-567

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9246
SELECT 26 AS col1, CAST( NULL AS SIGNED ) * + 38 AS col0
----
26
NULL

skipif mysql # not compatible
query II rowsort label-9246
SELECT 26 AS col1, CAST ( NULL AS INTEGER ) * + 38 AS col0
----
26
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9247
SELECT ALL + 19 - - COUNT( * ) - + 30 * - SUM( + + 68 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL + 19 - - COUNT ( * ) - + 30 * - SUM ( + + 68 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( + - 73 ) + + - 47
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT - COUNT( * ) + + + CASE + + 28 WHEN + MAX( + 6 ) * + 83 + + 8 + - 28 THEN + + 8 ELSE 14 * + COUNT( * ) * + - COUNT( * ) END
----
-15

skipif mysql # not compatible
query I rowsort label-9249
SELECT - COUNT ( * ) + + + CASE + + 28 WHEN + MAX ( + 6 ) * + 83 + + 8 + - 28 THEN + + 8 ELSE 14 * + COUNT ( * ) * + - COUNT ( * ) END
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT - MAX( - 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-9250
SELECT - MAX ( - 57 ) AS col1
----
57

query I rowsort
SELECT ALL ( - - 48 ) col0
----
48

query I rowsort
SELECT - - 88 + + 76
----
164

query I rowsort
SELECT - 37 + - COALESCE ( + - CASE - + 70 WHEN 89 - + 11 + - 6 * - 93 * 42 * - 54 THEN - 76 WHEN + 22 THEN - 76 END, - - 41 * - ( + 65 ) * + 4 - 3 + 89, + + 73 ) + + 64
----
10601

query I rowsort
SELECT DISTINCT + 60 * - 67 AS col1
----
-4020

onlyif mysql # DIV for integer division: 
query I rowsort label-9255
SELECT DISTINCT - + 4 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT - + 4 / 25
----
0

query I rowsort
SELECT - 95 * + 75 + + 62
----
-7063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9257
SELECT ALL + 25 * CASE 11 WHEN - COUNT( * ) - COUNT( * ) THEN - 40 WHEN + 47 THEN + - 66 WHEN + 65 THEN NULL ELSE NULL END * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL + 25 * CASE 11 WHEN - COUNT ( * ) - COUNT ( * ) THEN - 40 WHEN + 47 THEN + - 66 WHEN + 65 THEN NULL ELSE NULL END * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9258
SELECT + 70 DIV - 95 + + 81 DIV 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9258
SELECT + 70 / - 95 + + 81 / 78 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT - 62 * + 80 - - 57 col1, COALESCE ( + 34, + 35 ) * - COUNT( * ) * - 93 + 12
----
-4903
3174

skipif mysql # not compatible
query II rowsort label-9259
SELECT - 62 * + 80 - - 57 col1, COALESCE ( + 34, + 35 ) * - COUNT ( * ) * - 93 + 12
----
-4903
3174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9260
SELECT - - 86 + - + ( + ( 68 ) ) * - - 38 * + 33 * COUNT( * ) * + 60 - 97 DIV 84 * 1
----
-5116235

skipif mysql # not compatible
query I rowsort label-9260
SELECT - - 86 + - + ( + ( 68 ) ) * - - 38 * + 33 * COUNT ( * ) * + 60 - 97 / 84 * 1
----
-5116235

query II rowsort
SELECT ALL + - 84 AS col0, 98 AS col1
----
-84
98

query II rowsort
SELECT + 99, 71 + - + 95 AS col1
----
99
-24

query I rowsort
SELECT ALL 53 * + + 95 * + 4 + + + 18 col2
----
20158

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL 91 * - - 20 + - COUNT( ALL - 71 ) * - + ( - CASE - - 6 WHEN + - 1 * - 10 * + - 44 - + 41 THEN 71 WHEN - 44 THEN + 26 * - - AVG ( + + COALESCE ( 13, + + 1 / - 8 ) ) END ) / + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL 91 * - - 20 + - COUNT ( ALL - 71 ) * - + ( - CASE - - 6 WHEN + - 1 * - 10 * + - 44 - + 41 THEN 71 WHEN - 44 THEN + 26 * - - AVG ( + + COALESCE ( 13, + + 1 / - 8 ) ) END ) / + 94 AS col0
----
NULL

query I rowsort
SELECT + + 93 * - 77 + 76 * - - 70 * 33 AS col2
----
168399

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT + 94 + - + MIN( 44 ) - 53 + + 87 * - - SUM( 89 )
----
7740

skipif mysql # not compatible
query I rowsort label-9266
SELECT + 94 + - + MIN ( 44 ) - 53 + + 87 * - - SUM ( 89 )
----
7740

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL + COUNT( * ) * - - 92 + + 40 * + 99 + - 46
----
4006

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL + COUNT ( * ) * - - 92 + + 40 * + 99 + - 46
----
4006

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL + + MAX( DISTINCT + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL + + MAX ( DISTINCT + 61 )
----
61

query I rowsort
SELECT + ( + 70 ) * + 61 col1
----
4270

query I rowsort
SELECT + 27 + + 43 + + 79 + - 99 + + 62 * 17
----
1104

query I rowsort
SELECT + 33 * - - 98
----
3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9272
SELECT + 21 * - + 65 / - COUNT( * ) + + NULLIF ( + + MAX( 51 ), - 25 * + 92 ) + - 31 * CAST( NULL AS SIGNED ) + - 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT + 21 * - + 65 / - COUNT ( * ) + + NULLIF ( + + MAX ( 51 ), - 25 * + 92 ) + - 31 * CAST ( NULL AS INTEGER ) + - 67 col0
----
NULL

query I rowsort
SELECT ALL 74 * - - 8
----
592

query I rowsort
SELECT ALL 86 * + 68 AS col2
----
5848

query I rowsort
SELECT + 44 * + - 69
----
-3036

onlyif mysql # aggregate syntax: 
query II rowsort label-9276
SELECT + 50 + - 45, - 74 + COUNT( * ) * + 5 AS col0
----
5
-69

skipif mysql # not compatible
query II rowsort label-9276
SELECT + 50 + - 45, - 74 + COUNT ( * ) * + 5 AS col0
----
5
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT - 82 * - 98 + - 27 + - + COUNT( * ) AS col2
----
8008

skipif mysql # not compatible
query I rowsort label-9277
SELECT - 82 * - 98 + - 27 + - + COUNT ( * ) AS col2
----
8008

query I rowsort
SELECT - 43 + 74
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT ALL 8 DIV - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL 8 / - 85 AS col0
----
0

query I rowsort
SELECT ALL ( ( + + 70 ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT DISTINCT MIN( + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT MIN ( + 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT DISTINCT SUM( + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT SUM ( + 80 )
----
80

query I rowsort
SELECT ALL + ( - 78 ) * - 85 col2
----
6630

onlyif mysql # aggregate syntax: 
query II rowsort label-9284
SELECT ALL + 20 * 90, - COUNT( * ) * - - 74 AS col0
----
1800
-74

skipif mysql # not compatible
query II rowsort label-9284
SELECT ALL + 20 * 90, - COUNT ( * ) * - - 74 AS col0
----
1800
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT COUNT( 38 )
----
1

skipif mysql # not compatible
query I rowsort label-9285
SELECT COUNT ( 38 )
----
1

query I rowsort
SELECT - CASE + + 64 WHEN + + 25 + + 21 THEN NULL ELSE + - ( - 0 ) END
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9287
SELECT DISTINCT - 87 * + 87 + + 29 + 89 + COUNT( * ) - + 91 * - 10 DIV COUNT( * )
----
-6540

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT - 87 * + 87 + + 29 + 89 + COUNT ( * ) - + 91 * - 10 / COUNT ( * )
----
-6540

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT - - 76 * - COUNT( * ) + 63
----
-13

skipif mysql # not compatible
query I rowsort label-9288
SELECT - - 76 * - COUNT ( * ) + 63
----
-13

query I rowsort
SELECT ALL - + 26 + + 33 * 16 AS col0
----
502

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL + 96 + + 53 * - + COUNT( * ) - - - 12 col0
----
31

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL + 96 + + 53 * - + COUNT ( * ) - - - 12 col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL - + 26 + - COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL - + 26 + - COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT DISTINCT - - 84 + + - 52
----
32

query I rowsort
SELECT ALL - + ( - - 32 ) col0
----
-32

query I rowsort
SELECT + 65 * 59 AS col0
----
3835

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9295
SELECT ALL - 44 DIV + 68 * COALESCE ( - + 59, 54 DIV - 26, + COUNT( ALL - ( - - 99 ) ) + - + COUNT( * ) ) * 7 col1
----
0

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL - 44 / + 68 * COALESCE ( - + 59, 54 / - 26, + COUNT ( ALL - ( - - 99 ) ) + - + COUNT ( * ) ) * 7 col1
----
0

query I rowsort
SELECT - 74 + + 89 AS col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9297
SELECT DISTINCT + - 71 * - + ( - COALESCE ( 16, - 24 ) ) * - + 95 * 56 + 84 + 96 + + 2 + + COUNT( * ) * + 69, - 17 col0
----
6043771
-17

skipif mysql # not compatible
query II rowsort label-9297
SELECT DISTINCT + - 71 * - + ( - COALESCE ( 16, - 24 ) ) * - + 95 * 56 + 84 + 96 + + 2 + + COUNT ( * ) * + 69, - 17 col0
----
6043771
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT DISTINCT - 9 * - COUNT( ALL + + 88 ) * 5 * + 17
----
765

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT - 9 * - COUNT ( ALL + + 88 ) * 5 * + 17
----
765

query II rowsort
SELECT ALL - 51 AS col1, + 65 + - 17 + - 25 AS col1
----
-51
23

query I rowsort
SELECT 87 * - 69 AS col2
----
-6003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9301
SELECT ALL MIN( DISTINCT - 36 ) / - CAST( NULL AS SIGNED ) * + ( 92 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL MIN ( DISTINCT - 36 ) / - CAST ( NULL AS INTEGER ) * + ( 92 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 82 - 44
----
38

query I rowsort
SELECT 86 * ( + 97 )
----
8342

query I rowsort
SELECT 21 * NULLIF ( - NULLIF ( - 89, - 74 ), 22 * + 11 ) col0
----
1869

query II rowsort
SELECT + 23 AS col1, 22
----
23
22

query I rowsort
SELECT DISTINCT 67 * + 65 AS col1
----
4355

query I rowsort
SELECT 40 * - 45 * - 17
----
30600

query I rowsort
SELECT ALL 84 * - + 75
----
-6300

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9309
SELECT 11 * - 5 DIV COUNT( * ), + 99 AS col1
----
-55
99

skipif mysql # not compatible
query II rowsort label-9309
SELECT 11 * - 5 / COUNT ( * ), + 99 AS col1
----
-55
99

query I rowsort
SELECT DISTINCT 31 * - 11 * - 83 AS col1
----
28303

query I rowsort
SELECT ALL 54 + + 13
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT COUNT( * ) * + + 45 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9312
SELECT COUNT ( * ) * + + 45 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ALL MIN( + - 79 ) * + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL MIN ( + - 79 ) * + COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9314
SELECT DISTINCT + 58 + + + COUNT( * ) * 23 DIV COUNT( + 74 ) + + 50 + - COALESCE ( - 69, - + 5 + 14 + - 4 DIV - COUNT( * ) ) * + 33 * - 13 AS col0
----
-29470

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT + 58 + + + COUNT ( * ) * 23 / COUNT ( + 74 ) + + 50 + - COALESCE ( - 69, - + 5 + 14 + - 4 / - COUNT ( * ) ) * + 33 * - 13 AS col0
----
-29470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9315
SELECT COUNT( * ) + + + COUNT( * ) + - + 88 DIV - 7
----
14

skipif mysql # not compatible
query I rowsort label-9315
SELECT COUNT ( * ) + + + COUNT ( * ) + - + 88 / - 7
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9316
SELECT - 13 + + - 44 + - + COUNT( * ), COUNT( * ) AS col1
----
-58
1

skipif mysql # not compatible
query II rowsort label-9316
SELECT - 13 + + - 44 + - + COUNT ( * ), COUNT ( * ) AS col1
----
-58
1

query I rowsort
SELECT ALL - 39 + + + 45
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9318
SELECT COUNT( * ) + + 68 + 21 + 91 + - - MAX( 16 ), 30 AS col0
----
197
30

skipif mysql # not compatible
query II rowsort label-9318
SELECT COUNT ( * ) + + 68 + 21 + 91 + - - MAX ( 16 ), 30 AS col0
----
197
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9319
SELECT ALL + + ( + 82 ) + - CAST( NULL AS SIGNED ) + + 73 + + 96 - - 18 * + 48 + ( + COUNT( * ) ) / + + 74 + + - NULLIF ( + 83, - + CAST( NULL AS SIGNED ) + + COUNT( * ) * - 6 * - ( + - 9 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL + + ( + 82 ) + - CAST ( NULL AS INTEGER ) + + 73 + + 96 - - 18 * + 48 + ( + COUNT ( * ) ) / + + 74 + + - NULLIF ( + 83, - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 6 * - ( + - 9 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ( 69 ) + ( - 45 ) - SUM( - 41 ) + - 95
----
-30

skipif mysql # not compatible
query I rowsort label-9320
SELECT ( 69 ) + ( - 45 ) - SUM ( - 41 ) + - 95
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9321
SELECT COUNT( * ) col2, COUNT( * ) * 91 * - - 71 AS col2
----
1
6461

skipif mysql # not compatible
query II rowsort label-9321
SELECT COUNT ( * ) col2, COUNT ( * ) * 91 * - - 71 AS col2
----
1
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT - 62 + - + MAX( 80 )
----
-142

skipif mysql # not compatible
query I rowsort label-9322
SELECT - 62 + - + MAX ( 80 )
----
-142

query I rowsort
SELECT - 2 * + - 39
----
78

query I rowsort
SELECT ALL + - 19 - - - 67
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT - 29 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT - 29 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9326
SELECT CAST( NULL AS SIGNED ) * 20 * - ( - - COUNT( * ) ) * + - 49 / + MIN( + ( - 52 ) ) * - + 45 + + - 35 AS col0, 92 * + + COUNT( - 78 )
----
NULL
92

skipif mysql # not compatible
query II rowsort label-9326
SELECT CAST ( NULL AS INTEGER ) * 20 * - ( - - COUNT ( * ) ) * + - 49 / + MIN ( + ( - 52 ) ) * - + 45 + + - 35 AS col0, 92 * + + COUNT ( - 78 )
----
NULL
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9327
SELECT + CASE - 98 WHEN + + CAST( NULL AS SIGNED ) + - 71 - - 17 THEN 52 - + 88 WHEN 97 THEN NULL ELSE ( - COUNT( * ) ) END col1
----
-1

skipif mysql # not compatible
query I rowsort label-9327
SELECT + CASE - 98 WHEN + + CAST ( NULL AS INTEGER ) + - 71 - - 17 THEN 52 - + 88 WHEN 97 THEN NULL ELSE ( - COUNT ( * ) ) END col1
----
-1

query II rowsort
SELECT ALL + 21 * - 7 * COALESCE ( - 69, - 32 + 2 + + 41 * 43 ), - 20 AS col1
----
10143
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT DISTINCT - MAX( ALL - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT - MAX ( ALL - 67 )
----
67

query II rowsort
SELECT ALL - 57 AS col1, 94 + 73 AS col2
----
-57
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9331
SELECT ALL + SUM( ALL + 3 ) DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL + SUM ( ALL + 3 ) / 87
----
0

query I rowsort
SELECT 96 * - + 97 * - 69 AS col0
----
642528

onlyif mysql # aggregate syntax: 
query II rowsort label-9333
SELECT ALL - COUNT( * ) AS col2, + 77 AS col0
----
-1
77

skipif mysql # not compatible
query II rowsort label-9333
SELECT ALL - COUNT ( * ) AS col2, + 77 AS col0
----
-1
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT 68 * - + ( + MIN( - 92 ) ) + - + 43 AS col2
----
6213

skipif mysql # not compatible
query I rowsort label-9334
SELECT 68 * - + ( + MIN ( - 92 ) ) + - + 43 AS col2
----
6213

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9335
SELECT ALL - 47 AS col1, - NULLIF ( 99, + CAST( NULL AS SIGNED ) * - + 7 )
----
-47
-99

skipif mysql # not compatible
query II rowsort label-9335
SELECT ALL - 47 AS col1, - NULLIF ( 99, + CAST ( NULL AS INTEGER ) * - + 7 )
----
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT 86 DIV 33 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9336
SELECT 86 / 33 AS col0
----
2

query I rowsort
SELECT ALL + 60 * - 95
----
-5700

query II rowsort
SELECT 92 + - - 5 AS col1, 63 * - 2
----
97
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-9339
SELECT + 18 col0, SUM( - 24 )
----
18
-24

skipif mysql # not compatible
query II rowsort label-9339
SELECT + 18 col0, SUM ( - 24 )
----
18
-24

query I rowsort
SELECT 31 * 69 AS col1
----
2139

query I rowsort
SELECT 60 * + - 57 + + 2
----
-3418

query I rowsort
SELECT DISTINCT - 87 * + 70 col2
----
-6090

query I rowsort
SELECT ALL - ( - 56 ) col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL + CASE 48 WHEN - - COUNT( * ) THEN NULL WHEN CASE - 27 WHEN + - ( SUM( ALL + + 80 ) ) THEN NULL WHEN - + 54 THEN + + 69 ELSE NULL END * + 63 * 65 / - - 3 * + + 34 * - 95 THEN + - 38 WHEN + 67 + + 15 + - + 29 * - - COUNT( * ) * - 42 * 49 * + NULLIF ( + + COUNT( * ), + + 95 ) THEN NULL ELSE NULL END + + 3 * - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL + CASE 48 WHEN - - COUNT ( * ) THEN NULL WHEN CASE - 27 WHEN + - ( SUM ( ALL + + 80 ) ) THEN NULL WHEN - + 54 THEN + + 69 ELSE NULL END * + 63 * 65 / - - 3 * + + 34 * - 95 THEN + - 38 WHEN + 67 + + 15 + - + 29 * - - COUNT ( * ) * - 42 * 49 * + NULLIF ( + + COUNT ( * ), + + 95 ) THEN NULL ELSE NULL END + + 3 * - 66 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9345
SELECT DISTINCT - 6 * + - COALESCE ( + 46, + 73 * + CAST( + 37 AS SIGNED ) * - - 89, + ( 42 ) ) * - 47 - - COUNT( * )
----
-12971

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT - 6 * + - COALESCE ( + 46, + 73 * + CAST ( + 37 AS INTEGER ) * - - 89, + ( 42 ) ) * - 47 - - COUNT ( * )
----
-12971

onlyif mysql # aggregate syntax: 
query II rowsort label-9346
SELECT 21 * - - 17 col1, + COUNT( * ) * - - 1
----
357
1

skipif mysql # not compatible
query II rowsort label-9346
SELECT 21 * - - 17 col1, + COUNT ( * ) * - - 1
----
357
1

query II rowsort
SELECT + 84, 66 + - 65 + 15 AS col2
----
84
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL SUM( - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL SUM ( - 96 )
----
-96

query I rowsort
SELECT 46 + 69 * + 68 AS col0
----
4738

query I rowsort
SELECT 69 + - - 48 col2
----
117

query I rowsort
SELECT ALL 0 + - - 61 + + 48 + - ( - + 38 )
----
147

query I rowsort
SELECT DISTINCT 5 + + 23 + + 74 + - 35 * + 50 * - 24 * - 11
----
-461898

onlyif mysql # aggregate syntax: 
query II rowsort label-9353
SELECT + COUNT( * ), + 31 AS col1
----
1
31

skipif mysql # not compatible
query II rowsort label-9353
SELECT + COUNT ( * ), + 31 AS col1
----
1
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT - - 49 * - 90 + + 22 + - COUNT( * ) AS col0
----
-4389

skipif mysql # not compatible
query I rowsort label-9354
SELECT - - 49 * - 90 + + 22 + - COUNT ( * ) AS col0
----
-4389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9355
SELECT + - 43 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9355
SELECT + - 43 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9356
SELECT ALL + 38 * - COUNT( * ) AS col0, - COUNT( ALL + 58 ) AS col2
----
-38
-1

skipif mysql # not compatible
query II rowsort label-9356
SELECT ALL + 38 * - COUNT ( * ) AS col0, - COUNT ( ALL + 58 ) AS col2
----
-38
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL + NULLIF ( COUNT( + 87 ), - 96 * + - 14 )
----
1

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL + NULLIF ( COUNT ( + 87 ), - 96 * + - 14 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT DISTINCT + 10 + + SUM( DISTINCT - 11 ) + + + 91 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT + 10 + + SUM ( DISTINCT - 11 ) + + + 91 AS col2
----
90

query II rowsort
SELECT + 20 * + - 11, - 51 AS col1
----
-220
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9360
SELECT ALL ( - 34 ) AS col1, - 69 + - CAST( NULL AS SIGNED ) - + COALESCE ( + 12, - MAX( - 61 ) - + - 6, + 51 ) * AVG ( + ( 4 ) ) / + 20
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-9360
SELECT ALL ( - 34 ) AS col1, - 69 + - CAST ( NULL AS INTEGER ) - + COALESCE ( + 12, - MAX ( - 61 ) - + - 6, + 51 ) * AVG ( + ( 4 ) ) / + 20
----
-34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT DISTINCT 7 * - 32 * - COUNT( * ) + 59 * - ( + 56 ) AS col0
----
-3080

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT 7 * - 32 * - COUNT ( * ) + 59 * - ( + 56 ) AS col0
----
-3080

onlyif mysql # aggregate syntax: 
query II rowsort label-9362
SELECT 16 col1, 56 * COUNT( * ) + - ( + 1 )
----
16
55

skipif mysql # not compatible
query II rowsort label-9362
SELECT 16 col1, 56 * COUNT ( * ) + - ( + 1 )
----
16
55

query I rowsort
SELECT + + 22 * - 0 * - 46 col1
----
0

query I rowsort
SELECT - - ( 22 )
----
22

query I rowsort
SELECT DISTINCT + - ( + 67 ) AS col1
----
-67

query I rowsort
SELECT ALL + ( + - 13 ) * + + 80
----
-1040

query I rowsort
SELECT ALL 56 * + + 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT + COALESCE ( - 64, + - 82 * - 12 * + - ( - COUNT( * ) ) )
----
-64

skipif mysql # not compatible
query I rowsort label-9368
SELECT + COALESCE ( - 64, + - 82 * - 12 * + - ( - COUNT ( * ) ) )
----
-64

query I rowsort
SELECT + ( - 24 ) + - 88
----
-112

query I rowsort
SELECT + 15 * + 88
----
1320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT ALL - 4 * 6 * + 67 + CAST( + 23 AS SIGNED ) + - 46
----
-1631

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - 4 * 6 * + 67 + CAST ( + 23 AS INTEGER ) + - 46
----
-1631

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL + 54 * - 78 + 35 * 16 * + SUM( + 38 )
----
17068

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL + 54 * - 78 + 35 * 16 * + SUM ( + 38 )
----
17068

query I rowsort
SELECT ALL - 77 * + 65 * + 30 + - 84
----
-150234

onlyif mysql # DIV for integer division: 
query I rowsort label-9374
SELECT + 49 - ( + 33 ) DIV + + 35
----
49

skipif mysql # not compatible
query I rowsort label-9374
SELECT + 49 - ( + 33 ) / + + 35
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT 30 * - 84 * 2 - + COUNT( * ) AS col1
----
-5041

skipif mysql # not compatible
query I rowsort label-9375
SELECT 30 * - 84 * 2 - + COUNT ( * ) AS col1
----
-5041

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT + SUM( ALL - 96 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9376
SELECT + SUM ( ALL - 96 ) AS col2
----
-96

query I rowsort
SELECT ALL + 2 * + 32 col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9378
SELECT - 37 DIV - - 83
----
0

skipif mysql # not compatible
query I rowsort label-9378
SELECT - 37 / - - 83
----
0

query I rowsort
SELECT DISTINCT COALESCE ( - + 13, + 51, + 45 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT ALL 7 * - 41 * - NULLIF ( CASE COUNT( * ) WHEN - COUNT( * ) THEN - COUNT( - 29 ) END, 87 ) * - 47 - 47 + COUNT( * ) + + COALESCE ( + + COUNT( * ), 16 ) - - 64 * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL 7 * - 41 * - NULLIF ( CASE COUNT ( * ) WHEN - COUNT ( * ) THEN - COUNT ( - 29 ) END, 87 ) * - 47 - 47 + COUNT ( * ) + + COALESCE ( + + COUNT ( * ), 16 ) - - 64 * + 46
----
NULL

query I rowsort
SELECT - 4 - + + 8
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9382
SELECT DISTINCT - COUNT( * ) DIV + 22 + + 74 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT - COUNT ( * ) / + 22 + + 74 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT - + 37 * COUNT( * ) - 31 + + COUNT( * ) - - + COALESCE ( + 98, - 78 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9383
SELECT - + 37 * COUNT ( * ) - 31 + + COUNT ( * ) - - + COALESCE ( + 98, - 78 ) AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9384
SELECT CASE + 4 WHEN + 6 * - COUNT( * ) + - 52 * - 40 / - - 57 * + + 66 THEN - ( - 26 ) END, - 79 * CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9384
SELECT CASE + 4 WHEN + 6 * - COUNT ( * ) + - 52 * - 40 / - - 57 * + + 66 THEN - ( - 26 ) END, - 79 * CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9385
SELECT - - CASE + CASE - + COUNT( * ) WHEN - + 41 * + 28 THEN - 88 WHEN 83 * + 7 + + CAST( - + 17 AS SIGNED ) - + 98 * - COUNT( * ) / 71 THEN NULL ELSE NULL END WHEN + COUNT( * ) * + COUNT( * ) * 12 - - COUNT( * ) THEN ( - ( - + ( + 25 ) ) ) END + - - SUM( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT - - CASE + CASE - + COUNT ( * ) WHEN - + 41 * + 28 THEN - 88 WHEN 83 * + 7 + + CAST ( - + 17 AS INTEGER ) - + 98 * - COUNT ( * ) / 71 THEN NULL ELSE NULL END WHEN + COUNT ( * ) * + COUNT ( * ) * 12 - - COUNT ( * ) THEN ( - ( - + ( + 25 ) ) ) END + - - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT - + SUM( DISTINCT - + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-9386
SELECT - + SUM ( DISTINCT - + 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT - - NULLIF ( - 47, 35 * 7 * + + COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-9387
SELECT - - NULLIF ( - 47, 35 * 7 * + + COUNT ( * ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT - + 76 + - - MAX( + 14 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-9388
SELECT - + 76 + - - MAX ( + 14 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT + - MAX( DISTINCT - 42 ) - + 41 + + SUM( + + 60 ) - - 81
----
142

skipif mysql # not compatible
query I rowsort label-9389
SELECT + - MAX ( DISTINCT - 42 ) - + 41 + + SUM ( + + 60 ) - - 81
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT - - ( + SUM( ALL - + 46 ) ) + 26
----
-20

skipif mysql # not compatible
query I rowsort label-9390
SELECT - - ( + SUM ( ALL - + 46 ) ) + 26
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT - COUNT( - 70 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9391
SELECT - COUNT ( - 70 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9392
SELECT - + 26 + - 54 AS col0, COUNT( * ) + + 22 * + 34 AS col1
----
-80
749

skipif mysql # not compatible
query II rowsort label-9392
SELECT - + 26 + - 54 AS col0, COUNT ( * ) + + 22 * + 34 AS col1
----
-80
749

query I rowsort
SELECT ALL 50 * + 53
----
2650

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT + 20 * SUM( DISTINCT + CASE + - 20 WHEN - 68 / - + 96 THEN 14 ELSE - ( NULLIF ( - 13, + - 3 ) ) END ) AS col0
----
260

skipif mysql # not compatible
query I rowsort label-9394
SELECT + 20 * SUM ( DISTINCT + CASE + - 20 WHEN - 68 / - + 96 THEN 14 ELSE - ( NULLIF ( - 13, + - 3 ) ) END ) AS col0
----
260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9395
SELECT ALL + CAST( NULL AS SIGNED ) * CAST( - + 36 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL + CAST ( NULL AS INTEGER ) * CAST ( - + 36 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9396
SELECT + CAST( NULL AS SIGNED ) + - 64 AS col1, ( + + COUNT( * ) )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9396
SELECT + CAST ( NULL AS INTEGER ) + - 64 AS col1, ( + + COUNT ( * ) )
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9397
SELECT DISTINCT + 71 * + - 42 * - 71 + COUNT( * ) DIV 65
----
211722

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT + 71 * + - 42 * - 71 + COUNT ( * ) / 65
----
211722

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9398
SELECT + 47 + - MAX( ALL + ( - CAST( NULL AS DECIMAL ) ) ) + 24 * - + COUNT( * ) - + NULLIF ( - 71, 96 * - 93 + + + 84 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT + 47 + - MAX ( ALL + ( - CAST ( NULL AS REAL ) ) ) + 24 * - + COUNT ( * ) - + NULLIF ( - 71, 96 * - 93 + + + 84 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9399
SELECT - CAST( NULL AS SIGNED ) / - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9399
SELECT - CAST ( NULL AS INTEGER ) / - 56
----
NULL

query I rowsort
SELECT + 51 * + 24 AS col2
----
1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9401
SELECT + 15 DIV - COUNT( DISTINCT - + 7 ) col0
----
-15

skipif mysql # not compatible
query I rowsort label-9401
SELECT + 15 / - COUNT ( DISTINCT - + 7 ) col0
----
-15

query I rowsort
SELECT + 91 * 89 AS col1
----
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT ALL + 77 / + 58 + ( CASE + 96 WHEN + 93 + - 60 THEN + - 19 * - + COUNT( * ) + - 75 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL + 77 / + 58 + ( CASE + 96 WHEN + 93 + - 60 THEN + - 19 * - + COUNT ( * ) + - 75 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9404
SELECT ALL + 99 / - + CAST( NULL AS SIGNED ) * - CAST( - AVG ( ALL + 45 ) AS SIGNED ) + 81 / ( + + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL + 99 / - + CAST ( NULL AS INTEGER ) * - CAST ( - AVG ( ALL + 45 ) AS INTEGER ) + 81 / ( + + 8 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT ALL - 27 DIV 11 DIV 23 + - + 5 + - + 19
----
-24

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL - 27 / 11 / 23 + - + 5 + - + 19
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT + CAST( + - 35 AS SIGNED ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9406
SELECT + CAST ( + - 35 AS INTEGER ) AS col1
----
-35

query I rowsort
SELECT ALL + 33 * + 7
----
231

query I rowsort
SELECT ALL ( - 79 ) + - 93
----
-172

query II rowsort
SELECT 5 AS col2, 60 - - 68 AS col0
----
5
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9410
SELECT ( - 48 ) + - 6 DIV 68 + + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-9410
SELECT ( - 48 ) + - 6 / 68 + + COUNT ( * )
----
-47

query I rowsort
SELECT 43 * - + 79 - 84
----
-3481

onlyif mysql # aggregate syntax: 
query II rowsort label-9412
SELECT ALL - 1 AS col1, 20 * - + ( + 32 ) + - ( - + 24 ) - - COUNT( * )
----
-1
-615

skipif mysql # not compatible
query II rowsort label-9412
SELECT ALL - 1 AS col1, 20 * - + ( + 32 ) + - ( - + 24 ) - - COUNT ( * )
----
-1
-615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9413
SELECT ALL COUNT( * ) + + ( CAST( NULL AS SIGNED ) ) * - NULLIF ( - + 53, - + 69 ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL COUNT ( * ) + + ( CAST ( NULL AS INTEGER ) ) * - NULLIF ( - + 53, - + 69 ) + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + 21 - - 37 * 35
----
1316

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT DISTINCT - MIN( + 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT - MIN ( + 51 ) AS col1
----
-51

query II rowsort
SELECT ALL - - COALESCE ( - 70, 29 ), - 3 AS col1
----
-70
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9417
SELECT COUNT( ALL + 96 ) * - COUNT( * ) AS col1, 42
----
-1
42

skipif mysql # not compatible
query II rowsort label-9417
SELECT COUNT ( ALL + 96 ) * - COUNT ( * ) AS col1, 42
----
-1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL - 71 * + + COUNT( 6 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - 71 * + + COUNT ( 6 ) AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT 8 + - CAST( 49 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-9419
SELECT 8 + - CAST ( 49 AS INTEGER )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT ALL COUNT( DISTINCT + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL COUNT ( DISTINCT + 21 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9421
SELECT - 13 AS col2, 46 - - COUNT( * ) + 6
----
-13
53

skipif mysql # not compatible
query II rowsort label-9421
SELECT - 13 AS col2, 46 - - COUNT ( * ) + 6
----
-13
53

query II rowsort
SELECT DISTINCT 24, 70 AS col2
----
24
70

query II rowsort
SELECT - 52 AS col2, - ( 17 ) * - 17 * - 42
----
-52
-12138

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT - 83 * - 2 * 83 + 38 + + COUNT( * )
----
13817

skipif mysql # not compatible
query I rowsort label-9424
SELECT - 83 * - 2 * 83 + 38 + + COUNT ( * )
----
13817

query I rowsort
SELECT ALL - + 75 * + 80 AS col0
----
-6000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9426
SELECT - + 34 AS col2, - 62 * CASE - COUNT( * ) WHEN - - 0 THEN NULL WHEN + 8 * AVG ( - + 89 ) * - + CASE COUNT( * ) WHEN - + COUNT( * ) THEN 98 * + COUNT( * ) ELSE NULL END - ( + COUNT( * ) ) THEN - - 89 DIV + ( - ( - 19 ) ) + + 22 ELSE - 49 END DIV - + 86 AS col2
----
-34
-35

skipif mysql # not compatible
query II rowsort label-9426
SELECT - + 34 AS col2, - 62 * CASE - COUNT ( * ) WHEN - - 0 THEN NULL WHEN + 8 * AVG ( - + 89 ) * - + CASE COUNT ( * ) WHEN - + COUNT ( * ) THEN 98 * + COUNT ( * ) ELSE NULL END - ( + COUNT ( * ) ) THEN - - 89 / + ( - ( - 19 ) ) + + 22 ELSE - 49 END / - + 86 AS col2
----
-34
-35

query II rowsort
SELECT ALL - 78 AS col0, - 59
----
-78
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9428
SELECT ALL - MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL - MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9429
SELECT DISTINCT - 12 DIV - ( - 28 ), + 98 AS col2
----
0
98

skipif mysql # not compatible
query II rowsort label-9429
SELECT DISTINCT - 12 / - ( - 28 ), + 98 AS col2
----
0
98

query I rowsort
SELECT ALL + COALESCE ( + 17, + - 1 ) AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9431
SELECT ALL + MAX( DISTINCT 96 ) DIV + COUNT( * ) - 96 DIV + 52 + MAX( ALL 45 ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL + MAX ( DISTINCT 96 ) / + COUNT ( * ) - 96 / + 52 + MAX ( ALL 45 ) AS col1
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9432
SELECT ALL MIN( + - CAST( + 62 AS SIGNED ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL MIN ( + - CAST ( + 62 AS INTEGER ) ) AS col2
----
-62

query I rowsort
SELECT 36 - ( 36 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9434
SELECT 96 - + ( + - 77 ) DIV + 7 + - COUNT( * )
----
106

skipif mysql # not compatible
query I rowsort label-9434
SELECT 96 - + ( + - 77 ) / + 7 + - COUNT ( * )
----
106

query I rowsort
SELECT 5 * - - 47 AS col0
----
235

query I rowsort
SELECT DISTINCT 3 + + 20
----
23

query I rowsort
SELECT DISTINCT 21 * + 21 * - 81 AS col0
----
-35721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9438
SELECT ALL - 47 + - 34 + + CAST( COUNT( * ) AS SIGNED ) * - 38
----
-119

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL - 47 + - 34 + + CAST ( COUNT ( * ) AS INTEGER ) * - 38
----
-119

query I rowsort
SELECT 31 - + - 24 col1
----
55

query I rowsort
SELECT ALL - ( 77 ) col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9441
SELECT 50 DIV - COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9441
SELECT 50 / - COUNT ( * ) AS col0
----
-50

query I rowsort
SELECT 21 * 41 col0
----
861

onlyif mysql # DIV for integer division: 
query I rowsort label-9443
SELECT 27 DIV 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9443
SELECT 27 / 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9444
SELECT COUNT( * ) + - NULLIF ( 9, + 83 + - + 43 ) + - 38 * + ( - 81 ) * + 4 AS col2, 85
----
12304
85

skipif mysql # not compatible
query II rowsort label-9444
SELECT COUNT ( * ) + - NULLIF ( 9, + 83 + - + 43 ) + - 38 * + ( - 81 ) * + 4 AS col2, 85
----
12304
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9445
SELECT DISTINCT - CAST( + 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT - CAST ( + 92 AS INTEGER )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT DISTINCT 7 * - COUNT( * ) * + - 75
----
525

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT 7 * - COUNT ( * ) * + - 75
----
525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9447
SELECT COUNT( * ) DIV - - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9447
SELECT COUNT ( * ) / - - 57 AS col0
----
0

query I rowsort
SELECT ALL + 0 * - 36
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9449
SELECT ALL 56 * - COUNT( * ) AS col1, + 32 AS col2
----
-56
32

skipif mysql # not compatible
query II rowsort label-9449
SELECT ALL 56 * - COUNT ( * ) AS col1, + 32 AS col2
----
-56
32

query I rowsort
SELECT - 39 - + 62
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9451
SELECT DISTINCT + CAST( - 44 AS SIGNED ) * + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT + CAST ( - 44 AS INTEGER ) * + COUNT ( * )
----
-44

query I rowsort
SELECT 15 * 59 + 38
----
923

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT + SUM( DISTINCT 58 ) - 59
----
-1

skipif mysql # not compatible
query I rowsort label-9453
SELECT + SUM ( DISTINCT 58 ) - 59
----
-1

query I rowsort
SELECT ALL CASE + 86 WHEN + 61 * + + ( 17 ) THEN NULL WHEN 52 THEN - 11 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9455
SELECT DISTINCT - 82 DIV 52 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT - 82 / 52 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT + 46 + + NULLIF ( COUNT( * ), - 53 * - CASE - 38 WHEN + + SUM( DISTINCT - + NULLIF ( - - 2, - 28 ) ) THEN + - 68 * - COUNT( * ) END )
----
47

skipif mysql # not compatible
query I rowsort label-9456
SELECT + 46 + + NULLIF ( COUNT ( * ), - 53 * - CASE - 38 WHEN + + SUM ( DISTINCT - + NULLIF ( - - 2, - 28 ) ) THEN + - 68 * - COUNT ( * ) END )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9457
SELECT CAST( - 82 AS SIGNED ) * + 49
----
-4018

skipif mysql # not compatible
query I rowsort label-9457
SELECT CAST ( - 82 AS INTEGER ) * + 49
----
-4018

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9458
SELECT - 29 * CAST( + + 62 AS SIGNED ) DIV - 76
----
23

skipif mysql # not compatible
query I rowsort label-9458
SELECT - 29 * CAST ( + + 62 AS INTEGER ) / - 76
----
23

query I rowsort
SELECT 5 + - 32 AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-9460
SELECT ALL + - 93 + + + 8 + + 74 - - 7 + - 47 * - + 0 DIV + ( + + 86 )
----
-4

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + - 93 + + + 8 + + 74 - - 7 + - 47 * - + 0 / + ( + + 86 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL - NULLIF ( + COUNT( ALL 38 ), MAX( DISTINCT 33 ) ) + - 36 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL - NULLIF ( + COUNT ( ALL 38 ), MAX ( DISTINCT 33 ) ) + - 36 AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9462
SELECT ALL - ( + 19 ) * - - 56 * - 34 * - 4 * - 86 + + 62 + + SUM( ALL + + ( + 99 ) ) * COUNT( * ) / - 85 * + CAST( NULL AS SIGNED ) - + 25 + - - 5 AS col0, + 65 AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-9462
SELECT ALL - ( + 19 ) * - - 56 * - 34 * - 4 * - 86 + + 62 + + SUM ( ALL + + ( + 99 ) ) * COUNT ( * ) / - 85 * + CAST ( NULL AS INTEGER ) - + 25 + - - 5 AS col0, + 65 AS col0
----
NULL
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT DISTINCT 98 * - CAST( NULL AS SIGNED ) * - - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT 98 * - CAST ( NULL AS INTEGER ) * - - 79 AS col2
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - - 60, + + 84 + - 61 ) + - 88 AS col1
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT DISTINCT COUNT( 53 )
----
1

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT COUNT ( 53 )
----
1

query I rowsort
SELECT ALL + 15 + - 99
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT DISTINCT - ( + + CAST( - - 48 AS SIGNED ) ) + 96 + - ( + 9 )
----
39

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT - ( + + CAST ( - - 48 AS INTEGER ) ) + 96 + - ( + 9 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9468
SELECT ALL + 70 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL + 70 / - 88
----
0

query I rowsort
SELECT 5 * - 48 col1
----
-240

query I rowsort
SELECT 40 + 39
----
79

query I rowsort
SELECT ALL - 43 + 79 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT ALL + CASE + 18 WHEN 20 / - COALESCE ( + MAX( - + 31 ), 97 + 0 * 84 + 62 + - 37 + 43 ) THEN + + 33 / - + 24 + + + 35 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL + CASE + 18 WHEN 20 / - COALESCE ( + MAX ( - + 31 ), 97 + 0 * 84 + 62 + - 37 + 43 ) THEN + + 33 / - + 24 + + + 35 + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 70 * ( + 68 ) + - + 76 AS col0
----
-4836

query I rowsort
SELECT DISTINCT + ( 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT COALESCE ( - - 39, + COUNT( * ) ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9475
SELECT COALESCE ( - - 39, + COUNT ( * ) ) AS col2
----
39

query I rowsort
SELECT COALESCE ( + 24, - + 89, + 55 )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9477
SELECT ALL MIN( + 47 ) * - 46 - - 32 + + COUNT( * ) DIV + SUM( - + 80 ) AS col1
----
-2130

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL MIN ( + 47 ) * - 46 - - 32 + + COUNT ( * ) / + SUM ( - + 80 ) AS col1
----
-2130

query I rowsort
SELECT - 54 * 87 AS col2
----
-4698

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT - 72 + + + SUM( ALL + 13 ) + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-9479
SELECT - 72 + + + SUM ( ALL + 13 ) + COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT + COUNT( * ) * CASE - - COALESCE ( + 65, 68 ) WHEN - COUNT( * ) - - - 15 + - 60 THEN NULL WHEN COUNT( * ) THEN - 18 ELSE NULL END + 77 + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT + COUNT ( * ) * CASE - - COALESCE ( + 65, 68 ) WHEN - COUNT ( * ) - - - 15 + - 60 THEN NULL WHEN COUNT ( * ) THEN - 18 ELSE NULL END + 77 + 35 AS col0
----
NULL

query I rowsort
SELECT ALL - 81 * 44 AS col2
----
-3564

query I rowsort
SELECT - 18 * 48
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT + COUNT( * ) * COUNT( - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-9483
SELECT + COUNT ( * ) * COUNT ( - 37 )
----
1

query I rowsort
SELECT - 36 + 38
----
2

query I rowsort
SELECT - 12 + 85 * 52
----
4408

query I rowsort
SELECT + 18 - + 4
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9487
SELECT + 77 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT + 77 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9488
SELECT ALL 0 DIV 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL 0 / 58 AS col1
----
0

query I rowsort
SELECT ALL 93 * + 29 + 37
----
2734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9490
SELECT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + + 28 * - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9490
SELECT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + + 28 * - 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9491
SELECT + ( - COUNT( * ) ) DIV + 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9491
SELECT + ( - COUNT ( * ) ) / + 53 AS col1
----
0

query I rowsort
SELECT ALL + 37 * - 49 + 2
----
-1811

query I rowsort
SELECT + ( - 7 ) + 47
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT ALL 64 DIV 38 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL 64 / 38 AS col1
----
1

query I rowsort
SELECT - 29 * 97
----
-2813

query I rowsort
SELECT + 34 + - 37 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT DISTINCT 58 + - 64 * COUNT( - 79 )
----
-6

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT 58 + - 64 * COUNT ( - 79 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT ALL 93 + CAST( - 75 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL 93 + CAST ( - 75 AS INTEGER )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT + 4 + SUM( ALL - 75 ) * 38 AS col2
----
-2846

skipif mysql # not compatible
query I rowsort label-9499
SELECT + 4 + SUM ( ALL - 75 ) * 38 AS col2
----
-2846

query I rowsort
SELECT ALL ( 34 ) + 64
----
98

query I rowsort
SELECT - CASE - NULLIF ( 20, 32 ) WHEN ( 37 ) THEN + 14 WHEN + 50 THEN 73 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT DISTINCT COUNT( + 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT COUNT ( + 44 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT DISTINCT COUNT( ALL 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT COUNT ( ALL 45 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT ALL - COUNT( * ) + 65
----
64

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL - COUNT ( * ) + 65
----
64

query I rowsort
SELECT - 21 * 35
----
-735

query I rowsort
SELECT + 32 * + 69 AS col1
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT DISTINCT COUNT( 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT COUNT ( 17 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9508
SELECT ALL + CAST( + COALESCE ( 52, 45 + - 20 / - 43 ) AS SIGNED ) * + 79 AS col0
----
4108

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL + CAST ( + COALESCE ( 52, 45 + - 20 / - 43 ) AS INTEGER ) * + 79 AS col0
----
4108

query I rowsort
SELECT + 85 - - 77
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-9510
SELECT - CASE - 89 WHEN - ( - 95 ) * - 46 THEN + ( 32 ) ELSE 42 DIV + 84 + 56 END * 52 AS col1
----
-2912

skipif mysql # not compatible
query I rowsort label-9510
SELECT - CASE - 89 WHEN - ( - 95 ) * - 46 THEN + ( 32 ) ELSE 42 / + 84 + 56 END * 52 AS col1
----
-2912

query I rowsort
SELECT + 2 * 45
----
90

query I rowsort
SELECT DISTINCT + 66 * 44 AS col2
----
2904

query I rowsort
SELECT ALL - 12 * + 25 AS col2
----
-300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9514
SELECT DISTINCT CAST( 66 AS SIGNED ) * - 96 AS col2
----
-6336

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT CAST ( 66 AS INTEGER ) * - 96 AS col2
----
-6336

query I rowsort
SELECT ALL - 12 * 15 col0
----
-180

query I rowsort
SELECT + 28 * 95 - NULLIF ( + 94, ( + 3 ) * 93 )
----
2566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9517
SELECT + COUNT( * ) DIV 17 col0
----
0

skipif mysql # not compatible
query I rowsort label-9517
SELECT + COUNT ( * ) / 17 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT + SUM( 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9518
SELECT + SUM ( 58 )
----
58

query I rowsort
SELECT - + 4 * - ( + 71 + 32 )
----
412

query I rowsort
SELECT - - 34 + - 82
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT MIN( DISTINCT 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9521
SELECT MIN ( DISTINCT 43 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT DISTINCT + - COALESCE ( - 83, NULLIF ( 21, 30 * - 73 ) + CAST( - NULLIF ( 52, + 54 + 13 * + 15 ) AS SIGNED ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT + - COALESCE ( - 83, NULLIF ( 21, 30 * - 73 ) + CAST ( - NULLIF ( 52, + 54 + 13 * + 15 ) AS INTEGER ) ) AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9523
SELECT ALL + COUNT( * ) * CASE 84 / + 92 WHEN - 16 / - 87 THEN NULL WHEN + 1 * 20 + - 90 THEN - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL + COUNT ( * ) * CASE 84 / + 92 WHEN - 16 / - 87 THEN NULL WHEN + 1 * 20 + - 90 THEN - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT DISTINCT + COUNT( * ) * 10 + 70
----
80

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT + COUNT ( * ) * 10 + 70
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9525
SELECT DISTINCT 26 * CAST( + AVG ( DISTINCT + 91 ) DIV MAX( 84 - - 93 ) + 44 AS SIGNED ) + - 3
----
1141

skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT 26 * CAST ( + AVG ( DISTINCT + 91 ) / MAX ( 84 - - 93 ) + 44 AS INTEGER ) + - 3
----
1141

query I rowsort
SELECT DISTINCT + - 56 * 21 AS col0
----
-1176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9527
SELECT DISTINCT - SUM( ALL - 60 ) * - 70 + + 80 DIV + MIN( DISTINCT + 28 )
----
-4198

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT - SUM ( ALL - 60 ) * - 70 + + 80 / + MIN ( DISTINCT + 28 )
----
-4198

query I rowsort
SELECT ALL + 88 * 1 AS col2
----
88

query I rowsort
SELECT - + 77 * - 32 AS col1
----
2464

query I rowsort
SELECT ALL - + 21 * 7 + + 61 AS col2
----
-86

query I rowsort
SELECT 91 * - 77 - + 95 AS col1
----
-7102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT + COALESCE ( + NULLIF ( COUNT( * ), + CAST( NULL AS SIGNED ) / + COUNT( * ) ), - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-9532
SELECT + COALESCE ( + NULLIF ( COUNT ( * ), + CAST ( NULL AS INTEGER ) / + COUNT ( * ) ), - 10 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + COUNT( * ) * NULLIF ( 55, COALESCE ( - 96, ( + 31 ), 8 - COUNT( * ) ) + 44 )
----
55

skipif mysql # not compatible
query I rowsort label-9533
SELECT + COUNT ( * ) * NULLIF ( 55, COALESCE ( - 96, ( + 31 ), 8 - COUNT ( * ) ) + 44 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9534
SELECT CASE 95 WHEN 79 + 83 THEN NULL WHEN - 21 + - CAST( NULL AS SIGNED ) THEN COUNT( * ) - 54 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT CASE 95 WHEN 79 + 83 THEN NULL WHEN - 21 + - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) - 54 END AS col1
----
NULL

query I rowsort
SELECT ALL + 79 * - 39 + 50 AS col1
----
-3031

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT ALL + 72 DIV 18
----
4

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL + 72 / 18
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT - - COALESCE ( - 24, + 98, 60 * - 46 - COUNT( * ) * 69, COUNT( * ) ) * - MAX( DISTINCT + 59 * - 10 ) + - 60 * - 51
----
-11100

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT - - COALESCE ( - 24, + 98, 60 * - 46 - COUNT ( * ) * 69, COUNT ( * ) ) * - MAX ( DISTINCT + 59 * - 10 ) + - 60 * - 51
----
-11100

query I rowsort
SELECT - NULLIF ( + 93, 32 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT + 45 - - 66 * - COUNT( * ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-9539
SELECT + 45 - - 66 * - COUNT ( * ) AS col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-9540
SELECT ALL + 88 DIV 61
----
1

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL + 88 / 61
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT COUNT( * ) + COALESCE ( 55, - NULLIF ( - COUNT( * ), COUNT( 41 ) ) + 58 * - 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9541
SELECT COUNT ( * ) + COALESCE ( 55, - NULLIF ( - COUNT ( * ), COUNT ( 41 ) ) + 58 * - 56 ) AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT 40 + - CAST( 47 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-9542
SELECT 40 + - CAST ( 47 AS INTEGER )
----
-7

query I rowsort
SELECT 11 * + 61
----
671

query I rowsort
SELECT 47 * 29 col2
----
1363

query I rowsort
SELECT 21 + + + 38
----
59

query I rowsort
SELECT 30 + - 94 - 50 * - 27 AS col0
----
1286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9547
SELECT 66 - - CASE + CAST( - COUNT( * ) AS SIGNED ) WHEN COUNT( * ) * + 43 THEN NULL ELSE + 0 * 14 END DIV 28
----
66

skipif mysql # not compatible
query I rowsort label-9547
SELECT 66 - - CASE + CAST ( - COUNT ( * ) AS INTEGER ) WHEN COUNT ( * ) * + 43 THEN NULL ELSE + 0 * 14 END / 28
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT 49 + - - 84 + + 0 * MAX( ALL + 3 )
----
133

skipif mysql # not compatible
query I rowsort label-9548
SELECT 49 + - - 84 + + 0 * MAX ( ALL + 3 )
----
133

query I rowsort
SELECT ( - + 47 ) + - 57 AS col0
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9550
SELECT NULLIF ( - - CAST( NULL AS SIGNED ), - 51 ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9550
SELECT NULLIF ( - - CAST ( NULL AS INTEGER ), - 51 ) * 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9551
SELECT CAST( + NULLIF ( - 5, + 53 ) AS SIGNED ) * - ( 60 ) AS col2
----
300

skipif mysql # not compatible
query I rowsort label-9551
SELECT CAST ( + NULLIF ( - 5, + 53 ) AS INTEGER ) * - ( 60 ) AS col2
----
300

onlyif mysql # DIV for integer division: 
query I rowsort label-9552
SELECT 84 + 55 DIV + 25
----
86

skipif mysql # not compatible
query I rowsort label-9552
SELECT 84 + 55 / + 25
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9553
SELECT 91 DIV + 31 * - COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-9553
SELECT 91 / + 31 * - COUNT ( * ) col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT + 23 * + + CASE 20 WHEN 33 * 42 THEN 92 * 98 ELSE NULL END + COUNT( * ) * - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT + 23 * + + CASE 20 WHEN 33 * 42 THEN 92 * 98 ELSE NULL END + COUNT ( * ) * - 3 AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 58, + 71 * + 78 ) * + 6
----
348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9556
SELECT 47 DIV COUNT( * ) + + 68 + 13 col0
----
128

skipif mysql # not compatible
query I rowsort label-9556
SELECT 47 / COUNT ( * ) + + 68 + 13 col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL + - CASE + 61 WHEN 29 + ( MAX( ALL 46 ) ) THEN - 42 + + 32 * 23 WHEN + MIN( - 39 ) THEN COUNT( * ) + 14 ELSE 32 END * - 37 col2
----
1184

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL + - CASE + 61 WHEN 29 + ( MAX ( ALL 46 ) ) THEN - 42 + + 32 * 23 WHEN + MIN ( - 39 ) THEN COUNT ( * ) + 14 ELSE 32 END * - 37 col2
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT + MIN( + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-9558
SELECT + MIN ( + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ALL - - NULLIF ( - COUNT( * ), - 59 / 25 ) + 45
----
44

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL - - NULLIF ( - COUNT ( * ), - 59 / 25 ) + 45
----
44

query I rowsort
SELECT DISTINCT - 50 * 56 * - 15 AS col0
----
42000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9561
SELECT COALESCE ( + 78, COALESCE ( + 4, 45 * + 13 + ( 65 ) ) * - 29, ( - 59 ) + + COUNT( * ) DIV - 40, MIN( ALL + 33 ) ) + - 39 col2
----
39

skipif mysql # not compatible
query I rowsort label-9561
SELECT COALESCE ( + 78, COALESCE ( + 4, 45 * + 13 + ( 65 ) ) * - 29, ( - 59 ) + + COUNT ( * ) / - 40, MIN ( ALL + 33 ) ) + - 39 col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT - MAX( ALL + 4 ) * 4
----
-16

skipif mysql # not compatible
query I rowsort label-9562
SELECT - MAX ( ALL + 4 ) * 4
----
-16

query I rowsort
SELECT ALL + 17 * + - ( + 6 ) + 19
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT + CAST( - - 70 AS SIGNED ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9564
SELECT + CAST ( - - 70 AS INTEGER ) AS col0
----
70

query I rowsort
SELECT ALL + + 61 + - - ( 76 ) AS col0
----
137

query I rowsort
SELECT 11 + + 6 AS col2
----
17

query I rowsort
SELECT 0 - + + 56 AS col1
----
-56

query I rowsort
SELECT DISTINCT + 43 * + 27 + + 39 AS col0
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT ALL - - 73 - + + NULLIF ( + COUNT( * ), 43 * 13 + + 39 ) + SUM( ALL + NULLIF ( - 32, 79 ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL - - 73 - + + NULLIF ( + COUNT ( * ), 43 * 13 + + 39 ) + SUM ( ALL + NULLIF ( - 32, 79 ) ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT + CASE + 45 WHEN + 14 * ( - 62 * - 49 ) THEN + COUNT( * ) * 31 WHEN SUM( - 9 ) THEN - 93 * + COUNT( * ) END * 6 + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT + CASE + 45 WHEN + 14 * ( - 62 * - 49 ) THEN + COUNT ( * ) * 31 WHEN SUM ( - 9 ) THEN - 93 * + COUNT ( * ) END * 6 + 28 AS col2
----
NULL

query I rowsort
SELECT ALL + 10 * - + ( - 89 ) col1
----
890

query I rowsort
SELECT 26 + + 15 AS col0
----
41

query I rowsort
SELECT 14 * + - 11
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ALL + 84 * - COUNT( * ) * + 53 * 55 AS col0
----
-244860

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL + 84 * - COUNT ( * ) * + 53 * 55 AS col0
----
-244860

onlyif mysql # DIV for integer division: 
query I rowsort label-9575
SELECT 21 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-9575
SELECT 21 / - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT 56 * SUM( DISTINCT - + 8 ) col1
----
-448

skipif mysql # not compatible
query I rowsort label-9576
SELECT 56 * SUM ( DISTINCT - + 8 ) col1
----
-448

onlyif mysql # aggregate syntax: 
query II rowsort label-9577
SELECT 54 AS col1, + COUNT( * )
----
54
1

skipif mysql # not compatible
query II rowsort label-9577
SELECT 54 AS col1, + COUNT ( * )
----
54
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9578
SELECT COUNT( + CAST( NULL AS SIGNED ) ) + 42 * 65
----
2730

skipif mysql # not compatible
query I rowsort label-9578
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) + 42 * 65
----
2730

onlyif mysql # DIV for integer division: 
query I rowsort label-9579
SELECT 46 DIV - + 23 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9579
SELECT 46 / - + 23 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT DISTINCT 91 DIV + 58 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT 91 / + 58 AS col1
----
1

query I rowsort
SELECT ALL 26 * + 52 * - 68
----
-91936

onlyif mysql # aggregate syntax: 
query II rowsort label-9582
SELECT DISTINCT 72, - 67 + + COUNT( - 61 ) AS col1
----
72
-66

skipif mysql # not compatible
query II rowsort label-9582
SELECT DISTINCT 72, - 67 + + COUNT ( - 61 ) AS col1
----
72
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT 36 DIV - 35 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9583
SELECT 36 / - 35 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9584
SELECT DISTINCT - 39 DIV + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT - 39 / + 81 AS col1
----
0

query I rowsort
SELECT 84 * + - 38
----
-3192

query I rowsort
SELECT ALL 90 + + 59 AS col1
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9587
SELECT 55 - + 82 + - 51 + 63 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT 55 - + 82 + - 51 + 63 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT SUM( 64 ) - + 80 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9588
SELECT SUM ( 64 ) - + 80 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL MIN( - - 96 ) * 17
----
1632

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL MIN ( - - 96 ) * 17
----
1632

query I rowsort
SELECT ALL + 90 + - 74
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT DISTINCT CAST( + + 81 AS SIGNED ) + + + 84
----
165

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT CAST ( + + 81 AS INTEGER ) + + + 84
----
165

query I rowsort
SELECT ALL + 21 * - 23 + 63 AS col2
----
-420

query I rowsort
SELECT 15 - - ( 66 )
----
81

query II rowsort
SELECT + 55, 87 * 30 AS col0
----
55
2610

query I rowsort
SELECT ALL - 65 * + - 94 * + 63 + + 32
----
384962

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9596
SELECT + 6, CAST( NULL AS DECIMAL ) AS col1
----
6
NULL

skipif mysql # not compatible
query II rowsort label-9596
SELECT + 6, CAST ( NULL AS REAL ) AS col1
----
6
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9597
SELECT 18, 54 DIV + COUNT( * ) AS col0
----
18
54

skipif mysql # not compatible
query II rowsort label-9597
SELECT 18, 54 / + COUNT ( * ) AS col0
----
18
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT - COUNT( * ) * - ( ( 28 ) )
----
28

skipif mysql # not compatible
query I rowsort label-9598
SELECT - COUNT ( * ) * - ( ( 28 ) )
----
28

query I rowsort
SELECT ALL 63 * + 4 * - 79 * 23
----
-457884

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT MIN( ALL + ( - 48 ) ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9600
SELECT MIN ( ALL + ( - 48 ) ) AS col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9601
SELECT ALL + 94 DIV 24 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL + 94 / 24 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9602
SELECT ALL 67 * + - COUNT( * ) DIV ( 72 ) * 30 - 86
----
-86

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL 67 * + - COUNT ( * ) / ( 72 ) * 30 - 86
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9603
SELECT ALL - + 71 * + CASE + 76 WHEN 62 + 6 THEN 71 ELSE 14 * CAST( NULL AS SIGNED ) END * + 18 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL - + 71 * + CASE + 76 WHEN 62 + 6 THEN 71 ELSE 14 * CAST ( NULL AS INTEGER ) END * + 18 - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL + 45 * - - NULLIF ( - 11, - MIN( ALL + 64 ) )
----
-495

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL + 45 * - - NULLIF ( - 11, - MIN ( ALL + 64 ) )
----
-495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9605
SELECT DISTINCT + ( 33 ) * + 46 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT + ( 33 ) * + 46 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 74 AS col2, NULLIF ( - - NULLIF ( + 65, + 37 * 19 ), 30 + - ( 27 ) ) - - 31 AS col1
----
74
96

query II rowsort
SELECT 11, 92 * + 54 AS col0
----
11
4968

query I rowsort
SELECT + 22 - - - 81 AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9609
SELECT + 26 * + CASE CAST( 77 AS SIGNED ) WHEN 87 THEN 38 ELSE 83 END AS col2
----
2158

skipif mysql # not compatible
query I rowsort label-9609
SELECT + 26 * + CASE CAST ( 77 AS INTEGER ) WHEN 87 THEN 38 ELSE 83 END AS col2
----
2158

onlyif mysql # DIV for integer division: 
query I rowsort label-9610
SELECT - 15 DIV + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9610
SELECT - 15 / + 59 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9611
SELECT DISTINCT - 43 DIV - + 45 col2
----
0

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT - 43 / - + 45 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9612
SELECT + MIN( - 27 ) + - 14 * - COUNT( 73 ) + CAST( - 56 + - 0 AS SIGNED ) * MAX( - 91 )
----
5083

skipif mysql # not compatible
query I rowsort label-9612
SELECT + MIN ( - 27 ) + - 14 * - COUNT ( 73 ) + CAST ( - 56 + - 0 AS INTEGER ) * MAX ( - 91 )
----
5083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9613
SELECT - 62 + - + CAST( NULL AS SIGNED ) + - MIN( DISTINCT - 21 ) / 27 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT - 62 + - + CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT - 21 ) / 27 * - 70
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9614
SELECT ALL - 53 * + COUNT( * ), + 91 AS col0
----
-53
91

skipif mysql # not compatible
query II rowsort label-9614
SELECT ALL - 53 * + COUNT ( * ), + 91 AS col0
----
-53
91

query I rowsort
SELECT - 56 - - - 54
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL COUNT( + - 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL COUNT ( + - 77 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT + 2 * COUNT( * ) * COALESCE ( - - 77, 61, + 40 ) * 78 AS col0
----
12012

skipif mysql # not compatible
query I rowsort label-9617
SELECT + 2 * COUNT ( * ) * COALESCE ( - - 77, 61, + 40 ) * 78 AS col0
----
12012

query I rowsort
SELECT - 8 + - - 3
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ALL - 53 * + 64 * - COUNT( * ) * COUNT( DISTINCT + 66 )
----
3392

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL - 53 * + 64 * - COUNT ( * ) * COUNT ( DISTINCT + 66 )
----
3392

query I rowsort
SELECT - ( 77 ) + - - COALESCE ( + + 98, 44 ) * + 36
----
3451

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT - MIN( - 65 ) + + 6 + ( + 1 ) - ( + 77 ) * - 20
----
1612

skipif mysql # not compatible
query I rowsort label-9621
SELECT - MIN ( - 65 ) + + 6 + ( + 1 ) - ( + 77 ) * - 20
----
1612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9622
SELECT ALL CASE + - COUNT( * ) WHEN 19 / 59 - + 55 THEN + 0 * - AVG ( ALL CAST( NULL AS SIGNED ) ) WHEN - 43 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL CASE + - COUNT ( * ) WHEN 19 / 59 - + 55 THEN + 0 * - AVG ( ALL CAST ( NULL AS INTEGER ) ) WHEN - 43 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - ( - + 78 ) + + 53 AS col2
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT ALL + 90 + CAST( NULL AS SIGNED ) + + + 84 * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL + 90 + CAST ( NULL AS INTEGER ) + + + 84 * 10
----
NULL

query I rowsort
SELECT - - 56 * - 82 AS col2
----
-4592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9626
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + - 15 + MAX( COALESCE ( 71, + 35 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + - 15 + MAX ( COALESCE ( 71, + 35 ) )
----
NULL

query I rowsort
SELECT ALL + + 7 + + 6 col1
----
13

query I rowsort
SELECT DISTINCT - 67 * - + 29
----
1943

query I rowsort
SELECT ALL - 9 * + - 93 * 73 + - + 33
----
61068

query I rowsort
SELECT 4 * - CASE - - 46 WHEN + 26 / + 74 THEN NULL WHEN - 0 / 72 THEN + 28 END + 38 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9631
SELECT - 98 DIV 50 + - ( 79 ) + + 86 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9631
SELECT - 98 / 50 + - ( 79 ) + + 86 AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9632
SELECT MIN( ALL 0 ) AS col0, - 68
----
0
-68

skipif mysql # not compatible
query II rowsort label-9632
SELECT MIN ( ALL 0 ) AS col0, - 68
----
0
-68

query I rowsort
SELECT ALL - + 93 * + + 27 + - + ( - 46 ) - 71
----
-2536

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT DISTINCT - 15 * - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT - 15 * - COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT - CASE + + COUNT( * ) WHEN + 42 THEN NULL WHEN - - COALESCE ( - 47, COUNT( * ) ) THEN NULL ELSE + COUNT( DISTINCT - 37 ) END * - 31
----
31

skipif mysql # not compatible
query I rowsort label-9635
SELECT - CASE + + COUNT ( * ) WHEN + 42 THEN NULL WHEN - - COALESCE ( - 47, COUNT ( * ) ) THEN NULL ELSE + COUNT ( DISTINCT - 37 ) END * - 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL + + COALESCE ( + - COUNT( * ), + SUM( ALL 34 ) + 28, + 18 + + 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL + + COALESCE ( + - COUNT ( * ), + SUM ( ALL 34 ) + 28, + 18 + + 0 )
----
-1

query I rowsort
SELECT + 80 + + 10
----
90

query I rowsort
SELECT + + 2 + 80
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9639
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) + + + 65 * MIN( - 11 ) + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9639
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) + + + 65 * MIN ( - 11 ) + 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9640
SELECT ALL MIN( DISTINCT 77 ) DIV + 11 - 17 * - 61 * - COUNT( * )
----
-1030

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL MIN ( DISTINCT 77 ) / + 11 - 17 * - 61 * - COUNT ( * )
----
-1030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9641
SELECT 20 * - 95 + + + COUNT( * ) DIV + 21
----
-1900

skipif mysql # not compatible
query I rowsort label-9641
SELECT 20 * - 95 + + + COUNT ( * ) / + 21
----
-1900

query I rowsort
SELECT + ( - ( 45 ) ) AS col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9643
SELECT DISTINCT COUNT( * ) DIV + - 6
----
0

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT COUNT ( * ) / + - 6
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9644
SELECT + 38 * + NULLIF ( + 67, + 33 + - CAST( NULL AS DECIMAL ) ) * 4 AS col2
----
10184

skipif mysql # not compatible
query I rowsort label-9644
SELECT + 38 * + NULLIF ( + 67, + 33 + - CAST ( NULL AS REAL ) ) * 4 AS col2
----
10184

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT DISTINCT + COUNT( - 37 ) * + 95 * + - 69 + 40 AS col1
----
-6515

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT + COUNT ( - 37 ) * + 95 * + - 69 + 40 AS col1
----
-6515

query I rowsort
SELECT + NULLIF ( 14, 54 - 67 ) AS col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9647
SELECT + 2 DIV - + 96
----
0

skipif mysql # not compatible
query I rowsort label-9647
SELECT + 2 / - + 96
----
0

query I rowsort
SELECT + 37 * 26 + - + 17 AS col2
----
945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9649
SELECT ALL 50 * + COUNT( * ) + + CAST( AVG ( DISTINCT 52 ) AS SIGNED ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL 50 * + COUNT ( * ) + + CAST ( AVG ( DISTINCT 52 ) AS INTEGER ) AS col0
----
102

query I rowsort
SELECT - 84 * - - 12 AS col0
----
-1008

query I rowsort
SELECT ALL NULLIF ( - COALESCE ( - 0, 16 ), + 44 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9652
SELECT ALL ( - - 98 ) * - - 38 + - + 76 * ( 39 ) DIV 41
----
3652

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL ( - - 98 ) * - - 38 + - + 76 * ( 39 ) / 41
----
3652

query I rowsort
SELECT + CASE + 83 WHEN + 63 THEN NULL WHEN - 57 THEN + 2 + + 34 WHEN 81 + ( - 36 ) THEN 88 + 92 ELSE NULL END / + 11
----
NULL

query I rowsort
SELECT ALL 87 * - - 98 + 90 + + 74 * 38 + 61
----
11489

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT SUM( DISTINCT 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9655
SELECT SUM ( DISTINCT 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT + 49 * + - COUNT( * ) * - ( 60 ) * COUNT( * )
----
2940

skipif mysql # not compatible
query I rowsort label-9656
SELECT + 49 * + - COUNT ( * ) * - ( 60 ) * COUNT ( * )
----
2940

query I rowsort
SELECT ALL - 22 + + 34 AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9658
SELECT COUNT( * ) AS col0, ( + 41 ) * - - 33 AS col2
----
1
1353

skipif mysql # not compatible
query II rowsort label-9658
SELECT COUNT ( * ) AS col0, ( + 41 ) * - - 33 AS col2
----
1
1353

query I rowsort
SELECT ALL NULLIF ( - 53, + 74 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT DISTINCT SUM( ALL 44 ) + - 62 * - 19 AS col0
----
1222

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT SUM ( ALL 44 ) + - 62 * - 19 AS col0
----
1222

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT - CASE + + COUNT( * ) WHEN AVG ( ALL - 74 ) THEN + - 79 WHEN 86 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT - CASE + + COUNT ( * ) WHEN AVG ( ALL - 74 ) THEN + - 79 WHEN 86 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - + 93 + 62 + - - 24
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT - + MAX( - 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9663
SELECT - + MAX ( - 72 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT DISTINCT - 71 * + COUNT( * ) * - 73 - - - 52 * + 82 AS col2
----
919

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT - 71 * + COUNT ( * ) * - 73 - - - 52 * + 82 AS col2
----
919

query II rowsort
SELECT - - 45, 11 + + - 67 AS col0
----
45
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9666
SELECT - + COUNT( * ) * + 25 * + CAST( - - 93 AS SIGNED )
----
-2325

skipif mysql # not compatible
query I rowsort label-9666
SELECT - + COUNT ( * ) * + 25 * + CAST ( - - 93 AS INTEGER )
----
-2325

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9667
SELECT ALL + - 55 * - CAST( NULL AS DECIMAL ) / + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL + - 55 * - CAST ( NULL AS REAL ) / + + 96
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9668
SELECT - - CAST( 49 AS SIGNED ) - - 92 + - - 33 + + 27 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT - - CAST ( 49 AS INTEGER ) - - 92 + - - 33 + + 27 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 0 + - 76 + 88 * - 43 col2
----
-3860

query II rowsort
SELECT ALL + 99 AS col0, 10 * + - 92
----
99
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL - - ( + ( + + MIN( ALL 36 ) ) )
----
36

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL - - ( + ( + + MIN ( ALL 36 ) ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT + MAX( - - 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9672
SELECT + MAX ( - - 98 ) AS col2
----
98

query II rowsort
SELECT 34 * - 40 * + - 11 AS col2, 96
----
14960
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT + 51 * + 25 * + - 53 + - + CASE - 79 WHEN 23 THEN + MAX( - ( - 19 ) ) + + 8 * 64 WHEN + COUNT( * ) THEN 38 WHEN 3 THEN NULL WHEN 82 THEN NULL END - COUNT( * ) * 3 * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9674
SELECT + 51 * + 25 * + - 53 + - + CASE - 79 WHEN 23 THEN + MAX ( - ( - 19 ) ) + + 8 * 64 WHEN + COUNT ( * ) THEN 38 WHEN 3 THEN NULL WHEN 82 THEN NULL END - COUNT ( * ) * 3 * + 35
----
NULL

query I rowsort
SELECT + - ( - + 12 ) AS col0
----
12

query I rowsort
SELECT + NULLIF ( - 28, 1 ) AS col0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-9677
SELECT + 78 DIV + - 48 + + 78 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9677
SELECT + 78 / + - 48 + + 78 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT - COUNT( * ) * + ( ( - - 20 ) ) * - 68 * + 83 AS col0
----
112880

skipif mysql # not compatible
query I rowsort label-9678
SELECT - COUNT ( * ) * + ( ( - - 20 ) ) * - 68 * + 83 AS col0
----
112880

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL 74 * - MIN( + + 52 ) * 52 + 92
----
-200004

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL 74 * - MIN ( + + 52 ) * 52 + 92
----
-200004

onlyif mysql # aggregate syntax: 
query II rowsort label-9680
SELECT + 98 AS col1, - COUNT( * ) + 74 AS col2
----
98
73

skipif mysql # not compatible
query II rowsort label-9680
SELECT + 98 AS col1, - COUNT ( * ) + 74 AS col2
----
98
73

query II rowsort
SELECT DISTINCT - 27 col0, 27 col0
----
-27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT ALL 27 + - ( + COUNT( * ) ) - + 55 * 70 * NULLIF ( 49, - 71 + - COALESCE ( + 85, MIN( 33 ), + 77 + - 26 ) )
----
-188624

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL 27 + - ( + COUNT ( * ) ) - + 55 * 70 * NULLIF ( 49, - 71 + - COALESCE ( + 85, MIN ( 33 ), + 77 + - 26 ) )
----
-188624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9683
SELECT MAX( DISTINCT - + 52 ) * - COALESCE ( - ( 96 ), - COUNT( * ) * 71 + + 56 DIV 7 ) AS col0
----
-4992

skipif mysql # not compatible
query I rowsort label-9683
SELECT MAX ( DISTINCT - + 52 ) * - COALESCE ( - ( 96 ), - COUNT ( * ) * 71 + + 56 / 7 ) AS col0
----
-4992

query I rowsort
SELECT ALL + 53 + + 92 * 31
----
2905

query I rowsort
SELECT 62 * + 87 + - 72 col0
----
5322

query II rowsort
SELECT + 60, 72 AS col0
----
60
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9687
SELECT + 15 col2, - COALESCE ( + COUNT( * ), + - CAST( - 66 AS SIGNED ) * + 51 + + 4 ) AS col0
----
15
-1

skipif mysql # not compatible
query II rowsort label-9687
SELECT + 15 col2, - COALESCE ( + COUNT ( * ), + - CAST ( - 66 AS INTEGER ) * + 51 + + 4 ) AS col0
----
15
-1

query I rowsort
SELECT ALL 67 + + 82 * + 74
----
6135

query I rowsort
SELECT 65 + 12
----
77

query I rowsort
SELECT ALL - 90 + - + 31 AS col1
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9691
SELECT CASE - - CAST( - 41 AS SIGNED ) WHEN + 8 THEN + - MAX( DISTINCT + NULLIF ( - 70, - 53 ) ) * + 59 END * 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT CASE - - CAST ( - 41 AS INTEGER ) WHEN + 8 THEN + - MAX ( DISTINCT + NULLIF ( - 70, - 53 ) ) * + 59 END * 37 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT DISTINCT 72 DIV + ( - 98 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT 72 / + ( - 98 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9693
SELECT 90 - + 33 * ( + 53 ) * - ( + - SUM( DISTINCT - 98 ) ) DIV COUNT( * ) + 26 DIV 64
----
171492

skipif mysql # not compatible
query I rowsort label-9693
SELECT 90 - + 33 * ( + 53 ) * - ( + - SUM ( DISTINCT - 98 ) ) / COUNT ( * ) + 26 / 64
----
171492

query II rowsort
SELECT DISTINCT 31 AS col2, - 14
----
31
-14

query I rowsort
SELECT - 57 * 93 + + 69
----
-5232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9696
SELECT CASE - 4 WHEN CAST( ( - ( - - 76 ) ) AS SIGNED ) THEN 87 + + 26 WHEN + COUNT( * ) THEN + COUNT( * ) WHEN + 84 - + 9 THEN NULL END * MIN( 60 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT CASE - 4 WHEN CAST ( ( - ( - - 76 ) ) AS INTEGER ) THEN 87 + + 26 WHEN + COUNT ( * ) THEN + COUNT ( * ) WHEN + 84 - + 9 THEN NULL END * MIN ( 60 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT COUNT( * ) + - 82 * + COUNT( 82 )
----
-81

skipif mysql # not compatible
query I rowsort label-9697
SELECT COUNT ( * ) + - 82 * + COUNT ( 82 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT - CAST( + + CAST( 9 AS SIGNED ) AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-9698
SELECT - CAST ( + + CAST ( 9 AS INTEGER ) AS INTEGER )
----
-9

query II rowsort
SELECT DISTINCT 96, 10 * - 93 AS col1
----
96
-930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9700
SELECT - 32 DIV - - MIN( DISTINCT - - 77 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9700
SELECT - 32 / - - MIN ( DISTINCT - - 77 ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT ALL CAST( NULL AS SIGNED ) - + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL CAST ( NULL AS INTEGER ) - + 49 AS col0
----
NULL

query I rowsort
SELECT 93 + + 15 + + NULLIF ( - - 55, - + 95 ) AS col0
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL + SUM( + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL + SUM ( + 2 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9704
SELECT ALL + COUNT( * ) * 0 AS col1, 91 * + 55 + - 3
----
0
5002

skipif mysql # not compatible
query II rowsort label-9704
SELECT ALL + COUNT ( * ) * 0 AS col1, 91 * + 55 + - 3
----
0
5002

query II rowsort
SELECT DISTINCT + 44 AS col2, 56 AS col2
----
44
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9706
SELECT 81 AS col1, 35 DIV SUM( ALL + 50 ) AS col2
----
81
0

skipif mysql # not compatible
query II rowsort label-9706
SELECT 81 AS col1, 35 / SUM ( ALL + 50 ) AS col2
----
81
0

query I rowsort
SELECT 49 * + + 95 + + + 30
----
4685

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT + COUNT( * ) * - - ( + 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9708
SELECT + COUNT ( * ) * - - ( + 33 ) AS col2
----
33

query I rowsort
SELECT ALL + - 35 * + + 83 + 85 AS col2
----
-2820

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT 80 + - + COUNT( * ) + 29 * + 22 AS col0
----
717

skipif mysql # not compatible
query I rowsort label-9710
SELECT 80 + - + COUNT ( * ) + 29 * + 22 AS col0
----
717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9711
SELECT - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 86 * 2 + - - 42 AS col2
----
214

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT ALL MAX( ALL - 24 ) * + 8
----
-192

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL MAX ( ALL - 24 ) * + 8
----
-192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9714
SELECT DISTINCT - COALESCE ( - - 29, - MAX( DISTINCT ( + 10 ) ) - - + 77 + - 11 DIV 85, + 15 + + 53 )
----
-29

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT - COALESCE ( - - 29, - MAX ( DISTINCT ( + 10 ) ) - - + 77 + - 11 / 85, + 15 + + 53 )
----
-29

query I rowsort
SELECT ALL 85 + 89
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9716
SELECT ALL - ( - + 4 ) + + COUNT( DISTINCT + - CAST( + 94 AS SIGNED ) ) + + + CAST( - 98 AS SIGNED ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL - ( - + 4 ) + + COUNT ( DISTINCT + - CAST ( + 94 AS INTEGER ) ) + + + CAST ( - 98 AS INTEGER ) AS col1
----
-93

query I rowsort
SELECT DISTINCT + 39 + - - 63 - - - 87 AS col1
----
15

query II rowsort
SELECT + 86 * + 64 + 15 AS col1, 42
----
5519
42

query I rowsort
SELECT ALL + 21 + 65 AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9720
SELECT + 92 * 94 * + - COUNT( * ) + - CAST( - 12 AS SIGNED ), + 37 + - + 61 AS col1
----
-8636
-24

skipif mysql # not compatible
query II rowsort label-9720
SELECT + 92 * 94 * + - COUNT ( * ) + - CAST ( - 12 AS INTEGER ), + 37 + - + 61 AS col1
----
-8636
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT DISTINCT - NULLIF ( 94, - COUNT( * ) ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT - NULLIF ( 94, - COUNT ( * ) ) AS col1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT ALL - 94 + 80 + CAST( NULL AS SIGNED ) / - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL - 94 + 80 + CAST ( NULL AS INTEGER ) / - 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9723
SELECT 55 DIV + + 87 col0
----
0

skipif mysql # not compatible
query I rowsort label-9723
SELECT 55 / + + 87 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL + COUNT( * ) + + 25 * - - 74 AS col2
----
1851

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL + COUNT ( * ) + + 25 * - - 74 AS col2
----
1851

query I rowsort
SELECT DISTINCT - COALESCE ( - 61, + 45 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT 0 + + ( MIN( + - 22 ) ) - 10 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-9726
SELECT 0 + + ( MIN ( + - 22 ) ) - 10 AS col0
----
-32

query I rowsort
SELECT ALL - 59 - + - 66 * CASE - ( + 6 ) WHEN 20 THEN NULL WHEN - + 14 / 93 THEN NULL ELSE 86 END + 29 AS col1
----
5646

query I rowsort
SELECT ( - 29 ) * - + 58
----
1682

query I rowsort
SELECT DISTINCT + ( 15 ) AS col0
----
15

query I rowsort
SELECT DISTINCT 18 * - 55 - + 70 + + 49 AS col0
----
-1011

onlyif mysql # aggregate syntax: 
query II rowsort label-9731
SELECT SUM( + + 24 ), 83 AS col2
----
24
83

skipif mysql # not compatible
query II rowsort label-9731
SELECT SUM ( + + 24 ), 83 AS col2
----
24
83

query I rowsort
SELECT - 36 * + ( 67 )
----
-2412

query I rowsort
SELECT - - 97 + + - ( - - 42 ) AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9734
SELECT DISTINCT - COUNT( * ) * + 67 * 67 * - CAST( NULL AS SIGNED ) / - + 88 + ( SUM( ALL - 83 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT - COUNT ( * ) * + 67 * 67 * - CAST ( NULL AS INTEGER ) / - + 88 + ( SUM ( ALL - 83 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + + 17 * + COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9735
SELECT + + 17 * + COUNT ( * ) AS col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9736
SELECT + ( - 64 ) DIV + 97 * ( - 11 ) - - 49 + + 23 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9736
SELECT + ( - 64 ) / + 97 * ( - 11 ) - - 49 + + 23 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT ALL 7 + - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL 7 + - COUNT ( * )
----
6

query I rowsort
SELECT + 77 - + ( - + 18 )
----
95

query I rowsort
SELECT DISTINCT 51 * + - 7
----
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT + 90 + - SUM( - 15 ) AS col1
----
105

skipif mysql # not compatible
query I rowsort label-9740
SELECT + 90 + - SUM ( - 15 ) AS col1
----
105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9741
SELECT ALL - COUNT( * ) / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL - COUNT ( * ) / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9742
SELECT + - COUNT( * ) DIV + 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9742
SELECT + - COUNT ( * ) / + 52 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL - ( + ( + 66 ) ) + - - COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL - ( + ( + 66 ) ) + - - COUNT ( * ) AS col1
----
-65

query I rowsort
SELECT ALL 73 + 74 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT - ( ( + - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9745
SELECT - ( ( + - COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9746
SELECT DISTINCT 91 + + CASE - + 97 WHEN + 72 + 76 + + 19 * - - CAST( + 21 AS SIGNED ) THEN NULL WHEN 72 * + 41 THEN 69 ELSE + 76 END * - 99 col2
----
-7433

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT 91 + + CASE - + 97 WHEN + 72 + 76 + + 19 * - - CAST ( + 21 AS INTEGER ) THEN NULL WHEN 72 * + 41 THEN 69 ELSE + 76 END * - 99 col2
----
-7433

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT + CASE - MIN( DISTINCT - - 63 ) WHEN - 11 / - 55 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT + CASE - MIN ( DISTINCT - - 63 ) WHEN - 11 / - 55 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 56 + + + 46
----
102

query II rowsort
SELECT ALL + 10 AS col2, + 9 AS col2
----
10
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9750
SELECT DISTINCT 43 * COUNT( * ) - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT 43 * COUNT ( * ) - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + 55, - 20 + - 27 AS col1
----
55
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9752
SELECT - 43 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9752
SELECT - 43 / - 79 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9753
SELECT + NULLIF ( + + 7, - 52 * + CAST( NULL AS SIGNED ) / COUNT( * ) + - - 67 ) + COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9753
SELECT + NULLIF ( + + 7, - 52 * + CAST ( NULL AS INTEGER ) / COUNT ( * ) + - - 67 ) + COUNT ( * ) AS col1
----
8

query I rowsort
SELECT CASE WHEN NULL <> ( NULL ) THEN + + 62 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9755
SELECT 27 * 22 + 32 + + COUNT( * ) + ( 91 ), CASE - 29 WHEN 24 * 94 THEN NULL WHEN - 69 + 60 THEN 49 * 53 ELSE NULL END AS col0
----
718
NULL

skipif mysql # not compatible
query II rowsort label-9755
SELECT 27 * 22 + 32 + + COUNT ( * ) + ( 91 ), CASE - 29 WHEN 24 * 94 THEN NULL WHEN - 69 + 60 THEN 49 * 53 ELSE NULL END AS col0
----
718
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9756
SELECT - 13 * + MIN( + 73 ) col2, 67 + - 26 AS col1
----
-949
41

skipif mysql # not compatible
query II rowsort label-9756
SELECT - 13 * + MIN ( + 73 ) col2, 67 + - 26 AS col1
----
-949
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT ALL 48 DIV - - 30
----
1

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL 48 / - - 30
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9758
SELECT DISTINCT + NULLIF ( COALESCE ( - 49, + COALESCE ( - 82, + + MAX( DISTINCT + 37 ), + 61 * 89 + + 97 * 20 ) * 77 + CAST( NULL AS SIGNED ) * 13 ), - COUNT( * ) * 43 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT + NULLIF ( COALESCE ( - 49, + COALESCE ( - 82, + + MAX ( DISTINCT + 37 ), + 61 * 89 + + 97 * 20 ) * 77 + CAST ( NULL AS INTEGER ) * 13 ), - COUNT ( * ) * 43 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL - COALESCE ( + - ( 53 ), - - 88 * 81 * - - MAX( - 72 ) * ( - 54 ), 23 ) * + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL - COALESCE ( + - ( 53 ), - - 88 * 81 * - - MAX ( - 72 ) * ( - 54 ), 23 ) * + 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9760
SELECT - - 45 DIV CASE + 20 WHEN 56 * + + ( - 73 ) THEN + + 38 ELSE + 78 END
----
0

skipif mysql # not compatible
query I rowsort label-9760
SELECT - - 45 / CASE + 20 WHEN 56 * + + ( - 73 ) THEN + + 38 ELSE + 78 END
----
0

query I rowsort
SELECT DISTINCT - + 6 * - - 76 AS col1
----
-456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9762
SELECT + 89 * - ( + 78 ) + - MIN( DISTINCT 40 ) + 42 + + 32 DIV + - 43
----
-6940

skipif mysql # not compatible
query I rowsort label-9762
SELECT + 89 * - ( + 78 ) + - MIN ( DISTINCT 40 ) + 42 + + 32 / + - 43
----
-6940

query II rowsort
SELECT ALL 9 AS col2, 84 AS col2
----
9
84

query II rowsort
SELECT - 42 AS col1, 9
----
-42
9

query II rowsort
SELECT 35 AS col0, 81 AS col0
----
35
81

query I rowsort
SELECT + 3 * 30 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT + COUNT( * ) + + + 80 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9767
SELECT + COUNT ( * ) + + + 80 AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9768
SELECT ALL CAST( 61 AS SIGNED ) + + ( 73 ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL CAST ( 61 AS INTEGER ) + + ( 73 ) AS col2
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-9769
SELECT - SUM( DISTINCT - 52 ) + - MAX( 74 ) + 27 + - 27 AS col1, 81
----
-22
81

skipif mysql # not compatible
query II rowsort label-9769
SELECT - SUM ( DISTINCT - 52 ) + - MAX ( 74 ) + 27 + - 27 AS col1, 81
----
-22
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9770
SELECT DISTINCT 21 AS col0, + COUNT( * )
----
21
1

skipif mysql # not compatible
query II rowsort label-9770
SELECT DISTINCT 21 AS col0, + COUNT ( * )
----
21
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT DISTINCT - 38 + + 2 + - + CASE + - COUNT( * ) WHEN - 50 * - - 82 THEN + 68 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT - 38 + + 2 + - + CASE + - COUNT ( * ) WHEN - 50 * - - 82 THEN + 68 END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL + CASE + ( + + 23 ) WHEN + AVG ( - - 94 ) * + 1 + + + 79 + + + 67 + ( + 64 ) * - 52 * - CASE 3 + 0 WHEN 82 THEN 43 * + 76 ELSE - 62 END * 98 THEN + COUNT( * ) ELSE 69 + + 52 END AS col1
----
121

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL + CASE + ( + + 23 ) WHEN + AVG ( - - 94 ) * + 1 + + + 79 + + + 67 + ( + 64 ) * - 52 * - CASE 3 + 0 WHEN 82 THEN 43 * + 76 ELSE - 62 END * 98 THEN + COUNT ( * ) ELSE 69 + + 52 END AS col1
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-9773
SELECT 91 AS col2, COUNT( ALL - 12 ) AS col1
----
91
1

skipif mysql # not compatible
query II rowsort label-9773
SELECT 91 AS col2, COUNT ( ALL - 12 ) AS col1
----
91
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9774
SELECT ALL + + MAX( + CAST( - 14 AS SIGNED ) ) + + 36 - + - 58 + - + 39 * + 77 * - 86
----
258338

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + + MAX ( + CAST ( - 14 AS INTEGER ) ) + + 36 - + - 58 + - + 39 * + 77 * - 86
----
258338

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL - COUNT( * ) + + MAX( 85 ) + + 93
----
177

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL - COUNT ( * ) + + MAX ( 85 ) + + 93
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT - - 50 DIV 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9776
SELECT - - 50 / 75 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9777
SELECT + 24 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9777
SELECT + 24 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 34 AS col1, 49 * 20 * 70
----
34
68600

onlyif mysql # aggregate syntax: 
query II rowsort label-9779
SELECT - 61 AS col2, + COUNT( * )
----
-61
1

skipif mysql # not compatible
query II rowsort label-9779
SELECT - 61 AS col2, + COUNT ( * )
----
-61
1

query I rowsort
SELECT ALL + 22 + + - 75
----
-53

query I rowsort
SELECT - CASE - - 23 WHEN 94 THEN NULL ELSE - 86 END AS col0
----
86

query I rowsort
SELECT + 56 * - 45
----
-2520

onlyif mysql # DIV for integer division: 
query I rowsort label-9783
SELECT ALL - ( - 13 ) * - 69 + - 97 * 58 DIV NULLIF ( + NULLIF ( - 70, NULLIF ( + 96, - 27 * CASE + 77 WHEN 7 THEN NULL WHEN 73 THEN 63 ELSE 8 * 2 END ) * 9 + + 53 * 24 ), COALESCE ( + 46, + 54 ) ) DIV - 14 + + 23
----
-879

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL - ( - 13 ) * - 69 + - 97 * 58 / NULLIF ( + NULLIF ( - 70, NULLIF ( + 96, - 27 * CASE + 77 WHEN 7 THEN NULL WHEN 73 THEN 63 ELSE 8 * 2 END ) * 9 + + 53 * 24 ), COALESCE ( + 46, + 54 ) ) / - 14 + + 23
----
-879

query I rowsort
SELECT DISTINCT + 49 * 14 AS col0
----
686

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9785
SELECT DISTINCT 3 DIV - ( 68 ) * 23, 73 * + COUNT( * ) + COUNT( * ) AS col1
----
0
74

skipif mysql # not compatible
query II rowsort label-9785
SELECT DISTINCT 3 / - ( 68 ) * 23, 73 * + COUNT ( * ) + COUNT ( * ) AS col1
----
0
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9786
SELECT DISTINCT 71 DIV + - 19 - - 88 + 63 + + 42 * MIN( - + NULLIF ( - 95, - 24 ) ) * + 81 col1
----
323338

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT 71 / + - 19 - - 88 + 63 + + 42 * MIN ( - + NULLIF ( - 95, - 24 ) ) * + 81 col1
----
323338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9787
SELECT CAST( + + COUNT( * ) AS SIGNED ) AS col0, 96
----
1
96

skipif mysql # not compatible
query II rowsort label-9787
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) AS col0, 96
----
1
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9788
SELECT + COALESCE ( + NULLIF ( - + 94, + 35 * + 12 + - 55 * 86 - + 82 ), + SUM( DISTINCT 34 ) - COUNT( * ) ) + COUNT( + 0 ) DIV 93 col0
----
-94

skipif mysql # not compatible
query I rowsort label-9788
SELECT + COALESCE ( + NULLIF ( - + 94, + 35 * + 12 + - 55 * 86 - + 82 ), + SUM ( DISTINCT 34 ) - COUNT ( * ) ) + COUNT ( + 0 ) / 93 col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9789
SELECT DISTINCT COUNT( * ) DIV 85 DIV + 94 - + 87 AS col1, - 64 - + 2 AS col2
----
-87
-66

skipif mysql # not compatible
query II rowsort label-9789
SELECT DISTINCT COUNT ( * ) / 85 / + 94 - + 87 AS col1, - 64 - + 2 AS col2
----
-87
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT + COALESCE ( - COUNT( * ), + 12 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9790
SELECT + COALESCE ( - COUNT ( * ), + 12 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9791
SELECT 31 * SUM( DISTINCT - 84 ) + + CAST( NULL AS SIGNED ) + 77 - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT 31 * SUM ( DISTINCT - 84 ) + + CAST ( NULL AS INTEGER ) + 77 - - 5
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT CAST( NULLIF ( + ( - + 66 ), - + 48 ) AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-9792
SELECT CAST ( NULLIF ( + ( - + 66 ), - + 48 ) AS INTEGER )
----
-66

query II rowsort
SELECT + 66 * - 1, + 99 AS col2
----
-66
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9794
SELECT CAST( - 94 AS SIGNED ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-9794
SELECT CAST ( - 94 AS INTEGER ) AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9795
SELECT - 89 + + COUNT( * ) DIV + 20
----
-89

skipif mysql # not compatible
query I rowsort label-9795
SELECT - 89 + + COUNT ( * ) / + 20
----
-89

query I rowsort
SELECT DISTINCT 7 * - + 14 * - - 85
----
-8330

query I rowsort
SELECT + 36 * 66 * - 9
----
-21384

query I rowsort
SELECT ALL 42 * - 79 AS col1
----
-3318

query I rowsort
SELECT 78 * + 90
----
7020

query I rowsort
SELECT - 79 * - 48 + + 2 + - 50 - 45 AS col2
----
3699

query II rowsort
SELECT DISTINCT + + 4 + - + 27, 5 AS col1
----
-23
5

query I rowsort
SELECT ( + + 9 ) - + 18 AS col2
----
-9

query I rowsort
SELECT ALL + + ( - 23 ) * + 41 * 19 * + - 75 AS col0
----
1343775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT DISTINCT CAST( NULL AS SIGNED ) + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT DISTINCT + 45 * + ( - + COUNT( * ) ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT + 45 * + ( - + COUNT ( * ) ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9806
SELECT ALL + - 61 + 98 AS col2, - CASE - + COUNT( * ) WHEN + 25 THEN 28 * MIN( DISTINCT 37 ) / + - 62 * - 64 + - 62 * + 91 WHEN MIN( DISTINCT 43 ) THEN NULL ELSE NULL END * 94
----
37
NULL

skipif mysql # not compatible
query II rowsort label-9806
SELECT ALL + - 61 + 98 AS col2, - CASE - + COUNT ( * ) WHEN + 25 THEN 28 * MIN ( DISTINCT 37 ) / + - 62 * - 64 + - 62 * + 91 WHEN MIN ( DISTINCT 43 ) THEN NULL ELSE NULL END * 94
----
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT DISTINCT + CASE - COUNT( * ) WHEN 50 THEN 12 - 13 * 65 + - 89 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT + CASE - COUNT ( * ) WHEN 50 THEN 12 - 13 * 65 + - 89 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ALL + + 36 * - SUM( - 22 ) AS col2
----
792

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL + + 36 * - SUM ( - 22 ) AS col2
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL - 43 * + COUNT( * ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL - 43 * + COUNT ( * ) col0
----
-43

query I rowsort
SELECT + 4 + 82
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ALL COALESCE ( - - 69, - - 76, - COUNT( * ) + + 90 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL COALESCE ( - - 69, - - 76, - COUNT ( * ) + + 90 ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9812
SELECT ALL - 93 - - CASE + + 53 WHEN ( + 15 ) THEN + COALESCE ( + NULLIF ( 59, + COUNT( * ) ), - CAST( NULL AS SIGNED ) ) END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL - 93 - - CASE + + 53 WHEN ( + 15 ) THEN + COALESCE ( + NULLIF ( 59, + COUNT ( * ) ), - CAST ( NULL AS INTEGER ) ) END * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 61 * + + 14
----
854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT 59 + - 73 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT 59 + - 73 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9815
SELECT - 46 AS col0, + SUM( - - 73 ) AS col1, + 31
----
-46
73
31

skipif mysql # not compatible
query III rowsort label-9815
SELECT - 46 AS col0, + SUM ( - - 73 ) AS col1, + 31
----
-46
73
31

query I rowsort
SELECT ALL 62 * - ( 53 )
----
-3286

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT ALL MIN( 95 ) * COUNT( * ) / + - 49 * - - COUNT( * ) * 30 * + CASE - 20 WHEN 90 THEN 32 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL MIN ( 95 ) * COUNT ( * ) / + - 49 * - - COUNT ( * ) * 30 * + CASE - 20 WHEN 90 THEN 32 WHEN COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 63 * - + 92
----
-5796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9819
SELECT + 12 col1, - SUM( ( - 1 ) ) + - CAST( 49 AS SIGNED )
----
12
-48

skipif mysql # not compatible
query II rowsort label-9819
SELECT + 12 col1, - SUM ( ( - 1 ) ) + - CAST ( 49 AS INTEGER )
----
12
-48

query I rowsort
SELECT 64 * + - 0 * 15 - 21
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9821
SELECT COALESCE ( 11, + + 65 * - 18 ) * - SUM( + - 91 ) + - MAX( - CAST( NULL AS SIGNED ) ) / - COALESCE ( 49, 87 / - 81 + COUNT( * ), - 47 * - 7 ) * 89 - - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT COALESCE ( 11, + + 65 * - 18 ) * - SUM ( + - 91 ) + - MAX ( - CAST ( NULL AS INTEGER ) ) / - COALESCE ( 49, 87 / - 81 + COUNT ( * ), - 47 * - 7 ) * 89 - - 38
----
NULL

query I rowsort
SELECT DISTINCT + 55 * + - 99 AS col1
----
-5445

query I rowsort
SELECT ALL - 0 * - 1 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9824
SELECT ALL ( - 28 ) DIV - 45 * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL ( - 28 ) / - 45 * COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 18 * 64 AS col1
----
1152

query I rowsort
SELECT ALL 18 + 71 AS col1
----
89

query I rowsort
SELECT 1 * - - 12 * + + 92 - - 48
----
1152

onlyif mysql # aggregate syntax: 
query II rowsort label-9828
SELECT 65 col2, - COUNT( * ) AS col0
----
65
-1

skipif mysql # not compatible
query II rowsort label-9828
SELECT 65 col2, - COUNT ( * ) AS col0
----
65
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9829
SELECT 93 * NULLIF ( + COALESCE ( COALESCE ( - - 2, - + COUNT( * ) ), - 17 ), + CAST( NULL AS DECIMAL ) * 39 + + COALESCE ( - 61, - ( 61 ) + 84 * + COUNT( * ) ) ) AS col1
----
186

skipif mysql # not compatible
query I rowsort label-9829
SELECT 93 * NULLIF ( + COALESCE ( COALESCE ( - - 2, - + COUNT ( * ) ), - 17 ), + CAST ( NULL AS REAL ) * 39 + + COALESCE ( - 61, - ( 61 ) + 84 * + COUNT ( * ) ) ) AS col1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT + 76 * COALESCE ( COUNT( * ), COUNT( * ) * + + 11 - - 19 + - 77, + 0 )
----
76

skipif mysql # not compatible
query I rowsort label-9830
SELECT + 76 * COALESCE ( COUNT ( * ), COUNT ( * ) * + + 11 - - 19 + - 77, + 0 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT ALL - AVG ( + - CAST( NULL AS SIGNED ) ) + + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL - AVG ( + - CAST ( NULL AS INTEGER ) ) + + 96 AS col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 44, - 28 / - 35 / + 40 / - 12 ) * - 43
----
1892

query I rowsort
SELECT - 43 + - 1 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ALL COUNT( * ) + + CASE + - 8 WHEN + COUNT( * ) THEN + 23 ELSE 37 - COUNT( * ) END
----
37

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL COUNT ( * ) + + CASE + - 8 WHEN + COUNT ( * ) THEN + 23 ELSE 37 - COUNT ( * ) END
----
37

query I rowsort
SELECT DISTINCT - + ( + 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT ALL - CASE 70 WHEN - 22 * MIN( ALL - - ( 3 ) ) * + + 37 THEN NULL WHEN 44 THEN NULL ELSE COUNT( * ) * - ( COUNT( * ) ) END + 29 * 99 AS col2
----
2872

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL - CASE 70 WHEN - 22 * MIN ( ALL - - ( 3 ) ) * + + 37 THEN NULL WHEN 44 THEN NULL ELSE COUNT ( * ) * - ( COUNT ( * ) ) END + 29 * 99 AS col2
----
2872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9837
SELECT COALESCE ( + 74, + 29, + 22 ) + - + 25 + - + 28 + + NULLIF ( + CAST( NULL AS SIGNED ), + MAX( - 66 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT COALESCE ( + 74, + 29, + 22 ) + - + 25 + - + 28 + + NULLIF ( + CAST ( NULL AS INTEGER ), + MAX ( - 66 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 58 + 81 * - 88 AS col0
----
-7070

query I rowsort
SELECT ALL + 97 - - + 3
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9840
SELECT ( + COUNT( - - ( - 14 ) ) ) + - - 8 DIV COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-9840
SELECT ( + COUNT ( - - ( - 14 ) ) ) + - - 8 / COUNT ( * )
----
9

query I rowsort
SELECT 62 * + 87 AS col1
----
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT - + SUM( + 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9842
SELECT - + SUM ( + 23 ) AS col1
----
-23

query I rowsort
SELECT ALL 39 - - 86 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT DISTINCT + COUNT( * ) * + COALESCE ( - 6, 58 * + + 64 + MIN( + 61 ) * + 87 )
----
-6

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT + COUNT ( * ) * + COALESCE ( - 6, 58 * + + 64 + MIN ( + 61 ) * + 87 )
----
-6

query II rowsort
SELECT ALL - 76 - 39, 96 AS col1
----
-115
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9846
SELECT 84 * 12 DIV - + NULLIF ( + 50, + 65 * - + 42 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-9846
SELECT 84 * 12 / - + NULLIF ( + 50, + 65 * - + 42 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT DISTINCT + 49 * - COUNT( - - 44 )
----
-49

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT + 49 * - COUNT ( - - 44 )
----
-49

query I rowsort
SELECT - COALESCE ( - ( + - COALESCE ( + 20, + - 56 ) ), + + 5 * + 6 ) AS col1
----
-20

query I rowsort
SELECT 3 + + 41
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT 74 * - 1 * + SUM( + 2 ) * - - 27 * 9
----
-35964

skipif mysql # not compatible
query I rowsort label-9850
SELECT 74 * - 1 * + SUM ( + 2 ) * - - 27 * 9
----
-35964

query I rowsort
SELECT 10 * - 92
----
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT MIN( - 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT MIN ( - 69 ) AS col0
----
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9853
SELECT DISTINCT 14, 34 * - CAST( NULL AS DECIMAL ) / - 67 * - + 12 + + 80 AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-9853
SELECT DISTINCT 14, 34 * - CAST ( NULL AS REAL ) / - 67 * - + 12 + + 80 AS col1
----
14
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9854
SELECT + 37 DIV + + SUM( ALL - 86 ) + - 33 * - 70 AS col2
----
2310

skipif mysql # not compatible
query I rowsort label-9854
SELECT + 37 / + + SUM ( ALL - 86 ) + - 33 * - 70 AS col2
----
2310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9855
SELECT ALL COALESCE ( - 37, - 36 * 92 ) * - + 40 + 57 + 40 + 97 * - - COALESCE ( - 30, - COUNT( * ) + + 92 * - COALESCE ( + 27, - 85 * - CAST( 37 * + 85 AS SIGNED ) ), COUNT( * ) ) + + 83 AS col2
----
-1250

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL COALESCE ( - 37, - 36 * 92 ) * - + 40 + 57 + 40 + 97 * - - COALESCE ( - 30, - COUNT ( * ) + + 92 * - COALESCE ( + 27, - 85 * - CAST ( 37 * + 85 AS INTEGER ) ), COUNT ( * ) ) + + 83 AS col2
----
-1250

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT + COALESCE ( + 71, + + 72 * CASE WHEN - 74 IS NULL THEN + MIN( 18 ) END ) col2
----
71

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT + COALESCE ( + 71, + + 72 * CASE WHEN - 74 IS NULL THEN + MIN ( 18 ) END ) col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9857
SELECT ALL ( - MIN( 75 ) ) * - 50, + CAST( COUNT( * ) AS SIGNED ) AS col1
----
3750
1

skipif mysql # not compatible
query II rowsort label-9857
SELECT ALL ( - MIN ( 75 ) ) * - 50, + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
3750
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9858
SELECT COALESCE ( - - 97, + - 46 * CASE CASE 23 WHEN + 99 - SUM( + - CASE + 25 WHEN + CAST( NULL AS SIGNED ) THEN + 84 + 2 WHEN + 7 THEN NULL ELSE NULL END ) * - 70 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN + 78 WHEN 68 THEN NULL END WHEN - NULLIF ( - 67, + 86 ) THEN 34 END * - 22 + 15 * + 84, - 10 * 68 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9858
SELECT COALESCE ( - - 97, + - 46 * CASE CASE 23 WHEN + 99 - SUM ( + - CASE + 25 WHEN + CAST ( NULL AS INTEGER ) THEN + 84 + 2 WHEN + 7 THEN NULL ELSE NULL END ) * - 70 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN + 78 WHEN 68 THEN NULL END WHEN - NULLIF ( - 67, + 86 ) THEN 34 END * - 22 + 15 * + 84, - 10 * 68 ) AS col1
----
97

query I rowsort
SELECT DISTINCT + 82 * - 73 + + 16
----
-5970

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9860
SELECT ALL - 49 * 54 * 96 + - + NULLIF ( + COUNT( * ), - 22 ) + - + 67 / + CASE - 57 WHEN - - 16 THEN NULL WHEN + + 10 / + 4 THEN 38 * COUNT( * ) + CAST( NULL AS DECIMAL ) END * 30 + 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - 49 * 54 * 96 + - + NULLIF ( + COUNT ( * ), - 22 ) + - + 67 / + CASE - 57 WHEN - - 16 THEN NULL WHEN + + 10 / + 4 THEN 38 * COUNT ( * ) + CAST ( NULL AS REAL ) END * 30 + 70 col2
----
NULL

query I rowsort
SELECT ( + + NULLIF ( 2, - - 94 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT - 0 * + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9862
SELECT - 0 * + COUNT ( * ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9863
SELECT ALL + - 12 * + - COUNT( * ) + + CAST( + 97 AS SIGNED ) AS col0, + CASE COUNT( * ) WHEN ( + - 10 ) THEN NULL WHEN 61 * + - CASE + 81 WHEN 11 THEN CASE 44 WHEN 71 THEN NULL ELSE 99 END END / CAST( 53 + 6 AS SIGNED ) THEN 90 END + - 31
----
109
NULL

skipif mysql # not compatible
query II rowsort label-9863
SELECT ALL + - 12 * + - COUNT ( * ) + + CAST ( + 97 AS INTEGER ) AS col0, + CASE COUNT ( * ) WHEN ( + - 10 ) THEN NULL WHEN 61 * + - CASE + 81 WHEN 11 THEN CASE 44 WHEN 71 THEN NULL ELSE 99 END END / CAST ( 53 + 6 AS INTEGER ) THEN 90 END + - 31
----
109
NULL

query II rowsort
SELECT ALL + - 57 AS col1, 13
----
-57
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL + + 13 * + - COUNT( * ) + COUNT( * ) + - + 53 + 46 - + 36
----
-55

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL + + 13 * + - COUNT ( * ) + COUNT ( * ) + - + 53 + 46 - + 36
----
-55

query I rowsort
SELECT DISTINCT + 9 * - 96 * 41
----
-35424

onlyif mysql # aggregate syntax: 
query II rowsort label-9867
SELECT DISTINCT + + COUNT( * ) AS col2, + 9 * + 38 col1
----
1
342

skipif mysql # not compatible
query II rowsort label-9867
SELECT DISTINCT + + COUNT ( * ) AS col2, + 9 * + 38 col1
----
1
342

query I rowsort
SELECT DISTINCT + 87 * + 9 - + 26 AS col2
----
757

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9869
SELECT + 68 AS col1, COALESCE ( - COUNT( * ), - ( CAST( - 58 AS SIGNED ) ) ) + + + COUNT( * ) + - CASE - 44 WHEN 54 * 83 THEN NULL ELSE - 61 END * + 12
----
68
732

skipif mysql # not compatible
query II rowsort label-9869
SELECT + 68 AS col1, COALESCE ( - COUNT ( * ), - ( CAST ( - 58 AS INTEGER ) ) ) + + + COUNT ( * ) + - CASE - 44 WHEN 54 * 83 THEN NULL ELSE - 61 END * + 12
----
68
732

query I rowsort
SELECT + 16 * + 9 + + - 46 AS col1
----
98

query I rowsort
SELECT + + COALESCE ( + 37, + 5 ) AS col0
----
37

query I rowsort
SELECT + ( - + 21 ) - 8 + + 31 + + - 66 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9873
SELECT - + 30 AS col0, 11 * - + MIN( DISTINCT 43 ) + - + 45 + 64 * - 27
----
-30
-2246

skipif mysql # not compatible
query II rowsort label-9873
SELECT - + 30 AS col0, 11 * - + MIN ( DISTINCT 43 ) + - + 45 + 64 * - 27
----
-30
-2246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9874
SELECT ALL - CASE - 40 WHEN 28 * CAST( + COUNT( * ) AS SIGNED ) THEN NULL ELSE 15 * + 6 * - MIN( + 42 ) END
----
3780

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL - CASE - 40 WHEN 28 * CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL ELSE 15 * + 6 * - MIN ( + 42 ) END
----
3780

onlyif mysql # aggregate syntax: 
query II rowsort label-9875
SELECT - 69 col0, 96 * + COUNT( * ) * + 70 * + COUNT( * ) - 3
----
-69
6717

skipif mysql # not compatible
query II rowsort label-9875
SELECT - 69 col0, 96 * + COUNT ( * ) * + 70 * + COUNT ( * ) - 3
----
-69
6717

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT DISTINCT COUNT( * ) * 81 * - 72 * + 29 AS col1
----
-169128

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT COUNT ( * ) * 81 * - 72 * + 29 AS col1
----
-169128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT + CAST( NULL AS SIGNED ) * + - 7 / 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT + CAST ( NULL AS INTEGER ) * + - 7 / 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT + COUNT( * ) - - 33 * - 95 * 46
----
-144209

skipif mysql # not compatible
query I rowsort label-9878
SELECT + COUNT ( * ) - - 33 * - 95 * 46
----
-144209

query II rowsort
SELECT - 20 + 36 AS col1, + 22 col2
----
16
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9880
SELECT + CAST( - 9 AS SIGNED ) DIV MIN( DISTINCT + - 99 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9880
SELECT + CAST ( - 9 AS INTEGER ) / MIN ( DISTINCT + - 99 ) AS col2
----
0

query II rowsort
SELECT - 97 * - + 21, - 52 AS col0
----
2037
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL MIN( DISTINCT 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL MIN ( DISTINCT 28 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT DISTINCT - COALESCE ( + + 29, - + 54 * - - 41, - + 66 ) + - 12 * + + COUNT( * ) + + - 60 AS col2
----
-101

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT - COALESCE ( + + 29, - + 54 * - - 41, - + 66 ) + - 12 * + + COUNT ( * ) + + - 60 AS col2
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT DISTINCT 84 DIV + 13 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT 84 / + 13 AS col0
----
6

query II rowsort
SELECT ALL - 82 + + 75 * 73 AS col0, + 34
----
5393
34

query I rowsort
SELECT DISTINCT - 1 + - 28 AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT - CAST( + + 63 AS SIGNED ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-9887
SELECT - CAST ( + + 63 AS INTEGER ) AS col2
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9888
SELECT ALL - 5 DIV - 3 + - - 29 + + 68 * + 79 AS col1
----
5402

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL - 5 / - 3 + - - 29 + + 68 * + 79 AS col1
----
5402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9889
SELECT 38 * + - MAX( DISTINCT + 35 ) - + 65 DIV - 44
----
-1329

skipif mysql # not compatible
query I rowsort label-9889
SELECT 38 * + - MAX ( DISTINCT + 35 ) - + 65 / - 44
----
-1329

onlyif mysql # aggregate syntax: 
query II rowsort label-9890
SELECT + MIN( ALL 96 ) AS col1, 32
----
96
32

skipif mysql # not compatible
query II rowsort label-9890
SELECT + MIN ( ALL 96 ) AS col1, 32
----
96
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT DISTINCT 84 DIV + - 16 + + 12 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT 84 / + - 16 + + 12 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT - 26 * - NULLIF ( 20, 60 * - 29 * MIN( ALL + 53 ) * - 69 + 95 + + 37 + + 65 ) - - + 13 AS col1
----
533

skipif mysql # not compatible
query I rowsort label-9892
SELECT - 26 * - NULLIF ( 20, 60 * - 29 * MIN ( ALL + 53 ) * - 69 + 95 + + 37 + + 65 ) - - + 13 AS col1
----
533

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT + ( MAX( ALL - 45 ) ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-9893
SELECT + ( MAX ( ALL - 45 ) ) col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT - MIN( + + 50 ) + + 72 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9894
SELECT - MIN ( + + 50 ) + + 72 AS col2
----
22

query I rowsort
SELECT + - 54 * 92 - + 31 AS col1
----
-4999

query I rowsort
SELECT - 0 * - 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT DISTINCT - + 17 * + 81 + 64 * - COUNT( * ) AS col0
----
-1441

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT - + 17 * + 81 + 64 * - COUNT ( * ) AS col0
----
-1441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9898
SELECT - - COUNT( * ) * + 57 / - CAST( NULL AS SIGNED ) + - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT - - COUNT ( * ) * + 57 / - CAST ( NULL AS INTEGER ) + - 54 AS col2
----
NULL

query I rowsort
SELECT + 88 * 89 AS col1
----
7832

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9900
SELECT DISTINCT + ( - 76 ) AS col1, 94 - - + CAST( NULL AS SIGNED ) AS col2
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-9900
SELECT DISTINCT + ( - 76 ) AS col1, 94 - - + CAST ( NULL AS INTEGER ) AS col2
----
-76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL + + MAX( - ( - - 79 ) ) * 15 * + - ( 97 ) * + 95 - + 78
----
10919697

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + + MAX ( - ( - - 79 ) ) * 15 * + - ( 97 ) * + 95 - + 78
----
10919697

query I rowsort
SELECT - - 26 + + + 13 - + - 13 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT + + COUNT( * ) * + 32 * + - SUM( DISTINCT + 51 )
----
-1632

skipif mysql # not compatible
query I rowsort label-9903
SELECT + + COUNT ( * ) * + 32 * + - SUM ( DISTINCT + 51 )
----
-1632

onlyif mysql # DIV for integer division: 
query I rowsort label-9904
SELECT DISTINCT 3 DIV 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT 3 / 80 AS col1
----
0

query I rowsort
SELECT + NULLIF ( 88, + + 22 + + 69 )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-9906
SELECT + 11 * + + COUNT( + 85 ) + + 84 AS col0, - 66
----
95
-66

skipif mysql # not compatible
query II rowsort label-9906
SELECT + 11 * + + COUNT ( + 85 ) + + 84 AS col0, - 66
----
95
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9907
SELECT COUNT( * ), + 85 DIV COALESCE ( - + 61, - - 96 DIV - CAST( NULL AS SIGNED ) DIV + 25, - 45 * + 56 + - 18 + - 35 + 86 - 84 ) - + 88 col0
----
1
-89

skipif mysql # not compatible
query II rowsort label-9907
SELECT COUNT ( * ), + 85 / COALESCE ( - + 61, - - 96 / - CAST ( NULL AS INTEGER ) / + 25, - 45 * + 56 + - 18 + - 35 + 86 - 84 ) - + 88 col0
----
1
-89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9908
SELECT + 80 + COALESCE ( - + 15, + + 94 * 16 + - + 60, + 80 * - + 56 DIV + 85 - + 86 * + 75 ), CAST( NULL AS SIGNED ) + - 99 AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-9908
SELECT + 80 + COALESCE ( - + 15, + + 94 * 16 + - + 60, + 80 * - + 56 / + 85 - + 86 * + 75 ), CAST ( NULL AS INTEGER ) + - 99 AS col0
----
65
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT COUNT( * ), - 81 col1
----
1
-81

skipif mysql # not compatible
query II rowsort label-9909
SELECT COUNT ( * ), - 81 col1
----
1
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT + 85 + 25 + MIN( + 30 )
----
140

skipif mysql # not compatible
query I rowsort label-9910
SELECT + 85 + 25 + MIN ( + 30 )
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT DISTINCT - 68 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT - 68 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 31 * ( 21 ) AS col1
----
651

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL 43 + - NULLIF ( COUNT( DISTINCT - + 81 ), 5 + + + AVG ( 25 ) )
----
42

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL 43 + - NULLIF ( COUNT ( DISTINCT - + 81 ), 5 + + + AVG ( 25 ) )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9914
SELECT DISTINCT 14 col1, + 93 * + COUNT( * )
----
14
93

skipif mysql # not compatible
query II rowsort label-9914
SELECT DISTINCT 14 col1, + 93 * + COUNT ( * )
----
14
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9915
SELECT DISTINCT COUNT( * ) + - - ( 25 ) + - + COUNT( * ) * - 83 * 13 DIV - 24 + 37 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT COUNT ( * ) + - - ( 25 ) + - + COUNT ( * ) * - 83 * 13 / - 24 + 37 AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9916
SELECT 68 AS col0, - 64 - - 9 + + + COUNT( * ) DIV + NULLIF ( + COUNT( * ), - + COUNT( * ) ) * + COUNT( * ) + + ( + + MIN( - 41 ) ) - + COALESCE ( + - 99, COUNT( * ), + 26 ) * - ( 22 + 90 * ( 86 ) ) + 95 AS col2
----
68
-768438

skipif mysql # not compatible
query II rowsort label-9916
SELECT 68 AS col0, - 64 - - 9 + + + COUNT ( * ) / + NULLIF ( + COUNT ( * ), - + COUNT ( * ) ) * + COUNT ( * ) + + ( + + MIN ( - 41 ) ) - + COALESCE ( + - 99, COUNT ( * ), + 26 ) * - ( 22 + 90 * ( 86 ) ) + 95 AS col2
----
68
-768438

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL ( + COUNT( * ) ) + - 47 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL ( + COUNT ( * ) ) + - 47 AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-9918
SELECT ALL 65 DIV + + 89
----
0

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL 65 / + + 89
----
0

query I rowsort
SELECT ALL 77 + - - 38
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9920
SELECT - COUNT( DISTINCT - 56 ) DIV + + 69 + - 1, - 72 DIV 52
----
-1
-1

skipif mysql # not compatible
query II rowsort label-9920
SELECT - COUNT ( DISTINCT - 56 ) / + + 69 + - 1, - 72 / 52
----
-1
-1

query I rowsort
SELECT ALL - - 19 * - 4
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9922
SELECT ( + CAST( - 22 AS SIGNED ) ) * 79
----
-1738

skipif mysql # not compatible
query I rowsort label-9922
SELECT ( + CAST ( - 22 AS INTEGER ) ) * 79
----
-1738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9923
SELECT ALL 79 DIV - NULLIF ( - 36, + 26 + + - COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL 79 / - NULLIF ( - 36, + 26 + + - COUNT ( * ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9924
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + ( 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + ( 52 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9925
SELECT ALL 6 * 83 * ( CAST( NULL AS SIGNED ) ) * + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL 6 * 83 * ( CAST ( NULL AS INTEGER ) ) * + 22 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9926
SELECT DISTINCT - CASE 13 WHEN - COALESCE ( - 47, + 29 * 60 - - 96 + + - 20 - + COUNT( * ) - - - 30, 87 + - NULLIF ( + - COUNT( * ), 64 ), + AVG ( DISTINCT - 96 ) * - ( - 19 ) + - 47 ) * ( 46 ) THEN - 95 WHEN - 86 / + 7 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT - CASE 13 WHEN - COALESCE ( - 47, + 29 * 60 - - 96 + + - 20 - + COUNT ( * ) - - - 30, 87 + - NULLIF ( + - COUNT ( * ), 64 ), + AVG ( DISTINCT - 96 ) * - ( - 19 ) + - 47 ) * ( 46 ) THEN - 95 WHEN - 86 / + 7 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 88 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9927
SELECT - COUNT( * ) AS col1, COALESCE ( + 93, + + ( - + COUNT( * ) ) * 85 ) AS col2
----
-1
93

skipif mysql # not compatible
query II rowsort label-9927
SELECT - COUNT ( * ) AS col1, COALESCE ( + 93, + + ( - + COUNT ( * ) ) * 85 ) AS col2
----
-1
93

query I rowsort
SELECT ALL + 66 * + 83 AS col1
----
5478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT 47 * + 28 / + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9929
SELECT 47 * + 28 / + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9930
SELECT DISTINCT - + 13, 64 - - 95 * + - 21 * - - 95 * - 75 + + SUM( 99 ) AS col2
----
-13
14214538

skipif mysql # not compatible
query II rowsort label-9930
SELECT DISTINCT - + 13, 64 - - 95 * + - 21 * - - 95 * - 75 + + SUM ( 99 ) AS col2
----
-13
14214538

query I rowsort
SELECT 96 * + - 33 AS col1
----
-3168

onlyif mysql # DIV for integer division: 
query I rowsort label-9932
SELECT ALL - 83 DIV ( 28 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL - 83 / ( 28 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT + - SUM( - - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-9933
SELECT + - SUM ( - - 50 )
----
-50

query I rowsort
SELECT DISTINCT - 27 * + 37
----
-999

query I rowsort
SELECT DISTINCT + 72 + + 53
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT ALL - COUNT( * ) + + 45 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL - COUNT ( * ) + + 45 AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9937
SELECT DISTINCT + 73 + CASE + 24 WHEN + CAST( + COUNT( * ) AS DECIMAL ) + + NULLIF ( 0, + 21 ) + - CASE 41 WHEN + - 4 * - 16 THEN - COUNT( * ) ELSE 21 * 19 END * + 13 THEN + 95 - 48 WHEN - COUNT( * ) - SUM( CASE 24 WHEN + ( ( 45 ) ) THEN - 64 ELSE + 99 END ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT + 73 + CASE + 24 WHEN + CAST ( + COUNT ( * ) AS REAL ) + + NULLIF ( 0, + 21 ) + - CASE 41 WHEN + - 4 * - 16 THEN - COUNT ( * ) ELSE 21 * 19 END * + 13 THEN + 95 - 48 WHEN - COUNT ( * ) - SUM ( CASE 24 WHEN + ( ( 45 ) ) THEN - 64 ELSE + 99 END ) THEN NULL END col2
----
NULL

query I rowsort
SELECT ALL - 55 + ( 84 ) + + 97 + + 39 + - 89 AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT 93 + - 25 * COALESCE ( + CAST( - 87 AS SIGNED ), - - 43, + 68 ) * + + 62 + + + 1 col2
----
134944

skipif mysql # not compatible
query I rowsort label-9939
SELECT 93 + - 25 * COALESCE ( + CAST ( - 87 AS INTEGER ), - - 43, + 68 ) * + + 62 + + + 1 col2
----
134944

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT COUNT( * ) - - 88
----
89

skipif mysql # not compatible
query I rowsort label-9940
SELECT COUNT ( * ) - - 88
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9941
SELECT ALL + ( 54 ) DIV - - 66
----
0

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL + ( 54 ) / - - 66
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9942
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) - + 76 / CAST( - - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) - + 76 / CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9943
SELECT ALL COUNT( * ) * - + 64 AS col1, + 13 AS col1
----
-64
13

skipif mysql # not compatible
query II rowsort label-9943
SELECT ALL COUNT ( * ) * - + 64 AS col1, + 13 AS col1
----
-64
13

query I rowsort
SELECT DISTINCT 77 * + 98
----
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT DISTINCT - CASE 77 WHEN - 61 * + - 32 / + 72 * 55 + + + 54 THEN - + COUNT( - 85 ) * + 7 - - 96 END - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT DISTINCT - CASE 77 WHEN - 61 * + - 32 / + 72 * 55 + + + 54 THEN - + COUNT ( - 85 ) * + 7 - - 96 END - + 79
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9946
SELECT - + 17 DIV + ( + 13 ) - - 29 AS col0, 80 + + + 81 + COUNT( * )
----
28
162

skipif mysql # not compatible
query II rowsort label-9946
SELECT - + 17 / + ( + 13 ) - - 29 AS col0, 80 + + + 81 + COUNT ( * )
----
28
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT 39 + + COUNT( * ) * + ( 42 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9947
SELECT 39 + + COUNT ( * ) * + ( 42 ) AS col0
----
81

query I rowsort
SELECT ALL 40 * - - 73 + - + ( 82 ) * 1 AS col1
----
2838

onlyif mysql # aggregate syntax: 
query II rowsort label-9949
SELECT - COUNT( * ) * + + 32 AS col1, + 17
----
-32
17

skipif mysql # not compatible
query II rowsort label-9949
SELECT - COUNT ( * ) * + + 32 AS col1, + 17
----
-32
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9950
SELECT - COUNT( * ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-9950
SELECT - COUNT ( * ) / 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT + MAX( + 82 ) + + 92 + + COUNT( * ) AS col0
----
175

skipif mysql # not compatible
query I rowsort label-9951
SELECT + MAX ( + 82 ) + + 92 + + COUNT ( * ) AS col0
----
175

query I rowsort
SELECT + 91 * - ( + 14 ) - - 32 + 36 AS col1
----
-1206

query II rowsort
SELECT ALL + 12 * + - 68 AS col1, 58
----
-816
58

query I rowsort
SELECT ALL ( - 47 ) * 78 + - 77 * - 74 AS col2
----
2032

query I rowsort
SELECT ALL + - 8 + + 59 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT + - ( + + ( - COUNT( * ) ) ) * - COUNT( * ) + - 87
----
-88

skipif mysql # not compatible
query I rowsort label-9956
SELECT + - ( + + ( - COUNT ( * ) ) ) * - COUNT ( * ) + - 87
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9957
SELECT DISTINCT + ( - CAST( CASE - COUNT( * ) WHEN + 42 THEN NULL ELSE - 10 END AS SIGNED ) ) + + 99
----
109

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT + ( - CAST ( CASE - COUNT ( * ) WHEN + 42 THEN NULL ELSE - 10 END AS INTEGER ) ) + + 99
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT ALL + MIN( + + 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL + MIN ( + + 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT DISTINCT + COUNT( ALL 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT + COUNT ( ALL 12 ) AS col2
----
1

query I rowsort
SELECT 59 * ( - 83 ) + + 18 AS col0
----
-4879

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT ALL - 23 + - - MIN( DISTINCT - - NULLIF ( ( + ( - - NULLIF ( - 50, - 79 ) ) ), - - 6 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL - 23 + - - MIN ( DISTINCT - - NULLIF ( ( + ( - - NULLIF ( - 50, - 79 ) ) ), - - 6 ) )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-9962
SELECT + 83 * - 70 + - + 48 DIV - + 24
----
-5808

skipif mysql # not compatible
query I rowsort label-9962
SELECT + 83 * - 70 + - + 48 / - + 24
----
-5808

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9963
SELECT DISTINCT + MIN( DISTINCT - 10 ) DIV + - 68, 49 AS col0
----
0
49

skipif mysql # not compatible
query II rowsort label-9963
SELECT DISTINCT + MIN ( DISTINCT - 10 ) / + - 68, 49 AS col0
----
0
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT - 78 * + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-9964
SELECT - 78 * + COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL - COUNT( * ) - - 52 * + - 35 AS col1
----
-1821

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL - COUNT ( * ) - - 52 * + - 35 AS col1
----
-1821

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT DISTINCT + 69 * + + CASE 36 WHEN 51 THEN NULL WHEN 90 - COUNT( DISTINCT 50 ) THEN + + 21 ELSE - - COUNT( * ) + + 95 END
----
6624

skipif mysql # not compatible
query I rowsort label-9966
SELECT DISTINCT + 69 * + + CASE 36 WHEN 51 THEN NULL WHEN 90 - COUNT ( DISTINCT 50 ) THEN + + 21 ELSE - - COUNT ( * ) + + 95 END
----
6624

query I rowsort
SELECT DISTINCT + 97 * + + 79 AS col1
----
7663

onlyif mysql # DIV for integer division: 
query I rowsort label-9968
SELECT - 31 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-9968
SELECT - 31 / 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT ALL CASE - - ( + COUNT( * ) ) WHEN - CASE - SUM( + + 35 ) WHEN + 8 / + + 96 THEN NULL WHEN - 10 THEN - - 60 ELSE - + 11 - - COUNT( * ) END * - - 98 THEN NULL ELSE + 32 + ( MAX( + 52 ) ) * - 5 END col1
----
-228

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL CASE - - ( + COUNT ( * ) ) WHEN - CASE - SUM ( + + 35 ) WHEN + 8 / + + 96 THEN NULL WHEN - 10 THEN - - 60 ELSE - + 11 - - COUNT ( * ) END * - - 98 THEN NULL ELSE + 32 + ( MAX ( + 52 ) ) * - 5 END col1
----
-228

query I rowsort
SELECT ALL - 24 - 33
----
-57

query I rowsort
SELECT - 12 * 96 AS col1
----
-1152

query I rowsort
SELECT + + 23 + - - 19 + - - 10 + ( - 52 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT CASE - + 26 WHEN + NULLIF ( ( - - 95 ), + 17 ) THEN 4 + 14 WHEN + 15 THEN - + ( COALESCE ( - 88, - MIN( - 70 ) * + 41 ) ) ELSE 59 * - 40 END
----
-2360

skipif mysql # not compatible
query I rowsort label-9973
SELECT CASE - + 26 WHEN + NULLIF ( ( - - 95 ), + 17 ) THEN 4 + 14 WHEN + 15 THEN - + ( COALESCE ( - 88, - MIN ( - 70 ) * + 41 ) ) ELSE 59 * - 40 END
----
-2360

query I rowsort
SELECT + 14 + + 80
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ( - + CASE + - 61 WHEN - + COUNT( + 76 ) THEN + - 2 ELSE + - 48 END ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-9975
SELECT ( - + CASE + - 61 WHEN - + COUNT ( + 76 ) THEN + - 2 ELSE + - 48 END ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9976
SELECT + 69 AS col1, 32 + + 70 + + + MAX( - - 40 )
----
69
142

skipif mysql # not compatible
query II rowsort label-9976
SELECT + 69 AS col1, 32 + + 70 + + + MAX ( - - 40 )
----
69
142

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT - 80 + + 17 * + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-9977
SELECT - 80 + + 17 * + COUNT ( * )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9978
SELECT DISTINCT + CAST( + + CASE + - 92 WHEN - 42 THEN NULL WHEN 90 THEN NULL ELSE - - 2 + + COUNT( * ) END AS SIGNED ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT + CAST ( + + CASE + - 92 WHEN - 42 THEN NULL WHEN 90 THEN NULL ELSE - - 2 + + COUNT ( * ) END AS INTEGER ) AS col1
----
3

query I rowsort
SELECT + - 38 * - 4 col1
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9980
SELECT ALL - 26 * + 40 + MAX( 32 ) - - - 52 + 59 * 26 + - NULLIF ( - 28, - AVG ( + 6 ) ) DIV COALESCE ( - 65, - - 9 * + ( 6 ) + - 6, 89 ) * 30 + - 22
----
452

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL - 26 * + 40 + MAX ( 32 ) - - - 52 + 59 * 26 + - NULLIF ( - 28, - AVG ( + 6 ) ) / COALESCE ( - 65, - - 9 * + ( 6 ) + - 6, 89 ) * 30 + - 22
----
452

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT + + 22 + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-9981
SELECT + + 22 + COUNT ( * )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9982
SELECT - + ( + CAST( - 68 AS SIGNED ) ) * + CASE 1 WHEN + - MAX( DISTINCT + 64 ) - - 68 THEN NULL WHEN - - SUM( - 45 ) THEN NULL WHEN + - 76 + - + 78 THEN NULL ELSE - + 41 + - COALESCE ( MAX( DISTINCT ( 65 ) ), + COALESCE ( - 99, MIN( ALL 1 ), + 58 DIV - 95 ) ) END
----
-7208

skipif mysql # not compatible
query I rowsort label-9982
SELECT - + ( + CAST ( - 68 AS INTEGER ) ) * + CASE 1 WHEN + - MAX ( DISTINCT + 64 ) - - 68 THEN NULL WHEN - - SUM ( - 45 ) THEN NULL WHEN + - 76 + - + 78 THEN NULL ELSE - + 41 + - COALESCE ( MAX ( DISTINCT ( 65 ) ), + COALESCE ( - 99, MIN ( ALL 1 ), + 58 / - 95 ) ) END
----
-7208

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT - MIN( + - 53 ) * - CASE + - 28 WHEN 64 THEN + + 19 WHEN 62 THEN NULL END * - 18 + 60 + - 67 + - ( COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT - MIN ( + - 53 ) * - CASE + - 28 WHEN 64 THEN + + 19 WHEN 62 THEN NULL END * - 18 + 60 + - 67 + - ( COUNT ( * ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT ALL - MAX( ALL - 29 ) * - + 78 + + 7 AS col1
----
-2255

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL - MAX ( ALL - 29 ) * - + 78 + + 7 AS col1
----
-2255

query I rowsort
SELECT NULLIF ( + 61, + 92 ) AS col0
----
61

query I rowsort
SELECT DISTINCT - 54 * + + 65 * + 10 + - 45 AS col1
----
-35145

query II rowsort
SELECT DISTINCT + 35 AS col1, + 38 * + - 17 * + 76 - - 54 + - + 8
----
35
-49050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9988
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) * + - 46 * + 46 * + 24 + 54 * 18 + 7 AS col1
----
51763

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) * + - 46 * + 46 * + 24 + 54 * 18 + 7 AS col1
----
51763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9989
SELECT CASE + COUNT( * ) WHEN + - 95 + 15 THEN NULL WHEN + COALESCE ( 0, - 98, + 24 - + 69 / - 1 + + ( - CASE 41 WHEN - 17 THEN - 89 * + 60 WHEN - 17 THEN NULL ELSE NULL END ) ) THEN - ( CAST( 40 AS SIGNED ) ) + 37 * - 98 WHEN - 56 + + COUNT( * ) THEN + 3 * 13 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT CASE + COUNT ( * ) WHEN + - 95 + 15 THEN NULL WHEN + COALESCE ( 0, - 98, + 24 - + 69 / - 1 + + ( - CASE 41 WHEN - 17 THEN - 89 * + 60 WHEN - 17 THEN NULL ELSE NULL END ) ) THEN - ( CAST ( 40 AS INTEGER ) ) + 37 * - 98 WHEN - 56 + + COUNT ( * ) THEN + 3 * 13 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT + 14 * SUM( DISTINCT + - 0 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9990
SELECT + 14 * SUM ( DISTINCT + - 0 ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9991
SELECT ALL COALESCE ( + 48, 46 + + ( - - 79 ) ) * 95 AS col0, - 70 + COUNT( * ) col2
----
4560
-69

skipif mysql # not compatible
query II rowsort label-9991
SELECT ALL COALESCE ( + 48, 46 + + ( - - 79 ) ) * 95 AS col0, - 70 + COUNT ( * ) col2
----
4560
-69

query I rowsort
SELECT + 91 * + + 14 * - 90
----
-114660

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9993
SELECT CASE 27 WHEN - - 39 THEN NULL ELSE - NULLIF ( CAST( NULL AS DECIMAL ), - 81 ) END AS col1, + 3
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9993
SELECT CASE 27 WHEN - - 39 THEN NULL ELSE - NULLIF ( CAST ( NULL AS REAL ), - 81 ) END AS col1, + 3
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT + 78 DIV + 7
----
11

skipif mysql # not compatible
query I rowsort label-9994
SELECT + 78 / + 7
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT - 84 * - + SUM( 62 ) * 3
----
15624

skipif mysql # not compatible
query I rowsort label-9995
SELECT - 84 * - + SUM ( 62 ) * 3
----
15624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9996
SELECT COALESCE ( + - 65, + - COALESCE ( + + ( - + MIN( - 45 ) ), - 92 ) * - + SUM( DISTINCT 75 ) + + 1 + + 97 * - + 3 DIV + - 34 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9996
SELECT COALESCE ( + - 65, + - COALESCE ( + + ( - + MIN ( - 45 ) ), - 92 ) * - + SUM ( DISTINCT 75 ) + + 1 + + 97 * - + 3 / + - 34 ) AS col1
----
-65

query I rowsort
SELECT + 55 - 0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL COALESCE ( - ( + 71 ), + 61 * + COALESCE ( 32, - + 80, 92 * + - COUNT( * ) * + 58 ) ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL COALESCE ( - ( + 71 ), + 61 * + COALESCE ( 32, - + 80, 92 * + - COUNT ( * ) * + 58 ) ) col2
----
-71

query I rowsort
SELECT DISTINCT ( 35 ) col2
----
35

