hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 80 * + + 1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1
SELECT 66 * - ( - 51 ) * + 9 + CAST( NULL AS SIGNED ) + - 68 - - 59 + - 8 * - + 43 + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1
SELECT 66 * - ( - 51 ) * + 9 + CAST ( NULL AS INTEGER ) + - 68 - - 59 + - 8 * - + 43 + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2
SELECT DISTINCT - SUM( ALL 2 ) * - 92 + + 94 - - ( - COUNT( * ) ) DIV + 48 - 15 col0
----
263

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT - SUM ( ALL 2 ) * - 92 + + 94 - - ( - COUNT ( * ) ) / + 48 - 15 col0
----
263

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT ALL MAX( + - NULLIF ( - - 53, 70 + 6 ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL MAX ( + - NULLIF ( - - 53, 70 + 6 ) ) AS col2
----
-53

query I rowsort
SELECT ALL + 25 + - 91
----
-66

query I rowsort
SELECT 66 - + + 71 + - 18 - + - 52
----
29

query II rowsort
SELECT 48 AS col1, - 95
----
48
-95

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

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

query I rowsort
SELECT + 53 + - + 96 col0
----
-43

query I rowsort
SELECT DISTINCT + 7 + - 57 col0
----
-50

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

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

query I rowsort
SELECT DISTINCT 53 * ( 45 )
----
2385

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

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL COUNT ( * ) + + 13 * + COUNT ( * ) AS col2
----
14

query I rowsort
SELECT DISTINCT + 7 * - + 62 * 11
----
-4774

query I rowsort
SELECT ALL 88 + + 84 AS col1
----
172

query I rowsort
SELECT + 52 - + - 33 col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-16
SELECT DISTINCT - 35 * + CAST( - 45 AS SIGNED )
----
1575

skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT - 35 * + CAST ( - 45 AS INTEGER )
----
1575

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

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

query I rowsort
SELECT + 91 * + ( + 53 ) AS col0
----
4823

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT + 4 + MIN( DISTINCT 99 ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-19
SELECT + 4 + MIN ( DISTINCT 99 ) AS col1
----
103

query III rowsort
SELECT ALL + 50 AS col1, 76, 60 AS col0
----
50
76
60

query I rowsort
SELECT + - 80 * 95 * 8 * + 22 - + + 24
----
-1337624

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

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

query II rowsort
SELECT ALL - 35 * 33 AS col1, - 82
----
-1155
-82

query II rowsort
SELECT 64, + ( 90 ) + 46 AS col0
----
64
136

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT ALL + 19 * NULLIF ( + 7, + 14 * 83 * - 58 ) + + + COUNT( * )
----
134

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL + 19 * NULLIF ( + 7, + 14 * 83 * - 58 ) + + + COUNT ( * )
----
134

query I rowsort
SELECT DISTINCT 63 * 76
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT + - 80 * + 86 * + 59 - + COUNT( * ) + - 38
----
-405959

skipif mysql # not compatible
query I rowsort label-27
SELECT + - 80 * + 86 * + 59 - + COUNT ( * ) + - 38
----
-405959

query I rowsort
SELECT + 50 + - 59 * - - 65 AS col0
----
-3785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-29
SELECT + 64 + CAST( NULL AS SIGNED ) * 67 + + SUM( - - 34 ) - - + MAX( ALL + 23 ) / NULLIF ( + 6, - + 65 ) / + 36 + + 65 + COUNT( * ) / + CASE - 81 WHEN - 47 THEN - 5 * + + COUNT( * ) END * + + NULLIF ( + + 0, + 68 ) * + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-29
SELECT + 64 + CAST ( NULL AS INTEGER ) * 67 + + SUM ( - - 34 ) - - + MAX ( ALL + 23 ) / NULLIF ( + 6, - + 65 ) / + 36 + + 65 + COUNT ( * ) / + CASE - 81 WHEN - 47 THEN - 5 * + + COUNT ( * ) END * + + NULLIF ( + + 0, + 68 ) * + - 81
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-30
SELECT ALL + - 3 AS col1, 92 + + 66 * COUNT( * ) AS col2, 52 * + + ( + 31 ) AS col0
----
-3
158
1612

skipif mysql # not compatible
query III rowsort label-30
SELECT ALL + - 3 AS col1, 92 + + 66 * COUNT ( * ) AS col2, 52 * + + ( + 31 ) AS col0
----
-3
158
1612

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

skipif mysql # not compatible
query I rowsort label-31
SELECT + + COUNT ( * ) / SUM ( + 54 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-32
SELECT DISTINCT + 92 DIV 9
----
10

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT + 92 / 9
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-33
SELECT ALL + COUNT( * ) AS col2, - COALESCE ( - - 99, COUNT( * ) DIV + ( - + 77 ) + 47, + MIN( DISTINCT + 12 ) ) * - 53 AS col0
----
1
5247

skipif mysql # not compatible
query II rowsort label-33
SELECT ALL + COUNT ( * ) AS col2, - COALESCE ( - - 99, COUNT ( * ) / + ( - + 77 ) + 47, + MIN ( DISTINCT + 12 ) ) * - 53 AS col0
----
1
5247

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

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

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

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL + COUNT ( ( - 98 ) ) * - - 79 AS col0
----
79

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

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

query I rowsort
SELECT - 12 - + 80 AS col1
----
-92

query II rowsort
SELECT ALL + 20 * + 31 AS col1, 47 AS col2
----
620
47

query I rowsort
SELECT - 89 - 86
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT ALL 82 * CASE + 92 WHEN + 72 + 67 THEN NULL WHEN - 71 THEN + COALESCE ( COUNT( * ), - 79 ) ELSE + 91 * 95 * - - 39 + - 21 END col1
----
27644988

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL 82 * CASE + 92 WHEN + 72 + 67 THEN NULL WHEN - 71 THEN + COALESCE ( COUNT ( * ), - 79 ) ELSE + 91 * 95 * - - 39 + - 21 END col1
----
27644988

query II rowsort
SELECT - 94 * 61 AS col0, CASE - 90 WHEN + COALESCE ( + 55, - 9 * + 79 ) THEN - - 45 * 25 * - + 89 ELSE NULL END * 57
----
-5734
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT - 53 + - COUNT( * ) * 44 * - - 74 AS col1
----
-3309

skipif mysql # not compatible
query I rowsort label-42
SELECT - 53 + - COUNT ( * ) * 44 * - - 74 AS col1
----
-3309

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT ALL - COUNT( * ) + - 97 + + 6 + - - 69 * + 36
----
2392

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL - COUNT ( * ) + - 97 + + 6 + - - 69 * + 36
----
2392

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

skipif mysql # not compatible
query I rowsort label-44
SELECT - CAST ( + + 79 AS INTEGER ) + 7 AS col0
----
-72

query I rowsort
SELECT - 64 - - + 16 + - + 90
----
-138

onlyif mysql # DIV for integer division: 
query II rowsort label-46
SELECT - 34 + - 46 col1, + 85 DIV + 2 AS col0
----
-80
42

skipif mysql # not compatible
query II rowsort label-46
SELECT - 34 + - 46 col1, + 85 / + 2 AS col0
----
-80
42

onlyif mysql # DIV for integer division: 
query I rowsort label-47
SELECT - 40 * 67 DIV 98 DIV 3 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-47
SELECT - 40 * 67 / 98 / 3 AS col1
----
-9

query I rowsort
SELECT + 93 * + 26 AS col2
----
2418

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

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

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

skipif mysql # not compatible
query II rowsort label-50
SELECT - COUNT ( * ) + - 80, + 65 col0
----
-81
65

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

skipif mysql # not compatible
query I rowsort label-51
SELECT - + 9 / - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT COUNT( * ) * - 26 * 13 + - + 53
----
-391

skipif mysql # not compatible
query I rowsort label-52
SELECT COUNT ( * ) * - 26 * 13 + - + 53
----
-391

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-54
SELECT - COUNT( * ) / - CAST( NULL AS SIGNED ) + + + COUNT( * ) / CAST( NULL AS SIGNED ) / + - ( + 86 ) * - 70 * + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT - COUNT ( * ) / - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) / CAST ( NULL AS INTEGER ) / + - ( + 86 ) * - 70 * + 67 AS col1
----
NULL

query I rowsort
SELECT + 9 * - 48 + + 75
----
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT + - 17 * + 61 * + 48 + - 0 - + 78 * + 22 + + + ( + 13 ) + - COUNT( * ) AS col1
----
-51480

skipif mysql # not compatible
query I rowsort label-56
SELECT + - 17 * + 61 * + 48 + - 0 - + 78 * + 22 + + + ( + 13 ) + - COUNT ( * ) AS col1
----
-51480

query I rowsort
SELECT + 75 * - ( 43 ) * - 15 * + + 2 + - - 10
----
96760

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL 28 * - 54 + + COUNT( * ) + - + 75 - + COUNT( * ) * - 70 * + - 99 * + MIN( DISTINCT + 22 ) + + 54 col1
----
-153992

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL 28 * - 54 + + COUNT ( * ) + - + 75 - + COUNT ( * ) * - 70 * + - 99 * + MIN ( DISTINCT + 22 ) + + 54 col1
----
-153992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-59
SELECT + COALESCE ( + - 6, + 20 - + 30 DIV 74, - 55 ) * CASE + 55 WHEN + 55 DIV SUM( DISTINCT - 76 ) * + - CAST( NULL AS SIGNED ) * - 30 THEN NULL ELSE + 89 * + + 52 END + - ( - + MAX( ALL + + 97 ) ) * + COUNT( * )
----
-27671

skipif mysql # not compatible
query I rowsort label-59
SELECT + COALESCE ( + - 6, + 20 - + 30 / 74, - 55 ) * CASE + 55 WHEN + 55 / SUM ( DISTINCT - 76 ) * + - CAST ( NULL AS INTEGER ) * - 30 THEN NULL ELSE + 89 * + + 52 END + - ( - + MAX ( ALL + + 97 ) ) * + COUNT ( * )
----
-27671

onlyif mysql # aggregate syntax: 
query II rowsort label-60
SELECT ALL + - COALESCE ( + 18, + + MIN( + COALESCE ( 55, + 77, + 41 * + 43 + + 33 ) ) * - 19, + 10 + 19 ) AS col2, + 53
----
-18
53

skipif mysql # not compatible
query II rowsort label-60
SELECT ALL + - COALESCE ( + 18, + + MIN ( + COALESCE ( 55, + 77, + 41 * + 43 + + 33 ) ) * - 19, + 10 + 19 ) AS col2, + 53
----
-18
53

query I rowsort
SELECT ALL - 30 * + 5 + + 2
----
-148

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-62
SELECT ALL 9 * CASE + + 36 WHEN 95 THEN + + 65 ELSE + CAST( NULL AS SIGNED ) END + 85 * + 98 AS col1, - 49 DIV + 2 + - 48 AS col1
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-62
SELECT ALL 9 * CASE + + 36 WHEN 95 THEN + + 65 ELSE + CAST ( NULL AS INTEGER ) END + 85 * + 98 AS col1, - 49 / + 2 + - 48 AS col1
----
NULL
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT CASE 58 WHEN - 87 + + COALESCE ( + + COUNT( 54 ), + 0 + 70 ) * + NULLIF ( + 74, - 88 ) THEN + 74 * 6 WHEN + + 21 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-63
SELECT CASE 58 WHEN - 87 + + COALESCE ( + + COUNT ( 54 ), + 0 + 70 ) * + NULLIF ( + 74, - 88 ) THEN + 74 * 6 WHEN + + 21 THEN NULL END
----
NULL

query II rowsort
SELECT + 38 AS col0, - ( - 68 ) AS col0
----
38
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT 61 * + 90 * COUNT( * ) + 67
----
5557

skipif mysql # not compatible
query I rowsort label-66
SELECT 61 * + 90 * COUNT ( * ) + 67
----
5557

query II rowsort
SELECT 73 AS col2, - 80 col2
----
73
-80

query I rowsort
SELECT 1 * - + 70
----
-70

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

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

query I rowsort
SELECT ALL 35 - + 94 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT 36 * - COUNT( ALL - - 83 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-71
SELECT 36 * - COUNT ( ALL - - 83 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-72
SELECT - 25, SUM( - - 37 ) * + 37 * - CASE - 34 WHEN 93 THEN NULL ELSE 74 END + - 86 + - 39 AS col2
----
-25
-101431

skipif mysql # not compatible
query II rowsort label-72
SELECT - 25, SUM ( - - 37 ) * + 37 * - CASE - 34 WHEN 93 THEN NULL ELSE 74 END + - 86 + - 39 AS col2
----
-25
-101431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-73
SELECT DISTINCT - ( + ( + COALESCE ( + SUM( ALL - 15 ), + COALESCE ( + 46, - - CAST( - - 29 AS SIGNED ) * - - 18 + - 56 ) + - 8 + - - 93 + + 13 DIV - MAX( ALL - 98 ) * - COUNT( * ), - 97 - - - 39 * - 18 - - CASE COUNT( * ) WHEN + 97 * - 84 THEN - CASE - NULLIF ( + 62, 41 - + MAX( + 88 ) ) WHEN + 16 THEN NULL WHEN - SUM( - 45 ) DIV - 93 + 32 THEN - COALESCE ( 42, + 34 + + 58 ) END END ) ) )
----
15

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT - ( + ( + COALESCE ( + SUM ( ALL - 15 ), + COALESCE ( + 46, - - CAST ( - - 29 AS INTEGER ) * - - 18 + - 56 ) + - 8 + - - 93 + + 13 / - MAX ( ALL - 98 ) * - COUNT ( * ), - 97 - - - 39 * - 18 - - CASE COUNT ( * ) WHEN + 97 * - 84 THEN - CASE - NULLIF ( + 62, 41 - + MAX ( + 88 ) ) WHEN + 16 THEN NULL WHEN - SUM ( - 45 ) / - 93 + 32 THEN - COALESCE ( 42, + 34 + + 58 ) END END ) ) )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-74
SELECT DISTINCT 11, + COUNT( * ) AS col1
----
11
1

skipif mysql # not compatible
query II rowsort label-74
SELECT DISTINCT 11, + COUNT ( * ) AS col1
----
11
1

query I rowsort
SELECT DISTINCT - 41 * + 15 col1
----
-615

query II rowsort
SELECT ALL - - 36, 86 + 68 AS col2
----
36
154

query I rowsort
SELECT + - NULLIF ( - 69, 3 ) AS col0
----
69

query I rowsort
SELECT ALL + - ( 53 ) + - 3 col2
----
-56

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-80
SELECT + 60 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-80
SELECT + 60 / + 62
----
0

query I rowsort
SELECT - 69 * + 74 * + 55 * + 58 AS col1
----
-16288140

query I rowsort
SELECT ALL + + 9 + + + CASE - + 97 WHEN + AVG ( ALL 17 ) THEN + - 92 * - 18 * + CASE - 86 WHEN 75 THEN + + 18 ELSE NULL END WHEN + 63 THEN NULL ELSE 90 END AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT DISTINCT - + COUNT( * ) + + 31 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT - + COUNT ( * ) + + 31 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT ALL 26 + - MIN( ALL ( 5 ) )
----
21

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL 26 + - MIN ( ALL ( 5 ) )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-85
SELECT DISTINCT + + NULLIF ( 40, + 55 ) * + COUNT( * ) AS col0, 5 * - 49 - 40
----
40
-285

skipif mysql # not compatible
query II rowsort label-85
SELECT DISTINCT + + NULLIF ( 40, + 55 ) * + COUNT ( * ) AS col0, 5 * - 49 - 40
----
40
-285

query I rowsort
SELECT 66 + - + 33
----
33

query I rowsort
SELECT 29 * + + 85 + - + 70 col1
----
2395

query I rowsort
SELECT 17 + + 72 AS col1
----
89

query I rowsort
SELECT DISTINCT 36 + 2 AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-90
SELECT 1 - 92 DIV + + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-90
SELECT 1 - 92 / + + 48 AS col0
----
0

query I rowsort
SELECT ALL 65 * - 87 AS col0
----
-5655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-92
SELECT DISTINCT 94 * - - 51 DIV COUNT( * ) AS col0
----
4794

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT 94 * - - 51 / COUNT ( * ) AS col0
----
4794

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

onlyif mysql # DIV for integer division: 
query I rowsort label-94
SELECT 36 * 62 DIV + + 30
----
74

skipif mysql # not compatible
query I rowsort label-94
SELECT 36 * 62 / + + 30
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-95
SELECT ALL 29 * + COALESCE ( + 30, - CAST( NULL AS SIGNED ) * + 88 * + - 6 + 51 + COUNT( * ) )
----
870

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL 29 * + COALESCE ( + 30, - CAST ( NULL AS INTEGER ) * + 88 * + - 6 + 51 + COUNT ( * ) )
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT COUNT( * ) + + - 86 * - 88 + + 71 + - - 70
----
7710

skipif mysql # not compatible
query I rowsort label-96
SELECT COUNT ( * ) + + - 86 * - 88 + + 71 + - - 70
----
7710

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT 32 - - COALESCE ( + 43, COUNT( * ) ) + + 9 + 21 col0
----
105

skipif mysql # not compatible
query I rowsort label-98
SELECT 32 - - COALESCE ( + 43, COUNT ( * ) ) + + 9 + 21 col0
----
105

query I rowsort
SELECT ( - 1 ) * + - 38
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-100
SELECT - - NULLIF ( - - SUM( + 76 ), 42 + + 45 + - + CAST( + 11 AS SIGNED ) ) AS col0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-100
SELECT - - NULLIF ( - - SUM ( + 76 ), 42 + + 45 + - + CAST ( + 11 AS INTEGER ) ) AS col0, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT - 41 + - 81 + - COUNT( * ) * + - 85
----
-37

skipif mysql # not compatible
query I rowsort label-101
SELECT - 41 + - 81 + - COUNT ( * ) * + - 85
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT ALL - COUNT( * ) * COUNT( * ) * 33 + + 40 + - - 79 + - - 69 * - 99 col1
----
-6745

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL - COUNT ( * ) * COUNT ( * ) * 33 + + 40 + - - 79 + - - 69 * - 99 col1
----
-6745

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT + MIN( - 50 ) * + - 97 AS col0
----
4850

skipif mysql # not compatible
query I rowsort label-103
SELECT + MIN ( - 50 ) * + - 97 AS col0
----
4850

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT ALL - + COUNT( * ) * - 52 * 61
----
3172

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL - + COUNT ( * ) * - 52 * 61
----
3172

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-105
SELECT + SUM( 76 ) * - 64 * COUNT( * ), 93 DIV - 34 AS col2
----
-4864
-2

skipif mysql # not compatible
query II rowsort label-105
SELECT + SUM ( 76 ) * - 64 * COUNT ( * ), 93 / - 34 AS col2
----
-4864
-2

query I rowsort
SELECT 17 + 45 AS col1
----
62

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

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

query I rowsort
SELECT + COALESCE ( - 57, 88, + 41, + 78 ) + + 57
----
0

query I rowsort
SELECT + 30 + - + 5 + - - 52
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-110
SELECT ALL + COUNT( * ) * - 55 + MIN( ALL + - 8 ) AS col1, - 12 AS col0
----
-63
-12

skipif mysql # not compatible
query II rowsort label-110
SELECT ALL + COUNT ( * ) * - 55 + MIN ( ALL + - 8 ) AS col1, - 12 AS col0
----
-63
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT DISTINCT COALESCE ( SUM( DISTINCT - 96 ), 35 * + 97 ) * 90 * - 48
----
414720

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT COALESCE ( SUM ( DISTINCT - 96 ), 35 * + 97 ) * 90 * - 48
----
414720

query I rowsort
SELECT ALL + 94 * 39 + + + 8
----
3674

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT ALL + COUNT( * ) * 7 + - 26 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL + COUNT ( * ) * 7 + - 26 AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-114
SELECT - 53 / - 92 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-114
SELECT - 53 / - 92 + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT ALL + 51 * - 56 + 87 * - - ( COUNT( * ) ) + 11 col1
----
-2758

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL + 51 * - 56 + 87 * - - ( COUNT ( * ) ) + 11 col1
----
-2758

query I rowsort
SELECT + + 80 * - 19
----
-1520

query I rowsort
SELECT - + 75 + - 11 * - 11
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-118
SELECT COUNT( ALL CAST( + COALESCE ( 95, + - 90 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-118
SELECT COUNT ( ALL CAST ( + COALESCE ( 95, + - 90 ) AS INTEGER ) )
----
1

query I rowsort
SELECT - 0 * + ( - + CASE 17 WHEN 81 THEN + 12 * ( - 16 ) ELSE NULL END ) + - + 35 AS col0
----
NULL

query II rowsort
SELECT + 83 AS col0, ( + 4 ) col1
----
83
4

query I rowsort
SELECT - 89 + - + 17
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT ALL + 99 * + + MAX( - + 36 ) - + 61
----
-3625

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL + 99 * + + MAX ( - + 36 ) - + 61
----
-3625

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT ALL + COALESCE ( + + 89, - + COUNT( ALL - 37 ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL + COALESCE ( + + 89, - + COUNT ( ALL - 37 ) ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT ALL MAX( DISTINCT + 42 ) * - 65 + + 20 - - 85
----
-2625

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL MAX ( DISTINCT + 42 ) * - 65 + + 20 - - 85
----
-2625

query I rowsort
SELECT - 71 * + + 78
----
-5538

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-126
SELECT ALL - COUNT( + 82 ) * + CAST( NULL AS DECIMAL ) * + - 98 / - 12 AS col0, - 89
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-126
SELECT ALL - COUNT ( + 82 ) * + CAST ( NULL AS REAL ) * + - 98 / - 12 AS col0, - 89
----
NULL
-89

query I rowsort
SELECT - 35 + - 57 + 49 + NULLIF ( - + 60, + + 3 ) AS col2
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT - 11 * 94 DIV + 98 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-128
SELECT - 11 * 94 / + 98 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT + MAX( - 98 ) + - 37
----
-135

skipif mysql # not compatible
query I rowsort label-129
SELECT + MAX ( - 98 ) + - 37
----
-135

query I rowsort
SELECT ALL CASE WHEN + 52 IS NOT NULL THEN - 92 END AS col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-131
SELECT DISTINCT COALESCE ( + 88, + COUNT( * ) * + - NULLIF ( + - 63, 65 ) + CASE - COUNT( DISTINCT - + 4 ) WHEN MAX( ALL 56 ) + 29 / + CASE + 34 WHEN - - 13 THEN + - 35 + 56 ELSE CAST( NULL AS SIGNED ) + + COUNT( * ) - - - 59 * 76 + SUM( + ( CASE + 63 WHEN - 77 THEN - + 21 END ) ) END THEN MIN( ALL + 18 ) ELSE NULL END ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-131
SELECT DISTINCT COALESCE ( + 88, + COUNT ( * ) * + - NULLIF ( + - 63, 65 ) + CASE - COUNT ( DISTINCT - + 4 ) WHEN MAX ( ALL 56 ) + 29 / + CASE + 34 WHEN - - 13 THEN + - 35 + 56 ELSE CAST ( NULL AS INTEGER ) + + COUNT ( * ) - - - 59 * 76 + SUM ( + ( CASE + 63 WHEN - 77 THEN - + 21 END ) ) END THEN MIN ( ALL + 18 ) ELSE NULL END ) AS col1
----
88

query I rowsort
SELECT ALL 75 * + 21
----
1575

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT - 81 + 75 + - 62 DIV + 16 col0
----
-9

skipif mysql # not compatible
query I rowsort label-133
SELECT - 81 + 75 + - 62 / + 16 col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT + - 72 + SUM( 35 ) * + ( + 89 ) AS col0
----
3043

skipif mysql # not compatible
query I rowsort label-134
SELECT + - 72 + SUM ( 35 ) * + ( + 89 ) AS col0
----
3043

onlyif mysql # DIV for integer division: 
query I rowsort label-135
SELECT ALL + 91 + - - 74 DIV - 28
----
89

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL + 91 + - - 74 / - 28
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - ( + 65 ) * - COUNT( * ) * - COUNT( * ) * - - 54 * + 59 - - COUNT( ALL + 22 ) - + + 64
----
-207153

skipif mysql # not compatible
query I rowsort label-136
SELECT - ( + 65 ) * - COUNT ( * ) * - COUNT ( * ) * - - 54 * + 59 - - COUNT ( ALL + 22 ) - + + 64
----
-207153

query I rowsort
SELECT DISTINCT - 58 + 67
----
9

query I rowsort
SELECT ALL 40 + - + 83 AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-139
SELECT + ( 75 ) DIV - 60 + - 79 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-139
SELECT + ( 75 ) / - 60 + - 79 AS col1
----
-80

query I rowsort
SELECT DISTINCT + + 55 + - 96 AS col0
----
-41

query I rowsort
SELECT + COALESCE ( + 12, + 87, 41 ) * 43
----
516

onlyif mysql # DIV for integer division: 
query I rowsort label-142
SELECT + - 70 DIV 61 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-142
SELECT + - 70 / 61 AS col1
----
-1

query I rowsort
SELECT ALL - 65 + 12
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-144
SELECT - CASE - 8 WHEN - COUNT( * ) * 53 + - 80 + - 79 * - 95 THEN - 45 DIV 16 WHEN - + 21 THEN NULL ELSE - 77 END AS col0, 2
----
77
2

skipif mysql # not compatible
query II rowsort label-144
SELECT - CASE - 8 WHEN - COUNT ( * ) * 53 + - 80 + - 79 * - 95 THEN - 45 / 16 WHEN - + 21 THEN NULL ELSE - 77 END AS col0, 2
----
77
2

query I rowsort
SELECT + + 26 * - 15 * 18 AS col1
----
-7020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-146
SELECT ALL 17 DIV + 31 * 7 - + NULLIF ( - MAX( - ( - + 73 ) ), - - 61 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL 17 / + 31 * 7 - + NULLIF ( - MAX ( - ( - + 73 ) ), - - 61 ) AS col2
----
73

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

query I rowsort
SELECT ALL + CASE - - 63 WHEN + 63 THEN NULL ELSE + 65 / + 14 END AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT 18 * + + 3
----
54

query I rowsort
SELECT COALESCE ( - 1, + 10 ) AS col0
----
-1

query I rowsort
SELECT + 18 + + + 23
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-153
SELECT + 12 DIV + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-153
SELECT + 12 / + 57 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-154
SELECT ALL MIN( + 16 ) / + + 7 + 56 * - + CASE 50 WHEN + - 65 / - + 72 * + 95 * - + NULLIF ( 27, + + 51 - COUNT( * ) + + COALESCE ( - 64, ( - 9 ) ) ) + - 13 THEN - 58 * - - 46 ELSE NULL END * + 7 + 51 + + CAST( COALESCE ( + 38, 0, - + 26 + NULLIF ( + 38, - + 88 / + 53 ) / - 29 ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL MIN ( + 16 ) / + + 7 + 56 * - + CASE 50 WHEN + - 65 / - + 72 * + 95 * - + NULLIF ( 27, + + 51 - COUNT ( * ) + + COALESCE ( - 64, ( - 9 ) ) ) + - 13 THEN - 58 * - - 46 ELSE NULL END * + 7 + 51 + + CAST ( COALESCE ( + 38, 0, - + 26 + NULLIF ( + 38, - + 88 / + 53 ) / - 29 ) AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT - MIN( - - 70 ) * CASE + 29 WHEN - 25 * + 49 + - 82 * - COUNT( * ) + + - 26 THEN - 2 WHEN + ( + 17 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT - MIN ( - - 70 ) * CASE + 29 WHEN - 25 * + 49 + - 82 * - COUNT ( * ) + + - 26 THEN - 2 WHEN + ( + 17 ) THEN NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-157
SELECT - 72 DIV - COUNT( * ) col2
----
72

skipif mysql # not compatible
query I rowsort label-157
SELECT - 72 / - COUNT ( * ) col2
----
72

query I rowsort
SELECT - 85 * + 78 * + 82 + 92 AS col2
----
-543568

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT - + 35 * - COUNT( + + ( - - 50 ) ) + - 93
----
-58

skipif mysql # not compatible
query I rowsort label-159
SELECT - + 35 * - COUNT ( + + ( - - 50 ) ) + - 93
----
-58

query II rowsort
SELECT ALL + 3, 57 AS col2
----
3
57

query II rowsort
SELECT - ( + + 66 ) col0, 95 col1
----
-66
95

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT - - 74 - + 53 - 48 * + + 42 - - COUNT( * ) - + 48 - SUM( 36 ) * 63 * ( - - ( + 89 ) ) + 90 * - + 62 col0
----
-209474

skipif mysql # not compatible
query I rowsort label-162
SELECT - - 74 - + 53 - 48 * + + 42 - - COUNT ( * ) - + 48 - SUM ( 36 ) * 63 * ( - - ( + 89 ) ) + 90 * - + 62 col0
----
-209474

onlyif mysql # aggregate syntax: 
query II rowsort label-163
SELECT DISTINCT - ( + - 92 ) + - - ( 9 ) AS col0, - COUNT( * )
----
101
-1

skipif mysql # not compatible
query II rowsort label-163
SELECT DISTINCT - ( + - 92 ) + - - ( 9 ) AS col0, - COUNT ( * )
----
101
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-164
SELECT - + 70, CAST( + 85 AS SIGNED ) AS col1
----
-70
85

skipif mysql # not compatible
query II rowsort label-164
SELECT - + 70, CAST ( + 85 AS INTEGER ) AS col1
----
-70
85

query II rowsort
SELECT - 65 AS col2, 48 * + 72
----
-65
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT - NULLIF ( - CASE 23 WHEN + + 7 THEN 29 * 10 + - - 34 ELSE NULL END, + + 17 - - - 81 ) + - MAX( + 32 ) * - - AVG ( + 7 ) - - - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT - NULLIF ( - CASE 23 WHEN + + 7 THEN 29 * 10 + - - 34 ELSE NULL END, + + 17 - - - 81 ) + - MAX ( + 32 ) * - - AVG ( + 7 ) - - - 13 AS col0
----
NULL

query I rowsort
SELECT 8 * + + 39
----
312

query I rowsort
SELECT 95 + - ( - 6 ) col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT - COUNT( * ) + - MAX( + 66 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-169
SELECT - COUNT ( * ) + - MAX ( + 66 ) AS col2
----
-67

query I rowsort
SELECT DISTINCT + 25 - - ( + 72 ) AS col0
----
97

query I rowsort
SELECT 88 * + ( 19 )
----
1672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-172
SELECT ALL - CASE 66 WHEN - + AVG ( 34 ) THEN - + COUNT( * ) WHEN + 69 + 80 THEN CASE + 11 WHEN ( 76 ) * CASE - 90 WHEN - 22 THEN - - 83 - + ( - COUNT( * ) ) - - + COALESCE ( 20, + - 67 + - 67, + 75 - - + 2 * + 42 * - 63, + 56 + - COUNT( * ) ) END THEN + + 32 WHEN 42 * + COUNT( * ) * + + 3 THEN NULLIF ( 82, - 69 ) ELSE CAST( NULL AS SIGNED ) DIV ( SUM( + 18 ) * 1 ) + 33 END ELSE ( + 42 ) * NULLIF ( 20, 4 ) + + 79 END AS col2
----
-919

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL - CASE 66 WHEN - + AVG ( 34 ) THEN - + COUNT ( * ) WHEN + 69 + 80 THEN CASE + 11 WHEN ( 76 ) * CASE - 90 WHEN - 22 THEN - - 83 - + ( - COUNT ( * ) ) - - + COALESCE ( 20, + - 67 + - 67, + 75 - - + 2 * + 42 * - 63, + 56 + - COUNT ( * ) ) END THEN + + 32 WHEN 42 * + COUNT ( * ) * + + 3 THEN NULLIF ( 82, - 69 ) ELSE CAST ( NULL AS INTEGER ) / ( SUM ( + 18 ) * 1 ) + 33 END ELSE ( + 42 ) * NULLIF ( 20, 4 ) + + 79 END AS col2
----
-919

onlyif mysql # DIV for integer division: 
query II rowsort label-173
SELECT 34 DIV - 68 + 1 AS col2, + 60 AS col2
----
1
60

skipif mysql # not compatible
query II rowsort label-173
SELECT 34 / - 68 + 1 AS col2, + 60 AS col2
----
1
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-174
SELECT ( COALESCE ( - 30, + 34, - COALESCE ( - + COALESCE ( ( 15 ), - 63 * 54 + + 14 + + COUNT( + - 34 ) + ( + 9 ) + + 5 DIV + 44 DIV + 4 * + 99 * - 26 * + 69 DIV + CASE + - 98 WHEN - + COUNT( * ) * 89 THEN NULL WHEN 18 THEN + ( + - 84 ) * CASE + - 0 WHEN + - COUNT( * ) THEN COUNT( * ) END * - ( 10 + + 96 ) END - + ( + 4 + 11 ), 39 ), 46 + 30 * - 51 ) * 12 ) ) + 35 * - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-174
SELECT ( COALESCE ( - 30, + 34, - COALESCE ( - + COALESCE ( ( 15 ), - 63 * 54 + + 14 + + COUNT ( + - 34 ) + ( + 9 ) + + 5 / + 44 / + 4 * + 99 * - 26 * + 69 / + CASE + - 98 WHEN - + COUNT ( * ) * 89 THEN NULL WHEN 18 THEN + ( + - 84 ) * CASE + - 0 WHEN + - COUNT ( * ) THEN COUNT ( * ) END * - ( 10 + + 96 ) END - + ( + 4 + 11 ), 39 ), 46 + 30 * - 51 ) * 12 ) ) + 35 * - COUNT ( * )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-175
SELECT CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) AS col0, - 74
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-175
SELECT CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col0, - 74
----
NULL
-74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-176
SELECT DISTINCT ( - - 89 ) DIV + - CAST( - + 28 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT ( - - 89 ) / + - CAST ( - + 28 AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-177
SELECT 35 * - 14 + + + SUM( + + 46 ) + - COUNT( * ), COALESCE ( + 36, - 55 + + - 74 ) * - 42 AS col2
----
-445
-1512

skipif mysql # not compatible
query II rowsort label-177
SELECT 35 * - 14 + + + SUM ( + + 46 ) + - COUNT ( * ), COALESCE ( + 36, - 55 + + - 74 ) * - 42 AS col2
----
-445
-1512

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

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

query I rowsort
SELECT 55 + - 96 * + 84
----
-8009

query I rowsort
SELECT ALL NULLIF ( - 36, + - 44 ) + 13 AS col1
----
-23

query I rowsort
SELECT ALL 58 + - 27 * - - 18
----
-428

query I rowsort
SELECT ALL ( - + 37 ) + - 42
----
-79

query II rowsort
SELECT 32 + + 66, + 42 AS col1
----
98
42

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

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

query I rowsort
SELECT ALL - CASE + 58 WHEN - - 23 * + ( + 73 ) THEN - 81 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-186
SELECT DISTINCT + + 80 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT + + 80 / 90
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-187
SELECT ALL - COALESCE ( ( + 73 ), COUNT( * ) * - COUNT( * ) ) + - 99 DIV - 42, - 8 AS col0
----
-71
-8

skipif mysql # not compatible
query II rowsort label-187
SELECT ALL - COALESCE ( ( + 73 ), COUNT ( * ) * - COUNT ( * ) ) + - 99 / - 42, - 8 AS col0
----
-71
-8

query I rowsort
SELECT 92 + + 93
----
185

query I rowsort
SELECT - 19 + 73 AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-190
SELECT ALL - - 38 * + ( - COUNT( * ) ) * + 16 + NULLIF ( + + 27, + COUNT( ALL - - 4 ) * - - 88 / + 52 + - 13 / - - 13 + - + 89 ) - 30 * - 2 * + - CAST( NULL AS SIGNED ) + - + COALESCE ( 65, + ( + + 68 ) ), + 10 + MAX( - + 65 ) AS col2
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-190
SELECT ALL - - 38 * + ( - COUNT ( * ) ) * + 16 + NULLIF ( + + 27, + COUNT ( ALL - - 4 ) * - - 88 / + 52 + - 13 / - - 13 + - + 89 ) - 30 * - 2 * + - CAST ( NULL AS INTEGER ) + - + COALESCE ( 65, + ( + + 68 ) ), + 10 + MAX ( - + 65 ) AS col2
----
NULL
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT MIN( ALL - - 80 ) + + 4 * + 28 AS col1
----
192

skipif mysql # not compatible
query I rowsort label-191
SELECT MIN ( ALL - - 80 ) + + 4 * + 28 AS col1
----
192

query I rowsort
SELECT 23 * - 96 - 19 + + 41
----
-2186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-193
SELECT CASE - SUM( + 15 ) WHEN 80 THEN NULL WHEN - 48 THEN - - 60 END + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-193
SELECT CASE - SUM ( + 15 ) WHEN 80 THEN NULL WHEN - 48 THEN - - 60 END + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( 36, + + 20 + + - ( + 10 ) )
----
36

query I rowsort
SELECT ALL - 21 - - 1 col0
----
-20

query I rowsort
SELECT 91 - + - 9 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT NULLIF ( 8, COUNT( * ) + 86 - + 51 ) * + 48 + - SUM( DISTINCT - + 56 ) AS col0
----
440

skipif mysql # not compatible
query I rowsort label-197
SELECT NULLIF ( 8, COUNT ( * ) + 86 - + 51 ) * + 48 + - SUM ( DISTINCT - + 56 ) AS col0
----
440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-198
SELECT - 63 * CASE - - CASE - - 80 WHEN + 33 THEN AVG ( + 82 ) WHEN + CAST( - ( COUNT( * ) ) AS SIGNED ) * 45 THEN - + 78 ELSE NULL END WHEN - COUNT( * ) THEN NULL ELSE 78 DIV COUNT( 93 ) END DIV 85 - 84 * + 43 col2
----
-3669

skipif mysql # not compatible
query I rowsort label-198
SELECT - 63 * CASE - - CASE - - 80 WHEN + 33 THEN AVG ( + 82 ) WHEN + CAST ( - ( COUNT ( * ) ) AS INTEGER ) * 45 THEN - + 78 ELSE NULL END WHEN - COUNT ( * ) THEN NULL ELSE 78 / COUNT ( 93 ) END / 85 - 84 * + 43 col2
----
-3669

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-200
SELECT DISTINCT - 84 AS col2, - MAX( + - 54 ) AS col1
----
-84
54

skipif mysql # not compatible
query II rowsort label-200
SELECT DISTINCT - 84 AS col2, - MAX ( + - 54 ) AS col1
----
-84
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT COUNT( * ) - - 57 - 94 + + 51 * 29 AS col0
----
1443

skipif mysql # not compatible
query I rowsort label-202
SELECT COUNT ( * ) - - 57 - 94 + + 51 * 29 AS col0
----
1443

onlyif mysql # aggregate syntax: 
query II rowsort label-203
SELECT ALL - CASE - 78 WHEN COUNT( * ) THEN + 6 END col1, - 50 * COALESCE ( 96, ( - 91 ) * - 77 * - 43 / - 2 + 9 * + + 50 ) - - + 64 - - 14 + + COUNT( * ) + 15 - CASE + 32 WHEN + 53 THEN NULL WHEN - + 42 THEN + NULLIF ( - 99, + 44 * 24 - + - 25 ) / + 58 + - + COUNT( * ) WHEN + - 54 THEN NULL ELSE NULL END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-203
SELECT ALL - CASE - 78 WHEN COUNT ( * ) THEN + 6 END col1, - 50 * COALESCE ( 96, ( - 91 ) * - 77 * - 43 / - 2 + 9 * + + 50 ) - - + 64 - - 14 + + COUNT ( * ) + 15 - CASE + 32 WHEN + 53 THEN NULL WHEN - + 42 THEN + NULLIF ( - 99, + 44 * 24 - + - 25 ) / + 58 + - + COUNT ( * ) WHEN + - 54 THEN NULL ELSE NULL END AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-204
SELECT ALL 52 DIV - - SUM( ALL - + 16 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL 52 / - - SUM ( ALL - + 16 ) AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-205
SELECT DISTINCT 64 + + ( ( - 41 ) ) DIV - - 70 - 69 * + 27 + CAST( - ( - COALESCE ( 33, - 66 * 61 + + ( 40 ) ) ) AS SIGNED ) AS col0
----
-1766

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT 64 + + ( ( - 41 ) ) / - - 70 - 69 * + 27 + CAST ( - ( - COALESCE ( 33, - 66 * 61 + + ( 40 ) ) ) AS INTEGER ) AS col0
----
-1766

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT 25 + - MAX( + 92 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-206
SELECT 25 + - MAX ( + 92 ) AS col0
----
-67

query I rowsort
SELECT ALL 16 * + - 11 AS col1
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-208
SELECT - ( CAST( - ( + 86 ) AS SIGNED ) ) * + - COUNT( * ) * 86 + + ( + + CASE 92 WHEN 88 + + 82 + + COUNT( * ) * ( - 66 ) * 40 + COUNT( * ) * - 11 THEN - 40 * - 2 * - 42 * - 43 / + 80 * + 95 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT - ( CAST ( - ( + 86 ) AS INTEGER ) ) * + - COUNT ( * ) * 86 + + ( + + CASE 92 WHEN 88 + + 82 + + COUNT ( * ) * ( - 66 ) * 40 + COUNT ( * ) * - 11 THEN - 40 * - 2 * - 42 * - 43 / + 80 * + 95 END )
----
NULL

query I rowsort
SELECT ( - 37 ) - - 28 AS col0
----
-9

query II rowsort
SELECT + 77 col0, + 12 + + - 13 AS col2
----
77
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-211
SELECT DISTINCT NULLIF ( + 82, 53 ) + + 32, 6 + - 77 * + - COUNT( * ) + 31 + + 87 AS col0
----
114
201

skipif mysql # not compatible
query II rowsort label-211
SELECT DISTINCT NULLIF ( + 82, 53 ) + + 32, 6 + - 77 * + - COUNT ( * ) + 31 + + 87 AS col0
----
114
201

query I rowsort
SELECT DISTINCT + 2 + - 6 AS col1
----
-4

query I rowsort
SELECT ALL 64 * - 17
----
-1088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-214
SELECT DISTINCT + COUNT( DISTINCT + 48 ) * - + 92 + 29 + + + 27 + + 96 * - CASE - 43 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - + MIN( - 95 ) * + 22 * - + CAST( NULL AS SIGNED ) * - 54 * + - 53 THEN NULL ELSE - 17 * - 35 END AS col1
----
-57156

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT + COUNT ( DISTINCT + 48 ) * - + 92 + 29 + + + 27 + + 96 * - CASE - 43 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - + MIN ( - 95 ) * + 22 * - + CAST ( NULL AS INTEGER ) * - 54 * + - 53 THEN NULL ELSE - 17 * - 35 END AS col1
----
-57156

query II rowsort
SELECT ALL - 97 col2, 70 * 89
----
-97
6230

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT + + COUNT( * ) * COALESCE ( - 33, - 68 * 28 )
----
-33

skipif mysql # not compatible
query I rowsort label-216
SELECT + + COUNT ( * ) * COALESCE ( - 33, - 68 * 28 )
----
-33

query I rowsort
SELECT + NULLIF ( + 69, + 78 + - + 35 ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT MAX( - ( - 69 ) )
----
69

skipif mysql # not compatible
query I rowsort label-218
SELECT MAX ( - ( - 69 ) )
----
69

query II rowsort
SELECT - 61 AS col0, - 19
----
-61
-19

query I rowsort
SELECT + 97 * + 20
----
1940

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT - 67 * MAX( ALL + 92 )
----
-6164

skipif mysql # not compatible
query I rowsort label-221
SELECT - 67 * MAX ( ALL + 92 )
----
-6164

onlyif mysql # aggregate syntax: 
query II rowsort label-222
SELECT ALL - 36 * 3 + + - COUNT( * ) AS col2, - 96 * 77
----
-109
-7392

skipif mysql # not compatible
query II rowsort label-222
SELECT ALL - 36 * 3 + + - COUNT ( * ) AS col2, - 96 * 77
----
-109
-7392

query I rowsort
SELECT + 6 - - 88 AS col2
----
94

query I rowsort
SELECT DISTINCT + 45 * - - ( - - 78 ) AS col2
----
3510

query I rowsort
SELECT ALL + 1 * 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT + - MAX( + 61 ) + + - MIN( DISTINCT 32 )
----
-93

skipif mysql # not compatible
query I rowsort label-226
SELECT + - MAX ( + 61 ) + + - MIN ( DISTINCT 32 )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-227
SELECT - 7 DIV COUNT( * ) * + + 35
----
-245

skipif mysql # not compatible
query I rowsort label-227
SELECT - 7 / COUNT ( * ) * + + 35
----
-245

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-228
SELECT - 25 - - 65 AS col1, + CASE MIN( - 81 ) WHEN - - 81 * - 38 + - COUNT( * ) + + 76 + + 85 + + COUNT( * ) * 52 + + + COUNT( * ) THEN NULL WHEN - - COUNT( * ) THEN NULL ELSE + 76 END + - MIN( + 62 ) DIV - COUNT( + + 62 ) + NULLIF ( 55, - 3 - - COUNT( * ) ) AS col0
----
40
193

skipif mysql # not compatible
query II rowsort label-228
SELECT - 25 - - 65 AS col1, + CASE MIN ( - 81 ) WHEN - - 81 * - 38 + - COUNT ( * ) + + 76 + + 85 + + COUNT ( * ) * 52 + + + COUNT ( * ) THEN NULL WHEN - - COUNT ( * ) THEN NULL ELSE + 76 END + - MIN ( + 62 ) / - COUNT ( + + 62 ) + NULLIF ( 55, - 3 - - COUNT ( * ) ) AS col0
----
40
193

onlyif mysql # aggregate syntax: 
query II rowsort label-229
SELECT ALL SUM( ALL - 64 ) AS col2, - 33 AS col1
----
-64
-33

skipif mysql # not compatible
query II rowsort label-229
SELECT ALL SUM ( ALL - 64 ) AS col2, - 33 AS col1
----
-64
-33

query I rowsort
SELECT - 95 + - ( - 21 )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-231
SELECT - COUNT( * ) - + 99 + + 0 + - + 12 + - + 64 * + - 25 DIV + + COUNT( DISTINCT + - 16 ) AS col0
----
1488

skipif mysql # not compatible
query I rowsort label-231
SELECT - COUNT ( * ) - + 99 + + 0 + - + 12 + - + 64 * + - 25 / + + COUNT ( DISTINCT + - 16 ) AS col0
----
1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-232
SELECT ALL + 80 * + 85 + + CAST( + - COUNT( * ) AS SIGNED ) * + 9 AS col2
----
6791

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL + 80 * + 85 + + CAST ( + - COUNT ( * ) AS INTEGER ) * + 9 AS col2
----
6791

query I rowsort
SELECT 36 * 97 + + 4
----
3496

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-234
SELECT ALL + 19 * - + 19 + + 83 + - 35 AS col0, CAST( NULL AS SIGNED ) AS col1
----
-313
NULL

skipif mysql # not compatible
query II rowsort label-234
SELECT ALL + 19 * - + 19 + + 83 + - 35 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
-313
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-236
SELECT DISTINCT + 86 * + 64 + - COALESCE ( - 61, - + COUNT( * ), - 54 + - + COUNT( * ) DIV - 95 * 98 )
----
5565

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT + 86 * + 64 + - COALESCE ( - 61, - + COUNT ( * ), - 54 + - + COUNT ( * ) / - 95 * 98 )
----
5565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-237
SELECT ALL - NULLIF ( - + COUNT( * ), - 56 ) * 27 + - - 28 + - 16 + + + 34 * - CAST( + COUNT( * ) AS SIGNED ) + + 89 + - 5 * - - 7 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL - NULLIF ( - + COUNT ( * ), - 56 ) * 27 + - - 28 + - 16 + + + 34 * - CAST ( + COUNT ( * ) AS INTEGER ) + + 89 + - 5 * - - 7 AS col0
----
59

query I rowsort
SELECT ALL 11 * - - 66
----
726

query I rowsort
SELECT - 17 + - 29 AS col0
----
-46

query I rowsort
SELECT ALL - 53 * - - 12 + 5 AS col0
----
-631

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT - 29 * + + MAX( ALL + + 97 ) AS col1
----
-2813

skipif mysql # not compatible
query I rowsort label-241
SELECT - 29 * + + MAX ( ALL + + 97 ) AS col1
----
-2813

query I rowsort
SELECT + 1 * 72 + 57
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-243
SELECT ( + 28 ) * + 50 + 47 AS col0, ( + 96 ) * - 69 - 45 * MIN( DISTINCT 96 ) AS col2
----
1447
-10944

skipif mysql # not compatible
query II rowsort label-243
SELECT ( + 28 ) * + 50 + 47 AS col0, ( + 96 ) * - 69 - 45 * MIN ( DISTINCT 96 ) AS col2
----
1447
-10944

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT + COALESCE ( 84, - 66 * COUNT( * ) * - 34 * 37 + - - 43 - + - 31, + 64 )
----
84

skipif mysql # not compatible
query I rowsort label-244
SELECT + COALESCE ( 84, - 66 * COUNT ( * ) * - 34 * 37 + - - 43 - + - 31, + 64 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT ALL 26 * + MAX( ALL - 9 ) * COUNT( * ) + - 5 * + + ( 33 ) * - 8 - + 82 col0
----
1004

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL 26 * + MAX ( ALL - 9 ) * COUNT ( * ) + - 5 * + + ( 33 ) * - 8 - + 82 col0
----
1004

query I rowsort
SELECT ALL - + 96 * + 43
----
-4128

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-248
SELECT ALL - ( - + 81 ) DIV - - ( + 18 ) + - - 18
----
22

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL - ( - + 81 ) / - - ( + 18 ) + - - 18
----
22

query I rowsort
SELECT 43 * - 88 - 70
----
-3854

query I rowsort
SELECT + - 37 * + 17
----
-629

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT + + 37 * - 58 - + 10 DIV + 82 AS col2
----
-2146

skipif mysql # not compatible
query I rowsort label-252
SELECT + + 37 * - 58 - + 10 / + 82 AS col2
----
-2146

query II rowsort
SELECT + 28 * + 32 AS col0, - ( 19 ) * 41 * + + 56 AS col1
----
896
-43624

query I rowsort
SELECT DISTINCT - 98 * 28 + + 27
----
-2717

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

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

query I rowsort
SELECT + - 85 + - 67 * + ( 17 ) - + ( - 92 ) + - 2 + + 62 AS col0
----
-1072

query II rowsort
SELECT + 8 - 97, + 47 AS col1
----
-89
47

query I rowsort
SELECT + + 10 + + 30 * + 55 AS col2
----
1660

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL - 46 * 1 - COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL - 46 * 1 - COUNT ( * ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT + - 35 * + + MAX( DISTINCT - + ( + + NULLIF ( 83, + 35 ) ) ) AS col1
----
2905

skipif mysql # not compatible
query I rowsort label-260
SELECT + - 35 * + + MAX ( DISTINCT - + ( + + NULLIF ( 83, + 35 ) ) ) AS col1
----
2905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-261
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) + + 82 * 90
----
7381

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) + + 82 * 90
----
7381

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT DISTINCT ( + + SUM( DISTINCT + 35 ) ) + + 33
----
68

skipif mysql # not compatible
query I rowsort label-263
SELECT DISTINCT ( + + SUM ( DISTINCT + 35 ) ) + + 33
----
68

query I rowsort
SELECT ALL + 13 * - - 79 AS col2
----
1027

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

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

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

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

query I rowsort
SELECT + 29 - 47
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT - COUNT( * ) * 97 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-268
SELECT - COUNT ( * ) * 97 AS col0
----
-97

query I rowsort
SELECT 77 * 25 - + 65
----
1860

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-270
SELECT DISTINCT + 12, + CAST( NULL AS SIGNED ) AS col0
----
12
NULL

skipif mysql # not compatible
query II rowsort label-270
SELECT DISTINCT + 12, + CAST ( NULL AS INTEGER ) AS col0
----
12
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-272
SELECT - CASE WHEN NULL IN ( 50, - 51, + 12, - SUM( - 88 ) * + 48 + CAST( NULL AS SIGNED ), 87, - MAX( DISTINCT - 83 ) ) THEN + 43 END - 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT - CASE WHEN NULL IN ( 50, - 51, + 12, - SUM ( - 88 ) * + 48 + CAST ( NULL AS INTEGER ), 87, - MAX ( DISTINCT - 83 ) ) THEN + 43 END - 76 AS col1
----
NULL

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

query I rowsort
SELECT ALL - - 60 * + 24 * + 13
----
18720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-275
SELECT ALL - 52 - - 5 - 30 + + ( + - 73 ) col2, MAX( - CAST( NULL AS SIGNED ) ) - 27 AS col2
----
-150
NULL

skipif mysql # not compatible
query II rowsort label-275
SELECT ALL - 52 - - 5 - 30 + + ( + - 73 ) col2, MAX ( - CAST ( NULL AS INTEGER ) ) - 27 AS col2
----
-150
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT 91 * - + MAX( ALL + 82 )
----
-7462

skipif mysql # not compatible
query I rowsort label-276
SELECT 91 * - + MAX ( ALL + 82 )
----
-7462

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT - COUNT( * ) - - + 16 * ( 77 ) AS col0
----
1231

skipif mysql # not compatible
query I rowsort label-277
SELECT - COUNT ( * ) - - + 16 * ( 77 ) AS col0
----
1231

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT MIN( ALL - 88 ) * - SUM( + 99 ) AS col2
----
8712

skipif mysql # not compatible
query I rowsort label-278
SELECT MIN ( ALL - 88 ) * - SUM ( + 99 ) AS col2
----
8712

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

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

skipif mysql # not compatible
query I rowsort label-280
SELECT + + SUM ( + 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT ALL + - 52 * + MAX( + 95 )
----
-4940

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL + - 52 * + MAX ( + 95 )
----
-4940

query II rowsort
SELECT DISTINCT - - 53 AS col1, + 48
----
53
48

query I rowsort
SELECT DISTINCT + 9 * 26 + - 79 + 12 AS col2
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT DISTINCT + 87 + - - CASE - - 9 WHEN + COUNT( * ) THEN - 77 / + - 41 / - 58 WHEN 5 THEN NULL END * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT + 87 + - - CASE - - 9 WHEN + COUNT ( * ) THEN - 77 / + - 41 / - 58 WHEN 5 THEN NULL END * + 50
----
NULL

query I rowsort
SELECT - 54 + + - 74
----
-128

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-286
SELECT DISTINCT + NULLIF ( - + ( - - 18 ), + 63 ) / - NULLIF ( - CASE ( COUNT( * ) ) WHEN - 1 * 67 THEN - CAST( - + 98 AS DECIMAL ) * + - COALESCE ( - + 9, - 73 * 77 * - - 93 ) * 22 + 82 - 87 + - + 29 + - 38 WHEN + 36 * 68 THEN NULL END, + ( CASE 69 WHEN + CASE + 98 WHEN 13 * + 14 THEN + + 34 WHEN + - 87 + - COUNT( * ) THEN - 38 END THEN 81 END ) * 62 + - 63 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT + NULLIF ( - + ( - - 18 ), + 63 ) / - NULLIF ( - CASE ( COUNT ( * ) ) WHEN - 1 * 67 THEN - CAST ( - + 98 AS REAL ) * + - COALESCE ( - + 9, - 73 * 77 * - - 93 ) * 22 + 82 - 87 + - + 29 + - 38 WHEN + 36 * 68 THEN NULL END, + ( CASE 69 WHEN + CASE + 98 WHEN 13 * + 14 THEN + + 34 WHEN + - 87 + - COUNT ( * ) THEN - 38 END THEN 81 END ) * 62 + - 63 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-287
SELECT ALL - + CAST( - 0 AS SIGNED ) + - 95 DIV - + 44
----
2

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL - + CAST ( - 0 AS INTEGER ) + - 95 / - + 44
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT COUNT( * ) + - + 18 + - - 20 * 38 * + 12 col2
----
9103

skipif mysql # not compatible
query I rowsort label-288
SELECT COUNT ( * ) + - + 18 + - - 20 * 38 * + 12 col2
----
9103

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT - MAX( DISTINCT + 11 ) * + 84 * 47
----
-43428

skipif mysql # not compatible
query I rowsort label-289
SELECT - MAX ( DISTINCT + 11 ) * + 84 * 47
----
-43428

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-290
SELECT 65 DIV - CAST( + - 14 AS SIGNED ) + - - 3
----
7

skipif mysql # not compatible
query I rowsort label-290
SELECT 65 / - CAST ( + - 14 AS INTEGER ) + - - 3
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT 8 DIV + - 4
----
-2

skipif mysql # not compatible
query I rowsort label-291
SELECT 8 / + - 4
----
-2

query I rowsort
SELECT ALL - 93 + 26 * + 49 AS col1
----
1181

query II rowsort
SELECT - 28, + 76 AS col1
----
-28
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-294
SELECT ALL - COALESCE ( + CAST( NULL AS SIGNED ), 13 ) + - + 90 + + - 0 + 77 + + 55 * + - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL - COALESCE ( + CAST ( NULL AS INTEGER ), 13 ) + - + 90 + + - 0 + 77 + + 55 * + - COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT 26 - 77 * - + 22 * - COUNT( * ) AS col0
----
-1668

skipif mysql # not compatible
query I rowsort label-295
SELECT 26 - 77 * - + 22 * - COUNT ( * ) AS col0
----
-1668

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

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

query I rowsort
SELECT DISTINCT - 27 + 21 - - 56 * 5 * - COALESCE ( + 87, + - 45 ) AS col1
----
-24366

query I rowsort
SELECT ALL + CASE 47 WHEN + + 33 THEN NULL ELSE - - 27 * + 92 * - ( - 38 ) END + 22 * + - 42 col2
----
93468

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT 45 + + COUNT( - + 17 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-299
SELECT 45 + + COUNT ( - + 17 ) AS col2
----
46

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

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

query II rowsort
SELECT ALL 92 AS col2, 54
----
92
54

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT NULLIF ( + 7, 11 * - COUNT( * ) - ( + 38 ) ) + - COUNT( * ) * - 81 * + SUM( DISTINCT 82 ) * - NULLIF ( + + MAX( + - 7 ), - ( 69 ) ) + + - 21
----
46480

skipif mysql # not compatible
query I rowsort label-302
SELECT NULLIF ( + 7, 11 * - COUNT ( * ) - ( + 38 ) ) + - COUNT ( * ) * - 81 * + SUM ( DISTINCT 82 ) * - NULLIF ( + + MAX ( + - 7 ), - ( 69 ) ) + + - 21
----
46480

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-303
SELECT 81 AS col2, - ( - - COUNT( * ) ) * ( - 58 ) * - - 23 / - - CAST( NULL AS DECIMAL ) + - 82
----
81
NULL

skipif mysql # not compatible
query II rowsort label-303
SELECT 81 AS col2, - ( - - COUNT ( * ) ) * ( - 58 ) * - - 23 / - - CAST ( NULL AS REAL ) + - 82
----
81
NULL

query II rowsort
SELECT DISTINCT 98 AS col1, - 43
----
98
-43

query I rowsort
SELECT 35 + + 23 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT 80 + COUNT( * ) * 93 * - NULLIF ( 6, + COUNT( 33 ) ) - - CASE WHEN NOT 17 NOT BETWEEN - 91 - - 31 AND 36 THEN - + 3 ELSE NULL END
----
-481

skipif mysql # not compatible
query I rowsort label-306
SELECT 80 + COUNT ( * ) * 93 * - NULLIF ( 6, + COUNT ( 33 ) ) - - CASE WHEN NOT 17 NOT BETWEEN - 91 - - 31 AND 36 THEN - + 3 ELSE NULL END
----
-481

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ALL 94 - - COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL 94 - - COUNT ( * ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT + 93 * - + 9 * - + 36 + + COUNT( * ) - + COUNT( * ) * - - 92 AS col1
----
30041

skipif mysql # not compatible
query I rowsort label-308
SELECT + 93 * - + 9 * - + 36 + + COUNT ( * ) - + COUNT ( * ) * - - 92 AS col1
----
30041

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT DISTINCT 87 * MIN( - - 91 )
----
7917

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT 87 * MIN ( - - 91 )
----
7917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-310
SELECT DISTINCT 99 DIV - - COALESCE ( 49, + 67 + ( + - 11 ) + + 46 - - COUNT( * ) * + 11 + + ( + 78 ) - - - 62, - 75 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT 99 / - - COALESCE ( 49, + 67 + ( + - 11 ) + + 46 - - COUNT ( * ) * + 11 + + ( + 78 ) - - - 62, - 75 ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-311
SELECT ALL 58 - CAST( + - 57 AS SIGNED ) AS col2
----
115

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL 58 - CAST ( + - 57 AS INTEGER ) AS col2
----
115

query I rowsort
SELECT ALL + 19 * + 24
----
456

query I rowsort
SELECT ( 0 ) + - - COALESCE ( - 86, 17 )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-314
SELECT ALL 34 * - 89 AS col1, COUNT( * ) DIV 49 AS col1
----
-3026
0

skipif mysql # not compatible
query II rowsort label-314
SELECT ALL 34 * - 89 AS col1, COUNT ( * ) / 49 AS col1
----
-3026
0

onlyif mysql # DIV for integer division: 
query II rowsort label-315
SELECT DISTINCT - 18 col2, 78 DIV - 70 AS col0
----
-18
-1

skipif mysql # not compatible
query II rowsort label-315
SELECT DISTINCT - 18 col2, 78 / - 70 AS col0
----
-18
-1

query I rowsort
SELECT DISTINCT 51 * + 91 AS col0
----
4641

onlyif mysql # aggregate syntax: 
query II rowsort label-317
SELECT + 34 AS col0, ( COUNT( * ) ) + - 80
----
34
-79

skipif mysql # not compatible
query II rowsort label-317
SELECT + 34 AS col0, ( COUNT ( * ) ) + - 80
----
34
-79

query I rowsort
SELECT 5 * + 57
----
285

onlyif mysql # DIV for integer division: 
query I rowsort label-319
SELECT + 36 DIV 38 + + - 37 * + + 88 AS col2
----
-3256

skipif mysql # not compatible
query I rowsort label-319
SELECT + 36 / 38 + + - 37 * + + 88 AS col2
----
-3256

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT ( + 4 ) * + ( + COUNT( 40 ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-320
SELECT ( + 4 ) * + ( + COUNT ( 40 ) ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-321
SELECT ALL + 71 + - - COALESCE ( + 13, - 70 * + ( - CAST( NULL AS SIGNED ) ) + + 85 + + 96 * + - 32 + 58 + + 84 DIV + COUNT( - - ( + - NULLIF ( 14, - - 84 + 11 ) ) ) * + + 68, 42 - + 10 * - + 4 )
----
84

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL + 71 + - - COALESCE ( + 13, - 70 * + ( - CAST ( NULL AS INTEGER ) ) + + 85 + + 96 * + - 32 + 58 + + 84 / + COUNT ( - - ( + - NULLIF ( 14, - - 84 + 11 ) ) ) * + + 68, 42 - + 10 * - + 4 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT + NULLIF ( - - 63, 3 * - - ( - - COUNT( * ) ) ) col0
----
63

skipif mysql # not compatible
query I rowsort label-322
SELECT + NULLIF ( - - 63, 3 * - - ( - - COUNT ( * ) ) ) col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT DISTINCT - MIN( DISTINCT 63 ) + 20
----
-43

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT - MIN ( DISTINCT 63 ) + 20
----
-43

query I rowsort
SELECT DISTINCT 42 + - 80 * + 3
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT - ( - + 56 ) * - 9 + COUNT( * ) + - 3
----
-506

skipif mysql # not compatible
query I rowsort label-325
SELECT - ( - + 56 ) * - 9 + COUNT ( * ) + - 3
----
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT DISTINCT + 58 + + + 59 + - MIN( DISTINCT + 40 ) + - - CASE COUNT( * ) WHEN - 13 THEN NULL ELSE SUM( DISTINCT - - 19 ) END * - 65 * - 50 * + 58 * 45 AS col0
----
161167577

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT + 58 + + + 59 + - MIN ( DISTINCT + 40 ) + - - CASE COUNT ( * ) WHEN - 13 THEN NULL ELSE SUM ( DISTINCT - - 19 ) END * - 65 * - 50 * + 58 * 45 AS col0
----
161167577

query I rowsort
SELECT ALL - + ( 58 ) + + 46 AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-328
SELECT + - 6 * CAST( NULL AS SIGNED ) - + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-328
SELECT + - 6 * CAST ( NULL AS INTEGER ) - + 75 AS col0
----
NULL

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

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

query I rowsort
SELECT + 52 * + 34 AS col1
----
1768

query I rowsort
SELECT DISTINCT - - 11 + + 53 AS col2
----
64

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

skipif mysql # not compatible
query I rowsort label-332
SELECT MAX ( DISTINCT 23 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-333
SELECT ALL + 53 * 45 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL + 53 * 45 + + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 95 + + 81 AS col1
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT ALL - NULLIF ( + + MIN( ALL + 17 ), - - 67 + + 96 ) + MAX( DISTINCT - 42 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL - NULLIF ( + + MIN ( ALL + 17 ), - - 67 + + 96 ) + MAX ( DISTINCT - 42 ) AS col2
----
-59

query I rowsort
SELECT ALL + 86 * - 22 AS col2
----
-1892

query I rowsort
SELECT 25 * - 53 AS col2
----
-1325

query I rowsort
SELECT 61 + - - 39
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-340
SELECT ALL + 50 DIV + + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL + 50 / + + 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-341
SELECT COUNT( - + 83 ) + 68 col0, 22
----
69
22

skipif mysql # not compatible
query II rowsort label-341
SELECT COUNT ( - + 83 ) + 68 col0, 22
----
69
22

onlyif mysql # aggregate syntax: 
query II rowsort label-342
SELECT DISTINCT COUNT( 0 ), + 24 AS col1
----
1
24

skipif mysql # not compatible
query II rowsort label-342
SELECT DISTINCT COUNT ( 0 ), + 24 AS col1
----
1
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-343
SELECT 63 * 83 col1, + NULLIF ( - 65, + 93 + 36 ) * 10 * CAST( NULL AS SIGNED ) + - 96 + 77 + + 56 + + 38 * - 81 AS col2
----
5229
NULL

skipif mysql # not compatible
query II rowsort label-343
SELECT 63 * 83 col1, + NULLIF ( - 65, + 93 + 36 ) * 10 * CAST ( NULL AS INTEGER ) + - 96 + 77 + + 56 + + 38 * - 81 AS col2
----
5229
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-344
SELECT ALL 46 * - 50 * + 41, + COUNT( DISTINCT 16 ) col0
----
-94300
1

skipif mysql # not compatible
query II rowsort label-344
SELECT ALL 46 * - 50 * + 41, + COUNT ( DISTINCT 16 ) col0
----
-94300
1

query I rowsort
SELECT ALL + 78 * + 89 AS col1
----
6942

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

query I rowsort
SELECT DISTINCT + 60 * 68 AS col2
----
4080

query I rowsort
SELECT ALL 10 * + - 59 AS col0
----
-590

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-349
SELECT - NULLIF ( + 62, - ( - 80 ) + - 48 ) - CAST( + - 69 AS SIGNED ), ( - 72 ) AS col0
----
7
-72

skipif mysql # not compatible
query II rowsort label-349
SELECT - NULLIF ( + 62, - ( - 80 ) + - 48 ) - CAST ( + - 69 AS INTEGER ), ( - 72 ) AS col0
----
7
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT + COUNT( NULLIF ( - - 10, 51 + - COALESCE ( - 29, + 63 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-350
SELECT + COUNT ( NULLIF ( - - 10, 51 + - COALESCE ( - 29, + 63 ) ) ) AS col0
----
1

query I rowsort
SELECT CASE + 2 WHEN - 37 THEN NULL WHEN - 6 THEN + - 42 * + - 39 END AS col1
----
NULL

query I rowsort
SELECT 55 * + 43 + + + 32
----
2397

query I rowsort
SELECT + + 80 * + - 62 * + 49 AS col0
----
-243040

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( + 3, - + 94 ) AS col2
----
3

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

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

query I rowsort
SELECT ALL - - 88 * + + 13 + + 76 + + + 1 AS col1
----
1221

query II rowsort
SELECT + 61 - + 39 AS col0, + 13 AS col2
----
22
13

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT + COUNT( * ) * + + 58 + + COUNT( * ) + + 63
----
122

skipif mysql # not compatible
query I rowsort label-359
SELECT + COUNT ( * ) * + + 58 + + COUNT ( * ) + + 63
----
122

query I rowsort
SELECT DISTINCT 49 * - - 74
----
3626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-361
SELECT ALL + + 69 * + 43 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL + + 69 * + 43 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-362
SELECT + + 37 DIV + - NULLIF ( - 90, + + CASE - COUNT( * ) WHEN 2 - 1 THEN NULL ELSE - + 97 * 52 - 40 - + MAX( - + 3 ) + 37 END - + 9 )
----
0

skipif mysql # not compatible
query I rowsort label-362
SELECT + + 37 / + - NULLIF ( - 90, + + CASE - COUNT ( * ) WHEN 2 - 1 THEN NULL ELSE - + 97 * 52 - 40 - + MAX ( - + 3 ) + 37 END - + 9 )
----
0

query I rowsort
SELECT - - 73 - 46 + - - ( - 37 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT ALL - CASE - 49 WHEN + 96 * 96 + + COUNT( * ) + + - 77 THEN - 42 * - COUNT( * ) + - - 65 + + 64 - + 63 * - 20 + 88 + - + 28 / - COUNT( + - ( + - 6 ) ) + 92 WHEN 85 THEN - 26 END * ( + ( - 18 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL - CASE - 49 WHEN + 96 * 96 + + COUNT ( * ) + + - 77 THEN - 42 * - COUNT ( * ) + - - 65 + + 64 - + 63 * - 20 + 88 + - + 28 / - COUNT ( + - ( + - 6 ) ) + 92 WHEN 85 THEN - 26 END * ( + ( - 18 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT - + 98 - - 93 + - COALESCE ( ( + COUNT( * ) ), - 20 - 99 + ( - 65 ) * - NULLIF ( COUNT( ALL + 25 ), - 93 * - - 21 ) - + NULLIF ( + - 43, + NULLIF ( + + 17, + 59 + + - 65 ) * - 88 ) + - + ( - MIN( + - 82 ) ) * 55 ) * 38 * + + 62 AS col1
----
-2361

skipif mysql # not compatible
query I rowsort label-365
SELECT - + 98 - - 93 + - COALESCE ( ( + COUNT ( * ) ), - 20 - 99 + ( - 65 ) * - NULLIF ( COUNT ( ALL + 25 ), - 93 * - - 21 ) - + NULLIF ( + - 43, + NULLIF ( + + 17, + 59 + + - 65 ) * - 88 ) + - + ( - MIN ( + - 82 ) ) * 55 ) * 38 * + + 62 AS col1
----
-2361

query I rowsort
SELECT DISTINCT - 73 * + 57 * 62 + + 41 AS col1
----
-257941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-367
SELECT DISTINCT + COALESCE ( 15, 8 + + 21 ) * - COUNT( * ) + - CAST( - - 59 AS SIGNED ) * 20 - + 42 + - + 85 DIV 67 AS col0
----
-1238

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT + COALESCE ( 15, 8 + + 21 ) * - COUNT ( * ) + - CAST ( - - 59 AS INTEGER ) * 20 - + 42 + - + 85 / 67 AS col0
----
-1238

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT ALL + - NULLIF ( COALESCE ( + ( - 27 ), + 81 + COUNT( * ) ), 55 - 72 / 63 )
----
27

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL + - NULLIF ( COALESCE ( + ( - 27 ), + 81 + COUNT ( * ) ), 55 - 72 / 63 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT DISTINCT - 8 * + NULLIF ( - 84, COUNT( * ) ) - + + COUNT( + 79 ) AS col0
----
671

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT - 8 * + NULLIF ( - 84, COUNT ( * ) ) - + + COUNT ( + 79 ) AS col0
----
671

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

skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT + COUNT ( ALL + - 67 ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT - 9 - - - ( + COUNT ( * ) ) AS col2
----
-10

query I rowsort
SELECT + 13 * + 55
----
715

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-373
SELECT - 39 AS col0, CAST( - 35 AS SIGNED ) AS col2
----
-39
-35

skipif mysql # not compatible
query II rowsort label-373
SELECT - 39 AS col0, CAST ( - 35 AS INTEGER ) AS col2
----
-39
-35

query I rowsort
SELECT DISTINCT - 9 - + ( + + 81 ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL NULLIF ( NULLIF ( COUNT( * ), + 14 ), + 16 * + 26 * 2 * 98 * + COUNT( * ) + - + 64 )
----
1

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL NULLIF ( NULLIF ( COUNT ( * ), + 14 ), + 16 * + 26 * 2 * 98 * + COUNT ( * ) + - + 64 )
----
1

query I rowsort
SELECT DISTINCT + 37 * - 0 * 75 * 26 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT COUNT ( ALL 89 ) AS col1
----
1

query I rowsort
SELECT - 52 + - 80 * - NULLIF ( 26, + - 37 ) + + + 70 AS col1
----
2098

query I rowsort
SELECT ALL - 46 * - 79 AS col2
----
3634

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT - COUNT( * ) + - - 72 * - + 6, + COUNT( * ) AS col2
----
-433
1

skipif mysql # not compatible
query II rowsort label-380
SELECT - COUNT ( * ) + - - 72 * - + 6, + COUNT ( * ) AS col2
----
-433
1

query I rowsort
SELECT - 5 * + 82
----
-410

query I rowsort
SELECT - 22 - - 60 col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-383
SELECT - ( + 59 ) * 12 DIV 83 AS col0, + COALESCE ( 95, COUNT( * ) ) - - 18
----
-8
113

skipif mysql # not compatible
query II rowsort label-383
SELECT - ( + 59 ) * 12 / 83 AS col0, + COALESCE ( 95, COUNT ( * ) ) - - 18
----
-8
113

onlyif mysql # DIV for integer division: 
query I rowsort label-384
SELECT ALL - 93 DIV - - 64 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL - 93 / - - 64 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-385
SELECT - 69 DIV - - 50 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-385
SELECT - 69 / - - 50 AS col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-386
SELECT - COUNT ( * ) * 28
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-387
SELECT ALL - - COALESCE ( - NULLIF ( ( - COALESCE ( - 18, + - COUNT( * ) DIV - + 49 + - CAST( NULL AS SIGNED ), - + 67 ) ), - + 74 + 92 ), 23 ) DIV - 85 + + 92 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL - - COALESCE ( - NULLIF ( ( - COALESCE ( - 18, + - COUNT ( * ) / - + 49 + - CAST ( NULL AS INTEGER ), - + 67 ) ), - + 74 + 92 ), 23 ) / - 85 + + 92 AS col0
----
92

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

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

query I rowsort
SELECT DISTINCT + 80 * - ( + 74 )
----
-5920

onlyif mysql # DIV for integer division: 
query II rowsort label-390
SELECT DISTINCT - 98 DIV - 14 + - - 29 AS col0, + 42 AS col2
----
36
42

skipif mysql # not compatible
query II rowsort label-390
SELECT DISTINCT - 98 / - 14 + - - 29 AS col0, + 42 AS col2
----
36
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-391
SELECT ALL + - 32 * + CASE - 2 WHEN + + 57 * COALESCE ( - + 26, - 63 + + 42 / - 77, 13 * + 17 * CAST( NULL AS SIGNED ) ) + + 2 THEN + + COUNT( * ) WHEN 82 / + 70 + + + COALESCE ( + CASE - 94 WHEN ( - - 36 ) + - CAST( 96 AS DECIMAL ) + + 94 THEN - - 52 ELSE NULL END, + MIN( DISTINCT + 8 ) + COUNT( * ), - COALESCE ( + - 57, - COUNT( * ) ) + + - COUNT( * ) * - COUNT( * ) + - + 61 ) + - CAST( NULL AS SIGNED ) - + 8 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL + - 32 * + CASE - 2 WHEN + + 57 * COALESCE ( - + 26, - 63 + + 42 / - 77, 13 * + 17 * CAST ( NULL AS INTEGER ) ) + + 2 THEN + + COUNT ( * ) WHEN 82 / + 70 + + + COALESCE ( + CASE - 94 WHEN ( - - 36 ) + - CAST ( 96 AS REAL ) + + 94 THEN - - 52 ELSE NULL END, + MIN ( DISTINCT + 8 ) + COUNT ( * ), - COALESCE ( + - 57, - COUNT ( * ) ) + + - COUNT ( * ) * - COUNT ( * ) + - + 61 ) + - CAST ( NULL AS INTEGER ) - + 8 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-392
SELECT ALL + ( - - 81 ) DIV + 87 * 80 + + + 27 + - + 66
----
-39

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL + ( - - 81 ) / + 87 * 80 + + + 27 + - + 66
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-393
SELECT + 3 AS col1, 37 + + 96 + + 37 - + ( + 23 ) + + - CAST( 64 AS SIGNED ) * - + 48 col2
----
3
3219

skipif mysql # not compatible
query II rowsort label-393
SELECT + 3 AS col1, 37 + + 96 + + 37 - + ( + 23 ) + + - CAST ( 64 AS INTEGER ) * - + 48 col2
----
3
3219

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT + 65 * ( - - 30 ) + - COUNT( * ) + - 54 col2
----
1895

skipif mysql # not compatible
query I rowsort label-394
SELECT + 65 * ( - - 30 ) + - COUNT ( * ) + - 54 col2
----
1895

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT NULLIF ( + COUNT( * ), 87 * - + 23 ) AS col1, + 57 * + - COALESCE ( - - 58, ( + COALESCE ( + 7, - 27 * 21 + + 59 + - 9 ) ) ) * - MAX( DISTINCT - 63 ) + - - COUNT( * ) AS col1
----
1
-208277

skipif mysql # not compatible
query II rowsort label-396
SELECT NULLIF ( + COUNT ( * ), 87 * - + 23 ) AS col1, + 57 * + - COALESCE ( - - 58, ( + COALESCE ( + 7, - 27 * 21 + + 59 + - 9 ) ) ) * - MAX ( DISTINCT - 63 ) + - - COUNT ( * ) AS col1
----
1
-208277

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT DISTINCT + + SUM( - 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT + + SUM ( - 50 ) AS col2
----
-50

query I rowsort
SELECT DISTINCT + 83 * 70 - - 4 AS col1
----
5814

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-400
SELECT 57 AS col2, NULLIF ( - COUNT( + 27 ), - 3 + - - 31 * - ( + 59 ) )
----
57
-1

skipif mysql # not compatible
query II rowsort label-400
SELECT 57 AS col2, NULLIF ( - COUNT ( + 27 ), - 3 + - - 31 * - ( + 59 ) )
----
57
-1

query I rowsort
SELECT - - 81 * + 29
----
2349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-402
SELECT + 19 * + 44 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-402
SELECT + 19 * + 44 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT ALL 25 * - NULLIF ( + 91, + + COUNT( * ) - - - 78 + COUNT( * ) * - 45 - 30 * - + 43 * - - 22 ) * 95 AS col0
----
-216125

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL 25 * - NULLIF ( + 91, + + COUNT ( * ) - - - 78 + COUNT ( * ) * - 45 - 30 * - + 43 * - - 22 ) * 95 AS col0
----
-216125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-404
SELECT + ( 45 ) + 98 + 25 + COUNT( * ) * - 18 DIV + NULLIF ( 66, + + 81 ) + 92, + COUNT( * ) AS col2
----
260
1

skipif mysql # not compatible
query II rowsort label-404
SELECT + ( 45 ) + 98 + 25 + COUNT ( * ) * - 18 / + NULLIF ( 66, + + 81 ) + 92, + COUNT ( * ) AS col2
----
260
1

onlyif mysql # aggregate syntax: 
query II rowsort label-405
SELECT + 83 * - + 79 AS col1, MIN( - 10 ) AS col1
----
-6557
-10

skipif mysql # not compatible
query II rowsort label-405
SELECT + 83 * - + 79 AS col1, MIN ( - 10 ) AS col1
----
-6557
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-406
SELECT - MIN( ( + 13 ) ) + 89 col1, + 51
----
76
51

skipif mysql # not compatible
query II rowsort label-406
SELECT - MIN ( ( + 13 ) ) + 89 col1, + 51
----
76
51

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

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

query I rowsort
SELECT 79 * ( + 83 ) AS col1
----
6557

query I rowsort
SELECT ALL 11 + - 82 - 52
----
-123

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

query II rowsort
SELECT 69 * + 52 AS col1, 95 * + 63
----
3588
5985

query I rowsort
SELECT ALL - 15 * + 16
----
-240

query I rowsort
SELECT DISTINCT - 6 + - 41 AS col0
----
-47

query I rowsort
SELECT DISTINCT 34 + + COALESCE ( - - 75, - 92 ) col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT ALL - SUM( DISTINCT - 18 ) + 69
----
87

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL - SUM ( DISTINCT - 18 ) + 69
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT ALL + ( 35 ) * - CASE + + 6 WHEN - 22 / 25 THEN NULL WHEN + 27 THEN - 35 END + + + 6 * 72 + - + MAX( + 66 ) + 14 * - - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL + ( 35 ) * - CASE + + 6 WHEN - 22 / 25 THEN NULL WHEN + 27 THEN - 35 END + + + 6 * 72 + - + MAX ( + 66 ) + 14 * - - 62 AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT - - 43 * - 22
----
-946

query I rowsort
SELECT DISTINCT + + 80 + + 35 * + 19 AS col1
----
745

query I rowsort
SELECT ALL - + 17 + - + 90 AS col1
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-422
SELECT - 82 - - CAST( - 41 AS SIGNED )
----
-123

skipif mysql # not compatible
query I rowsort label-422
SELECT - 82 - - CAST ( - 41 AS INTEGER )
----
-123

query I rowsort
SELECT ALL + 17 + + 90 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT 37 * MIN( + - 28 ) + CASE - + COALESCE ( - 13, + - 22 ) WHEN 53 THEN COUNT( DISTINCT - 5 ) / + 87 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-424
SELECT 37 * MIN ( + - 28 ) + CASE - + COALESCE ( - 13, + - 22 ) WHEN 53 THEN COUNT ( DISTINCT - 5 ) / + 87 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT - 79 DIV 72 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-425
SELECT - 79 / 72 AS col0
----
-1

query I rowsort
SELECT 39 * 9 * 50
----
17550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-427
SELECT - - COUNT( * ) DIV 78 * - + 91 + - 52 col2
----
-52

skipif mysql # not compatible
query I rowsort label-427
SELECT - - COUNT ( * ) / 78 * - + 91 + - 52 col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT ALL + ( + ( - 0 ) ) - + 70 + 2 * + 13 * + COUNT( * ) * + 30 * - COUNT( * ) AS col0
----
-850

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL + ( + ( - 0 ) ) - + 70 + 2 * + 13 * + COUNT ( * ) * + 30 * - COUNT ( * ) AS col0
----
-850

query I rowsort
SELECT + 46 - + 89 + - - 42
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-430
SELECT ALL + + 25 DIV + + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL + + 25 / + + 94 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-431
SELECT + ( + ( 58 ) ) * COUNT( DISTINCT + - 54 ) + + - CASE + + 40 WHEN - COUNT( * ) + - 95 THEN - 21 ELSE + 32 END - 83 DIV - 90 - 29, 48 AS col0
----
-3
48

skipif mysql # not compatible
query II rowsort label-431
SELECT + ( + ( 58 ) ) * COUNT ( DISTINCT + - 54 ) + + - CASE + + 40 WHEN - COUNT ( * ) + - 95 THEN - 21 ELSE + 32 END - 83 / - 90 - 29, 48 AS col0
----
-3
48

query II rowsort
SELECT ALL 98 * - - NULLIF ( - - 63, + 58 * 16 ) AS col2, - 25 AS col2
----
6174
-25

query I rowsort
SELECT DISTINCT - 74 * - ( 91 ) * - 51
----
-343434

query I rowsort
SELECT 57 + - + 66 col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-435
SELECT - 95 * CAST( NULL AS SIGNED ) * + 59 * CASE - 61 WHEN + 78 THEN - - CAST( - - 50 AS SIGNED ) * 5 * - ( + + 39 ) WHEN - 23 * + - 94 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-435
SELECT - 95 * CAST ( NULL AS INTEGER ) * + 59 * CASE - 61 WHEN + 78 THEN - - CAST ( - - 50 AS INTEGER ) * 5 * - ( + + 39 ) WHEN - 23 * + - 94 THEN NULL END
----
NULL

query II rowsort
SELECT ALL - 9 AS col2, + ( 61 )
----
-9
61

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT DISTINCT - COUNT( 51 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT - COUNT ( 51 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-438
SELECT ALL - CAST( + 46 AS SIGNED ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL - CAST ( + 46 AS INTEGER ) AS col1
----
-46

query I rowsort
SELECT 73 + + 46 + - - 55 * - 3 AS col1
----
-46

query I rowsort
SELECT ALL 23 * - + 85
----
-1955

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT 50 + - 34 + + 4 * COUNT( * ) * - SUM( DISTINCT + 51 ) * COUNT( * )
----
-188

skipif mysql # not compatible
query I rowsort label-441
SELECT 50 + - 34 + + 4 * COUNT ( * ) * - SUM ( DISTINCT + 51 ) * COUNT ( * )
----
-188

onlyif mysql # aggregate syntax: 
query II rowsort label-442
SELECT - 55 AS col0, + MIN( + 19 ) * - 94 * 52 * COUNT( - - 24 ) - + 27 * + 40
----
-55
-93952

skipif mysql # not compatible
query II rowsort label-442
SELECT - 55 AS col0, + MIN ( + 19 ) * - 94 * 52 * COUNT ( - - 24 ) - + 27 * + 40
----
-55
-93952

onlyif mysql # aggregate syntax: 
query II rowsort label-443
SELECT COALESCE ( - COUNT( * ), - 61 * COUNT( * ) + 23 + 94 + - COUNT( * ) + 46 * - 57 - + 99 ) * + COUNT( * ) - + ( + 67 ) - 63 * 43 AS col0, + 75
----
-2777
75

skipif mysql # not compatible
query II rowsort label-443
SELECT COALESCE ( - COUNT ( * ), - 61 * COUNT ( * ) + 23 + 94 + - COUNT ( * ) + 46 * - 57 - + 99 ) * + COUNT ( * ) - + ( + 67 ) - 63 * 43 AS col0, + 75
----
-2777
75

query I rowsort
SELECT ALL 64 * + NULLIF ( - 30, - 11 + 86 * + + 70 ) AS col0
----
-1920

query I rowsort
SELECT ALL - 56 + + - 26 * + 37 AS col0
----
-1018

query I rowsort
SELECT ALL 81 + - - ( + - 13 ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-447
SELECT 85 + + - MAX( DISTINCT - 58 ) / - CASE - 78 WHEN + - 82 / CAST( NULL AS SIGNED ) + + + 14 THEN + - 29 WHEN - 63 / - ( + 56 ) THEN COUNT( ALL + 35 ) END * - 47 - - 68 - + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-447
SELECT 85 + + - MAX ( DISTINCT - 58 ) / - CASE - 78 WHEN + - 82 / CAST ( NULL AS INTEGER ) + + + 14 THEN + - 29 WHEN - 63 / - ( + 56 ) THEN COUNT ( ALL + 35 ) END * - 47 - - 68 - + - 58
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT ALL MIN( ALL - 91 ) + COALESCE ( + 45, - + 83 )
----
-46

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL MIN ( ALL - 91 ) + COALESCE ( + 45, - + 83 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL 28 * COUNT( * ) * + - 27 * + 92
----
-69552

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL 28 * COUNT ( * ) * + - 27 * + 92
----
-69552

query I rowsort
SELECT DISTINCT 86 + + 15 * + - 85 * 0
----
86

query I rowsort
SELECT ALL 97 + - - 18
----
115

query I rowsort
SELECT 85 + + 84 AS col0
----
169

query I rowsort
SELECT 74 - - 93 AS col2
----
167

query I rowsort
SELECT + CASE WHEN NOT + 14 IS NOT NULL THEN - 25 END + 72 AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - 80 - + 93 * 67
----
-6311

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT CASE - - CASE - COUNT( * ) WHEN - 80 + ( + 6 ) * + 6 THEN NULL ELSE + ( - + 64 ) END WHEN - 40 + - 66 + + 21 / + + 77 THEN + 56 END * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-459
SELECT CASE - - CASE - COUNT ( * ) WHEN - 80 + ( + 6 ) * + 6 THEN NULL ELSE + ( - + 64 ) END WHEN - 40 + - 66 + + 21 / + + 77 THEN + 56 END * - 37
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT - 30 + + - CAST( - - SUM( DISTINCT 22 ) AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-461
SELECT - 30 + + - CAST ( - - SUM ( DISTINCT 22 ) AS INTEGER )
----
-52

query I rowsort
SELECT ALL - 36 * - 15 col0
----
540

query II rowsort
SELECT ALL - 33 AS col2, 96 AS col0
----
-33
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-464
SELECT - ( - - 88 ) * + 89 * - + COUNT( * ) + NULLIF ( 70, + + 10 ) * - - 66 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-464
SELECT - ( - - 88 ) * + 89 * - + COUNT ( * ) + NULLIF ( 70, + + 10 ) * - - 66 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 73 * + + 5
----
-365

query II rowsort
SELECT + 22 AS col0, 6 AS col1
----
22
6

query I rowsort
SELECT - 70 * - 52
----
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT - - CASE + NULLIF ( + 51, - COUNT( * ) * 3 / + COUNT( * ) + + COUNT( * ) - + + 85 * - - 34 * 73 - - - 27 ) WHEN 13 THEN NULL WHEN - 77 * + NULLIF ( + 74, + 83 ) * - 90 / - 57 + + 21 THEN + 80 END * - 62 * 73 + + COUNT( DISTINCT + 57 ) - + + 83 * + COUNT( + + 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-468
SELECT - - CASE + NULLIF ( + 51, - COUNT ( * ) * 3 / + COUNT ( * ) + + COUNT ( * ) - + + 85 * - - 34 * 73 - - - 27 ) WHEN 13 THEN NULL WHEN - 77 * + NULLIF ( + 74, + 83 ) * - 90 / - 57 + + 21 THEN + 80 END * - 62 * 73 + + COUNT ( DISTINCT + 57 ) - + + 83 * + COUNT ( + + 15 ) AS col1
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 16 AS col2, - 18
----
-16
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-471
SELECT ALL + ( - 27 ) DIV - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL + ( - 27 ) / - 79 AS col2
----
0

query II rowsort
SELECT ALL + 28, - 74 col0
----
28
-74

query I rowsort
SELECT ALL - 23 * 42 AS col0
----
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT MAX( ALL 65 ) * 54 * COUNT( ALL + + 56 ) + - 23 + - + 39
----
3448

skipif mysql # not compatible
query I rowsort label-474
SELECT MAX ( ALL 65 ) * 54 * COUNT ( ALL + + 56 ) + - 23 + - + 39
----
3448

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT DISTINCT COUNT( * ) * 50 + + 41 * 13 - - SUM( - 97 ) * 16 * - + 68 + + 63
----
106182

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT COUNT ( * ) * 50 + + 41 * 13 - - SUM ( - 97 ) * 16 * - + 68 + + 63
----
106182

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL COUNT( * ) * - COUNT( * ) * - 67 + 64
----
131

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL COUNT ( * ) * - COUNT ( * ) * - 67 + 64
----
131

query II rowsort
SELECT + 43 AS col1, + 92
----
43
92

query I rowsort
SELECT - 17 * + ( + 87 ) col1
----
-1479

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT COUNT( DISTINCT - 93 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-479
SELECT COUNT ( DISTINCT - 93 ) AS col1
----
1

query II rowsort
SELECT + 0 AS col2, + 77 * + ( + 6 ) * + 22 AS col2
----
0
10164

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-481
SELECT + AVG ( ALL + ( + CAST( NULL AS DECIMAL ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-481
SELECT + AVG ( ALL + ( + CAST ( NULL AS REAL ) ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 23 + + 4 - 42 col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-483
SELECT + 40 DIV 68 col2
----
0

skipif mysql # not compatible
query I rowsort label-483
SELECT + 40 / 68 col2
----
0

query I rowsort
SELECT ALL + 89 + + 31 AS col1
----
120

query I rowsort
SELECT ALL - 25 + - 33 + + 87 AS col0
----
29

query I rowsort
SELECT - 55 * + + 68 AS col1
----
-3740

onlyif mysql # DIV for integer division: 
query I rowsort label-487
SELECT - + ( - 18 ) DIV + + 23
----
0

skipif mysql # not compatible
query I rowsort label-487
SELECT - + ( - 18 ) / + + 23
----
0

query I rowsort
SELECT + + 65 * COALESCE ( - 36, COALESCE ( + 92, 19, 4 * - 81 ) ) * 73 AS col0
----
-170820

query II rowsort
SELECT DISTINCT + 59 * + 29 * - 6 * - 3 AS col1, + 7
----
30798
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT DISTINCT - + MAX( DISTINCT 84 ) - + - 47 * + 71 AS col2
----
3253

skipif mysql # not compatible
query I rowsort label-491
SELECT DISTINCT - + MAX ( DISTINCT 84 ) - + - 47 * + 71 AS col2
----
3253

query I rowsort
SELECT DISTINCT COALESCE ( - + 17, - 53 ) AS col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-493
SELECT ALL 75 * - NULLIF ( + AVG ( - + ( + - 98 ) ), + CAST( NULL AS SIGNED ) ) * + - 7 * + + 10 + - 34 + CASE 20 WHEN MAX( 19 ) THEN NULL ELSE + - CAST( NULL AS SIGNED ) / 30 END * - ( - 99 ) * 33 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL 75 * - NULLIF ( + AVG ( - + ( + - 98 ) ), + CAST ( NULL AS INTEGER ) ) * + - 7 * + + 10 + - 34 + CASE 20 WHEN MAX ( 19 ) THEN NULL ELSE + - CAST ( NULL AS INTEGER ) / 30 END * - ( - 99 ) * 33 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT DISTINCT + 76 - + COUNT( ALL + 79 )
----
75

skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT + 76 - + COUNT ( ALL + 79 )
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT - SUM( 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-496
SELECT - SUM ( 16 )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-497
SELECT - - COUNT( * ) col1, 51
----
1
51

skipif mysql # not compatible
query II rowsort label-497
SELECT - - COUNT ( * ) col1, 51
----
1
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-498
SELECT ALL + CASE - + 44 WHEN 51 * - 55 - + + 99 * - ( - 28 ) * - + 88 THEN 40 ELSE NULL END, 84 * - + CAST( NULL AS SIGNED ) / + 18
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-498
SELECT ALL + CASE - + 44 WHEN 51 * - 55 - + + 99 * - ( - 28 ) * - + 88 THEN 40 ELSE NULL END, 84 * - + CAST ( NULL AS INTEGER ) / + 18
----
NULL
NULL

query I rowsort
SELECT - 87 * - - 23 + + + ( + - 18 ) + 77 AS col1
----
-1942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-500
SELECT + 17 * - AVG ( - ( 81 ) ) * - COUNT( * ) * - CASE + 64 WHEN COUNT( * ) * NULLIF ( 55, - 71 + - 71 + - + 86 ) THEN + 11 END AS col1, CASE - MAX( ALL + + 49 ) WHEN + - 29 THEN NULL WHEN + ( SUM( DISTINCT - 9 ) ) * + CAST( NULL AS SIGNED ) THEN NULL ELSE - + ( 75 ) + 69 END AS col2
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-500
SELECT + 17 * - AVG ( - ( 81 ) ) * - COUNT ( * ) * - CASE + 64 WHEN COUNT ( * ) * NULLIF ( 55, - 71 + - 71 + - + 86 ) THEN + 11 END AS col1, CASE - MAX ( ALL + + 49 ) WHEN + - 29 THEN NULL WHEN + ( SUM ( DISTINCT - 9 ) ) * + CAST ( NULL AS INTEGER ) THEN NULL ELSE - + ( 75 ) + 69 END AS col2
----
NULL
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT 44 DIV + 45 + + 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-501
SELECT 44 / + 45 + + 2 AS col1
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT + COALESCE ( - - 39, + + 5 ) - AVG ( DISTINCT - 61 ) * + CASE + 74 WHEN - + 43 THEN 16 WHEN - 55 * + 70 + - COUNT( * ) THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-503
SELECT + COALESCE ( - - 39, + + 5 ) - AVG ( DISTINCT - 61 ) * + CASE + 74 WHEN - + 43 THEN 16 WHEN - 55 * + 70 + - COUNT ( * ) THEN NULL ELSE NULL END col0
----
NULL

query II rowsort
SELECT ALL + NULLIF ( + 58, - 94 ), - 81 AS col2
----
58
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-505
SELECT - CASE - CAST( + + 8 AS SIGNED ) WHEN 59 * + COUNT( * ) + - COUNT( * ) THEN - 8 / - 40 + - 59 + + 53 END * - 17 / + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-505
SELECT - CASE - CAST ( + + 8 AS INTEGER ) WHEN 59 * + COUNT ( * ) + - COUNT ( * ) THEN - 8 / - 40 + - 59 + + 53 END * - 17 / + 7
----
NULL

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

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

query II rowsort
SELECT ( - + 70 ) AS col0, 7
----
-70
7

query II rowsort
SELECT + 76 + + - 45 AS col1, - 82 col0
----
31
-82

query I rowsort
SELECT + 75 * + 75 + + - 81 col1
----
5544

query I rowsort
SELECT - 58 - 52 AS col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT ALL + 92 * + + 48 + + - SUM( 40 ) AS col2
----
4376

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL + 92 * + + 48 + + - SUM ( 40 ) AS col2
----
4376

onlyif mysql # aggregate syntax: 
query II rowsort label-512
SELECT ALL - 9 * + + 35 + + COUNT( * ), + COUNT( * ) - - ( 55 ) AS col2
----
-314
56

skipif mysql # not compatible
query II rowsort label-512
SELECT ALL - 9 * + + 35 + + COUNT ( * ), + COUNT ( * ) - - ( 55 ) AS col2
----
-314
56

query I rowsort
SELECT DISTINCT - COALESCE ( 25, - + 40 * - 14 ) * + + 1
----
-25

query II rowsort
SELECT ALL - 29 * 81, - 4 * + 75 AS col2
----
-2349
-300

query II rowsort
SELECT NULLIF ( + ( + 71 ), 77 + 25 ) AS col2, 39 + 59
----
71
98

query I rowsort
SELECT ALL 74 * 95 * 36 - - 41
----
253121

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT 94 * - + 89 + - + MIN( DISTINCT CASE - - 47 WHEN + + 54 * - 3 - - 71 + - - 18 THEN NULL ELSE + - 47 END ) AS col2
----
-8319

skipif mysql # not compatible
query I rowsort label-517
SELECT 94 * - + 89 + - + MIN ( DISTINCT CASE - - 47 WHEN + + 54 * - 3 - - 71 + - - 18 THEN NULL ELSE + - 47 END ) AS col2
----
-8319

onlyif mysql # aggregate syntax: 
query II rowsort label-518
SELECT - 10 - COUNT( * ) col2, MAX( - 26 ) + 58 * - COUNT( * ) AS col0
----
-11
-84

skipif mysql # not compatible
query II rowsort label-518
SELECT - 10 - COUNT ( * ) col2, MAX ( - 26 ) + 58 * - COUNT ( * ) AS col0
----
-11
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-519
SELECT - + 35 * - COALESCE ( + 63, + 67 * MAX( - + CASE CAST( NULL AS SIGNED ) WHEN - 37 THEN - 6 + - 40 + + 34 END ) + - + 73 ) - + 68 + 77
----
2214

skipif mysql # not compatible
query I rowsort label-519
SELECT - + 35 * - COALESCE ( + 63, + 67 * MAX ( - + CASE CAST ( NULL AS INTEGER ) WHEN - 37 THEN - 6 + - 40 + + 34 END ) + - + 73 ) - + 68 + 77
----
2214

onlyif mysql # aggregate syntax: 
query II rowsort label-520
SELECT DISTINCT + COUNT( * ) * - 43 AS col2, ( + 18 )
----
-43
18

skipif mysql # not compatible
query II rowsort label-520
SELECT DISTINCT + COUNT ( * ) * - 43 AS col2, ( + 18 )
----
-43
18

onlyif mysql # DIV for integer division: 
query II rowsort label-521
SELECT DISTINCT - 47 DIV + 33, + 66 * + - 48 * - 70 col0
----
-1
221760

skipif mysql # not compatible
query II rowsort label-521
SELECT DISTINCT - 47 / + 33, + 66 * + - 48 * - 70 col0
----
-1
221760

query I rowsort
SELECT - + 83 + - 46 AS col0
----
-129

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

query I rowsort
SELECT - - NULLIF ( - COALESCE ( - 66, + + 13 * + 83 + - - 27 * 60 ), + + 72 * - 86 ) * - 96
----
-6336

query I rowsort
SELECT + - 9 + 18 AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-526
SELECT + 34 DIV - - 23 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-526
SELECT + 34 / - - 23 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-527
SELECT DISTINCT - - 6 DIV 52 col0
----
0

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT - - 6 / 52 col0
----
0

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

skipif mysql # not compatible
query I rowsort label-528
SELECT - - CAST ( + + COUNT ( - 36 ) AS INTEGER )
----
1

query I rowsort
SELECT ALL - 54 * - + 69
----
3726

query I rowsort
SELECT - 92 * + 33 AS col0
----
-3036

query I rowsort
SELECT ALL NULLIF ( + - 86, 71 * - 83 * 14 + 83 / + 38 + 28 ) * + - 87
----
7482

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT COALESCE ( + - 57, - COUNT( * ) ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-532
SELECT COALESCE ( + - 57, - COUNT ( * ) ) col2
----
-57

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

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

query I rowsort
SELECT ALL 45 + 94
----
139

query I rowsort
SELECT + COALESCE ( - COALESCE ( - ( 79 ), - 9 + - + 63 ), + 66 )
----
79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-537
SELECT ALL + 71 DIV COALESCE ( 96, + - 53 ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL + 71 / COALESCE ( 96, + - 53 ) / 33
----
0

query I rowsort
SELECT ALL 7 + 66
----
73

query I rowsort
SELECT ALL 18 + + 19 AS col0
----
37

query II rowsort
SELECT 80, - ( - + 86 ) AS col0
----
80
86

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

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

query II rowsort
SELECT 66, - 12 col0
----
66
-12

query II rowsort
SELECT ALL - 44 AS col0, 45 * - 49 * + - NULLIF ( + + 56, 68 )
----
-44
123480

query II rowsort
SELECT 72, - 2 AS col2
----
72
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-545
SELECT ALL COALESCE ( + + 27, + + 85 * COUNT( * ) ) + - + ( 44 ) DIV + 40 * - + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL COALESCE ( + + 27, + + 85 * COUNT ( * ) ) + - + ( 44 ) / + 40 * - + COUNT ( * ) AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-546
SELECT ALL + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * + - 68 AS col0, 95 + - ( + 46 ) AS col1
----
NULL
49

skipif mysql # not compatible
query II rowsort label-546
SELECT ALL + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + - 68 AS col0, 95 + - ( + 46 ) AS col1
----
NULL
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-547
SELECT DISTINCT 70 - - COUNT( * ) DIV - COUNT( * ) + - 77 * 47 * 58
----
-209833

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT 70 - - COUNT ( * ) / - COUNT ( * ) + - 77 * 47 * 58
----
-209833

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT ALL - MAX( DISTINCT 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL - MAX ( DISTINCT 90 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT - 89 * + 86 + + 73 * - - COUNT( * ) AS col0
----
-7581

skipif mysql # not compatible
query I rowsort label-549
SELECT - 89 * + 86 + + 73 * - - COUNT ( * ) AS col0
----
-7581

query I rowsort
SELECT 79 * - 18 * + 5 * - - 12 * - 99 AS col2
----
8446680

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT 98 * - 48 + - 4 - + 6 + ( MAX( DISTINCT 98 ) ) AS col1
----
-4616

skipif mysql # not compatible
query I rowsort label-551
SELECT 98 * - 48 + - 4 - + 6 + ( MAX ( DISTINCT 98 ) ) AS col1
----
-4616

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

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

query I rowsort
SELECT 30 + - 30 - + 66
----
-66

query I rowsort
SELECT 33 * + + 38
----
1254

query II rowsort
SELECT ALL - 75 AS col1, 14 AS col0
----
-75
14

query II rowsort
SELECT ALL - - ( COALESCE ( - NULLIF ( 82, - 49 ), - 55 ) ) AS col1, + 59 * + 60 AS col0
----
-82
3540

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

query II rowsort
SELECT - - 60 AS col1, 93
----
60
93

onlyif mysql # aggregate syntax: 
query II rowsort label-559
SELECT ALL 45, - 78 + + 88 * 9 * + COUNT( * ) + 77 + + 60 * + 81 + 32 AS col1
----
45
5683

skipif mysql # not compatible
query II rowsort label-559
SELECT ALL 45, - 78 + + 88 * 9 * + COUNT ( * ) + 77 + + 60 * + 81 + 32 AS col1
----
45
5683

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

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

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

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

query I rowsort
SELECT ALL + 18 * + - 86
----
-1548

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( + 49 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT DISTINCT - - 53 + - COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT - - 53 + - COUNT ( * ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-568
SELECT DISTINCT + MIN( DISTINCT ( - 0 ) ) AS col1, + 82 * + + 21 - ( 84 ) col2
----
0
1638

skipif mysql # not compatible
query II rowsort label-568
SELECT DISTINCT + MIN ( DISTINCT ( - 0 ) ) AS col1, + 82 * + + 21 - ( 84 ) col2
----
0
1638

query II rowsort
SELECT - 91 AS col0, 33
----
-91
33

query I rowsort
SELECT ALL + 22 + 39 AS col1
----
61

query I rowsort
SELECT ALL + 17 + - 6 + + 27 col0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-572
SELECT ( CASE + 38 WHEN + 45 THEN NULL ELSE + 85 END ) * + + 98 * - COUNT( * ) + + 12 + - + COALESCE ( 34, COALESCE ( - 33, + - 42, - - COUNT( * ) DIV + + 13, + + CASE + 20 WHEN - 88 * + 96 DIV + 50 THEN - - COALESCE ( - - 43, + 89, - 75 + + - 82 ) WHEN + ( - 20 ) THEN - + NULLIF ( - + 25, - AVG ( + 20 ) * 46 ) ELSE NULL END ) * + + NULLIF ( 28, - - 61 ) + ( COUNT( * ) ) + - 59 * + - 20 + - 30 + + 32 + + 46 ) * + - 92
----
-5190

skipif mysql # not compatible
query I rowsort label-572
SELECT ( CASE + 38 WHEN + 45 THEN NULL ELSE + 85 END ) * + + 98 * - COUNT ( * ) + + 12 + - + COALESCE ( 34, COALESCE ( - 33, + - 42, - - COUNT ( * ) / + + 13, + + CASE + 20 WHEN - 88 * + 96 / + 50 THEN - - COALESCE ( - - 43, + 89, - 75 + + - 82 ) WHEN + ( - 20 ) THEN - + NULLIF ( - + 25, - AVG ( + 20 ) * 46 ) ELSE NULL END ) * + + NULLIF ( 28, - - 61 ) + ( COUNT ( * ) ) + - 59 * + - 20 + - 30 + + 32 + + 46 ) * + - 92
----
-5190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-573
SELECT 49 + NULLIF ( COUNT( * ), 62 ) + - - 39 * - 90 * - + 1 * - + CAST( NULL AS SIGNED ) * + 19 * - 73 + - SUM( - + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-573
SELECT 49 + NULLIF ( COUNT ( * ), 62 ) + - - 39 * - 90 * - + 1 * - + CAST ( NULL AS INTEGER ) * + 19 * - 73 + - SUM ( - + 77 )
----
NULL

query I rowsort
SELECT 54 + + 98 + 42 col1
----
194

query I rowsort
SELECT ALL - 74 + - 11 AS col1
----
-85

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

query I rowsort
SELECT 99 - 57
----
42

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

skipif mysql # not compatible
query I rowsort label-578
SELECT + COUNT ( * ) / + 80 + + 38
----
38

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

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

query I rowsort
SELECT DISTINCT 24 * 58 * 8 AS col0
----
11136

query I rowsort
SELECT 82 + + 88
----
170

query I rowsort
SELECT ALL - 74 - + - 26 col0
----
-48

query I rowsort
SELECT 89 * 81 col1
----
7209

query I rowsort
SELECT DISTINCT + 11 * + + 86 AS col1
----
946

query I rowsort
SELECT ALL ( - 10 ) - 71 * + - 72 * + 57 * 74
----
21562406

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT 75 * - + 40 + + 95 * - + 12 * + - 22 + - SUM( - + 85 ) + - 93 * - 96 * + - COUNT( * )
----
13237

skipif mysql # not compatible
query I rowsort label-587
SELECT 75 * - + 40 + + 95 * - + 12 * + - 22 + - SUM ( - + 85 ) + - 93 * - 96 * + - COUNT ( * )
----
13237

onlyif mysql # DIV for integer division: 
query I rowsort label-588
SELECT ALL 5 - + 19 * - 98 - 49 DIV COALESCE ( - 53, 0 * - 9, - + 84 + 99 + + 75 ) * 33 - + 45 - - - 2 + ( + 61 ) AS col2
----
1881

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL 5 - + 19 * - 98 - 49 / COALESCE ( - 53, 0 * - 9, - + 84 + 99 + + 75 ) * 33 - + 45 - - - 2 + ( + 61 ) AS col2
----
1881

query I rowsort
SELECT 79 * - 48
----
-3792

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

skipif mysql # not compatible
query I rowsort label-590
SELECT COUNT ( * ) * COUNT ( * ) * + SUM ( + CAST ( 77 AS INTEGER ) )
----
77

query I rowsort
SELECT 88 * - - 45 AS col0
----
3960

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

skipif mysql # not compatible
query I rowsort label-592
SELECT SUM ( + 36 )
----
36

query I rowsort
SELECT 43 - 99 * - + 51 AS col2
----
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT ALL 51 * 24 * - - COUNT( * ) AS col0
----
1224

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL 51 * 24 * - - COUNT ( * ) AS col0
----
1224

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT 93 * - COUNT( * ) + 88 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT 93 * - COUNT ( * ) + 88 AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-597
SELECT DISTINCT - 69 * + 93 AS col2, CAST( NULL AS SIGNED ) AS col2
----
-6417
NULL

skipif mysql # not compatible
query II rowsort label-597
SELECT DISTINCT - 69 * + 93 AS col2, CAST ( NULL AS INTEGER ) AS col2
----
-6417
NULL

query I rowsort
SELECT DISTINCT - 64 * - + 66 col1
----
4224

query I rowsort
SELECT ALL + 53 * + - ( NULLIF ( 14, - - ( - 41 ) ) )
----
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT - 80 * 39 + MAX( ALL + 95 ) AS col1
----
-3025

skipif mysql # not compatible
query I rowsort label-600
SELECT - 80 * 39 + MAX ( ALL + 95 ) AS col1
----
-3025

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT DISTINCT - NULLIF ( + 41, COUNT( * ) ) * - 10 * + 74 + 2 * - 65 * - 34
----
34760

skipif mysql # not compatible
query I rowsort label-601
SELECT DISTINCT - NULLIF ( + 41, COUNT ( * ) ) * - 10 * + 74 + 2 * - 65 * - 34
----
34760

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT 54 + - NULLIF ( - + 13, + 51 / + COUNT( * ) ) + CASE - 5 WHEN 79 THEN NULL ELSE 83 / + CASE + 18 WHEN 84 * + 90 - + 62 THEN NULL WHEN + 60 THEN MAX( DISTINCT - 12 ) * + ( + 46 ) * + 79 / 33 * + 84 END END + 20 + - 44 * + - 19 + + 39 * 70 * 51 * 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT 54 + - NULLIF ( - + 13, + 51 / + COUNT ( * ) ) + CASE - 5 WHEN 79 THEN NULL ELSE 83 / + CASE + 18 WHEN 84 * + 90 - + 62 THEN NULL WHEN + 60 THEN MAX ( DISTINCT - 12 ) * + ( + 46 ) * + 79 / 33 * + 84 END END + 20 + - 44 * + - 19 + + 39 * 70 * 51 * 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-603
SELECT - + MAX( - 22 ) AS col0, 33
----
22
33

skipif mysql # not compatible
query II rowsort label-603
SELECT - + MAX ( - 22 ) AS col0, 33
----
22
33

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT ALL - - 89 DIV + - ( - 65 ) + + + 87 DIV - + 20 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL - - 89 / + - ( - 65 ) + + + 87 / - + 20 AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT + + ( 72 ) DIV + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-605
SELECT + + ( 72 ) / + 94 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-606
SELECT ALL - 26 + 81 * + 43 / CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * ( 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL - 26 + 81 * + 43 / CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * ( 5 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT - NULLIF ( + CASE 82 WHEN 23 THEN - 70 WHEN - COUNT( * ) * - 38 * + COALESCE ( + 69, 56 ) THEN NULL WHEN + 91 * - + 22 * COUNT( - + 56 ) THEN NULL END, + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-607
SELECT - NULLIF ( + CASE 82 WHEN 23 THEN - 70 WHEN - COUNT ( * ) * - 38 * + COALESCE ( + 69, 56 ) THEN NULL WHEN + 91 * - + 22 * COUNT ( - + 56 ) THEN NULL END, + 28 )
----
NULL

query I rowsort
SELECT ALL - - 76 + + + ( + 98 )
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-609
SELECT - CASE - - 11 WHEN + COUNT( * ) THEN NULL WHEN - 46 THEN NULL ELSE + COALESCE ( + + 77, 40 ) END + 4 DIV - 11 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-609
SELECT - CASE - - 11 WHEN + COUNT ( * ) THEN NULL WHEN - 46 THEN NULL ELSE + COALESCE ( + + 77, 40 ) END + 4 / - 11 AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-610
SELECT ALL 66 + - 29 AS col2, - 12 * COALESCE ( - 82, + 55 + - ( - 45 ) + COUNT( * ) * - + CASE + 19 WHEN + 0 THEN NULL WHEN + SUM( 78 ) THEN ( 78 ) + + - COUNT( * ) END * + 60 ) * - AVG ( - + 52 ) * + 44 + 66 * - 27 * 52 - - 62 + - 67 + CAST( NULL AS SIGNED ) - - CASE - + COUNT( * ) WHEN - 49 THEN NULL WHEN + CAST( - 35 AS DECIMAL ) THEN - - 51 WHEN + 73 THEN + - 61 - - COUNT( * ) END
----
37
NULL

skipif mysql # not compatible
query II rowsort label-610
SELECT ALL 66 + - 29 AS col2, - 12 * COALESCE ( - 82, + 55 + - ( - 45 ) + COUNT ( * ) * - + CASE + 19 WHEN + 0 THEN NULL WHEN + SUM ( 78 ) THEN ( 78 ) + + - COUNT ( * ) END * + 60 ) * - AVG ( - + 52 ) * + 44 + 66 * - 27 * 52 - - 62 + - 67 + CAST ( NULL AS INTEGER ) - - CASE - + COUNT ( * ) WHEN - 49 THEN NULL WHEN + CAST ( - 35 AS REAL ) THEN - - 51 WHEN + 73 THEN + - 61 - - COUNT ( * ) END
----
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT - 10 + + 71 * - + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-611
SELECT - 10 + + 71 * - + COUNT ( * )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-612
SELECT + 49 * + 33, ( + CAST( - 24 AS SIGNED ) ) AS col2
----
1617
-24

skipif mysql # not compatible
query II rowsort label-612
SELECT + 49 * + 33, ( + CAST ( - 24 AS INTEGER ) ) AS col2
----
1617
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT DISTINCT + + COUNT( * ) * + COALESCE ( - + 4, - 18 ) - + MAX( - - 82 ) + 3 * + 67 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT + + COUNT ( * ) * + COALESCE ( - + 4, - 18 ) - + MAX ( - - 82 ) + 3 * + 67 AS col2
----
115

query I rowsort
SELECT + 63 * + + 5 AS col1
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT - 37 + COALESCE ( + 60, + 82 + - COUNT( * ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-615
SELECT - 37 + COALESCE ( + 60, + 82 + - COUNT ( * ) ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL MAX( ALL + + 32 ) col2
----
32

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL MAX ( ALL + + 32 ) col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-617
SELECT - 59 + 71 + - + SUM( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL - COUNT( 15 ) - + 53 * - 79 + 31 + + COUNT( * )
----
4218

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL - COUNT ( 15 ) - + 53 * - 79 + 31 + + COUNT ( * )
----
4218

query II rowsort
SELECT 10, - ( - 31 ) AS col0
----
10
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-620
SELECT DISTINCT COALESCE ( COUNT( * ), 58 DIV - COALESCE ( - 99, + SUM( ALL 98 ) ) + - COUNT( * ) * + 32 * - 88 ) AS col0, COUNT( * ) DIV NULLIF ( - + COUNT( + ( - - 29 ) ), - 15 DIV + 85 + 82 ) * - 76 + 67 AS col2
----
1
143

skipif mysql # not compatible
query II rowsort label-620
SELECT DISTINCT COALESCE ( COUNT ( * ), 58 / - COALESCE ( - 99, + SUM ( ALL 98 ) ) + - COUNT ( * ) * + 32 * - 88 ) AS col0, COUNT ( * ) / NULLIF ( - + COUNT ( + ( - - 29 ) ), - 15 / + 85 + 82 ) * - 76 + 67 AS col2
----
1
143

query I rowsort
SELECT DISTINCT - 88 - - - 69 * + 80 AS col0
----
-5608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-622
SELECT DISTINCT + CASE - 33 WHEN 13 THEN + 75 * + 70 + CAST( 36 AS SIGNED ) * - 83 WHEN + ( 45 ) + + 97 THEN + 91 END - - + COUNT( * ) * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT + CASE - 33 WHEN 13 THEN + 75 * + 70 + CAST ( 36 AS INTEGER ) * - 83 WHEN + ( 45 ) + + 97 THEN + 91 END - - + COUNT ( * ) * 40
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT + 81 * + 98 + + 4 + - 90 * - 7 - - + 29 * + COUNT( * ) * + 3
----
8659

skipif mysql # not compatible
query I rowsort label-625
SELECT + 81 * + 98 + + 4 + - 90 * - 7 - - + 29 * + COUNT ( * ) * + 3
----
8659

query I rowsort
SELECT DISTINCT + 25 * - 35 AS col2
----
-875

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

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL + COUNT ( * ) * + + 2 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT - 57 DIV + 34
----
-1

skipif mysql # not compatible
query I rowsort label-628
SELECT - 57 / + 34
----
-1

query I rowsort
SELECT - 51 + - 87 * - 86
----
7431

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

skipif mysql # not compatible
query I rowsort label-630
SELECT + MAX ( - ( 71 ) )
----
-71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-631
SELECT ALL + 82 * COALESCE ( 25, + 3 DIV 89 ) col0, - 69 DIV + 89 + + 29 + - 93 * - - CAST( NULL AS SIGNED ) * - + 57 col2
----
2050
NULL

skipif mysql # not compatible
query II rowsort label-631
SELECT ALL + 82 * COALESCE ( 25, + 3 / 89 ) col0, - 69 / + 89 + + 29 + - 93 * - - CAST ( NULL AS INTEGER ) * - + 57 col2
----
2050
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-633
SELECT DISTINCT + + NULLIF ( + MAX( DISTINCT - 50 ), + CAST( - + 95 AS DECIMAL ) + + COUNT( * ) * + 75 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT + + NULLIF ( + MAX ( DISTINCT - 50 ), + CAST ( - + 95 AS REAL ) + + COUNT ( * ) * + 75 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT ALL - 54 * 9 + 96 + - COUNT( * )
----
-391

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL - 54 * 9 + 96 + - COUNT ( * )
----
-391

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

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

query I rowsort
SELECT + + 5 + + + 33 AS col0
----
38

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

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

query I rowsort
SELECT + - 30 + + 60 + + 62
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-639
SELECT - NULLIF ( + - CAST( - 17 AS SIGNED ), + 64 )
----
-17

skipif mysql # not compatible
query I rowsort label-639
SELECT - NULLIF ( + - CAST ( - 17 AS INTEGER ), + 64 )
----
-17

query I rowsort
SELECT ALL - 53 * - - 34 + + - 16 + + 75 + + 51
----
-1692

query I rowsort
SELECT DISTINCT + 47 * + + 20 AS col2
----
940

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL - ( + SUM( - 3 ) ) + 64 * + 11
----
707

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL - ( + SUM ( - 3 ) ) + 64 * + 11
----
707

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

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

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

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

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT 96 - + COUNT ( * ) / - 66
----
96

query I rowsort
SELECT - - COALESCE ( + - 97, 47, + 19 )
----
-97

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

query I rowsort
SELECT ALL COALESCE ( - 66, + 72 * + 13 + - 56, + 57 * + 11 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-649
SELECT + 47 - + 90 - - CAST( - MIN( ALL 48 ) AS SIGNED ) - + + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-649
SELECT + 47 - + 90 - - CAST ( - MIN ( ALL 48 ) AS INTEGER ) - + + COUNT ( * )
----
-92

query I rowsort
SELECT ALL + 11 * 92 * 35 AS col0
----
35420

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-652
SELECT DISTINCT COUNT( * ) DIV - 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT COUNT ( * ) / - 30 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-654
SELECT - 70 - + 34 + + CASE + CAST( - - NULLIF ( + 66, + NULLIF ( 27, + + 59 ) * + + 6 ) AS SIGNED ) WHEN + 21 * + + 19 + + - 12 THEN 97 WHEN + + 46 THEN NULL ELSE - - 71 + + + COUNT( * ) * - 85 END DIV 55 * + + 18 + - - 73
----
-31

skipif mysql # not compatible
query I rowsort label-654
SELECT - 70 - + 34 + + CASE + CAST ( - - NULLIF ( + 66, + NULLIF ( 27, + + 59 ) * + + 6 ) AS INTEGER ) WHEN + 21 * + + 19 + + - 12 THEN 97 WHEN + + 46 THEN NULL ELSE - - 71 + + + COUNT ( * ) * - 85 END / 55 * + + 18 + - - 73
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-655
SELECT DISTINCT + MAX( DISTINCT 10 ) DIV + - COUNT( * ) + + 89 + 2
----
81

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT + MAX ( DISTINCT 10 ) / + - COUNT ( * ) + + 89 + 2
----
81

query I rowsort
SELECT - 10 + - - 58
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-657
SELECT ALL + 64 DIV + + 75 * - 72 + + 10, - 5 col0
----
10
-5

skipif mysql # not compatible
query II rowsort label-657
SELECT ALL + 64 / + + 75 * - 72 + + 10, - 5 col0
----
10
-5

query I rowsort
SELECT - - 81 * - 46 + + 33 AS col0
----
-3693

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT ALL + 70 * + 60 * COALESCE ( + 64, - COUNT( DISTINCT 0 ), 54 + - - 62 - + 22 ) AS col2
----
268800

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL + 70 * + 60 * COALESCE ( + 64, - COUNT ( DISTINCT 0 ), 54 + - - 62 - + 22 ) AS col2
----
268800

onlyif mysql # aggregate syntax: 
query III rowsort label-660
SELECT 13 AS col1, - 38, - COUNT( * ) + + 94 AS col1
----
13
-38
93

skipif mysql # not compatible
query III rowsort label-660
SELECT 13 AS col1, - 38, - COUNT ( * ) + + 94 AS col1
----
13
-38
93

query I rowsort
SELECT ALL - - 18 + 9
----
27

query I rowsort
SELECT ALL - 79 + - + 42 AS col1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT SUM( + 67 ) * - 85 - - 87 * - 0
----
-5695

skipif mysql # not compatible
query I rowsort label-663
SELECT SUM ( + 67 ) * - 85 - - 87 * - 0
----
-5695

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

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

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

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL + - 5 * - COUNT ( * ) / 15 AS col2
----
0

query I rowsort
SELECT - 70 + 62
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT DISTINCT + MIN( + 5 ) * + 17 * + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT + MIN ( + 5 ) * + 17 * + COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT + 18 + COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-668
SELECT + 18 + COUNT ( * ) AS col1
----
19

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

query II rowsort
SELECT ALL - 42 AS col2, 20 * - 66
----
-42
-1320

onlyif mysql # aggregate syntax: 
query II rowsort label-671
SELECT 38 * - + ( - 36 ) + + MIN( - ( + + 60 ) ) + - 62 AS col2, + 5 col0
----
1246
5

skipif mysql # not compatible
query II rowsort label-671
SELECT 38 * - + ( - 36 ) + + MIN ( - ( + + 60 ) ) + - 62 AS col2, + 5 col0
----
1246
5

query I rowsort
SELECT - 1 - + 35 AS col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-673
SELECT DISTINCT - COALESCE ( 95, - 32 * - + AVG ( DISTINCT - - 71 ) ) DIV 25 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT - COALESCE ( 95, - 32 * - + AVG ( DISTINCT - - 71 ) ) / 25 AS col1
----
-3

query I rowsort
SELECT 75 - 78 AS col0
----
-3

query II rowsort
SELECT ALL + 19 AS col2, 65 AS col0
----
19
65

query I rowsort
SELECT - 59 + + 15
----
-44

query I rowsort
SELECT DISTINCT + CASE - 45 WHEN - 40 THEN - - 49 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL COUNT( * ) * 47 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL COUNT ( * ) * 47 AS col1
----
47

query II rowsort
SELECT 98 + + 34 AS col1, CASE + + 31 WHEN + 39 THEN + + 21 END * 37
----
132
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT ALL ( + COUNT( * ) ) * + 91 * 62 AS col2
----
5642

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL ( + COUNT ( * ) ) * + 91 * 62 AS col2
----
5642

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-682
SELECT ALL COUNT( * ) * 50 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL COUNT ( * ) * 50 / CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ( - 27 ) * 84 AS col0, 43 AS col1
----
-2268
43

query I rowsort
SELECT 17 + + - 1
----
16

query I rowsort
SELECT DISTINCT NULLIF ( - - ( + COALESCE ( + 98, - 24, 60 * 37 * - + 32 + + ( + 37 ) ) ), - 11 ) * COALESCE ( 10, ( - 37 ), - 78 )
----
980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-686
SELECT CAST( NULL AS SIGNED ) * - + CASE + 53 WHEN - 84 + + COUNT( * ) THEN + + CASE - MAX( ALL 46 ) WHEN 44 THEN NULL WHEN MIN( ALL + - 46 ) + - 92 THEN - 29 ELSE NULL END - + - 27 + - ( - + 89 ) * + - 80 + - + CASE - - 14 WHEN 75 + + 65 + 25 / - + 60 THEN 86 * - + 86 * - - 28 WHEN - - 91 * - COUNT( * ) + + COUNT( * ) THEN 60 * + - 36 ELSE NULL END END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-686
SELECT CAST ( NULL AS INTEGER ) * - + CASE + 53 WHEN - 84 + + COUNT ( * ) THEN + + CASE - MAX ( ALL 46 ) WHEN 44 THEN NULL WHEN MIN ( ALL + - 46 ) + - 92 THEN - 29 ELSE NULL END - + - 27 + - ( - + 89 ) * + - 80 + - + CASE - - 14 WHEN 75 + + 65 + 25 / - + 60 THEN 86 * - + 86 * - - 28 WHEN - - 91 * - COUNT ( * ) + + COUNT ( * ) THEN 60 * + - 36 ELSE NULL END END * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-687
SELECT DISTINCT CAST( + - 42 AS SIGNED ) + + 74 col0
----
32

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT CAST ( + - 42 AS INTEGER ) + + 74 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT DISTINCT NULLIF ( + 0, - NULLIF ( COUNT( * ), 9 ) ) * - 10 col2
----
0

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT NULLIF ( + 0, - NULLIF ( COUNT ( * ), 9 ) ) * - 10 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT ALL 28 + CASE + - 85 WHEN - + 35 / + 29 * SUM( DISTINCT 12 ) - + - 96 THEN NULL ELSE - + 0 END * - MIN( - 50 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL 28 + CASE + - 85 WHEN - + 35 / + 29 * SUM ( DISTINCT 12 ) - + - 96 THEN NULL ELSE - + 0 END * - MIN ( - 50 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT ALL MIN( - 87 ) + - 26 AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL MIN ( - 87 ) + - 26 AS col2
----
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-691
SELECT DISTINCT NULLIF ( ( + - 68 ), + 79 ) + - 0 DIV + - COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT NULLIF ( ( + - 68 ), + 79 ) + - 0 / + - COUNT ( * ) AS col0
----
-68

query I rowsort
SELECT ALL ( + 33 ) + + 70
----
103

query I rowsort
SELECT - ( + + 92 ) * + + 88 * + 4 * - + 23 * - + 78 - + 2 + - 30 * + - 91 AS col1
----
-58094168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-694
SELECT ALL COUNT( * ) * - 62 DIV + - 17 AS col2, 79 + + - COUNT( * )
----
3
78

skipif mysql # not compatible
query II rowsort label-694
SELECT ALL COUNT ( * ) * - 62 / + - 17 AS col2, 79 + + - COUNT ( * )
----
3
78

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT DISTINCT + 41 * + - 73 * COUNT( * ) - - 30
----
-2963

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT + 41 * + - 73 * COUNT ( * ) - - 30
----
-2963

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-696
SELECT ALL - 50 + + 75 + 57 AS col2, - 45 * COUNT( * ) DIV 92 AS col0
----
82
0

skipif mysql # not compatible
query II rowsort label-696
SELECT ALL - 50 + + 75 + 57 AS col2, - 45 * COUNT ( * ) / 92 AS col0
----
82
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-697
SELECT + NULLIF ( + + 67, + CAST( + 77 AS SIGNED ) )
----
67

skipif mysql # not compatible
query I rowsort label-697
SELECT + NULLIF ( + + 67, + CAST ( + 77 AS INTEGER ) )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-698
SELECT + + ( + 1 ) * - + ( CAST( NULL AS SIGNED ) ) * CAST( 41 AS SIGNED ) - + 38 - + ( + 2 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-698
SELECT + + ( + 1 ) * - + ( CAST ( NULL AS INTEGER ) ) * CAST ( 41 AS INTEGER ) - + 38 - + ( + 2 ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT ALL - COUNT( ALL - 48 ) - + + ( ( + + 5 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL - COUNT ( ALL - 48 ) - + + ( ( + + 5 ) )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-700
SELECT ( - + COALESCE ( - COUNT( DISTINCT + 27 ), - 53 + + + ( ( - - CAST( NULL AS SIGNED ) ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-700
SELECT ( - + COALESCE ( - COUNT ( DISTINCT + 27 ), - 53 + + + ( ( - - CAST ( NULL AS INTEGER ) ) ) ) )
----
1

query II rowsort
SELECT DISTINCT + - 2 - 40, - 74 + + 14 AS col2
----
-42
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-702
SELECT - 90 * COUNT( * ) + - + 70 * + 87 * - NULLIF ( CAST( NULL AS DECIMAL ), + - ( COALESCE ( - 78, + 18, + 10, + + 67 + + 92 ) ) ) + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT - 90 * COUNT ( * ) + - + 70 * + 87 * - NULLIF ( CAST ( NULL AS REAL ), + - ( COALESCE ( - 78, + 18, + 10, + + 67 + + 92 ) ) ) + 60 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-703
SELECT - 99 + - 25 + - COUNT( * ) * - - 75 * - 2, 32 * - - CAST( NULL AS SIGNED ) AS col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-703
SELECT - 99 + - 25 + - COUNT ( * ) * - - 75 * - 2, 32 * - - CAST ( NULL AS INTEGER ) AS col1
----
26
NULL

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

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

query I rowsort
SELECT DISTINCT + + 15 - 30 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-706
SELECT 8 * + CASE + + 27 WHEN - 20 - + + 68 / - + CAST( NULL AS SIGNED ) THEN + SUM( DISTINCT - 43 ) END col0, - 51 AS col2
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-706
SELECT 8 * + CASE + + 27 WHEN - 20 - + + 68 / - + CAST ( NULL AS INTEGER ) THEN + SUM ( DISTINCT - 43 ) END col0, - 51 AS col2
----
NULL
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-707
SELECT 75 * - 70 - - 10 AS col1, 50 + + + COUNT( * )
----
-5240
51

skipif mysql # not compatible
query II rowsort label-707
SELECT 75 * - 70 - - 10 AS col1, 50 + + + COUNT ( * )
----
-5240
51

query I rowsort
SELECT 82 * - 73 AS col0
----
-5986

query I rowsort
SELECT 88 - - 55
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT DISTINCT MIN( + 31 ) col1
----
31

skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT MIN ( + 31 ) col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT COUNT( * ) * - 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-711
SELECT COUNT ( * ) * - 43 AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-712
SELECT - 92, - 27 + + SUM( - ( - CAST( NULL AS SIGNED ) ) ) AS col0
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-712
SELECT - 92, - 27 + + SUM ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-92
NULL

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

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

query I rowsort
SELECT 23 - - 1 AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT ALL + ( - ( + 95 ) ) + + COALESCE ( 44, + - NULLIF ( - - 76, - 30 ), + 77 * 57, + 70 DIV - 8 + 62 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL + ( - ( + 95 ) ) + + COALESCE ( 44, + - NULLIF ( - - 76, - 30 ), + 77 * 57, + 70 / - 8 + 62 ) AS col0
----
-51

query I rowsort
SELECT ALL 22 * - - 47
----
1034

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT 7 + - COUNT( - 34 ) + + 67 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-717
SELECT 7 + - COUNT ( - 34 ) + + 67 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT - MIN( DISTINCT + 97 ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-718
SELECT - MIN ( DISTINCT + 97 ) col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT ALL CASE - 59 WHEN - 72 * - 80 - - 92 * 68 - - 79 * + 27 THEN NULL WHEN + 89 THEN COUNT( * ) * + 59 WHEN 13 THEN NULL END + - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL CASE - 59 WHEN - 72 * - 80 - - 92 * 68 - - 79 * + 27 THEN NULL WHEN + 89 THEN COUNT ( * ) * + 59 WHEN 13 THEN NULL END + - 56 AS col1
----
NULL

query I rowsort
SELECT 52 * - 14 AS col1
----
-728

onlyif mysql # aggregate syntax: 
query II rowsort label-721
SELECT 23 + - 56 * - 30 AS col1, 47 + - COUNT( * ) AS col0
----
1703
46

skipif mysql # not compatible
query II rowsort label-721
SELECT 23 + - 56 * - 30 AS col1, 47 + - COUNT ( * ) AS col0
----
1703
46

query I rowsort
SELECT ALL 86 * - ( 86 )
----
-7396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-723
SELECT + 51 + 31 - - 40 * - + NULLIF ( CAST( - + CASE + + COUNT( * ) WHEN - 20 * - 4 * - + 21 / + 27 * + - 63 + - 53 THEN + 42 ELSE NULL END AS SIGNED ), - 3 ) + - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT + 51 + 31 - - 40 * - + NULLIF ( CAST ( - + CASE + + COUNT ( * ) WHEN - 20 * - 4 * - + 21 / + 27 * + - 63 + - 53 THEN + 42 ELSE NULL END AS INTEGER ), - 3 ) + - 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT ALL 30 * + + COUNT( * ) + + 15 * 5 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL 30 * + + COUNT ( * ) + + 15 * 5 AS col1
----
105

query I rowsort
SELECT + - 48 * 1 AS col2
----
-48

query I rowsort
SELECT DISTINCT - 76 * + ( 36 ) - - 84 AS col1
----
-2652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-727
SELECT + 59 * + - 11 + + 44 + + CAST( - + 16 AS SIGNED ) + 82 AS col1
----
-539

skipif mysql # not compatible
query I rowsort label-727
SELECT + 59 * + - 11 + + 44 + + CAST ( - + 16 AS INTEGER ) + 82 AS col1
----
-539

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-728
SELECT + + 92 AS col2, - 99 DIV - COUNT( * )
----
92
99

skipif mysql # not compatible
query II rowsort label-728
SELECT + + 92 AS col2, - 99 / - COUNT ( * )
----
92
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-729
SELECT - CASE - + ( + - 96 ) WHEN - 11 THEN NULL ELSE 94 + CAST( NULL AS SIGNED ) END / - 40 + - 75 * MIN( - 70 ) * - NULLIF ( - 45, - 23 / 18 * 24 * COUNT( ALL - 98 ) * + COUNT( * ) * - - 68 + - COUNT( * ) ) - + - COUNT( * ) - - 1 * + 55 + 95 + - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-729
SELECT - CASE - + ( + - 96 ) WHEN - 11 THEN NULL ELSE 94 + CAST ( NULL AS INTEGER ) END / - 40 + - 75 * MIN ( - 70 ) * - NULLIF ( - 45, - 23 / 18 * 24 * COUNT ( ALL - 98 ) * + COUNT ( * ) * - - 68 + - COUNT ( * ) ) - + - COUNT ( * ) - - 1 * + 55 + 95 + - 29 AS col2
----
NULL

query I rowsort
SELECT + + 21 + - 54 + + + 45 * + 43 * 47 col2
----
90912

query II rowsort
SELECT + - ( - ( - 44 ) ) AS col1, + 38 AS col0
----
-44
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-732
SELECT ALL - - 25 * + + 1 DIV - ( + 86 ), - COALESCE ( COALESCE ( + 0, SUM( + + 20 ), - + 49 ), CAST( - ( - 92 ) AS SIGNED ) ) * - 22 + + NULLIF ( + 88, - 67 * 2 DIV - - COUNT( * ) ) DIV + 61 * - COUNT( * ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-732
SELECT ALL - - 25 * + + 1 / - ( + 86 ), - COALESCE ( COALESCE ( + 0, SUM ( + + 20 ), - + 49 ), CAST ( - ( - 92 ) AS INTEGER ) ) * - 22 + + NULLIF ( + 88, - 67 * 2 / - - COUNT ( * ) ) / + 61 * - COUNT ( * ) AS col2
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT DISTINCT ( + 87 ) * - SUM( - 64 ) AS col2
----
5568

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT ( + 87 ) * - SUM ( - 64 ) AS col2
----
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT ALL ( - CASE + MAX( ALL + + ( + 80 ) ) WHEN MAX( ALL + - 18 ) THEN - 68 END ) * - + COUNT( * ) / + 36 + + 91 + - - 13 * + - 52 * - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL ( - CASE + MAX ( ALL + + ( + 80 ) ) WHEN MAX ( ALL + - 18 ) THEN - 68 END ) * - + COUNT ( * ) / + 36 + + 91 + - - 13 * + - 52 * - 56 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-735
SELECT 22, + SUM( - 70 ) * - + 24 - NULLIF ( + 28, - 88 ) + - CAST( NULL AS SIGNED ) AS col0
----
22
NULL

skipif mysql # not compatible
query II rowsort label-735
SELECT 22, + SUM ( - 70 ) * - + 24 - NULLIF ( + 28, - 88 ) + - CAST ( NULL AS INTEGER ) AS col0
----
22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT + NULLIF ( + 18, - - 12 * - + 40 ) + + ( + + SUM( ALL 29 ) ) * + 51
----
1497

skipif mysql # not compatible
query I rowsort label-736
SELECT + NULLIF ( + 18, - - 12 * - + 40 ) + + ( + + SUM ( ALL 29 ) ) * + 51
----
1497

query I rowsort
SELECT - 77 * - + 86
----
6622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-738
SELECT CAST( ( SUM( + - 76 ) ) AS SIGNED ) * + 16 + - 37 + + + 35 DIV - + 2
----
-1270

skipif mysql # not compatible
query I rowsort label-738
SELECT CAST ( ( SUM ( + - 76 ) ) AS INTEGER ) * + 16 + - 37 + + + 35 / - + 2
----
-1270

query I rowsort
SELECT - 94 - + - 29
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-740
SELECT + CAST( 52 AS SIGNED ) + - SUM( - 17 ) - - SUM( ( + - 10 ) ) DIV 91
----
69

skipif mysql # not compatible
query I rowsort label-740
SELECT + CAST ( 52 AS INTEGER ) + - SUM ( - 17 ) - - SUM ( ( + - 10 ) ) / 91
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-741
SELECT - CASE 82 WHEN COALESCE ( + - 84, - 14 + + ( 43 ) + + 21 * - COUNT( DISTINCT - 93 ) * 97 / - - 38 * + - 39 * 82 * + + 57 * 30 ) * - 75 THEN - - 99 END * - COUNT( * ) - + 96 AS col1, 19 AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-741
SELECT - CASE 82 WHEN COALESCE ( + - 84, - 14 + + ( 43 ) + + 21 * - COUNT ( DISTINCT - 93 ) * 97 / - - 38 * + - 39 * 82 * + + 57 * 30 ) * - 75 THEN - - 99 END * - COUNT ( * ) - + 96 AS col1, 19 AS col0
----
NULL
19

query I rowsort
SELECT - 41 + + 60 + 8 * - + 16 * - + 96 AS col1
----
12307

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT ALL - COUNT( - 46 ) + + CASE 3 WHEN 22 THEN + 90 WHEN + 90 THEN - + 85 * 38 END + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL - COUNT ( - 46 ) + + CASE 3 WHEN 22 THEN + 90 WHEN + 90 THEN - + 85 * 38 END + - 65
----
NULL

query I rowsort
SELECT DISTINCT CASE + 54 WHEN 11 THEN - 86 END col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-745
SELECT - 35 + + + COUNT ( * ) + 4 AS col0
----
-30

query I rowsort
SELECT ALL - 53 + - - 80 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT - MIN( - + 22 ) + + 18 + + 48 + + 75 + - + CASE 21 WHEN + - 56 - - - 40 THEN 1 + + 41 ELSE COUNT( * ) END
----
162

skipif mysql # not compatible
query I rowsort label-747
SELECT - MIN ( - + 22 ) + + 18 + + 48 + + 75 + - + CASE 21 WHEN + - 56 - - - 40 THEN 1 + + 41 ELSE COUNT ( * ) END
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-748
SELECT - 75 DIV COUNT( * ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-748
SELECT - 75 / COUNT ( * ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT - COUNT( DISTINCT - 99 ) * ( + - 93 ) + + 7 * - + 65 * + 56
----
-25387

skipif mysql # not compatible
query I rowsort label-749
SELECT - COUNT ( DISTINCT - 99 ) * ( + - 93 ) + + 7 * - + 65 * + 56
----
-25387

query I rowsort
SELECT - 51 * + 78 * - - 97
----
-385866

query I rowsort
SELECT + 57 + - 79 AS col1
----
-22

query I rowsort
SELECT ALL 39 - + - 91
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT ALL CASE + 50 WHEN MAX( + - 15 ) THEN NULL ELSE + 96 END
----
96

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL CASE + 50 WHEN MAX ( + - 15 ) THEN NULL ELSE + 96 END
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT - MIN( + + 40 ) * 62
----
-2480

skipif mysql # not compatible
query I rowsort label-755
SELECT - MIN ( + + 40 ) * 62
----
-2480

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-756
SELECT + + 36 * + - 86, - MAX( 88 ) DIV - 16 + - - SUM( DISTINCT + 40 ) + + ( 51 ) + - + 70 col1
----
-3096
26

skipif mysql # not compatible
query II rowsort label-756
SELECT + + 36 * + - 86, - MAX ( 88 ) / - 16 + - - SUM ( DISTINCT + 40 ) + + ( 51 ) + - + 70 col1
----
-3096
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT DISTINCT + CASE 97 WHEN - 45 THEN + - NULLIF ( - + ( + COUNT( * ) ), - COALESCE ( - + 48, + COUNT( * ), - 93 / 2, + 32 ) * + COALESCE ( + 58, 12 ) + 24 ) WHEN - - 36 + - 67 * 65 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT + CASE 97 WHEN - 45 THEN + - NULLIF ( - + ( + COUNT ( * ) ), - COALESCE ( - + 48, + COUNT ( * ), - 93 / 2, + 32 ) * + COALESCE ( + 58, 12 ) + 24 ) WHEN - - 36 + - 67 * 65 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT + 2 * + COUNT( * ) + + 83
----
85

skipif mysql # not compatible
query I rowsort label-759
SELECT + 2 * + COUNT ( * ) + + 83
----
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-760
SELECT + - CAST( 84 AS SIGNED ) DIV - 48
----
1

skipif mysql # not compatible
query I rowsort label-760
SELECT + - CAST ( 84 AS INTEGER ) / - 48
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-761
SELECT ALL + 77 * - CASE - 78 WHEN + 32 THEN NULL ELSE + NULLIF ( - + 62, - COALESCE ( + COUNT( * ), 30 ) + 15 * 31 ) END + + 74 AS col1, 72
----
4848
72

skipif mysql # not compatible
query II rowsort label-761
SELECT ALL + 77 * - CASE - 78 WHEN + 32 THEN NULL ELSE + NULLIF ( - + 62, - COALESCE ( + COUNT ( * ), 30 ) + 15 * 31 ) END + + 74 AS col1, 72
----
4848
72

query I rowsort
SELECT + - 49 * 56 AS col2
----
-2744

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

query I rowsort
SELECT + 65 * + 20
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT - 71 + + + 57 * - COUNT( * )
----
-128

skipif mysql # not compatible
query I rowsort label-765
SELECT - 71 + + + 57 * - COUNT ( * )
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL + 13 * + COALESCE ( 65, - 26 * - 85 ) + - COUNT( * ) - + - NULLIF ( 19, - + 35 * + - 61 ) AS col1
----
863

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL + 13 * + COALESCE ( 65, - 26 * - 85 ) + - COUNT ( * ) - + - NULLIF ( 19, - + 35 * + - 61 ) AS col1
----
863

query I rowsort
SELECT ALL 12 * + + 62 AS col2
----
744

query I rowsort
SELECT DISTINCT ( 42 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL - 64 * - 23 * + COUNT( * ) + - COUNT( * )
----
1471

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL - 64 * - 23 * + COUNT ( * ) + - COUNT ( * )
----
1471

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT MIN( - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-770
SELECT MIN ( - 98 )
----
-98

query I rowsort
SELECT - 87 * 53 * + - 50 * - 62 AS col1
----
-14294100

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT DISTINCT COALESCE ( - + 97, COUNT( * ), + + 14 )
----
-97

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT COALESCE ( - + 97, COUNT ( * ), + + 14 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-773
SELECT CAST( NULL AS DECIMAL ) - - 97 + + 28 / 84 + 77 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-773
SELECT CAST ( NULL AS REAL ) - - 97 + + 28 / 84 + 77 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT COALESCE ( + + 99, SUM( DISTINCT - 3 ) + + COUNT( * ) ) + - 74 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-774
SELECT COALESCE ( + + 99, SUM ( DISTINCT - 3 ) + + COUNT ( * ) ) + - 74 AS col1
----
25

query I rowsort
SELECT ALL - 86 - - 55
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT ALL - 87 - MAX( DISTINCT + 31 )
----
-118

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL - 87 - MAX ( DISTINCT + 31 )
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-778
SELECT ( + CAST( NULL AS SIGNED ) ) + + 84 / 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-778
SELECT ( + CAST ( NULL AS INTEGER ) ) + + 84 / 97 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-779
SELECT CAST( NULL AS DECIMAL ) / - 71 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT CAST ( NULL AS REAL ) / - 71 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT 83 DIV + 73
----
1

skipif mysql # not compatible
query I rowsort label-780
SELECT 83 / + 73
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT 93 * + ( - MAX( 26 ) )
----
-2418

skipif mysql # not compatible
query I rowsort label-781
SELECT 93 * + ( - MAX ( 26 ) )
----
-2418

query I rowsort
SELECT 67 + - 21 AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-783
SELECT ALL + 87 DIV 26
----
3

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL + 87 / 26
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-784
SELECT 73 DIV + 52 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-784
SELECT 73 / + 52 AS col2
----
1

query I rowsort
SELECT ALL - COALESCE ( + 10, - 39 + - 1 * 55 ) col0
----
-10

query I rowsort
SELECT 83 * 90 AS col2
----
7470

query I rowsort
SELECT ALL - 15 + - 60
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-788
SELECT DISTINCT COUNT( ( 59 ) ) + - 53 DIV ( COUNT( DISTINCT - 57 ) * + 23 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT COUNT ( ( 59 ) ) + - 53 / ( COUNT ( DISTINCT - 57 ) * + 23 ) AS col1
----
-1

query I rowsort
SELECT 98 + 82 * - 66 AS col1
----
-5314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-790
SELECT COALESCE ( + 66, - 0 * COUNT( * ) - ( 32 - + 61 ) * + 65, + 57 DIV CAST( + COUNT( * ) AS SIGNED ), 98 + 42 * 17 ) * 65
----
4290

skipif mysql # not compatible
query I rowsort label-790
SELECT COALESCE ( + 66, - 0 * COUNT ( * ) - ( 32 - + 61 ) * + 65, + 57 / CAST ( + COUNT ( * ) AS INTEGER ), 98 + 42 * 17 ) * 65
----
4290

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT DISTINCT + COUNT( * ) * + ( 78 * 35 )
----
2730

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT + COUNT ( * ) * + ( 78 * 35 )
----
2730

query I rowsort
SELECT ALL - 53 + + 94
----
41

query I rowsort
SELECT ALL ( - 90 ) + - 81
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT - 63 * - 82 - - NULLIF ( - 15 + 45 * ( + 3 + 25 * 61 ), MAX( ALL + 58 ) ) * - 66
----
-4532004

skipif mysql # not compatible
query I rowsort label-794
SELECT - 63 * - 82 - - NULLIF ( - 15 + 45 * ( + 3 + 25 * 61 ), MAX ( ALL + 58 ) ) * - 66
----
-4532004

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT COUNT( * ) + 14 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-795
SELECT COUNT ( * ) + 14 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT 54 * 28 + MAX( - 53 )
----
1459

skipif mysql # not compatible
query I rowsort label-796
SELECT 54 * 28 + MAX ( - 53 )
----
1459

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

skipif mysql # not compatible
query I rowsort label-797
SELECT COUNT ( + 18 ) - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ( - 29 ) + 90 * 8 col1
----
691

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT + COUNT( * ) * 21 - - 83 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-799
SELECT + COUNT ( * ) * 21 - - 83 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT ALL 63 - ( COUNT( - NULLIF ( 29, 64 ) ) ) col0
----
62

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL 63 - ( COUNT ( - NULLIF ( 29, 64 ) ) ) col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT COUNT( * ) * 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-801
SELECT COUNT ( * ) * 88 AS col0
----
88

query I rowsort
SELECT ( + 35 ) + 2 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT COUNT( * ) * 11 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-803
SELECT COUNT ( * ) * 11 AS col0
----
11

query I rowsort
SELECT ( - 64 ) * 45
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT COUNT( * ) + 76
----
77

skipif mysql # not compatible
query I rowsort label-805
SELECT COUNT ( * ) + 76
----
77

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

query I rowsort
SELECT + NULLIF ( 23, - ( 1 ) ) + - NULLIF ( - 61 + COALESCE ( 5 + + ( - 48 + 60 ) * + 14, - 54, - 18 ) * CASE NULLIF ( - 37, + 31 * 54 ) WHEN 77 THEN NULL ELSE - 94 * + 93 - - 11 END, 73 )
----
1510547

query I rowsort
SELECT DISTINCT NULLIF ( 30, + 62 )
----
30

query I rowsort
SELECT - 40 + 66
----
26

query I rowsort
SELECT DISTINCT + 81 * - 91 col0
----
-7371

query I rowsort
SELECT - 84 * + 22
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL + + 18 + + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + + 18 + + COUNT ( * )
----
19

query I rowsort
SELECT + 16 + 86
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT + CASE 32 WHEN COUNT( * ) THEN NULL WHEN - 93 THEN NULL WHEN + COUNT( * ) * + 70 - 8 THEN - 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT + CASE 32 WHEN COUNT ( * ) THEN NULL WHEN - 93 THEN NULL WHEN + COUNT ( * ) * + 70 - 8 THEN - 68 END
----
NULL

query I rowsort
SELECT 90 + 35 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT NULLIF ( - 38, MIN( - 10 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-816
SELECT NULLIF ( - 38, MIN ( - 10 ) )
----
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT COALESCE ( - COUNT( * ), 96, 31 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-818
SELECT COALESCE ( - COUNT ( * ), 96, 31 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-819
SELECT 70 DIV - 32 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-819
SELECT 70 / - 32 AS col1
----
-2

query I rowsort
SELECT + 66 + 32 AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-821
SELECT DISTINCT - + 1 DIV 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT - + 1 / 53 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT ALL + CAST( NULL AS SIGNED ) * CASE - 87 WHEN 21 + - 88 THEN NULL ELSE 65 * COALESCE ( 71, - 32 ) END + - ( 43 ) * - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL + CAST ( NULL AS INTEGER ) * CASE - 87 WHEN 21 + - 88 THEN NULL ELSE 65 * COALESCE ( 71, - 32 ) END + - ( 43 ) * - 48 AS col0
----
NULL

query I rowsort
SELECT 23 + - 63 AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-824
SELECT DISTINCT - 48 * + CAST( NULL AS SIGNED ) + - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT - 48 * + CAST ( NULL AS INTEGER ) + - 92 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( + 84 ) col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT DISTINCT - 4 - - - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT - 4 - - - COUNT ( * )
----
-5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL + 59 * - COUNT( * ) * + 15 AS col1
----
-885

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL + 59 * - COUNT ( * ) * + 15 AS col1
----
-885

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

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

query I rowsort
SELECT ALL COALESCE ( 70, 68 ) AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-832
SELECT - 10 DIV - + MIN( + 37 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-832
SELECT - 10 / - + MIN ( + 37 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT - SUM( DISTINCT + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-833
SELECT - SUM ( DISTINCT + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT - MAX( - - 62 ) - - COUNT( * ) * - 71
----
-133

skipif mysql # not compatible
query I rowsort label-834
SELECT - MAX ( - - 62 ) - - COUNT ( * ) * - 71
----
-133

query I rowsort
SELECT ALL + 43 * - + 59 AS col0
----
-2537

onlyif mysql # DIV for integer division: 
query I rowsort label-836
SELECT + 69 DIV 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-836
SELECT + 69 / 48 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL - - COUNT( * ) + - 28 + 1 col2
----
-26

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - - COUNT ( * ) + - 28 + 1 col2
----
-26

query I rowsort
SELECT ALL - 19 + + 2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-839
SELECT + + CAST( NULL AS SIGNED ) - - 53 + 63 * + CASE 97 + - 71 WHEN 95 THEN CAST( NULL AS SIGNED ) ELSE + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-839
SELECT + + CAST ( NULL AS INTEGER ) - - 53 + 63 * + CASE 97 + - 71 WHEN 95 THEN CAST ( NULL AS INTEGER ) ELSE + 0 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-840
SELECT ALL 61 * 87 DIV - COUNT( * )
----
-5307

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL 61 * 87 / - COUNT ( * )
----
-5307

query I rowsort
SELECT DISTINCT + 50 + - 51
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT + - 39 - SUM( + 62 )
----
-101

skipif mysql # not compatible
query I rowsort label-842
SELECT + - 39 - SUM ( + 62 )
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT DISTINCT 83 + 93 + CASE - MAX( + 35 ) WHEN 34 THEN NULL WHEN 94 / 37 THEN NULL ELSE - 58 END AS col0
----
118

skipif mysql # not compatible
query I rowsort label-843
SELECT DISTINCT 83 + 93 + CASE - MAX ( + 35 ) WHEN 34 THEN NULL WHEN 94 / 37 THEN NULL ELSE - 58 END AS col0
----
118

query I rowsort
SELECT ALL 88 + + 16 - - 52
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT + 71 + + 11 + MAX( 96 ) AS col1
----
178

skipif mysql # not compatible
query I rowsort label-845
SELECT + 71 + + 11 + MAX ( 96 ) AS col1
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT DISTINCT + - SUM( ALL + 5 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT + - SUM ( ALL + 5 ) AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-847
SELECT ALL + - COUNT( 17 ) DIV 10 - MAX( 37 + - 97 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL + - COUNT ( 17 ) / 10 - MAX ( 37 + - 97 ) col2
----
60

query I rowsort
SELECT + - 37 * 79 AS col2
----
-2923

query II rowsort
SELECT DISTINCT + 65 AS col1, + 9
----
65
9

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

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

query I rowsort
SELECT - 55 * 84 + 19
----
-4601

query I rowsort
SELECT - 65 * - 36 * + - 80
----
-187200

onlyif mysql # DIV for integer division: 
query I rowsort label-853
SELECT 90 DIV + 69 + 94
----
95

skipif mysql # not compatible
query I rowsort label-853
SELECT 90 / + 69 + 94
----
95

query I rowsort
SELECT + 35 * NULLIF ( - 33, COALESCE ( 87, 41 ) ) AS col0
----
-1155

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT ALL + CASE + COUNT( * ) WHEN NULLIF ( - 38, + 16 ) THEN 65 * 87 + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL + CASE + COUNT ( * ) WHEN NULLIF ( - 38, + 16 ) THEN 65 * 87 + 90 END
----
NULL

query I rowsort
SELECT + 52 + 54 AS col0
----
106

query I rowsort
SELECT ALL ( + + 36 ) * + 13
----
468

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT ALL - 90 DIV + + 43
----
-2

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL - 90 / + + 43
----
-2

query I rowsort
SELECT - 46 - 30
----
-76

query I rowsort
SELECT NULLIF ( + 73, + - 6 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT - MAX( - 89 ) + - 94 * 88
----
-8183

skipif mysql # not compatible
query I rowsort label-861
SELECT - MAX ( - 89 ) + - 94 * 88
----
-8183

query I rowsort
SELECT CASE - + CASE + + 67 WHEN 61 THEN 32 ELSE + 13 END WHEN - 6 THEN 1 ELSE NULL END
----
NULL

query I rowsort
SELECT - 69 * + ( + - 17 )
----
1173

query II rowsort
SELECT ALL + 12 AS col1, 56 + 53 AS col0
----
12
109

query I rowsort
SELECT NULLIF ( + 13, 28 / 9 + - 30 ) AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT + 59 * - 86 * + 91 + CAST( NULL AS SIGNED ) * - ( 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT + 59 * - 86 * + 91 + CAST ( NULL AS INTEGER ) * - ( 65 )
----
NULL

query I rowsort
SELECT + ( + + 40 ) - + ( - 14 ) AS col0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-868
SELECT ALL CAST( + NULLIF ( + 46, 29 * 20 ) AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL CAST ( + NULLIF ( + 46, 29 * 20 ) AS INTEGER )
----
46

query I rowsort
SELECT ALL 53 * + - 85 * - - COALESCE ( 87, - ( + 50 ), - 9 + 71 ) + - 64 * + 34
----
-394111

query I rowsort
SELECT - 39 + - 46 * 56
----
-2615

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT ALL - 33 * - 66 + - COALESCE ( + 67, + 74, 22 ) - COALESCE ( 44 - - COUNT( * ), 33 * + 4 ) AS col1
----
2066

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL - 33 * - 66 + - COALESCE ( + 67, + 74, 22 ) - COALESCE ( 44 - - COUNT ( * ), 33 * + 4 ) AS col1
----
2066

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-872
SELECT - 24 AS col2, - 87 DIV 38 + + COUNT( * ) * COUNT( * )
----
-24
-1

skipif mysql # not compatible
query II rowsort label-872
SELECT - 24 AS col2, - 87 / 38 + + COUNT ( * ) * COUNT ( * )
----
-24
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL + 69 * 65 * - 81 + + COUNT( * )
----
-363284

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL + 69 * 65 * - 81 + + COUNT ( * )
----
-363284

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

query I rowsort
SELECT - 75 + 49
----
-26

query I rowsort
SELECT + CASE + 72 WHEN 1 + 50 THEN 85 * - ( 62 ) END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-878
SELECT + 2 + - 34 DIV - 46 + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-878
SELECT + 2 + - 34 / - 46 + COUNT ( * ) AS col2
----
3

query I rowsort
SELECT - - 82 * + 68 AS col1
----
5576

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

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

query II rowsort
SELECT ALL + 63 col1, 84
----
63
84

query I rowsort
SELECT - - 91 + + ( - 41 ) * 11 col0
----
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-883
SELECT - - 32 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-883
SELECT - - 32 / 90
----
0

query I rowsort
SELECT ALL - 27 + - 89
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT DISTINCT COUNT( * ) * - ( - NULLIF ( - 34, 55 + - 20 ) ) + - 5
----
-39

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT COUNT ( * ) * - ( - NULLIF ( - 34, 55 + - 20 ) ) + - 5
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT ALL - 46 - - 57 + - + 94 * - COUNT( * ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL - 46 - - 57 + - + 94 * - COUNT ( * ) AS col2
----
105

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

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

query I rowsort
SELECT + + 50 + + 87
----
137

query II rowsort
SELECT DISTINCT 10, 93 AS col1
----
10
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-890
SELECT - 83 * + CAST( - 41 AS SIGNED ) * COUNT( * ) + - 75 AS col1
----
3328

skipif mysql # not compatible
query I rowsort label-890
SELECT - 83 * + CAST ( - 41 AS INTEGER ) * COUNT ( * ) + - 75 AS col1
----
3328

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + 89 + - 45 + - - MAX( 46 ) - ( + CASE 61 WHEN - 52 THEN - 1 ELSE NULL END ) / - 50 * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-891
SELECT + 89 + - 45 + - - MAX ( 46 ) - ( + CASE 61 WHEN - 52 THEN - 1 ELSE NULL END ) / - 50 * 18
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT 4 DIV - ( + 55 ) - - 18 + + 91
----
109

skipif mysql # not compatible
query I rowsort label-892
SELECT 4 / - ( + 55 ) - - 18 + + 91
----
109

query I rowsort
SELECT ALL - 4 * + 85 AS col2
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT MAX( ALL - 41 ) + + 3 + + 11 * + 99 col2
----
1051

skipif mysql # not compatible
query I rowsort label-894
SELECT MAX ( ALL - 41 ) + + 3 + + 11 * + 99 col2
----
1051

query I rowsort
SELECT DISTINCT - 86 * - + 0 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT COUNT( * ) / + 46 * CASE - 91 WHEN 42 THEN NULL WHEN 86 + 32 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-897
SELECT COUNT ( * ) / + 46 * CASE - 91 WHEN 42 THEN NULL WHEN 86 + 32 THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT 77 * - - 12 AS col1
----
924

onlyif mysql # aggregate syntax: 
query II rowsort label-899
SELECT DISTINCT 40 * COUNT( * ) AS col1, NULLIF ( 83, - 22 )
----
40
83

skipif mysql # not compatible
query II rowsort label-899
SELECT DISTINCT 40 * COUNT ( * ) AS col1, NULLIF ( 83, - 22 )
----
40
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-900
SELECT 93 + + SUM( ALL 4 ) * + - COUNT( * ) + - CAST( - 80 + 14 * 96 AS SIGNED )
----
-1175

skipif mysql # not compatible
query I rowsort label-900
SELECT 93 + + SUM ( ALL 4 ) * + - COUNT ( * ) + - CAST ( - 80 + 14 * 96 AS INTEGER )
----
-1175

query II rowsort
SELECT ALL + 69 + + + 79, 88 * - + 38 AS col2
----
148
-3344

query I rowsort
SELECT ALL 45 + 26 + 0 AS col2
----
71

query I rowsort
SELECT DISTINCT 4 * 32 * - 62
----
-7936

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT 76 * 58 * + COUNT( * ) AS col2
----
4408

skipif mysql # not compatible
query I rowsort label-904
SELECT 76 * 58 * + COUNT ( * ) AS col2
----
4408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-905
SELECT DISTINCT + SUM( DISTINCT - 86 ) DIV - 60 col2
----
1

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT + SUM ( DISTINCT - 86 ) / - 60 col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-906
SELECT ALL 20 + CAST( NULL AS DECIMAL ) * + + 57 - - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL 20 + CAST ( NULL AS REAL ) * + + 57 - - + 42
----
NULL

query I rowsort
SELECT 65 * + + 45 * + 85
----
248625

query I rowsort
SELECT ALL - 91 + + 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT COUNT( * ) + - 40 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-909
SELECT COUNT ( * ) + - 40 AS col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-910
SELECT + NULLIF ( - 88, CAST( NULL AS SIGNED ) ) * - - ( 40 )
----
-3520

skipif mysql # not compatible
query I rowsort label-910
SELECT + NULLIF ( - 88, CAST ( NULL AS INTEGER ) ) * - - ( 40 )
----
-3520

query I rowsort
SELECT ALL + - 53 - + - 91
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT COUNT( * ) + 45 * - - 80 * 64 + - 61 AS col1
----
230340

skipif mysql # not compatible
query I rowsort label-912
SELECT COUNT ( * ) + 45 * - - 80 * 64 + - 61 AS col1
----
230340

query I rowsort
SELECT ALL - - 57 - - - NULLIF ( + 48, 28 + 37 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT ALL + - COUNT( * ) * + 70 + COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL + - COUNT ( * ) * + 70 + COUNT ( * ) AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-915
SELECT 14 - - ( ( + 83 ) ) DIV COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-915
SELECT 14 - - ( ( + 83 ) ) / COUNT ( * ) AS col0
----
97

query I rowsort
SELECT 16 + + - 80
----
-64

query I rowsort
SELECT - NULLIF ( - - 83, + 18 ) + 15
----
-68

query I rowsort
SELECT ALL + - 65 - + 52 * + + 23
----
-1261

query I rowsort
SELECT + 12 * 11 AS col0
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-920
SELECT 6 + - + 48 AS col2, COALESCE ( + 78, - COALESCE ( + COUNT( * ), 4 * + 50 + 57 * + 2, - 23 ) ) - 62 * - 95
----
-42
5968

skipif mysql # not compatible
query II rowsort label-920
SELECT 6 + - + 48 AS col2, COALESCE ( + 78, - COALESCE ( + COUNT ( * ), 4 * + 50 + 57 * + 2, - 23 ) ) - 62 * - 95
----
-42
5968

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT - + NULLIF ( - 5, - + MIN( + + 6 ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-921
SELECT - + NULLIF ( - 5, - + MIN ( + + 6 ) ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT 26 + + + COUNT( + + 83 )
----
27

skipif mysql # not compatible
query I rowsort label-922
SELECT 26 + + + COUNT ( + + 83 )
----
27

query I rowsort
SELECT DISTINCT 58 * 99
----
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT DISTINCT - ( COUNT( * ) ) + + NULLIF ( - 25, - - 45 ) * 30 AS col2
----
-751

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT - ( COUNT ( * ) ) + + NULLIF ( - 25, - - 45 ) * 30 AS col2
----
-751

query I rowsort
SELECT 61 + + COALESCE ( + 44, 69 ) * - 81 AS col2
----
-3503

query II rowsort
SELECT ALL - 32 AS col0, - 55 AS col0
----
-32
-55

query I rowsort
SELECT 68 * + 23 AS col2
----
1564

query II rowsort
SELECT ALL 5 + - 57 - 73 col0, 51 + + 10 AS col1
----
-125
61

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT - 8 * + 41 * - ( COUNT( * ) ) + + + COUNT( * ) - - 58
----
387

skipif mysql # not compatible
query I rowsort label-929
SELECT - 8 * + 41 * - ( COUNT ( * ) ) + + + COUNT ( * ) - - 58
----
387

query I rowsort
SELECT ALL 57 + 82 col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT 57 + COUNT( * ) + + 12 * - + ( - 23 ) AS col0
----
334

skipif mysql # not compatible
query I rowsort label-931
SELECT 57 + COUNT ( * ) + + 12 * - + ( - 23 ) AS col0
----
334

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

skipif mysql # not compatible
query I rowsort label-932
SELECT + COUNT ( ALL - 32 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT 67 + COUNT( * ) + + 77 + + 43 * - - 3 AS col2
----
274

skipif mysql # not compatible
query I rowsort label-933
SELECT 67 + COUNT ( * ) + + 77 + + 43 * - - 3 AS col2
----
274

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT ALL 51 + + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL 51 + + COUNT ( * ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-935
SELECT DISTINCT COUNT( * ) * + + 8 * 75 * + CAST( NULL AS SIGNED ) * ( - COALESCE ( CAST( NULL AS SIGNED ), + 10 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-935
SELECT DISTINCT COUNT ( * ) * + + 8 * 75 * + CAST ( NULL AS INTEGER ) * ( - COALESCE ( CAST ( NULL AS INTEGER ), + 10 ) )
----
NULL

query I rowsort
SELECT DISTINCT 56 + - 70
----
-14

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

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

query I rowsort
SELECT ALL + 20 + - - 36 + + ( - 63 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT 40 * + + COUNT( * ) + - 62 + + 87 - - ( ( - MIN( DISTINCT 57 ) ) ) col1
----
8

skipif mysql # not compatible
query I rowsort label-939
SELECT 40 * + + COUNT ( * ) + - 62 + + 87 - - ( ( - MIN ( DISTINCT 57 ) ) ) col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT DISTINCT - - MAX( DISTINCT - - 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT - - MAX ( DISTINCT - - 29 ) AS col2
----
29

query I rowsort
SELECT ALL ( - 82 ) * - NULLIF ( - 78, 59 * ( 67 ) )
----
-6396

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT 13 + + 95 + SUM( DISTINCT - 36 ) + - - 95 * COUNT( * )
----
167

skipif mysql # not compatible
query I rowsort label-942
SELECT 13 + + 95 + SUM ( DISTINCT - 36 ) + - - 95 * COUNT ( * )
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT - 94 + - COALESCE ( - 16, + 37 * - 38 + - NULLIF ( - COUNT( * ), + 89 - - 98 ) - 6 * + 48, 83 + - ( 21 + 69 ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-943
SELECT - 94 + - COALESCE ( - 16, + 37 * - 38 + - NULLIF ( - COUNT ( * ), + 89 - - 98 ) - 6 * + 48, 83 + - ( 21 + 69 ) ) AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-944
SELECT 56 AS col2, CASE - - CAST( + + 23 AS SIGNED ) WHEN - 33 * + CAST( NULL AS SIGNED ) THEN NULL ELSE - 52 END AS col0
----
56
-52

skipif mysql # not compatible
query II rowsort label-944
SELECT 56 AS col2, CASE - - CAST ( + + 23 AS INTEGER ) WHEN - 33 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 52 END AS col0
----
56
-52

query I rowsort
SELECT DISTINCT + 68 * - 28
----
-1904

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

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

query I rowsort
SELECT CASE + 79 WHEN + - 38 * 51 THEN NULL WHEN - 9 THEN 23 * 65 ELSE NULL END
----
NULL

query I rowsort
SELECT - + 75 + - 98 col1
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT - COUNT( * ) + + + 75 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-949
SELECT - COUNT ( * ) + + + 75 AS col2
----
74

query III rowsort
SELECT DISTINCT 65 AS col2, - 1 AS col0, + + 1 + 15
----
65
-1
16

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-951
SELECT ALL + 4 * 87 AS col2, CASE - - 21 WHEN + 25 * + - CAST( NULL AS DECIMAL ) - 74 THEN 0 WHEN - 35 THEN NULL ELSE NULL END / 47 + + 23
----
348
NULL

skipif mysql # not compatible
query II rowsort label-951
SELECT ALL + 4 * 87 AS col2, CASE - - 21 WHEN + 25 * + - CAST ( NULL AS REAL ) - 74 THEN 0 WHEN - 35 THEN NULL ELSE NULL END / 47 + + 23
----
348
NULL

query I rowsort
SELECT ALL + 31 * - + 51 AS col1
----
-1581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-953
SELECT ALL - CAST( + - 86 AS SIGNED ) + - ( + 59 ) + - 23
----
4

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - CAST ( + - 86 AS INTEGER ) + - ( + 59 ) + - 23
----
4

query I rowsort
SELECT ALL - 31 + + 12
----
-19

query I rowsort
SELECT DISTINCT - 59 + 5
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT - 94 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-956
SELECT - 94 / + 97
----
0

query I rowsort
SELECT ALL NULLIF ( + - 58, 46 ) AS col0
----
-58

query II rowsort
SELECT 45, 69 AS col1
----
45
69

query II rowsort
SELECT + 89 AS col0, 86 AS col1
----
89
86

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-961
SELECT ALL - 69 DIV - - 69
----
-1

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL - 69 / - - 69
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-963
SELECT ALL COUNT( * ) * + + 18, SUM( DISTINCT 66 ) AS col1
----
18
66

skipif mysql # not compatible
query II rowsort label-963
SELECT ALL COUNT ( * ) * + + 18, SUM ( DISTINCT 66 ) AS col1
----
18
66

query I rowsort
SELECT + NULLIF ( 16, - + 55 ) * + 44 col2
----
704

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT ALL 9 * - - COUNT( * ) * - COUNT( ALL - 14 ) + + 50 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL 9 * - - COUNT ( * ) * - COUNT ( ALL - 14 ) + + 50 AS col1
----
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-967
SELECT CAST( NULL AS SIGNED ) / + - COUNT( * ) - + 99 + - 53 + 78 * - 40 - - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-967
SELECT CAST ( NULL AS INTEGER ) / + - COUNT ( * ) - + 99 + - 53 + 78 * - 40 - - 12 AS col2
----
NULL

query I rowsort
SELECT + 64 * - 53 + 74
----
-3318

query II rowsort
SELECT + + 82, 16 + 72 + - 47 AS col2
----
82
41

onlyif mysql # aggregate syntax: 
query II rowsort label-970
SELECT 53 AS col2, 0 - + - 5 * 78 * + COUNT( * ) + - + 40
----
53
350

skipif mysql # not compatible
query II rowsort label-970
SELECT 53 AS col2, 0 - + - 5 * 78 * + COUNT ( * ) + - + 40
----
53
350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-971
SELECT DISTINCT + CAST( - COALESCE ( - 33, + + 43, - + 92 + + 50 ) AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT + CAST ( - COALESCE ( - 33, + + 43, - + 92 + + 50 ) AS INTEGER )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-972
SELECT ALL - - CASE - 58 WHEN - 77 + - 4 + + 58 - - + COUNT( * ) THEN 38 * + 15 + 48 / - COUNT( * ) END * 41 - + CAST( NULL AS SIGNED ) * - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL - - CASE - 58 WHEN - 77 + - 4 + + 58 - - + COUNT ( * ) THEN 38 * + 15 + 48 / - COUNT ( * ) END * 41 - + CAST ( NULL AS INTEGER ) * - 54 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-973
SELECT + - 3 * - CAST ( NULL AS INTEGER ) + + + 61
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-974
SELECT ALL + COUNT( * ), 99 DIV 99 AS col1
----
1
1

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

query II rowsort
SELECT DISTINCT + - 9 AS col0, 92 AS col0
----
-9
92

query I rowsort
SELECT ALL - 59 * + ( + 21 )
----
-1239

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-978
SELECT ALL COUNT( * ) DIV 80 + - 27 + COALESCE ( - + 35, + COUNT( + NULLIF ( - 71, + 34 - + 74 ) ) - - NULLIF ( 20, + 28 * + 50 ), - 89 - 20, 75 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL COUNT ( * ) / 80 + - 27 + COALESCE ( - + 35, + COUNT ( + NULLIF ( - 71, + 34 - + 74 ) ) - - NULLIF ( 20, + 28 * + 50 ), - 89 - 20, 75 ) AS col2
----
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-979
SELECT - 97 * - 23 + + 63 + CAST( NULL AS DECIMAL ) AS col1, - 60 * - 70 + + 28
----
NULL
4228

skipif mysql # not compatible
query II rowsort label-979
SELECT - 97 * - 23 + + 63 + CAST ( NULL AS REAL ) AS col1, - 60 * - 70 + + 28
----
NULL
4228

onlyif mysql # aggregate syntax: 
query II rowsort label-980
SELECT + + 84 + - + COUNT( 7 ) + + + 74, 87 + + 11 AS col1
----
157
98

skipif mysql # not compatible
query II rowsort label-980
SELECT + + 84 + - + COUNT ( 7 ) + + + 74, 87 + + 11 AS col1
----
157
98

query II rowsort
SELECT - - 97 col0, 38
----
97
38

query I rowsort
SELECT + - 9 * - 75 + + 47 AS col1
----
722

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT - - COUNT( DISTINCT 5 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-983
SELECT - - COUNT ( DISTINCT 5 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-984
SELECT - 84 AS col0, COUNT( * ) * 12 AS col0
----
-84
12

skipif mysql # not compatible
query II rowsort label-984
SELECT - 84 AS col0, COUNT ( * ) * 12 AS col0
----
-84
12

query I rowsort
SELECT DISTINCT 12 * - + 29 * + CASE + 44 WHEN - 37 - - + 35 * 50 THEN NULL ELSE 83 + 89 END + 69 AS col2
----
-59787

query I rowsort
SELECT DISTINCT + 96 + + + 12
----
108

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-988
SELECT ALL + 0 + - COALESCE ( - CASE - 81 WHEN - 57 THEN NULL WHEN 91 THEN NULL WHEN - 82 * COALESCE ( + 86, 40 ) THEN NULL ELSE 48 DIV - CAST( NULL AS SIGNED ) + + 16 * 43 END, 57 ) + - 69 DIV - 81 col0
----
-57

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL + 0 + - COALESCE ( - CASE - 81 WHEN - 57 THEN NULL WHEN 91 THEN NULL WHEN - 82 * COALESCE ( + 86, 40 ) THEN NULL ELSE 48 / - CAST ( NULL AS INTEGER ) + + 16 * 43 END, 57 ) + - 69 / - 81 col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-989
SELECT - 82 - - + 88 - - 99 + - COUNT( * ) * + + CAST( NULL AS SIGNED ) / 0 * + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT - 82 - - + 88 - - 99 + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / 0 * + 37 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT ALL 88 DIV - - 89 * - 32 DIV 1
----
0

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL 88 / - - 89 * - 32 / 1
----
0

query II rowsort
SELECT - ( + 60 ) AS col1, 20 * - 17 AS col1
----
-60
-340

query I rowsort
SELECT - CASE - CASE + 83 WHEN + CASE - - 9 WHEN - 71 THEN - + 51 ELSE NULL END THEN + 41 WHEN + 76 THEN + 15 END WHEN - 47 * + 97 THEN + 80 WHEN - 45 THEN NULL END + + 89
----
NULL

query II rowsort
SELECT - ( + + 24 ) AS col0, - 83
----
-24
-83

query I rowsort
SELECT + 46 + + 65 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT DISTINCT + 82 + - 54 + + 50 + + 33 + + COALESCE ( + COUNT( * ), MIN( DISTINCT - 62 ), 40 * + ( 77 ) ) * 46
----
157

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT + 82 + - 54 + + 50 + + 33 + + COALESCE ( + COUNT ( * ), MIN ( DISTINCT - 62 ), 40 * + ( 77 ) ) * 46
----
157

query I rowsort
SELECT ALL 46 + 8
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT DISTINCT + MAX( ALL 31 ) * 32
----
992

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT + MAX ( ALL 31 ) * 32
----
992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-998
SELECT DISTINCT ( + - COUNT( * ) ) DIV 61 DIV + 65 + 82 + + 56 * + + 99 DIV - COUNT( * )
----
-5462

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT ( + - COUNT ( * ) ) / 61 / + 65 + 82 + + 56 * + + 99 / - COUNT ( * )
----
-5462

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-999
SELECT DISTINCT 37 DIV 69 - + + CAST( + + 35 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT 37 / 69 - + + CAST ( + + 35 AS INTEGER )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT ( - 49 ) DIV - 72 * + - 45 + - ( - 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1000
SELECT ( - 49 ) / - 72 * + - 45 + - ( - 16 ) AS col0
----
16

query I rowsort
SELECT - + 49 + - ( + 32 )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1002
SELECT DISTINCT - 10 DIV - 98 col1, COUNT( ALL + 42 ) DIV + 93 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-1002
SELECT DISTINCT - 10 / - 98 col1, COUNT ( ALL + 42 ) / + 93 AS col2
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1003
SELECT - + SUM( + 66 ) DIV 47
----
-1

skipif mysql # not compatible
query I rowsort label-1003
SELECT - + SUM ( + 66 ) / 47
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT - COUNT( * ) * + - MAX( + 35 ) + 75 + + 7 + + 65
----
182

skipif mysql # not compatible
query I rowsort label-1004
SELECT - COUNT ( * ) * + - MAX ( + 35 ) + 75 + + 7 + + 65
----
182

query I rowsort
SELECT ALL - 77 * 52 AS col1
----
-4004

query I rowsort
SELECT + ( + 40 ) * - 33
----
-1320

onlyif mysql # aggregate syntax: 
query II rowsort label-1007
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) AS col1, 93
----
1
93

skipif mysql # not compatible
query II rowsort label-1007
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) AS col1, 93
----
1
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1008
SELECT + SUM( - 98 ) * - 66 + - - 9 * - 44 + 74 DIV - 13 col0
----
6067

skipif mysql # not compatible
query I rowsort label-1008
SELECT + SUM ( - 98 ) * - 66 + - - 9 * - 44 + 74 / - 13 col0
----
6067

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1009
SELECT - CAST( NULL AS SIGNED ) * - + 58, + 76 AS col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-1009
SELECT - CAST ( NULL AS INTEGER ) * - + 58, + 76 AS col1
----
NULL
76

onlyif mysql # aggregate syntax: 
query II rowsort label-1010
SELECT DISTINCT - 25 + + 15, - COUNT( * ) AS col1
----
-10
-1

skipif mysql # not compatible
query II rowsort label-1010
SELECT DISTINCT - 25 + + 15, - COUNT ( * ) AS col1
----
-10
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT ALL + 67 + + 41 * CASE - COUNT( * ) WHEN + ( 51 ) THEN + 50 * + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + 67 + + 41 * CASE - COUNT ( * ) WHEN + ( 51 ) THEN + 50 * + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT DISTINCT + SUM( - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-1012
SELECT DISTINCT + SUM ( - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT NULLIF ( - + 47, + ( + NULLIF ( - + 32, + 94 ) ) / COUNT( * ) - COUNT( * ) ) * + 41 AS col2
----
-1927

skipif mysql # not compatible
query I rowsort label-1013
SELECT NULLIF ( - + 47, + ( + NULLIF ( - + 32, + 94 ) ) / COUNT ( * ) - COUNT ( * ) ) * + 41 AS col2
----
-1927

query I rowsort
SELECT ALL 77 + - 61
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT DISTINCT 47 DIV - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT 47 / - 88 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT 71 + 14 + + - 60 * COUNT( * ) + - - COALESCE ( MIN( DISTINCT 65 ), - 75 * - COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-1017
SELECT 71 + 14 + + - 60 * COUNT ( * ) + - - COALESCE ( MIN ( DISTINCT 65 ), - 75 * - COUNT ( * ) )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1018
SELECT ALL 82 * + + CAST( + 43 AS SIGNED )
----
3526

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL 82 * + + CAST ( + 43 AS INTEGER )
----
3526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1019
SELECT ALL 41 + + + 3 + + + 60 * - - NULLIF ( + CAST( + 22 AS SIGNED ), + + NULLIF ( - 88, 97 * + 12 ) * NULLIF ( 58 + ( - COUNT( * ) ) * - 2, - 47 ) + ( CASE + 97 WHEN 58 * 2 THEN + 88 + COUNT( * ) END - 46 ) * 92 ) AS col1
----
1364

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL 41 + + + 3 + + + 60 * - - NULLIF ( + CAST ( + 22 AS INTEGER ), + + NULLIF ( - 88, 97 * + 12 ) * NULLIF ( 58 + ( - COUNT ( * ) ) * - 2, - 47 ) + ( CASE + 97 WHEN 58 * 2 THEN + 88 + COUNT ( * ) END - 46 ) * 92 ) AS col1
----
1364

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1020
SELECT - 77 AS col1, COUNT( * ) * + 39 - + 36 + - - COUNT( * ) + - 60 + - 94 + + + COUNT( * ) DIV 20
----
-77
-150

skipif mysql # not compatible
query II rowsort label-1020
SELECT - 77 AS col1, COUNT ( * ) * + 39 - + 36 + - - COUNT ( * ) + - 60 + - 94 + + + COUNT ( * ) / 20
----
-77
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-1021
SELECT 92 AS col1, - 19 * 2 * - COUNT( * ) AS col2
----
92
38

skipif mysql # not compatible
query II rowsort label-1021
SELECT 92 AS col1, - 19 * 2 * - COUNT ( * ) AS col2
----
92
38

query II rowsort
SELECT DISTINCT 83 AS col1, ( 15 ) AS col0
----
83
15

query I rowsort
SELECT ALL 46 * - + 98
----
-4508

query I rowsort
SELECT ALL 5 + - - ( + 72 ) col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL 81 - 47 * + COUNT( * ) + 69 + - COUNT( * ) * - 90 + + COUNT( * ) + - + ( 78 ) * - 98 AS col1
----
7838

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL 81 - 47 * + COUNT ( * ) + 69 + - COUNT ( * ) * - 90 + + COUNT ( * ) + - + ( 78 ) * - 98 AS col1
----
7838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1026
SELECT DISTINCT 40 - + 54 + 86 * + COUNT( * ) * 43 * - NULLIF ( - 13, + CAST( NULL AS SIGNED ) + + COUNT( * ) )
----
48060

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT 40 - + 54 + 86 * + COUNT ( * ) * 43 * - NULLIF ( - 13, + CAST ( NULL AS INTEGER ) + + COUNT ( * ) )
----
48060

query II rowsort
SELECT ALL 98, NULLIF ( + + 25, 88 ) + + - COALESCE ( 95, - 84 ) AS col2
----
98
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1028
SELECT DISTINCT 33 DIV NULLIF ( - + 24, NULLIF ( - + COUNT( * ), + COUNT( * ) ) ) * - - NULLIF ( - 59, + 0 ) * 60 + 65 * + 67
----
7895

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT 33 / NULLIF ( - + 24, NULLIF ( - + COUNT ( * ), + COUNT ( * ) ) ) * - - NULLIF ( - 59, + 0 ) * 60 + 65 * + 67
----
7895

query II rowsort
SELECT 72 AS col2, 25 * 74 AS col0
----
72
1850

query I rowsort
SELECT 86 * + 57
----
4902

query I rowsort
SELECT 21 * 12
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT 27 + - + ( CASE + - 47 WHEN - + 40 + + 40 * 95 THEN NULL WHEN COUNT( * ) THEN NULL WHEN 58 - + 17 THEN NULLIF ( + MAX( 63 ), - ( 4 ) ) * - 48 WHEN + COUNT( * ) THEN + 69 ELSE - 3 * + 65 END ) + + COUNT( * ) * + 52 col0
----
274

skipif mysql # not compatible
query I rowsort label-1032
SELECT 27 + - + ( CASE + - 47 WHEN - + 40 + + 40 * 95 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN 58 - + 17 THEN NULLIF ( + MAX ( 63 ), - ( 4 ) ) * - 48 WHEN + COUNT ( * ) THEN + 69 ELSE - 3 * + 65 END ) + + COUNT ( * ) * + 52 col0
----
274

query I rowsort
SELECT DISTINCT - - 73 - - + 64
----
137

query III rowsort
SELECT DISTINCT - - 55, - 69 + ( 23 ) AS col1, ( + 21 ) * + 87 AS col1
----
55
-46
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT - 4 * CASE ( - 6 ) WHEN + 55 + + 61 / + 35 + 28 - - 82 THEN 91 - - MAX( ( 31 ) ) WHEN + ( - NULLIF ( ( 33 ), + 62 ) ) THEN - 28 * - AVG ( ALL - 83 * + 93 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1035
SELECT - 4 * CASE ( - 6 ) WHEN + 55 + + 61 / + 35 + 28 - - 82 THEN 91 - - MAX ( ( 31 ) ) WHEN + ( - NULLIF ( ( 33 ), + 62 ) ) THEN - 28 * - AVG ( ALL - 83 * + 93 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT DISTINCT - ( - COUNT( DISTINCT ( - + CASE - 48 WHEN + - NULLIF ( - 26, 2 ) * + 41 THEN + 61 ELSE NULL END ) ) ) * + NULLIF ( - 86, 90 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT - ( - COUNT ( DISTINCT ( - + CASE - 48 WHEN + - NULLIF ( - 26, 2 ) * + 41 THEN + 61 ELSE NULL END ) ) ) * + NULLIF ( - 86, 90 ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT - - MIN ( - 14 )
----
-14

query I rowsort
SELECT ALL - - 31 * - 36 AS col1
----
-1116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1039
SELECT - CAST( - 19 AS SIGNED ) * + 22 AS col2
----
418

skipif mysql # not compatible
query I rowsort label-1039
SELECT - CAST ( - 19 AS INTEGER ) * + 22 AS col2
----
418

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1040
SELECT + 79 - + ( - 22 ) col2, CAST( NULL AS SIGNED )
----
101
NULL

skipif mysql # not compatible
query II rowsort label-1040
SELECT + 79 - + ( - 22 ) col2, CAST ( NULL AS INTEGER )
----
101
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT ALL + - 18 + + 51 + + 64 + - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL + - 18 + + 51 + + 64 + - COUNT ( * )
----
96

query I rowsort
SELECT 14 * 48 * 50 AS col0
----
33600

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT 57 * + MAX( ALL - 64 ) * + + 21 * + 77 AS col0
----
-5898816

skipif mysql # not compatible
query I rowsort label-1043
SELECT 57 * + MAX ( ALL - 64 ) * + + 21 * + 77 AS col0
----
-5898816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1044
SELECT ALL - 65 DIV ( - CAST( - - COUNT( * ) AS SIGNED ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL - 65 / ( - CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col2
----
65

query I rowsort
SELECT ALL - COALESCE ( + 93, - 49, + 14 )
----
-93

query II rowsort
SELECT + 69 AS col1, 19 AS col1
----
69
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT DISTINCT + - SUM( - 36 ) + + + 84 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT + - SUM ( - 36 ) + + + 84 AS col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-1048
SELECT ALL + + 14 DIV NULLIF ( + 51, - ( - + 3 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL + + 14 / NULLIF ( + 51, - ( - + 3 ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1049
SELECT + 3 AS col1, 27 + + ( - COUNT( * ) ) + + 12 + + - 96 / 43 * CAST( NULL AS SIGNED ) col2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1049
SELECT + 3 AS col1, 27 + + ( - COUNT ( * ) ) + + 12 + + - 96 / 43 * CAST ( NULL AS INTEGER ) col2
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT DISTINCT + 72 * + + 88 + + 99 * CASE - + COUNT( * ) WHEN - 69 * - + SUM( DISTINCT + 96 ) THEN - 85 END * + 3 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT + 72 * + + 88 + + 99 * CASE - + COUNT ( * ) WHEN - 69 * - + SUM ( DISTINCT + 96 ) THEN - 85 END * + 3 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT 35 + - 69 + - CASE - 99 WHEN - 37 * + - COUNT( * ) - - ( 23 ) THEN NULL WHEN - - 68 / + COUNT( ALL - 73 ) THEN NULL WHEN - NULLIF ( SUM( - 94 ), 57 + 54 ) THEN NULL ELSE 67 + - 32 END AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-1051
SELECT 35 + - 69 + - CASE - 99 WHEN - 37 * + - COUNT ( * ) - - ( 23 ) THEN NULL WHEN - - 68 / + COUNT ( ALL - 73 ) THEN NULL WHEN - NULLIF ( SUM ( - 94 ), 57 + 54 ) THEN NULL ELSE 67 + - 32 END AS col1
----
-69

query I rowsort
SELECT 42 * - - 37 AS col2
----
1554

query II rowsort
SELECT 51 + - 83 AS col1, + 81 + + 8 * 37
----
-32
377

query I rowsort
SELECT 61 + + 68
----
129

query I rowsort
SELECT ALL - 82 - - ( - 60 ) AS col1
----
-142

onlyif mysql # aggregate syntax: 
query II rowsort label-1056
SELECT 96 + + - 90 + - 13 * COUNT( * ), + 89 * - 89 + - 58 + 7 * - - 2 col1
----
-7
-7965

skipif mysql # not compatible
query II rowsort label-1056
SELECT 96 + + - 90 + - 13 * COUNT ( * ), + 89 * - 89 + - 58 + 7 * - - 2 col1
----
-7
-7965

query I rowsort
SELECT 67 * - 77 col0
----
-5159

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1058
SELECT DISTINCT 92 DIV 35 * + - CAST( 98 AS SIGNED ) col0
----
-196

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT 92 / 35 * + - CAST ( 98 AS INTEGER ) col0
----
-196

query I rowsort
SELECT 83 - 99 AS col1
----
-16

query I rowsort
SELECT 86 + + 45 AS col1
----
131

query I rowsort
SELECT 95 + - 30
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1062
SELECT ALL 91 * COALESCE ( + 65, - 69, - CAST( NULL AS SIGNED ) ) * + 20 + 10
----
118310

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL 91 * COALESCE ( + 65, - 69, - CAST ( NULL AS INTEGER ) ) * + 20 + 10
----
118310

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1063
SELECT DISTINCT - 85 * ( ( - - CAST( 65 AS SIGNED ) ) ) AS col2, 78
----
-5525
78

skipif mysql # not compatible
query II rowsort label-1063
SELECT DISTINCT - 85 * ( ( - - CAST ( 65 AS INTEGER ) ) ) AS col2, 78
----
-5525
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1064
SELECT ALL COALESCE ( - CASE COUNT( * ) WHEN 17 THEN - - AVG ( ALL 69 ) WHEN 37 THEN NULL WHEN + 36 THEN COUNT( * ) END, - 63 + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL COALESCE ( - CASE COUNT ( * ) WHEN 17 THEN - - AVG ( ALL 69 ) WHEN 37 THEN NULL WHEN + 36 THEN COUNT ( * ) END, - 63 + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1065
SELECT - 50 / - 94 / - CASE + - 96 WHEN CAST( + 79 AS SIGNED ) * - - 45 THEN ( - CAST( NULL AS SIGNED ) ) + COUNT( * ) ELSE NULL END - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT - 50 / - 94 / - CASE + - 96 WHEN CAST ( + 79 AS INTEGER ) * - - 45 THEN ( - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) ELSE NULL END - 7 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1066
SELECT DISTINCT - CASE + - 71 WHEN 10 THEN - CAST( 44 AS SIGNED ) + - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT - CASE + - 71 WHEN 10 THEN - CAST ( 44 AS INTEGER ) + - COUNT ( * ) ELSE NULL END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1068
SELECT DISTINCT - + 73 * - 5 + + CAST( NULL AS SIGNED ) + + + COALESCE ( 81, + COALESCE ( 19, + + 33 + + 88 + 59 * + 74 / + 62 ) * AVG ( DISTINCT 41 * - 54 ) + - 0 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT - + 73 * - 5 + + CAST ( NULL AS INTEGER ) + + + COALESCE ( 81, + COALESCE ( 19, + + 33 + + 88 + 59 * + 74 / + 62 ) * AVG ( DISTINCT 41 * - 54 ) + - 0 ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1069
SELECT - - 14 * - 58 + 23 + - 34 - + 9 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1069
SELECT - - 14 * - 58 + 23 + - 34 - + 9 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1070
SELECT + + 66 DIV - 6
----
-11

skipif mysql # not compatible
query I rowsort label-1070
SELECT + + 66 / - 6
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1071
SELECT - + COUNT( * ) * + COUNT( * ) * - - 12 + + MIN( 89 ) + + 60 DIV + COALESCE ( + CASE - - COUNT( DISTINCT - 61 ) WHEN 61 THEN - 90 END, + 79 * + 58 - - 66 ) * 64
----
77

skipif mysql # not compatible
query I rowsort label-1071
SELECT - + COUNT ( * ) * + COUNT ( * ) * - - 12 + + MIN ( 89 ) + + 60 / + COALESCE ( + CASE - - COUNT ( DISTINCT - 61 ) WHEN 61 THEN - 90 END, + 79 * + 58 - - 66 ) * 64
----
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT - - 91 * - CASE - 6 WHEN + COUNT( * ) + 21 THEN + 94 * + - 99 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1073
SELECT - - 91 * - CASE - 6 WHEN + COUNT ( * ) + 21 THEN + 94 * + - 99 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT + ( + CASE 0 WHEN + + 36 + - - COUNT( * ) * - 3 THEN NULL ELSE 20 END ) + - 31
----
-11

skipif mysql # not compatible
query I rowsort label-1074
SELECT + ( + CASE 0 WHEN + + 36 + - - COUNT ( * ) * - 3 THEN NULL ELSE 20 END ) + - 31
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT 31 * - - COUNT( * ) * + 9 + + 59 + + 3 AS col1
----
341

skipif mysql # not compatible
query I rowsort label-1075
SELECT 31 * - - COUNT ( * ) * + 9 + + 59 + + 3 AS col1
----
341

query I rowsort
SELECT DISTINCT + 9 * + 21 col2
----
189

query I rowsort
SELECT ALL - 76 * - 31 * - 61 * ( + - 27 ) * - - 14 + - 80 AS col2
----
54324568

onlyif mysql # DIV for integer division: 
query I rowsort label-1078
SELECT DISTINCT - 98 * + 93 * 59 + 43 + - 19 * - 98 + + 9 DIV - 76
----
-535821

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT - 98 * + 93 * 59 + 43 + - 19 * - 98 + + 9 / - 76
----
-535821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1079
SELECT - - CASE ( MAX( ALL - + 62 ) ) WHEN COALESCE ( - 38, + 30 + 35, - 11 * CAST( NULL AS SIGNED ) ) THEN COUNT( * ) * CAST( 93 AS SIGNED ) END + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT - - CASE ( MAX ( ALL - + 62 ) ) WHEN COALESCE ( - 38, + 30 + 35, - 11 * CAST ( NULL AS INTEGER ) ) THEN COUNT ( * ) * CAST ( 93 AS INTEGER ) END + 69 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1081
SELECT DISTINCT 70 * - + 21 - + - ( - COUNT( * ) ) DIV + 25 AS col0, 40 * + 98 AS col0
----
-1470
3920

skipif mysql # not compatible
query II rowsort label-1081
SELECT DISTINCT 70 * - + 21 - + - ( - COUNT ( * ) ) / + 25 AS col0, 40 * + 98 AS col0
----
-1470
3920

query I rowsort
SELECT ALL + COALESCE ( + - 31, - 48 )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-1083
SELECT ALL 29 - MAX( - 15 ) AS col2, COUNT( * )
----
44
1

skipif mysql # not compatible
query II rowsort label-1083
SELECT ALL 29 - MAX ( - 15 ) AS col2, COUNT ( * )
----
44
1

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

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL + COUNT ( * ) / + 78 * COUNT ( * ) AS col1
----
0

query I rowsort
SELECT DISTINCT NULLIF ( - 99, 75 * ( + 12 ) ) AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT ALL + 42 DIV - 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + 42 / - 64 AS col0
----
0

query I rowsort
SELECT - 93 * - 33
----
3069

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT DISTINCT + 24 * + COUNT( * ) * - 50 * - + COALESCE ( 15, - 4 * + 54 ) AS col2
----
18000

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT + 24 * + COUNT ( * ) * - 50 * - + COALESCE ( 15, - 4 * + 54 ) AS col2
----
18000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1089
SELECT - ( + CAST( 44 AS SIGNED ) ) * + + 49 AS col2
----
-2156

skipif mysql # not compatible
query I rowsort label-1089
SELECT - ( + CAST ( 44 AS INTEGER ) ) * + + 49 AS col2
----
-2156

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

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

query I rowsort
SELECT ALL - 51 * + 20
----
-1020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1092
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN + 92 THEN NULL WHEN + 11 * + 17 THEN + - 9 + CAST( - - 74 AS SIGNED ) ELSE 23 END
----
23

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN + 92 THEN NULL WHEN + 11 * + 17 THEN + - 9 + CAST ( - - 74 AS INTEGER ) ELSE 23 END
----
23

query I rowsort
SELECT - 27 * + ( 38 )
----
-1026

query I rowsort
SELECT ALL NULLIF ( - COALESCE ( + + 16, 8 ), + 87 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT ALL NULLIF ( - COUNT( * ), - - 26 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL NULLIF ( - COUNT ( * ), - - 26 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1096
SELECT - + 95 AS col2, CAST( NULL AS SIGNED ) AS col1
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-1096
SELECT - + 95 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
-95
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1097
SELECT DISTINCT - + 77 + + 91 DIV MAX( DISTINCT - 14 ) + - - COUNT( 22 )
----
-82

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT - + 77 + + 91 / MAX ( DISTINCT - 14 ) + - - COUNT ( 22 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT DISTINCT + + COUNT( * ) + - 10 + + - 65
----
-74

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT + + COUNT ( * ) + - 10 + + - 65
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT + 8 + + + ( - + COUNT( * ) ) * + - 16
----
24

skipif mysql # not compatible
query I rowsort label-1099
SELECT + 8 + + + ( - + COUNT ( * ) ) * + - 16
----
24

query II rowsort
SELECT ALL - 90 + 3 + COALESCE ( 74, - 64, + 0 ) * - ( + - 76 ), 50 - + - 71 * 64 AS col2
----
5537
4594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1101
SELECT DISTINCT - COUNT( * ) AS col1, 64 + ( - CAST( - - CASE - + COUNT( * ) WHEN COALESCE ( + + 66, - COUNT( * ) ) THEN + + 15 END AS SIGNED ) ) + 49
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1101
SELECT DISTINCT - COUNT ( * ) AS col1, 64 + ( - CAST ( - - CASE - + COUNT ( * ) WHEN COALESCE ( + + 66, - COUNT ( * ) ) THEN + + 15 END AS INTEGER ) ) + 49
----
-1
NULL

query I rowsort
SELECT - 61 * 93
----
-5673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1103
SELECT - MAX( ALL + 22 ) DIV - 54 + - 14 + - 70 * + - 92 - - ( + NULLIF ( - 87, + SUM( ALL 24 ) + 48 * CAST( NULL AS SIGNED ) ) ) * + 58
----
1380

skipif mysql # not compatible
query I rowsort label-1103
SELECT - MAX ( ALL + 22 ) / - 54 + - 14 + - 70 * + - 92 - - ( + NULLIF ( - 87, + SUM ( ALL 24 ) + 48 * CAST ( NULL AS INTEGER ) ) ) * + 58
----
1380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1104
SELECT ALL - 38 DIV + 41 * + 56 + 0 DIV + + 19 * - 56 * + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL - 38 / + 41 * + 56 + 0 / + + 19 * - 56 * + - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL - ( - + 17 ) * + 42 AS col0
----
714

query I rowsort
SELECT + + 10 * - 58 AS col2
----
-580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1107
SELECT ALL + + 82 / AVG ( + 4 ) + + 64 + CAST( NULL AS SIGNED ) + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL + + 82 / AVG ( + 4 ) + + 64 + CAST ( NULL AS INTEGER ) + + 74
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1108
SELECT MIN ( + - 32 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1109
SELECT + 82 * + CASE + 37 WHEN - COUNT( * ) THEN NULL WHEN - - 92 THEN - COUNT( * ) ELSE NULL END / - + CAST( + 81 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT + 82 * + CASE + 37 WHEN - COUNT ( * ) THEN NULL WHEN - - 92 THEN - COUNT ( * ) ELSE NULL END / - + CAST ( + 81 AS REAL )
----
NULL

query I rowsort
SELECT ALL + - 35 col2
----
-35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT CASE COUNT( * ) WHEN + 1 * + - 14 THEN 17 / COUNT( * ) * + CASE + ( - - 75 ) WHEN + - 32 * - - NULLIF ( + COUNT( * ), - 33 ) THEN NULL WHEN - COUNT( * ) THEN 63 END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1112
SELECT CASE COUNT ( * ) WHEN + 1 * + - 14 THEN 17 / COUNT ( * ) * + CASE + ( - - 75 ) WHEN + - 32 * - - NULLIF ( + COUNT ( * ), - 33 ) THEN NULL WHEN - COUNT ( * ) THEN 63 END ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1113
SELECT ALL 78 * + - CAST( NULL AS SIGNED ) - + AVG ( 71 ) + + ( - 84 ) / - + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL 78 * + - CAST ( NULL AS INTEGER ) - + AVG ( 71 ) + + ( - 84 ) / - + 84 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1114
SELECT + CAST( NULL AS SIGNED ), + 12 + - + 69 * - - 64 AS col2
----
NULL
-4404

skipif mysql # not compatible
query II rowsort label-1114
SELECT + CAST ( NULL AS INTEGER ), + 12 + - + 69 * - - 64 AS col2
----
NULL
-4404

query I rowsort
SELECT + ( 60 ) - + + 30 + - 97
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT COUNT( DISTINCT - 25 ) * + 24 + 23
----
47

skipif mysql # not compatible
query I rowsort label-1116
SELECT COUNT ( DISTINCT - 25 ) * + 24 + 23
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1117
SELECT ALL ( + - 21 ) * - + 78 / - COUNT( * ) * CAST( NULL AS SIGNED ) - 24 - + - COUNT( * ) * - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL ( + - 21 ) * - + 78 / - COUNT ( * ) * CAST ( NULL AS INTEGER ) - 24 - + - COUNT ( * ) * - 50 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1118
SELECT NULLIF ( 90, - - CAST( - - CASE WHEN NOT + 25 > + COUNT( * ) * COUNT( ALL - 74 ) * 84 + + 58 + 42 + - 40 THEN NULL WHEN NOT ( NULL ) IS NOT NULL THEN - 52 * 97 WHEN ( NULL ) <= 53 / + 74 THEN NULL ELSE 92 END AS SIGNED ) * ( - ( + NULLIF ( MAX( + NULLIF ( 22, 60 ) ), COUNT( * ) * + 25 ) ) ) )
----
90

skipif mysql # not compatible
query I rowsort label-1118
SELECT NULLIF ( 90, - - CAST ( - - CASE WHEN NOT + 25 > + COUNT ( * ) * COUNT ( ALL - 74 ) * 84 + + 58 + 42 + - 40 THEN NULL WHEN NOT ( NULL ) IS NOT NULL THEN - 52 * 97 WHEN ( NULL ) <= 53 / + 74 THEN NULL ELSE 92 END AS INTEGER ) * ( - ( + NULLIF ( MAX ( + NULLIF ( 22, 60 ) ), COUNT ( * ) * + 25 ) ) ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT ALL CASE COUNT( ALL + 2 ) WHEN + 5 THEN - 98 WHEN + 35 + - COUNT( DISTINCT + 38 ) + - - ( + COUNT( * ) ) - + - 14 + + 85 * - 83 THEN NULL ELSE 9 * + 66 + - 8 END
----
586

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL CASE COUNT ( ALL + 2 ) WHEN + 5 THEN - 98 WHEN + 35 + - COUNT ( DISTINCT + 38 ) + - - ( + COUNT ( * ) ) - + - 14 + + 85 * - 83 THEN NULL ELSE 9 * + 66 + - 8 END
----
586

onlyif mysql # aggregate syntax: 
query II rowsort label-1120
SELECT ALL CASE 45 WHEN 49 THEN COUNT( * ) ELSE NULL END AS col1, 52
----
NULL
52

skipif mysql # not compatible
query II rowsort label-1120
SELECT ALL CASE 45 WHEN 49 THEN COUNT ( * ) ELSE NULL END AS col1, 52
----
NULL
52

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

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

query II rowsort
SELECT ALL COALESCE ( - + 36, - - 61 + - 27 * + - ( 15 ) ), + 62 AS col1
----
-36
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1123
SELECT - 28 DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-1123
SELECT - 28 / + 64
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1124
SELECT ALL CASE + CAST( NULL AS DECIMAL ) WHEN MIN( DISTINCT + + 79 ) THEN + MIN( ALL - 92 ) * + 2 + - COUNT( - 67 ) * + 55 * - + 73 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL CASE + CAST ( NULL AS REAL ) WHEN MIN ( DISTINCT + + 79 ) THEN + MIN ( ALL - 92 ) * + 2 + - COUNT ( - 67 ) * + 55 * - + 73 + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 68 + 90 * + - 40
----
-3532

query II rowsort
SELECT DISTINCT 56 AS col1, 71
----
56
71

query I rowsort
SELECT DISTINCT - 75 + + 75 + 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT 40 * - - COUNT( * ) * - + 30 AS col2
----
-1200

skipif mysql # not compatible
query I rowsort label-1128
SELECT 40 * - - COUNT ( * ) * - + 30 AS col2
----
-1200

query I rowsort
SELECT DISTINCT + 2 * - 4 AS col2
----
-8

query I rowsort
SELECT 73 + - + 64
----
9

query I rowsort
SELECT ( 47 ) * 25
----
1175

query I rowsort
SELECT ALL + + 95 + - 20
----
75

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

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

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

query I rowsort
SELECT ALL - + 99 + - 15 AS col0
----
-114

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

query I rowsort
SELECT ALL - - 7 - 88 + - 18 col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT - 11 * + 66 * + CASE 87 WHEN + 36 + - 4 THEN - - 39 END + - NULLIF ( + 70, - + 35 * - - 51 + 68 * ( 71 + 32 ) ) + + 94 * + 54 + 41 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT - 11 * + 66 * + CASE 87 WHEN + 36 + - 4 THEN - - 39 END + - NULLIF ( + 70, - + 35 * - - 51 + 68 * ( 71 + 32 ) ) + + 94 * + 54 + 41 * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1139
SELECT 31 AS col2, - CAST( NULL AS SIGNED ) * + MIN( - 11 ) + 71 - 17
----
31
NULL

skipif mysql # not compatible
query II rowsort label-1139
SELECT 31 AS col2, - CAST ( NULL AS INTEGER ) * + MIN ( - 11 ) + 71 - 17
----
31
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1140
SELECT + + 83 DIV + - 22 + + COUNT( * ) + - COALESCE ( + - 96, 11, - 90 DIV + NULLIF ( + + 38, + COUNT( * ) * - CASE 83 WHEN 94 THEN NULL WHEN ( - COUNT( * ) ) + 42 * - 37 THEN ( - 60 ) * 16 ELSE NULL END ) ) - + 89 * - 88 * COUNT( * ) col2
----
7926

skipif mysql # not compatible
query I rowsort label-1140
SELECT + + 83 / + - 22 + + COUNT ( * ) + - COALESCE ( + - 96, 11, - 90 / + NULLIF ( + + 38, + COUNT ( * ) * - CASE 83 WHEN 94 THEN NULL WHEN ( - COUNT ( * ) ) + 42 * - 37 THEN ( - 60 ) * 16 ELSE NULL END ) ) - + 89 * - 88 * COUNT ( * ) col2
----
7926

query II rowsort
SELECT ALL - 93 * 9, - 96 AS col2
----
-837
-96

query I rowsort
SELECT + 89 + + - 47 col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1143
SELECT DISTINCT - + CASE 10 WHEN 42 * - 90 + 1 + + ( - - ( - - COUNT( * ) ) ) * 77 THEN COALESCE ( + COUNT( ALL + 13 ), + CAST( 89 AS SIGNED ) * + 8, COUNT( * ) - COUNT( * ) ) + ( + 74 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT - + CASE 10 WHEN 42 * - 90 + 1 + + ( - - ( - - COUNT ( * ) ) ) * 77 THEN COALESCE ( + COUNT ( ALL + 13 ), + CAST ( 89 AS INTEGER ) * + 8, COUNT ( * ) - COUNT ( * ) ) + ( + 74 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1144
SELECT DISTINCT - + NULLIF ( - 53, - 80 ) * - 19 * + + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT - + NULLIF ( - 53, - 80 ) * - 19 * + + CAST ( NULL AS REAL ) col2
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1146
SELECT ALL - 23 * + NULLIF ( 66, + + CAST( - 32 AS DECIMAL ) + - 8 )
----
-1518

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL - 23 * + NULLIF ( 66, + + CAST ( - 32 AS REAL ) + - 8 )
----
-1518

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1148
SELECT DISTINCT 6 DIV - COUNT( * ) AS col1, + NULLIF ( - 42, - COALESCE ( 15, + CASE + 52 WHEN - 18 THEN NULL WHEN + 21 THEN COUNT( DISTINCT + + 11 ) ELSE NULL END * 20 + 58 ) ) + - COUNT( * ) AS col0
----
-6
-43

skipif mysql # not compatible
query II rowsort label-1148
SELECT DISTINCT 6 / - COUNT ( * ) AS col1, + NULLIF ( - 42, - COALESCE ( 15, + CASE + 52 WHEN - 18 THEN NULL WHEN + 21 THEN COUNT ( DISTINCT + + 11 ) ELSE NULL END * 20 + 58 ) ) + - COUNT ( * ) AS col0
----
-6
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT COUNT( - ( 38 ) ) * + - COUNT( * ) * 3 * 3 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1149
SELECT COUNT ( - ( 38 ) ) * + - COUNT ( * ) * 3 * 3 AS col0
----
-9

query I rowsort
SELECT 70 * - 41 * + 30 AS col1
----
-86100

query I rowsort
SELECT 5 + + ( 90 ) AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT 12 DIV - 61 * 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1152
SELECT 12 / - 61 * 77 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1153
SELECT DISTINCT 70 DIV + 67 AS col0, 96 + - NULLIF ( - + 67, - 85 ) * - - 61 AS col1
----
1
4183

skipif mysql # not compatible
query II rowsort label-1153
SELECT DISTINCT 70 / + 67 AS col0, 96 + - NULLIF ( - + 67, - 85 ) * - - 61 AS col1
----
1
4183

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1155
SELECT DISTINCT CASE + 31 WHEN 14 THEN CAST( NULL AS SIGNED ) WHEN 75 * 83 + - COUNT( * ) THEN - 88 WHEN 65 * - + COALESCE ( SUM( - 97 ), + 49 / + 9 ) * 70 - 64 THEN 61 ELSE NULL END + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT CASE + 31 WHEN 14 THEN CAST ( NULL AS INTEGER ) WHEN 75 * 83 + - COUNT ( * ) THEN - 88 WHEN 65 * - + COALESCE ( SUM ( - 97 ), + 49 / + 9 ) * 70 - 64 THEN 61 ELSE NULL END + 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT DISTINCT 34 + 88 - + NULLIF ( 90, + 78 * - NULLIF ( 92, 25 ) ) * - - 22 + + COUNT( * ) col0, COUNT( * ) * + - 54 AS col1
----
-1857
-54

skipif mysql # not compatible
query II rowsort label-1156
SELECT DISTINCT 34 + 88 - + NULLIF ( 90, + 78 * - NULLIF ( 92, 25 ) ) * - - 22 + + COUNT ( * ) col0, COUNT ( * ) * + - 54 AS col1
----
-1857
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL 69 + + 54 + COUNT( * ) * - + 45 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL 69 + + 54 + COUNT ( * ) * - + 45 AS col2
----
78

query I rowsort
SELECT 95 * + 17 * ( - 63 ) * + COALESCE ( 5, 11 ) * + 20
----
-10174500

query I rowsort
SELECT ALL 62 * - + 77
----
-4774

query I rowsort
SELECT 57 - - 12
----
69

query I rowsort
SELECT ( + CASE - + 5 WHEN + - COALESCE ( + ( + 26 ), 3, 2 ) / - + 81 THEN + 21 WHEN + 33 THEN NULL ELSE - 81 END ) AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1162
SELECT ALL + 29 + + COALESCE ( + + 65, - CAST( - ( 42 ) AS SIGNED ) * + - 98 + 81 + CASE 73 WHEN - 52 * + - COUNT( * ) DIV + 3 + - 15 + 21 THEN - 16 WHEN 89 DIV 28 THEN CAST( NULL AS SIGNED ) ELSE NULL END - 88 DIV + 64, - 66 ) + + 3 DIV 14 * 5 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL + 29 + + COALESCE ( + + 65, - CAST ( - ( 42 ) AS INTEGER ) * + - 98 + 81 + CASE 73 WHEN - 52 * + - COUNT ( * ) / + 3 + - 15 + 21 THEN - 16 WHEN 89 / 28 THEN CAST ( NULL AS INTEGER ) ELSE NULL END - 88 / + 64, - 66 ) + + 3 / 14 * 5 AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1163
SELECT ALL - 49 + 3 DIV + 85 + 30 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL - 49 + 3 / + 85 + 30 AS col0
----
-19

query I rowsort
SELECT DISTINCT + 21 - + CASE 62 WHEN + + 91 THEN + 84 ELSE NULL END + - 83
----
NULL

query I rowsort
SELECT 57 + 85 * + ( + + CASE - + 6 WHEN COALESCE ( + COALESCE ( - 6, 24 ), - 47, 33 ) THEN NULL WHEN 48 THEN + 37 WHEN + 10 * + 2 + 4 * 67 THEN - AVG ( - 91 ) * - 49 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL - - ( - 2 ) * + ( - 5 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1167
SELECT + COUNT( * ) * + - ( + 64 ) * 44 + 0 AS col0, + 97 AS col0
----
-2816
97

skipif mysql # not compatible
query II rowsort label-1167
SELECT + COUNT ( * ) * + - ( + 64 ) * 44 + 0 AS col0, + 97 AS col0
----
-2816
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT - + NULLIF ( - + 27, COALESCE ( CASE - - 46 WHEN - + 22 / - 51 THEN COUNT( * ) WHEN + - 1 + + + COUNT( * ) THEN NULL END, + - COALESCE ( + - 19, - 8 ) * + 98 ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1168
SELECT - + NULLIF ( - + 27, COALESCE ( CASE - - 46 WHEN - + 22 / - 51 THEN COUNT ( * ) WHEN + - 1 + + + COUNT ( * ) THEN NULL END, + - COALESCE ( + - 19, - 8 ) * + 98 ) ) AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1169
SELECT DISTINCT - ( 43 ) * + + COUNT( DISTINCT + ( - CAST( - - 56 AS SIGNED ) ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT - ( 43 ) * + + COUNT ( DISTINCT + ( - CAST ( - - 56 AS INTEGER ) ) ) AS col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1170
SELECT ALL + CAST( - 96 AS SIGNED ) * 36
----
-3456

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL + CAST ( - 96 AS INTEGER ) * 36
----
-3456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1171
SELECT ALL - + 0 * - SUM( - 99 ) DIV 34 * ( ( - 16 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL - + 0 * - SUM ( - 99 ) / 34 * ( ( - 16 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT + SUM( ALL - - 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1172
SELECT + SUM ( ALL - - 29 ) AS col2
----
29

query II rowsort
SELECT DISTINCT - 19, 91 col0
----
-19
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1174
SELECT ALL - COUNT( * ), 67 + - 43 AS col1
----
-1
24

skipif mysql # not compatible
query II rowsort label-1174
SELECT ALL - COUNT ( * ), 67 + - 43 AS col1
----
-1
24

query I rowsort
SELECT 60 * + - 4
----
-240

onlyif mysql # aggregate syntax: 
query II rowsort label-1176
SELECT + 16 AS col1, - COUNT( * ) * + 77 * ( + NULLIF ( 89, - 91 + 28 ) )
----
16
-6853

skipif mysql # not compatible
query II rowsort label-1176
SELECT + 16 AS col1, - COUNT ( * ) * + 77 * ( + NULLIF ( 89, - 91 + 28 ) )
----
16
-6853

query II rowsort
SELECT ALL - 31 AS col2, ( + 27 ) + 80 col0
----
-31
107

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT ALL - NULLIF ( 14, - CASE - - 51 WHEN - 17 THEN - 47 + + 93 WHEN - 14 THEN NULL ELSE + - COUNT( * ) END * - 63 + 45 + 95 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL - NULLIF ( 14, - CASE - - 51 WHEN - 17 THEN - 47 + + 93 WHEN - 14 THEN NULL ELSE + - COUNT ( * ) END * - 63 + 45 + 95 ) AS col2
----
-14

query I rowsort
SELECT 76 - + 59 + + NULLIF ( - - 55, + - 67 ) - + 93 AS col1
----
-21

query I rowsort
SELECT 86 - - + 0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT MAX( - 96 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-1181
SELECT MAX ( - 96 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT ALL - COALESCE ( - + 97, - + 39, - + COUNT( + 51 ) + + + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL - COALESCE ( - + 97, - + 39, - + COUNT ( + 51 ) + + + 97 )
----
97

query II rowsort
SELECT + 81 AS col0, + 44 AS col1
----
81
44

query I rowsort
SELECT DISTINCT - 2 * + - 42 * + + 13 col1
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT DISTINCT + 47 + + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT + 47 + + - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT ALL + COUNT( * ) + + 27 - + 10 * COUNT( * ) + - 1 + + + 10 + - 82 * - - COUNT( * ) * + 4 col2
----
-301

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL + COUNT ( * ) + + 27 - + 10 * COUNT ( * ) + - 1 + + + 10 + - 82 * - - COUNT ( * ) * + 4 col2
----
-301

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT NULLIF ( + - 38, - + 50 ) * + CASE WHEN NOT NULL IS NOT NULL THEN + ( + 72 ) ELSE NULL END + + + 54 + + CASE - 22 WHEN ( + 68 ) THEN 21 + COALESCE ( COALESCE ( + 27, - 19 + 62 ), COUNT( * ) - 56 ) * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1187
SELECT NULLIF ( + - 38, - + 50 ) * + CASE WHEN NOT NULL IS NOT NULL THEN + ( + 72 ) ELSE NULL END + + + 54 + + CASE - 22 WHEN ( + 68 ) THEN 21 + COALESCE ( COALESCE ( + 27, - 19 + 62 ), COUNT ( * ) - 56 ) * COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT + 57 - + MAX( ALL 58 ) + + COUNT( * ) * - 71 + - NULLIF ( + 36, ( - 53 ) * - 5 / 81 )
----
-108

skipif mysql # not compatible
query I rowsort label-1188
SELECT + 57 - + MAX ( ALL 58 ) + + COUNT ( * ) * - 71 + - NULLIF ( + 36, ( - 53 ) * - 5 / 81 )
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT ALL MIN( DISTINCT 12 ) + 37 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL MIN ( DISTINCT 12 ) + 37 AS col2
----
49

query II rowsort
SELECT 70 AS col2, 97 AS col2
----
70
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT ALL NULLIF ( - 74, + ( - 2 ) * - - COUNT( * ) ) + 28 * + 78
----
2110

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL NULLIF ( - 74, + ( - 2 ) * - - COUNT ( * ) ) + 28 * + 78
----
2110

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1193
SELECT + - 64 + + 90 * - NULLIF ( + 11, ( + 47 ) * + 4 + - + 19 ) + - 76 + + CAST( - + 20 AS SIGNED ) DIV 25
----
-1130

skipif mysql # not compatible
query I rowsort label-1193
SELECT + - 64 + + 90 * - NULLIF ( + 11, ( + 47 ) * + 4 + - + 19 ) + - 76 + + CAST ( - + 20 AS INTEGER ) / 25
----
-1130

onlyif mysql # DIV for integer division: 
query I rowsort label-1194
SELECT ALL COALESCE ( 45, + - 80 ) - + 43 DIV 65 * + 28 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL COALESCE ( 45, + - 80 ) - + 43 / 65 * + 28 AS col2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1195
SELECT - + COUNT( * ) AS col2, 73 * + ( ( - 7 ) ) AS col2
----
-1
-511

skipif mysql # not compatible
query II rowsort label-1195
SELECT - + COUNT ( * ) AS col2, 73 * + ( ( - 7 ) ) AS col2
----
-1
-511

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

query I rowsort
SELECT DISTINCT - 50 - 23
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT ALL + 92 * - + COUNT( * ) + - 91 AS col0
----
-183

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL + 92 * - + COUNT ( * ) + - 91 AS col0
----
-183

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1200
SELECT ALL ( NULLIF ( - + 22, - 2 * - + 93 + + 76 + - + 57 + 81 + - + 39 * CASE + ( 90 ) WHEN + MIN( ALL 42 ) THEN NULL ELSE - CAST( + 12 AS SIGNED ) END + - 35 * + NULLIF ( COUNT( * ), COUNT( 58 ) + 77 ) / 88 ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL ( NULLIF ( - + 22, - 2 * - + 93 + + 76 + - + 57 + 81 + - + 39 * CASE + ( 90 ) WHEN + MIN ( ALL 42 ) THEN NULL ELSE - CAST ( + 12 AS INTEGER ) END + - 35 * + NULLIF ( COUNT ( * ), COUNT ( 58 ) + 77 ) / 88 ) ) AS col1
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1201
SELECT - + 31 * + + CAST( NULL AS DECIMAL ) + - - 13 - + 63 * + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT - + 31 * + + CAST ( NULL AS REAL ) + - - 13 - + 63 * + - 3
----
NULL

query I rowsort
SELECT + 44 + - 56
----
-12

query II rowsort
SELECT ALL 33 AS col2, - 36 * 10 + - - 29
----
33
-331

onlyif mysql # DIV for integer division: 
query II rowsort label-1204
SELECT ALL + 54, - 15 + - + 22 DIV - ( + 81 ) AS col1
----
54
-15

skipif mysql # not compatible
query II rowsort label-1204
SELECT ALL + 54, - 15 + - + 22 / - ( + 81 ) AS col1
----
54
-15

query I rowsort
SELECT ALL - NULLIF ( - - 88, + 25 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT - + ( - - 1 ) - MIN( + 57 ) * 65 AS col2
----
-3706

skipif mysql # not compatible
query I rowsort label-1206
SELECT - + ( - - 1 ) - MIN ( + 57 ) * 65 AS col2
----
-3706

onlyif mysql # DIV for integer division: 
query I rowsort label-1207
SELECT ALL - 16 DIV + 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL - 16 / + 89 col0
----
0

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

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

query I rowsort
SELECT - - 5 + + 10 * + 97 + 89 * + 85 AS col0
----
8540

query I rowsort
SELECT ALL 3 * 82 + 58 + + 3 * + - 38
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1211
SELECT CASE + CAST( NULL AS SIGNED ) WHEN + NULLIF ( - - COUNT( * ), 61 - - - 44 ) THEN 51 WHEN - ( 48 ) * + NULLIF ( 19, COUNT( - + ( + + 55 ) ) ) THEN NULL ELSE NULL END * 27 + COALESCE ( MIN( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + - 5 * 49, COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1211
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN + NULLIF ( - - COUNT ( * ), 61 - - - 44 ) THEN 51 WHEN - ( 48 ) * + NULLIF ( 19, COUNT ( - + ( + + 55 ) ) ) THEN NULL ELSE NULL END * 27 + COALESCE ( MIN ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - 5 * 49, COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT ALL - 52 * - 36 + - 97 - - ( + - 8 ) DIV - 13
----
1775

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL - 52 * - 36 + - 97 - - ( + - 8 ) / - 13
----
1775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1213
SELECT - COUNT( * ) * - 53 * 20 - CASE ( - 30 ) WHEN + CAST( 65 AS SIGNED ) THEN NULL ELSE + + 35 END col1, 45 AS col2
----
1025
45

skipif mysql # not compatible
query II rowsort label-1213
SELECT - COUNT ( * ) * - 53 * 20 - CASE ( - 30 ) WHEN + CAST ( 65 AS INTEGER ) THEN NULL ELSE + + 35 END col1, 45 AS col2
----
1025
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1214
SELECT DISTINCT CASE - - 89 WHEN - 45 * + + MIN( - ( 68 ) ) + + 88 + + MAX( DISTINCT 18 ) THEN NULL WHEN + 93 THEN + COUNT( * ) ELSE - - 77 END * - - 36 * + MAX( DISTINCT - 72 ) * 65 + 48 + - CAST( 87 AS SIGNED ) col0
----
-12972999

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT CASE - - 89 WHEN - 45 * + + MIN ( - ( 68 ) ) + + 88 + + MAX ( DISTINCT 18 ) THEN NULL WHEN + 93 THEN + COUNT ( * ) ELSE - - 77 END * - - 36 * + MAX ( DISTINCT - 72 ) * 65 + 48 + - CAST ( 87 AS INTEGER ) col0
----
-12972999

query II rowsort
SELECT ALL - NULLIF ( 53, - + 78 + + ( + + 9 ) ) * + 89 + + - 80 AS col2, + ( 19 ) AS col2
----
-4797
19

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

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

query II rowsort
SELECT DISTINCT 34 * 51 AS col0, 28 col2
----
1734
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT DISTINCT - CAST( ( + - 69 ) AS SIGNED ) * - 86 + - + COUNT( * ) + + 89 * + + 95
----
2520

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT - CAST ( ( + - 69 ) AS INTEGER ) * - 86 + - + COUNT ( * ) + + 89 * + + 95
----
2520

onlyif mysql # aggregate syntax: 
query II rowsort label-1219
SELECT DISTINCT 15 * + ( - 96 ) + - 1, - 14 + + 15 + - SUM( + 16 ) col0
----
-1441
-15

skipif mysql # not compatible
query II rowsort label-1219
SELECT DISTINCT 15 * + ( - 96 ) + - 1, - 14 + + 15 + - SUM ( + 16 ) col0
----
-1441
-15

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1221
SELECT ALL + COUNT( * ) * - 42 + + 94 - + 4 + 74 * - + 71 + - - 31 DIV COUNT( * ) * 38 AS col1
----
-4028

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL + COUNT ( * ) * - 42 + + 94 - + 4 + 74 * - + 71 + - - 31 / COUNT ( * ) * 38 AS col1
----
-4028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1222
SELECT 25 * - + 62 + + COUNT( - - 75 ) AS col0, 50 + CAST( + 17 AS SIGNED ) * - + 10 * 28 col0
----
-1549
-4710

skipif mysql # not compatible
query II rowsort label-1222
SELECT 25 * - + 62 + + COUNT ( - - 75 ) AS col0, 50 + CAST ( + 17 AS INTEGER ) * - + 10 * 28 col0
----
-1549
-4710

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT CASE + 31 WHEN + 27 THEN 57 + - - 31 WHEN + 92 * - 49 / - 64 THEN + 55 + - + 28 + 21 * 6 WHEN - COUNT( * ) / - 92 + + 69 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1223
SELECT CASE + 31 WHEN + 27 THEN 57 + - - 31 WHEN + 92 * - 49 / - 64 THEN + 55 + - + 28 + 21 * 6 WHEN - COUNT ( * ) / - 92 + + 69 THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT COALESCE ( COUNT( * ), + 7 * + 27, + + 68 + - 87, + + 16 )
----
1

skipif mysql # not compatible
query I rowsort label-1224
SELECT COALESCE ( COUNT ( * ), + 7 * + 27, + + 68 + - 87, + + 16 )
----
1

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT 35 * + 99 + - + COUNT( * )
----
3464

skipif mysql # not compatible
query I rowsort label-1228
SELECT 35 * + 99 + - + COUNT ( * )
----
3464

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1230
SELECT COALESCE ( 73, 12 + COALESCE ( + 95, + 79 DIV + 36, + 38 ) ) col0
----
73

skipif mysql # not compatible
query I rowsort label-1230
SELECT COALESCE ( 73, 12 + COALESCE ( + 95, + 79 / + 36, + 38 ) ) col0
----
73

query I rowsort
SELECT ALL + 26 * + - 74
----
-1924

query I rowsort
SELECT - 15 * + - 34 AS col0
----
510

query I rowsort
SELECT ALL + 71 * + 90 * + + 70
----
447300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1234
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) / 74 + - CAST( NULL AS SIGNED ) - - - ( + 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) / 74 + - CAST ( NULL AS INTEGER ) - - - ( + 41 ) AS col1
----
NULL

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

query I rowsort
SELECT - 92 * + 17 AS col2
----
-1564

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1238
SELECT - 19 DIV - COUNT( * ) - + 55 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-1238
SELECT - 19 / - COUNT ( * ) - + 55 AS col1
----
-36

query I rowsort
SELECT - + 50 + - 44 AS col0
----
-94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT - NULLIF ( 50, + MAX( - - 7 ) * - 21 * - 10 )
----
-50

skipif mysql # not compatible
query I rowsort label-1241
SELECT - NULLIF ( 50, + MAX ( - - 7 ) * - 21 * - 10 )
----
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1242
SELECT DISTINCT 90 * - CAST( NULL AS DECIMAL ), - ( + 25 ) col0
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-1242
SELECT DISTINCT 90 * - CAST ( NULL AS REAL ), - ( + 25 ) col0
----
NULL
-25

query I rowsort
SELECT + - 25 * + 63 - + 74 AS col2
----
-1649

query I rowsort
SELECT ALL - 14 + 9 AS col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1245
SELECT + 78 + 58 AS col2, CAST( - 34 AS SIGNED ) DIV 2 + - 56
----
136
-73

skipif mysql # not compatible
query II rowsort label-1245
SELECT + 78 + 58 AS col2, CAST ( - 34 AS INTEGER ) / 2 + - 56
----
136
-73

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT + - 75 - + 34 * + - 58 * - COUNT( * ) AS col0
----
-2047

skipif mysql # not compatible
query I rowsort label-1248
SELECT + - 75 - + 34 * + - 58 * - COUNT ( * ) AS col0
----
-2047

query I rowsort
SELECT + 5 * - + 19 AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1250
SELECT DISTINCT 12 + + - 50 * 61 DIV COUNT( * ) AS col1
----
-3038

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT 12 + + - 50 * 61 / COUNT ( * ) AS col1
----
-3038

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

query I rowsort
SELECT - 41 + 22 * + 87 + - ( - 84 ) - + ( + 4 ) AS col0
----
1953

query I rowsort
SELECT ALL 0 * ( + 3 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1254
SELECT DISTINCT 99 DIV - - 5 + + + ( + 59 ) DIV 13 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT 99 / - - 5 + + + ( + 59 ) / 13 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT ALL 67 DIV + 59 + - + 8 DIV + 86 * + 81
----
1

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL 67 / + 59 + - + 8 / + 86 * + 81
----
1

query I rowsort
SELECT ALL 93 + 88
----
181

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1257
SELECT ALL - CAST( 25 AS SIGNED ) + - 46, 69 AS col2
----
-71
69

skipif mysql # not compatible
query II rowsort label-1257
SELECT ALL - CAST ( 25 AS INTEGER ) + - 46, 69 AS col2
----
-71
69

query I rowsort
SELECT ALL + ( 15 ) + + 76 AS col2
----
91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1260
SELECT DISTINCT - 72 col2, CAST( + - 32 AS SIGNED ) AS col2, + 18 col1
----
-72
-32
18

skipif mysql # not compatible
query III rowsort label-1260
SELECT DISTINCT - 72 col2, CAST ( + - 32 AS INTEGER ) AS col2, + 18 col1
----
-72
-32
18

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

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

query I rowsort
SELECT 46 * + - 95 col0
----
-4370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1263
SELECT 30 * - 12 / - - 81 / CAST( NULL AS SIGNED ) * + 26 - + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT 30 * - 12 / - - 81 / CAST ( NULL AS INTEGER ) * + 26 - + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT ALL - SUM( DISTINCT - 9 ) * - - 73 AS col0
----
657

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL - SUM ( DISTINCT - 9 ) * - - 73 AS col0
----
657

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT 46 * + NULLIF ( SUM( 28 ), + + 28 + + COALESCE ( - - 13, COUNT( * ) * - - 52, + - NULLIF ( - SUM( ALL + 86 ), 41 ) + + - 31 * + AVG ( DISTINCT 90 ) * COUNT( * ) + - COUNT( * ) ) )
----
1288

skipif mysql # not compatible
query I rowsort label-1267
SELECT 46 * + NULLIF ( SUM ( 28 ), + + 28 + + COALESCE ( - - 13, COUNT ( * ) * - - 52, + - NULLIF ( - SUM ( ALL + 86 ), 41 ) + + - 31 * + AVG ( DISTINCT 90 ) * COUNT ( * ) + - COUNT ( * ) ) )
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT ALL CASE MAX( - 36 ) WHEN - 45 THEN - 41 * + 44 ELSE NULL END * - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL CASE MAX ( - 36 ) WHEN - 45 THEN - 41 * + 44 ELSE NULL END * - + 82
----
NULL

query I rowsort
SELECT 32 - + 14
----
18

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

skipif mysql # not compatible
query I rowsort label-1270
SELECT - 59 * + - ( + COUNT ( * ) ) * 21 AS col0
----
1239

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1272
SELECT - CASE + + NULLIF ( + CAST( + MIN( ALL 36 ) AS SIGNED ), - + 36 + + COUNT( 41 ) ) WHEN COUNT( * ) * + - 60 THEN NULL ELSE 82 + - 26 + COUNT( * ) - - NULLIF ( + 92, 55 / 76 - + 87 ) * 49 END AS col2
----
-4565

skipif mysql # not compatible
query I rowsort label-1272
SELECT - CASE + + NULLIF ( + CAST ( + MIN ( ALL 36 ) AS INTEGER ), - + 36 + + COUNT ( 41 ) ) WHEN COUNT ( * ) * + - 60 THEN NULL ELSE 82 + - 26 + COUNT ( * ) - - NULLIF ( + 92, 55 / 76 - + 87 ) * 49 END AS col2
----
-4565

query I rowsort
SELECT - 17 + + 54
----
37

query I rowsort
SELECT ALL + - 85 * + 24
----
-2040

query I rowsort
SELECT + ( - 80 ) * + 87 col0
----
-6960

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

query I rowsort
SELECT DISTINCT + 76 * 42
----
3192

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT 12 * - - COUNT( * ) + - 98 * - COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-1280
SELECT 12 * - - COUNT ( * ) + - 98 * - COUNT ( * )
----
110

query II rowsort
SELECT - + 14, - 18 AS col2
----
-14
-18

query I rowsort
SELECT ALL - - 81 + + + 74
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-1283
SELECT - 89 DIV - 94 + - 59 * + + 74
----
-4366

skipif mysql # not compatible
query I rowsort label-1283
SELECT - 89 / - 94 + - 59 * + + 74
----
-4366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1284
SELECT ALL - 83 + MAX( ALL - - 11 ) + + + 32 + - - COALESCE ( + 75, - + CAST( NULL AS DECIMAL ) * - + 38, - COUNT( DISTINCT - 23 ) ) + - 51 * - COUNT( * ) + + 42 * - MAX( ALL 87 ) * - 6 + - CAST( NULL AS SIGNED ) * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL - 83 + MAX ( ALL - - 11 ) + + + 32 + - - COALESCE ( + 75, - + CAST ( NULL AS REAL ) * - + 38, - COUNT ( DISTINCT - 23 ) ) + - 51 * - COUNT ( * ) + + 42 * - MAX ( ALL 87 ) * - 6 + - CAST ( NULL AS INTEGER ) * - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT DISTINCT + CASE + 35 WHEN - 63 THEN + - MAX( ALL + - 36 ) WHEN - ( + 78 ) + + 76 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT + CASE + 35 WHEN - 63 THEN + - MAX ( ALL + - 36 ) WHEN - ( + 78 ) + + 76 THEN NULL END AS col1
----
NULL

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

query I rowsort
SELECT 89 * - 72 AS col0
----
-6408

query I rowsort
SELECT 96 + - + ( 77 ) + + - 47 + - 54
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL - 61 + + 55 * - + 21 + - - MAX( DISTINCT - 0 ) * 70 + ( - NULLIF ( - 73, - 75 ) )
----
-1143

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL - 61 + + 55 * - + 21 + - - MAX ( DISTINCT - 0 ) * 70 + ( - NULLIF ( - 73, - 75 ) )
----
-1143

query II rowsort
SELECT ALL + 6 + - 82 * - + CASE 86 WHEN 1 + 53 THEN - 65 * + - 80 + 70 + - 43 + 57 / + 91 ELSE NULL END AS col2, + 16 + - 62
----
NULL
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT 21 + 97 + 48 + - 57 * - - 99 * - CASE COUNT( * ) WHEN - - 8 THEN + + ( - COUNT( * ) ) + 70 + - COUNT( + - 60 ) + + COUNT( - ( 91 ) ) WHEN - ( 24 ) * 11 THEN - 61 ELSE 92 END * - 9
----
-4672238

skipif mysql # not compatible
query I rowsort label-1292
SELECT 21 + 97 + 48 + - 57 * - - 99 * - CASE COUNT ( * ) WHEN - - 8 THEN + + ( - COUNT ( * ) ) + 70 + - COUNT ( + - 60 ) + + COUNT ( - ( 91 ) ) WHEN - ( 24 ) * 11 THEN - 61 ELSE 92 END * - 9
----
-4672238

onlyif mysql # aggregate syntax: 
query II rowsort label-1293
SELECT ALL COALESCE ( 2, 15 ) * + COUNT( * ), 97 * + + COUNT( * ) AS col0
----
2
97

skipif mysql # not compatible
query II rowsort label-1293
SELECT ALL COALESCE ( 2, 15 ) * + COUNT ( * ), 97 * + + COUNT ( * ) AS col0
----
2
97

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

query I rowsort
SELECT - 63 * 69 + 93
----
-4254

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1296
SELECT 62 / + 54 + + - ( - CAST( NULL AS SIGNED ) ) - + + COALESCE ( + CAST( NULL AS DECIMAL ), - ( 93 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT 62 / + 54 + + - ( - CAST ( NULL AS INTEGER ) ) - + + COALESCE ( + CAST ( NULL AS REAL ), - ( 93 ) ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT MAX( DISTINCT - 17 ) * + 11 + - 6 col2
----
-193

skipif mysql # not compatible
query I rowsort label-1298
SELECT MAX ( DISTINCT - 17 ) * + 11 + - 6 col2
----
-193

onlyif mysql # aggregate syntax: 
query II rowsort label-1299
SELECT ALL - 81 AS col2, MIN( DISTINCT + 60 )
----
-81
60

skipif mysql # not compatible
query II rowsort label-1299
SELECT ALL - 81 AS col2, MIN ( DISTINCT + 60 )
----
-81
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1300
SELECT ALL 32 / CAST( NULL AS SIGNED ) * + - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL 32 / CAST ( NULL AS INTEGER ) * + - 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT - 65 * - 68 + + 5 * + COUNT( * ) AS col0
----
4425

skipif mysql # not compatible
query I rowsort label-1301
SELECT - 65 * - 68 + + 5 * + COUNT ( * ) AS col0
----
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1302
SELECT ALL CAST( NULL AS SIGNED ) / 78 + + - 96 * - 25 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL CAST ( NULL AS INTEGER ) / 78 + + - 96 * - 25 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1303
SELECT + COUNT( + 65 ) DIV + MAX( 75 )
----
0

skipif mysql # not compatible
query I rowsort label-1303
SELECT + COUNT ( + 65 ) / + MAX ( 75 )
----
0

query I rowsort
SELECT - 48 + + - 28 AS col2
----
-76

query II rowsort
SELECT + 40 AS col1, 13 + - 90
----
40
-77

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1307
SELECT ALL + 13 * + CAST( + 75 AS SIGNED )
----
975

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL + 13 * + CAST ( + 75 AS INTEGER )
----
975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1308
SELECT DISTINCT 80 + 76 + + CAST( NULL AS SIGNED ) + + 34 * + 81 * - ( ( - + 84 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT 80 + 76 + + CAST ( NULL AS INTEGER ) + + 34 * + 81 * - ( ( - + 84 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 22 + - 33
----
-55

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

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT + + COUNT ( * ) + - 89 / + 89
----
0

query I rowsort
SELECT ALL - 89 + + 35 + 46 * - - 97
----
4408

query I rowsort
SELECT DISTINCT 11 + - - 59 + - + 87 AS col2
----
-17

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

skipif mysql # not compatible
query I rowsort label-1313
SELECT + COUNT ( DISTINCT + 2 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 87 + + 66
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1315
SELECT ALL - COUNT( * ) + 62 + 50 * - COUNT( * ), CASE + - CAST( 43 AS SIGNED ) WHEN + COALESCE ( 92, - ( - 26 ), 13 + - 80 * - 41 * + COUNT( * ) / 70 ) * 95 THEN 29 + MIN( 23 + ( 87 + 37 ) ) END AS col0
----
11
NULL

skipif mysql # not compatible
query II rowsort label-1315
SELECT ALL - COUNT ( * ) + 62 + 50 * - COUNT ( * ), CASE + - CAST ( 43 AS INTEGER ) WHEN + COALESCE ( 92, - ( - 26 ), 13 + - 80 * - 41 * + COUNT ( * ) / 70 ) * 95 THEN 29 + MIN ( 23 + ( 87 + 37 ) ) END AS col0
----
11
NULL

query I rowsort
SELECT ALL + - 91 + - 49 AS col0
----
-140

query I rowsort
SELECT 6 * 85 * + 36
----
18360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1318
SELECT DISTINCT 96 + CASE + 61 WHEN - 74 * + 16 THEN NULL ELSE - - 0 DIV - 26 + - + MAX( ALL + 11 ) + 11 END + 74
----
170

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT 96 + CASE + 61 WHEN - 74 * + 16 THEN NULL ELSE - - 0 / - 26 + - + MAX ( ALL + 11 ) + 11 END + 74
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-1319
SELECT - 81 AS col2, ( + + MAX( DISTINCT 41 ) ) + + - 20
----
-81
21

skipif mysql # not compatible
query II rowsort label-1319
SELECT - 81 AS col2, ( + + MAX ( DISTINCT 41 ) ) + + - 20
----
-81
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT DISTINCT + COUNT( * ) + 35 col1
----
36

skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT + COUNT ( * ) + 35 col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT ALL + CASE + 98 WHEN + 25 * 74 * + COUNT( * ) - + - 93 * + - 38 THEN NULL WHEN - 92 * + 26 THEN NULL WHEN 3 * - 16 THEN - 67 ELSE NULL END + - + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL + CASE + 98 WHEN + 25 * 74 * + COUNT ( * ) - + - 93 * + - 38 THEN NULL WHEN - 92 * + 26 THEN NULL WHEN 3 * - 16 THEN - 67 ELSE NULL END + - + 89 AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 44, 51 ) col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT DISTINCT - 48 * ( - + SUM( DISTINCT - 14 ) ) AS col0
----
-672

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT - 48 * ( - + SUM ( DISTINCT - 14 ) ) AS col0
----
-672

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

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

query I rowsort
SELECT ALL CASE - - 72 WHEN - ( - 87 ) THEN + 96 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1326
SELECT - 5 * + COUNT( * ) * - 79 * - + 77 * - 28 AS col1, 51 + - - 88 + + - 61 + ( - 44 ) AS col2, - + 6 + + - CAST( - 76 AS SIGNED ) AS col1
----
851620
34
70

skipif mysql # not compatible
query III rowsort label-1326
SELECT - 5 * + COUNT ( * ) * - 79 * - + 77 * - 28 AS col1, 51 + - - 88 + + - 61 + ( - 44 ) AS col2, - + 6 + + - CAST ( - 76 AS INTEGER ) AS col1
----
851620
34
70

query I rowsort
SELECT + 10 * - 53 AS col1
----
-530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1328
SELECT ALL - 3 / + 79 * + - CASE 28 WHEN - - 13 THEN NULL WHEN + - 75 + 88 THEN + 89 WHEN CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL - 3 / + 79 * + - CASE 28 WHEN - - 13 THEN NULL WHEN + - 75 + 88 THEN + 89 WHEN CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1329
SELECT DISTINCT COUNT( ALL - - 86 ) DIV 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT COUNT ( ALL - - 86 ) / 93 AS col1
----
0

query I rowsort
SELECT DISTINCT + 66 * 33 - + 38 * - 83
----
5332

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

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

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

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

query II rowsort
SELECT - 80 * + - 36 col0, + 19
----
2880
19

query I rowsort
SELECT COALESCE ( - 60, + 59 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT + SUM( - 56 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-1335
SELECT + SUM ( - 56 ) AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT - 15 * + - 34 * + CASE + - 51 WHEN - + 87 - - 75 + + SUM( ALL - 91 ) + 65 * + 5 * + 89 * + - COUNT( * ) * + - MIN( 84 ) * - 94 + + NULLIF ( + 36, + 19 * + 84 - + 36 ) * 4 THEN NULL WHEN + 11 THEN NULL WHEN 98 - 50 * + 12 THEN 65 + CAST( + COUNT( * ) AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT - 15 * + - 34 * + CASE + - 51 WHEN - + 87 - - 75 + + SUM ( ALL - 91 ) + 65 * + 5 * + 89 * + - COUNT ( * ) * + - MIN ( 84 ) * - 94 + + NULLIF ( + 36, + 19 * + 84 - + 36 ) * 4 THEN NULL WHEN + 11 THEN NULL WHEN 98 - 50 * + 12 THEN 65 + CAST ( + COUNT ( * ) AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1337
SELECT + + 22 * - 7 * CAST( NULL AS DECIMAL ) + - - 96 + - 57 + - - 57 * + 46 * + 8 * + 52 / + 40 * + - COUNT( + 31 ) + - COUNT( * ) + - - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT + + 22 * - 7 * CAST ( NULL AS REAL ) + - - 96 + - 57 + - - 57 * + 46 * + 8 * + 52 / + 40 * + - COUNT ( + 31 ) + - COUNT ( * ) + - - 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT ALL ( 43 ) * - + COUNT( DISTINCT 81 ) + + 23 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL ( 43 ) * - + COUNT ( DISTINCT 81 ) + + 23 AS col0
----
-20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT ALL + - 13 * - 23 + + COUNT( - 5 ) AS col0
----
300

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL + - 13 * - 23 + + COUNT ( - 5 ) AS col0
----
300

query I rowsort
SELECT + - CASE + 88 WHEN 33 THEN - 47 END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 1 * 41 + 78
----
119

query I rowsort
SELECT ALL - 64 * 95 + 15
----
-6065

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT + - MIN( - 17 ) + + - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-1345
SELECT + - MIN ( - 17 ) + + - COUNT ( * )
----
16

query I rowsort
SELECT + + 77 + + 99 AS col0
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT - CASE + 87 WHEN - 57 THEN + CAST( NULL AS SIGNED ) ELSE + 68 END * + + NULLIF ( + 54, + 66 / - 14 ) AS col2
----
-3672

skipif mysql # not compatible
query I rowsort label-1347
SELECT - CASE + 87 WHEN - 57 THEN + CAST ( NULL AS INTEGER ) ELSE + 68 END * + + NULLIF ( + 54, + 66 / - 14 ) AS col2
----
-3672

query I rowsort
SELECT ALL 41 * - 32 - - - ( + 47 ) col2
----
-1359

onlyif mysql # aggregate syntax: 
query II rowsort label-1349
SELECT - SUM( - 66 ), 87 + - 34 AS col0
----
66
53

skipif mysql # not compatible
query II rowsort label-1349
SELECT - SUM ( - 66 ), 87 + - 34 AS col0
----
66
53

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1350
SELECT DISTINCT 80 + + - 57 - - + 96 + 68 + + 24 * + CAST( NULL AS DECIMAL ) + - 42, CAST( + ( + NULLIF ( ( - 31 ), - 32 + CAST( NULL AS SIGNED ) / + 53 ) ) AS SIGNED ) AS col1
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-1350
SELECT DISTINCT 80 + + - 57 - - + 96 + 68 + + 24 * + CAST ( NULL AS REAL ) + - 42, CAST ( + ( + NULLIF ( ( - 31 ), - 32 + CAST ( NULL AS INTEGER ) / + 53 ) ) AS INTEGER ) AS col1
----
NULL
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1351
SELECT + 68 * - 27 + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1351
SELECT + 68 * - 27 + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 64 * + - 28 + - 4 * - + 42 - + 30
----
-1654

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT ALL + 5 * 68 + - 33 * ( + MAX( - + 80 ) ) + ( - + 36 ) + + 98 * 0 + + COALESCE ( - 10, + 10 ) AS col0
----
2934

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL + 5 * 68 + - 33 * ( + MAX ( - + 80 ) ) + ( - + 36 ) + + 98 * 0 + + COALESCE ( - 10, + 10 ) AS col0
----
2934

query II rowsort
SELECT - 11, 5 AS col0
----
-11
5

query I rowsort
SELECT DISTINCT 88 - - 37 * 46 col2
----
1790

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1356
SELECT ALL 23 - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL 23 - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + 46 + - 80
----
-34

query I rowsort
SELECT DISTINCT COALESCE ( - + 56, - + 54 ) AS col0
----
-56

query I rowsort
SELECT + 22 + - 32
----
-10

query I rowsort
SELECT - 99 + - 85 AS col1
----
-184

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1361
SELECT ALL - 99 * - ( 52 ) * + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL - 99 * - ( 52 ) * + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1362
SELECT DISTINCT 22 DIV - ( + COUNT( * ) ) AS col1, - 24 AS col0
----
-22
-24

skipif mysql # not compatible
query II rowsort label-1362
SELECT DISTINCT 22 / - ( + COUNT ( * ) ) AS col1, - 24 AS col0
----
-22
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1363
SELECT ALL SUM( DISTINCT - CAST( - - 41 AS SIGNED ) ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL SUM ( DISTINCT - CAST ( - - 41 AS INTEGER ) ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT - COUNT( DISTINCT 58 ) + 54 * 47 + + - 92 AS col2
----
2445

skipif mysql # not compatible
query I rowsort label-1364
SELECT - COUNT ( DISTINCT 58 ) + 54 * 47 + + - 92 AS col2
----
2445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1365
SELECT - 51 DIV + SUM( ALL - 18 )
----
2

skipif mysql # not compatible
query I rowsort label-1365
SELECT - 51 / + SUM ( ALL - 18 )
----
2

query I rowsort
SELECT + 63 * + + 36 AS col2
----
2268

query I rowsort
SELECT ALL - ( + 23 ) * 89 * + 55 col1
----
-112585

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT - ( + COUNT( ALL + 70 ) ) + - 54 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1368
SELECT - ( + COUNT ( ALL + 70 ) ) + - 54 AS col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT - 15 DIV 7 * + 47 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1369
SELECT - 15 / 7 * + 47 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-1370
SELECT DISTINCT + NULLIF ( + - 65, + MIN( DISTINCT + + 82 ) ) AS col1, - MIN( ALL 35 ) AS col1
----
-65
-35

skipif mysql # not compatible
query II rowsort label-1370
SELECT DISTINCT + NULLIF ( + - 65, + MIN ( DISTINCT + + 82 ) ) AS col1, - MIN ( ALL 35 ) AS col1
----
-65
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-1371
SELECT ALL 16 DIV - + 94 + - - NULLIF ( - 26, - + 16 ) DIV + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL 16 / - + 94 + - - NULLIF ( - 26, - + 16 ) / + 74 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1372
SELECT - 69 + + CAST( 99 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-1372
SELECT - 69 + + CAST ( 99 AS INTEGER )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1373
SELECT ALL - 46 / + 37 + CAST( NULL AS SIGNED ) * + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - 46 / + 37 + CAST ( NULL AS INTEGER ) * + 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1374
SELECT DISTINCT + + 62 DIV + MIN( DISTINCT - + 8 ), COUNT( * ) * + 74 DIV - 48 AS col2
----
-7
-1

skipif mysql # not compatible
query II rowsort label-1374
SELECT DISTINCT + + 62 / + MIN ( DISTINCT - + 8 ), COUNT ( * ) * + 74 / - 48 AS col2
----
-7
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1375
SELECT ALL COUNT( ALL - 83 ) DIV + 38 * - COUNT( * ) * - COUNT( ( - 60 ) ) + MIN( DISTINCT - 70 ) + + 4 DIV - - 60 - + - 92
----
22

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL COUNT ( ALL - 83 ) / + 38 * - COUNT ( * ) * - COUNT ( ( - 60 ) ) + MIN ( DISTINCT - 70 ) + + 4 / - - 60 - + - 92
----
22

query I rowsort
SELECT 42 * + - 79 + + 29
----
-3289

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT DISTINCT NULLIF ( - 17, + 49 ) * 78 DIV + 90 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT NULLIF ( - 17, + 49 ) * 78 / + 90 AS col2
----
-14

query I rowsort
SELECT + - 92 + - + 7 AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1379
SELECT ALL 99 * + 30 + - + CAST( - - 91 AS SIGNED )
----
2879

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL 99 * + 30 + - + CAST ( - - 91 AS INTEGER )
----
2879

query II rowsort
SELECT DISTINCT + NULLIF ( 77, 72 ), + 22 + 27 col1
----
77
49

query I rowsort
SELECT DISTINCT COALESCE ( + 55, 99 ) * + + 25
----
1375

query I rowsort
SELECT ALL 7 * - ( 85 ) + + 45 * ( 63 ) * 4 + - 84 + - 15 * - 57 AS col0
----
11516

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT MIN( - - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-1384
SELECT MIN ( - - 29 )
----
29

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

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

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

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

query I rowsort
SELECT - - 69 col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1388
SELECT ALL NULLIF ( - MIN( DISTINCT + + 92 ), COUNT( * ) * + + 84 ) - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL NULLIF ( - MIN ( DISTINCT + + 92 ), COUNT ( * ) * + + 84 ) - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 14 - 43
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT DISTINCT ( + + ( ( + 25 ) ) ) * + MIN( - + 64 )
----
-1600

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT ( + + ( ( + 25 ) ) ) * + MIN ( - + 64 )
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT COALESCE ( - + NULLIF ( - COUNT( - 41 ), - 73 ), - + 1, 84 ) - 78 col0
----
-77

skipif mysql # not compatible
query I rowsort label-1391
SELECT COALESCE ( - + NULLIF ( - COUNT ( - 41 ), - 73 ), - + 1, 84 ) - 78 col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1392
SELECT ALL CASE + ( 94 ) WHEN + - 23 + + 84 - COUNT( - + 60 ) + + COUNT( * ) + - - CAST( NULL AS SIGNED ) + + - 93 * - CAST( NULL AS SIGNED ) - + 90 * - - SUM( + 62 ) * 51 * 20 THEN - 48 END / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL CASE + ( 94 ) WHEN + - 23 + + 84 - COUNT ( - + 60 ) + + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + - 93 * - CAST ( NULL AS INTEGER ) - + 90 * - - SUM ( + 62 ) * 51 * 20 THEN - 48 END / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1393
SELECT COALESCE ( + 15, - - 14 DIV - - NULLIF ( + 80, + COUNT( * ) DIV - - 35 ) ) * + - 32
----
-480

skipif mysql # not compatible
query I rowsort label-1393
SELECT COALESCE ( + 15, - - 14 / - - NULLIF ( + 80, + COUNT ( * ) / - - 35 ) ) * + - 32
----
-480

query I rowsort
SELECT 40 * + - 53 AS col0
----
-2120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1395
SELECT DISTINCT ( 69 ) * AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2, NULLIF ( + 73, + MIN( DISTINCT - 1 ) ) * 86
----
NULL
6278

skipif mysql # not compatible
query II rowsort label-1395
SELECT DISTINCT ( 69 ) * AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, NULLIF ( + 73, + MIN ( DISTINCT - 1 ) ) * 86
----
NULL
6278

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

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) AS col1
----
2

query I rowsort
SELECT 30 * 0
----
0

query I rowsort
SELECT 65 * + 31 AS col1
----
2015

query I rowsort
SELECT ALL 27 + - 0 AS col2
----
27

query I rowsort
SELECT 81 + - + 1
----
80

query II rowsort
SELECT ALL + 77 + + 58 AS col0, 71 * 60
----
135
4260

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

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL + 68 * + COUNT ( * ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT ALL - 51 + MAX( + - 54 ) * - 63
----
3351

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL - 51 + MAX ( + - 54 ) * - 63
----
3351

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1404
SELECT ALL + 93 * + COALESCE ( 32, - 90 - CAST( NULL AS SIGNED ) DIV - 49 )
----
2976

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL + 93 * + COALESCE ( 32, - 90 - CAST ( NULL AS INTEGER ) / - 49 )
----
2976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1405
SELECT 1 DIV + 84 + + 22 + + COUNT( * ) * + 6 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1405
SELECT 1 / + 84 + + 22 + + COUNT ( * ) * + 6 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL - - ( + 47 ) + + 35 * - + COUNT( + 8 ) * + - 8 * + + 89 AS col1
----
24967

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL - - ( + 47 ) + + 35 * - + COUNT ( + 8 ) * + - 8 * + + 89 AS col1
----
24967

query I rowsort
SELECT ALL + + 84 * - 10
----
-840

query I rowsort
SELECT 35 * - 61 * + 50 + + 78 * + 42 * + + 70 + 99
----
122669

query I rowsort
SELECT + 26 * + CASE - + 60 WHEN + - 79 THEN NULL WHEN + - 57 THEN - - NULLIF ( 71, 1 ) * 13 - - ( - - 82 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT SUM( 62 ) - - 89 - + - 78 * + 78 AS col2
----
6235

skipif mysql # not compatible
query I rowsort label-1410
SELECT SUM ( 62 ) - - 89 - + - 78 * + 78 AS col2
----
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT + MIN( ALL 12 ) * - 41 + - 7
----
-499

skipif mysql # not compatible
query I rowsort label-1411
SELECT + MIN ( ALL 12 ) * - 41 + - 7
----
-499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1412
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / + CAST( 4 AS SIGNED ) * - COUNT( 64 ) - 15 * 12 + - COUNT( * ) + + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / + CAST ( 4 AS INTEGER ) * - COUNT ( 64 ) - 15 * 12 + - COUNT ( * ) + + 76 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT ALL - + 71 - MAX( ALL - - 35 )
----
-106

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL - + 71 - MAX ( ALL - - 35 )
----
-106

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

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

query I rowsort
SELECT - 59 * + - 13
----
767

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1417
SELECT - 33 - - 9 + - + 63 + + 55 / - 8 * - + 61 / - - 39 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT - 33 - - 9 + - + 63 + + 55 / - 8 * - + 61 / - - 39 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT 83 * - + SUM( + + 44 ) + 56 AS col0
----
-3596

skipif mysql # not compatible
query I rowsort label-1418
SELECT 83 * - + SUM ( + + 44 ) + 56 AS col0
----
-3596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1419
SELECT - 0 * - + COALESCE ( 39, + + 11 ) DIV + 41 + - + MAX( - 77 ) + 14 DIV 78 + 99
----
176

skipif mysql # not compatible
query I rowsort label-1419
SELECT - 0 * - + COALESCE ( 39, + + 11 ) / + 41 + - + MAX ( - 77 ) + 14 / 78 + 99
----
176

query I rowsort
SELECT DISTINCT + ( - 36 ) * 79 AS col0
----
-2844

query I rowsort
SELECT ALL + 16 * 54 AS col1
----
864

query I rowsort
SELECT 14 + + 11
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT 21 * COUNT( 64 )
----
21

skipif mysql # not compatible
query I rowsort label-1423
SELECT 21 * COUNT ( 64 )
----
21

query I rowsort
SELECT 24 + + - 89
----
-65

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1426
SELECT ALL 71, - 52 + - - COUNT( * ) AS col1
----
71
-51

skipif mysql # not compatible
query II rowsort label-1426
SELECT ALL 71, - 52 + - - COUNT ( * ) AS col1
----
71
-51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1428
SELECT 20 + + COALESCE ( - 42, COUNT( ALL - - CAST( NULL AS DECIMAL ) ) + - NULLIF ( MAX( + + CAST( NULL AS SIGNED ) ), - 26 ) + + COUNT( - 14 ) * + 35 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1428
SELECT 20 + + COALESCE ( - 42, COUNT ( ALL - - CAST ( NULL AS REAL ) ) + - NULLIF ( MAX ( + + CAST ( NULL AS INTEGER ) ), - 26 ) + + COUNT ( - 14 ) * + 35 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT ( - 12 ) * - - 84 + NULLIF ( + 34, COUNT( * ) * - 56 - - 2 + 98 )
----
-974

skipif mysql # not compatible
query I rowsort label-1429
SELECT ( - 12 ) * - - 84 + NULLIF ( + 34, COUNT ( * ) * - 56 - - 2 + 98 )
----
-974

onlyif mysql # DIV for integer division: 
query I rowsort label-1430
SELECT DISTINCT 69 DIV + + 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT 69 / + + 53 AS col0
----
1

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

query II rowsort
SELECT 45 + + - ( 99 ) AS col2, - 27
----
-54
-27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1433
SELECT ALL + CAST( + 12 AS SIGNED ) DIV - - 57, + 12 + - 23 AS col0
----
0
-11

skipif mysql # not compatible
query II rowsort label-1433
SELECT ALL + CAST ( + 12 AS INTEGER ) / - - 57, + 12 + - 23 AS col0
----
0
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1434
SELECT ( CASE - CASE + CAST( - 60 AS SIGNED ) WHEN - + 57 THEN NULL WHEN + 35 THEN NULL ELSE + COALESCE ( + 60, - 37, - CASE 68 WHEN 41 DIV COUNT( * ) THEN NULL WHEN COUNT( * ) DIV + 49 THEN - 67 WHEN MAX( DISTINCT + 5 ) THEN - + COUNT( - COALESCE ( 23, - 33 DIV - 9 + - 28 ) ) + + 19 * - 82 END ) END WHEN NULLIF ( - 32, - ( 23 ) ) * - 92 - - CAST( NULLIF ( - COUNT( * ), 53 ) AS SIGNED ) * 68 THEN - NULLIF ( 63, - 18 ) * + ( 49 ) WHEN 99 THEN 91 ELSE 25 DIV 38 END ) + 22 * 19
----
418

skipif mysql # not compatible
query I rowsort label-1434
SELECT ( CASE - CASE + CAST ( - 60 AS INTEGER ) WHEN - + 57 THEN NULL WHEN + 35 THEN NULL ELSE + COALESCE ( + 60, - 37, - CASE 68 WHEN 41 / COUNT ( * ) THEN NULL WHEN COUNT ( * ) / + 49 THEN - 67 WHEN MAX ( DISTINCT + 5 ) THEN - + COUNT ( - COALESCE ( 23, - 33 / - 9 + - 28 ) ) + + 19 * - 82 END ) END WHEN NULLIF ( - 32, - ( 23 ) ) * - 92 - - CAST ( NULLIF ( - COUNT ( * ), 53 ) AS INTEGER ) * 68 THEN - NULLIF ( 63, - 18 ) * + ( 49 ) WHEN 99 THEN 91 ELSE 25 / 38 END ) + 22 * 19
----
418

onlyif mysql # DIV for integer division: 
query I rowsort label-1435
SELECT DISTINCT 21 + 5 - - 92 DIV 48 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT 21 + 5 - - 92 / 48 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1436
SELECT ALL 91 + + NULLIF ( + CASE SUM( - 72 ) WHEN - + ( - ( + - 88 ) ) + 21 * + COUNT( * ) * + - CAST( NULL AS DECIMAL ) THEN NULL WHEN - COUNT( * ) THEN ( - COUNT( * ) ) + - + COUNT( * ) ELSE NULL END, - CAST( 42 AS SIGNED ) * + ( + ( - 67 ) ) + 81 * 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL 91 + + NULLIF ( + CASE SUM ( - 72 ) WHEN - + ( - ( + - 88 ) ) + 21 * + COUNT ( * ) * + - CAST ( NULL AS REAL ) THEN NULL WHEN - COUNT ( * ) THEN ( - COUNT ( * ) ) + - + COUNT ( * ) ELSE NULL END, - CAST ( 42 AS INTEGER ) * + ( + ( - 67 ) ) + 81 * 69 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1437
SELECT ALL COUNT( * ) + - CASE + 53 WHEN - 89 * - + SUM( ALL - 7 ) / + AVG ( + 93 ) - + CASE + 87 WHEN - 76 THEN NULL ELSE - CASE - AVG ( DISTINCT 50 ) WHEN - 5 THEN - 21 - + 79 * - - CAST( NULL AS SIGNED ) ELSE NULL END + + 9 * + 78 * - CASE 9 * 6 WHEN - 93 * + 56 + COUNT( 82 ) / 46 THEN NULL WHEN - ( + 3 ) - - ( 54 ) THEN COALESCE ( + CAST( COUNT( * ) AS SIGNED ), 81 + ( - 67 ) * + 62 ) * + 56 + - 8 ELSE NULL END END THEN NULL WHEN - ( - ( - NULLIF ( 55, COALESCE ( 5, COUNT( * ) * - 56 ) * 62 ) ) ) / COUNT( * ) THEN 98 + + NULLIF ( + 21, 24 / 74 ) ELSE + 32 - 21 END AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL COUNT ( * ) + - CASE + 53 WHEN - 89 * - + SUM ( ALL - 7 ) / + AVG ( + 93 ) - + CASE + 87 WHEN - 76 THEN NULL ELSE - CASE - AVG ( DISTINCT 50 ) WHEN - 5 THEN - 21 - + 79 * - - CAST ( NULL AS INTEGER ) ELSE NULL END + + 9 * + 78 * - CASE 9 * 6 WHEN - 93 * + 56 + COUNT ( 82 ) / 46 THEN NULL WHEN - ( + 3 ) - - ( 54 ) THEN COALESCE ( + CAST ( COUNT ( * ) AS INTEGER ), 81 + ( - 67 ) * + 62 ) * + 56 + - 8 ELSE NULL END END THEN NULL WHEN - ( - ( - NULLIF ( 55, COALESCE ( 5, COUNT ( * ) * - 56 ) * 62 ) ) ) / COUNT ( * ) THEN 98 + + NULLIF ( + 21, 24 / 74 ) ELSE + 32 - 21 END AS col1
----
-10

query I rowsort
SELECT - 74 + - 50 AS col1
----
-124

query II rowsort
SELECT DISTINCT - 68, 76 * + + 48 + - - 15 AS col1
----
-68
3663

query I rowsort
SELECT ALL - 20 + + - 81 AS col0
----
-101

query I rowsort
SELECT 16 + + 80
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1442
SELECT ALL - 6 AS col2, ( + CAST( NULL AS DECIMAL ) ) * - + 62 - + - 79 + 71 + + NULLIF ( - 24, - 3 * - 92 ) + - ( 15 )
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-1442
SELECT ALL - 6 AS col2, ( + CAST ( NULL AS REAL ) ) * - + 62 - + - 79 + 71 + + NULLIF ( - 24, - 3 * - 92 ) + - ( 15 )
----
-6
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1443
SELECT ALL + - CAST( NULL AS SIGNED ), - 78 + 4 + - + 8 AS col2
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-1443
SELECT ALL + - CAST ( NULL AS INTEGER ), - 78 + 4 + - + 8 AS col2
----
NULL
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1444
SELECT - 5, CAST( 45 AS SIGNED ) col2
----
-5
45

skipif mysql # not compatible
query II rowsort label-1444
SELECT - 5, CAST ( 45 AS INTEGER ) col2
----
-5
45

query I rowsort
SELECT DISTINCT + + 7 * 24 AS col2
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1446
SELECT DISTINCT - COUNT( - + 24 ) * - 5 * 69 DIV 97 - + 83 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT - COUNT ( - + 24 ) * - 5 * 69 / 97 - + 83 AS col0
----
-80

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

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

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

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

query I rowsort
SELECT - + 32 * 8 * + 11 * - 17
----
47872

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

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

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

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

query I rowsort
SELECT - 99 * - 6 col2
----
594

query II rowsort
SELECT ALL + 69 col2, 23
----
69
23

query I rowsort
SELECT ALL - 40 + + 66 col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1455
SELECT ALL + 85 + + + 46 + + CASE - - 93 WHEN + 50 - - 19 + + - 67 + - 5 * + - 65 THEN + - COUNT( * ) WHEN + - COALESCE ( + + 54, CAST( NULL AS DECIMAL ) ) + - 18 THEN NULL ELSE + 2 END
----
133

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL + 85 + + + 46 + + CASE - - 93 WHEN + 50 - - 19 + + - 67 + - 5 * + - 65 THEN + - COUNT ( * ) WHEN + - COALESCE ( + + 54, CAST ( NULL AS REAL ) ) + - 18 THEN NULL ELSE + 2 END
----
133

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

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

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

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

query I rowsort
SELECT - 28 * - 51 * + + 78 AS col2
----
111384

onlyif mysql # aggregate syntax: 
query II rowsort label-1459
SELECT ALL - 40 + - + 50 + - COUNT( * ) - + - COALESCE ( + 83, + 60 ) * + 25, - COUNT( * ) AS col0
----
1984
-1

skipif mysql # not compatible
query II rowsort label-1459
SELECT ALL - 40 + - + 50 + - COUNT ( * ) - + - COALESCE ( + 83, + 60 ) * + 25, - COUNT ( * ) AS col0
----
1984
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1460
SELECT ALL + 77 + - 80 + 43 * - 91 DIV - COUNT( * ) - 8 AS col2, - COUNT( * ) AS col2, 61 + 72
----
3902
-1
133

skipif mysql # not compatible
query III rowsort label-1460
SELECT ALL + 77 + - 80 + 43 * - 91 / - COUNT ( * ) - 8 AS col2, - COUNT ( * ) AS col2, 61 + 72
----
3902
-1
133

onlyif mysql # aggregate syntax: 
query II rowsort label-1461
SELECT - COUNT( * ) * + 58 AS col1, 19 * 99 AS col2
----
-58
1881

skipif mysql # not compatible
query II rowsort label-1461
SELECT - COUNT ( * ) * + 58 AS col1, 19 * 99 AS col2
----
-58
1881

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT - 92 - + COUNT( * ) * ( - + 42 ) * + 68 AS col2
----
2764

skipif mysql # not compatible
query I rowsort label-1462
SELECT - 92 - + COUNT ( * ) * ( - + 42 ) * + 68 AS col2
----
2764

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1464
SELECT DISTINCT - 23 + - + 65 * - - ( - 8 ) * 66 DIV - + ( - COUNT( * ) )
----
34297

skipif mysql # not compatible
query I rowsort label-1464
SELECT DISTINCT - 23 + - + 65 * - - ( - 8 ) * 66 / - + ( - COUNT ( * ) )
----
34297

query I rowsort
SELECT DISTINCT 32 + 9 + - 79 + - 43 col1
----
-81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1468
SELECT - 4 AS col1, - MIN( ALL - - CAST( 19 AS SIGNED ) ) + + COUNT( * ) + + COUNT( * ) AS col1
----
-4
-17

skipif mysql # not compatible
query II rowsort label-1468
SELECT - 4 AS col1, - MIN ( ALL - - CAST ( 19 AS INTEGER ) ) + + COUNT ( * ) + + COUNT ( * ) AS col1
----
-4
-17

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

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

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

query III rowsort
SELECT - - 68 - 87 + - 6 + - 20 * - + ( 45 ) AS col2, - 43 + + - 78 * 93, - 42 AS col2
----
875
-7297
-42

query I rowsort
SELECT - - 10 * 30
----
300

onlyif mysql # aggregate syntax: 
query II rowsort label-1473
SELECT ALL + CASE + 9 WHEN + 59 THEN + + COUNT( * ) * - - 7 * 0 END * - ( CASE - + 13 WHEN - + 16 THEN NULL ELSE - - 2 * - 57 END ) + + 97 - COUNT( * ) AS col0, - ( + + 95 ) - 63 AS col0
----
NULL
-158

skipif mysql # not compatible
query II rowsort label-1473
SELECT ALL + CASE + 9 WHEN + 59 THEN + + COUNT ( * ) * - - 7 * 0 END * - ( CASE - + 13 WHEN - + 16 THEN NULL ELSE - - 2 * - 57 END ) + + 97 - COUNT ( * ) AS col0, - ( + + 95 ) - 63 AS col0
----
NULL
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1474
SELECT DISTINCT 78 * + - CASE + 17 WHEN + CAST( + 31 AS SIGNED ) * - + 81 - + 56 THEN NULL WHEN 2 THEN + 77 + - 95 + 41 * 48 - 5 END + + NULLIF ( - MAX( DISTINCT + 21 ), - 48 - - COUNT( * ) ) * - 66 + + 76 * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT 78 * + - CASE + 17 WHEN + CAST ( + 31 AS INTEGER ) * - + 81 - + 56 THEN NULL WHEN 2 THEN + 77 + - 95 + 41 * 48 - 5 END + + NULLIF ( - MAX ( DISTINCT + 21 ), - 48 - - COUNT ( * ) ) * - 66 + + 76 * - 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1475
SELECT ALL 91 * 57 * + 44 + - - 60 * - - COALESCE ( + 54, - ( COUNT( * ) ) * 90 + - COUNT( * ) + - 63 + + COALESCE ( - ( - 84 ), 18 + - 13 DIV - 4 + + - CAST( + 47 AS SIGNED ) ) + + COUNT( * ) + + COALESCE ( 25, COUNT( * ) ) )
----
231468

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL 91 * 57 * + 44 + - - 60 * - - COALESCE ( + 54, - ( COUNT ( * ) ) * 90 + - COUNT ( * ) + - 63 + + COALESCE ( - ( - 84 ), 18 + - 13 / - 4 + + - CAST ( + 47 AS INTEGER ) ) + + COUNT ( * ) + + COALESCE ( 25, COUNT ( * ) ) )
----
231468

query I rowsort
SELECT + 65 * 38
----
2470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1477
SELECT DISTINCT - MAX( ALL - + 80 ) DIV 35 - 57
----
-55

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT - MAX ( ALL - + 80 ) / 35 - 57
----
-55

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

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

query I rowsort
SELECT ALL + 47 * - + 91 col1
----
-4277

query I rowsort
SELECT + + 9 + + ( 98 ) AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT + SUM( + 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1481
SELECT + SUM ( + 28 ) AS col1
----
28

query I rowsort
SELECT + 24 * + + 86
----
2064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1483
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + MIN( - + COALESCE ( - 78, + ( - 51 ) + + 28 * + 77 ) ) * MAX( + + CAST( NULL AS SIGNED ) ) + - + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + MIN ( - + COALESCE ( - 78, + ( - 51 ) + + 28 * + 77 ) ) * MAX ( + + CAST ( NULL AS INTEGER ) ) + - + 52
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1484
SELECT ALL 21 * ( - - ( 11 ) ) col0, - COUNT( * )
----
231
-1

skipif mysql # not compatible
query II rowsort label-1484
SELECT ALL 21 * ( - - ( 11 ) ) col0, - COUNT ( * )
----
231
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1485
SELECT + 0 * - ( - 12 ) DIV - COUNT( DISTINCT - NULLIF ( + 78, - 93 ) ) * 75 col2
----
0

skipif mysql # not compatible
query I rowsort label-1485
SELECT + 0 * - ( - 12 ) / - COUNT ( DISTINCT - NULLIF ( + 78, - 93 ) ) * 75 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1486
SELECT DISTINCT 76 * - 41 * 26 * - COALESCE ( + 12, 99 ) + - 44 col2, COUNT( * ) * - - 40 + - - 38
----
972148
78

skipif mysql # not compatible
query II rowsort label-1486
SELECT DISTINCT 76 * - 41 * 26 * - COALESCE ( + 12, 99 ) + - 44 col2, COUNT ( * ) * - - 40 + - - 38
----
972148
78

query I rowsort
SELECT ALL 45 * 8 + 34 AS col1
----
394

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT + 52 - - COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1488
SELECT + 52 - - COUNT ( * ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT ALL 58 * + COUNT( * ) * 65
----
3770

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL 58 * + COUNT ( * ) * 65
----
3770

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT - 51 * + 53 + 96 DIV + 86
----
-2702

skipif mysql # not compatible
query I rowsort label-1490
SELECT - 51 * + 53 + 96 / + 86
----
-2702

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT - COUNT( * ) + - COUNT( * ) * - 69 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1491
SELECT - COUNT ( * ) + - COUNT ( * ) * - 69 AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1492
SELECT + ( - 55 ) col0, 47 * - CAST( + - 6 AS SIGNED )
----
-55
282

skipif mysql # not compatible
query II rowsort label-1492
SELECT + ( - 55 ) col0, 47 * - CAST ( + - 6 AS INTEGER )
----
-55
282

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT COALESCE ( - - 85, + COALESCE ( - 31, 48 - - - 49, 55 ) * 26 + 4 - 61 + - + 77 DIV + 66, + - 14 * - 11 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1493
SELECT COALESCE ( - - 85, + COALESCE ( - 31, 48 - - - 49, 55 ) * 26 + 4 - 61 + - + 77 / + 66, + - 14 * - 11 ) AS col0
----
85

query I rowsort
SELECT ALL 13 * ( - 70 ) + + 31 + 58 AS col1
----
-821

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1496
SELECT ALL - 18 DIV 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL - 18 / 77 AS col2
----
0

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - 11, - - 98 * - 91 ) AS col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1499
SELECT - CAST( - - 1 AS SIGNED ) * + 15 + - 8 DIV + 76 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1499
SELECT - CAST ( - - 1 AS INTEGER ) * + 15 + - 8 / + 76 AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-1500
SELECT ALL - 19 DIV + 95 * + + 40
----
0

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL - 19 / + 95 * + + 40
----
0

query I rowsort
SELECT - 15 + - + 41 * - 71 - - 88 AS col1
----
2984

onlyif mysql # aggregate syntax: 
query II rowsort label-1502
SELECT - COUNT( * ) + 20 AS col0, - 41 * + 13
----
19
-533

skipif mysql # not compatible
query II rowsort label-1502
SELECT - COUNT ( * ) + 20 AS col0, - 41 * + 13
----
19
-533

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT - CASE 91 WHEN 63 - 86 THEN NULL ELSE + 35 * + 8 + + SUM( 41 ) + - ( - + SUM( ALL + + 15 ) ) + 84 END AS col2
----
-420

skipif mysql # not compatible
query I rowsort label-1503
SELECT - CASE 91 WHEN 63 - 86 THEN NULL ELSE + 35 * + 8 + + SUM ( 41 ) + - ( - + SUM ( ALL + + 15 ) ) + 84 END AS col2
----
-420

onlyif mysql # aggregate syntax: 
query II rowsort label-1504
SELECT - COUNT( * ) + + 38 AS col0, + 44 + 11 + + 60 AS col0
----
37
115

skipif mysql # not compatible
query II rowsort label-1504
SELECT - COUNT ( * ) + + 38 AS col0, + 44 + 11 + + 60 AS col0
----
37
115

query I rowsort
SELECT + 27 * + + 58 * + 63 + - - 54 * 56 AS col2
----
101682

query I rowsort
SELECT 79 + + 83 * + 13
----
1158

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

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

query I rowsort
SELECT 56 + 41 * - + 83 AS col0
----
-3347

query I rowsort
SELECT + 86 + + 24 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT COALESCE ( + COUNT( DISTINCT - 53 ), 8 ) * + COUNT( DISTINCT - 0 ) + - 45 + - 20 - 57 * - 13 + COUNT( * )
----
678

skipif mysql # not compatible
query I rowsort label-1510
SELECT COALESCE ( + COUNT ( DISTINCT - 53 ), 8 ) * + COUNT ( DISTINCT - 0 ) + - 45 + - 20 - 57 * - 13 + COUNT ( * )
----
678

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1511
SELECT CAST( - - 23 AS SIGNED ) col1, 32
----
23
32

skipif mysql # not compatible
query II rowsort label-1511
SELECT CAST ( - - 23 AS INTEGER ) col1, 32
----
23
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1512
SELECT DISTINCT + CASE 73 WHEN + 69 + 54 / + ( + 33 ) - - + CAST( + - COALESCE ( + 45, 4 ) AS SIGNED ) THEN NULL ELSE - + 13 * 87 END * + 34 AS col0
----
-38454

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT + CASE 73 WHEN + 69 + 54 / + ( + 33 ) - - + CAST ( + - COALESCE ( + 45, 4 ) AS INTEGER ) THEN NULL ELSE - + 13 * 87 END * + 34 AS col0
----
-38454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1513
SELECT ALL 96 + - CASE + COUNT( * ) WHEN - 24 THEN + 20 WHEN + CAST( - + 91 AS DECIMAL ) THEN - - 52 WHEN 56 * ( 73 ) - - 72 THEN NULL WHEN COUNT( * ) THEN NULL ELSE NULL END + + 11 / CAST( 53 AS SIGNED ) / + - 76 * - ( - 44 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL 96 + - CASE + COUNT ( * ) WHEN - 24 THEN + 20 WHEN + CAST ( - + 91 AS REAL ) THEN - - 52 WHEN 56 * ( 73 ) - - 72 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE NULL END + + 11 / CAST ( 53 AS INTEGER ) / + - 76 * - ( - 44 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1514
SELECT ALL 10 * 61 DIV + NULLIF ( NULLIF ( + + 30, 76 ), + - ( + - 73 ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL 10 * 61 / + NULLIF ( NULLIF ( + + 30, 76 ), + - ( + - 73 ) ) AS col2
----
20

query I rowsort
SELECT ALL - 86 + 69 * + 18 + - - 92 - 10
----
1238

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

skipif mysql # not compatible
query I rowsort label-1516
SELECT MAX ( - + ( - 23 ) )
----
23

query I rowsort
SELECT 14 * 63 AS col0
----
882

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

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

query I rowsort
SELECT DISTINCT 17 * + 39 col0
----
663

query I rowsort
SELECT 23 * 55 AS col1
----
1265

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1522
SELECT 49 * - - 63 * - 3 AS col0, + 76 + - COALESCE ( + + 16, 48 + 27 ) + + - 79 * + 15 - - MAX( + 10 ) * - SUM( ALL - 44 ) + + + 66 AS col2
----
-9261
-619

skipif mysql # not compatible
query II rowsort label-1522
SELECT 49 * - - 63 * - 3 AS col0, + 76 + - COALESCE ( + + 16, 48 + 27 ) + + - 79 * + 15 - - MAX ( + 10 ) * - SUM ( ALL - 44 ) + + + 66 AS col2
----
-9261
-619

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT 13 * + 74 * - MIN( 56 ) + 0
----
-53872

skipif mysql # not compatible
query I rowsort label-1523
SELECT 13 * + 74 * - MIN ( 56 ) + 0
----
-53872

onlyif mysql # aggregate syntax: 
query II rowsort label-1524
SELECT DISTINCT 16 + - + 61 * - 37 + - 87 + + + ( - 43 ) - + COUNT( * ) * 21, + 90 AS col2
----
2122
90

skipif mysql # not compatible
query II rowsort label-1524
SELECT DISTINCT 16 + - + 61 * - 37 + - 87 + + + ( - 43 ) - + COUNT ( * ) * 21, + 90 AS col2
----
2122
90

query I rowsort
SELECT DISTINCT 39 * 48 col2
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT ALL 57 - + CASE + 15 WHEN + 38 + + + 71 THEN - COUNT( * ) * - 24 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL 57 - + CASE + 15 WHEN + 38 + + + 71 THEN - COUNT ( * ) * - 24 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT SUM( DISTINCT - 0 ) * COUNT( 78 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1527
SELECT SUM ( DISTINCT - 0 ) * COUNT ( 78 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT NULLIF ( - 72, - ( 89 ) + - - 60 + - + 71 ) + ( - MIN( DISTINCT - 50 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-1528
SELECT NULLIF ( - 72, - ( 89 ) + - - 60 + - + 71 ) + ( - MIN ( DISTINCT - 50 ) )
----
-22

query I rowsort
SELECT DISTINCT 3 * + 99
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT MAX( ALL + 35 ) * 87 AS col1
----
3045

skipif mysql # not compatible
query I rowsort label-1530
SELECT MAX ( ALL + 35 ) * 87 AS col1
----
3045

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1531
SELECT 51 * CAST( NULL AS DECIMAL ) + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT 51 * CAST ( NULL AS REAL ) + - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT ALL SUM( 76 ) - 63
----
13

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL SUM ( 76 ) - 63
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1533
SELECT - 11 - - 34 + + CAST( NULL AS SIGNED ) * 33 + 43 * - 18 * - COALESCE ( - MIN( DISTINCT + 4 ), + 30 - - COALESCE ( - 74, - 91 - + 66 * + 64 * + 7 / + 57 + 0, + CAST( NULL AS SIGNED ) + 99 + 38 * + + COUNT( DISTINCT - 84 ) ) + COUNT( * ) * + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1533
SELECT - 11 - - 34 + + CAST ( NULL AS INTEGER ) * 33 + 43 * - 18 * - COALESCE ( - MIN ( DISTINCT + 4 ), + 30 - - COALESCE ( - 74, - 91 - + 66 * + 64 * + 7 / + 57 + 0, + CAST ( NULL AS INTEGER ) + 99 + 38 * + + COUNT ( DISTINCT - 84 ) ) + COUNT ( * ) * + 66 )
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL + COUNT ( * ) / - ( + + 63 )
----
0

query II rowsort
SELECT ALL + NULLIF ( + 89, - 54 ) AS col1, + 33
----
89
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT - 83 DIV - - 82
----
-1

skipif mysql # not compatible
query I rowsort label-1538
SELECT - 83 / - - 82
----
-1

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1539
SELECT NULLIF ( + 84, - + 68 + + CAST( NULL AS DECIMAL ) * - + ( + - 72 ) ) - - - COALESCE ( - 62, + 12 DIV - 6 ) AS col1
----
146

skipif mysql # not compatible
query I rowsort label-1539
SELECT NULLIF ( + 84, - + 68 + + CAST ( NULL AS REAL ) * - + ( + - 72 ) ) - - - COALESCE ( - 62, + 12 / - 6 ) AS col1
----
146

query II rowsort
SELECT - NULLIF ( - + 76, 6 ) AS col2, - 69 * + + 73 * + 48 AS col0
----
76
-241776

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

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

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

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT COUNT ( * ) + + 52 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT ALL - - NULLIF ( + MAX( - 14 ), + 59 * NULLIF ( - - ( 29 ), + - NULLIF ( 36, + 48 ) ) - 87 ) * - 47 AS col1
----
658

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL - - NULLIF ( + MAX ( - 14 ), + 59 * NULLIF ( - - ( 29 ), + - NULLIF ( 36, + 48 ) ) - 87 ) * - 47 AS col1
----
658

query I rowsort
SELECT ALL + + 58 + - + ( + 70 ) AS col0
----
-12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT ALL + 95 + - 82 + - 45 * - + ( + SUM( + 55 ) ) AS col1
----
2488

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL + 95 + - 82 + - 45 * - + ( + SUM ( + 55 ) ) AS col1
----
2488

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT DISTINCT - 37 * - - 63 * - + COUNT( * )
----
2331

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT - 37 * - - 63 * - + COUNT ( * )
----
2331

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT COUNT( * ) * - 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1548
SELECT COUNT ( * ) * - 34 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-1549
SELECT DISTINCT - + COUNT( * ) col0, + 61 * + 51 + - COUNT( * ) AS col2
----
-1
3110

skipif mysql # not compatible
query II rowsort label-1549
SELECT DISTINCT - + COUNT ( * ) col0, + 61 * + 51 + - COUNT ( * ) AS col2
----
-1
3110

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT ALL - COUNT( - 67 ) * - ( COUNT( * ) ) + - ( - NULLIF ( - - 42, COUNT( * ) ) )
----
43

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL - COUNT ( - 67 ) * - ( COUNT ( * ) ) + - ( - NULLIF ( - - 42, COUNT ( * ) ) )
----
43

query I rowsort
SELECT 40 * - 61 - - 11 + - - 33
----
-2396

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT - 86 - + - COALESCE ( + 61, MAX( + 35 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-1552
SELECT - 86 - + - COALESCE ( + 61, MAX ( + 35 ) )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1553
SELECT 23 + - CAST( + - 22 AS SIGNED ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1553
SELECT 23 + - CAST ( + - 22 AS INTEGER ) AS col1
----
45

query I rowsort
SELECT 39 + + 81 + - 64 + + 46
----
102

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

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

query I rowsort
SELECT DISTINCT - 98 * - + 34 - + + 40
----
3292

query I rowsort
SELECT ALL 5 * + 30 col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT COUNT( * ) * + ( + 56 ) + 93
----
149

skipif mysql # not compatible
query I rowsort label-1558
SELECT COUNT ( * ) * + ( + 56 ) + 93
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1559
SELECT DISTINCT + COUNT( * ) DIV 68, 4 AS col2
----
0
4

skipif mysql # not compatible
query II rowsort label-1559
SELECT DISTINCT + COUNT ( * ) / 68, 4 AS col2
----
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT MIN( DISTINCT 10 ) + 54 * - 87
----
-4688

skipif mysql # not compatible
query I rowsort label-1560
SELECT MIN ( DISTINCT 10 ) + 54 * - 87
----
-4688

query I rowsort
SELECT ALL + 18 * + 25 AS col1
----
450

query I rowsort
SELECT 84 + 25 * - + 69 col1
----
-1641

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT MAX( DISTINCT - 76 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-1563
SELECT MAX ( DISTINCT - 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1564
SELECT MAX( ALL + 71 ) DIV + + COALESCE ( + - 89, COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-1564
SELECT MAX ( ALL + 71 ) / + + COALESCE ( + - 89, COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1565
SELECT ( - COALESCE ( - - CAST( - COUNT( * ) AS SIGNED ), - 39 ) ) * - 60
----
-60

skipif mysql # not compatible
query I rowsort label-1565
SELECT ( - COALESCE ( - - CAST ( - COUNT ( * ) AS INTEGER ), - 39 ) ) * - 60
----
-60

query I rowsort
SELECT 64 * 16 + - 94 + 57 AS col1
----
987

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

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

query I rowsort
SELECT + 9 * + - 93 * + COALESCE ( - 69, 67, 20 )
----
57753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1569
SELECT + - 31 * - MIN( ALL + - 70 ) + - + CASE - 76 WHEN + - 42 + COUNT( * ) THEN NULL WHEN + CAST( 1 AS SIGNED ) THEN NULL WHEN + - 38 THEN + 4 + 95 + - AVG ( DISTINCT 36 ) * + 1 / - 49 END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1569
SELECT + - 31 * - MIN ( ALL + - 70 ) + - + CASE - 76 WHEN + - 42 + COUNT ( * ) THEN NULL WHEN + CAST ( 1 AS INTEGER ) THEN NULL WHEN + - 38 THEN + 4 + 95 + - AVG ( DISTINCT 36 ) * + 1 / - 49 END / COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 4 * 34 AS col2
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1571
SELECT - 71 + + 46 * 37 + - + COUNT( * ) + - CAST( - 29 AS SIGNED )
----
1659

skipif mysql # not compatible
query I rowsort label-1571
SELECT - 71 + + 46 * 37 + - + COUNT ( * ) + - CAST ( - 29 AS INTEGER )
----
1659

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

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

query I rowsort
SELECT + ( 79 ) + - 0 AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1574
SELECT - + COALESCE ( + 0, + CAST( - - 77 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1574
SELECT - + COALESCE ( + 0, + CAST ( - - 77 AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1575
SELECT ALL - CASE + - CAST( COUNT( * ) AS SIGNED ) WHEN 11 THEN 58 + 4 WHEN + 91 DIV - + 53 THEN ( - 34 ) END + - 15 + - - 73
----
92

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL - CASE + - CAST ( COUNT ( * ) AS INTEGER ) WHEN 11 THEN 58 + 4 WHEN + 91 / - + 53 THEN ( - 34 ) END + - 15 + - - 73
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1576
SELECT + + 30 + COUNT( * ) AS col1, + 26 AS col0
----
31
26

skipif mysql # not compatible
query II rowsort label-1576
SELECT + + 30 + COUNT ( * ) AS col1, + 26 AS col0
----
31
26

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

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

query I rowsort
SELECT + - 55 + - ( 62 )
----
-117

query I rowsort
SELECT + 57 + + 30 * + + 68
----
2097

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1580
SELECT DISTINCT + - 80 DIV + 47 + - 34 - SUM( DISTINCT + 7 ) * 24 col2
----
-203

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT + - 80 / + 47 + - 34 - SUM ( DISTINCT + 7 ) * 24 col2
----
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT + COUNT( * ) * - 47 * - + 96 AS col0
----
4512

skipif mysql # not compatible
query I rowsort label-1581
SELECT + COUNT ( * ) * - 47 * - + 96 AS col0
----
4512

query I rowsort
SELECT - 84 + - - 59
----
-25

query I rowsort
SELECT + + 78 * + 98 * - + NULLIF ( 73, - 17 ) + + 23 AS col1
----
-557989

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

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

query I rowsort
SELECT + 17 * 79 AS col1
----
1343

query II rowsort
SELECT ALL + 13 col1, + 11 AS col1
----
13
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT ALL + 71 * - SUM( DISTINCT + 91 ) - - ( + 43 )
----
-6418

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL + 71 * - SUM ( DISTINCT + 91 ) - - ( + 43 )
----
-6418

query I rowsort
SELECT ALL + 22 * 12 AS col1
----
264

query I rowsort
SELECT DISTINCT + 50 * 47
----
2350

query I rowsort
SELECT ALL + 32 * + 3 * - + 42 * - 70
----
282240

query I rowsort
SELECT - ( + 7 ) * + 48 + - + CASE - + 29 WHEN + 44 + ( - 33 ) THEN + + 71 END + ( + 33 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1593
SELECT - CASE WHEN NOT 6 NOT BETWEEN ( 26 ) AND 74 + - - 46 THEN COUNT( * ) - CAST( 81 AS SIGNED ) END * - 57 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1593
SELECT - CASE WHEN NOT 6 NOT BETWEEN ( 26 ) AND 74 + - - 46 THEN COUNT ( * ) - CAST ( 81 AS INTEGER ) END * - 57 col0
----
NULL

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

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

query I rowsort
SELECT NULLIF ( + COALESCE ( + 3, - 40 ), - 47 * 28 * + 59 ) AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1596
SELECT NULLIF ( 82, + + 97 ), 42 * 97 * + CAST( NULL AS SIGNED ) * + 94 * - 86 col0
----
82
NULL

skipif mysql # not compatible
query II rowsort label-1596
SELECT NULLIF ( 82, + + 97 ), 42 * 97 * + CAST ( NULL AS INTEGER ) * + 94 * - 86 col0
----
82
NULL

query II rowsort
SELECT NULLIF ( - - ( - - ( - 95 ) ), - 2 ), 20 * - 67 AS col2
----
-95
-1340

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT COALESCE ( - - 27, 8 + + COUNT( * ) + - 41 + + 91 )
----
27

skipif mysql # not compatible
query I rowsort label-1598
SELECT COALESCE ( - - 27, 8 + + COUNT ( * ) + - 41 + + 91 )
----
27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1600
SELECT ALL + 87 DIV 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + 87 / 65 AS col0
----
1

query II rowsort
SELECT ALL ( - 44 ) * - - 5, 84 AS col1
----
-220
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1602
SELECT ALL ( CAST( 46 AS DECIMAL ) ) * - 33 * 34 + COUNT( * ) + - 35 * + CAST( NULL AS SIGNED ) - + + CAST( - 23 AS SIGNED ) + 76 + + 0 * + ( - 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL ( CAST ( 46 AS REAL ) ) * - 33 * 34 + COUNT ( * ) + - 35 * + CAST ( NULL AS INTEGER ) - + + CAST ( - 23 AS INTEGER ) + 76 + + 0 * + ( - 15 ) AS col2
----
NULL

query II rowsort
SELECT + + 31, 91 AS col1
----
31
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1604
SELECT + + COUNT( * ) AS col0, + 35 / + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1604
SELECT + + COUNT ( * ) AS col0, + 35 / + CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT 11 * - + COUNT( + 95 ) - 12 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-1605
SELECT 11 * - + COUNT ( + 95 ) - 12 AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1606
SELECT - - COALESCE ( - - 61, + - 71 - 80 + 99 + + COUNT( * ) + + + 78, 63 ) DIV + + 45 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1606
SELECT - - COALESCE ( - - 61, + - 71 - 80 + 99 + + COUNT ( * ) + + + 78, 63 ) / + + 45 AS col1
----
1

query I rowsort
SELECT + - 94 + + + 68
----
-26

query I rowsort
SELECT ALL + + 79 * + - 63
----
-4977

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT + + COUNT( * ) * + + 55 + - 75 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1609
SELECT + + COUNT ( * ) * + + 55 + - 75 AS col0
----
-20

query II rowsort
SELECT - + 56 AS col0, 44 AS col2
----
-56
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT ( + COALESCE ( 55, + ( - - 55 ), + COUNT( * ), + - 37 + + COUNT( * ) + 45 ) )
----
55

skipif mysql # not compatible
query I rowsort label-1611
SELECT ( + COALESCE ( 55, + ( - - 55 ), + COUNT ( * ), + - 37 + + COUNT ( * ) + 45 ) )
----
55

query I rowsort
SELECT DISTINCT + 81 + - 75
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT + 18 * + + COUNT( * ) * + 39 AS col2
----
702

skipif mysql # not compatible
query I rowsort label-1613
SELECT + 18 * + + COUNT ( * ) * + 39 AS col2
----
702

query I rowsort
SELECT ALL 58 + 41
----
99

query I rowsort
SELECT ALL - - 74 + + - 39
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT + - SUM( + + NULLIF ( + 17, - + 53 + + 76 ) ) * 28 + + - 83 AS col0
----
-559

skipif mysql # not compatible
query I rowsort label-1616
SELECT + - SUM ( + + NULLIF ( + 17, - + 53 + + 76 ) ) * 28 + + - 83 AS col0
----
-559

query I rowsort
SELECT ALL + 87 + + 78 * NULLIF ( + - 3, - 11 * 6 + AVG ( DISTINCT + + 24 ) ) + 42
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1618
SELECT - COALESCE ( 7, + CAST( + 63 AS SIGNED ), + + 95 * - 43 - - + 66, - 13 )
----
-7

skipif mysql # not compatible
query I rowsort label-1618
SELECT - COALESCE ( 7, + CAST ( + 63 AS INTEGER ), + + 95 * - 43 - - + 66, - 13 )
----
-7

query I rowsort
SELECT + ( ( - + 84 ) ) * + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1620
SELECT DISTINCT 47 - + 74 + + 66 DIV 94 - + 93
----
-120

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT 47 - + 74 + + 66 / 94 - + 93
----
-120

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1622
SELECT ALL 81 - + - ( 11 ) - 94 * NULLIF ( - 27, - 9 ) col2, 53 * 52 * + + COUNT( - 82 )
----
2630
2756

skipif mysql # not compatible
query II rowsort label-1622
SELECT ALL 81 - + - ( 11 ) - 94 * NULLIF ( - 27, - 9 ) col2, 53 * 52 * + + COUNT ( - 82 )
----
2630
2756

query I rowsort
SELECT + 87 * + + 40 * 3
----
10440

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT DISTINCT - 73 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT - 73 / 96
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1625
SELECT 64 DIV + + COUNT( * ) + - + 43
----
21

skipif mysql # not compatible
query I rowsort label-1625
SELECT 64 / + + COUNT ( * ) + - + 43
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1626
SELECT + 51 DIV + + 21
----
2

skipif mysql # not compatible
query I rowsort label-1626
SELECT + 51 / + + 21
----
2

query I rowsort
SELECT + NULLIF ( - 11, + 49 + + 64 ) + + 7 AS col1
----
-4

query II rowsort
SELECT + 75 AS col2, - 71 * + 22
----
75
-1562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1629
SELECT 3 * - - CAST( 7 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-1629
SELECT 3 * - - CAST ( 7 AS INTEGER )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT 74 + COALESCE ( + 52, COUNT( * ) + 85 )
----
126

skipif mysql # not compatible
query I rowsort label-1630
SELECT 74 + COALESCE ( + 52, COUNT ( * ) + 85 )
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-1631
SELECT 9 DIV 27
----
0

skipif mysql # not compatible
query I rowsort label-1631
SELECT 9 / 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT ALL + COUNT( * ) * + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL + COUNT ( * ) * + COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT + COALESCE ( - + 84, 50 + - + 93 ) * + + 39 * + + AVG ( ALL + NULLIF ( - + 53, - CASE 53 WHEN - 79 * - 50 + + 13 THEN NULL WHEN + - 65 THEN + 36 END ) ) + 50 + + 84 / CAST( NULL AS SIGNED ) * - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT + COALESCE ( - + 84, 50 + - + 93 ) * + + 39 * + + AVG ( ALL + NULLIF ( - + 53, - CASE 53 WHEN - 79 * - 50 + + 13 THEN NULL WHEN + - 65 THEN + 36 END ) ) + 50 + + 84 / CAST ( NULL AS INTEGER ) * - 27 AS col1
----
NULL

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

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

query II rowsort
SELECT + 43 col1, - 4
----
43
-4

query I rowsort
SELECT ALL 79 + + - 22 * - 91 * + 32 * 19 * - 45 AS col0
----
-54774641

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT ALL - CASE + NULLIF ( + + 81, 29 + 66 ) WHEN + AVG ( 53 ) / + 13 + + ( + 52 ) + + 99 THEN - 56 + COUNT( * ) * + 68 WHEN - 13 THEN - CASE - - 59 WHEN 54 + + - 47 + - NULLIF ( COALESCE ( - 42, + 83 ), - 12 + + 87 ) * 72 * COUNT( * ) THEN 55 * - 59 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL - CASE + NULLIF ( + + 81, 29 + 66 ) WHEN + AVG ( 53 ) / + 13 + + ( + 52 ) + + 99 THEN - 56 + COUNT ( * ) * + 68 WHEN - 13 THEN - CASE - - 59 WHEN 54 + + - 47 + - NULLIF ( COALESCE ( - 42, + 83 ), - 12 + + 87 ) * 72 * COUNT ( * ) THEN 55 * - 59 END ELSE NULL END
----
NULL

query I rowsort
SELECT 65 * 51 + + 53 * - ( + + 83 ) AS col2
----
-1084

query I rowsort
SELECT - 89 + + - 31 AS col2
----
-120

query I rowsort
SELECT 71 * - 75 AS col2
----
-5325

onlyif mysql # DIV for integer division: 
query II rowsort label-1642
SELECT ALL + 15 AS col2, - 7 + - - 2 DIV - + 23 col0
----
15
-7

skipif mysql # not compatible
query II rowsort label-1642
SELECT ALL + 15 AS col2, - 7 + - - 2 / - + 23 col0
----
15
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT DISTINCT - 49 + + 63 * + CASE - 49 WHEN - 29 THEN 92 WHEN - 85 THEN - ( MAX( DISTINCT + 20 ) ) - - - MAX( + 48 ) - - 96 - + + 16 * - + 35 ELSE NULL END * + 48 + + 53 / MIN( 85 ) / - - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT - 49 + + 63 * + CASE - 49 WHEN - 29 THEN 92 WHEN - 85 THEN - ( MAX ( DISTINCT + 20 ) ) - - - MAX ( + 48 ) - - 96 - + + 16 * - + 35 ELSE NULL END * + 48 + + 53 / MIN ( 85 ) / - - 24 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + 58 * + - 40 + + 20
----
-2300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1646
SELECT - 37, ( CAST( NULL AS SIGNED ) ) AS col1
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-1646
SELECT - 37, ( CAST ( NULL AS INTEGER ) ) AS col1
----
-37
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1647
SELECT - 49 AS col1, NULLIF ( + 57, - MIN( - - 23 ) + + - 17 + - COUNT( * ) / - 26 ) + - + 30 * - - 55 * - 41 AS col1
----
-49
67707

skipif mysql # not compatible
query II rowsort label-1647
SELECT - 49 AS col1, NULLIF ( + 57, - MIN ( - - 23 ) + + - 17 + - COUNT ( * ) / - 26 ) + - + 30 * - - 55 * - 41 AS col1
----
-49
67707

query II rowsort
SELECT + ( + ( + - 17 ) ) * + 66 - 5 * + + 65 AS col1, 53 AS col0
----
-1447
53

query I rowsort
SELECT - 5 + - 38
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT COUNT( * ) * 63 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1650
SELECT COUNT ( * ) * 63 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT - COUNT( * ) + 54 * - 60 - + - ( - 22 ) - 15 AS col2
----
-3278

skipif mysql # not compatible
query I rowsort label-1651
SELECT - COUNT ( * ) + 54 * - 60 - + - ( - 22 ) - 15 AS col2
----
-3278

query I rowsort
SELECT ALL 5 * - 85 * 14 AS col1
----
-5950

query I rowsort
SELECT 58 * ( + 38 ) AS col1
----
2204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1654
SELECT 93 + - COUNT( * ) + - - 3 DIV NULLIF ( MAX( DISTINCT ( - 99 ) ), - 49 * + ( 22 ) )
----
92

skipif mysql # not compatible
query I rowsort label-1654
SELECT 93 + - COUNT ( * ) + - - 3 / NULLIF ( MAX ( DISTINCT ( - 99 ) ), - 49 * + ( 22 ) )
----
92

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

skipif mysql # not compatible
query I rowsort label-1655
SELECT 0 * + COUNT ( * ) * - 76 AS col0
----
0

query II rowsort
SELECT 83 * - 78 col2, 81 AS col0
----
-6474
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1657
SELECT COUNT( * ) DIV + 80 AS col1, 42 DIV + - 52 * + + 84 DIV - - 84 - - 16 AS col0
----
0
16

skipif mysql # not compatible
query II rowsort label-1657
SELECT COUNT ( * ) / + 80 AS col1, 42 / + - 52 * + + 84 / - - 84 - - 16 AS col0
----
0
16

query I rowsort
SELECT ALL 38 + + 95 * - 17 + + - 82
----
-1659

onlyif mysql # DIV for integer division: 
query I rowsort label-1659
SELECT 80 DIV - 26
----
-3

skipif mysql # not compatible
query I rowsort label-1659
SELECT 80 / - 26
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1660
SELECT COUNT( 64 ) DIV + MIN( - 21 ) * - ( 28 ) * + 14 AS col0, - 77 * + ( + 69 ) AS col1
----
0
-5313

skipif mysql # not compatible
query II rowsort label-1660
SELECT COUNT ( 64 ) / + MIN ( - 21 ) * - ( 28 ) * + 14 AS col0, - 77 * + ( + 69 ) AS col1
----
0
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT 28 * 8 * - + COUNT( * ) * 87
----
-19488

skipif mysql # not compatible
query I rowsort label-1661
SELECT 28 * 8 * - + COUNT ( * ) * 87
----
-19488

query I rowsort
SELECT ALL 90 + - + 37 * - - 43 * + 38 AS col0
----
-60368

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT - ( + - CASE + 38 WHEN + - 78 THEN 51 WHEN - 96 THEN - 80 END ) * - COALESCE ( - 61, + 2 ) * ( + + 88 ) * - NULLIF ( 51, - 57 * - 64 ) + + 76 + - COUNT( DISTINCT + 62 ) * - 40 * + - 80 + - 9 / + NULLIF ( - 36, - + 25 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1664
SELECT - ( + - CASE + 38 WHEN + - 78 THEN 51 WHEN - 96 THEN - 80 END ) * - COALESCE ( - 61, + 2 ) * ( + + 88 ) * - NULLIF ( 51, - 57 * - 64 ) + + 76 + - COUNT ( DISTINCT + 62 ) * - 40 * + - 80 + - 9 / + NULLIF ( - 36, - + 25 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT - MAX( - + 20 ) - - + 88 + 31 AS col0
----
139

skipif mysql # not compatible
query I rowsort label-1665
SELECT - MAX ( - + 20 ) - - + 88 + 31 AS col0
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1666
SELECT 86 * + 92 AS col0, 73 + - 16 DIV - + 88 AS col1, + + 90 + - MAX( DISTINCT + 41 )
----
7912
73
49

skipif mysql # not compatible
query III rowsort label-1666
SELECT 86 * + 92 AS col0, 73 + - 16 / - + 88 AS col1, + + 90 + - MAX ( DISTINCT + 41 )
----
7912
73
49

query I rowsort
SELECT 94 + - - 96 + - + 33 * 22 AS col2
----
-536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1668
SELECT - 28 * - + COUNT( - 60 ) DIV NULLIF ( - 67, + 94 * + 99 + - + 28 - 19 + + 52 ) + + + 84 + - + 69 + 28 * - + COUNT( * ) + - 52 DIV + 66 - + - NULLIF ( + + 98, + + 51 ) col2
----
85

skipif mysql # not compatible
query I rowsort label-1668
SELECT - 28 * - + COUNT ( - 60 ) / NULLIF ( - 67, + 94 * + 99 + - + 28 - 19 + + 52 ) + + + 84 + - + 69 + 28 * - + COUNT ( * ) + - 52 / + 66 - + - NULLIF ( + + 98, + + 51 ) col2
----
85

query II rowsort
SELECT 76 * - 62 * - 51 + - ( 43 ) AS col0, 87 * + + 34
----
240269
2958

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

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

query I rowsort
SELECT DISTINCT - - 44 - 66 + + COALESCE ( + - 75, - + 93, 14 + + - 69 * - 18 - 27 * - - ( + 21 ) ) AS col2
----
-97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT DISTINCT - - 94 DIV - + 3 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT - - 94 / - + 3 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT - - CASE ( 42 ) WHEN - + COALESCE ( - 40, - - 94, 19 / + - 55 + - - 17 * + + 67 ) * + + 96 THEN NULL WHEN + + COUNT( * ) THEN + + 60 - + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1674
SELECT - - CASE ( 42 ) WHEN - + COALESCE ( - 40, - - 94, 19 / + - 55 + - - 17 * + + 67 ) * + + 96 THEN NULL WHEN + + COUNT ( * ) THEN + + 60 - + + COUNT ( * ) ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1676
SELECT ALL + 63 * 84 * + - CAST( - COUNT( - ( - 75 ) ) AS SIGNED ) AS col0, - 88 AS col2
----
5292
-88

skipif mysql # not compatible
query II rowsort label-1676
SELECT ALL + 63 * 84 * + - CAST ( - COUNT ( - ( - 75 ) ) AS INTEGER ) AS col0, - 88 AS col2
----
5292
-88

query I rowsort
SELECT DISTINCT + 91 * 87 AS col1
----
7917

query I rowsort
SELECT 58 * 59 * + - 12
----
-41064

query I rowsort
SELECT - 87 * - - 82
----
-7134

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT - 4 - + COUNT( * ) * - 85 + - 4 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1680
SELECT - 4 - + COUNT ( * ) * - 85 + - 4 AS col0
----
77

query I rowsort
SELECT - ( + ( - 18 ) ) - 74 * - + 87
----
6456

query I rowsort
SELECT - 57 * + 73
----
-4161

query II rowsort
SELECT - 30 AS col0, 10 * + ( + 19 )
----
-30
190

query I rowsort
SELECT ALL - 8 * + 33 + - ( - 46 )
----
-218

query I rowsort
SELECT CASE + 2 WHEN - 27 + ( - ( - 50 ) ) THEN NULL WHEN + 27 THEN + + 62 * + 9 ELSE 5 END AS col0
----
5

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

skipif mysql # not compatible
query I rowsort label-1686
SELECT 38 / - 74 + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1687
SELECT 2 * + 68 DIV - 28 - - 16 + - - 14 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1687
SELECT 2 * + 68 / - 28 - - 16 + - - 14 AS col2
----
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT + MAX( - 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-1689
SELECT + MAX ( - 13 ) AS col0
----
-13

query I rowsort
SELECT COALESCE ( - 65, + 33 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT + CASE - 68 WHEN 44 THEN 75 * - ( + MAX( 42 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1691
SELECT + CASE - 68 WHEN 44 THEN 75 * - ( + MAX ( 42 ) ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 81 * + 78 + - 69 AS col0, 91
----
6249
91

query I rowsort
SELECT - 91 + + - 39
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL - ( + 62 ) * + 34 - COUNT( 41 ) AS col1
----
-2109

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL - ( + 62 ) * + 34 - COUNT ( 41 ) AS col1
----
-2109

query I rowsort
SELECT + 85 * + 35 * + 54
----
160650

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1696
SELECT ALL + - COUNT( * ) AS col2, CAST( NULL AS DECIMAL ) + 70 + + 97 * + - 52
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1696
SELECT ALL + - COUNT ( * ) AS col2, CAST ( NULL AS REAL ) + 70 + + 97 * + - 52
----
-1
NULL

query II rowsort
SELECT ALL - 10 * - NULLIF ( 10, + 23 / 11 / - 89 ) + + 92 - - 88 AS col1, + 69
----
280
69

query II rowsort
SELECT 11 AS col2, 19 * - 93
----
11
-1767

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

query II rowsort
SELECT - 38 + - + 3 * ( - 92 ) + + 14 * + 47 AS col2, 38 AS col1
----
896
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1701
SELECT + COALESCE ( - ( + COALESCE ( 79, + 6 DIV + - COUNT( * ), + CASE + - 32 WHEN 3 THEN + 40 * 80 + + COALESCE ( + 44, + 23, - 37 + - COUNT( 13 ) * 32 DIV - 4 ) ELSE NULL END - - - ( + + 96 ) ) ), COALESCE ( - 76, - ( - 43 ) * - + COUNT( * ) ) )
----
-79

skipif mysql # not compatible
query I rowsort label-1701
SELECT + COALESCE ( - ( + COALESCE ( 79, + 6 / + - COUNT ( * ), + CASE + - 32 WHEN 3 THEN + 40 * 80 + + COALESCE ( + 44, + 23, - 37 + - COUNT ( 13 ) * 32 / - 4 ) ELSE NULL END - - - ( + + 96 ) ) ), COALESCE ( - 76, - ( - 43 ) * - + COUNT ( * ) ) )
----
-79

query I rowsort
SELECT + 12 + 99
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1703
SELECT ALL + COALESCE ( - 15, + + 51 ) DIV COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL + COALESCE ( - 15, + + 51 ) / COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-1704
SELECT + COUNT( * ) AS col2, 65 * + 16 col0
----
1
1040

skipif mysql # not compatible
query II rowsort label-1704
SELECT + COUNT ( * ) AS col2, 65 * + 16 col0
----
1
1040

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT + + CASE + 30 WHEN + - 65 THEN NULL ELSE 78 END DIV + 99 + + 0
----
0

skipif mysql # not compatible
query I rowsort label-1705
SELECT + + CASE + 30 WHEN + - 65 THEN NULL ELSE 78 END / + 99 + + 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1706
SELECT - + COUNT( * ), + 33 + - 6 + - MIN( 70 ) + 16 DIV + + 23 AS col1
----
-1
-43

skipif mysql # not compatible
query II rowsort label-1706
SELECT - + COUNT ( * ), + 33 + - 6 + - MIN ( 70 ) + 16 / + + 23 AS col1
----
-1
-43

query II rowsort
SELECT ALL - 77 AS col2, + 16
----
-77
16

query I rowsort
SELECT ALL ( 8 ) AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1709
SELECT - 23 - - - 73 * + 49 + - COALESCE ( + - 71, 20 * - - CAST( NULL AS SIGNED ) ) AS col0
----
-3529

skipif mysql # not compatible
query I rowsort label-1709
SELECT - 23 - - - 73 * + 49 + - COALESCE ( + - 71, 20 * - - CAST ( NULL AS INTEGER ) ) AS col0
----
-3529

query I rowsort
SELECT + 67 + 5
----
72

query I rowsort
SELECT - NULLIF ( + - 94, - + 81 ) + + 18
----
112

query II rowsort
SELECT - ( 88 ) col1, ( 73 ) AS col0
----
-88
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1713
SELECT - 17 + - + 76 + + CASE - + 2 WHEN - 14 THEN - + CAST( - 63 AS SIGNED ) END * + - 41 + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT - 17 + - + 76 + + CASE - + 2 WHEN - 14 THEN - + CAST ( - 63 AS INTEGER ) END * + - 41 + 17 AS col2
----
NULL

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

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

query I rowsort
SELECT - 93 * - 9
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT + NULLIF ( - - COUNT( * ), 69 + + COALESCE ( + 26, - AVG ( DISTINCT - 33 ), 64 * 55 / - 74 * - + COALESCE ( + - 29, + + 22, - 11 ) * + 42 ) * + 51 * 90 / - ( - 86 ) ) + + 15 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1716
SELECT + NULLIF ( - - COUNT ( * ), 69 + + COALESCE ( + 26, - AVG ( DISTINCT - 33 ), 64 * 55 / - 74 * - + COALESCE ( + - 29, + + 22, - 11 ) * + 42 ) * + 51 * 90 / - ( - 86 ) ) + + 15 AS col1
----
16

query I rowsort
SELECT ALL 63 + - 51 AS col1
----
12

query I rowsort
SELECT - 51 + - + 58 col0
----
-109

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

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL NULLIF ( 19, - + COUNT ( * ) )
----
19

query I rowsort
SELECT ALL + 42 * 26
----
1092

query I rowsort
SELECT ALL - 70 + 4 * + 97
----
318

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT - MIN( ALL + 49 ) + + - 60 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-1722
SELECT - MIN ( ALL + 49 ) + + - 60 AS col0
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT - 91 DIV + ( + - 85 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1723
SELECT - 91 / + ( + - 85 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1724
SELECT DISTINCT - 79 * + + COUNT( * ) AS col0, - CASE + + NULLIF ( + 84, 37 ) WHEN 45 * ( - + COUNT( * ) ) THEN - + 27 WHEN + - MAX( ALL ( - + CAST( NULL AS SIGNED ) ) ) THEN ( + - 73 ) END
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-1724
SELECT DISTINCT - 79 * + + COUNT ( * ) AS col0, - CASE + + NULLIF ( + 84, 37 ) WHEN 45 * ( - + COUNT ( * ) ) THEN - + 27 WHEN + - MAX ( ALL ( - + CAST ( NULL AS INTEGER ) ) ) THEN ( + - 73 ) END
----
-79
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1725
SELECT DISTINCT + 25 * + 45 AS col1, + ( + 98 ) * COUNT( * ) + 50 * - + 93
----
1125
-4552

skipif mysql # not compatible
query II rowsort label-1725
SELECT DISTINCT + 25 * + 45 AS col1, + ( + 98 ) * COUNT ( * ) + 50 * - + 93
----
1125
-4552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1726
SELECT ALL + 10 DIV + 38 - 27 * COUNT( * ) DIV 42 * - + 37 * + 15 * - 20 DIV - 36 * + 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL + 10 / + 38 - 27 * COUNT ( * ) / 42 * - + 37 * + 15 * - 20 / - 36 * + 31 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1727
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 24 + 24 + MIN( ALL 33 ) / ( - 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 24 + 24 + MIN ( ALL 33 ) / ( - 73 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1728
SELECT ALL - 20 DIV + 33 - - 42 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL - 20 / + 33 - - 42 AS col1
----
42

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

query I rowsort
SELECT - 83 * 10 + 27
----
-803

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT 34 * + 77 + 68 - COALESCE ( - 49, COUNT( * ) ) AS col1
----
2735

skipif mysql # not compatible
query I rowsort label-1732
SELECT 34 * + 77 + 68 - COALESCE ( - 49, COUNT ( * ) ) AS col1
----
2735

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT ALL + MIN( - - 60 ) * + + 48
----
2880

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL + MIN ( - - 60 ) * + + 48
----
2880

query I rowsort
SELECT + + 60 * 85 AS col0
----
5100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1735
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 60 * - + 50 col1
----
3000

onlyif mysql # aggregate syntax: 
query II rowsort label-1737
SELECT + 85 * - ( + COUNT( * ) ) - 20 col1, 24
----
-105
24

skipif mysql # not compatible
query II rowsort label-1737
SELECT + 85 * - ( + COUNT ( * ) ) - 20 col1, 24
----
-105
24

onlyif mysql # aggregate syntax: 
query II rowsort label-1738
SELECT - COUNT( * ) + 20 * - ( 95 ) - - 60 AS col2, 92
----
-1841
92

skipif mysql # not compatible
query II rowsort label-1738
SELECT - COUNT ( * ) + 20 * - ( 95 ) - - 60 AS col2, 92
----
-1841
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT + - 33 + 12 * - + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-1740
SELECT + - 33 + 12 * - + COUNT ( * )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1741
SELECT 75 * + 83 - - 96 * + 69 * - + 8 - MAX( + 15 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT 75 * + 83 - - 96 * + 69 * - + 8 - MAX ( + 15 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT 3 / + + CASE + 59 WHEN + - 28 THEN NULL WHEN 55 THEN + MIN( ALL - + 60 ) * - 12 + - - 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT 3 / + + CASE + 59 WHEN + - 28 THEN NULL WHEN 55 THEN + MIN ( ALL - + 60 ) * - 12 + - - 99 END
----
NULL

query I rowsort
SELECT DISTINCT 17 * - 57
----
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT ALL SUM( 96 ) + + + 99
----
195

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL SUM ( 96 ) + + + 99
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT ALL 87 + + 48 - COUNT( * ) + + 93 col1
----
227

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL 87 + + 48 - COUNT ( * ) + + 93 col1
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT ALL 46 DIV ( - 19 )
----
-2

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL 46 / ( - 19 )
----
-2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1748
SELECT ALL - NULLIF ( - 0, - COALESCE ( + - 54, 42 + + 82, + NULLIF ( + + 70, MAX( DISTINCT 8 ) * - - COUNT( * ) + + CAST( + + 57 AS SIGNED ) + + COUNT( * ) - 62 + - 71 * 80 / ( + 73 ) - 74 ) * - + 3 ) - + 58 ) + - 18 + 37 * - 83 AS col1
----
-3089

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL - NULLIF ( - 0, - COALESCE ( + - 54, 42 + + 82, + NULLIF ( + + 70, MAX ( DISTINCT 8 ) * - - COUNT ( * ) + + CAST ( + + 57 AS INTEGER ) + + COUNT ( * ) - 62 + - 71 * 80 / ( + 73 ) - 74 ) * - + 3 ) - + 58 ) + - 18 + 37 * - 83 AS col1
----
-3089

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT 83 + + + 53 + - - ( - - CASE 6 WHEN + - ( + 37 ) * + + 69 + - 27 THEN 29 + + SUM( ALL - 96 ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1749
SELECT 83 + + + 53 + - - ( - - CASE 6 WHEN + - ( + 37 ) * + + 69 + - 27 THEN 29 + + SUM ( ALL - 96 ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ( - - 86 ) - - 23 - + 94 + - 16 * - + ( COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-1750
SELECT ( - - 86 ) - - 23 - + 94 + - 16 * - + ( COUNT ( * ) )
----
31

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1752
SELECT ALL - NULLIF ( 91, 62 ) - + 71 + - 71 * + SUM( DISTINCT 0 ) + + - NULLIF ( - 59, 73 * - COUNT( * ) + + 52 - - 39 ) DIV + ( - 17 ) col0, - 99 + + 39 + + + 42 + - - 70 AS col2
----
-165
52

skipif mysql # not compatible
query II rowsort label-1752
SELECT ALL - NULLIF ( 91, 62 ) - + 71 + - 71 * + SUM ( DISTINCT 0 ) + + - NULLIF ( - 59, 73 * - COUNT ( * ) + + 52 - - 39 ) / + ( - 17 ) col0, - 99 + + 39 + + + 42 + - - 70 AS col2
----
-165
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1754
SELECT - ( 99 ) * - - 63 + - 67 * - CAST( + + COALESCE ( 26, + 15 ) AS SIGNED ) AS col1
----
-4495

skipif mysql # not compatible
query I rowsort label-1754
SELECT - ( 99 ) * - - 63 + - 67 * - CAST ( + + COALESCE ( 26, + 15 ) AS INTEGER ) AS col1
----
-4495

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1755
SELECT ( + - CAST( 14 AS DECIMAL ) ) - CAST( NULL AS DECIMAL ) + 64 - 92 * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT ( + - CAST ( 14 AS REAL ) ) - CAST ( NULL AS REAL ) + 64 - 92 * 70
----
NULL

query I rowsort
SELECT + 6 * 47
----
282

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

skipif mysql # not compatible
query I rowsort label-1757
SELECT - - 94 / - + COUNT ( * ) + + + COUNT ( * ) AS col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1758
SELECT ALL - 0 * CAST( NULL AS SIGNED ) + SUM( DISTINCT ( - 45 ) ) + + - SUM( + + 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL - 0 * CAST ( NULL AS INTEGER ) + SUM ( DISTINCT ( - 45 ) ) + + - SUM ( + + 46 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1759
SELECT 48 DIV COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1759
SELECT 48 / COUNT ( * ) AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1760
SELECT 92 DIV 16 - - - 62 + + 71 DIV + 29
----
-55

skipif mysql # not compatible
query I rowsort label-1760
SELECT 92 / 16 - - - 62 + + 71 / + 29
----
-55

query I rowsort
SELECT DISTINCT + 72 * + + 64
----
4608

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1764
SELECT DISTINCT + 97 * + - 61 DIV COUNT( * )
----
-5917

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT + 97 * + - 61 / COUNT ( * )
----
-5917

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT DISTINCT + MIN( - COALESCE ( + 53, + - 64 * - - 62 ) ) * - 56 AS col1
----
2968

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT + MIN ( - COALESCE ( + 53, + - 64 * - - 62 ) ) * - 56 AS col1
----
2968

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1768
SELECT + 22 + 19 - + + COUNT ( * ) AS col0
----
40

query I rowsort
SELECT - COALESCE ( - 14, - + 1 + + 65, - 38 ) AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1770
SELECT ( + ( 89 ) ) + - + ( + 28 ) + + 84 - + + NULLIF ( 74, + - COUNT( * ) * ( 29 ) * + - ( + 35 ) + - 40 * + COUNT( * ) * + COALESCE ( - 50, - CAST( NULL AS SIGNED ) + 17 ) + - + CAST( + + ( - - 1 ) AS SIGNED ) / 71 * 86 * - + 90 + - CASE + - 16 WHEN + 53 - CAST( + + 51 AS SIGNED ) THEN 18 END ) * - 11 AS col0
----
959

skipif mysql # not compatible
query I rowsort label-1770
SELECT ( + ( 89 ) ) + - + ( + 28 ) + + 84 - + + NULLIF ( 74, + - COUNT ( * ) * ( 29 ) * + - ( + 35 ) + - 40 * + COUNT ( * ) * + COALESCE ( - 50, - CAST ( NULL AS INTEGER ) + 17 ) + - + CAST ( + + ( - - 1 ) AS INTEGER ) / 71 * 86 * - + 90 + - CASE + - 16 WHEN + 53 - CAST ( + + 51 AS INTEGER ) THEN 18 END ) * - 11 AS col0
----
959

query I rowsort
SELECT + 41 * - 92 + - + 99 + - - 23 - - 62 * - 12 col1
----
-4592

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1774
SELECT 29 * - ( COUNT( * ) ) * + - CASE + + 35 WHEN + - 93 + - 73 THEN NULL ELSE + - 39 + SUM( 12 ) DIV - 65 * + 77 * 1 - - 49 + - + ( 40 ) END * + COUNT( * ) + COUNT( ALL 85 ) + + ( + - 57 ) AS col1
----
-926

skipif mysql # not compatible
query I rowsort label-1774
SELECT 29 * - ( COUNT ( * ) ) * + - CASE + + 35 WHEN + - 93 + - 73 THEN NULL ELSE + - 39 + SUM ( 12 ) / - 65 * + 77 * 1 - - 49 + - + ( 40 ) END * + COUNT ( * ) + COUNT ( ALL 85 ) + + ( + - 57 ) AS col1
----
-926

query I rowsort
SELECT DISTINCT + - ( - 32 ) * 1 AS col1
----
32

query I rowsort
SELECT DISTINCT + - 66 + + + 24 AS col0
----
-42

query I rowsort
SELECT ALL 76 * 80
----
6080

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1779
SELECT ALL - NULLIF ( + - ( - MAX( 8 ) ), - COUNT( * ) * + - 47 * NULLIF ( - - CAST( NULL AS SIGNED ), - - 48 - + 75 ) + + 40 + + 4 + - - COUNT( - 28 ) + + 79 )
----
-8

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - NULLIF ( + - ( - MAX ( 8 ) ), - COUNT ( * ) * + - 47 * NULLIF ( - - CAST ( NULL AS INTEGER ), - - 48 - + 75 ) + + 40 + + 4 + - - COUNT ( - 28 ) + + 79 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT - 60 * + - COUNT( * ) col0
----
60

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT - 60 * + - COUNT ( * ) col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1781
SELECT ALL 12 AS col1, COALESCE ( - 57, + + COUNT( * ) DIV 19 * - - 36 * + COUNT( DISTINCT 34 ) ) * - 36, - 73 DIV + 43 + + 94 + + - CASE - CAST( + + CASE - 78 WHEN + + 90 * - 79 THEN NULL WHEN + 13 THEN + NULLIF ( + 30, NULLIF ( 10, - 66 ) ) + + 54 DIV - - 26 + 16 + + ( + + 29 ) END AS SIGNED ) WHEN + 89 * - 16 DIV - 20 + AVG ( - 40 ) * 19 THEN 54 WHEN COUNT( 1 ) THEN COUNT( * ) ELSE - 64 END * ( COUNT( * ) DIV 14 + 90 ) * 77 AS col0
----
12
2052
443613

skipif mysql # not compatible
query III rowsort label-1781
SELECT ALL 12 AS col1, COALESCE ( - 57, + + COUNT ( * ) / 19 * - - 36 * + COUNT ( DISTINCT 34 ) ) * - 36, - 73 / + 43 + + 94 + + - CASE - CAST ( + + CASE - 78 WHEN + + 90 * - 79 THEN NULL WHEN + 13 THEN + NULLIF ( + 30, NULLIF ( 10, - 66 ) ) + + 54 / - - 26 + 16 + + ( + + 29 ) END AS INTEGER ) WHEN + 89 * - 16 / - 20 + AVG ( - 40 ) * 19 THEN 54 WHEN COUNT ( 1 ) THEN COUNT ( * ) ELSE - 64 END * ( COUNT ( * ) / 14 + 90 ) * 77 AS col0
----
12
2052
443613

query II rowsort
SELECT - 13, 2 * - 42 AS col1
----
-13
-84

query I rowsort
SELECT ALL - 42 * + NULLIF ( + 59, 66 * + 11 )
----
-2478

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

query I rowsort
SELECT NULLIF ( - + 45, + 79 ) + + ( - 76 ) AS col1
----
-121

query I rowsort
SELECT 28 + 22 AS col2
----
50

query I rowsort
SELECT 99 + 57
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1788
SELECT COALESCE ( 3, MIN( - 28 ) * 69 + - - 42 * - - ( + + 30 ), - 17 ) + - NULLIF ( + ( 81 ), - MIN( DISTINCT - 94 ) ) + - 84 - + 93 * - CAST( NULL AS SIGNED ) + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT COALESCE ( 3, MIN ( - 28 ) * 69 + - - 42 * - - ( + + 30 ), - 17 ) + - NULLIF ( + ( 81 ), - MIN ( DISTINCT - 94 ) ) + - 84 - + 93 * - CAST ( NULL AS INTEGER ) + + 96
----
NULL

query I rowsort
SELECT 18 + + 91
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-1790
SELECT ALL 74 DIV 21 * + 34 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL 74 / 21 * + 34 AS col0
----
102

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

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

query I rowsort
SELECT ALL 34 * - 91 * + 7
----
-21658

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

skipif mysql # not compatible
query I rowsort label-1793
SELECT - SUM ( ALL 30 )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1794
SELECT ALL 1 * 12 DIV + - 41 - - - 77
----
-77

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL 1 * 12 / + - 41 - - - 77
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1795
SELECT ALL - CASE 58 WHEN + - 82 THEN + CASE - 55 WHEN 25 THEN + 92 / + + CAST( - - 76 AS SIGNED ) * - 75 + - CAST( + - 32 AS SIGNED ) * + CAST( COALESCE ( - COUNT( * ), - 57 ) AS DECIMAL ) + - 75 - - 59 + + + 13 ELSE 16 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL - CASE 58 WHEN + - 82 THEN + CASE - 55 WHEN 25 THEN + 92 / + + CAST ( - - 76 AS INTEGER ) * - 75 + - CAST ( + - 32 AS INTEGER ) * + CAST ( COALESCE ( - COUNT ( * ), - 57 ) AS REAL ) + - 75 - - 59 + + + 13 ELSE 16 END END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1797
SELECT DISTINCT + COUNT( * ) * + ( 67 ) - + 51 * - - 98 * + - ( - CAST( NULL AS DECIMAL ) ) - + 9 + SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT + COUNT ( * ) * + ( 67 ) - + 51 * - - 98 * + - ( - CAST ( NULL AS REAL ) ) - + 9 + SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT ALL - COUNT( - 61 ) * - - 42
----
-42

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL - COUNT ( - 61 ) * - - 42
----
-42

query II rowsort
SELECT - 52 col2, 53
----
-52
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT + + ( - - 98 ) * + 52 * + 63 + - COUNT( - 40 )
----
321047

skipif mysql # not compatible
query I rowsort label-1800
SELECT + + ( - - 98 ) * + 52 * + 63 + - COUNT ( - 40 )
----
321047

query I rowsort
SELECT ALL - - 93 * - 12
----
-1116

query II rowsort
SELECT + + 88 AS col1, 19
----
88
19

query I rowsort
SELECT - 74 - 1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT ALL 46 * + 58 * + COUNT( * )
----
2668

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL 46 * + 58 * + COUNT ( * )
----
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT + CASE + 53 WHEN - COALESCE ( 67, + + 8 - + 73 ) THEN + - NULLIF ( COUNT( * ), - 11 ) * + 16 + - 4 + - 37 + AVG ( + 49 ) + - 5 * - 9 * + 14 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT + CASE + 53 WHEN - COALESCE ( 67, + + 8 - + 73 ) THEN + - NULLIF ( COUNT ( * ), - 11 ) * + 16 + - 4 + - 37 + AVG ( + 49 ) + - 5 * - 9 * + 14 END col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 1 - + 90 + - 4
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1808
SELECT - 28 + + + COALESCE ( - ( + ( CAST( NULL AS SIGNED ) ) ), + 20 * + - 61 )
----
-1248

skipif mysql # not compatible
query I rowsort label-1808
SELECT - 28 + + + COALESCE ( - ( + ( CAST ( NULL AS INTEGER ) ) ), + 20 * + - 61 )
----
-1248

query I rowsort
SELECT ALL - 38 - + ( - - 64 ) AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL - ( - - 26 ) * - + MIN( + 74 ) AS col2
----
1924

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL - ( - - 26 ) * - + MIN ( + 74 ) AS col2
----
1924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1811
SELECT ALL CAST( - ( 17 ) AS SIGNED ) - - COUNT( * ) * 95 AS col1, 10 AS col1
----
78
10

skipif mysql # not compatible
query II rowsort label-1811
SELECT ALL CAST ( - ( 17 ) AS INTEGER ) - - COUNT ( * ) * 95 AS col1, 10 AS col1
----
78
10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1813
SELECT - 62 DIV - 49 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1813
SELECT - 62 / - 49 AS col1
----
1

query I rowsort
SELECT ALL ( - 32 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT - COALESCE ( - ( - 19 ), - - COUNT( DISTINCT + 51 ), - 32 * ( + - 90 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-1815
SELECT - COALESCE ( - ( - 19 ), - - COUNT ( DISTINCT + 51 ), - 32 * ( + - 90 ) )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT - 6 DIV + + 19 * + 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1816
SELECT - 6 / + + 19 * + 27 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT ALL + ( + - MAX( ALL NULLIF ( - 66, - + 78 ) ) )
----
66

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL + ( + - MAX ( ALL NULLIF ( - 66, - + 78 ) ) )
----
66

query I rowsort
SELECT DISTINCT - + 16 + - 58 * - 89 AS col2
----
5146

query I rowsort
SELECT DISTINCT - 59 * - + 34 * 4
----
8024

query I rowsort
SELECT + 65 - + 79 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT ALL COUNT( * ) * 41 * - - 15 AS col1
----
615

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL COUNT ( * ) * 41 * - - 15 AS col1
----
615

onlyif mysql # DIV for integer division: 
query I rowsort label-1822
SELECT ALL + 27 DIV + 56 + + 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL + 27 / + 56 + + 44 AS col0
----
44

query I rowsort
SELECT + 70 * - 97 + + + ( + 40 ) AS col2
----
-6750

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL - MAX( + ( + - 5 ) ) * 25 * - + 74 - + 10 - MIN( 15 ) * - 56 + - 20 AS col2
----
-8440

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL - MAX ( + ( + - 5 ) ) * 25 * - + 74 - + 10 - MIN ( 15 ) * - 56 + - 20 AS col2
----
-8440

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1826
SELECT + COUNT( * ) DIV - - 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1826
SELECT + COUNT ( * ) / - - 35 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT ALL 17 DIV + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL 17 / + 40 AS col0
----
0

query I rowsort
SELECT + 43 * + 68 + + + 33 AS col0
----
2957

query II rowsort
SELECT 88 * + 51 + 89 AS col1, + ( - - 46 )
----
4577
46

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

query I rowsort
SELECT + 75 * + - 96 AS col0
----
-7200

query I rowsort
SELECT + 92 + + - AVG ( - + 89 ) + + 84 * - 60 * - CASE + 39 WHEN - 24 THEN NULL WHEN - - AVG ( ALL + 0 ) * 25 THEN NULL WHEN + + 71 THEN - 0 END * + - 77 * - 18 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1833
SELECT - 68 + - COALESCE ( + 36, + 97 ) + + - CAST( - + 52 AS SIGNED ) DIV COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-1833
SELECT - 68 + - COALESCE ( + 36, + 97 ) + + - CAST ( - + 52 AS INTEGER ) / COUNT ( * ) AS col2
----
-52

query I rowsort
SELECT DISTINCT 92 * - 92 AS col2
----
-8464

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ALL SUM( DISTINCT - + 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL SUM ( DISTINCT - + 41 ) AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1836
SELECT DISTINCT COALESCE ( + - MAX( ALL - + 39 ), ( 7 ), + + NULLIF ( + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) ) - - - 95 )
----
39

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT COALESCE ( + - MAX ( ALL - + 39 ), ( 7 ), + + NULLIF ( + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) ) - - - 95 )
----
39

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

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

query I rowsort
SELECT ALL COALESCE ( - - 7, - + 3 + + 2 * + 43 * 29 + + + 77 * - + 65 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1839
SELECT - COALESCE ( + 55, + 56, - 42 + - 44 * + COUNT( * ), 87 * + CAST( NULL AS SIGNED ), - 16 ) + 2
----
-53

skipif mysql # not compatible
query I rowsort label-1839
SELECT - COALESCE ( + 55, + 56, - 42 + - 44 * + COUNT ( * ), 87 * + CAST ( NULL AS INTEGER ), - 16 ) + 2
----
-53

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

query I rowsort
SELECT - 91 + + 92 + - - 49
----
50

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

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

query I rowsort
SELECT ALL + 12 + + 67 AS col2
----
79

query II rowsort
SELECT - - 7 + - 74 * 65 AS col1, - 68 * 45 AS col0
----
-4803
-3060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1845
SELECT DISTINCT - + ( + - MIN( + - 22 ) ) + + - 21 DIV - - 11
----
-23

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT - + ( + - MIN ( + - 22 ) ) + + - 21 / - - 11
----
-23

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

query I rowsort
SELECT DISTINCT + 10 + + 58
----
68

query I rowsort
SELECT DISTINCT + + 51 + - + 81 AS col0
----
-30

query II rowsort
SELECT - 80, 16 AS col1
----
-80
16

query I rowsort
SELECT - 80 * - + 74
----
5920

query I rowsort
SELECT ALL + 60 * 1 * 63 - + 95 * 3 col0
----
3495

query II rowsort
SELECT 71, - 61 AS col0
----
71
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-1853
SELECT COUNT( * ) + + + 80 * 29 AS col0, COUNT( * ) AS col1
----
2321
1

skipif mysql # not compatible
query II rowsort label-1853
SELECT COUNT ( * ) + + + 80 * 29 AS col0, COUNT ( * ) AS col1
----
2321
1

query I rowsort
SELECT + 16 * COALESCE ( + - 19, + 39 * + + 95 + + 87 + - + 39 ) col0
----
-304

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

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

query I rowsort
SELECT DISTINCT ( + + 12 ) - 45 + + 81
----
48

query I rowsort
SELECT 72 * - + 96 AS col2
----
-6912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1858
SELECT ALL + - 9 / - + CAST( NULL AS SIGNED ) * - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL + - 9 / - + CAST ( NULL AS INTEGER ) * - 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1859
SELECT DISTINCT + 17 DIV - - ( + COUNT( * ) ) AS col1, - ( 58 ) AS col1
----
17
-58

skipif mysql # not compatible
query II rowsort label-1859
SELECT DISTINCT + 17 / - - ( + COUNT ( * ) ) AS col1, - ( 58 ) AS col1
----
17
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT - 9 - - COUNT( * ) * - COUNT( * ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1860
SELECT - 9 - - COUNT ( * ) * - COUNT ( * ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT 10 * - - 72 + + COUNT( * )
----
721

skipif mysql # not compatible
query I rowsort label-1861
SELECT 10 * - - 72 + + COUNT ( * )
----
721

onlyif mysql # DIV for integer division: 
query I rowsort label-1862
SELECT - 89 DIV - 24 + + 75
----
78

skipif mysql # not compatible
query I rowsort label-1862
SELECT - 89 / - 24 + + 75
----
78

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

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL COUNT ( * ) * + 25 * + - 22 * 15
----
-8250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1864
SELECT - MIN( DISTINCT - + 41 ) DIV - + 79 * - - ( + 98 ) - - - 4 * + 69 * - 46
----
12696

skipif mysql # not compatible
query I rowsort label-1864
SELECT - MIN ( DISTINCT - + 41 ) / - + 79 * - - ( + 98 ) - - - 4 * + 69 * - 46
----
12696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1865
SELECT DISTINCT ( 1 ) DIV + - MIN( ALL 83 )
----
0

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT ( 1 ) / + - MIN ( ALL 83 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1866
SELECT DISTINCT ( - COUNT( * ) ) + - 9 - 11 + + 57 DIV - + 78
----
-21

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT ( - COUNT ( * ) ) + - 9 - 11 + + 57 / - + 78
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT ( + + 25 ) DIV + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1867
SELECT ( + + 25 ) / + 83 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1868
SELECT CAST( NULL AS SIGNED ) * MIN( - 74 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1868
SELECT CAST ( NULL AS INTEGER ) * MIN ( - 74 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1869
SELECT DISTINCT ( MAX( + - 54 ) ) DIV - ( - + 85 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT ( MAX ( + - 54 ) ) / - ( - + 85 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1870
SELECT DISTINCT + 31 + - 13 DIV - 69 + - CAST( + 44 AS SIGNED ) * + 94
----
-4105

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT + 31 + - 13 / - 69 + - CAST ( + 44 AS INTEGER ) * + 94
----
-4105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1871
SELECT ALL CAST( NULL AS DECIMAL ) * COUNT( * ) * - + 34
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1872
SELECT DISTINCT - - 28 + + 42 DIV ( + 93 ) DIV + COUNT( * ) AS col2, 4 DIV MIN( 84 ) AS col0
----
28
0

skipif mysql # not compatible
query II rowsort label-1872
SELECT DISTINCT - - 28 + + 42 / ( + 93 ) / + COUNT ( * ) AS col2, 4 / MIN ( 84 ) AS col0
----
28
0

query I rowsort
SELECT DISTINCT 85 + + - 63 AS col0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT + 33 DIV + 50 * 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1874
SELECT + 33 / + 50 * 3 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1875
SELECT ALL - + 62 DIV 23
----
-2

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - + 62 / 23
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT 40 + - - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1876
SELECT 40 + - - COUNT ( * ) AS col2
----
41

query II rowsort
SELECT + 47 * + ( + 92 ) - - 10 AS col2, - 53
----
4334
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-1878
SELECT - - ( COUNT( * ) ) AS col1, + 33 * - 9 AS col2
----
1
-297

skipif mysql # not compatible
query II rowsort label-1878
SELECT - - ( COUNT ( * ) ) AS col1, + 33 * - 9 AS col2
----
1
-297

query I rowsort
SELECT ALL - + 86 - 96 + 12 + 36 AS col0
----
-134

query II rowsort
SELECT - 0 - + - 75, 8 AS col0
----
75
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT 9 + + COUNT( + + 15 ) + - 48 + - 81 AS col1
----
-119

skipif mysql # not compatible
query I rowsort label-1881
SELECT 9 + + COUNT ( + + 15 ) + - 48 + - 81 AS col1
----
-119

query I rowsort
SELECT DISTINCT + 16 * 36
----
576

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

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

query I rowsort
SELECT ALL + + 7 * + + 51 AS col1
----
357

onlyif mysql # aggregate syntax: 
query II rowsort label-1885
SELECT + ( COUNT( DISTINCT + 35 ) ) * - 55, MIN( ALL - - 29 ) + 0 AS col2
----
-55
29

skipif mysql # not compatible
query II rowsort label-1885
SELECT + ( COUNT ( DISTINCT + 35 ) ) * - 55, MIN ( ALL - - 29 ) + 0 AS col2
----
-55
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1886
SELECT ALL + - 82 * NULLIF ( 47, CAST( + 74 AS SIGNED ) ) + - MAX( DISTINCT - 34 ) * - - CAST( 32 AS SIGNED ), - 18 AS col1
----
-2766
-18

skipif mysql # not compatible
query II rowsort label-1886
SELECT ALL + - 82 * NULLIF ( 47, CAST ( + 74 AS INTEGER ) ) + - MAX ( DISTINCT - 34 ) * - - CAST ( 32 AS INTEGER ), - 18 AS col1
----
-2766
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT 89 + + CASE + 62 WHEN 95 THEN NULL WHEN - - 14 + - COUNT( * ) THEN NULL ELSE 40 END
----
129

skipif mysql # not compatible
query I rowsort label-1887
SELECT 89 + + CASE + 62 WHEN 95 THEN NULL WHEN - - 14 + - COUNT ( * ) THEN NULL ELSE 40 END
----
129

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1888
SELECT 19 * + 72 + CAST( NULL AS DECIMAL ) - - - COUNT( - - 25 ) / + 6 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT 19 * + 72 + CAST ( NULL AS REAL ) - - - COUNT ( - - 25 ) / + 6 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1889
SELECT + 7 + + 61 + + COUNT( * ) DIV 58 * - + 31 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1889
SELECT + 7 + + 61 + + COUNT ( * ) / 58 * - + 31 AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1890
SELECT - + 61 * - - COUNT( DISTINCT + 0 ) + - 65 DIV COUNT( * )
----
-126

skipif mysql # not compatible
query I rowsort label-1890
SELECT - + 61 * - - COUNT ( DISTINCT + 0 ) + - 65 / COUNT ( * )
----
-126

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

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

query II rowsort
SELECT DISTINCT - 41, - 55 AS col0
----
-41
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1893
SELECT ALL 63 DIV - 33 * + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL 63 / - 33 * + + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1894
SELECT 18 * - - COUNT( * ) * + - CASE 13 WHEN - CAST( - 26 AS SIGNED ) * + CASE 56 WHEN 13 * ( + MAX( + 83 ) ) + - + 50 THEN 73 / + 16 - 53 END + - 70 * - 33 THEN NULL WHEN CAST( NULL AS SIGNED ) * - + COUNT( * ) THEN 15 END * 52 - + 92 + + CASE + 38 WHEN - + 84 THEN - 23 WHEN - + 45 * - + COUNT( * ) + COUNT( * ) * + 32 * - 94 - SUM( ALL + 47 ) THEN - 39 * 15 END * - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1894
SELECT 18 * - - COUNT ( * ) * + - CASE 13 WHEN - CAST ( - 26 AS INTEGER ) * + CASE 56 WHEN 13 * ( + MAX ( + 83 ) ) + - + 50 THEN 73 / + 16 - 53 END + - 70 * - 33 THEN NULL WHEN CAST ( NULL AS INTEGER ) * - + COUNT ( * ) THEN 15 END * 52 - + 92 + + CASE + 38 WHEN - + 84 THEN - 23 WHEN - + 45 * - + COUNT ( * ) + COUNT ( * ) * + 32 * - 94 - SUM ( ALL + 47 ) THEN - 39 * 15 END * - 64 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1895
SELECT - 22 DIV - MIN( DISTINCT + - 41 ) + + ( CAST( NULL AS SIGNED ) ), - ( + + 15 ) + - 60 DIV - 10 AS col2
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-1895
SELECT - 22 / - MIN ( DISTINCT + - 41 ) + + ( CAST ( NULL AS INTEGER ) ), - ( + + 15 ) + - 60 / - 10 AS col2
----
NULL
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1896
SELECT ALL - CASE - 32 WHEN + - 61 + - - 25 + + 90 + 18 * - CAST( NULL AS SIGNED ) THEN 30 / + 41 + + 24 + - CAST( CASE + 54 WHEN + CAST( NULL AS SIGNED ) * 8 THEN NULL ELSE 93 END AS SIGNED ) * 84 / - CASE - 44 WHEN - 6 THEN 17 * - COUNT( * ) END WHEN + + 84 * + AVG ( - 8 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL - CASE - 32 WHEN + - 61 + - - 25 + + 90 + 18 * - CAST ( NULL AS INTEGER ) THEN 30 / + 41 + + 24 + - CAST ( CASE + 54 WHEN + CAST ( NULL AS INTEGER ) * 8 THEN NULL ELSE 93 END AS INTEGER ) * 84 / - CASE - 44 WHEN - 6 THEN 17 * - COUNT ( * ) END WHEN + + 84 * + AVG ( - 8 ) THEN NULL ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT ALL - 53 * - - COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL - 53 * - - COUNT ( * ) AS col2
----
-53

query I rowsort
SELECT 8 + + 83
----
91

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

skipif mysql # not compatible
query I rowsort label-1900
SELECT 44 * - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1901
SELECT SUM( - CAST( - 92 AS SIGNED ) )
----
92

skipif mysql # not compatible
query I rowsort label-1901
SELECT SUM ( - CAST ( - 92 AS INTEGER ) )
----
92

query I rowsort
SELECT - 96 * 68 + - 82
----
-6610

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT CASE + 38 WHEN - - 83 THEN - 24 + - COUNT( * ) WHEN + 81 / COUNT( * ) - + 72 THEN NULL END * - + 48 + + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT CASE + 38 WHEN - - 83 THEN - 24 + - COUNT ( * ) WHEN + 81 / COUNT ( * ) - + 72 THEN NULL END * - + 48 + + 96 AS col1
----
NULL

query I rowsort
SELECT ALL ( - 72 ) + - 32 * + - 57
----
1752

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT ALL + CASE - + 44 WHEN - 16 + + 66 THEN - 89 END * + ( - 51 ) / + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL + CASE - + 44 WHEN - 16 + + 66 THEN - 89 END * + ( - 51 ) / + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT DISTINCT - 35 + - COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT - 35 + - COUNT ( * ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT DISTINCT + 72 * + 81 * - COUNT( * )
----
-5832

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT + 72 * + 81 * - COUNT ( * )
----
-5832

query I rowsort
SELECT ALL + 5 + - 58 + 3
----
-50

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

query II rowsort
SELECT + - 66 * - + 8 + + NULLIF ( - 45, - - 89 ) AS col0, 96 AS col2
----
483
96

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT ALL CAST( NULL AS SIGNED ) - NULLIF ( - COALESCE ( 98, - + 18 * + 68 * + AVG ( ALL - ( + + 2 ) ) * - 31 * - + 92 + 57 ), - 62 + - + 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL CAST ( NULL AS INTEGER ) - NULLIF ( - COALESCE ( 98, - + 18 * + 68 * + AVG ( ALL - ( + + 2 ) ) * - 31 * - + 92 + 57 ), - 62 + - + 70 ) AS col0
----
NULL

query I rowsort
SELECT - 45 + - - 66 + NULLIF ( - 41, + + 29 ) * + - 11
----
472

query I rowsort
SELECT DISTINCT + 11 * - 69 col0
----
-759

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1916
SELECT + 89 * 98 + - + COUNT( * ) + + ( + + ( + - 24 ) ) * - 16 + - + CAST( NULL AS DECIMAL ) + - 90 * 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT + 89 * 98 + - + COUNT ( * ) + + ( + + ( + - 24 ) ) * - 16 + - + CAST ( NULL AS REAL ) + - 90 * 49 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 67 * + 44 + - 11 AS col1
----
-2959

query I rowsort
SELECT + + 39 * + 46 AS col0
----
1794

query I rowsort
SELECT - NULLIF ( 42, + 61 + 20 )
----
-42

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

skipif mysql # not compatible
query I rowsort label-1920
SELECT - - 23 / - COUNT ( * )
----
-23

query I rowsort
SELECT - 47 + + 6
----
-41

query I rowsort
SELECT - - 4 col1
----
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1923
SELECT - 61 + CAST( NULL AS SIGNED ) * + + 81 * 83 * - AVG ( 86 ) AS col1, 10 DIV + 85 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1923
SELECT - 61 + CAST ( NULL AS INTEGER ) * + + 81 * 83 * - AVG ( 86 ) AS col1, 10 / + 85 AS col0
----
NULL
0

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

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

query II rowsort
SELECT ALL + 37, - 76 AS col0
----
37
-76

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

skipif mysql # not compatible
query I rowsort label-1926
SELECT - ( - COUNT ( * ) ) / - + 15 + - + 83
----
-83

query II rowsort
SELECT ALL + 57, - ( - 62 ) col1
----
57
62

query I rowsort
SELECT - 46 * ( + 16 )
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT DISTINCT + 63 * + + 61 + + CASE COUNT( * ) WHEN - - 71 * + 56 + 88 + + - 86 THEN + + 73 WHEN + 64 THEN - ( - 63 ) + + 87 * + 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT + 63 * + + 61 + + CASE COUNT ( * ) WHEN - - 71 * + 56 + 88 + + - 86 THEN + + 73 WHEN + 64 THEN - ( - 63 ) + + 87 * + 73 ELSE NULL END
----
NULL

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

query I rowsort
SELECT - 92 + 68 AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1932
SELECT + 17, + NULLIF ( + 87, + 38 * + COALESCE ( + + COUNT( * ), 22 - - 89 * NULLIF ( + 81, 95 * - ( - + 59 ) ) * - 33 ) - + 85 + - 67 * + - 88 + - - AVG ( 92 ) ) - - COUNT( * ) - - 76 * + CAST( NULL AS DECIMAL ) * - 84 * + 37 * + 74 AS col1
----
17
NULL

skipif mysql # not compatible
query II rowsort label-1932
SELECT + 17, + NULLIF ( + 87, + 38 * + COALESCE ( + + COUNT ( * ), 22 - - 89 * NULLIF ( + 81, 95 * - ( - + 59 ) ) * - 33 ) - + 85 + - 67 * + - 88 + - - AVG ( 92 ) ) - - COUNT ( * ) - - 76 * + CAST ( NULL AS REAL ) * - 84 * + 37 * + 74 AS col1
----
17
NULL

query I rowsort
SELECT ( + 59 ) col1
----
59

query I rowsort
SELECT DISTINCT - 85 * + + 58 * + NULLIF ( 9, + NULLIF ( + - 8, + - 47 / 55 ) ) * - 66 + 13 AS col0
----
2928433

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1935
SELECT COALESCE ( 47, - 62 + + 50 + + 87 * + + 1 * CAST( NULL AS SIGNED ) ) col0, 34 AS col2
----
47
34

skipif mysql # not compatible
query II rowsort label-1935
SELECT COALESCE ( 47, - 62 + + 50 + + 87 * + + 1 * CAST ( NULL AS INTEGER ) ) col0, 34 AS col2
----
47
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT ALL 23 * - CASE - COUNT( * ) WHEN - 1 THEN NULL WHEN + 81 THEN NULL ELSE + 32 END + - CASE + - 17 WHEN 35 THEN NULL ELSE 41 + - COUNT( * ) + - + 59 * ( + 45 ) * - 68 * ( + ( + + 46 ) ) END + + 57 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL 23 * - CASE - COUNT ( * ) WHEN - 1 THEN NULL WHEN + 81 THEN NULL ELSE + 32 END + - CASE + - 17 WHEN 35 THEN NULL ELSE 41 + - COUNT ( * ) + - + 59 * ( + 45 ) * - 68 * ( + ( + + 46 ) ) END + + 57 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1937
SELECT DISTINCT + COUNT( * ) * + 62 + + + 47 DIV - MIN( ALL 74 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT + COUNT ( * ) * + 62 + + + 47 / - MIN ( ALL 74 ) AS col1
----
62

query II rowsort
SELECT + 85 AS col2, - 0 - + 89 col2
----
85
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1939
SELECT ALL + CAST( + + CAST( + 74 AS SIGNED ) AS SIGNED ) * + 77 * - 74 * + CAST( NULL AS SIGNED ) * + COUNT( - + 26 ) + + CAST( NULL AS SIGNED ) * + 39 + - + 99 + + 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL + CAST ( + + CAST ( + 74 AS INTEGER ) AS INTEGER ) * + 77 * - 74 * + CAST ( NULL AS INTEGER ) * + COUNT ( - + 26 ) + + CAST ( NULL AS INTEGER ) * + 39 + - + 99 + + 59 col2
----
NULL

query I rowsort
SELECT NULLIF ( + 50, - 55 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL COUNT( * ) * + 8 + + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL COUNT ( * ) * + 8 + + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1942
SELECT DISTINCT - 13 DIV - COUNT( * ), 74 DIV + - 37 AS col1
----
13
-2

skipif mysql # not compatible
query II rowsort label-1942
SELECT DISTINCT - 13 / - COUNT ( * ), 74 / + - 37 AS col1
----
13
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1943
SELECT ALL + CAST( NULL AS SIGNED ), + 50 DIV - 10 AS col1
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-1943
SELECT ALL + CAST ( NULL AS INTEGER ), + 50 / - 10 AS col1
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT + + 95 * ( - COUNT( * ) ) + + 93 * + 59 AS col0
----
5392

skipif mysql # not compatible
query I rowsort label-1944
SELECT + + 95 * ( - COUNT ( * ) ) + + 93 * + 59 AS col0
----
5392

query II rowsort
SELECT + 21 AS col0, 51
----
21
51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1946
SELECT ALL + ( + 65 ) * - CAST( 40 AS SIGNED ) - - - CAST( 4 AS DECIMAL ) + - 61 + + + 32 + NULLIF ( NULLIF ( - ( + - 7 ), - + 79 ), + 82 ) + + + CAST( NULL AS SIGNED ) * 22 * - 86 * - 12 + + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL + ( + 65 ) * - CAST ( 40 AS INTEGER ) - - - CAST ( 4 AS REAL ) + - 61 + + + 32 + NULLIF ( NULLIF ( - ( + - 7 ), - + 79 ), + 82 ) + + + CAST ( NULL AS INTEGER ) * 22 * - 86 * - 12 + + 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1947
SELECT + 82 AS col0, COUNT( * ) + - - 3 * + 64 * CASE COUNT( * ) WHEN - COUNT( * ) - - 37 + - NULLIF ( + 60, - - 99 ) THEN NULL WHEN 65 THEN - 14 ELSE NULL END
----
82
NULL

skipif mysql # not compatible
query II rowsort label-1947
SELECT + 82 AS col0, COUNT ( * ) + - - 3 * + 64 * CASE COUNT ( * ) WHEN - COUNT ( * ) - - 37 + - NULLIF ( + 60, - - 99 ) THEN NULL WHEN 65 THEN - 14 ELSE NULL END
----
82
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1948
SELECT DISTINCT - 71 * - 72 + + ( 92 ), - COUNT( ALL + - CAST( - + 35 AS SIGNED ) ) AS col1
----
5204
-1

skipif mysql # not compatible
query II rowsort label-1948
SELECT DISTINCT - 71 * - 72 + + ( 92 ), - COUNT ( ALL + - CAST ( - + 35 AS INTEGER ) ) AS col1
----
5204
-1

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

query I rowsort
SELECT ALL - ( + 79 ) * + 83 AS col2
----
-6557

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT - ( + NULLIF ( - - COUNT( * ), - 53 ) ) + + - 34
----
-35

skipif mysql # not compatible
query I rowsort label-1952
SELECT - ( + NULLIF ( - - COUNT ( * ), - 53 ) ) + + - 34
----
-35

query I rowsort
SELECT + 18 - - 48 + - 83
----
-17

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

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

query II rowsort
SELECT - 62 + + 56 AS col2, 11 col0
----
-6
11

query I rowsort
SELECT + ( 90 ) + 53 AS col2
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1957
SELECT - NULLIF ( - ( + CASE MAX( + COALESCE ( + + 57, + + CAST( NULL AS SIGNED ) ) ) WHEN - - CASE + 45 WHEN - - 1 THEN NULL WHEN + 71 THEN + 63 / 83 / + - 17 + SUM( ALL + NULLIF ( + 67, 93 ) ) + 77 * + 23 + + + ( - 6 ) + + 40 * + 4 + 25 + + + 16 * COUNT( * ) * + 10 * 19 * + 82 + + 45 + + ( 17 ) * CASE - 78 WHEN COUNT( * ) THEN NULL ELSE - 33 END END * + 19 THEN ( 14 ) ELSE - 19 END ), 61 )
----
-19

skipif mysql # not compatible
query I rowsort label-1957
SELECT - NULLIF ( - ( + CASE MAX ( + COALESCE ( + + 57, + + CAST ( NULL AS INTEGER ) ) ) WHEN - - CASE + 45 WHEN - - 1 THEN NULL WHEN + 71 THEN + 63 / 83 / + - 17 + SUM ( ALL + NULLIF ( + 67, 93 ) ) + 77 * + 23 + + + ( - 6 ) + + 40 * + 4 + 25 + + + 16 * COUNT ( * ) * + 10 * 19 * + 82 + + 45 + + ( 17 ) * CASE - 78 WHEN COUNT ( * ) THEN NULL ELSE - 33 END END * + 19 THEN ( 14 ) ELSE - 19 END ), 61 )
----
-19

query I rowsort
SELECT + 59 * + 18 AS col0
----
1062

query I rowsort
SELECT + + NULLIF ( - 96, 47 + 13 - - 72 ) + - ( 19 ) * + 39
----
-837

query I rowsort
SELECT ALL + 5 * + 82
----
410

query I rowsort
SELECT ALL - 47 + + 73 * + 5
----
318

query II rowsort
SELECT + - 42 + - 73, 40 AS col2
----
-115
40

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

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

query I rowsort
SELECT DISTINCT 93 * 14
----
1302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1965
SELECT + 16 + + COUNT( * ) + - - CAST( - - 82 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-1965
SELECT + 16 + + COUNT ( * ) + - - CAST ( - - 82 AS INTEGER )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1966
SELECT + 34 * - COALESCE ( CAST( NULL AS SIGNED ), 77 + + + 64 ) * - 8 + - 49
----
38303

skipif mysql # not compatible
query I rowsort label-1966
SELECT + 34 * - COALESCE ( CAST ( NULL AS INTEGER ), 77 + + + 64 ) * - 8 + - 49
----
38303

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT + 92 + - + ( + COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-1967
SELECT + 92 + - + ( + COUNT ( * ) )
----
91

query II rowsort
SELECT DISTINCT + ( + 70 ) col2, 75 * - 39
----
70
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT + 75 / + 78 / + 47 + + CASE + + 30 WHEN + COUNT( * ) - CASE - + 25 WHEN - + 98 THEN NULL WHEN + ( - + 19 ) THEN - COUNT( * ) ELSE - 13 END THEN + COUNT( * ) + + 50 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT + 75 / + 78 / + 47 + + CASE + + 30 WHEN + COUNT ( * ) - CASE - + 25 WHEN - + 98 THEN NULL WHEN + ( - + 19 ) THEN - COUNT ( * ) ELSE - 13 END THEN + COUNT ( * ) + + 50 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1970
SELECT DISTINCT MIN( ALL + - CAST( NULL AS SIGNED ) ) * 7 * - COUNT( ALL + - 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT MIN ( ALL + - CAST ( NULL AS INTEGER ) ) * 7 * - COUNT ( ALL + - 22 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1971
SELECT ALL - MAX( ALL - + 31 ) AS col1, 55 DIV - 50
----
31
-1

skipif mysql # not compatible
query II rowsort label-1971
SELECT ALL - MAX ( ALL - + 31 ) AS col1, 55 / - 50
----
31
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1972
SELECT COUNT( * ) * + 35 * - 37 AS col1, + 28
----
-1295
28

skipif mysql # not compatible
query II rowsort label-1972
SELECT COUNT ( * ) * + 35 * - 37 AS col1, + 28
----
-1295
28

query I rowsort
SELECT ALL - 27 * ( - 96 ) * + - 81 col0
----
-209952

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT COUNT( * ) + + COUNT( * ) AS col2, - 38 - + + 65 col1
----
2
-103

skipif mysql # not compatible
query II rowsort label-1974
SELECT COUNT ( * ) + + COUNT ( * ) AS col2, - 38 - + + 65 col1
----
2
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + 66 + + + ( MIN( + 4 ) ) * - - MAX( 80 )
----
386

skipif mysql # not compatible
query I rowsort label-1975
SELECT + 66 + + + ( MIN ( + 4 ) ) * - - MAX ( 80 )
----
386

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT 15 + + + 38 + COUNT( * ) * 46
----
99

skipif mysql # not compatible
query I rowsort label-1976
SELECT 15 + + + 38 + COUNT ( * ) * 46
----
99

query I rowsort
SELECT ALL + - 67 * - 26
----
1742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1978
SELECT DISTINCT + CASE - + 48 WHEN 83 THEN + AVG ( ALL 31 ) / - - 98 * - + CAST( - - 72 AS SIGNED ) * + AVG ( ALL 35 ) + + COUNT( * ) + - AVG ( ALL CAST( + + 98 AS SIGNED ) ) / 40 + CAST( MIN( ALL - 84 ) AS SIGNED ) * - 65 END / + COUNT( * ) * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT + CASE - + 48 WHEN 83 THEN + AVG ( ALL 31 ) / - - 98 * - + CAST ( - - 72 AS INTEGER ) * + AVG ( ALL 35 ) + + COUNT ( * ) + - AVG ( ALL CAST ( + + 98 AS INTEGER ) ) / 40 + CAST ( MIN ( ALL - 84 ) AS INTEGER ) * - 65 END / + COUNT ( * ) * - 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1979
SELECT 7 DIV - 10 * 66
----
0

skipif mysql # not compatible
query I rowsort label-1979
SELECT 7 / - 10 * 66
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1980
SELECT ALL + + 0 DIV 61 * + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL + + 0 / 61 * + 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT MIN( + 76 ) * - - 37
----
2812

skipif mysql # not compatible
query I rowsort label-1981
SELECT MIN ( + 76 ) * - - 37
----
2812

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT ALL + ( 70 ) * - 71 * + + COUNT( * ) AS col2
----
-4970

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL + ( 70 ) * - 71 * + + COUNT ( * ) AS col2
----
-4970

query I rowsort
SELECT 84 + + - CASE - 36 WHEN - + 21 + 35 THEN - 65 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL - - 87 * + 44, 97 AS col2
----
3828
97

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

query I rowsort
SELECT ALL + 76 + + 51
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT DISTINCT + 18 + + + 2 + + ( - - 90 ) * - COUNT( * ) + 87 + + + 26 * - + ( 50 ) * 94 col0
----
-122183

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT + 18 + + + 2 + + ( - - 90 ) * - COUNT ( * ) + 87 + + + 26 * - + ( 50 ) * 94 col0
----
-122183

onlyif mysql # aggregate syntax: 
query III rowsort label-1988
SELECT DISTINCT MAX( ALL - 15 ) AS col1, COUNT( * ) + + 81 * + 98, + COUNT( * ) AS col0
----
-15
7939
1

skipif mysql # not compatible
query III rowsort label-1988
SELECT DISTINCT MAX ( ALL - 15 ) AS col1, COUNT ( * ) + + 81 * + 98, + COUNT ( * ) AS col0
----
-15
7939
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1989
SELECT DISTINCT - COUNT( * ) + - CAST( COUNT( * ) AS SIGNED ) * + 5 * - CASE + 23 WHEN + 44 + - 33 + + 59 THEN NULL WHEN + COUNT( * ) + + - 64 * + + 8 THEN ( - 15 ) ELSE NULL END + 35 + + 40 + + CAST( NULL AS SIGNED ) * - ( 91 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT - COUNT ( * ) + - CAST ( COUNT ( * ) AS INTEGER ) * + 5 * - CASE + 23 WHEN + 44 + - 33 + + 59 THEN NULL WHEN + COUNT ( * ) + + - 64 * + + 8 THEN ( - 15 ) ELSE NULL END + 35 + + 40 + + CAST ( NULL AS INTEGER ) * - ( 91 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT ALL COUNT( * ) + - 42 + - COALESCE ( 51, - + 70 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL COUNT ( * ) + - 42 + - COALESCE ( 51, - + 70 ) AS col1
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT 2 * SUM( - 42 ) * 72 + - 0
----
-6048

skipif mysql # not compatible
query I rowsort label-1992
SELECT 2 * SUM ( - 42 ) * 72 + - 0
----
-6048

query I rowsort
SELECT ALL 87 + - 98 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1994
SELECT DISTINCT NULLIF ( + CASE 95 WHEN + SUM( ALL - 99 ) THEN NULL WHEN 75 THEN NULL ELSE + 1 END, - CAST( - 51 AS SIGNED ) ) + + COALESCE ( - 56, + 86 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT NULLIF ( + CASE 95 WHEN + SUM ( ALL - 99 ) THEN NULL WHEN 75 THEN NULL ELSE + 1 END, - CAST ( - 51 AS INTEGER ) ) + + COALESCE ( - 56, + 86 ) AS col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1995
SELECT 21 DIV - - 62
----
0

skipif mysql # not compatible
query I rowsort label-1995
SELECT 21 / - - 62
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1996
SELECT 88 col1, - 92 * + COUNT( + 15 )
----
88
-92

skipif mysql # not compatible
query II rowsort label-1996
SELECT 88 col1, - 92 * + COUNT ( + 15 )
----
88
-92

query I rowsort
SELECT DISTINCT + 49 + 55
----
104

query II rowsort
SELECT ALL 17, 68 + - 23 col2
----
17
45

query I rowsort
SELECT 43 + + 0
----
43

query I rowsort
SELECT DISTINCT 92 - - 8 AS col2
----
100

query II rowsort
SELECT DISTINCT - 85, - 73 AS col0
----
-85
-73

query I rowsort
SELECT ALL 38 * + 45
----
1710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2003
SELECT CAST( - + SUM( + 96 ) AS SIGNED ) * + MIN( - + 54 ) AS col2
----
5184

skipif mysql # not compatible
query I rowsort label-2003
SELECT CAST ( - + SUM ( + 96 ) AS INTEGER ) * + MIN ( - + 54 ) AS col2
----
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT + 83 * - MAX( 83 ) + + - 7 AS col2
----
-6896

skipif mysql # not compatible
query I rowsort label-2004
SELECT + 83 * - MAX ( 83 ) + + - 7 AS col2
----
-6896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2005
SELECT DISTINCT 32 - + ( - MAX( DISTINCT - 39 ) ) DIV + + 63
----
32

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT 32 - + ( - MAX ( DISTINCT - 39 ) ) / + + 63
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT 59 DIV - - 19 + - 80
----
-77

skipif mysql # not compatible
query I rowsort label-2006
SELECT 59 / - - 19 + - 80
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2007
SELECT 7 col0, - COUNT( * ) + + SUM( - 17 ) + - 65 AS col0
----
7
-83

skipif mysql # not compatible
query II rowsort label-2007
SELECT 7 col0, - COUNT ( * ) + + SUM ( - 17 ) + - 65 AS col0
----
7
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2008
SELECT ALL 67 DIV + SUM( + + 79 ) * + - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL 67 / + SUM ( + + 79 ) * + - 53 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2009
SELECT CAST( ( ( + 63 ) ) AS SIGNED ) DIV - 98 col0
----
0

skipif mysql # not compatible
query I rowsort label-2009
SELECT CAST ( ( ( + 63 ) ) AS INTEGER ) / - 98 col0
----
0

query II rowsort
SELECT 12 col2, - ( - + ( + - 98 ) )
----
12
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2011
SELECT ALL - COALESCE ( - - 50, 62 DIV + 21 + + 49 * ( + - 93 ) + COUNT( * ) * - 77 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL - COALESCE ( - - 50, 62 / + 21 + + 49 * ( + - 93 ) + COUNT ( * ) * - 77 ) AS col0
----
-50

query II rowsort
SELECT + 16 AS col0, - 33
----
16
-33

query I rowsort
SELECT DISTINCT - ( 51 ) col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2014
SELECT ALL + + 65 * + + CAST( ( AVG ( + 56 ) ) AS SIGNED )
----
3640

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL + + 65 * + + CAST ( ( AVG ( + 56 ) ) AS INTEGER )
----
3640

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2017
SELECT + 14 * + + ( - 55 ) * + + COUNT( * ) * 74 + + 69 + + COUNT( * ) DIV - 16 AS col2
----
-56911

skipif mysql # not compatible
query I rowsort label-2017
SELECT + 14 * + + ( - 55 ) * + + COUNT ( * ) * 74 + + 69 + + COUNT ( * ) / - 16 AS col2
----
-56911

query I rowsort
SELECT 40 - 34
----
6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT ALL - - CAST( + + 76 AS SIGNED ) + - 11
----
65

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL - - CAST ( + + 76 AS INTEGER ) + - 11
----
65

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

skipif mysql # not compatible
query I rowsort label-2021
SELECT - ( - 78 ) - - + COUNT ( * ) AS col0
----
79

query I rowsort
SELECT - 80 * 52 AS col1
----
-4160

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT ALL + 89 DIV 36
----
2

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL + 89 / 36
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT DISTINCT + - COALESCE ( + 41, + ( + 44 ) - - - 10 + + 36 ) + - + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT + - COALESCE ( + 41, + ( + 44 ) - - - 10 + + 36 ) + - + COUNT ( * ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2026
SELECT ALL - + 60 + + ( - + CASE 88 WHEN + NULLIF ( + 9, + 70 ) THEN NULL WHEN - + COALESCE ( - + 30, + 90 + + COUNT( * ), 47 ) / + CASE - 71 WHEN 12 THEN - + 6 - - 23 * - 95 END THEN NULL WHEN + CASE - + 10 WHEN + 97 THEN 29 WHEN - COALESCE ( - + 37, 57, - MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) * + 84 ) - - 86 / - NULLIF ( - + AVG ( ALL + - CAST( NULL AS SIGNED ) ), + 24 ) / COUNT( * ) * + 75 * - + 59 THEN NULL END THEN - 62 ELSE NULL END ) - + 67 + + 73 * - AVG ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - + 60 + + ( - + CASE 88 WHEN + NULLIF ( + 9, + 70 ) THEN NULL WHEN - + COALESCE ( - + 30, + 90 + + COUNT ( * ), 47 ) / + CASE - 71 WHEN 12 THEN - + 6 - - 23 * - 95 END THEN NULL WHEN + CASE - + 10 WHEN + 97 THEN 29 WHEN - COALESCE ( - + 37, 57, - MAX ( DISTINCT + CAST ( NULL AS REAL ) ) * + 84 ) - - 86 / - NULLIF ( - + AVG ( ALL + - CAST ( NULL AS INTEGER ) ), + 24 ) / COUNT ( * ) * + 75 * - + 59 THEN NULL END THEN - 62 ELSE NULL END ) - + 67 + + 73 * - AVG ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT ALL + COUNT( ALL + 90 ) * - + 91 - - 0 + 84 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL + COUNT ( ALL + 90 ) * - + 91 - - 0 + 84 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT ALL + COALESCE ( 95, COUNT( * ), + 31 + - 11 - MAX( DISTINCT + - 94 ) ) + - + 68 + + - COUNT( * ) * - + 89 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL + COALESCE ( 95, COUNT ( * ), + 31 + - 11 - MAX ( DISTINCT + - 94 ) ) + - + 68 + + - COUNT ( * ) * - + 89 AS col0
----
116

query I rowsort
SELECT + 46 + - 65 AS col0
----
-19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2031
SELECT 11 + + 77 + - 15 DIV + - 69 + - 49
----
39

skipif mysql # not compatible
query I rowsort label-2031
SELECT 11 + + 77 + - 15 / + - 69 + - 49
----
39

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2033
SELECT 56 DIV - + 8 AS col1, 48
----
-7
48

skipif mysql # not compatible
query II rowsort label-2033
SELECT 56 / - + 8 AS col1, 48
----
-7
48

query I rowsort
SELECT 27 * + + 43
----
1161

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT 63 * - 45 * + COUNT( * ) * + 71 AS col2
----
-201285

skipif mysql # not compatible
query I rowsort label-2035
SELECT 63 * - 45 * + COUNT ( * ) * + 71 AS col2
----
-201285

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT DISTINCT COALESCE ( + MIN( + 67 ), ( 0 ) * - 5 + + 54 - - + 0 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT COALESCE ( + MIN ( + 67 ), ( 0 ) * - 5 + + 54 - - + 0 ) AS col0
----
67

query I rowsort
SELECT ALL + 35 - + 48
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT ALL + CASE - COUNT( * ) WHEN 95 THEN + 36 WHEN + + 9 THEN NULL ELSE - ( - - 89 ) END * + + 1
----
-89

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL + CASE - COUNT ( * ) WHEN 95 THEN + 36 WHEN + + 9 THEN NULL ELSE - ( - - 89 ) END * + + 1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT ALL - MAX( DISTINCT 22 ) - - - 7 + 31 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL - MAX ( DISTINCT 22 ) - - - 7 + 31 AS col1
----
2

query I rowsort
SELECT DISTINCT + 44 * 12 * + 35 AS col1
----
18480

query I rowsort
SELECT ALL CASE - 41 WHEN + 99 THEN + 74 ELSE - 7 END
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-2042
SELECT ALL NULLIF ( ( NULLIF ( COUNT( * ), + 0 ) ), - 58 / - - COUNT( * ) ), + 16 col0
----
1
16

skipif mysql # not compatible
query II rowsort label-2042
SELECT ALL NULLIF ( ( NULLIF ( COUNT ( * ), + 0 ) ), - 58 / - - COUNT ( * ) ), + 16 col0
----
1
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2043
SELECT DISTINCT + 17 - - 85 col0, ( - 59 ) * + + 59 + + 97 / - - 43 + + CASE - SUM( 91 ) WHEN CAST( NULL AS SIGNED ) + 83 + - 37 THEN - 51 WHEN + 7 THEN NULL ELSE NULL END AS col0
----
102
NULL

skipif mysql # not compatible
query II rowsort label-2043
SELECT DISTINCT + 17 - - 85 col0, ( - 59 ) * + + 59 + + 97 / - - 43 + + CASE - SUM ( 91 ) WHEN CAST ( NULL AS INTEGER ) + 83 + - 37 THEN - 51 WHEN + 7 THEN NULL ELSE NULL END AS col0
----
102
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2045
SELECT ALL + 0 DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL + 0 / 74 AS col2
----
0

query I rowsort
SELECT 47 * - 44 + + 24 * - - 1 * + 20 * 59 col1
----
26252

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT COALESCE ( + 4, ( + - 91 ) * 38 - - + 44 ) * + MAX( - COALESCE ( + 70, + - 21 + + + 54 ) )
----
-280

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT COALESCE ( + 4, ( + - 91 ) * 38 - - + 44 ) * + MAX ( - COALESCE ( + 70, + - 21 + + + 54 ) )
----
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-2048
SELECT + - ( 3 ) DIV + + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT + - ( 3 ) / + + 96 AS col0
----
0

query I rowsort
SELECT ALL 8 * - 79 * + 16 - + + 74 + - 72
----
-10258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT - - 45 + + CASE - - 70 WHEN + 94 + - 11 + - 93 THEN + COUNT( + NULLIF ( + - NULLIF ( 63, + + 22 * - 88 ), - CAST( NULL AS SIGNED ) ) ) * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT - - 45 + + CASE - - 70 WHEN + 94 + - 11 + - 93 THEN + COUNT ( + NULLIF ( + - NULLIF ( 63, + + 22 * - 88 ), - CAST ( NULL AS INTEGER ) ) ) * - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + + 70 + + + 48 + 43 AS col0
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-2052
SELECT + 98 DIV - 29 - - 75
----
72

skipif mysql # not compatible
query I rowsort label-2052
SELECT + 98 / - 29 - - 75
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2053
SELECT ALL + - 68 * + CAST( NULL AS SIGNED ) / - + COUNT( * ) + - 93 + - 26 + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL + - 68 * + CAST ( NULL AS INTEGER ) / - + COUNT ( * ) + - 93 + - 26 + 87
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2054
SELECT - + 68 * + CAST( COUNT( * ) AS SIGNED ) + + + COALESCE ( - COUNT( * ), - CASE - 0 WHEN - COUNT( * ) * - 38 THEN COUNT( * ) * - - CASE + - 54 WHEN + 15 THEN NULL ELSE - 25 * + + 56 + + CAST( - COUNT( * ) AS SIGNED ) END END * - 44, + CASE + 0 WHEN - COUNT( * ) * - COUNT( * ) THEN NULL WHEN 24 THEN 4 * - COUNT( * ) * + 84 * - - 85 + + COUNT( * ) END )
----
-69

skipif mysql # not compatible
query I rowsort label-2054
SELECT - + 68 * + CAST ( COUNT ( * ) AS INTEGER ) + + + COALESCE ( - COUNT ( * ), - CASE - 0 WHEN - COUNT ( * ) * - 38 THEN COUNT ( * ) * - - CASE + - 54 WHEN + 15 THEN NULL ELSE - 25 * + + 56 + + CAST ( - COUNT ( * ) AS INTEGER ) END END * - 44, + CASE + 0 WHEN - COUNT ( * ) * - COUNT ( * ) THEN NULL WHEN 24 THEN 4 * - COUNT ( * ) * + 84 * - - 85 + + COUNT ( * ) END )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2055
SELECT ALL - 11 * 13 DIV 1 * - COUNT( * ) + + - 45 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL - 11 * 13 / 1 * - COUNT ( * ) + + - 45 AS col2
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ALL + 60 * - COALESCE ( - 87, - MAX( - 3 ) * - - ( - 56 ), 8 ) AS col2
----
5220

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL + 60 * - COALESCE ( - 87, - MAX ( - 3 ) * - - ( - 56 ), 8 ) AS col2
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT + - MAX( DISTINCT 96 ) + - 90 AS col1
----
-186

skipif mysql # not compatible
query I rowsort label-2058
SELECT + - MAX ( DISTINCT 96 ) + - 90 AS col1
----
-186

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

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

query I rowsort
SELECT DISTINCT 66 + + 42 AS col2
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-2061
SELECT ( - ( ( + 68 ) ) ) col2, COUNT( * ) + + + 98 AS col2
----
-68
99

skipif mysql # not compatible
query II rowsort label-2061
SELECT ( - ( ( + 68 ) ) ) col2, COUNT ( * ) + + + 98 AS col2
----
-68
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT - COALESCE ( + MAX( - 26 ), - 50 ) + 22
----
48

skipif mysql # not compatible
query I rowsort label-2062
SELECT - COALESCE ( + MAX ( - 26 ), - 50 ) + 22
----
48

query I rowsort
SELECT ALL 84 + + 52
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2064
SELECT 27, + 60 * + MAX( DISTINCT - CASE + ( - 21 ) WHEN - 52 + 48 + - + 24 + ( - + CAST( NULL AS SIGNED ) ) * - 8 THEN NULL ELSE + 81 DIV - 88 END ) * - + 70 AS col2
----
27
0

skipif mysql # not compatible
query II rowsort label-2064
SELECT 27, + 60 * + MAX ( DISTINCT - CASE + ( - 21 ) WHEN - 52 + 48 + - + 24 + ( - + CAST ( NULL AS INTEGER ) ) * - 8 THEN NULL ELSE + 81 / - 88 END ) * - + 70 AS col2
----
27
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT ALL NULLIF ( + 7, + - CAST( - 1 AS SIGNED ) )
----
7

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL NULLIF ( + 7, + - CAST ( - 1 AS INTEGER ) )
----
7

query I rowsort
SELECT - 63 * - 25 AS col0
----
1575

query I rowsort
SELECT ALL 69 * + 12 * 67 * 16 AS col1
----
887616

query I rowsort
SELECT DISTINCT - 85 - - - 53
----
-138

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT - 33 * - COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-2071
SELECT - 33 * - COUNT ( * ) AS col0
----
33

query I rowsort
SELECT - COALESCE ( - + 6, + - 10 ) * + 94 * - 75
----
-42300

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

skipif mysql # not compatible
query I rowsort label-2073
SELECT - CAST ( + ( + + CAST ( ( - - MIN ( ALL 66 ) ) AS REAL ) ) AS INTEGER )
----
-66

query I rowsort
SELECT ALL - 68 * + 52
----
-3536

query I rowsort
SELECT DISTINCT - 59 * + 42
----
-2478

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT - CASE + 41 WHEN COUNT( * ) THEN + + 15 * + - 67 / - ( - 67 ) + + ( - 28 ) - 27 ELSE NULL END * - + COUNT( ( - - 5 ) ) * - + 61 * - + SUM( DISTINCT + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2076
SELECT - CASE + 41 WHEN COUNT ( * ) THEN + + 15 * + - 67 / - ( - 67 ) + + ( - 28 ) - 27 ELSE NULL END * - + COUNT ( ( - - 5 ) ) * - + 61 * - + SUM ( DISTINCT + 57 )
----
NULL

query I rowsort
SELECT ALL + 95 * - 27 AS col2
----
-2565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT - CAST( NULL AS SIGNED ) * - ( CASE 96 WHEN + 74 * + + ( - 56 ) THEN NULLIF ( - ( COUNT( ALL 72 ) ), - 59 * + 55 ) + - ( - 9 ) + - - COUNT( * ) * 95 WHEN + - 70 THEN COUNT( * ) END ) * - - CASE - - 69 WHEN + - 35 THEN CASE - + 16 WHEN - 67 + + + SUM( ALL - + CAST( NULL AS SIGNED ) ) THEN + + 3 WHEN - - 69 * + - 89 THEN NULL END ELSE COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT - CAST ( NULL AS INTEGER ) * - ( CASE 96 WHEN + 74 * + + ( - 56 ) THEN NULLIF ( - ( COUNT ( ALL 72 ) ), - 59 * + 55 ) + - ( - 9 ) + - - COUNT ( * ) * 95 WHEN + - 70 THEN COUNT ( * ) END ) * - - CASE - - 69 WHEN + - 35 THEN CASE - + 16 WHEN - 67 + + + SUM ( ALL - + CAST ( NULL AS INTEGER ) ) THEN + + 3 WHEN - - 69 * + - 89 THEN NULL END ELSE COUNT ( * ) END col1
----
NULL

query I rowsort
SELECT - - ( + 67 ) + + + 0 + 3
----
70

query I rowsort
SELECT - 99 * + + 41 AS col1
----
-4059

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT - ( - - 42 ) * - 4 + MAX( DISTINCT 47 ) - + COUNT( * ) * - 6
----
221

skipif mysql # not compatible
query I rowsort label-2081
SELECT - ( - - 42 ) * - 4 + MAX ( DISTINCT 47 ) - + COUNT ( * ) * - 6
----
221

onlyif mysql # aggregate syntax: 
query II rowsort label-2082
SELECT DISTINCT - 22 * - COUNT( * ) + + 21 AS col1, 51
----
43
51

skipif mysql # not compatible
query II rowsort label-2082
SELECT DISTINCT - 22 * - COUNT ( * ) + + 21 AS col1, 51
----
43
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2083
SELECT DISTINCT - 85 DIV 57 + COALESCE ( - SUM( + 50 ), 54 + ( - ( - 39 ) ) * + ( COUNT( * ) ) DIV - + ( - ( + + 25 ) ) - - + 1 - + 79 + + + 3, - 34 * + 17 )
----
-51

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT - 85 / 57 + COALESCE ( - SUM ( + 50 ), 54 + ( - ( - 39 ) ) * + ( COUNT ( * ) ) / - + ( - ( + + 25 ) ) - - + 1 - + 79 + + + 3, - 34 * + 17 )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2084
SELECT ALL + ( - + CAST( - 92 AS SIGNED ) ) * + 60 AS col0
----
5520

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL + ( - + CAST ( - 92 AS INTEGER ) ) * + 60 AS col0
----
5520

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT DISTINCT + 7 * + 53 * 14 + + NULLIF ( + MAX( 52 ), + - 30 ) - - 1 AS col2
----
5247

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT + 7 * + 53 * 14 + + NULLIF ( + MAX ( 52 ), + - 30 ) - - 1 AS col2
----
5247

query I rowsort
SELECT - 93 * + NULLIF ( + 80, + ( 17 ) * - + 67 ) - ( + 30 )
----
-7470

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

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT COUNT ( DISTINCT + 75 ) * + 32 AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2088
SELECT + 98 DIV - 63 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2088
SELECT + 98 / - 63 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2089
SELECT + + COUNT( * ) - + - 29 DIV + + 5 AS col2, - 54 + 1 - 1
----
6
-54

skipif mysql # not compatible
query II rowsort label-2089
SELECT + + COUNT ( * ) - + - 29 / + + 5 AS col2, - 54 + 1 - 1
----
6
-54

query I rowsort
SELECT DISTINCT + 26 * - 66
----
-1716

onlyif mysql # aggregate syntax: 
query II rowsort label-2091
SELECT DISTINCT 50 col0, + 78 + - 62 + - + COUNT( * ) * + 83 * - COUNT( * )
----
50
99

skipif mysql # not compatible
query II rowsort label-2091
SELECT DISTINCT 50 col0, + 78 + - 62 + - + COUNT ( * ) * + 83 * - COUNT ( * )
----
50
99

query II rowsort
SELECT 85 AS col0, 86
----
85
86

query III rowsort
SELECT ALL 56 AS col2, - 48, 24 AS col2
----
56
-48
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2094
SELECT DISTINCT 7 AS col1, - 38 * - 95 + + COUNT( * ) DIV COUNT( * ) col0
----
7
3611

skipif mysql # not compatible
query II rowsort label-2094
SELECT DISTINCT 7 AS col1, - 38 * - 95 + + COUNT ( * ) / COUNT ( * ) col0
----
7
3611

query I rowsort
SELECT 66 * - 35
----
-2310

query I rowsort
SELECT 36 + 50 col0
----
86

query I rowsort
SELECT 72 - 17
----
55

query II rowsort
SELECT ALL 65, + 53 + - 17 AS col1
----
65
36

query I rowsort
SELECT 81 - 26 * 49 AS col2
----
-1193

query I rowsort
SELECT DISTINCT 50 * - + 37 AS col2
----
-1850

query I rowsort
SELECT 55 + - 68 AS col0
----
-13

query I rowsort
SELECT DISTINCT 14 * + + 68 AS col2
----
952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2103
SELECT DISTINCT 73 + 33 + + - CAST( + 91 AS SIGNED ) - ( + 41 ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT 73 + 33 + + - CAST ( + 91 AS INTEGER ) - ( + 41 ) col2
----
-26

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

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

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

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT - COUNT ( * ) + + ( ( + 60 ) ) AS col1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2106
SELECT ALL - - 41 DIV - 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL - - 41 / - 47 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2107
SELECT 69 DIV - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2107
SELECT 69 / - 72 AS col1
----
0

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

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

query I rowsort
SELECT 28 + + 47 * 68 * - - 43 * 85
----
11681408

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL + - COUNT( 15 ) + - 38
----
-39

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL + - COUNT ( 15 ) + - 38
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2111
SELECT - - 60 / + 82 * + NULLIF ( + MIN( DISTINCT 58 ), 61 * + 77 * + - 8 * ( + - 21 ) ) + 71 + - 58 + + ( - - CAST( NULL AS SIGNED ) ) AS col1, 24 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-2111
SELECT - - 60 / + 82 * + NULLIF ( + MIN ( DISTINCT 58 ), 61 * + 77 * + - 8 * ( + - 21 ) ) + 71 + - 58 + + ( - - CAST ( NULL AS INTEGER ) ) AS col1, 24 AS col2
----
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT ALL - + ( + - 44 ) * + MIN( 80 ) * - - 84
----
295680

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - + ( + - 44 ) * + MIN ( 80 ) * - - 84
----
295680

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

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

query I rowsort
SELECT 87 * - 94 - 37
----
-8215

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT COUNT( * ) * 55 + - 59 - - COUNT( * ) + + 82 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2115
SELECT COUNT ( * ) * 55 + - 59 - - COUNT ( * ) + + 82 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT - - COUNT( * ) * + + 21 * + CASE - - NULLIF ( 77, - 92 * - - NULLIF ( + 64, 2 ) + - 82 ) WHEN + + 87 * + + 31 + - COUNT( * ) + - - 18 THEN - 42 + + 13 END * - - ( COUNT( * ) ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT - - COUNT ( * ) * + + 21 * + CASE - - NULLIF ( 77, - 92 * - - NULLIF ( + 64, 2 ) + - 82 ) WHEN + + 87 * + + 31 + - COUNT ( * ) + - - 18 THEN - 42 + + 13 END * - - ( COUNT ( * ) ) + + 37
----
NULL

query II rowsort
SELECT + 27 col2, - 76 AS col0
----
27
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL - SUM( DISTINCT + 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL - SUM ( DISTINCT + 65 ) AS col1
----
-65

query II rowsort
SELECT 60 * - 55 + - 9 + + 71 + + + 17 + - - ( - 2 ) + + 89 + 16, - COALESCE ( - 13, - 98 * + 54 - - + 93 ) + - 0 AS col0
----
-3118
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2120
SELECT 2 * - - 1 DIV + - 32
----
0

skipif mysql # not compatible
query I rowsort label-2120
SELECT 2 * - - 1 / + - 32
----
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2123
SELECT + 12 * NULLIF ( + + COUNT( * ), + 72 ) + + 78 AS col2, + CAST( NULL AS SIGNED )
----
90
NULL

skipif mysql # not compatible
query II rowsort label-2123
SELECT + 12 * NULLIF ( + + COUNT ( * ), + 72 ) + + 78 AS col2, + CAST ( NULL AS INTEGER )
----
90
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2124
SELECT DISTINCT + CAST( - 93 AS SIGNED ) * - - 64
----
-5952

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT + CAST ( - 93 AS INTEGER ) * - - 64
----
-5952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2125
SELECT 30 DIV - - COALESCE ( + COUNT( * ), - - CASE + + 63 WHEN + - COUNT( ALL - 75 ) THEN NULL WHEN + + 24 THEN - 20 * - 15 + 57 * 71 ELSE - 83 END * 85, - - 52 * - 47 )
----
30

skipif mysql # not compatible
query I rowsort label-2125
SELECT 30 / - - COALESCE ( + COUNT ( * ), - - CASE + + 63 WHEN + - COUNT ( ALL - 75 ) THEN NULL WHEN + + 24 THEN - 20 * - 15 + 57 * 71 ELSE - 83 END * 85, - - 52 * - 47 )
----
30

query I rowsort
SELECT + 55 * + 76 + - + 18 + - 66 AS col0
----
4096

query II rowsort
SELECT ALL 16 * + + 48 AS col0, 54 - + - 67 col0
----
768
121

query I rowsort
SELECT 81 + 29 * + 41 * + 4 AS col2
----
4837

query I rowsort
SELECT 52 * + 63 * 38 AS col1
----
124488

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2130
SELECT ALL - 13 + - 30 AS col0, CAST( + + 44 AS SIGNED )
----
-43
44

skipif mysql # not compatible
query II rowsort label-2130
SELECT ALL - 13 + - 30 AS col0, CAST ( + + 44 AS INTEGER )
----
-43
44

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

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

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

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

query I rowsort
SELECT ALL 8 + - 72 + - 9 + + ( + COALESCE ( + 69, - + 27 ) ) + - - 68
----
64

query II rowsort
SELECT DISTINCT 61 + - 46, - ( + 28 ) AS col0
----
15
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-2135
SELECT 80 * - + COUNT( * ) * - 66 AS col2, - 74 * 43 AS col1
----
5280
-3182

skipif mysql # not compatible
query II rowsort label-2135
SELECT 80 * - + COUNT ( * ) * - 66 AS col2, - 74 * 43 AS col1
----
5280
-3182

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

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

query I rowsort
SELECT ALL + 13 + - + 51 AS col1
----
-38

query I rowsort
SELECT + 8 - + NULLIF ( 25, 79 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT - 17 + - - SUM( ALL - 99 )
----
-116

skipif mysql # not compatible
query I rowsort label-2139
SELECT - 17 + - - SUM ( ALL - 99 )
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT DISTINCT + 89 DIV - - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT + 89 / - - 95 AS col2
----
0

query I rowsort
SELECT - 74 * - + CASE - 51 WHEN + - 8 THEN 7 WHEN 96 + - 60 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT COUNT( * ) + COUNT( * ) / 58 * + + CASE - 29 WHEN + - 39 THEN + - CASE + 35 WHEN + 89 + - 65 - - - 45 THEN - 4 WHEN - ( + MAX( DISTINCT + - 99 ) ) THEN NULL END * 99 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2142
SELECT COUNT ( * ) + COUNT ( * ) / 58 * + + CASE - 29 WHEN + - 39 THEN + - CASE + 35 WHEN + 89 + - 65 - - - 45 THEN - 4 WHEN - ( + MAX ( DISTINCT + - 99 ) ) THEN NULL END * 99 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT + + COALESCE ( - COUNT( 54 ), + 3 * - NULLIF ( - 66, + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2143
SELECT + + COALESCE ( - COUNT ( 54 ), + 3 * - NULLIF ( - 66, + COUNT ( * ) ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2144
SELECT DISTINCT + 28 DIV + 53 * + 59 + - ( - 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT + 28 / + 53 * + 59 + - ( - 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT DISTINCT - 48 * + - 32 * + 92 - - 84 * + + 3 * + 21 + + 11 * COUNT( * ) + 6 - 3 * + - COUNT( * ) + - 72 * + - ( + + 73 )
----
151880

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT - 48 * + - 32 * + 92 - - 84 * + + 3 * + 21 + + 11 * COUNT ( * ) + 6 - 3 * + - COUNT ( * ) + - 72 * + - ( + + 73 )
----
151880

query I rowsort
SELECT ALL - - 21 * - + 92 - + - 73 + - - 4
----
-1855

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2148
SELECT ( + COUNT( * ) ) DIV 83 + COALESCE ( + 61, - - 57 - ( - NULLIF ( 25, COALESCE ( COUNT( * ), - 84 ) ) ) + + + ( + - 18 ), - 21 ) + - COUNT( * ) + ( - NULLIF ( - 83, + ( + 36 ) + 38 * - 12 ) ) DIV MAX( + 5 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-2148
SELECT ( + COUNT ( * ) ) / 83 + COALESCE ( + 61, - - 57 - ( - NULLIF ( 25, COALESCE ( COUNT ( * ), - 84 ) ) ) + + + ( + - 18 ), - 21 ) + - COUNT ( * ) + ( - NULLIF ( - 83, + ( + 36 ) + 38 * - 12 ) ) / MAX ( + 5 ) AS col2
----
76

query I rowsort
SELECT - 47 * 81 * - - 79
----
-300753

query II rowsort
SELECT ALL - 76 * + + 3 AS col1, + ( 88 ) AS col1
----
-228
88

onlyif mysql # aggregate syntax: 
query III rowsort label-2151
SELECT + 28 - 35 * - + 97 AS col1, COUNT( * ) + + 10 + + COUNT( * ) AS col0, 76
----
3423
12
76

skipif mysql # not compatible
query III rowsort label-2151
SELECT + 28 - 35 * - + 97 AS col1, COUNT ( * ) + + 10 + + COUNT ( * ) AS col0, 76
----
3423
12
76

onlyif mysql # aggregate syntax: 
query II rowsort label-2152
SELECT ALL + COUNT( * ) col2, + 79 + - + 9 + + + 7 * + 64 AS col1
----
1
518

skipif mysql # not compatible
query II rowsort label-2152
SELECT ALL + COUNT ( * ) col2, + 79 + - + 9 + + + 7 * + 64 AS col1
----
1
518

query I rowsort
SELECT - 81 * 60
----
-4860

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL + COALESCE ( - 29, - 27, - 34 + COUNT( * ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL + COALESCE ( - 29, - 27, - 34 + COUNT ( * ) ) AS col1
----
-29

query I rowsort
SELECT ALL - 9 + + 81
----
72

query I rowsort
SELECT - 74 - - 85
----
11

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

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

query I rowsort
SELECT 46 * 91 * - + 83 + + - 12 AS col0
----
-347450

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ALL - 9 + MIN( ALL - 97 )
----
-106

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL - 9 + MIN ( ALL - 97 )
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-2160
SELECT DISTINCT + 55 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT + 55 / 93
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT - ( + - 77 ) DIV + 34
----
2

skipif mysql # not compatible
query I rowsort label-2161
SELECT - ( + - 77 ) / + 34
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2162
SELECT 53 AS col2, COUNT( * ) + 40 * + 74 + - - 29 * - COUNT( * ) + COALESCE ( + - 81, - 25 * 46 - + 30 + - COALESCE ( + 94, + ( COUNT( * ) ) + - COUNT( * ) ) ) + + + 74
----
53
2925

skipif mysql # not compatible
query II rowsort label-2162
SELECT 53 AS col2, COUNT ( * ) + 40 * + 74 + - - 29 * - COUNT ( * ) + COALESCE ( + - 81, - 25 * 46 - + 30 + - COALESCE ( + 94, + ( COUNT ( * ) ) + - COUNT ( * ) ) ) + + + 74
----
53
2925

query I rowsort
SELECT ALL + 37 * + - 3 * - 70
----
7770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2164
SELECT ALL - MIN( ALL - + CAST( + 96 AS SIGNED ) ) + 59 + + 22 * 43 * + + 82 * - 43 + - 28 DIV - 91
----
-3335441

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL - MIN ( ALL - + CAST ( + 96 AS INTEGER ) ) + 59 + + 22 * 43 * + + 82 * - 43 + - 28 / - 91
----
-3335441

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

query I rowsort
SELECT + 97 - - 97
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT ALL + 19 * - CASE + + ( + + 57 ) WHEN + 7 THEN NULL WHEN - 20 + - 45 THEN NULL ELSE - COUNT( * ) END * + 79
----
1501

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL + 19 * - CASE + + ( + + 57 ) WHEN + 7 THEN NULL WHEN - 20 + - 45 THEN NULL ELSE - COUNT ( * ) END * + 79
----
1501

query II rowsort
SELECT + 73 - 97 * + 44, - 37 AS col2
----
-4195
-37

query I rowsort
SELECT + 49 * + - 40
----
-1960

query I rowsort
SELECT ALL 55 + + 3
----
58

query I rowsort
SELECT DISTINCT - + 45 - 46 * - 0 + - - 54 + + + 67 - - 92 AS col0
----
168

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

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL COUNT ( * ) / + + 15
----
0

query II rowsort
SELECT ALL 9, - 48 AS col0
----
9
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2174
SELECT + 6 + - 59 - + CAST( + + 47 AS SIGNED ) + 80
----
-20

skipif mysql # not compatible
query I rowsort label-2174
SELECT + 6 + - 59 - + CAST ( + + 47 AS INTEGER ) + 80
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2175
SELECT ALL + 82 - - 98 * - 88, - 4 + - CAST( NULL AS SIGNED ) - 85 AS col2
----
-8542
NULL

skipif mysql # not compatible
query II rowsort label-2175
SELECT ALL + 82 - - 98 * - 88, - 4 + - CAST ( NULL AS INTEGER ) - 85 AS col2
----
-8542
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT - CASE - - ( - - 36 ) WHEN - - COALESCE ( - 51, + - 59 * - 50 + + - 94 * - 69 ) + + MIN( 21 ) THEN NULL WHEN - + 13 THEN - + 8 ELSE 32 - - 66 END
----
-98

skipif mysql # not compatible
query I rowsort label-2176
SELECT - CASE - - ( - - 36 ) WHEN - - COALESCE ( - 51, + - 59 * - 50 + + - 94 * - 69 ) + + MIN ( 21 ) THEN NULL WHEN - + 13 THEN - + 8 ELSE 32 - - 66 END
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT + 19 + - 46 - COUNT( * ) * - 64 - + + 74 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2177
SELECT + 19 + - 46 - COUNT ( * ) * - 64 - + + 74 AS col1
----
-37

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

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

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

query I rowsort
SELECT + + 21 * 1 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT DISTINCT SUM( + - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT SUM ( + - 99 )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2182
SELECT ALL COUNT( * ) * - CASE + COUNT( * ) WHEN - COALESCE ( AVG ( DISTINCT + 87 ), 74 ) * + 53 THEN NULLIF ( - 35, - 5 ) - - 24 + - CASE + 27 WHEN + + 89 - + COALESCE ( - 73, 23 ) DIV - 53 * - + 82 * 38 DIV COUNT( * ) THEN + + 71 * 83 + - MAX( DISTINCT - - 77 ) WHEN - - COUNT( - 76 ) * - - 45 - + ( + 69 ) THEN NULL ELSE NULL END DIV + 7 WHEN COUNT( * ) * - 9 + - 95 + - + 47 + NULLIF ( + + 54, COUNT( * ) ) * + NULLIF ( + + 55, MAX( ALL - - 10 ) ) * + 98 THEN NULL ELSE - 90 + 34 END
----
56

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL COUNT ( * ) * - CASE + COUNT ( * ) WHEN - COALESCE ( AVG ( DISTINCT + 87 ), 74 ) * + 53 THEN NULLIF ( - 35, - 5 ) - - 24 + - CASE + 27 WHEN + + 89 - + COALESCE ( - 73, 23 ) / - 53 * - + 82 * 38 / COUNT ( * ) THEN + + 71 * 83 + - MAX ( DISTINCT - - 77 ) WHEN - - COUNT ( - 76 ) * - - 45 - + ( + 69 ) THEN NULL ELSE NULL END / + 7 WHEN COUNT ( * ) * - 9 + - 95 + - + 47 + NULLIF ( + + 54, COUNT ( * ) ) * + NULLIF ( + + 55, MAX ( ALL - - 10 ) ) * + 98 THEN NULL ELSE - 90 + 34 END
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT + - 44 + + COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2184
SELECT + - 44 + + COUNT ( * ) AS col0
----
-43

query II rowsort
SELECT + 98 * 72 + + - 41 - - + 30 AS col2, + 94 col1
----
7045
94

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

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

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

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

query I rowsort
SELECT ALL + ( - NULLIF ( + 45, - 66 ) )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2189
SELECT + 5 + - + ( - + MAX( DISTINCT + 18 ) ) DIV - 24
----
5

skipif mysql # not compatible
query I rowsort label-2189
SELECT + 5 + - + ( - + MAX ( DISTINCT + 18 ) ) / - 24
----
5

query I rowsort
SELECT - 3 * + NULLIF ( + 96, + 31 ) + + 73
----
-215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT - CAST( - 42 AS SIGNED ) + - ( 81 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-2191
SELECT - CAST ( - 42 AS INTEGER ) + - ( 81 ) col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL COUNT( * ) * + - 70 + + 98 * MAX( - 96 ) AS col1
----
-9478

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL COUNT ( * ) * + - 70 + + 98 * MAX ( - 96 ) AS col1
----
-9478

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT + MIN( + 27 ) * - - COUNT( ALL + 59 ) + + COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-2193
SELECT + MIN ( + 27 ) * - - COUNT ( ALL + 59 ) + + COUNT ( * ) AS col0
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT + COUNT( * ) * + 88 + - - 2 + + - MIN( DISTINCT - + 6 )
----
96

skipif mysql # not compatible
query I rowsort label-2195
SELECT + COUNT ( * ) * + 88 + - - 2 + + - MIN ( DISTINCT - + 6 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT ALL 40 * + - COUNT( * ) + + + 56 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL 40 * + - COUNT ( * ) + + + 56 AS col1
----
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL 65 * + COUNT( * ) + - + 96 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL 65 * + COUNT ( * ) + - + 96 AS col2
----
-31

query I rowsort
SELECT ALL 47 * ( + 54 ) * + 17 + 9
----
43155

query I rowsort
SELECT - NULLIF ( + 1, - 13 ) + - 51 + 68
----
16

query I rowsort
SELECT DISTINCT 50 * - + 20 AS col2
----
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL + COUNT( 97 ) * 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL + COUNT ( 97 ) * 58 AS col1
----
58

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

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

query I rowsort
SELECT ALL + 14 * + + 81 + 90
----
1224

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

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT ( - ( - + CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2206
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - 23 * - 5 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-2206
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - 23 * - 5 AS col0
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2207
SELECT DISTINCT + COALESCE ( + 73, - + 71 ) DIV + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT + COALESCE ( + 73, - + 71 ) / + + COUNT ( * )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2208
SELECT DISTINCT + COUNT( * ) - - 1 AS col1, CAST( 36 AS SIGNED ) * - 88
----
2
-3168

skipif mysql # not compatible
query II rowsort label-2208
SELECT DISTINCT + COUNT ( * ) - - 1 AS col1, CAST ( 36 AS INTEGER ) * - 88
----
2
-3168

query II rowsort
SELECT ALL NULLIF ( 93, - 43 + + 70 ) AS col0, 11 AS col1
----
93
11

query I rowsort
SELECT ALL + - 72 * ( - - 67 )
----
-4824

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ALL + 94 * MIN( - 18 ) AS col0
----
-1692

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL + 94 * MIN ( - 18 ) AS col0
----
-1692

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT - - COUNT( * ) - - 4 col2
----
5

skipif mysql # not compatible
query I rowsort label-2212
SELECT - - COUNT ( * ) - - 4 col2
----
5

query I rowsort
SELECT - + 56 - - 10 AS col1
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2214
SELECT + 26 DIV + - ( - COUNT( 12 ) ) + MAX( ALL 56 )
----
82

skipif mysql # not compatible
query I rowsort label-2214
SELECT + 26 / + - ( - COUNT ( 12 ) ) + MAX ( ALL 56 )
----
82

query I rowsort
SELECT + 35 + - + 38
----
-3

query I rowsort
SELECT ( - NULLIF ( + 47, + 41 ) )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2217
SELECT ALL - COUNT( * ) * + + COUNT( + 51 ) DIV MIN( ALL + ( - + 97 ) ) + - - COALESCE ( + 99, 19 * + + 89, + - MIN( + - 72 ) DIV MAX( + 80 ) * + COUNT( * ) )
----
99

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL - COUNT ( * ) * + + COUNT ( + 51 ) / MIN ( ALL + ( - + 97 ) ) + - - COALESCE ( + 99, 19 * + + 89, + - MIN ( + - 72 ) / MAX ( + 80 ) * + COUNT ( * ) )
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-2218
SELECT - 93 DIV + 33 AS col2, 96
----
-2
96

skipif mysql # not compatible
query II rowsort label-2218
SELECT - 93 / + 33 AS col2, 96
----
-2
96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2220
SELECT - + 73 + CAST( - SUM( DISTINCT - 7 ) AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-2220
SELECT - + 73 + CAST ( - SUM ( DISTINCT - 7 ) AS INTEGER )
----
-66

query I rowsort
SELECT + 6 - - 6
----
12

query I rowsort
SELECT + 20 - + 49 * - 39 AS col0
----
1931

query I rowsort
SELECT 18 * - + 72 col2
----
-1296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2224
SELECT + + 74 * - + CAST( NULL AS SIGNED ) - 38 + CAST( NULL AS SIGNED ) / - - 24 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT + + 74 * - + CAST ( NULL AS INTEGER ) - 38 + CAST ( NULL AS INTEGER ) / - - 24 col2
----
NULL

query I rowsort
SELECT + + 77 col1
----
77

query I rowsort
SELECT ALL 93 + 4
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2227
SELECT DISTINCT 10 + COUNT( * ) DIV 85, 67 * - + 88 AS col0
----
10
-5896

skipif mysql # not compatible
query II rowsort label-2227
SELECT DISTINCT 10 + COUNT ( * ) / 85, 67 * - + 88 AS col0
----
10
-5896

query I rowsort
SELECT DISTINCT - 27 + + 39 col2
----
12

query II rowsort
SELECT + 49 AS col1, 28
----
49
28

query I rowsort
SELECT ALL 45 + - + NULLIF ( 48, + - 15 ) - 56 * - - ( + 20 ) col0
----
-1123

query I rowsort
SELECT 81 * 31 col2
----
2511

query I rowsort
SELECT ALL 9 + + 49 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT ( + 58 ) * NULLIF ( + - 34, 57 * 5 ) + - - MAX( ALL + 26 )
----
-1946

skipif mysql # not compatible
query I rowsort label-2233
SELECT ( + 58 ) * NULLIF ( + - 34, 57 * 5 ) + - - MAX ( ALL + 26 )
----
-1946

query I rowsort
SELECT 16 * + - 95
----
-1520

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

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

query I rowsort
SELECT DISTINCT 8 - + 59 AS col2
----
-51

query I rowsort
SELECT ALL + 19 * + - 61
----
-1159

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2238
SELECT CAST( NULL AS SIGNED ) - + CAST( 10 AS DECIMAL ) * - 32 / + 57 * + + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT CAST ( NULL AS INTEGER ) - + CAST ( 10 AS REAL ) * - 32 / + 57 * + + 59 AS col0
----
NULL

query I rowsort
SELECT 20 * - 52 + ( + 38 ) AS col1
----
-1002

query I rowsort
SELECT DISTINCT 53 * 36 + - 63 AS col0
----
1845

query I rowsort
SELECT ALL 58 * - - 30 AS col1
----
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT 5 * + ( - 92 ) * - COUNT( * )
----
460

skipif mysql # not compatible
query I rowsort label-2242
SELECT 5 * + ( - 92 ) * - COUNT ( * )
----
460

query I rowsort
SELECT 7 + 3 - + 92 + 20 + - 75 * + + 76
----
-5762

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT COUNT( * ) * + CASE COUNT( * ) WHEN - 80 THEN 87 * - - 93 WHEN - 72 * + 74 THEN - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT COUNT ( * ) * + CASE COUNT ( * ) WHEN - 80 THEN 87 * - - 93 WHEN - 72 * + 74 THEN - 9 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT ALL CAST( + + 96 AS SIGNED ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL CAST ( + + 96 AS INTEGER ) AS col2
----
96

query I rowsort
SELECT 7 * - 38
----
-266

query I rowsort
SELECT + 4 + 41 * - + 47 - - 72 - 14 AS col0
----
-1865

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

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

query I rowsort
SELECT DISTINCT - 56 + - 46
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT 33 + + 39 DIV - 51 + - COALESCE ( + 44, + NULLIF ( + - 95, - + 77 * + 92 * + 17 DIV 27 ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-2250
SELECT 33 + + 39 / - 51 + - COALESCE ( + 44, + NULLIF ( + - 95, - + 77 * + 92 * + 17 / 27 ) ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT - ( 31 ) + 24 + + + COUNT( * ) * - + 38 * + 14 AS col0
----
-539

skipif mysql # not compatible
query I rowsort label-2251
SELECT - ( 31 ) + 24 + + + COUNT ( * ) * - + 38 * + 14 AS col0
----
-539

query I rowsort
SELECT ALL - NULLIF ( + ( - - 85 ), + 37 )
----
-85

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + MAX( + - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + MAX ( + - 49 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT MIN( 5 ) + + SUM( DISTINCT - 17 )
----
-12

skipif mysql # not compatible
query I rowsort label-2255
SELECT MIN ( 5 ) + + SUM ( DISTINCT - 17 )
----
-12

query I rowsort
SELECT DISTINCT 39 + + + 4 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT MIN( - - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-2257
SELECT MIN ( - - 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT 71 + + CASE ( + 90 ) WHEN - MIN( + - 95 ) THEN SUM( ALL + 13 ) * + CASE + COUNT( * ) WHEN 57 / - 9 + - - 98 - COUNT( * ) - + 38 * + 1 THEN - 87 + 40 + - - 63 WHEN + + 88 * - + 37 + + COUNT( * ) * - - ( - COUNT( * ) ) THEN NULL WHEN - 23 THEN + - 25 END + - 79 END + 26 / 61 * - 31 * 42 * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT 71 + + CASE ( + 90 ) WHEN - MIN ( + - 95 ) THEN SUM ( ALL + 13 ) * + CASE + COUNT ( * ) WHEN 57 / - 9 + - - 98 - COUNT ( * ) - + 38 * + 1 THEN - 87 + 40 + - - 63 WHEN + + 88 * - + 37 + + COUNT ( * ) * - - ( - COUNT ( * ) ) THEN NULL WHEN - 23 THEN + - 25 END + - 79 END + 26 / 61 * - 31 * 42 * + 95
----
NULL

query I rowsort
SELECT ALL 3 - 26 + + 94 * - 72 AS col0
----
-6791

query II rowsort
SELECT + 70 AS col1, - 54 AS col1
----
70
-54

query III rowsort
SELECT ALL - 61 AS col2, 91, + - 92 + - 84 AS col0
----
-61
91
-176

query I rowsort
SELECT ALL 32 * + - 98 * 82 * + 82 * - 35 col2
----
738026240

query I rowsort
SELECT 6 + + 57 AS col2
----
63

query II rowsort
SELECT ALL - 77, 66 AS col2
----
-77
66

query I rowsort
SELECT DISTINCT 61 * 6 col0
----
366

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

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

query I rowsort
SELECT 90 * + 63 col1
----
5670

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2269
SELECT ALL - 60 AS col1, 34 * - COUNT( * ) + 90 AS col1
----
-60
56

skipif mysql # not compatible
query II rowsort label-2269
SELECT ALL - 60 AS col1, 34 * - COUNT ( * ) + 90 AS col1
----
-60
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2270
SELECT COUNT( * ) DIV + 17 * + + 98 * 75 AS col2, + 91
----
0
91

skipif mysql # not compatible
query II rowsort label-2270
SELECT COUNT ( * ) / + 17 * + + 98 * 75 AS col2, + 91
----
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT - 84 * - + COUNT( * ) + SUM( DISTINCT 49 ) AS col2
----
133

skipif mysql # not compatible
query I rowsort label-2271
SELECT - 84 * - + COUNT ( * ) + SUM ( DISTINCT 49 ) AS col2
----
133

query II rowsort
SELECT ALL 50 AS col0, + 97 AS col2
----
50
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT COUNT( * ) * + ( NULLIF ( - + 35, 39 * + + ( - + COUNT( * ) ) / - 33 * 43 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-2273
SELECT COUNT ( * ) * + ( NULLIF ( - + 35, 39 * + + ( - + COUNT ( * ) ) / - 33 * 43 ) )
----
-35

query I rowsort
SELECT + NULLIF ( - 81, - - 29 * 84 + - 36 - - + 39 + - 70 / + AVG ( + 1 ) * - 9 * + 48 ) + - + 85 + - 8
----
-174

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT DISTINCT 87 * ( - + MIN( - 73 ) )
----
6351

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT 87 * ( - + MIN ( - 73 ) )
----
6351

onlyif mysql # DIV for integer division: 
query I rowsort label-2277
SELECT DISTINCT 26 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT 26 / + 86
----
0

query I rowsort
SELECT ALL + - 12 + - 6 - 11 AS col1
----
-29

query I rowsort
SELECT + CASE - 5 WHEN + 16 THEN NULLIF ( 18, - 68 ) / + - COALESCE ( - + 39, - 78 ) END * 30 * 56 * - 78
----
NULL

query I rowsort
SELECT ALL + 62 * - 83 * 12 col2
----
-61752

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2282
SELECT DISTINCT - 51 + - COUNT( * ) + - 59 DIV + - 72 DIV + - COUNT( + 71 ) + - 83 AS col0
----
-135

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT - 51 + - COUNT ( * ) + - 59 / + - 72 / + - COUNT ( + 71 ) + - 83 AS col0
----
-135

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

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

query I rowsort
SELECT ALL 71 + + + 39 AS col1
----
110

query I rowsort
SELECT + 41 - + + 96
----
-55

query I rowsort
SELECT - + NULLIF ( - + 26, + + 10 ) col0
----
26

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL CASE - NULLIF ( 62, + 56 ) WHEN - 44 / 3 * - 29 THEN - 73 / - 11 * - COUNT( + + 82 ) ELSE + 75 + - - 3 + - COUNT( * ) + 83 + - 34 * 19 * 23 END
----
-14698

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL CASE - NULLIF ( 62, + 56 ) WHEN - 44 / 3 * - 29 THEN - 73 / - 11 * - COUNT ( + + 82 ) ELSE + 75 + - - 3 + - COUNT ( * ) + 83 + - 34 * 19 * 23 END
----
-14698

query I rowsort
SELECT ALL + 82 + - 37 * - ( - 60 )
----
-2138

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL - CASE 50 WHEN AVG ( - 40 ) THEN - ( 25 ) * + 31 + 48 END * + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - CASE 50 WHEN AVG ( - 40 ) THEN - ( 25 ) * + 31 + 48 END * + - COUNT ( * ) col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2294
SELECT - 56 * - 49, - COALESCE ( 20, + MAX( + 85 ) ) * + - 98 + + ( + + 60 ) * - 35 AS col0
----
2744
-140

skipif mysql # not compatible
query II rowsort label-2294
SELECT - 56 * - 49, - COALESCE ( 20, + MAX ( + 85 ) ) * + - 98 + + ( + + 60 ) * - 35 AS col0
----
2744
-140

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

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

query I rowsort
SELECT NULLIF ( - + 38, - 93 / - - 37 + 89 ) AS col1
----
-38

query I rowsort
SELECT DISTINCT - 47 * + 9 * + 18 AS col2
----
-7614

query II rowsort
SELECT - 90 * - + 18 AS col2, - NULLIF ( - - 48, + ( + 32 ) * - - 78 + + 1 ) * - 0 + + 41 AS col0
----
1620
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2299
SELECT + 71 * + COUNT( ALL 13 ) + + + ( + - CASE + 64 WHEN + CAST( - - 87 AS SIGNED ) THEN - + 26 * 2 WHEN - + SUM( DISTINCT 68 ) THEN 35 * 92 * - - ( CAST( - COALESCE ( + 67, 62 * 43 * ( + 7 ) * - + 59 + + - 11 - 97 + + 75 * + - 40 + - + 20 * + 43 * + 85 * MIN( DISTINCT - - 71 ) * + - 37 + ( + 65 ) * - - NULLIF ( + - ( - 35 ), 16 * + 78 * - 9 ) + + - ( + 10 ) ) AS DECIMAL ) ) * + 66 ELSE - - CASE ( + 41 ) WHEN 5 + + 18 THEN NULL WHEN + 3 THEN + NULLIF ( + 40, 66 * - 29 ) WHEN + 15 THEN NULL END * + ( ( - 52 ) * 85 ) + - 87 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT + 71 * + COUNT ( ALL 13 ) + + + ( + - CASE + 64 WHEN + CAST ( - - 87 AS INTEGER ) THEN - + 26 * 2 WHEN - + SUM ( DISTINCT 68 ) THEN 35 * 92 * - - ( CAST ( - COALESCE ( + 67, 62 * 43 * ( + 7 ) * - + 59 + + - 11 - 97 + + 75 * + - 40 + - + 20 * + 43 * + 85 * MIN ( DISTINCT - - 71 ) * + - 37 + ( + 65 ) * - - NULLIF ( + - ( - 35 ), 16 * + 78 * - 9 ) + + - ( + 10 ) ) AS REAL ) ) * + 66 ELSE - - CASE ( + 41 ) WHEN 5 + + 18 THEN NULL WHEN + 3 THEN + NULLIF ( + 40, 66 * - 29 ) WHEN + 15 THEN NULL END * + ( ( - 52 ) * 85 ) + - 87 END ) AS col1
----
NULL

query I rowsort
SELECT 57 * + + 26 + + 97
----
1579

query II rowsort
SELECT ( - 89 ), 93 AS col2
----
-89
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT - + 93 * - SUM( + 77 ) AS col2
----
7161

skipif mysql # not compatible
query I rowsort label-2302
SELECT - + 93 * - SUM ( + 77 ) AS col2
----
7161

query I rowsort
SELECT ALL - + 35 * + 46 + + 47 AS col1
----
-1563

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT - 45 - - - CASE - COUNT( + 9 ) WHEN + + 77 THEN NULL WHEN - + 22 THEN COUNT( - 2 ) WHEN - - NULLIF ( + + 7, - CASE - CASE + 93 WHEN + - 37 THEN NULL ELSE - COUNT( * ) + + 93 * SUM( DISTINCT + ( - - 14 ) ) END WHEN - 56 THEN + - 45 + COUNT( * ) + + 83 ELSE NULL END ) THEN NULL END * - COUNT( * ) * - 22 / - 5 - - COUNT( * ) * - + 45 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT - 45 - - - CASE - COUNT ( + 9 ) WHEN + + 77 THEN NULL WHEN - + 22 THEN COUNT ( - 2 ) WHEN - - NULLIF ( + + 7, - CASE - CASE + 93 WHEN + - 37 THEN NULL ELSE - COUNT ( * ) + + 93 * SUM ( DISTINCT + ( - - 14 ) ) END WHEN - 56 THEN + - 45 + COUNT ( * ) + + 83 ELSE NULL END ) THEN NULL END * - COUNT ( * ) * - 22 / - 5 - - COUNT ( * ) * - + 45 col0
----
NULL

query II rowsort
SELECT ALL - 71 * 44 AS col1, 83 AS col1
----
-3124
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT ALL - 84 * - 44 * - + 71 * - - 31 * COUNT( * ) + + + 12 AS col1
----
-8134884

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL - 84 * - 44 * - + 71 * - - 31 * COUNT ( * ) + + + 12 AS col1
----
-8134884

query I rowsort
SELECT + 59 + - - 3
----
62

query I rowsort
SELECT + + 62 * 61 * - 26 + + 13 + + - 91 - - + 25 AS col2
----
-98385

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

query I rowsort
SELECT - + 41 + - 39 + 42
----
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT + - 67 + NULLIF ( + - CASE 11 WHEN COUNT( * ) THEN + 12 ELSE NULL END, + MIN( - 71 ) * - 77 + + COUNT( * ) + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2312
SELECT + - 67 + NULLIF ( + - CASE 11 WHEN COUNT ( * ) THEN + 12 ELSE NULL END, + MIN ( - 71 ) * - 77 + + COUNT ( * ) + 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + + 86 - 68 + NULLIF ( + 40, - 74 * 65 + - 38 ) * - ( + 31 ) * + 78 - CASE - + 93 WHEN + COUNT( * ) THEN 4 ELSE NULL END * + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT + + 86 - 68 + NULLIF ( + 40, - 74 * 65 + - 38 ) * - ( + 31 ) * + 78 - CASE - + 93 WHEN + COUNT ( * ) THEN 4 ELSE NULL END * + 29 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2314
SELECT ALL 5 + + COUNT( * ) + - 68 + - 16 * - - 58 + - CAST( - 42 AS SIGNED ) + 83
----
-865

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL 5 + + COUNT ( * ) + - 68 + - 16 * - - 58 + - CAST ( - 42 AS INTEGER ) + 83
----
-865

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT ALL 45 DIV + 35 + + 6
----
7

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL 45 / + 35 + + 6
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2316
SELECT + COUNT( DISTINCT - - CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2316
SELECT + COUNT ( DISTINCT - - CAST ( NULL AS REAL ) ) AS col0
----
0

query I rowsort
SELECT + 89 + ( + 74 )
----
163

query I rowsort
SELECT ALL - 15 * - 37
----
555

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL 93 - - + COUNT( + 15 ) * + 83 col1
----
176

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL 93 - - + COUNT ( + 15 ) * + 83 col1
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT + ( - 43 ) + + MIN( ALL + - 55 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-2322
SELECT + ( - 43 ) + + MIN ( ALL + - 55 ) AS col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2323
SELECT - 57 + 33 DIV - 65 col2
----
-57

skipif mysql # not compatible
query I rowsort label-2323
SELECT - 57 + 33 / - 65 col2
----
-57

query II rowsort
SELECT DISTINCT 7, 97 col0
----
7
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT DISTINCT + SUM( DISTINCT 91 )
----
91

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT + SUM ( DISTINCT 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT - 38 + - ( - 55 ) * SUM( + + 55 ) AS col1
----
2987

skipif mysql # not compatible
query I rowsort label-2326
SELECT - 38 + - ( - 55 ) * SUM ( + + 55 ) AS col1
----
2987

query II rowsort
SELECT DISTINCT + 77 AS col2, - 72 AS col0
----
77
-72

query I rowsort
SELECT ALL + 60 * + - 22
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL + MAX( DISTINCT + 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL + MAX ( DISTINCT + 94 ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2330
SELECT 61 / + CAST( NULL AS SIGNED ) + + - AVG ( + - 51 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2330
SELECT 61 / + CAST ( NULL AS INTEGER ) + + - AVG ( + - 51 ) AS col2
----
NULL

query I rowsort
SELECT + 79 * - 19 AS col2
----
-1501

query II rowsort
SELECT + 35, 39 AS col0
----
35
39

query I rowsort
SELECT - 61 + - + NULLIF ( - - 46, + 68 ) - - 23 AS col1
----
-84

query II rowsort
SELECT + 38, 29 AS col2
----
38
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2335
SELECT - 31 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2335
SELECT - 31 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - + 41 + - + 80 AS col0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2337
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) DIV - ( ( 99 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) / - ( ( 99 ) )
----
0

query I rowsort
SELECT + 57 + 22
----
79

query I rowsort
SELECT ALL - + 29 + 1 AS col1
----
-28

query I rowsort
SELECT + 96 * 46 AS col1
----
4416

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2342
SELECT 52 + - COUNT( * ) DIV - + 30 * + 92 + + 53 + COUNT( * ) DIV + 42
----
105

skipif mysql # not compatible
query I rowsort label-2342
SELECT 52 + - COUNT ( * ) / - + 30 * + 92 + + 53 + COUNT ( * ) / + 42
----
105

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

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

query I rowsort
SELECT ALL + - 41 + 91
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT - + MIN( 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2345
SELECT - + MIN ( 78 ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL + NULLIF ( 65, COUNT( * ) - + COUNT( 8 ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL + NULLIF ( 65, COUNT ( * ) - + COUNT ( 8 ) ) AS col2
----
65

query I rowsort
SELECT DISTINCT 94 * + 52 AS col2
----
4888

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT DISTINCT + SUM( + ( - + 55 ) ) * 9 * 4 + + 1
----
-1979

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT + SUM ( + ( - + 55 ) ) * 9 * 4 + + 1
----
-1979

query I rowsort
SELECT + 82 + + 55 + 0 AS col1
----
137

query I rowsort
SELECT - - 23 col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2351
SELECT - - COUNT( * ), 34 * + 26 AS col0
----
1
884

skipif mysql # not compatible
query II rowsort label-2351
SELECT - - COUNT ( * ), 34 * + 26 AS col0
----
1
884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2352
SELECT + COALESCE ( 17, - 55 + ( ( + - CASE 9 WHEN 88 * - - 40 / - 53 + + 93 + + ( - - AVG ( CAST( - 50 AS SIGNED ) ) ) THEN + 80 END ) ) * + CAST( NULL AS SIGNED ), + ( + ( 84 ) ) * + 6 ) - - MIN( ALL - 42 ) * + 68 AS col1
----
-2839

skipif mysql # not compatible
query I rowsort label-2352
SELECT + COALESCE ( 17, - 55 + ( ( + - CASE 9 WHEN 88 * - - 40 / - 53 + + 93 + + ( - - AVG ( CAST ( - 50 AS INTEGER ) ) ) THEN + 80 END ) ) * + CAST ( NULL AS INTEGER ), + ( + ( 84 ) ) * + 6 ) - - MIN ( ALL - 42 ) * + 68 AS col1
----
-2839

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT 74 + - SUM( 49 ) col2
----
25

skipif mysql # not compatible
query I rowsort label-2353
SELECT 74 + - SUM ( 49 ) col2
----
25

query I rowsort
SELECT ALL 39 - NULLIF ( + 72, + - 60 ) AS col2
----
-33

query I rowsort
SELECT DISTINCT 74 * 95 AS col2
----
7030

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

query I rowsort
SELECT ALL 9 * + 88 AS col1
----
792

query I rowsort
SELECT 99 + - + 69 + 85 col0
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT 6 DIV + - COALESCE ( 26, + + 94 DIV 92 ) * - 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2359
SELECT 6 / + - COALESCE ( 26, + + 94 / 92 ) * - 31 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2360
SELECT 51 * + + MAX( - - 87 ) * CASE WHEN NOT NULL IS NULL THEN 49 ELSE + 93 END + + COUNT( * ) - 60, + 55 * 67 AS col2
----
412582
3685

skipif mysql # not compatible
query II rowsort label-2360
SELECT 51 * + + MAX ( - - 87 ) * CASE WHEN NOT NULL IS NULL THEN 49 ELSE + 93 END + + COUNT ( * ) - 60, + 55 * 67 AS col2
----
412582
3685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2361
SELECT ALL ( CAST( - COUNT( * ) AS SIGNED ) ) + + CASE - COUNT( * ) WHEN 56 THEN 29 * + - 47 WHEN - - COUNT( * ) THEN + 65 * + + 15 WHEN + 70 THEN NULL WHEN + 56 * 45 + 5 THEN + 57 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL ( CAST ( - COUNT ( * ) AS INTEGER ) ) + + CASE - COUNT ( * ) WHEN 56 THEN 29 * + - 47 WHEN - - COUNT ( * ) THEN + 65 * + + 15 WHEN + 70 THEN NULL WHEN + 56 * 45 + 5 THEN + 57 END AS col1
----
NULL

query I rowsort
SELECT ( - 53 ) - - 31 col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT DISTINCT + NULLIF ( - 95, - 55 + - COUNT( * ) ) + - COUNT( * ) + - 15 AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT + NULLIF ( - 95, - 55 + - COUNT ( * ) ) + - COUNT ( * ) + - 15 AS col1
----
-111

query I rowsort
SELECT + - COALESCE ( + 36, + + 74 ) AS col2
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2365
SELECT - 93 * + COUNT( * ) + + 22 DIV - 80 + + + ( + 66 ) * + 1 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-2365
SELECT - 93 * + COUNT ( * ) + + 22 / - 80 + + + ( + 66 ) * + 1 AS col0
----
-27

query I rowsort
SELECT - - 25 * + - 71 + - 29 * - + 40 * + - 91
----
-107335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2367
SELECT + - NULLIF ( + + NULLIF ( + COUNT( * ), COUNT( * ) - + 48 * + 24 ), + + CAST( 78 AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2367
SELECT + - NULLIF ( + + NULLIF ( + COUNT ( * ), COUNT ( * ) - + 48 * + 24 ), + + CAST ( 78 AS INTEGER ) ) AS col0
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT ALL - 39 - + 22 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL - 39 - + 22 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 30 * NULLIF ( 36, - ( 69 ) ) + + 64 AS col0
----
1144

query I rowsort
SELECT ALL - 28 * + + 23
----
-644

query I rowsort
SELECT + 44 - - ( + - 50 )
----
-6

query I rowsort
SELECT DISTINCT + 37 * - ( + + ( 56 ) ) * - 95 AS col1
----
196840

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

query I rowsort
SELECT 76 * + 48 + 92 * - 79 + - 0
----
-3620

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

query I rowsort
SELECT 38 + 21
----
59

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

query I rowsort
SELECT 84 + + 53
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT + ( ( - MIN( - 14 ) ) ) * ( - 56 ) * - 47 + + 26 AS col0
----
36874

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT + ( ( - MIN ( - 14 ) ) ) * ( - 56 ) * - 47 + + 26 AS col0
----
36874

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT COUNT( * ) + - 31 - + CASE - SUM( DISTINCT COALESCE ( + 78, + + 9 ) ) WHEN + COALESCE ( - + 94, 97, - - 33, + COUNT( * ) ) * + 86 * + 4 THEN + + ( - COUNT( * ) ) + - NULLIF ( + COUNT( * ), - - 68 ) END * - - 6 + 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2381
SELECT COUNT ( * ) + - 31 - + CASE - SUM ( DISTINCT COALESCE ( + 78, + + 9 ) ) WHEN + COALESCE ( - + 94, 97, - - 33, + COUNT ( * ) ) * + 86 * + 4 THEN + + ( - COUNT ( * ) ) + - NULLIF ( + COUNT ( * ), - - 68 ) END * - - 6 + 11 AS col1
----
NULL

query I rowsort
SELECT 6 * + 41
----
246

query I rowsort
SELECT DISTINCT - 88 * 97
----
-8536

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2385
SELECT DISTINCT 68 + + 94 * COUNT( * ) DIV - COALESCE ( - 85, - 11 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT 68 + + 94 * COUNT ( * ) / - COALESCE ( - 85, - 11 ) AS col0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT 25 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT 25 / + 43
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2387
SELECT ALL - ( 16 ) + 9 DIV - - 53 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL - ( 16 ) + 9 / - - 53 AS col2
----
-16

query I rowsort
SELECT 96 + + 49 AS col0
----
145

query I rowsort
SELECT 6 + + - 0 * + + 91 AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2390
SELECT - 22, - COUNT( DISTINCT + - 83 ) - + ( + 78 ) col0
----
-22
-79

skipif mysql # not compatible
query II rowsort label-2390
SELECT - 22, - COUNT ( DISTINCT + - 83 ) - + ( + 78 ) col0
----
-22
-79

query I rowsort
SELECT 51 * + - 47
----
-2397

onlyif mysql # DIV for integer division: 
query I rowsort label-2392
SELECT DISTINCT 85 DIV 69
----
1

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT 85 / 69
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2393
SELECT DISTINCT + 63 * NULLIF ( + COUNT( * ), - + 19 + 67 ) DIV 34 + + - COUNT( * ) - COUNT( - 37 ) * + 68 * - 65, + CAST( - 82 AS SIGNED ) + - ( COUNT( * ) ) + + MIN( ALL - - 88 ) + 77 AS col1
----
4420
82

skipif mysql # not compatible
query II rowsort label-2393
SELECT DISTINCT + 63 * NULLIF ( + COUNT ( * ), - + 19 + 67 ) / 34 + + - COUNT ( * ) - COUNT ( - 37 ) * + 68 * - 65, + CAST ( - 82 AS INTEGER ) + - ( COUNT ( * ) ) + + MIN ( ALL - - 88 ) + 77 AS col1
----
4420
82

query I rowsort
SELECT + 8 * + + 90 col1
----
720

query I rowsort
SELECT ALL 19 * - 93 * 49 AS col0
----
-86583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2396
SELECT + 25 + CAST( - 73 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-2396
SELECT + 25 + CAST ( - 73 AS INTEGER )
----
-48

query I rowsort
SELECT ALL - 31 * + - 53 * + 76 + - + 51 AS col2
----
124817

query II rowsort
SELECT ALL + 79 col1, 47
----
79
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2399
SELECT + 20 * + + COUNT( * ) + 74 AS col2, SUM( - 3 )
----
94
-3

skipif mysql # not compatible
query II rowsort label-2399
SELECT + 20 * + + COUNT ( * ) + 74 AS col2, SUM ( - 3 )
----
94
-3

query I rowsort
SELECT - 72 * - 69
----
4968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT + COALESCE ( 93, ( 71 ) * + COUNT( * ), COUNT( * ) + 13, + COUNT( * ) * ( NULLIF ( - 61, + 75 / + 75 + CAST( NULL AS SIGNED ) ) ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-2401
SELECT + COALESCE ( 93, ( 71 ) * + COUNT ( * ), COUNT ( * ) + 13, + COUNT ( * ) * ( NULLIF ( - 61, + 75 / + 75 + CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2402
SELECT + 89 DIV + MAX( DISTINCT 53 )
----
1

skipif mysql # not compatible
query I rowsort label-2402
SELECT + 89 / + MAX ( DISTINCT 53 )
----
1

query I rowsort
SELECT ( 63 ) * 98 + - 39
----
6135

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT CASE + CASE COUNT( * ) WHEN 92 THEN + 78 ELSE NULL END WHEN + 73 * 24 THEN NULL ELSE 38 END
----
38

skipif mysql # not compatible
query I rowsort label-2404
SELECT CASE + CASE COUNT ( * ) WHEN 92 THEN + 78 ELSE NULL END WHEN + 73 * 24 THEN NULL ELSE 38 END
----
38

query I rowsort
SELECT + 71 + - 64 * 72
----
-4537

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL 82 * 43 - + COUNT( * )
----
3525

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL 82 * 43 - + COUNT ( * )
----
3525

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT + CASE + COUNT( * ) WHEN + ( - 0 ) / 46 THEN NULL ELSE 17 END
----
17

skipif mysql # not compatible
query I rowsort label-2407
SELECT + CASE + COUNT ( * ) WHEN + ( - 0 ) / 46 THEN NULL ELSE 17 END
----
17

query I rowsort
SELECT ALL 24 * 81 col2
----
1944

query I rowsort
SELECT + 35 * - 28 col1
----
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT SUM( ALL ( NULLIF ( - 75, + 98 ) ) )
----
-75

skipif mysql # not compatible
query I rowsort label-2410
SELECT SUM ( ALL ( NULLIF ( - 75, + 98 ) ) )
----
-75

query I rowsort
SELECT ALL 25 * + 69 - 79 AS col0
----
1646

query I rowsort
SELECT + 99 * - 94
----
-9306

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT - 5 * SUM( + 20 ) AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-2413
SELECT - 5 * SUM ( + 20 ) AS col0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT SUM( DISTINCT + 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2414
SELECT SUM ( DISTINCT + 92 ) AS col0
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT ALL - COUNT( ALL 85 ) * 26 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL - COUNT ( ALL 85 ) * 26 AS col2
----
-26

query I rowsort
SELECT - 75 * - 0 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT ALL CASE + COUNT( * ) WHEN + 67 * 75 THEN + 64 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL CASE + COUNT ( * ) WHEN + 67 * 75 THEN + 64 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT - 39 + + ( COUNT( * ) ) * 46 col2
----
7

skipif mysql # not compatible
query I rowsort label-2420
SELECT - 39 + + ( COUNT ( * ) ) * 46 col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT DISTINCT MIN( ALL 78 )
----
78

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT MIN ( ALL 78 )
----
78

query I rowsort
SELECT ALL + ( 55 ) + + 77 col1
----
132

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2423
SELECT + COALESCE ( + 39, - 87, - CAST( NULL AS SIGNED ) DIV + 38 ) DIV + 2 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2423
SELECT + COALESCE ( + 39, - 87, - CAST ( NULL AS INTEGER ) / + 38 ) / + 2 AS col1
----
19

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

skipif mysql # not compatible
query I rowsort label-2424
SELECT - 79 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT - ( 23 ) + COUNT ( * ) / + ( 62 )
----
-23

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

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL + COUNT ( * ) / - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT - MAX( - 91 ) + 14 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-2427
SELECT - MAX ( - 91 ) + 14 AS col1
----
105

query I rowsort
SELECT ALL - 75 + 69 * 50
----
3375

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ALL - COUNT( * ) + - 18
----
-19

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL - COUNT ( * ) + - 18
----
-19

query I rowsort
SELECT - 49 * - 82 col0
----
4018

query I rowsort
SELECT DISTINCT 78 + + 51 AS col1
----
129

query I rowsort
SELECT - 84 - - 43
----
-41

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2435
SELECT - 13 - 32 DIV - 26
----
-12

skipif mysql # not compatible
query I rowsort label-2435
SELECT - 13 - 32 / - 26
----
-12

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

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

query I rowsort
SELECT - 67 + - 54 AS col0
----
-121

query I rowsort
SELECT + - 94 * 79
----
-7426

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2440
SELECT ALL 9 DIV COUNT( * ) - - COUNT( * ) * - ( - 9 )
----
18

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL 9 / COUNT ( * ) - - COUNT ( * ) * - ( - 9 )
----
18

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT DISTINCT - - 21 / + 10 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT - - 21 / + 10 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 34 * - 57 AS col2
----
-1938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2444
SELECT ALL + - CAST( + COUNT( ALL CAST( 46 AS DECIMAL ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL + - CAST ( + COUNT ( ALL CAST ( 46 AS REAL ) ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT DISTINCT - COUNT( - 42 ) * - MAX( DISTINCT - 61 + - 86 ) AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - COUNT ( - 42 ) * - MAX ( DISTINCT - 61 + - 86 ) AS col1
----
-147

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2447
SELECT DISTINCT + ( NULLIF ( CAST( - 43 AS SIGNED ), CAST( + 48 AS DECIMAL ) ) )
----
-43

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT + ( NULLIF ( CAST ( - 43 AS INTEGER ), CAST ( + 48 AS REAL ) ) )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2448
SELECT + - MAX( 11 ) DIV 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2448
SELECT + - MAX ( 11 ) / 43 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-2449
SELECT + CAST ( NULL AS INTEGER ) * + 61 + 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT + + 76 - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-2450
SELECT + + 76 - COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT + 59 * - MAX( + 32 * - 16 + 45 * + 65 ) + 35 * 61
----
-140232

skipif mysql # not compatible
query I rowsort label-2451
SELECT + 59 * - MAX ( + 32 * - 16 + 45 * + 65 ) + 35 * 61
----
-140232

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

skipif mysql # not compatible
query I rowsort label-2452
SELECT + 15 / - 77
----
0

query I rowsort
SELECT + + 32 + 81 * - 74 AS col0
----
-5962

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT ALL + 22 * COUNT( * ) + COUNT( - 15 + + 61 )
----
23

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL + 22 * COUNT ( * ) + COUNT ( - 15 + + 61 )
----
23

query I rowsort
SELECT DISTINCT + - 96 * 6 + + 12 AS col2
----
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL - - COUNT( * ) * ( 81 ) + - 68
----
13

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - - COUNT ( * ) * ( 81 ) + - 68
----
13

query I rowsort
SELECT + 42 + 9 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2458
SELECT 6 * CAST( NULL AS SIGNED ) * ( + 25 ) + 88 * - COALESCE ( 83 + - 59, + 40 / 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2458
SELECT 6 * CAST ( NULL AS INTEGER ) * ( + 25 ) + 88 * - COALESCE ( 83 + - 59, + 40 / 43 )
----
NULL

query I rowsort
SELECT ALL COALESCE ( + - 41, + 96 + - 97 * 48 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT DISTINCT - COALESCE ( - - 23, 3 - 62, COUNT( * ) * 73 ) * - 57 + 5 AS col0
----
1316

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT - COALESCE ( - - 23, 3 - 62, COUNT ( * ) * 73 ) * - 57 + 5 AS col0
----
1316

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL + 2 * ( SUM( 28 ) ) + + 37
----
93

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL + 2 * ( SUM ( 28 ) ) + + 37
----
93

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

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

query I rowsort
SELECT 43 * + - 91 + + 50
----
-3863

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL COALESCE ( - + 25, COUNT( * ) * - 6 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL COALESCE ( - + 25, COUNT ( * ) * - 6 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT DISTINCT NULLIF ( MAX( - 84 ), + ( MIN( ALL 15 ) ) + 25 * - COUNT( * ) ) * MIN( DISTINCT + 30 )
----
-2520

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT NULLIF ( MAX ( - 84 ), + ( MIN ( ALL 15 ) ) + 25 * - COUNT ( * ) ) * MIN ( DISTINCT + 30 )
----
-2520

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

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

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

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

query I rowsort
SELECT ALL - 43 + - + ( - 71 ) - - 59
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT 44 + + MIN( ALL + 61 ) * 25
----
1569

skipif mysql # not compatible
query I rowsort label-2470
SELECT 44 + + MIN ( ALL + 61 ) * 25
----
1569

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2471
SELECT COUNT( * ) + - 64 + 71 DIV - NULLIF ( 18, + 36 )
----
-66

skipif mysql # not compatible
query I rowsort label-2471
SELECT COUNT ( * ) + - 64 + 71 / - NULLIF ( 18, + 36 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT CAST( NULL AS SIGNED ) / + CASE 95 WHEN 91 + 35 THEN - 19 WHEN 57 - - ( 38 ) THEN + 37 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2472
SELECT CAST ( NULL AS INTEGER ) / + CASE 95 WHEN 91 + 35 THEN - 19 WHEN 57 - - ( 38 ) THEN + 37 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 69 * - 42 AS col0
----
-2898

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

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

query I rowsort
SELECT DISTINCT + - 44 * + 31 AS col2
----
-1364

query I rowsort
SELECT + CASE - - 58 WHEN 85 THEN NULL WHEN 22 THEN ( AVG ( 53 ) ) + 17 * + 88 END + - 67 AS col1
----
NULL

query I rowsort
SELECT 21 * 62 AS col1
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL - SUM( ALL - 56 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL - SUM ( ALL - 56 ) col0
----
56

query I rowsort
SELECT ( - 98 ) + 3 AS col1
----
-95

query I rowsort
SELECT DISTINCT + 49 * - 18 * + 69 + 38
----
-60820

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT 21 + COUNT( * ) + 71
----
93

skipif mysql # not compatible
query I rowsort label-2482
SELECT 21 + COUNT ( * ) + 71
----
93

query I rowsort
SELECT 23 * - 38
----
-874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2484
SELECT DISTINCT 61 + + CAST( 61 AS SIGNED ) + ( COUNT( * ) + 48 * 47 ) AS col0
----
2379

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT 61 + + CAST ( 61 AS INTEGER ) + ( COUNT ( * ) + 48 * 47 ) AS col0
----
2379

query I rowsort
SELECT ALL + 84 * 72
----
6048

query II rowsort
SELECT 24, 67 * - 82 * - 1 + 95 AS col0
----
24
5589

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL - CASE 97 WHEN - 90 * 53 THEN + 24 + + 95 END + COUNT( * ) / + 55 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL - CASE 97 WHEN - 90 * 53 THEN + 24 + + 95 END + COUNT ( * ) / + 55 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT ALL ( MIN( ALL + - ( + 16 ) ) ) * 73 AS col0
----
-1168

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL ( MIN ( ALL + - ( + 16 ) ) ) * 73 AS col0
----
-1168

query II rowsort
SELECT DISTINCT 3 AS col0, + 45 + - 78 + - 99 AS col2
----
3
-132

query II rowsort
SELECT DISTINCT 55 AS col2, 8 * - + 0
----
55
0

query I rowsort
SELECT ALL ( + 29 ) - + + 83 + + 65 AS col0
----
11

query I rowsort
SELECT ALL NULLIF ( 57, + 59 / 15 + - 46 ) * 98 col1
----
5586

query II rowsort
SELECT DISTINCT 14 col1, + 85
----
14
85

query II rowsort
SELECT 75, - 46 AS col0
----
75
-46

query II rowsort
SELECT ALL 18, + 55 AS col1
----
18
55

query II rowsort
SELECT - 71 AS col2, 73
----
-71
73

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

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) - - - 8
----
NULL

query I rowsort
SELECT ( - 6 ) * 2 * + 45 + - 8
----
-548

query I rowsort
SELECT 34 + + CASE - 31 WHEN - 30 THEN 18 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 76 + - ( + + 35 ) * ( 60 ) AS col2
----
-2024

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT ( + + 15 ) * + COUNT( * ) * - 42
----
-630

skipif mysql # not compatible
query I rowsort label-2501
SELECT ( + + 15 ) * + COUNT ( * ) * - 42
----
-630

query I rowsort
SELECT - ( COALESCE ( - 63, 53, 73 + 52 * 87 ) )
----
63

query II rowsort
SELECT + 11 AS col2, NULLIF ( - 30, + 47 + 29 )
----
11
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2504
SELECT - + CAST( NULL AS SIGNED ) AS col0, - 93 + - 71
----
NULL
-164

skipif mysql # not compatible
query II rowsort label-2504
SELECT - + CAST ( NULL AS INTEGER ) AS col0, - 93 + - 71
----
NULL
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT - 47 - + ( - COUNT( 77 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-2505
SELECT - 47 - + ( - COUNT ( 77 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT - - MIN( DISTINCT - 82 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2506
SELECT - - MIN ( DISTINCT - 82 ) AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2507
SELECT COALESCE ( + COALESCE ( - - 70, 90 DIV + 44 + ( COUNT( * ) ) * + CAST( NULL AS SIGNED ), - 52 ), - 72 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2507
SELECT COALESCE ( + COALESCE ( - - 70, 90 / + 44 + ( COUNT ( * ) ) * + CAST ( NULL AS INTEGER ), - 52 ), - 72 ) AS col2
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-2508
SELECT ALL - - 4 AS col0, - 8 DIV - 40
----
4
0

skipif mysql # not compatible
query II rowsort label-2508
SELECT ALL - - 4 AS col0, - 8 / - 40
----
4
0

query II rowsort
SELECT + 18, - 62 AS col0
----
18
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-2510
SELECT + - 89, 27 * - - COUNT( + 71 ) + - 68 AS col0
----
-89
-41

skipif mysql # not compatible
query II rowsort label-2510
SELECT + - 89, 27 * - - COUNT ( + 71 ) + - 68 AS col0
----
-89
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT - ( 72 ) DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-2511
SELECT - ( 72 ) / 73
----
0

query I rowsort
SELECT ALL - ( - 51 ) * - + ( 28 ) + + 19 * 86 + 14 * 12 AS col1
----
374

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

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

query I rowsort
SELECT DISTINCT ( - + 45 ) * 19 + - 11 AS col2
----
-866

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2517
SELECT ALL + COUNT( * ) * - CAST( NULL AS DECIMAL ) * 41 - - 51 + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS REAL ) * 41 - - 51 + 69 AS col2
----
NULL

query I rowsort
SELECT 48 + + + 29 + 38
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL - SUM( DISTINCT - 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - SUM ( DISTINCT - 70 ) AS col2
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT + COUNT( * ) * - 98 * - 64
----
6272

skipif mysql # not compatible
query I rowsort label-2521
SELECT + COUNT ( * ) * - 98 * - 64
----
6272

query I rowsort
SELECT - 57 * + + 81 col0
----
-4617

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

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

query I rowsort
SELECT - 9 + 38 * 83
----
3145

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT - ( - COUNT( DISTINCT + ( ( - COALESCE ( 61, 52, - 25 * - 17 ) ) ) ) ) * 63 + + 33 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-2525
SELECT - ( - COUNT ( DISTINCT + ( ( - COALESCE ( 61, 52, - 25 * - 17 ) ) ) ) ) * 63 + + 33 AS col1
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT + 61 + 87 + + + NULLIF ( - COUNT( * ), + CASE 84 WHEN + 41 + - 0 THEN - 50 + 54 WHEN 82 * - 43 THEN - ( 7 ) END + + 55 ) + 82 AS col1
----
229

skipif mysql # not compatible
query I rowsort label-2527
SELECT + 61 + 87 + + + NULLIF ( - COUNT ( * ), + CASE 84 WHEN + 41 + - 0 THEN - 50 + 54 WHEN 82 * - 43 THEN - ( 7 ) END + + 55 ) + 82 AS col1
----
229

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2528
SELECT ALL - ( - 53 ) / + COUNT( * ) + + CASE 35 WHEN 67 * + CASE 6 * 68 WHEN + 55 + + 99 THEN - 10 ELSE NULL END THEN CAST( 39 AS DECIMAL ) + - 85 / 90 WHEN 52 * + 71 THEN NULL END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL - ( - 53 ) / + COUNT ( * ) + + CASE 35 WHEN 67 * + CASE 6 * 68 WHEN + 55 + + 99 THEN - 10 ELSE NULL END THEN CAST ( 39 AS REAL ) + - 85 / 90 WHEN 52 * + 71 THEN NULL END - + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2529
SELECT - 73 / - COUNT ( * ) AS col2
----
73

query I rowsort
SELECT + 79 * + 11 * - 85
----
-73865

query I rowsort
SELECT + 31 + 19 * 45 * + 32 AS col2
----
27391

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

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

query I rowsort
SELECT ALL + 8 * - + 70 col2
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT DISTINCT COALESCE ( 68, - - 46 * + 59 + + COUNT( * ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT COALESCE ( 68, - - 46 * + 59 + + COUNT ( * ) ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2535
SELECT - COUNT( * ) * - + 69 AS col2, + 76
----
69
76

skipif mysql # not compatible
query II rowsort label-2535
SELECT - COUNT ( * ) * - + 69 AS col2, + 76
----
69
76

onlyif mysql # aggregate syntax: 
query II rowsort label-2536
SELECT - + 44 + - 87 col1, + COUNT( * ) AS col0
----
-131
1

skipif mysql # not compatible
query II rowsort label-2536
SELECT - + 44 + - 87 col1, + COUNT ( * ) AS col0
----
-131
1

query I rowsort
SELECT DISTINCT CASE 8 WHEN 23 THEN + 92 WHEN 65 THEN 49 * - 20 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2538
SELECT + - MAX( - 99 ) + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT + - MAX ( - 99 ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL + ( + 5 ) * - + COALESCE ( COUNT( * ), 51 * - 38, 66 )
----
-5

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + ( + 5 ) * - + COALESCE ( COUNT ( * ), 51 * - 38, 66 )
----
-5

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

query I rowsort
SELECT + 32 + - 9 AS col0
----
23

query I rowsort
SELECT ALL - 8 + - 20 AS col1
----
-28

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2544
SELECT ALL COUNT( * ) DIV + + MAX( ALL + 92 ) - COUNT( * ) + 97 + 91
----
187

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL COUNT ( * ) / + + MAX ( ALL + 92 ) - COUNT ( * ) + 97 + 91
----
187

query I rowsort
SELECT + - 67 * - 85 AS col0
----
5695

onlyif mysql # aggregate syntax: 
query II rowsort label-2546
SELECT - - 62 * + 14, COUNT( * ) AS col0
----
868
1

skipif mysql # not compatible
query II rowsort label-2546
SELECT - - 62 * + 14, COUNT ( * ) AS col0
----
868
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT COALESCE ( - - 25, - 22, - 6 + - 4, 85 - + ( COUNT( * ) ) ) col2
----
25

skipif mysql # not compatible
query I rowsort label-2547
SELECT COALESCE ( - - 25, - 22, - 6 + - 4, 85 - + ( COUNT ( * ) ) ) col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT ALL 34 DIV + + 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL 34 / + + 51 AS col1
----
0

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

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

query I rowsort
SELECT - 45 + 11
----
-34

query I rowsort
SELECT + 57 * 71 * + 40
----
161880

query II rowsort
SELECT DISTINCT + 51 AS col2, 54 AS col1
----
51
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2553
SELECT ALL - 4 * AVG ( DISTINCT - 11 ) * ( - - 53 ) * + 93 - - 85 * 50 - - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL - 4 * AVG ( DISTINCT - 11 ) * ( - - 53 ) * + 93 - - 85 * 50 - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2554
SELECT + 33 * - - MIN( 23 ) AS col0, - 64 AS col1
----
759
-64

skipif mysql # not compatible
query II rowsort label-2554
SELECT + 33 * - - MIN ( 23 ) AS col0, - 64 AS col1
----
759
-64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT DISTINCT + MIN( + 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT + MIN ( + 29 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL - 84 * - ( - - CASE - MAX( 57 ) WHEN + 63 / 58 + 75 THEN 42 WHEN - COALESCE ( + 76, - COUNT( * ), 35 + MAX( DISTINCT 48 ) ) THEN 1 ELSE - 22 END ) * - 40 AS col1
----
73920

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL - 84 * - ( - - CASE - MAX ( 57 ) WHEN + 63 / 58 + 75 THEN 42 WHEN - COALESCE ( + 76, - COUNT ( * ), 35 + MAX ( DISTINCT 48 ) ) THEN 1 ELSE - 22 END ) * - 40 AS col1
----
73920

query I rowsort
SELECT - 3 * + 86
----
-258

query I rowsort
SELECT - 51 * - - 2 * + 75 - 5 AS col2
----
-7655

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT NULLIF ( - COUNT( * ), - 9 - + - 75 + - COALESCE ( - 37, 93 ) + 27 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2561
SELECT NULLIF ( - COUNT ( * ), - 9 - + - 75 + - COALESCE ( - 37, 93 ) + 27 ) AS col0
----
-1

query I rowsort
SELECT - 67 * 88
----
-5896

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

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

query II rowsort
SELECT - 26 AS col0, + 76 - 43 - 33
----
-26
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL COALESCE ( COUNT( * ), + 55 + 12, 88 * - 34 - - 56 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL COALESCE ( COUNT ( * ), + 55 + 12, 88 * - 34 - - 56 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT DISTINCT NULLIF ( COUNT( * ), - 54 + AVG ( - - 52 ) + + SUM( ALL 25 + 0 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT NULLIF ( COUNT ( * ), - 54 + AVG ( - - 52 ) + + SUM ( ALL 25 + 0 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2567
SELECT DISTINCT 62 * - 48 * - CASE + COUNT( * ) WHEN + COUNT( * ) THEN + ( ( ( - 46 ) ) ) + + 51 * 6 WHEN - ( CAST( - 53 AS DECIMAL ) ) + 23 THEN - 62 ELSE NULL END + 49 AS col1
----
773809

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT 62 * - 48 * - CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN + ( ( ( - 46 ) ) ) + + 51 * 6 WHEN - ( CAST ( - 53 AS REAL ) ) + 23 THEN - 62 ELSE NULL END + 49 AS col1
----
773809

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2569
SELECT - COUNT( * ) AS col0, MAX( 28 ) + + + 82 + + 1 + + 27 * - 8 * 12 AS col2
----
-1
-2481

skipif mysql # not compatible
query II rowsort label-2569
SELECT - COUNT ( * ) AS col0, MAX ( 28 ) + + + 82 + + 1 + + 27 * - 8 * 12 AS col2
----
-1
-2481

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + 12 + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-2571
SELECT + 12 + COUNT ( * )
----
13

query I rowsort
SELECT ALL - + 4 + - 88 AS col0
----
-92

query I rowsort
SELECT ALL + 68 * + 99 AS col1
----
6732

query I rowsort
SELECT ALL + - 91 + - + 76 - 55
----
-222

query I rowsort
SELECT DISTINCT 27 + + - 3
----
24

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

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

query II rowsort
SELECT 92 AS col2, - 90
----
92
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-2578
SELECT DISTINCT + 72 col1, + COUNT( * ) AS col1
----
72
1

skipif mysql # not compatible
query II rowsort label-2578
SELECT DISTINCT + 72 col1, + COUNT ( * ) AS col1
----
72
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT CASE - 44 WHEN COUNT( * ) THEN + COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN CAST( COUNT( * ) AS SIGNED ) THEN NULL END * COALESCE ( - 86 + - ( + ( + 25 ) ), + NULLIF ( AVG ( 91 ), COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT CASE - 44 WHEN COUNT ( * ) THEN + COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN CAST ( COUNT ( * ) AS INTEGER ) THEN NULL END * COALESCE ( - 86 + - ( + ( + 25 ) ), + NULLIF ( AVG ( 91 ), COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT ALL 12 - 71 + 21 * - 25 + + ( 57 )
----
-527

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT COUNT( ALL - 63 ) * + 53
----
53

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT COUNT ( ALL - 63 ) * + 53
----
53

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2584
SELECT 15 DIV - - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2584
SELECT 15 / - - 97 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2585
SELECT DISTINCT COALESCE ( + CAST( - 51 AS SIGNED ), - - 16 * - + COUNT( * ) + - 84 ) * + ( 75 ) AS col0
----
-3825

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT COALESCE ( + CAST ( - 51 AS INTEGER ), - - 16 * - + COUNT ( * ) + - 84 ) * + ( 75 ) AS col0
----
-3825

query I rowsort
SELECT 80 * - 63 + - + 7 AS col0
----
-5047

query I rowsort
SELECT 60 * - 32 AS col2
----
-1920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT - 84 * - 68 + - COUNT( DISTINCT 47 ) - + 76
----
5635

skipif mysql # not compatible
query I rowsort label-2589
SELECT - 84 * - 68 + - COUNT ( DISTINCT 47 ) - + 76
----
5635

query I rowsort
SELECT 43 + - 33
----
10

query I rowsort
SELECT 50 * 39
----
1950

query I rowsort
SELECT ( 73 ) + + + 60 * - - CASE 46 WHEN - + 23 + 35 THEN 87 END
----
NULL

query I rowsort
SELECT DISTINCT 43 + - + 87
----
-44

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2595
SELECT + COUNT( * ) * 79 + + 68 DIV - 92 + + - 52 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2595
SELECT + COUNT ( * ) * 79 + + 68 / - 92 + + - 52 AS col2
----
27

query I rowsort
SELECT ALL 78 + - 81 AS col0
----
-3

query II rowsort
SELECT 77 AS col2, - 16
----
77
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2598
SELECT - 82 AS col2, + COUNT( - 88 ) AS col2
----
-82
1

skipif mysql # not compatible
query II rowsort label-2598
SELECT - 82 AS col2, + COUNT ( - 88 ) AS col2
----
-82
1

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

query I rowsort
SELECT ALL - 33 * + + 24 - + 45 + - 73 * + 10 * 29 AS col1
----
-22007

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT 5 + MAX( DISTINCT + 71 )
----
76

skipif mysql # not compatible
query I rowsort label-2601
SELECT 5 + MAX ( DISTINCT + 71 )
----
76

query II rowsort
SELECT 33 col1, - 27 col1
----
33
-27

query II rowsort
SELECT ALL 25 col2, + 41
----
25
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT ALL 10 * + CAST( 46 AS SIGNED )
----
460

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL 10 * + CAST ( 46 AS INTEGER )
----
460

onlyif mysql # aggregate syntax: 
query II rowsort label-2605
SELECT ALL 9, NULLIF ( + NULLIF ( + - ( - + 3 ), - MAX( DISTINCT 93 ) + + 87 * - SUM( DISTINCT ( - 71 ) ) ), COUNT( * ) + 61 ) AS col2
----
9
3

skipif mysql # not compatible
query II rowsort label-2605
SELECT ALL 9, NULLIF ( + NULLIF ( + - ( - + 3 ), - MAX ( DISTINCT 93 ) + + 87 * - SUM ( DISTINCT ( - 71 ) ) ), COUNT ( * ) + 61 ) AS col2
----
9
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2606
SELECT 75 + COALESCE ( 85, ( + 39 ) * 26 * ( 45 ) ) + - 84 DIV 13 * 35
----
-50

skipif mysql # not compatible
query I rowsort label-2606
SELECT 75 + COALESCE ( 85, ( + 39 ) * 26 * ( 45 ) ) + - 84 / 13 * 35
----
-50

query I rowsort
SELECT DISTINCT - 81 + + - 35 * + 35 AS col2
----
-1306

query I rowsort
SELECT ALL - + 1 - + 10 - + 37
----
-48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2609
SELECT DISTINCT + CASE - 80 WHEN CAST( 30 AS SIGNED ) * + 89 - + + 77 + - 16 THEN 64 ELSE 63 END DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT + CASE - 80 WHEN CAST ( 30 AS INTEGER ) * + 89 - + + 77 + - 16 THEN 64 ELSE 63 END / 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT 54 + - CASE + - 0 WHEN 53 THEN NULL WHEN - COALESCE ( 54, 22, + 54 ) THEN + COUNT( * ) WHEN 75 THEN + ( 2 ) - - 35 * + SUM( DISTINCT + 43 + - 98 * - 27 ) WHEN COALESCE ( + ( 83 ), - 1 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2610
SELECT 54 + - CASE + - 0 WHEN 53 THEN NULL WHEN - COALESCE ( 54, 22, + 54 ) THEN + COUNT ( * ) WHEN 75 THEN + ( 2 ) - - 35 * + SUM ( DISTINCT + 43 + - 98 * - 27 ) WHEN COALESCE ( + ( 83 ), - 1 ) THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ( - SUM( DISTINCT + 92 ) ) * 76 * 42 AS col0
----
-293664

skipif mysql # not compatible
query I rowsort label-2612
SELECT ( - SUM ( DISTINCT + 92 ) ) * 76 * 42 AS col0
----
-293664

query I rowsort
SELECT 44 - - + ( - + 46 )
----
-2

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

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

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

query I rowsort
SELECT ALL + - 13 * 80 AS col2
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT 92 * - MAX( 79 ) AS col1
----
-7268

skipif mysql # not compatible
query I rowsort label-2617
SELECT 92 * - MAX ( 79 ) AS col1
----
-7268

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT ALL + 96 * - 55 * + MAX( DISTINCT + + 29 ) col2
----
-153120

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL + 96 * - 55 * + MAX ( DISTINCT + + 29 ) col2
----
-153120

query I rowsort
SELECT - 83 * 11
----
-913

query I rowsort
SELECT ALL - 11 * + 53
----
-583

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT 18 * + - SUM( - 36 ) col0
----
648

skipif mysql # not compatible
query I rowsort label-2621
SELECT 18 * + - SUM ( - 36 ) col0
----
648

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT ALL - CASE WHEN NOT + 24 NOT BETWEEN - 52 * - 22 AND - COUNT( * ) * 23 THEN + 25 + + 63 ELSE 13 * + 73 END AS col1
----
-949

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL - CASE WHEN NOT + 24 NOT BETWEEN - 52 * - 22 AND - COUNT ( * ) * 23 THEN + 25 + + 63 ELSE 13 * + 73 END AS col1
----
-949

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

skipif mysql # not compatible
query I rowsort label-2624
SELECT COUNT ( * ) / 51 + - COUNT ( * ) * - + 61 * + - COUNT ( + 0 )
----
-61

query I rowsort
SELECT 44 * - 67 AS col1
----
-2948

query I rowsort
SELECT ALL 38 * - 22 AS col0
----
-836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2627
SELECT DISTINCT - CASE - + 49 WHEN - 99 THEN - 92 * - 76 * - 41 + + + MAX( DISTINCT - CASE NULLIF ( + CAST( 46 AS SIGNED ), + 36 ) WHEN 62 * 14 THEN 51 * 20 END ) WHEN - 27 THEN 88 - - 97 * 27 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT - CASE - + 49 WHEN - 99 THEN - 92 * - 76 * - 41 + + + MAX ( DISTINCT - CASE NULLIF ( + CAST ( 46 AS INTEGER ), + 36 ) WHEN 62 * 14 THEN 51 * 20 END ) WHEN - 27 THEN 88 - - 97 * 27 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL - 22 + + MIN( + 72 )
----
50

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL - 22 + + MIN ( + 72 )
----
50

query I rowsort
SELECT ALL 90 + 54
----
144

query II rowsort
SELECT ALL 2 * 26 AS col1, 7
----
52
7

query I rowsort
SELECT ALL 96 + ( 39 ) AS col1
----
135

query I rowsort
SELECT ALL 55 + - ( + 69 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-2633
SELECT + COUNT( DISTINCT 68 ) AS col1, 76
----
1
76

skipif mysql # not compatible
query II rowsort label-2633
SELECT + COUNT ( DISTINCT 68 ) AS col1, 76
----
1
76

query I rowsort
SELECT ALL 31 + + ( - 3 ) * + CASE - 18 WHEN 24 THEN + 62 * 24 END * + 28 AS col0
----
NULL

query I rowsort
SELECT 68 - 43
----
25

query I rowsort
SELECT + ( + + ( + + 15 ) ) * - + 56 + + ( - + 13 ) + + ( + 27 )
----
-826

query I rowsort
SELECT ALL 55 + - 24 - - + 20
----
51

query I rowsort
SELECT + ( + 32 ) * - 73 + + 55
----
-2281

query I rowsort
SELECT ALL 99 + - 97
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2640
SELECT DISTINCT 3 + 36 + - 21 * ( - - COUNT( * ) ) DIV - 99 * + 1 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT 3 + 36 + - 21 * ( - - COUNT ( * ) ) / - 99 * + 1 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT + COUNT( * ) + + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-2641
SELECT + COUNT ( * ) + + - 87
----
-86

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

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

query I rowsort
SELECT + 65 * + 17
----
1105

query I rowsort
SELECT + ( + - 43 ) * 83
----
-3569

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

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

query I rowsort
SELECT DISTINCT + - 86 * + - 98 AS col0
----
8428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2647
SELECT + NULLIF ( + ( 45 ), - + MAX( + + 56 ) + 8 - - CAST( 89 AS SIGNED ) ) + 48 col2
----
93

skipif mysql # not compatible
query I rowsort label-2647
SELECT + NULLIF ( + ( 45 ), - + MAX ( + + 56 ) + 8 - - CAST ( 89 AS INTEGER ) ) + 48 col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT - 1 * 62 * - - COUNT( * ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-2648
SELECT - 1 * 62 * - - COUNT ( * ) AS col0
----
-62

query I rowsort
SELECT DISTINCT 28 * + 18 * 78 AS col1
----
39312

query II rowsort
SELECT - - 56 * - 81 AS col2, + 37 AS col2
----
-4536
37

query I rowsort
SELECT + 98 - CASE WHEN ( NULL ) IS NULL THEN + 26 ELSE NULL END AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT + 57 DIV + 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2652
SELECT + 57 / + 55 AS col1
----
1

query II rowsort
SELECT - 43 AS col0, + 41
----
-43
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT - 50 + - SUM( DISTINCT 56 ) + - COUNT( * )
----
-107

skipif mysql # not compatible
query I rowsort label-2654
SELECT - 50 + - SUM ( DISTINCT 56 ) + - COUNT ( * )
----
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2655
SELECT ALL + COUNT( * ) col0, 0 * CASE - - 21 WHEN + - 63 THEN NULL ELSE - - MIN( - 74 ) DIV - - MIN( - 41 ) + 14 DIV + 87 END * - 93 + + 21 AS col1
----
1
21

skipif mysql # not compatible
query II rowsort label-2655
SELECT ALL + COUNT ( * ) col0, 0 * CASE - - 21 WHEN + - 63 THEN NULL ELSE - - MIN ( - 74 ) / - - MIN ( - 41 ) + 14 / + 87 END * - 93 + + 21 AS col1
----
1
21

query I rowsort
SELECT ALL + 26 * + 84
----
2184

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT - 27 DIV - - ( - 95 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2657
SELECT - 27 / - - ( - 95 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 62 * 1 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL - ( 57 ) * + 30 + 4 * - MAX( ALL 26 )
----
-1814

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL - ( 57 ) * + 30 + 4 * - MAX ( ALL 26 )
----
-1814

query I rowsort
SELECT DISTINCT + 35 * 30 + + 2 col0
----
1052

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT ALL 7 * 6 * 32 * + 57 + + COUNT( * ) AS col0
----
76609

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL 7 * 6 * 32 * + 57 + + COUNT ( * ) AS col0
----
76609

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

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

query I rowsort
SELECT DISTINCT 44 * - COALESCE ( - 84, - 22 * + 2 * - 21 + + 63 ) + + - 76
----
3620

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL NULLIF ( + + 52, - 97 ) * - 31 * - COALESCE ( + 54, + 63 ) + - COUNT( ALL 70 ) + + 29
----
87076

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL NULLIF ( + + 52, - 97 ) * - 31 * - COALESCE ( + 54, + 63 ) + - COUNT ( ALL 70 ) + + 29
----
87076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2667
SELECT MAX( + 60 ) * - - CAST( NULL AS SIGNED ) / 0 + + CASE 66 WHEN - 15 THEN NULL WHEN + 8 THEN + 69 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT MAX ( + 60 ) * - - CAST ( NULL AS INTEGER ) / 0 + + CASE 66 WHEN - 15 THEN NULL WHEN + 8 THEN + 69 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT + COUNT( * ) * + 92 + + 4 * + 68 AS col1
----
364

skipif mysql # not compatible
query I rowsort label-2668
SELECT + COUNT ( * ) * + 92 + + 4 * + 68 AS col1
----
364

query II rowsort
SELECT + 80 AS col2, + 18 AS col2
----
80
18

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

onlyif mysql # aggregate syntax: 
query III rowsort label-2671
SELECT ALL 56 * COUNT( * ) + 73 AS col2, 45 AS col1, - - CASE + 94 WHEN 41 / - COUNT( - ( 35 ) ) THEN - 24 - 79 END + 35 AS col0
----
129
45
NULL

skipif mysql # not compatible
query III rowsort label-2671
SELECT ALL 56 * COUNT ( * ) + 73 AS col2, 45 AS col1, - - CASE + 94 WHEN 41 / - COUNT ( - ( 35 ) ) THEN - 24 - 79 END + 35 AS col0
----
129
45
NULL

query I rowsort
SELECT DISTINCT 44 * - + 28 AS col0
----
-1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2673
SELECT DISTINCT 60 * + + MAX( DISTINCT 14 ) * 8 - - + 6 + 72 * - 89 - - - COUNT( * ) - + 65 DIV COALESCE ( 64 * - COUNT( * ), 27 - + ( + 54 ) )
----
318

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT 60 * + + MAX ( DISTINCT 14 ) * 8 - - + 6 + 72 * - 89 - - - COUNT ( * ) - + 65 / COALESCE ( 64 * - COUNT ( * ), 27 - + ( + 54 ) )
----
318

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

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

query I rowsort
SELECT DISTINCT + 23 * 11
----
253

onlyif mysql # aggregate syntax: 
query II rowsort label-2676
SELECT DISTINCT + COUNT( * ), 25 AS col1
----
1
25

skipif mysql # not compatible
query II rowsort label-2676
SELECT DISTINCT + COUNT ( * ), 25 AS col1
----
1
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2677
SELECT - 89 * - COALESCE ( - 12, + 90 ) / - CASE + CAST( - - COUNT( * ) AS SIGNED ) WHEN + 28 THEN + 72 + - 76 WHEN 43 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT - 89 * - COALESCE ( - 12, + 90 ) / - CASE + CAST ( - - COUNT ( * ) AS INTEGER ) WHEN + 28 THEN + 72 + - 76 WHEN 43 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 59 * - 3 AS col1
----
-177

query I rowsort
SELECT ALL 28 * + - 91 + + 81 * + - 81 AS col0
----
-9109

query I rowsort
SELECT DISTINCT ( - 63 ) AS col1
----
-63

query II rowsort
SELECT - 22 AS col1, 10
----
-22
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2682
SELECT + MIN( 20 ) + 39 AS col0, 5
----
59
5

skipif mysql # not compatible
query II rowsort label-2682
SELECT + MIN ( 20 ) + 39 AS col0, 5
----
59
5

query I rowsort
SELECT + + 34 * 58 + - 32 AS col0
----
1940

query I rowsort
SELECT ALL - - 5 * - 43
----
-215

onlyif mysql # aggregate syntax: 
query II rowsort label-2685
SELECT ALL 83, - COUNT( * ) + + - 65 + + 25 * 16 AS col2
----
83
334

skipif mysql # not compatible
query II rowsort label-2685
SELECT ALL 83, - COUNT ( * ) + + - 65 + + 25 * 16 AS col2
----
83
334

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2686
SELECT + + MAX( DISTINCT + + 33 ) DIV - + 95, + CASE - + 26 WHEN + 38 * - 8 THEN NULL WHEN - ( - 20 ) + 26 DIV ( + ( - 25 ) ) THEN 10 END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2686
SELECT + + MAX ( DISTINCT + + 33 ) / - + 95, + CASE - + 26 WHEN + 38 * - 8 THEN NULL WHEN - ( - 20 ) + 26 / ( + ( - 25 ) ) THEN 10 END AS col1
----
0
NULL

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

query II rowsort
SELECT - - 22 AS col1, + 61 + 47 + 32 col2
----
22
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2689
SELECT DISTINCT - COUNT( * ) DIV + + 66 + - - SUM( + + ( 84 ) ) + - 86 * + + 63 + 81 AS col1
----
-5253

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT - COUNT ( * ) / + + 66 + - - SUM ( + + ( 84 ) ) + - 86 * + + 63 + 81 AS col1
----
-5253

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2690
SELECT COALESCE ( + COALESCE ( + NULLIF ( 51, + - 56 ), CAST( NULL AS SIGNED ), + 28 ), + 73 DIV - 4 )
----
51

skipif mysql # not compatible
query I rowsort label-2690
SELECT COALESCE ( + COALESCE ( + NULLIF ( 51, + - 56 ), CAST ( NULL AS INTEGER ), + 28 ), + 73 / - 4 )
----
51

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

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

query I rowsort
SELECT ALL 58 + - 29
----
29

query I rowsort
SELECT + 75 + 28 * - - 27 col1
----
831

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT + MAX( DISTINCT 97 ) + + + 79
----
176

skipif mysql # not compatible
query I rowsort label-2695
SELECT + MAX ( DISTINCT 97 ) + + + 79
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-2696
SELECT - ( MIN( + 82 ) ) + - 45 + - - 13 * + COUNT( * ) * - 35 AS col2, ( + 8 ) * 12 AS col2
----
-582
96

skipif mysql # not compatible
query II rowsort label-2696
SELECT - ( MIN ( + 82 ) ) + - 45 + - - 13 * + COUNT ( * ) * - 35 AS col2, ( + 8 ) * 12 AS col2
----
-582
96

query II rowsort
SELECT ALL 62 * 90 col0, - 70 AS col2
----
5580
-70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2700
SELECT DISTINCT CAST( + - COUNT( DISTINCT + 28 ) AS SIGNED ) + + 70 AS col1, - 18
----
69
-18

skipif mysql # not compatible
query II rowsort label-2700
SELECT DISTINCT CAST ( + - COUNT ( DISTINCT + 28 ) AS INTEGER ) + + 70 AS col1, - 18
----
69
-18

query I rowsort
SELECT DISTINCT - 76 + - + 10 AS col2
----
-86

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

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

query I rowsort
SELECT + 21 + + + 28 + - 81
----
-32

query I rowsort
SELECT ALL 26 * 10 * + 53
----
13780

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

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL COUNT ( DISTINCT + - 30 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2706
SELECT - MAX( + - 67 ) + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT - MAX ( + - 67 ) + - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL + NULLIF ( - 47, + ( - + MAX( DISTINCT + - 80 ) ) + + 85 + 67 * + COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL + NULLIF ( - 47, + ( - + MAX ( DISTINCT + - 80 ) ) + + 85 + 67 * + COUNT ( * ) )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2708
SELECT ALL 40 DIV + 89 + + 37 + ( 2 ) + - - 88 + 39 - - 87 * + 55 * + COUNT( * ) * + 4 AS col1
----
19306

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL 40 / + 89 + + 37 + ( 2 ) + - - 88 + 39 - - 87 * + 55 * + COUNT ( * ) * + 4 AS col1
----
19306

query I rowsort
SELECT + 85 * + 92
----
7820

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2710
SELECT ALL COUNT( * ) DIV - - 93 * + COUNT( * ) + 12, - 95 * - 75 AS col1
----
12
7125

skipif mysql # not compatible
query II rowsort label-2710
SELECT ALL COUNT ( * ) / - - 93 * + COUNT ( * ) + 12, - 95 * - 75 AS col1
----
12
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT + ( COUNT( * ) ) * 45 + + + CASE + 18 WHEN - 74 THEN + - 54 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT + ( COUNT ( * ) ) * 45 + + + CASE + 18 WHEN - 74 THEN + - 54 END AS col2
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 48, - - 61 * - 3 ) AS col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2713
SELECT - 37 DIV + - CAST( - + 76 AS SIGNED ) * - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2713
SELECT - 37 / + - CAST ( - + 76 AS INTEGER ) * - 75 AS col1
----
0

query I rowsort
SELECT - 43 + + 95
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2715
SELECT ALL - 86 * - 41 AS col0, CASE - ( 52 ) WHEN + 2 + ( - COUNT( * ) ) THEN + 23 ELSE NULLIF ( COUNT( * ), + 98 ) * - 21 END
----
3526
-21

skipif mysql # not compatible
query II rowsort label-2715
SELECT ALL - 86 * - 41 AS col0, CASE - ( 52 ) WHEN + 2 + ( - COUNT ( * ) ) THEN + 23 ELSE NULLIF ( COUNT ( * ), + 98 ) * - 21 END
----
3526
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2716
SELECT - 55 * - 2 AS col2, + 21 - + - COUNT( * ) * - 34
----
110
-13

skipif mysql # not compatible
query II rowsort label-2716
SELECT - 55 * - 2 AS col2, + 21 - + - COUNT ( * ) * - 34
----
110
-13

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

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

query I rowsort
SELECT DISTINCT + 14 * 41
----
574

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

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT 58 / ( + + 59 ) - + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL - + ( MIN( ALL - - 65 ) ) * + 90 + 96 AS col0
----
-5754

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - + ( MIN ( ALL - - 65 ) ) * + 90 + 96 AS col0
----
-5754

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2721
SELECT ALL + - 95 * + COUNT( * ) + CASE + + 81 WHEN 18 + - COUNT( * ) + - ( + - ( + + CAST( NULL AS DECIMAL ) ) ) * 73 THEN 11 ELSE NULL END * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL + - 95 * + COUNT ( * ) + CASE + + 81 WHEN 18 + - COUNT ( * ) + - ( + - ( + + CAST ( NULL AS REAL ) ) ) * 73 THEN 11 ELSE NULL END * + 69
----
NULL

query I rowsort
SELECT - - 99 + 76 AS col1
----
175

query I rowsort
SELECT ALL + - NULLIF ( + 68, - 17 ) AS col0
----
-68

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

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

query I rowsort
SELECT ALL - - 17 col0
----
17

query I rowsort
SELECT + 87 - + 49 * - 39 AS col0
----
1998

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT 19 * - 74 * + 2 + SUM( - - 64 ) col1
----
-2748

skipif mysql # not compatible
query I rowsort label-2727
SELECT 19 * - 74 * + 2 + SUM ( - - 64 ) col1
----
-2748

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2729
SELECT + 0 - - 36 DIV + COUNT( DISTINCT + + 99 ) - + 1 - - 25
----
60

skipif mysql # not compatible
query I rowsort label-2729
SELECT + 0 - - 36 / + COUNT ( DISTINCT + + 99 ) - + 1 - - 25
----
60

query II rowsort
SELECT 98 * + 83 - - 32 - 6 AS col2, + 15
----
8160
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT ALL CAST( + 66 AS SIGNED ) * - 28 col0
----
-1848

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL CAST ( + 66 AS INTEGER ) * - 28 col0
----
-1848

query I rowsort
SELECT DISTINCT COALESCE ( + 81, - + 55 * - - 23 )
----
81

query I rowsort
SELECT ALL ( 28 ) * 14 col0
----
392

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT + 59 * - 96 * - - COUNT( ALL + 55 )
----
-5664

skipif mysql # not compatible
query I rowsort label-2734
SELECT + 59 * - 96 * - - COUNT ( ALL + 55 )
----
-5664

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL - 17 + COUNT( ( - 2 ) ) + + ( - 88 ) * + 9
----
-808

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL - 17 + COUNT ( ( - 2 ) ) + + ( - 88 ) * + 9
----
-808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2736
SELECT DISTINCT 47 + - CAST( NULL AS SIGNED ) + 25 + + COUNT( * ) + - + 38 / - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT 47 + - CAST ( NULL AS INTEGER ) + 25 + + COUNT ( * ) + - + 38 / - 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2737
SELECT + ( + COUNT( * ) ) + - - CAST( - 81 AS SIGNED ), + 42 DIV 4 AS col2
----
-80
10

skipif mysql # not compatible
query II rowsort label-2737
SELECT + ( + COUNT ( * ) ) + - - CAST ( - 81 AS INTEGER ), + 42 / 4 AS col2
----
-80
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT + 25 * + + MAX( + - 82 ) AS col1
----
-2050

skipif mysql # not compatible
query I rowsort label-2738
SELECT + 25 * + + MAX ( + - 82 ) AS col1
----
-2050

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

query I rowsort
SELECT NULLIF ( - 21, - 60 ) * - 99 - + 58 * - 33 AS col0
----
3993

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT ALL + 89 + - 40 - - ( - 87 ) + - CASE - 52 WHEN + - 30 + + 73 THEN + ( - 99 ) END + COUNT( DISTINCT + ( 25 ) ) * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL + 89 + - 40 - - ( - 87 ) + - CASE - 52 WHEN + - 30 + + 73 THEN + ( - 99 ) END + COUNT ( DISTINCT + ( 25 ) ) * - 21
----
NULL

query I rowsort
SELECT ALL 39 + - - ( 79 ) + - 63 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT MAX( ALL + ( + 50 ) ) * 17 * COUNT( * ) * - 1 AS col0
----
-850

skipif mysql # not compatible
query I rowsort label-2743
SELECT MAX ( ALL + ( + 50 ) ) * 17 * COUNT ( * ) * - 1 AS col0
----
-850

query II rowsort
SELECT ALL 97 col0, - NULLIF ( 88, + - 30 * + - 96 )
----
97
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT COUNT( DISTINCT + 87 ) - 33
----
-32

skipif mysql # not compatible
query I rowsort label-2746
SELECT COUNT ( DISTINCT + 87 ) - 33
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT 59 + + COUNT( * ) * 97 + + + ( - + 71 )
----
85

skipif mysql # not compatible
query I rowsort label-2747
SELECT 59 + + COUNT ( * ) * 97 + + + ( - + 71 )
----
85

query I rowsort
SELECT 94 * + - 42
----
-3948

query I rowsort
SELECT DISTINCT 73 * ( + - 7 )
----
-511

onlyif mysql # DIV for integer division: 
query I rowsort label-2750
SELECT ALL 8 * 27 DIV - + 88 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL 8 * 27 / - + 88 AS col2
----
-2

query I rowsort
SELECT ALL 19 * 77 AS col1
----
1463

query I rowsort
SELECT ALL 25 - + 51
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT 84 * CASE + 89 WHEN 52 * - 86 / COUNT( * ) + + - 13 THEN NULL WHEN NULLIF ( + 30, - MAX( ALL - 78 ) ) THEN 56 END * + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT 84 * CASE + 89 WHEN 52 * - 86 / COUNT ( * ) + + - 13 THEN NULL WHEN NULLIF ( + 30, - MAX ( ALL - 78 ) ) THEN 56 END * + 65 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 37 * - 52 AS col0
----
-1924

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT + 42 * + COUNT( * ) - 23
----
19

skipif mysql # not compatible
query I rowsort label-2755
SELECT + 42 * + COUNT ( * ) - 23
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2756
SELECT 28 / CASE 42 WHEN + - COUNT( * ) THEN NULL WHEN - + 4 THEN NULL WHEN 66 * + 1 THEN + + 30 ELSE 69 END - 6 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT 28 / CASE 42 WHEN + - COUNT ( * ) THEN NULL WHEN - + 4 THEN NULL WHEN 66 * + 1 THEN + + 30 ELSE 69 END - 6 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT + 18 + - - 68 * MIN( 62 ) + - - SUM( + 98 )
----
4332

skipif mysql # not compatible
query I rowsort label-2757
SELECT + 18 + - - 68 * MIN ( 62 ) + - - SUM ( + 98 )
----
4332

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT MAX( DISTINCT - - 0 ) * - 58 + - 53 * - - 62
----
-3286

skipif mysql # not compatible
query I rowsort label-2758
SELECT MAX ( DISTINCT - - 0 ) * - 58 + - 53 * - - 62
----
-3286

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2759
SELECT + CAST( NULL AS SIGNED ) / - + 7 * + 18, + ( + 32 ) AS col2
----
NULL
32

skipif mysql # not compatible
query II rowsort label-2759
SELECT + CAST ( NULL AS INTEGER ) / - + 7 * + 18, + ( + 32 ) AS col2
----
NULL
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2760
SELECT ALL - 73 DIV - 84 col2
----
0

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL - 73 / - 84 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2761
SELECT - + 42 / 74 + + 80 * + 88 * - + COUNT( * ) - - CAST( NULL AS DECIMAL ) + + - COUNT( * ) + COUNT( * ) * - - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT - + 42 / 74 + + 80 * + 88 * - + COUNT ( * ) - - CAST ( NULL AS REAL ) + + - COUNT ( * ) + COUNT ( * ) * - - 46 AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2763
SELECT ALL 77 DIV ( - - 3 ) AS col2, - 97 col1
----
25
-97

skipif mysql # not compatible
query II rowsort label-2763
SELECT ALL 77 / ( - - 3 ) AS col2, - 97 col1
----
25
-97

query I rowsort
SELECT ALL - + 67 * 26
----
-1742

query I rowsort
SELECT 13 + + 55 AS col2
----
68

query I rowsort
SELECT ALL + - 37 + + 81
----
44

query I rowsort
SELECT ALL - - 75 + 12
----
87

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

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - MAX ( - 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT 23 + + + SUM( + 15 ) * 33
----
518

skipif mysql # not compatible
query I rowsort label-2769
SELECT 23 + + + SUM ( + 15 ) * 33
----
518

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT - COALESCE ( - 61, + 13 - - 36 ) + - COUNT( * ) * 78
----
-17

skipif mysql # not compatible
query I rowsort label-2771
SELECT - COALESCE ( - 61, + 13 - - 36 ) + - COUNT ( * ) * 78
----
-17

query II rowsort
SELECT + 85, + ( + 43 ) AS col0
----
85
43

query I rowsort
SELECT - 84 + + - NULLIF ( + + 78, 12 + - 78 ) AS col2
----
-162

query I rowsort
SELECT ALL - 21 + 36
----
15

query II rowsort
SELECT DISTINCT 35 AS col2, 1
----
35
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2776
SELECT 19 AS col0, + 21 - - ( - + COUNT( + 7 ) ) - + - 69 * - CAST( NULL AS SIGNED ) * 59 + + 84 * + 77 * + 35 * 27 - - ( 77 )
----
19
NULL

skipif mysql # not compatible
query II rowsort label-2776
SELECT 19 AS col0, + 21 - - ( - + COUNT ( + 7 ) ) - + - 69 * - CAST ( NULL AS INTEGER ) * 59 + + 84 * + 77 * + 35 * 27 - - ( 77 )
----
19
NULL

query I rowsort
SELECT 50 + - 91 AS col2
----
-41

query I rowsort
SELECT 53 * + 87 * + 69 AS col1
----
318159

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT SUM( + + 90 ) - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-2779
SELECT SUM ( + + 90 ) - COUNT ( * )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2780
SELECT DISTINCT 73 * - + 29 * NULLIF ( - 31, + ( + 82 ) + CASE - + 25 WHEN 44 * - 1 - 20 + 66 - CASE WHEN NOT ( - 32 ) < NULL THEN 54 END THEN NULL WHEN MAX( - 45 ) + AVG ( DISTINCT 60 ) * - 7 THEN NULL WHEN - 81 THEN 42 ELSE NULL END * - 34 ) * SUM( 34 + + CAST( NULL AS SIGNED ) / 65 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT 73 * - + 29 * NULLIF ( - 31, + ( + 82 ) + CASE - + 25 WHEN 44 * - 1 - 20 + 66 - CASE WHEN NOT ( - 32 ) < NULL THEN 54 END THEN NULL WHEN MAX ( - 45 ) + AVG ( DISTINCT 60 ) * - 7 THEN NULL WHEN - 81 THEN 42 ELSE NULL END * - 34 ) * SUM ( 34 + + CAST ( NULL AS INTEGER ) / 65 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT NULLIF ( - - 92, + CASE WHEN NOT COUNT( * ) IS NOT NULL THEN NULL ELSE + + 3 END / - 58 + COALESCE ( - 31, + 90 * + 59 + 94 ) + - 59 * + 21 ) * 87 col2
----
8004

skipif mysql # not compatible
query I rowsort label-2781
SELECT NULLIF ( - - 92, + CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN NULL ELSE + + 3 END / - 58 + COALESCE ( - 31, + 90 * + 59 + 94 ) + - 59 * + 21 ) * 87 col2
----
8004

query II rowsort
SELECT DISTINCT - 41 - - 8 col2, 19
----
-33
19

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

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

query I rowsort
SELECT ALL NULLIF ( 91, 24 ) AS col2
----
91

query I rowsort
SELECT 94 + + - 18 + + 43 AS col1
----
119

query II rowsort
SELECT DISTINCT 22 AS col2, - 12 col1
----
22
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2787
SELECT ALL SUM( ALL - - 20 ) DIV - 10 + 47 * 41 AS col1
----
1925

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL SUM ( ALL - - 20 ) / - 10 + 47 * 41 AS col1
----
1925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2788
SELECT COUNT( - 56 ) DIV + 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2788
SELECT COUNT ( - 56 ) / + 15 AS col0
----
0

query I rowsort
SELECT NULLIF ( - 1, - 15 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2790
SELECT 33 * + ( + 14 ) + - + 5 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT 33 * + ( + 14 ) + - + 5 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 77 * + 77 AS col0, + 74 * - - 27 AS col0
----
5929
1998

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2793
SELECT - - 38 DIV + 66 * 80 * + 45 * + COUNT( * ) + - 70 DIV + - 27 + - CAST( + ( - COALESCE ( - 91, MAX( 58 ) ) ) AS SIGNED ) + 61 * 83 AS col1
----
4974

skipif mysql # not compatible
query I rowsort label-2793
SELECT - - 38 / + 66 * 80 * + 45 * + COUNT ( * ) + - 70 / + - 27 + - CAST ( + ( - COALESCE ( - 91, MAX ( 58 ) ) ) AS INTEGER ) + 61 * 83 AS col1
----
4974

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT + 38 + - CASE - 68 WHEN + + 5 / + + 78 - + + ( - 25 ) + + NULLIF ( 0, 42 * + COUNT( * ) ) + MAX( + 24 ) THEN NULL WHEN SUM( ALL + 25 ) THEN + 72 WHEN 31 THEN NULL END + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT + 38 + - CASE - 68 WHEN + + 5 / + + 78 - + + ( - 25 ) + + NULLIF ( 0, 42 * + COUNT ( * ) ) + MAX ( + 24 ) THEN NULL WHEN SUM ( ALL + 25 ) THEN + 72 WHEN 31 THEN NULL END + 8 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2796
SELECT DISTINCT + 17, 60 + - 78 + + 38 DIV + - 88 * + + 70 AS col1
----
17
-18

skipif mysql # not compatible
query II rowsort label-2796
SELECT DISTINCT + 17, 60 + - 78 + + 38 / + - 88 * + + 70 AS col1
----
17
-18

query II rowsort
SELECT + 40, 78 col2
----
40
78

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

query I rowsort
SELECT ALL + CASE + 40 WHEN 69 + 88 THEN - 45 END AS col0
----
NULL

query I rowsort
SELECT ALL - 51 * - 90 * + 89 + - 20 + + - 65 * 40 * 32 * + + 36
----
-2586710

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

query II rowsort
SELECT - - 23 * 27, + 10 AS col2
----
621
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2803
SELECT ALL + 29 * 79 + + 63 + 80 + 27 * COUNT( * ) DIV + 48 * 92 * NULLIF ( - - 12, - - 93 ) + - 34
----
2400

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL + 29 * 79 + + 63 + 80 + 27 * COUNT ( * ) / + 48 * 92 * NULLIF ( - - 12, - - 93 ) + - 34
----
2400

query II rowsort
SELECT + 85 - - 47, - 61 AS col0
----
132
-61

query I rowsort
SELECT + 98 - - 52 + + - 25 * 80
----
-1850

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL COALESCE ( + 72, + COUNT( * ) * + 99 * + 50, ( + - ( - 3 ) ) + + 79, + 2 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL COALESCE ( + 72, + COUNT ( * ) * + 99 * + 50, ( + - ( - 3 ) ) + + 79, + 2 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT DISTINCT CASE - ( - 28 ) WHEN CASE - 91 WHEN - 77 - + - 86 / + COUNT( ALL + - COALESCE ( - 39, - 83 ) ) THEN 72 ELSE NULL END - 64 THEN 29 END + 36 * + SUM( DISTINCT ( 62 ) + 53 * + 92 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT CASE - ( - 28 ) WHEN CASE - 91 WHEN - 77 - + - 86 / + COUNT ( ALL + - COALESCE ( - 39, - 83 ) ) THEN 72 ELSE NULL END - 64 THEN 29 END + 36 * + SUM ( DISTINCT ( 62 ) + 53 * + 92 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 8 + + 30
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2812
SELECT ALL + 72 - 64 - + 48 + 23 DIV + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL + 72 - 64 - + 48 + 23 / + COUNT ( * )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2813
SELECT + NULLIF ( - + CASE + - ( - 12 ) WHEN + 51 + - NULLIF ( - 8, + - 67 ) / 6 THEN NULL WHEN - CAST( NULL AS SIGNED ) * + 45 THEN 83 END, - COUNT( * ) ) * + CASE - 37 WHEN 23 + + 78 * 79 THEN 67 + + 14 WHEN 3 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT + NULLIF ( - + CASE + - ( - 12 ) WHEN + 51 + - NULLIF ( - 8, + - 67 ) / 6 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * + 45 THEN 83 END, - COUNT ( * ) ) * + CASE - 37 WHEN 23 + + 78 * 79 THEN 67 + + 14 WHEN 3 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT ALL CASE 98 WHEN + + 69 * 25 THEN - - ( - - 67 ) ELSE - + 43 + + - 38 END col0
----
-81

query I rowsort
SELECT - NULLIF ( + 3, - 51 ) * + - 58 AS col2
----
174

query I rowsort
SELECT ALL + 91 - 5 AS col0
----
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT - CASE - 88 WHEN - MAX( 5 ) THEN - 69 WHEN + ( + 66 ) + - COUNT( * ) THEN NULL END * - 48 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT - CASE - 88 WHEN - MAX ( 5 ) THEN - 69 WHEN + ( + 66 ) + - COUNT ( * ) THEN NULL END * - 48 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2820
SELECT DISTINCT COALESCE ( 43, - CASE - 28 WHEN - 85 THEN NULL WHEN - 33 THEN NULL ELSE + 13 DIV + 81 END + - - COUNT( * ), 93 ) * + 19 col2
----
817

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT COALESCE ( 43, - CASE - 28 WHEN - 85 THEN NULL WHEN - 33 THEN NULL ELSE + 13 / + 81 END + - - COUNT ( * ), 93 ) * + 19 col2
----
817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2821
SELECT DISTINCT NULLIF ( CAST( + 71 AS SIGNED ), + - 65 - + 11 * - + CAST( - 62 AS SIGNED ) ) * - 30 * - - 77 AS col2
----
-164010

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT NULLIF ( CAST ( + 71 AS INTEGER ), + - 65 - + 11 * - + CAST ( - 62 AS INTEGER ) ) * - 30 * - - 77 AS col2
----
-164010

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL + 73 * - 4 * + 46 * 4 * - - MIN( ALL - + 47 ) col0
----
2525216

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL + 73 * - 4 * + 46 * 4 * - - MIN ( ALL - + 47 ) col0
----
2525216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2823
SELECT - CASE + 24 WHEN - 81 THEN NULL WHEN + 38 + - 55 - + - 65 * + 77 THEN + 40 * COUNT( * ) * 36 * 25 ELSE NULL END * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT - CASE + 24 WHEN - 81 THEN NULL WHEN + 38 + - 55 - + - 65 * + 77 THEN + 40 * COUNT ( * ) * 36 * 25 ELSE NULL END * + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - ( - 44 ) - - 47 AS col2, 63 + + COALESCE ( + 68, + + 83 ) AS col0
----
91
131

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

query I rowsort
SELECT - 48 + + + 23
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-2827
SELECT + 13 DIV - - 54
----
0

skipif mysql # not compatible
query I rowsort label-2827
SELECT + 13 / - - 54
----
0

query I rowsort
SELECT ALL + COALESCE ( - 35, - 78 * + 0 )
----
-35

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2831
SELECT ALL - ( + MIN( ALL + - 89 ) ) DIV + 40 + 14 DIV + - 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL - ( + MIN ( ALL + - 89 ) ) / + 40 + 14 / + - 3 AS col2
----
-2

query I rowsort
SELECT ALL + - 45 col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2833
SELECT DISTINCT - COUNT( * ) DIV 43 * + - 90 + - 76 + 60
----
-16

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT - COUNT ( * ) / 43 * + - 90 + - 76 + 60
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2834
SELECT ALL 28 DIV + 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL 28 / + 29 AS col0
----
0

query I rowsort
SELECT ALL + - ( 11 ) / + + 53 - ( + CASE - 2 WHEN - - 84 THEN - 88 + - + 21 WHEN - + 54 + + 86 - + 71 THEN 82 END ) * - 79 + 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2836
SELECT + CAST( - COUNT( ALL ( - 53 ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2836
SELECT + CAST ( - COUNT ( ALL ( - 53 ) ) AS INTEGER )
----
-1

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

skipif mysql # not compatible
query II rowsort label-2837
SELECT + COUNT ( * ) + + ( 73 ), 28 + - CAST ( NULL AS INTEGER ) AS col1
----
74
NULL

query I rowsort
SELECT ALL - 30 * - 14 AS col1
----
420

query I rowsort
SELECT - + 11 * 95 * 41 + - 45 * + 26 + - + 53 + - + 11
----
-44079

query I rowsort
SELECT + 83 + 17 AS col2
----
100

query I rowsort
SELECT ALL + + 22 col0
----
22

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2843
SELECT + SUM( - 71 ), + 59 * 73 AS col0
----
-71
4307

skipif mysql # not compatible
query II rowsort label-2843
SELECT + SUM ( - 71 ), + 59 * 73 AS col0
----
-71
4307

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL 12 * - - NULLIF ( + + COUNT( * ), 63 ) - 19
----
-7

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL 12 * - - NULLIF ( + + COUNT ( * ), 63 ) - 19
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT + SUM( + 38 ) * + + COUNT( * ) + - CASE - NULLIF ( COUNT( * ), - MAX( ALL - 21 ) ) WHEN - - 69 * COUNT( * ) THEN 19 WHEN + 43 THEN + + 92 * - 16 + 33 ELSE NULL END * COUNT( + 4 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT + SUM ( + 38 ) * + + COUNT ( * ) + - CASE - NULLIF ( COUNT ( * ), - MAX ( ALL - 21 ) ) WHEN - - 69 * COUNT ( * ) THEN 19 WHEN + 43 THEN + + 92 * - 16 + 33 ELSE NULL END * COUNT ( + 4 ) AS col2
----
NULL

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

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

query I rowsort
SELECT + 62 + - + 35 * + ( + 56 ) * - + 43 AS col2
----
84342

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT + ( + - 63 ) DIV - + 26 + + 23 + ( + 9 )
----
34

skipif mysql # not compatible
query I rowsort label-2848
SELECT + ( + - 63 ) / - + 26 + + 23 + ( + 9 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT DISTINCT MIN( DISTINCT + 52 ) * - 46 * - 60
----
143520

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT MIN ( DISTINCT + 52 ) * - 46 * - 60
----
143520

query I rowsort
SELECT ALL NULLIF ( - + 82, 75 * + 42 + + 64 ) AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2851
SELECT ALL 97 DIV + 89
----
1

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL 97 / + 89
----
1

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

query I rowsort
SELECT DISTINCT 14 * - + 33
----
-462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2854
SELECT ALL CAST( MIN( ALL 35 ) AS SIGNED ) col2
----
35

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL CAST ( MIN ( ALL 35 ) AS INTEGER ) col2
----
35

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

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

query I rowsort
SELECT ALL 49 * - 96
----
-4704

onlyif mysql # DIV for integer division: 
query I rowsort label-2857
SELECT 78 DIV - - 64
----
1

skipif mysql # not compatible
query I rowsort label-2857
SELECT 78 / - - 64
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2858
SELECT 84 + 19 DIV COUNT( * ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-2858
SELECT 84 + 19 / COUNT ( * ) AS col1
----
103

onlyif mysql # aggregate syntax: 
query III rowsort label-2859
SELECT ALL + 69 + + 3 + - 12 AS col1, ( - COUNT( - + 96 ) ), + + 29 AS col2
----
60
-1
29

skipif mysql # not compatible
query III rowsort label-2859
SELECT ALL + 69 + + 3 + - 12 AS col1, ( - COUNT ( - + 96 ) ), + + 29 AS col2
----
60
-1
29

query II rowsort
SELECT 95 AS col1, - ( - 43 )
----
95
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2861
SELECT 29 + + COUNT( * ) * - NULLIF ( + - 56, 5 * 3 ) AS col0, 48 * + 8
----
85
384

skipif mysql # not compatible
query II rowsort label-2861
SELECT 29 + + COUNT ( * ) * - NULLIF ( + - 56, 5 * 3 ) AS col0, 48 * + 8
----
85
384

query II rowsort
SELECT ALL 80 AS col2, + CASE - 98 WHEN 50 THEN + - 29 WHEN - + 24 / + 61 * - 43 THEN NULL END AS col2
----
80
NULL

query I rowsort
SELECT ALL - 41 + - + 24
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2864
SELECT DISTINCT + 83 + + CAST( NULL AS SIGNED ) + - 25 / - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT + 83 + + CAST ( NULL AS INTEGER ) + - 25 / - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 60 + - - 81 + - ( 17 ) * 16 AS col2
----
-251

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2867
SELECT DISTINCT + 34 * + 79 * - COUNT( * ) * CAST( - 92 AS SIGNED ) AS col1
----
247112

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT + 34 * + 79 * - COUNT ( * ) * CAST ( - 92 AS INTEGER ) AS col1
----
247112

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

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

query I rowsort
SELECT DISTINCT - + ( + 47 ) AS col0
----
-47

query I rowsort
SELECT ALL - - 68 + + 68 - + - 3 AS col2
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2871
SELECT + 53 * + 18 * + - CAST( + CASE - 49 WHEN 42 + + - ( + 67 ) + 95 + + COUNT( * ) * 55 * + - 81 * - 44 THEN - 10 END AS SIGNED ) + 41 / 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT + 53 * + 18 * + - CAST ( + CASE - 49 WHEN 42 + + - ( + 67 ) + 95 + + COUNT ( * ) * 55 * + - 81 * - 44 THEN - 10 END AS INTEGER ) + 41 / 60 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2872
SELECT 89 / + 57 / - COUNT( * ) * + + 9 + - CAST( NULL AS SIGNED ) + - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT 89 / + 57 / - COUNT ( * ) * + + 9 + - CAST ( NULL AS INTEGER ) + - 46 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT DISTINCT - + 18 + - + 55 + - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT - + 18 + - + 55 + - COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2875
SELECT ALL - COUNT( * ) * + - COUNT( * ) DIV - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) / - 46 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2876
SELECT + 47 DIV + + COUNT( * ) + 38 col0
----
85

skipif mysql # not compatible
query I rowsort label-2876
SELECT + 47 / + + COUNT ( * ) + 38 col0
----
85

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

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

query I rowsort
SELECT ALL 15 * 21
----
315

query I rowsort
SELECT 62 - + 43
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2880
SELECT MAX( DISTINCT + 23 ) DIV + + 57 * 30 * - + 73 - + + 62 - + + 22 + - 44 * + 32 AS col0
----
-1492

skipif mysql # not compatible
query I rowsort label-2880
SELECT MAX ( DISTINCT + 23 ) / + + 57 * 30 * - + 73 - + + 62 - + + 22 + - 44 * + 32 AS col0
----
-1492

onlyif mysql # aggregate syntax: 
query II rowsort label-2881
SELECT 63 * + 34 * 43 + - - 19 AS col1, CASE 83 WHEN - 88 / 62 * - 58 * - 81 * + - 48 + COUNT( * ) THEN + 6 * - 83 WHEN - 60 * + ( + 38 ) THEN NULL WHEN - 28 THEN NULL END
----
92125
NULL

skipif mysql # not compatible
query II rowsort label-2881
SELECT 63 * + 34 * 43 + - - 19 AS col1, CASE 83 WHEN - 88 / 62 * - 58 * - 81 * + - 48 + COUNT ( * ) THEN + 6 * - 83 WHEN - 60 * + ( + 38 ) THEN NULL WHEN - 28 THEN NULL END
----
92125
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2882
SELECT ALL COUNT( * ) * + - 88 AS col0, - 71 * - + 76 + - 63 AS col2
----
-88
5333

skipif mysql # not compatible
query II rowsort label-2882
SELECT ALL COUNT ( * ) * + - 88 AS col0, - 71 * - + 76 + - 63 AS col2
----
-88
5333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2883
SELECT ALL - COALESCE ( - 77, - CAST( MAX( - - 17 ) AS SIGNED ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL - COALESCE ( - 77, - CAST ( MAX ( - - 17 ) AS INTEGER ) ) AS col0
----
77

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

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT - MIN ( DISTINCT - - 63 )
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-2885
SELECT 97 - 4 col2, CASE + 87 WHEN + MIN( - 9 ) THEN 91 + - 59 + ( - ( - 97 ) ) * + 8 END + - 61 col2
----
93
NULL

skipif mysql # not compatible
query II rowsort label-2885
SELECT 97 - 4 col2, CASE + 87 WHEN + MIN ( - 9 ) THEN 91 + - 59 + ( - ( - 97 ) ) * + 8 END + - 61 col2
----
93
NULL

query I rowsort
SELECT ALL 73 * - + COALESCE ( + 73, + 47 * + 72 - - 16 * + - 68, 77 + + 43 ) col1
----
-5329

onlyif mysql # aggregate syntax: 
query II rowsort label-2887
SELECT 4 * - + COUNT( * ) col1, 86 + - + 14
----
-4
72

skipif mysql # not compatible
query II rowsort label-2887
SELECT 4 * - + COUNT ( * ) col1, 86 + - + 14
----
-4
72

query I rowsort
SELECT NULLIF ( - 78, - 9 ) - ( 14 )
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-2889
SELECT 23 DIV - 50, ( + - 85 ) * 25 * 7 AS col0
----
0
-14875

skipif mysql # not compatible
query II rowsort label-2889
SELECT 23 / - 50, ( + - 85 ) * 25 * 7 AS col0
----
0
-14875

query I rowsort
SELECT ALL 43 + + ( + 41 )
----
84

query I rowsort
SELECT 94 * 33
----
3102

query I rowsort
SELECT DISTINCT ( + 2 ) + 98
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT COUNT( ALL - + 26 ) + 68 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT COUNT ( ALL - + 26 ) + 68 AS col1
----
69

query I rowsort
SELECT ALL + - ( - 60 ) + + 84 AS col1
----
144

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2895
SELECT ALL - 54 + - 18 DIV - + CAST( + 80 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL - 54 + - 18 / - + CAST ( + 80 AS INTEGER )
----
-54

query I rowsort
SELECT ALL 32 * - - 42
----
1344

onlyif mysql # DIV for integer division: 
query I rowsort label-2897
SELECT 33 DIV + 33
----
1

skipif mysql # not compatible
query I rowsort label-2897
SELECT 33 / + 33
----
1

query I rowsort
SELECT + 10 * + + ( + + 69 ) AS col0
----
690

query II rowsort
SELECT DISTINCT 50 * + + 16 AS col1, + 82 AS col1
----
800
82

query II rowsort
SELECT ALL - 4 + - 49, 32 AS col0
----
-53
32

query I rowsort
SELECT 67 + 56
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT + ( + + SUM( + - 76 ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-2902
SELECT + ( + + SUM ( + - 76 ) ) AS col1
----
-76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ( - 12 ) + - MAX( DISTINCT + 85 )
----
-97

skipif mysql # not compatible
query I rowsort label-2904
SELECT ( - 12 ) + - MAX ( DISTINCT + 85 )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2905
SELECT 56 DIV - ( + + 80 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2905
SELECT 56 / - ( + + 80 ) AS col2
----
0

query I rowsort
SELECT + 51 + + - 19
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2907
SELECT ALL COUNT( * ) * + - 49 * 12 - 83 + - NULLIF ( - 39, + + 77 ) DIV 82
----
-671

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL COUNT ( * ) * + - 49 * 12 - 83 + - NULLIF ( - 39, + + 77 ) / 82
----
-671

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT - COALESCE ( 80, - - COUNT( * ) - + - 59 ) * + - 9 + - 89 + + - COUNT( * ) + - + 0 + + 17, 6 + + COUNT( - + 2 ) AS col2
----
647
7

skipif mysql # not compatible
query II rowsort label-2908
SELECT - COALESCE ( 80, - - COUNT ( * ) - + - 59 ) * + - 9 + - 89 + + - COUNT ( * ) + - + 0 + + 17, 6 + + COUNT ( - + 2 ) AS col2
----
647
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT DISTINCT + 95 * 89 + - NULLIF ( + 84, - COUNT( DISTINCT + + 65 ) ) - + - 46 + + 60 AS col1
----
8477

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT + 95 * 89 + - NULLIF ( + 84, - COUNT ( DISTINCT + + 65 ) ) - + - 46 + + 60 AS col1
----
8477

query I rowsort
SELECT ALL - 89 * 71 + + - 70
----
-6389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2911
SELECT CAST( - 74 AS SIGNED ) * - - 32 + + MIN( DISTINCT + + 65 ) AS col2
----
-2303

skipif mysql # not compatible
query I rowsort label-2911
SELECT CAST ( - 74 AS INTEGER ) * - - 32 + + MIN ( DISTINCT + + 65 ) AS col2
----
-2303

onlyif mysql # DIV for integer division: 
query I rowsort label-2912
SELECT + 45 DIV - 38 + - 80
----
-81

skipif mysql # not compatible
query I rowsort label-2912
SELECT + 45 / - 38 + - 80
----
-81

query I rowsort
SELECT DISTINCT - ( + 11 ) * + + 31 * + 30 * 71
----
-726330

query I rowsort
SELECT ALL - - 49 * 72 + - 1
----
3527

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2915
SELECT + 40 * - + 79 * - 4 + CASE ( 30 ) WHEN COUNT( * ) THEN - CAST( 70 AS SIGNED ) * + 99 + - ( ( 29 ) ) * + 78 WHEN + 21 THEN NULL ELSE + 80 END AS col2
----
12720

skipif mysql # not compatible
query I rowsort label-2915
SELECT + 40 * - + 79 * - 4 + CASE ( 30 ) WHEN COUNT ( * ) THEN - CAST ( 70 AS INTEGER ) * + 99 + - ( ( 29 ) ) * + 78 WHEN + 21 THEN NULL ELSE + 80 END AS col2
----
12720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2916
SELECT CAST( NULL AS SIGNED ) * - SUM( ALL 62 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT CAST ( NULL AS INTEGER ) * - SUM ( ALL 62 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2917
SELECT 78 DIV + COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-2917
SELECT 78 / + COUNT ( * ) AS col0
----
78

query I rowsort
SELECT DISTINCT - 59 * + + 67 AS col0
----
-3953

onlyif mysql # DIV for integer division: 
query I rowsort label-2919
SELECT ALL 62 DIV 14
----
4

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL 62 / 14
----
4

query I rowsort
SELECT ( + 27 ) * + + 64 + 94 + 53
----
1875

query I rowsort
SELECT - 85 * + 85 AS col0
----
-7225

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT 14 * + - NULLIF ( + 80, - - 40 ) + - COUNT( * )
----
-1121

skipif mysql # not compatible
query I rowsort label-2922
SELECT 14 * + - NULLIF ( + 80, - - 40 ) + - COUNT ( * )
----
-1121

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT DISTINCT + 23 DIV 55 col0
----
0

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT + 23 / 55 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT ALL + 14 + + ( + + COUNT( DISTINCT + - 25 ) )
----
15

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + 14 + + ( + + COUNT ( DISTINCT + - 25 ) )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2925
SELECT DISTINCT COUNT( - 37 ) + + 83, 42 * - 39 AS col0
----
84
-1638

skipif mysql # not compatible
query II rowsort label-2925
SELECT DISTINCT COUNT ( - 37 ) + + 83, 42 * - 39 AS col0
----
84
-1638

query I rowsort
SELECT - 25 + + 30 AS col1
----
5

query I rowsort
SELECT ALL - 69 + + - 62 AS col2
----
-131

query I rowsort
SELECT DISTINCT 54 * 98 AS col2
----
5292

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

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

query I rowsort
SELECT + 19 + - 84
----
-65

query I rowsort
SELECT ALL 89 + 16
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT - MAX( ALL - 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2932
SELECT - MAX ( ALL - 5 ) AS col1
----
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2934
SELECT - CAST( 18 AS SIGNED ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-2934
SELECT - CAST ( 18 AS INTEGER ) AS col0
----
-18

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

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT - COUNT ( * ) - ( + + 5 ) AS col0
----
-6

query I rowsort
SELECT + 96 * - - 39 * + NULLIF ( - 75, + - 22 ) AS col0
----
-280800

query II rowsort
SELECT ALL 82 AS col2, 66 AS col0
----
82
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT + - 62 * + 24 - + - 72 + + MIN( 10 ) * - + 11 * - 7 col0
----
-646

skipif mysql # not compatible
query I rowsort label-2938
SELECT + - 62 * + 24 - + - 72 + + MIN ( 10 ) * - + 11 * - 7 col0
----
-646

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT DISTINCT - MIN( DISTINCT + 79 ) * - + 56 + + - COUNT( * )
----
4423

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT - MIN ( DISTINCT + 79 ) * - + 56 + + - COUNT ( * )
----
4423

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

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT 23 - + CAST ( + + 41 AS INTEGER )
----
-18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2942
SELECT ALL + - 1 * - 48 * 10, ( - MAX( + CAST( NULL AS SIGNED ) ) ) AS col0
----
480
NULL

skipif mysql # not compatible
query II rowsort label-2942
SELECT ALL + - 1 * - 48 * 10, ( - MAX ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
480
NULL

query I rowsort
SELECT DISTINCT - 60 - + 15
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT - - CASE 49 WHEN 69 + COUNT( * ) + - 32 THEN + ( - 25 ) WHEN + 81 THEN 82 ELSE - + 30 END * - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-2944
SELECT - - CASE 49 WHEN 69 + COUNT ( * ) + - 32 THEN + ( - 25 ) WHEN + 81 THEN 82 ELSE - + 30 END * - COUNT ( * )
----
30

query I rowsort
SELECT DISTINCT - 99 * 69 + - 54 AS col0
----
-6885

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

query I rowsort
SELECT + - 60 * - 26 AS col1
----
1560

query I rowsort
SELECT DISTINCT - 55 * + - 49 AS col0
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL + CASE 11 WHEN + 99 + - 38 THEN + 27 / + - 48 END * - - 85 * + ( + AVG ( ALL 20 ) ) * + 44 + - - NULLIF ( - COUNT( * ), - 9 ) + - 3 * 96 * + MAX( DISTINCT 41 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL + CASE 11 WHEN + 99 + - 38 THEN + 27 / + - 48 END * - - 85 * + ( + AVG ( ALL 20 ) ) * + 44 + - - NULLIF ( - COUNT ( * ), - 9 ) + - 3 * 96 * + MAX ( DISTINCT 41 ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 28 * - ( - 58 ) AS col2
----
-1624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT DISTINCT 56 * - 24 + CAST( 19 AS SIGNED ) AS col1
----
-1325

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT 56 * - 24 + CAST ( 19 AS INTEGER ) AS col1
----
-1325

query I rowsort
SELECT 19 * - - 25 + 9
----
484

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT NULLIF ( + 81, + + COUNT( * ) + 1 + + + 0 * 77 * + AVG ( ALL - + 8 ) )
----
81

skipif mysql # not compatible
query I rowsort label-2954
SELECT NULLIF ( + 81, + + COUNT ( * ) + 1 + + + 0 * 77 * + AVG ( ALL - + 8 ) )
----
81

query I rowsort
SELECT ALL 30 * + - 42 + - - 63 + - - 89 * + NULLIF ( 21, 46 * - + 81 )
----
672

query I rowsort
SELECT - COALESCE ( 42, - - ( + - 23 ) * - 0 ) + - 20
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT + MAX( - 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-2957
SELECT + MAX ( - 60 ) AS col0
----
-60

query I rowsort
SELECT ALL + 10 * ( - - 72 )
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT COALESCE ( - 52, COUNT( * ) + + 27, - - ( - 64 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-2959
SELECT COALESCE ( - 52, COUNT ( * ) + + 27, - - ( - 64 ) )
----
-52

query I rowsort
SELECT ALL 67 * - + 13 + + + 46 col2
----
-825

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2961
SELECT ALL CAST( NULL AS DECIMAL ) * - 77 / + + 27 + + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL CAST ( NULL AS REAL ) * - 77 / + + 27 + + 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL - COUNT( * ) * - 49 + - - 14
----
63

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - COUNT ( * ) * - 49 + - - 14
----
63

query I rowsort
SELECT - 78 * 77
----
-6006

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

skipif mysql # not compatible
query I rowsort label-2964
SELECT - 95 / 45
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2965
SELECT COUNT( * ), 92 + + + SUM( - + 90 ) + - - 96 AS col1
----
1
98

skipif mysql # not compatible
query II rowsort label-2965
SELECT COUNT ( * ), 92 + + + SUM ( - + 90 ) + - - 96 AS col1
----
1
98

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2967
SELECT - MIN( + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2968
SELECT + + CAST( + 51 AS SIGNED ) * 37
----
1887

skipif mysql # not compatible
query I rowsort label-2968
SELECT + + CAST ( + 51 AS INTEGER ) * 37
----
1887

query II rowsort
SELECT DISTINCT 99, + 93 AS col1
----
99
93

query I rowsort
SELECT - - 8 * + ( + + 90 )
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2971
SELECT ALL + COUNT( * ) DIV + 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL + COUNT ( * ) / + 12 AS col0
----
0

query I rowsort
SELECT - - NULLIF ( + ( - + 71 ), - 88 + - - 85 + + + AVG ( + 85 ) ) col1
----
-71

query I rowsort
SELECT ALL + 22 * 2
----
44

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

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

query II rowsort
SELECT - + 19 AS col0, ( 97 ) AS col2
----
-19
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2976
SELECT - - 65 AS col2, NULLIF ( - + ( + 28 ), - + COALESCE ( - - MAX( ALL 8 ), + 86 * + 85, - + NULLIF ( 79, + 39 ) ) * 3 * COUNT( + 0 ) )
----
65
-28

skipif mysql # not compatible
query II rowsort label-2976
SELECT - - 65 AS col2, NULLIF ( - + ( + 28 ), - + COALESCE ( - - MAX ( ALL 8 ), + 86 * + 85, - + NULLIF ( 79, + 39 ) ) * 3 * COUNT ( + 0 ) )
----
65
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-2977
SELECT ALL 72 AS col2, MIN( ALL - 27 )
----
72
-27

skipif mysql # not compatible
query II rowsort label-2977
SELECT ALL 72 AS col2, MIN ( ALL - 27 )
----
72
-27

query II rowsort
SELECT DISTINCT - 86 AS col1, 35
----
-86
35

query I rowsort
SELECT + 36 + + + 4 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT - COALESCE ( - - COUNT( * ), + MAX( DISTINCT + - ( - 80 ) ) + + 43 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2980
SELECT - COALESCE ( - - COUNT ( * ), + MAX ( DISTINCT + - ( - 80 ) ) + + 43 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT ALL MAX( DISTINCT 98 ) AS col1, 43 AS col0
----
98
43

skipif mysql # not compatible
query II rowsort label-2981
SELECT ALL MAX ( DISTINCT 98 ) AS col1, 43 AS col0
----
98
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2982
SELECT ALL + COUNT( * ) AS col0, CAST( + 47 AS SIGNED ) * 98 AS col0
----
1
4606

skipif mysql # not compatible
query II rowsort label-2982
SELECT ALL + COUNT ( * ) AS col0, CAST ( + 47 AS INTEGER ) * 98 AS col0
----
1
4606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2983
SELECT + + COALESCE ( + CAST( - 71 AS SIGNED ), + COUNT( * ) + 98 ) + + 7
----
-64

skipif mysql # not compatible
query I rowsort label-2983
SELECT + + COALESCE ( + CAST ( - 71 AS INTEGER ), + COUNT ( * ) + 98 ) + + 7
----
-64

query I rowsort
SELECT ALL - - 77 + - 55 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2985
SELECT + MIN( ALL - 20 ) * 43 + + - 39 * + COUNT( * ) - - + 91 AS col0, COALESCE ( - + 8, - 0 * + + COUNT( * ), - MIN( ALL + CASE 30 WHEN + + 58 THEN - - 41 - + 80 * - 54 ELSE NULL END ) ) * CAST( NULL AS SIGNED ) AS col2
----
-808
NULL

skipif mysql # not compatible
query II rowsort label-2985
SELECT + MIN ( ALL - 20 ) * 43 + + - 39 * + COUNT ( * ) - - + 91 AS col0, COALESCE ( - + 8, - 0 * + + COUNT ( * ), - MIN ( ALL + CASE 30 WHEN + + 58 THEN - - 41 - + 80 * - 54 ELSE NULL END ) ) * CAST ( NULL AS INTEGER ) AS col2
----
-808
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2986
SELECT ALL + COUNT( * ) DIV + - 78 * COUNT( * ) + - ( - 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL + COUNT ( * ) / + - 78 * COUNT ( * ) + - ( - 16 ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2987
SELECT + + MIN( + - 32 ) * 94 * 37 + 73 * - - 33 + - CAST( - + 95 AS SIGNED )
----
-108792

skipif mysql # not compatible
query I rowsort label-2987
SELECT + + MIN ( + - 32 ) * 94 * 37 + 73 * - - 33 + - CAST ( - + 95 AS INTEGER )
----
-108792

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT ALL 98 DIV 37
----
2

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL 98 / 37
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT CASE 53 WHEN + SUM( ALL - 24 ) * + + 15 + - - COUNT( * ) THEN + + 15 * - 28 END / + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT CASE 53 WHEN + SUM ( ALL - 24 ) * + + 15 + - - COUNT ( * ) THEN + + 15 * - 28 END / + 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2990
SELECT DISTINCT - COUNT( DISTINCT + + 0 ) col0, - COALESCE ( + 86, 3 ) AS col2
----
-1
-86

skipif mysql # not compatible
query II rowsort label-2990
SELECT DISTINCT - COUNT ( DISTINCT + + 0 ) col0, - COALESCE ( + 86, 3 ) AS col2
----
-1
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2991
SELECT ALL 44 * 51 DIV + COUNT( * )
----
2244

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL 44 * 51 / + COUNT ( * )
----
2244

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT COALESCE ( - - 39, + MAX( DISTINCT - 93 ) ) * 53 AS col2
----
2067

skipif mysql # not compatible
query I rowsort label-2992
SELECT COALESCE ( - - 39, + MAX ( DISTINCT - 93 ) ) * 53 AS col2
----
2067

query I rowsort
SELECT ALL - ( - 74 ) + - 29 + + 59
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT - COUNT( * ) * - 93 + + 98
----
191

skipif mysql # not compatible
query I rowsort label-2994
SELECT - COUNT ( * ) * - 93 + + 98
----
191

query I rowsort
SELECT 19 + + 19 + - 72 AS col1
----
-34

query I rowsort
SELECT 57 * - 71
----
-4047

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT SUM( 1 ) - - - 66 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2997
SELECT SUM ( 1 ) - - - 66 AS col0
----
-65

query I rowsort
SELECT + NULLIF ( + 80, - 45 ) + 88 col1
----
168

query I rowsort
SELECT ALL - 73 * 59 AS col2
----
-4307

onlyif mysql # aggregate syntax: 
query II rowsort label-3000
SELECT COUNT( * ) * - 94 AS col0, + COUNT( * ) * - + 79 + + - 63
----
-94
-142

skipif mysql # not compatible
query II rowsort label-3000
SELECT COUNT ( * ) * - 94 AS col0, + COUNT ( * ) * - + 79 + + - 63
----
-94
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT + 1 * - + MAX( - + 64 ) + + 70 + 49
----
183

skipif mysql # not compatible
query I rowsort label-3001
SELECT + 1 * - + MAX ( - + 64 ) + + 70 + 49
----
183

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

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

query I rowsort
SELECT DISTINCT NULLIF ( 27, + + ( 56 ) )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3004
SELECT - 53 + + 44, + CAST( 24 AS SIGNED ) AS col0
----
-9
24

skipif mysql # not compatible
query II rowsort label-3004
SELECT - 53 + + 44, + CAST ( 24 AS INTEGER ) AS col0
----
-9
24

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3007
SELECT DISTINCT - 57 DIV - 6
----
9

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT - 57 / - 6
----
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3009
SELECT ALL - + 42 + + CAST( + + COALESCE ( 87, COALESCE ( + - 52, + 67, COUNT( * ) ) / - 31 + - COALESCE ( 52, ( - 83 ) ) ) AS SIGNED ) col2
----
45

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL - + 42 + + CAST ( + + COALESCE ( 87, COALESCE ( + - 52, + 67, COUNT ( * ) ) / - 31 + - COALESCE ( 52, ( - 83 ) ) ) AS INTEGER ) col2
----
45

query I rowsort
SELECT + 20 * 56
----
1120

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

skipif mysql # not compatible
query I rowsort label-3011
SELECT 57 + - COUNT ( - - 39 ) + - COUNT ( * ) AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3012
SELECT MAX( ALL 82 ) * + 13 * 16 * - - 93 + + + ( + COALESCE ( + - CAST( ( + 9 ) AS SIGNED ), + 57 * + COUNT( * ) - - SUM( - 47 ), - 85 ) ) * + 6 AS col2
----
1586154

skipif mysql # not compatible
query I rowsort label-3012
SELECT MAX ( ALL 82 ) * + 13 * 16 * - - 93 + + + ( + COALESCE ( + - CAST ( ( + 9 ) AS INTEGER ), + 57 * + COUNT ( * ) - - SUM ( - 47 ), - 85 ) ) * + 6 AS col2
----
1586154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3013
SELECT ALL + - COUNT( * ) + - + 16 / + CAST( NULL AS SIGNED ) + - 80 * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL + - COUNT ( * ) + - + 16 / + CAST ( NULL AS INTEGER ) + - 80 * + 9
----
NULL

query II rowsort
SELECT ALL 86 + + 14 AS col1, + 36
----
100
36

query I rowsort
SELECT DISTINCT - 16 * - 34
----
544

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

query II rowsort
SELECT 20 col0, - ( - + 80 )
----
20
80

query I rowsort
SELECT ALL - 82 + + + 93
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3019
SELECT NULLIF ( 29, + CASE 41 WHEN 78 + 12 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE - SUM( ALL + 38 ) + + 95 END ) * - NULLIF ( COUNT( * ), + - 19 * - + CASE + 38 WHEN + CASE - - CAST( CASE + 94 WHEN + 35 THEN - COUNT( * ) WHEN 18 THEN NULL WHEN + 84 * 47 THEN NULL ELSE - 81 END AS SIGNED ) WHEN COUNT( - 3 ) THEN 22 * 51 END / 41 + + 14 * + 46 THEN + NULLIF ( + 22, COUNT( * ) ) ELSE 54 END * - COUNT( DISTINCT 10 * + 82 ) ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-3019
SELECT NULLIF ( 29, + CASE 41 WHEN 78 + 12 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE - SUM ( ALL + 38 ) + + 95 END ) * - NULLIF ( COUNT ( * ), + - 19 * - + CASE + 38 WHEN + CASE - - CAST ( CASE + 94 WHEN + 35 THEN - COUNT ( * ) WHEN 18 THEN NULL WHEN + 84 * 47 THEN NULL ELSE - 81 END AS INTEGER ) WHEN COUNT ( - 3 ) THEN 22 * 51 END / 41 + + 14 * + 46 THEN + NULLIF ( + 22, COUNT ( * ) ) ELSE 54 END * - COUNT ( DISTINCT 10 * + 82 ) ) AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3020
SELECT ALL - 62, 21 * + 62 + COUNT( * ) - 45 * + - NULLIF ( CAST( NULL AS SIGNED ), + + 56 ) AS col1
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-3020
SELECT ALL - 62, 21 * + 62 + COUNT ( * ) - 45 * + - NULLIF ( CAST ( NULL AS INTEGER ), + + 56 ) AS col1
----
-62
NULL

query I rowsort
SELECT DISTINCT - 71 col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT ALL CAST( + + 88 AS SIGNED ) + 81 AS col1
----
169

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL CAST ( + + 88 AS INTEGER ) + 81 AS col1
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3023
SELECT ALL CASE - 35 WHEN - 87 + - - 63 - - + 37 * 8 / 16 * + CASE 37 WHEN - - 78 * COUNT( * ) * - - CAST( NULL AS SIGNED ) THEN + 92 END THEN - + 17 END - + + COUNT( 55 ) - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL CASE - 35 WHEN - 87 + - - 63 - - + 37 * 8 / 16 * + CASE 37 WHEN - - 78 * COUNT ( * ) * - - CAST ( NULL AS INTEGER ) THEN + 92 END THEN - + 17 END - + + COUNT ( 55 ) - + 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3024
SELECT + 54, - 30 * + SUM( 38 ) AS col1
----
54
-1140

skipif mysql # not compatible
query II rowsort label-3024
SELECT + 54, - 30 * + SUM ( 38 ) AS col1
----
54
-1140

onlyif mysql # DIV for integer division: 
query I rowsort label-3025
SELECT DISTINCT 43 DIV - - 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT 43 / - - 52 AS col2
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3027
SELECT 38 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT 38 + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 88, - NULLIF ( 62, - 86 ) ) - - 90 AS col2
----
2

query II rowsort
SELECT + 65, - 50 AS col0
----
65
-50

query I rowsort
SELECT 22 + + 74 + - 86
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT 57 * COUNT( * ) col0
----
57

skipif mysql # not compatible
query I rowsort label-3031
SELECT 57 * COUNT ( * ) col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT COALESCE ( + - 78, + 53 ) + - COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-3032
SELECT COALESCE ( + - 78, + 53 ) + - COUNT ( * ) AS col0
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-3033
SELECT ALL 32 DIV + 73 * 45, - 34 AS col2
----
0
-34

skipif mysql # not compatible
query II rowsort label-3033
SELECT ALL 32 / + 73 * 45, - 34 AS col2
----
0
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3034
SELECT - ( 62 ) DIV - 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3034
SELECT - ( 62 ) / - 53 AS col0
----
1

query II rowsort
SELECT ALL - 23 col0, 28 + - 71 + - 36
----
-23
-79

query II rowsort
SELECT ALL - 13 AS col1, 87 * 66 AS col1
----
-13
5742

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT + MIN( DISTINCT 22 ) * + + 82
----
1804

skipif mysql # not compatible
query I rowsort label-3038
SELECT + MIN ( DISTINCT 22 ) * + + 82
----
1804

query I rowsort
SELECT ALL + 70 + - 16
----
54

query I rowsort
SELECT DISTINCT - + 40 + - - 66 + - 48 - - 3 * 54 * - 60 AS col0
----
-9742

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL + ( COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + ( COUNT ( * ) ) col1
----
1

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

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL - 78 + COUNT ( + + 67 ) AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3043
SELECT - COUNT( * ) AS col2, 83 * + MIN( DISTINCT - 15 ) * - + CAST( NULL AS SIGNED ) + + + 68
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3043
SELECT - COUNT ( * ) AS col2, 83 * + MIN ( DISTINCT - 15 ) * - + CAST ( NULL AS INTEGER ) + + + 68
----
-1
NULL

query I rowsort
SELECT DISTINCT - 67 * - 7 + 99
----
568

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT COUNT( * ) - + + 11 * + - 71 AS col2
----
782

skipif mysql # not compatible
query I rowsort label-3045
SELECT COUNT ( * ) - + + 11 * + - 71 AS col2
----
782

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

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

query I rowsort
SELECT ALL - 29 + 32
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3048
SELECT - - 23 * + 63 + - 60 * - + CAST( NULL AS SIGNED ) + + NULLIF ( + + COUNT( - 45 ), - 93 ) AS col0, - 84
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-3048
SELECT - - 23 * + 63 + - 60 * - + CAST ( NULL AS INTEGER ) + + NULLIF ( + + COUNT ( - 45 ), - 93 ) AS col0, - 84
----
NULL
-84

query I rowsort
SELECT + + CASE - 33 WHEN 63 THEN + 60 ELSE NULL END + - - 9
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT DISTINCT MIN( ALL - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT MIN ( ALL - 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT - 33 + ( + + 90 ) * + 14 + + - 71 + - 57 - - MIN( + - 83 ) AS col0
----
1016

skipif mysql # not compatible
query I rowsort label-3052
SELECT - 33 + ( + + 90 ) * + 14 + + - 71 + - 57 - - MIN ( + - 83 ) AS col0
----
1016

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

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL - 78 / - COUNT ( * ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3054
SELECT - CAST( NULL AS SIGNED ) + 60 AS col1, 2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-3054
SELECT - CAST ( NULL AS INTEGER ) + 60 AS col1, 2
----
NULL
2

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3057
SELECT ALL - CAST( + 80 AS SIGNED ) - + + 60 * + 66
----
-4040

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL - CAST ( + 80 AS INTEGER ) - + + 60 * + 66
----
-4040

query I rowsort
SELECT - 3 * - 49
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-3059
SELECT ALL - 79 DIV + - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL - 79 / + - 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT - COUNT( * ) * 17 + + + 43 + - + 83 + + 59 * - COUNT( * ) * - 25 AS col0
----
1418

skipif mysql # not compatible
query I rowsort label-3060
SELECT - COUNT ( * ) * 17 + + + 43 + - + 83 + + 59 * - COUNT ( * ) * - 25 AS col0
----
1418

query I rowsort
SELECT DISTINCT - 6 * + 38
----
-228

onlyif mysql # aggregate syntax: 
query II rowsort label-3062
SELECT ALL + SUM( DISTINCT - + 43 ) AS col2, 58 AS col0
----
-43
58

skipif mysql # not compatible
query II rowsort label-3062
SELECT ALL + SUM ( DISTINCT - + 43 ) AS col2, 58 AS col0
----
-43
58

query I rowsort
SELECT + 31 + + 8 - - 27 + 80 + - - 73
----
219

query II rowsort
SELECT - 43 * + 95, 11 AS col0
----
-4085
11

query I rowsort
SELECT + 49 * - 62 AS col2
----
-3038

onlyif mysql # DIV for integer division: 
query II rowsort label-3066
SELECT ALL - 89 * - 49 AS col1, 98 DIV - 68 AS col1
----
4361
-1

skipif mysql # not compatible
query II rowsort label-3066
SELECT ALL - 89 * - 49 AS col1, 98 / - 68 AS col1
----
4361
-1

query I rowsort
SELECT ALL + ( + - 34 ) col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3068
SELECT + - 29 + - NULLIF ( - - CAST( - - CAST( - + 77 AS DECIMAL ) AS SIGNED ), - 13 ) + + 11
----
59

skipif mysql # not compatible
query I rowsort label-3068
SELECT + - 29 + - NULLIF ( - - CAST ( - - CAST ( - + 77 AS REAL ) AS INTEGER ), - 13 ) + + 11
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3069
SELECT DISTINCT - NULLIF ( + - 10, + + 86 DIV - ( 39 ) * NULLIF ( 82, 21 - 76 ) - + 0 ) DIV - COUNT( * ) - - ( - 43 ) + + COUNT( * ) + ( COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT - NULLIF ( + - 10, + + 86 / - ( 39 ) * NULLIF ( 82, 21 - 76 ) - + 0 ) / - COUNT ( * ) - - ( - 43 ) + + COUNT ( * ) + ( COUNT ( * ) )
----
-51

query I rowsort
SELECT ALL + + CASE + 70 WHEN + - 78 / + 4 + 56 * + - ( - 80 ) THEN + 58 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT + + COALESCE ( - 20, - CAST( NULL AS SIGNED ) - + + ( + + 73 ) ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-3071
SELECT + + COALESCE ( - 20, - CAST ( NULL AS INTEGER ) - + + ( + + 73 ) ) col0
----
-20

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT + - 79 DIV - + COUNT( - 62 ) col0
----
79

skipif mysql # not compatible
query I rowsort label-3073
SELECT + - 79 / - + COUNT ( - 62 ) col0
----
79

query I rowsort
SELECT + 75 + - 67
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3075
SELECT + 58 - - 47 * CAST( - COALESCE ( - + 46, - COUNT( DISTINCT 46 ) - - 68, - + COUNT( * ), + AVG ( DISTINCT 15 ) ) AS SIGNED )
----
2220

skipif mysql # not compatible
query I rowsort label-3075
SELECT + 58 - - 47 * CAST ( - COALESCE ( - + 46, - COUNT ( DISTINCT 46 ) - - 68, - + COUNT ( * ), + AVG ( DISTINCT 15 ) ) AS INTEGER )
----
2220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3076
SELECT DISTINCT 37 * - - 7 + + COALESCE ( - CASE + COALESCE ( + 77, 74 * + 35 ) WHEN - + ( + CASE + 57 WHEN CAST( - ( + - ( + ( + COUNT( * ) ) ) ) AS SIGNED ) * NULLIF ( 54, 78 ) THEN 37 - NULLIF ( 56, MAX( 22 ) ) END ) THEN 21 END, 82 ) + 0 * COUNT( * ) AS col1
----
341

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT 37 * - - 7 + + COALESCE ( - CASE + COALESCE ( + 77, 74 * + 35 ) WHEN - + ( + CASE + 57 WHEN CAST ( - ( + - ( + ( + COUNT ( * ) ) ) ) AS INTEGER ) * NULLIF ( 54, 78 ) THEN 37 - NULLIF ( 56, MAX ( 22 ) ) END ) THEN 21 END, 82 ) + 0 * COUNT ( * ) AS col1
----
341

query I rowsort
SELECT DISTINCT - 71 * 52
----
-3692

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

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT - 91 / + COUNT ( * ) col1
----
-91

query I rowsort
SELECT + + 52 + 52 AS col0
----
104

query I rowsort
SELECT ALL + 47 + 37 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3081
SELECT + - SUM( + + 3 ) + + + CAST( - 81 AS SIGNED ), - 96 + + + 28 + + + 33 + - - 30 AS col0
----
-84
-5

skipif mysql # not compatible
query II rowsort label-3081
SELECT + - SUM ( + + 3 ) + + + CAST ( - 81 AS INTEGER ), - 96 + + + 28 + + + 33 + - - 30 AS col0
----
-84
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3082
SELECT - + 3 + - 17 DIV 24 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3082
SELECT - + 3 + - 17 / 24 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT DISTINCT + COUNT( * ) - - CAST( NULL AS SIGNED ) + - 32 * - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT + COUNT ( * ) - - CAST ( NULL AS INTEGER ) + - 32 * - 51 AS col0
----
NULL

query I rowsort
SELECT ALL - 83 * + + 44
----
-3652

onlyif mysql # DIV for integer division: 
query I rowsort label-3085
SELECT DISTINCT 33 DIV + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT 33 / + 91 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT MIN( 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT MIN ( 84 ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3088
SELECT ALL ( 92 ) - + + 40 - + + CASE 4 WHEN + CASE + 80 WHEN 13 * + CAST( + 14 AS SIGNED ) + + + ( 19 ) + 9 * + 22 + + + 85 THEN 64 ELSE 55 END THEN 51 WHEN + 88 THEN NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL ( 92 ) - + + 40 - + + CASE 4 WHEN + CASE + 80 WHEN 13 * + CAST ( + 14 AS INTEGER ) + + + ( 19 ) + 9 * + 22 + + + 85 THEN 64 ELSE 55 END THEN 51 WHEN + 88 THEN NULL END * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3089
SELECT DISTINCT COALESCE ( 83, - SUM( - 53 ), - 72 ), 61 * + - 37 * + 84 - + 2 + 47 - + + 47 AS col0
----
83
-189590

skipif mysql # not compatible
query II rowsort label-3089
SELECT DISTINCT COALESCE ( 83, - SUM ( - 53 ), - 72 ), 61 * + - 37 * + 84 - + 2 + 47 - + + 47 AS col0
----
83
-189590

query I rowsort
SELECT + 26 * 81 AS col1
----
2106

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT + 43 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT + 43 / + 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3092
SELECT - 49 * - 56 / - + MAX( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3092
SELECT - 49 * - 56 / - + MAX ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

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

query I rowsort
SELECT + 19 - + + 1 col0
----
18

query II rowsort
SELECT DISTINCT + 99, - 60 - 57 AS col2
----
99
-117

query I rowsort
SELECT ALL + 21 * - 69 col2
----
-1449

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT - 13 DIV + + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3097
SELECT - 13 / + + 99 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT ALL NULLIF ( - 77, + 7 - - 61 + - 51 + - COALESCE ( + ( + 17 ), + 96, + 49, + 44 ) - - CASE 74 WHEN 75 DIV + 89 + 35 THEN - ( - - 77 ) + + ( + + 76 ) WHEN + 56 * 42 THEN NULL END DIV + ( 96 ) * 5 ) DIV - 65
----
1

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL NULLIF ( - 77, + 7 - - 61 + - 51 + - COALESCE ( + ( + 17 ), + 96, + 49, + 44 ) - - CASE 74 WHEN 75 / + 89 + 35 THEN - ( - - 77 ) + + ( + + 76 ) WHEN + 56 * 42 THEN NULL END / + ( 96 ) * 5 ) / - 65
----
1

query I rowsort
SELECT DISTINCT + 3 * + 49 AS col2
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-3100
SELECT ALL 94 DIV 55 * ( - 30 ) * 2 + 84 * - 49 AS col0
----
-4176

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL 94 / 55 * ( - 30 ) * 2 + 84 * - 49 AS col0
----
-4176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3101
SELECT ALL - MAX( ALL - ( - 70 ) ) * CAST( + + 82 AS SIGNED ) AS col1
----
-5740

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL - MAX ( ALL - ( - 70 ) ) * CAST ( + + 82 AS INTEGER ) AS col1
----
-5740

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

skipif mysql # not compatible
query I rowsort label-3102
SELECT - 6 * - - COUNT ( * ) - COUNT ( * ) * + 29 AS col2
----
-35

query II rowsort
SELECT - 85 AS col0, - 12
----
-85
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3104
SELECT ALL 10 DIV 78 + + 6 + - 75 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL 10 / 78 + + 6 + - 75 AS col2
----
-69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT - + 22 * 85 + + + MIN( + 95 ) AS col0
----
-1775

skipif mysql # not compatible
query I rowsort label-3106
SELECT - + 22 * 85 + + + MIN ( + 95 ) AS col0
----
-1775

query I rowsort
SELECT ALL + - 17 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT DISTINCT + ( - + COUNT( * ) ) + + CASE 28 WHEN - ( 54 ) / + 59 THEN - 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT + ( - + COUNT ( * ) ) + + CASE 28 WHEN - ( 54 ) / + 59 THEN - 1 END AS col0
----
NULL

query I rowsort
SELECT NULLIF ( 13, - + 94 ) + ( + 28 ) + + - 85
----
-44

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

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

query I rowsort
SELECT - 63 * + + 51 * - 57 * - - 27
----
4944807

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL - COUNT( * ) * + + 95 * - + 62
----
5890

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL - COUNT ( * ) * + + 95 * - + 62
----
5890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3113
SELECT 13 * COUNT( * ) DIV - 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3113
SELECT 13 * COUNT ( * ) / - 40 AS col0
----
0

query I rowsort
SELECT COALESCE ( + - 85, + NULLIF ( - 77, + 35 * - 99 * - - 44 * 14 + + + 68 * - + 62 + - 49 + - 81 ) ) * - + 26
----
2210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT ALL CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) / 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) / 6 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT ( - NULLIF ( 2, 50 ) ) - 87 - + ( + ( 30 ) ) * + + CAST( NULL AS SIGNED ) * 26 * ( - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT ( - NULLIF ( 2, 50 ) ) - 87 - + ( + ( 30 ) ) * + + CAST ( NULL AS INTEGER ) * 26 * ( - 87 )
----
NULL

query II rowsort
SELECT ALL 86 AS col0, - 11 * 9
----
86
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT COUNT( * ) - - 94 - - + 59 + + + 71 * - + 81 col0
----
-5597

skipif mysql # not compatible
query I rowsort label-3118
SELECT COUNT ( * ) - - 94 - - + 59 + + + 71 * - + 81 col0
----
-5597

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3120
SELECT ( + 91 ) + + CAST( NULLIF ( - COUNT( * ), + 0 ) AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-3120
SELECT ( + 91 ) + + CAST ( NULLIF ( - COUNT ( * ), + 0 ) AS INTEGER )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3121
SELECT 95 AS col1, COUNT( - 31 )
----
95
1

skipif mysql # not compatible
query II rowsort label-3121
SELECT 95 AS col1, COUNT ( - 31 )
----
95
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT CASE - COALESCE ( - + 7, - MIN( ALL - 16 ) + + CASE - 5 WHEN - + 77 + + 1 * - COUNT( + 91 ) THEN 56 ELSE NULL END ) WHEN ( - 70 ) * - COUNT( * ) * - COUNT( + 94 ) * - - COUNT( * ) - + 27 THEN 4 WHEN + COUNT( * ) + + NULLIF ( 92, + NULLIF ( + 34, - 95 ) + - 24 * 66 ) THEN NULL WHEN 21 THEN NULL END * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT CASE - COALESCE ( - + 7, - MIN ( ALL - 16 ) + + CASE - 5 WHEN - + 77 + + 1 * - COUNT ( + 91 ) THEN 56 ELSE NULL END ) WHEN ( - 70 ) * - COUNT ( * ) * - COUNT ( + 94 ) * - - COUNT ( * ) - + 27 THEN 4 WHEN + COUNT ( * ) + + NULLIF ( 92, + NULLIF ( + 34, - 95 ) + - 24 * 66 ) THEN NULL WHEN 21 THEN NULL END * + 43
----
NULL

query I rowsort
SELECT DISTINCT 66 * 86 AS col1
----
5676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3124
SELECT ALL CASE + CASE CAST( NULL AS SIGNED ) WHEN COALESCE ( 58, - COUNT( ALL - - COALESCE ( 28, - 93 / + 52 ) ) + + 79 ) THEN - 25 + 30 + - 91 * + 1 + + MIN( + 15 ) END WHEN + 58 * COUNT( * ) + + + 10 THEN - + 45 * - 6 ELSE 9 END + ( 93 )
----
102

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL CASE + CASE CAST ( NULL AS INTEGER ) WHEN COALESCE ( 58, - COUNT ( ALL - - COALESCE ( 28, - 93 / + 52 ) ) + + 79 ) THEN - 25 + 30 + - 91 * + 1 + + MIN ( + 15 ) END WHEN + 58 * COUNT ( * ) + + + 10 THEN - + 45 * - 6 ELSE 9 END + ( 93 )
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-3125
SELECT 89 AS col2, 64 * - + 91 + MAX( 54 ) AS col2
----
89
-5770

skipif mysql # not compatible
query II rowsort label-3125
SELECT 89 AS col2, 64 * - + 91 + MAX ( 54 ) AS col2
----
89
-5770

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT + 16 + + 56 + - NULLIF ( COUNT( * ), + 5 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT + 16 + + 56 + - NULLIF ( COUNT ( * ), + 5 ) AS col1
----
71

query I rowsort
SELECT NULLIF ( 21, + ( + 39 ) ) * + 86 AS col0
----
1806

query III rowsort
SELECT 76 AS col2, 68 AS col2, - 2 * + 9 col0
----
76
68
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3129
SELECT 73 DIV + 12 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3129
SELECT 73 / + 12 AS col0
----
6

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

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

query I rowsort
SELECT ALL + - ( - 18 ) + + ( 80 ) AS col1
----
98

query I rowsort
SELECT + NULLIF ( + 54, 82 * - 6 * - 41 * - 15 + 56 - + - 43 ) AS col1
----
54

query I rowsort
SELECT DISTINCT + - 33 * 32
----
-1056

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3135
SELECT 80 * - 48 - + 15 DIV - 82 * - COUNT( * ) AS col0
----
-3840

skipif mysql # not compatible
query I rowsort label-3135
SELECT 80 * - 48 - + 15 / - 82 * - COUNT ( * ) AS col0
----
-3840

query II rowsort
SELECT ALL + 91 * + - 6 * - + 55 + + 63 + - ( 40 ) AS col2, - 34
----
30053
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL - + 20 + + COUNT( * ) + - 50 - - - NULLIF ( + 25, + + 92 ) * - + 23 * - + 5
----
-2944

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL - + 20 + + COUNT ( * ) + - 50 - - - NULLIF ( + 25, + + 92 ) * - + 23 * - + 5
----
-2944

query II rowsort
SELECT + 64, ( 82 ) col2
----
64
82

query II rowsort
SELECT ALL - 70 AS col0, + 2 - + 46
----
-70
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3140
SELECT - NULLIF ( - + COALESCE ( + 40, - 79 DIV 16 * + 70 * + + 30 - 42 * + 31 * - COUNT( ALL + 26 ), ( - 34 ) * - 70 * - COALESCE ( - + 82, + - COUNT( * ) ), - COALESCE ( - 85, + 53, 98 ) ), - ( 79 ) + 70 DIV 66 ) + + 15 col2
----
55

skipif mysql # not compatible
query I rowsort label-3140
SELECT - NULLIF ( - + COALESCE ( + 40, - 79 / 16 * + 70 * + + 30 - 42 * + 31 * - COUNT ( ALL + 26 ), ( - 34 ) * - 70 * - COALESCE ( - + 82, + - COUNT ( * ) ), - COALESCE ( - 85, + 53, 98 ) ), - ( 79 ) + 70 / 66 ) + + 15 col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3141
SELECT + 15 AS col0, 94 + + - 96 - - + SUM( - - 25 ) AS col0
----
15
23

skipif mysql # not compatible
query II rowsort label-3141
SELECT + 15 AS col0, 94 + + - 96 - - + SUM ( - - 25 ) AS col0
----
15
23

query II rowsort
SELECT - 37 AS col0, - 33
----
-37
-33

query II rowsort
SELECT ALL - + 90, 29 AS col2
----
-90
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT - 64 * - NULLIF ( 27, - CASE + 35 WHEN + 79 THEN NULL WHEN + 14 THEN - COUNT( * ) + + 5 END ) * + COUNT( * ) AS col1
----
1728

skipif mysql # not compatible
query I rowsort label-3144
SELECT - 64 * - NULLIF ( 27, - CASE + 35 WHEN + 79 THEN NULL WHEN + 14 THEN - COUNT ( * ) + + 5 END ) * + COUNT ( * ) AS col1
----
1728

query II rowsort
SELECT DISTINCT - - 12, 57 * - 23 AS col1
----
12
-1311

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT + ( - MAX( ALL - 76 ) ) + 60
----
136

skipif mysql # not compatible
query I rowsort label-3146
SELECT + ( - MAX ( ALL - 76 ) ) + 60
----
136

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3148
SELECT 23 + CAST( + + CASE 6 WHEN - 21 THEN 41 * 50 WHEN + 89 THEN - + MAX( DISTINCT - + 14 ) * + COUNT( * ) - - SUM( DISTINCT + + 93 ) END AS DECIMAL ) * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT 23 + CAST ( + + CASE 6 WHEN - 21 THEN 41 * 50 WHEN + 89 THEN - + MAX ( DISTINCT - + 14 ) * + COUNT ( * ) - - SUM ( DISTINCT + + 93 ) END AS REAL ) * 88
----
NULL

query I rowsort
SELECT 97 * - 26
----
-2522

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

skipif mysql # not compatible
query I rowsort label-3150
SELECT 3 / - 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3151
SELECT DISTINCT + ( - 2 ) DIV + COUNT( * ) AS col2, + CASE 17 WHEN - CASE - 81 WHEN - COUNT( * ) * ( + - ( - 4 ) ) THEN + 5 DIV + 61 * - ( - - 4 ) END THEN CAST( NULL AS SIGNED ) - + 58 WHEN - CAST( NULL AS SIGNED ) - 16 + - - 29 * - ( ( 26 ) ) + 48 THEN NULL END AS col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-3151
SELECT DISTINCT + ( - 2 ) / + COUNT ( * ) AS col2, + CASE 17 WHEN - CASE - 81 WHEN - COUNT ( * ) * ( + - ( - 4 ) ) THEN + 5 / + 61 * - ( - - 4 ) END THEN CAST ( NULL AS INTEGER ) - + 58 WHEN - CAST ( NULL AS INTEGER ) - 16 + - - 29 * - ( ( 26 ) ) + 48 THEN NULL END AS col0
----
-2
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT ( NULLIF ( NULLIF ( 41, - 75 ), COUNT( + 32 ) + + 43 ) ) * 57
----
2337

skipif mysql # not compatible
query I rowsort label-3153
SELECT ( NULLIF ( NULLIF ( 41, - 75 ), COUNT ( + 32 ) + + 43 ) ) * 57
----
2337

query I rowsort
SELECT ( + 90 ) + + + ( 59 ) col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT + 48 + 88 + COUNT( - + 12 )
----
137

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT + 48 + 88 + COUNT ( - + 12 )
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-3156
SELECT 41 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-3156
SELECT 41 / + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT ALL - ( 34 ) + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL - ( 34 ) + COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT + SUM( 57 ) * COALESCE ( 66, + 82 * 32, 48 * - 47 * - 17 + - + 93 + + 69 + - 79 + + 30, 38 * MIN( DISTINCT + 55 ) * + 79 + + 71 ) * COUNT( * ) + COUNT( * ) AS col2
----
3763

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT + SUM ( 57 ) * COALESCE ( 66, + 82 * 32, 48 * - 47 * - 17 + - + 93 + + 69 + - 79 + + 30, 38 * MIN ( DISTINCT + 55 ) * + 79 + + 71 ) * COUNT ( * ) + COUNT ( * ) AS col2
----
3763

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT MIN( - + 27 ) * 69
----
-1863

skipif mysql # not compatible
query I rowsort label-3159
SELECT MIN ( - + 27 ) * 69
----
-1863

query I rowsort
SELECT ALL 60 + + + 74
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3161
SELECT ALL 31 + + - 88 AS col2, COUNT( * ) - + NULLIF ( + 27, + - CAST( NULL AS SIGNED ) / 7 - - 25 ) AS col0
----
-57
-26

skipif mysql # not compatible
query II rowsort label-3161
SELECT ALL 31 + + - 88 AS col2, COUNT ( * ) - + NULLIF ( + 27, + - CAST ( NULL AS INTEGER ) / 7 - - 25 ) AS col0
----
-57
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3162
SELECT 31 DIV + ( + + 39 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3162
SELECT 31 / + ( + + 39 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3163
SELECT DISTINCT 66 + 54 DIV NULLIF ( - 29, - CAST( NULL AS SIGNED ) ) - - COUNT( * ) * + 59 * 80 AS col2, 61 * + 88 AS col1
----
4785
5368

skipif mysql # not compatible
query II rowsort label-3163
SELECT DISTINCT 66 + 54 / NULLIF ( - 29, - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) * + 59 * 80 AS col2, 61 * + 88 AS col1
----
4785
5368

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL 24 + - + COUNT( * ) + + - 72
----
-49

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL 24 + - + COUNT ( * ) + + - 72
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT COUNT( * ) - + SUM( - 48 )
----
49

skipif mysql # not compatible
query I rowsort label-3165
SELECT COUNT ( * ) - + SUM ( - 48 )
----
49

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

skipif mysql # not compatible
query I rowsort label-3166
SELECT - COUNT ( - + 40 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3167
SELECT DISTINCT - 83 * - 13 * - 49 * 33 + 24 * + 23 + - 1 + 17 + + 52 + + 78 * + - 98 * 63 - + + 36 * - 8 * 31 AS col2, + 19 + + 64 + - COUNT( ALL ( - + 17 ) )
----
-2216767
82

skipif mysql # not compatible
query II rowsort label-3167
SELECT DISTINCT - 83 * - 13 * - 49 * 33 + 24 * + 23 + - 1 + 17 + + 52 + + 78 * + - 98 * 63 - + + 36 * - 8 * 31 AS col2, + 19 + + 64 + - COUNT ( ALL ( - + 17 ) )
----
-2216767
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT DISTINCT + COUNT( * ) * - - 22 + - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT + COUNT ( * ) * - - 22 + - COUNT ( * )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3169
SELECT + 82 - 29 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3169
SELECT + 82 - 29 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 51 * + - 49 col0
----
-2499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3171
SELECT + COUNT( ALL - + 57 ) - + + 78 + CAST( NULL AS SIGNED ) + NULLIF ( AVG ( DISTINCT 68 ), - - AVG ( + - 47 ) * + 81 - - 31 * - 87 * + COUNT( * ) * 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT + COUNT ( ALL - + 57 ) - + + 78 + CAST ( NULL AS INTEGER ) + NULLIF ( AVG ( DISTINCT 68 ), - - AVG ( + - 47 ) * + 81 - - 31 * - 87 * + COUNT ( * ) * 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3172
SELECT ALL 89 * + 53 - + MIN( ALL + 69 ) + - - 24 * 24 * 95 AS col2, - 75
----
59368
-75

skipif mysql # not compatible
query II rowsort label-3172
SELECT ALL 89 * + 53 - + MIN ( ALL + 69 ) + - - 24 * 24 * 95 AS col2, - 75
----
59368
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-3173
SELECT + + 21 + 56 DIV - + 89, - 41 + - + 70 DIV + 25 AS col0
----
21
-43

skipif mysql # not compatible
query II rowsort label-3173
SELECT + + 21 + 56 / - + 89, - 41 + - + 70 / + 25 AS col0
----
21
-43

query I rowsort
SELECT ALL - 19 * + - 84 + - 9
----
1587

query II rowsort
SELECT ALL - - ( 55 ) * - 89 col0, 55 AS col1
----
-4895
55

query I rowsort
SELECT - 56 * + - 64
----
3584

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT - COUNT( * ) * + - SUM( ALL 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3177
SELECT - COUNT ( * ) * + - SUM ( ALL 44 ) AS col1
----
44

query I rowsort
SELECT - 20 + - 17 AS col1
----
-37

query I rowsort
SELECT DISTINCT COALESCE ( 15, + - 61 + + 29 )
----
15

query I rowsort
SELECT ALL + 61 + + - 32 col0
----
29

query I rowsort
SELECT DISTINCT + 16 + - - NULLIF ( 34, 80 + + - 60 ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT ALL - 62 + + 63 + - + 57 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL - 62 + + 63 + - + 57 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3183
SELECT DISTINCT 78 * + + 21 * 63 * 43 AS col1, ( - COUNT( * ) ) col2
----
4437342
-1

skipif mysql # not compatible
query II rowsort label-3183
SELECT DISTINCT 78 * + + 21 * 63 * 43 AS col1, ( - COUNT ( * ) ) col2
----
4437342
-1

query I rowsort
SELECT - 37 + + - 28 - - 42 + + + 38 * - 29
----
-1125

onlyif mysql # DIV for integer division: 
query II rowsort label-3185
SELECT 14 AS col0, 70 * - 94 - ( - + 49 ) DIV - - ( 37 ) AS col1
----
14
-6579

skipif mysql # not compatible
query II rowsort label-3185
SELECT 14 AS col0, 70 * - 94 - ( - + 49 ) / - - ( 37 ) AS col1
----
14
-6579

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT - SUM( DISTINCT - - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-3186
SELECT - SUM ( DISTINCT - - 55 )
----
-55

query I rowsort
SELECT - 31 + + ( + ( + 83 ) ) * + 35 AS col2
----
2874

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT - COUNT( * ) + + + 44
----
43

skipif mysql # not compatible
query I rowsort label-3188
SELECT - COUNT ( * ) + + + 44
----
43

query I rowsort
SELECT + ( - - 66 ) - 51 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL 77 * + - 58 * - - ( + MAX( + 68 ) )
----
-303688

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL 77 * + - 58 * - - ( + MAX ( + 68 ) )
----
-303688

onlyif mysql # aggregate syntax: 
query II rowsort label-3191
SELECT ALL - 99 - - ( 16 ) AS col2, - SUM( 10 ) AS col0
----
-83
-10

skipif mysql # not compatible
query II rowsort label-3191
SELECT ALL - 99 - - ( 16 ) AS col2, - SUM ( 10 ) AS col0
----
-83
-10

query I rowsort
SELECT ALL + 55 * 86 AS col0
----
4730

query I rowsort
SELECT + ( + - 47 ) * - 4 + 90
----
278

query I rowsort
SELECT - + 74 * + 69
----
-5106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-3195
SELECT + CAST( NULL AS DECIMAL ) AS col0, COALESCE ( NULLIF ( + COALESCE ( + 46, + + 83 ), + CASE - 39 WHEN + - 10 DIV - - 59 * - 70 THEN + 16 END ), - - CASE 93 WHEN + - CAST( + 8 AS SIGNED ) DIV + 96 * - 8 THEN - CASE - 74 WHEN - COUNT( DISTINCT 80 ) THEN 52 DIV 34 WHEN - MIN( 56 ) THEN NULL END DIV - 14 ELSE - 44 + - 23 END * + NULLIF ( + 12 + - 99, + 2 ) ) DIV + COUNT( * ) AS col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-3195
SELECT + CAST ( NULL AS REAL ) AS col0, COALESCE ( NULLIF ( + COALESCE ( + 46, + + 83 ), + CASE - 39 WHEN + - 10 / - - 59 * - 70 THEN + 16 END ), - - CASE 93 WHEN + - CAST ( + 8 AS INTEGER ) / + 96 * - 8 THEN - CASE - 74 WHEN - COUNT ( DISTINCT 80 ) THEN 52 / 34 WHEN - MIN ( 56 ) THEN NULL END / - 14 ELSE - 44 + - 23 END * + NULLIF ( + 12 + - 99, + 2 ) ) / + COUNT ( * ) AS col2
----
NULL
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3196
SELECT - 45 DIV - - ( - ( - + COUNT( * ) ) ) - - 18 + + + COUNT( ALL - 65 ) - + 92 + + COUNT( * ) * MAX( + 19 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-3196
SELECT - 45 / - - ( - ( - + COUNT ( * ) ) ) - - 18 + + + COUNT ( ALL - 65 ) - + 92 + + COUNT ( * ) * MAX ( + 19 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3197
SELECT + 60, + COUNT( * ) * - 82 AS col2
----
60
-82

skipif mysql # not compatible
query II rowsort label-3197
SELECT + 60, + COUNT ( * ) * - 82 AS col2
----
60
-82

query I rowsort
SELECT + + COALESCE ( + 99, 67 + - 71, - 91 ) + + + 13
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-3199
SELECT DISTINCT + - 67 AS col1, + COUNT( * ) AS col1
----
-67
1

skipif mysql # not compatible
query II rowsort label-3199
SELECT DISTINCT + - 67 AS col1, + COUNT ( * ) AS col1
----
-67
1

query I rowsort
SELECT + 42 + + 28 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT + 16 * COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3201
SELECT + 16 * COUNT ( * ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT - 28 * + - 9 * - 15 + 35 * + MAX( + ( + + 23 ) )
----
-2975

skipif mysql # not compatible
query I rowsort label-3202
SELECT - 28 * + - 9 * - 15 + 35 * + MAX ( + ( + + 23 ) )
----
-2975

query I rowsort
SELECT ALL + - ( 25 )
----
-25

query II rowsort
SELECT ALL + 79, - 60 col0
----
79
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3205
SELECT + + 66 AS col1, + ( + - SUM( ALL - 28 ) ) * + - 59 col2
----
66
-1652

skipif mysql # not compatible
query II rowsort label-3205
SELECT + + 66 AS col1, + ( + - SUM ( ALL - 28 ) ) * + - 59 col2
----
66
-1652

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL COALESCE ( + COUNT( * ), - 9, - - 54 ) * - 44 + - 7 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL COALESCE ( + COUNT ( * ), - 9, - - 54 ) * - 44 + - 7 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT + 82 * + COUNT( ALL + + 18 ) + - 54
----
28

skipif mysql # not compatible
query I rowsort label-3207
SELECT + 82 * + COUNT ( ALL + + 18 ) + - 54
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT + + NULLIF ( - 83, 49 / - 84 - 25 + + 28 * CASE - COUNT( * ) WHEN + 60 * + COUNT( * ) / 25 + - - ( + + 28 ) THEN NULL WHEN - 49 THEN 84 - COUNT( + + ( + 35 ) ) WHEN - ( - 44 ) / + - 60 * 57 * + + COUNT( * ) + 32 THEN NULL END ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-3208
SELECT + + NULLIF ( - 83, 49 / - 84 - 25 + + 28 * CASE - COUNT ( * ) WHEN + 60 * + COUNT ( * ) / 25 + - - ( + + 28 ) THEN NULL WHEN - 49 THEN 84 - COUNT ( + + ( + 35 ) ) WHEN - ( - 44 ) / + - 60 * 57 * + + COUNT ( * ) + 32 THEN NULL END ) col0
----
-83

query I rowsort
SELECT + + 93 + - - 93 AS col1
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3210
SELECT + - COALESCE ( + - ( + 78 ), COALESCE ( + 25, - COALESCE ( - 11, - ( 37 ) ), - - COUNT( 18 ) ), 75 ) DIV - + 61 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3210
SELECT + - COALESCE ( + - ( + 78 ), COALESCE ( + 25, - COALESCE ( - 11, - ( 37 ) ), - - COUNT ( 18 ) ), 75 ) / - + 61 col0
----
-1

query I rowsort
SELECT + - 18 * + + 97 AS col0
----
-1746

onlyif mysql # aggregate syntax: 
query II rowsort label-3212
SELECT + 44 + COUNT( * ) AS col0, 62 col2
----
45
62

skipif mysql # not compatible
query II rowsort label-3212
SELECT + 44 + COUNT ( * ) AS col0, 62 col2
----
45
62

query I rowsort
SELECT COALESCE ( - - 57, - 81 + + 33 + 7, - + 7 ) col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3214
SELECT + 21 + + CAST( NULL AS SIGNED ) AS col2, 43 AS col0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-3214
SELECT + 21 + + CAST ( NULL AS INTEGER ) AS col2, 43 AS col0
----
NULL
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3215
SELECT + 41 * - 20 - + NULLIF ( + 47, + 56 ) AS col1, 43 * + ( 25 ) - - COUNT( * ) col2
----
-867
1076

skipif mysql # not compatible
query II rowsort label-3215
SELECT + 41 * - 20 - + NULLIF ( + 47, + 56 ) AS col1, 43 * + ( 25 ) - - COUNT ( * ) col2
----
-867
1076

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT NULLIF ( + 9, + 0 * - CASE + 19 WHEN + 24 + - 75 THEN - 43 WHEN + 9 * 52 * + 88 + - + 8 * 98 THEN NULL WHEN - - 61 THEN NULL ELSE + 98 END + + - 89 + + + COUNT( * ) * - - 84 )
----
9

skipif mysql # not compatible
query I rowsort label-3216
SELECT NULLIF ( + 9, + 0 * - CASE + 19 WHEN + 24 + - 75 THEN - 43 WHEN + 9 * 52 * + 88 + - + 8 * 98 THEN NULL WHEN - - 61 THEN NULL ELSE + 98 END + + - 89 + + + COUNT ( * ) * - - 84 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT + 97 + SUM( + + 28 )
----
125

skipif mysql # not compatible
query I rowsort label-3217
SELECT + 97 + SUM ( + + 28 )
----
125

query I rowsort
SELECT ALL - 52 * + - ( - + 43 ) + - 18
----
-2254

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL 66 * 27 * + - 56 + + 93 + - + 82 + COUNT( * ) AS col1
----
-99780

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL 66 * 27 * + - 56 + + 93 + - + 82 + COUNT ( * ) AS col1
----
-99780

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT DISTINCT COUNT( DISTINCT 31 )
----
1

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT COUNT ( DISTINCT 31 )
----
1

query II rowsort
SELECT - 67 + - 79 col2, + 69 + - + 71
----
-146
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3222
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) + 25 * + ( 71 ) + - + CAST( 96 AS SIGNED )
----
1680

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) + 25 * + ( 71 ) + - + CAST ( 96 AS INTEGER )
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT MIN( - + 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-3223
SELECT MIN ( - + 41 )
----
-41

query I rowsort
SELECT DISTINCT - 12 + - - 89
----
77

query I rowsort
SELECT DISTINCT ( + 86 ) AS col1
----
86

query I rowsort
SELECT - 13 + - - 97 + + - 24
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT ALL CAST( - - 22 AS SIGNED ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL CAST ( - - 22 AS INTEGER ) AS col2
----
22

query I rowsort
SELECT ALL 89 - ( - 56 ) + - 14 + ( - 36 ) AS col0
----
95

query I rowsort
SELECT DISTINCT 48 * 58 * - 76
----
-211584

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL - SUM( ALL + - 39 ) - + 93 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - SUM ( ALL + - 39 ) - + 93 AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3231
SELECT ( + - CAST( NULL AS SIGNED ) ) * + + COALESCE ( 77, COUNT( * ) + + 23, 49 / 53 - 3 + 62 * + 74 ) * + 27 - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3231
SELECT ( + - CAST ( NULL AS INTEGER ) ) * + + COALESCE ( 77, COUNT ( * ) + + 23, 49 / 53 - 3 + 62 * + 74 ) * + 27 - 78
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3232
SELECT + ( COUNT( * ) ) AS col2, - 53
----
1
-53

skipif mysql # not compatible
query II rowsort label-3232
SELECT + ( COUNT ( * ) ) AS col2, - 53
----
1
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT - MAX( ALL - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-3233
SELECT - MAX ( ALL - 39 )
----
39

query I rowsort
SELECT ALL - - 97 - - 27 col1
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-3235
SELECT 65 * - 41 * + COUNT( ALL - 27 ), - 70 + 1 AS col1
----
-2665
-69

skipif mysql # not compatible
query II rowsort label-3235
SELECT 65 * - 41 * + COUNT ( ALL - 27 ), - 70 + 1 AS col1
----
-2665
-69

query I rowsort
SELECT - 73 * + COALESCE ( - + 36, + 57 * + ( 64 ) )
----
2628

query I rowsort
SELECT - 17 - - 8
----
-9

query I rowsort
SELECT 58 - + 31 + - + 18 AS col1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3239
SELECT - 0 / - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT - 0 / - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT + COUNT( * ) * + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-3240
SELECT + COUNT ( * ) * + - 89
----
-89

query I rowsort
SELECT DISTINCT + + 55 * + 67 * - 77
----
-283745

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT + + SUM( + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-3242
SELECT + + SUM ( + 40 )
----
40

query I rowsort
SELECT ALL + - 5 * + 96 AS col1
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT DISTINCT - - 42 + 52 * - COUNT( * ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT - - 42 + 52 * - COUNT ( * ) AS col1
----
-10

query I rowsort
SELECT DISTINCT - 16 + - 3 * 30
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT 4 DIV 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3246
SELECT 4 / 24 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT + COUNT( + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-3247
SELECT + COUNT ( + 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL SUM( - 96 ) + - 6 AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL SUM ( - 96 ) + - 6 AS col2
----
-102

query I rowsort
SELECT 22 * + 63 AS col0
----
1386

query I rowsort
SELECT 58 + + 6
----
64

query I rowsort
SELECT ALL - ( - 73 ) AS col2
----
73

query II rowsort
SELECT 53 AS col1, + 17 * - 38
----
53
-646

query I rowsort
SELECT ALL 9 + 17 * - + 15
----
-246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3254
SELECT DISTINCT - CAST( ( - CASE COUNT( * ) WHEN - - 30 THEN - 70 WHEN ( - AVG ( DISTINCT + NULLIF ( + - 26, - 82 + + 53 - + 64 ) ) ) / + 36 THEN COUNT( * ) END ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT - CAST ( ( - CASE COUNT ( * ) WHEN - - 30 THEN - 70 WHEN ( - AVG ( DISTINCT + NULLIF ( + - 26, - 82 + + 53 - + 64 ) ) ) / + 36 THEN COUNT ( * ) END ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT 48 * + - COUNT( * ) * + 82
----
-3936

skipif mysql # not compatible
query I rowsort label-3255
SELECT 48 * + - COUNT ( * ) * + 82
----
-3936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3256
SELECT MAX( + 59 ) * 75 DIV + 7
----
632

skipif mysql # not compatible
query I rowsort label-3256
SELECT MAX ( + 59 ) * 75 / + 7
----
632

onlyif mysql # aggregate syntax: 
query II rowsort label-3257
SELECT ALL 49 + + 0 + + 67 + + ( 82 ) AS col0, - 2 + - 46 + 71 + COUNT( * ) * + + 89
----
198
112

skipif mysql # not compatible
query II rowsort label-3257
SELECT ALL 49 + + 0 + + 67 + + ( 82 ) AS col0, - 2 + - 46 + 71 + COUNT ( * ) * + + 89
----
198
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3258
SELECT 47 - 88 + + CAST( NULL AS SIGNED ) / COUNT( * ) + CAST( + 64 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT 47 - 88 + + CAST ( NULL AS INTEGER ) / COUNT ( * ) + CAST ( + 64 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3259
SELECT 92 DIV + COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3259
SELECT 92 / + COUNT ( * ) AS col1
----
92

query I rowsort
SELECT 66 + + 46 * 68 + + 93 + + - 54 col1
----
3233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3261
SELECT ALL 95 - + 4 + + 39 + + 26 * MAX( - 68 ) DIV 40 * - - ( 93 ) col1
----
-3962

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL 95 - + 4 + + 39 + + 26 * MAX ( - 68 ) / 40 * - - ( 93 ) col1
----
-3962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3262
SELECT ( - NULLIF ( - 40, - - 13 ) ) - + - CASE WHEN NOT CAST( NULL AS SIGNED ) > ( - - 68 ) THEN NULL ELSE - 40 + 81 * + ( + 48 ) END * - 96 DIV COUNT( * )
----
-369368

skipif mysql # not compatible
query I rowsort label-3262
SELECT ( - NULLIF ( - 40, - - 13 ) ) - + - CASE WHEN NOT CAST ( NULL AS INTEGER ) > ( - - 68 ) THEN NULL ELSE - 40 + 81 * + ( + 48 ) END * - 96 / COUNT ( * )
----
-369368

query I rowsort
SELECT DISTINCT + NULLIF ( ( 70 ), - + COALESCE ( + 12, - + 35 + - - 97 ) + + + 69 + - 36 * + 35 * - 59 ) * - 25 col2
----
-1750

onlyif mysql # DIV for integer division: 
query I rowsort label-3264
SELECT DISTINCT 1 DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT 1 / + 10
----
0

query II rowsort
SELECT - + 88 AS col1, - 6 AS col2
----
-88
-6

query I rowsort
SELECT 3 + + - 37 * - 61
----
2260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3267
SELECT - 48 + - NULLIF ( COUNT( * ), 43 ) + + + 24 + - - 1 * + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3267
SELECT - 48 + - NULLIF ( COUNT ( * ), 43 ) + + + 24 + - - 1 * + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3268
SELECT 34 / + - 61 * + + CASE + MIN( ALL - 66 ) WHEN + + 80 + + 12 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN 70 + + - 96 / + - 46 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT 34 / + - 61 * + + CASE + MIN ( ALL - 66 ) WHEN + + 80 + + 12 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN 70 + + - 96 / + - 46 END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3269
SELECT 93 + + + COUNT( * ) * + + ( COUNT( * ) ) - 20 + + 23 DIV - COUNT( * ) + + + 30 * 0 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3269
SELECT 93 + + + COUNT ( * ) * + + ( COUNT ( * ) ) - 20 + + 23 / - COUNT ( * ) + + + 30 * 0 AS col1
----
51

query I rowsort
SELECT 80 + - 59 + 23 AS col1
----
44

query I rowsort
SELECT ALL - 72 * 50 AS col1
----
-3600

query I rowsort
SELECT + 15 + + 36 + 97 + - - 17
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3273
SELECT DISTINCT CAST( 6 AS SIGNED ) * - MIN( - + 4 )
----
24

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT CAST ( 6 AS INTEGER ) * - MIN ( - + 4 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3274
SELECT NULLIF ( - - 69, + 6 - - + COUNT( * ) * 24 / + + NULLIF ( - + 35, + AVG ( + - CASE + ( ( 96 ) ) WHEN - 61 THEN - + CAST( 27 AS SIGNED ) END ) ) ) * + 34 * - - COUNT( * ) AS col1
----
2346

skipif mysql # not compatible
query I rowsort label-3274
SELECT NULLIF ( - - 69, + 6 - - + COUNT ( * ) * 24 / + + NULLIF ( - + 35, + AVG ( + - CASE + ( ( 96 ) ) WHEN - 61 THEN - + CAST ( 27 AS INTEGER ) END ) ) ) * + 34 * - - COUNT ( * ) AS col1
----
2346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3275
SELECT DISTINCT + 4 * + + COALESCE ( + 32, - 95, - - 7 DIV 86 ) * - - COUNT( * ) - - 63 + 58 * 23 * 31 + - + 71
----
41474

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + 4 * + + COALESCE ( + 32, - 95, - - 7 / 86 ) * - - COUNT ( * ) - - 63 + 58 * 23 * 31 + - + 71
----
41474

query I rowsort
SELECT - 73 * + 53
----
-3869

onlyif mysql # aggregate syntax: 
query II rowsort label-3277
SELECT ALL + + ( 67 ) * - 84 - - ( - + COUNT( * ) ) col0, - 17
----
-5629
-17

skipif mysql # not compatible
query II rowsort label-3277
SELECT ALL + + ( 67 ) * - 84 - - ( - + COUNT ( * ) ) col0, - 17
----
-5629
-17

query I rowsort
SELECT DISTINCT - 29 + + 80
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT ALL + ( - ( + - COUNT( * ) ) ) * + ( + 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL + ( - ( + - COUNT ( * ) ) ) * + ( + 83 ) AS col2
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3280
SELECT DISTINCT + 84 + 12 DIV COUNT( - 43 ) - 77 + 32 + + 94 * - 64 + 82 * - 65 AS col1
----
-11295

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT + 84 + 12 / COUNT ( - 43 ) - 77 + 32 + + 94 * - 64 + 82 * - 65 AS col1
----
-11295

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT 39 * + COUNT( + 12 ) + 70
----
109

skipif mysql # not compatible
query I rowsort label-3281
SELECT 39 * + COUNT ( + 12 ) + 70
----
109

query I rowsort
SELECT 47 + - 43 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3283
SELECT ALL - 21, COUNT( * ) AS col0
----
-21
1

skipif mysql # not compatible
query II rowsort label-3283
SELECT ALL - 21, COUNT ( * ) AS col0
----
-21
1

query I rowsort
SELECT 57 + + - 43
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT ALL - SUM( + 79 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL - SUM ( + 79 ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL 95 - - MAX( - 77 )
----
18

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL 95 - - MAX ( - 77 )
----
18

query I rowsort
SELECT ALL NULLIF ( + 47, + + 43 + - + 95 * + + 22 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3288
SELECT ( + ( NULLIF ( - CAST( NULL AS DECIMAL ), - 57 ) ) ) * 40 + + 46 - + - CASE + - 77 WHEN - 65 THEN NULL WHEN - 64 THEN - 40 * + 56 ELSE + - 50 - + - 3 END * - + 56, - COUNT( * ) col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3288
SELECT ( + ( NULLIF ( - CAST ( NULL AS REAL ), - 57 ) ) ) * 40 + + 46 - + - CASE + - 77 WHEN - 65 THEN NULL WHEN - 64 THEN - 40 * + 56 ELSE + - 50 - + - 3 END * - + 56, - COUNT ( * ) col2
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL COUNT( * ) * - 54
----
-54

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL COUNT ( * ) * - 54
----
-54

query II rowsort
SELECT + ( 42 ) + - 40 + - + 94, - ( - ( + 91 ) ) AS col1
----
-92
91

query II rowsort
SELECT ALL 60 - + 80 * - 55 * - 58 AS col0, + 59 AS col1
----
-255140
59

query I rowsort
SELECT + 30 + - 55
----
-25

query I rowsort
SELECT - 76 * 51 AS col0
----
-3876

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT + - COUNT( * ) * ( + - 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3294
SELECT + - COUNT ( * ) * ( + - 91 ) AS col2
----
91

query I rowsort
SELECT - ( - 64 ) col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3296
SELECT 56 AS col1, - CAST( NULL AS SIGNED )
----
56
NULL

skipif mysql # not compatible
query II rowsort label-3296
SELECT 56 AS col1, - CAST ( NULL AS INTEGER )
----
56
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3297
SELECT + COUNT( * ) AS col1, 13 * - + 78 + - + 59 AS col1, - NULLIF ( 51, 44 ) * + - 67
----
1
-1073
3417

skipif mysql # not compatible
query III rowsort label-3297
SELECT + COUNT ( * ) AS col1, 13 * - + 78 + - + 59 AS col1, - NULLIF ( 51, 44 ) * + - 67
----
1
-1073
3417

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT DISTINCT - SUM( ALL - - 23 ) * COUNT( * ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT - SUM ( ALL - - 23 ) * COUNT ( * ) col0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-3299
SELECT DISTINCT COUNT( * ), + 42 AS col1
----
1
42

skipif mysql # not compatible
query II rowsort label-3299
SELECT DISTINCT COUNT ( * ), + 42 AS col1
----
1
42

query I rowsort
SELECT + 48 * - 64 + + + 51 + - 11 * + 36 col2
----
-3417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT ALL 18 DIV - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL 18 / - COUNT ( * )
----
-18

query I rowsort
SELECT + COALESCE ( + 64, - - 88 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT + - CASE + 58 WHEN 43 * COUNT( * ) * - 27 + + - 9 + + MAX( - - 61 ) THEN + COUNT( * ) * + + 99 * - 76 - - 31 + - 79 - - + 87 * - 53 - - 37 * ( - 18 ) WHEN 39 THEN NULL ELSE - 30 END + - 19 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3303
SELECT + - CASE + 58 WHEN 43 * COUNT ( * ) * - 27 + + - 9 + + MAX ( - - 61 ) THEN + COUNT ( * ) * + + 99 * - 76 - - 31 + - 79 - - + 87 * - 53 - - 37 * ( - 18 ) WHEN 39 THEN NULL ELSE - 30 END + - 19 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3304
SELECT DISTINCT COALESCE ( + 56, COUNT( * ) ) * + - 81 + CAST( + 64 AS SIGNED ) + + 64
----
-4408

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT COALESCE ( + 56, COUNT ( * ) ) * + - 81 + CAST ( + 64 AS INTEGER ) + + 64
----
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL + COUNT( * ) + + 24 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL + COUNT ( * ) + + 24 AS col0
----
25

query I rowsort
SELECT + - 36 - 0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3307
SELECT - 36 AS col1, + COUNT( * )
----
-36
1

skipif mysql # not compatible
query II rowsort label-3307
SELECT - 36 AS col1, + COUNT ( * )
----
-36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT - - COUNT( * ) * - 23 - + ( ( ( 82 ) ) ) AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-3308
SELECT - - COUNT ( * ) * - 23 - + ( ( ( 82 ) ) ) AS col2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL + MIN( ALL + 8 ) * + + 16
----
128

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL + MIN ( ALL + 8 ) * + + 16
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3310
SELECT DISTINCT + + 3 AS col1, + CAST( - ( - - 36 ) AS SIGNED ) + - + 65 AS col1
----
3
-101

skipif mysql # not compatible
query II rowsort label-3310
SELECT DISTINCT + + 3 AS col1, + CAST ( - ( - - 36 ) AS INTEGER ) + - + 65 AS col1
----
3
-101

query I rowsort
SELECT ALL - 86 * + 96 * - 23 + + 12 AS col1
----
189900

query I rowsort
SELECT ALL + ( + ( - 4 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT 16 * + 67 + + + COUNT( * ) AS col1
----
1073

skipif mysql # not compatible
query I rowsort label-3313
SELECT 16 * + 67 + + + COUNT ( * ) AS col1
----
1073

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT - 26 - + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-3314
SELECT - 26 - + COUNT ( * )
----
-27

query I rowsort
SELECT ( + ( + 80 ) ) col0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-3316
SELECT ( + + COUNT( * ) ), 75 AS col1
----
1
75

skipif mysql # not compatible
query II rowsort label-3316
SELECT ( + + COUNT ( * ) ), 75 AS col1
----
1
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3317
SELECT + 41 * CAST( NULL AS DECIMAL ) * COUNT( * ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT + 41 * CAST ( NULL AS REAL ) * COUNT ( * ) - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3318
SELECT ALL + 71 DIV + 3 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL + 71 / + 3 AS col2
----
23

query II rowsort
SELECT NULLIF ( + 17, - 57 ) AS col0, - 7 AS col1
----
17
-7

query I rowsort
SELECT DISTINCT + 53 * - - 97
----
5141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3321
SELECT - ( + CAST( NULL AS SIGNED ) ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT - ( + CAST ( NULL AS INTEGER ) ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3322
SELECT ALL + 72 DIV + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col1
----
72
NULL

skipif mysql # not compatible
query II rowsort label-3322
SELECT ALL + 72 / + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col1
----
72
NULL

query I rowsort
SELECT ALL + COALESCE ( + + 80, + 55 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3324
SELECT - 37 DIV - - ( - - COUNT( * ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3324
SELECT - 37 / - - ( - - COUNT ( * ) ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT ALL + NULLIF ( + 19, + - COUNT( * ) - + 91 )
----
19

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL + NULLIF ( + 19, + - COUNT ( * ) - + 91 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT - COUNT( * ) + - 57
----
-58

skipif mysql # not compatible
query I rowsort label-3326
SELECT - COUNT ( * ) + - 57
----
-58

query I rowsort
SELECT + 6 * + 8
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3328
SELECT ALL - 9 DIV - + 57 * + - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL - 9 / - + 57 * + - 85 AS col1
----
0

query II rowsort
SELECT - 18 + 95, - 80 AS col1
----
77
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL - COUNT( - 8 ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL - COUNT ( - 8 ) + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT MIN( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3331
SELECT MIN ( + 0 )
----
0

query I rowsort
SELECT ALL + + 11 + 96 + - 75
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT DISTINCT - 53 + + NULLIF ( - + 0, - + COUNT( * ) + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT - 53 + + NULLIF ( - + 0, - + COUNT ( * ) + + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT DISTINCT 25 * + 22 - + 34 * + ( COUNT( * ) )
----
516

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT 25 * + 22 - + 34 * + ( COUNT ( * ) )
----
516

onlyif mysql # aggregate syntax: 
query II rowsort label-3335
SELECT ALL + 70 + - CASE - 40 WHEN - COUNT( * ) THEN + COUNT( * ) + - 22 + + + 13 + - 8 * + 46 * + ( + 66 ) WHEN + - 57 THEN NULL END col1, + 50
----
NULL
50

skipif mysql # not compatible
query II rowsort label-3335
SELECT ALL + 70 + - CASE - 40 WHEN - COUNT ( * ) THEN + COUNT ( * ) + - 22 + + + 13 + - 8 * + 46 * + ( + 66 ) WHEN + - 57 THEN NULL END col1, + 50
----
NULL
50

query I rowsort
SELECT - 99 + + + 51 col0
----
-48

query II rowsort
SELECT + 13 + + 17 AS col1, + 4
----
30
4

query I rowsort
SELECT + 26 + + - 64
----
-38

query I rowsort
SELECT DISTINCT 14 - - + ( + ( - NULLIF ( + 72, - 39 + 0 ) ) ) * + ( - 74 ) - + 88 + - ( - - 11 )
----
5243

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT + 62 DIV - 41 + + 69
----
68

skipif mysql # not compatible
query I rowsort label-3340
SELECT + 62 / - 41 + + 69
----
68

query I rowsort
SELECT + 15 * - 59
----
-885

query II rowsort
SELECT + 20 * - 95 * - 82, 66 AS col1
----
155800
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT ALL 85 * + CAST( NULL AS SIGNED ) * CAST( - 6 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL 85 * + CAST ( NULL AS INTEGER ) * CAST ( - 6 AS INTEGER )
----
NULL

query I rowsort
SELECT + 37 * - + 63 + 40
----
-2291

query II rowsort
SELECT + 39 col0, 4
----
39
4

query I rowsort
SELECT ALL 49 * - + 19 col0
----
-931

query I rowsort
SELECT ALL - ( - 34 ) AS col1
----
34

query I rowsort
SELECT DISTINCT 84 * + 43 AS col1
----
3612

query I rowsort
SELECT 92 + + + COALESCE ( NULLIF ( + + 10, - 35 * + 98 + + 66 - + 36 ), - 91 + - 56, 32 )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT 66 * COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3350
SELECT 66 * COUNT ( * ) AS col1
----
66

query I rowsort
SELECT - 5 * + 91 * - + 12 + - 91 AS col1
----
5369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3352
SELECT DISTINCT - COUNT( * ) DIV + + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT - COUNT ( * ) / + + 65 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3353
SELECT DISTINCT 42 + - 37 DIV - + COUNT( * ) - - - 46 * - - COUNT( * ) + - 31, 87 + + - ( - + 11 ) AS col0
----
2
98

skipif mysql # not compatible
query II rowsort label-3353
SELECT DISTINCT 42 + - 37 / - + COUNT ( * ) - - - 46 * - - COUNT ( * ) + - 31, 87 + + - ( - + 11 ) AS col0
----
2
98

query I rowsort
SELECT ALL - 5 * + 31 AS col0
----
-155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3355
SELECT DISTINCT 55 + + - CASE + MIN( + 42 ) WHEN + 1 THEN NULL WHEN - 8 THEN NULL ELSE 5 DIV - 55 * - 66 END * - MIN( ALL - 3 ) * 39 + - 24 + + 14 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT 55 + + - CASE + MIN ( + 42 ) WHEN + 1 THEN NULL WHEN - 8 THEN NULL ELSE 5 / - 55 * - 66 END * - MIN ( ALL - 3 ) * 39 + - 24 + + 14 AS col2
----
45

query II rowsort
SELECT ALL - - 62 + - - 16 + 96, 77 AS col0
----
174
77

query I rowsort
SELECT + 54 * - 13 * 7 + + - 49
----
-4963

onlyif mysql # aggregate syntax: 
query II rowsort label-3358
SELECT ALL - + 46 * 9 * NULLIF ( 94, - + 65 * 80 ) * + ( + 28 ) + 40 + + + 53 + + 70 * + - COUNT( * ) * - 10 * 31 AS col2, - 51
----
-1067855
-51

skipif mysql # not compatible
query II rowsort label-3358
SELECT ALL - + 46 * 9 * NULLIF ( 94, - + 65 * 80 ) * + ( + 28 ) + 40 + + + 53 + + 70 * + - COUNT ( * ) * - 10 * 31 AS col2, - 51
----
-1067855
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT + 17 + + 0 * - MIN( DISTINCT - 12 ) + - + 44
----
-27

skipif mysql # not compatible
query I rowsort label-3359
SELECT + 17 + + 0 * - MIN ( DISTINCT - 12 ) + - + 44
----
-27

query II rowsort
SELECT - - 88 AS col1, 64 AS col0
----
88
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3361
SELECT - CASE + 52 WHEN - + CAST( - - 81 AS SIGNED ) * - + CASE - 34 WHEN 80 * + 66 * - 96 THEN NULL WHEN + 2 + 14 * 16 THEN NULL WHEN + SUM( ALL + 73 ) THEN + 14 ELSE NULL END THEN - + 98 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT - CASE + 52 WHEN - + CAST ( - - 81 AS INTEGER ) * - + CASE - 34 WHEN 80 * + 66 * - 96 THEN NULL WHEN + 2 + 14 * 16 THEN NULL WHEN + SUM ( ALL + 73 ) THEN + 14 ELSE NULL END THEN - + 98 END AS col1
----
NULL

query I rowsort
SELECT ( COALESCE ( + + 7, + 58, - ( - 38 ) + 87 ) ) + - 83 + 33
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-3363
SELECT ALL + 0 + + 99 DIV - 20 AS col1, NULLIF ( - ( - + 69 ), + + 27 * + + 67 )
----
-4
69

skipif mysql # not compatible
query II rowsort label-3363
SELECT ALL + 0 + + 99 / - 20 AS col1, NULLIF ( - ( - + 69 ), + + 27 * + + 67 )
----
-4
69

query I rowsort
SELECT DISTINCT ( - - 20 )
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-3365
SELECT ALL - 39 - 73 * + 61 AS col1, 9 DIV - 38 AS col0
----
-4492
0

skipif mysql # not compatible
query II rowsort label-3365
SELECT ALL - 39 - 73 * + 61 AS col1, 9 / - 38 AS col0
----
-4492
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3366
SELECT DISTINCT CAST( - + 53 AS SIGNED ) * + - 26 - + 21 AS col2, 10 AS col0
----
1357
10

skipif mysql # not compatible
query II rowsort label-3366
SELECT DISTINCT CAST ( - + 53 AS INTEGER ) * + - 26 - + 21 AS col2, 10 AS col0
----
1357
10

query I rowsort
SELECT DISTINCT ( + 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3368
SELECT + COUNT( 28 ) + 57 + + COUNT( * ) - + COUNT( ALL - 28 ) DIV - - MIN( ALL + 18 ) * 4 * + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3368
SELECT + COUNT ( 28 ) + 57 + + COUNT ( * ) - + COUNT ( ALL - 28 ) / - - MIN ( ALL + 18 ) * 4 * + COUNT ( * ) AS col0
----
59

query I rowsort
SELECT DISTINCT - 56 * - - 96 * + 86 AS col0
----
-462336

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL 85 * - SUM( DISTINCT 16 )
----
-1360

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL 85 * - SUM ( DISTINCT 16 )
----
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT 50 - 50 - - + CASE 4 WHEN - 55 THEN + SUM( ALL + 51 ) ELSE + 62 * - 47 END
----
-2914

skipif mysql # not compatible
query I rowsort label-3371
SELECT 50 - 50 - - + CASE 4 WHEN - 55 THEN + SUM ( ALL + 51 ) ELSE + 62 * - 47 END
----
-2914

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3372
SELECT ALL 73 / CAST( NULL AS DECIMAL ) / - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL 73 / CAST ( NULL AS REAL ) / - 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL - MAX( DISTINCT - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL - MAX ( DISTINCT - 9 )
----
9

query I rowsort
SELECT DISTINCT 2 + 80 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3375
SELECT 66 DIV CAST( + 61 AS SIGNED ) * - 98 DIV 80 + - NULLIF ( 11, - CASE - 4 WHEN - 64 THEN 54 * 26 + - CASE + - ( - 65 ) WHEN - 32 - - - COUNT( * ) THEN - 60 * + 78 ELSE 69 END + COUNT( * ) * + 15 * 3 + + 31 DIV - 52 * + 55 * - 25 * + COALESCE ( + 76, COALESCE ( SUM( + 44 ), 10, - 41, 66 * + 6 ), 12 ) + - 63 END * - 82 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3375
SELECT 66 / CAST ( + 61 AS INTEGER ) * - 98 / 80 + - NULLIF ( 11, - CASE - 4 WHEN - 64 THEN 54 * 26 + - CASE + - ( - 65 ) WHEN - 32 - - - COUNT ( * ) THEN - 60 * + 78 ELSE 69 END + COUNT ( * ) * + 15 * 3 + + 31 / - 52 * + 55 * - 25 * + COALESCE ( + 76, COALESCE ( SUM ( + 44 ), 10, - 41, 66 * + 6 ), 12 ) + - 63 END * - 82 ) AS col1
----
-12

query I rowsort
SELECT ALL 37 + + + 36 + + 8
----
81

query I rowsort
SELECT 11 * - 79 AS col2
----
-869

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT DISTINCT 30 * + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT 30 * + COUNT ( * )
----
30

query I rowsort
SELECT DISTINCT 42 + - ( 3 )
----
39

query I rowsort
SELECT ALL 1 + - ( + + COALESCE ( - 29, - NULLIF ( 89, + 91 ) ) )
----
30

query I rowsort
SELECT DISTINCT 36 + - 61 + + + 22 * + 33 AS col1
----
701

query I rowsort
SELECT DISTINCT 94 * ( + 74 ) AS col1
----
6956

query II rowsort
SELECT DISTINCT - 6 + - 65 AS col0, NULLIF ( + 23, - 78 ) * - + 66 * - 68 * - 67 AS col1
----
-71
-6916008

query I rowsort
SELECT + NULLIF ( - 2, 36 ) AS col1
----
-2

query I rowsort
SELECT ALL - CASE + 42 WHEN - 61 + - 20 THEN - 97 ELSE NULL END * + + 56 AS col0
----
NULL

query I rowsort
SELECT - 32 + - + 24 + + 97 AS col2
----
41

query I rowsort
SELECT 70 * 85
----
5950

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3388
SELECT 72 + + COUNT( * ) AS col2, COUNT( + 28 ) DIV + 62 AS col0
----
73
0

skipif mysql # not compatible
query II rowsort label-3388
SELECT 72 + + COUNT ( * ) AS col2, COUNT ( + 28 ) / + 62 AS col0
----
73
0

query I rowsort
SELECT ALL 84 + 97
----
181

query I rowsort
SELECT 3 + 23 * + 32
----
739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3391
SELECT COALESCE ( 17, - CASE + - 75 WHEN 14 THEN - CAST( NULL AS SIGNED ) * - COUNT( * ) DIV + + 31 - 4 WHEN - 53 DIV - 59 + - COUNT( * ) + - + 29 THEN 7 END * - ( + - 27 ) ) + + + 94 - + ( + 65 ), 47 + - 99 AS col2
----
46
-52

skipif mysql # not compatible
query II rowsort label-3391
SELECT COALESCE ( 17, - CASE + - 75 WHEN 14 THEN - CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + + 31 - 4 WHEN - 53 / - 59 + - COUNT ( * ) + - + 29 THEN 7 END * - ( + - 27 ) ) + + + 94 - + ( + 65 ), 47 + - 99 AS col2
----
46
-52

query I rowsort
SELECT 93 * 17
----
1581

query I rowsort
SELECT - + 73 * 88 + - - 3
----
-6421

query I rowsort
SELECT ALL + 43 - - 83
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3395
SELECT ALL - CASE - 84 WHEN - 79 THEN NULL ELSE - SUM( DISTINCT + 47 ) END DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL - CASE - 84 WHEN - 79 THEN NULL ELSE - SUM ( DISTINCT + 47 ) END / - 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3396
SELECT 72 * ( 75 ) DIV + + ( 96 ) + 55 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-3396
SELECT 72 * ( 75 ) / + + ( 96 ) + 55 AS col2
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3397
SELECT ALL CAST( - 53 AS SIGNED ) AS col2, + 6 AS col2
----
-53
6

skipif mysql # not compatible
query II rowsort label-3397
SELECT ALL CAST ( - 53 AS INTEGER ) AS col2, + 6 AS col2
----
-53
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + ( + COUNT( * ) ) * + 87 + + 96 AS col2
----
183

skipif mysql # not compatible
query I rowsort label-3398
SELECT + ( + COUNT ( * ) ) * + 87 + + 96 AS col2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ALL MIN( - + 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL MIN ( - + 95 ) AS col0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3400
SELECT 50 + + 9 + - 61 + - 24 / - - CAST( NULL AS SIGNED ) + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT 50 + + 9 + - 61 + - 24 / - - CAST ( NULL AS INTEGER ) + - 77
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT ALL + 12 DIV + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL + 12 / + 59 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT - COALESCE ( + 21, + ( + ( - 42 ) ), - 78 - + 49, CAST( + 87 AS SIGNED ) + - 66 ) * - COUNT( * ) * + - 71
----
-1491

skipif mysql # not compatible
query I rowsort label-3402
SELECT - COALESCE ( + 21, + ( + ( - 42 ) ), - 78 - + 49, CAST ( + 87 AS INTEGER ) + - 66 ) * - COUNT ( * ) * + - 71
----
-1491

query I rowsort
SELECT - 68 + 85
----
17

query I rowsort
SELECT - 85 * + 26 AS col2
----
-2210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3405
SELECT - COALESCE ( - + ( + CASE - ( - CAST( - - 99 AS SIGNED ) ) WHEN - - 90 + 92 THEN + - ( - + 57 ) END ), - 58 ) + 59
----
117

skipif mysql # not compatible
query I rowsort label-3405
SELECT - COALESCE ( - + ( + CASE - ( - CAST ( - - 99 AS INTEGER ) ) WHEN - - 90 + 92 THEN + - ( - + 57 ) END ), - 58 ) + 59
----
117

query II rowsort
SELECT - 49 + - 62 - - 15 AS col1, 55 AS col1
----
-96
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT 60 * + - 58 + + 11 + SUM( DISTINCT - 54 ) - - 57
----
-3466

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT 60 * + - 58 + + 11 + SUM ( DISTINCT - 54 ) - - 57
----
-3466

query I rowsort
SELECT NULLIF ( - + 82, + - 85 + 56 ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT - COUNT( * ) + + 55 * + 68
----
3739

skipif mysql # not compatible
query I rowsort label-3409
SELECT - COUNT ( * ) + + 55 * + 68
----
3739

query I rowsort
SELECT ALL 3 * - + 68 * + - 23 + + 62 AS col0
----
4754

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL + 23 * + - COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL + 23 * + - COUNT ( * ) AS col2
----
-23

query I rowsort
SELECT DISTINCT + ( - + 72 )
----
-72

query I rowsort
SELECT + 65 + + ( + + 66 ) + + 55 * - + ( 15 ) AS col1
----
-694

query I rowsort
SELECT + 24 * 85 AS col1
----
2040

query I rowsort
SELECT ALL + ( - - 19 )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT ALL - - CAST( NULL AS SIGNED ) * + 23 + - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 23 + - 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT + MIN( ALL + COALESCE ( 55, + ( + 80 ) ) ) * + 48 + 74
----
2714

skipif mysql # not compatible
query I rowsort label-3417
SELECT + MIN ( ALL + COALESCE ( 55, + ( + 80 ) ) ) * + 48 + 74
----
2714

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT + ( COALESCE ( MAX( ALL - + 33 ), + 7 * - 11 + - - 69 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-3418
SELECT + ( COALESCE ( MAX ( ALL - + 33 ), + 7 * - 11 + - - 69 ) )
----
-33

query I rowsort
SELECT + 43 * - + 83 + - 49 AS col0
----
-3618

onlyif mysql # DIV for integer division: 
query I rowsort label-3420
SELECT + - 52 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-3420
SELECT + - 52 / - 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT DISTINCT 91 * - MIN( + COALESCE ( 75, - 93, - 26 ) )
----
-6825

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT 91 * - MIN ( + COALESCE ( 75, - 93, - 26 ) )
----
-6825

query I rowsort
SELECT ALL + 83 * - 3 + + - 11 AS col1
----
-260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT ALL + CAST( 35 AS SIGNED ) * - 96 - ( + 6 ) * - 39 AS col0
----
-3126

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL + CAST ( 35 AS INTEGER ) * - 96 - ( + 6 ) * - 39 AS col0
----
-3126

query I rowsort
SELECT DISTINCT - 14 * 82
----
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL - 97 * ( COUNT( * ) ) + - 91 - - COUNT( * ) + + COUNT( * )
----
-186

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL - 97 * ( COUNT ( * ) ) + - 91 - - COUNT ( * ) + + COUNT ( * )
----
-186

query I rowsort
SELECT + + 41 col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT DISTINCT - MIN( DISTINCT + 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT - MIN ( DISTINCT + 61 )
----
-61

query I rowsort
SELECT ALL 62 * 40
----
2480

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT - 59 - + 26 + - + ( - COUNT( * ) ) * - - 28 col2
----
-57

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - 59 - + 26 + - + ( - COUNT ( * ) ) * - - 28 col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT + ( - SUM( ALL - ( + 44 ) ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT + ( - SUM ( ALL - ( + 44 ) ) ) AS col1
----
44

query II rowsort
SELECT ALL 94 AS col0, 25 * 20
----
94
500

query I rowsort
SELECT + 59 * - 2 AS col2
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT - COALESCE ( - - 57, - - 92 DIV - 38 + - COUNT( * ) ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-3433
SELECT - COALESCE ( - - 57, - - 92 / - 38 + - COUNT ( * ) ) col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-3434
SELECT ALL COUNT( * ), 16 AS col1
----
1
16

skipif mysql # not compatible
query II rowsort label-3434
SELECT ALL COUNT ( * ), 16 AS col1
----
1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT - + 45 * + NULLIF ( + 64, 40 ) + + 40 + COUNT( * ) * - 57 + + 16
----
-2881

skipif mysql # not compatible
query I rowsort label-3435
SELECT - + 45 * + NULLIF ( + 64, 40 ) + + 40 + COUNT ( * ) * - 57 + + 16
----
-2881

onlyif mysql # aggregate syntax: 
query II rowsort label-3436
SELECT DISTINCT 78 AS col2, COUNT( * )
----
78
1

skipif mysql # not compatible
query II rowsort label-3436
SELECT DISTINCT 78 AS col2, COUNT ( * )
----
78
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT ALL + 7 * - COALESCE ( 7, - 31, - CAST( NULL AS SIGNED ) ) + + + 70 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL + 7 * - COALESCE ( 7, - 31, - CAST ( NULL AS INTEGER ) ) + + + 70 AS col2
----
21

query II rowsort
SELECT ALL + 2 AS col0, 60
----
2
60

query I rowsort
SELECT ALL NULLIF ( 43, - - 95 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3440
SELECT ALL COUNT( * ), + COUNT( * ) - - 13 AS col2
----
1
14

skipif mysql # not compatible
query II rowsort label-3440
SELECT ALL COUNT ( * ), + COUNT ( * ) - - 13 AS col2
----
1
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3441
SELECT ALL 26 + + - 5 + - + CAST( NULL AS SIGNED ) / - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL 26 + + - 5 + - + CAST ( NULL AS INTEGER ) / - 72 AS col0
----
NULL

query II rowsort
SELECT 9 AS col1, 78 AS col1
----
9
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3443
SELECT + COALESCE ( 79, + CAST( - COUNT( * ) AS SIGNED ) DIV - 73, 2 ) DIV - + 56 AS col1, + 68 * - 74 + + 8 col2
----
-1
-5024

skipif mysql # not compatible
query II rowsort label-3443
SELECT + COALESCE ( 79, + CAST ( - COUNT ( * ) AS INTEGER ) / - 73, 2 ) / - + 56 AS col1, + 68 * - 74 + + 8 col2
----
-1
-5024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3444
SELECT + 8 + ( + 89 ) + CAST( + 63 AS SIGNED ) + + MAX( - 80 ) + + - ( AVG ( ALL - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT + 8 + ( + 89 ) + CAST ( + 63 AS INTEGER ) + + MAX ( - 80 ) + + - ( AVG ( ALL - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL - 54 * + SUM( - 45 ) AS col2
----
2430

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL - 54 * + SUM ( - 45 ) AS col2
----
2430

query I rowsort
SELECT - 31 * + 18
----
-558

query I rowsort
SELECT - 90 * + 20 * + ( - + 88 )
----
158400

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT ALL + SUM( 14 ) + + + ( - 89 ) + + 78 + - 80
----
-77

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL + SUM ( 14 ) + + + ( - 89 ) + + 78 + - 80
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3449
SELECT - CAST( + + 39 AS SIGNED ), 93 AS col1
----
-39
93

skipif mysql # not compatible
query II rowsort label-3449
SELECT - CAST ( + + 39 AS INTEGER ), 93 AS col1
----
-39
93

query I rowsort
SELECT ALL + 82 + - ( - 23 ) * - + 58 AS col2
----
-1252

onlyif mysql # aggregate syntax: 
query II rowsort label-3451
SELECT DISTINCT + 33, + MIN( DISTINCT 46 ) + + 43 + - COUNT( * ) + - 35 AS col0
----
33
53

skipif mysql # not compatible
query II rowsort label-3451
SELECT DISTINCT + 33, + MIN ( DISTINCT 46 ) + + 43 + - COUNT ( * ) + - 35 AS col0
----
33
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT ALL + CASE - + 17 WHEN + COUNT( * ) + - + 47 + 52 * + 94 - + 26 THEN NULL WHEN + + 81 + - 54 THEN + 90 ELSE - + 44 * - COUNT( * ) - + 96 END AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + CASE - + 17 WHEN + COUNT ( * ) + - + 47 + 52 * + 94 - + 26 THEN NULL WHEN + + 81 + - 54 THEN + 90 ELSE - + 44 * - COUNT ( * ) - + 96 END AS col1
----
-52

query II rowsort
SELECT + 59, - 81 AS col0
----
59
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT DISTINCT 11 DIV 8 * 31 + + + 39
----
70

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT 11 / 8 * 31 + + + 39
----
70

query I rowsort
SELECT ALL + 92 * - 65 * + 50 AS col0
----
-299000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3456
SELECT + + CASE 24 WHEN + COUNT( * ) THEN NULL WHEN + 81 THEN + MAX( 25 ) END AS col1, 31 + COALESCE ( 6, + 1, 1 * + CAST( NULL AS SIGNED ) ) + + 14 + + + 40 * - 55
----
NULL
-2149

skipif mysql # not compatible
query II rowsort label-3456
SELECT + + CASE 24 WHEN + COUNT ( * ) THEN NULL WHEN + 81 THEN + MAX ( 25 ) END AS col1, 31 + COALESCE ( 6, + 1, 1 * + CAST ( NULL AS INTEGER ) ) + + 14 + + + 40 * - 55
----
NULL
-2149

query I rowsort
SELECT + + ( + 74 ) AS col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3458
SELECT + 4 AS col1, - ( + SUM( - + 93 ) ) DIV 49 + - 47 * 43 AS col1
----
4
-2020

skipif mysql # not compatible
query II rowsort label-3458
SELECT + 4 AS col1, - ( + SUM ( - + 93 ) ) / 49 + - 47 * 43 AS col1
----
4
-2020

query I rowsort
SELECT - - 23 * - + 3
----
-69

query I rowsort
SELECT ALL + + 59 * + 65 + - 36
----
3799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3461
SELECT ALL + CAST( - + 43 AS SIGNED ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL + CAST ( - + 43 AS INTEGER ) AS col1
----
-43

query I rowsort
SELECT DISTINCT + - 34 * 85 AS col0
----
-2890

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3463
SELECT ALL + - 3, 11 * + NULLIF ( + - 82, + - CAST( - CASE + 98 WHEN 3 THEN + - 17 ELSE 13 END AS SIGNED ) ) AS col2
----
-3
-902

skipif mysql # not compatible
query II rowsort label-3463
SELECT ALL + - 3, 11 * + NULLIF ( + - 82, + - CAST ( - CASE + 98 WHEN 3 THEN + - 17 ELSE 13 END AS INTEGER ) ) AS col2
----
-3
-902

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT - - 15 - - + 85 * - + 2 * + 37 + + 14 + + + COUNT( * ) * 78
----
-6183

skipif mysql # not compatible
query I rowsort label-3464
SELECT - - 15 - - + 85 * - + 2 * + 37 + + 14 + + + COUNT ( * ) * 78
----
-6183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3465
SELECT DISTINCT + MIN( - CAST( COALESCE ( 68, + + 93 ) AS SIGNED ) )
----
-68

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT + MIN ( - CAST ( COALESCE ( 68, + + 93 ) AS INTEGER ) )
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3466
SELECT ALL + - COALESCE ( + - 77, + + ( + CAST( NULL AS SIGNED ) ) ) AS col2, 28 col1
----
77
28

skipif mysql # not compatible
query II rowsort label-3466
SELECT ALL + - COALESCE ( + - 77, + + ( + CAST ( NULL AS INTEGER ) ) ) AS col2, 28 col1
----
77
28

query II rowsort
SELECT DISTINCT + 84 AS col1, 3 + COALESCE ( - 88, 48 ) - - 87
----
84
2

query II rowsort
SELECT + 39, - ( - 13 ) AS col2
----
39
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT - + SUM( ALL 30 ) * - 54
----
1620

skipif mysql # not compatible
query I rowsort label-3469
SELECT - + SUM ( ALL 30 ) * - 54
----
1620

query I rowsort
SELECT - + 96 + 59
----
-37

query I rowsort
SELECT - 52 + + 46 * + 29 + + 17 + - COALESCE ( - 66, + + 15, - 47 )
----
1365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3472
SELECT + 22 / + 99 - CAST( NULL AS SIGNED ) * 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3472
SELECT + 22 / + 99 - CAST ( NULL AS INTEGER ) * 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT DISTINCT 92 * + COALESCE ( + 65, - + MIN( - - 58 ) )
----
5980

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT 92 * + COALESCE ( + 65, - + MIN ( - - 58 ) )
----
5980

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT - 35 - + SUM( - 2 ) col1
----
-33

skipif mysql # not compatible
query I rowsort label-3474
SELECT - 35 - + SUM ( - 2 ) col1
----
-33

query I rowsort
SELECT ALL 10 + - 94 AS col2
----
-84

query I rowsort
SELECT - 79 + 98 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL - COUNT( * ) * + + 5 * - - 33 + - 9 + 11 AS col2
----
-163

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL - COUNT ( * ) * + + 5 * - - 33 + - 9 + 11 AS col2
----
-163

query II rowsort
SELECT DISTINCT - - 67 + + 53 AS col0, 30 - - 1 * + - 62 AS col1
----
120
-32

query I rowsort
SELECT ALL 26 + + - 36 * - + 34 AS col1
----
1250

query I rowsort
SELECT DISTINCT 85 + + 66 + - + 39 * 20 AS col2
----
-629

query I rowsort
SELECT ( - - 88 ) + - + 96
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL 20 + - COALESCE ( 29, - SUM( ALL + 18 ) + + - COALESCE ( + + 61, 27 * + 44 + - + 26 ) ) + + + 51 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL 20 + - COALESCE ( 29, - SUM ( ALL + 18 ) + + - COALESCE ( + + 61, 27 * + 44 + - + 26 ) ) + + + 51 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ( + MIN( ALL ( - - 34 ) ) ) * 72
----
2448

skipif mysql # not compatible
query I rowsort label-3483
SELECT ( + MIN ( ALL ( - - 34 ) ) ) * 72
----
2448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3484
SELECT DISTINCT ( + CAST( + ( - 84 ) AS SIGNED ) ) + 53 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT ( + CAST ( + ( - 84 ) AS INTEGER ) ) + 53 AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT 10 * 47 * CAST( 1 AS SIGNED ) * + 2 AS col2
----
940

skipif mysql # not compatible
query I rowsort label-3485
SELECT 10 * 47 * CAST ( 1 AS INTEGER ) * + 2 AS col2
----
940

query I rowsort
SELECT DISTINCT 72 - + - 63
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT COUNT( * ) - + 38
----
-37

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT COUNT ( * ) - + 38
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3488
SELECT ALL 6 * + 22, ( - CAST( 47 AS SIGNED ) ) - 68 AS col1
----
132
-115

skipif mysql # not compatible
query II rowsort label-3488
SELECT ALL 6 * + 22, ( - CAST ( 47 AS INTEGER ) ) - 68 AS col1
----
132
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT 0 * 89 * COUNT( - 97 )
----
0

skipif mysql # not compatible
query I rowsort label-3489
SELECT 0 * 89 * COUNT ( - 97 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3490
SELECT - COALESCE ( - + 83, - 20 ) DIV ( 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3490
SELECT - COALESCE ( - + 83, - 20 ) / ( 49 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT 36 * ( - 8 ) DIV - 91 + 18 DIV + + 61 * ( + 68 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3491
SELECT 36 * ( - 8 ) / - 91 + 18 / + + 61 * ( + 68 ) AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3492
SELECT DISTINCT - ( + - 2 ) DIV 64 * + - 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT - ( + - 2 ) / 64 * + - 6 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3493
SELECT ALL - + ( - + CAST( 52 AS SIGNED ) ) col2
----
52

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL - + ( - + CAST ( 52 AS INTEGER ) ) col2
----
52

query I rowsort
SELECT + 70 + - 14
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3495
SELECT CAST( NULL AS SIGNED ) * - SUM( 1 ) * COUNT( * ) + + 32 + 75 / + + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT CAST ( NULL AS INTEGER ) * - SUM ( 1 ) * COUNT ( * ) + + 32 + 75 / + + 44 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 73 * + 47 * 54
----
185274

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3497
SELECT CAST( + - 75 AS SIGNED ) AS col1, ( + 5 ) AS col0
----
-75
5

skipif mysql # not compatible
query II rowsort label-3497
SELECT CAST ( + - 75 AS INTEGER ) AS col1, ( + 5 ) AS col0
----
-75
5

query I rowsort
SELECT DISTINCT - + 85 AS col2
----
-85

query I rowsort
SELECT ALL - - 24 col1
----
24

query I rowsort
SELECT DISTINCT - + 6 + - + 36 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL - SUM( + - 59 ) + + + 74
----
133

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL - SUM ( + - 59 ) + + + 74
----
133

query I rowsort
SELECT + + CASE WHEN NOT NULL IS NOT NULL THEN 28 END
----
28

query I rowsort
SELECT ALL + - 77 + + 28 AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT 60 DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-3504
SELECT 60 / 44
----
1

query II rowsort
SELECT 95 * + 2 * + 85 AS col1, - 11 AS col1
----
16150
-11

query I rowsort
SELECT ALL - 90 + - 41 AS col0
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3507
SELECT - 25 AS col0, ( + 37 ) * 80 + 63 * COUNT( * ) + + CAST( + ( 42 ) AS SIGNED )
----
-25
3065

skipif mysql # not compatible
query II rowsort label-3507
SELECT - 25 AS col0, ( + 37 ) * 80 + 63 * COUNT ( * ) + + CAST ( + ( 42 ) AS INTEGER )
----
-25
3065

query I rowsort
SELECT ALL 73 + - - 90 AS col2
----
163

onlyif mysql # DIV for integer division: 
query II rowsort label-3509
SELECT ALL - 91 DIV - ( - - 13 ), 33 AS col0
----
7
33

skipif mysql # not compatible
query II rowsort label-3509
SELECT ALL - 91 / - ( - - 13 ), 33 AS col0
----
7
33

query II rowsort
SELECT 47, - 34 * - + 36 AS col2
----
47
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL ( + 23 ) * - COALESCE ( - ( + - 69 ), + COUNT( * ) ) AS col0
----
-1587

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL ( + 23 ) * - COALESCE ( - ( + - 69 ), + COUNT ( * ) ) AS col0
----
-1587

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL MAX( ALL - + 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL MAX ( ALL - + 75 )
----
-75

query II rowsort
SELECT ALL - 64 - + 3 - - 99 * 79 AS col1, - 54 col0
----
7754
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3514
SELECT ALL NULLIF ( 53, - 81 + COUNT( * ) / 58 ) * - CASE + 87 WHEN + ( + - ( CAST( NULL AS SIGNED ) ) ) THEN + 72 ELSE NULL END + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL NULLIF ( 53, - 81 + COUNT ( * ) / 58 ) * - CASE + 87 WHEN + ( + - ( CAST ( NULL AS INTEGER ) ) ) THEN + 72 ELSE NULL END + 71
----
NULL

query I rowsort
SELECT DISTINCT 72 - - 5 + - ( + 57 ) + + 39
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT ALL 31 * - - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL 31 * - - COUNT ( * )
----
31

query I rowsort
SELECT 26 + 41 + + 45
----
112

query I rowsort
SELECT 45 * + + 39
----
1755

query II rowsort
SELECT ALL 67 AS col1, ( + 70 )
----
67
70

query II rowsort
SELECT DISTINCT 18 AS col0, 7
----
18
7

query I rowsort
SELECT + 32 * - 11 * + 39 AS col2
----
-13728

query I rowsort
SELECT DISTINCT - - CASE + 23 WHEN - 93 * - 6 THEN - - 29 * - - 64 * + - 55 * + 61 END * + 5
----
NULL

query II rowsort
SELECT + - 93 col2, 38
----
-93
38

query II rowsort
SELECT DISTINCT - - 24 AS col1, 58 + - - 13 AS col0
----
24
71

query I rowsort
SELECT DISTINCT + 2 * - 97 AS col2
----
-194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3526
SELECT ALL 5 * + AVG ( DISTINCT - 57 ) + - 10 + ( - - 34 ) * COALESCE ( ( AVG ( DISTINCT - 33 ) ), + + 68, CAST( COUNT( * ) AS SIGNED ) ) / + - 27 * 73 + 56 + + COUNT( * ) + - 83 + + + CASE - 53 WHEN + + CASE ( - + 37 ) WHEN + 61 / 95 + + COALESCE ( + + 53, - 55 ) * - - 86 + + 8 * 69 * - + CAST( NULL AS SIGNED ) THEN - - 58 / COUNT( * ) + 74 ELSE 91 * + 47 END - + 8 THEN NULL WHEN - 69 + + 32 THEN - 29 * 32 + - 56 * 28 ELSE NULL END / - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL 5 * + AVG ( DISTINCT - 57 ) + - 10 + ( - - 34 ) * COALESCE ( ( AVG ( DISTINCT - 33 ) ), + + 68, CAST ( COUNT ( * ) AS INTEGER ) ) / + - 27 * 73 + 56 + + COUNT ( * ) + - 83 + + + CASE - 53 WHEN + + CASE ( - + 37 ) WHEN + 61 / 95 + + COALESCE ( + + 53, - 55 ) * - - 86 + + 8 * 69 * - + CAST ( NULL AS INTEGER ) THEN - - 58 / COUNT ( * ) + 74 ELSE 91 * + 47 END - + 8 THEN NULL WHEN - 69 + + 32 THEN - 29 * 32 + - 56 * 28 ELSE NULL END / - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT - - COUNT( * ) * - - ( - 71 ) - - 39 * + SUM( DISTINCT - 86 ) * - 75
----
251479

skipif mysql # not compatible
query I rowsort label-3527
SELECT - - COUNT ( * ) * - - ( - 71 ) - - 39 * + SUM ( DISTINCT - 86 ) * - 75
----
251479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3528
SELECT - 95 DIV - SUM( ALL - 40 ) + + 67
----
65

skipif mysql # not compatible
query I rowsort label-3528
SELECT - 95 / - SUM ( ALL - 40 ) + + 67
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT + + 63 * + COUNT( * ) col0
----
63

skipif mysql # not compatible
query I rowsort label-3529
SELECT + + 63 * + COUNT ( * ) col0
----
63

query I rowsort
SELECT ALL 8 * - 78
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT DISTINCT - COUNT( * ) * - 8 + + - 61 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT - COUNT ( * ) * - 8 + + - 61 AS col2
----
-53

query II rowsort
SELECT ALL + 12 * 19 + + 85 AS col1, 21 * - + 94
----
313
-1974

onlyif mysql # DIV for integer division: 
query I rowsort label-3533
SELECT - + 14 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-3533
SELECT - + 14 / - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT DISTINCT - COUNT( * ) * - MAX( + + 34 ) + - + MAX( DISTINCT 36 ) + + 72 + + 53 * - 19 * - 14
----
14168

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT - COUNT ( * ) * - MAX ( + + 34 ) + - + MAX ( DISTINCT 36 ) + + 72 + + 53 * - 19 * - 14
----
14168

query I rowsort
SELECT + COALESCE ( - 47, - 12 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3536
SELECT + 21 * - 70 - - - CAST( + + 10 AS SIGNED ) * - MAX( - 34 ) * + 19 - + 64 + 83 + - + 38
----
-7949

skipif mysql # not compatible
query I rowsort label-3536
SELECT + 21 * - 70 - - - CAST ( + + 10 AS INTEGER ) * - MAX ( - 34 ) * + 19 - + 64 + 83 + - + 38
----
-7949

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL + - MIN( ALL + - 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL + - MIN ( ALL + - 61 ) AS col1
----
61

query I rowsort
SELECT + COALESCE ( - 39, - + 26 )
----
-39

query I rowsort
SELECT - 3 + + 13 * 47 * + 66 AS col2
----
40323

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL CASE - + 99 WHEN + + COUNT( * ) + - COUNT( * ) * + - 85 * + COUNT( * ) THEN + 64 + + 77 WHEN + COALESCE ( + 46, 57 + - 98 ) + + 16 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL CASE - + 99 WHEN + + COUNT ( * ) + - COUNT ( * ) * + - 85 * + COUNT ( * ) THEN + 64 + + 77 WHEN + COALESCE ( + 46, 57 + - 98 ) + + 16 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT ALL 85 - + ( - CAST( NULL AS SIGNED ) ) * - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL 85 - + ( - CAST ( NULL AS INTEGER ) ) * - - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT DISTINCT MAX( - + ( - - 33 ) ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT MAX ( - + ( - - 33 ) ) AS col2
----
-33

query I rowsort
SELECT ALL COALESCE ( 11, - 60 ) AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3544
SELECT DISTINCT ( 58 ), 57 - MAX( - 63 ) - - SUM( ALL - 91 ) * - 23 * - - ( - 22 ) / + CAST( NULL AS SIGNED ) AS col0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-3544
SELECT DISTINCT ( 58 ), 57 - MAX ( - 63 ) - - SUM ( ALL - 91 ) * - 23 * - - ( - 22 ) / + CAST ( NULL AS INTEGER ) AS col0
----
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT DISTINCT CASE - + 92 WHEN - AVG ( - 78 ) THEN - COUNT( * ) * - - 78 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT CASE - + 92 WHEN - AVG ( - 78 ) THEN - COUNT ( * ) * - - 78 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3546
SELECT ALL COALESCE ( - - COUNT( * ), - ( + COUNT( * ) ), + - CAST( + 91 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL COALESCE ( - - COUNT ( * ), - ( + COUNT ( * ) ), + - CAST ( + 91 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT - COUNT( * ) * + 43 * 41
----
-1763

skipif mysql # not compatible
query I rowsort label-3547
SELECT - COUNT ( * ) * + 43 * 41
----
-1763

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT - COUNT( * ) + - - CASE - - 37 WHEN + ( + ( COALESCE ( COUNT( * ), + - 0 + - 54 ) ) ) + - + 60 THEN NULL WHEN - - 95 THEN - 21 WHEN - - 65 * - ( + ( + 22 ) ) THEN NULL ELSE + 59 + - - 70 END AS col0
----
128

skipif mysql # not compatible
query I rowsort label-3548
SELECT - COUNT ( * ) + - - CASE - - 37 WHEN + ( + ( COALESCE ( COUNT ( * ), + - 0 + - 54 ) ) ) + - + 60 THEN NULL WHEN - - 95 THEN - 21 WHEN - - 65 * - ( + ( + 22 ) ) THEN NULL ELSE + 59 + - - 70 END AS col0
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT ALL + ( + 4 ) DIV 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL + ( + 4 ) / 38 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3550
SELECT DISTINCT + 42 DIV ( + 78 )
----
0

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + 42 / ( + 78 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3551
SELECT ALL 53 * + + COUNT( * ) AS col0, - MIN( ALL - ( - + NULLIF ( + - 81, + - 43 ) ) ) + - - 41 + - - 37 * + 59 + CASE - - 85 WHEN - - 43 THEN NULL WHEN - 20 + - 96 + + 86 * - 37 THEN + 63 * + COUNT( * ) END * - - 37 * - 1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-3551
SELECT ALL 53 * + + COUNT ( * ) AS col0, - MIN ( ALL - ( - + NULLIF ( + - 81, + - 43 ) ) ) + - - 41 + - - 37 * + 59 + CASE - - 85 WHEN - - 43 THEN NULL WHEN - 20 + - 96 + + 86 * - 37 THEN + 63 * + COUNT ( * ) END * - - 37 * - 1
----
53
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3552
SELECT - 59 DIV - + 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3552
SELECT - 59 / - + 60 AS col1
----
0

query I rowsort
SELECT ALL 69 + - + ( 84 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT + COUNT( * ) + + ( + 8 ) + 23 / + AVG ( DISTINCT + - 10 ) * - - COUNT( * ) - - 13 - - 92 + + CASE 92 WHEN - 37 + + MAX( - - 16 ) THEN NULL WHEN + COUNT( * ) THEN 12 * - + 43 + + - NULLIF ( 70, + + COALESCE ( - COUNT( * ), + + 45 * - 85 * - 21 ) ) + - 83 * + + ( - + COUNT( * ) ) + - COUNT( ALL 96 ) * - 29 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT + COUNT ( * ) + + ( + 8 ) + 23 / + AVG ( DISTINCT + - 10 ) * - - COUNT ( * ) - - 13 - - 92 + + CASE 92 WHEN - 37 + + MAX ( - - 16 ) THEN NULL WHEN + COUNT ( * ) THEN 12 * - + 43 + + - NULLIF ( 70, + + COALESCE ( - COUNT ( * ), + + 45 * - 85 * - 21 ) ) + - 83 * + + ( - + COUNT ( * ) ) + - COUNT ( ALL 96 ) * - 29 END col0
----
NULL

query I rowsort
SELECT DISTINCT - - 40 * + 69
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL MAX( + + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL MAX ( + + 30 )
----
30

query I rowsort
SELECT DISTINCT - 6 + - - 68
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT + + SUM( 69 ) * + MIN( + 18 ) AS col1
----
1242

skipif mysql # not compatible
query I rowsort label-3558
SELECT + + SUM ( 69 ) * + MIN ( + 18 ) AS col1
----
1242

query I rowsort
SELECT + - 93 + + 49 * - + 79
----
-3964

onlyif mysql # aggregate syntax: 
query II rowsort label-3560
SELECT DISTINCT + - COUNT( DISTINCT - 61 ), 21 AS col1
----
-1
21

skipif mysql # not compatible
query II rowsort label-3560
SELECT DISTINCT + - COUNT ( DISTINCT - 61 ), 21 AS col1
----
-1
21

query I rowsort
SELECT ALL + + ( 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT - 81 * + MAX( ALL + 86 ) + + - COUNT( - 22 ) AS col1
----
-6967

skipif mysql # not compatible
query I rowsort label-3562
SELECT - 81 * + MAX ( ALL + 86 ) + + - COUNT ( - 22 ) AS col1
----
-6967

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL + 50 * + 60 + MIN( ALL 12 ) + - ( + - 65 ) * - - COUNT( * ) + - NULLIF ( + - 71, - 33 * - 22 * - 26 ) * 31
----
5278

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL + 50 * + 60 + MIN ( ALL 12 ) + - ( + - 65 ) * - - COUNT ( * ) + - NULLIF ( + - 71, - 33 * - 22 * - 26 ) * 31
----
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT + 68 + - 98 * COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-3564
SELECT + 68 + - 98 * COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT - ( - ( - 90 ) ) * + 36 + SUM( + 95 ) * + 85 * 25 AS col2
----
198635

skipif mysql # not compatible
query I rowsort label-3565
SELECT - ( - ( - 90 ) ) * + 36 + SUM ( + 95 ) * + 85 * 25 AS col2
----
198635

query I rowsort
SELECT - 6 * - 70 + + 39
----
459

onlyif mysql # DIV for integer division: 
query I rowsort label-3567
SELECT + - 91 DIV + NULLIF ( - - 34, ( + 98 ) * - - 53 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3567
SELECT + - 91 / + NULLIF ( - - 34, ( + 98 ) * - - 53 ) AS col1
----
-2

query I rowsort
SELECT + 79 * + 72
----
5688

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3569
SELECT ALL + 56 AS col0, - ( 17 ), + - 51 * + CAST( NULL AS SIGNED ) AS col0
----
56
-17
NULL

skipif mysql # not compatible
query III rowsort label-3569
SELECT ALL + 56 AS col0, - ( 17 ), + - 51 * + CAST ( NULL AS INTEGER ) AS col0
----
56
-17
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3571
SELECT + 73 * - + CAST( - 17 AS SIGNED ), - 83 AS col2
----
1241
-83

skipif mysql # not compatible
query II rowsort label-3571
SELECT + 73 * - + CAST ( - 17 AS INTEGER ), - 83 AS col2
----
1241
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT DISTINCT + ( 12 ) DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT + ( 12 ) / 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT - 8 * - ( + - COUNT( * ) ) / + 82 + + - CASE + COUNT( ALL + 6 ) WHEN + COUNT( * ) * COUNT( * ) THEN NULL WHEN + - COUNT( - 59 ) * - 51 THEN NULL ELSE + 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT - 8 * - ( + - COUNT ( * ) ) / + 82 + + - CASE + COUNT ( ALL + 6 ) WHEN + COUNT ( * ) * COUNT ( * ) THEN NULL WHEN + - COUNT ( - 59 ) * - 51 THEN NULL ELSE + 52 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT ALL MIN( - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL MIN ( - 70 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT COUNT( ALL + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-3575
SELECT COUNT ( ALL + 88 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3576
SELECT DISTINCT CASE + 25 WHEN 88 * - + 16 + 0 + + COUNT( * ) - - ( + 26 ) * - 40 THEN COALESCE ( + - ( COALESCE ( COUNT( * ), + NULLIF ( - ( + 50 ), + + 21 + + 31 ) + + CASE - 75 WHEN - COUNT( - 80 ) * + 76 DIV - 70 * - - COUNT( * ) * - + 42 DIV - - NULLIF ( - 87, - 3 * - 31 ) - 87 THEN 61 DIV - + 12 * - COALESCE ( + 38, - 42 ) END + 40 * 19, 88 * - ( + 92 ) ) ), 54, + 84 * 25 ) WHEN 97 * - 12 THEN NULL ELSE COUNT( * ) DIV + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT CASE + 25 WHEN 88 * - + 16 + 0 + + COUNT ( * ) - - ( + 26 ) * - 40 THEN COALESCE ( + - ( COALESCE ( COUNT ( * ), + NULLIF ( - ( + 50 ), + + 21 + + 31 ) + + CASE - 75 WHEN - COUNT ( - 80 ) * + 76 / - 70 * - - COUNT ( * ) * - + 42 / - - NULLIF ( - 87, - 3 * - 31 ) - 87 THEN 61 / - + 12 * - COALESCE ( + 38, - 42 ) END + 40 * 19, 88 * - ( + 92 ) ) ), 54, + 84 * 25 ) WHEN 97 * - 12 THEN NULL ELSE COUNT ( * ) / + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + 89 - - + SUM( DISTINCT - 72 ) * 96
----
-6823

skipif mysql # not compatible
query I rowsort label-3577
SELECT + 89 - - + SUM ( DISTINCT - 72 ) * 96
----
-6823

query I rowsort
SELECT ALL + ( 61 ) * - 57 AS col0
----
-3477

query I rowsort
SELECT - 83 * - 35 AS col2
----
2905

onlyif mysql # aggregate syntax: 
query II rowsort label-3580
SELECT DISTINCT MIN( - 84 ) * + - 17 * COUNT( * ) + - 62, + 75 / + 25 * + 46 + + CASE 63 WHEN + + COUNT( * ) THEN + + ( + 12 ) + - + 55 WHEN ( - AVG ( DISTINCT - 6 ) ) THEN NULL WHEN - + 8 + COALESCE ( - MAX( ALL - - 64 ), + + 94, - + 82 * + ( - 35 ) ) + - 32 THEN - + 76 * + + 69 + + + 86 - - SUM( DISTINCT + + 26 ) ELSE NULL END AS col2
----
1366
NULL

skipif mysql # not compatible
query II rowsort label-3580
SELECT DISTINCT MIN ( - 84 ) * + - 17 * COUNT ( * ) + - 62, + 75 / + 25 * + 46 + + CASE 63 WHEN + + COUNT ( * ) THEN + + ( + 12 ) + - + 55 WHEN ( - AVG ( DISTINCT - 6 ) ) THEN NULL WHEN - + 8 + COALESCE ( - MAX ( ALL - - 64 ), + + 94, - + 82 * + ( - 35 ) ) + - 32 THEN - + 76 * + + 69 + + + 86 - - SUM ( DISTINCT + + 26 ) ELSE NULL END AS col2
----
1366
NULL

query I rowsort
SELECT ALL COALESCE ( + + ( + COALESCE ( + + 64, + ( - 38 ) ) ), 12 ) AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3582
SELECT DISTINCT CAST( + 18 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT CAST ( + 18 AS INTEGER ) AS col0
----
18

query I rowsort
SELECT DISTINCT - 56 + 59
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL + COUNT( * ) * + - 11
----
-11

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL + COUNT ( * ) * + - 11
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT + 47 * + CAST( NULL AS SIGNED ) * + - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT + 47 * + CAST ( NULL AS INTEGER ) * + - 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT + 58 + + ( + 95 ) - + MAX( 77 ) * + - 23
----
1924

skipif mysql # not compatible
query I rowsort label-3586
SELECT + 58 + + ( + 95 ) - + MAX ( 77 ) * + - 23
----
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT - 27 - MAX( ALL - 77 ) * - + 48
----
-3723

skipif mysql # not compatible
query I rowsort label-3587
SELECT - 27 - MAX ( ALL - 77 ) * - + 48
----
-3723

query I rowsort
SELECT DISTINCT + - 75 + + 94 AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT DISTINCT - - 13 + CAST( + COALESCE ( + 52, 66 ) AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT - - 13 + CAST ( + COALESCE ( + 52, 66 ) AS INTEGER )
----
65

query I rowsort
SELECT ALL + 2 + ( 70 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3591
SELECT ALL - 44 + + 17 * + 24 AS col2, COALESCE ( 43, - SUM( DISTINCT + 72 ) + - 82, - 60 + - NULLIF ( 17, + + 22 ) - + - 81 ) AS col2
----
364
43

skipif mysql # not compatible
query II rowsort label-3591
SELECT ALL - 44 + + 17 * + 24 AS col2, COALESCE ( 43, - SUM ( DISTINCT + 72 ) + - 82, - 60 + - NULLIF ( 17, + + 22 ) - + - 81 ) AS col2
----
364
43

query II rowsort
SELECT 81 AS col1, 53 * + 23 * 67 + - - 4 col2
----
81
81677

query I rowsort
SELECT - + ( + 35 )
----
-35

query I rowsort
SELECT 71 + + + 65 AS col2
----
136

query I rowsort
SELECT ALL + 52 * + 34
----
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT DISTINCT - COUNT( - 86 ) + - 75 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT - COUNT ( - 86 ) + - 75 AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3597
SELECT ALL - + CAST( 67 AS SIGNED ) + - 94 col2, - 95 * 75
----
-161
-7125

skipif mysql # not compatible
query II rowsort label-3597
SELECT ALL - + CAST ( 67 AS INTEGER ) + - 94 col2, - 95 * 75
----
-161
-7125

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT ALL - 61 + + 22 + - + COUNT( * ) * NULLIF ( - - 66, - 70 * - - 82 ) + - 50 * + MIN( ALL - 74 )
----
3595

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL - 61 + + 22 + - + COUNT ( * ) * NULLIF ( - - 66, - 70 * - - 82 ) + - 50 * + MIN ( ALL - 74 )
----
3595

query I rowsort
SELECT ALL 74 + - - 11 AS col1
----
85

query I rowsort
SELECT 94 * 42 + + - 24 + + 56
----
3980

query I rowsort
SELECT ALL + 92 * - + 8 + 61 * + 72 col2
----
3656

query II rowsort
SELECT - 58 col1, + 60 col2
----
-58
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3603
SELECT ALL + + 70 * - COUNT( * ) * + NULLIF ( + - CAST( ( + - 49 ) AS SIGNED ), + 17 ) - - 62 AS col1
----
-3368

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + + 70 * - COUNT ( * ) * + NULLIF ( + - CAST ( ( + - 49 ) AS INTEGER ), + 17 ) - - 62 AS col1
----
-3368

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT - NULLIF ( + COUNT( * ), - 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-3604
SELECT - NULLIF ( + COUNT ( * ), - 92 )
----
-1

query I rowsort
SELECT ALL + 0 - + - 19
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT ALL - CAST( + 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL - CAST ( + 6 AS INTEGER )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT - 49 * - SUM( - - 36 ) - + 48
----
1716

skipif mysql # not compatible
query I rowsort label-3607
SELECT - 49 * - SUM ( - - 36 ) - + 48
----
1716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3608
SELECT 19 * + 23 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3608
SELECT 19 * + 23 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT DISTINCT - + COUNT( - 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT - + COUNT ( - 33 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3610
SELECT ALL - 59 AS col2, 56 * MAX( DISTINCT + 3 )
----
-59
168

skipif mysql # not compatible
query II rowsort label-3610
SELECT ALL - 59 AS col2, 56 * MAX ( DISTINCT + 3 )
----
-59
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT NULLIF ( + + 72, - - CASE - - ( + AVG ( + - 21 ) ) WHEN - - ( - COALESCE ( - 38, - 32 ) ) THEN NULL ELSE + 6 + - - ( - 14 ) END + - CAST( - - 85 AS SIGNED ) ) * + 69
----
4968

skipif mysql # not compatible
query I rowsort label-3611
SELECT NULLIF ( + + 72, - - CASE - - ( + AVG ( + - 21 ) ) WHEN - - ( - COALESCE ( - 38, - 32 ) ) THEN NULL ELSE + 6 + - - ( - 14 ) END + - CAST ( - - 85 AS INTEGER ) ) * + 69
----
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL ( + 57 ) * - 45 - - COUNT( * )
----
-2564

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL ( + 57 ) * - 45 - - COUNT ( * )
----
-2564

query I rowsort
SELECT 85 + - - 47 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT 32 * - 49 - + NULLIF ( 54, - 82 - 39 + - 70 * COUNT( * ) / 5 )
----
-1622

skipif mysql # not compatible
query I rowsort label-3614
SELECT 32 * - 49 - + NULLIF ( 54, - 82 - 39 + - 70 * COUNT ( * ) / 5 )
----
-1622

query I rowsort
SELECT ALL CASE 62 WHEN - 6 * - AVG ( ALL + 73 ) THEN - - 94 * + 42 * - 74 END * 4 AS col2
----
NULL

query II rowsort
SELECT 88 AS col2, - 1 AS col2
----
88
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT ALL NULLIF ( - - COUNT( * ), + 75 + - 11 ) * - + 85 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL NULLIF ( - - COUNT ( * ), + 75 + - 11 ) * - + 85 AS col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3618
SELECT NULLIF ( - 2, + CASE - 77 WHEN COUNT( + 38 ) + + 9 THEN NULL WHEN + 68 THEN + MIN( ALL + - 74 ) * - 27 ELSE 79 END * - COALESCE ( + + MIN( + - 95 ), - 3 * + 50, 37, + + COUNT( * ) * - 68 * - - 27 - + + 53, - + 88 ) ) DIV - + 64
----
0

skipif mysql # not compatible
query I rowsort label-3618
SELECT NULLIF ( - 2, + CASE - 77 WHEN COUNT ( + 38 ) + + 9 THEN NULL WHEN + 68 THEN + MIN ( ALL + - 74 ) * - 27 ELSE 79 END * - COALESCE ( + + MIN ( + - 95 ), - 3 * + 50, 37, + + COUNT ( * ) * - 68 * - - 27 - + + 53, - + 88 ) ) / - + 64
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3619
SELECT CAST( NULL AS SIGNED ) * - ( + 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT CAST ( NULL AS INTEGER ) * - ( + 46 ) AS col0
----
NULL

query II rowsort
SELECT 96, + 20 col1
----
96
20

query II rowsort
SELECT ALL - 75 col1, + NULLIF ( + 77, + 20 / 95 / + 91 + + 17 )
----
-75
77

query I rowsort
SELECT 10 + 54 + + 51 - 38 + 15 * - 37 + + CASE + - 68 WHEN - 24 THEN + AVG ( DISTINCT - 24 ) * + 71 END / + 61
----
NULL

query II rowsort
SELECT 1, - ( + - 54 ) AS col1
----
1
54

query II rowsort
SELECT ALL 44 AS col1, 16 + + 42
----
44
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT DISTINCT 46 AS col1, - NULLIF ( + 1, - + 69 / - 31 + - COUNT( ALL 75 ) + + 76 * - 86 ) * - 28
----
46
28

skipif mysql # not compatible
query II rowsort label-3625
SELECT DISTINCT 46 AS col1, - NULLIF ( + 1, - + 69 / - 31 + - COUNT ( ALL 75 ) + + 76 * - 86 ) * - 28
----
46
28

onlyif mysql # aggregate syntax: 
query III rowsort label-3626
SELECT DISTINCT 4 AS col0, - 95, - COALESCE ( + - CASE - 52 WHEN + 58 THEN + NULLIF ( - 56, + 3 * - 45 ) WHEN + 74 THEN - 78 END, + - COUNT( ALL - 62 ) * - ( - 32 ), + - ( - 17 ) ) AS col2
----
4
-95
32

skipif mysql # not compatible
query III rowsort label-3626
SELECT DISTINCT 4 AS col0, - 95, - COALESCE ( + - CASE - 52 WHEN + 58 THEN + NULLIF ( - 56, + 3 * - 45 ) WHEN + 74 THEN - 78 END, + - COUNT ( ALL - 62 ) * - ( - 32 ), + - ( - 17 ) ) AS col2
----
4
-95
32

query I rowsort
SELECT 39 + 18
----
57

query I rowsort
SELECT ALL - 70 + + 65
----
-5

query II rowsort
SELECT 68 AS col0, + 98 AS col0
----
68
98

query I rowsort
SELECT 54 + + + 66
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT DISTINCT 77 + + 33 * 9 - - 77 + 60 + + + COUNT( * ) col2
----
512

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT 77 + + 33 * 9 - - 77 + 60 + + + COUNT ( * ) col2
----
512

onlyif mysql # aggregate syntax: 
query II rowsort label-3632
SELECT ALL - 48 + + + 45 AS col1, COUNT( * )
----
-3
1

skipif mysql # not compatible
query II rowsort label-3632
SELECT ALL - 48 + + + 45 AS col1, COUNT ( * )
----
-3
1

query II rowsort
SELECT - 69 AS col2, 61 AS col0
----
-69
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3634
SELECT CAST( NULL AS SIGNED ) + - 62 + SUM( - + 47 ) + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT CAST ( NULL AS INTEGER ) + - 62 + SUM ( - + 47 ) + 0
----
NULL

query I rowsort
SELECT ALL + + 23 + - - 54
----
77

query II rowsort
SELECT - + 93 AS col1, 44 + + 41
----
-93
85

query I rowsort
SELECT ALL + 56 * - - 87
----
4872

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT + COUNT( * ) + - 40 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT + COUNT ( * ) + - 40 AS col2
----
-39

query I rowsort
SELECT ALL - 70 + 40
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3640
SELECT ALL + - CASE 94 WHEN + NULLIF ( + 85, + CAST( NULL AS SIGNED ) * 82 - + + 77 + + + CAST( - - 43 AS SIGNED ) DIV - ( + - ( + - 5 ) ) ) * - 67 + - 2 THEN - CAST( NULL AS SIGNED ) + - 15 DIV 78 + - COUNT( + 97 ) ELSE + ( + - MAX( 65 ) ) DIV 20 * + - 85 * 16 * 90 END + 48
----
-367152

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL + - CASE 94 WHEN + NULLIF ( + 85, + CAST ( NULL AS INTEGER ) * 82 - + + 77 + + + CAST ( - - 43 AS INTEGER ) / - ( + - ( + - 5 ) ) ) * - 67 + - 2 THEN - CAST ( NULL AS INTEGER ) + - 15 / 78 + - COUNT ( + 97 ) ELSE + ( + - MAX ( 65 ) ) / 20 * + - 85 * 16 * 90 END + 48
----
-367152

query I rowsort
SELECT ALL - - 35 + + 18
----
53

query II rowsort
SELECT + 67 + 73 AS col2, 90 + + ( 69 ) AS col1
----
140
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3643
SELECT COUNT( * ) * + COALESCE ( + - 80, - + CASE 64 WHEN + 40 THEN + 24 + - CAST( NULL AS SIGNED ) END DIV ( + 89 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-3643
SELECT COUNT ( * ) * + COALESCE ( + - 80, - + CASE 64 WHEN + 40 THEN + 24 + - CAST ( NULL AS INTEGER ) END / ( + 89 ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT + - ( - ( - COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3644
SELECT + - ( - ( - COUNT ( * ) ) ) AS col2
----
-1

query II rowsort
SELECT + 15, 34 AS col0
----
15
34

query II rowsort
SELECT + - 85 AS col1, 23 * + 93
----
-85
2139

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT 88 * - COUNT( * ) + 87 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3647
SELECT 88 * - COUNT ( * ) + 87 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3648
SELECT ALL - + COUNT( * ) DIV + - 71 + + 25 * + - 34 AS col2, 33
----
-850
33

skipif mysql # not compatible
query II rowsort label-3648
SELECT ALL - + COUNT ( * ) / + - 71 + + 25 * + - 34 AS col2, 33
----
-850
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3649
SELECT + - 34 * - 42 / 11 + + + CAST( NULL AS SIGNED ) + - - COUNT( * ) * 51 - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT + - 34 * - 42 / 11 + + + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * 51 - 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3650
SELECT ALL - COUNT( * ), 61 AS col1
----
-1
61

skipif mysql # not compatible
query II rowsort label-3650
SELECT ALL - COUNT ( * ), 61 AS col1
----
-1
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3651
SELECT 4 * 27 AS col2, - COUNT( * )
----
108
-1

skipif mysql # not compatible
query II rowsort label-3651
SELECT 4 * 27 AS col2, - COUNT ( * )
----
108
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3652
SELECT 64 DIV - - 98 + - 59
----
-59

skipif mysql # not compatible
query I rowsort label-3652
SELECT 64 / - - 98 + - 59
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3653
SELECT DISTINCT - 28 * COUNT( * ) col1, 19 AS col2
----
-28
19

skipif mysql # not compatible
query II rowsort label-3653
SELECT DISTINCT - 28 * COUNT ( * ) col1, 19 AS col2
----
-28
19

query I rowsort
SELECT ALL + 73 * + + 49 AS col2
----
3577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT DISTINCT - CAST( + + 42 AS SIGNED ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT - CAST ( + + 42 AS INTEGER ) col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3656
SELECT - ( - - CAST( - + 68 AS SIGNED ) ) * - 49 + - 16 + COALESCE ( 54, - 51 DIV 88 * 21 + + 76, + 36 * COUNT( * ) ) - - 86 * + - COUNT( * ) + 70 col2
----
-3310

skipif mysql # not compatible
query I rowsort label-3656
SELECT - ( - - CAST ( - + 68 AS INTEGER ) ) * - 49 + - 16 + COALESCE ( 54, - 51 / 88 * 21 + + 76, + 36 * COUNT ( * ) ) - - 86 * + - COUNT ( * ) + 70 col2
----
-3310

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL SUM( - 29 ) + - MAX( ALL + + 17 ) * + 46 * + 63
----
-49295

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL SUM ( - 29 ) + - MAX ( ALL + + 17 ) * + 46 * + 63
----
-49295

onlyif mysql # aggregate syntax: 
query II rowsort label-3658
SELECT ALL - SUM( 16 ) col2, 15 * 12 * - 18
----
-16
-3240

skipif mysql # not compatible
query II rowsort label-3658
SELECT ALL - SUM ( 16 ) col2, 15 * 12 * - 18
----
-16
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL 54 * - 63 * - COALESCE ( - NULLIF ( - SUM( - - 71 ), 73 / + + ( MAX( + 88 ) ) ), + COALESCE ( + + SUM( DISTINCT - + 8 ), + 98 * + + 81 ), MAX( ALL - 34 ) * - 76 ) * + - 32 * COUNT( * ) - + + COUNT( * ) AS col1
----
-7729345

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL 54 * - 63 * - COALESCE ( - NULLIF ( - SUM ( - - 71 ), 73 / + + ( MAX ( + 88 ) ) ), + COALESCE ( + + SUM ( DISTINCT - + 8 ), + 98 * + + 81 ), MAX ( ALL - 34 ) * - 76 ) * + - 32 * COUNT ( * ) - + + COUNT ( * ) AS col1
----
-7729345

query II rowsort
SELECT ALL 30 + + 15, 71 * + + 99 * + 75 + 4 + 78 AS col0
----
45
527257

query I rowsort
SELECT DISTINCT 36 + - 78 * + 90
----
-6984

query I rowsort
SELECT ALL ( + 64 ) + + + 65 AS col2
----
129

query II rowsort
SELECT DISTINCT 53 * + 75, 32 AS col2
----
3975
32

query I rowsort
SELECT + 32 * + + 7
----
224

query I rowsort
SELECT ALL 6 + - COALESCE ( - - 91, 66 ) - + + 25 * 53
----
-1410

query I rowsort
SELECT + 76 - + COALESCE ( - 27, - 88 ) AS col0
----
103

query II rowsort
SELECT ALL - 16 + - 10 AS col2, + 72 AS col2
----
-26
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3668
SELECT + NULLIF ( - 78, - CAST( NULL AS DECIMAL ) * - COUNT( * ) * 21 + - - 46 - 4 + - 69 * 97 ) col1
----
-78

skipif mysql # not compatible
query I rowsort label-3668
SELECT + NULLIF ( - 78, - CAST ( NULL AS REAL ) * - COUNT ( * ) * 21 + - - 46 - 4 + - 69 * 97 ) col1
----
-78

query I rowsort
SELECT ALL + ( - 1 ) - - ( + + 75 ) AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3670
SELECT + + CAST( NULL AS SIGNED ) * 65 + 53 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT + + CAST ( NULL AS INTEGER ) * 65 + 53 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT ALL + COUNT( DISTINCT + 30 ) - + ( 74 )
----
-73

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL + COUNT ( DISTINCT + 30 ) - + ( 74 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3672
SELECT DISTINCT + CAST( + 51 AS SIGNED ) DIV MIN( + 63 ) - - NULLIF ( 42, - 0 ) * + - 21 + + 18
----
-864

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT + CAST ( + 51 AS INTEGER ) / MIN ( + 63 ) - - NULLIF ( 42, - 0 ) * + - 21 + + 18
----
-864

query I rowsort
SELECT + + 86 + + + NULLIF ( - 58, 87 )
----
28

query I rowsort
SELECT - 39 - - NULLIF ( + + 72, + 70 ) AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3675
SELECT ALL COUNT( * ) - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 78 * + 5, ( 49 ) AS col2
----
390
49

query I rowsort
SELECT ALL - COALESCE ( 62, - 42 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT ALL MIN( ALL 78 ) col1
----
78

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL MIN ( ALL 78 ) col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3679
SELECT ALL - 18 * + - CASE + + 3 WHEN + COUNT( * ) THEN - + 28 WHEN + - CAST( NULL AS SIGNED ) THEN COUNT( * ) WHEN - 57 THEN + 91 ELSE NULL END + - 49 AS col2, + 7 * + 89 * - MAX( - - 61 )
----
NULL
-38003

skipif mysql # not compatible
query II rowsort label-3679
SELECT ALL - 18 * + - CASE + + 3 WHEN + COUNT ( * ) THEN - + 28 WHEN + - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN - 57 THEN + 91 ELSE NULL END + - 49 AS col2, + 7 * + 89 * - MAX ( - - 61 )
----
NULL
-38003

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL + ( + ( MIN( 63 ) ) )
----
63

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL + ( + ( MIN ( 63 ) ) )
----
63

query I rowsort
SELECT ALL 15 * - 86 AS col0
----
-1290

query I rowsort
SELECT + 20 + + 53
----
73

query I rowsort
SELECT ( + - 4 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ( COUNT( - 10 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3684
SELECT ( COUNT ( - 10 ) ) AS col2
----
1

query I rowsort
SELECT ( ( 9 ) ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL + CASE - 31 WHEN 11 * 1 THEN - + 90 * COUNT( * ) ELSE + + 0 * + 74 END
----
0

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + CASE - 31 WHEN 11 * 1 THEN - + 90 * COUNT ( * ) ELSE + + 0 * + 74 END
----
0

query I rowsort
SELECT + 14 - - COALESCE ( + 6, + 87 + - + 85 ) AS col0
----
20

query I rowsort
SELECT NULLIF ( + NULLIF ( - + 92, + - 15 - - 38 + 41 ), - ( 29 ) * 37 )
----
-92

query I rowsort
SELECT ALL + 1 * - 60 + + 54
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3690
SELECT - 70 DIV - COUNT( * ) + 17 AS col1, + CAST( NULL AS SIGNED ) DIV + 6
----
87
NULL

skipif mysql # not compatible
query II rowsort label-3690
SELECT - 70 / - COUNT ( * ) + 17 AS col1, + CAST ( NULL AS INTEGER ) / + 6
----
87
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT - 43 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-3691
SELECT - 43 / - 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3692
SELECT ALL COUNT( * ) * - 66 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL COUNT ( * ) * - 66 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL - COUNT( * ) * 18 + + ( + 59 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL - COUNT ( * ) * 18 + + ( + 59 ) AS col1
----
41

query I rowsort
SELECT - 7 + - 71 AS col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT + 26 * + CAST( - + 43 AS SIGNED ) - 77 * 31 col0
----
-3505

skipif mysql # not compatible
query I rowsort label-3695
SELECT + 26 * + CAST ( - + 43 AS INTEGER ) - 77 * 31 col0
----
-3505

query I rowsort
SELECT ALL - 8 * + 89 + - - 57 AS col1
----
-655

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3697
SELECT COALESCE ( - COUNT( ALL - - 56 ), + 54 * + CASE + 27 WHEN + ( - 81 ) * 71 - COUNT( * ) THEN + + 25 ELSE + 50 - - 18 END ) AS col0, + 65 DIV + 27 AS col2
----
-1
2

skipif mysql # not compatible
query II rowsort label-3697
SELECT COALESCE ( - COUNT ( ALL - - 56 ), + 54 * + CASE + 27 WHEN + ( - 81 ) * 71 - COUNT ( * ) THEN + + 25 ELSE + 50 - - 18 END ) AS col0, + 65 / + 27 AS col2
----
-1
2

query I rowsort
SELECT - 83 + 47
----
-36

query I rowsort
SELECT ALL 44 * - 24 + - 79
----
-1135

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3700
SELECT DISTINCT + 6, CAST( NULL AS DECIMAL ) * 10 + - CAST( NULL AS DECIMAL ) * + 61 col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-3700
SELECT DISTINCT + 6, CAST ( NULL AS REAL ) * 10 + - CAST ( NULL AS REAL ) * + 61 col0
----
6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT COUNT( * ) * + 8 + - 87 + + ( ( - - 88 ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3701
SELECT COUNT ( * ) * + 8 + - 87 + + ( ( - - 88 ) ) AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3702
SELECT ALL + 70 * + COALESCE ( + + 7, 28 + + 52 + - CAST( - + 44 AS SIGNED ) + + 11 - + 39 * 39, + - 95 ) - - - 64 * + ( + 50 ) + - + COALESCE ( - 16, - CAST( NULL AS SIGNED ) * + + COUNT( * ) + - ( + - 73 ) ) - + 87
----
-2781

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL + 70 * + COALESCE ( + + 7, 28 + + 52 + - CAST ( - + 44 AS INTEGER ) + + 11 - + 39 * 39, + - 95 ) - - - 64 * + ( + 50 ) + - + COALESCE ( - 16, - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + - ( + - 73 ) ) - + 87
----
-2781

onlyif mysql # aggregate syntax: 
query II rowsort label-3703
SELECT - - 76 + COUNT( ALL 17 ) AS col2, + 74
----
77
74

skipif mysql # not compatible
query II rowsort label-3703
SELECT - - 76 + COUNT ( ALL 17 ) AS col2, + 74
----
77
74

query II rowsort
SELECT - 54 AS col1, 92
----
-54
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT ALL CAST( - - 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL CAST ( - - 62 AS INTEGER )
----
62

query I rowsort
SELECT + 96 * - 34 col2
----
-3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3707
SELECT DISTINCT - CASE - + 12 WHEN + 21 + - + CASE + + COALESCE ( + CAST( + + CASE + 42 WHEN 36 THEN NULL WHEN + + 11 - - 58 / - 8 THEN NULL ELSE 74 END AS SIGNED ), + ( - CAST( + - COUNT( * ) AS SIGNED ) ) * + + 2 ) WHEN + - ( - - 10 ) THEN - - COALESCE ( + 72, - - 83 / - 32, + - 93 - + - 59 - + MAX( 90 ) ) WHEN 74 - - - 72 THEN - NULLIF ( + 41, + MIN( ALL + - 29 ) + + 47 ) / - 56 ELSE NULL END THEN NULL WHEN + 38 THEN ( - 64 ) * - 15 WHEN 98 * - 23 THEN - 57 ELSE 50 END / CASE - 19 * + AVG ( 70 ) + - 26 WHEN - 63 THEN MIN( ALL 88 ) + ( 5 ) WHEN - 37 THEN ( - 31 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT - CASE - + 12 WHEN + 21 + - + CASE + + COALESCE ( + CAST ( + + CASE + 42 WHEN 36 THEN NULL WHEN + + 11 - - 58 / - 8 THEN NULL ELSE 74 END AS INTEGER ), + ( - CAST ( + - COUNT ( * ) AS INTEGER ) ) * + + 2 ) WHEN + - ( - - 10 ) THEN - - COALESCE ( + 72, - - 83 / - 32, + - 93 - + - 59 - + MAX ( 90 ) ) WHEN 74 - - - 72 THEN - NULLIF ( + 41, + MIN ( ALL + - 29 ) + + 47 ) / - 56 ELSE NULL END THEN NULL WHEN + 38 THEN ( - 64 ) * - 15 WHEN 98 * - 23 THEN - 57 ELSE 50 END / CASE - 19 * + AVG ( 70 ) + - 26 WHEN - 63 THEN MIN ( ALL 88 ) + ( 5 ) WHEN - 37 THEN ( - 31 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3708
SELECT ALL 65 AS col1, SUM( - 0 ) + + 21 + + + 88 + + + 44 + COUNT( * ) * - COALESCE ( + 50, - 46 )
----
65
103

skipif mysql # not compatible
query II rowsort label-3708
SELECT ALL 65 AS col1, SUM ( - 0 ) + + 21 + + + 88 + + + 44 + COUNT ( * ) * - COALESCE ( + 50, - 46 )
----
65
103

query I rowsort
SELECT + 23 + + ( + 40 )
----
63

query I rowsort
SELECT ALL 93 - + 41
----
52

query I rowsort
SELECT - - COALESCE ( - + 54, + 68 + - 33 - 90 * - - 78 * + + 74 - 2 - 66 * - 67 ) * + 16 AS col0
----
-864

query I rowsort
SELECT + - 18 * 54
----
-972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT ALL - 13 * CAST( + 13 AS SIGNED )
----
-169

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL - 13 * CAST ( + 13 AS INTEGER )
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT + - NULLIF ( + 48, COUNT( * ) ) + ( + 50 )
----
2

skipif mysql # not compatible
query I rowsort label-3714
SELECT + - NULLIF ( + 48, COUNT ( * ) ) + ( + 50 )
----
2

query II rowsort
SELECT - COALESCE ( + + 23, - 38 ) AS col2, 57 col2
----
-23
57

query I rowsort
SELECT ALL - 69 * - + 76 AS col2
----
5244

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT CASE + 2 WHEN MIN( DISTINCT + 44 ) THEN + 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT CASE + 2 WHEN MIN ( DISTINCT + 44 ) THEN + 15 END
----
NULL

query I rowsort
SELECT ALL NULLIF ( 31, + 9 )
----
31

query II rowsort
SELECT + 12 * + - 88 * + - 98, 95 * 40 col2
----
103488
3800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT + + 92 + - - CASE ( - - NULLIF ( ( - AVG ( CAST( NULL AS SIGNED ) ) ), + - CAST( NULL AS SIGNED ) ) ) WHEN 22 THEN + + 24 WHEN + 91 THEN + ( 6 ) * - 61 + 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT + + 92 + - - CASE ( - - NULLIF ( ( - AVG ( CAST ( NULL AS INTEGER ) ) ), + - CAST ( NULL AS INTEGER ) ) ) WHEN 22 THEN + + 24 WHEN + 91 THEN + ( 6 ) * - 61 + 13 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3721
SELECT DISTINCT - 86 DIV MAX( DISTINCT 10 ) + - 7
----
-15

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT - 86 / MAX ( DISTINCT 10 ) + - 7
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + 79 * + 64 - + + COUNT( * ) AS col1
----
5055

skipif mysql # not compatible
query I rowsort label-3722
SELECT + 79 * + 64 - + + COUNT ( * ) AS col1
----
5055

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT + 3 + 14 * + COUNT( * ) + + 64 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3723
SELECT + 3 + 14 * + COUNT ( * ) + + 64 AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3724
SELECT ALL + ( + + 35 ) DIV + 51 + + MAX( + 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL + ( + + 35 ) / + 51 + + MAX ( + 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT + 91 + COUNT( * ) * + 93 * - ( - 23 ) AS col2
----
2230

skipif mysql # not compatible
query I rowsort label-3725
SELECT + 91 + COUNT ( * ) * + 93 * - ( - 23 ) AS col2
----
2230

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT ALL + 57 DIV 18 * - 19 + 23
----
-34

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL + 57 / 18 * - 19 + 23
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 96 * + + 21 * + - 57 / - ( 1 ) * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 96 * + + 21 * + - 57 / - ( 1 ) * + 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT CAST( - + 34 AS SIGNED ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-3728
SELECT CAST ( - + 34 AS INTEGER ) AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3729
SELECT DISTINCT + CASE + 83 WHEN + ( - 85 ) THEN + 17 ELSE 72 END / - 52 * CAST( NULL AS SIGNED ) + 86 AS col2, 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-3729
SELECT DISTINCT + CASE + 83 WHEN + ( - 85 ) THEN + 17 ELSE 72 END / - 52 * CAST ( NULL AS INTEGER ) + 86 AS col2, 21
----
NULL
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT + CAST( + + 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-3730
SELECT + CAST ( + + 71 AS INTEGER )
----
71

query II rowsort
SELECT 55 + + 82 col1, + 22
----
137
22

query I rowsort
SELECT NULLIF ( 4, - + 35 ) * - + 94
----
-376

query I rowsort
SELECT 70 * - 58 * 82
----
-332920

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT ALL + 48 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL + 48 / - 68
----
0

query I rowsort
SELECT ALL + 39 * 34 * + 60
----
79560

onlyif mysql # aggregate syntax: 
query II rowsort label-3736
SELECT 60 * - 88 * + MIN( + - 23 ) AS col1, + 25 AS col2
----
121440
25

skipif mysql # not compatible
query II rowsort label-3736
SELECT 60 * - 88 * + MIN ( + - 23 ) AS col1, + 25 AS col2
----
121440
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3737
SELECT DISTINCT ( - COUNT( * ) ) DIV + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT ( - COUNT ( * ) ) / + 57 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3738
SELECT ALL - 76 - + COUNT( * ), CAST( 80 AS SIGNED ) AS col0
----
-77
80

skipif mysql # not compatible
query II rowsort label-3738
SELECT ALL - 76 - + COUNT ( * ), CAST ( 80 AS INTEGER ) AS col0
----
-77
80

query I rowsort
SELECT DISTINCT + 36 * 92 col2
----
3312

query I rowsort
SELECT DISTINCT - 78 * + 13 + + 37
----
-977

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3741
SELECT ( + NULLIF ( 42, - + AVG ( DISTINCT 63 ) * + + 77 ) ) * + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3741
SELECT ( + NULLIF ( 42, - + AVG ( DISTINCT 63 ) * + + 77 ) ) * + - CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + CASE + + ( 77 ) WHEN 98 - + 74 THEN + 88 END * 86 AS col1, + 78 AS col2
----
NULL
78

query I rowsort
SELECT - 38 * - 6 * + 9
----
2052

query I rowsort
SELECT - + ( + - 95 )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3745
SELECT SUM( ALL CAST( + 55 AS SIGNED ) ) - - - COALESCE ( COUNT( * ), + - COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-3745
SELECT SUM ( ALL CAST ( + 55 AS INTEGER ) ) - - - COALESCE ( COUNT ( * ), + - COUNT ( * ) )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3746
SELECT ALL - 73 * 90 DIV + + 91 + 77 * - - 96 col1
----
7320

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL - 73 * 90 / + + 91 + 77 * - - 96 col1
----
7320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3747
SELECT ALL CAST( + 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL CAST ( + 88 AS INTEGER )
----
88

query I rowsort
SELECT DISTINCT COALESCE ( + 40, - 80 ) AS col0
----
40

query II rowsort
SELECT - 97 * 39 AS col0, - 61 AS col1
----
-3783
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL + 1 + - COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL + 1 + - COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT - 40 + + SUM( DISTINCT - - 89 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3751
SELECT - 40 + + SUM ( DISTINCT - - 89 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3752
SELECT - SUM( ALL 59 ) + COUNT( * ) * - 95 * + 99 AS col2, ( + - 9 )
----
-9464
-9

skipif mysql # not compatible
query II rowsort label-3752
SELECT - SUM ( ALL 59 ) + COUNT ( * ) * - 95 * + 99 AS col2, ( + - 9 )
----
-9464
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT + 24 - - - 25 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3753
SELECT + 24 - - - 25 * COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3754
SELECT ALL + + COALESCE ( + 36, + 62 + - - 83 ) * - CAST( - 98 AS SIGNED )
----
3528

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL + + COALESCE ( + 36, + 62 + - - 83 ) * - CAST ( - 98 AS INTEGER )
----
3528

query I rowsort
SELECT 40 * + 32 col0
----
1280

query I rowsort
SELECT DISTINCT 11 * 1 + - NULLIF ( NULLIF ( + 41, - + 98 * + 91 + AVG ( DISTINCT + 72 ) * + AVG ( + 28 ) ), + ( + 16 ) + 81 + - - CASE 13 WHEN + 73 THEN NULL ELSE + 95 * - 21 END ) AS col1
----
-30

query I rowsort
SELECT ALL 85 + - 65
----
20

query II rowsort
SELECT 46 AS col1, 66
----
46
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT ALL + 15 * ( - 75 ) * + 56 - + - 74 DIV + 81 * - - 68 + + + 25
----
-62975

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL + 15 * ( - 75 ) * + 56 - + - 74 / + 81 * - - 68 + + + 25
----
-62975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3760
SELECT COUNT( * ) DIV - - NULLIF ( CAST( - + COUNT( * ) AS SIGNED ), - 70 * 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-3760
SELECT COUNT ( * ) / - - NULLIF ( CAST ( - + COUNT ( * ) AS INTEGER ), - 70 * 62 )
----
-1

query I rowsort
SELECT 23 + - 22 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3762
SELECT ALL - COUNT( * ) + + 87 + + + 83 + - - 97 + + - 73 - 58 - + + 35 * - - COALESCE ( + 3, 85 ) * 41 * - + COUNT( * ) * + 24 AS col2, 45
----
103455
45

skipif mysql # not compatible
query II rowsort label-3762
SELECT ALL - COUNT ( * ) + + 87 + + + 83 + - - 97 + + - 73 - 58 - + + 35 * - - COALESCE ( + 3, 85 ) * 41 * - + COUNT ( * ) * + 24 AS col2, 45
----
103455
45

query II rowsort
SELECT DISTINCT - 6 col0, + 24 * - ( - + 67 ) AS col2
----
-6
1608

query I rowsort
SELECT ( - 81 ) * - 34
----
2754

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3765
SELECT 19 + + - CAST( NULL AS SIGNED ) + 6, 8 AS col2
----
NULL
8

skipif mysql # not compatible
query II rowsort label-3765
SELECT 19 + + - CAST ( NULL AS INTEGER ) + 6, 8 AS col2
----
NULL
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3766
SELECT 89 col2, 75 + - NULLIF ( - COALESCE ( + ( 62 ), + 5 + + + ( + 0 ) * - 58, CASE 84 WHEN - - AVG ( - + 67 ) * - 18 THEN 37 END * + 4 - + + 26 + - COUNT( * ) * 44 ), 64 * - COUNT( * ) + ( + + 36 ) ) col2
----
89
137

skipif mysql # not compatible
query II rowsort label-3766
SELECT 89 col2, 75 + - NULLIF ( - COALESCE ( + ( 62 ), + 5 + + + ( + 0 ) * - 58, CASE 84 WHEN - - AVG ( - + 67 ) * - 18 THEN 37 END * + 4 - + + 26 + - COUNT ( * ) * 44 ), 64 * - COUNT ( * ) + ( + + 36 ) ) col2
----
89
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT - 12 * - 31 - 75 + + COALESCE ( + + 58, - ( 89 ) ) + + - 56 + + 90 + SUM( + - 85 ) * + 36 + - 11
----
-2682

skipif mysql # not compatible
query I rowsort label-3767
SELECT - 12 * - 31 - 75 + + COALESCE ( + + 58, - ( 89 ) ) + + - 56 + + 90 + SUM ( + - 85 ) * + 36 + - 11
----
-2682

query I rowsort
SELECT ALL 24 * - + 44 AS col1
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT ALL ( - SUM( 43 ) ) * + COUNT( * ) * + ( + 0 ) + + 36 col1
----
36

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL ( - SUM ( 43 ) ) * + COUNT ( * ) * + ( + 0 ) + + 36 col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3770
SELECT DISTINCT - COUNT( * ) AS col2, + MIN( + - CAST( NULL AS SIGNED ) ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3770
SELECT DISTINCT - COUNT ( * ) AS col2, + MIN ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT 81 * - 72 * + + 50 + + COUNT( * )
----
-291599

skipif mysql # not compatible
query I rowsort label-3771
SELECT 81 * - 72 * + + 50 + + COUNT ( * )
----
-291599

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT COUNT( * ) + + 32 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3772
SELECT COUNT ( * ) + + 32 AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3773
SELECT 70 * - 19 + - 85, - COUNT( * ) - + 36 AS col2
----
-1415
-37

skipif mysql # not compatible
query II rowsort label-3773
SELECT 70 * - 19 + - 85, - COUNT ( * ) - + 36 AS col2
----
-1415
-37

query I rowsort
SELECT DISTINCT - - 70 col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3775
SELECT + - 96 * - + ( + 71 ) + - COUNT( * ) - + COALESCE ( + - CAST( + 5 AS SIGNED ), COALESCE ( + - 68, - + 93 ) + 6 ) AS col2
----
6820

skipif mysql # not compatible
query I rowsort label-3775
SELECT + - 96 * - + ( + 71 ) + - COUNT ( * ) - + COALESCE ( + - CAST ( + 5 AS INTEGER ), COALESCE ( + - 68, - + 93 ) + 6 ) AS col2
----
6820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3776
SELECT 9 + + COUNT( ALL - 92 ) - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT 9 + + COUNT ( ALL - 92 ) - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3777
SELECT DISTINCT + COUNT( * ) + + CASE + COUNT( * ) WHEN + - 3 / - 56 + - 53 * - CASE - - 21 WHEN + 22 THEN NULL WHEN + - 72 THEN + + COALESCE ( + + ( + + 79 ), + - ( + - 49 ) * + MAX( + 89 ), CAST( + + COUNT( * ) AS SIGNED ) * 65 * - 41, + 17 ) WHEN + + 94 THEN + - COUNT( * ) ELSE NULL END THEN - 47 END + + + COUNT( * ) * 52 * ( 76 ) - - 39 - - + 98 + + + 74 + 4 - COUNT( * ) + NULLIF ( 11, COUNT( * ) + + - 48 * - + 84 ) * + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT + COUNT ( * ) + + CASE + COUNT ( * ) WHEN + - 3 / - 56 + - 53 * - CASE - - 21 WHEN + 22 THEN NULL WHEN + - 72 THEN + + COALESCE ( + + ( + + 79 ), + - ( + - 49 ) * + MAX ( + 89 ), CAST ( + + COUNT ( * ) AS INTEGER ) * 65 * - 41, + 17 ) WHEN + + 94 THEN + - COUNT ( * ) ELSE NULL END THEN - 47 END + + + COUNT ( * ) * 52 * ( 76 ) - - 39 - - + 98 + + + 74 + 4 - COUNT ( * ) + NULLIF ( 11, COUNT ( * ) + + - 48 * - + 84 ) * + + 71
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT DISTINCT + 30 + - + 47 DIV 45 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT + 30 + - + 47 / 45 AS col1
----
29

query I rowsort
SELECT DISTINCT + + 54 * - + 84
----
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT ALL SUM( DISTINCT - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL SUM ( DISTINCT - 91 )
----
-91

query I rowsort
SELECT ALL - 86 * 83
----
-7138

query I rowsort
SELECT DISTINCT + - 42 * 12 AS col1
----
-504

query I rowsort
SELECT DISTINCT - + ( 29 ) + - - 9 * - - 96
----
835

query I rowsort
SELECT 23 * + 50
----
1150

query I rowsort
SELECT ALL - 56 + + - 29
----
-85

query II rowsort
SELECT DISTINCT 74, 53 AS col2
----
74
53

query I rowsort
SELECT 45 + - 78
----
-33

query III rowsort
SELECT - 33 AS col2, - 51, 71 * + 77 AS col1
----
-33
-51
5467

query II rowsort
SELECT ALL COALESCE ( + 22, + 85 * + 62 ), - ( - NULLIF ( + 2, + + 25 ) ) AS col1
----
22
2

query I rowsort
SELECT ALL NULLIF ( + 95, + 12 ) AS col1
----
95

query I rowsort
SELECT - 1 + - 20 - + 75 - - 61
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - MAX( 56 ) * 89 col0
----
-4984

skipif mysql # not compatible
query I rowsort label-3792
SELECT - MAX ( 56 ) * 89 col0
----
-4984

query I rowsort
SELECT ALL 72 * 78 col0
----
5616

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT DISTINCT 89 * ( - CASE + COUNT( * ) WHEN 26 + - 31 THEN + 27 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT 89 * ( - CASE + COUNT ( * ) WHEN 26 + - 31 THEN + 27 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT + 30 * + SUM( ALL - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3795
SELECT + 30 * + SUM ( ALL - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL - COUNT( * ) * + 94 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - COUNT ( * ) * + 94 AS col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3797
SELECT CASE + 59 WHEN - 95 THEN - COUNT( * ) - + + CAST( NULL AS DECIMAL ) * + + 61 / - 97 + - 93 * - 33 / - + 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT CASE + 59 WHEN - 95 THEN - COUNT ( * ) - + + CAST ( NULL AS REAL ) * + + 61 / - 97 + - 93 * - 33 / - + 94 ELSE NULL END
----
NULL

query I rowsort
SELECT COALESCE ( + 35, + 26 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3799
SELECT + NULLIF ( COUNT( * ), + 4 * 22 * 60 - - 55 ) + + MIN( + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT + NULLIF ( COUNT ( * ), + 4 * 22 * 60 - - 55 ) + + MIN ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3800
SELECT + 82 DIV + - COALESCE ( CAST( 28 AS SIGNED ), 52 ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-3800
SELECT + 82 / + - COALESCE ( CAST ( 28 AS INTEGER ), 52 ) col0
----
-2

query I rowsort
SELECT - 94 * + 9 AS col2
----
-846

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3802
SELECT + 0 + - 98 AS col1, 92 * CAST( NULL AS SIGNED )
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-3802
SELECT + 0 + - 98 AS col1, 92 * CAST ( NULL AS INTEGER )
----
-98
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3803
SELECT - 2 DIV - + 10, + ( 33 ) * + - NULLIF ( - 44, + COUNT( * ) ) col2
----
0
1452

skipif mysql # not compatible
query II rowsort label-3803
SELECT - 2 / - + 10, + ( 33 ) * + - NULLIF ( - 44, + COUNT ( * ) ) col2
----
0
1452

onlyif mysql # DIV for integer division: 
query I rowsort label-3804
SELECT DISTINCT + 75 DIV + 8 + + - 0
----
9

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT + 75 / + 8 + + - 0
----
9

query I rowsort
SELECT + - 6 * - 20
----
120

query II rowsort
SELECT DISTINCT + 3 col1, + ( 8 ) AS col1
----
3
8

query I rowsort
SELECT ALL + - ( + - 47 ) col0
----
47

query I rowsort
SELECT DISTINCT ( + + 74 ) * 31 * - 79 AS col0
----
-181226

query I rowsort
SELECT ALL 48 * + 2 - 77
----
19

query I rowsort
SELECT - 81 * - 8 * 80 + - + 98 * - 18 + - 56
----
53548

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3811
SELECT CAST( NULL AS SIGNED ) AS col1, 25 DIV - 10
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-3811
SELECT CAST ( NULL AS INTEGER ) AS col1, 25 / - 10
----
NULL
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT - 1 + + SUM( + + 34 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3812
SELECT - 1 + + SUM ( + + 34 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT DISTINCT - 99 + + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT - 99 + + COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL 75 + + + ( + NULLIF ( - SUM( 32 ), + - 13 + - 72 - - CASE 88 WHEN - 0 THEN + 29 * 42 ELSE NULL END * + + ( + + 38 ) + 88 ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL 75 + + + ( + NULLIF ( - SUM ( 32 ), + - 13 + - 72 - - CASE 88 WHEN - 0 THEN + 29 * 42 ELSE NULL END * + + ( + + 38 ) + 88 ) ) AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT ALL CAST( - + 46 AS SIGNED ) + 92 * + 86
----
7866

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL CAST ( - + 46 AS INTEGER ) + 92 * + 86
----
7866

query I rowsort
SELECT + 59 - - 98 * - 6
----
-529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3817
SELECT ALL - + 77 * + COALESCE ( + 20, + + ( - - 32 ) DIV + + 52 ) DIV + COUNT( * ) AS col0
----
-1540

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL - + 77 * + COALESCE ( + 20, + + ( - - 32 ) / + + 52 ) / + COUNT ( * ) AS col0
----
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT - 42 + - MAX( ALL 91 ) AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT - 42 + - MAX ( ALL 91 ) AS col1
----
-133

onlyif mysql # DIV for integer division: 
query II rowsort label-3819
SELECT DISTINCT 67 DIV - 55, 19 col1
----
-1
19

skipif mysql # not compatible
query II rowsort label-3819
SELECT DISTINCT 67 / - 55, 19 col1
----
-1
19

query II rowsort
SELECT - ( - 30 ), 79 AS col0
----
30
79

query II rowsort
SELECT + 90 + + - 39 col1, + 26 * + - 54 * - - 97
----
51
-136188

query I rowsort
SELECT ALL 2 * - + 93 AS col0
----
-186

query I rowsort
SELECT ALL + 79 * + - NULLIF ( 5, + 25 / - 11 - - 40 )
----
-395

onlyif mysql # aggregate syntax: 
query II rowsort label-3824
SELECT - 66 * - - 24 AS col0, - COUNT( * ) AS col2
----
-1584
-1

skipif mysql # not compatible
query II rowsort label-3824
SELECT - 66 * - - 24 AS col0, - COUNT ( * ) AS col2
----
-1584
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT - COUNT( * ) + - - 83 - + + 10 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3825
SELECT - COUNT ( * ) + - - 83 - + + 10 AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3826
SELECT ALL CAST( + 56 AS SIGNED ) * + 13
----
728

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL CAST ( + 56 AS INTEGER ) * + 13
----
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT DISTINCT CAST( - - 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT CAST ( - - 19 AS INTEGER )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT DISTINCT CASE - AVG ( - 41 ) WHEN - 49 / + - COUNT( * ) THEN - 46 / NULLIF ( - 99, + 50 + + 21 / - MIN( DISTINCT - 61 ) + - - 59 ) - COUNT( * ) WHEN 54 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT CASE - AVG ( - 41 ) WHEN - 49 / + - COUNT ( * ) THEN - 46 / NULLIF ( - 99, + 50 + + 21 / - MIN ( DISTINCT - 61 ) + - - 59 ) - COUNT ( * ) WHEN 54 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3829
SELECT - CAST( NULL AS DECIMAL ) * - - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT - CAST ( NULL AS REAL ) * - - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT - MIN( + 29 ) + - 1 * NULLIF ( ( - COUNT( ALL + ( - + 45 ) ) ), + 63 / + AVG ( DISTINCT + 18 ) + - ( - - ( - 70 ) ) + 57 )
----
-28

skipif mysql # not compatible
query I rowsort label-3830
SELECT - MIN ( + 29 ) + - 1 * NULLIF ( ( - COUNT ( ALL + ( - + 45 ) ) ), + 63 / + AVG ( DISTINCT + 18 ) + - ( - - ( - 70 ) ) + 57 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT + COUNT( 50 )
----
1

skipif mysql # not compatible
query I rowsort label-3831
SELECT + COUNT ( 50 )
----
1

query I rowsort
SELECT + 76 * - 59
----
-4484

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ( + 59 ) * + COALESCE ( + NULLIF ( 21, + 56 + - 43 + + + 1 / 95 + - COALESCE ( 3, - + 32 + 2 * + 49 * - 22 + - ( - 92 ) + + 88 - - 69 + - 46 / + 56 * 31 + CASE 25 WHEN + + 34 THEN NULL WHEN + 50 * - 16 + + 46 * - 75 * + - 12 THEN + + NULLIF ( + 9, 80 ) * + 60 WHEN + 25 THEN ( + CASE 3 WHEN COUNT( * ) / - 85 + + - NULLIF ( - + 5, 88 * NULLIF ( - 62 * 41, - 5 ) ) * 99 THEN NULL ELSE 27 END ) * - 33 ELSE COUNT( ALL + 21 ) / + 87 END, ( + 18 ) * - 73 ) / 13 ), + ( 27 ) * + 63 ) * CASE 56 + - 62 WHEN - 27 THEN NULL ELSE - 64 + 32 END + - COUNT( * )
----
-39649

skipif mysql # not compatible
query I rowsort label-3833
SELECT ( + 59 ) * + COALESCE ( + NULLIF ( 21, + 56 + - 43 + + + 1 / 95 + - COALESCE ( 3, - + 32 + 2 * + 49 * - 22 + - ( - 92 ) + + 88 - - 69 + - 46 / + 56 * 31 + CASE 25 WHEN + + 34 THEN NULL WHEN + 50 * - 16 + + 46 * - 75 * + - 12 THEN + + NULLIF ( + 9, 80 ) * + 60 WHEN + 25 THEN ( + CASE 3 WHEN COUNT ( * ) / - 85 + + - NULLIF ( - + 5, 88 * NULLIF ( - 62 * 41, - 5 ) ) * 99 THEN NULL ELSE 27 END ) * - 33 ELSE COUNT ( ALL + 21 ) / + 87 END, ( + 18 ) * - 73 ) / 13 ), + ( 27 ) * + 63 ) * CASE 56 + - 62 WHEN - 27 THEN NULL ELSE - 64 + 32 END + - COUNT ( * )
----
-39649

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT + 9 * - - 3 + COUNT( * ) + - COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3834
SELECT + 9 * - - 3 + COUNT ( * ) + - COUNT ( * ) AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3835
SELECT ALL - + 54 DIV 91 + + + 78
----
78

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL - + 54 / 91 + + + 78
----
78

query II rowsort
SELECT - + 91 + - 48, - 70 AS col1
----
-139
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3837
SELECT ALL + 24 DIV - 59 + + 27 + NULLIF ( - COUNT( * ), 37 ) + - 77 + - 99
----
-150

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + 24 / - 59 + + 27 + NULLIF ( - COUNT ( * ), 37 ) + - 77 + - 99
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT - - COUNT( * ) + 14 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3838
SELECT - - COUNT ( * ) + 14 AS col1
----
15

query I rowsort
SELECT + - COALESCE ( ( 85 ), - + 71 + - 94 * 61 ) AS col0
----
-85

query II rowsort
SELECT - 7 + 43 AS col1, + 32 * + - 29 AS col2
----
36
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - COUNT( * ) * - 35 + 22
----
57

skipif mysql # not compatible
query I rowsort label-3841
SELECT - COUNT ( * ) * - 35 + 22
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-3842
SELECT + MIN( ALL - 44 ) AS col0, + 6 * + 96 AS col0
----
-44
576

skipif mysql # not compatible
query II rowsort label-3842
SELECT + MIN ( ALL - 44 ) AS col0, + 6 * + 96 AS col0
----
-44
576

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL + + 4 * + - 89 + + 8 * NULLIF ( 34, - + 43 / 95 - CASE - 70 WHEN COUNT( * ) + COUNT( ALL 44 ) THEN + - 44 ELSE NULL END + + 5 * - 66 ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL + + 4 * + - 89 + + 8 * NULLIF ( 34, - + 43 / 95 - CASE - 70 WHEN COUNT ( * ) + COUNT ( ALL 44 ) THEN + - 44 ELSE NULL END + + 5 * - 66 ) col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - - COUNT( ALL + 71 ) * - ( - 36 ) + - 9 + - + 21 * + - 70 * 88 * - 92 AS col2
----
-11901093

skipif mysql # not compatible
query I rowsort label-3844
SELECT - - COUNT ( ALL + 71 ) * - ( - 36 ) + - 9 + - + 21 * + - 70 * 88 * - 92 AS col2
----
-11901093

query I rowsort
SELECT + - 15 + + + 1 - - + 86
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3846
SELECT DISTINCT - 45 * - CAST( NULL AS SIGNED ) AS col0, + 81 + + 5 + 3 DIV + 99 * COUNT( * ) AS col2
----
NULL
86

skipif mysql # not compatible
query II rowsort label-3846
SELECT DISTINCT - 45 * - CAST ( NULL AS INTEGER ) AS col0, + 81 + + 5 + 3 / + 99 * COUNT ( * ) AS col2
----
NULL
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3847
SELECT ALL - 29 * - 91 - + COUNT( ALL NULLIF ( + 20, 48 - CAST( - - NULLIF ( + + 8, 21 / + ( - 22 ) ) AS DECIMAL ) ) ) AS col2, - 29 AS col2
----
2638
-29

skipif mysql # not compatible
query II rowsort label-3847
SELECT ALL - 29 * - 91 - + COUNT ( ALL NULLIF ( + 20, 48 - CAST ( - - NULLIF ( + + 8, 21 / + ( - 22 ) ) AS REAL ) ) ) AS col2, - 29 AS col2
----
2638
-29

query I rowsort
SELECT ALL 49 * - 66 AS col0
----
-3234

query I rowsort
SELECT 5 + 84 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3850
SELECT COALESCE ( + COUNT( * ), - - CAST( NULL AS SIGNED ), 14 + - + 77 + - - 34 ) + - - 55
----
56

skipif mysql # not compatible
query I rowsort label-3850
SELECT COALESCE ( + COUNT ( * ), - - CAST ( NULL AS INTEGER ), 14 + - + 77 + - - 34 ) + - - 55
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT COUNT( * ) + + - 85 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-3851
SELECT COUNT ( * ) + + - 85 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3852
SELECT 89 AS col1, - COUNT( * ) AS col0
----
89
-1

skipif mysql # not compatible
query II rowsort label-3852
SELECT 89 AS col1, - COUNT ( * ) AS col0
----
89
-1

query II rowsort
SELECT DISTINCT 69 AS col2, + 3
----
69
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3854
SELECT 29 * - 99 * 59, + COUNT( * ) AS col1
----
-169389
1

skipif mysql # not compatible
query II rowsort label-3854
SELECT 29 * - 99 * 59, + COUNT ( * ) AS col1
----
-169389
1

query II rowsort
SELECT 70 AS col1, - 39 + - 47
----
70
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-3856
SELECT 5 AS col0, + 68 + 53 * + COUNT( * ) + - COUNT( * ) AS col1
----
5
120

skipif mysql # not compatible
query II rowsort label-3856
SELECT 5 AS col0, + 68 + 53 * + COUNT ( * ) + - COUNT ( * ) AS col1
----
5
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3857
SELECT - 31, COUNT( * ) + 78 - - - 44 + - 3 * - + 41 * - - CAST( NULL AS SIGNED ) AS col0
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-3857
SELECT - 31, COUNT ( * ) + 78 - - - 44 + - 3 * - + 41 * - - CAST ( NULL AS INTEGER ) AS col0
----
-31
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3858
SELECT ALL 35 AS col0, - MAX( - 1 )
----
35
1

skipif mysql # not compatible
query II rowsort label-3858
SELECT ALL 35 AS col0, - MAX ( - 1 )
----
35
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3859
SELECT ALL 86 AS col2, 51 DIV - - 88 + - 13 * + 51 + - 36
----
86
-699

skipif mysql # not compatible
query II rowsort label-3859
SELECT ALL 86 AS col2, 51 / - - 88 + - 13 * + 51 + - 36
----
86
-699

query I rowsort
SELECT ALL - 94 * + 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3861
SELECT COUNT( * ) * - ( 69 ) / + 72 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3861
SELECT COUNT ( * ) * - ( 69 ) / + 72 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT 80 + + + 51
----
131

query I rowsort
SELECT DISTINCT 48 + 41 AS col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-3864
SELECT 99 + + + SUM( DISTINCT + 90 ) AS col2, + 30
----
189
30

skipif mysql # not compatible
query II rowsort label-3864
SELECT 99 + + + SUM ( DISTINCT + 90 ) AS col2, + 30
----
189
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3865
SELECT ALL - 8 AS col1, COUNT( * ) + - + 0 + - 24 + - - 67 * + 81 * - 76 + ( + - SUM( ALL - 74 ) ) * - 68 * - 85 - + CAST( + CAST( + 81 AS SIGNED ) AS SIGNED ) DIV - + 38
----
-8
15247

skipif mysql # not compatible
query II rowsort label-3865
SELECT ALL - 8 AS col1, COUNT ( * ) + - + 0 + - 24 + - - 67 * + 81 * - 76 + ( + - SUM ( ALL - 74 ) ) * - 68 * - 85 - + CAST ( + CAST ( + 81 AS INTEGER ) AS INTEGER ) / - + 38
----
-8
15247

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT DISTINCT 12 + + MAX( + ( 29 ) ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT 12 + + MAX ( + ( 29 ) ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT - MAX( + + 54 ) + + + 83 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT - MAX ( + + 54 ) + + + 83 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT - COUNT( * ) * COUNT( * ) * + 60 col2
----
-60

skipif mysql # not compatible
query I rowsort label-3868
SELECT - COUNT ( * ) * COUNT ( * ) * + 60 col2
----
-60

query I rowsort
SELECT ALL - - 77 + + 78 AS col2
----
155

query II rowsort
SELECT + 30 AS col2, - 14
----
30
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT - COUNT( + + 44 ) * + + 80 - + 23 AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-3871
SELECT - COUNT ( + + 44 ) * + + 80 - + 23 AS col0
----
-103

query II rowsort
SELECT + + 71, 40 AS col0
----
71
40

query II rowsort
SELECT + + 30 AS col0, + 48 col0
----
30
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3874
SELECT DISTINCT - + 35 * + 80 * + COUNT( * ) + + COALESCE ( + + 52, + 32 * COUNT( * ) DIV - 11 * - 12 ) + - 9
----
-2757

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT - + 35 * + 80 * + COUNT ( * ) + + COALESCE ( + + 52, + 32 * COUNT ( * ) / - 11 * - 12 ) + - 9
----
-2757

query II rowsort
SELECT DISTINCT - 4 col2, - 98
----
-4
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL - + MIN( 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL - + MIN ( 74 )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3877
SELECT DISTINCT - + ( CAST( NULL AS SIGNED ) ) - + - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT - + ( CAST ( NULL AS INTEGER ) ) - + - 26 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 43 * 85
----
3655

query I rowsort
SELECT ALL + - 93 * + + 40 col0
----
-3720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3880
SELECT ALL + CAST( NULL AS SIGNED ) - - + 52 + 70 + 83 AS col0, - 20 + + ( + + MAX( + - 37 ) ) - + 79 + + CASE + COUNT( * ) WHEN + 12 / - 28 THEN + 68 END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3880
SELECT ALL + CAST ( NULL AS INTEGER ) - - + 52 + 70 + 83 AS col0, - 20 + + ( + + MAX ( + - 37 ) ) - + 79 + + CASE + COUNT ( * ) WHEN + 12 / - 28 THEN + 68 END AS col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3881
SELECT 29 DIV + - ( - 9 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3881
SELECT 29 / + - ( - 9 ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3882
SELECT CASE SUM( + 18 ) WHEN CAST( - + 13 AS SIGNED ) * + - 33 THEN COUNT( * ) + + + COUNT( * ) WHEN ( - + AVG ( 53 ) ) + + ( - MIN( - 63 ) ) + + 61 THEN NULL ELSE NULL END * + SUM( ALL - - 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT CASE SUM ( + 18 ) WHEN CAST ( - + 13 AS INTEGER ) * + - 33 THEN COUNT ( * ) + + + COUNT ( * ) WHEN ( - + AVG ( 53 ) ) + + ( - MIN ( - 63 ) ) + + 61 THEN NULL ELSE NULL END * + SUM ( ALL - - 39 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3883
SELECT 38 * - 68 col2, + 26 * + MIN( DISTINCT - 91 ) AS col0
----
-2584
-2366

skipif mysql # not compatible
query II rowsort label-3883
SELECT 38 * - 68 col2, + 26 * + MIN ( DISTINCT - 91 ) AS col0
----
-2584
-2366

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT COUNT( * ) - + + ( + 45 )
----
-44

skipif mysql # not compatible
query I rowsort label-3884
SELECT COUNT ( * ) - + + ( + 45 )
----
-44

onlyif mysql # aggregate syntax: 
query III rowsort label-3885
SELECT ALL 49 * - COUNT( * ), - 51 + - + 21 - - + 53 AS col2, NULLIF ( + + 2, + + 71 * - + SUM( DISTINCT 51 ) * 36 ) AS col1
----
-49
-19
2

skipif mysql # not compatible
query III rowsort label-3885
SELECT ALL 49 * - COUNT ( * ), - 51 + - + 21 - - + 53 AS col2, NULLIF ( + + 2, + + 71 * - + SUM ( DISTINCT 51 ) * 36 ) AS col1
----
-49
-19
2

query I rowsort
SELECT 57 + NULLIF ( + 10, - 66 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT DISTINCT COUNT( ALL + 13 )
----
1

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT COUNT ( ALL + 13 )
----
1

query I rowsort
SELECT ALL 43 * 16
----
688

onlyif mysql # aggregate syntax: 
query II rowsort label-3889
SELECT DISTINCT 72 + + COUNT( * ) AS col2, - ( + COUNT( * ) ) col2
----
73
-1

skipif mysql # not compatible
query II rowsort label-3889
SELECT DISTINCT 72 + + COUNT ( * ) AS col2, - ( + COUNT ( * ) ) col2
----
73
-1

query II rowsort
SELECT 54 * + - 45 AS col1, - 63 AS col2
----
-2430
-63

query I rowsort
SELECT ALL 7 + + 7
----
14

query I rowsort
SELECT ALL 71 + 94 + - 72
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3893
SELECT ALL 53 + + + NULLIF ( 79, - MAX( - 12 ) / + 62 * + 60 ) AS col2, - 42
----
132
-42

skipif mysql # not compatible
query II rowsort label-3893
SELECT ALL 53 + + + NULLIF ( 79, - MAX ( - 12 ) / + 62 * + 60 ) AS col2, - 42
----
132
-42

query I rowsort
SELECT 21 * 33 * + 86 AS col0
----
59598

query I rowsort
SELECT ALL + 22 * + ( + + 20 ) + - - ( + - ( + - 60 ) ) + + 16 * - 37
----
-92

query I rowsort
SELECT 39 * + 96
----
3744

query I rowsort
SELECT + + ( - - 66 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT DISTINCT - CASE + - 75 WHEN 57 + 48 THEN - - COUNT( * ) + + + 73 ELSE + - 46 + 78 END
----
-32

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT - CASE + - 75 WHEN 57 + 48 THEN - - COUNT ( * ) + + + 73 ELSE + - 46 + 78 END
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3899
SELECT ALL + 93 * 25 - 69 DIV - SUM( + ( - 69 ) )
----
2324

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL + 93 * 25 - 69 / - SUM ( + ( - 69 ) )
----
2324

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3900
SELECT + ( + - MIN( ALL - 32 ) ) * + CAST( NULL AS DECIMAL ) * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT + ( + - MIN ( ALL - 32 ) ) * + CAST ( NULL AS REAL ) * + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT NULLIF ( + COUNT( * ), - COALESCE ( + 94, 6 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3901
SELECT NULLIF ( + COUNT ( * ), - COALESCE ( + 94, 6 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3902
SELECT - + CAST( - 36 AS SIGNED ) + - 72 * + - COUNT( * ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-3902
SELECT - + CAST ( - 36 AS INTEGER ) + - 72 * + - COUNT ( * ) AS col2
----
108

query II rowsort
SELECT - 61 + + + ( + + 5 ) col0, - 80
----
-56
-80

query I rowsort
SELECT ALL + 20 * - 25 col0
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT DISTINCT + COUNT( - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + COUNT ( - 37 )
----
1

query I rowsort
SELECT DISTINCT + 3 * 11
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3907
SELECT - COUNT( * ) + + 57 + - ( 86 ) * - - 4, NULLIF ( - 25, + 45 * 76 ) + + 67 - CASE - - 11 WHEN + + ( + 58 ) + + NULLIF ( + 57, - SUM( 2 ) ) + + + 16 + + 20 THEN + 76 - - - 86 ELSE + 8 END AS col1
----
-288
34

skipif mysql # not compatible
query II rowsort label-3907
SELECT - COUNT ( * ) + + 57 + - ( 86 ) * - - 4, NULLIF ( - 25, + 45 * 76 ) + + 67 - CASE - - 11 WHEN + + ( + 58 ) + + NULLIF ( + 57, - SUM ( 2 ) ) + + + 16 + + 20 THEN + 76 - - - 86 ELSE + 8 END AS col1
----
-288
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3908
SELECT - COALESCE ( - - 99, 91 ) DIV COUNT( * ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-3908
SELECT - COALESCE ( - - 99, 91 ) / COUNT ( * ) AS col2
----
-99

query I rowsort
SELECT - 19 + - 56 AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3910
SELECT - SUM( ALL - - CAST( NULL AS SIGNED ) ) * - - 45 + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) * - - 45 + - 91
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( - + 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT DISTINCT + 86 + - COUNT( * ) + + COUNT( * ) * - + 30 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT + 86 + - COUNT ( * ) + + COUNT ( * ) * - + 30 AS col2
----
55

query I rowsort
SELECT DISTINCT ( - - 15 ) AS col2
----
15

query I rowsort
SELECT DISTINCT - 65 + - 56 AS col2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT DISTINCT 85 + + + MAX( ALL 63 ) AS col1
----
148

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT 85 + + + MAX ( ALL 63 ) AS col1
----
148

query II rowsort
SELECT - + 77 AS col2, + 51
----
-77
51

query I rowsort
SELECT + 29 + 41 + + + 60
----
130

query I rowsort
SELECT ALL - 74 * - 68 AS col0
----
5032

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3920
SELECT - 93 col1, - CAST( - + 53 AS SIGNED )
----
-93
53

skipif mysql # not compatible
query II rowsort label-3920
SELECT - 93 col1, - CAST ( - + 53 AS INTEGER )
----
-93
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT MAX( + + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-3921
SELECT MAX ( + + 53 )
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3922
SELECT ALL NULLIF ( - 90, + - ( - CAST( 26 AS SIGNED ) ) ) DIV 31 * - - 45 - - + 96
----
6

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL NULLIF ( - 90, + - ( - CAST ( 26 AS INTEGER ) ) ) / 31 * - - 45 - - + 96
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT ALL - 74 DIV 7 * 89 - - - 67
----
-957

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - 74 / 7 * 89 - - - 67
----
-957

query I rowsort
SELECT + - 85 * 13 * + COALESCE ( + 1, - 4 ) AS col2
----
-1105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3925
SELECT DISTINCT + - 88 AS col0, - 23 * - CAST( NULL AS SIGNED ) * 5 AS col2
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-3925
SELECT DISTINCT + - 88 AS col0, - 23 * - CAST ( NULL AS INTEGER ) * 5 AS col2
----
-88
NULL

query I rowsort
SELECT + + 52 * + + 23 AS col2
----
1196

query I rowsort
SELECT ( + 93 ) col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3928
SELECT ALL 15 DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL 15 / + 41
----
0

query I rowsort
SELECT + 98 * - 42
----
-4116

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3930
SELECT + CASE - 59 WHEN - COALESCE ( - - COUNT( * ), - - 48 ) THEN NULL WHEN + COUNT( * ) + + + 33 + - CAST( 31 AS DECIMAL ) / - - 53 THEN + + 85 + + - COUNT( * ) + + 4 - - - AVG ( DISTINCT + 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3930
SELECT + CASE - 59 WHEN - COALESCE ( - - COUNT ( * ), - - 48 ) THEN NULL WHEN + COUNT ( * ) + + + 33 + - CAST ( 31 AS REAL ) / - - 53 THEN + + 85 + + - COUNT ( * ) + + 4 - - - AVG ( DISTINCT + 20 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT - 72 * + - MIN( DISTINCT 49 )
----
3528

skipif mysql # not compatible
query I rowsort label-3931
SELECT - 72 * + - MIN ( DISTINCT 49 )
----
3528

query I rowsort
SELECT + 12 - - - 84 AS col0
----
-72

query I rowsort
SELECT ALL + + 63 * 64
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT COUNT( ALL + ( + ( + 75 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3934
SELECT COUNT ( ALL + ( + ( + 75 ) ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT 2 * - 3 * + 88
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT + 14 * COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3936
SELECT + 14 * COUNT ( * ) AS col2
----
14

query II rowsort
SELECT ALL + 28, + 97 AS col1
----
28
97

query I rowsort
SELECT ALL - 79 * - 19 + - + 56 AS col1
----
1445

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT + COUNT( * ) * - SUM( DISTINCT + 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3939
SELECT + COUNT ( * ) * - SUM ( DISTINCT + 90 ) AS col2
----
-90

query I rowsort
SELECT + 78 + - + 46 col0
----
32

query I rowsort
SELECT NULLIF ( + + 8, - + 26 * - 28 * - - 45 ) AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT - CAST( + + ( - - 4 ) AS SIGNED ) * 20 * - 58 * 53
----
245920

skipif mysql # not compatible
query I rowsort label-3942
SELECT - CAST ( + + ( - - 4 ) AS INTEGER ) * 20 * - 58 * 53
----
245920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT - CAST( - 3 AS SIGNED ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3943
SELECT - CAST ( - 3 AS INTEGER ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3944
SELECT COUNT( * ) col0, COUNT( * ) * + COUNT( * ) + - 78 col1
----
1
-77

skipif mysql # not compatible
query II rowsort label-3944
SELECT COUNT ( * ) col0, COUNT ( * ) * + COUNT ( * ) + - 78 col1
----
1
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL 37 * + COUNT( ( + - 36 ) ) + - 27
----
10

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL 37 * + COUNT ( ( + - 36 ) ) + - 27
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT - CAST( NULL AS SIGNED ) + - - 17 * + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT - CAST ( NULL AS INTEGER ) + - - 17 * + 94 AS col0
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 48, 47 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3948
SELECT ALL CAST( 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL CAST ( 23 AS INTEGER )
----
23

query I rowsort
SELECT + 88 + + 75
----
163

query I rowsort
SELECT - 94 * + 23 col0
----
-2162

onlyif mysql # DIV for integer division: 
query II rowsort label-3951
SELECT - 11 DIV - + 54 AS col2, 78 AS col2
----
0
78

skipif mysql # not compatible
query II rowsort label-3951
SELECT - 11 / - + 54 AS col2, 78 AS col2
----
0
78

query I rowsort
SELECT DISTINCT - 55 - + + 27 col0
----
-82

query II rowsort
SELECT 42 AS col2, - ( - + 22 ) AS col2
----
42
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT - - 81 - + COUNT( * ) * + 39 col0
----
42

skipif mysql # not compatible
query I rowsort label-3954
SELECT - - 81 - + COUNT ( * ) * + 39 col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT + MAX( DISTINCT + - 5 ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT + MAX ( DISTINCT + - 5 ) col0
----
-5

query I rowsort
SELECT - - ( + + 30 ) col0
----
30

query I rowsort
SELECT - 16 - + 31 AS col1
----
-47

query I rowsort
SELECT ALL + + 24 * + 86 * - 37 AS col1
----
-76368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT CAST( ( - 67 ) AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-3959
SELECT CAST ( ( - 67 ) AS INTEGER ) AS col1
----
-67

query I rowsort
SELECT ALL - + ( - + ( 0 ) ) AS col0
----
0

query I rowsort
SELECT - 3 * + 49 + - - 28 - - 40 + + 13 AS col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3962
SELECT ALL - + 66 col0, - CAST( NULL AS SIGNED ) + - ( - 9 )
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-3962
SELECT ALL - + 66 col0, - CAST ( NULL AS INTEGER ) + - ( - 9 )
----
-66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT 29 / + 84 + - - COUNT( * ) + + - 35 / - 39 + - CASE COUNT( * ) WHEN + - 72 THEN 65 - + - 31 * 47 + 70 * + 13 WHEN + NULLIF ( + 96, - + 17 ) THEN - - COALESCE ( 6, - 89, 16 + 89 ) * - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT 29 / + 84 + - - COUNT ( * ) + + - 35 / - 39 + - CASE COUNT ( * ) WHEN + - 72 THEN 65 - + - 31 * 47 + 70 * + 13 WHEN + NULLIF ( + 96, - + 17 ) THEN - - COALESCE ( 6, - 89, 16 + 89 ) * - + COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 96 + + 60 AS col2, + 97 * + 6
----
156
582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3965
SELECT 38 * + 18 AS col1, MIN( ALL + CAST( 39 AS SIGNED ) ) + + 59 AS col0
----
684
98

skipif mysql # not compatible
query II rowsort label-3965
SELECT 38 * + 18 AS col1, MIN ( ALL + CAST ( 39 AS INTEGER ) ) + + 59 AS col0
----
684
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3966
SELECT + NULLIF ( - 15, 19 - - 76 DIV - ( + + CAST( NULL AS SIGNED ) ) ) * 5 DIV 83 * 47 + + 72 DIV 49 - + - 96 + 32 * + 94 + - 49 * 55
----
410

skipif mysql # not compatible
query I rowsort label-3966
SELECT + NULLIF ( - 15, 19 - - 76 / - ( + + CAST ( NULL AS INTEGER ) ) ) * 5 / 83 * 47 + + 72 / 49 - + - 96 + 32 * + 94 + - 49 * 55
----
410

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT DISTINCT 49 DIV - - 2 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT 49 / - - 2 AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3968
SELECT 57 DIV - COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3968
SELECT 57 / - COUNT ( * ) AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3969
SELECT 93 + MIN( + 47 ) + COUNT( * ) * - 81 AS col2, + NULLIF ( 13, - 10 + - 79 + + CAST( NULL AS SIGNED ) - + + 69 * + 37 * 99 + - + COALESCE ( + 8, - 19 ) ) * - 67 + COUNT( * ) DIV COUNT( * ) * - 96 AS col2
----
59
-967

skipif mysql # not compatible
query II rowsort label-3969
SELECT 93 + MIN ( + 47 ) + COUNT ( * ) * - 81 AS col2, + NULLIF ( 13, - 10 + - 79 + + CAST ( NULL AS INTEGER ) - + + 69 * + 37 * 99 + - + COALESCE ( + 8, - 19 ) ) * - 67 + COUNT ( * ) / COUNT ( * ) * - 96 AS col2
----
59
-967

query I rowsort
SELECT DISTINCT 84 * + - ( + 50 ) * 93
----
-390600

query I rowsort
SELECT DISTINCT 89 * + 60
----
5340

onlyif mysql # DIV for integer division: 
query II rowsort label-3972
SELECT DISTINCT 48 * - 61, - 65 DIV - 75 AS col1
----
-2928
0

skipif mysql # not compatible
query II rowsort label-3972
SELECT DISTINCT 48 * - 61, - 65 / - 75 AS col1
----
-2928
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT ALL 83 - + 38 + + SUM( DISTINCT - 88 ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL 83 - + 38 + + SUM ( DISTINCT - 88 ) col2
----
-43

query I rowsort
SELECT 14 - + 44 AS col2
----
-30

query I rowsort
SELECT 17 + + 39
----
56

query I rowsort
SELECT 27 + + 24 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3977
SELECT - CAST( + - NULLIF ( 39, - - 9 ) AS SIGNED ) + 25, - 32 * + ( + 1 ) * CAST( - ( - 80 ) AS SIGNED ) AS col2
----
64
-2560

skipif mysql # not compatible
query II rowsort label-3977
SELECT - CAST ( + - NULLIF ( 39, - - 9 ) AS INTEGER ) + 25, - 32 * + ( + 1 ) * CAST ( - ( - 80 ) AS INTEGER ) AS col2
----
64
-2560

onlyif mysql # aggregate syntax: 
query II rowsort label-3978
SELECT DISTINCT COUNT( * ) - + 48 AS col0, - 59 * + COUNT( DISTINCT - 75 ) + + 63 + 83
----
-47
87

skipif mysql # not compatible
query II rowsort label-3978
SELECT DISTINCT COUNT ( * ) - + 48 AS col0, - 59 * + COUNT ( DISTINCT - 75 ) + + 63 + 83
----
-47
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3979
SELECT ALL COALESCE ( ( + - 28 ), + 21 * - ( - 13 ) * + CASE + + 38 WHEN - 92 THEN - CAST( NULL AS SIGNED ) * + COUNT( * ) + - - CASE + 31 WHEN + ( - + 27 ) THEN NULL WHEN - 54 THEN - - 20 * - COUNT( * ) END END * - 42 )
----
-28

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL COALESCE ( ( + - 28 ), + 21 * - ( - 13 ) * + CASE + + 38 WHEN - 92 THEN - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - - CASE + 31 WHEN + ( - + 27 ) THEN NULL WHEN - 54 THEN - - 20 * - COUNT ( * ) END END * - 42 )
----
-28

query I rowsort
SELECT - 91 * + 47
----
-4277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3981
SELECT + COALESCE ( - 23, - + 87 * - 51 * - 79 ) + + + CAST( NULL AS SIGNED ) + 53 + MAX( DISTINCT 67 ) + 54 / 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT + COALESCE ( - 23, - + 87 * - 51 * - 79 ) + + + CAST ( NULL AS INTEGER ) + 53 + MAX ( DISTINCT 67 ) + 54 / 61 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT DISTINCT - - NULLIF ( - 7, 87 ) * - 31 + - 30, - COUNT( * ) AS col1
----
187
-1

skipif mysql # not compatible
query II rowsort label-3982
SELECT DISTINCT - - NULLIF ( - 7, 87 ) * - 31 + - 30, - COUNT ( * ) AS col1
----
187
-1

query I rowsort
SELECT + 58 * + 46 + - - 76 AS col0
----
2744

query I rowsort
SELECT 55 * + 37
----
2035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3985
SELECT ( + - CAST( COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3985
SELECT ( + - CAST ( COUNT ( * ) AS INTEGER ) )
----
-1

query II rowsort
SELECT ALL - ( + 45 ), 72 col0
----
-45
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT ALL + 48 DIV - 73 * 3
----
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL + 48 / - 73 * 3
----
0

query I rowsort
SELECT ALL - 89 + - 9 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT - COUNT( * ) * + 51 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3989
SELECT - COUNT ( * ) * + 51 AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3990
SELECT ALL - - ( 22 ) + - 22 - 1 + CAST( ( + - 70 ) AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL - - ( 22 ) + - 22 - 1 + CAST ( ( + - 70 ) AS INTEGER )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3991
SELECT 24 DIV ( + COUNT( * ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3991
SELECT 24 / ( + COUNT ( * ) ) AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3992
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 22 / + COUNT( * ) + + + 54 - + - 27, 9 + - 49 + - 99 AS col2
----
NULL
-139

skipif mysql # not compatible
query II rowsort label-3992
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 22 / + COUNT ( * ) + + + 54 - + - 27, 9 + - 49 + - 99 AS col2
----
NULL
-139

query I rowsort
SELECT ALL - NULLIF ( + - 53, ( + 98 ) ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT 48 * + 38 * - COUNT( + + 6 ) * COUNT( * ) AS col2
----
-1824

skipif mysql # not compatible
query I rowsort label-3994
SELECT 48 * + 38 * - COUNT ( + + 6 ) * COUNT ( * ) AS col2
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT 83 * - NULLIF ( - COUNT( * ), - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT 83 * - NULLIF ( - COUNT ( * ), - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( - + ( - 28 ) ) AS col2
----
-28

query I rowsort
SELECT DISTINCT - 90 + - 44 + - - 42 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT ALL 43 + + 68 * + + COUNT( + 74 ) * - 31 + - + 73 AS col2
----
-2138

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL 43 + + 68 * + + COUNT ( + 74 ) * - 31 + - + 73 AS col2
----
-2138

query I rowsort
SELECT 73 - - 98
----
171

query I rowsort
SELECT ALL - 99 * 23 * - 42
----
95634

query I rowsort
SELECT DISTINCT - ( 74 ) AS col1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4002
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, - 11
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-4002
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - 11
----
NULL
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL - 72 - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL - 72 - COUNT ( * )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4004
SELECT COUNT( ALL + 23 ) + CASE - 84 WHEN + 2 + + ( - + COUNT( + 97 ) ) THEN + 14 WHEN + - 60 / - - CASE CAST( + 57 AS DECIMAL ) WHEN - - 93 THEN + 73 + + 34 + + CASE + 43 WHEN 92 THEN SUM( + - 4 ) / 83 + - NULLIF ( + 84, + 3 ) END + - - 27 + + 37 + - 69 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT COUNT ( ALL + 23 ) + CASE - 84 WHEN + 2 + + ( - + COUNT ( + 97 ) ) THEN + 14 WHEN + - 60 / - - CASE CAST ( + 57 AS REAL ) WHEN - - 93 THEN + 73 + + 34 + + CASE + 43 WHEN 92 THEN SUM ( + - 4 ) / 83 + - NULLIF ( + 84, + 3 ) END + - - 27 + + 37 + - 69 END THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT NULLIF ( + - 16, + 60 * 14 + + 61 * + COUNT( * ) ) * - 84 + 76 + + 13 * 90 + 12 * - 68 - 15
----
1759

skipif mysql # not compatible
query I rowsort label-4005
SELECT NULLIF ( + - 16, + 60 * 14 + + 61 * + COUNT ( * ) ) * - 84 + 76 + + 13 * 90 + 12 * - 68 - 15
----
1759

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT COUNT( * ) - + - COUNT( * ) * - - 82 - - 80 * 97 - + + 59
----
7784

skipif mysql # not compatible
query I rowsort label-4006
SELECT COUNT ( * ) - + - COUNT ( * ) * - - 82 - - 80 * 97 - + + 59
----
7784

query I rowsort
SELECT 88 * - 61
----
-5368

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT COUNT( * ) + + 69 * - + COUNT( * ) * 51 AS col0
----
-3518

skipif mysql # not compatible
query I rowsort label-4008
SELECT COUNT ( * ) + + 69 * - + COUNT ( * ) * 51 AS col0
----
-3518

onlyif mysql # aggregate syntax: 
query II rowsort label-4009
SELECT ALL COUNT( * ) * - CASE + 72 WHEN COALESCE ( - 36, - 17, 16 * - COUNT( * ) ) THEN - 69 END AS col1, 94
----
NULL
94

skipif mysql # not compatible
query II rowsort label-4009
SELECT ALL COUNT ( * ) * - CASE + 72 WHEN COALESCE ( - 36, - 17, 16 * - COUNT ( * ) ) THEN - 69 END AS col1, 94
----
NULL
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4010
SELECT COUNT( * ) DIV 26 * - 86
----
0

skipif mysql # not compatible
query I rowsort label-4010
SELECT COUNT ( * ) / 26 * - 86
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT ALL + 37 DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + 37 / 94 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4012
SELECT DISTINCT 10, CAST( COUNT( * ) AS SIGNED ) AS col0
----
10
1

skipif mysql # not compatible
query II rowsort label-4012
SELECT DISTINCT 10, CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT 21 + 9 + - COUNT( ALL + 9 )
----
29

skipif mysql # not compatible
query I rowsort label-4013
SELECT 21 + 9 + - COUNT ( ALL + 9 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT DISTINCT + COALESCE ( - 21, - COUNT( * ) + - 49 * 41 - 24 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT + COALESCE ( - 21, - COUNT ( * ) + - 49 * 41 - 24 ) AS col2
----
-21

query I rowsort
SELECT ALL 36 * - 41
----
-1476

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ALL - MIN( 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL - MIN ( 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT + + 29 * + COUNT( * ) * - COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4017
SELECT + + 29 * + COUNT ( * ) * - COUNT ( * ) AS col1
----
-29

query I rowsort
SELECT - + ( 84 ) AS col1
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4019
SELECT - + 65 + - COUNT( * ) + - ( + 92 ) DIV - - 59
----
-67

skipif mysql # not compatible
query I rowsort label-4019
SELECT - + 65 + - COUNT ( * ) + - ( + 92 ) / - - 59
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT DISTINCT 77 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT 77 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL 81 + + - COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL 81 + + - COUNT ( * ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT - ( - + ( - COUNT( - 9 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4022
SELECT - ( - + ( - COUNT ( - 9 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT - COALESCE ( SUM( - - 71 ), - 69 ) * 14 AS col0
----
-994

skipif mysql # not compatible
query I rowsort label-4023
SELECT - COALESCE ( SUM ( - - 71 ), - 69 ) * 14 AS col0
----
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT + 64 - 87 - COUNT( * ) + + + 34 + 77
----
87

skipif mysql # not compatible
query I rowsort label-4024
SELECT + 64 - 87 - COUNT ( * ) + + + 34 + 77
----
87

query II rowsort
SELECT ALL 29, + 32 AS col1
----
29
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4026
SELECT DISTINCT - 40 + 92 DIV 26, - ( COUNT( DISTINCT 54 ) ) AS col0
----
-37
-1

skipif mysql # not compatible
query II rowsort label-4026
SELECT DISTINCT - 40 + 92 / 26, - ( COUNT ( DISTINCT 54 ) ) AS col0
----
-37
-1

query I rowsort
SELECT ALL - - 56 * + + 43
----
2408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT DISTINCT 66 + - + 46 * CAST( 46 AS SIGNED ) AS col0
----
-2050

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT 66 + - + 46 * CAST ( 46 AS INTEGER ) AS col0
----
-2050

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT - + 22 - + COUNT( * ) + - COALESCE ( 66, - 83, + COALESCE ( + 50, - 48, - MIN( ALL - 72 ) ) ) - + 81 * 37 AS col2
----
-3086

skipif mysql # not compatible
query I rowsort label-4029
SELECT - + 22 - + COUNT ( * ) + - COALESCE ( 66, - 83, + COALESCE ( + 50, - 48, - MIN ( ALL - 72 ) ) ) - + 81 * 37 AS col2
----
-3086

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4030
SELECT ALL + CAST( 86 AS SIGNED ) * - - ( - 40 ) + + 7
----
-3433

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL + CAST ( 86 AS INTEGER ) * - - ( - 40 ) + + 7
----
-3433

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT COUNT( DISTINCT - 10 ) * 83 + - - 46 * 78 AS col0
----
3671

skipif mysql # not compatible
query I rowsort label-4031
SELECT COUNT ( DISTINCT - 10 ) * 83 + - - 46 * 78 AS col0
----
3671

query II rowsort
SELECT ( + 43 ) AS col2, - 59 col2
----
43
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4033
SELECT ( COUNT( * ) ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4033
SELECT ( COUNT ( * ) ), COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT + 25 * - - COUNT( * ) * 53 + + NULLIF ( + 12, COUNT( * ) * - COUNT( * ) + - 82 ) AS col2
----
1337

skipif mysql # not compatible
query I rowsort label-4034
SELECT + 25 * - - COUNT ( * ) * 53 + + NULLIF ( + 12, COUNT ( * ) * - COUNT ( * ) + - 82 ) AS col2
----
1337

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4035
SELECT ALL + 31 DIV + - COUNT( * ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL + 31 / + - COUNT ( * ) AS col2
----
-31

query I rowsort
SELECT ALL 43 * 4 - 9
----
163

query I rowsort
SELECT ALL + NULLIF ( - 20, + + 23 ) * - + 96 AS col0
----
1920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT - CAST( NULL AS SIGNED ) + + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT - CAST ( NULL AS INTEGER ) + + 70 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4039
SELECT - CAST( NULL AS DECIMAL ) * + 43 * + NULLIF ( 38, - - 86 + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT - CAST ( NULL AS REAL ) * + 43 * + NULLIF ( 38, - - 86 + 98 )
----
NULL

query I rowsort
SELECT - 95 * ( 27 )
----
-2565

query II rowsort
SELECT ALL + ( - 28 ), - 33 AS col0
----
-28
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT - COUNT( DISTINCT 94 ) * + COUNT( * ) + + 29 + + 50 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4042
SELECT - COUNT ( DISTINCT 94 ) * + COUNT ( * ) + + 29 + + 50 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT + MAX( ALL - 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4043
SELECT + MAX ( ALL - 11 ) AS col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT DISTINCT + CAST( 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT + CAST ( 94 AS INTEGER )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT ALL + ( + + MIN( DISTINCT - - 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL + ( + + MIN ( DISTINCT - - 99 ) )
----
99

query I rowsort
SELECT ALL + 42 * + ( - + 95 ) AS col0
----
-3990

query I rowsort
SELECT - 29 * + + 26 col0
----
-754

query I rowsort
SELECT - - 15 * + + ( 14 ) * - 48 * + + 15 - 29
----
-151229

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT - 13 + + 86 * - - CASE + 60 WHEN - + 73 * + ( + 41 ) THEN NULL ELSE - + 96 END + + + 42 * - NULLIF ( 55, + COUNT( - 74 ) ) col0
----
-10579

skipif mysql # not compatible
query I rowsort label-4049
SELECT - 13 + + 86 * - - CASE + 60 WHEN - + 73 * + ( + 41 ) THEN NULL ELSE - + 96 END + + + 42 * - NULLIF ( 55, + COUNT ( - 74 ) ) col0
----
-10579

onlyif mysql # aggregate syntax: 
query II rowsort label-4050
SELECT ALL SUM( ALL - 41 ) + 24 + + 37, - 3 + - NULLIF ( - - 6, + COUNT( * ) + + - 61 ) AS col1
----
20
-9

skipif mysql # not compatible
query II rowsort label-4050
SELECT ALL SUM ( ALL - 41 ) + 24 + + 37, - 3 + - NULLIF ( - - 6, + COUNT ( * ) + + - 61 ) AS col1
----
20
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT ALL 70 + - - NULLIF ( + - 6, - + COUNT( * ) * + - 91 * - MAX( DISTINCT 62 ) ) - - - 10
----
54

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL 70 + - - NULLIF ( + - 6, - + COUNT ( * ) * + - 91 * - MAX ( DISTINCT 62 ) ) - - - 10
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4052
SELECT ALL + 3 + - 8 col0, 86 DIV + COUNT( DISTINCT - 94 ) AS col1
----
-5
86

skipif mysql # not compatible
query II rowsort label-4052
SELECT ALL + 3 + - 8 col0, 86 / + COUNT ( DISTINCT - 94 ) AS col1
----
-5
86

query I rowsort
SELECT ALL 93 * + ( - 24 )
----
-2232

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT + - COALESCE ( + - 20, + - ( + 98 ) ) + + 14 DIV - + 81 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4054
SELECT + - COALESCE ( + - 20, + - ( + 98 ) ) + + 14 / - + 81 AS col2
----
20

query I rowsort
SELECT ALL 36 * - 76 AS col1
----
-2736

query II rowsort
SELECT DISTINCT 54 * 44 AS col1, 19
----
2376
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT - COUNT( * ) + 25 + 54
----
78

skipif mysql # not compatible
query I rowsort label-4057
SELECT - COUNT ( * ) + 25 + 54
----
78

query I rowsort
SELECT DISTINCT NULLIF ( - 56, + 15 * + 39 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT DISTINCT + COUNT( * ) * - 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT + COUNT ( * ) * - 15 AS col0
----
-15

query I rowsort
SELECT - 78 * + - 35 AS col2
----
2730

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT - 95 DIV - 37
----
2

skipif mysql # not compatible
query I rowsort label-4061
SELECT - 95 / - 37
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT + CAST( NULL AS SIGNED ) * - + 83 * + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT + CAST ( NULL AS INTEGER ) * - + 83 * + + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ALL + MIN( 57 ) col0
----
57

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL + MIN ( 57 ) col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4064
SELECT ALL + 82 DIV 98 * - - 81
----
0

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL + 82 / 98 * - - 81
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4065
SELECT 23 DIV 89 * 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4065
SELECT 23 / 89 * 22 AS col2
----
0

query I rowsort
SELECT ALL - CASE + + 32 WHEN - 12 THEN + 55 ELSE NULL END
----
NULL

query I rowsort
SELECT 7 + 69 * + 5
----
352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4068
SELECT DISTINCT + COUNT( * ) + 2 DIV - 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT + COUNT ( * ) + 2 / - 53 AS col1
----
1

query I rowsort
SELECT 52 - 71
----
-19

query I rowsort
SELECT DISTINCT + 93 * 59 AS col0
----
5487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT DISTINCT + 20 + CAST( 4 AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT + 20 + CAST ( 4 AS INTEGER ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT DISTINCT - CASE 14 WHEN COUNT( * ) - - 98 THEN + SUM( NULLIF ( 91, - COALESCE ( - 1, + 64 + + 22 / 40 ) ) ) WHEN + 27 THEN 15 ELSE NULL END + + 25 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT - CASE 14 WHEN COUNT ( * ) - - 98 THEN + SUM ( NULLIF ( 91, - COALESCE ( - 1, + 64 + + 22 / 40 ) ) ) WHEN + 27 THEN 15 ELSE NULL END + + 25 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT 48 * MAX( + 61 )
----
2928

skipif mysql # not compatible
query I rowsort label-4073
SELECT 48 * MAX ( + 61 )
----
2928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT ALL + COUNT( * ) + 17 DIV 80 col1
----
1

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + COUNT ( * ) + 17 / 80 col1
----
1

query I rowsort
SELECT DISTINCT + ( 85 ) * 63
----
5355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT ALL 27 + CAST( 80 AS SIGNED ) AS col0
----
107

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL 27 + CAST ( 80 AS INTEGER ) AS col0
----
107

query I rowsort
SELECT 38 + 13 AS col0
----
51

query I rowsort
SELECT ALL - 3 - + 45 AS col0
----
-48

query I rowsort
SELECT 64 - - 19 col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT 85 * COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT 85 * COUNT ( * ) AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT DISTINCT - 58 DIV 28 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - 58 / 28 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT ALL + 4 - 69 DIV + 90 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL + 4 - 69 / + 90 AS col1
----
4

query I rowsort
SELECT ALL 20 * 89
----
1780

query I rowsort
SELECT 83 + - 70 col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL - 40 * - COUNT( + 43 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL - 40 * - COUNT ( + 43 ) AS col2
----
40

query I rowsort
SELECT DISTINCT - 31 * 55
----
-1705

query I rowsort
SELECT DISTINCT 25 * - 68 AS col1
----
-1700

query I rowsort
SELECT 8 - - 79 * - 3
----
-229

query I rowsort
SELECT ( - 44 ) * - 94
----
4136

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT SUM( 52 ) + 77
----
129

skipif mysql # not compatible
query I rowsort label-4090
SELECT SUM ( 52 ) + 77
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4091
SELECT - NULLIF ( - 77, 23 DIV 6 ) DIV + COUNT( * ) - + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-4091
SELECT - NULLIF ( - 77, 23 / 6 ) / + COUNT ( * ) - + COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT CASE + 61 WHEN - 84 * - CASE + 79 WHEN COUNT( * ) THEN NULL WHEN 99 THEN - SUM( DISTINCT + ( 35 ) ) * SUM( DISTINCT + 5 * 31 ) ELSE - COUNT( * ) - COUNT( * ) END + 25 THEN - SUM( ALL + 21 ) * 60 ELSE NULL END * 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT CASE + 61 WHEN - 84 * - CASE + 79 WHEN COUNT ( * ) THEN NULL WHEN 99 THEN - SUM ( DISTINCT + ( 35 ) ) * SUM ( DISTINCT + 5 * 31 ) ELSE - COUNT ( * ) - COUNT ( * ) END + 25 THEN - SUM ( ALL + 21 ) * 60 ELSE NULL END * 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ( + COUNT( * ) ) * + 65 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4093
SELECT ( + COUNT ( * ) ) * + 65 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4094
SELECT - 78 DIV CAST( 51 AS SIGNED ) + + 29 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4094
SELECT - 78 / CAST ( 51 AS INTEGER ) + + 29 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL COUNT( * ) + MIN( DISTINCT 96 + - 54 ) * 42 AS col1
----
1765

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL COUNT ( * ) + MIN ( DISTINCT 96 + - 54 ) * 42 AS col1
----
1765

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT COUNT( * ) + + 93
----
94

skipif mysql # not compatible
query I rowsort label-4096
SELECT COUNT ( * ) + + 93
----
94

query I rowsort
SELECT DISTINCT 35 + 71 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL 11 * COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL 11 * COUNT ( * ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL MIN( - 7 ) + ( 58 )
----
51

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL MIN ( - 7 ) + ( 58 )
----
51

query I rowsort
SELECT 17 * + 53 AS col2
----
901

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT + COUNT( * ) * 62 + - 99
----
-37

skipif mysql # not compatible
query I rowsort label-4101
SELECT + COUNT ( * ) * 62 + - 99
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4102
SELECT ALL + 47 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL + 47 * CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - 69 + - 19 * 5 col1
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT MAX( 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4104
SELECT MAX ( 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL - NULLIF ( - 91, MAX( - COALESCE ( 93, - 87 / 30 ) ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - NULLIF ( - 91, MAX ( - COALESCE ( 93, - 87 / 30 ) ) ) AS col0
----
91

query I rowsort
SELECT DISTINCT 87 + - 66 * 47
----
-3015

query I rowsort
SELECT 75 * 24 + - 25 * 2 AS col0
----
1750

query I rowsort
SELECT + NULLIF ( 74, + 44 )
----
74

query I rowsort
SELECT ALL - 11 + + 35
----
24

query I rowsort
SELECT DISTINCT - + COALESCE ( - ( + 85 ), - 52 + NULLIF ( + 13, + ( + 34 ) ) ) col0
----
85

query I rowsort
SELECT - 58 * 53
----
-3074

query I rowsort
SELECT 86 + 67
----
153

query I rowsort
SELECT - - NULLIF ( - 76, 12 )
----
-76

query I rowsort
SELECT 76 + 38
----
114

query I rowsort
SELECT DISTINCT + 29 - 28 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4116
SELECT + COALESCE ( + 90, - COUNT( * ) * - 41, + 56 DIV NULLIF ( - 80, - 5 * NULLIF ( 93 * - ( + 63 ), + 37 DIV - 66 ) ) + - COUNT( * ) * + 96 )
----
90

skipif mysql # not compatible
query I rowsort label-4116
SELECT + COALESCE ( + 90, - COUNT ( * ) * - 41, + 56 / NULLIF ( - 80, - 5 * NULLIF ( 93 * - ( + 63 ), + 37 / - 66 ) ) + - COUNT ( * ) * + 96 )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4117
SELECT ( COALESCE ( - 87, 23 + ( SUM( + NULLIF ( - 15, 88 ) ) ) ) ) * ( 60 DIV - 82 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4117
SELECT ( COALESCE ( - 87, 23 + ( SUM ( + NULLIF ( - 15, 88 ) ) ) ) ) * ( 60 / - 82 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT DISTINCT - 68 - - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT - 68 - - COUNT ( * )
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4119
SELECT DISTINCT + + 32 - + 27 DIV - 44 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT + + 32 - + 27 / - 44 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL MAX( DISTINCT - 59 ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL MAX ( DISTINCT - 59 ) col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT COUNT( * ) + - ( 86 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4121
SELECT COUNT ( * ) + - ( 86 ) AS col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-4122
SELECT 11 DIV + + 95
----
0

skipif mysql # not compatible
query I rowsort label-4122
SELECT 11 / + + 95
----
0

query I rowsort
SELECT 82 * + + ( + 65 )
----
5330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT 18 + + CAST( 19 AS SIGNED ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4124
SELECT 18 + + CAST ( 19 AS INTEGER ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT ALL CASE + + 20 WHEN ( - 39 ) + 60 THEN + COALESCE ( 62, 45, + 27 ) * 70 + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL CASE + + 20 WHEN ( - 39 ) + 60 THEN + COALESCE ( 62, 45, + 27 ) * 70 + - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4126
SELECT NULLIF ( + - ( + ( 5 ) ), - 79 * CAST( 76 * SUM( 60 ) AS SIGNED ) ) + 16
----
11

skipif mysql # not compatible
query I rowsort label-4126
SELECT NULLIF ( + - ( + ( 5 ) ), - 79 * CAST ( 76 * SUM ( 60 ) AS INTEGER ) ) + 16
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT 1 DIV - ( 12 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4127
SELECT 1 / - ( 12 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4128
SELECT ALL 30 + + 80 DIV + ( - 45 )
----
29

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL 30 + + 80 / + ( - 45 )
----
29

query I rowsort
SELECT 8 * + 22 * - 17 AS col0
----
-2992

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT ALL - 10 DIV 52 * - 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - 10 / 52 * - 52 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT ALL MIN( 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL MIN ( 16 )
----
16

query I rowsort
SELECT DISTINCT + COALESCE ( + + 90, 20, 88 ) * + 54 + 52
----
4912

query I rowsort
SELECT DISTINCT - 79 * + 30 + ( 98 + NULLIF ( 62, 34 + 45 ) * 38 ) AS col1
----
84

query I rowsort
SELECT ALL + 96 * + 22 + 46
----
2158

query I rowsort
SELECT ALL + 46 * 10 + 13
----
473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4136
SELECT - ( + - 85 ) * - 89 - 92 DIV CAST( - COUNT( * ) * + CAST( 96 AS SIGNED ) AS SIGNED ) AS col2
----
-7565

skipif mysql # not compatible
query I rowsort label-4136
SELECT - ( + - 85 ) * - 89 - 92 / CAST ( - COUNT ( * ) * + CAST ( 96 AS INTEGER ) AS INTEGER ) AS col2
----
-7565

onlyif mysql # DIV for integer division: 
query I rowsort label-4137
SELECT - 53 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-4137
SELECT - 53 / - 90
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4138
SELECT + 58 DIV + + 53 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4138
SELECT + 58 / + + 53 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL + COUNT( * ) * 64 + + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + COUNT ( * ) * 64 + + COUNT ( * ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4140
SELECT + SUM( + 7 ) + ( + COUNT( * ) + 86 / CASE - CASE 35 WHEN - 52 + - CAST( + 0 + 83 AS SIGNED ) THEN + 60 + AVG ( DISTINCT - 27 ) WHEN + ( - 71 ) THEN + 36 * 54 END WHEN 26 + 21 * - 69 THEN + ( + 27 ) WHEN 87 + + COUNT( * ) THEN 43 * 26 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT + SUM ( + 7 ) + ( + COUNT ( * ) + 86 / CASE - CASE 35 WHEN - 52 + - CAST ( + 0 + 83 AS INTEGER ) THEN + 60 + AVG ( DISTINCT - 27 ) WHEN + ( - 71 ) THEN + 36 * 54 END WHEN 26 + 21 * - 69 THEN + ( + 27 ) WHEN 87 + + COUNT ( * ) THEN 43 * 26 END ) col0
----
NULL

query I rowsort
SELECT + 35 * 27 AS col2
----
945

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT + 6 - - + MAX( DISTINCT 89 )
----
95

skipif mysql # not compatible
query I rowsort label-4142
SELECT + 6 - - + MAX ( DISTINCT 89 )
----
95

query I rowsort
SELECT + 14 * - 70 - 85
----
-1065

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT ALL 59 * + CAST( NULL AS SIGNED ) + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL 59 * + CAST ( NULL AS INTEGER ) + 9
----
NULL

query I rowsort
SELECT + 72 + + 17 + + 70 col0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT + - MIN( ALL + 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-4146
SELECT + - MIN ( ALL + 69 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT + 86 + - 4 + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4147
SELECT + 86 + - 4 + + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT + - 80 * CASE - 99 WHEN MIN( DISTINCT + ( - 17 ) ) THEN CASE CASE - 94 WHEN + 49 THEN - 11 ELSE COUNT( * ) END WHEN + COUNT( * ) * - 56 THEN COALESCE ( 2, SUM( 16 ) ) / CASE 86 WHEN - 66 + + ( 35 - 52 ) * - 70 THEN - 78 END ELSE + 58 + + COUNT( * ) END * 95 WHEN 26 + + 0 THEN NULL ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT + - 80 * CASE - 99 WHEN MIN ( DISTINCT + ( - 17 ) ) THEN CASE CASE - 94 WHEN + 49 THEN - 11 ELSE COUNT ( * ) END WHEN + COUNT ( * ) * - 56 THEN COALESCE ( 2, SUM ( 16 ) ) / CASE 86 WHEN - 66 + + ( 35 - 52 ) * - 70 THEN - 78 END ELSE + 58 + + COUNT ( * ) END * 95 WHEN 26 + + 0 THEN NULL ELSE NULL END + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 74 * + 7 * 28
----
-14504

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT - COUNT( 5 ) * - 34 + 94 * + 87
----
8212

skipif mysql # not compatible
query I rowsort label-4150
SELECT - COUNT ( 5 ) * - 34 + 94 * + 87
----
8212

query I rowsort
SELECT + - 19 * ( - 75 ) * - 95
----
-135375

query I rowsort
SELECT - 58 * - 91
----
5278

query I rowsort
SELECT + 90 + - 96 AS col2
----
-6

query II rowsort
SELECT 19 AS col0, + 20 AS col2
----
19
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4155
SELECT + CASE ( + 82 ) WHEN 10 - - ( + NULLIF ( CAST( NULL AS SIGNED ), + 8 * 12 ) + - COALESCE ( 34, 95, CASE - 34 WHEN 98 THEN - 58 * ( - 31 ) + - 22 * 16 END DIV + COUNT( DISTINCT 33 ) ) DIV + 3 ) * + 19 THEN 95 ELSE 68 * 29 END DIV COUNT( * ) AS col0
----
1972

skipif mysql # not compatible
query I rowsort label-4155
SELECT + CASE ( + 82 ) WHEN 10 - - ( + NULLIF ( CAST ( NULL AS INTEGER ), + 8 * 12 ) + - COALESCE ( 34, 95, CASE - 34 WHEN 98 THEN - 58 * ( - 31 ) + - 22 * 16 END / + COUNT ( DISTINCT 33 ) ) / + 3 ) * + 19 THEN 95 ELSE 68 * 29 END / COUNT ( * ) AS col0
----
1972

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL COALESCE ( - 5, + - COUNT( * ), - CASE + 16 WHEN + 70 THEN NULL WHEN 8 THEN - 27 END * 70, + COUNT( * ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL COALESCE ( - 5, + - COUNT ( * ), - CASE + 16 WHEN + 70 THEN NULL WHEN 8 THEN - 27 END * 70, + COUNT ( * ) ) AS col2
----
-5

query I rowsort
SELECT + 43 * + 12
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT - 49 * - CASE + + 6 WHEN - ( - 82 ) * COUNT( * ) THEN 65 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT - 49 * - CASE + + 6 WHEN - ( - 82 ) * COUNT ( * ) THEN 65 END AS col2
----
NULL

query I rowsort
SELECT - 60 - + - 1
----
-59

query I rowsort
SELECT ALL + 50 + + + 38 AS col0
----
88

query I rowsort
SELECT - 36 - 12 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL COUNT( * ) + - 87 * + 98
----
-8525

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL COUNT ( * ) + - 87 * + 98
----
-8525

query I rowsort
SELECT ALL 1 * + 87
----
87

query I rowsort
SELECT ALL - 78 + - + 71
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL ( + SUM( DISTINCT + - 64 ) ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL ( + SUM ( DISTINCT + - 64 ) ) AS col2
----
-64

query I rowsort
SELECT ALL + ( - + 98 ) + + - 40
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT + CAST( NULL AS SIGNED ) + - 27 * 38 - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT + CAST ( NULL AS INTEGER ) + - 27 * 38 - 38 AS col0
----
NULL

query II rowsort
SELECT 32 AS col2, COALESCE ( - 70, 9, - 96 )
----
32
-70

query I rowsort
SELECT - 82 - 58
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4170
SELECT + SUM( - ( CAST( NULL AS SIGNED ) ) ) / - 11 - + NULLIF ( + 34, + 75 ) * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT + SUM ( - ( CAST ( NULL AS INTEGER ) ) ) / - 11 - + NULLIF ( + 34, + 75 ) * 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT + COUNT( * ) + 28
----
29

skipif mysql # not compatible
query I rowsort label-4171
SELECT + COUNT ( * ) + 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT DISTINCT + SUM( + ( + 37 ) )
----
37

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT + SUM ( + ( + 37 ) )
----
37

query I rowsort
SELECT ALL + 64 * + 75 AS col1
----
4800

query I rowsort
SELECT - + 59 * - 72 * - ( 8 ) AS col0
----
-33984

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT DISTINCT + - COALESCE ( - COUNT( * ), - - 84 - 2 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT + - COALESCE ( - COUNT ( * ), - - 84 - 2 ) * COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4176
SELECT ALL + + 87 AS col0, CAST( CAST( 40 AS SIGNED ) AS SIGNED ) - - 83
----
87
123

skipif mysql # not compatible
query II rowsort label-4176
SELECT ALL + + 87 AS col0, CAST ( CAST ( 40 AS INTEGER ) AS INTEGER ) - - 83
----
87
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT CASE - 30 WHEN MAX( + ( + 80 ) ) THEN + 77 WHEN COUNT( * ) + 67 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT CASE - 30 WHEN MAX ( + ( + 80 ) ) THEN + 77 WHEN COUNT ( * ) + 67 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + - 11 * - 85 + - ( 41 ) col1
----
894

query I rowsort
SELECT - + ( - + 18 ) * - 22 + - 93
----
-489

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT 34 * - NULLIF ( + + 38, - 68 + - 95 * - 13 ) + - COUNT( * ) AS col1
----
-1293

skipif mysql # not compatible
query I rowsort label-4180
SELECT 34 * - NULLIF ( + + 38, - 68 + - 95 * - 13 ) + - COUNT ( * ) AS col1
----
-1293

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4181
SELECT - 93 * 5 * + 72 * NULLIF ( 32, COALESCE ( 75, 60 * CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE + 74 / COUNT( * ) END, 13 + COUNT( * ) ) + 44 ) + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT - 93 * 5 * + 72 * NULLIF ( 32, COALESCE ( 75, 60 * CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE + 74 / COUNT ( * ) END, 13 + COUNT ( * ) ) + 44 ) + CAST ( NULL AS REAL ) col1
----
NULL

query II rowsort
SELECT + + 59 AS col0, + 52 AS col1
----
59
52

query I rowsort
SELECT DISTINCT - + 37 * - 75 * + - ( + ( - ( 24 ) ) )
----
66600

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT + - 32 + COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4184
SELECT + - 32 + COUNT ( * ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4185
SELECT DISTINCT + + CASE + 72 WHEN - 56 THEN ( - COUNT( + CAST( NULL AS SIGNED ) ) ) * COUNT( * ) WHEN 9 * COUNT( * ) THEN + 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT + + CASE + 72 WHEN - 56 THEN ( - COUNT ( + CAST ( NULL AS INTEGER ) ) ) * COUNT ( * ) WHEN 9 * COUNT ( * ) THEN + 30 ELSE NULL END
----
NULL

query II rowsort
SELECT + 5 AS col0, 9 * + 94 * + ( - 94 )
----
5
-79524

query II rowsort
SELECT ALL + + 73 AS col1, 34 AS col2
----
73
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4188
SELECT - 39 AS col2, CAST( NULL AS SIGNED ) AS col1
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-4188
SELECT - 39 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
-39
NULL

query I rowsort
SELECT - + CASE + 90 WHEN + + ( 4 ) * + 9 THEN + 35 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4190
SELECT + + 7 * + 1 DIV 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4190
SELECT + + 7 * + 1 / 68 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4191
SELECT + 65 + + - 82 - 19 * MAX( ALL CAST( - 59 AS SIGNED ) ) AS col0
----
1104

skipif mysql # not compatible
query I rowsort label-4191
SELECT + 65 + + - 82 - 19 * MAX ( ALL CAST ( - 59 AS INTEGER ) ) AS col0
----
1104

query I rowsort
SELECT DISTINCT 35 * + 78
----
2730

query I rowsort
SELECT ALL + NULLIF ( 10, + 57 + 66 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT SUM( ALL 87 )
----
87

skipif mysql # not compatible
query I rowsort label-4194
SELECT SUM ( ALL 87 )
----
87

query I rowsort
SELECT - 49 + + 11 + + + ( + 4 ) AS col2
----
-34

query I rowsort
SELECT + ( - 60 ) + + 94
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4197
SELECT DISTINCT 66 * 88 AS col0, + MIN( + - 70 ) AS col1
----
5808
-70

skipif mysql # not compatible
query II rowsort label-4197
SELECT DISTINCT 66 * 88 AS col0, + MIN ( + - 70 ) AS col1
----
5808
-70

query I rowsort
SELECT 8 + + - 20 + 18 * + - 46 AS col2
----
-840

query I rowsort
SELECT DISTINCT 60 + + 60 AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT ALL COUNT( * ) + 44 - - - 97 * + CASE ( + COUNT( * ) ) WHEN - 39 THEN - 23 * + 46 WHEN - ( COUNT( * ) ) THEN 82 + - 10 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL COUNT ( * ) + 44 - - - 97 * + CASE ( + COUNT ( * ) ) WHEN - 39 THEN - 23 * + 46 WHEN - ( COUNT ( * ) ) THEN 82 + - 10 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT DISTINCT + COUNT( * ) + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT + COUNT ( * ) + - 19
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT DISTINCT CASE - + 11 WHEN + + 97 / - 90 * - 80 THEN + 8 WHEN - COUNT( * ) * 33 THEN 42 ELSE + COUNT( ALL - 53 ) + ( 28 + + CASE ( 29 ) WHEN 0 + - MAX( 55 ) / NULLIF ( + ( 49 ), - ( - 62 ) ) THEN + 54 * - CAST( COALESCE ( 40, 21 * 97 + COUNT( * ) * - NULLIF ( - 47 * - 57, - ( 55 ) ) ) / + 73 AS SIGNED ) + + 39 * 19 WHEN - 61 + + 65 * + 77 THEN NULL END ) END + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT CASE - + 11 WHEN + + 97 / - 90 * - 80 THEN + 8 WHEN - COUNT ( * ) * 33 THEN 42 ELSE + COUNT ( ALL - 53 ) + ( 28 + + CASE ( 29 ) WHEN 0 + - MAX ( 55 ) / NULLIF ( + ( 49 ), - ( - 62 ) ) THEN + 54 * - CAST ( COALESCE ( 40, 21 * 97 + COUNT ( * ) * - NULLIF ( - 47 * - 57, - ( 55 ) ) ) / + 73 AS INTEGER ) + + 39 * 19 WHEN - 61 + + 65 * + 77 THEN NULL END ) END + - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ( - 2 ) * + MIN( ALL - COALESCE ( 19, + 13 ) ) * + COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4203
SELECT ( - 2 ) * + MIN ( ALL - COALESCE ( 19, + 13 ) ) * + COUNT ( * ) AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4204
SELECT ( - 85 ) DIV + 81
----
-1

skipif mysql # not compatible
query I rowsort label-4204
SELECT ( - 85 ) / + 81
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4205
SELECT 43 + + 46 DIV - - 58 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4205
SELECT 43 + + 46 / - - 58 AS col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT DISTINCT + 38 * - + 71 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT + 38 * - + 71 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4207
SELECT DISTINCT - CAST( + - 63 AS SIGNED ) * MAX( 55 ) AS col2
----
3465

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - CAST ( + - 63 AS INTEGER ) * MAX ( 55 ) AS col2
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL + COUNT( * ) - - 29 * 93 * 90 + + 87 * + 78
----
249517

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + COUNT ( * ) - - 29 * 93 * 90 + + 87 * + 78
----
249517

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT 42 * 57 * + - COUNT( * )
----
-2394

skipif mysql # not compatible
query I rowsort label-4209
SELECT 42 * 57 * + - COUNT ( * )
----
-2394

query I rowsort
SELECT ALL + 47 * + 24 AS col2
----
1128

query I rowsort
SELECT DISTINCT COALESCE ( - 44, + - 30 * + 44 ) * - 79 AS col1
----
3476

query I rowsort
SELECT ALL 5 - 27 + 15 AS col0
----
-7

query I rowsort
SELECT ALL + - 39 * - 8 AS col1
----
312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4214
SELECT CAST( CASE + 38 WHEN + 8 THEN COUNT( * ) + MIN( 99 ) WHEN - 55 THEN + 57 / 23 END AS SIGNED ) - CAST( 18 AS SIGNED ) * 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT CAST ( CASE + 38 WHEN + 8 THEN COUNT ( * ) + MIN ( 99 ) WHEN - 55 THEN + 57 / 23 END AS INTEGER ) - CAST ( 18 AS INTEGER ) * 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4215
SELECT - 11 * 95, 20 + - CASE CASE 81 WHEN 32 * - COUNT( * ) THEN + 16 + 2 * - 42 ELSE NULL END WHEN - 11 THEN 25 / + COUNT( * ) END * - 45 AS col1
----
-1045
NULL

skipif mysql # not compatible
query II rowsort label-4215
SELECT - 11 * 95, 20 + - CASE CASE 81 WHEN 32 * - COUNT ( * ) THEN + 16 + 2 * - 42 ELSE NULL END WHEN - 11 THEN 25 / + COUNT ( * ) END * - 45 AS col1
----
-1045
NULL

query I rowsort
SELECT 44 * 14 - + - 88
----
704

query I rowsort
SELECT DISTINCT - ( + ( + 26 ) )
----
-26

query I rowsort
SELECT 28 + + 96 - 12 * - 2 + - 85
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT DISTINCT + 41 DIV - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT + 41 / - 53 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL - - COALESCE ( COUNT( * ), ( + 18 ) + + NULLIF ( + 83, + 98 - COALESCE ( - 92, - 57 * 17, COUNT( * ) ) ) * 90 )
----
1

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL - - COALESCE ( COUNT ( * ), ( + 18 ) + + NULLIF ( + 83, + 98 - COALESCE ( - 92, - 57 * 17, COUNT ( * ) ) ) * 90 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4221
SELECT DISTINCT - SUM( - 13 ) col1, - 76 * - + 48 * + 71 AS col0
----
13
259008

skipif mysql # not compatible
query II rowsort label-4221
SELECT DISTINCT - SUM ( - 13 ) col1, - 76 * - + 48 * + 71 AS col0
----
13
259008

query I rowsort
SELECT + 4 - 56 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL - + CASE + 80 WHEN + - 31 THEN NULL WHEN + 15 THEN ( + CASE 98 WHEN SUM( - ( + 17 ) ) THEN NULL ELSE + 32 * 73 END ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL - + CASE + 80 WHEN + - 31 THEN NULL WHEN + 15 THEN ( + CASE 98 WHEN SUM ( - ( + 17 ) ) THEN NULL ELSE + 32 * 73 END ) END AS col2
----
NULL

query I rowsort
SELECT ALL + 48 + 64 + - 12 * - 60 * - 69
----
-49568

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT + 70 + + - 96 + NULLIF ( - ( + 80 ), - 86 + MIN( ALL - 72 ) ) + 70 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4225
SELECT + 70 + + - 96 + NULLIF ( - ( + 80 ), - 86 + MIN ( ALL - 72 ) ) + 70 AS col2
----
-36

query I rowsort
SELECT ALL + - 46 * + 84 AS col0
----
-3864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4227
SELECT - 84 + - - 15 + 6 * 5 DIV COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4227
SELECT - 84 + - - 15 + 6 * 5 / COUNT ( * ) AS col2
----
-39

query I rowsort
SELECT ALL + 56 * + 99 + + + 67 col1
----
5611

query I rowsort
SELECT - 93 * + + COALESCE ( + 28, + 3, 88 + - 6 )
----
-2604

query I rowsort
SELECT + 63 * + 73 AS col1
----
4599

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT + 40 + + COALESCE ( 77, - COUNT( * ) ) * NULLIF ( 95, 53 ) AS col0
----
7355

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT + 40 + + COALESCE ( 77, - COUNT ( * ) ) * NULLIF ( 95, 53 ) AS col0
----
7355

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT 27 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-4232
SELECT 27 / + 43
----
0

query I rowsort
SELECT ALL 55 + 68 * + 97 * - - 61 AS col2
----
402411

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT DISTINCT - MAX( - - 89 ) + - 91 AS col0
----
-180

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - MAX ( - - 89 ) + - 91 AS col0
----
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-4235
SELECT ALL 17 AS col2, 42 + + 14 + + - 8 + SUM( 57 ) * + NULLIF ( 93, COUNT( * ) - 67 )
----
17
5349

skipif mysql # not compatible
query II rowsort label-4235
SELECT ALL 17 AS col2, 42 + + 14 + + - 8 + SUM ( 57 ) * + NULLIF ( 93, COUNT ( * ) - 67 )
----
17
5349

query I rowsort
SELECT ALL - 51 + 14
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT ALL + CASE 67 WHEN COUNT( * ) * - 7 * 66 * - 36 THEN 85 WHEN 72 THEN NULL ELSE NULL END + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL + CASE 67 WHEN COUNT ( * ) * - 7 * 66 * - 36 THEN 85 WHEN 72 THEN NULL ELSE NULL END + 81 AS col2
----
NULL

query I rowsort
SELECT 98 + + 23 AS col2
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4239
SELECT ALL ( + + 22 ) * 89 DIV - - COALESCE ( + COUNT( * ), 5 ) AS col2
----
1958

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL ( + + 22 ) * 89 / - - COALESCE ( + COUNT ( * ), 5 ) AS col2
----
1958

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT COALESCE ( + - 71, - NULLIF ( - COUNT( * ), + + COUNT( * ) ) * 50 + 93, COUNT( * ) ) + - 40 * + 96 AS col1
----
-3911

skipif mysql # not compatible
query I rowsort label-4240
SELECT COALESCE ( + - 71, - NULLIF ( - COUNT ( * ), + + COUNT ( * ) ) * 50 + 93, COUNT ( * ) ) + - 40 * + 96 AS col1
----
-3911

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4241
SELECT ALL CAST( + - 29 AS SIGNED ) - - 13 col0, ( - - 26 ) + 26 * + 65
----
-16
1716

skipif mysql # not compatible
query II rowsort label-4241
SELECT ALL CAST ( + - 29 AS INTEGER ) - - 13 col0, ( - - 26 ) + 26 * + 65
----
-16
1716

query I rowsort
SELECT 33 - + 69
----
-36

query I rowsort
SELECT ( 77 ) * + + NULLIF ( + + 4, + 22 ) * 69
----
21252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT ALL ( CAST( NULL AS SIGNED ) ) * - 74 + + ( 99 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * - 74 + + ( 99 ) AS col2
----
NULL

query II rowsort
SELECT ALL 48, ( + 89 ) AS col0
----
48
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4246
SELECT 61 * + + 84 * COUNT( * ) * COALESCE ( + ( + COUNT( DISTINCT + 50 ) ), - 96 DIV 8, COUNT( * ) ) * + 36 AS col0
----
184464

skipif mysql # not compatible
query I rowsort label-4246
SELECT 61 * + + 84 * COUNT ( * ) * COALESCE ( + ( + COUNT ( DISTINCT + 50 ) ), - 96 / 8, COUNT ( * ) ) * + 36 AS col0
----
184464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4247
SELECT 32 + + CAST( NULL AS SIGNED ) / - COUNT( * ) / - 7 * + COALESCE ( ( + CAST( NULL AS SIGNED ) ), COUNT( ALL 87 ) + - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT 32 + + CAST ( NULL AS INTEGER ) / - COUNT ( * ) / - 7 * + COALESCE ( ( + CAST ( NULL AS INTEGER ) ), COUNT ( ALL 87 ) + - 29 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4248
SELECT 76 + - 96 + + 30 * - CASE COUNT( * ) WHEN ( + 57 ) THEN + 76 ELSE - 82 END * + 67 + + 76 * + CAST( + 91 AS SIGNED ) col1
----
171716

skipif mysql # not compatible
query I rowsort label-4248
SELECT 76 + - 96 + + 30 * - CASE COUNT ( * ) WHEN ( + 57 ) THEN + 76 ELSE - 82 END * + 67 + + 76 * + CAST ( + 91 AS INTEGER ) col1
----
171716

onlyif mysql # DIV for integer division: 
query I rowsort label-4249
SELECT ALL 83 DIV 23
----
3

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL 83 / 23
----
3

query I rowsort
SELECT 98 * 94 * 99 + + 60 AS col1
----
912048

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT ( 34 ) DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-4251
SELECT ( 34 ) / - 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4252
SELECT DISTINCT - 73 col1, 70 + 15 * - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * 74 AS col0
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-4252
SELECT DISTINCT - 73 col1, 70 + 15 * - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * 74 AS col0
----
-73
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT ALL - - COUNT( * ), - 49 - - ( + 1 ) AS col2
----
1
-48

skipif mysql # not compatible
query II rowsort label-4253
SELECT ALL - - COUNT ( * ), - 49 - - ( + 1 ) AS col2
----
1
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT DISTINCT 82 * COUNT( * ) + - - 16 + - 81
----
17

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT 82 * COUNT ( * ) + - - 16 + - 81
----
17

query I rowsort
SELECT ALL 72 * - 47 AS col1
----
-3384

query I rowsort
SELECT - 40 * - - 99 + + 58
----
-3902

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT - COUNT( + 6 ) * + 59
----
-59

skipif mysql # not compatible
query I rowsort label-4257
SELECT - COUNT ( + 6 ) * + 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT - COUNT( * ) * + - 76 + 57 + 25 * - + 45 * + 92
----
-103367

skipif mysql # not compatible
query I rowsort label-4258
SELECT - COUNT ( * ) * + - 76 + 57 + 25 * - + 45 * + 92
----
-103367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT + + COALESCE ( CAST( + - 93 AS SIGNED ), 40, - + 11 + 94 ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-4259
SELECT + + COALESCE ( CAST ( + - 93 AS INTEGER ), 40, - + 11 + 94 ) col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT ( - COALESCE ( CAST( NULL AS SIGNED ), + - 24 ) ) * 14 AS col2
----
336

skipif mysql # not compatible
query I rowsort label-4260
SELECT ( - COALESCE ( CAST ( NULL AS INTEGER ), + - 24 ) ) * 14 AS col2
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT DISTINCT + ( + + 50 ) * 45 + - ( - COUNT( * ) ) + 90 AS col1
----
2341

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT + ( + + 50 ) * 45 + - ( - COUNT ( * ) ) + 90 AS col1
----
2341

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT + COALESCE ( - MAX( - 57 ), + 99 )
----
57

skipif mysql # not compatible
query I rowsort label-4262
SELECT + COALESCE ( - MAX ( - 57 ), + 99 )
----
57

query I rowsort
SELECT ALL - + 44 + + + 7 AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4264
SELECT DISTINCT + 65, + CAST( 60 AS SIGNED ) + + MIN( + + 85 ) * + 44 col0
----
65
3800

skipif mysql # not compatible
query II rowsort label-4264
SELECT DISTINCT + 65, + CAST ( 60 AS INTEGER ) + + MIN ( + + 85 ) * + 44 col0
----
65
3800

query I rowsort
SELECT DISTINCT - 82 + + 28 AS col2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4266
SELECT - 21 * + COUNT( * ) + + - COUNT( - 42 ) * 10 DIV + 81 + 10
----
-11

skipif mysql # not compatible
query I rowsort label-4266
SELECT - 21 * + COUNT ( * ) + + - COUNT ( - 42 ) * 10 / + 81 + 10
----
-11

query I rowsort
SELECT ALL + 19 + 17
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL - CASE - 73 WHEN 69 THEN 53 + ( + + 10 ) WHEN + COUNT( * ) THEN - ( - 53 ) * - 41 + + 25 WHEN + ( 21 ) THEN 43 + + 4 ELSE + 30 END + - 23 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - CASE - 73 WHEN 69 THEN 53 + ( + + 10 ) WHEN + COUNT ( * ) THEN - ( - 53 ) * - 41 + + 25 WHEN + ( 21 ) THEN 43 + + 4 ELSE + 30 END + - 23 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT DISTINCT + CASE - + NULLIF ( - 96, 8 + + - 93 + - - 89 ) WHEN 30 * - 32 THEN NULL ELSE COUNT( * ) + - 85 * ( + 11 ) END
----
-934

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT + CASE - + NULLIF ( - 96, 8 + + - 93 + - - 89 ) WHEN 30 * - 32 THEN NULL ELSE COUNT ( * ) + - 85 * ( + 11 ) END
----
-934

onlyif mysql # DIV for integer division: 
query I rowsort label-4270
SELECT - 1 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-4270
SELECT - 1 / - 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT - COUNT( * ) * - 91 * + 51 - 72 AS col0
----
4569

skipif mysql # not compatible
query I rowsort label-4271
SELECT - COUNT ( * ) * - 91 * + 51 - 72 AS col0
----
4569

query II rowsort
SELECT - 27, 84 AS col2
----
-27
84

query II rowsort
SELECT 29 AS col0, 61 AS col2
----
29
61

query I rowsort
SELECT ALL + 92 * + - 28
----
-2576

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT - 6 DIV + - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4275
SELECT - 6 / + - 55 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4276
SELECT ALL COALESCE ( + CAST( ( - 99 ) AS SIGNED ), - CAST( NULL AS SIGNED ), + 33 * - MIN( + 99 * + 22 ) - 8 * 67, - 67 + COUNT( * ) ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL COALESCE ( + CAST ( ( - 99 ) AS INTEGER ), - CAST ( NULL AS INTEGER ), + 33 * - MIN ( + 99 * + 22 ) - 8 * 67, - 67 + COUNT ( * ) ) AS col1
----
-99

query I rowsort
SELECT ALL - 20 - - + ( - 45 ) col0
----
-65

query II rowsort
SELECT ALL 92, - 52 * + - 11 AS col2
----
92
572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4279
SELECT - MIN( + CAST( - - 42 AS SIGNED ) )
----
-42

skipif mysql # not compatible
query I rowsort label-4279
SELECT - MIN ( + CAST ( - - 42 AS INTEGER ) )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT ALL CASE - 92 WHEN SUM( - + 6 ) / AVG ( + - 53 ) * + 83 THEN - 98 ELSE 38 END AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL CASE - 92 WHEN SUM ( - + 6 ) / AVG ( + - 53 ) * + 83 THEN - 98 ELSE 38 END AS col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4281
SELECT DISTINCT CASE - 47 WHEN + - 34 THEN - 35 ELSE NULL END AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4281
SELECT DISTINCT CASE - 47 WHEN + - 34 THEN - 35 ELSE NULL END AS col2, COUNT ( * )
----
NULL
1

query I rowsort
SELECT + 70 + + - 94 * 35
----
-3220

query II rowsort
SELECT ALL + 78 AS col2, + 17 * - 11 + - + 54 AS col0
----
78
-241

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4284
SELECT DISTINCT - CAST( ( + 50 ) AS DECIMAL ) * CASE + CASE + 54 WHEN 90 THEN NULL WHEN - 6 + COUNT( * ) / 45 THEN 64 * 10 ELSE - 25 - - 87 END WHEN + 82 THEN NULL WHEN 88 * + MIN( ALL - 41 * - 87 ) + 85 THEN + SUM( ALL - 10 ) ELSE NULL END / - 31 + ( COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - CAST ( ( + 50 ) AS REAL ) * CASE + CASE + 54 WHEN 90 THEN NULL WHEN - 6 + COUNT ( * ) / 45 THEN 64 * 10 ELSE - 25 - - 87 END WHEN + 82 THEN NULL WHEN 88 * + MIN ( ALL - 41 * - 87 ) + 85 THEN + SUM ( ALL - 10 ) ELSE NULL END / - 31 + ( COUNT ( * ) ) col2
----
NULL

query I rowsort
SELECT + - 52 * + 43 + 96 AS col1
----
-2140

query I rowsort
SELECT ALL - + 80 + - 92
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL 3 + + ( 83 ) - 55 + - 34 * + MIN( - 64 )
----
2207

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL 3 + + ( 83 ) - 55 + - 34 * + MIN ( - 64 )
----
2207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4288
SELECT ALL 16 + SUM( + - 62 ) DIV 24 + 30 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL 16 + SUM ( + - 62 ) / 24 + 30 AS col1
----
44

query I rowsort
SELECT + NULLIF ( - ( 36 ), + - 36 ) - - - 50 + 9 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4290
SELECT ALL + 33 * CAST( - - 90 AS SIGNED ) + - CAST( - 30 AS SIGNED ) - - 40 * 6 + 36 * + 15 AS col2
----
3780

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + 33 * CAST ( - - 90 AS INTEGER ) + - CAST ( - 30 AS INTEGER ) - - 40 * 6 + 36 * + 15 AS col2
----
3780

query I rowsort
SELECT - 96 * - 67 + + 56 + + 77 - + NULLIF ( ( 54 ), - 33 ) * + 53 * - 49
----
146803

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4292
SELECT ALL - AVG ( DISTINCT 55 ) * - - 59 + - CAST( NULL AS SIGNED ) + - SUM( + 60 ) * - 58 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL - AVG ( DISTINCT 55 ) * - - 59 + - CAST ( NULL AS INTEGER ) + - SUM ( + 60 ) * - 58 + - COUNT ( * )
----
NULL

query I rowsort
SELECT + ( - + 31 ) col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL - 4 * - 24 + SUM( ALL + - 15 )
----
81

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - 4 * - 24 + SUM ( ALL + - 15 )
----
81

query II rowsort
SELECT + 89 * + - 86 AS col1, 49 AS col0
----
-7654
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT + COUNT( ALL - 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4296
SELECT + COUNT ( ALL - 92 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4297
SELECT DISTINCT 62 * + 4 * 93 + + 25 DIV + 68 + - 89 AS col2
----
22975

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT 62 * + 4 * 93 + + 25 / + 68 + - 89 AS col2
----
22975

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT DISTINCT + SUM( - 18 ) AS col2, - 87 + MIN( ALL - ( - + 16 ) ) + COALESCE ( 0, - 42 ) AS col0
----
-18
-71

skipif mysql # not compatible
query II rowsort label-4298
SELECT DISTINCT + SUM ( - 18 ) AS col2, - 87 + MIN ( ALL - ( - + 16 ) ) + COALESCE ( 0, - 42 ) AS col0
----
-18
-71

query I rowsort
SELECT + 60 + + 48 + - 66 * 19
----
-1146

query I rowsort
SELECT - 66 * + ( - + 44 ) AS col0
----
2904

query I rowsort
SELECT ALL 72 * + 11 AS col2
----
792

query I rowsort
SELECT CASE - - 20 WHEN + 58 + + - 95 THEN NULL WHEN 38 THEN 9 + - 28 ELSE 55 - 86 END AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT - 54 * - + ( - 4 ) + + COUNT( * ) - - + MAX( - 55 )
----
-270

skipif mysql # not compatible
query I rowsort label-4303
SELECT - 54 * - + ( - 4 ) + + COUNT ( * ) - - + MAX ( - 55 )
----
-270

onlyif mysql # aggregate syntax: 
query II rowsort label-4304
SELECT - COUNT( * ) - + - 29, + 22 AS col0
----
28
22

skipif mysql # not compatible
query II rowsort label-4304
SELECT - COUNT ( * ) - + - 29, + 22 AS col0
----
28
22

query I rowsort
SELECT COALESCE ( 78, 12, - 75 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4306
SELECT + 30 * + SUM( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT + 30 * + SUM ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT DISTINCT + COUNT( + 56 )
----
1

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT + COUNT ( + 56 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4308
SELECT DISTINCT - 15 DIV + + 33, + 58 + - 30 AS col1
----
0
28

skipif mysql # not compatible
query II rowsort label-4308
SELECT DISTINCT - 15 / + + 33, + 58 + - 30 AS col1
----
0
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4309
SELECT ALL ( 5 ) AS col0, - 93 * + 95 + + CASE ( + 4 ) WHEN + MAX( DISTINCT + 4 ) THEN + 32 - 13 * - 87 WHEN - CASE - 44 WHEN + COUNT( * ) THEN 21 WHEN + 13 * + COUNT( * ) THEN 19 ELSE NULL END THEN NULL END + - 53 DIV 47 * + COUNT( * ) AS col2
----
5
-7673

skipif mysql # not compatible
query II rowsort label-4309
SELECT ALL ( 5 ) AS col0, - 93 * + 95 + + CASE ( + 4 ) WHEN + MAX ( DISTINCT + 4 ) THEN + 32 - 13 * - 87 WHEN - CASE - 44 WHEN + COUNT ( * ) THEN 21 WHEN + 13 * + COUNT ( * ) THEN 19 ELSE NULL END THEN NULL END + - 53 / 47 * + COUNT ( * ) AS col2
----
5
-7673

query I rowsort
SELECT DISTINCT - 6 * - 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4311
SELECT - 83 + + COUNT( * ) AS col2, 62
----
-82
62

skipif mysql # not compatible
query II rowsort label-4311
SELECT - 83 + + COUNT ( * ) AS col2, 62
----
-82
62

query I rowsort
SELECT ALL COALESCE ( + 86, 34, + 46, - 35 * - 85 + + - 71 + 11 ) AS col1
----
86

query II rowsort
SELECT - 0 * - 37 * - 98 AS col0, 46 AS col2
----
0
46

query I rowsort
SELECT DISTINCT - 16 * - - 32 * + 44 * 69
----
-1554432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4315
SELECT + MAX( ALL 99 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT + MAX ( ALL 99 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL - 98 * + 21, - 77 AS col0
----
-2058
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4317
SELECT - 40 + COUNT( * ) DIV + 66 * - - 68 + - 41 * - + 40
----
1600

skipif mysql # not compatible
query I rowsort label-4317
SELECT - 40 + COUNT ( * ) / + 66 * - - 68 + - 41 * - + 40
----
1600

onlyif mysql # DIV for integer division: 
query I rowsort label-4318
SELECT - + 81 DIV 71 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4318
SELECT - + 81 / 71 AS col0
----
-1

query I rowsort
SELECT ALL + 76 + - + 18
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4320
SELECT DISTINCT + - COALESCE ( - CASE - CAST( 84 AS SIGNED ) WHEN - + 70 * - 36 THEN 63 ELSE NULL END, - CASE 74 WHEN - SUM( 63 ) + AVG ( ALL - 22 ) * ( 79 ) THEN NULL ELSE 90 * + NULLIF ( - 21, CAST( - ( 46 ) AS SIGNED ) ) END, 89 ) DIV NULLIF ( + 39, - 21 + + COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT + - COALESCE ( - CASE - CAST ( 84 AS INTEGER ) WHEN - + 70 * - 36 THEN 63 ELSE NULL END, - CASE 74 WHEN - SUM ( 63 ) + AVG ( ALL - 22 ) * ( 79 ) THEN NULL ELSE 90 * + NULLIF ( - 21, CAST ( - ( 46 ) AS INTEGER ) ) END, 89 ) / NULLIF ( + 39, - 21 + + COUNT ( * ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT - ( + COALESCE ( + - 84, - - MIN( ALL + 52 ), 17 ) ) + - - COUNT( * ) * 70 col1
----
154

skipif mysql # not compatible
query I rowsort label-4321
SELECT - ( + COALESCE ( + - 84, - - MIN ( ALL + 52 ), 17 ) ) + - - COUNT ( * ) * 70 col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL - - 28 + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL - - 28 + COUNT ( * )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT - CAST( - 32 AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4323
SELECT - CAST ( - 32 AS INTEGER ) AS col0
----
32

query I rowsort
SELECT DISTINCT CASE 41 WHEN ( 22 ) + - COALESCE ( + 54, - 81 + 59 * CASE - 12 WHEN + 91 THEN NULL WHEN + 20 + 22 THEN NULL WHEN - 95 THEN 19 / 61 ELSE NULL END ) THEN - 75 / 86 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL - - 52 + 12 * COUNT( + - 4 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL - - 52 + 12 * COUNT ( + - 4 ) AS col2
----
64

query I rowsort
SELECT - - 29 + + 82
----
111

query I rowsort
SELECT - + 55 + + - 99 col2
----
-154

query I rowsort
SELECT + + 49 + 87
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT + 20 + - MAX( ALL - 38 ) * + 85
----
3250

skipif mysql # not compatible
query I rowsort label-4329
SELECT + 20 + - MAX ( ALL - 38 ) * + 85
----
3250

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT DISTINCT - COUNT( + 90 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT - COUNT ( + 90 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4331
SELECT DISTINCT + CAST( 91 AS SIGNED ) * + - ( + 89 ) + - - 83
----
-8016

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT + CAST ( 91 AS INTEGER ) * + - ( + 89 ) + - - 83
----
-8016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4332
SELECT DISTINCT - + 10 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT - + 10 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 66 - + - 91 + - ( + 82 ) AS col2
----
75

query I rowsort
SELECT DISTINCT - 61 - - 57
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT COUNT( * ) + - + COUNT( DISTINCT + 31 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4335
SELECT COUNT ( * ) + - + COUNT ( DISTINCT + 31 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT 1 DIV - + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4336
SELECT 1 / - + 55 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT COALESCE ( 31, CAST( NULL AS SIGNED ) * 71 + COUNT( * ) ) * + + 27 AS col2
----
837

skipif mysql # not compatible
query I rowsort label-4337
SELECT COALESCE ( 31, CAST ( NULL AS INTEGER ) * 71 + COUNT ( * ) ) * + + 27 AS col2
----
837

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4338
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( DISTINCT - 76 ) * + COUNT( * ) + + CASE + - 40 WHEN - 27 * - - 77 + 76 / 77 THEN COALESCE ( 43, SUM( DISTINCT + 38 ) ) / - 2 END + 62 / + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT - CAST ( NULL AS REAL ) * - COUNT ( DISTINCT - 76 ) * + COUNT ( * ) + + CASE + - 40 WHEN - 27 * - - 77 + 76 / 77 THEN COALESCE ( 43, SUM ( DISTINCT + 38 ) ) / - 2 END + 62 / + 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4339
SELECT DISTINCT CASE - 66 WHEN 81 THEN - NULLIF ( - 2, - COUNT( * ) + + - 12 ) - + + 45 + 53 ELSE CASE 1 WHEN CASE 77 WHEN - 97 THEN 19 END THEN NULL WHEN - 35 THEN 13 ELSE 53 + + 16 END END / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT CASE - 66 WHEN 81 THEN - NULLIF ( - 2, - COUNT ( * ) + + - 12 ) - + + 45 + 53 ELSE CASE 1 WHEN CASE 77 WHEN - 97 THEN 19 END THEN NULL WHEN - 35 THEN 13 ELSE 53 + + 16 END END / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4340
SELECT + 15 col0, + 95 / - + CASE + 3 WHEN + 8 * + 88 * - 10 THEN + 60 + - CAST( 57 AS SIGNED ) ELSE NULL END + - 38 AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-4340
SELECT + 15 col0, + 95 / - + CASE + 3 WHEN + 8 * + 88 * - 10 THEN + 60 + - CAST ( 57 AS INTEGER ) ELSE NULL END + - 38 AS col0
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ( + MIN( DISTINCT - 71 ) ) + COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-4341
SELECT ( + MIN ( DISTINCT - 71 ) ) + COUNT ( * ) AS col1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-4342
SELECT ALL ( - 75 ) - + 81 DIV - 23 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL ( - 75 ) - + 81 / - 23 AS col1
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT ALL NULLIF ( + - 46, 91 + - ( - 82 ) - - 10 - + ( 59 ) * 27 ) DIV + 8
----
-5

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL NULLIF ( + - 46, 91 + - ( - 82 ) - - 10 - + ( 59 ) * 27 ) / + 8
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL ( 11 ) * COUNT( * ) + - ( - 47 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL ( 11 ) * COUNT ( * ) + - ( - 47 ) AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4345
SELECT DISTINCT CASE - + 17 WHEN - + COUNT( * ) * - - CAST( + 53 AS SIGNED ) THEN NULL ELSE + + 89 END DIV - 80
----
-1

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT CASE - + 17 WHEN - + COUNT ( * ) * - - CAST ( + 53 AS INTEGER ) THEN NULL ELSE + + 89 END / - 80
----
-1

query I rowsort
SELECT ALL 18 * ( + 78 ) AS col1
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT - NULLIF ( - 72, + 44 * - ( + + CASE - + ( 18 ) WHEN 9 THEN 1 ELSE NULL END ) / + 47 + COUNT( ALL 16 ) ) col0
----
72

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - NULLIF ( - 72, + 44 * - ( + + CASE - + ( 18 ) WHEN 9 THEN 1 ELSE NULL END ) / + 47 + COUNT ( ALL 16 ) ) col0
----
72

query I rowsort
SELECT 26 * - + COALESCE ( - 59, + 76 ) AS col1
----
1534

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT SUM( DISTINCT + 64 ) * + - 20 * - 31 * 33
----
1309440

skipif mysql # not compatible
query I rowsort label-4349
SELECT SUM ( DISTINCT + 64 ) * + - 20 * - 31 * 33
----
1309440

onlyif mysql # aggregate syntax: 
query II rowsort label-4350
SELECT DISTINCT - COUNT( * ), - 48 AS col2
----
-1
-48

skipif mysql # not compatible
query II rowsort label-4350
SELECT DISTINCT - COUNT ( * ), - 48 AS col2
----
-1
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT - 74 * + 44 - - COUNT( * )
----
-3255

skipif mysql # not compatible
query I rowsort label-4351
SELECT - 74 * + 44 - - COUNT ( * )
----
-3255

query I rowsort
SELECT DISTINCT 17 + + + 22
----
39

query I rowsort
SELECT 87 + - 57 AS col1
----
30

query II rowsort
SELECT ALL + 25 + - 37 + - + 23, 48 + - 40 * - 48 AS col1
----
-35
1968

query I rowsort
SELECT 51 * 98
----
4998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT ALL + - 79 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL + - 79 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT DISTINCT 20 + 17 * + + COUNT( ALL - - 71 )
----
37

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT 20 + 17 * + + COUNT ( ALL - - 71 )
----
37

query I rowsort
SELECT - 21 * - 37 + - ( - 24 ) + 94 col0
----
895

onlyif mysql # DIV for integer division: 
query I rowsort label-4359
SELECT 20 + - 79 DIV 94 - 4 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4359
SELECT 20 + - 79 / 94 - 4 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4360
SELECT - NULLIF ( 60, - + COUNT( * ) + - + 96 + + NULLIF ( ( - COUNT( * ) ), - CAST( NULL AS SIGNED ) * 2 + - 9 DIV NULLIF ( - 10 * MAX( ALL 94 ) + 25 * ( - 63 - 20 ), 65 * 20 ) ) - 45 * 87 ) DIV + 58 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4360
SELECT - NULLIF ( 60, - + COUNT ( * ) + - + 96 + + NULLIF ( ( - COUNT ( * ) ), - CAST ( NULL AS INTEGER ) * 2 + - 9 / NULLIF ( - 10 * MAX ( ALL 94 ) + 25 * ( - 63 - 20 ), 65 * 20 ) ) - 45 * 87 ) / + 58 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4361
SELECT - 9 AS col1, MAX( DISTINCT - 70 ) + - 52 + - 3 * - + 88 - - + COUNT( * ) + 77 * 62 * 89 AS col0
----
-9
425029

skipif mysql # not compatible
query II rowsort label-4361
SELECT - 9 AS col1, MAX ( DISTINCT - 70 ) + - 52 + - 3 * - + 88 - - + COUNT ( * ) + 77 * 62 * 89 AS col0
----
-9
425029

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT ALL - NULLIF ( 14, ( + 11 ) * + CASE - 81 WHEN - MAX( - 67 ) THEN 16 WHEN 10 THEN NULL ELSE 75 END ) - - 88 DIV COUNT( * ) col2
----
74

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL - NULLIF ( 14, ( + 11 ) * + CASE - 81 WHEN - MAX ( - 67 ) THEN 16 WHEN 10 THEN NULL ELSE 75 END ) - - 88 / COUNT ( * ) col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4363
SELECT ALL + - 37 DIV + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL + - 37 / + 55 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4364
SELECT + MIN( + ( + + 63 ) ) DIV + 35 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4364
SELECT + MIN ( + ( + + 63 ) ) / + 35 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL + COUNT( * ) - - 63 + - 3 * - ( 35 ) + + CASE WHEN NOT 52 IS NULL THEN 53 ELSE NULL END * 40
----
2289

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL + COUNT ( * ) - - 63 + - 3 * - ( 35 ) + + CASE WHEN NOT 52 IS NULL THEN 53 ELSE NULL END * 40
----
2289

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ALL + 57 - MAX( 7 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + 57 - MAX ( 7 ) AS col2
----
50

query I rowsort
SELECT - 93 * - - 17 AS col0
----
-1581

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT 82 * 27 + - + 7 * - - ( MIN( - COALESCE ( + 0, + + 61, 27 - + 70 ) ) ) + + 76 * 25
----
4114

skipif mysql # not compatible
query I rowsort label-4368
SELECT 82 * 27 + - + 7 * - - ( MIN ( - COALESCE ( + 0, + + 61, 27 - + 70 ) ) ) + + 76 * 25
----
4114

query I rowsort
SELECT NULLIF ( - + 26, + 94 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT - 9 * + 82 + COUNT( * )
----
-737

skipif mysql # not compatible
query I rowsort label-4370
SELECT - 9 * + 82 + COUNT ( * )
----
-737

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4371
SELECT ALL + COUNT( * ) * 83 DIV - 19 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL + COUNT ( * ) * 83 / - 19 AS col1
----
-4

query I rowsort
SELECT 17 * + - ( - 84 ) AS col2
----
1428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) * - 74 * + ( ( - 63 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) * - 74 * + ( ( - 63 ) )
----
NULL

query I rowsort
SELECT ALL 1 * 9 col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT COUNT( * ) - - 27 - + + 88
----
-60

skipif mysql # not compatible
query I rowsort label-4375
SELECT COUNT ( * ) - - 27 - + + 88
----
-60

query II rowsort
SELECT ALL + 33 * - + 89 AS col0, 54 AS col1
----
-2937
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4377
SELECT COUNT( * ) * - 66 AS col0, 93 AS col2
----
-66
93

skipif mysql # not compatible
query II rowsort label-4377
SELECT COUNT ( * ) * - 66 AS col0, 93 AS col2
----
-66
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT COUNT( * ) * + - 77 * 89 - + 74 AS col0
----
-6927

skipif mysql # not compatible
query I rowsort label-4378
SELECT COUNT ( * ) * + - 77 * 89 - + 74 AS col0
----
-6927

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT + COUNT( * ) * + 36 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT + COUNT ( * ) * + 36 AS col1
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4380
SELECT + 70 * + CAST( NULL AS DECIMAL ) / 63 + + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT + 70 * + CAST ( NULL AS REAL ) / 63 + + + 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4381
SELECT CASE + 45 WHEN + 94 + - ( - + 89 ) THEN - - 94 * - 45 WHEN + - 71 THEN + 89 END / - SUM( CAST( ( + 4 ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT CASE + 45 WHEN + 94 + - ( - + 89 ) THEN - - 94 * - 45 WHEN + - 71 THEN + 89 END / - SUM ( CAST ( ( + 4 ) AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4382
SELECT COUNT( * ) * + - 92, 55 AS col2
----
-92
55

skipif mysql # not compatible
query II rowsort label-4382
SELECT COUNT ( * ) * + - 92, 55 AS col2
----
-92
55

query I rowsort
SELECT DISTINCT 76 + 92 col0
----
168

query I rowsort
SELECT DISTINCT 70 * - - 35 * 92
----
225400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4385
SELECT ALL 29 + COUNT( * ) DIV + 59 * ( - 55 )
----
29

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL 29 + COUNT ( * ) / + 59 * ( - 55 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT 77 DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-4386
SELECT 77 / 50
----
1

query I rowsort
SELECT ALL - 79 * - - 52 AS col0
----
-4108

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL 9 + + + 36 + 11 + 59 * - 50 + - 57 - - 36 + + 39 + - - 39 * + COUNT( * ) AS col2
----
-2837

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL 9 + + + 36 + 11 + 59 * - 50 + - 57 - - 36 + + 39 + - - 39 * + COUNT ( * ) AS col2
----
-2837

query I rowsort
SELECT - + 12 col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4390
SELECT - 61 - + 73 * - 88 * + COALESCE ( CAST( - 44 AS SIGNED ), COUNT( * ), + + 64 - + + 55 - - 92 DIV + ( 99 ) ) + + MIN( ALL 77 )
----
-282640

skipif mysql # not compatible
query I rowsort label-4390
SELECT - 61 - + 73 * - 88 * + COALESCE ( CAST ( - 44 AS INTEGER ), COUNT ( * ), + + 64 - + + 55 - - 92 / + ( 99 ) ) + + MIN ( ALL 77 )
----
-282640

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT 45 + - - MIN( DISTINCT 88 ) + + ( 31 ) AS col1
----
164

skipif mysql # not compatible
query I rowsort label-4391
SELECT 45 + - - MIN ( DISTINCT 88 ) + + ( 31 ) AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT + ( - 60 ) * + ( + COUNT( * ) ) + + + 80 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4392
SELECT + ( - 60 ) * + ( + COUNT ( * ) ) + + + 80 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL + 2 + + COALESCE ( + 66, 74 * - - 83, - 21 + ( + 24 ) ) * ( - 65 ) + SUM( DISTINCT - 1 )
----
-4289

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + 2 + + COALESCE ( + 66, 74 * - - 83, - 21 + ( + 24 ) ) * ( - 65 ) + SUM ( DISTINCT - 1 )
----
-4289

onlyif mysql # aggregate syntax: 
query II rowsort label-4394
SELECT + 19 + + + 4 * - SUM( + 49 ) col2, 55 * + 36 * 99 + - - COALESCE ( 9, - 59, COUNT( * ) + + 12 )
----
-177
196029

skipif mysql # not compatible
query II rowsort label-4394
SELECT + 19 + + + 4 * - SUM ( + 49 ) col2, 55 * + 36 * 99 + - - COALESCE ( 9, - 59, COUNT ( * ) + + 12 )
----
-177
196029

query I rowsort
SELECT DISTINCT 93 - ( CASE 54 WHEN 55 THEN NULL WHEN + + 30 THEN NULLIF ( - 98, ( 98 ) + + AVG ( ALL - 97 ) ) * 28 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT DISTINCT - MAX( + 24 ) - + COUNT( * ) * + 53 + + 66
----
-11

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT - MAX ( + 24 ) - + COUNT ( * ) * + 53 + + 66
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4397
SELECT + - 72 + + - COUNT( * ), - 9 * + 85 AS col0
----
-73
-765

skipif mysql # not compatible
query II rowsort label-4397
SELECT + - 72 + + - COUNT ( * ), - 9 * + 85 AS col0
----
-73
-765

query I rowsort
SELECT DISTINCT - ( - NULLIF ( + 28, 1 * + 97 * - 41 ) )
----
28

query I rowsort
SELECT ALL + - 10 * + - ( 38 )
----
380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4400
SELECT ALL 38 DIV + - 62 * + ( - COUNT( * ) ) + 40 + - + 43 DIV 22 * + 44
----
-4

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL 38 / + - 62 * + ( - COUNT ( * ) ) + 40 + - + 43 / 22 * + 44
----
-4

query I rowsort
SELECT - 82 + 60 + - - 47 + - 47 AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT ALL - 25 * + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL - 25 * + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4403
SELECT + + COUNT( * ) DIV - - 39 * - + 74 DIV COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4403
SELECT + + COUNT ( * ) / - - 39 * - + 74 / COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - COUNT( * ) + + MIN( DISTINCT + 17 ) * + ( - 28 ) AS col1
----
-477

skipif mysql # not compatible
query I rowsort label-4404
SELECT - COUNT ( * ) + + MIN ( DISTINCT + 17 ) * + ( - 28 ) AS col1
----
-477

query I rowsort
SELECT DISTINCT 78 * + ( - - 56 )
----
4368

onlyif mysql # DIV for integer division: 
query I rowsort label-4406
SELECT 38 DIV + - 91 + 30 DIV + + 15
----
2

skipif mysql # not compatible
query I rowsort label-4406
SELECT 38 / + - 91 + 30 / + + 15
----
2

query I rowsort
SELECT ALL - 2 * + 46 col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4408
SELECT DISTINCT + COALESCE ( 11, COUNT( * ) * + - 19 * 6 DIV ( + 28 ) + MIN( DISTINCT + - 15 ) ) * - 36
----
-396

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT + COALESCE ( 11, COUNT ( * ) * + - 19 * 6 / ( + 28 ) + MIN ( DISTINCT + - 15 ) ) * - 36
----
-396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4409
SELECT - COUNT( * ) * - - COUNT( * ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-4409
SELECT - COUNT ( * ) * - - COUNT ( * ) / 71
----
0

query II rowsort
SELECT ALL + 91 AS col2, - 78 AS col0
----
91
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-4411
SELECT NULLIF ( - CAST( NULL AS DECIMAL ), - ( CAST( - - 30 AS SIGNED ) ) ), COUNT( * ) DIV + - 62 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4411
SELECT NULLIF ( - CAST ( NULL AS REAL ), - ( CAST ( - - 30 AS INTEGER ) ) ), COUNT ( * ) / + - 62 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4412
SELECT COUNT( * ) * - - NULLIF ( - - 17, - 51 ) DIV + 53 + 21 + + NULLIF ( - 94, + + 48 + - COUNT( * ) * + 41 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4412
SELECT COUNT ( * ) * - - NULLIF ( - - 17, - 51 ) / + 53 + 21 + + NULLIF ( - 94, + + 48 + - COUNT ( * ) * + 41 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT + SUM( ALL + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-4413
SELECT + SUM ( ALL + 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL + ( + CASE - 20 WHEN NULLIF ( - 63, MAX( DISTINCT + - 93 ) + + - 35 ) THEN NULL ELSE + + ( + - 73 ) END )
----
-73

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL + ( + CASE - 20 WHEN NULLIF ( - 63, MAX ( DISTINCT + - 93 ) + + - 35 ) THEN NULL ELSE + + ( + - 73 ) END )
----
-73

query I rowsort
SELECT + ( 80 ) * 73 AS col2
----
5840

query I rowsort
SELECT ALL 97 * - 5 + - 64
----
-549

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT - ( + + COUNT( * ) ) + - COALESCE ( - - 33, - 87, 80 + + - COUNT( * ) + COALESCE ( + 14, - 29 * 22, + 45 - - 79 ) * + MAX( ALL 89 * + 79 - - 45 ) ) + 25
----
-9

skipif mysql # not compatible
query I rowsort label-4417
SELECT - ( + + COUNT ( * ) ) + - COALESCE ( - - 33, - 87, 80 + + - COUNT ( * ) + COALESCE ( + 14, - 29 * 22, + 45 - - 79 ) * + MAX ( ALL 89 * + 79 - - 45 ) ) + 25
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT DISTINCT COUNT( * ) * - + 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT COUNT ( * ) * - + 43 AS col1
----
-43

query I rowsort
SELECT DISTINCT + 85 * - + 61 col1
----
-5185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT - CAST( + 29 AS SIGNED ) * + 20 * + + SUM( - 93 ) + - 36 * - 65 AS col2
----
56280

skipif mysql # not compatible
query I rowsort label-4420
SELECT - CAST ( + 29 AS INTEGER ) * + 20 * + + SUM ( - 93 ) + - 36 * - 65 AS col2
----
56280

query I rowsort
SELECT - 99 * - 27
----
2673

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4422
SELECT + SUM( ALL CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT + SUM ( ALL CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT + + 11 + 10
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT DISTINCT + + NULLIF ( + 16, COUNT( + 28 ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT + + NULLIF ( + 16, COUNT ( + 28 ) ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT + - COUNT( * ) + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4425
SELECT + - COUNT ( * ) + - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT ALL CASE - 48 WHEN - 97 + 65 THEN - 18 WHEN 95 + 88 THEN NULL ELSE - MAX( ALL - + 98 ) END
----
98

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL CASE - 48 WHEN - 97 + 65 THEN - 18 WHEN 95 + 88 THEN NULL ELSE - MAX ( ALL - + 98 ) END
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - SUM( - + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-4427
SELECT - SUM ( - + 3 )
----
3

query I rowsort
SELECT ALL + 56 - - 11 AS col0
----
67

query II rowsort
SELECT - 4 AS col0, - ( - 61 ) col2
----
-4
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT + - 92 * - + 52 * COUNT( * ) * - MAX( + NULLIF ( - 67, 73 * + + 64 ) )
----
320528

skipif mysql # not compatible
query I rowsort label-4430
SELECT + - 92 * - + 52 * COUNT ( * ) * - MAX ( + NULLIF ( - 67, 73 * + + 64 ) )
----
320528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4431
SELECT DISTINCT + 23 - COUNT( * ) DIV - + 99 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT + 23 - COUNT ( * ) / - + 99 AS col1
----
23

query I rowsort
SELECT - - ( 56 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4433
SELECT ALL + CAST( + 47 AS SIGNED ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL + CAST ( + 47 AS INTEGER ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4434
SELECT ALL 79 * - - CAST( + 89 AS SIGNED ) + + 11 AS col1
----
7042

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL 79 * - - CAST ( + 89 AS INTEGER ) + + 11 AS col1
----
7042

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT + 53 * + 93 + MIN( ALL + 71 ) * 33
----
7272

skipif mysql # not compatible
query I rowsort label-4435
SELECT + 53 * + 93 + MIN ( ALL + 71 ) * 33
----
7272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4436
SELECT - + 15 - + - ( + + COALESCE ( - - COUNT( * ), 25 + 28 + - + 2 * - + MIN( ALL - 41 ) DIV - 70 ) ) + + 26 col0
----
12

skipif mysql # not compatible
query I rowsort label-4436
SELECT - + 15 - + - ( + + COALESCE ( - - COUNT ( * ), 25 + 28 + - + 2 * - + MIN ( ALL - 41 ) / - 70 ) ) + + 26 col0
----
12

query I rowsort
SELECT ALL - 29 * 25
----
-725

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL SUM( DISTINCT + - 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL SUM ( DISTINCT + - 50 ) AS col2
----
-50

query I rowsort
SELECT ALL 11 * - - 49 * - + 76 col1
----
-40964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4440
SELECT DISTINCT NULLIF ( - - CAST( NULL AS SIGNED ), - ( - - SUM( DISTINCT - 54 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT NULLIF ( - - CAST ( NULL AS INTEGER ), - ( - - SUM ( DISTINCT - 54 ) ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 96, 40 + COALESCE ( - 17, - 3 * - + 2 ) + - 3 + 63 * 41 + - 13 ) + 71 col2
----
167

query I rowsort
SELECT ALL - 70 * - 52
----
3640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4443
SELECT + 1 DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4443
SELECT + 1 / COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4444
SELECT ALL + 23 DIV + - 77 + 71 * - - MIN( 3 ) * - - 34
----
7242

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL + 23 / + - 77 + 71 * - - MIN ( 3 ) * - - 34
----
7242

query I rowsort
SELECT + 72 + 37
----
109

query II rowsort
SELECT + 66 col1, - 69 + + 58 col0
----
66
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4447
SELECT ALL 60 * + CAST( COUNT( * ) AS SIGNED ) * - - 81 + 88 + - + CAST( - - 63 AS SIGNED ) * - + 49 AS col1
----
8035

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL 60 * + CAST ( COUNT ( * ) AS INTEGER ) * - - 81 + 88 + - + CAST ( - - 63 AS INTEGER ) * - + 49 AS col1
----
8035

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4448
SELECT + 65 DIV COALESCE ( - 32, - ( - + 78 ) + + COUNT( * ) ) * - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4448
SELECT + 65 / COALESCE ( - 32, - ( - + 78 ) + + COUNT ( * ) ) * - COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4449
SELECT - 62 DIV 8 + - 51 + - + MAX( DISTINCT 74 ) * - 79 * + 18
----
105170

skipif mysql # not compatible
query I rowsort label-4449
SELECT - 62 / 8 + - 51 + - + MAX ( DISTINCT 74 ) * - 79 * + 18
----
105170

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4450
SELECT CAST( NULL AS DECIMAL ), 45 * + + 46 AS col2
----
NULL
2070

skipif mysql # not compatible
query II rowsort label-4450
SELECT CAST ( NULL AS REAL ), 45 * + + 46 AS col2
----
NULL
2070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT + CAST( + 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-4451
SELECT + CAST ( + 57 AS INTEGER )
----
57

query I rowsort
SELECT - ( 18 ) + + 30
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL COUNT( * ) * - - 93 * - + 64
----
-5952

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL COUNT ( * ) * - - 93 * - + 64
----
-5952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT ALL CAST( - + ( - 64 ) AS SIGNED ) / - CAST( NULL AS SIGNED ) * + 62 + + 36 + + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL CAST ( - + ( - 64 ) AS INTEGER ) / - CAST ( NULL AS INTEGER ) * + 62 + + 36 + + - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT - ( - - 77 ) + COALESCE ( COUNT( + 61 ), 20 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-4455
SELECT - ( - - 77 ) + COALESCE ( COUNT ( + 61 ), 20 ) AS col2
----
-76

query I rowsort
SELECT ALL + ( + 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4457
SELECT ALL - COUNT( * ) DIV + 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - COUNT ( * ) / + 14 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ( + COALESCE ( - + 37, - 31 + 12 + - 51 * - + COUNT( + 82 ) * - 48 + - 31 ) ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-4458
SELECT ( + COALESCE ( - + 37, - 31 + 12 + - 51 * - + COUNT ( + 82 ) * - 48 + - 31 ) ) AS col0
----
-37

query II rowsort
SELECT ALL + 22 AS col1, - 56 + 36
----
22
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4460
SELECT ALL COUNT( * ) DIV + - 16 - + 77 * COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL COUNT ( * ) / + - 16 - + 77 * COUNT ( * )
----
-77

query I rowsort
SELECT ( ( - 63 ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT + COUNT( ALL 97 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4462
SELECT + COUNT ( ALL 97 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT - COUNT( * ) + + + 61 * - 81 + 62 AS col0
----
-4880

skipif mysql # not compatible
query I rowsort label-4463
SELECT - COUNT ( * ) + + + 61 * - 81 + 62 AS col0
----
-4880

query II rowsort
SELECT ( + COALESCE ( 34, + + 93 ) ) col1, 16 + 87
----
34
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT ALL + NULLIF ( + ( 53 ), + ( + COUNT( * ) ) + + - 86 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + NULLIF ( + ( 53 ), + ( + COUNT ( * ) ) + + - 86 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT + - NULLIF ( - 39, 43 / + 73 + - COALESCE ( + - 62, COUNT( * ), 16, - 79 * + + COUNT( * ) * COUNT( DISTINCT + 27 ) * COUNT( * ) - 10 ) ) col2
----
39

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT + - NULLIF ( - 39, 43 / + 73 + - COALESCE ( + - 62, COUNT ( * ), 16, - 79 * + + COUNT ( * ) * COUNT ( DISTINCT + 27 ) * COUNT ( * ) - 10 ) ) col2
----
39

query I rowsort
SELECT + 48 - - 75 + 91 - - 6 * 20 AS col1
----
334

query I rowsort
SELECT ALL - 85 * + 33 AS col1
----
-2805

onlyif mysql # aggregate syntax: 
query II rowsort label-4469
SELECT DISTINCT - - 66 col0, 95 + COUNT( * )
----
66
96

skipif mysql # not compatible
query II rowsort label-4469
SELECT DISTINCT - - 66 col0, 95 + COUNT ( * )
----
66
96

onlyif mysql # DIV for integer division: 
query II rowsort label-4470
SELECT ALL - 18 AS col1, - NULLIF ( - - 65, - - 68 ) DIV + 56
----
-18
-1

skipif mysql # not compatible
query II rowsort label-4470
SELECT ALL - 18 AS col1, - NULLIF ( - - 65, - - 68 ) / + 56
----
-18
-1

query I rowsort
SELECT - 14 * 95 AS col1
----
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT ALL 54 * - COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL 54 * - COUNT ( * ) AS col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4473
SELECT ALL - SUM( ALL - + 16 ) AS col0, CASE NULLIF ( - COUNT( * ), 13 - + 43 ) WHEN NULLIF ( - + NULLIF ( - 10, - COUNT( * ) ), - 82 ) THEN 41 WHEN 7 * - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END col0
----
16
NULL

skipif mysql # not compatible
query II rowsort label-4473
SELECT ALL - SUM ( ALL - + 16 ) AS col0, CASE NULLIF ( - COUNT ( * ), 13 - + 43 ) WHEN NULLIF ( - + NULLIF ( - 10, - COUNT ( * ) ), - 82 ) THEN 41 WHEN 7 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END col0
----
16
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT 66, + COUNT( 94 ) AS col1
----
66
1

skipif mysql # not compatible
query II rowsort label-4474
SELECT 66, + COUNT ( 94 ) AS col1
----
66
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT CAST( NULL AS SIGNED ) + + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT CAST ( NULL AS INTEGER ) + + - 54
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT ALL 56 DIV - 21 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL 56 / - 21 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4477
SELECT 54 + COUNT( * ) + - ( + + 10 ), + 49 + + + ( - 78 ) + COUNT( * ) AS col2
----
45
-28

skipif mysql # not compatible
query II rowsort label-4477
SELECT 54 + COUNT ( * ) + - ( + + 10 ), + 49 + + + ( - 78 ) + COUNT ( * ) AS col2
----
45
-28

query I rowsort
SELECT - 31 * 84 + - 47 + + + 57
----
-2594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4479
SELECT - 40 + + + 57 - - COUNT( * ) + COUNT( * ) DIV + 70 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4479
SELECT - 40 + + + 57 - - COUNT ( * ) + COUNT ( * ) / + 70 AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4480
SELECT ALL 90 AS col0, COUNT( * ) + - - 20 + + 12 * - - 0 * + 22
----
90
21

skipif mysql # not compatible
query II rowsort label-4480
SELECT ALL 90 AS col0, COUNT ( * ) + - - 20 + + 12 * - - 0 * + 22
----
90
21

query I rowsort
SELECT ALL 83 + 23 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT 46 + - COUNT( * ) + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4482
SELECT 46 + - COUNT ( * ) + + COUNT ( * )
----
46

query I rowsort
SELECT ALL 66 + - + 28
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4484
SELECT ALL 84 * - 60 AS col0, 3 + + - 18 * 11 * - 73 / + CAST( NULL AS SIGNED ) col0
----
-5040
NULL

skipif mysql # not compatible
query II rowsort label-4484
SELECT ALL 84 * - 60 AS col0, 3 + + - 18 * 11 * - 73 / + CAST ( NULL AS INTEGER ) col0
----
-5040
NULL

query I rowsort
SELECT 81 + + 28
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT DISTINCT 54 + + 1 * + + COUNT( * ) * + 65
----
119

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT 54 + + 1 * + + COUNT ( * ) * + 65
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL 12 + - MAX( ALL 95 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL 12 + - MAX ( ALL 95 ) AS col2
----
-83

query I rowsort
SELECT ALL 83 * - + 99
----
-8217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4489
SELECT 71 * - - 15 * + CAST( - COUNT( * ) AS SIGNED ) col1
----
-1065

skipif mysql # not compatible
query I rowsort label-4489
SELECT 71 * - - 15 * + CAST ( - COUNT ( * ) AS INTEGER ) col1
----
-1065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4490
SELECT DISTINCT 18 + 14 * + CAST( + 82 AS SIGNED ) * - NULLIF ( + - 24, - ( - - COUNT( * ) ) * - COUNT( * ) - - ( - + 41 ) - + - SUM( + 77 ) * - COUNT( * ) ) + + 30
----
27600

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT 18 + 14 * + CAST ( + 82 AS INTEGER ) * - NULLIF ( + - 24, - ( - - COUNT ( * ) ) * - COUNT ( * ) - - ( - + 41 ) - + - SUM ( + 77 ) * - COUNT ( * ) ) + + 30
----
27600

query I rowsort
SELECT ALL 53 - - 20 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT 60 * - + COUNT( - + 82 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-4492
SELECT 60 * - + COUNT ( - + 82 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT SUM( DISTINCT + - 39 ) * 3 AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-4493
SELECT SUM ( DISTINCT + - 39 ) * 3 AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL 70 / 50 * CASE + COUNT( * ) WHEN - ( 84 ) THEN + 6 + MAX( 35 ) END * + - 96 * + + 10 * + 92 * + COUNT( DISTINCT 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL 70 / 50 * CASE + COUNT ( * ) WHEN - ( 84 ) THEN + 6 + MAX ( 35 ) END * + - 96 * + + 10 * + 92 * + COUNT ( DISTINCT 18 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4495
SELECT + 20 DIV + ( + + 26 ) + 89 + 16 + + 41 * - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4495
SELECT + 20 / + ( + + 26 ) + 89 + 16 + + 41 * - COUNT ( * )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT ALL - 56 - CAST( NULL AS SIGNED ) - CASE + 34 WHEN - ( + 49 ) * CAST( NULL AS SIGNED ) * + 89 - - + 43 THEN - 14 WHEN 68 THEN 96 + - 18 END + 81 / - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL - 56 - CAST ( NULL AS INTEGER ) - CASE + 34 WHEN - ( + 49 ) * CAST ( NULL AS INTEGER ) * + 89 - - + 43 THEN - 14 WHEN 68 THEN 96 + - 18 END + 81 / - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT 59 * - SUM( DISTINCT - 67 ) + + 48 AS col2
----
4001

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT 59 * - SUM ( DISTINCT - 67 ) + + 48 AS col2
----
4001

query I rowsort
SELECT - 70 * - 81 + 6 AS col0
----
5676

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL - + COUNT( DISTINCT + 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL - + COUNT ( DISTINCT + 29 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4500
SELECT + 82 * - + 79 DIV + COUNT( * ) + + 82
----
-6396

skipif mysql # not compatible
query I rowsort label-4500
SELECT + 82 * - + 79 / + COUNT ( * ) + + 82
----
-6396

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT 43 + NULLIF ( + + 90, - COUNT( * ) ) * COALESCE ( + + 48, - + 50 * + CASE - - 46 WHEN - 28 * + + 50 + 68 THEN NULL WHEN + 72 - - 88 THEN 24 WHEN + MAX( 70 ) THEN 0 WHEN - ( 73 ) THEN NULL END ) AS col0
----
4363

skipif mysql # not compatible
query I rowsort label-4501
SELECT 43 + NULLIF ( + + 90, - COUNT ( * ) ) * COALESCE ( + + 48, - + 50 * + CASE - - 46 WHEN - 28 * + + 50 + 68 THEN NULL WHEN + 72 - - 88 THEN 24 WHEN + MAX ( 70 ) THEN 0 WHEN - ( 73 ) THEN NULL END ) AS col0
----
4363

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT - MAX( ALL - - 46 ) * - 72
----
3312

skipif mysql # not compatible
query I rowsort label-4502
SELECT - MAX ( ALL - - 46 ) * - 72
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT DISTINCT - + COUNT( * ) * - 20 * - + COUNT( - 12 ) * - 36 + + - 36 AS col1
----
684

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT - + COUNT ( * ) * - 20 * - + COUNT ( - 12 ) * - 36 + + - 36 AS col1
----
684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4504
SELECT COALESCE ( + CASE - 93 WHEN - + COALESCE ( - 80, + 63 ) DIV + 76 * + 32 - + 84 THEN 31 * - - 42 DIV + - 8 * - 43 + - 21 * - NULLIF ( + COUNT( * ) - 63, - 82 * 85 ) WHEN 37 DIV CAST( NULL AS SIGNED ) THEN NULL ELSE + ( CASE WHEN ( + 37 ) < NULL THEN NULL ELSE - 44 + 49 END ) END, 5 * 72, - 20 )
----
5

skipif mysql # not compatible
query I rowsort label-4504
SELECT COALESCE ( + CASE - 93 WHEN - + COALESCE ( - 80, + 63 ) / + 76 * + 32 - + 84 THEN 31 * - - 42 / + - 8 * - 43 + - 21 * - NULLIF ( + COUNT ( * ) - 63, - 82 * 85 ) WHEN 37 / CAST ( NULL AS INTEGER ) THEN NULL ELSE + ( CASE WHEN ( + 37 ) < NULL THEN NULL ELSE - 44 + 49 END ) END, 5 * 72, - 20 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL - ( 76 ) + + ( + COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL - ( 76 ) + + ( + COUNT ( * ) )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4506
SELECT DISTINCT - COUNT( * ) * - - CAST( NULL AS DECIMAL ) + + 40 / + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT - COUNT ( * ) * - - CAST ( NULL AS REAL ) + + 40 / + 65 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-4507
SELECT ALL + + ( + NULLIF ( - 47, - 37 ) ) + - - 96 - - 37 DIV 30 + 59 AS col1, MAX( + CAST( + 17 AS SIGNED ) ) DIV + + 28 + + COALESCE ( CASE CAST( - 92 AS DECIMAL ) WHEN 81 THEN - 77 ELSE ( COUNT( * ) ) END, 25, + 84 + 39 ) AS col1
----
109
1

skipif mysql # not compatible
query II rowsort label-4507
SELECT ALL + + ( + NULLIF ( - 47, - 37 ) ) + - - 96 - - 37 / 30 + 59 AS col1, MAX ( + CAST ( + 17 AS INTEGER ) ) / + + 28 + + COALESCE ( CASE CAST ( - 92 AS REAL ) WHEN 81 THEN - 77 ELSE ( COUNT ( * ) ) END, 25, + 84 + 39 ) AS col1
----
109
1

query I rowsort
SELECT - + NULLIF ( + ( - 45 ), ( ( + NULLIF ( - 33, + + 27 ) ) ) )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4509
SELECT DISTINCT - 19 * COALESCE ( + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ), + 46 * + COUNT( * ) * + 15 + 29 * - COUNT( * ) ) * + + 70 * + 71
----
0

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - 19 * COALESCE ( + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ), + 46 * + COUNT ( * ) * + 15 + 29 * - COUNT ( * ) ) * + + 70 * + 71
----
0

query I rowsort
SELECT 26 - - 18
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4511
SELECT - 53 AS col0, COUNT( * ) + + CAST( NULL AS SIGNED ) col2
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-4511
SELECT - 53 AS col0, COUNT ( * ) + + CAST ( NULL AS INTEGER ) col2
----
-53
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4512
SELECT DISTINCT + CAST( + + COUNT( * ) AS SIGNED ) * - - 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT + CAST ( + + COUNT ( * ) AS INTEGER ) * - - 10 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4513
SELECT ALL - 16 + + COUNT( * ) DIV 53 * 16 * - CAST( - COUNT( * ) AS SIGNED ) * CAST( - + 61 AS SIGNED ) * + 68 * 10 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL - 16 + + COUNT ( * ) / 53 * 16 * - CAST ( - COUNT ( * ) AS INTEGER ) * CAST ( - + 61 AS INTEGER ) * + 68 * 10 AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-4514
SELECT 45 DIV 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4514
SELECT 45 / 92 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT MAX( ALL + 5 ) * + + 90
----
450

skipif mysql # not compatible
query I rowsort label-4515
SELECT MAX ( ALL + 5 ) * + + 90
----
450

query I rowsort
SELECT ALL + 43 + - 24 AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4517
SELECT 51 * - 79 * + 59, + 73 + - CAST( + 70 AS SIGNED ) + 82 DIV 56 AS col0
----
-237711
4

skipif mysql # not compatible
query II rowsort label-4517
SELECT 51 * - 79 * + 59, + 73 + - CAST ( + 70 AS INTEGER ) + 82 / 56 AS col0
----
-237711
4

query I rowsort
SELECT ALL 13 + + ( + + 64 ) * - - 9
----
589

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4519
SELECT DISTINCT 71 DIV NULLIF ( - 88, + + COALESCE ( CAST( + 95 AS DECIMAL ), 75 + - MIN( DISTINCT + 92 ) + + 32, - - 83 ) * - - 48 + ( 7 ) * - COUNT( * ) ) DIV 22 col1
----
0

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT 71 / NULLIF ( - 88, + + COALESCE ( CAST ( + 95 AS REAL ), 75 + - MIN ( DISTINCT + 92 ) + + 32, - - 83 ) * - - 48 + ( 7 ) * - COUNT ( * ) ) / 22 col1
----
0

query I rowsort
SELECT DISTINCT - 98 - - + 67
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT - COUNT( 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-4521
SELECT - COUNT ( 49 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT 60 + NULLIF ( + ( - - 66 ), + AVG ( + - 4 ) ) * + + MIN( 50 )
----
3360

skipif mysql # not compatible
query I rowsort label-4522
SELECT 60 + NULLIF ( + ( - - 66 ), + AVG ( + - 4 ) ) * + + MIN ( 50 )
----
3360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4523
SELECT 17 * 67 + + 63 + + 70 * COALESCE ( - 90, - + 20, + 30 ) * + 13 + - COUNT( * ) - - + MAX( ALL 55 ) * CASE - CAST( NULL AS SIGNED ) WHEN 50 / 37 + + COUNT( * ) THEN - 73 / + 92 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT 17 * 67 + + 63 + + 70 * COALESCE ( - 90, - + 20, + 30 ) * + 13 + - COUNT ( * ) - - + MAX ( ALL 55 ) * CASE - CAST ( NULL AS INTEGER ) WHEN 50 / 37 + + COUNT ( * ) THEN - 73 / + 92 END AS col2
----
NULL

query I rowsort
SELECT + 58 + ( + 32 ) * - 19
----
-550

query I rowsort
SELECT DISTINCT 64 * 68
----
4352

onlyif mysql # DIV for integer division: 
query II rowsort label-4526
SELECT + COALESCE ( - 38, 22 DIV + 26 ) * + 81 * - 79, - 18 AS col2
----
243162
-18

skipif mysql # not compatible
query II rowsort label-4526
SELECT + COALESCE ( - 38, 22 / + 26 ) * + 81 * - 79, - 18 AS col2
----
243162
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT COUNT( * ) * - + 54
----
-54

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT COUNT ( * ) * - + 54
----
-54

query I rowsort
SELECT ALL + NULLIF ( - 59, - + 61 )
----
-59

query I rowsort
SELECT DISTINCT + + NULLIF ( + + 55, - 9 )
----
55

query II rowsort
SELECT ALL + 47 AS col0, 31
----
47
31

query I rowsort
SELECT + 72 * + - 5
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT - + 48 * COUNT( * ) * - - 60 * - 30 AS col0
----
86400

skipif mysql # not compatible
query I rowsort label-4532
SELECT - + 48 * COUNT ( * ) * - - 60 * - 30 AS col0
----
86400

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL + 53 * - 10 + + 66 + - COUNT( * ) * + 86 + + 64 + - + COUNT( * ) + + 8 + + ( - + 19 ) AS col0
----
-498

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL + 53 * - 10 + + 66 + - COUNT ( * ) * + 86 + + 64 + - + COUNT ( * ) + + 8 + + ( - + 19 ) AS col0
----
-498

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL - + 33 * 81 * + COUNT( * ) + - + 86
----
-2759

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL - + 33 * 81 * + COUNT ( * ) + - + 86
----
-2759

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL - NULLIF ( - 58, 4 / - - 36 * 38 ) * 31 + + COUNT( * )
----
1799

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL - NULLIF ( - 58, 4 / - - 36 * 38 ) * 31 + + COUNT ( * )
----
1799

query I rowsort
SELECT - - ( 35 ) col1
----
35

query I rowsort
SELECT + 74 + + + ( - - 68 ) AS col1
----
142

query I rowsort
SELECT - 44 * + 75 + + ( + 32 )
----
-3268

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + MIN( ALL - 2 ) + MIN( DISTINCT - 43 )
----
-45

skipif mysql # not compatible
query I rowsort label-4539
SELECT + MIN ( ALL - 2 ) + MIN ( DISTINCT - 43 )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4540
SELECT - + 46 - + 96 * + - CAST( NULL AS SIGNED ), ( - COUNT( * ) ) * - COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4540
SELECT - + 46 - + 96 * + - CAST ( NULL AS INTEGER ), ( - COUNT ( * ) ) * - COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT + 25 + ( - - CAST( NULL AS SIGNED ) ) + + 21 * 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT + 25 + ( - - CAST ( NULL AS INTEGER ) ) + + 21 * 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ALL - 11 + - COUNT( - 59 ) + + 97 * 6 * + 45 + ( + COUNT( * ) )
----
26179

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL - 11 + - COUNT ( - 59 ) + + 97 * 6 * + 45 + ( + COUNT ( * ) )
----
26179

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT - COUNT( * ) + + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4543
SELECT - COUNT ( * ) + + + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT NULLIF ( + 58, + 23 + - 84 ) AS col1
----
58

query II rowsort
SELECT DISTINCT + 40 * - 45 AS col0, 12 AS col1
----
-1800
12

query I rowsort
SELECT - 41 + - 80
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4547
SELECT - ( COUNT( * ) ) * - CAST( 52 AS SIGNED ) + - - 75
----
127

skipif mysql # not compatible
query I rowsort label-4547
SELECT - ( COUNT ( * ) ) * - CAST ( 52 AS INTEGER ) + - - 75
----
127

query I rowsort
SELECT DISTINCT ( + + 48 )
----
48

query I rowsort
SELECT ALL NULLIF ( 61, + 28 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4550
SELECT ALL CASE + COUNT( * ) WHEN + - COALESCE ( + 58, - 71 ) THEN - - MIN( 75 ) * - ( + 80 ) END, - 1 DIV 48 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4550
SELECT ALL CASE + COUNT ( * ) WHEN + - COALESCE ( + 58, - 71 ) THEN - - MIN ( 75 ) * - ( + 80 ) END, - 1 / 48 AS col0
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4551
SELECT ALL ( + + COALESCE ( 15, 21, 59 ) ) DIV - - 91
----
0

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL ( + + COALESCE ( 15, 21, 59 ) ) / - - 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - - ( + + 16 ) * - 24 - 46 * + COUNT( * ) col0
----
-430

skipif mysql # not compatible
query I rowsort label-4552
SELECT - - ( + + 16 ) * - 24 - 46 * + COUNT ( * ) col0
----
-430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4553
SELECT ALL COUNT( * ) * ( 94 ) DIV 32 * - NULLIF ( + 23, 10 * - + 48 ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL COUNT ( * ) * ( 94 ) / 32 * - NULLIF ( + 23, 10 * - + 48 ) col1
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4554
SELECT + 90 DIV 78 * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4554
SELECT + 90 / 78 * + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT 77 * - 26 + + + 89 AS col0
----
-1913

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL - 84 * 5 + - - COUNT( * ) AS col0
----
-419

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL - 84 * 5 + - - COUNT ( * ) AS col0
----
-419

query I rowsort
SELECT + 92 + 45 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT DISTINCT - - 24 * + + CASE 29 WHEN 7 THEN - + 4 + COUNT( ALL + 22 ) ELSE - CASE - + 92 WHEN + 48 + - 25 THEN 61 * - ( 36 ) + - 8 / - 6 WHEN COUNT( * ) * COUNT( * ) + COUNT( * ) * + COUNT( * ) THEN NULL END END + COALESCE ( + 11, - SUM( 90 ) * 3 ) * + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT - - 24 * + + CASE 29 WHEN 7 THEN - + 4 + COUNT ( ALL + 22 ) ELSE - CASE - + 92 WHEN + 48 + - 25 THEN 61 * - ( 36 ) + - 8 / - 6 WHEN COUNT ( * ) * COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) THEN NULL END END + COALESCE ( + 11, - SUM ( 90 ) * 3 ) * + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT DISTINCT 6 * 83 + - COUNT( * )
----
497

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT 6 * 83 + - COUNT ( * )
----
497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4560
SELECT NULLIF ( + CASE + 66 WHEN - ( + ( - 37 ) ) + - 85 + - 16 * - CAST( 49 AS SIGNED ) * + 23 - 33 THEN - 80 END, + MAX( ALL - 39 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT NULLIF ( + CASE + 66 WHEN - ( + ( - 37 ) ) + - 85 + - 16 * - CAST ( 49 AS INTEGER ) * + 23 - 33 THEN - 80 END, + MAX ( ALL - 39 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT ALL + + 26 * + 27 + + CAST( + 27 AS SIGNED ) * + CAST( - - 21 AS SIGNED ) AS col2
----
1269

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + + 26 * + 27 + + CAST ( + 27 AS INTEGER ) * + CAST ( - - 21 AS INTEGER ) AS col2
----
1269

query II rowsort
SELECT ( 16 ) AS col1, - 34 col0
----
16
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT - MIN( - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-4563
SELECT - MIN ( - 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT + - MAX( 78 ) + + COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4564
SELECT + - MAX ( 78 ) + + COUNT ( * ) AS col1
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT ALL - 70 * ( + 13 ) * - NULLIF ( 32, - + 34 DIV - - 88 + + 49 ) - + + 86 + + - 87 DIV - 60
----
29035

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL - 70 * ( + 13 ) * - NULLIF ( 32, - + 34 / - - 88 + + 49 ) - + + 86 + + - 87 / - 60
----
29035

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - SUM( ALL + 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4566
SELECT - SUM ( ALL + 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT + + 0 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4567
SELECT + + 0 + + COUNT ( * )
----
1

query I rowsort
SELECT - ( - + 12 )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4569
SELECT ALL 7 DIV + 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL 7 / + 39 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT - CAST( - - 72 AS SIGNED ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-4570
SELECT - CAST ( - - 72 AS INTEGER ) col0
----
-72

query I rowsort
SELECT ALL CASE 20 WHEN + 70 THEN - 46 WHEN - - 4 + - 74 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT DISTINCT CASE WHEN COUNT( * ) <> ( NULL ) THEN 83 ELSE NULL END * + 49 * - 96 - - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT CASE WHEN COUNT ( * ) <> ( NULL ) THEN 83 ELSE NULL END * + 49 * - 96 - - + 87
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4573
SELECT ALL 60 * 55 * - + ( + - COALESCE ( COALESCE ( + - 37, - SUM( ALL - ( + ( + ( 50 ) ) ) ), - 49 + - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) ), + - 5 ) ) AS col1
----
-122100

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL 60 * 55 * - + ( + - COALESCE ( COALESCE ( + - 37, - SUM ( ALL - ( + ( + ( 50 ) ) ) ), - 49 + - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) ), + - 5 ) ) AS col1
----
-122100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4574
SELECT + 89 * COALESCE ( COUNT( DISTINCT 95 ), ( + 92 ) ) * CAST( + 70 AS SIGNED ) AS col0, 70 AS col1
----
6230
70

skipif mysql # not compatible
query II rowsort label-4574
SELECT + 89 * COALESCE ( COUNT ( DISTINCT 95 ), ( + 92 ) ) * CAST ( + 70 AS INTEGER ) AS col0, 70 AS col1
----
6230
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4575
SELECT - ( + - COUNT( * ) ) * + 16, ( + - MAX( ALL - 72 ) ) AS col0
----
16
72

skipif mysql # not compatible
query II rowsort label-4575
SELECT - ( + - COUNT ( * ) ) * + 16, ( + - MAX ( ALL - 72 ) ) AS col0
----
16
72

query I rowsort
SELECT - 24 * ( + 82 )
----
-1968

query I rowsort
SELECT 70 - + + 82
----
-12

query II rowsort
SELECT 96, - 17 col1
----
96
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4579
SELECT ALL 35, - 63 * + COUNT( * ) + - + 83 + CAST( COUNT( * ) AS SIGNED ) + + + 88 AS col0
----
35
-57

skipif mysql # not compatible
query II rowsort label-4579
SELECT ALL 35, - 63 * + COUNT ( * ) + - + 83 + CAST ( COUNT ( * ) AS INTEGER ) + + + 88 AS col0
----
35
-57

query I rowsort
SELECT 96 - + 7 AS col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT 5 - + 87 + + 45 * + 84 * - + 35 * CAST( + ( + CAST( + 84 AS SIGNED ) ) AS SIGNED ) AS col1
----
-11113282

skipif mysql # not compatible
query I rowsort label-4581
SELECT 5 - + 87 + + 45 * + 84 * - + 35 * CAST ( + ( + CAST ( + 84 AS INTEGER ) ) AS INTEGER ) AS col1
----
-11113282

query I rowsort
SELECT 11 * - NULLIF ( + + 11, + 74 ) AS col2
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-4583
SELECT - 49, ( + + ( + COUNT( * ) ) ) + - CASE 41 WHEN - 23 / - 72 THEN - + 54 WHEN 41 THEN NULL WHEN + + 85 THEN NULL END AS col0
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-4583
SELECT - 49, ( + + ( + COUNT ( * ) ) ) + - CASE 41 WHEN - 23 / - 72 THEN - + 54 WHEN 41 THEN NULL WHEN + + 85 THEN NULL END AS col0
----
-49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL + COALESCE ( MIN( + 53 ), - 2 ) + 25
----
78

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL + COALESCE ( MIN ( + 53 ), - 2 ) + 25
----
78

query I rowsort
SELECT + - ( 52 ) AS col2
----
-52

query I rowsort
SELECT 5 * NULLIF ( 29, 14 ) + - COALESCE ( + - 56, - 30 ) AS col2
----
201

query I rowsort
SELECT - 96 * + 49 + 93 AS col1
----
-4611

query I rowsort
SELECT + 1 - - + 72 AS col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4589
SELECT 95 + - 43 + + 79 DIV 11
----
59

skipif mysql # not compatible
query I rowsort label-4589
SELECT 95 + - 43 + + 79 / 11
----
59

query I rowsort
SELECT - 0 * - 43 * - - 49 - 92 + - 76 + - 45 AS col0
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT ALL - + CASE + + 14 WHEN - 49 + + CAST( - - 18 AS SIGNED ) THEN 50 + 20 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL - + CASE + + 14 WHEN - 49 + + CAST ( - - 18 AS INTEGER ) THEN 50 + 20 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4592
SELECT ALL - CAST( NULL AS SIGNED ) + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - CAST ( NULL AS INTEGER ) + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT - - 17 + - COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - - 17 + - COUNT ( * ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT - 81 + - 34 - + COUNT( * ) * + 84 AS col1
----
-199

skipif mysql # not compatible
query I rowsort label-4594
SELECT - 81 + - 34 - + COUNT ( * ) * + 84 AS col1
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT CAST( + - 76 AS SIGNED ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-4595
SELECT CAST ( + - 76 AS INTEGER ) col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4596
SELECT - - ( + 10 ) * - + 17 + 36 + ( - CAST( + + SUM( ALL 1 ) AS SIGNED ) ) * 93 AS col0
----
-227

skipif mysql # not compatible
query I rowsort label-4596
SELECT - - ( + 10 ) * - + 17 + 36 + ( - CAST ( + + SUM ( ALL 1 ) AS INTEGER ) ) * 93 AS col0
----
-227

query I rowsort
SELECT + 48 * + 74
----
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT + 17 * ( + SUM( + - 67 ) )
----
-1139

skipif mysql # not compatible
query I rowsort label-4598
SELECT + 17 * ( + SUM ( + - 67 ) )
----
-1139

onlyif mysql # DIV for integer division: 
query I rowsort label-4599
SELECT 43 DIV 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4599
SELECT 43 / 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL + 40 * + MAX( 97 ) + + 94 AS col1
----
3974

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL + 40 * + MAX ( 97 ) + + 94 AS col1
----
3974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT DISTINCT - CASE + CAST( NULL AS SIGNED ) WHEN - 73 / - - 69 THEN - 44 WHEN 20 THEN 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT - CASE + CAST ( NULL AS INTEGER ) WHEN - 73 / - - 69 THEN - 44 WHEN 20 THEN 78 END
----
NULL

query I rowsort
SELECT ALL - - ( - + 87 ) AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4603
SELECT - MIN( + 42 ) * - 32 * 14 + - - 67 - + 46 + 55 / - CASE + CASE ( CASE - - 17 WHEN 10 THEN - - COUNT( * ) END ) WHEN 91 THEN + MIN( ALL 95 ) WHEN CAST( 53 AS SIGNED ) * - 56 THEN NULL ELSE NULL END WHEN + CAST( 4 AS DECIMAL ) THEN + 98 * 26 - + 96 * + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT - MIN ( + 42 ) * - 32 * 14 + - - 67 - + 46 + 55 / - CASE + CASE ( CASE - - 17 WHEN 10 THEN - - COUNT ( * ) END ) WHEN 91 THEN + MIN ( ALL 95 ) WHEN CAST ( 53 AS INTEGER ) * - 56 THEN NULL ELSE NULL END WHEN + CAST ( 4 AS REAL ) THEN + 98 * 26 - + 96 * + 68 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4604
SELECT 64 * + 30 * ( - + 90 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT 64 * + 30 * ( - + 90 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4605
SELECT ALL - COALESCE ( ( 75 ), + 59, 43 * + + 42 + - - 13 + COUNT( * ) + + CAST( NULL AS SIGNED ) * + - 23 DIV + + NULLIF ( 27, 12 ) * - 66 * + + 12 + - - NULLIF ( ( + 86 ), + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * 46 ) + COUNT( * ) * - COUNT( * ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - COALESCE ( ( 75 ), + 59, 43 * + + 42 + - - 13 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + - 23 / + + NULLIF ( 27, 12 ) * - 66 * + + 12 + - - NULLIF ( ( + 86 ), + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * 46 ) + COUNT ( * ) * - COUNT ( * ) ) AS col1
----
-75

query II rowsort
SELECT 63 col0, - 62
----
63
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-4607
SELECT 54 * - COUNT( * ) AS col0, 58 col0
----
-54
58

skipif mysql # not compatible
query II rowsort label-4607
SELECT 54 * - COUNT ( * ) AS col0, 58 col0
----
-54
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT MAX( + 64 ) + 20
----
84

skipif mysql # not compatible
query I rowsort label-4608
SELECT MAX ( + 64 ) + 20
----
84

query I rowsort
SELECT 15 - + 6 - - 92
----
101

query I rowsort
SELECT DISTINCT 41 * + - 72
----
-2952

query II rowsort
SELECT ALL 80 AS col0, + 17 col0
----
80
17

query I rowsort
SELECT ALL 76 + - - 99 + - - 5 * 1 col1
----
180

query I rowsort
SELECT 5 + 17 AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4614
SELECT DISTINCT 5 + - 82 DIV - + COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT 5 + - 82 / - + COUNT ( * ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4615
SELECT - 92 col2, CAST( 88 AS SIGNED ) AS col2
----
-92
88

skipif mysql # not compatible
query II rowsort label-4615
SELECT - 92 col2, CAST ( 88 AS INTEGER ) AS col2
----
-92
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4616
SELECT COUNT( * ) + + 26 * CAST( NULL AS DECIMAL ) + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT COUNT ( * ) + + 26 * CAST ( NULL AS REAL ) + 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4617
SELECT MIN( - 12 ) * + 30 + COALESCE ( 50, MIN( ALL + 26 ) + + 40, + COUNT( * ) * - ( - 18 ) DIV - 94 + - 89 ) - 91 AS col0, 32 + - 40
----
-401
-8

skipif mysql # not compatible
query II rowsort label-4617
SELECT MIN ( - 12 ) * + 30 + COALESCE ( 50, MIN ( ALL + 26 ) + + 40, + COUNT ( * ) * - ( - 18 ) / - 94 + - 89 ) - 91 AS col0, 32 + - 40
----
-401
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4618
SELECT 90 AS col1, CAST( NULL AS SIGNED )
----
90
NULL

skipif mysql # not compatible
query II rowsort label-4618
SELECT 90 AS col1, CAST ( NULL AS INTEGER )
----
90
NULL

query I rowsort
SELECT 33 + 70 * + 82 + 42 + + 36 AS col1
----
5851

query II rowsort
SELECT DISTINCT - 92 col0, + 69
----
-92
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4621
SELECT - SUM( ALL - CAST( NULL AS SIGNED ) ) + - - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT - SUM ( ALL - CAST ( NULL AS INTEGER ) ) + - - 88
----
NULL

query I rowsort
SELECT ALL + + COALESCE ( + - 30, + - 51 * 50 + + 20, - 30 ) + 76 * - 67 AS col1
----
-5122

query II rowsort
SELECT ALL - + 21 AS col0, + 23 * - + 42
----
-21
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT + + SUM( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4624
SELECT + + SUM ( - 32 )
----
-32

query II rowsort
SELECT ALL - 33, 93 * + - 9 AS col1
----
-33
-837

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT 91 * 23 * - - COUNT( * ) AS col2
----
2093

skipif mysql # not compatible
query I rowsort label-4626
SELECT 91 * 23 * - - COUNT ( * ) AS col2
----
2093

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT - 77 DIV + 23 - 29 * + 98
----
-2845

skipif mysql # not compatible
query I rowsort label-4627
SELECT - 77 / + 23 - 29 * + 98
----
-2845

query I rowsort
SELECT - - 82 * - - 8 + - ( - 28 ) + - 10 AS col0
----
674

query I rowsort
SELECT 12 + - 56 col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-4630
SELECT ALL - 71 col0, + 86 * + 2 * 21 * 90 + - COUNT( * )
----
-71
325079

skipif mysql # not compatible
query II rowsort label-4630
SELECT ALL - 71 col0, + 86 * + 2 * 21 * 90 + - COUNT ( * )
----
-71
325079

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT + 56 * - 70 + + 4 * + - 56 + - 49 - - - 67 DIV ( 3 ) + NULLIF ( 27, - 57 )
----
-4188

skipif mysql # not compatible
query I rowsort label-4631
SELECT + 56 * - 70 + + 4 * + - 56 + - 49 - - - 67 / ( 3 ) + NULLIF ( 27, - 57 )
----
-4188

query II rowsort
SELECT - 21 col2, - 39
----
-21
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4633
SELECT SUM( DISTINCT 58 ) + - - ( + + 80 ) * - 90 + + 15 - CAST( - + ( - AVG ( + + ( + ( - 51 ) ) ) ) AS SIGNED ) + + CAST( 42 AS SIGNED )
----
-7034

skipif mysql # not compatible
query I rowsort label-4633
SELECT SUM ( DISTINCT 58 ) + - - ( + + 80 ) * - 90 + + 15 - CAST ( - + ( - AVG ( + + ( + ( - 51 ) ) ) ) AS INTEGER ) + + CAST ( 42 AS INTEGER )
----
-7034

query II rowsort
SELECT DISTINCT - + 47 AS col0, + 62 AS col1
----
-47
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL - MIN( 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL - MIN ( 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT + + 53 * - 66 * - 89 - - + NULLIF ( - + 4, - + COUNT( * ) )
----
311318

skipif mysql # not compatible
query I rowsort label-4636
SELECT + + 53 * - 66 * - 89 - - + NULLIF ( - + 4, - + COUNT ( * ) )
----
311318

onlyif mysql # DIV for integer division: 
query I rowsort label-4637
SELECT DISTINCT + 7 DIV - 33 * - + 41 * - + 17
----
0

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT + 7 / - 33 * - + 41 * - + 17
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4638
SELECT 90 * CASE 92 WHEN - 87 THEN NULL WHEN - + 77 THEN COALESCE ( - + CASE + - 0 WHEN + 28 * - 20 + 20 - COALESCE ( - 2, - COUNT( * ) + - ( - ( - 95 ) ) * - CASE - AVG ( ALL + 36 ) + ( - 31 + 13 ) WHEN 86 THEN + ( - CAST( COUNT( * ) AS SIGNED ) ) + + 62 WHEN NULLIF ( + COUNT( * ), 93 ) THEN NULL ELSE 64 + - COUNT( * ) END, + 18 + NULLIF ( 17, - ( 24 ) * CASE + 74 WHEN 6 THEN CASE - 22 WHEN COUNT( * ) THEN 16 WHEN 17 + + 4 THEN 65 ELSE NULL END WHEN - 20 THEN NULL ELSE NULL END ) ) THEN + 76 END, - 57 * - ( + COUNT( * ) ) - 21 ) ELSE 44 * - 0 END
----
0

skipif mysql # not compatible
query I rowsort label-4638
SELECT 90 * CASE 92 WHEN - 87 THEN NULL WHEN - + 77 THEN COALESCE ( - + CASE + - 0 WHEN + 28 * - 20 + 20 - COALESCE ( - 2, - COUNT ( * ) + - ( - ( - 95 ) ) * - CASE - AVG ( ALL + 36 ) + ( - 31 + 13 ) WHEN 86 THEN + ( - CAST ( COUNT ( * ) AS INTEGER ) ) + + 62 WHEN NULLIF ( + COUNT ( * ), 93 ) THEN NULL ELSE 64 + - COUNT ( * ) END, + 18 + NULLIF ( 17, - ( 24 ) * CASE + 74 WHEN 6 THEN CASE - 22 WHEN COUNT ( * ) THEN 16 WHEN 17 + + 4 THEN 65 ELSE NULL END WHEN - 20 THEN NULL ELSE NULL END ) ) THEN + 76 END, - 57 * - ( + COUNT ( * ) ) - 21 ) ELSE 44 * - 0 END
----
0

query I rowsort
SELECT + 25 * 72 + + + 58 AS col1
----
1858

query I rowsort
SELECT + 42 + - 89 AS col2
----
-47

query I rowsort
SELECT ALL + 63 * 18 AS col0
----
1134

onlyif mysql # DIV for integer division: 
query I rowsort label-4642
SELECT - NULLIF ( - 36, + ( - + 55 ) ) DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-4642
SELECT - NULLIF ( - 36, + ( - + 55 ) ) / + 73
----
0

query I rowsort
SELECT - 89 * - 89 col0
----
7921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4644
SELECT ALL 0 + COALESCE ( - - 59, - CAST( + - 31 AS SIGNED ) + + MAX( DISTINCT 33 ) ) * + 18 * - 49 AS col2
----
-52038

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL 0 + COALESCE ( - - 59, - CAST ( + - 31 AS INTEGER ) + + MAX ( DISTINCT 33 ) ) * + 18 * - 49 AS col2
----
-52038

query I rowsort
SELECT ALL + 63 + 46
----
109

query I rowsort
SELECT DISTINCT 35 + - ( - + 11 ) + - + 12 * - 18 AS col1
----
262

query I rowsort
SELECT + 58 * 85 AS col0
----
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT - MAX( DISTINCT + - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-4648
SELECT - MAX ( DISTINCT + - 22 )
----
22

query II rowsort
SELECT - 22 - 89, 13 AS col1
----
-111
13

query I rowsort
SELECT + 28 * - - 47 * + - 69 AS col0
----
-90804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT ALL - - 21 + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - - 21 + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL + 25 + 55
----
80

query II rowsort
SELECT + - 45 - 23 col0, 68
----
-68
68

query I rowsort
SELECT DISTINCT 28 * + 8
----
224

query I rowsort
SELECT ALL + 65 - 90
----
-25

query I rowsort
SELECT + COALESCE ( + 99, COALESCE ( + 49, 69 * + - 76 ) * 32 ) * - + 99 AS col1
----
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT + 72 * - COUNT( DISTINCT + 14 ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-4657
SELECT + 72 * - COUNT ( DISTINCT + 14 ) col0
----
-72

query I rowsort
SELECT ALL + - ( + 93 ) col1
----
-93

query II rowsort
SELECT - 99 - + 26 AS col0, 50 AS col1
----
-125
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT + - MAX( - 92 ) * - 2 col2
----
-184

skipif mysql # not compatible
query I rowsort label-4660
SELECT + - MAX ( - 92 ) * - 2 col2
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT - - 88 * 81 + + 60 * + MIN( DISTINCT - + 34 ) * + 37 * + - ( - 19 ) AS col1
----
-1426992

skipif mysql # not compatible
query I rowsort label-4661
SELECT - - 88 * 81 + + 60 * + MIN ( DISTINCT - + 34 ) * + 37 * + - ( - 19 ) AS col1
----
-1426992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4662
SELECT DISTINCT + + COUNT( - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT + + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT DISTINCT - 91 * - 69 * + 32 AS col0
----
200928

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL - 58 * - 86 * + COUNT( * ) + - 97 AS col2
----
4891

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL - 58 * - 86 * + COUNT ( * ) + - 97 AS col2
----
4891

query I rowsort
SELECT - 88 * - - ( - + 37 )
----
3256

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT ALL 58 * - CASE COUNT( * ) WHEN + - 77 * - 34 THEN NULL WHEN ( COALESCE ( + + CASE - 5 WHEN + 93 + - + 76 + + + 4 / COUNT( * ) THEN NULL ELSE 80 * - ( + 5 ) + + COUNT( * ) * + 83 END, 83, + COUNT( * ) ) ) THEN - 60 * - 0 ELSE - COALESCE ( - 74, 37 ) END * COALESCE ( - 44, + 56 + - 86 )
----
188848

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL 58 * - CASE COUNT ( * ) WHEN + - 77 * - 34 THEN NULL WHEN ( COALESCE ( + + CASE - 5 WHEN + 93 + - + 76 + + + 4 / COUNT ( * ) THEN NULL ELSE 80 * - ( + 5 ) + + COUNT ( * ) * + 83 END, 83, + COUNT ( * ) ) ) THEN - 60 * - 0 ELSE - COALESCE ( - 74, 37 ) END * COALESCE ( - 44, + 56 + - 86 )
----
188848

query II rowsort
SELECT + 0 AS col0, - 58
----
0
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT COUNT( * ) * 56 + 35 - + 99
----
-8

skipif mysql # not compatible
query I rowsort label-4668
SELECT COUNT ( * ) * 56 + 35 - + 99
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4669
SELECT - NULLIF ( - + COUNT( + - 72 ), - 78 ) DIV - + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4669
SELECT - NULLIF ( - + COUNT ( + - 72 ), - 78 ) / - + 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT + COUNT( * ) + - 91 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4670
SELECT + COUNT ( * ) + - 91 AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT DISTINCT COALESCE ( + + NULLIF ( 48, + - 35 * - 97 + - 0 ), + + COUNT( * ) ) * - + 29 + - - 83 + + CAST( + + 8 AS SIGNED )
----
-1301

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT COALESCE ( + + NULLIF ( 48, + - 35 * - 97 + - 0 ), + + COUNT ( * ) ) * - + 29 + - - 83 + + CAST ( + + 8 AS INTEGER )
----
-1301

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT NULLIF ( ( + + 38 ), 80 * - COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-4672
SELECT NULLIF ( ( + + 38 ), 80 * - COUNT ( * ) )
----
38

query I rowsort
SELECT NULLIF ( + + 26, - 76 * + 78 * 38 - + - 72 * - 59 + + 24 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT DISTINCT 46 * + COUNT( * ) + - + 82
----
-36

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT 46 * + COUNT ( * ) + - + 82
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4675
SELECT ALL + COUNT( * ) * + 18 * 10, + 69 AS col0
----
180
69

skipif mysql # not compatible
query II rowsort label-4675
SELECT ALL + COUNT ( * ) * + 18 * 10, + 69 AS col0
----
180
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT - 59 + - COUNT( * ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-4676
SELECT - 59 + - COUNT ( * ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL + 80 * + COUNT( + - 49 ) * + 10 + - 8 * 24 * - COUNT( * ) AS col1
----
992

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + 80 * + COUNT ( + - 49 ) * + 10 + - 8 * 24 * - COUNT ( * ) AS col1
----
992

query I rowsort
SELECT ALL + 32 * - 49
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT - 23 + - - CASE 10 WHEN + 98 * + - 57 - + 43 + 23 + + + SUM( DISTINCT + 92 ) THEN 61 * + 25 WHEN COUNT( * ) THEN + 50 WHEN NULLIF ( - 68, - + 66 ) + - + ( - 70 ) * 54 THEN 55 END + ( 29 ) * - 71 * 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT - 23 + - - CASE 10 WHEN + 98 * + - 57 - + 43 + 23 + + + SUM ( DISTINCT + 92 ) THEN 61 * + 25 WHEN COUNT ( * ) THEN + 50 WHEN NULLIF ( - 68, - + 66 ) + - + ( - 70 ) * 54 THEN 55 END + ( 29 ) * - 71 * 80 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4680
SELECT - COUNT( * ) - - 52 * - CAST( 67 AS SIGNED )
----
-3485

skipif mysql # not compatible
query I rowsort label-4680
SELECT - COUNT ( * ) - - 52 * - CAST ( 67 AS INTEGER )
----
-3485

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT ALL - 60 + COUNT( * ) + - 5 + 17 * - + MAX( - - ( + 43 ) )
----
-795

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL - 60 + COUNT ( * ) + - 5 + 17 * - + MAX ( - - ( + 43 ) )
----
-795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4682
SELECT ALL COALESCE ( - + ( - + ( + 98 ) ), + + SUM( DISTINCT + + 95 ) + + + 8 DIV + 9 * + 54 DIV + 63 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL COALESCE ( - + ( - + ( + 98 ) ), + + SUM ( DISTINCT + + 95 ) + + + 8 / + 9 * + 54 / + 63 ) AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4683
SELECT ALL + - CAST( NULL AS DECIMAL ) * + CAST( ( + 25 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL + - CAST ( NULL AS REAL ) * + CAST ( ( + 25 ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 94 - + 72
----
-166

query I rowsort
SELECT + ( 21 ) + ( + + ( + - 42 ) )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4686
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) * - 69 AS col2, - 45 * 73
----
NULL
-3285

skipif mysql # not compatible
query II rowsort label-4686
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - 69 AS col2, - 45 * 73
----
NULL
-3285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4687
SELECT + - 8 * + + CAST( NULL AS SIGNED ) * + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT + - 8 * + + CAST ( NULL AS INTEGER ) * + + 90
----
NULL

query I rowsort
SELECT - - 97 + 28 * + + 73 AS col2
----
2141

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4689
SELECT 81 AS col0, 48 DIV ( - COUNT( * ) )
----
81
-48

skipif mysql # not compatible
query II rowsort label-4689
SELECT 81 AS col0, 48 / ( - COUNT ( * ) )
----
81
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4690
SELECT - + CASE + 55 WHEN + 39 THEN + 19 + + + 59 - - AVG ( - 41 ) + + ( 64 ) + 12 + + 78 * 13 / + + COALESCE ( + 63, CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) / - 44 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT - + CASE + 55 WHEN + 39 THEN + 19 + + + 59 - - AVG ( - 41 ) + + ( 64 ) + 12 + + 78 * 13 / + + COALESCE ( + 63, CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) / - 44 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - - COUNT( * ) * + - ( 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-4691
SELECT - - COUNT ( * ) * + - ( 98 )
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-4692
SELECT DISTINCT 85 * - 43 * + 2 * - ( - 36 ) * + + COUNT( * ) * - COUNT( * ) + - + 65 AS col1, 93 + 52
----
263095
145

skipif mysql # not compatible
query II rowsort label-4692
SELECT DISTINCT 85 * - 43 * + 2 * - ( - 36 ) * + + COUNT ( * ) * - COUNT ( * ) + - + 65 AS col1, 93 + 52
----
263095
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT ALL + - COALESCE ( - 30, + 63 * + 71, 13 + 85 + CAST( NULL AS SIGNED ) )
----
30

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + - COALESCE ( - 30, + 63 * + 71, 13 + 85 + CAST ( NULL AS INTEGER ) )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT ALL CAST( NULL AS SIGNED ) * - 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL CAST ( NULL AS INTEGER ) * - 47 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT 96 * + - 87 + - 43 + - CAST( 59 AS SIGNED ) col0
----
-8454

skipif mysql # not compatible
query I rowsort label-4695
SELECT 96 * + - 87 + - 43 + - CAST ( 59 AS INTEGER ) col0
----
-8454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4696
SELECT + CASE + 42 WHEN + - 37 + - - 4 + CAST( + 22 AS SIGNED ) - - COALESCE ( + - 73, 23 / + 94, - 58 ) THEN NULL ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-4696
SELECT + CASE + 42 WHEN + - 37 + - - 4 + CAST ( + 22 AS INTEGER ) - - COALESCE ( + - 73, 23 / + 94, - 58 ) THEN NULL ELSE - COUNT ( * ) END
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT 70 DIV 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4697
SELECT 70 / 44 AS col2
----
1

query I rowsort
SELECT 6 + 94 * 30 * 91
----
256626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4699
SELECT ALL 83 DIV + MIN( + - 86 ) * + - 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL 83 / + MIN ( + - 86 ) * + - 9 AS col1
----
0

query I rowsort
SELECT ALL 95 + 72 * - 82
----
-5809

query I rowsort
SELECT 96 + 48 AS col2
----
144

query I rowsort
SELECT 31 + - - 50 * - 34
----
-1669

query I rowsort
SELECT DISTINCT ( 44 ) + - 20
----
24

query II rowsort
SELECT ALL + 28 - - 10 AS col1, 12 + - 81 AS col0
----
38
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4705
SELECT DISTINCT COALESCE ( - 63, + + 53 DIV ( + 71 ) + + COUNT( * ) + - 3 * - + 26 - 45 + NULLIF ( - CAST( + + 81 AS SIGNED ), - ( 82 ) ), 81 ) * - 40
----
2520

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT COALESCE ( - 63, + + 53 / ( + 71 ) + + COUNT ( * ) + - 3 * - + 26 - 45 + NULLIF ( - CAST ( + + 81 AS INTEGER ), - ( 82 ) ), 81 ) * - 40
----
2520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4706
SELECT ALL + 1 DIV + SUM( ALL ( - 9 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL + 1 / + SUM ( ALL ( - 9 ) ) AS col1
----
0

query I rowsort
SELECT 97 - 46 + + 20
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4708
SELECT 56 * + MIN( ALL - - COALESCE ( - + CAST( + 40 AS SIGNED ), - 59 ) ) + 14 - COUNT( * )
----
-2227

skipif mysql # not compatible
query I rowsort label-4708
SELECT 56 * + MIN ( ALL - - COALESCE ( - + CAST ( + 40 AS INTEGER ), - 59 ) ) + 14 - COUNT ( * )
----
-2227

query II rowsort
SELECT + 85 - + 28 AS col0, 33 * + 75
----
57
2475

query I rowsort
SELECT CASE + 40 WHEN + 3 THEN + 11 * - 4 WHEN + 52 THEN + 27 * 60 END / - 60 + - - 15 AS col1
----
NULL

query I rowsort
SELECT - 7 * - 35 AS col1
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT NULLIF ( + 72, 13 ) * + MAX( - 40 )
----
-2880

skipif mysql # not compatible
query I rowsort label-4712
SELECT NULLIF ( + 72, 13 ) * + MAX ( - 40 )
----
-2880

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT 66 DIV - 62 + - 16 + + 85 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4713
SELECT 66 / - 62 + - 16 + + 85 AS col0
----
68

query I rowsort
SELECT - 34 - - 15 + - - ( - 5 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT + COUNT( * ) * - 86 * 27 col2
----
-2322

skipif mysql # not compatible
query I rowsort label-4715
SELECT + COUNT ( * ) * - 86 * 27 col2
----
-2322

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT + + 36 * + + MIN( DISTINCT + + 14 ) AS col0
----
504

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT + + 36 * + + MIN ( DISTINCT + + 14 ) AS col0
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT 5 + + COALESCE ( - - COUNT( * ), + ( + - 76 ) )
----
6

skipif mysql # not compatible
query I rowsort label-4717
SELECT 5 + + COALESCE ( - - COUNT ( * ), + ( + - 76 ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT - COUNT( + 22 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4718
SELECT - COUNT ( + 22 ) AS col1
----
-1

query I rowsort
SELECT ALL + + 61 + 63 - - 13 * - 24 * - 53 AS col1
----
16660

query I rowsort
SELECT + 10 * - 22 + - + 18
----
-238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT 38 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT 38 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT - COALESCE ( - - 78, - SUM( 9 ) ) col1
----
-78

skipif mysql # not compatible
query I rowsort label-4722
SELECT - COALESCE ( - - 78, - SUM ( 9 ) ) col1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4723
SELECT + - 54 DIV 32 + 23 + + 73 DIV + 43 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4723
SELECT + - 54 / 32 + 23 + + 73 / + 43 AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4724
SELECT - CAST( + - COUNT( * ) AS SIGNED ) * - - 27 - - 9 + - + 92 + + - ( 43 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-4724
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) * - - 27 - - 9 + - + 92 + + - ( 43 ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL 84 + NULLIF ( - COUNT( * ), 24 * + 18 * - CASE + 22 WHEN AVG ( ALL - ( - 49 ) ) THEN - - 62 + + MIN( DISTINCT + 84 ) - COUNT( * ) + - ( - 39 ) * + ( + 6 ) * + + ( 18 ) + ( - 82 ) * 97 END )
----
83

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL 84 + NULLIF ( - COUNT ( * ), 24 * + 18 * - CASE + 22 WHEN AVG ( ALL - ( - 49 ) ) THEN - - 62 + + MIN ( DISTINCT + 84 ) - COUNT ( * ) + - ( - 39 ) * + ( + 6 ) * + + ( 18 ) + ( - 82 ) * 97 END )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT 42 * COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT 42 * COUNT ( * ) AS col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4727
SELECT DISTINCT - 77 + + 50 DIV - 90 + - 53 - + 3 - - COUNT( * ) - - 44
----
-88

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT - 77 + + 50 / - 90 + - 53 - + 3 - - COUNT ( * ) - - 44
----
-88

query I rowsort
SELECT 99 * - 85
----
-8415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4729
SELECT ALL 77 * CASE 28 WHEN + + CAST( - + 45 AS DECIMAL ) + + - COUNT( * ) + 44 + + - 93 THEN + 59 * + + 30 + + + 94 ELSE + 56 * + 24 * + - 2 + - CAST( - - 91 AS SIGNED ) END
----
-213983

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL 77 * CASE 28 WHEN + + CAST ( - + 45 AS REAL ) + + - COUNT ( * ) + 44 + + - 93 THEN + 59 * + + 30 + + + 94 ELSE + 56 * + 24 * + - 2 + - CAST ( - - 91 AS INTEGER ) END
----
-213983

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4730
SELECT 5 DIV + CAST( 4 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4730
SELECT 5 / + CAST ( 4 AS INTEGER )
----
1

query I rowsort
SELECT ALL - ( - + 26 ) AS col1
----
26

query I rowsort
SELECT 89 * 39 col1
----
3471

onlyif mysql # DIV for integer division: 
query I rowsort label-4733
SELECT 31 DIV + 22
----
1

skipif mysql # not compatible
query I rowsort label-4733
SELECT 31 / + 22
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT COUNT( * ) + + 60
----
61

skipif mysql # not compatible
query I rowsort label-4734
SELECT COUNT ( * ) + + 60
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4735
SELECT ALL ( + 92 ) - - 40 - NULLIF ( + COUNT( * ), + 97 * 47 ) + CAST( NULL AS SIGNED ) + + - CASE - NULLIF ( + 36, + 80 / + 21 + - CAST( + CASE 23 WHEN + - 88 THEN 34 ELSE NULL END AS SIGNED ) * + + ( NULLIF ( 13, 66 * - 67 + NULLIF ( - 65, 43 ) ) ) - COUNT( * ) ) WHEN - 84 THEN 36 - + COUNT( * ) * COALESCE ( 86, + 41 * + 25 - 41, - 85 ) WHEN 62 + 79 * + 7 THEN + 63 ELSE NULL END * COUNT( ALL 43 * 59 ) * 96 * + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL ( + 92 ) - - 40 - NULLIF ( + COUNT ( * ), + 97 * 47 ) + CAST ( NULL AS INTEGER ) + + - CASE - NULLIF ( + 36, + 80 / + 21 + - CAST ( + CASE 23 WHEN + - 88 THEN 34 ELSE NULL END AS INTEGER ) * + + ( NULLIF ( 13, 66 * - 67 + NULLIF ( - 65, 43 ) ) ) - COUNT ( * ) ) WHEN - 84 THEN 36 - + COUNT ( * ) * COALESCE ( 86, + 41 * + 25 - 41, - 85 ) WHEN 62 + 79 * + 7 THEN + 63 ELSE NULL END * COUNT ( ALL 43 * 59 ) * 96 * + 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT 21 - MAX( DISTINCT - 43 ) + 36 col0
----
100

skipif mysql # not compatible
query I rowsort label-4736
SELECT 21 - MAX ( DISTINCT - 43 ) + 36 col0
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4737
SELECT DISTINCT COUNT( * ) DIV + + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT COUNT ( * ) / + + 95 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT COUNT( * ) + + - 74 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-4738
SELECT COUNT ( * ) + + - 74 AS col2
----
-73

query II rowsort
SELECT ALL - 75 col2, - 15
----
-75
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT CAST( NULL AS SIGNED ) + - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT CAST ( NULL AS INTEGER ) + - + 56
----
NULL

query I rowsort
SELECT + 25 * 54 - + 39 * + 24 * - 37 + - - 2 AS col2
----
35984

query I rowsort
SELECT - 38 - + - 60 AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4743
SELECT ALL COUNT( * ) * - - 24 * - + 54 AS col1, - COUNT( 35 ) AS col2
----
-1296
-1

skipif mysql # not compatible
query II rowsort label-4743
SELECT ALL COUNT ( * ) * - - 24 * - + 54 AS col1, - COUNT ( 35 ) AS col2
----
-1296
-1

query I rowsort
SELECT DISTINCT 61 * + 85
----
5185

query I rowsort
SELECT DISTINCT + NULLIF ( - 80, - - 80 ) AS col2
----
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4746
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) + + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL ( + CAST ( NULL AS REAL ) ) + + 60 AS col0
----
NULL

query I rowsort
SELECT + 32 + 14
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4748
SELECT - + CAST( + 53 AS SIGNED ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-4748
SELECT - + CAST ( + 53 AS INTEGER ) col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT - + MIN( 20 ) + - COALESCE ( - 37, + - CASE + 92 WHEN - 11 THEN + - 10 * 94 - 43 WHEN 91 THEN NULL ELSE NULL END * 94 + + 28 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4749
SELECT - + MIN ( 20 ) + - COALESCE ( - 37, + - CASE + 92 WHEN - 11 THEN + - 10 * 94 - 43 WHEN 91 THEN NULL ELSE NULL END * 94 + + 28 ) AS col1
----
17

query I rowsort
SELECT ALL - 59 + 72
----
13

query I rowsort
SELECT ALL + + 59 + + 2 - + 58 * + - 19 AS col1
----
1163

query I rowsort
SELECT + 7 + - 40 AS col1
----
-33

query I rowsort
SELECT ALL - 10 * - 72
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT - COUNT( + 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-4754
SELECT - COUNT ( + 61 )
----
-1

query I rowsort
SELECT ALL 91 + + 7 AS col0
----
98

query II rowsort
SELECT DISTINCT 8, - 47 AS col2
----
8
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT DISTINCT - 90 + - COUNT( * ) * - - ( + 44 )
----
-134

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT - 90 + - COUNT ( * ) * - - ( + 44 )
----
-134

query I rowsort
SELECT - 42 * + 10
----
-420

query I rowsort
SELECT ALL - 72 * - + 84 * 15
----
90720

onlyif mysql # DIV for integer division: 
query I rowsort label-4760
SELECT 0 DIV - 20 + 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4760
SELECT 0 / - 20 + 67 AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4761
SELECT DISTINCT - COUNT( * ) * + - 4 - CAST( + 63 AS SIGNED ) - + + 10 col1
----
-69

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT - COUNT ( * ) * + - 4 - CAST ( + 63 AS INTEGER ) - + + 10 col1
----
-69

query I rowsort
SELECT - 12 * - - 90
----
-1080

query I rowsort
SELECT 64 * - 80 + + 61 + 84 col2
----
-4975

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT DISTINCT - 81 * 50 * - + 56 - 97 + - CASE + 50 WHEN 73 + - - COUNT( * ) THEN + 5 ELSE NULL END + + 48 - 89 + 12 * + - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT - 81 * 50 * - + 56 - 97 + - CASE + 50 WHEN 73 + - - COUNT ( * ) THEN + 5 ELSE NULL END + + 48 - 89 + 12 * + - 98 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 47, 20 AS col1
----
47
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL + CASE - + COUNT( * ) WHEN + ( - - 16 ) THEN - 91 + + + 51 + - + 19 + + + 96 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL + CASE - + COUNT ( * ) WHEN + ( - - 16 ) THEN - 91 + + + 51 + - + 19 + + + 96 END AS col1
----
NULL

query I rowsort
SELECT - 76 * - + 90 * + 30
----
205200

query I rowsort
SELECT - 94 + - 94 * + 1
----
-188

query I rowsort
SELECT ALL + 4 * - 34 - 46 + 73 col1
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-4770
SELECT ALL - 10 * + 0 DIV - + 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL - 10 * + 0 / - + 87 AS col0
----
0

query II rowsort
SELECT - 40 * + + 51, 69 + - 32 * - + 66 col0
----
-2040
2181

query I rowsort
SELECT + 46 * + 73 AS col0
----
3358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT NULLIF ( 30, - - 54 + - CAST( + + 89 AS SIGNED ) / - 71 )
----
30

skipif mysql # not compatible
query I rowsort label-4773
SELECT NULLIF ( 30, - - 54 + - CAST ( + + 89 AS INTEGER ) / - 71 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4774
SELECT + 63 DIV + SUM( - - 91 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4774
SELECT + 63 / + SUM ( - - 91 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4775
SELECT COUNT( ALL + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4775
SELECT COUNT ( ALL + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT + COUNT( * ) DIV - 6
----
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT + COUNT ( * ) / - 6
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT + 36 + - 78 - + + 67 * COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-4777
SELECT + 36 + - 78 - + + 67 * COUNT ( * )
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-4778
SELECT ALL + + 6, - SUM( ALL - 86 ) AS col2
----
6
86

skipif mysql # not compatible
query II rowsort label-4778
SELECT ALL + + 6, - SUM ( ALL - 86 ) AS col2
----
6
86

query I rowsort
SELECT ALL + - 99 * - - 36 + 46
----
-3518

query II rowsort
SELECT DISTINCT + 32 AS col2, 42 * + + 6 AS col0
----
32
252

onlyif mysql # DIV for integer division: 
query I rowsort label-4781
SELECT + 94 DIV - 7
----
-13

skipif mysql # not compatible
query I rowsort label-4781
SELECT + 94 / - 7
----
-13

query II rowsort
SELECT + 51 AS col2, ( + - 22 ) * 84 col2
----
51
-1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4783
SELECT ALL + CASE + ( - 16 ) WHEN + + MIN( - CAST( NULL AS SIGNED ) ) THEN 60 ELSE + 38 END AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL + CASE + ( - 16 ) WHEN + + MIN ( - CAST ( NULL AS INTEGER ) ) THEN 60 ELSE + 38 END AS col0
----
38

query II rowsort
SELECT - + 83 col2, - 90 * ( 95 ) AS col1
----
-83
-8550

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4785
SELECT - - 27, - 23 DIV COUNT( * ) AS col2
----
27
-23

skipif mysql # not compatible
query II rowsort label-4785
SELECT - - 27, - 23 / COUNT ( * ) AS col2
----
27
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT DISTINCT SUM( DISTINCT - 46 ) + 31 + 87 + - 79
----
-7

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT SUM ( DISTINCT - 46 ) + 31 + 87 + - 79
----
-7

query II rowsort
SELECT - + 73, + 12 AS col1
----
-73
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + - COUNT( * ) * - COUNT( * ) + + - 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4788
SELECT + - COUNT ( * ) * - COUNT ( * ) + + - 3 AS col2
----
-2

query I rowsort
SELECT ALL 13 + 96
----
109

query I rowsort
SELECT + 83 - + 45 + - + 72 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT + 96 + 68 + - + 60 + - COUNT( ALL ( 64 ) ) * + 8 * + 8 * + 49 * + MAX( + + 44 ) + - + NULLIF ( 18, + COUNT( * ) * ( - 73 ) / + 12 )
----
-137898

skipif mysql # not compatible
query I rowsort label-4791
SELECT + 96 + 68 + - + 60 + - COUNT ( ALL ( 64 ) ) * + 8 * + 8 * + 49 * + MAX ( + + 44 ) + - + NULLIF ( 18, + COUNT ( * ) * ( - 73 ) / + 12 )
----
-137898

query I rowsort
SELECT DISTINCT 40 * - NULLIF ( - 2, 32 + + 93 + - ( + 5 ) ) - - 38
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4793
SELECT + 10 + CAST( - 28 AS DECIMAL ) + - 38 - + 8 + + - ( 5 ) * CAST( NULL AS SIGNED ) * AVG ( ALL + - ( - 48 ) ) + ( - CAST( - + 52 AS DECIMAL ) ) * COUNT( * ) * 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT + 10 + CAST ( - 28 AS REAL ) + - 38 - + 8 + + - ( 5 ) * CAST ( NULL AS INTEGER ) * AVG ( ALL + - ( - 48 ) ) + ( - CAST ( - + 52 AS REAL ) ) * COUNT ( * ) * 31 AS col1
----
NULL

query I rowsort
SELECT ALL 79 + + 28 + - 18
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4795
SELECT ALL + - NULLIF ( COUNT( * ), + ( + 83 ) + + + 38 * - 59 DIV COUNT( * ) ) + - 53 DIV - + 2
----
25

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL + - NULLIF ( COUNT ( * ), + ( + 83 ) + + + 38 * - 59 / COUNT ( * ) ) + - 53 / - + 2
----
25

query I rowsort
SELECT + - 84 - - 51
----
-33

query I rowsort
SELECT + 42 - - 17 * + 75 AS col2
----
1317

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT - 19 + COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4798
SELECT - 19 + COUNT ( * ) AS col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4799
SELECT DISTINCT COUNT( * ) DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT COUNT ( * ) / + 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT + ( 22 ) + - COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4800
SELECT + ( 22 ) + - COUNT ( * ) AS col1
----
21

query I rowsort
SELECT - 12 * 1 AS col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4802
SELECT - 76 DIV COUNT( * ) * + 52
----
-3952

skipif mysql # not compatible
query I rowsort label-4802
SELECT - 76 / COUNT ( * ) * + 52
----
-3952

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4803
SELECT + CAST( - - 47 AS SIGNED ) col0, + 33 AS col0
----
47
33

skipif mysql # not compatible
query II rowsort label-4803
SELECT + CAST ( - - 47 AS INTEGER ) col0, + 33 AS col0
----
47
33

query I rowsort
SELECT - 41 * - 33 + - ( 74 ) AS col1
----
1279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4805
SELECT - 34 + 17 col2, 45 + CAST( 41 AS SIGNED )
----
-17
86

skipif mysql # not compatible
query II rowsort label-4805
SELECT - 34 + 17 col2, 45 + CAST ( 41 AS INTEGER )
----
-17
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT - COUNT( * ) + + 38 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4806
SELECT - COUNT ( * ) + + 38 AS col2
----
37

query I rowsort
SELECT + CASE - 91 WHEN + 60 THEN + 76 END AS col1
----
NULL

query I rowsort
SELECT ALL + - 95 col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT ALL - CASE + - 13 WHEN - CAST( ( + 39 ) AS SIGNED ) THEN - 32 WHEN + 71 + + + 18 + + + 65 + + 82 THEN NULL END * - 69 + - 96 - - - CASE + - 31 WHEN 58 * - 2 THEN + 92 WHEN - - COUNT( * ) + 44 / 34 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL - CASE + - 13 WHEN - CAST ( ( + 39 ) AS INTEGER ) THEN - 32 WHEN + 71 + + + 18 + + + 65 + + 82 THEN NULL END * - 69 + - 96 - - - CASE + - 31 WHEN 58 * - 2 THEN + 92 WHEN - - COUNT ( * ) + 44 / 34 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4810
SELECT ALL + COALESCE ( + 59, + + 26 ) DIV 88 + - + 8 * 69 - + 9 AS col0
----
-561

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL + COALESCE ( + 59, + + 26 ) / 88 + - + 8 * 69 - + 9 AS col0
----
-561

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4811
SELECT 65 + - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT 65 + - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4812
SELECT + CAST( NULL AS SIGNED ) - - 80 AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4812
SELECT + CAST ( NULL AS INTEGER ) - - 80 AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT 90 + + 58 + - 56 + + COUNT( * ) * - ( 15 )
----
77

skipif mysql # not compatible
query I rowsort label-4813
SELECT 90 + + 58 + - 56 + + COUNT ( * ) * - ( 15 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT - MAX( DISTINCT + + 71 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4814
SELECT - MAX ( DISTINCT + + 71 ) AS col2
----
-71

query I rowsort
SELECT - + COALESCE ( - 21, + - 15, 24 * 82 * 19 * + 0 * - + 18 * 7 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL + + ( COUNT( * ) ) + + + 79
----
80

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + + ( COUNT ( * ) ) + + + 79
----
80

query I rowsort
SELECT DISTINCT - ( + 1 ) + 34
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4818
SELECT ALL 48 AS col0, SUM( - + 90 ) AS col1
----
48
-90

skipif mysql # not compatible
query II rowsort label-4818
SELECT ALL 48 AS col0, SUM ( - + 90 ) AS col1
----
48
-90

query I rowsort
SELECT 95 + - 46 col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4820
SELECT DISTINCT MAX( + 18 ) - + NULLIF ( + 53, - + 41 ) DIV + 18 + + 78
----
94

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT MAX ( + 18 ) - + NULLIF ( + 53, - + 41 ) / + 18 + + 78
----
94

query I rowsort
SELECT 5 + + - 23 AS col0
----
-18

query II rowsort
SELECT 61 AS col2, 60
----
61
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL + COUNT( * ) * + 56 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL + COUNT ( * ) * + 56 AS col1
----
56

query II rowsort
SELECT ALL 13 col2, 88
----
13
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4825
SELECT DISTINCT COUNT( * ) * + COUNT( DISTINCT 29 ) DIV - - COALESCE ( - COUNT( + 52 ), 49 + + MIN( 64 ) + 36 DIV - - 20 ) col0, 53
----
-1
53

skipif mysql # not compatible
query II rowsort label-4825
SELECT DISTINCT COUNT ( * ) * + COUNT ( DISTINCT 29 ) / - - COALESCE ( - COUNT ( + 52 ), 49 + + MIN ( 64 ) + 36 / - - 20 ) col0, 53
----
-1
53

query I rowsort
SELECT 30 + - 92
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT 49 + + 49 * COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-4827
SELECT 49 + + 49 * COUNT ( * )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT 59 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT 59 / + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ( + 46 ) * ( - COUNT( 97 ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4829
SELECT ( + 46 ) * ( - COUNT ( 97 ) ) AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT DISTINCT 46 DIV + + 68 col1
----
0

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT 46 / + + 68 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT 38 * - 23 + - ( - COUNT( * ) ) * 3 AS col1
----
-871

skipif mysql # not compatible
query I rowsort label-4831
SELECT 38 * - 23 + - ( - COUNT ( * ) ) * 3 AS col1
----
-871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT ALL ( 73 ) DIV - 35 + - MAX( ALL + 82 )
----
-84

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL ( 73 ) / - 35 + - MAX ( ALL + 82 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4833
SELECT CAST( NULL AS SIGNED ) / + + ( NULLIF ( - - MAX( 11 ), - 16 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT CAST ( NULL AS INTEGER ) / + + ( NULLIF ( - - MAX ( 11 ), - 16 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 57 + 75 AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4835
SELECT ALL COUNT( * ) * - 85 + + + 35 DIV 68 * - 71 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL COUNT ( * ) * - 85 + + + 35 / 68 * - 71 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT DISTINCT - SUM( DISTINCT - 98 ) + + 10 * ( + 60 ) * - + 84
----
-50302

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT - SUM ( DISTINCT - 98 ) + + 10 * ( + 60 ) * - + 84
----
-50302

query I rowsort
SELECT ( - 23 ) * 77 * - - 86 AS col1
----
-152306

query I rowsort
SELECT + NULLIF ( 30, - 42 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4839
SELECT ALL - COALESCE ( + ( - + COUNT( 6 ) ), + 3, - COUNT( * ) * 24 * + 52 ) AS col1, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4839
SELECT ALL - COALESCE ( + ( - + COUNT ( 6 ) ), + 3, - COUNT ( * ) * 24 * + 52 ) AS col1, + COUNT ( * )
----
1
1

query I rowsort
SELECT + 34 * + 8
----
272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4841
SELECT + 20 col0, 66 + - CAST( - COUNT( * ) AS SIGNED ) + 48 + - + 30 * + NULLIF ( 54, 50 - - COUNT( + - 6 ) ) AS col0, 34 * - 64
----
20
-1505
-2176

skipif mysql # not compatible
query III rowsort label-4841
SELECT + 20 col0, 66 + - CAST ( - COUNT ( * ) AS INTEGER ) + 48 + - + 30 * + NULLIF ( 54, 50 - - COUNT ( + - 6 ) ) AS col0, 34 * - 64
----
20
-1505
-2176

query I rowsort
SELECT ALL - + 39 - - 89
----
50

query I rowsort
SELECT 36 - 10 + 58 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL - MIN( + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL - MIN ( + 35 )
----
-35

query I rowsort
SELECT - 1 * 73
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT DISTINCT + + 10 DIV ( 52 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT + + 10 / ( 52 ) AS col0
----
0

query I rowsort
SELECT ALL + 87 * + 26
----
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT NULLIF ( + 0, 80 ) * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4848
SELECT NULLIF ( + 0, 80 ) * - COUNT ( * )
----
0

query I rowsort
SELECT 99 + + NULLIF ( + - ( + + 88 ), + 63 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT 34 * - COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4850
SELECT 34 * - COUNT ( * ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL - COUNT( * ) * + - 77 col1
----
77

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL - COUNT ( * ) * + - 77 col1
----
77

query I rowsort
SELECT DISTINCT + 59 * + NULLIF ( - - 9, - 65 )
----
531

query I rowsort
SELECT 24 * + 27 AS col2
----
648

query I rowsort
SELECT 34 - 84 + + + 63 AS col2
----
13

query I rowsort
SELECT ALL 65 * 37 * + + 53
----
127465

query II rowsort
SELECT 40 * - 96, - 63 AS col1
----
-3840
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT COUNT( * ) + - 62
----
-61

skipif mysql # not compatible
query I rowsort label-4857
SELECT COUNT ( * ) + - 62
----
-61

query I rowsort
SELECT NULLIF ( + 33, - 80 * 80 + 75 ) * + 35
----
1155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4859
SELECT COUNT( * ) + NULLIF ( + CAST( NULL AS SIGNED ), - 9 * + AVG ( ALL 45 ) ) * - - CASE + + 65 WHEN 31 THEN - + ( - 0 ) + + 98 WHEN 60 THEN + CAST( + - 22 AS SIGNED ) + - - 71 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT COUNT ( * ) + NULLIF ( + CAST ( NULL AS INTEGER ), - 9 * + AVG ( ALL 45 ) ) * - - CASE + + 65 WHEN 31 THEN - + ( - 0 ) + + 98 WHEN 60 THEN + CAST ( + - 22 AS INTEGER ) + - - 71 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4860
SELECT COUNT( * ) * 14 AS col1, - 35 + 34
----
14
-1

skipif mysql # not compatible
query II rowsort label-4860
SELECT COUNT ( * ) * 14 AS col1, - 35 + 34
----
14
-1

query I rowsort
SELECT DISTINCT + 97 * - 28 * - - 22 * 5 * - 7
----
2091320

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL COUNT( * ) * + + 72 + 36 * - - 24 * - + 45 * 56 col1
----
-2177208

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL COUNT ( * ) * + + 72 + 36 * - - 24 * - + 45 * 56 col1
----
-2177208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4863
SELECT DISTINCT - 13 * - 86 + + + 15 + - 73 + + 32 + + SUM( ALL + 88 ) * + SUM( DISTINCT - + 73 ) * + + CAST( NULL AS SIGNED ) * - - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT - 13 * - 86 + + + 15 + - 73 + + 32 + + SUM ( ALL + 88 ) * + SUM ( DISTINCT - + 73 ) * + + CAST ( NULL AS INTEGER ) * - - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL + + SUM( DISTINCT - - 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL + + SUM ( DISTINCT - - 77 ) AS col0
----
77

query I rowsort
SELECT ALL 75 * - 75 + + 4 - + 16 - 67 * 36 + + - 91 AS col2
----
-8140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT + NULLIF ( - + 19, CAST( - 16 AS SIGNED ) - - 70 * - - 53 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-4866
SELECT + NULLIF ( - + 19, CAST ( - 16 AS INTEGER ) - - 70 * - - 53 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT 87 * + - 38 * + NULLIF ( COALESCE ( - COUNT( * ), + COUNT( * ) ), - 26 ) * + - 15 + - ( - 64 ) + 51 AS col0
----
-49475

skipif mysql # not compatible
query I rowsort label-4867
SELECT 87 * + - 38 * + NULLIF ( COALESCE ( - COUNT ( * ), + COUNT ( * ) ), - 26 ) * + - 15 + - ( - 64 ) + 51 AS col0
----
-49475

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT + COUNT( ALL 35 ) * - 89 + + 33 - + 31 + - 77 AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-4868
SELECT + COUNT ( ALL 35 ) * - 89 + + 33 - + 31 + - 77 AS col1
----
-164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4869
SELECT + CAST( NULL AS SIGNED ) + 64, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4869
SELECT + CAST ( NULL AS INTEGER ) + 64, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4870
SELECT ALL - ( - 38 ) DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL - ( - 38 ) / 66
----
0

query I rowsort
SELECT + 49 + - 8 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL - COUNT( * ) * 20 + - 7 - - - SUM( DISTINCT - 52 ) * - 55 AS col1
----
-2887

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL - COUNT ( * ) * 20 + - 7 - - - SUM ( DISTINCT - 52 ) * - 55 AS col1
----
-2887

query I rowsort
SELECT DISTINCT + + ( + 82 )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4874
SELECT DISTINCT + 15 DIV + + COALESCE ( + 37, + 66 + 71 ) - 30
----
-30

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + 15 / + + COALESCE ( + 37, + 66 + 71 ) - 30
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT ALL COUNT( * ) * - - COUNT( * ) * - - 31 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL COUNT ( * ) * - - COUNT ( * ) * - - 31 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT DISTINCT 64 * 43 + - 68 * + 55 * + - 89 + - + CAST( + 36 AS SIGNED ) * + COUNT( * ) * + 4 AS col0
----
335468

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT 64 * 43 + - 68 * + 55 * + - 89 + - + CAST ( + 36 AS INTEGER ) * + COUNT ( * ) * + 4 AS col0
----
335468

query I rowsort
SELECT ALL - 91 * 42
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT + - COUNT( DISTINCT + 5 ) * 69
----
-69

skipif mysql # not compatible
query I rowsort label-4878
SELECT + - COUNT ( DISTINCT + 5 ) * 69
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4879
SELECT - MAX( ALL - - 23 ), - 15 col0
----
-23
-15

skipif mysql # not compatible
query II rowsort label-4879
SELECT - MAX ( ALL - - 23 ), - 15 col0
----
-23
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4880
SELECT - - 76 * ( 45 ) + + 7 + COUNT( * ) * NULLIF ( + 78, 15 ) + + - 14 + + ( + + 20 ) * + 73 * - COALESCE ( - ( + + NULLIF ( NULLIF ( - - CAST( 99 AS SIGNED ), + + 61 * - CASE 81 WHEN + - 29 THEN NULL WHEN COALESCE ( + 19, COUNT( * ) + + 80, - 29 ) THEN - CASE COUNT( * ) WHEN - 67 * + NULLIF ( 23, 51 ) THEN NULL ELSE 77 * + ( 94 ) + + COUNT( * ) END + 19 * 36 ELSE + CASE + COUNT( 41 ) WHEN NULLIF ( 9, 59 * MAX( + 2 * 34 ) ) + - 56 THEN - COUNT( * ) * 22 ELSE NULL END END + 58 DIV - COUNT( * ) ), COUNT( * ) + ( 5 + + 54 ) ) ), - 78 DIV ( 36 * 40 ) + 91 ) + ( + ( - 77 ) + - 72 DIV COUNT( 69 ) ) col2
----
147882

skipif mysql # not compatible
query I rowsort label-4880
SELECT - - 76 * ( 45 ) + + 7 + COUNT ( * ) * NULLIF ( + 78, 15 ) + + - 14 + + ( + + 20 ) * + 73 * - COALESCE ( - ( + + NULLIF ( NULLIF ( - - CAST ( 99 AS INTEGER ), + + 61 * - CASE 81 WHEN + - 29 THEN NULL WHEN COALESCE ( + 19, COUNT ( * ) + + 80, - 29 ) THEN - CASE COUNT ( * ) WHEN - 67 * + NULLIF ( 23, 51 ) THEN NULL ELSE 77 * + ( 94 ) + + COUNT ( * ) END + 19 * 36 ELSE + CASE + COUNT ( 41 ) WHEN NULLIF ( 9, 59 * MAX ( + 2 * 34 ) ) + - 56 THEN - COUNT ( * ) * 22 ELSE NULL END END + 58 / - COUNT ( * ) ), COUNT ( * ) + ( 5 + + 54 ) ) ), - 78 / ( 36 * 40 ) + 91 ) + ( + ( - 77 ) + - 72 / COUNT ( 69 ) ) col2
----
147882

query I rowsort
SELECT - 35 + + 31
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4882
SELECT + 74 * - 1 - + - CAST( COUNT( * ) AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-4882
SELECT + 74 * - 1 - + - CAST ( COUNT ( * ) AS INTEGER )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT CASE - 16 WHEN + CASE + 83 WHEN - + COUNT( * ) THEN NULL WHEN + - 85 THEN - MIN( ALL + 20 ) * - - 69 + COUNT( * ) END THEN - - 14 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT CASE - 16 WHEN + CASE + 83 WHEN - + COUNT ( * ) THEN NULL WHEN + - 85 THEN - MIN ( ALL + 20 ) * - - 69 + COUNT ( * ) END THEN - - 14 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4884
SELECT ALL SUM( CAST( - - 42 AS SIGNED ) ), 20 AS col1
----
42
20

skipif mysql # not compatible
query II rowsort label-4884
SELECT ALL SUM ( CAST ( - - 42 AS INTEGER ) ), 20 AS col1
----
42
20

query I rowsort
SELECT DISTINCT + ( - + 72 ) + NULLIF ( 19, + + 62 ) AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4886
SELECT DISTINCT - ( + 38 ) * 44, CASE 42 WHEN - 32 THEN NULL WHEN 13 * + + CAST( + - ( 2 ) AS SIGNED ) THEN NULL ELSE - 67 + - 62 END AS col0
----
-1672
-129

skipif mysql # not compatible
query II rowsort label-4886
SELECT DISTINCT - ( + 38 ) * 44, CASE 42 WHEN - 32 THEN NULL WHEN 13 * + + CAST ( + - ( 2 ) AS INTEGER ) THEN NULL ELSE - 67 + - 62 END AS col0
----
-1672
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT - 35 + + - CAST( + 73 AS SIGNED )
----
-108

skipif mysql # not compatible
query I rowsort label-4887
SELECT - 35 + + - CAST ( + 73 AS INTEGER )
----
-108

onlyif mysql # DIV for integer division: 
query II rowsort label-4888
SELECT - 94 * 83 DIV - 60 AS col0, - 85
----
130
-85

skipif mysql # not compatible
query II rowsort label-4888
SELECT - 94 * 83 / - 60 AS col0, - 85
----
130
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4889
SELECT ALL + CAST( NULL AS SIGNED ) * + CAST( + 15 AS SIGNED ) / + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL + CAST ( NULL AS INTEGER ) * + CAST ( + 15 AS INTEGER ) / + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - 64 * - - 44 AS col0
----
-2816

query I rowsort
SELECT DISTINCT + 93 + - 49
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4892
SELECT DISTINCT - 39 + - - 19 DIV 25
----
-39

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT - 39 + - - 19 / 25
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4893
SELECT + 91 DIV + 6 + 35 + - + 5 * 13 * - 81 * - MIN( DISTINCT + 34 )
----
-178960

skipif mysql # not compatible
query I rowsort label-4893
SELECT + 91 / + 6 + 35 + - + 5 * 13 * - 81 * - MIN ( DISTINCT + 34 )
----
-178960

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT ALL - 21 DIV + + 57
----
0

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - 21 / + + 57
----
0

query I rowsort
SELECT - - 58 * - 27 - ( - + 44 )
----
-1522

query I rowsort
SELECT + - 9 col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT + - MAX( DISTINCT 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4897
SELECT + - MAX ( DISTINCT 0 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4898
SELECT ALL + 15 DIV 13 - - + 57 + - + 61 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL + 15 / 13 - - + 57 + - + 61 AS col1
----
-3

query I rowsort
SELECT ALL - + 68 * - + 68
----
4624

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT + + MIN( ALL - - 91 ) * + - 67 col0
----
-6097

skipif mysql # not compatible
query I rowsort label-4900
SELECT + + MIN ( ALL - - 91 ) * + - 67 col0
----
-6097

query I rowsort
SELECT DISTINCT - 53 * 63 AS col2
----
-3339

query II rowsort
SELECT DISTINCT + 39 AS col0, - 57
----
39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT + SUM( - 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT + SUM ( - 13 ) AS col0
----
-13

query II rowsort
SELECT ALL + - 80 col0, - 53 + - 11 + 43 AS col0
----
-80
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4905
SELECT DISTINCT + ( - 3 ) * CAST( - 29 AS SIGNED ) * + 53 AS col0
----
4611

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT + ( - 3 ) * CAST ( - 29 AS INTEGER ) * + 53 AS col0
----
4611

query II rowsort
SELECT + CASE + 83 WHEN - NULLIF ( 25, 56 ) THEN + 12 WHEN 15 + - 5 * - + 42 * + 57 THEN NULL END, 60 AS col0
----
NULL
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT + 76 DIV - 20 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4907
SELECT + 76 / - 20 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4909
SELECT DISTINCT - 84 * - 49 * - COALESCE ( - 39, + CAST( NULL AS SIGNED ) - 67 * - + 42 ) + + - SUM( + + 48 ) col0, 60 + + - 32
----
160476
28

skipif mysql # not compatible
query II rowsort label-4909
SELECT DISTINCT - 84 * - 49 * - COALESCE ( - 39, + CAST ( NULL AS INTEGER ) - 67 * - + 42 ) + + - SUM ( + + 48 ) col0, 60 + + - 32
----
160476
28

query I rowsort
SELECT + 30 * + 63
----
1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4911
SELECT ALL - 51 * - COUNT( * ) + + CAST( 7 AS SIGNED ) - - - 60
----
-2

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL - 51 * - COUNT ( * ) + + CAST ( 7 AS INTEGER ) - - - 60
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4912
SELECT ALL + 85 * - 13 * + CAST( + NULLIF ( 62, 51 / + ( + 37 ) * - - 49 * 61 ) AS SIGNED ) + + 54 AS col0, ( + 57 ) AS col2
----
-68456
57

skipif mysql # not compatible
query II rowsort label-4912
SELECT ALL + 85 * - 13 * + CAST ( + NULLIF ( 62, 51 / + ( + 37 ) * - - 49 * 61 ) AS INTEGER ) + + 54 AS col0, ( + 57 ) AS col2
----
-68456
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4913
SELECT + 18 + CAST( - + 76 AS DECIMAL ) + + CAST( ( + CAST( + SUM( DISTINCT + 32 ) AS SIGNED ) ) AS SIGNED ) / - - 48 / - CASE - - 38 WHEN CASE - 43 WHEN + + 28 / + 18 + - 92 * + 11 THEN - + 18 WHEN + COUNT( ALL 23 ) THEN NULL ELSE - + ( + 49 ) / 16 * COALESCE ( 71, - 67 + + 46 * COUNT( ALL 0 * 61 ) ) END THEN + 49 ELSE - ( + 31 ) END * CASE COUNT( * ) - - 61 WHEN + 82 THEN 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT + 18 + CAST ( - + 76 AS REAL ) + + CAST ( ( + CAST ( + SUM ( DISTINCT + 32 ) AS INTEGER ) ) AS INTEGER ) / - - 48 / - CASE - - 38 WHEN CASE - 43 WHEN + + 28 / + 18 + - 92 * + 11 THEN - + 18 WHEN + COUNT ( ALL 23 ) THEN NULL ELSE - + ( + 49 ) / 16 * COALESCE ( 71, - 67 + + 46 * COUNT ( ALL 0 * 61 ) ) END THEN + 49 ELSE - ( + 31 ) END * CASE COUNT ( * ) - - 61 WHEN + 82 THEN 33 END AS col2
----
NULL

query II rowsort
SELECT + 35 * 22, 37 AS col2
----
770
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT - COALESCE ( 60, + 44 + + 94 + 50 * + CAST( + + 55 AS SIGNED ) ) - 57
----
-117

skipif mysql # not compatible
query I rowsort label-4915
SELECT - COALESCE ( 60, + 44 + + 94 + 50 * + CAST ( + + 55 AS INTEGER ) ) - 57
----
-117

query I rowsort
SELECT + 70 + 3 - 97 + 7
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4917
SELECT ALL COUNT( * ) col2, NULLIF ( 94, 14 ) + - 69 AS col0
----
1
25

skipif mysql # not compatible
query II rowsort label-4917
SELECT ALL COUNT ( * ) col2, NULLIF ( 94, 14 ) + - 69 AS col0
----
1
25

query I rowsort
SELECT ALL ( - + 25 ) + - NULLIF ( - + 55, + + 24 )
----
30

query II rowsort
SELECT 6 AS col1, 61 col0
----
6
61

query I rowsort
SELECT DISTINCT 87 + + 89 + + 85 AS col0
----
261

query I rowsort
SELECT 78 + + - 60
----
18

query I rowsort
SELECT ALL + 89 - - - NULLIF ( 24, - 1 )
----
65

query I rowsort
SELECT DISTINCT - 34 * - + 11 AS col2
----
374

query I rowsort
SELECT ALL - + 21 * + 69 - 92 AS col2
----
-1541

query I rowsort
SELECT - NULLIF ( - + 39, - ( + 64 ) * - + 62 * - 44 )
----
39

query I rowsort
SELECT 34 + - + 23 AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4927
SELECT CAST( NULL AS SIGNED ) AS col2, 18 AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-4927
SELECT CAST ( NULL AS INTEGER ) AS col2, 18 AS col2
----
NULL
18

query I rowsort
SELECT ALL - ( - 53 ) AS col1
----
53

query I rowsort
SELECT ALL - + ( 89 )
----
-89

query I rowsort
SELECT + 31 * 42 * - - 1 AS col1
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL + 15 * SUM( 66 ) col2
----
990

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL + 15 * SUM ( 66 ) col2
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4932
SELECT DISTINCT + - CAST( 5 AS SIGNED ) / CAST( NULL AS SIGNED ) * - MIN( ALL + 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT + - CAST ( 5 AS INTEGER ) / CAST ( NULL AS INTEGER ) * - MIN ( ALL + 27 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - MIN( DISTINCT - 82 ) * + COUNT( + 93 ) + + + 61 * - 30 + - ( + + 74 )
----
-1822

skipif mysql # not compatible
query I rowsort label-4933
SELECT - MIN ( DISTINCT - 82 ) * + COUNT ( + 93 ) + + + 61 * - 30 + - ( + + 74 )
----
-1822

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT - 97 * - 67 col1, - 63 + + + SUM( DISTINCT + - 93 ) + + - 72 * + 37 AS col1
----
6499
-2820

skipif mysql # not compatible
query II rowsort label-4934
SELECT - 97 * - 67 col1, - 63 + + + SUM ( DISTINCT + - 93 ) + + - 72 * + 37 AS col1
----
6499
-2820

query I rowsort
SELECT + 20 * - - 43 + - - 92 + + 96 * 65
----
7192

query I rowsort
SELECT - 11 * + + 42 AS col1
----
-462

query II rowsort
SELECT + 88 col1, 60 * - 33 + + ( + 90 ) col0
----
88
-1890

onlyif mysql # DIV for integer division: 
query I rowsort label-4938
SELECT 69 DIV + 29 + - 73 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4938
SELECT 69 / + 29 + - 73 AS col1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4939
SELECT 63 * 19 * 49 DIV - + 30 - 77
----
-2032

skipif mysql # not compatible
query I rowsort label-4939
SELECT 63 * 19 * 49 / - + 30 - 77
----
-2032

query II rowsort
SELECT + + 26 AS col2, 96
----
26
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT ALL - - COUNT( ALL + - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL - - COUNT ( ALL + - 59 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4942
SELECT 35 AS col0, 60 DIV + - 69 * + + CAST( - 90 AS SIGNED ) AS col1
----
35
0

skipif mysql # not compatible
query II rowsort label-4942
SELECT 35 AS col0, 60 / + - 69 * + + CAST ( - 90 AS INTEGER ) AS col1
----
35
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4943
SELECT 19 * - + ( + COUNT( * ) ) DIV 24 + - COALESCE ( COUNT( * ), - NULLIF ( - 71, 30 ) * + 99 ) + - - 34 col1
----
33

skipif mysql # not compatible
query I rowsort label-4943
SELECT 19 * - + ( + COUNT ( * ) ) / 24 + - COALESCE ( COUNT ( * ), - NULLIF ( - 71, 30 ) * + 99 ) + - - 34 col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL - COUNT( * ) * - 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL - COUNT ( * ) * - 48 AS col0
----
48

query II rowsort
SELECT ALL - 58 + 34 AS col0, 72 * + + 17 * + - 13 AS col0
----
-24
-15912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4946
SELECT ALL - MAX( ALL 3 ) + - - CAST( COALESCE ( - 61, + 77, NULLIF ( CAST( NULL AS DECIMAL ), - + 67 * + + ( - 87 ) ) ) AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL - MAX ( ALL 3 ) + - - CAST ( COALESCE ( - 61, + 77, NULLIF ( CAST ( NULL AS REAL ), - + 67 * + + ( - 87 ) ) ) AS INTEGER )
----
-64

query I rowsort
SELECT ( - 22 ) + - - 10 * - - 79
----
768

onlyif mysql # aggregate syntax: 
query II rowsort label-4948
SELECT 24 * - ( + - 33 ) * - - COUNT( * ) * - COUNT( * ) AS col1, + 75 AS col1
----
-792
75

skipif mysql # not compatible
query II rowsort label-4948
SELECT 24 * - ( + - 33 ) * - - COUNT ( * ) * - COUNT ( * ) AS col1, + 75 AS col1
----
-792
75

query I rowsort
SELECT ALL 89 + - 9 - - + 48 * - - 43 + 57
----
2201

query I rowsort
SELECT DISTINCT 47 + 23 - - 51 + ( + - 82 ) AS col2
----
39

query I rowsort
SELECT ALL 82 + - - 89 col2
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT COALESCE ( 89, - 66, - CAST( NULL AS SIGNED ) ) * + 53 * + ( - 67 ) AS col0
----
-316039

skipif mysql # not compatible
query I rowsort label-4952
SELECT COALESCE ( 89, - 66, - CAST ( NULL AS INTEGER ) ) * + 53 * + ( - 67 ) AS col0
----
-316039

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4953
SELECT ALL ( - - 28 ) DIV NULLIF ( - + COUNT( * ), - + 33 )
----
-28

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL ( - - 28 ) / NULLIF ( - + COUNT ( * ), - + 33 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4954
SELECT DISTINCT ( - - CAST( - - NULLIF ( - 78, + 25 ) AS SIGNED ) ) + - + 54 + - COUNT( * ) * - 32
----
-100

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT ( - - CAST ( - - NULLIF ( - 78, + 25 ) AS INTEGER ) ) + - + 54 + - COUNT ( * ) * - 32
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4955
SELECT ALL 35 - MAX( ALL 34 ) - - - ( - 93 ) DIV - 11 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL 35 - MAX ( ALL 34 ) - - - ( - 93 ) / - 11 AS col0
----
-7

query I rowsort
SELECT ALL 46 * + 65
----
2990

query I rowsort
SELECT DISTINCT 81 * 73 AS col0
----
5913

query I rowsort
SELECT ALL 40 * + 71
----
2840

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT COUNT( * ) - + + 75
----
-74

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT COUNT ( * ) - + + 75
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4960
SELECT ALL 71 * CAST( NULL AS SIGNED ) * + 78 + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL 71 * CAST ( NULL AS INTEGER ) * + 78 + 15
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4961
SELECT ALL + 64 * + 49 DIV - 7 - CAST( CAST( + + 44 AS SIGNED ) AS SIGNED ) * - + CAST( - 66 AS SIGNED )
----
-3352

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + 64 * + 49 / - 7 - CAST ( CAST ( + + 44 AS INTEGER ) AS INTEGER ) * - + CAST ( - 66 AS INTEGER )
----
-3352

query I rowsort
SELECT 56 + - 57 + 72 * - 73 AS col1
----
-5257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT - 95 / CAST( NULL AS SIGNED ) / + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT - 95 / CAST ( NULL AS INTEGER ) / + + 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT 48 * - 62 * + AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT 48 * - 62 * + AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + + 1 * + + 60 * - 38 AS col2
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ( + 41 ) + - - 29 + + COUNT( * ) * - NULLIF ( - 54, + + 15 ) - + - ( - 59 ) col2
----
65

skipif mysql # not compatible
query I rowsort label-4966
SELECT ( + 41 ) + - - 29 + + COUNT ( * ) * - NULLIF ( - 54, + + 15 ) - + - ( - 59 ) col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ( ( NULLIF ( - - 52, - - SUM( ALL + 5 ) + + 22 ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-4967
SELECT ( ( NULLIF ( - - 52, - - SUM ( ALL + 5 ) + + 22 ) ) )
----
52

query II rowsort
SELECT + ( - 52 ) AS col0, 12 * 69
----
-52
828

query I rowsort
SELECT + 88 + + 37
----
125

query I rowsort
SELECT ( - 97 ) * + 66 + - 8
----
-6410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4971
SELECT ALL - 34 * 62 * + 84 + - COUNT( * ) + - 12 * - + COUNT( * ) * - 25 * + CAST( + 22 AS SIGNED ) AS col1
----
-183673

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL - 34 * 62 * + 84 + - COUNT ( * ) + - 12 * - + COUNT ( * ) * - 25 * + CAST ( + 22 AS INTEGER ) AS col1
----
-183673

query I rowsort
SELECT + 45 * - + 3 + + ( - 54 ) AS col0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL - 68 + - COUNT( * ) - + COUNT( * ) - + 85
----
-155

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - 68 + - COUNT ( * ) - + COUNT ( * ) - + 85
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT DISTINCT + 10 + + 23 * - + NULLIF ( ( - COUNT( * ) ), 4 ) * - - 58 + - 10
----
1334

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT + 10 + + 23 * - + NULLIF ( ( - COUNT ( * ) ), 4 ) * - - 58 + - 10
----
1334

query I rowsort
SELECT - 67 * - - 30 AS col2
----
-2010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4976
SELECT ALL + AVG ( + 71 ) + - 57 * + + 52 / + 83 + - CAST( NULL AS SIGNED ) * + 38 * + 72 * - COUNT( * ) * CASE 94 WHEN + - 74 THEN NULL WHEN + + 69 THEN - ( + - MIN( DISTINCT - + 14 ) ) * - 78 - NULLIF ( - COUNT( * ), - 58 + + + 1 ) * - 35 + - COALESCE ( 82, + 96 * - COUNT( * ) + + + AVG ( DISTINCT 84 ) ) + 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL + AVG ( + 71 ) + - 57 * + + 52 / + 83 + - CAST ( NULL AS INTEGER ) * + 38 * + 72 * - COUNT ( * ) * CASE 94 WHEN + - 74 THEN NULL WHEN + + 69 THEN - ( + - MIN ( DISTINCT - + 14 ) ) * - 78 - NULLIF ( - COUNT ( * ), - 58 + + + 1 ) * - 35 + - COALESCE ( 82, + 96 * - COUNT ( * ) + + + AVG ( DISTINCT 84 ) ) + 87 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT 14 - + + NULLIF ( - 41, - + COUNT( * ) + - - 85 )
----
55

skipif mysql # not compatible
query I rowsort label-4977
SELECT 14 - + + NULLIF ( - 41, - + COUNT ( * ) + - - 85 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT DISTINCT - MIN( DISTINCT + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT - MIN ( DISTINCT + 77 )
----
-77

query I rowsort
SELECT ALL + 24 + + - 29
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT 24 - - - COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4980
SELECT 24 - - - COUNT ( * ) AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4981
SELECT 33 * - - MIN( - - 94 ) * + CAST( + - 25 AS SIGNED ) AS col0
----
-77550

skipif mysql # not compatible
query I rowsort label-4981
SELECT 33 * - - MIN ( - - 94 ) * + CAST ( + - 25 AS INTEGER ) AS col0
----
-77550

query II rowsort
SELECT 39 AS col2, - 90 + - 8 AS col1
----
39
-98

query I rowsort
SELECT DISTINCT - 6 - 10 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4984
SELECT ALL + ( - - 6 ) * + 8 AS col0, COUNT( * )
----
48
1

skipif mysql # not compatible
query II rowsort label-4984
SELECT ALL + ( - - 6 ) * + 8 AS col0, COUNT ( * )
----
48
1

query I rowsort
SELECT DISTINCT 94 - - 63 AS col0
----
157

query I rowsort
SELECT DISTINCT + 34 * + COALESCE ( + 89, + 15 )
----
3026

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT - SUM( + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-4987
SELECT - SUM ( + 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT - COUNT( * ) * + 15
----
-15

skipif mysql # not compatible
query I rowsort label-4988
SELECT - COUNT ( * ) * + 15
----
-15

query I rowsort
SELECT - 5 + - - 34
----
29

query I rowsort
SELECT - ( + 95 ) + + 56 * 28 - + 78 col1
----
1395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4991
SELECT ALL COUNT( 15 ) DIV + + 43 * - CAST( + + 1 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL COUNT ( 15 ) / + + 43 * - CAST ( + + 1 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4992
SELECT ALL NULLIF ( + 79, + + NULLIF ( + 64, CASE WHEN NULL IS NOT NULL THEN - 86 ELSE NULL END / + - 99 + - COUNT( * ) ) * + 84 * - + ( + CAST( NULL AS SIGNED ) ) + + 32 + + 39 * ( + + CAST( NULL AS SIGNED ) ) ), 45 AS col1
----
79
45

skipif mysql # not compatible
query II rowsort label-4992
SELECT ALL NULLIF ( + 79, + + NULLIF ( + 64, CASE WHEN NULL IS NOT NULL THEN - 86 ELSE NULL END / + - 99 + - COUNT ( * ) ) * + 84 * - + ( + CAST ( NULL AS INTEGER ) ) + + 32 + + 39 * ( + + CAST ( NULL AS INTEGER ) ) ), 45 AS col1
----
79
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT DISTINCT COALESCE ( + SUM( DISTINCT + 52 ), + 60 * + 73 ) * + COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT COALESCE ( + SUM ( DISTINCT + 52 ), + 60 * + 73 ) * + COUNT ( * ) AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4994
SELECT DISTINCT + 15 DIV + - 75 + + COUNT( * ) + 20
----
21

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT + 15 / + - 75 + + COUNT ( * ) + 20
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT DISTINCT - COALESCE ( COUNT( * ), 73 - 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT - COALESCE ( COUNT ( * ), 73 - 15 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT + - 88 * + ( + 38 ) - + + COUNT( * )
----
-3345

skipif mysql # not compatible
query I rowsort label-4996
SELECT + - 88 * + ( + 38 ) - + + COUNT ( * )
----
-3345

query I rowsort
SELECT - - 18 * - 44 AS col1
----
-792

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT ALL - NULLIF ( - 33, - - COUNT( * ) ) col2, - 9 * 45
----
33
-405

skipif mysql # not compatible
query II rowsort label-4998
SELECT ALL - NULLIF ( - 33, - - COUNT ( * ) ) col2, - 9 * 45
----
33
-405

query I rowsort
SELECT ALL - 32 + - ( + 94 ) + + 32
----
-94

query I rowsort
SELECT + 89 - + 6 - + + 32 * + - 49 AS col0
----
1651

onlyif mysql # aggregate syntax: 
query II rowsort label-5001
SELECT + NULLIF ( + 68, - + 18 ), + COUNT( * ) * + NULLIF ( + 72, 81 ) * ( + 32 ) AS col2
----
68
2304

skipif mysql # not compatible
query II rowsort label-5001
SELECT + NULLIF ( + 68, - + 18 ), + COUNT ( * ) * + NULLIF ( + 72, 81 ) * ( + 32 ) AS col2
----
68
2304

query II rowsort
SELECT 83 AS col1, 11 col2
----
83
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5003
SELECT + COUNT( * ) * + - CAST( NULL AS SIGNED ) / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) / 21
----
NULL

query II rowsort
SELECT - 84 AS col1, ( - COALESCE ( - - 8, 69 ) )
----
-84
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-5005
SELECT DISTINCT COUNT( * ) + - CASE MAX( DISTINCT 40 ) WHEN + + 3 THEN NULL WHEN COUNT( * ) + - 87 - + AVG ( DISTINCT + 66 ) THEN NULL WHEN + + 46 * 31 - + 61 + + - 53 * - + 88 THEN + 38 + 10 ELSE NULL END, + 45 AS col0
----
NULL
45

skipif mysql # not compatible
query II rowsort label-5005
SELECT DISTINCT COUNT ( * ) + - CASE MAX ( DISTINCT 40 ) WHEN + + 3 THEN NULL WHEN COUNT ( * ) + - 87 - + AVG ( DISTINCT + 66 ) THEN NULL WHEN + + 46 * 31 - + 61 + + - 53 * - + 88 THEN + 38 + 10 ELSE NULL END, + 45 AS col0
----
NULL
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5006
SELECT - + 96, + 16 + COUNT( * ) col1
----
-96
17

skipif mysql # not compatible
query II rowsort label-5006
SELECT - + 96, + 16 + COUNT ( * ) col1
----
-96
17

query I rowsort
SELECT ALL ( - + 23 ) * - + 97 + 86 AS col0
----
2317

query I rowsort
SELECT DISTINCT + ( - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5009
SELECT DISTINCT + + 8 AS col0, MIN( DISTINCT - + 21 ) * - 92 * - - 50 AS col2
----
8
96600

skipif mysql # not compatible
query II rowsort label-5009
SELECT DISTINCT + + 8 AS col0, MIN ( DISTINCT - + 21 ) * - 92 * - - 50 AS col2
----
8
96600

query I rowsort
SELECT ALL + - ( + 49 ) AS col1
----
-49

query II rowsort
SELECT + 58, 82 AS col1
----
58
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5012
SELECT + 86 DIV 40 + - 62 AS col2, - MAX( ALL + 11 ) + - - 71 AS col2
----
-60
60

skipif mysql # not compatible
query II rowsort label-5012
SELECT + 86 / 40 + - 62 AS col2, - MAX ( ALL + 11 ) + - - 71 AS col2
----
-60
60

query I rowsort
SELECT 19 * 5 * + 43 - + COALESCE ( 69, 83 ) + - 72 + 53
----
3997

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT + COUNT( 20 ) + + - 1
----
0

skipif mysql # not compatible
query I rowsort label-5014
SELECT + COUNT ( 20 ) + + - 1
----
0

query I rowsort
SELECT DISTINCT 18 * + ( + 11 ) AS col0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) - - 57 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) - - 57 AS col0
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-5017
SELECT DISTINCT - 59 * - 21 - 20 + 48 AS col2, ( - 19 ) DIV - 69
----
1267
0

skipif mysql # not compatible
query II rowsort label-5017
SELECT DISTINCT - 59 * - 21 - 20 + 48 AS col2, ( - 19 ) / - 69
----
1267
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL + MAX( ALL 91 )
----
91

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + MAX ( ALL 91 )
----
91

query I rowsort
SELECT CASE + 73 WHEN - 42 THEN NULL ELSE + 49 + + 26 END
----
75

query I rowsort
SELECT + 11 * + 91
----
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT - 17 + + + 19 + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-5021
SELECT - 17 + + + 19 + COUNT ( * )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT - 29 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-5022
SELECT - 29 / + 93
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5023
SELECT - 35 DIV SUM( DISTINCT - 72 )
----
0

skipif mysql # not compatible
query I rowsort label-5023
SELECT - 35 / SUM ( DISTINCT - 72 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT ALL + COALESCE ( - 20, + COUNT( + + 24 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL + COALESCE ( - 20, + COUNT ( + + 24 ) )
----
-20

query I rowsort
SELECT 94 * 68 + 17 AS col0
----
6409

query II rowsort
SELECT ALL ( + 76 ) AS col0, + 19 * - 7 * - 1 * 39
----
76
5187

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT + 3 * - MAX( DISTINCT 1 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT + 3 * - MAX ( DISTINCT 1 ) AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT DISTINCT NULLIF ( - CAST( NULL AS SIGNED ), - 62 + + 17 + - - 48 + - COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT NULLIF ( - CAST ( NULL AS INTEGER ), - 62 + + 17 + - - 48 + - COUNT ( * ) ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5029
SELECT DISTINCT + - CASE - - 57 WHEN 30 + - 60 * 49 THEN NULL WHEN - 47 / ( + 64 ) + + - 43 + + + 13 - + - COUNT( * ) + - 11 * + 34 + + AVG ( DISTINCT CAST( - 13 AS SIGNED ) ) THEN COUNT( * ) END * - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT + - CASE - - 57 WHEN 30 + - 60 * 49 THEN NULL WHEN - 47 / ( + 64 ) + + - 43 + + + 13 - + - COUNT ( * ) + - 11 * + 34 + + AVG ( DISTINCT CAST ( - 13 AS INTEGER ) ) THEN COUNT ( * ) END * - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT - + NULLIF ( - MAX( ALL 27 ), + MAX( ALL 27 ) * 40 + + 31 ) * - - 61 AS col1
----
1647

skipif mysql # not compatible
query I rowsort label-5030
SELECT - + NULLIF ( - MAX ( ALL 27 ), + MAX ( ALL 27 ) * 40 + + 31 ) * - - 61 AS col1
----
1647

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5031
SELECT ALL + CAST( NULL AS SIGNED ) + - + 62, + ( + 27 ) AS col2
----
NULL
27

skipif mysql # not compatible
query II rowsort label-5031
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 62, + ( + 27 ) AS col2
----
NULL
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5032
SELECT - ( + 32 ) + - - COUNT( - 27 ) - + + 14 + + + COALESCE ( - COUNT( * ), + + 91 + - - 29 ) DIV - CAST( 63 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5032
SELECT - ( + 32 ) + - - COUNT ( - 27 ) - + + 14 + + + COALESCE ( - COUNT ( * ), + + 91 + - - 29 ) / - CAST ( 63 AS INTEGER ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-5033
SELECT - + ( - + 50 ) - + - COUNT( * ) + - 13, 57 + - + ( - - 27 ) + + + 15 * - 14 * - + COUNT( 69 ) * 19 AS col2
----
38
4020

skipif mysql # not compatible
query II rowsort label-5033
SELECT - + ( - + 50 ) - + - COUNT ( * ) + - 13, 57 + - + ( - - 27 ) + + + 15 * - 14 * - + COUNT ( 69 ) * 19 AS col2
----
38
4020

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5034
SELECT - 86 + + - 88 + + 70 * + 27 / 55 + CAST( - 21 AS SIGNED ) + + CASE COALESCE ( + - 40, 88 - - 14 ) WHEN - + 5 THEN + 47 END AS col2, - 98
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-5034
SELECT - 86 + + - 88 + + 70 * + 27 / 55 + CAST ( - 21 AS INTEGER ) + + CASE COALESCE ( + - 40, 88 - - 14 ) WHEN - + 5 THEN + 47 END AS col2, - 98
----
NULL
-98

query I rowsort
SELECT + 56 + + 7
----
63

query I rowsort
SELECT ALL + - 30 + - 57 - 42
----
-129

query I rowsort
SELECT ( + + 87 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT ALL + NULLIF ( - 73, + + NULLIF ( - + COUNT( * ), - 12 ) ) + + 10 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL + NULLIF ( - 73, + + NULLIF ( - + COUNT ( * ), - 12 ) ) + + 10 AS col0
----
-63

query I rowsort
SELECT + + 15 + + - 18 AS col0
----
-3

query II rowsort
SELECT DISTINCT - + 17 + 0, ( - ( - 39 ) ) AS col0
----
-17
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5041
SELECT ALL ( 54 ) AS col2, + MAX( ALL 80 ) * - 12 AS col0
----
54
-960

skipif mysql # not compatible
query II rowsort label-5041
SELECT ALL ( 54 ) AS col2, + MAX ( ALL 80 ) * - 12 AS col0
----
54
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT DISTINCT 1 + - ( 43 ) DIV NULLIF ( - 49, + 67 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT 1 + - ( 43 ) / NULLIF ( - 49, + 67 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5043
SELECT + - 82 - CASE + 98 WHEN 2 + 71 * 84 THEN - - CASE 16 WHEN - AVG ( - 44 ) * - + 22 + - 60 THEN NULL ELSE + CAST( + 39 AS SIGNED ) END / + 73 * - COUNT( * ) + - 79 + - COALESCE ( - + 14, - 44, + - 34 ) - + 36 * + ( - + 45 ) * + 56 WHEN - - 89 + - - CASE - 62 WHEN + - 92 THEN NULL WHEN ( 6 ) + + 42 * + 11 THEN NULL WHEN 82 THEN NULLIF ( ( ( - 7 ) ), - 34 ) + + ( 93 ) * 82 END THEN 36 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT + - 82 - CASE + 98 WHEN 2 + 71 * 84 THEN - - CASE 16 WHEN - AVG ( - 44 ) * - + 22 + - 60 THEN NULL ELSE + CAST ( + 39 AS INTEGER ) END / + 73 * - COUNT ( * ) + - 79 + - COALESCE ( - + 14, - 44, + - 34 ) - + 36 * + ( - + 45 ) * + 56 WHEN - - 89 + - - CASE - 62 WHEN + - 92 THEN NULL WHEN ( 6 ) + + 42 * + 11 THEN NULL WHEN 82 THEN NULLIF ( ( ( - 7 ) ), - 34 ) + + ( 93 ) * 82 END THEN 36 END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5044
SELECT - 89 DIV - 78 + COUNT( * ) + COUNT( * ) + + - MAX( - - 44 )
----
-41

skipif mysql # not compatible
query I rowsort label-5044
SELECT - 89 / - 78 + COUNT ( * ) + COUNT ( * ) + + - MAX ( - - 44 )
----
-41

query II rowsort
SELECT + 2 * - 83, 41 AS col0
----
-166
41

query I rowsort
SELECT + 72 + + 45
----
117

query I rowsort
SELECT DISTINCT + 69 * 19 AS col0
----
1311

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5048
SELECT CAST( NULL AS DECIMAL ) * + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT CAST ( NULL AS REAL ) * + - 14
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5049
SELECT DISTINCT CAST( 87 AS SIGNED ) * - + 48 * 4
----
-16704

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT CAST ( 87 AS INTEGER ) * - + 48 * 4
----
-16704

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT DISTINCT - 6 - - MAX( 25 ) - ( - COUNT( - + 40 ) ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT - 6 - - MAX ( 25 ) - ( - COUNT ( - + 40 ) ) AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5051
SELECT NULLIF ( + + CAST( 94 AS SIGNED ), + SUM( ALL + - 7 ) + + 71 / 73 / + - 15 ) - - 14 + CAST( 52 AS SIGNED ) * + 15 * + 79
----
61728

skipif mysql # not compatible
query I rowsort label-5051
SELECT NULLIF ( + + CAST ( 94 AS INTEGER ), + SUM ( ALL + - 7 ) + + 71 / 73 / + - 15 ) - - 14 + CAST ( 52 AS INTEGER ) * + 15 * + 79
----
61728

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT 58 - + 61 + + COUNT( * ) * - 63 * ( - 75 ) + - - 47 AS col2
----
4769

skipif mysql # not compatible
query I rowsort label-5052
SELECT 58 - + 61 + + COUNT ( * ) * - 63 * ( - 75 ) + - - 47 AS col2
----
4769

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL 17 * + - 83 / + CASE COUNT( - 50 ) WHEN 98 + + - 33 THEN - 8 - 90 + + 4 - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL 17 * + - 83 / + CASE COUNT ( - 50 ) WHEN 98 + + - 33 THEN - 8 - 90 + + 4 - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT 77 * - - 83 AS col2
----
6391

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL 81 * + + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL 81 * + + COUNT ( * )
----
81

query I rowsort
SELECT ALL - ( - 6 ) AS col2
----
6

query I rowsort
SELECT 93 - + ( + 91 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT DISTINCT 16 + + - 17 * + 85 - - COUNT( * )
----
-1428

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT 16 + + - 17 * + 85 - - COUNT ( * )
----
-1428

query II rowsort
SELECT ALL + + 7 + + - ( 87 ) * + 51 * - 37, - 45 AS col1
----
164176
-45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5060
SELECT DISTINCT - ( - + CAST( + - 79 AS SIGNED ) ) / - 38 / - CAST( NULL AS DECIMAL ), 34 + 17 col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-5060
SELECT DISTINCT - ( - + CAST ( + - 79 AS INTEGER ) ) / - 38 / - CAST ( NULL AS REAL ), 34 + 17 col2
----
NULL
51

query I rowsort
SELECT 57 + 55 AS col0
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5062
SELECT ALL + - 94 DIV - + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL + - 94 / - + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT 3 + - - 92 + 94 * + - 87 * + - MAX( + + 61 )
----
498953

skipif mysql # not compatible
query I rowsort label-5063
SELECT 3 + - - 92 + 94 * + - 87 * + - MAX ( + + 61 )
----
498953

query I rowsort
SELECT ALL 45 + 97 AS col0
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5065
SELECT ALL + - 19 + - 74 + + + CAST( + COUNT( * ) AS SIGNED ) + 81 col2, 27 + - SUM( ALL 14 ) + COUNT( * )
----
-11
14

skipif mysql # not compatible
query II rowsort label-5065
SELECT ALL + - 19 + - 74 + + + CAST ( + COUNT ( * ) AS INTEGER ) + 81 col2, 27 + - SUM ( ALL 14 ) + COUNT ( * )
----
-11
14

query I rowsort
SELECT - + ( 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT ALL - MAX( ALL 55 ) + 10 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL - MAX ( ALL 55 ) + 10 AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5068
SELECT - COUNT( * ) * + - 83 + - + 34 + - COUNT( * ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT - COUNT ( * ) * + - 83 + - + 34 + - COUNT ( * ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - ( 83 ) + - + 60 AS col0
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-5070
SELECT - 8 AS col0, 24 DIV + 76 AS col0
----
-8
0

skipif mysql # not compatible
query II rowsort label-5070
SELECT - 8 AS col0, 24 / + 76 AS col0
----
-8
0

query I rowsort
SELECT ALL - 31 - 55 AS col2
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT 82 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT 82 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5073
SELECT ALL - COUNT( * ) AS col0, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5073
SELECT ALL - COUNT ( * ) AS col0, - COUNT ( * )
----
-1
-1

query I rowsort
SELECT - + ( - + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT 43 * 34 - - COUNT( * )
----
1463

skipif mysql # not compatible
query I rowsort label-5075
SELECT 43 * 34 - - COUNT ( * )
----
1463

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT DISTINCT - COUNT( + - 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - COUNT ( + - 1 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT + ( + 51 ) DIV - NULLIF ( 25, + 27 ) - 92 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-5077
SELECT + ( + 51 ) / - NULLIF ( 25, + 27 ) - 92 AS col1
----
-94

query II rowsort
SELECT DISTINCT - 30 AS col2, - 9 AS col1
----
-30
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT MIN( 98 ) + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-5079
SELECT MIN ( 98 ) + - COUNT ( * )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT ALL + 93 DIV 79
----
1

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL + 93 / 79
----
1

query I rowsort
SELECT 93 * 50 + - + 43 AS col0
----
4607

query I rowsort
SELECT 84 * - 8
----
-672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT DISTINCT 41 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT 41 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 29, + 47 AS col2
----
-29
47

query I rowsort
SELECT ALL 76 * + 90 AS col1
----
6840

query I rowsort
SELECT DISTINCT - ( 32 ) AS col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5087
SELECT + 66 * - - 65 * 36 * - - 72 + + + 23 + - 96 DIV CAST( + 87 AS SIGNED )
----
11119702

skipif mysql # not compatible
query I rowsort label-5087
SELECT + 66 * - - 65 * 36 * - - 72 + + + 23 + - 96 / CAST ( + 87 AS INTEGER )
----
11119702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT DISTINCT 23 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT 23 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT 87 * - COALESCE ( + COUNT( * ), + 45 + + - 30 + + - 30 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-5089
SELECT 87 * - COALESCE ( + COUNT ( * ), + 45 + + - 30 + + - 30 ) AS col0
----
-87

query I rowsort
SELECT ALL 40 + 88 AS col1
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5091
SELECT NULLIF ( + - 24, CASE 97 WHEN - - CAST( NULL AS SIGNED ) THEN + CASE - CASE + - 67 WHEN - CAST( NULL AS SIGNED ) - - 50 + 2 * - COALESCE ( + 2, ( + - NULLIF ( 44, 54 * - 20 + - + 60 ) ), + 29 ) - + - 43 * COUNT( * ) THEN - 84 * - + 77 / CAST( - 43 AS SIGNED ) + + + COALESCE ( + 93, - 28 - - 96 ) END WHEN + + 68 THEN NULL ELSE - 74 END WHEN 40 - SUM( DISTINCT 21 ) THEN + 62 ELSE NULL END ) * ( - 71 ) + - ( - COUNT( * ) ) AS col0
----
1705

skipif mysql # not compatible
query I rowsort label-5091
SELECT NULLIF ( + - 24, CASE 97 WHEN - - CAST ( NULL AS INTEGER ) THEN + CASE - CASE + - 67 WHEN - CAST ( NULL AS INTEGER ) - - 50 + 2 * - COALESCE ( + 2, ( + - NULLIF ( 44, 54 * - 20 + - + 60 ) ), + 29 ) - + - 43 * COUNT ( * ) THEN - 84 * - + 77 / CAST ( - 43 AS INTEGER ) + + + COALESCE ( + 93, - 28 - - 96 ) END WHEN + + 68 THEN NULL ELSE - 74 END WHEN 40 - SUM ( DISTINCT 21 ) THEN + 62 ELSE NULL END ) * ( - 71 ) + - ( - COUNT ( * ) ) AS col0
----
1705

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL 16 + SUM( - + 22 ) * 21 AS col0
----
-446

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL 16 + SUM ( - + 22 ) * 21 AS col0
----
-446

query I rowsort
SELECT DISTINCT 75 + ( - 2 ) * - 74 + - 15
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL COUNT( * ) + + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL COUNT ( * ) + + - 67
----
-66

query II rowsort
SELECT 77 * - 4, 60 col1
----
-308
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT COUNT( * ) + + ( COUNT( * ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5096
SELECT COUNT ( * ) + + ( COUNT ( * ) ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT ALL 10 + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL 10 + COUNT ( * ) AS col2
----
11

query I rowsort
SELECT ALL 28 * + 45
----
1260

onlyif mysql # aggregate syntax: 
query II rowsort label-5099
SELECT + - 69, 56 - + + NULLIF ( COUNT( * ), - 35 ) AS col2
----
-69
55

skipif mysql # not compatible
query II rowsort label-5099
SELECT + - 69, 56 - + + NULLIF ( COUNT ( * ), - 35 ) AS col2
----
-69
55

query I rowsort
SELECT + + 83 * - ( 8 ) + - 58
----
-722

onlyif mysql # DIV for integer division: 
query I rowsort label-5101
SELECT ALL + 76 + + 40 DIV - 31 col1
----
75

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL + 76 + + 40 / - 31 col1
----
75

query I rowsort
SELECT DISTINCT + 54 + + 48 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL + 26 * + COUNT( * ) + + 92 - 27
----
91

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL + 26 * + COUNT ( * ) + + 92 - 27
----
91

query I rowsort
SELECT DISTINCT ( + - 39 )
----
-39

query II rowsort
SELECT ALL 53 AS col2, 28
----
53
28

onlyif mysql # aggregate syntax: 
query II rowsort label-5106
SELECT 39 AS col0, + COUNT( * ) * - 66 AS col1
----
39
-66

skipif mysql # not compatible
query II rowsort label-5106
SELECT 39 AS col0, + COUNT ( * ) * - 66 AS col1
----
39
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5107
SELECT 17 * 8 + + ( + + 22 ) + + COUNT( * ) * - 45 DIV 53 * - 87
----
158

skipif mysql # not compatible
query I rowsort label-5107
SELECT 17 * 8 + + ( + + 22 ) + + COUNT ( * ) * - 45 / 53 * - 87
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT ALL + 43 DIV - + 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + 43 / - + 46 AS col2
----
0

query I rowsort
SELECT + 71 + + - 44
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5110
SELECT COUNT( * ) - + 80 * 63 * - - 53 AS col1, + NULLIF ( - - SUM( + - 80 ), - 40 ) - + 52 col2
----
-267119
-132

skipif mysql # not compatible
query II rowsort label-5110
SELECT COUNT ( * ) - + 80 * 63 * - - 53 AS col1, + NULLIF ( - - SUM ( + - 80 ), - 40 ) - + 52 col2
----
-267119
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5111
SELECT - + CASE + 35 WHEN SUM( ALL + 35 ) * - 18 THEN - ( - - COALESCE ( CAST( NULL AS SIGNED ), + - COUNT( * ) ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT - + CASE + 35 WHEN SUM ( ALL + 35 ) * - 18 THEN - ( - - COALESCE ( CAST ( NULL AS INTEGER ), + - COUNT ( * ) ) ) END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5112
SELECT ALL 9 AS col2, COUNT( DISTINCT + 13 ) + + + 58 DIV 8
----
9
8

skipif mysql # not compatible
query II rowsort label-5112
SELECT ALL 9 AS col2, COUNT ( DISTINCT + 13 ) + + + 58 / 8
----
9
8

query II rowsort
SELECT DISTINCT 43, - 53 AS col0
----
43
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-5114
SELECT ALL - + 12 * - 1 DIV 87 * NULLIF ( 67, + 63 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL - + 12 * - 1 / 87 * NULLIF ( 67, + 63 ) AS col2
----
0

query II rowsort
SELECT - NULLIF ( + - 60, + 8 ) * - + 58 * 73 * - 38 * 49 AS col1, + 18 * + 97 col1
----
473022480
1746

query II rowsort
SELECT ALL - 87 AS col2, - 86
----
-87
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT DISTINCT ( COUNT( DISTINCT - - ( + 6 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT ( COUNT ( DISTINCT - - ( + 6 ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT ALL CASE 73 WHEN + + COUNT( * ) * + 59 THEN SUM( + 6 ) - 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL CASE 73 WHEN + + COUNT ( * ) * + 59 THEN SUM ( + 6 ) - 60 ELSE NULL END
----
NULL

query I rowsort
SELECT - ( + 98 ) + - 36 AS col1
----
-134

query II rowsort
SELECT - 12 * - - 31 * - 0, 3 AS col0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT - COUNT( * ) * 63 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-5121
SELECT - COUNT ( * ) * 63 AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5122
SELECT + 12 + + + COUNT( * ) - - CAST( ( - 90 ) AS SIGNED ) + + 36 * + 78 + - COUNT( * ) AS col0
----
2730

skipif mysql # not compatible
query I rowsort label-5122
SELECT + 12 + + + COUNT ( * ) - - CAST ( ( - 90 ) AS INTEGER ) + + 36 * + 78 + - COUNT ( * ) AS col0
----
2730

query I rowsort
SELECT + CASE ( 59 ) WHEN 17 THEN NULL WHEN 78 * 36 THEN + 72 / - 11 END / + 71 col1
----
NULL

query I rowsort
SELECT NULLIF ( - 38, - - 7 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT COALESCE ( 88, + - 62 * ( - CAST( ( - 69 ) AS SIGNED ) ) - 44 - 21 * - + 48 )
----
88

skipif mysql # not compatible
query I rowsort label-5125
SELECT COALESCE ( 88, + - 62 * ( - CAST ( ( - 69 ) AS INTEGER ) ) - 44 - 21 * - + 48 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL COUNT( * ) * + 89 + - NULLIF ( + 69, + 41 ) + + 81 * - + 46 col1
----
-3706

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL COUNT ( * ) * + 89 + - NULLIF ( + 69, + 41 ) + + 81 * - + 46 col1
----
-3706

query I rowsort
SELECT ALL - 29 * + + 55 + - - 80 AS col0
----
-1515

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL MIN( ALL - 2 ) * - 54 + + COUNT( * ) * - - 62 AS col1
----
170

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL MIN ( ALL - 2 ) * - 54 + + COUNT ( * ) * - - 62 AS col1
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-5129
SELECT DISTINCT + COUNT( * ) * - 49 AS col1, 74 * 5 AS col1
----
-49
370

skipif mysql # not compatible
query II rowsort label-5129
SELECT DISTINCT + COUNT ( * ) * - 49 AS col1, 74 * 5 AS col1
----
-49
370

onlyif mysql # DIV for integer division: 
query I rowsort label-5130
SELECT + 5 DIV - 95 * + 34
----
0

skipif mysql # not compatible
query I rowsort label-5130
SELECT + 5 / - 95 * + 34
----
0

query I rowsort
SELECT - ( + ( + - 34 ) ) - + 38 + + - 16
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL + CASE MAX( DISTINCT - - ( - - 32 ) ) WHEN - COUNT( ALL 27 ) THEN NULL ELSE 78 END * - + 77 + 48 - 72
----
-6030

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + CASE MAX ( DISTINCT - - ( - - 32 ) ) WHEN - COUNT ( ALL 27 ) THEN NULL ELSE 78 END * - + 77 + 48 - 72
----
-6030

query I rowsort
SELECT DISTINCT - 47 * - CASE + 24 WHEN + 9 + 7 THEN COALESCE ( + - 70, - - NULLIF ( + + 58, 56 * - 25 ) + 85 ) + 49 END * + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL + - MAX( DISTINCT 17 ) * - 60 + + 4 * - + 75
----
720

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL + - MAX ( DISTINCT 17 ) * - 60 + + 4 * - + 75
----
720

onlyif mysql # aggregate syntax: 
query II rowsort label-5135
SELECT ALL - 14 * - COUNT( * ) AS col0, 9 AS col1
----
14
9

skipif mysql # not compatible
query II rowsort label-5135
SELECT ALL - 14 * - COUNT ( * ) AS col0, 9 AS col1
----
14
9

query I rowsort
SELECT + 93 - + 71 + - 73 * 19 AS col0
----
-1365

query I rowsort
SELECT - NULLIF ( + 71, + 17 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5138
SELECT ALL ( - CASE COUNT( * ) WHEN + SUM( + - 81 ) + - 16 THEN NULL ELSE 73 END ) AS col0, - 28 * + 93 * + - COALESCE ( - 51, - + 98 )
----
-73
-132804

skipif mysql # not compatible
query II rowsort label-5138
SELECT ALL ( - CASE COUNT ( * ) WHEN + SUM ( + - 81 ) + - 16 THEN NULL ELSE 73 END ) AS col0, - 28 * + 93 * + - COALESCE ( - 51, - + 98 )
----
-73
-132804

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5139
SELECT ALL - COUNT( * ) * - + 29 + + 48 - + NULLIF ( - + COUNT( * ), + - 71 + + CASE COALESCE ( - 38, - 36 * 65 - 78 - - + 98 + - 42 * + 96 ) WHEN + ( + 18 ) THEN NULL ELSE + - COUNT( * ) END * - 57 DIV + 30 ) DIV 26 * + 28 - - 86 DIV - + 95 * 18 * + 55
----
77

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL - COUNT ( * ) * - + 29 + + 48 - + NULLIF ( - + COUNT ( * ), + - 71 + + CASE COALESCE ( - 38, - 36 * 65 - 78 - - + 98 + - 42 * + 96 ) WHEN + ( + 18 ) THEN NULL ELSE + - COUNT ( * ) END * - 57 / + 30 ) / 26 * + 28 - - 86 / - + 95 * 18 * + 55
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5140
SELECT + - COALESCE ( - 49, - COALESCE ( - + ( 0 ), - COUNT( * ) * 84 * MIN( + 8 ) + - 70, 46 * - - 70 ) ) + + NULLIF ( + - 53, - 13 - COUNT( * ) * - - NULLIF ( 70, - - 70 ) * CAST( NULL AS SIGNED ) - - - 41 + + 38 * + 55 )
----
-4

skipif mysql # not compatible
query I rowsort label-5140
SELECT + - COALESCE ( - 49, - COALESCE ( - + ( 0 ), - COUNT ( * ) * 84 * MIN ( + 8 ) + - 70, 46 * - - 70 ) ) + + NULLIF ( + - 53, - 13 - COUNT ( * ) * - - NULLIF ( 70, - - 70 ) * CAST ( NULL AS INTEGER ) - - - 41 + + 38 * + 55 )
----
-4

query I rowsort
SELECT - - 3 * - + 78 AS col0
----
-234

query II rowsort
SELECT ( + 86 ), + 82 AS col0
----
86
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL + MAX( - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL + MAX ( - 84 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5144
SELECT - - ( + - CASE - + CAST( NULL AS SIGNED ) WHEN - 7 + - 99 THEN NULL WHEN ( - ( - 97 ) ) THEN - + 22 WHEN - 10 * - COUNT( * ) / 50 THEN 99 + + CAST( NULL AS DECIMAL ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT - - ( + - CASE - + CAST ( NULL AS INTEGER ) WHEN - 7 + - 99 THEN NULL WHEN ( - ( - 97 ) ) THEN - + 22 WHEN - 10 * - COUNT ( * ) / 50 THEN 99 + + CAST ( NULL AS REAL ) END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 9 ) * - 3
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5146
SELECT - COALESCE ( + COUNT( * ), + 25, 36 * - 66 + + SUM( 10 ) ) AS col0, 14 - COUNT( * )
----
-1
13

skipif mysql # not compatible
query II rowsort label-5146
SELECT - COALESCE ( + COUNT ( * ), + 25, 36 * - 66 + + SUM ( 10 ) ) AS col0, 14 - COUNT ( * )
----
-1
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5147
SELECT ALL MIN( DISTINCT - - CAST( + ( - 77 ) AS SIGNED ) ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL MIN ( DISTINCT - - CAST ( + ( - 77 ) AS INTEGER ) ) col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5148
SELECT + COUNT( * ) DIV + 79 * + CAST( + ( + 84 ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5148
SELECT + COUNT ( * ) / + 79 * + CAST ( + ( + 84 ) AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5149
SELECT - CAST( NULL AS SIGNED ) * - NULLIF ( + 41, 46 * COALESCE ( + 64, - + 53 ) + - COUNT( * ) + - COUNT( * ) ) * 99 * 8 + 19 * - - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5149
SELECT - CAST ( NULL AS INTEGER ) * - NULLIF ( + 41, 46 * COALESCE ( + 64, - + 53 ) + - COUNT ( * ) + - COUNT ( * ) ) * 99 * 8 + 19 * - - 31
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5150
SELECT + NULLIF ( + CASE + ( + 49 ) WHEN + 58 THEN NULL WHEN - - COUNT( * ) THEN + 99 * + 90 * + - 25 WHEN 79 THEN NULL ELSE NULL END, + 30 * 25 ) + 57, 70 AS col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-5150
SELECT + NULLIF ( + CASE + ( + 49 ) WHEN + 58 THEN NULL WHEN - - COUNT ( * ) THEN + 99 * + 90 * + - 25 WHEN 79 THEN NULL ELSE NULL END, + 30 * 25 ) + 57, 70 AS col0
----
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT - MAX( ALL + 88 ) * 52 AS col0
----
-4576

skipif mysql # not compatible
query I rowsort label-5151
SELECT - MAX ( ALL + 88 ) * 52 AS col0
----
-4576

query I rowsort
SELECT ALL - 2 + + 43 * - 45
----
-1937

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + COUNT( * ) + + - 62 - - 90
----
29

skipif mysql # not compatible
query I rowsort label-5153
SELECT + COUNT ( * ) + + - 62 - - 90
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5154
SELECT - CAST( NULL AS SIGNED ), - 27 * 32 AS col0
----
NULL
-864

skipif mysql # not compatible
query II rowsort label-5154
SELECT - CAST ( NULL AS INTEGER ), - 27 * 32 AS col0
----
NULL
-864

query II rowsort
SELECT 24, + ( + 27 ) AS col0
----
24
27

query I rowsort
SELECT + 83 + + 86
----
169

query I rowsort
SELECT - CASE + 52 WHEN + 60 THEN 24 END * + - 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL 65 + - + SUM( + ( - 14 ) )
----
79

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL 65 + - + SUM ( + ( - 14 ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT - 29 + + 37 + + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5159
SELECT - 29 + + 37 + + COUNT ( * ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ALL 83 / - CASE ( + 60 ) WHEN 91 THEN 40 WHEN + 18 * + 27 + - ( + 74 ) + 76 THEN NULL ELSE NULL END * + 74 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL 83 / - CASE ( + 60 ) WHEN 91 THEN 40 WHEN + 18 * + 27 + - ( + 74 ) + 76 THEN NULL ELSE NULL END * + 74 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5161
SELECT CAST( - COALESCE ( 25, COUNT( * ) + + - SUM( ALL CAST( NULL AS SIGNED ) ) ) AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-5161
SELECT CAST ( - COALESCE ( 25, COUNT ( * ) + + - SUM ( ALL CAST ( NULL AS INTEGER ) ) ) AS INTEGER )
----
-25

query II rowsort
SELECT 67 * + 60 + 48 + 1, + 12 AS col0
----
4069
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + MAX( DISTINCT + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-5163
SELECT + MAX ( DISTINCT + 4 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5164
SELECT - CAST( 5 AS SIGNED ) + COUNT( * ) + - 21 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5164
SELECT - CAST ( 5 AS INTEGER ) + COUNT ( * ) + - 21 AS col0
----
-25

query I rowsort
SELECT - 69 + - 4 AS col1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT ALL + 92 DIV + 1 + - 45
----
47

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL + 92 / + 1 + - 45
----
47

query I rowsort
SELECT ( - + 6 ) AS col0
----
-6

query II rowsort
SELECT + 89, 16 AS col0
----
89
16

query I rowsort
SELECT ALL + COALESCE ( - - 52, - 9 ) col2
----
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5170
SELECT - + COALESCE ( ( - + 34 ), + + CAST( NULL AS SIGNED ) ) * 19 DIV - + 82 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5170
SELECT - + COALESCE ( ( - + 34 ), + + CAST ( NULL AS INTEGER ) ) * 19 / - + 82 AS col2
----
-7

query I rowsort
SELECT DISTINCT + ( + - 68 ) * - 84 AS col0
----
5712

query I rowsort
SELECT 73 * + 15 + - 97 + 58
----
1056

query I rowsort
SELECT + NULLIF ( 65, - + 58 / - 14 + - + 80 + 1 * + 69 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL - 88 * + - ( + 23 ) - + + COUNT( * ) * + - 92 AS col0
----
2116

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL - 88 * + - ( + 23 ) - + + COUNT ( * ) * + - 92 AS col0
----
2116

query I rowsort
SELECT - 30 * 27 AS col1
----
-810

onlyif mysql # aggregate syntax: 
query II rowsort label-5176
SELECT - 38 AS col0, + 48 * COUNT( * ) AS col0
----
-38
48

skipif mysql # not compatible
query II rowsort label-5176
SELECT - 38 AS col0, + 48 * COUNT ( * ) AS col0
----
-38
48

query I rowsort
SELECT DISTINCT + 85 * - - 71
----
6035

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT COALESCE ( ( + + 87 ), + 27 + - 16 ) * - 41 * + NULLIF ( + + 33, + 23 ) + + 64 + - 89 - + CASE + 60 WHEN 61 + - 66 THEN 76 + + 36 ELSE - 97 END * + 28 * - 10 * + + 5 / + CASE + COUNT( * ) WHEN - 85 - ( - 57 ) THEN - + COALESCE ( + 50, - 2 ) / + + 74 * 99 + - - COUNT( * ) WHEN + - 8 THEN + 10 / + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT COALESCE ( ( + + 87 ), + 27 + - 16 ) * - 41 * + NULLIF ( + + 33, + 23 ) + + 64 + - 89 - + CASE + 60 WHEN 61 + - 66 THEN 76 + + 36 ELSE - 97 END * + 28 * - 10 * + + 5 / + CASE + COUNT ( * ) WHEN - 85 - ( - 57 ) THEN - + COALESCE ( + 50, - 2 ) / + + 74 * 99 + - - COUNT ( * ) WHEN + - 8 THEN + 10 / + 92 END
----
NULL

query I rowsort
SELECT + 67 * - 71 AS col2
----
-4757

query II rowsort
SELECT DISTINCT 16 AS col2, 16 AS col2
----
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT + 33 * - CAST( + 93 AS SIGNED )
----
-3069

skipif mysql # not compatible
query I rowsort label-5181
SELECT + 33 * - CAST ( + 93 AS INTEGER )
----
-3069

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT - COALESCE ( 45, - 89, - COUNT( * ) ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5182
SELECT - COALESCE ( 45, - 89, - COUNT ( * ) ) AS col2
----
-45

query I rowsort
SELECT ALL 86 + + + 73 AS col0
----
159

query II rowsort
SELECT ALL 1 + 55 - + 95 + - 67 * 11 AS col2, 7
----
-776
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5185
SELECT DISTINCT 94 + 13 DIV - - 82 * + 16 + 54 + - - 40 * + + 44 AS col1
----
1908

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT 94 + 13 / - - 82 * + 16 + 54 + - - 40 * + + 44 AS col1
----
1908

query I rowsort
SELECT ALL 53 * + 30
----
1590

query I rowsort
SELECT DISTINCT 12 + 9 col2
----
21

query I rowsort
SELECT DISTINCT 24 + + 13 + 3 col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5189
SELECT ALL 59 + + CAST( - 22 AS SIGNED ) + 22 AS col0, + COUNT( * ) AS col1
----
59
1

skipif mysql # not compatible
query II rowsort label-5189
SELECT ALL 59 + + CAST ( - 22 AS INTEGER ) + 22 AS col0, + COUNT ( * ) AS col1
----
59
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5190
SELECT ALL 17 * ( - - CASE - 98 WHEN - 63 * - 6 + + 56 THEN 63 + - 11 * 8 WHEN + 12 + + + 87 * - 99 THEN NULL END ) * - 34 AS col0, + 85 + - 95 DIV - 32
----
NULL
87

skipif mysql # not compatible
query II rowsort label-5190
SELECT ALL 17 * ( - - CASE - 98 WHEN - 63 * - 6 + + 56 THEN 63 + - 11 * 8 WHEN + 12 + + + 87 * - 99 THEN NULL END ) * - 34 AS col0, + 85 + - 95 / - 32
----
NULL
87

query I rowsort
SELECT 74 * + 38
----
2812

query I rowsort
SELECT 86 * + + NULLIF ( + 3, 2 + + 88 )
----
258

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5193
SELECT 93 DIV + NULLIF ( - + 13, + 41 ), + MAX( DISTINCT 89 ) AS col0
----
-7
89

skipif mysql # not compatible
query II rowsort label-5193
SELECT 93 / + NULLIF ( - + 13, + 41 ), + MAX ( DISTINCT 89 ) AS col0
----
-7
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT 28 + + COUNT( * ) * + + 57 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-5194
SELECT 28 + + COUNT ( * ) * + + 57 AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5195
SELECT ALL 5 DIV 19 col2
----
0

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL 5 / 19 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL - MAX( DISTINCT + - 28 ) * - 40 AS col1
----
-1120

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL - MAX ( DISTINCT + - 28 ) * - 40 AS col1
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT ALL + COUNT( * ) * - - NULLIF ( - 97, - 82 )
----
-97

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL + COUNT ( * ) * - - NULLIF ( - 97, - 82 )
----
-97

query I rowsort
SELECT + 48 * - ( + 19 ) + 8
----
-904

query I rowsort
SELECT 87 * + + 16 + 25
----
1417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5200
SELECT DISTINCT + 64 * - COUNT( * ) + - - 37 + - 81 DIV - 52 * - COUNT( * ) - + COUNT( * ) * + 52 * + 95 * + - 29
----
143232

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT + 64 * - COUNT ( * ) + - - 37 + - 81 / - 52 * - COUNT ( * ) - + COUNT ( * ) * + 52 * + 95 * + - 29
----
143232

query I rowsort
SELECT - ( - ( - 42 ) ) - - - 81 AS col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT COUNT( * ) * - 30 * - + COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5202
SELECT COUNT ( * ) * - 30 * - + COUNT ( * ) AS col1
----
30

query I rowsort
SELECT DISTINCT NULLIF ( + 11, 1 ) * + + 3 * - 88 * - + 62
----
180048

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT DISTINCT - - SUM( DISTINCT ( + COALESCE ( + + ( 13 ), - 19 + + 19, + 6 ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT - - SUM ( DISTINCT ( + COALESCE ( + + ( 13 ), - 19 + + 19, + 6 ) ) )
----
13

query I rowsort
SELECT 95 - + ( - 5 ) AS col0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT 82 DIV - 46
----
-1

skipif mysql # not compatible
query I rowsort label-5206
SELECT 82 / - 46
----
-1

query I rowsort
SELECT 26 * - 97 - 57
----
-2579

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5208
SELECT + COALESCE ( - - ( + CAST( NULL AS SIGNED ) ), - 59 DIV + - 15 - + SUM( + 37 ) + + 63 ) * + CAST( 20 AS SIGNED ) + + - 44 - + 52 * - 7 + + 65 AS col2, - COUNT( * ) AS col2
----
965
-1

skipif mysql # not compatible
query II rowsort label-5208
SELECT + COALESCE ( - - ( + CAST ( NULL AS INTEGER ) ), - 59 / + - 15 - + SUM ( + 37 ) + + 63 ) * + CAST ( 20 AS INTEGER ) + + - 44 - + 52 * - 7 + + 65 AS col2, - COUNT ( * ) AS col2
----
965
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT DISTINCT - - ( + 75 ) DIV - 16
----
-4

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - - ( + 75 ) / - 16
----
-4

query I rowsort
SELECT ALL - 71 + + - 57
----
-128

query I rowsort
SELECT ALL + 80 * + ( 81 )
----
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT COUNT( + + 40 ) * + + 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5212
SELECT COUNT ( + + 40 ) * + + 10 AS col0
----
10

query I rowsort
SELECT ALL + 3 + - - 26 + - - ( 14 ) col1
----
43

query II rowsort
SELECT - 44 AS col2, 59 AS col2
----
-44
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5215
SELECT 93 * - ( - + CASE - - 87 WHEN 55 * - - COALESCE ( - - COALESCE ( + + 26, - - 7 * - - NULLIF ( 51, - 39 + + + 51 * - 50 ) + - 71 * - + 51 + - COUNT( * ) + ( - MAX( DISTINCT + 91 ) ), - 12 ), - - ( - SUM( + 27 ) ), - 37 ) - + 48 * 94 THEN NULL WHEN + CAST( NULL AS SIGNED ) * 16 * - 82 * + + COUNT( * ) * + COUNT( + 19 ) THEN + 83 WHEN 65 THEN 78 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT 93 * - ( - + CASE - - 87 WHEN 55 * - - COALESCE ( - - COALESCE ( + + 26, - - 7 * - - NULLIF ( 51, - 39 + + + 51 * - 50 ) + - 71 * - + 51 + - COUNT ( * ) + ( - MAX ( DISTINCT + 91 ) ), - 12 ), - - ( - SUM ( + 27 ) ), - 37 ) - + 48 * 94 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * 16 * - 82 * + + COUNT ( * ) * + COUNT ( + 19 ) THEN + 83 WHEN 65 THEN 78 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT DISTINCT - 67 + - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT - 67 + - COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL MAX( 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL MAX ( 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5218
SELECT COUNT( - 44 ) + + + 14 DIV + 31 + - 74
----
-73

skipif mysql # not compatible
query I rowsort label-5218
SELECT COUNT ( - 44 ) + + + 14 / + 31 + - 74
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT - MAX( ALL + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-5219
SELECT - MAX ( ALL + 73 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-5220
SELECT ALL 64 * SUM( ALL 41 ), + 35 col0
----
2624
35

skipif mysql # not compatible
query II rowsort label-5220
SELECT ALL 64 * SUM ( ALL 41 ), + 35 col0
----
2624
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5221
SELECT 2 + 81 - - - 77 + + 24 DIV - 41 + COALESCE ( - + 1, 20 ) * + - 65
----
71

skipif mysql # not compatible
query I rowsort label-5221
SELECT 2 + 81 - - - 77 + + 24 / - 41 + COALESCE ( - + 1, 20 ) * + - 65
----
71

query I rowsort
SELECT DISTINCT 99 * - - 61
----
6039

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT DISTINCT 10 * 21 * + COUNT( * )
----
210

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT 10 * 21 * + COUNT ( * )
----
210

query II rowsort
SELECT DISTINCT - 54 AS col2, - 21 AS col0
----
-54
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5225
SELECT 41 DIV 42 + - ( + - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5225
SELECT 41 / 42 + - ( + - COUNT ( * ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT ALL - 26 * 17 - - 28 + 66 DIV + 98
----
-414

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - 26 * 17 - - 28 + 66 / + 98
----
-414

query I rowsort
SELECT DISTINCT 63 * + - 92
----
-5796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5228
SELECT + CAST( NULL AS SIGNED ) + + 66 + + 63 + + 8 * - 58 AS col2, COUNT( * ) + - 5
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-5228
SELECT + CAST ( NULL AS INTEGER ) + + 66 + + 63 + + 8 * - 58 AS col2, COUNT ( * ) + - 5
----
NULL
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT - 57 * + MAX( + 93 ) + COUNT( * ) AS col0
----
-5300

skipif mysql # not compatible
query I rowsort label-5229
SELECT - 57 * + MAX ( + 93 ) + COUNT ( * ) AS col0
----
-5300

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT + + COUNT( * ) * + - 90 * + 75 AS col2
----
-6750

skipif mysql # not compatible
query I rowsort label-5230
SELECT + + COUNT ( * ) * + - 90 * + 75 AS col2
----
-6750

onlyif mysql # DIV for integer division: 
query I rowsort label-5231
SELECT DISTINCT - 83 DIV - - 77
----
-1

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT - 83 / - - 77
----
-1

query II rowsort
SELECT - 76 + + 89 * + 55 AS col2, + 50 AS col0
----
4819
50

query II rowsort
SELECT + 45 AS col1, 54 - + 37
----
45
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL - + COUNT( * ) + - 79 * 97
----
-7664

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL - + COUNT ( * ) + - 79 * 97
----
-7664

query I rowsort
SELECT ALL + + 74 + - + ( + 23 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT + + NULLIF ( - COUNT( * ), + 70 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5236
SELECT + + NULLIF ( - COUNT ( * ), + 70 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT + - COUNT( * ) * + 5 + COUNT( * ) + - + 56 + - 46 * - 68 AS col2
----
3068

skipif mysql # not compatible
query I rowsort label-5237
SELECT + - COUNT ( * ) * + 5 + COUNT ( * ) + - + 56 + - 46 * - 68 AS col2
----
3068

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT + - COUNT( * ) * + - 79 * + NULLIF ( - ( + - 40 ), - 78 )
----
3160

skipif mysql # not compatible
query I rowsort label-5238
SELECT + - COUNT ( * ) * + - 79 * + NULLIF ( - ( + - 40 ), - 78 )
----
3160

query I rowsort
SELECT ALL + ( 90 ) col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT ALL ( - COUNT( * ) ) + + 29 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL ( - COUNT ( * ) ) + + 29 AS col0
----
28

query I rowsort
SELECT ALL - 40 + - - 74 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT ALL + MAX( DISTINCT + 7 ) + + - 78 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL + MAX ( DISTINCT + 7 ) + + - 78 AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5243
SELECT ALL - 17 + + - COALESCE ( + 64, - + 34, 52 + + - 5 * - + ( - + CAST( NULL AS SIGNED ) ) ) DIV - COUNT( * ) col0
----
47

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL - 17 + + - COALESCE ( + 64, - + 34, 52 + + - 5 * - + ( - + CAST ( NULL AS INTEGER ) ) ) / - COUNT ( * ) col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT - COUNT( * ) * - 0 * + - 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5244
SELECT - COUNT ( * ) * - 0 * + - 51 AS col0
----
0

query I rowsort
SELECT - 30 + + CASE - 63 WHEN - 50 * + - 22 THEN + 51 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT - COUNT( * ) * - 6 * 59 * + MIN( DISTINCT - - 1 )
----
354

skipif mysql # not compatible
query I rowsort label-5246
SELECT - COUNT ( * ) * - 6 * 59 * + MIN ( DISTINCT - - 1 )
----
354

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5247
SELECT DISTINCT + 99 * - 43 * + - MIN( ALL CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT + 99 * - 43 * + - MIN ( ALL CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5248
SELECT - 11 AS col2, + 13 + + COALESCE ( - COUNT( * ), - 57 )
----
-11
12

skipif mysql # not compatible
query II rowsort label-5248
SELECT - 11 AS col2, + 13 + + COALESCE ( - COUNT ( * ), - 57 )
----
-11
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT + 99 + - COUNT( * ) + + MIN( ALL 85 ) * + 55
----
4773

skipif mysql # not compatible
query I rowsort label-5249
SELECT + 99 + - COUNT ( * ) + + MIN ( ALL 85 ) * + 55
----
4773

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT DISTINCT - 36 - - - 94 + - - COUNT( * ) * + 73 * + 12 AS col1
----
746

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT - 36 - - - 94 + - - COUNT ( * ) * + 73 * + 12 AS col1
----
746

query I rowsort
SELECT - 70 * ( - 94 ) AS col1
----
6580

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL + COUNT( * ) * - ( 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL + COUNT ( * ) * - ( 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL - 54 - - - COUNT( * ) * 7 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL - 54 - - - COUNT ( * ) * 7 AS col1
----
-61

query II rowsort
SELECT DISTINCT 70 col1, + 21 + + 21
----
70
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5255
SELECT - 22 DIV - COALESCE ( - NULLIF ( 85, + 16 ), - 14 + - 79, + - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-5255
SELECT - 22 / - COALESCE ( - NULLIF ( 85, + 16 ), - 14 + - 79, + - 86 )
----
0

query I rowsort
SELECT - 40 + - - 2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT + 98 * - COALESCE ( 52, + MAX( 61 ) ) col1
----
-5096

skipif mysql # not compatible
query I rowsort label-5257
SELECT + 98 * - COALESCE ( 52, + MAX ( 61 ) ) col1
----
-5096

query II rowsort
SELECT 63 AS col2, 7 * + 14 AS col1
----
63
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT ALL CAST( - + 76 AS SIGNED ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL CAST ( - + 76 AS INTEGER ) AS col1
----
-76

query II rowsort
SELECT DISTINCT + - 18, - 1 + COALESCE ( - - 13, - 23, + + 58 ) * - 73 * ( + ( 80 ) ) AS col2
----
-18
-75921

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT + - COUNT( - - 14 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5261
SELECT + - COUNT ( - - 14 ) col1
----
-1

query I rowsort
SELECT + 66 + - - 9 col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL COUNT( * ) * - 4 + - 11 + - 11 * - NULLIF ( + 50, - 90 * - ( - 32 ) )
----
535

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL COUNT ( * ) * - 4 + - 11 + - 11 * - NULLIF ( + 50, - 90 * - ( - 32 ) )
----
535

query I rowsort
SELECT ALL + ( - - 21 ) AS col1
----
21

query I rowsort
SELECT CASE + 29 WHEN - 26 THEN + 26 + - + 28 + - 19 * - 1 / + 94 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5266
SELECT ALL + - 28 DIV 62 * 74 * - 57 + + 73
----
73

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL + - 28 / 62 * 74 * - 57 + + 73
----
73

query II rowsort
SELECT DISTINCT + + 84 AS col1, - 98 AS col2
----
84
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT + 24 * - + 64 * - MIN( ALL + 60 )
----
92160

skipif mysql # not compatible
query I rowsort label-5268
SELECT + 24 * - + 64 * - MIN ( ALL + 60 )
----
92160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5269
SELECT ALL - MAX( 78 ) * 89 + + + COALESCE ( - 21, + - COUNT( * ), - COUNT( * ) ) DIV 57 AS col1
----
-6942

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL - MAX ( 78 ) * 89 + + + COALESCE ( - 21, + - COUNT ( * ), - COUNT ( * ) ) / 57 AS col1
----
-6942

query I rowsort
SELECT + CASE - 57 WHEN 54 - 12 * + 14 THEN NULL WHEN - - 82 + + 45 - + 48 THEN NULL WHEN - + 15 THEN 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT - 90 + - COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-5271
SELECT - 90 + - COUNT ( * ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5272
SELECT + + NULLIF ( 15, - CAST( NULL AS SIGNED ) ) * + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-5272
SELECT + + NULLIF ( 15, - CAST ( NULL AS INTEGER ) ) * + COUNT ( * )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5273
SELECT ALL - 88 * - CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL - 88 * - CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5274
SELECT DISTINCT + + 70 AS col0, CAST( + + 29 AS SIGNED ) + + 76
----
70
105

skipif mysql # not compatible
query II rowsort label-5274
SELECT DISTINCT + + 70 AS col0, CAST ( + + 29 AS INTEGER ) + + 76
----
70
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT + + 74 + - + AVG ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT + + 74 + - + AVG ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT + 22 AS col0, + 72 AS col2
----
22
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5277
SELECT ALL 32 DIV - + COUNT( * ) + 85 col1
----
53

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL 32 / - + COUNT ( * ) + 85 col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT COUNT( ALL 3 )
----
1

skipif mysql # not compatible
query I rowsort label-5278
SELECT COUNT ( ALL 3 )
----
1

query II rowsort
SELECT - 82 * 30 AS col1, 67 * + 65 + + CASE + 84 WHEN 90 THEN NULL ELSE + 27 END * + 73 AS col0
----
-2460
6326

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT DISTINCT ( + - MIN( DISTINCT - ( + 94 ) ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT ( + - MIN ( DISTINCT - ( + 94 ) ) ) AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5281
SELECT DISTINCT + ( - - 33 ) DIV 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT + ( - - 33 ) / 94 AS col0
----
0

query II rowsort
SELECT - 99 + 48 AS col0, + 21 + 7 AS col0
----
-51
28

query II rowsort
SELECT + 10 + 79 * - 68, + 62 AS col1
----
-5362
62

query I rowsort
SELECT + 28 + 98 col2
----
126

query II rowsort
SELECT - 4 + + - 36 col2, + 98 AS col2
----
-40
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL + ( + + COUNT( * ) ) + + 12 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL + ( + + COUNT ( * ) ) + + 12 AS col1
----
13

query II rowsort
SELECT 27 + + 68 AS col1, - 88 AS col0
----
95
-88

query I rowsort
SELECT ALL - 85 * - 35 + + NULLIF ( + + 35, - + 25 ) AS col1
----
3010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5289
SELECT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-5289
SELECT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 15
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-5290
SELECT COUNT( - 80 ) AS col0, 53 col1
----
1
53

skipif mysql # not compatible
query II rowsort label-5290
SELECT COUNT ( - 80 ) AS col0, 53 col1
----
1
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5291
SELECT DISTINCT - - ( + - 41 ) + - 87 * COALESCE ( - + 97, + 18 - + + 98 ) AS col1, + ( + COUNT( * ) ) - - 72 AS col2
----
8398
73

skipif mysql # not compatible
query II rowsort label-5291
SELECT DISTINCT - - ( + - 41 ) + - 87 * COALESCE ( - + 97, + 18 - + + 98 ) AS col1, + ( + COUNT ( * ) ) - - 72 AS col2
----
8398
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5292
SELECT + 44 + - - 58 - 68 - - 25 * + - ( - + 60 ) DIV + 15 * + - COUNT( * ) DIV - + 1 * - ( + NULLIF ( COUNT( - 3 ), - COUNT( * ) + - 81 ) ) - - COUNT( * ) + NULLIF ( + COUNT( * ), - COUNT( * ) ) * + - 36 DIV + - 92 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-5292
SELECT + 44 + - - 58 - 68 - - 25 * + - ( - + 60 ) / + 15 * + - COUNT ( * ) / - + 1 * - ( + NULLIF ( COUNT ( - 3 ), - COUNT ( * ) + - 81 ) ) - - COUNT ( * ) + NULLIF ( + COUNT ( * ), - COUNT ( * ) ) * + - 36 / + - 92 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT ALL - 33 + COUNT( * ) + + + 23 + - ( - 21 ) * - + SUM( - 97 ) * + + 25
----
50916

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL - 33 + COUNT ( * ) + + + 23 + - ( - 21 ) * - + SUM ( - 97 ) * + + 25
----
50916

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT + + 91 * COUNT( * ) + 83 + + 89
----
263

skipif mysql # not compatible
query I rowsort label-5294
SELECT + + 91 * COUNT ( * ) + 83 + + 89
----
263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5295
SELECT - 11 + CAST( NULL AS SIGNED ) / COUNT( * ) - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT - 11 + CAST ( NULL AS INTEGER ) / COUNT ( * ) - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 51 + - ( - 6 ) * + + 66 AS col1
----
345

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT ALL 63 + 31 + - 13 DIV 51 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL 63 + 31 + - 13 / 51 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT + 33 * + COUNT( * ) - + 71 * + 29
----
-2026

skipif mysql # not compatible
query I rowsort label-5298
SELECT + 33 * + COUNT ( * ) - + 71 * + 29
----
-2026

query I rowsort
SELECT ALL + 48 * - 54
----
-2592

query II rowsort
SELECT ALL 95 - + 37 * 13 AS col2, + 40
----
-386
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5301
SELECT CASE - 31 WHEN + 40 + + 5 - - + CAST( NULL AS DECIMAL ) * 35 THEN NULL WHEN + + ( + 21 ) * 79 * + 68 THEN - COUNT( - - 54 ) END / + 44 + + 54 + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5301
SELECT CASE - 31 WHEN + 40 + + 5 - - + CAST ( NULL AS REAL ) * 35 THEN NULL WHEN + + ( + 21 ) * 79 * + 68 THEN - COUNT ( - - 54 ) END / + 44 + + 54 + - 41
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5302
SELECT + COUNT( * ) * - + 2 DIV 29 + + 2 - - COUNT( * ) DIV COUNT( * ) + + 69
----
72

skipif mysql # not compatible
query I rowsort label-5302
SELECT + COUNT ( * ) * - + 2 / 29 + + 2 - - COUNT ( * ) / COUNT ( * ) + + 69
----
72

query I rowsort
SELECT ALL + 54 - - 75
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-5304
SELECT DISTINCT 23 DIV - + 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT 23 / - + 47 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5305
SELECT ALL 41 DIV - 3
----
-13

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL 41 / - 3
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT 12 DIV 71 DIV + 75 * 44
----
0

skipif mysql # not compatible
query I rowsort label-5306
SELECT 12 / 71 / + 75 * 44
----
0

query II rowsort
SELECT ALL 8, 98 AS col2
----
8
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT NULLIF ( - COUNT( * ), + + 24 ) * + 9 + 74 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-5308
SELECT NULLIF ( - COUNT ( * ), + + 24 ) * + 9 + 74 AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5309
SELECT ALL + COUNT( ALL - 10 ) * 82 DIV + - 82
----
-1

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL + COUNT ( ALL - 10 ) * 82 / + - 82
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5310
SELECT NULLIF ( 47, ( - - AVG ( ALL + 62 ) ) + COUNT( * ) ) + + 94 + - 98 DIV + 34 + + 96
----
235

skipif mysql # not compatible
query I rowsort label-5310
SELECT NULLIF ( 47, ( - - AVG ( ALL + 62 ) ) + COUNT ( * ) ) + + 94 + - 98 / + 34 + + 96
----
235

query I rowsort
SELECT 37 + 81
----
118

query I rowsort
SELECT 47 * - - 85
----
3995

query II rowsort
SELECT - 30, 59 col2
----
-30
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5314
SELECT ALL 86 + - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL 86 + - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 1 + 87 col2
----
86

query I rowsort
SELECT ALL + 47 + + 71 AS col1
----
118

query I rowsort
SELECT DISTINCT + 87 * 27 * - + 13
----
-30537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5318
SELECT ALL + 29 + + + CAST( NULL AS SIGNED ) + ( - 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL + 29 + + + CAST ( NULL AS INTEGER ) + ( - 43 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT + CASE - 82 WHEN - 33 + - + ( - 9 ) THEN 53 * - 97 WHEN - 19 + + CAST( NULL AS SIGNED ) - 46 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT + CASE - 82 WHEN - 33 + - + ( - 9 ) THEN 53 * - 97 WHEN - 19 + + CAST ( NULL AS INTEGER ) - 46 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 48 + + - 73 AS col2
----
-25

query I rowsort
SELECT ALL 85 + - - 67 AS col1
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT 3 - 84 + - 11 + - 38 DIV - 88 * 45 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-5322
SELECT 3 - 84 + - 11 + - 38 / - 88 * 45 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5323
SELECT - + COUNT( * ) col2, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-5323
SELECT - + COUNT ( * ) col2, + COUNT ( * )
----
-1
1

query I rowsort
SELECT DISTINCT - - 29 * 51 * - - 40
----
59160

query I rowsort
SELECT 95 * - 57 AS col1
----
-5415

query I rowsort
SELECT ALL - 2 - + 0 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5327
SELECT DISTINCT 69 DIV MAX( ALL - 88 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT 69 / MAX ( ALL - 88 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT DISTINCT + - COUNT( * ) * COALESCE ( - 31, 65 )
----
31

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT + - COUNT ( * ) * COALESCE ( - 31, 65 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT ALL - - 54 - + COUNT( * ) + - 67
----
-14

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL - - 54 - + COUNT ( * ) + - 67
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT DISTINCT - 10 * 48 - + 79 * - COUNT( * )
----
-401

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT - 10 * 48 - + 79 * - COUNT ( * )
----
-401

onlyif mysql # aggregate syntax: 
query II rowsort label-5331
SELECT + 31 * - MAX( - 31 ) col2, + COUNT( * )
----
961
1

skipif mysql # not compatible
query II rowsort label-5331
SELECT + 31 * - MAX ( - 31 ) col2, + COUNT ( * )
----
961
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT 87 + + SUM( - 88 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5332
SELECT 87 + + SUM ( - 88 ) AS col0
----
-1

query I rowsort
SELECT ALL - ( - 39 ) AS col0
----
39

query I rowsort
SELECT 6 + ( 59 ) col1
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5335
SELECT DISTINCT 0 * - 24 DIV - + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT 0 * - 24 / - + 57 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT ALL 35 * - + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL 35 * - + COUNT ( * )
----
-35

query I rowsort
SELECT 28 * - 25 AS col2
----
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT DISTINCT - MIN( DISTINCT + 53 ) * COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT - MIN ( DISTINCT + 53 ) * COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL - CASE - 61 WHEN - - ( - - COUNT( * ) ) THEN + 59 ELSE + 78 END
----
-78

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL - CASE - 61 WHEN - - ( - - COUNT ( * ) ) THEN + 59 ELSE + 78 END
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL 99 + + 49 + + ( + SUM( ALL - 84 ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL 99 + + 49 + + ( + SUM ( ALL - 84 ) ) AS col0
----
64

query I rowsort
SELECT - 5 * + 98 AS col2
----
-490

query I rowsort
SELECT - 63 + - ( + 42 ) AS col2
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5343
SELECT ALL ( - ( 9 ) ) + - MAX( ALL - CAST( NULL AS SIGNED ) ) AS col2, 19 AS col2
----
NULL
19

skipif mysql # not compatible
query II rowsort label-5343
SELECT ALL ( - ( 9 ) ) + - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2, 19 AS col2
----
NULL
19

query I rowsort
SELECT DISTINCT 34 + 69 + 26
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT ALL 69 + - - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL 69 + - - COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT DISTINCT MAX( ALL - 60 ) + - 79 col0
----
-139

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT MAX ( ALL - 60 ) + - 79 col0
----
-139

query I rowsort
SELECT + + 88 * 66 col2
----
5808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT - CAST( NULL AS SIGNED ) + + 19 + + 31 - - - 8 * 32 * + 58 + + 20 / - 86 * - 49 * 13 * - - 35 * - + 76 + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT - CAST ( NULL AS INTEGER ) + + 19 + + 31 - - - 8 * 32 * + 58 + + 20 / - 86 * - 49 * 13 * - - 35 * - + 76 + + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT + + COUNT( DISTINCT 29 ) + 82 + - 28
----
55

skipif mysql # not compatible
query I rowsort label-5349
SELECT + + COUNT ( DISTINCT 29 ) + 82 + - 28
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT + - 11 + + ( - - COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-5350
SELECT + - 11 + + ( - - COUNT ( * ) )
----
-10

query II rowsort
SELECT - - 6 - - 28, 29 * - + 30 * 1 AS col1
----
34
-870

query I rowsort
SELECT ALL + 25 - 1 - - 53 AS col0
----
77

query I rowsort
SELECT DISTINCT 58 * 12 AS col0
----
696

query I rowsort
SELECT DISTINCT ( - NULLIF ( 6, - 36 / + 62 + - 21 + + 79 + - 95 ) ) AS col2
----
-6

query I rowsort
SELECT ALL + 11 * 78 + - 30 - - 15 * + 64 * 39
----
38268

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT + MAX( ALL ( + 70 ) ) * + COALESCE ( - - 34, + ( - COUNT( - 32 ) ) )
----
2380

skipif mysql # not compatible
query I rowsort label-5356
SELECT + MAX ( ALL ( + 70 ) ) * + COALESCE ( - - 34, + ( - COUNT ( - 32 ) ) )
----
2380

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT COUNT( * ) * ( 46 ) * - 80 * - 96 + + 10 AS col1
----
353290

skipif mysql # not compatible
query I rowsort label-5357
SELECT COUNT ( * ) * ( 46 ) * - 80 * - 96 + + 10 AS col1
----
353290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5358
SELECT + - NULLIF ( + + CAST( NULL AS SIGNED ), 82 ) / - ( + + COALESCE ( + + ( MIN( + 80 ) ), 48 ) ) AS col1, COUNT( DISTINCT - 81 ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5358
SELECT + - NULLIF ( + + CAST ( NULL AS INTEGER ), 82 ) / - ( + + COALESCE ( + + ( MIN ( + 80 ) ), 48 ) ) AS col1, COUNT ( DISTINCT - 81 ) AS col2
----
NULL
1

query I rowsort
SELECT - - 4 * 1 - + - 59 + 51 + 40 * + 80 AS col0
----
3314

onlyif mysql # DIV for integer division: 
query I rowsort label-5360
SELECT DISTINCT - 99 DIV 63 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT - 99 / 63 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5361
SELECT ALL + MAX( - 43 ) AS col1, 46 col1
----
-43
46

skipif mysql # not compatible
query II rowsort label-5361
SELECT ALL + MAX ( - 43 ) AS col1, 46 col1
----
-43
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5362
SELECT ALL - CASE + 15 WHEN + + 20 THEN - ( + CAST( + - 68 AS DECIMAL ) ) / + 48 END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL - CASE + 15 WHEN + + 20 THEN - ( + CAST ( + - 68 AS REAL ) ) / + 48 END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5363
SELECT - 71 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-5363
SELECT - 71 / 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5364
SELECT DISTINCT 77 DIV - + 86 * + + NULLIF ( - COUNT( * ), - - 35 )
----
0

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT 77 / - + 86 * + + NULLIF ( - COUNT ( * ), - - 35 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT DISTINCT + COUNT( * ) * + 21 + + COUNT( * ) * 28 + + 56 + - 1 * - + MAX( - 11 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT + COUNT ( * ) * + 21 + + COUNT ( * ) * 28 + + 56 + - 1 * - + MAX ( - 11 ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL + CASE COUNT( * ) WHEN + SUM( DISTINCT 68 ) * - 23 + + COUNT( DISTINCT 74 ) THEN NULL ELSE + + COUNT( * ) + - 19 END AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL + CASE COUNT ( * ) WHEN + SUM ( DISTINCT 68 ) * - 23 + + COUNT ( DISTINCT 74 ) THEN NULL ELSE + + COUNT ( * ) + - 19 END AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT - 0 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5367
SELECT - 0 + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL - 91 * + 49 AS col0
----
-4459

query I rowsort
SELECT - 17 * - 83 * + 59
----
83249

query I rowsort
SELECT - 76 + + - 23
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-5371
SELECT + 60, CASE - MAX( + 72 ) WHEN + - 63 * - 55 * - 99 THEN NULL ELSE - - 34 END AS col2
----
60
34

skipif mysql # not compatible
query II rowsort label-5371
SELECT + 60, CASE - MAX ( + 72 ) WHEN + - 63 * - 55 * - 99 THEN NULL ELSE - - 34 END AS col2
----
60
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT COALESCE ( - COUNT( * ), COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5372
SELECT COALESCE ( - COUNT ( * ), COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 7 * 37 + - 2 AS col0
----
257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5374
SELECT ALL + COUNT( * ) * + + CAST( NULL AS SIGNED ) * + 22 + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * + 22 + + 5
----
NULL

query I rowsort
SELECT 19 * + 40 + + + 5 AS col0
----
765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5376
SELECT COUNT( * ) AS col1, CAST( - 68 AS SIGNED ) - 52
----
1
-120

skipif mysql # not compatible
query II rowsort label-5376
SELECT COUNT ( * ) AS col1, CAST ( - 68 AS INTEGER ) - 52
----
1
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT ALL + 30 * - MAX( - 36 ) * - + 67 + + 19 * - + 26 col1
----
-72854

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL + 30 * - MAX ( - 36 ) * - + 67 + + 19 * - + 26 col1
----
-72854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT ALL 28 * - 94 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL 28 * - 94 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT ALL 35 * - 96 + - 56 * - COUNT( ALL - 41 ) col0
----
-3304

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL 35 * - 96 + - 56 * - COUNT ( ALL - 41 ) col0
----
-3304

query I rowsort
SELECT ALL - 29 * + 11
----
-319

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT - - 15 * - MAX( ALL + 31 ) col2
----
-465

skipif mysql # not compatible
query I rowsort label-5381
SELECT - - 15 * - MAX ( ALL + 31 ) col2
----
-465

onlyif mysql # aggregate syntax: 
query II rowsort label-5382
SELECT - - 55, + AVG ( - 73 ) * + ( + ( - CASE 34 WHEN ( + + 63 ) * + + CASE - 53 WHEN - - 72 * + COUNT( * ) * - MIN( ALL + 89 ) THEN + 20 + - + 17 ELSE + ( - - 57 ) + + 94 + - COUNT( * ) END THEN + 78 END ) ) col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-5382
SELECT - - 55, + AVG ( - 73 ) * + ( + ( - CASE 34 WHEN ( + + 63 ) * + + CASE - 53 WHEN - - 72 * + COUNT ( * ) * - MIN ( ALL + 89 ) THEN + 20 + - + 17 ELSE + ( - - 57 ) + + 94 + - COUNT ( * ) END THEN + 78 END ) ) col0
----
55
NULL

query I rowsort
SELECT + ( + 43 ) AS col0
----
43

query I rowsort
SELECT ALL + COALESCE ( + 37, 29 )
----
37

query I rowsort
SELECT - - ( - + 24 )
----
-24

query I rowsort
SELECT + 20 + + 98 AS col1
----
118

query I rowsort
SELECT + - 77 * - 99
----
7623

query I rowsort
SELECT + 86 * + 33 * - + 26
----
-73788

query I rowsort
SELECT ALL 30 * 76 - + 92
----
2188

query I rowsort
SELECT - - COALESCE ( + 95, 8 * ( ( + 12 ) ) ) * - + NULLIF ( - 16, - + 93 * + 90 - + 58 * - 63 )
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT - 57 * - - SUM( - - 55 ) + - 86
----
-3221

skipif mysql # not compatible
query I rowsort label-5391
SELECT - 57 * - - SUM ( - - 55 ) + - 86
----
-3221

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT + + 50 * COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5392
SELECT + + 50 * COUNT ( * ) AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5393
SELECT + + 39 - - - 84 DIV + 18 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5393
SELECT + + 39 - - - 84 / + 18 AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT - CAST( + 80 AS SIGNED ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-5394
SELECT - CAST ( + 80 AS INTEGER ) col2
----
-80

query I rowsort
SELECT ALL - 69 * + 76
----
-5244

onlyif mysql # aggregate syntax: 
query II rowsort label-5396
SELECT + + 58, CASE 12 WHEN ( 14 ) / 68 * 95 + + + 34 / + - COUNT( * ) * + 22 + + - 30 THEN - COUNT( * ) + - 72 * + - AVG ( ALL - - 48 ) * 4 + + 43 ELSE NULL END AS col2
----
58
NULL

skipif mysql # not compatible
query II rowsort label-5396
SELECT + + 58, CASE 12 WHEN ( 14 ) / 68 * 95 + + + 34 / + - COUNT ( * ) * + 22 + + - 30 THEN - COUNT ( * ) + - 72 * + - AVG ( ALL - - 48 ) * 4 + + 43 ELSE NULL END AS col2
----
58
NULL

query II rowsort
SELECT DISTINCT + 1 col1, + 48 AS col0
----
1
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT CAST( - 30 AS SIGNED ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-5398
SELECT CAST ( - 30 AS INTEGER ) AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5399
SELECT ALL - COUNT( * ) DIV COUNT( * ) + 23
----
22

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - COUNT ( * ) / COUNT ( * ) + 23
----
22

query I rowsort
SELECT + 24 - - 32
----
56

query I rowsort
SELECT + 0 * + 14
----
0

query I rowsort
SELECT + ( + - ( 45 ) ) col2
----
-45

query I rowsort
SELECT + 70 + + 42 - 47 + + 12 * 51
----
677

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT 50 DIV + - 90 * - 51
----
0

skipif mysql # not compatible
query I rowsort label-5404
SELECT 50 / + - 90 * - 51
----
0

query I rowsort
SELECT - ( + 33 ) * + - 47 + 10 + + - 76 AS col0
----
1485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5406
SELECT 33 * - NULLIF ( - + 19, + CASE - - ( + 92 ) WHEN NULLIF ( + CAST( + 77 AS SIGNED ), 86 ) THEN 50 + - - 81 END + 4 ) + + + 97 + - COALESCE ( COUNT( * ), - + COUNT( * ) ) AS col2
----
723

skipif mysql # not compatible
query I rowsort label-5406
SELECT 33 * - NULLIF ( - + 19, + CASE - - ( + 92 ) WHEN NULLIF ( + CAST ( + 77 AS INTEGER ), 86 ) THEN 50 + - - 81 END + 4 ) + + + 97 + - COALESCE ( COUNT ( * ), - + COUNT ( * ) ) AS col2
----
723

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL NULLIF ( + 23, + COUNT( * ) ) + 19
----
42

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL NULLIF ( + 23, + COUNT ( * ) ) + 19
----
42

query I rowsort
SELECT 46 * 68 AS col2
----
3128

query I rowsort
SELECT ALL - NULLIF ( + 82, - 54 * + AVG ( + 7 ) + ( + - AVG ( DISTINCT - 56 ) ) / - + 89 * - 50 / + 12 ) AS col2
----
-82

query I rowsort
SELECT ALL - 33 + - 10 + - 40 AS col1
----
-83

query I rowsort
SELECT ALL 16 * + 38
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT + COUNT( * ) * + 88 * 71 + MIN( - - 18 )
----
6266

skipif mysql # not compatible
query I rowsort label-5412
SELECT + COUNT ( * ) * + 88 * 71 + MIN ( - - 18 )
----
6266

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5413
SELECT CAST( NULL AS DECIMAL ) * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT CAST ( NULL AS REAL ) * - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT COUNT( * ) * + + 13
----
13

skipif mysql # not compatible
query I rowsort label-5414
SELECT COUNT ( * ) * + + 13
----
13

query I rowsort
SELECT DISTINCT NULLIF ( - 5, 15 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT DISTINCT MAX( + ( + 20 ) )
----
20

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT MAX ( + ( + 20 ) )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-5417
SELECT DISTINCT - COUNT( * ) col2, + 2 * - SUM( + 43 ) AS col2
----
-1
-86

skipif mysql # not compatible
query II rowsort label-5417
SELECT DISTINCT - COUNT ( * ) col2, + 2 * - SUM ( + 43 ) AS col2
----
-1
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT - COUNT( ALL + 94 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5418
SELECT - COUNT ( ALL + 94 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT + 84 - + CAST( - 41 AS SIGNED ) AS col2
----
125

skipif mysql # not compatible
query I rowsort label-5419
SELECT + 84 - + CAST ( - 41 AS INTEGER ) AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT COALESCE ( + COUNT( * ), - + 80, ( 23 ) * + 15 )
----
1

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT COALESCE ( + COUNT ( * ), - + 80, ( 23 ) * + 15 )
----
1

query II rowsort
SELECT - 66 col1, 89 * 98 * - 69
----
-66
-601818

query II rowsort
SELECT - + 72, 2 + + 54 AS col1
----
-72
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5423
SELECT - 50 + - NULLIF ( - - NULLIF ( 90, + + CAST( NULL AS SIGNED ) ), + 7 * - 66 * 40 - 75 ) + - COALESCE ( + 63, + 7, 61 ) DIV + 71, 58 + - 18 AS col1
----
-140
40

skipif mysql # not compatible
query II rowsort label-5423
SELECT - 50 + - NULLIF ( - - NULLIF ( 90, + + CAST ( NULL AS INTEGER ) ), + 7 * - 66 * 40 - 75 ) + - COALESCE ( + 63, + 7, 61 ) / + 71, 58 + - 18 AS col1
----
-140
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT 49 + + + 27 + + + 77 * + 23 - - + SUM( ALL - - 65 ) - - COUNT( * ) + - + 57 * + 51 * 24 + - 14
----
-67869

skipif mysql # not compatible
query I rowsort label-5424
SELECT 49 + + + 27 + + + 77 * + 23 - - + SUM ( ALL - - 65 ) - - COUNT ( * ) + - + 57 * + 51 * 24 + - 14
----
-67869

query I rowsort
SELECT - 33 - - 39 - 84 * 49 col1
----
-4110

query II rowsort
SELECT DISTINCT + 36, 39 AS col1
----
36
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5427
SELECT ALL 78 AS col2, COUNT( * ) - 85
----
78
-84

skipif mysql # not compatible
query II rowsort label-5427
SELECT ALL 78 AS col2, COUNT ( * ) - 85
----
78
-84

query II rowsort
SELECT DISTINCT - 1 AS col0, - ( - - 42 ) - NULLIF ( - 84, + 52 ) AS col1
----
-1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL + COUNT( ALL + 44 ) + 74 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL + COUNT ( ALL + 44 ) + 74 AS col0
----
75

query I rowsort
SELECT 22 + + 14
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5431
SELECT ALL + COALESCE ( - 85, + 95, 40 ) DIV - - COUNT( * ) * + COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL + COALESCE ( - 85, + 95, 40 ) / - - COUNT ( * ) * + COUNT ( * ) AS col2
----
-85

query I rowsort
SELECT ( - - ( - - 13 ) ) + + 9 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT ( - 62 ) + + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT ( - 62 ) + + COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5434
SELECT + 90 DIV 70 + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5434
SELECT + 90 / 70 + - - COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT - COALESCE ( + 30, - 73 + - + 21 ) + 85 * - 94 AS col1
----
-8020

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT DISTINCT 70 + - + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT 70 + - + COUNT ( * )
----
69

query I rowsort
SELECT ALL 69 - 77 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT COALESCE ( 55, - MAX( DISTINCT + 57 ) ) * + - ( - + 64 )
----
3520

skipif mysql # not compatible
query I rowsort label-5438
SELECT COALESCE ( 55, - MAX ( DISTINCT + 57 ) ) * + - ( - + 64 )
----
3520

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5439
SELECT 81 * - 47 AS col2, CAST( 40 AS SIGNED ) + 15 DIV 69 * + - 0 AS col0
----
-3807
40

skipif mysql # not compatible
query II rowsort label-5439
SELECT 81 * - 47 AS col2, CAST ( 40 AS INTEGER ) + 15 / 69 * + - 0 AS col0
----
-3807
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT + COALESCE ( 83, + 87 ) * - SUM( - - 47 ) + + ( + ( + - COUNT( ALL + - 16 ) ) )
----
-3902

skipif mysql # not compatible
query I rowsort label-5440
SELECT + COALESCE ( 83, + 87 ) * - SUM ( - - 47 ) + + ( + ( + - COUNT ( ALL + - 16 ) ) )
----
-3902

query I rowsort
SELECT ALL + 38 * + + 19
----
722

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5442
SELECT - ( CAST( + 59 AS SIGNED ) ) + - + 3
----
-62

skipif mysql # not compatible
query I rowsort label-5442
SELECT - ( CAST ( + 59 AS INTEGER ) ) + - + 3
----
-62

query I rowsort
SELECT - - ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL - 94 * + 57 * + COUNT( * ) AS col2
----
-5358

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL - 94 * + 57 * + COUNT ( * ) AS col2
----
-5358

query I rowsort
SELECT 95 * ( 61 ) col1
----
5795

query I rowsort
SELECT - 82 + - 69 AS col2
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT MAX( DISTINCT + 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-5447
SELECT MAX ( DISTINCT + 19 ) AS col2
----
19

query I rowsort
SELECT - 25 * - 64
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT + COUNT( * ) + 17 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5449
SELECT + COUNT ( * ) + 17 AS col1
----
18

query I rowsort
SELECT DISTINCT - COALESCE ( 56, + + 90 ) AS col1
----
-56

query I rowsort
SELECT DISTINCT + 0 + + 10 * + - 49 AS col1
----
-490

query I rowsort
SELECT DISTINCT + + 90 + + 68 AS col1
----
158

query I rowsort
SELECT ALL - + 28 + + 30 AS col2
----
2

query I rowsort
SELECT ALL + 87 + - + 17
----
70

query I rowsort
SELECT + 98 * - - 88 + 65 col2
----
8689

query I rowsort
SELECT ALL - COALESCE ( 96, - 40 )
----
-96

query I rowsort
SELECT - 65 - 21 AS col2
----
-86

query I rowsort
SELECT ALL - 64 * 75 * - 77 * - 42 - 67
----
-15523267

query I rowsort
SELECT - 58 * + ( 76 ) AS col1
----
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT COALESCE ( 2, - ( + 9 ) - - COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-5460
SELECT COALESCE ( 2, - ( + 9 ) - - COUNT ( * ) )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5461
SELECT ALL 79 * + 60 * - + COUNT( * ) / - + CASE + 82 WHEN + - ( + - 75 ) THEN NULL WHEN MIN( DISTINCT + 77 ) * 16 THEN - + 77 * + + COUNT( * ) + + 16 - COUNT( * ) - + + 17 * - CAST( + + 76 AS SIGNED ) * + 55 * CAST( NULL AS SIGNED ) + 64 END * 79 * - 57 - + ( - 17 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL 79 * + 60 * - + COUNT ( * ) / - + CASE + 82 WHEN + - ( + - 75 ) THEN NULL WHEN MIN ( DISTINCT + 77 ) * 16 THEN - + 77 * + + COUNT ( * ) + + 16 - COUNT ( * ) - + + 17 * - CAST ( + + 76 AS INTEGER ) * + 55 * CAST ( NULL AS INTEGER ) + 64 END * 79 * - 57 - + ( - 17 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5462
SELECT ALL 5 DIV + - 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL 5 / + - 36 AS col2
----
0

query II rowsort
SELECT 33 * + - 56 - - 69 AS col2, + 25 col1
----
-1779
25

query II rowsort
SELECT - 22 * - + 39 * - 84 AS col2, 93
----
-72072
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-5465
SELECT - 81 + - 79 + - 14 + + + 37 * + 62 + + 0 / + - CASE - - 48 WHEN - 22 * 45 * + COUNT( * ) * 51 + 0 + + 89 / + - 2 THEN NULL WHEN + 81 THEN - 65 + - COUNT( * ) ELSE NULL END, + 99 col0, - CAST( NULL AS DECIMAL )
----
NULL
99
NULL

skipif mysql # not compatible
query III rowsort label-5465
SELECT - 81 + - 79 + - 14 + + + 37 * + 62 + + 0 / + - CASE - - 48 WHEN - 22 * 45 * + COUNT ( * ) * 51 + 0 + + 89 / + - 2 THEN NULL WHEN + 81 THEN - 65 + - COUNT ( * ) ELSE NULL END, + 99 col0, - CAST ( NULL AS REAL )
----
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT + SUM( DISTINCT - - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-5466
SELECT + SUM ( DISTINCT - - 11 )
----
11

query II rowsort
SELECT + 68, NULLIF ( 85, + + 94 * - - 2 - - - 26 + + 47 * + 52 ) AS col0
----
68
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + SUM( 77 )
----
77

skipif mysql # not compatible
query I rowsort label-5468
SELECT + SUM ( 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT CASE + MIN( ( - 57 ) ) WHEN 38 * 51 THEN + 82 WHEN - + 93 THEN - 37 ELSE + 39 END AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5469
SELECT CASE + MIN ( ( - 57 ) ) WHEN 38 * 51 THEN + 82 WHEN - + 93 THEN - 37 ELSE + 39 END AS col0
----
39

query I rowsort
SELECT ALL 69 * - + 67 AS col2
----
-4623

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT + 81 DIV - + 27 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5471
SELECT + 81 / - + 27 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5472
SELECT + COUNT( * ) * - + 62 + - 28 * - - 43 DIV - COUNT( * ) AS col0
----
1142

skipif mysql # not compatible
query I rowsort label-5472
SELECT + COUNT ( * ) * - + 62 + - 28 * - - 43 / - COUNT ( * ) AS col0
----
1142

query I rowsort
SELECT ALL 63 * + - 42
----
-2646

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT COUNT( DISTINCT + 29 )
----
1

skipif mysql # not compatible
query I rowsort label-5474
SELECT COUNT ( DISTINCT + 29 )
----
1

query I rowsort
SELECT DISTINCT + ( + 6 ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5476
SELECT + COUNT( * ) AS col2, 12 * - - CASE - 77 WHEN CASE - + 97 WHEN - 56 * + COUNT( 45 ) + + 94 THEN NULL ELSE SUM( DISTINCT 33 ) * - + CAST( NULL AS SIGNED ) * - 27 * 98 / 74 / + - CAST( + 74 AS SIGNED ) - 76 END - 17 THEN + COUNT( * ) END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5476
SELECT + COUNT ( * ) AS col2, 12 * - - CASE - 77 WHEN CASE - + 97 WHEN - 56 * + COUNT ( 45 ) + + 94 THEN NULL ELSE SUM ( DISTINCT 33 ) * - + CAST ( NULL AS INTEGER ) * - 27 * 98 / 74 / + - CAST ( + 74 AS INTEGER ) - 76 END - 17 THEN + COUNT ( * ) END
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT ALL + + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5478
SELECT + 10 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-5478
SELECT + 10 / - 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5479
SELECT + 79 * 40 + - + CAST( CASE 45 WHEN - + 73 + ( 11 ) THEN + COUNT( * ) + COALESCE ( + - 2, - 16 ) END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT + 79 * 40 + - + CAST ( CASE 45 WHEN - + 73 + ( 11 ) THEN + COUNT ( * ) + COALESCE ( + - 2, - 16 ) END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT + - 51 + - COUNT( * ) col0
----
-52

skipif mysql # not compatible
query I rowsort label-5480
SELECT + - 51 + - COUNT ( * ) col0
----
-52

query I rowsort
SELECT + + 77 * - - 22
----
1694

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5482
SELECT ALL + 71 + - ( + 71 ) * + - 53 / - - CAST( NULL AS SIGNED ) * + 46 + + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL + 71 + - ( + 71 ) * + - 53 / - - CAST ( NULL AS INTEGER ) * + 46 + + - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ALL + 13 + NULLIF ( + COUNT( * ), + 32 ) col0
----
14

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL + 13 + NULLIF ( + COUNT ( * ), + 32 ) col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5484
SELECT ALL + ( + + NULLIF ( 11, 39 * + 30 ) ) + - + 71 AS col2, 87 * 18 * - + COUNT( * ) col1
----
-60
-1566

skipif mysql # not compatible
query II rowsort label-5484
SELECT ALL + ( + + NULLIF ( 11, 39 * + 30 ) ) + - + 71 AS col2, 87 * 18 * - + COUNT ( * ) col1
----
-60
-1566

query II rowsort
SELECT DISTINCT + 53, + 73 AS col0
----
53
73

query I rowsort
SELECT ALL NULLIF ( - 80, 2 * 35 ) * + ( - 20 ) + - 10
----
1590

query I rowsort
SELECT + 26 + + - 17 + 63 * - 13 * - 54
----
44235

query I rowsort
SELECT ALL 65 + + 10 AS col2
----
75

query I rowsort
SELECT + 89 + - 89 * - 18 AS col2
----
1691

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT ALL COALESCE ( COUNT( DISTINCT - - 64 ), - - 10 * + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL COALESCE ( COUNT ( DISTINCT - - 64 ), - - 10 * + 87 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT ALL COUNT( * ) - 26 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL COUNT ( * ) - 26 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT DISTINCT SUM( 20 )
----
20

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT SUM ( 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT - COUNT( * ) + - - 84 * - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-5493
SELECT - COUNT ( * ) + - - 84 * - COUNT ( * )
----
-85

query I rowsort
SELECT ALL + 1 - - 45
----
46

query I rowsort
SELECT - 35 * - 2 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT ALL COUNT( DISTINCT + CASE + + 19 WHEN 40 + 27 THEN 11 + 79 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL COUNT ( DISTINCT + CASE + + 19 WHEN 40 + 27 THEN 11 + 79 END ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT - COUNT( * ) + - 59 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5497
SELECT - COUNT ( * ) + - 59 AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT CAST( - 60 AS SIGNED ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5498
SELECT CAST ( - 60 AS INTEGER ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT DISTINCT + MAX( DISTINCT + + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT + MAX ( DISTINCT + + 73 )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT ALL 44 DIV 72 - - 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL 44 / 72 - - 22 AS col0
----
22

query I rowsort
SELECT + 99 * + 44
----
4356

query I rowsort
SELECT - 5 * 92
----
-460

query I rowsort
SELECT - 69 * - ( - 95 ) col2
----
-6555

query I rowsort
SELECT ALL + NULLIF ( + 6, - 31 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5505
SELECT - 4 * COUNT( * ) AS col2, 86 + + ( - 43 ) AS col2
----
-4
43

skipif mysql # not compatible
query II rowsort label-5505
SELECT - 4 * COUNT ( * ) AS col2, 86 + + ( - 43 ) AS col2
----
-4
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT ALL 15 DIV 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL 15 / 85 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5507
SELECT DISTINCT - CASE + 34 WHEN 46 + - 20 THEN + 76 WHEN - 41 / + 19 THEN NULL ELSE NULL END * 33 * COUNT( - 51 ) * + 29 + + 35 + + COALESCE ( - CAST( NULL AS SIGNED ), - 32 ) + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT - CASE + 34 WHEN 46 + - 20 THEN + 76 WHEN - 41 / + 19 THEN NULL ELSE NULL END * 33 * COUNT ( - 51 ) * + 29 + + 35 + + COALESCE ( - CAST ( NULL AS INTEGER ), - 32 ) + 89 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5508
SELECT - 80 * + 44, ( + CAST( - - 93 AS SIGNED ) ) AS col0
----
-3520
93

skipif mysql # not compatible
query II rowsort label-5508
SELECT - 80 * + 44, ( + CAST ( - - 93 AS INTEGER ) ) AS col0
----
-3520
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT DISTINCT 24 * + ( + SUM( + + ( 1 ) ) ) + + 48 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT 24 * + ( + SUM ( + + ( 1 ) ) ) + + 48 AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5510
SELECT + + 66 DIV 22 + + 44 + - - COUNT( + 74 ) + - + COALESCE ( + - 51, 78, - - 23 ) * - + 58 * + 52 + - - COUNT( DISTINCT - + 3 )
----
-153767

skipif mysql # not compatible
query I rowsort label-5510
SELECT + + 66 / 22 + + 44 + - - COUNT ( + 74 ) + - + COALESCE ( + - 51, 78, - - 23 ) * - + 58 * + 52 + - - COUNT ( DISTINCT - + 3 )
----
-153767

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL + COUNT( * ) * 90 + - ( + + COUNT( * ) )
----
89

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL + COUNT ( * ) * 90 + - ( + + COUNT ( * ) )
----
89

query I rowsort
SELECT ALL + ( 87 ) col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5513
SELECT DISTINCT - + CAST( - 85 AS SIGNED ) * - - 77 + + COUNT( * ) DIV 50
----
6545

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT - + CAST ( - 85 AS INTEGER ) * - - 77 + + COUNT ( * ) / 50
----
6545

query I rowsort
SELECT + 71 * + + ( - 53 ) AS col0
----
-3763

query I rowsort
SELECT ALL - 59 + + - 73
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT MAX( ALL 44 ), 38 AS col1
----
44
38

skipif mysql # not compatible
query II rowsort label-5516
SELECT MAX ( ALL 44 ), 38 AS col1
----
44
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT SUM( - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-5517
SELECT SUM ( - 68 ) AS col0
----
-68

query I rowsort
SELECT + 37 * 33 AS col0
----
1221

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT + SUM( 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5519
SELECT + SUM ( 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT DISTINCT COUNT( DISTINCT 21 ) * + SUM( ALL ( 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT COUNT ( DISTINCT 21 ) * + SUM ( ALL ( 99 ) )
----
99

query I rowsort
SELECT ALL 53 - + - 34
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5522
SELECT - 96 col0, + COUNT( * ) * 36 AS col2
----
-96
36

skipif mysql # not compatible
query II rowsort label-5522
SELECT - 96 col0, + COUNT ( * ) * 36 AS col2
----
-96
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5523
SELECT COUNT( * ) * - - NULLIF ( - ( - 50 ), + + 92 ), 60 AS col1
----
50
60

skipif mysql # not compatible
query II rowsort label-5523
SELECT COUNT ( * ) * - - NULLIF ( - ( - 50 ), + + 92 ), 60 AS col1
----
50
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5524
SELECT COUNT( * ) DIV - + 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5524
SELECT COUNT ( * ) / - + 23 AS col2
----
0

query I rowsort
SELECT 82 * - + 94
----
-7708

onlyif mysql # aggregate syntax: 
query II rowsort label-5526
SELECT ALL 65 AS col0, - COUNT( * ) + + - 86
----
65
-87

skipif mysql # not compatible
query II rowsort label-5526
SELECT ALL 65 AS col0, - COUNT ( * ) + + - 86
----
65
-87

query I rowsort
SELECT DISTINCT 16 * - 99 AS col2
----
-1584

query I rowsort
SELECT 72 * - 96
----
-6912

onlyif mysql # aggregate syntax: 
query II rowsort label-5529
SELECT ALL + 98 + + 92 + 95 col0, 19 * - COUNT( * ) AS col0
----
285
-19

skipif mysql # not compatible
query II rowsort label-5529
SELECT ALL + 98 + + 92 + 95 col0, 19 * - COUNT ( * ) AS col0
----
285
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT NULLIF ( - 34, - + NULLIF ( - 68, + 42 ) DIV + 8 * 92 - + - 78 ) DIV 92 DIV - 99 * + + 54 + + 18
----
18

skipif mysql # not compatible
query I rowsort label-5530
SELECT NULLIF ( - 34, - + NULLIF ( - 68, + 42 ) / + 8 * 92 - + - 78 ) / 92 / - 99 * + + 54 + + 18
----
18

query I rowsort
SELECT - - 7 * - 9 - - 43 col1
----
-20

query I rowsort
SELECT + ( + + ( - 11 ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT + - MIN( ALL + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-5533
SELECT + - MIN ( ALL + 59 )
----
-59

query I rowsort
SELECT + 52 * + 3
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5535
SELECT ( + COUNT( * ) ) + ( + + 40 ) + - COALESCE ( + 72, + 42 * + 88 ) DIV - SUM( - 69 ) AS col0, - COUNT( * ) AS col2
----
40
-1

skipif mysql # not compatible
query II rowsort label-5535
SELECT ( + COUNT ( * ) ) + ( + + 40 ) + - COALESCE ( + 72, + 42 * + 88 ) / - SUM ( - 69 ) AS col0, - COUNT ( * ) AS col2
----
40
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT - 1 * + ( - 47 ) * MIN( ALL + 26 ) + COALESCE ( + SUM( 3 ), + + 72 )
----
1225

skipif mysql # not compatible
query I rowsort label-5536
SELECT - 1 * + ( - 47 ) * MIN ( ALL + 26 ) + COALESCE ( + SUM ( 3 ), + + 72 )
----
1225

onlyif mysql # DIV for integer division: 
query I rowsort label-5537
SELECT DISTINCT 70 + - + 42 + - + 28 DIV - + 44
----
28

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT 70 + - + 42 + - + 28 / - + 44
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT DISTINCT + CAST( + 20 AS SIGNED ) * 69 AS col1
----
1380

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT + CAST ( + 20 AS INTEGER ) * 69 AS col1
----
1380

query II rowsort
SELECT DISTINCT - + 93, + 39 AS col1
----
-93
39

query I rowsort
SELECT ALL + ( + 70 ) * - 12 + 8 + - - 1 col0
----
-831

query I rowsort
SELECT ALL - ( NULLIF ( + 45, + + 5 ) )
----
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5542
SELECT - 85 DIV CAST( + 29 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-5542
SELECT - 85 / CAST ( + 29 AS INTEGER )
----
-2

query I rowsort
SELECT 8 + + 84
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT ALL - CASE + + MIN( - 81 ) WHEN + + 40 THEN MIN( - + 21 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL - CASE + + MIN ( - 81 ) WHEN + + 40 THEN MIN ( - + 21 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5545
SELECT DISTINCT + - COUNT( DISTINCT - + CASE + 86 WHEN - 36 THEN - 59 ELSE - 36 END ) DIV - + CAST( - 35 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT + - COUNT ( DISTINCT - + CASE + 86 WHEN - 36 THEN - 59 ELSE - 36 END ) / - + CAST ( - 35 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT 8 * 48 - 31 - 75 AS col2
----
278

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT MAX( DISTINCT + 23 ) * 65 AS col2
----
1495

skipif mysql # not compatible
query I rowsort label-5547
SELECT MAX ( DISTINCT + 23 ) * 65 AS col2
----
1495

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT COALESCE ( 65, + 77 ) * + 67 - COUNT( * ) + + 71 + + 37 AS col1
----
4462

skipif mysql # not compatible
query I rowsort label-5548
SELECT COALESCE ( 65, + 77 ) * + 67 - COUNT ( * ) + + 71 + + 37 AS col1
----
4462

query I rowsort
SELECT ALL + + 42 * 61
----
2562

query I rowsort
SELECT ALL + + 25 - - 90 AS col0
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5551
SELECT - 20 AS col1, COUNT( * ) + - CAST( NULL AS SIGNED ) + - 70 * + - NULLIF ( + - 21, 54 * 48 + 72 ) AS col1
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-5551
SELECT - 20 AS col1, COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 70 * + - NULLIF ( + - 21, 54 * 48 + 72 ) AS col1
----
-20
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5552
SELECT ALL - NULLIF ( + - 71, - 48 + - CAST( NULL AS SIGNED ) ) - + - 14 + - + CASE + 10 WHEN - + 51 THEN NULL ELSE + 65 DIV + 66 END, 59 col0
----
85
59

skipif mysql # not compatible
query II rowsort label-5552
SELECT ALL - NULLIF ( + - 71, - 48 + - CAST ( NULL AS INTEGER ) ) - + - 14 + - + CASE + 10 WHEN - + 51 THEN NULL ELSE + 65 / + 66 END, 59 col0
----
85
59

query II rowsort
SELECT DISTINCT 34 AS col2, + 36 AS col0
----
34
36

query II rowsort
SELECT ALL 86 AS col1, - 64 col1
----
86
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT NULLIF ( - 0, - 56 / - CAST( NULL AS SIGNED ) ) - + - 42
----
42

skipif mysql # not compatible
query I rowsort label-5555
SELECT NULLIF ( - 0, - 56 / - CAST ( NULL AS INTEGER ) ) - + - 42
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT 21 + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT 21 + - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 56 - + - 17 - + 13 AS col0
----
60

query I rowsort
SELECT ALL - 1 * + 68 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ( + 83 ) + - 84 * + 98 - - 40 * - + 58 + - COUNT( * ) AS col1
----
-10470

skipif mysql # not compatible
query I rowsort label-5559
SELECT ( + 83 ) + - 84 * + 98 - - 40 * - + 58 + - COUNT ( * ) AS col1
----
-10470

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5560
SELECT 40 * - 82, CAST( NULL AS SIGNED ) AS col1
----
-3280
NULL

skipif mysql # not compatible
query II rowsort label-5560
SELECT 40 * - 82, CAST ( NULL AS INTEGER ) AS col1
----
-3280
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT - COUNT( ALL - 67 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5561
SELECT - COUNT ( ALL - 67 ) col1
----
-1

query I rowsort
SELECT 56 + - 67 + - 92 * + 73
----
-6727

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT COUNT( + - 41 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT COUNT ( + - 41 ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5564
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - 92 * + 95 / + ( - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT - CAST ( NULL AS REAL ) + - 92 * + 95 / + ( - 91 )
----
NULL

query I rowsort
SELECT ALL 40 * + 48 AS col1
----
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT COUNT( - + 69 ) * - + 81
----
-81

skipif mysql # not compatible
query I rowsort label-5566
SELECT COUNT ( - + 69 ) * - + 81
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5567
SELECT ( - 60 ) + COUNT( * ) DIV 26 DIV + + 17
----
-60

skipif mysql # not compatible
query I rowsort label-5567
SELECT ( - 60 ) + COUNT ( * ) / 26 / + + 17
----
-60

query I rowsort
SELECT ALL 4 * 10 AS col0
----
40

query II rowsort
SELECT + 27 AS col2, - 33 AS col0
----
27
-33

query I rowsort
SELECT 0 + + - 35
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5571
SELECT DISTINCT COUNT( * ) * - 86 DIV + - 41
----
2

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT COUNT ( * ) * - 86 / + - 41
----
2

query I rowsort
SELECT DISTINCT ( - + 77 ) * + 65 + - NULLIF ( + 74, - + 9 )
----
-5079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5573
SELECT ALL - 81 * 87 + + COALESCE ( - 24, CAST( NULL AS SIGNED ) ) AS col2
----
-7071

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - 81 * 87 + + COALESCE ( - 24, CAST ( NULL AS INTEGER ) ) AS col2
----
-7071

query I rowsort
SELECT 8 * + 27 AS col2
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-5575
SELECT ALL + ( + ( - 57 ) ) * - - 48 + - 77 DIV + 14 AS col1
----
-2741

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL + ( + ( - 57 ) ) * - - 48 + - 77 / + 14 AS col1
----
-2741

onlyif mysql # DIV for integer division: 
query II rowsort label-5576
SELECT 65 AS col2, 14 - - + 38 + - 15 + + 4 DIV + 4 + + 66 AS col2
----
65
104

skipif mysql # not compatible
query II rowsort label-5576
SELECT 65 AS col2, 14 - - + 38 + - 15 + + 4 / + 4 + + 66 AS col2
----
65
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5577
SELECT ALL 15 * + - 40 + + - 65 DIV - MAX( ALL 88 ) + 36 AS col1
----
-564

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL 15 * + - 40 + + - 65 / - MAX ( ALL 88 ) + 36 AS col1
----
-564

query I rowsort
SELECT + NULLIF ( + + 77, - 30 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT + 69 - + - COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-5579
SELECT + 69 - + - COUNT ( * ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT - - 65 * 58 * + + 51 * MAX( DISTINCT + + 87 )
----
16727490

skipif mysql # not compatible
query I rowsort label-5580
SELECT - - 65 * 58 * + + 51 * MAX ( DISTINCT + + 87 )
----
16727490

onlyif mysql # aggregate syntax: 
query II rowsort label-5581
SELECT COUNT( * ) AS col1, - 5 AS col1
----
1
-5

skipif mysql # not compatible
query II rowsort label-5581
SELECT COUNT ( * ) AS col1, - 5 AS col1
----
1
-5

query I rowsort
SELECT ALL + + 89 * - + 72 + + + 57
----
-6351

onlyif mysql # aggregate syntax: 
query II rowsort label-5583
SELECT + + 0 AS col1, - COUNT( * ) col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-5583
SELECT + + 0 AS col1, - COUNT ( * ) col1
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT 62 * - - 66 + + 9 + + 95 + - MIN( ALL - 90 ) + ( + 83 ) * - - 76 + + 20 * + 32 + + 74 + + 63
----
11371

skipif mysql # not compatible
query I rowsort label-5584
SELECT 62 * - - 66 + + 9 + + 95 + - MIN ( ALL - 90 ) + ( + 83 ) * - - 76 + + 20 * + 32 + + 74 + + 63
----
11371

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT - 19 - + COUNT( ALL 82 )
----
-20

skipif mysql # not compatible
query I rowsort label-5585
SELECT - 19 - + COUNT ( ALL 82 )
----
-20

query II rowsort
SELECT ALL 89 * - - 4 AS col0, COALESCE ( - + 5, + 51 )
----
356
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT DISTINCT + - CASE - 99 WHEN 27 + 94 THEN NULL ELSE + + CASE + 7 WHEN - - 67 THEN NULL WHEN - 59 THEN + 10 ELSE + MIN( - 79 ) - + 97 END + - 40 END AS col1
----
216

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT + - CASE - 99 WHEN 27 + 94 THEN NULL ELSE + + CASE + 7 WHEN - - 67 THEN NULL WHEN - 59 THEN + 10 ELSE + MIN ( - 79 ) - + 97 END + - 40 END AS col1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT + - 47 * MIN( + 11 ) * + SUM( + 33 ) * + + ( + + 81 ) AS col2
----
-1381941

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT + - 47 * MIN ( + 11 ) * + SUM ( + 33 ) * + + ( + + 81 ) AS col2
----
-1381941

onlyif mysql # aggregate syntax: 
query II rowsort label-5589
SELECT + 6 * 2 col0, + 22 * + 84 * - ( + 40 ) * + 95 - + + 57 + 51 / COUNT( * ) * - + CASE + 87 WHEN + 56 + - SUM( 15 ) + 30 THEN + 79 WHEN 42 THEN - 67 END AS col2
----
12
NULL

skipif mysql # not compatible
query II rowsort label-5589
SELECT + 6 * 2 col0, + 22 * + 84 * - ( + 40 ) * + 95 - + + 57 + 51 / COUNT ( * ) * - + CASE + 87 WHEN + 56 + - SUM ( 15 ) + 30 THEN + 79 WHEN 42 THEN - 67 END AS col2
----
12
NULL

query I rowsort
SELECT - NULLIF ( + 10, + 58 * - 53 + + ( 53 ) ) + + 20
----
10

query I rowsort
SELECT ( 35 ) * + 44 * - - 88 * - 92 + - 55
----
-12467895

query I rowsort
SELECT ALL + 42 + + 82
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-5593
SELECT + COUNT( * ) * - 52 AS col1, + 74 + - - 11
----
-52
85

skipif mysql # not compatible
query II rowsort label-5593
SELECT + COUNT ( * ) * - 52 AS col1, + 74 + - - 11
----
-52
85

query I rowsort
SELECT DISTINCT - 25 + + 48 AS col0
----
23

query I rowsort
SELECT ALL + 70 * - + 27
----
-1890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5596
SELECT DISTINCT + CAST( + - 27 AS SIGNED ) + - 94 + - 87
----
-208

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT + CAST ( + - 27 AS INTEGER ) + - 94 + - 87
----
-208

query I rowsort
SELECT ALL 99 * + - 84
----
-8316

query II rowsort
SELECT DISTINCT - 25 + 34 + + 70 AS col0, 75 * 99 AS col1
----
79
7425

query I rowsort
SELECT ALL + 71 * 65
----
4615

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5600
SELECT ALL - 7 + + - CAST( + 17 AS SIGNED ), - 80 AS col2
----
-24
-80

skipif mysql # not compatible
query II rowsort label-5600
SELECT ALL - 7 + + - CAST ( + 17 AS INTEGER ), - 80 AS col2
----
-24
-80

query I rowsort
SELECT ALL + 53 * + - 67 * 56 AS col1
----
-198856

query I rowsort
SELECT + 74 * - + 75
----
-5550

query I rowsort
SELECT ALL 56 + + + 83 - - 81 AS col1
----
220

query I rowsort
SELECT ALL + 53 * + 46
----
2438

onlyif mysql # DIV for integer division: 
query I rowsort label-5605
SELECT ALL + 99 DIV 78 * 66 * 93 * - 6 * + - 55 AS col0
----
2025540

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL + 99 / 78 * 66 * 93 * - 6 * + - 55 AS col0
----
2025540

query I rowsort
SELECT + + ( + 76 ) col1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5607
SELECT ALL + 6 DIV + MAX( ALL - 94 ) - MIN( DISTINCT - 9 ) * - ( 89 )
----
-801

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL + 6 / + MAX ( ALL - 94 ) - MIN ( DISTINCT - 9 ) * - ( 89 )
----
-801

query I rowsort
SELECT DISTINCT 31 * + - ( 96 ) * - 85 AS col1
----
252960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5609
SELECT ALL + - COUNT( - - ( 66 ) ) DIV - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL + - COUNT ( - - ( 66 ) ) / - 59 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5610
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 78 - - - CASE WHEN NOT + NULLIF ( 27, + ( + 73 ) + + 78 * + + 31 ) IS NOT NULL THEN + 66 + - - MAX( 92 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 78 - - - CASE WHEN NOT + NULLIF ( 27, + ( + 73 ) + + 78 * + + 31 ) IS NOT NULL THEN + 66 + - - MAX ( 92 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5611
SELECT ALL MAX( ALL 95 ) DIV - - ( COUNT( * ) ) col1
----
95

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL MAX ( ALL 95 ) / - - ( COUNT ( * ) ) col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT 74 DIV - 37 + + ( - 13 ) + + 68 * + 54
----
3657

skipif mysql # not compatible
query I rowsort label-5612
SELECT 74 / - 37 + + ( - 13 ) + + 68 * + 54
----
3657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5613
SELECT + SUM( DISTINCT 70 ) DIV ( + 47 ) + + COALESCE ( + 5, 98 * - + COUNT( * ) ) - - 86 col1
----
92

skipif mysql # not compatible
query I rowsort label-5613
SELECT + SUM ( DISTINCT 70 ) / ( + 47 ) + + COALESCE ( + 5, 98 * - + COUNT ( * ) ) - - 86 col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT + CAST( + - 48 AS SIGNED ) * + + 60 AS col2
----
-2880

skipif mysql # not compatible
query I rowsort label-5614
SELECT + CAST ( + - 48 AS INTEGER ) * + + 60 AS col2
----
-2880

query I rowsort
SELECT + 90 + 85
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT DISTINCT ( - 80 ) * - - CAST( NULL AS SIGNED ) * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT ( - 80 ) * - - CAST ( NULL AS INTEGER ) * - 77
----
NULL

query I rowsort
SELECT + 91 * + 97 * + 25 * + + 45 + - 2 AS col1
----
9930373

onlyif mysql # aggregate syntax: 
query II rowsort label-5618
SELECT ALL + COUNT( DISTINCT + - 68 ) AS col2, 6 * + 99 * - - 74 + + MAX( - ( - 66 ) ) AS col1
----
1
44022

skipif mysql # not compatible
query II rowsort label-5618
SELECT ALL + COUNT ( DISTINCT + - 68 ) AS col2, 6 * + 99 * - - 74 + + MAX ( - ( - 66 ) ) AS col1
----
1
44022

query I rowsort
SELECT + + 42 * + - 66
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT - COUNT( 68 ) + 73 * - + 42 + + + 63
----
-3004

skipif mysql # not compatible
query I rowsort label-5620
SELECT - COUNT ( 68 ) + 73 * - + 42 + + + 63
----
-3004

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT ALL + SUM( ALL - 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL + SUM ( ALL - 17 ) AS col2
----
-17

query I rowsort
SELECT + 83 * + 56 AS col2
----
4648

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT CASE + 28 WHEN 77 + + AVG ( + 26 ) + - + 37 * COALESCE ( + SUM( ALL + 54 ), + 98 ) THEN 7 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT CASE + 28 WHEN 77 + + AVG ( + 26 ) + - + 37 * COALESCE ( + SUM ( ALL + 54 ), + 98 ) THEN 7 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT COUNT( - 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5624
SELECT COUNT ( - 88 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 38 * - 94
----
-3572

query I rowsort
SELECT ALL ( + 81 ) col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT - COUNT( * ) + + 81 + + - 91 * + + ( + 86 ) + - 2 - 78
----
-7826

skipif mysql # not compatible
query I rowsort label-5627
SELECT - COUNT ( * ) + + 81 + + - 91 * + + ( + 86 ) + - 2 - 78
----
-7826

query I rowsort
SELECT ALL 96 * + 82 + - 59 AS col2
----
7813

onlyif mysql # aggregate syntax: 
query II rowsort label-5629
SELECT DISTINCT COUNT( * ) * - 84 + 32 AS col1, + 2 AS col1
----
-52
2

skipif mysql # not compatible
query II rowsort label-5629
SELECT DISTINCT COUNT ( * ) * - 84 + 32 AS col1, + 2 AS col1
----
-52
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT - 22 - + + COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-5630
SELECT - 22 - + + COUNT ( * ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5631
SELECT ALL CASE - + ( 41 ) WHEN - 26 * 91 + - ( COUNT( * ) ) THEN - - 82 ELSE - - 28 * - CAST( - - 64 AS SIGNED ) END AS col0
----
-1792

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL CASE - + ( 41 ) WHEN - 26 * 91 + - ( COUNT ( * ) ) THEN - - 82 ELSE - - 28 * - CAST ( - - 64 AS INTEGER ) END AS col0
----
-1792

onlyif mysql # aggregate syntax: 
query II rowsort label-5632
SELECT + MIN( 0 ) + + COUNT( * ) AS col2, COUNT( * ) * + 97 AS col1
----
1
97

skipif mysql # not compatible
query II rowsort label-5632
SELECT + MIN ( 0 ) + + COUNT ( * ) AS col2, COUNT ( * ) * + 97 AS col1
----
1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL NULLIF ( - 25, 90 * + CASE + + 50 WHEN + 83 + - - 16 - - 8 * + - COUNT( * ) + MAX( - 28 ) THEN NULL WHEN - SUM( DISTINCT - 75 ) THEN COUNT( * ) - + 49 END ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL NULLIF ( - 25, 90 * + CASE + + 50 WHEN + 83 + - - 16 - - 8 * + - COUNT ( * ) + MAX ( - 28 ) THEN NULL WHEN - SUM ( DISTINCT - 75 ) THEN COUNT ( * ) - + 49 END ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT - 86 + 50 - - 19 * 37 * - + 10 - - MIN( ALL + 28 ) AS col2
----
-7038

skipif mysql # not compatible
query I rowsort label-5634
SELECT - 86 + 50 - - 19 * 37 * - + 10 - - MIN ( ALL + 28 ) AS col2
----
-7038

onlyif mysql # aggregate syntax: 
query II rowsort label-5635
SELECT - ( 58 ) + - 55 AS col1, + 6 * + 33 * 64 * - - ( + + 44 ) - - 33 + - 16 * + 75 * + SUM( ALL ( - 81 ) )
----
-113
654801

skipif mysql # not compatible
query II rowsort label-5635
SELECT - ( 58 ) + - 55 AS col1, + 6 * + 33 * 64 * - - ( + + 44 ) - - 33 + - 16 * + 75 * + SUM ( ALL ( - 81 ) )
----
-113
654801

query I rowsort
SELECT ALL NULLIF ( - 94, 21 + + 92 ) AS col1
----
-94

query I rowsort
SELECT ALL + - 23 - - 56
----
33

query I rowsort
SELECT DISTINCT - + 60 * 38 - 68 + + 49
----
-2299

query I rowsort
SELECT ALL 24 - - 78 AS col2
----
102

query I rowsort
SELECT - 94 + - 63
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL + - 48 * COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL + - 48 * COUNT ( * ) AS col0
----
-48

query I rowsort
SELECT - 8 + 58
----
50

query I rowsort
SELECT + 47 * - 53
----
-2491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5644
SELECT DISTINCT + CAST( + ( + 30 ) AS SIGNED ) * COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT + CAST ( + ( + 30 ) AS INTEGER ) * COUNT ( * )
----
30

query I rowsort
SELECT - 56 * - 11 + COALESCE ( + 23, - 52 )
----
639

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT ALL - + NULLIF ( + 78, + COUNT( * ) / 8 + 61 * + 65 )
----
-78

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL - + NULLIF ( + 78, + COUNT ( * ) / 8 + 61 * + 65 )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-5647
SELECT + COUNT( * ) AS col1, + 24 AS col1
----
1
24

skipif mysql # not compatible
query II rowsort label-5647
SELECT + COUNT ( * ) AS col1, + 24 AS col1
----
1
24

query I rowsort
SELECT ALL - 32 * ( - 32 ) AS col1
----
1024

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5649
SELECT 75 AS col1, + 47 + + + 94 * - 85 + + SUM( - 17 ) DIV - 48
----
75
-7943

skipif mysql # not compatible
query II rowsort label-5649
SELECT 75 AS col1, + 47 + + + 94 * - 85 + + SUM ( - 17 ) / - 48
----
75
-7943

onlyif mysql # DIV for integer division: 
query I rowsort label-5650
SELECT DISTINCT + 93 DIV - + 61
----
-1

skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT + 93 / - + 61
----
-1

query II rowsort
SELECT ALL - + 71 AS col2, 16
----
-71
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5652
SELECT 17 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-5652
SELECT 17 / - 57
----
0

query II rowsort
SELECT ALL - 6 AS col1, - 10 AS col0
----
-6
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5654
SELECT - 39 DIV + COUNT( * ) + + 77, 89 * - - 39 AS col0
----
38
3471

skipif mysql # not compatible
query II rowsort label-5654
SELECT - 39 / + COUNT ( * ) + + 77, 89 * - - 39 AS col0
----
38
3471

query I rowsort
SELECT ALL + 99 + + 80
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ( + ( 42 ) ) * 35 + + 63 - + 64 + 90 * + 8 + 16 - + + COUNT( * )
----
2204

skipif mysql # not compatible
query I rowsort label-5656
SELECT ( + ( 42 ) ) * 35 + + 63 - + 64 + 90 * + 8 + 16 - + + COUNT ( * )
----
2204

query I rowsort
SELECT DISTINCT + 97 + - + 72 + 51 - + 18 - + + 72 * + + 80 + + 18 * 41 * - + 2 * + + 1 * - 3
----
-1274

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL - NULLIF ( COUNT( * ), - SUM( DISTINCT + 83 ) ) + + + ( + 69 )
----
68

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL - NULLIF ( COUNT ( * ), - SUM ( DISTINCT + 83 ) ) + + + ( + 69 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5659
SELECT ( - 19 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT ( - 19 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 93 + - 36 col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT MAX( 79 ) + 54 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-5661
SELECT MAX ( 79 ) + 54 AS col2
----
133

query I rowsort
SELECT DISTINCT 46 + - 41
----
5

query I rowsort
SELECT ALL 45 - + + 58
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT ALL - 90 * + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL - 90 * + COUNT ( * )
----
-90

query I rowsort
SELECT ALL 21 * + ( 56 )
----
1176

query I rowsort
SELECT DISTINCT 39 * + 78 AS col1
----
3042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5667
SELECT ALL COUNT( + - CAST( - 83 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL COUNT ( + - CAST ( - 83 AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT - 22 + 20 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT CASE + MAX( - 73 ) WHEN - COUNT( - + 52 ) + ( + - 61 ) THEN + + 32 END * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5669
SELECT CASE + MAX ( - 73 ) WHEN - COUNT ( - + 52 ) + ( + - 61 ) THEN + + 32 END * + 19
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5670
SELECT ALL - CAST( - - 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL - CAST ( - - 5 AS INTEGER )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5671
SELECT + COUNT( * ) * - COUNT( * ), 9 col2
----
-1
9

skipif mysql # not compatible
query II rowsort label-5671
SELECT + COUNT ( * ) * - COUNT ( * ), 9 col2
----
-1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT ( COUNT( * ) ) - + + 12 * ( - 83 ) AS col1
----
997

skipif mysql # not compatible
query I rowsort label-5672
SELECT ( COUNT ( * ) ) - + + 12 * ( - 83 ) AS col1
----
997

onlyif mysql # DIV for integer division: 
query I rowsort label-5673
SELECT DISTINCT 37 DIV - 22 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT 37 / - 22 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5674
SELECT 39 * + COALESCE ( + 40, + CAST( + 55 AS SIGNED ) + CASE - - 46 WHEN - 79 * - - ( - 72 ) * + 51 DIV + 91 + + + 34 THEN + 77 ELSE - - COALESCE ( - 3, - - 83 + CASE - 25 WHEN 78 THEN NULL WHEN + + 96 THEN NULL WHEN - + 22 THEN + 9 - + - 2 ELSE NULL END + - - 37 ) DIV - + 15 - - 73 * 12 END ) + + 58 * - 68 AS col2, + COUNT( * ) + - 71
----
-2384
-70

skipif mysql # not compatible
query II rowsort label-5674
SELECT 39 * + COALESCE ( + 40, + CAST ( + 55 AS INTEGER ) + CASE - - 46 WHEN - 79 * - - ( - 72 ) * + 51 / + 91 + + + 34 THEN + 77 ELSE - - COALESCE ( - 3, - - 83 + CASE - 25 WHEN 78 THEN NULL WHEN + + 96 THEN NULL WHEN - + 22 THEN + 9 - + - 2 ELSE NULL END + - - 37 ) / - + 15 - - 73 * 12 END ) + + 58 * - 68 AS col2, + COUNT ( * ) + - 71
----
-2384
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5675
SELECT ALL + + 16 DIV - - MIN( ALL - 20 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL + + 16 / - - MIN ( ALL - 20 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5676
SELECT ALL + 95 * + - COUNT( * ), COUNT( * ) AS col0
----
-95
1

skipif mysql # not compatible
query II rowsort label-5676
SELECT ALL + 95 * + - COUNT ( * ), COUNT ( * ) AS col0
----
-95
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL - COUNT( * ) * - 68
----
68

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL - COUNT ( * ) * - 68
----
68

query I rowsort
SELECT ALL - + 3 * + + 37 AS col1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT DISTINCT + 28 + - COUNT( * ) col2
----
27

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT + 28 + - COUNT ( * ) col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT + + COUNT( * ) * - COUNT( * ) + + + MIN( ALL + 82 )
----
81

skipif mysql # not compatible
query I rowsort label-5680
SELECT + + COUNT ( * ) * - COUNT ( * ) + + + MIN ( ALL + 82 )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5681
SELECT DISTINCT - 65 + + 81 * 29 DIV - 57
----
-106

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT - 65 + + 81 * 29 / - 57
----
-106

query I rowsort
SELECT DISTINCT 41 + 60 AS col0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-5683
SELECT ALL - 21 DIV - - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL - 21 / - - 93 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5684
SELECT 55 + 93 DIV - 23 + + + 56 * 19 col2, 41 * - 11 * + + ( 8 )
----
1115
-3608

skipif mysql # not compatible
query II rowsort label-5684
SELECT 55 + 93 / - 23 + + + 56 * 19 col2, 41 * - 11 * + + ( 8 )
----
1115
-3608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5685
SELECT COUNT( - 12 ) DIV + MIN( ALL + - 84 )
----
0

skipif mysql # not compatible
query I rowsort label-5685
SELECT COUNT ( - 12 ) / + MIN ( ALL + - 84 )
----
0

query I rowsort
SELECT ALL - 12 + 94 AS col1
----
82

query I rowsort
SELECT ALL 81 - - 47 AS col0
----
128

query I rowsort
SELECT DISTINCT + 3 * - 30 * + 29
----
-2610

query I rowsort
SELECT ALL + 94 * - 2
----
-188

query I rowsort
SELECT NULLIF ( - 59, + 25 ) + + + 32 col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5691
SELECT - COUNT( * ), - SUM( CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) / + 93 * 34 + - 30 + ( - - 88 ) + - - ( + 23 ) + + 49 * COUNT( * ) - + 62 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5691
SELECT - COUNT ( * ), - SUM ( CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) / + 93 * 34 + - 30 + ( - - 88 ) + - - ( + 23 ) + + 49 * COUNT ( * ) - + 62 AS col0
----
-1
NULL

query II rowsort
SELECT DISTINCT 30 AS col0, + 69 AS col1
----
30
69

query I rowsort
SELECT + 73 + + 47 AS col2
----
120

query I rowsort
SELECT + 79 * 28 AS col1
----
2212

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT - COUNT( * ) + 0 * - 16
----
-1

skipif mysql # not compatible
query I rowsort label-5695
SELECT - COUNT ( * ) + 0 * - 16
----
-1

query I rowsort
SELECT + 50 + 95 AS col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL COUNT( * ) * - 86
----
-86

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL COUNT ( * ) * - 86
----
-86

query I rowsort
SELECT + 26 + + 72 AS col1
----
98

query I rowsort
SELECT ALL 32 * - 26
----
-832

query I rowsort
SELECT + 43 * 8 AS col0
----
344

query I rowsort
SELECT - NULLIF ( - ( 17 ), - NULLIF ( - 92, + 58 ) ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT DISTINCT SUM( + 74 ) * 43
----
3182

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT SUM ( + 74 ) * 43
----
3182

onlyif mysql # DIV for integer division: 
query I rowsort label-5703
SELECT + 7 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-5703
SELECT + 7 / 87
----
0

query I rowsort
SELECT - 72 + - 84 AS col2
----
-156

query I rowsort
SELECT ( ( + 66 ) )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT + CASE + ( - SUM( - 5 ) ) WHEN + 99 THEN 17 * 1 + COUNT( * ) WHEN - 61 THEN 13 - + 96 * 16 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT + CASE + ( - SUM ( - 5 ) ) WHEN + 99 THEN 17 * 1 + COUNT ( * ) WHEN - 61 THEN 13 - + 96 * 16 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT DISTINCT + MIN( + ( 92 ) ) * + COALESCE ( 0 * 17, + COUNT( DISTINCT 68 ) ) + + 93 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + MIN ( + ( 92 ) ) * + COALESCE ( 0 * 17, + COUNT ( DISTINCT 68 ) ) + + 93 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT DISTINCT + ( COUNT( * ) ) * 39 + + 85
----
124

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT + ( COUNT ( * ) ) * 39 + + 85
----
124

query I rowsort
SELECT COALESCE ( 80, 77 - 41 * + 56, 15 )
----
80

query I rowsort
SELECT ALL 59 * - 0 + 60
----
60

query I rowsort
SELECT DISTINCT ( ( 24 ) ) * 62 + 73
----
1561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5712
SELECT + CASE COUNT( * ) WHEN - 96 + 63 THEN NULL WHEN AVG ( ALL 53 ) THEN NULL WHEN 8 + 44 THEN + 46 + 19 * CAST( NULL AS SIGNED ) ELSE NULL END - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT + CASE COUNT ( * ) WHEN - 96 + 63 THEN NULL WHEN AVG ( ALL 53 ) THEN NULL WHEN 8 + 44 THEN + 46 + 19 * CAST ( NULL AS INTEGER ) ELSE NULL END - 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5713
SELECT + 15 * - 79 + CASE SUM( ALL - ( NULLIF ( - 89, - 61 ) ) ) WHEN - CASE + 55 WHEN 76 THEN - NULLIF ( 48, CAST( - 59 AS SIGNED ) ) + - 61 WHEN - 92 THEN + 28 WHEN 91 THEN - 9 END / + 92 THEN 52 WHEN + 93 THEN NULL WHEN COALESCE ( CAST( 25 AS SIGNED ), 11, - NULLIF ( - NULLIF ( NULLIF ( 78, 49 / ( + 21 / 49 ) ), COUNT( * ) ), 55 * + 28 + + SUM( DISTINCT 87 ) * + 12 ) / COALESCE ( + 40 - + 10 * 18, ( ( - ( AVG ( 30 ) ) ) ) ) + 18, 19 ) + - 98 * 44 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT + 15 * - 79 + CASE SUM ( ALL - ( NULLIF ( - 89, - 61 ) ) ) WHEN - CASE + 55 WHEN 76 THEN - NULLIF ( 48, CAST ( - 59 AS INTEGER ) ) + - 61 WHEN - 92 THEN + 28 WHEN 91 THEN - 9 END / + 92 THEN 52 WHEN + 93 THEN NULL WHEN COALESCE ( CAST ( 25 AS INTEGER ), 11, - NULLIF ( - NULLIF ( NULLIF ( 78, 49 / ( + 21 / 49 ) ), COUNT ( * ) ), 55 * + 28 + + SUM ( DISTINCT 87 ) * + 12 ) / COALESCE ( + 40 - + 10 * 18, ( ( - ( AVG ( 30 ) ) ) ) ) + 18, 19 ) + - 98 * 44 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5714
SELECT DISTINCT 28 * 56 - ( CASE CAST( 55 AS SIGNED ) WHEN 60 * - 24 THEN 54 WHEN - 21 THEN + 27 WHEN - 56 THEN NULL ELSE SUM( + 77 ) END ) col1
----
1491

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT 28 * 56 - ( CASE CAST ( 55 AS INTEGER ) WHEN 60 * - 24 THEN 54 WHEN - 21 THEN + 27 WHEN - 56 THEN NULL ELSE SUM ( + 77 ) END ) col1
----
1491

query I rowsort
SELECT ALL - 25 * - 98
----
2450

query I rowsort
SELECT NULLIF ( ( 87 ), + AVG ( 21 ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT - 76 + COUNT( ALL 15 )
----
-75

skipif mysql # not compatible
query I rowsort label-5717
SELECT - 76 + COUNT ( ALL 15 )
----
-75

query I rowsort
SELECT ALL 3 * - 21 - 52 * 20
----
-1103

query I rowsort
SELECT NULLIF ( 4, 64 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT DISTINCT CASE 11 WHEN ( + 3 ) * - 8 + 4 THEN + 35 WHEN ( - 58 ) + - 11 * - COUNT( * ) THEN NULL ELSE - 97 END * 14 - 8 AS col1
----
-1366

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT CASE 11 WHEN ( + 3 ) * - 8 + 4 THEN + 35 WHEN ( - 58 ) + - 11 * - COUNT ( * ) THEN NULL ELSE - 97 END * 14 - 8 AS col1
----
-1366

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5721
SELECT ALL + 17 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL + 17 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT ALL + COALESCE ( - 36, - 90 + 18 * - CAST( 14 AS SIGNED ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL + COALESCE ( - 36, - 90 + 18 * - CAST ( 14 AS INTEGER ) ) AS col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5723
SELECT DISTINCT + 72 DIV - 38 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5723
SELECT DISTINCT + 72 / - 38 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL + COUNT( DISTINCT 83 ) * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL + COUNT ( DISTINCT 83 ) * + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5725
SELECT - CAST( 99 AS SIGNED ) * - 83
----
8217

skipif mysql # not compatible
query I rowsort label-5725
SELECT - CAST ( 99 AS INTEGER ) * - 83
----
8217

query I rowsort
SELECT + 62 * - 74
----
-4588

query I rowsort
SELECT DISTINCT - 88 * - 19 AS col1
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT ALL MAX( 22 ) * 41
----
902

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL MAX ( 22 ) * 41
----
902

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT - + MAX( 11 ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-5729
SELECT - + MAX ( 11 ) col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5730
SELECT ALL - COALESCE ( - COUNT( * ), - 76, CAST( - COALESCE ( - COALESCE ( 33, + 85 ), 89 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL - COALESCE ( - COUNT ( * ), - 76, CAST ( - COALESCE ( - COALESCE ( 33, + 85 ), 89 ) AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5731
SELECT ALL 71 + + CASE ( - NULLIF ( + COUNT( * ), 14 + + 48 * 15 ) ) WHEN + 21 / COUNT( * ) THEN + 10 * - 87 WHEN 52 - 4 * 38 THEN NULL WHEN CAST( + 32 AS DECIMAL ) THEN NULLIF ( + 34, ( - SUM( - COALESCE ( - ( 80 ), 48 ) ) ) - + 11 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL 71 + + CASE ( - NULLIF ( + COUNT ( * ), 14 + + 48 * 15 ) ) WHEN + 21 / COUNT ( * ) THEN + 10 * - 87 WHEN 52 - 4 * 38 THEN NULL WHEN CAST ( + 32 AS REAL ) THEN NULLIF ( + 34, ( - SUM ( - COALESCE ( - ( 80 ), 48 ) ) ) - + 11 ) END
----
NULL

query I rowsort
SELECT - - 50 * 21
----
1050

query I rowsort
SELECT ALL + 44 + + NULLIF ( - 57, 2 + - 80 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT DISTINCT - - 61 * CAST( + COALESCE ( - 18, 42 * - CAST( 37 * + 52 AS SIGNED ) ) AS SIGNED )
----
-1098

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT - - 61 * CAST ( + COALESCE ( - 18, 42 * - CAST ( 37 * + 52 AS INTEGER ) ) AS INTEGER )
----
-1098

query I rowsort
SELECT DISTINCT + - 99 + - 95 AS col2
----
-194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5736
SELECT ALL + CAST( 12 AS SIGNED ) + CAST( - 84 AS SIGNED ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL + CAST ( 12 AS INTEGER ) + CAST ( - 84 AS INTEGER ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT + COUNT( 79 ) * - 55
----
-55

skipif mysql # not compatible
query I rowsort label-5737
SELECT + COUNT ( 79 ) * - 55
----
-55

query I rowsort
SELECT - ( - 26 ) + + ( - 64 ) AS col0
----
-38

query I rowsort
SELECT + 90 * 39
----
3510

query I rowsort
SELECT ALL 60 + - 33
----
27

query I rowsort
SELECT + 34 + + 85 col0
----
119

query I rowsort
SELECT ALL 87 + - 38 col1
----
49

query I rowsort
SELECT DISTINCT 44 * 43 AS col2
----
1892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5744
SELECT + - CAST( 62 AS SIGNED ) + + 34 * 23
----
720

skipif mysql # not compatible
query I rowsort label-5744
SELECT + - CAST ( 62 AS INTEGER ) + + 34 * 23
----
720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5745
SELECT + + 82 * - CAST( CASE + COUNT( * ) WHEN + ( + 3 ) THEN 41 ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT + + 82 * - CAST ( CASE + COUNT ( * ) WHEN + ( + 3 ) THEN 41 ELSE NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5746
SELECT CAST( NULLIF ( 94, 63 - + 5 * 80 ) AS SIGNED ) col0
----
94

skipif mysql # not compatible
query I rowsort label-5746
SELECT CAST ( NULLIF ( 94, 63 - + 5 * 80 ) AS INTEGER ) col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT + 11 * - + 34 - + COUNT( * )
----
-375

skipif mysql # not compatible
query I rowsort label-5747
SELECT + 11 * - + 34 - + COUNT ( * )
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT + ( - + NULLIF ( + ( + 15 ), COUNT( * ) ) ) * - 38
----
570

skipif mysql # not compatible
query I rowsort label-5748
SELECT + ( - + NULLIF ( + ( + 15 ), COUNT ( * ) ) ) * - 38
----
570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5749
SELECT CAST( + 6 AS SIGNED ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5749
SELECT CAST ( + 6 AS INTEGER ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT + 48 * + + 83 * 41 + COUNT( * )
----
163345

skipif mysql # not compatible
query I rowsort label-5750
SELECT + 48 * + + 83 * 41 + COUNT ( * )
----
163345

query I rowsort
SELECT + 40 * + 40 col2
----
1600

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT ALL 67 DIV 40 DIV + 69 - ( 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL 67 / 40 / + 69 - ( 92 ) AS col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5753
SELECT DISTINCT 63 DIV - ( 4 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT 63 / - ( 4 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT ALL - ( + CASE ( 84 ) WHEN COUNT( * ) + - 87 THEN COUNT( * ) ELSE + 84 END ) * 63 AS col2
----
-5292

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL - ( + CASE ( 84 ) WHEN COUNT ( * ) + - 87 THEN COUNT ( * ) ELSE + 84 END ) * 63 AS col2
----
-5292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5755
SELECT 9 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT 9 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 98 * - - 58 AS col0
----
5684

query I rowsort
SELECT DISTINCT - 49 * + 48 col2
----
-2352

query I rowsort
SELECT + COALESCE ( 1, 91 + 11 ) * + 91 + 53 AS col0
----
144

query I rowsort
SELECT DISTINCT + 77 * + 38 * 27 AS col1
----
79002

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT 86 * + + CASE ( + 64 ) WHEN 45 THEN - 87 * - COUNT( * ) WHEN + 42 + + 6 THEN NULL END + 78 * AVG ( - 93 * 70 + 9 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT 86 * + + CASE ( + 64 ) WHEN 45 THEN - 87 * - COUNT ( * ) WHEN + 42 + + 6 THEN NULL END + 78 * AVG ( - 93 * 70 + 9 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT ALL + SUM( - 36 ) + COALESCE ( + COUNT( * ), 23 * COUNT( * ) + - 10, 55 * + 32 )
----
-35

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL + SUM ( - 36 ) + COALESCE ( + COUNT ( * ), 23 * COUNT ( * ) + - 10, 55 * + 32 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT 15 + - + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5762
SELECT 15 + - + COUNT ( * ) AS col1
----
14

query I rowsort
SELECT ALL - 48 * - + 50 + 74 AS col0
----
2474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5764
SELECT + 25 + 0 DIV COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-5764
SELECT + 25 + 0 / COUNT ( * )
----
25

query I rowsort
SELECT DISTINCT - 57 + + 27 AS col2
----
-30

query I rowsort
SELECT ALL + 99 + + 63
----
162

query I rowsort
SELECT DISTINCT + ( - CASE - 22 WHEN + CASE - 21 WHEN + 49 - 32 THEN AVG ( DISTINCT + 21 ) END / - 33 THEN 3 WHEN - ( + COALESCE ( + 4, 19 * + 85 + 21, 1 ) ) THEN NULL END ) * 22
----
NULL

query I rowsort
SELECT NULLIF ( - 26, 38 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT 37 + + - COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5769
SELECT 37 + + - COUNT ( * ) AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5770
SELECT - 5 DIV + 22 * 84
----
0

skipif mysql # not compatible
query I rowsort label-5770
SELECT - 5 / + 22 * 84
----
0

query I rowsort
SELECT ALL - - 96 + + + 91
----
187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5772
SELECT CAST( - + 4 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-5772
SELECT CAST ( - + 4 AS INTEGER )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT DISTINCT - COUNT( * ) * - - 47
----
-47

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT - COUNT ( * ) * - - 47
----
-47

query I rowsort
SELECT ALL - - ( + 22 ) + - 54 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT + COALESCE ( 10, SUM( + 95 ) * + 94 ) + - 93
----
-83

skipif mysql # not compatible
query I rowsort label-5775
SELECT + COALESCE ( 10, SUM ( + 95 ) * + 94 ) + - 93
----
-83

query I rowsort
SELECT ALL - - 5 + 73
----
78

query I rowsort
SELECT + 54 + - 25
----
29

query I rowsort
SELECT DISTINCT - + 54 * 73
----
-3942

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT DISTINCT + + 92 * SUM( ALL - 51 ) AS col0
----
-4692

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT + + 92 * SUM ( ALL - 51 ) AS col0
----
-4692

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ALL - SUM( ( ( + 75 ) ) ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL - SUM ( ( ( + 75 ) ) ) AS col2
----
-75

query I rowsort
SELECT ALL 65 - - 54 AS col0
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5782
SELECT DISTINCT - 36 AS col1, - CAST( 86 AS SIGNED )
----
-36
-86

skipif mysql # not compatible
query II rowsort label-5782
SELECT DISTINCT - 36 AS col1, - CAST ( 86 AS INTEGER )
----
-36
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5783
SELECT CAST( NULL AS SIGNED ) * - + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT CAST ( NULL AS INTEGER ) * - + 8 AS col1
----
NULL

query II rowsort
SELECT ALL - 45 col0, 68 AS col2
----
-45
68

query II rowsort
SELECT 65 col1, 43
----
65
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ( - 26 ) * + - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-5786
SELECT ( - 26 ) * + - COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL 22 * - SUM( + - 6 )
----
132

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL 22 * - SUM ( + - 6 )
----
132

query II rowsort
SELECT ALL - 39 AS col1, - 71 * - 34 + + 23
----
-39
2437

query II rowsort
SELECT + 54, 19 AS col1
----
54
19

query I rowsort
SELECT DISTINCT 57 * - + 53 * + 88 col0
----
-265848

onlyif mysql # aggregate syntax: 
query II rowsort label-5791
SELECT + 8, 75 * - COUNT( * ) col2
----
8
-75

skipif mysql # not compatible
query II rowsort label-5791
SELECT + 8, 75 * - COUNT ( * ) col2
----
8
-75

query I rowsort
SELECT 90 * - 43 AS col2
----
-3870

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT 90 * + - COUNT( * ) + 57 * - COUNT( * ) col2
----
-147

skipif mysql # not compatible
query I rowsort label-5793
SELECT 90 * + - COUNT ( * ) + 57 * - COUNT ( * ) col2
----
-147

query I rowsort
SELECT 35 + - 79 AS col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT 44 DIV + 34
----
1

skipif mysql # not compatible
query I rowsort label-5795
SELECT 44 / + 34
----
1

query I rowsort
SELECT ALL 45 + + 26 AS col0
----
71

query I rowsort
SELECT 15 * + 25 * - 19 AS col0
----
-7125

query I rowsort
SELECT ALL 56 + + - ( - 77 ) + + 56 AS col2
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-5799
SELECT DISTINCT 62 DIV - 10 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT 62 / - 10 AS col0
----
-6

query I rowsort
SELECT DISTINCT 74 + + 29 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT ALL + MAX( DISTINCT + 72 ) + - - 96 col2
----
168

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL + MAX ( DISTINCT + 72 ) + - - 96 col2
----
168

query I rowsort
SELECT ALL - + 74 * - 37 AS col0
----
2738

query I rowsort
SELECT ALL ( - 50 ) + - 62 AS col1
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT 62 * - - COALESCE ( - 65, 68 + CAST( NULL AS SIGNED ), + 70 * 76 ) * ( - ( 79 ) ) + - 88 AS col1
----
318282

skipif mysql # not compatible
query I rowsort label-5804
SELECT 62 * - - COALESCE ( - 65, 68 + CAST ( NULL AS INTEGER ), + 70 * 76 ) * ( - ( 79 ) ) + - 88 AS col1
----
318282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5805
SELECT + CASE + - COUNT( * ) WHEN - + 20 THEN COALESCE ( + 30, 39 + CAST( - 98 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5805
SELECT + CASE + - COUNT ( * ) WHEN - + 20 THEN COALESCE ( + 30, 39 + CAST ( - 98 AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT ALL ( + + 51 ) * - - NULLIF ( + 51, + 75 ) AS col0
----
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT CASE 67 WHEN - + 52 THEN 67 WHEN + 18 * + 21 THEN NULL WHEN ( + 56 ) + + 21 * MAX( DISTINCT - 19 * - ( + 74 ) ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT CASE 67 WHEN - + 52 THEN 67 WHEN + 18 * + 21 THEN NULL WHEN ( + 56 ) + + 21 * MAX ( DISTINCT - 19 * - ( + 74 ) ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5808
SELECT 61 AS col2, MAX( + 49 )
----
61
49

skipif mysql # not compatible
query II rowsort label-5808
SELECT 61 AS col2, MAX ( + 49 )
----
61
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT ALL + - MIN( DISTINCT - + 68 ) + + COUNT( ALL 9 ) + 7
----
76

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL + - MIN ( DISTINCT - + 68 ) + + COUNT ( ALL 9 ) + 7
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5810
SELECT + CAST( NULL AS DECIMAL ) - + COALESCE ( + - ( + 12 ), + 9, + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT + CAST ( NULL AS REAL ) - + COALESCE ( + - ( + 12 ), + 9, + 87 )
----
NULL

query II rowsort
SELECT - + 29 AS col1, + 31 - + - 61
----
-29
92

query I rowsort
SELECT DISTINCT - 54 - 85 + - 64 AS col0
----
-203

query I rowsort
SELECT DISTINCT + NULLIF ( - COALESCE ( + 80, 11, 28 ), 37 * + 54 + - 68 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT ALL - COALESCE ( - 67, + NULLIF ( 45, CASE + 45 WHEN - 15 * + 49 THEN + MIN( ALL + 78 ) WHEN 66 THEN + COUNT( * ) ELSE NULL END ), 25 * + 47 ) - + 77 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL - COALESCE ( - 67, + NULLIF ( 45, CASE + 45 WHEN - 15 * + 49 THEN + MIN ( ALL + 78 ) WHEN 66 THEN + COUNT ( * ) ELSE NULL END ), 25 * + 47 ) - + 77 AS col1
----
-10

query I rowsort
SELECT - 48 * + 96
----
-4608

query I rowsort
SELECT 70 * + 14
----
980

onlyif mysql # DIV for integer division: 
query I rowsort label-5817
SELECT - 5 + - + 21 DIV - 41 * 57 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5817
SELECT - 5 + - + 21 / - 41 * 57 AS col0
----
-5

query II rowsort
SELECT ALL + 44, 66 AS col1
----
44
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT COUNT( * ) + - 42 col2
----
-41

skipif mysql # not compatible
query I rowsort label-5819
SELECT COUNT ( * ) + - 42 col2
----
-41

query I rowsort
SELECT - + COALESCE ( + 76, ( 4 ), 53 * - 33 )
----
-76

query I rowsort
SELECT - + 77 col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT DISTINCT MAX( ALL + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT MAX ( ALL + 87 )
----
87

query I rowsort
SELECT ALL - 66 * - 33
----
2178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5824
SELECT 75 + - - ( COALESCE ( - 70, 38 - + ( 80 + + 18 ), COUNT( - 83 ) + CAST( + COALESCE ( - 84, COUNT( * ), COUNT( - 57 ) ) AS SIGNED ) ) ) col1
----
5

skipif mysql # not compatible
query I rowsort label-5824
SELECT 75 + - - ( COALESCE ( - 70, 38 - + ( 80 + + 18 ), COUNT ( - 83 ) + CAST ( + COALESCE ( - 84, COUNT ( * ), COUNT ( - 57 ) ) AS INTEGER ) ) ) col1
----
5

query I rowsort
SELECT 10 * + + 58 AS col2
----
580

query I rowsort
SELECT 84 + 94
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL CASE COUNT( + + 98 ) WHEN - + 50 + + 39 THEN - COUNT( * ) WHEN - ( 10 ) * + 79 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL CASE COUNT ( + + 98 ) WHEN - + 50 + + 39 THEN - COUNT ( * ) WHEN - ( 10 ) * + 79 THEN NULL ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT DISTINCT MAX( + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT MAX ( + 18 )
----
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5829
SELECT 0 DIV - CAST( + 7 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5829
SELECT 0 / - CAST ( + 7 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ALL + COUNT( * ) * MIN( ALL - 52 ) * 51 * 12 + + 50
----
-31774

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + COUNT ( * ) * MIN ( ALL - 52 ) * 51 * 12 + + 50
----
-31774

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT COALESCE ( - 64, + 70 DIV 59 + + 40, + 56 )
----
-64

skipif mysql # not compatible
query I rowsort label-5831
SELECT COALESCE ( - 64, + 70 / 59 + + 40, + 56 )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5832
SELECT + 46 DIV + - 78 + - + NULLIF ( - 98, + 91 )
----
98

skipif mysql # not compatible
query I rowsort label-5832
SELECT + 46 / + - 78 + - + NULLIF ( - 98, + 91 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT ALL + CASE 65 WHEN + 15 + + - ( - 58 ) / CASE 88 * - SUM( 44 ) WHEN 35 * - 42 THEN NULL WHEN 81 * 50 - - 0 THEN ( - 65 ) WHEN + 30 * + 7 THEN NULL ELSE NULL END THEN 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL + CASE 65 WHEN + 15 + + - ( - 58 ) / CASE 88 * - SUM ( 44 ) WHEN 35 * - 42 THEN NULL WHEN 81 * 50 - - 0 THEN ( - 65 ) WHEN + 30 * + 7 THEN NULL ELSE NULL END THEN 34 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5834
SELECT + 87 DIV + + 84
----
1

skipif mysql # not compatible
query I rowsort label-5834
SELECT + 87 / + + 84
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5835
SELECT 4 DIV - + 74 + - COUNT( * ) - + 34
----
-35

skipif mysql # not compatible
query I rowsort label-5835
SELECT 4 / - + 74 + - COUNT ( * ) - + 34
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5836
SELECT NULLIF ( - COUNT( * ), ( + 51 ) + - ( NULLIF ( 7, + 50 ) + + 46 ) * CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5836
SELECT NULLIF ( - COUNT ( * ), ( + 51 ) + - ( NULLIF ( 7, + 50 ) + + 46 ) * CAST ( NULL AS INTEGER ) )
----
-1

query I rowsort
SELECT ALL + 79 * 76 + - 71 AS col1
----
5933

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ALL - 95 * - 30 * + COUNT( * ) * + - COALESCE ( 61, 27 ) * + 46 + - ( ( - 28 ) - - 79 ) AS col1
----
-7997151

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL - 95 * - 30 * + COUNT ( * ) * + - COALESCE ( 61, 27 ) * + 46 + - ( ( - 28 ) - - 79 ) AS col1
----
-7997151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5839
SELECT COALESCE ( + - 37, + + CAST( - COUNT( * ) AS SIGNED ) DIV 87 + - 74 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5839
SELECT COALESCE ( + - 37, + + CAST ( - COUNT ( * ) AS INTEGER ) / 87 + - 74 ) AS col0
----
-37

query I rowsort
SELECT COALESCE ( 29, 60 * - 59 )
----
29

query I rowsort
SELECT 4 * + 84 * - - 51 * 69 + 67 AS col0
----
1182451

query I rowsort
SELECT ALL 21 * 47 col0
----
987

query I rowsort
SELECT + 27 * - 82 * + - 0 * - - 3 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT ALL - COUNT( * ) * + 28 + - 95 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL - COUNT ( * ) * + 28 + - 95 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT + MAX( - 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-5845
SELECT + MAX ( - 68 ) AS col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5846
SELECT DISTINCT + 68 * + + 8 * + - NULLIF ( + 73, - 17 DIV CASE 98 WHEN - 44 * - NULLIF ( - 12 * 27, 79 ) + 25 DIV + CAST( ( + 52 ) AS SIGNED ) THEN 74 + COALESCE ( - 24 + 15, - COUNT( * ) * 31 ) * - 61 WHEN CAST( 90 AS DECIMAL ) THEN NULL ELSE - NULLIF ( 39, 32 + + 51 * + 74 ) END ) + 86 DIV - 53
----
-39713

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT + 68 * + + 8 * + - NULLIF ( + 73, - 17 / CASE 98 WHEN - 44 * - NULLIF ( - 12 * 27, 79 ) + 25 / + CAST ( ( + 52 ) AS INTEGER ) THEN 74 + COALESCE ( - 24 + 15, - COUNT ( * ) * 31 ) * - 61 WHEN CAST ( 90 AS REAL ) THEN NULL ELSE - NULLIF ( 39, 32 + + 51 * + 74 ) END ) + 86 / - 53
----
-39713

query I rowsort
SELECT DISTINCT + + ( 2 )
----
2

query I rowsort
SELECT - - 76 + 10 AS col2
----
86

query I rowsort
SELECT - + 25 * + 1 + - 71 * + - COALESCE ( - 89, 73 ) + + 17
----
-6327

query I rowsort
SELECT + ( + CASE - 81 WHEN 36 THEN + 26 * 10 END ) col2
----
NULL

query I rowsort
SELECT NULLIF ( - - 44, + AVG ( DISTINCT + 74 ) ) * + 84 + + 63 AS col0
----
3759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5852
SELECT + 9 + CAST( 50 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-5852
SELECT + 9 + CAST ( 50 AS INTEGER )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5853
SELECT ALL 53 / + 36 * + + 10 - 64 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL 53 / + 36 * + + 10 - 64 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5854
SELECT + 23 + COUNT( * ) AS col1, 15 AS col1
----
24
15

skipif mysql # not compatible
query II rowsort label-5854
SELECT + 23 + COUNT ( * ) AS col1, 15 AS col1
----
24
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5855
SELECT + MAX( ALL 33 ) * - NULLIF ( 37, + 94 ) * ( NULLIF ( - 43, + 45 ) DIV - 79 ) + + COUNT( * ) * 20 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5855
SELECT + MAX ( ALL 33 ) * - NULLIF ( 37, + 94 ) * ( NULLIF ( - 43, + 45 ) / - 79 ) + + COUNT ( * ) * 20 AS col1
----
20

query I rowsort
SELECT + - 69 + - 69 AS col0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT + + COALESCE ( + COUNT( * ), - 33, - 14 ) * + 40 + 82
----
122

skipif mysql # not compatible
query I rowsort label-5857
SELECT + + COALESCE ( + COUNT ( * ), - 33, - 14 ) * + 40 + 82
----
122

query I rowsort
SELECT ALL 29 * - - 32 + 58 + 8
----
994

query I rowsort
SELECT DISTINCT - 81 * - + 94 AS col1
----
7614

query I rowsort
SELECT ALL 99 * + + 23 AS col1
----
2277

query I rowsort
SELECT ALL COALESCE ( - + 12, - 2, - 37 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL MAX( + 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL MAX ( + 77 ) AS col0
----
77

query I rowsort
SELECT DISTINCT ( + 70 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT - 76 * - 70 * - 96 * - - CASE - COUNT( * ) WHEN + 68 THEN 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT - 76 * - 70 * - 96 * - - CASE - COUNT ( * ) WHEN + 68 THEN 95 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT DISTINCT MIN( 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT MIN ( 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT + COUNT( * ) + 60 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5866
SELECT + COUNT ( * ) + 60 AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5867
SELECT ALL CASE 51 WHEN - 30 THEN - + 86 * + - COUNT( * ) WHEN NULLIF ( 29, 10 / + 34 ) / + 8 THEN - COUNT( * ) - NULLIF ( + 12, CAST( NULL AS DECIMAL ) ) WHEN + 4 * COUNT( * ) + 58 * + ( 37 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL CASE 51 WHEN - 30 THEN - + 86 * + - COUNT ( * ) WHEN NULLIF ( 29, 10 / + 34 ) / + 8 THEN - COUNT ( * ) - NULLIF ( + 12, CAST ( NULL AS REAL ) ) WHEN + 4 * COUNT ( * ) + 58 * + ( 37 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT + NULLIF ( + 61, + 69 + COUNT( * ) / - + 38 ) * + 87
----
5307

skipif mysql # not compatible
query I rowsort label-5868
SELECT + NULLIF ( + 61, + 69 + COUNT ( * ) / - + 38 ) * + 87
----
5307

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5869
SELECT ALL - 51 DIV + + 71 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL - 51 / + + 71 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT DISTINCT + ( + 89 ) * - 62 * + CASE + 92 WHEN + 54 THEN + 41 + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT + ( + 89 ) * - 62 * + CASE + 92 WHEN + 54 THEN + 41 + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5871
SELECT DISTINCT COALESCE ( 85, 85 - + COUNT( * ), 26 ) DIV - 52 + 20 * - ( - 49 )
----
979

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT COALESCE ( 85, 85 - + COUNT ( * ), 26 ) / - 52 + 20 * - ( - 49 )
----
979

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - 10 * - - 48 * + - MAX( - ( ( - 72 ) ) )
----
34560

skipif mysql # not compatible
query I rowsort label-5872
SELECT - 10 * - - 48 * + - MAX ( - ( ( - 72 ) ) )
----
34560

query I rowsort
SELECT ALL + 0 * - + ( - 2 ) * 22 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5874
SELECT ALL - 57 DIV - 92 + + 13 + COALESCE ( 21, + 62 DIV + 61 )
----
34

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL - 57 / - 92 + + 13 + COALESCE ( 21, + 62 / + 61 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5875
SELECT ALL + SUM( ALL CAST( NULL AS SIGNED ) ) / + 89 * 34 * - MIN( COALESCE ( + 26, 1 + + 13, + 33 * 55 + 44 ) ) + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + SUM ( ALL CAST ( NULL AS INTEGER ) ) / + 89 * 34 * - MIN ( COALESCE ( + 26, 1 + + 13, + 33 * 55 + 44 ) ) + - 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5876
SELECT ALL + CASE - 86 WHEN 81 * + - 30 + + + 92 + CAST( - 7 - 78 * - COUNT( * ) AS DECIMAL ) + - CAST( - COUNT( * ) AS SIGNED ) * CAST( NULL AS DECIMAL ) THEN 62 * 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL + CASE - 86 WHEN 81 * + - 30 + + + 92 + CAST ( - 7 - 78 * - COUNT ( * ) AS REAL ) + - CAST ( - COUNT ( * ) AS INTEGER ) * CAST ( NULL AS REAL ) THEN 62 * 93 END
----
NULL

query II rowsort
SELECT + 74, - 97 + 66 AS col2
----
74
-31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5878
SELECT + 16 * - 92 + 78 AS col0, - CASE WHEN NOT MIN( + 70 ) IN ( CASE 89 WHEN CAST( NULL AS DECIMAL ) THEN + 24 * 5 END ) THEN + 29 + COUNT( * ) / 13 ELSE NULL END + COUNT( * )
----
-1394
NULL

skipif mysql # not compatible
query II rowsort label-5878
SELECT + 16 * - 92 + 78 AS col0, - CASE WHEN NOT MIN ( + 70 ) IN ( CASE 89 WHEN CAST ( NULL AS REAL ) THEN + 24 * 5 END ) THEN + 29 + COUNT ( * ) / 13 ELSE NULL END + COUNT ( * )
----
-1394
NULL

query I rowsort
SELECT + COALESCE ( 54, 71 ) AS col0
----
54

query I rowsort
SELECT 25 * - 25 + - 37 + 58
----
-604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5881
SELECT ALL + - NULLIF ( + - COUNT( * ), + 36 ) * - + 11 - + 70 DIV - 80 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL + - NULLIF ( + - COUNT ( * ), + 36 ) * - + 11 - + 70 / - 80 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT - ( + - COUNT( ALL - 33 ) ) * - COUNT( * ) * 30 - ( + SUM( DISTINCT 14 ) ) * + 0 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-5882
SELECT - ( + - COUNT ( ALL - 33 ) ) * - COUNT ( * ) * 30 - ( + SUM ( DISTINCT 14 ) ) * + 0 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT DISTINCT + - CASE + 64 WHEN + 3 THEN + NULLIF ( COUNT( * ), - ( - 19 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT + - CASE + 64 WHEN + 3 THEN + NULLIF ( COUNT ( * ), - ( - 19 ) ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT ALL + CASE CASE - 3 WHEN - CAST( NULL AS SIGNED ) * + 42 THEN ( 73 ) * + 97 END WHEN 34 * - 30 THEN - 70 * ( + 98 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL + CASE CASE - 3 WHEN - CAST ( NULL AS INTEGER ) * + 42 THEN ( 73 ) * + 97 END WHEN 34 * - 30 THEN - 70 * ( + 98 ) ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5885
SELECT DISTINCT 42 * 89 + - 82 + - 84 + - CAST( - 37 AS SIGNED )
----
3609

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT 42 * 89 + - 82 + - 84 + - CAST ( - 37 AS INTEGER )
----
3609

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT DISTINCT + - COUNT( * ) * + 42 - + 5 + 74 * - COUNT( * )
----
-121

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT + - COUNT ( * ) * + 42 - + 5 + 74 * - COUNT ( * )
----
-121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5887
SELECT + CAST( NULL AS DECIMAL ) * + AVG ( ALL 86 ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5887
SELECT + CAST ( NULL AS REAL ) * + AVG ( ALL 86 ) AS col0, COUNT ( * )
----
NULL
1

query I rowsort
SELECT ALL + 60 * + 95 AS col1
----
5700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5889
SELECT - MIN( - 76 ) * - - COALESCE ( + MIN( - 85 ), + 1 * - COUNT( * ) + - 80 * - COUNT( * ) ) DIV COUNT( * )
----
-6460

skipif mysql # not compatible
query I rowsort label-5889
SELECT - MIN ( - 76 ) * - - COALESCE ( + MIN ( - 85 ), + 1 * - COUNT ( * ) + - 80 * - COUNT ( * ) ) / COUNT ( * )
----
-6460

query I rowsort
SELECT ALL 26 * + 19 * + + 38
----
18772

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5891
SELECT + + 63 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT + + 63 - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + - 88 * + 60 * + ( 81 ) + - - 42
----
-427638

query II rowsort
SELECT ALL + 66 AS col0, 0 * - 12 * + 43 + + NULLIF ( - 68, + 6 ) AS col2
----
66
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT MAX( ALL 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-5894
SELECT MAX ( ALL 91 ) AS col1
----
91

query I rowsort
SELECT ALL 6 + + - 95
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-5896
SELECT ( + - 51 ) DIV - 3 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-5896
SELECT ( + - 51 ) / - 3 AS col2
----
17

query I rowsort
SELECT ALL + ( + 8 ) + - 28
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5898
SELECT ALL MAX( - 74 ) DIV + ( - 80 ) * - + MAX( + - 97 ) + 6
----
6

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL MAX ( - 74 ) / + ( - 80 ) * - + MAX ( + - 97 ) + 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT COUNT( * ) - 65 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-5899
SELECT COUNT ( * ) - 65 AS col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT DISTINCT NULLIF ( + COALESCE ( 46, + CAST( NULL AS SIGNED ), - 85 * - + CAST( NULL AS SIGNED ) + 73 ), + 95 + 27 * + 75 ) * 89
----
4094

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT NULLIF ( + COALESCE ( 46, + CAST ( NULL AS INTEGER ), - 85 * - + CAST ( NULL AS INTEGER ) + 73 ), + 95 + 27 * + 75 ) * 89
----
4094

query II rowsort
SELECT ( 79 ) + + - 98 + 24, 99 AS col0
----
5
99

query II rowsort
SELECT 73 AS col2, 63 AS col0
----
73
63

query I rowsort
SELECT 38 * ( 14 )
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT ALL COUNT( * ) + 76 + - - ( - COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL COUNT ( * ) + 76 + - - ( - COUNT ( * ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT COUNT( * ) + - 6
----
-5

skipif mysql # not compatible
query I rowsort label-5905
SELECT COUNT ( * ) + - 6
----
-5

query I rowsort
SELECT DISTINCT 57 + + + 81 AS col1
----
138

query I rowsort
SELECT DISTINCT 33 + + 88 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT DISTINCT - NULLIF ( SUM( 26 ), - - 27 * + + 91 + + COUNT( * ) + + 39 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT - NULLIF ( SUM ( 26 ), - - 27 * + + 91 + + COUNT ( * ) + + 39 ) AS col1
----
-26

query II rowsort
SELECT 24 AS col0, 1
----
24
1

query I rowsort
SELECT ALL - CASE WHEN NOT NULL IS NULL THEN NULL ELSE 92 END col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5911
SELECT COUNT( * ) * - - COALESCE ( - + CAST( NULL AS SIGNED ), 93, - NULLIF ( - 25, 9 - 43 * 55 ) * 70 ) * 40
----
3720

skipif mysql # not compatible
query I rowsort label-5911
SELECT COUNT ( * ) * - - COALESCE ( - + CAST ( NULL AS INTEGER ), 93, - NULLIF ( - 25, 9 - 43 * 55 ) * 70 ) * 40
----
3720

query I rowsort
SELECT ALL + + 62 * - - 97
----
6014

onlyif mysql # aggregate syntax: 
query II rowsort label-5913
SELECT - COUNT( * ), - 83 AS col2
----
-1
-83

skipif mysql # not compatible
query II rowsort label-5913
SELECT - COUNT ( * ), - 83 AS col2
----
-1
-83

query I rowsort
SELECT + ( 16 ) col0
----
16

query I rowsort
SELECT ALL - - ( + 14 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5916
SELECT DISTINCT - 58 AS col2, CAST( NULL AS SIGNED ) + + 87 AS col1
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-5916
SELECT DISTINCT - 58 AS col2, CAST ( NULL AS INTEGER ) + + 87 AS col1
----
-58
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5917
SELECT DISTINCT + - 45 * + CAST( NULL AS SIGNED ) * - 97 * CASE - 36 WHEN + COUNT( * ) * COUNT( * ) THEN NULL WHEN - 44 THEN 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5917
SELECT DISTINCT + - 45 * + CAST ( NULL AS INTEGER ) * - 97 * CASE - 36 WHEN + COUNT ( * ) * COUNT ( * ) THEN NULL WHEN - 44 THEN 23 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT - CASE + 92 WHEN - 96 + + 49 + - 87 * 12 + - COUNT( * ) THEN + 13 - + 45 WHEN 97 * 90 + 17 THEN NULL END + MAX( DISTINCT ( - 7 ) ) * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5918
SELECT - CASE + 92 WHEN - 96 + + 49 + - 87 * 12 + - COUNT ( * ) THEN + 13 - + 45 WHEN 97 * 90 + 17 THEN NULL END + MAX ( DISTINCT ( - 7 ) ) * - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT COUNT( * ) - - + MIN( ALL 23 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5919
SELECT COUNT ( * ) - - + MIN ( ALL 23 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-5920
SELECT 84 * + 93 * + 66 + - COUNT( * ) AS col0, + 77 AS col1
----
515591
77

skipif mysql # not compatible
query II rowsort label-5920
SELECT 84 * + 93 * + 66 + - COUNT ( * ) AS col0, + 77 AS col1
----
515591
77

query I rowsort
SELECT + + ( + 94 ) * 27 + - 43 + 60 AS col1
----
2555

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT ALL - + 95 + + 67 * - + 21 * - + NULLIF ( + 82, - MAX( DISTINCT 58 ) ) AS col0
----
115279

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL - + 95 + + 67 * - + 21 * - + NULLIF ( + 82, - MAX ( DISTINCT 58 ) ) AS col0
----
115279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5923
SELECT ALL - CAST( + + 88 AS SIGNED ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL - CAST ( + + 88 AS INTEGER ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT ALL - 48 * 2 + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL - 48 * 2 + - COUNT ( * )
----
-97

query I rowsort
SELECT 78 + + - 87 AS col1
----
-9

query I rowsort
SELECT ALL + 37 + - COALESCE ( 89, + 18 * 68 )
----
-52

query II rowsort
SELECT DISTINCT 62 AS col1, 86 * + 48 AS col0
----
62
4128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5928
SELECT ALL 88 + - + COALESCE ( + 93, + - 16 * - + ( + SUM( DISTINCT + + 81 ) ) + + 69 DIV - CAST( - 93 AS SIGNED ) ) + 86 DIV ( + 57 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL 88 + - + COALESCE ( + 93, + - 16 * - + ( + SUM ( DISTINCT + + 81 ) ) + + 69 / - CAST ( - 93 AS INTEGER ) ) + 86 / ( + 57 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT 10 + - + NULLIF ( + 80, - MAX( DISTINCT - 46 ) ) + - COUNT( * ) * + + 37 * 91
----
-3437

skipif mysql # not compatible
query I rowsort label-5929
SELECT 10 + - + NULLIF ( + 80, - MAX ( DISTINCT - 46 ) ) + - COUNT ( * ) * + + 37 * 91
----
-3437

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL + COUNT( * ) + - 8 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL + COUNT ( * ) + - 8 AS col1
----
-7

query I rowsort
SELECT ALL 52 + ( - 24 ) * + 46 * - + 13 * 3
----
43108

query I rowsort
SELECT NULLIF ( - 41, + 66 + - 72 ) * + 29 * + 50 AS col1
----
-59450

query I rowsort
SELECT ALL 98 / - 43 * + CASE - 8 WHEN 31 * 86 THEN + 85 * - 75 END
----
NULL

query I rowsort
SELECT 35 * + 6 AS col1
----
210

query II rowsort
SELECT 9 - 32, 48 AS col0
----
-23
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5936
SELECT - MIN( DISTINCT - 40 ), 47 * + 42 * - + 96 + 25 + - 88 AS col0
----
40
-189567

skipif mysql # not compatible
query II rowsort label-5936
SELECT - MIN ( DISTINCT - 40 ), 47 * + 42 * - + 96 + 25 + - 88 AS col0
----
40
-189567

onlyif mysql # DIV for integer division: 
query II rowsort label-5937
SELECT DISTINCT 45 DIV - 69 AS col2, COALESCE ( - 28, + - ( - 26 ) * 21 - 28, 74 ) * 96
----
0
-2688

skipif mysql # not compatible
query II rowsort label-5937
SELECT DISTINCT 45 / - 69 AS col2, COALESCE ( - 28, + - ( - 26 ) * 21 - 28, 74 ) * 96
----
0
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT DISTINCT NULLIF ( + + 86, - - COUNT( * ) * + 15 * + - COALESCE ( - 22, + AVG ( 42 ) * + 76, 78 + 70 ) ) - 32
----
54

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT NULLIF ( + + 86, - - COUNT ( * ) * + 15 * + - COALESCE ( - 22, + AVG ( 42 ) * + 76, 78 + 70 ) ) - 32
----
54

query I rowsort
SELECT ALL ( - 8 ) - + + 29 AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5940
SELECT - 14 DIV + + 88 + + 67 * + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-5940
SELECT - 14 / + + 88 + + 67 * + + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT + MAX( DISTINCT 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5941
SELECT + MAX ( DISTINCT 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT ALL + 59 * - 80 + + COUNT( * ) + - 41 AS col1
----
-4760

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL + 59 * - 80 + + COUNT ( * ) + - 41 AS col1
----
-4760

query I rowsort
SELECT DISTINCT + 26 * - - 41
----
1066

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT 0 + - COUNT( ALL + ( + 37 ) ) + + 69 * + + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5944
SELECT 0 + - COUNT ( ALL + ( + 37 ) ) + + 69 * + + COUNT ( * ) AS col2
----
68

query I rowsort
SELECT 31 * + 94 AS col0
----
2914

query I rowsort
SELECT + - 83 * - 57 + 64 * 32 + ( - 80 ) * - - COALESCE ( 77, + 37 * - 70 )
----
619

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT + CASE 1 WHEN - 48 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5947
SELECT + CASE 1 WHEN - 48 THEN COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5948
SELECT 7 DIV + 85 * + 63 * + + 95 + + - 22 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-5948
SELECT 7 / + 85 * + 63 * + + 95 + + - 22 AS col2
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5949
SELECT ALL - CAST( NULL AS DECIMAL ) / - ( 47 ) * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - CAST ( NULL AS REAL ) / - ( 47 ) * 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5950
SELECT 23 DIV - 14
----
-1

skipif mysql # not compatible
query I rowsort label-5950
SELECT 23 / - 14
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5951
SELECT + COUNT( * ) * - 87 + + 70 DIV + ( + + 7 ) - 97 AS col1
----
-174

skipif mysql # not compatible
query I rowsort label-5951
SELECT + COUNT ( * ) * - 87 + + 70 / + ( + + 7 ) - 97 AS col1
----
-174

query I rowsort
SELECT 54 * - 87 AS col0
----
-4698

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5953
SELECT ALL + 52 + 54 AS col1, COUNT( * ) DIV + 81
----
106
0

skipif mysql # not compatible
query II rowsort label-5953
SELECT ALL + 52 + 54 AS col1, COUNT ( * ) / + 81
----
106
0

query I rowsort
SELECT DISTINCT - 94 + - + 71 * - 83 * 83
----
489025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5955
SELECT ALL + SUM( ALL ( 92 ) ) DIV + 4 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + SUM ( ALL ( 92 ) ) / + 4 AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5956
SELECT - COUNT( * ) DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-5956
SELECT - COUNT ( * ) / + 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT ALL - - 43 + + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL - - 43 + + COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5958
SELECT + + 11 DIV - + 77 + - + ( + 63 ) + + COUNT( * ) + + + 63 * - 75
----
-4787

skipif mysql # not compatible
query I rowsort label-5958
SELECT + + 11 / - + 77 + - + ( + 63 ) + + COUNT ( * ) + + + 63 * - 75
----
-4787

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT - 70 * MAX( ALL 15 )
----
-1050

skipif mysql # not compatible
query I rowsort label-5959
SELECT - 70 * MAX ( ALL 15 )
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT ALL - COUNT( * ) + + MAX( ALL 93 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL - COUNT ( * ) + + MAX ( ALL 93 ) AS col2
----
92

query I rowsort
SELECT - 47 * + - 41 AS col1
----
1927

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5962
SELECT 12 AS col0, - CAST( NULL AS SIGNED ) AS col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-5962
SELECT 12 AS col0, - CAST ( NULL AS INTEGER ) AS col1
----
12
NULL

query II rowsort
SELECT - 84, - 87 AS col1
----
-84
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5964
SELECT ALL COALESCE ( 87, + 84 DIV 4, - - CAST( NULL AS SIGNED ) + 85 - + COUNT( * ) DIV - 75 * 68 )
----
87

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL COALESCE ( 87, + 84 / 4, - - CAST ( NULL AS INTEGER ) + 85 - + COUNT ( * ) / - 75 * 68 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT - 11 * - - COUNT( + 87 ) AS col0, - 44 * 29 AS col2
----
-11
-1276

skipif mysql # not compatible
query II rowsort label-5965
SELECT - 11 * - - COUNT ( + 87 ) AS col0, - 44 * 29 AS col2
----
-11
-1276

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT ALL + 41 - 53 + 20 + + - 91 * - 52 + + 14 DIV - + 84 * + - 49
----
4740

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL + 41 - 53 + 20 + + - 91 * - 52 + + 14 / - + 84 * + - 49
----
4740

query I rowsort
SELECT DISTINCT 57 * - NULLIF ( 61, + - 0 + - 52 )
----
-3477

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT ALL COALESCE ( ( - 90 ), - 28 + + COALESCE ( + COUNT( * ), 39, - 42 ) * - 94 ) col2
----
-90

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL COALESCE ( ( - 90 ), - 28 + + COALESCE ( + COUNT ( * ), 39, - 42 ) * - 94 ) col2
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5969
SELECT - 75 + - COALESCE ( + 56, + 24 ) - 55 * 48 DIV - 84 * - COUNT( * )
----
-162

skipif mysql # not compatible
query I rowsort label-5969
SELECT - 75 + - COALESCE ( + 56, + 24 ) - 55 * 48 / - 84 * - COUNT ( * )
----
-162

query I rowsort
SELECT - 81 * 29 AS col2
----
-2349

query I rowsort
SELECT - 51 + - 51 AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT + SUM( DISTINCT + 25 ) - - + COUNT( * ) + + 21 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5972
SELECT + SUM ( DISTINCT + 25 ) - - + COUNT ( * ) + + 21 AS col0
----
47

query I rowsort
SELECT - 27 + - 3 AS col1
----
-30

query I rowsort
SELECT ALL 39 * + + 33
----
1287

query I rowsort
SELECT - 45 * 10
----
-450

onlyif mysql # aggregate syntax: 
query II rowsort label-5976
SELECT ALL 22, - 85 + - COUNT( * ) AS col2
----
22
-86

skipif mysql # not compatible
query II rowsort label-5976
SELECT ALL 22, - 85 + - COUNT ( * ) AS col2
----
22
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5977
SELECT + 97 + 91 + - 7 + - 45 + 50 DIV 89 + - 70 + - 52 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5977
SELECT + 97 + 91 + - 7 + - 45 + 50 / 89 + - 70 + - 52 AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5978
SELECT + CASE - 18 WHEN 3 THEN NULL ELSE - CAST( + 32 AS SIGNED ) END AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-5978
SELECT + CASE - 18 WHEN 3 THEN NULL ELSE - CAST ( + 32 AS INTEGER ) END AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT + - COUNT( * ) * - 47 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5979
SELECT + - COUNT ( * ) * - 47 AS col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT DISTINCT 66 DIV - 42 + 20 * + 27 * + - 38
----
-20521

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT 66 / - 42 + 20 * + 27 * + - 38
----
-20521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5981
SELECT + - 42 * CAST( + + 30 AS SIGNED ) + - CAST( - 55 AS SIGNED )
----
-1205

skipif mysql # not compatible
query I rowsort label-5981
SELECT + - 42 * CAST ( + + 30 AS INTEGER ) + - CAST ( - 55 AS INTEGER )
----
-1205

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL + MAX( 42 ) * + - 72
----
-3024

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL + MAX ( 42 ) * + - 72
----
-3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT - CAST( + + 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-5983
SELECT - CAST ( + + 14 AS INTEGER )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5984
SELECT + 23 / - CASE 60 WHEN + - 56 THEN CAST( - ( MAX( ALL CAST( 54 AS SIGNED ) ) ) AS SIGNED ) WHEN + ( + 66 ) + 59 THEN + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5984
SELECT + 23 / - CASE 60 WHEN + - 56 THEN CAST ( - ( MAX ( ALL CAST ( 54 AS INTEGER ) ) ) AS INTEGER ) WHEN + ( + 66 ) + 59 THEN + 4 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5985
SELECT DISTINCT - COUNT( * ) * - CAST( + 2 AS SIGNED ) + + 65 * - ( 16 )
----
-1038

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT - COUNT ( * ) * - CAST ( + 2 AS INTEGER ) + + 65 * - ( 16 )
----
-1038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5986
SELECT ALL 16 * - CAST( NULL AS SIGNED ) / - 18 * - COUNT( * ) + + NULLIF ( - ( 71 ), + - MIN( ALL 94 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL 16 * - CAST ( NULL AS INTEGER ) / - 18 * - COUNT ( * ) + + NULLIF ( - ( 71 ), + - MIN ( ALL 94 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 54 * + + 59 + - 47
----
-3233

query II rowsort
SELECT ALL - 71 * 27 + - 17 col1, + 30
----
-1934
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT ALL 24 * - COUNT( * ) + + ( - + 21 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL 24 * - COUNT ( * ) + + ( - + 21 ) AS col1
----
-45

query I rowsort
SELECT + - 15 + - 72
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5991
SELECT + + 56 * CAST( NULL AS SIGNED ) * - 53 + - AVG ( - - ( - CAST( - 76 AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT + + 56 * CAST ( NULL AS INTEGER ) * - 53 + - AVG ( - - ( - CAST ( - 76 AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT - + 35 - - ( - - COUNT( * ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-5992
SELECT - + 35 - - ( - - COUNT ( * ) ) AS col2
----
-34

query I rowsort
SELECT ALL + - 90 * + ( + 52 ) + + 31 + + 75 AS col1
----
-4574

query II rowsort
SELECT 1, - 55 AS col2
----
1
-55

query I rowsort
SELECT ALL + CASE 85 WHEN - - 16 * + 53 * + 76 + - 22 * - 94 THEN + 73 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT + 35 + - - 3 - - 32 + - ( COUNT( * ) ) + - 86
----
-17

skipif mysql # not compatible
query I rowsort label-5996
SELECT + 35 + - - 3 - - 32 + - ( COUNT ( * ) ) + - 86
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT ALL - 73 * + COALESCE ( - 27, - 67 + + CAST( NULL AS SIGNED ) * - + 21, + + 72 + 4 )
----
1971

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL - 73 * + COALESCE ( - 27, - 67 + + CAST ( NULL AS INTEGER ) * - + 21, + + 72 + 4 )
----
1971

query II rowsort
SELECT DISTINCT 34 * - 17 AS col2, 97 AS col0
----
-578
97

query I rowsort
SELECT ALL + 9 * + - CASE - + NULLIF ( - + 88, 63 ) WHEN + 96 THEN NULL ELSE 28 + - 90 END - 19 AS col1
----
539

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6000
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT - 63 * + MAX( + + 50 ) AS col1
----
-3150

skipif mysql # not compatible
query I rowsort label-6001
SELECT - 63 * + MAX ( + + 50 ) AS col1
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT ALL COUNT( ALL - + 71 ) * - 27 + - 41
----
-68

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL COUNT ( ALL - + 71 ) * - 27 + - 41
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT COUNT( * ) * + + 1 + 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6003
SELECT COUNT ( * ) * + + 1 + 59 AS col0
----
60

query II rowsort
SELECT DISTINCT CASE 77 WHEN - 1 * 34 - + 72 THEN NULL WHEN - 48 THEN - 43 END AS col0, + 42 + 49
----
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6005
SELECT ALL COALESCE ( 70, + 31 * - + 6 DIV - 12 + - 29 + - ( - - 94 ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL COALESCE ( 70, + 31 * - + 6 / - 12 + - 29 + - ( - - 94 ) ) AS col0
----
70

query I rowsort
SELECT - 27 * ( + + 50 ) * + 45 AS col0
----
-60750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6007
SELECT - COUNT( * ) + + - CAST( + MAX( 80 ) AS SIGNED ) + + COUNT( * ) * - + MIN( ALL + - 46 ) + - + 40 + COUNT( * ) DIV 54 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6007
SELECT - COUNT ( * ) + + - CAST ( + MAX ( 80 ) AS INTEGER ) + + COUNT ( * ) * - + MIN ( ALL + - 46 ) + - + 40 + COUNT ( * ) / 54 AS col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6008
SELECT - 45 DIV - 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6008
SELECT - 45 / - 99 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6009
SELECT - SUM( - - 36 ) DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-6009
SELECT - SUM ( - - 36 ) / - 90
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6010
SELECT DISTINCT + 37 DIV - 14
----
-2

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT + 37 / - 14
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT ALL COALESCE ( + + 8, - + 60 + - COUNT( 62 ) ) col1
----
8

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL COALESCE ( + + 8, - + 60 + - COUNT ( 62 ) ) col1
----
8

query I rowsort
SELECT DISTINCT ( ( 73 ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT ALL - COUNT( * ) * + 69 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL - COUNT ( * ) * + 69 AS col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6014
SELECT - 91 * COUNT( * ), 66 * + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-6014
SELECT - 91 * COUNT ( * ), 66 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2
----
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT ALL + COUNT( ALL + - 11 ) + + - 81
----
-80

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL + COUNT ( ALL + - 11 ) + + - 81
----
-80

query I rowsort
SELECT - - 62 - 52
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6017
SELECT - + 87 * + NULLIF ( - CAST( NULL AS SIGNED ), MIN( DISTINCT - CAST( + - 62 AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6017
SELECT - + 87 * + NULLIF ( - CAST ( NULL AS INTEGER ), MIN ( DISTINCT - CAST ( + - 62 AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT ALL - + COUNT( DISTINCT - - 99 ) * - 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL - + COUNT ( DISTINCT - - 99 ) * - 28 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT DISTINCT - - COUNT( * ) * 81 * + 9 * - ( 46 )
----
-33534

skipif mysql # not compatible
query I rowsort label-6019
SELECT DISTINCT - - COUNT ( * ) * 81 * + 9 * - ( 46 )
----
-33534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6020
SELECT ALL + - ( 49 ) + + COALESCE ( - 60, 53, 13 * 52 * + 90 * + 1 DIV + 88 - 43 * + SUM( 81 + 55 * - 40 ) + + ( 32 ) * 26 ) + - 67 * 62 AS col1
----
-4263

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL + - ( 49 ) + + COALESCE ( - 60, 53, 13 * 52 * + 90 * + 1 / + 88 - 43 * + SUM ( 81 + 55 * - 40 ) + + ( 32 ) * 26 ) + - 67 * 62 AS col1
----
-4263

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT DISTINCT 47 DIV - ( + 3 ) + + ( 52 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT 47 / - ( + 3 ) + + ( 52 ) AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6022
SELECT ALL - 16 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL - 16 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6023
SELECT 5 DIV - 80 + 38 + + 94
----
132

skipif mysql # not compatible
query I rowsort label-6023
SELECT 5 / - 80 + 38 + + 94
----
132

query I rowsort
SELECT 53 - 58
----
-5

query I rowsort
SELECT ALL - NULLIF ( - 76, 95 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT ALL - - 71 + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL - - 71 + COUNT ( * )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6027
SELECT ALL - 61 DIV + ( + + 78 ) + 84
----
84

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL - 61 / + ( + + 78 ) + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT MAX( + + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-6028
SELECT MAX ( + + 31 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6029
SELECT - 27 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6029
SELECT - 27 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 64 * - 66 + 84 AS col1
----
-4140

query I rowsort
SELECT ALL 79 + + 46 * + - 28 AS col0
----
-1209

query I rowsort
SELECT DISTINCT - 67 * - + 58 + 0
----
3886

query I rowsort
SELECT ALL + 86 * 90 AS col2
----
7740

query I rowsort
SELECT DISTINCT 64 * - 59
----
-3776

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL - MAX( + + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL - MAX ( + + 1 )
----
-1

query I rowsort
SELECT ALL 93 * 96 AS col0
----
8928

query II rowsort
SELECT 82 AS col2, 16 AS col2
----
82
16

query II rowsort
SELECT ALL - 80 AS col1, + 44 + - 56 AS col0
----
-80
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6039
SELECT COUNT( * ) * - MIN( ALL + - 22 ) DIV + - ( + COUNT( * ) )
----
-22

skipif mysql # not compatible
query I rowsort label-6039
SELECT COUNT ( * ) * - MIN ( ALL + - 22 ) / + - ( + COUNT ( * ) )
----
-22

query I rowsort
SELECT 34 - + 70 * 35
----
-2416

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT COUNT( * ) * CASE 82 WHEN - 39 * 97 THEN - + 11 * + 87 + - 87 END * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT COUNT ( * ) * CASE 82 WHEN - 39 * 97 THEN - + 11 * + 87 + - 87 END * - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT ALL 16 * - COUNT( * ) col1
----
-16

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL 16 * - COUNT ( * ) col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT 53 - + 18 * + SUM( DISTINCT - 86 )
----
1601

skipif mysql # not compatible
query I rowsort label-6043
SELECT 53 - + 18 * + SUM ( DISTINCT - 86 )
----
1601

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT ( - - ( + - 17 ) ) * + 87 * COUNT( * ) AS col1
----
-1479

skipif mysql # not compatible
query I rowsort label-6044
SELECT ( - - ( + - 17 ) ) * + 87 * COUNT ( * ) AS col1
----
-1479

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT ALL ( - COUNT( * ) ) + + 95 - 56
----
38

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL ( - COUNT ( * ) ) + + 95 - 56
----
38

query I rowsort
SELECT 43 + 28
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6047
SELECT 79 - CAST( NULL AS SIGNED ) + - 88 - + 12 + CAST( + + 9 AS DECIMAL ) - + 56 * 74 * + COUNT( * ) / + 72 * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6047
SELECT 79 - CAST ( NULL AS INTEGER ) + - 88 - + 12 + CAST ( + + 9 AS REAL ) - + 56 * 74 * + COUNT ( * ) / + 72 * - 74
----
NULL

query I rowsort
SELECT ALL 73 * - 63
----
-4599

query I rowsort
SELECT 37 * + 67 AS col0
----
2479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6050
SELECT COUNT( * ) DIV + + 60
----
0

skipif mysql # not compatible
query I rowsort label-6050
SELECT COUNT ( * ) / + + 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ALL - 14 + + - COUNT( DISTINCT + - 47 )
----
-15

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL - 14 + + - COUNT ( DISTINCT + - 47 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6052
SELECT + COALESCE ( + COUNT( - - 71 ), - 79 * NULLIF ( - 57, CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + 59 ) + 95 DIV - 97
----
1

skipif mysql # not compatible
query I rowsort label-6052
SELECT + COALESCE ( + COUNT ( - - 71 ), - 79 * NULLIF ( - 57, CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 59 ) + 95 / - 97
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT + 49 + - COUNT( * ) * COALESCE ( + - CASE + AVG ( 94 ) WHEN - ( - + 39 ) + + + 1 + + - SUM( - 6 ) THEN - 57 ELSE NULL END, 15 * - 18 ) AS col2
----
319

skipif mysql # not compatible
query I rowsort label-6053
SELECT + 49 + - COUNT ( * ) * COALESCE ( + - CASE + AVG ( 94 ) WHEN - ( - + 39 ) + + + 1 + + - SUM ( - 6 ) THEN - 57 ELSE NULL END, 15 * - 18 ) AS col2
----
319

query II rowsort
SELECT ALL - 9 AS col1, - 9 + - 97
----
-9
-106

query II rowsort
SELECT - 41 AS col1, 79 * 9
----
-41
711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6056
SELECT ALL + - COUNT( - 26 ) + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL + - COUNT ( - 26 ) + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 85 * 70 + + 19 AS col2, 1 AS col1
----
-5931
1

query I rowsort
SELECT ALL + + 57 * - 78 AS col0
----
-4446

query I rowsort
SELECT + + 70 col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6060
SELECT ALL - + 35 col1, + 93 DIV - - CASE - - 15 WHEN 67 * 44 THEN NULL ELSE + COUNT( * ) * - 78 - + + 86 - COUNT( * ) END AS col1
----
-35
0

skipif mysql # not compatible
query II rowsort label-6060
SELECT ALL - + 35 col1, + 93 / - - CASE - - 15 WHEN 67 * 44 THEN NULL ELSE + COUNT ( * ) * - 78 - + + 86 - COUNT ( * ) END AS col1
----
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT DISTINCT + 10 * COUNT( * ) * + + 86 * + 7 * + - 40 AS col0
----
-240800

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT + 10 * COUNT ( * ) * + + 86 * + 7 * + - 40 AS col0
----
-240800

query I rowsort
SELECT DISTINCT 23 - + 2 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT COUNT( * ) * - 28 * - 80 AS col1
----
2240

skipif mysql # not compatible
query I rowsort label-6063
SELECT COUNT ( * ) * - 28 * - 80 AS col1
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT ALL - ( + + MIN( ALL - 51 ) )
----
51

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - ( + + MIN ( ALL - 51 ) )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6065
SELECT 9 + - 49 - - + MAX( ALL - + 57 ) + + 75 + - 37 * 49, COUNT( * ) AS col2
----
-1835
1

skipif mysql # not compatible
query II rowsort label-6065
SELECT 9 + - 49 - - + MAX ( ALL - + 57 ) + + 75 + - 37 * 49, COUNT ( * ) AS col2
----
-1835
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT COUNT( * ) * + 4 - + + 64
----
-60

skipif mysql # not compatible
query I rowsort label-6066
SELECT COUNT ( * ) * + 4 - + + 64
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6067
SELECT ALL + MAX( 99 ) DIV 15
----
6

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL + MAX ( 99 ) / 15
----
6

query I rowsort
SELECT - 36 * 59 + + 88 * 74
----
4388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6069
SELECT ( - COALESCE ( - ( AVG ( DISTINCT 9 ) ), 16, - COALESCE ( 20, - NULLIF ( - ( - + 44 ), + COALESCE ( 34, 82 ) * AVG ( + 87 * - 50 ) ) ) * COUNT( * ) ) ) + + 68 * - NULLIF ( CAST( NULL AS SIGNED ), 25 * - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT ( - COALESCE ( - ( AVG ( DISTINCT 9 ) ), 16, - COALESCE ( 20, - NULLIF ( - ( - + 44 ), + COALESCE ( 34, 82 ) * AVG ( + 87 * - 50 ) ) ) * COUNT ( * ) ) ) + + 68 * - NULLIF ( CAST ( NULL AS INTEGER ), 25 * - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6070
SELECT ALL - 99, 39 DIV + 15 col2
----
-99
2

skipif mysql # not compatible
query II rowsort label-6070
SELECT ALL - 99, 39 / + 15 col2
----
-99
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6071
SELECT ALL 16 + + CAST( - - COUNT( * ) AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL 16 + + CAST ( - - COUNT ( * ) AS INTEGER )
----
17

query I rowsort
SELECT 44 + + - 23 + 28 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT DISTINCT - COUNT( * ) + 68 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT - COUNT ( * ) + 68 AS col0
----
67

query I rowsort
SELECT ALL 80 + + - 18 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT COUNT( * ) * - + 25 * + - ( - - NULLIF ( + COUNT( * ), COUNT( * ) / - + 67 ) ) col1
----
25

skipif mysql # not compatible
query I rowsort label-6075
SELECT COUNT ( * ) * - + 25 * + - ( - - NULLIF ( + COUNT ( * ), COUNT ( * ) / - + 67 ) ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT + ( - COUNT( * ) ) * - 63 + ( - 83 ) + 39 + + NULLIF ( NULLIF ( + 21, - 36 * + ( ( - AVG ( - 70 ) ) ) ), 56 ) * 11 * - COUNT( * )
----
-212

skipif mysql # not compatible
query I rowsort label-6076
SELECT + ( - COUNT ( * ) ) * - 63 + ( - 83 ) + 39 + + NULLIF ( NULLIF ( + 21, - 36 * + ( ( - AVG ( - 70 ) ) ) ), 56 ) * 11 * - COUNT ( * )
----
-212

onlyif mysql # aggregate syntax: 
query II rowsort label-6077
SELECT ALL 67, - COUNT( * ) AS col1
----
67
-1

skipif mysql # not compatible
query II rowsort label-6077
SELECT ALL 67, - COUNT ( * ) AS col1
----
67
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-6078
SELECT 51 AS col0, 36, - + COUNT( * ) AS col1
----
51
36
-1

skipif mysql # not compatible
query III rowsort label-6078
SELECT 51 AS col0, 36, - + COUNT ( * ) AS col1
----
51
36
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT 88 + + MAX( 66 ) + COUNT( * )
----
155

skipif mysql # not compatible
query I rowsort label-6079
SELECT 88 + + MAX ( 66 ) + COUNT ( * )
----
155

query II rowsort
SELECT 59, - 11 AS col2
----
59
-11

query II rowsort
SELECT 95, + 41 AS col2
----
95
41

query I rowsort
SELECT DISTINCT - 18 + 23 + - 56 * + 45 AS col0
----
-2515

query I rowsort
SELECT ALL + 60 + 57
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ALL CASE - 29 WHEN - 55 - - 53 * + COUNT( * ) + - + 61 THEN - 81 + - 78 * + MIN( DISTINCT + 46 ) * + COUNT( * ) + COUNT( * ) * + 20 WHEN 90 THEN 27 - + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL CASE - 29 WHEN - 55 - - 53 * + COUNT ( * ) + - + 61 THEN - 81 + - 78 * + MIN ( DISTINCT + 46 ) * + COUNT ( * ) + COUNT ( * ) * + 20 WHEN 90 THEN 27 - + 99 END
----
NULL

query I rowsort
SELECT ALL - 85 + - 21 AS col2
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6086
SELECT + COUNT( * ) + - 8 + 49 + + + 39 * 27 DIV COUNT( * ) * NULLIF ( + 42, - - 40 ) + - - 67 * - 86
----
38506

skipif mysql # not compatible
query I rowsort label-6086
SELECT + COUNT ( * ) + - 8 + 49 + + + 39 * 27 / COUNT ( * ) * NULLIF ( + 42, - - 40 ) + - - 67 * - 86
----
38506

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT - 97, COUNT( * ) col1
----
-97
1

skipif mysql # not compatible
query II rowsort label-6087
SELECT - 97, COUNT ( * ) col1
----
-97
1

query I rowsort
SELECT DISTINCT + 77 + + 69
----
146

query I rowsort
SELECT DISTINCT - 66 * + 83 + - 38 col0
----
-5516

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT + ( + 58 ) - - ( - NULLIF ( 94, - 93 * + 60 - + 29 + + ( 34 ) ) ) + SUM( DISTINCT + 46 ) * - 2 * + COUNT( * )
----
-128

skipif mysql # not compatible
query I rowsort label-6090
SELECT + ( + 58 ) - - ( - NULLIF ( 94, - 93 * + 60 - + 29 + + ( 34 ) ) ) + SUM ( DISTINCT + 46 ) * - 2 * + COUNT ( * )
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6091
SELECT ALL - 33 * + 25 + - 46 + - 79 * + 17 + - - 97 * 87 DIV COUNT( * ) + CAST( + 59 AS SIGNED )
----
6284

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL - 33 * + 25 + - 46 + - 79 * + 17 + - - 97 * 87 / COUNT ( * ) + CAST ( + 59 AS INTEGER )
----
6284

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT - - COUNT( * ) + - - MIN( - 81 )
----
-80

skipif mysql # not compatible
query I rowsort label-6092
SELECT - - COUNT ( * ) + - - MIN ( - 81 )
----
-80

query I rowsort
SELECT - ( + + 88 ) AS col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT - + CAST( NULL AS SIGNED ) + AVG ( DISTINCT + 2 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT - + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + 2 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6095
SELECT ALL - MIN( 87 ) - + CASE + 35 WHEN - - 8 THEN - 83 + + 4 ELSE NULL END AS col1, 63
----
NULL
63

skipif mysql # not compatible
query II rowsort label-6095
SELECT ALL - MIN ( 87 ) - + CASE + 35 WHEN - - 8 THEN - 83 + + 4 ELSE NULL END AS col1, 63
----
NULL
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6096
SELECT + - MAX( DISTINCT - 97 ) DIV + 24
----
4

skipif mysql # not compatible
query I rowsort label-6096
SELECT + - MAX ( DISTINCT - 97 ) / + 24
----
4

query I rowsort
SELECT ALL - 73 * + 51 * + 86 * + 6 AS col2
----
-1921068

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT + 45 + + 81 + + COUNT( * ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-6098
SELECT + 45 + + 81 + + COUNT ( * ) AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT - + 3 - + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-6099
SELECT - + 3 - + COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT ALL - 17 * - COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL - 17 * - COUNT ( * ) AS col2
----
17

query I rowsort
SELECT ALL + - ( - + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT - MAX( + - 85 ) * 92 * + 93
----
727260

skipif mysql # not compatible
query I rowsort label-6102
SELECT - MAX ( + - 85 ) * 92 * + 93
----
727260

query II rowsort
SELECT + ( - 10 ) AS col2, 40
----
-10
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT - 70 * 94 + + ( - CASE + 8 WHEN + - 59 THEN + + COALESCE ( 92, - + ( 50 ) ) WHEN SUM( 63 ) / 47 + - 47 THEN NULL WHEN - 20 THEN 19 * + 26 + 3 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6104
SELECT - 70 * 94 + + ( - CASE + 8 WHEN + - 59 THEN + + COALESCE ( 92, - + ( 50 ) ) WHEN SUM ( 63 ) / 47 + - 47 THEN NULL WHEN - 20 THEN 19 * + 26 + 3 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT - 28 * + 32
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT ALL + COUNT( ALL + + 40 ) * - - 32 * + 88 AS col2
----
2816

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL + COUNT ( ALL + + 40 ) * - - 32 * + 88 AS col2
----
2816

query I rowsort
SELECT COALESCE ( + 97, + 55 + + 56 )
----
97

query I rowsort
SELECT DISTINCT ( 58 ) * - 17
----
-986

query II rowsort
SELECT DISTINCT 69 * - NULLIF ( + ( - + 11 ), ( - 10 ) ) + + 16 AS col1, - 26 AS col0
----
775
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT ALL 7 * - COALESCE ( 39, - ( - 64 ), + 14 * - 68, + - 92 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL 7 * - COALESCE ( 39, - ( - 64 ), + 14 * - 68, + - 92 ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 73 * - 7 + - 77 * 60 AS col2
----
-4109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6112
SELECT ALL CASE - 34 WHEN - - NULLIF ( - + 54, - COUNT( * ) * + 32 * - 29 * + 46 ) * 99 THEN NULL WHEN - - CASE + NULLIF ( 87, SUM( + ( - 50 ) ) ) WHEN CASE 19 WHEN MIN( ALL COALESCE ( - 95, 79 * 12 ) ) THEN COUNT( * ) * + 62 ELSE + 91 + + 39 END THEN NULLIF ( 83, + 54 + - 6 ) * COUNT( * ) + 44 ELSE - 62 * 44 END + COUNT( * ) * - 89 THEN ( - MAX( + 56 ) ) + - 73 ELSE 45 - MAX( 82 ) DIV - 9 END * 50 + 12 AS col2
----
2712

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL CASE - 34 WHEN - - NULLIF ( - + 54, - COUNT ( * ) * + 32 * - 29 * + 46 ) * 99 THEN NULL WHEN - - CASE + NULLIF ( 87, SUM ( + ( - 50 ) ) ) WHEN CASE 19 WHEN MIN ( ALL COALESCE ( - 95, 79 * 12 ) ) THEN COUNT ( * ) * + 62 ELSE + 91 + + 39 END THEN NULLIF ( 83, + 54 + - 6 ) * COUNT ( * ) + 44 ELSE - 62 * 44 END + COUNT ( * ) * - 89 THEN ( - MAX ( + 56 ) ) + - 73 ELSE 45 - MAX ( 82 ) / - 9 END * 50 + 12 AS col2
----
2712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6113
SELECT 88 * + CAST( NULL AS SIGNED ) + + - COALESCE ( + + ( - 48 ), - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6113
SELECT 88 * + CAST ( NULL AS INTEGER ) + + - COALESCE ( + + ( - 48 ), - 19 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6114
SELECT ALL + NULLIF ( + - 47, + COALESCE ( - COUNT( * ), + 37 * + 31, 35 + + CASE 51 WHEN CAST( - COUNT( * ) AS SIGNED ) THEN - 41 WHEN + 28 * 88 THEN - COUNT( * ) WHEN + 41 + 83 THEN + 16 + + 19 ELSE 50 END ) * + 28 )
----
-47

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + NULLIF ( + - 47, + COALESCE ( - COUNT ( * ), + 37 * + 31, 35 + + CASE 51 WHEN CAST ( - COUNT ( * ) AS INTEGER ) THEN - 41 WHEN + 28 * 88 THEN - COUNT ( * ) WHEN + 41 + 83 THEN + 16 + + 19 ELSE 50 END ) * + 28 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6115
SELECT + 21 DIV + 33 * - ( - 46 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6115
SELECT + 21 / + 33 * - ( - 46 ) AS col1
----
0

query I rowsort
SELECT ALL 93 * 88 * + + 85 + - + 88
----
695552

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT ALL - 16 DIV 35 * - 95 * 73 * + 51 col2
----
0

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL - 16 / 35 * - 95 * 73 * + 51 col2
----
0

query I rowsort
SELECT ALL 43 * + - 82
----
-3526

query I rowsort
SELECT ALL - 28 - - 92 * 79 * + - 13
----
-94512

query I rowsort
SELECT + + 17 * + + 98 AS col1
----
1666

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT DISTINCT SUM( ALL - 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT SUM ( ALL - 75 ) AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT AVG ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL - 37 * - 53 * - 10 * - COUNT( * ) * + 43
----
843230

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL - 37 * - 53 * - 10 * - COUNT ( * ) * + 43
----
843230

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT + + CASE - 71 WHEN + + ( - - 37 ) * - + 43 - 73 THEN MAX( ALL 10 ) WHEN - 90 THEN NULL ELSE + 64 END - + 57 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-6124
SELECT + + CASE - 71 WHEN + + ( - - 37 ) * - + 43 - 73 THEN MAX ( ALL 10 ) WHEN - 90 THEN NULL ELSE + 64 END - + 57 AS col2
----
7

query I rowsort
SELECT + - 93 - 80 * - 56 * - CASE + + 23 WHEN - 78 + - 90 THEN NULLIF ( 92, 75 * + 36 * - 31 + - 11 + + 88 * + 54 ) * 65 ELSE 37 END AS col1
----
-165853

query I rowsort
SELECT + - 82 * - 92
----
7544

query I rowsort
SELECT DISTINCT + COALESCE ( 37, 18, + - 63 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT + 33 + - MAX( DISTINCT + 55 )
----
-22

skipif mysql # not compatible
query I rowsort label-6128
SELECT + 33 + - MAX ( DISTINCT + 55 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL CASE + + 60 WHEN + 44 THEN COUNT( * ) ELSE NULL END * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL CASE + + 60 WHEN + 44 THEN COUNT ( * ) ELSE NULL END * - 35
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT + + 66 DIV 1 * 79
----
5214

skipif mysql # not compatible
query I rowsort label-6130
SELECT + + 66 / 1 * 79
----
5214

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT ALL + COUNT( DISTINCT - 67 ) * + - 77 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL + COUNT ( DISTINCT - 67 ) * + - 77 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT + + 55 + - COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6132
SELECT + + 55 + - COUNT ( * ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT - MAX( ALL 72 ) * 66 - - 18 + + 38 AS col1
----
-4696

skipif mysql # not compatible
query I rowsort label-6133
SELECT - MAX ( ALL 72 ) * 66 - - 18 + + 38 AS col1
----
-4696

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT ALL + SUM( ALL - - 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL + SUM ( ALL - - 53 ) AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6135
SELECT + 29 DIV + 11
----
2

skipif mysql # not compatible
query I rowsort label-6135
SELECT + 29 / + 11
----
2

query I rowsort
SELECT - 34 * - 78 AS col0
----
2652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6137
SELECT 82 DIV 19 * + + 30 + - CASE - - 71 WHEN - + ( 58 ) - + + 78 THEN - - MIN( ALL - - 57 ) ELSE + 11 END DIV + - COUNT( * )
----
131

skipif mysql # not compatible
query I rowsort label-6137
SELECT 82 / 19 * + + 30 + - CASE - - 71 WHEN - + ( 58 ) - + + 78 THEN - - MIN ( ALL - - 57 ) ELSE + 11 END / + - COUNT ( * )
----
131

query II rowsort
SELECT ALL ( - 90 ) * - 21 AS col0, + 23 * - + 23 - + 57 + - NULLIF ( 49, + 77 )
----
1890
-635

onlyif mysql # DIV for integer division: 
query I rowsort label-6139
SELECT ALL - 29 DIV - - 23 + 65 + + 46 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL - 29 / - - 23 + 65 + + 46 AS col0
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-6140
SELECT ALL 77 DIV + 78 + 64
----
64

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL 77 / + 78 + 64
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6141
SELECT + CAST( - 95 AS SIGNED ) * + 13 - - CAST( NULL AS SIGNED ) - 94 - - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6141
SELECT + CAST ( - 95 AS INTEGER ) * + 13 - - CAST ( NULL AS INTEGER ) - 94 - - 11
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6142
SELECT + 96 DIV + - 42 - 41 col0, 77 AS col0
----
-43
77

skipif mysql # not compatible
query II rowsort label-6142
SELECT + 96 / + - 42 - 41 col0, 77 AS col0
----
-43
77

query I rowsort
SELECT ( + - 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT - 45 + COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6144
SELECT - 45 + COUNT ( * ) AS col2
----
-44

query I rowsort
SELECT + 8 * - - 91 + - 42
----
686

onlyif mysql # aggregate syntax: 
query II rowsort label-6146
SELECT ALL 97 * COUNT( * ) * + 17 col0, + ( - MIN( DISTINCT + + 46 ) )
----
1649
-46

skipif mysql # not compatible
query II rowsort label-6146
SELECT ALL 97 * COUNT ( * ) * + 17 col0, + ( - MIN ( DISTINCT + + 46 ) )
----
1649
-46

query II rowsort
SELECT ALL - 49, - 9 AS col1
----
-49
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6148
SELECT ALL + + COUNT( * ) - - 11 + + + 2 + - + 71 AS col2, 9
----
-57
9

skipif mysql # not compatible
query II rowsort label-6148
SELECT ALL + + COUNT ( * ) - - 11 + + + 2 + - + 71 AS col2, 9
----
-57
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT DISTINCT - ( + - 30 ) * - 56 * - + CASE - + 31 WHEN - - ( + COUNT( * ) ) + + 33 THEN + + 35 + 55 WHEN - + 9 THEN NULL END * - COUNT( * ) * - 84 * 4 + + ( COUNT( * ) + COUNT( 75 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6149
SELECT DISTINCT - ( + - 30 ) * - 56 * - + CASE - + 31 WHEN - - ( + COUNT ( * ) ) + + 33 THEN + + 35 + 55 WHEN - + 9 THEN NULL END * - COUNT ( * ) * - 84 * 4 + + ( COUNT ( * ) + COUNT ( 75 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT 88 * + + COUNT( * ) - 16 + 44
----
116

skipif mysql # not compatible
query I rowsort label-6150
SELECT 88 * + + COUNT ( * ) - 16 + 44
----
116

query I rowsort
SELECT NULLIF ( - 76, 63 * 23 + - 26 + 10 * - 32 * - 3 ) * 65 * + 20
----
-98800

query II rowsort
SELECT 57 AS col0, 65 AS col2
----
57
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6153
SELECT - CAST( - - 11 AS SIGNED ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6153
SELECT - CAST ( - - 11 AS INTEGER ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT - - NULLIF ( 12, + + 79 * - 86 * + + 30 ) * 72 + - 11 + 90 + COUNT( * ) - - COUNT( ALL 81 ) + 45 col1
----
990

skipif mysql # not compatible
query I rowsort label-6154
SELECT - - NULLIF ( 12, + + 79 * - 86 * + + 30 ) * 72 + - 11 + 90 + COUNT ( * ) - - COUNT ( ALL 81 ) + 45 col1
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT - ( + COUNT( * ) ) + + NULLIF ( 36, + ( - 73 ) )
----
35

skipif mysql # not compatible
query I rowsort label-6155
SELECT - ( + COUNT ( * ) ) + + NULLIF ( 36, + ( - 73 ) )
----
35

query I rowsort
SELECT ALL - - 50 - - + 95
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6157
SELECT 84 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT 84 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 60 * - 38
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL CASE + 34 WHEN 44 THEN 70 * - + COUNT( * ) * + 9 ELSE - 20 END AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL CASE + 34 WHEN 44 THEN 70 * - + COUNT ( * ) * + 9 ELSE - 20 END AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6160
SELECT ALL - MIN( - + 68 ) * + 95 / - + CAST( CASE 32 WHEN 81 * + 41 - + 80 THEN 17 * + - 4 END AS SIGNED ) * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL - MIN ( - + 68 ) * + 95 / - + CAST ( CASE 32 WHEN 81 * + 41 - + 80 THEN 17 * + - 4 END AS INTEGER ) * + 34
----
NULL

query I rowsort
SELECT + 27 + + - 40
----
-13

query II rowsort
SELECT DISTINCT 38 AS col0, - 74
----
38
-74

query I rowsort
SELECT DISTINCT + + 8 * + - 68 AS col0
----
-544

query I rowsort
SELECT + 84 - ( - + 40 )
----
124

query II rowsort
SELECT - + 86 AS col1, 98 + + - 52 + 47 AS col0
----
-86
93

query II rowsort
SELECT 32 * + 31 * + - 78 * + 2 AS col1, 59 AS col0
----
-154752
59

query I rowsort
SELECT - 76 + + 74
----
-2

query I rowsort
SELECT ( + 3 ) + 80
----
83

query I rowsort
SELECT ALL 17 + 61 AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6170
SELECT 44 * 69, + MIN( DISTINCT + 23 ) * - 57 + - MAX( DISTINCT + - 40 ) + + + 30 DIV + 23 col2
----
3036
-1270

skipif mysql # not compatible
query II rowsort label-6170
SELECT 44 * 69, + MIN ( DISTINCT + 23 ) * - 57 + - MAX ( DISTINCT + - 40 ) + + + 30 / + 23 col2
----
3036
-1270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT DISTINCT - 51 + - - COALESCE ( + 20, - NULLIF ( 48, 68 + 44 * + CAST( NULL AS SIGNED ) ) )
----
-31

skipif mysql # not compatible
query I rowsort label-6171
SELECT DISTINCT - 51 + - - COALESCE ( + 20, - NULLIF ( 48, 68 + 44 * + CAST ( NULL AS INTEGER ) ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT DISTINCT 52 + + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT 52 + + - COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT DISTINCT 10 + + 5 * - + 72 + - - 87 - + + CASE - + 22 WHEN + + 53 THEN - 28 WHEN 12 * COALESCE ( + + 82, + + 28, - 78 / + - 21 * + 54 + + 64 * - 55 ) THEN - 11 / COALESCE ( SUM( ( 68 ) ), + 74 * 86 ) END + 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT 10 + + 5 * - + 72 + - - 87 - + + CASE - + 22 WHEN + + 53 THEN - 28 WHEN 12 * COALESCE ( + + 82, + + 28, - 78 / + - 21 * + 54 + + 64 * - 55 ) THEN - 11 / COALESCE ( SUM ( ( 68 ) ), + 74 * 86 ) END + 84 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6174
SELECT ALL 51 + - + 47 * COUNT( * ) DIV - 82 * - 19 * + 49 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL 51 + - + 47 * COUNT ( * ) / - 82 * - 19 * + 49 AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6175
SELECT CASE + 20 WHEN - 35 THEN - - COUNT( * ) END * + + 16 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT CASE + 20 WHEN - 35 THEN - - COUNT ( * ) END * + + 16 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 56 * 55, 6 AS col0
----
3080
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6177
SELECT ALL 15 - - 36 + - CASE 0 WHEN 76 * + - 72 THEN - 94 + - 10 * + 35 WHEN - 11 THEN NULL ELSE - - 56 END DIV + COUNT( * ) AS col0, 2 + 79 + - 83 AS col2
----
-5
-2

skipif mysql # not compatible
query II rowsort label-6177
SELECT ALL 15 - - 36 + - CASE 0 WHEN 76 * + - 72 THEN - 94 + - 10 * + 35 WHEN - 11 THEN NULL ELSE - - 56 END / + COUNT ( * ) AS col0, 2 + 79 + - 83 AS col2
----
-5
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6178
SELECT DISTINCT + 43 DIV + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT + 43 / + COUNT ( * ) AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6179
SELECT ALL - ( + COUNT( * ) ) - - + ( - COUNT( * ) ) - - 90 * - - COALESCE ( - CAST( 87 AS SIGNED ), - - COUNT( * ) - - 36, - + 52 * COUNT( * ), 94 + - - 27 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL - ( + COUNT ( * ) ) - - + ( - COUNT ( * ) ) - - 90 * - - COALESCE ( - CAST ( 87 AS INTEGER ), - - COUNT ( * ) - - 36, - + 52 * COUNT ( * ), 94 + - - 27 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT 97 * + 23 * - COUNT( * ) * + - 49 * - COUNT( * ) * - - 65 AS col1
----
-7105735

skipif mysql # not compatible
query I rowsort label-6180
SELECT 97 * + 23 * - COUNT ( * ) * + - 49 * - COUNT ( * ) * - - 65 AS col1
----
-7105735

query II rowsort
SELECT + 2 * 7 - + - 57 + 59, - 41 AS col2
----
130
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6182
SELECT - 8 DIV + 51 + - 28 + + 80 + 93 * + 21 - + 40 * ( + SUM( - + ( - 32 ) ) )
----
725

skipif mysql # not compatible
query I rowsort label-6182
SELECT - 8 / + 51 + - 28 + + 80 + 93 * + 21 - + 40 * ( + SUM ( - + ( - 32 ) ) )
----
725

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT + 14 * 14 * + MAX( - 11 ) + 80 + - 97 + 32
----
-2141

skipif mysql # not compatible
query I rowsort label-6183
SELECT + 14 * 14 * + MAX ( - 11 ) + 80 + - 97 + 32
----
-2141

query II rowsort
SELECT - 66 + + + 20, 18 AS col0
----
-46
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6185
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), + CASE + - 17 WHEN 95 * - AVG ( + COALESCE ( + + 14, 68 ) ) + + SUM( DISTINCT 31 ) THEN + COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6185
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), + CASE + - 17 WHEN 95 * - AVG ( + COALESCE ( + + 14, 68 ) ) + + SUM ( DISTINCT 31 ) THEN + COUNT ( * ) ELSE NULL END )
----
NULL

query I rowsort
SELECT 68 * + 68 + - 44 AS col1
----
4580

query I rowsort
SELECT ALL - 54 * - - 52 * + 31
----
-87048

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT DISTINCT 67 * + 9 - - + 50 + - + MAX( 56 ) AS col2
----
597

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT 67 * + 9 - - + 50 + - + MAX ( 56 ) AS col2
----
597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6189
SELECT ALL - NULLIF ( + 22, + CAST( NULL AS SIGNED ) )
----
-22

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL - NULLIF ( + 22, + CAST ( NULL AS INTEGER ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT + 39 * - 34 + 61 - MIN( - 1 ) AS col2
----
-1264

skipif mysql # not compatible
query I rowsort label-6190
SELECT + 39 * - 34 + 61 - MIN ( - 1 ) AS col2
----
-1264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6191
SELECT - 25 DIV - + COALESCE ( + + 98, + COUNT( + - 5 ) DIV - COUNT( * ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6191
SELECT - 25 / - + COALESCE ( + + 98, + COUNT ( + - 5 ) / - COUNT ( * ) ) col2
----
0

query I rowsort
SELECT - 68 + - 87
----
-155

onlyif mysql # DIV for integer division: 
query II rowsort label-6193
SELECT ALL + 61 + + 80 AS col0, + 71 DIV + 82 AS col2
----
141
0

skipif mysql # not compatible
query II rowsort label-6193
SELECT ALL + 61 + + 80 AS col0, + 71 / + 82 AS col2
----
141
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT 70 + - 37 * ( - COUNT( * ) )
----
107

skipif mysql # not compatible
query I rowsort label-6194
SELECT 70 + - 37 * ( - COUNT ( * ) )
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-6195
SELECT - 52 - 64 AS col0, 71 + COUNT( * ) AS col1
----
-116
72

skipif mysql # not compatible
query II rowsort label-6195
SELECT - 52 - 64 AS col0, 71 + COUNT ( * ) AS col1
----
-116
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6196
SELECT - 91 DIV 61 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6196
SELECT - 91 / 61 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6197
SELECT 60 - - 0 * + - 8 - - 68 + + - 22 * + 63 + + 69 AS col0, COUNT( + 55 )
----
-1189
1

skipif mysql # not compatible
query II rowsort label-6197
SELECT 60 - - 0 * + - 8 - - 68 + + - 22 * + 63 + + 69 AS col0, COUNT ( + 55 )
----
-1189
1

query I rowsort
SELECT ALL - - 43 + 57
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6199
SELECT DISTINCT + 11 DIV - SUM( ALL 95 ) * + 22 - + 51
----
-51

skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT + 11 / - SUM ( ALL 95 ) * + 22 - + 51
----
-51

query I rowsort
SELECT ALL + 92 * + + 77
----
7084

onlyif mysql # DIV for integer division: 
query I rowsort label-6201
SELECT 44 DIV 15 col2
----
2

skipif mysql # not compatible
query I rowsort label-6201
SELECT 44 / 15 col2
----
2

query I rowsort
SELECT DISTINCT + 19 + + 24 col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT MIN( + 44 ) + + + 85 + + NULLIF ( + NULLIF ( + 37, - 90 ), - AVG ( DISTINCT + 60 ) + + - COUNT( * ) - + + 40 * - 50 * - 0 ) * ( - 66 ) AS col2
----
-2313

skipif mysql # not compatible
query I rowsort label-6203
SELECT MIN ( + 44 ) + + + 85 + + NULLIF ( + NULLIF ( + 37, - 90 ), - AVG ( DISTINCT + 60 ) + + - COUNT ( * ) - + + 40 * - 50 * - 0 ) * ( - 66 ) AS col2
----
-2313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6204
SELECT ALL + CAST( + ( - ( + - 2 ) ) AS SIGNED ) * - 96 + COUNT( * ) AS col0, 92 AS col0
----
-191
92

skipif mysql # not compatible
query II rowsort label-6204
SELECT ALL + CAST ( + ( - ( + - 2 ) ) AS INTEGER ) * - 96 + COUNT ( * ) AS col0, 92 AS col0
----
-191
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT 43 + - COUNT( * ) * + + COUNT( * ) + 90
----
132

skipif mysql # not compatible
query I rowsort label-6205
SELECT 43 + - COUNT ( * ) * + + COUNT ( * ) + 90
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6206
SELECT 79 * + COUNT( * ) DIV 44 DIV - 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6206
SELECT 79 * + COUNT ( * ) / 44 / - 66 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT DISTINCT 63 * - COUNT( * ) + - 9
----
-72

skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT 63 * - COUNT ( * ) + - 9
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6208
SELECT + 44 DIV CAST( - 50 AS SIGNED ) * + 98 + - 73 * + - COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-6208
SELECT + 44 / CAST ( - 50 AS INTEGER ) * + 98 + - 73 * + - COUNT ( * ) AS col2
----
73

query I rowsort
SELECT NULLIF ( - 57, - + 45 ) AS col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-6210
SELECT + 9 + + 98 + - - 8 DIV - 24 col1
----
107

skipif mysql # not compatible
query I rowsort label-6210
SELECT + 9 + + 98 + - - 8 / - 24 col1
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-6211
SELECT ALL 6 * ( + - 38 ) * 67 - - - 1 DIV - + 91
----
-15276

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL 6 * ( + - 38 ) * 67 - - - 1 / - + 91
----
-15276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6212
SELECT ALL + COALESCE ( - COUNT( * ), + CAST( + - 4 AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL + COALESCE ( - COUNT ( * ), + CAST ( + - 4 AS INTEGER ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 9 * - + 44 - - 3 AS col2
----
-393

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6214
SELECT ( 55 ) / - CAST( NULL AS SIGNED ) + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6214
SELECT ( 55 ) / - CAST ( NULL AS INTEGER ) + 62
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6215
SELECT + + 80 + - + CAST( NULL AS SIGNED ) + - 55 / + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT + + 80 + - + CAST ( NULL AS INTEGER ) + - 55 / + 87 AS col1
----
NULL

query I rowsort
SELECT - + ( + - 1 ) * + 8 + + + 4 - + 27 * + 83
----
-2229

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT ALL + 12 * - 81 + - 78 + - NULLIF ( - - CASE + 10 WHEN - 80 * - 53 - - AVG ( + 23 ) + 68 + 66 * + 63 * + 54 * + - CASE - 60 WHEN + 22 * + 86 THEN 51 + - 46 END + COALESCE ( 32, 19 - 59, COUNT( 27 ) / + 36 ) THEN - NULLIF ( + ( - 75 ), 16 ) * + 17 + - COUNT( * ) / + 95 END, + 8 + - NULLIF ( - 52, + 98 ) ) * CASE + 73 WHEN 44 + - ( + 65 + + 39 ) THEN + ( 90 ) + + COALESCE ( AVG ( ALL 84 ), 84 ) ELSE + COALESCE ( ( - COUNT( * ) ), + 39, + 4 ) / 59 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL + 12 * - 81 + - 78 + - NULLIF ( - - CASE + 10 WHEN - 80 * - 53 - - AVG ( + 23 ) + 68 + 66 * + 63 * + 54 * + - CASE - 60 WHEN + 22 * + 86 THEN 51 + - 46 END + COALESCE ( 32, 19 - 59, COUNT ( 27 ) / + 36 ) THEN - NULLIF ( + ( - 75 ), 16 ) * + 17 + - COUNT ( * ) / + 95 END, + 8 + - NULLIF ( - 52, + 98 ) ) * CASE + 73 WHEN 44 + - ( + 65 + + 39 ) THEN + ( 90 ) + + COALESCE ( AVG ( ALL 84 ), 84 ) ELSE + COALESCE ( ( - COUNT ( * ) ), + 39, + 4 ) / 59 END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT + + 20 + COUNT( * ) * - + 81 * - - CASE 99 WHEN + 27 + - ( 60 ) * + 48 THEN - 23 + ( 53 ) + + - 32 * - - COUNT( - 63 ) / + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT + + 20 + COUNT ( * ) * - + 81 * - - CASE 99 WHEN + 27 + - ( 60 ) * + 48 THEN - 23 + ( 53 ) + + - 32 * - - COUNT ( - 63 ) / + 0 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6219
SELECT ALL 56 * 56 - - 39 + + + 13 DIV 89
----
3175

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL 56 * 56 - - 39 + + + 13 / 89
----
3175

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6220
SELECT DISTINCT + 72 AS col1, COUNT( * ) * - - COALESCE ( - 96, + 87 + - + 17, + + ( 88 ) ) DIV - 50 * - - COUNT( * ) + - - COUNT( * )
----
72
2

skipif mysql # not compatible
query II rowsort label-6220
SELECT DISTINCT + 72 AS col1, COUNT ( * ) * - - COALESCE ( - 96, + 87 + - + 17, + + ( 88 ) ) / - 50 * - - COUNT ( * ) + - - COUNT ( * )
----
72
2

query I rowsort
SELECT + - 45 + + - 71 * + 3
----
-258

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6222
SELECT COALESCE ( + 16, + 57 * COUNT( ALL + 35 ) + - 15, - CASE - - ( + COUNT( * ) ) WHEN - COUNT( * ) * 56 + ( 10 ) THEN - 68 + + + COUNT( DISTINCT 15 ) WHEN - 38 + - COUNT( * ) * CASE 87 * + ( 43 ) WHEN NULLIF ( CAST( COUNT( DISTINCT 57 ) AS DECIMAL ), + 3 ) * 86 THEN + 65 END THEN 29 END * 87 + COUNT( * ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6222
SELECT COALESCE ( + 16, + 57 * COUNT ( ALL + 35 ) + - 15, - CASE - - ( + COUNT ( * ) ) WHEN - COUNT ( * ) * 56 + ( 10 ) THEN - 68 + + + COUNT ( DISTINCT 15 ) WHEN - 38 + - COUNT ( * ) * CASE 87 * + ( 43 ) WHEN NULLIF ( CAST ( COUNT ( DISTINCT 57 ) AS REAL ), + 3 ) * 86 THEN + 65 END THEN 29 END * 87 + COUNT ( * ) ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT DISTINCT MAX( ALL - 65 ) + + COUNT( ALL + 52 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT MAX ( ALL - 65 ) + + COUNT ( ALL + 52 ) AS col1
----
-64

query I rowsort
SELECT ALL 83 + + - 8
----
75

query I rowsort
SELECT ALL ( ( 1 ) )
----
1

query I rowsort
SELECT + 80 * 5
----
400

query I rowsort
SELECT - - 4 + 72
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT - CASE 46 WHEN 10 - NULLIF ( + ( + - COUNT( * ) ), + - 2 / - + 48 + - + 7 ) THEN 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6228
SELECT - CASE 46 WHEN 10 - NULLIF ( + ( + - COUNT ( * ) ), + - 2 / - + 48 + - + 7 ) THEN 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT DISTINCT + - 78 + + - MAX( ALL + - 10 )
----
-68

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT + - 78 + + - MAX ( ALL + - 10 )
----
-68

query I rowsort
SELECT - + 43 * - 61 * 53
----
139019

query II rowsort
SELECT DISTINCT 22 AS col2, + 79 AS col2
----
22
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6232
SELECT ALL NULLIF ( + 7, + - COUNT( * ) / + ( - + CAST( NULL AS SIGNED ) ) + + + 39 )
----
7

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL NULLIF ( + 7, + - COUNT ( * ) / + ( - + CAST ( NULL AS INTEGER ) ) + + + 39 )
----
7

query I rowsort
SELECT - ( + + 98 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT + COUNT( * ) - + - ( + COUNT( * ) ) - 41 * + + 30
----
-1228

skipif mysql # not compatible
query I rowsort label-6234
SELECT + COUNT ( * ) - + - ( + COUNT ( * ) ) - 41 * + + 30
----
-1228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6235
SELECT - ( CAST( + 93 AS SIGNED ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-6235
SELECT - ( CAST ( + 93 AS INTEGER ) ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT - ( + 65 ) + - MAX( DISTINCT - 36 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6236
SELECT - ( + 65 ) + - MAX ( DISTINCT - 36 ) AS col1
----
-29

query I rowsort
SELECT DISTINCT + 88 - - 94 AS col2
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT ALL NULLIF ( SUM( ALL + 7 ), + 61 * + 9 ) col1
----
7

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL NULLIF ( SUM ( ALL + 7 ), + 61 * + 9 ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT - COUNT( * ) + + 25 * + - 30 AS col0
----
-751

skipif mysql # not compatible
query I rowsort label-6239
SELECT - COUNT ( * ) + + 25 * + - 30 AS col0
----
-751

query I rowsort
SELECT - ( 21 ) * + 64
----
-1344

onlyif mysql # DIV for integer division: 
query I rowsort label-6241
SELECT ALL + 61 DIV NULLIF ( - 29, 44 )
----
-2

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL + 61 / NULLIF ( - 29, 44 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6242
SELECT - 49 AS col0, CAST( + - COUNT( * ) AS SIGNED ) AS col0
----
-49
-1

skipif mysql # not compatible
query II rowsort label-6242
SELECT - 49 AS col0, CAST ( + - COUNT ( * ) AS INTEGER ) AS col0
----
-49
-1

query I rowsort
SELECT - 68 - + 49 AS col2
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-6244
SELECT ALL - 71 DIV 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL - 71 / 81 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6245
SELECT CAST( NULL AS DECIMAL ) AS col2, 56 AS col2
----
NULL
56

skipif mysql # not compatible
query II rowsort label-6245
SELECT CAST ( NULL AS REAL ) AS col2, 56 AS col2
----
NULL
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT ALL + COALESCE ( - COUNT( ALL - - 3 ), - SUM( DISTINCT + 47 ) * + 57, - 49 + - 76 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL + COALESCE ( - COUNT ( ALL - - 3 ), - SUM ( DISTINCT + 47 ) * + 57, - 49 + - 76 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 44 * - ( + + 86 )
----
3784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6248
SELECT - 32 DIV MIN( DISTINCT 90 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6248
SELECT - 32 / MIN ( DISTINCT 90 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6249
SELECT - 38 DIV - - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6249
SELECT - 38 / - - 89 AS col1
----
0

query I rowsort
SELECT - 50 * + 59
----
-2950

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT ALL + 71 * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL + 71 * - COUNT ( * )
----
-71

query I rowsort
SELECT - ( - 82 ) * + - 73 AS col2
----
-5986

query I rowsort
SELECT + CASE - 76 WHEN + 18 * + 18 THEN 12 * 71 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + CASE + ( - + 75 ) WHEN + 74 + 67 THEN NULL WHEN + - 4 THEN - 6 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6255
SELECT + + 82 AS col0, NULLIF ( - COUNT( - 26 ), - 71 )
----
82
-1

skipif mysql # not compatible
query II rowsort label-6255
SELECT + + 82 AS col0, NULLIF ( - COUNT ( - 26 ), - 71 )
----
82
-1

query I rowsort
SELECT DISTINCT - 72 * - - 51 * 45 + + 10
----
-165230

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT + COUNT( DISTINCT - - 73 ) * - ( + 10 ) * + + 15 + - - 68 * - - 78 * + + 59
----
312786

skipif mysql # not compatible
query I rowsort label-6257
SELECT + COUNT ( DISTINCT - - 73 ) * - ( + 10 ) * + + 15 + - - 68 * - - 78 * + + 59
----
312786

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL + + 88 * - MIN( + 64 ) + + 9
----
-5623

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + + 88 * - MIN ( + 64 ) + + 9
----
-5623

query I rowsort
SELECT 13 * + - 40 + + 40
----
-480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6260
SELECT ALL + + CASE + + 57 WHEN + CAST( - + COUNT( * ) AS SIGNED ) THEN NULL WHEN + 71 THEN - 70 / 77 + + 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL + + CASE + + 57 WHEN + CAST ( - + COUNT ( * ) AS INTEGER ) THEN NULL WHEN + 71 THEN - 70 / 77 + + 76 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6261
SELECT ALL + 44 * - 69 * + 88 + + - 84 * + NULLIF ( - + CASE + 56 WHEN + 87 + + + 78 THEN - 50 WHEN - 33 * + - CASE - MIN( - CAST( NULL AS SIGNED ) ) WHEN CAST( NULL AS DECIMAL ) / - 32 - + 71 * + SUM( - 3 ) THEN NULL WHEN COUNT( * ) THEN - 62 * + COUNT( * ) + 26 WHEN - ( 43 ) THEN SUM( 20 ) ELSE NULL END / + ( + CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END, + COUNT( * ) ) + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL + 44 * - 69 * + 88 + + - 84 * + NULLIF ( - + CASE + 56 WHEN + 87 + + + 78 THEN - 50 WHEN - 33 * + - CASE - MIN ( - CAST ( NULL AS INTEGER ) ) WHEN CAST ( NULL AS REAL ) / - 32 - + 71 * + SUM ( - 3 ) THEN NULL WHEN COUNT ( * ) THEN - 62 * + COUNT ( * ) + 26 WHEN - ( 43 ) THEN SUM ( 20 ) ELSE NULL END / + ( + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END, + COUNT ( * ) ) + + 1
----
NULL

query I rowsort
SELECT + - 0 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT + 0 + - COUNT( * ) * - 84 + NULLIF ( + + 34, - - 20 )
----
118

skipif mysql # not compatible
query I rowsort label-6263
SELECT + 0 + - COUNT ( * ) * - 84 + NULLIF ( + + 34, - - 20 )
----
118

query I rowsort
SELECT DISTINCT ( 62 ) AS col0
----
62

query I rowsort
SELECT - + ( - 73 ) AS col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT ALL 41 DIV - + 57
----
0

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL 41 / - + 57
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6267
SELECT + 52 * - 41 * + CAST( NULL AS SIGNED ) * - + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT + 52 * - 41 * + CAST ( NULL AS INTEGER ) * - + 55 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6268
SELECT - ( - CAST( NULL AS DECIMAL ) ) - COUNT( * ) * + 71 * COUNT( * ) + - CASE + 38 WHEN - + 99 / - 8 * - - 78 + + 25 + - 87 + 13 - - 11 * ( + 6 ) THEN NULL WHEN + 33 THEN NULL ELSE COUNT( * ) END * - MAX( DISTINCT 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT - ( - CAST ( NULL AS REAL ) ) - COUNT ( * ) * + 71 * COUNT ( * ) + - CASE + 38 WHEN - + 99 / - 8 * - - 78 + + 25 + - 87 + 13 - - 11 * ( + 6 ) THEN NULL WHEN + 33 THEN NULL ELSE COUNT ( * ) END * - MAX ( DISTINCT 9 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL + COUNT( - ( CASE - 28 WHEN - CASE - 27 WHEN + 45 THEN NULL WHEN - 0 - - 93 * - 77 THEN NULL ELSE + ( - 66 ) END THEN - - 56 WHEN - 8 THEN NULL ELSE NULL END ) ) * 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL + COUNT ( - ( CASE - 28 WHEN - CASE - 27 WHEN + 45 THEN NULL WHEN - 0 - - 93 * - 77 THEN NULL ELSE + ( - 66 ) END THEN - - 56 WHEN - 8 THEN NULL ELSE NULL END ) ) * 31 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT SUM( ALL 74 ) + 46
----
120

skipif mysql # not compatible
query I rowsort label-6270
SELECT SUM ( ALL 74 ) + 46
----
120

query I rowsort
SELECT DISTINCT 33 * + 61
----
2013

query I rowsort
SELECT 68 + + 54
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6273
SELECT CASE - + 54 WHEN COUNT( * ) * + 77 * COUNT( * ) - + + 66 THEN + ( - CASE + + 46 WHEN + - 6 THEN NULL WHEN 49 * ( - ( + - SUM( ALL - 39 ) ) ) * - 33 + + 78 * 78 THEN + ( - CAST( NULL AS SIGNED ) ) WHEN - MIN( + 20 ) THEN COALESCE ( + 22, 64 ) * + CAST( 79 - - MAX( ALL + ( - 54 ) + 67 ) * + 46 AS SIGNED ) ELSE NULL END ) ELSE CAST( 98 AS SIGNED ) * 1 END + + ( + 72 )
----
170

skipif mysql # not compatible
query I rowsort label-6273
SELECT CASE - + 54 WHEN COUNT ( * ) * + 77 * COUNT ( * ) - + + 66 THEN + ( - CASE + + 46 WHEN + - 6 THEN NULL WHEN 49 * ( - ( + - SUM ( ALL - 39 ) ) ) * - 33 + + 78 * 78 THEN + ( - CAST ( NULL AS INTEGER ) ) WHEN - MIN ( + 20 ) THEN COALESCE ( + 22, 64 ) * + CAST ( 79 - - MAX ( ALL + ( - 54 ) + 67 ) * + 46 AS INTEGER ) ELSE NULL END ) ELSE CAST ( 98 AS INTEGER ) * 1 END + + ( + 72 )
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6274
SELECT 3 DIV + 25 + ( - COUNT( * ) ) + - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6274
SELECT 3 / + 25 + ( - COUNT ( * ) ) + - - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 23 * + 55 * 47
----
59455

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT ALL + 67 + + + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + 67 + + + COUNT ( * )
----
68

query I rowsort
SELECT - 55 + - 57
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT DISTINCT - COUNT( - 65 ) * - 49 + - - 0 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT - COUNT ( - 65 ) * - 49 + - - 0 AS col2
----
49

query I rowsort
SELECT ALL + NULLIF ( + 85, - 73 ) * - 70 * + - 60 AS col0
----
357000

onlyif mysql # aggregate syntax: 
query II rowsort label-6280
SELECT ALL + - COUNT( * ) + 70 AS col1, 9
----
69
9

skipif mysql # not compatible
query II rowsort label-6280
SELECT ALL + - COUNT ( * ) + 70 AS col1, 9
----
69
9

query II rowsort
SELECT + 21 * 1, + 87 col0
----
21
87

query I rowsort
SELECT ( + 61 ) * - 74 + 91 + + 27
----
-4396

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL - - 99 * + MIN( - 42 ) AS col1
----
-4158

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL - - 99 * + MIN ( - 42 ) AS col1
----
-4158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6284
SELECT CAST( - MAX( DISTINCT + 66 ) AS SIGNED ) * + 37 + - CASE + 6 WHEN - COUNT( * ) * + 69 + - CAST( - - 57 AS SIGNED ) THEN NULL WHEN + 59 + 17 + + 53 * + - 51 + - ( 16 ) THEN - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT CAST ( - MAX ( DISTINCT + 66 ) AS INTEGER ) * + 37 + - CASE + 6 WHEN - COUNT ( * ) * + 69 + - CAST ( - - 57 AS INTEGER ) THEN NULL WHEN + 59 + 17 + + 53 * + - 51 + - ( 16 ) THEN - 67 END
----
NULL

query II rowsort
SELECT - 4 + + - 97 AS col2, - 34 col0
----
-101
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT NULLIF ( - COUNT( * ), + 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-6286
SELECT NULLIF ( - COUNT ( * ), + 60 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6287
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + COUNT( * ) + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 76 AS col1
----
NULL

query I rowsort
SELECT ALL - 82 + - - 70
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-6289
SELECT - 71 * - + 57 AS col1, + CASE 40 WHEN - 17 THEN + CASE - COALESCE ( + MIN( ALL 63 ), + - 19 + + - 16 * - MIN( ALL - - 15 ) ) WHEN 64 + - + 62 THEN + 98 ELSE NULL END END AS col2
----
4047
NULL

skipif mysql # not compatible
query II rowsort label-6289
SELECT - 71 * - + 57 AS col1, + CASE 40 WHEN - 17 THEN + CASE - COALESCE ( + MIN ( ALL 63 ), + - 19 + + - 16 * - MIN ( ALL - - 15 ) ) WHEN 64 + - + 62 THEN + 98 ELSE NULL END END AS col2
----
4047
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6290
SELECT ALL - 71 * - ( 11 ) + - - ( - CAST( - - 84 AS SIGNED ) ) + + - 67 AS col1
----
630

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL - 71 * - ( 11 ) + - - ( - CAST ( - - 84 AS INTEGER ) ) + + - 67 AS col1
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT NULLIF ( 76, + COALESCE ( + ( - - 60 ), - 9, - 40 * + 21 + + 52 + 34 * - 9 + + MIN( - 2 ) ) - - 9 - + COALESCE ( + + NULLIF ( CASE - 89 WHEN - 60 + 89 THEN - 54 WHEN AVG ( 78 ) THEN 66 ELSE NULL END, - COUNT( * ) * - 53 + 91 ), 87 ) * + 92 ) * 76 col1
----
5776

skipif mysql # not compatible
query I rowsort label-6291
SELECT NULLIF ( 76, + COALESCE ( + ( - - 60 ), - 9, - 40 * + 21 + + 52 + 34 * - 9 + + MIN ( - 2 ) ) - - 9 - + COALESCE ( + + NULLIF ( CASE - 89 WHEN - 60 + 89 THEN - 54 WHEN AVG ( 78 ) THEN 66 ELSE NULL END, - COUNT ( * ) * - 53 + 91 ), 87 ) * + 92 ) * 76 col1
----
5776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6292
SELECT DISTINCT - + CAST( 32 AS SIGNED ) - - - MIN( + 37 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT - + CAST ( 32 AS INTEGER ) - - - MIN ( + 37 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT 44 + + + 56 * - - 94 / CASE 94 WHEN COUNT( * ) THEN NULL WHEN - + 2 - 36 THEN - ( + 45 ) - + COUNT( * ) * 11 WHEN - 1 * + 11 + - 77 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6293
SELECT 44 + + + 56 * - - 94 / CASE 94 WHEN COUNT ( * ) THEN NULL WHEN - + 2 - 36 THEN - ( + 45 ) - + COUNT ( * ) * 11 WHEN - 1 * + 11 + - 77 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 82 + - 93 AS col2
----
-11

query I rowsort
SELECT 53 * + 21 col2
----
1113

query II rowsort
SELECT - 26 AS col1, + 52 AS col2
----
-26
52

query II rowsort
SELECT ALL 33, - 2 AS col1
----
33
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-6298
SELECT 72 DIV - ( 61 ) AS col0, 58 + - - 71 col1
----
-1
129

skipif mysql # not compatible
query II rowsort label-6298
SELECT 72 / - ( 61 ) AS col0, 58 + - - 71 col1
----
-1
129

query I rowsort
SELECT ALL - 70 * + 84 * - - 18
----
-105840

query I rowsort
SELECT 78 + - ( + 17 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6301
SELECT SUM( DISTINCT - 36 ) DIV + ( - 42 ) * 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6301
SELECT SUM ( DISTINCT - 36 ) / + ( - 42 ) * 50 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT CASE + + ( - COUNT( * ) ) WHEN + + 46 THEN + + 98 * - - MIN( - 91 ) + + - COUNT( * ) END - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT CASE + + ( - COUNT ( * ) ) WHEN + + 46 THEN + + 98 * - - MIN ( - 91 ) + + - COUNT ( * ) END - 24
----
NULL

query I rowsort
SELECT 13 + + + 62 * - + 34
----
-2095

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT DISTINCT 80 + + MAX( + ( + 5 ) ) * - 11 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT 80 + + MAX ( + ( + 5 ) ) * - 11 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT ALL COUNT( * ) + + 46 * - - 22 * - + 58
----
-58695

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL COUNT ( * ) + + 46 * - - 22 * - + 58
----
-58695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6306
SELECT - 11 AS col0, 33 + + + SUM( + CAST( 6 AS SIGNED ) ) * + 93
----
-11
591

skipif mysql # not compatible
query II rowsort label-6306
SELECT - 11 AS col0, 33 + + + SUM ( + CAST ( 6 AS INTEGER ) ) * + 93
----
-11
591

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT ALL 9 + + MAX( ALL - 20 ) - - + 58 + 55 * - - 69 + - - 32
----
3874

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL 9 + + MAX ( ALL - 20 ) - - + 58 + 55 * - - 69 + - - 32
----
3874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6308
SELECT ALL CASE ( 35 ) WHEN + - 86 THEN - ( - CASE 70 WHEN - 23 THEN + 49 ELSE + 45 END ) WHEN + + 96 * 18 THEN + 96 ELSE NULL END + - CASE 24 WHEN - - 89 / - CAST( NULL AS SIGNED ) * + + 69 * + 14 + + 48 THEN 51 + - 4 END - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL CASE ( 35 ) WHEN + - 86 THEN - ( - CASE 70 WHEN - 23 THEN + 49 ELSE + 45 END ) WHEN + + 96 * 18 THEN + 96 ELSE NULL END + - CASE 24 WHEN - - 89 / - CAST ( NULL AS INTEGER ) * + + 69 * + 14 + + 48 THEN 51 + - 4 END - 40 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 44 + - + 27
----
17

query II rowsort
SELECT ALL - 22 AS col1, + 16 AS col1
----
-22
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6311
SELECT ALL + 28 * 23 DIV - 28 + + ( COUNT( ALL - 60 ) ) AS col0, 46
----
-22
46

skipif mysql # not compatible
query II rowsort label-6311
SELECT ALL + 28 * 23 / - 28 + + ( COUNT ( ALL - 60 ) ) AS col0, 46
----
-22
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6312
SELECT DISTINCT - 93 * - - SUM( 65 ) * + CAST( NULL AS DECIMAL ) * - 4 + - + 5 + - 85 * 8 + - 56 * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT - 93 * - - SUM ( 65 ) * + CAST ( NULL AS REAL ) * - 4 + - + 5 + - 85 * 8 + - 56 * + 88
----
NULL

query II rowsort
SELECT 88 * + - 95 - + 93 AS col0, - 58 AS col1
----
-8453
-58

query I rowsort
SELECT DISTINCT - + ( 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT 21 - + + 17 * COUNT( * ) * + 87
----
-1458

skipif mysql # not compatible
query I rowsort label-6315
SELECT 21 - + + 17 * COUNT ( * ) * + 87
----
-1458

query II rowsort
SELECT DISTINCT - + 11 AS col2, ( + + ( - - 93 ) ) + + 46 AS col0
----
-11
139

query II rowsort
SELECT DISTINCT - - 34 AS col1, 31 * 92
----
34
2852

onlyif mysql # aggregate syntax: 
query II rowsort label-6318
SELECT + 70 AS col0, + 32 - - CASE + - CASE - 13 WHEN - + 78 / 34 + - - 12 THEN - 73 WHEN - COUNT( 5 ) * - 53 + - 48 + 49 + + 74 * - 81 THEN NULL END WHEN 39 THEN NULL WHEN 41 / - 83 THEN NULL ELSE - 39 END AS col1
----
70
-7

skipif mysql # not compatible
query II rowsort label-6318
SELECT + 70 AS col0, + 32 - - CASE + - CASE - 13 WHEN - + 78 / 34 + - - 12 THEN - 73 WHEN - COUNT ( 5 ) * - 53 + - 48 + 49 + + 74 * - 81 THEN NULL END WHEN 39 THEN NULL WHEN 41 / - 83 THEN NULL ELSE - 39 END AS col1
----
70
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6319
SELECT ALL + - 4 DIV + 86 * - - 35 * - 94
----
0

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL + - 4 / + 86 * - - 35 * - 94
----
0

query I rowsort
SELECT DISTINCT - ( 8 ) AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6321
SELECT 37 - - 48 + - + 2 * + COUNT( ALL - + CAST( - 27 AS DECIMAL ) ) + + 77 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-6321
SELECT 37 - - 48 + - + 2 * + COUNT ( ALL - + CAST ( - 27 AS REAL ) ) + + 77 AS col2
----
160

query I rowsort
SELECT ALL - + CASE - 70 WHEN + 0 + - 15 THEN NULL ELSE + 2 * 52 * + COALESCE ( + - 15, ( + + 81 ) * + 95 - - 96 + + 53 + + 31 ) + 30 * + - 36 + - 56 * 42 - - 31 + - 63 END * + 61
----
306464

query I rowsort
SELECT 39 + - ( - 13 ) + + ( ( + 64 ) ) * - - 30 AS col2
----
1972

onlyif mysql # aggregate syntax: 
query II rowsort label-6324
SELECT + 4 AS col0, - COUNT( * ) AS col1
----
4
-1

skipif mysql # not compatible
query II rowsort label-6324
SELECT + 4 AS col0, - COUNT ( * ) AS col1
----
4
-1

query I rowsort
SELECT - 17 * 45
----
-765

query I rowsort
SELECT ALL - 2 * + - 53 AS col0
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6327
SELECT - CAST( NULL AS SIGNED ) + 94 + - - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT - CAST ( NULL AS INTEGER ) + 94 + - - 34 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT - COUNT( * ) + - 22 + - + 22 + - COUNT( + ( + 14 ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-6328
SELECT - COUNT ( * ) + - 22 + - + 22 + - COUNT ( + ( + 14 ) ) AS col2
----
-46

query I rowsort
SELECT ALL - 39 * 27 AS col2
----
-1053

query I rowsort
SELECT + 57 * + ( + + 55 )
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT + 15 + + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6331
SELECT + 15 + + COUNT ( * ) AS col2
----
16

query I rowsort
SELECT ALL 39 + 11 * - 12
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6333
SELECT ALL AVG ( - - 41 ) + - - 2 * 48 * - - NULLIF ( + NULLIF ( CAST( NULL AS SIGNED ), + 84 * + 66 + + + COUNT( * ) + - 18 ), ( - 35 ) + 61 ) * 61 AS col0, CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6333
SELECT ALL AVG ( - - 41 ) + - - 2 * 48 * - - NULLIF ( + NULLIF ( CAST ( NULL AS INTEGER ), + 84 * + 66 + + + COUNT ( * ) + - 18 ), ( - 35 ) + 61 ) * 61 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

query I rowsort
SELECT ALL + 40 * - + 71
----
-2840

query I rowsort
SELECT DISTINCT - 85 + + 79 + - - 72 - + 53 + - + 71
----
-58

query I rowsort
SELECT ALL - 67 + + 82 AS col0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6337
SELECT - MAX( ALL + 72 ), + COUNT( * ) AS col0
----
-72
1

skipif mysql # not compatible
query II rowsort label-6337
SELECT - MAX ( ALL + 72 ), + COUNT ( * ) AS col0
----
-72
1

query I rowsort
SELECT - 90 + - 63
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT + 64 * COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-6339
SELECT + 64 * COUNT ( * )
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6340
SELECT ALL NULLIF ( - - 86, CAST( 90 AS SIGNED ) ) DIV - 55
----
-1

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL NULLIF ( - - 86, CAST ( 90 AS INTEGER ) ) / - 55
----
-1

query I rowsort
SELECT - 3 + + NULLIF ( + + 23, - 91 + + COALESCE ( - 43, + 97 - + - 16 ) + - + 57 * + + 95 + 70 * 97 )
----
20

query I rowsort
SELECT + - 35 + + 92
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6343
SELECT ALL + AVG ( - 10 ) * 72 * - + COUNT( ALL + - 61 ) - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL + AVG ( - 10 ) * 72 * - + COUNT ( ALL + - 61 ) - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6344
SELECT ALL 56 * + - 19 DIV - COUNT( * ) - - COUNT( * ) DIV + - 47 * + 34 AS col2
----
1064

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL 56 * + - 19 / - COUNT ( * ) - - COUNT ( * ) / + - 47 * + 34 AS col2
----
1064

query I rowsort
SELECT + ( + - 99 ) * + - 14
----
1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6346
SELECT + CAST( - 49 AS SIGNED ) * + - 12 + - MIN( 10 ) AS col1
----
578

skipif mysql # not compatible
query I rowsort label-6346
SELECT + CAST ( - 49 AS INTEGER ) * + - 12 + - MIN ( 10 ) AS col1
----
578

query I rowsort
SELECT + + 50 * + - 49
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT + - COUNT( * ) * + 95 + - 36
----
-131

skipif mysql # not compatible
query I rowsort label-6348
SELECT + - COUNT ( * ) * + 95 + - 36
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT CASE + 51 WHEN 5 THEN NULL WHEN + 13 THEN NULL WHEN + 39 / - 55 THEN NULL WHEN - 11 + - 78 THEN - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6349
SELECT CASE + 51 WHEN 5 THEN NULL WHEN + 13 THEN NULL WHEN + 39 / - 55 THEN NULL WHEN - 11 + - 78 THEN - - COUNT ( * ) END
----
NULL

query I rowsort
SELECT - ( + + 43 ) * - 53
----
2279

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT ALL 75 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL 75 / + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT + ( - ( - + 91 ) ) * - COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-6352
SELECT + ( - ( - + 91 ) ) * - COUNT ( * ) AS col1
----
-91

query I rowsort
SELECT - 33 * + - 26
----
858

query I rowsort
SELECT ALL + ( - + 86 ) + - 43 AS col0
----
-129

query II rowsort
SELECT - 98 AS col2, + 64
----
-98
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6356
SELECT ALL MAX( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL MAX ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 99 + + - CASE - 8 WHEN 6 THEN + 59 * 7 * - + 21 + - 0 END AS col0
----
NULL

query I rowsort
SELECT - 97 + + + 85
----
-12

query I rowsort
SELECT DISTINCT + 35 + + 20 * + ( - + 82 ) * - 61
----
100075

query I rowsort
SELECT ALL COALESCE ( - + 47, - 50 * 31, + 40 ) col1
----
-47

query II rowsort
SELECT DISTINCT 85 + 82 + 62 AS col2, 61
----
229
61

query I rowsort
SELECT - ( - - 48 ) * 45 AS col2
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT - MAX( ALL 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-6363
SELECT - MAX ( ALL 66 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6364
SELECT 72, ( + - CASE - 38 WHEN 86 + - 98 THEN NULL WHEN - + ( ( - CAST( - 21 AS SIGNED ) ) ) THEN 71 - + 0 + + + 32 - - 14 * 97 * - CAST( - 86 AS SIGNED ) + + NULLIF ( 52, + 74 + CAST( NULL AS SIGNED ) * - 21 ) + 4 * 53 END ) + - NULLIF ( COUNT( * ) + + 8, COUNT( * ) ) * - 85 AS col1
----
72
NULL

skipif mysql # not compatible
query II rowsort label-6364
SELECT 72, ( + - CASE - 38 WHEN 86 + - 98 THEN NULL WHEN - + ( ( - CAST ( - 21 AS INTEGER ) ) ) THEN 71 - + 0 + + + 32 - - 14 * 97 * - CAST ( - 86 AS INTEGER ) + + NULLIF ( 52, + 74 + CAST ( NULL AS INTEGER ) * - 21 ) + 4 * 53 END ) + - NULLIF ( COUNT ( * ) + + 8, COUNT ( * ) ) * - 85 AS col1
----
72
NULL

query I rowsort
SELECT + + 24 + - 0 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6366
SELECT ALL - 86 - ( + MIN( - CAST( NULL AS SIGNED ) ) ) * + 24 + 39 * + - CASE + 39 WHEN + MAX( 80 ) + + ( + 47 ) THEN + 66 END * - + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL - 86 - ( + MIN ( - CAST ( NULL AS INTEGER ) ) ) * + 24 + 39 * + - CASE + 39 WHEN + MAX ( 80 ) + + ( + 47 ) THEN + 66 END * - + 54 AS col2
----
NULL

query I rowsort
SELECT ALL - ( - + 41 ) col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT DISTINCT + - 63 * ( - - MIN( + 93 ) )
----
-5859

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT + - 63 * ( - - MIN ( + 93 ) )
----
-5859

query I rowsort
SELECT DISTINCT + - 87 * + 24 col2
----
-2088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6370
SELECT CAST( NULL AS SIGNED ) * - 56 + COUNT( ALL - + 87 ) - + - 17 + + 28 + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6370
SELECT CAST ( NULL AS INTEGER ) * - 56 + COUNT ( ALL - + 87 ) - + - 17 + + 28 + 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6371
SELECT - 95 DIV COUNT( * ) + 34 * - 2 - - + 38 DIV - COUNT( * )
----
-201

skipif mysql # not compatible
query I rowsort label-6371
SELECT - 95 / COUNT ( * ) + 34 * - 2 - - + 38 / - COUNT ( * )
----
-201

query I rowsort
SELECT + 64 * + 52 AS col0
----
3328

query I rowsort
SELECT + ( - - 17 )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6374
SELECT DISTINCT 52 DIV + 75 * - MIN( + 17 ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT 52 / + 75 * - MIN ( + 17 ) + + COUNT ( * )
----
1

query I rowsort
SELECT ( 69 ) * 48 AS col1
----
3312

query I rowsort
SELECT - COALESCE ( - 33, + - 65 ) - + 43 AS col1
----
-10

query I rowsort
SELECT 69 * 31
----
2139

query I rowsort
SELECT ALL 64 + - 63
----
1

query I rowsort
SELECT DISTINCT 34 * - - 5
----
170

query I rowsort
SELECT DISTINCT 93 + - 66
----
27

query II rowsort
SELECT 85 col2, 46
----
85
46

query I rowsort
SELECT ALL 69 * + ( ( + 1 ) ) * 90 * 5 AS col1
----
31050

query I rowsort
SELECT ALL 28 + + - 55 + + 45 * 36 AS col0
----
1593

query I rowsort
SELECT 48 * - + 70 + + 22 + - 53
----
-3391

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT COUNT( * ) - - 41 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-6385
SELECT COUNT ( * ) - - 41 AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6386
SELECT + 33 AS col0, COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-6386
SELECT + 33 AS col0, COUNT ( * )
----
33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT 17 * COALESCE ( + + COUNT( + - 27 ), + + COUNT( * ) ) col1
----
17

skipif mysql # not compatible
query I rowsort label-6387
SELECT 17 * COALESCE ( + + COUNT ( + - 27 ), + + COUNT ( * ) ) col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT ALL MAX( DISTINCT - 59 ) + - + 71
----
-130

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL MAX ( DISTINCT - 59 ) + - + 71
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6389
SELECT DISTINCT 27 + CAST( NULL AS SIGNED ) * + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT 27 + CAST ( NULL AS INTEGER ) * + 38 AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( + 80, - - 80 + - 3 + + 27 * + + 36 ) * + 36 + 69 AS col1
----
-2811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6391
SELECT DISTINCT 21 / - - 93 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT 21 / - - 93 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 26 + 34 - - 41 col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT 97 * MAX( 52 ) AS col2
----
5044

skipif mysql # not compatible
query I rowsort label-6393
SELECT 97 * MAX ( 52 ) AS col2
----
5044

query I rowsort
SELECT NULLIF ( + - 87, 7 ) * - 3
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6395
SELECT 17 AS col1, + COUNT( * ) + + NULLIF ( + 52, - + 68 + + + 55 * + 42 ) - - + CAST( NULL AS SIGNED ) + 95 + + + 20 + + - 2 * - + 6 AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-6395
SELECT 17 AS col1, + COUNT ( * ) + + NULLIF ( + 52, - + 68 + + + 55 * + 42 ) - - + CAST ( NULL AS INTEGER ) + 95 + + + 20 + + - 2 * - + 6 AS col2
----
17
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6396
SELECT - 65, + 74 DIV - 39 + - + 61 + 51 * - 75 * + 91 AS col2
----
-65
-348137

skipif mysql # not compatible
query II rowsort label-6396
SELECT - 65, + 74 / - 39 + - + 61 + 51 * - 75 * + 91 AS col2
----
-65
-348137

query I rowsort
SELECT 51 + - 88
----
-37

query I rowsort
SELECT ALL COALESCE ( - 64, - 92 )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-6399
SELECT - 99 * 35 - - 41 DIV - 92 AS col2
----
-3465

skipif mysql # not compatible
query I rowsort label-6399
SELECT - 99 * 35 - - 41 / - 92 AS col2
----
-3465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6400
SELECT ALL COUNT( * ), - ( + CASE + - 48 WHEN - 90 + - 76 THEN - ( - 91 ) ELSE NULL END ) * 7 * 57 + - 43 + CAST( + - 21 AS SIGNED ) + + 49 * + - ( - 73 ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6400
SELECT ALL COUNT ( * ), - ( + CASE + - 48 WHEN - 90 + - 76 THEN - ( - 91 ) ELSE NULL END ) * 7 * 57 + - 43 + CAST ( + - 21 AS INTEGER ) + + 49 * + - ( - 73 ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6401
SELECT 73 - - COUNT( * ), + COUNT( * ) col0
----
74
1

skipif mysql # not compatible
query II rowsort label-6401
SELECT 73 - - COUNT ( * ), + COUNT ( * ) col0
----
74
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT DISTINCT - 87 * + + 92 + + + 50 * + + MAX( - 71 ) AS col0
----
-11554

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT - 87 * + + 92 + + + 50 * + + MAX ( - 71 ) AS col0
----
-11554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6403
SELECT ALL + 32 AS col0, + 12 - COUNT( ALL - - 91 ) * 13 - - + 79 + + 20 * - 30 + 89 DIV + 9 + - + COALESCE ( SUM( 31 ), + - 7 * ( - - CAST( + 65 AS SIGNED ) ) * + 65 ) * 40
----
32
-1753

skipif mysql # not compatible
query II rowsort label-6403
SELECT ALL + 32 AS col0, + 12 - COUNT ( ALL - - 91 ) * 13 - - + 79 + + 20 * - 30 + 89 / + 9 + - + COALESCE ( SUM ( 31 ), + - 7 * ( - - CAST ( + 65 AS INTEGER ) ) * + 65 ) * 40
----
32
-1753

query I rowsort
SELECT 66 * 1 + + 66
----
132

query I rowsort
SELECT 42 - - 51
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT + 62 * - COUNT( - - ( NULLIF ( - + 48, + 52 * 46 ) ) ) + - - 68
----
6

skipif mysql # not compatible
query I rowsort label-6406
SELECT + 62 * - COUNT ( - - ( NULLIF ( - + 48, + 52 * 46 ) ) ) + - - 68
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT - ( 57 ) - + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-6407
SELECT - ( 57 ) - + COUNT ( * )
----
-58

query II rowsort
SELECT + 11 AS col0, - 83 AS col2
----
11
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-6409
SELECT - 28 DIV + NULLIF ( 32, - 69 DIV - 71 ) * 8
----
0

skipif mysql # not compatible
query I rowsort label-6409
SELECT - 28 / + NULLIF ( 32, - 69 / - 71 ) * 8
----
0

query I rowsort
SELECT ALL - - 10 + 27
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT - ( + + COUNT( * ) ) + - 3
----
-4

skipif mysql # not compatible
query I rowsort label-6411
SELECT - ( + + COUNT ( * ) ) + - 3
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ALL - 11 * - MIN( - 58 ) AS col2
----
-638

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL - 11 * - MIN ( - 58 ) AS col2
----
-638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6413
SELECT + 14 * - COUNT( * ) + - 5 + - 34 * - ( + COUNT( * ) ) DIV - + 89
----
-19

skipif mysql # not compatible
query I rowsort label-6413
SELECT + 14 * - COUNT ( * ) + - 5 + - 34 * - ( + COUNT ( * ) ) / - + 89
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6414
SELECT ALL - COALESCE ( - 69, + ( + COUNT( * ) ) DIV 94 + - 23 + + 34 + - CAST( COALESCE ( 49, - 69, + 53 * + NULLIF ( + 86, MIN( ALL - 43 ) * - + NULLIF ( 99, COUNT( - 28 ) * + 27 - + 82 ) DIV + 30 ) ) AS SIGNED ) ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL - COALESCE ( - 69, + ( + COUNT ( * ) ) / 94 + - 23 + + 34 + - CAST ( COALESCE ( 49, - 69, + 53 * + NULLIF ( + 86, MIN ( ALL - 43 ) * - + NULLIF ( 99, COUNT ( - 28 ) * + 27 - + 82 ) / + 30 ) ) AS INTEGER ) ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT DISTINCT + + 80 + + MAX( DISTINCT 35 ) - - 11
----
126

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT + + 80 + + MAX ( DISTINCT 35 ) - - 11
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6416
SELECT ALL - 16 + COALESCE ( 90, 5 DIV + 9, + - 47 + + - 25 - - COALESCE ( + + COUNT( * ), + 67 ) - - NULLIF ( NULLIF ( 37, + ( 93 ) ), 85 + - + 51 ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL - 16 + COALESCE ( 90, 5 / + 9, + - 47 + + - 25 - - COALESCE ( + + COUNT ( * ), + 67 ) - - NULLIF ( NULLIF ( 37, + ( 93 ) ), 85 + - + 51 ) ) AS col0
----
74

query I rowsort
SELECT 62 * + - NULLIF ( - ( 44 ), 18 )
----
2728

query I rowsort
SELECT ALL 22 + NULLIF ( - 17, 9 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT 88 * COUNT( * ) * - COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-6419
SELECT 88 * COUNT ( * ) * - COUNT ( * ) AS col1
----
-88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6420
SELECT DISTINCT - 99 + + 17 DIV CAST( 9 AS SIGNED ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT - 99 + + 17 / CAST ( 9 AS INTEGER ) AS col0
----
-98

query I rowsort
SELECT ALL 74 + ( + 62 ) AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT ( - 4 ) * COUNT( * ) + + + 67 + - 29 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6422
SELECT ( - 4 ) * COUNT ( * ) + + + 67 + - 29 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6423
SELECT ALL CAST( - - 17 AS SIGNED ) * 29, 81 * - + 12 AS col1
----
493
-972

skipif mysql # not compatible
query II rowsort label-6423
SELECT ALL CAST ( - - 17 AS INTEGER ) * 29, 81 * - + 12 AS col1
----
493
-972

onlyif mysql # aggregate syntax: 
query III rowsort label-6424
SELECT + MAX( DISTINCT 28 ), - 7 AS col2, + - 19 AS col1
----
28
-7
-19

skipif mysql # not compatible
query III rowsort label-6424
SELECT + MAX ( DISTINCT 28 ), - 7 AS col2, + - 19 AS col1
----
28
-7
-19

query I rowsort
SELECT ALL 15 * + + 33 AS col2
----
495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6426
SELECT 42 * CASE + CASE - 38 WHEN 17 * + + 99 THEN + ( - 13 ) ELSE + + 29 * - - MIN( DISTINCT + + 16 ) + - 74 END WHEN - ( - CAST( + ( 49 ) AS SIGNED ) ) + + - COUNT( * ) THEN - 2 ELSE - + 70 * + 64 + + 44 + 14 * 33 END
----
-166908

skipif mysql # not compatible
query I rowsort label-6426
SELECT 42 * CASE + CASE - 38 WHEN 17 * + + 99 THEN + ( - 13 ) ELSE + + 29 * - - MIN ( DISTINCT + + 16 ) + - 74 END WHEN - ( - CAST ( + ( 49 ) AS INTEGER ) ) + + - COUNT ( * ) THEN - 2 ELSE - + 70 * + 64 + + 44 + 14 * 33 END
----
-166908

onlyif mysql # aggregate syntax: 
query II rowsort label-6427
SELECT ALL COUNT( + - 47 ) AS col0, - 62
----
1
-62

skipif mysql # not compatible
query II rowsort label-6427
SELECT ALL COUNT ( + - 47 ) AS col0, - 62
----
1
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6428
SELECT CAST( NULL AS SIGNED ) + - - ( AVG ( - 28 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT CAST ( NULL AS INTEGER ) + - - ( AVG ( - 28 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6429
SELECT AVG ( + CAST( NULL AS SIGNED ) ) + + - 9 * - + 42 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6429
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) + + - 9 * - + 42 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6430
SELECT - CASE - - COUNT( * ) WHEN CAST( NULL AS SIGNED ) + + + COUNT( * ) + - + MAX( ALL - - ( - 78 ) ) * + + 73 * 58 - + + 31 THEN NULL WHEN + 46 THEN + + 48 ELSE + ( ( - ( + - ( - CASE + + 60 WHEN + COALESCE ( 84, + 58, + 93 ) + + CASE - 69 WHEN - COALESCE ( 84, + 88 - 75, 17 * - NULLIF ( + ( - 44 ) / - 31, + CASE 14 WHEN + 57 * + 55 THEN 56 / 58 + 77 * 50 END / ( + 5 ) ) ) / + 20 THEN NULL ELSE COUNT( * ) + + 0 * + 56 END * + COALESCE ( - 57 * 60, CASE + COUNT( * ) WHEN COUNT( * ) - MIN( ALL - ( - 18 ) ) * COUNT( * ) THEN 99 * 0 WHEN - NULLIF ( 0, + 60 ) + - 36 THEN NULL ELSE - ( - COUNT( * ) ) + 91 END ) THEN 85 WHEN - 68 * ( - 4 ) THEN + 91 * - 15 + MAX( 30 + ( + 4 ) ) ELSE 25 END ) ) ) ) END
----
25

skipif mysql # not compatible
query I rowsort label-6430
SELECT - CASE - - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + - + MAX ( ALL - - ( - 78 ) ) * + + 73 * 58 - + + 31 THEN NULL WHEN + 46 THEN + + 48 ELSE + ( ( - ( + - ( - CASE + + 60 WHEN + COALESCE ( 84, + 58, + 93 ) + + CASE - 69 WHEN - COALESCE ( 84, + 88 - 75, 17 * - NULLIF ( + ( - 44 ) / - 31, + CASE 14 WHEN + 57 * + 55 THEN 56 / 58 + 77 * 50 END / ( + 5 ) ) ) / + 20 THEN NULL ELSE COUNT ( * ) + + 0 * + 56 END * + COALESCE ( - 57 * 60, CASE + COUNT ( * ) WHEN COUNT ( * ) - MIN ( ALL - ( - 18 ) ) * COUNT ( * ) THEN 99 * 0 WHEN - NULLIF ( 0, + 60 ) + - 36 THEN NULL ELSE - ( - COUNT ( * ) ) + 91 END ) THEN 85 WHEN - 68 * ( - 4 ) THEN + 91 * - 15 + MAX ( 30 + ( + 4 ) ) ELSE 25 END ) ) ) ) END
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6431
SELECT ALL - + COUNT( ALL - 62 ) * - 37 DIV + 85 * NULLIF ( - 11, - CAST( NULL AS SIGNED ) ) * - 49 + 12
----
12

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL - + COUNT ( ALL - 62 ) * - 37 / + 85 * NULLIF ( - 11, - CAST ( NULL AS INTEGER ) ) * - 49 + 12
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + COUNT( * ) * + - 8 + ( + - 91 ) * + + 2
----
-190

skipif mysql # not compatible
query I rowsort label-6432
SELECT + COUNT ( * ) * + - 8 + ( + - 91 ) * + + 2
----
-190

query I rowsort
SELECT DISTINCT + 34 * - - NULLIF ( - 37, - 21 )
----
-1258

query I rowsort
SELECT + + ( 49 ) + - 63 * + 58 AS col1
----
-3605

query I rowsort
SELECT + 86 * 94 * - 13 AS col0
----
-105092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6436
SELECT - 55 + + + 92 AS col2, NULLIF ( + COUNT( * ), + 5 + - CAST( NULL AS DECIMAL ) + CAST( + COUNT( + 92 ) AS SIGNED ) )
----
37
1

skipif mysql # not compatible
query II rowsort label-6436
SELECT - 55 + + + 92 AS col2, NULLIF ( + COUNT ( * ), + 5 + - CAST ( NULL AS REAL ) + CAST ( + COUNT ( + 92 ) AS INTEGER ) )
----
37
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT + MAX( ALL - ( + 90 ) ) * - - 55 * + + 71 * COUNT( * ) - - + 14 AS col1
----
-351436

skipif mysql # not compatible
query I rowsort label-6437
SELECT + MAX ( ALL - ( + 90 ) ) * - - 55 * + + 71 * COUNT ( * ) - - + 14 AS col1
----
-351436

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6438
SELECT DISTINCT 73 + 97 AS col2, 49 DIV + CAST( + 14 AS SIGNED )
----
170
3

skipif mysql # not compatible
query II rowsort label-6438
SELECT DISTINCT 73 + 97 AS col2, 49 / + CAST ( + 14 AS INTEGER )
----
170
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6439
SELECT DISTINCT - 15 * - CAST( 98 AS SIGNED )
----
1470

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT - 15 * - CAST ( 98 AS INTEGER )
----
1470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6440
SELECT DISTINCT - - NULLIF ( + + NULLIF ( CAST( NULL AS SIGNED ), 34 ), CASE - + COUNT( * ) WHEN - 22 + 74 - 55 THEN - - 48 + - COUNT( * ) WHEN - 36 * - 89 + + 55 THEN + AVG ( ALL 75 ) ELSE + + 69 * 80 * + + 0 END ) + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT - - NULLIF ( + + NULLIF ( CAST ( NULL AS INTEGER ), 34 ), CASE - + COUNT ( * ) WHEN - 22 + 74 - 55 THEN - - 48 + - COUNT ( * ) WHEN - 36 * - 89 + + 55 THEN + AVG ( ALL 75 ) ELSE + + 69 * 80 * + + 0 END ) + 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT + MIN( + 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6441
SELECT + MIN ( + 46 ) AS col2
----
46

query I rowsort
SELECT DISTINCT 0 + + 32
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6443
SELECT + CAST( CASE + 33 WHEN 28 * - 17 THEN + 13 + 30 END AS SIGNED ) * - - COUNT( * ) - 84 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6443
SELECT + CAST ( CASE + 33 WHEN 28 * - 17 THEN + 13 + 30 END AS INTEGER ) * - - COUNT ( * ) - 84 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6444
SELECT + CAST( - + COALESCE ( 60, + 47 ) AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-6444
SELECT + CAST ( - + COALESCE ( 60, + 47 ) AS INTEGER )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT + COALESCE ( - - 49, + + 26, - 94, + + COUNT( * ) )
----
49

skipif mysql # not compatible
query I rowsort label-6445
SELECT + COALESCE ( - - 49, + + 26, - 94, + + COUNT ( * ) )
----
49

query I rowsort
SELECT - 40 * 7 AS col1
----
-280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6447
SELECT COALESCE ( 28, - ( + + COUNT( * ) ), CAST( NULL AS SIGNED ) * - 17 * - - 54 DIV - 90 + - CAST( - 1 AS SIGNED ) + - - COUNT( ALL + - 88 ) + - 56 + + 39 )
----
28

skipif mysql # not compatible
query I rowsort label-6447
SELECT COALESCE ( 28, - ( + + COUNT ( * ) ), CAST ( NULL AS INTEGER ) * - 17 * - - 54 / - 90 + - CAST ( - 1 AS INTEGER ) + - - COUNT ( ALL + - 88 ) + - 56 + + 39 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT NULLIF ( - COALESCE ( + + 77, + 61 * - 55, + SUM( - 83 ) * + 62 ), 16 * - - 89 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-6448
SELECT NULLIF ( - COALESCE ( + + 77, + 61 * - 55, + SUM ( - 83 ) * + 62 ), 16 * - - 89 ) AS col1
----
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-6449
SELECT ALL + 26 AS col1, - 21 DIV + 80 * + - 52 AS col0
----
26
0

skipif mysql # not compatible
query II rowsort label-6449
SELECT ALL + 26 AS col1, - 21 / + 80 * + - 52 AS col0
----
26
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6450
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS DECIMAL ) + + 18 + + 81 + + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS REAL ) + + 18 + + 81 + + 5 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6451
SELECT ALL - 12 DIV + ( CAST( - ( - + ( - 78 ) ) AS SIGNED ) ) AS col1, + CASE + 82 WHEN 22 * + ( NULLIF ( + ( - 53 ), + - 15 + + + 14 ) ) * - - 90 THEN + 80 * + 2 + - COUNT( * ) + - 97 DIV + 96 + 94 END DIV CAST( + ( 51 ) AS SIGNED ) DIV + CASE 47 * SUM( DISTINCT + CAST( NULL AS SIGNED ) * 71 ) WHEN + CAST( 45 AS SIGNED ) * + COUNT( 2 * 40 ) THEN + 60 END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6451
SELECT ALL - 12 / + ( CAST ( - ( - + ( - 78 ) ) AS INTEGER ) ) AS col1, + CASE + 82 WHEN 22 * + ( NULLIF ( + ( - 53 ), + - 15 + + + 14 ) ) * - - 90 THEN + 80 * + 2 + - COUNT ( * ) + - 97 / + 96 + 94 END / CAST ( + ( 51 ) AS INTEGER ) / + CASE 47 * SUM ( DISTINCT + CAST ( NULL AS INTEGER ) * 71 ) WHEN + CAST ( 45 AS INTEGER ) * + COUNT ( 2 * 40 ) THEN + 60 END
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6452
SELECT ALL + CAST( + 81 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL + CAST ( + 81 AS INTEGER )
----
81

query I rowsort
SELECT ALL - 94 * - 63 AS col2
----
5922

query I rowsort
SELECT DISTINCT + ( NULLIF ( + + 56, 98 + + 94 / 36 * + 57 ) ) AS col2
----
56

query I rowsort
SELECT - 74 * + 26
----
-1924

query I rowsort
SELECT DISTINCT - CASE + 76 WHEN 17 THEN NULL ELSE - 30 END * - 98
----
-2940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6457
SELECT ALL + CAST( - 50 AS SIGNED ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL + CAST ( - 50 AS INTEGER ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT COALESCE ( + COUNT( * ), 76 )
----
1

skipif mysql # not compatible
query I rowsort label-6458
SELECT COALESCE ( + COUNT ( * ), 76 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6459
SELECT + 27 - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT + 27 - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT - 38 * - MAX( + - 51 ) * + 49 * ( - + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-6460
SELECT - 38 * - MAX ( + - 51 ) * + 49 * ( - + 0 )
----
0

query I rowsort
SELECT - 97 + + 46
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT 23 * COALESCE ( - - 92, COUNT( * ) ) - 59 + + 37 * - COALESCE ( ( - + 74 ), 39 + - ( - - 59 ) + + 69, - - 5 )
----
4795

skipif mysql # not compatible
query I rowsort label-6462
SELECT 23 * COALESCE ( - - 92, COUNT ( * ) ) - 59 + + 37 * - COALESCE ( ( - + 74 ), 39 + - ( - - 59 ) + + 69, - - 5 )
----
4795

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT ALL + ( - 61 ) DIV NULLIF ( + - 82, - 32 * + ( - 34 ) + - + COALESCE ( 16, - 89, + 62 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL + ( - 61 ) / NULLIF ( + - 82, - 32 * + ( - 34 ) + - + COALESCE ( 16, - 89, + 62 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT + 67 + - + COUNT( * ) - 39 + - 96 + + 20 * COUNT( ALL - - ( - 69 ) ) - - + ( 79 ) * - 96 * - MIN( - 51 ) + + 20 * - COUNT( * )
----
-386853

skipif mysql # not compatible
query I rowsort label-6464
SELECT + 67 + - + COUNT ( * ) - 39 + - 96 + + 20 * COUNT ( ALL - - ( - 69 ) ) - - + ( 79 ) * - 96 * - MIN ( - 51 ) + + 20 * - COUNT ( * )
----
-386853

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6465
SELECT DISTINCT 94 AS col1, + 70 DIV ( + CAST( 90 AS SIGNED ) )
----
94
0

skipif mysql # not compatible
query II rowsort label-6465
SELECT DISTINCT 94 AS col1, + 70 / ( + CAST ( 90 AS INTEGER ) )
----
94
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6466
SELECT DISTINCT + 0 col1, CAST( NULL AS DECIMAL ) / - 11 - 52
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6466
SELECT DISTINCT + 0 col1, CAST ( NULL AS REAL ) / - 11 - 52
----
0
NULL

query I rowsort
SELECT DISTINCT - ( + 70 )
----
-70

query I rowsort
SELECT - 56 + + 24 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT ALL MAX( - 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL MAX ( - 99 ) AS col2
----
-99

query I rowsort
SELECT + 44 + - 71 * - 92 AS col2
----
6576

query I rowsort
SELECT - NULLIF ( ( - 81 ), - - 86 )
----
81

query I rowsort
SELECT DISTINCT - - 1 * - 30
----
-30

query I rowsort
SELECT ALL + ( - COALESCE ( - + 28, + + 99 ) ) AS col1
----
28

query I rowsort
SELECT + 6 + + + 53 AS col0
----
59

query II rowsort
SELECT ALL ( - 94 ) + + - 24 AS col2, + 16
----
-118
16

query II rowsort
SELECT - 7 AS col1, + COALESCE ( 31, - - 16 )
----
-7
31

query I rowsort
SELECT ALL 3 + + 77
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT + 72 + + CASE WHEN 10 IS NOT NULL THEN + - 63 - MIN( + - 95 ) WHEN + 99 - + 50 BETWEEN + 85 * + + COUNT( ALL + 15 ) + - + 86 + + MAX( ALL - 51 ) + 60 - + + COUNT( * ) * + 22 * + COUNT( * ) AND ( + 21 ) THEN MIN( DISTINCT 80 ) END
----
104

skipif mysql # not compatible
query I rowsort label-6478
SELECT + 72 + + CASE WHEN 10 IS NOT NULL THEN + - 63 - MIN ( + - 95 ) WHEN + 99 - + 50 BETWEEN + 85 * + + COUNT ( ALL + 15 ) + - + 86 + + MAX ( ALL - 51 ) + 60 - + + COUNT ( * ) * + 22 * + COUNT ( * ) AND ( + 21 ) THEN MIN ( DISTINCT 80 ) END
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6479
SELECT - + COUNT( * ) - NULLIF ( + CASE + CAST( NULL AS SIGNED ) WHEN ( - + 42 ) + + - 67 + - - AVG ( - 41 ) * 23 * + 92 + - SUM( + 12 ) THEN NULL WHEN - ( + 14 ) * + COUNT( * ) + 64 + ( + 35 ) * + COUNT( + + CAST( NULL AS SIGNED ) ) + CASE MAX( + 61 ) WHEN 4 THEN COUNT( * ) + 78 * - 26 WHEN - 82 + - 13 * - 13 THEN - 33 END * + COUNT( * ) THEN NULL ELSE 10 * 49 + - COUNT( * ) * 49 END, + 92 * + COALESCE ( - 7, 56 ) - CAST( 23 AS DECIMAL ) )
----
-442

skipif mysql # not compatible
query I rowsort label-6479
SELECT - + COUNT ( * ) - NULLIF ( + CASE + CAST ( NULL AS INTEGER ) WHEN ( - + 42 ) + + - 67 + - - AVG ( - 41 ) * 23 * + 92 + - SUM ( + 12 ) THEN NULL WHEN - ( + 14 ) * + COUNT ( * ) + 64 + ( + 35 ) * + COUNT ( + + CAST ( NULL AS INTEGER ) ) + CASE MAX ( + 61 ) WHEN 4 THEN COUNT ( * ) + 78 * - 26 WHEN - 82 + - 13 * - 13 THEN - 33 END * + COUNT ( * ) THEN NULL ELSE 10 * 49 + - COUNT ( * ) * 49 END, + 92 * + COALESCE ( - 7, 56 ) - CAST ( 23 AS REAL ) )
----
-442

query I rowsort
SELECT DISTINCT - 28 * + 91
----
-2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6481
SELECT + - CAST( ( + + 34 ) AS SIGNED ) + + 24 DIV - + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-6481
SELECT + - CAST ( ( + + 34 ) AS INTEGER ) + + 24 / - + COUNT ( * )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT - 17 + + - CAST( + 35 AS SIGNED ) * 72 AS col1
----
-2537

skipif mysql # not compatible
query I rowsort label-6482
SELECT - 17 + + - CAST ( + 35 AS INTEGER ) * 72 AS col1
----
-2537

query I rowsort
SELECT DISTINCT 40 * 18 * + 61 AS col1
----
43920

onlyif mysql # DIV for integer division: 
query III rowsort label-6484
SELECT ALL + NULLIF ( + 67, + 42 * + - 19 ) DIV + 52 - + 3 + - - 36 DIV 13 * + - 55 + - 91 AS col2, - 84 + + - 6 AS col0, + 83
----
-203
-90
83

skipif mysql # not compatible
query III rowsort label-6484
SELECT ALL + NULLIF ( + 67, + 42 * + - 19 ) / + 52 - + 3 + - - 36 / 13 * + - 55 + - 91 AS col2, - 84 + + - 6 AS col0, + 83
----
-203
-90
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ALL 69 * COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL 69 * COUNT ( * ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6486
SELECT - NULLIF ( 31, + + CAST( NULL AS SIGNED ) + 84 ) * + + 58 * 73 + + COUNT( * ) + - 29 DIV + 91 * - 46 - + + 78 AS col2
----
-131331

skipif mysql # not compatible
query I rowsort label-6486
SELECT - NULLIF ( 31, + + CAST ( NULL AS INTEGER ) + 84 ) * + + 58 * 73 + + COUNT ( * ) + - 29 / + 91 * - 46 - + + 78 AS col2
----
-131331

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6487
SELECT ALL + 26 / - - CAST( NULL AS DECIMAL ) - + + CAST( 66 AS DECIMAL ) AS col1, - ( 3 )
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-6487
SELECT ALL + 26 / - - CAST ( NULL AS REAL ) - + + CAST ( 66 AS REAL ) AS col1, - ( 3 )
----
NULL
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT 26 DIV - 99 + - + 61 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6488
SELECT 26 / - 99 + - + 61 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT ALL + COUNT( ALL - 64 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL + COUNT ( ALL - 64 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6490
SELECT DISTINCT + ( CAST( + + COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT + ( CAST ( + + COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT - 15 * + 50
----
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT + 45 * ( - COUNT( * ) ) * + - 71
----
3195

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT + 45 * ( - COUNT ( * ) ) * + - 71
----
3195

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT ( - MIN( 88 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-6493
SELECT ( - MIN ( 88 ) )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6494
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT - 92 * - - 4 * - + 93 * + 25 + + + COUNT( * )
----
855601

skipif mysql # not compatible
query I rowsort label-6495
SELECT - 92 * - - 4 * - + 93 * + 25 + + + COUNT ( * )
----
855601

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT - COUNT( * ) - - 15 * + + 87
----
1304

skipif mysql # not compatible
query I rowsort label-6496
SELECT - COUNT ( * ) - - 15 * + + 87
----
1304

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL - SUM( DISTINCT 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL - SUM ( DISTINCT 13 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6498
SELECT COUNT( * ) - - CAST( NULL AS SIGNED ) * - 55 * ( + + COALESCE ( - 39, - 48, 6, + 80 ) ) * + AVG ( DISTINCT 92 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6498
SELECT COUNT ( * ) - - CAST ( NULL AS INTEGER ) * - 55 * ( + + COALESCE ( - 39, - 48, 6, + 80 ) ) * + AVG ( DISTINCT 92 ) AS col1
----
NULL

query II rowsort
SELECT - COALESCE ( - ( 12 ), + - ( 63 ) + - 50, + + 39 ) AS col2, 17 + 24 AS col1
----
12
41

query I rowsort
SELECT 51 * + - 95 AS col0
----
-4845

query I rowsort
SELECT ALL + 84 + 30 * + 21
----
714

query I rowsort
SELECT ALL - 26 + 22 col2
----
-4

query I rowsort
SELECT ALL - ( - + ( 38 ) ) + 29 AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6504
SELECT + CASE 71 WHEN - 25 * - CAST( + 14 AS SIGNED ) THEN 94 + + 52 + - CAST( NULL AS SIGNED ) * - 59 * - 9 WHEN 61 THEN COUNT( * ) ELSE 16 END * + MAX( - 71 ) AS col2, ( - MAX( DISTINCT - - 4 ) ) * + + 74 - + - 28
----
-1136
-268

skipif mysql # not compatible
query II rowsort label-6504
SELECT + CASE 71 WHEN - 25 * - CAST ( + 14 AS INTEGER ) THEN 94 + + 52 + - CAST ( NULL AS INTEGER ) * - 59 * - 9 WHEN 61 THEN COUNT ( * ) ELSE 16 END * + MAX ( - 71 ) AS col2, ( - MAX ( DISTINCT - - 4 ) ) * + + 74 - + - 28
----
-1136
-268

query I rowsort
SELECT DISTINCT + 72 * - 20
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT COUNT( * ) * - 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6506
SELECT COUNT ( * ) * - 67 AS col1
----
-67

query I rowsort
SELECT ALL + 94 * 42 AS col2
----
3948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6508
SELECT DISTINCT ( - - COUNT( * ) ) DIV - 12
----
0

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT ( - - COUNT ( * ) ) / - 12
----
0

query II rowsort
SELECT DISTINCT 78 AS col0, 56 + + 88
----
78
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT MAX( 47 ) * + 21 + COUNT( * ) + - - COUNT( * ) + 77 + + + 2 + + SUM( - ( + 88 ) ) * COUNT( * ) * + 82 * + + 44
----
-316436

skipif mysql # not compatible
query I rowsort label-6510
SELECT MAX ( 47 ) * + 21 + COUNT ( * ) + - - COUNT ( * ) + 77 + + + 2 + + SUM ( - ( + 88 ) ) * COUNT ( * ) * + 82 * + + 44
----
-316436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6511
SELECT + 66 * - 47 - + COALESCE ( COUNT( * ), 45 ) DIV + ( - 97 )
----
-3102

skipif mysql # not compatible
query I rowsort label-6511
SELECT + 66 * - 47 - + COALESCE ( COUNT ( * ), 45 ) / + ( - 97 )
----
-3102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6512
SELECT CAST( NULL AS SIGNED ) / + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6512
SELECT CAST ( NULL AS INTEGER ) / + 79
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6513
SELECT 59 DIV + 34 + - + 95 * - - 46
----
-4369

skipif mysql # not compatible
query I rowsort label-6513
SELECT 59 / + 34 + - + 95 * - - 46
----
-4369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT ALL CAST( + ( 0 ) AS SIGNED ) * + 21
----
0

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL CAST ( + ( 0 ) AS INTEGER ) * + 21
----
0

query I rowsort
SELECT ( 52 ) * + 41
----
2132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6516
SELECT ALL CAST( NULL AS SIGNED ) * - + MIN( + 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL CAST ( NULL AS INTEGER ) * - + MIN ( + 46 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6517
SELECT DISTINCT COALESCE ( + 49, - + 89 ) DIV - NULLIF ( 44, + 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT COALESCE ( + 49, - + 89 ) / - NULLIF ( 44, + 47 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6518
SELECT COUNT( * ) * COALESCE ( - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) * ( 86 ) ) - - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6518
SELECT COUNT ( * ) * COALESCE ( - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) * ( 86 ) ) - - - 28
----
NULL

query I rowsort
SELECT ALL 56 * + 1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT DISTINCT COUNT( * ) * + 3
----
3

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT COUNT ( * ) * + 3
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6521
SELECT ALL - 87 DIV - COALESCE ( 7, NULLIF ( 72, - 21 * - 77 ) + - + 48 DIV 11 DIV - 15 + - 37 )
----
12

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - 87 / - COALESCE ( 7, NULLIF ( 72, - 21 * - 77 ) + - + 48 / 11 / - 15 + - 37 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT ALL + 32 + + MAX( - 72 ) + + + 10 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL + 32 + + MAX ( - 72 ) + + + 10 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT 60 * - - COUNT( + 35 ) * + 4 + 84 - + - ( - 90 ) * 32
----
-2556

skipif mysql # not compatible
query I rowsort label-6523
SELECT 60 * - - COUNT ( + 35 ) * + 4 + 84 - + - ( - 90 ) * 32
----
-2556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6524
SELECT ALL - 21 + - 96 * + CAST( - 52 AS SIGNED )
----
4971

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL - 21 + - 96 * + CAST ( - 52 AS INTEGER )
----
4971

query I rowsort
SELECT - - 19 * + + 29 + + 37 - - + 5 - - 30 - - + 13
----
636

onlyif mysql # aggregate syntax: 
query II rowsort label-6526
SELECT + 59 * + + 24 - COUNT( * ) AS col1, - 72
----
1415
-72

skipif mysql # not compatible
query II rowsort label-6526
SELECT + 59 * + + 24 - COUNT ( * ) AS col1, - 72
----
1415
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT DISTINCT - + SUM( ALL - ( - 3 ) ) + - 71 - 4 + + COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT - + SUM ( ALL - ( - 3 ) ) + - 71 - 4 + + COUNT ( * ) AS col2
----
-77

query I rowsort
SELECT 35 * + - ( - - 73 ) - + - 64 AS col0
----
-2491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6529
SELECT ALL - 30 + ( 30 ) * - + COUNT( * ) - + CAST( + 86 AS SIGNED ) * + CAST( - + 16 AS SIGNED ), CAST( NULL AS SIGNED ) AS col1
----
1316
NULL

skipif mysql # not compatible
query II rowsort label-6529
SELECT ALL - 30 + ( 30 ) * - + COUNT ( * ) - + CAST ( + 86 AS INTEGER ) * + CAST ( - + 16 AS INTEGER ), CAST ( NULL AS INTEGER ) AS col1
----
1316
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6530
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - - 40 AS col1, ( + 62 )
----
40
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT DISTINCT - COUNT( * ) + + - ( - 56 )
----
55

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT - COUNT ( * ) + + - ( - 56 )
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-6533
SELECT ALL + - ( - 6 ) + + 82 DIV 49 + + 1 + - ( - + 79 ) + 45 + - 45 * - + 19, + 40 AS col1
----
987
40

skipif mysql # not compatible
query II rowsort label-6533
SELECT ALL + - ( - 6 ) + + 82 / 49 + + 1 + - ( - + 79 ) + 45 + - 45 * - + 19, + 40 AS col1
----
987
40

query I rowsort
SELECT + 32 * + 92
----
2944

query I rowsort
SELECT - ( 55 ) + - 4 AS col0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-6536
SELECT 83 DIV - - 57
----
1

skipif mysql # not compatible
query I rowsort label-6536
SELECT 83 / - - 57
----
1

query I rowsort
SELECT + 29 * - 75
----
-2175

query I rowsort
SELECT ALL - - 59 - - + 89 AS col0
----
148

query I rowsort
SELECT + 91 - 63
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6540
SELECT - 95 DIV - 77 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6540
SELECT - 95 / - 77 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL MIN( DISTINCT + 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL MIN ( DISTINCT + 53 ) AS col1
----
53

query I rowsort
SELECT 32 - - 70 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT ALL + 63 * - - COUNT( * ) col0
----
63

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL + 63 * - - COUNT ( * ) col0
----
63

query I rowsort
SELECT 6 + - 30 + 33 AS col0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6545
SELECT - COUNT( * ), CASE + - 73 WHEN - 99 * + COUNT( * ) * 31 * + 22 - + 7 THEN + 89 * + - 46 + + 94 END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6545
SELECT - COUNT ( * ), CASE + - 73 WHEN - 99 * + COUNT ( * ) * 31 * + 22 - + 7 THEN + 89 * + - 46 + + 94 END AS col1
----
-1
NULL

query I rowsort
SELECT 51 + 72
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-6547
SELECT DISTINCT COUNT( * ) AS col1, COALESCE ( - + 97, 86 ) + + 31 + COALESCE ( + - COUNT( * ), 70 )
----
1
-67

skipif mysql # not compatible
query II rowsort label-6547
SELECT DISTINCT COUNT ( * ) AS col1, COALESCE ( - + 97, 86 ) + + 31 + COALESCE ( + - COUNT ( * ), 70 )
----
1
-67

query I rowsort
SELECT ALL + 61 * + - 52 + - 23 + - + 9 * + 27
----
-3438

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6549
SELECT - CAST( NULL AS DECIMAL ) DIV 62 + + - 24 + + 81 AS col2, COUNT( * ) DIV - - 97 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6549
SELECT - CAST ( NULL AS REAL ) / 62 + + - 24 + + 81 AS col2, COUNT ( * ) / - - 97 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6550
SELECT ALL - MIN( - 14 ) AS col1, - COUNT( * ) * 22 + - 2 + 26 + - 57 + + COALESCE ( - 18, - 16 DIV - 92 ) + 44 + 4 + 50 + + 90 * - 33 * - ( - - 29 ) + + 53 * 35 * + 35 * - - 94 * + 82
----
14
500528055

skipif mysql # not compatible
query II rowsort label-6550
SELECT ALL - MIN ( - 14 ) AS col1, - COUNT ( * ) * 22 + - 2 + 26 + - 57 + + COALESCE ( - 18, - 16 / - 92 ) + 44 + 4 + 50 + + 90 * - 33 * - ( - - 29 ) + + 53 * 35 * + 35 * - - 94 * + 82
----
14
500528055

query I rowsort
SELECT 64 * + - 14 + 15 AS col1
----
-881

query I rowsort
SELECT ALL + 95 * + 72 + - - 35 AS col1
----
6875

onlyif mysql # aggregate syntax: 
query II rowsort label-6553
SELECT COUNT( * ) AS col0, - 91 * + - 72
----
1
6552

skipif mysql # not compatible
query II rowsort label-6553
SELECT COUNT ( * ) AS col0, - 91 * + - 72
----
1
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT + SUM( CASE + 42 WHEN - 22 * + + 13 - - 42 * + 7 THEN NULL ELSE + + 70 END )
----
70

skipif mysql # not compatible
query I rowsort label-6554
SELECT + SUM ( CASE + 42 WHEN - 22 * + + 13 - - 42 * + 7 THEN NULL ELSE + + 70 END )
----
70

query I rowsort
SELECT ALL 85 * - NULLIF ( 38, 39 + 62 ) + - 7
----
-3237

query I rowsort
SELECT + 8 * + ( 23 ) AS col1
----
184

query I rowsort
SELECT + 14 + 17
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6558
SELECT + 27 * - - 87 * - CAST( NULL AS SIGNED ) + 71 + - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT + 27 * - - 87 * - CAST ( NULL AS INTEGER ) + 71 + - - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT + SUM( + ( + - 68 ) ) + - + 14
----
-82

skipif mysql # not compatible
query I rowsort label-6559
SELECT + SUM ( + ( + - 68 ) ) + - + 14
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT ALL + COUNT( - - 2 ) * 5 + - 31 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL + COUNT ( - - 2 ) * 5 + - 31 AS col2
----
-26

query I rowsort
SELECT ALL - 98 * - 29
----
2842

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6562
SELECT + - COALESCE ( - CASE 61 WHEN ( + 94 ) * + 51 THEN NULL WHEN COALESCE ( - 21, 15 DIV + 20 + - COUNT( * ) + + + 94 * - - 98 ) THEN NULL WHEN ( 83 ) + ( 7 ) DIV + 87 THEN 36 + 16 ELSE NULL END, - MIN( ALL - 56 ) ) DIV + ( 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-6562
SELECT + - COALESCE ( - CASE 61 WHEN ( + 94 ) * + 51 THEN NULL WHEN COALESCE ( - 21, 15 / + 20 + - COUNT ( * ) + + + 94 * - - 98 ) THEN NULL WHEN ( 83 ) + ( 7 ) / + 87 THEN 36 + 16 ELSE NULL END, - MIN ( ALL - 56 ) ) / + ( 29 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6563
SELECT DISTINCT + 32 col2, + COUNT( * ) col2
----
32
1

skipif mysql # not compatible
query II rowsort label-6563
SELECT DISTINCT + 32 col2, + COUNT ( * ) col2
----
32
1

query I rowsort
SELECT + - 43 - 96
----
-139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6565
SELECT ALL + - MAX( + CAST( + 54 AS SIGNED ) )
----
-54

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL + - MAX ( + CAST ( + 54 AS INTEGER ) )
----
-54

query I rowsort
SELECT DISTINCT + COALESCE ( + 73, - 41 ) AS col1
----
73

query I rowsort
SELECT + + 69 - + 24
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6568
SELECT 9 AS col1, + 30 DIV - + 90 * + COUNT( * ) AS col2
----
9
0

skipif mysql # not compatible
query II rowsort label-6568
SELECT 9 AS col1, + 30 / - + 90 * + COUNT ( * ) AS col2
----
9
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6569
SELECT DISTINCT 20 AS col0, 80 DIV + 66 AS col1
----
20
1

skipif mysql # not compatible
query II rowsort label-6569
SELECT DISTINCT 20 AS col0, 80 / + 66 AS col1
----
20
1

query I rowsort
SELECT + 66 * - + 68
----
-4488

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT ALL + MAX( ALL - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL + MAX ( ALL - 10 ) AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6572
SELECT - + CASE - 68 WHEN + + 57 / - 32 + - CAST( NULL AS DECIMAL ) + + COALESCE ( 20, + 24 ) * SUM( ALL - 19 ) * + 55 THEN + 41 + + - 23 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6572
SELECT - + CASE - 68 WHEN + + 57 / - 32 + - CAST ( NULL AS REAL ) + + COALESCE ( 20, + 24 ) * SUM ( ALL - 19 ) * + 55 THEN + 41 + + - 23 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - - 86 + - + 6 + + 93
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT - - 28 - 4 + + + COUNT( * ) + - 51 - + ( - 93 ) col2
----
67

skipif mysql # not compatible
query I rowsort label-6574
SELECT - - 28 - 4 + + + COUNT ( * ) + - 51 - + ( - 93 ) col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6575
SELECT - + 11 * - 86 + - CASE 47 WHEN + - 99 THEN + CAST( + COUNT( * ) AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT - + 11 * - 86 + - CASE 47 WHEN + - 99 THEN + CAST ( + COUNT ( * ) AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6576
SELECT - CASE 32 WHEN - AVG ( 30 ) THEN - 48 + 79 + - CAST( + + MIN( + + 97 ) AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT - CASE 32 WHEN - AVG ( 30 ) THEN - 48 + 79 + - CAST ( + + MIN ( + + 97 ) AS INTEGER ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - ( + + 19 ), 63 AS col1
----
-19
63

query I rowsort
SELECT ALL COALESCE ( + - 28, - 16 * + 91, + + 78 ) AS col2
----
-28

query I rowsort
SELECT + 22 * - + 94 * - 70
----
144760

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6580
SELECT - 28 + + 5 col1, + 40 DIV + - 65 * + COUNT( * )
----
-23
0

skipif mysql # not compatible
query II rowsort label-6580
SELECT - 28 + + 5 col1, + 40 / + - 65 * + COUNT ( * )
----
-23
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6581
SELECT - COUNT( * ) + + 44 + - 78 + + 7 * + + 34 AS col1, - CAST( - CASE 2 WHEN 56 + + + 95 THEN + 1 + + 62 WHEN + 21 THEN - NULLIF ( COUNT( ALL - CASE 11 WHEN - 6 THEN NULL ELSE + 29 + 12 END ), - 40 ) + COALESCE ( 89, + ( + 7 ) + - 47 ) / 42 + COUNT( * ) * COUNT( * ) ELSE NULL END AS SIGNED ) * - 56
----
203
NULL

skipif mysql # not compatible
query II rowsort label-6581
SELECT - COUNT ( * ) + + 44 + - 78 + + 7 * + + 34 AS col1, - CAST ( - CASE 2 WHEN 56 + + + 95 THEN + 1 + + 62 WHEN + 21 THEN - NULLIF ( COUNT ( ALL - CASE 11 WHEN - 6 THEN NULL ELSE + 29 + 12 END ), - 40 ) + COALESCE ( 89, + ( + 7 ) + - 47 ) / 42 + COUNT ( * ) * COUNT ( * ) ELSE NULL END AS INTEGER ) * - 56
----
203
NULL

query I rowsort
SELECT DISTINCT + 77 + + - ( - 66 ) AS col2
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-6583
SELECT DISTINCT - 86 DIV 25
----
-3

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT - 86 / 25
----
-3

query I rowsort
SELECT ALL + 32 + 94 * 8 * - 41
----
-30800

onlyif mysql # aggregate syntax: 
query II rowsort label-6585
SELECT DISTINCT - 77 + - + 81 + - 7 * + - ( + 43 ) * + + 27 * - 56, COUNT( * ) * + - 23 AS col0
----
-455270
-23

skipif mysql # not compatible
query II rowsort label-6585
SELECT DISTINCT - 77 + - + 81 + - 7 * + - ( + 43 ) * + + 27 * - 56, COUNT ( * ) * + - 23 AS col0
----
-455270
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6586
SELECT ALL - 5 / - + 29 * + CAST( 31 AS SIGNED ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL - 5 / - + 29 * + CAST ( 31 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6587
SELECT - 44 DIV COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6587
SELECT - 44 / COUNT ( * ) AS col2
----
-44

query I rowsort
SELECT - 56 - - 18 AS col0
----
-38

query I rowsort
SELECT DISTINCT ( - + 19 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT 96 * SUM( DISTINCT + 40 ) * + ( - ( - + COUNT( * ) ) ) - - 37 + - 2
----
3875

skipif mysql # not compatible
query I rowsort label-6590
SELECT 96 * SUM ( DISTINCT + 40 ) * + ( - ( - + COUNT ( * ) ) ) - - 37 + - 2
----
3875

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT + SUM( ALL 96 )
----
96

skipif mysql # not compatible
query I rowsort label-6591
SELECT + SUM ( ALL 96 )
----
96

query I rowsort
SELECT ALL + NULLIF ( + 14, 77 * 20 ) AS col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6593
SELECT - 25 DIV - COUNT( * ) + 25 + + 41 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6593
SELECT - 25 / - COUNT ( * ) + 25 + + 41 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL + NULLIF ( + ( SUM( 41 ) ), - 44 ) col2
----
41

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL + NULLIF ( + ( SUM ( 41 ) ), - 44 ) col2
----
41

query I rowsort
SELECT + 90 * + 11 col0
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6596
SELECT ( - SUM( + - CAST( - - 40 AS SIGNED ) ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6596
SELECT ( - SUM ( + - CAST ( - - 40 AS INTEGER ) ) ) AS col0
----
40

query I rowsort
SELECT DISTINCT + + ( - - 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT DISTINCT 55 * - 53 - COUNT( * ) AS col2
----
-2916

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT 55 * - 53 - COUNT ( * ) AS col2
----
-2916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6599
SELECT DISTINCT + COUNT( * ) * - 22 - CASE ( COUNT( * ) ) WHEN 19 THEN - 45 ELSE NULL END - 77 * - 17 / 26 / - NULLIF ( - AVG ( DISTINCT - 47 ), CAST( NULL AS SIGNED ) * 2 * - COUNT( * ) + - + 77 * - 72 ) * + 72 + 95 + + + 82 + 68 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT + COUNT ( * ) * - 22 - CASE ( COUNT ( * ) ) WHEN 19 THEN - 45 ELSE NULL END - 77 * - 17 / 26 / - NULLIF ( - AVG ( DISTINCT - 47 ), CAST ( NULL AS INTEGER ) * 2 * - COUNT ( * ) + - + 77 * - 72 ) * + 72 + 95 + + + 82 + 68 + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + CASE 6 WHEN - - 30 THEN - 78 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 84 * - + 9 * - + 4 * + 19 AS col2
----
57456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6602
SELECT - + 24 * + 16 - - CAST( - 33 AS SIGNED ) * - + 78 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT - + 24 * + 16 - - CAST ( - 33 AS INTEGER ) * - + 78 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT + MIN( + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-6603
SELECT + MIN ( + 77 )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT + - NULLIF ( + - 68, + - 28 ) DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-6604
SELECT + - NULLIF ( + - 68, + - 28 ) / 37
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6605
SELECT ALL - 1 DIV - ( 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL - 1 / - ( 94 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT ALL - CAST( + + 85 AS SIGNED ) * - 79 AS col2
----
6715

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL - CAST ( + + 85 AS INTEGER ) * - 79 AS col2
----
6715

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT ALL + ( - MAX( DISTINCT + 17 ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL + ( - MAX ( DISTINCT + 17 ) ) AS col2
----
-17

query I rowsort
SELECT - + 88 * - 49 + 14 AS col0
----
4326

query I rowsort
SELECT ALL - 51 * 39
----
-1989

query I rowsort
SELECT DISTINCT - 93 * + 48 * 1 + - - 21 AS col2
----
-4443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6611
SELECT DISTINCT - CASE COUNT( * ) WHEN 19 / + 54 * + 97 THEN CAST( ( ( - 6 ) ) AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6611
SELECT DISTINCT - CASE COUNT ( * ) WHEN 19 / + 54 * + 97 THEN CAST ( ( ( - 6 ) ) AS INTEGER ) END AS col2
----
NULL

query II rowsort
SELECT + 39 + + + 40 AS col1, 52 AS col0
----
79
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT SUM( 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6613
SELECT SUM ( 36 ) AS col1
----
36

query I rowsort
SELECT + 22 + + 23 * - - 9 AS col0
----
229

onlyif mysql # aggregate syntax: 
query II rowsort label-6615
SELECT COUNT( * ) AS col0, 19
----
1
19

skipif mysql # not compatible
query II rowsort label-6615
SELECT COUNT ( * ) AS col0, 19
----
1
19

onlyif mysql # aggregate syntax: 
query II rowsort label-6616
SELECT DISTINCT SUM( + ( - 54 ) ), 89 * 24 * + 5 * - + 20 AS col2
----
-54
-213600

skipif mysql # not compatible
query II rowsort label-6616
SELECT DISTINCT SUM ( + ( - 54 ) ), 89 * 24 * + 5 * - + 20 AS col2
----
-54
-213600

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6617
SELECT + 99 + + CASE + 42 WHEN + + NULLIF ( + + 30, - 46 * - COUNT( * ) ) * - ( - 26 ) * + 62 + - + 32 * + 9 THEN NULL WHEN - - 53 * + 8 * - MIN( ALL + 55 ) THEN - 68 / + 79 + AVG ( - 8 ) ELSE CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6617
SELECT + 99 + + CASE + 42 WHEN + + NULLIF ( + + 30, - 46 * - COUNT ( * ) ) * - ( - 26 ) * + 62 + - + 32 * + 9 THEN NULL WHEN - - 53 * + 8 * - MIN ( ALL + 55 ) THEN - 68 / + 79 + AVG ( - 8 ) ELSE CAST ( NULL AS REAL ) END
----
NULL

query II rowsort
SELECT - 4 * + - 93 * 98 AS col1, + 71
----
36456
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6619
SELECT 83 AS col1, 42 * + 97 DIV + COUNT( * ) AS col2
----
83
4074

skipif mysql # not compatible
query II rowsort label-6619
SELECT 83 AS col1, 42 * + 97 / + COUNT ( * ) AS col2
----
83
4074

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6620
SELECT ALL + CAST( 79 AS SIGNED ) + - 89 AS col1, - ( 20 )
----
-10
-20

skipif mysql # not compatible
query II rowsort label-6620
SELECT ALL + CAST ( 79 AS INTEGER ) + - 89 AS col1, - ( 20 )
----
-10
-20

query I rowsort
SELECT + 92 + - + 90
----
2

query I rowsort
SELECT ALL - 0 + 51 * - - 30 AS col0
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT ALL 74 + - MAX( 1 )
----
73

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL 74 + - MAX ( 1 )
----
73

query I rowsort
SELECT DISTINCT - 91 * 7
----
-637

query I rowsort
SELECT ( 21 ) + + - ( + 65 ) * + 18
----
-1149

query II rowsort
SELECT DISTINCT 92 AS col1, - 35 AS col1
----
92
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT ALL COUNT( * ) + - + 63 - - 28 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL COUNT ( * ) + - + 63 - - 28 AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6628
SELECT COUNT( * ) + 73 + + 61 AS col1, + 68 * + COUNT( * ) * + CASE + - 61 WHEN - 86 + - COUNT( * ) + + SUM( ALL 63 ) / - - 23 THEN NULL WHEN - - 24 + - + MIN( DISTINCT + - 37 ) * + + 22 THEN - 76 * + + CASE - + 68 WHEN - COUNT( 94 ) THEN 15 WHEN - - ( + - 72 ) THEN + CAST( ( - 8 ) AS SIGNED ) * - 94 * COUNT( * ) + COALESCE ( 40, 73 + 73 ) END END
----
135
NULL

skipif mysql # not compatible
query II rowsort label-6628
SELECT COUNT ( * ) + 73 + + 61 AS col1, + 68 * + COUNT ( * ) * + CASE + - 61 WHEN - 86 + - COUNT ( * ) + + SUM ( ALL 63 ) / - - 23 THEN NULL WHEN - - 24 + - + MIN ( DISTINCT + - 37 ) * + + 22 THEN - 76 * + + CASE - + 68 WHEN - COUNT ( 94 ) THEN 15 WHEN - - ( + - 72 ) THEN + CAST ( ( - 8 ) AS INTEGER ) * - 94 * COUNT ( * ) + COALESCE ( 40, 73 + 73 ) END END
----
135
NULL

query I rowsort
SELECT 76 + - 97
----
-21

query I rowsort
SELECT ALL - 28 + - - 53
----
25

query II rowsort
SELECT ALL 52, 23 AS col0
----
52
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6632
SELECT 86 + + + SUM( DISTINCT - CAST( 58 AS SIGNED ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT 86 + + + SUM ( DISTINCT - CAST ( 58 AS INTEGER ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 57 * 78
----
4446

query II rowsort
SELECT ALL - 2 AS col1, 33 * - ( - 59 ) * + 27 * + 0
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT ALL + - MAX( + 63 ) * - + 76
----
4788

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL + - MAX ( + 63 ) * - + 76
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL + MIN( 55 ) * 15
----
825

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL + MIN ( 55 ) * 15
----
825

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT DISTINCT + 40 DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT + 40 / + 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6638
SELECT + 87, COUNT( * ) * 87
----
87
87

skipif mysql # not compatible
query II rowsort label-6638
SELECT + 87, COUNT ( * ) * 87
----
87
87

query I rowsort
SELECT DISTINCT - 49 - + 65
----
-114

query I rowsort
SELECT 20 * - 59
----
-1180

query I rowsort
SELECT + + ( + + ( - + 21 ) )
----
-21

query I rowsort
SELECT DISTINCT - - CASE + 76 WHEN + 53 * - + 75 THEN + 82 + 58 + - 15 + 22 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 2, + 40 AS col1
----
-2
40

query II rowsort
SELECT ALL - + 40 AS col0, ( 12 )
----
-40
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL - MIN( DISTINCT + - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL - MIN ( DISTINCT + - 98 )
----
98

query I rowsort
SELECT + 23 * + - 37 col0
----
-851

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT COUNT( * ) - 53
----
-52

skipif mysql # not compatible
query I rowsort label-6647
SELECT COUNT ( * ) - 53
----
-52

query I rowsort
SELECT 3 * + - 27 + + - 50
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6649
SELECT DISTINCT 76 + + - CAST( + + 20 AS SIGNED ) * - + ( - 89 ) AS col2
----
-1704

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT 76 + + - CAST ( + + 20 AS INTEGER ) * - + ( - 89 ) AS col2
----
-1704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6650
SELECT ALL - SUM( DISTINCT 80 ) + - CAST( - - NULLIF ( + 57, NULLIF ( - + MIN( DISTINCT - ( - + ( - 85 ) ) ), + 68 + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) AS SIGNED ) AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL - SUM ( DISTINCT 80 ) + - CAST ( - - NULLIF ( + 57, NULLIF ( - + MIN ( DISTINCT - ( - + ( - 85 ) ) ), + 68 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) AS INTEGER ) AS col2
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6651
SELECT ALL 45 + - ( AVG ( - CAST( NULL AS SIGNED ) ) ) / - + COUNT( - - 94 ) + - - 53 * + 0 * 77 AS col2, COUNT( - 86 ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6651
SELECT ALL 45 + - ( AVG ( - CAST ( NULL AS INTEGER ) ) ) / - + COUNT ( - - 94 ) + - - 53 * + 0 * 77 AS col2, COUNT ( - 86 ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL + COUNT( * ) * - COALESCE ( + + COUNT( * ), + 37 * + 47 * + 4 - - 36 + - 7 - ( - COUNT( * ) ) ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL + COUNT ( * ) * - COALESCE ( + + COUNT ( * ), + 37 * + 47 * + 4 - - 36 + - 7 - ( - COUNT ( * ) ) ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6653
SELECT COALESCE ( + - 46, - + 64 + - COALESCE ( - ( + 52 ), 47 + + + COUNT( * ) ), - + 67 ) DIV 38
----
-1

skipif mysql # not compatible
query I rowsort label-6653
SELECT COALESCE ( + - 46, - + 64 + - COALESCE ( - ( + 52 ), 47 + + + COUNT ( * ) ), - + 67 ) / 38
----
-1

query I rowsort
SELECT 45 - 52
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT DISTINCT ( - + 84 ) * + - 8 - - COUNT( * )
----
673

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT ( - + 84 ) * + - 8 - - COUNT ( * )
----
673

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL MAX( DISTINCT - 34 ) + 95 + 25 col0
----
86

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL MAX ( DISTINCT - 34 ) + 95 + 25 col0
----
86

query I rowsort
SELECT ALL 21 + + 30 AS col0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6658
SELECT ALL 73 * - COUNT( * ) AS col0, - 29
----
-73
-29

skipif mysql # not compatible
query II rowsort label-6658
SELECT ALL 73 * - COUNT ( * ) AS col0, - 29
----
-73
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT ALL 20 * - - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL 20 * - - COUNT ( * )
----
20

query I rowsort
SELECT ALL + 43 * 47 AS col1
----
2021

query I rowsort
SELECT ALL - 11 * 97 AS col0
----
-1067

query I rowsort
SELECT 66 - 16
----
50

query I rowsort
SELECT + 39 * - 34
----
-1326

query I rowsort
SELECT ALL - CASE + - 15 WHEN - 54 THEN NULL ELSE 58 END
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6665
SELECT - 29 / - - 10 * COUNT( * ) + - 23 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT - 29 / - - 10 * COUNT ( * ) + - 23 * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + 57 * + 44
----
2508

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6667
SELECT 58 + ( - 46 ) * 59 AS col0, - 80 * + - COUNT( * ) + 73 - + - COUNT( * ) DIV COUNT( * )
----
-2656
154

skipif mysql # not compatible
query II rowsort label-6667
SELECT 58 + ( - 46 ) * 59 AS col0, - 80 * + - COUNT ( * ) + 73 - + - COUNT ( * ) / COUNT ( * )
----
-2656
154

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6668
SELECT + ( + 69 ) AS col2, - 43 + + + 73 * + CAST( + - 52 AS SIGNED )
----
69
-3839

skipif mysql # not compatible
query II rowsort label-6668
SELECT + ( + 69 ) AS col2, - 43 + + + 73 * + CAST ( + - 52 AS INTEGER )
----
69
-3839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6669
SELECT - 54 * - + COUNT( * ) DIV 72 + - + CAST( + MIN( DISTINCT + ( + + 24 ) ) AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-6669
SELECT - 54 * - + COUNT ( * ) / 72 + - + CAST ( + MIN ( DISTINCT + ( + + 24 ) ) AS INTEGER )
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT 15 DIV + - 83 + - + 45 + - - 31 + + 14 * - 79 AS col2
----
-1120

skipif mysql # not compatible
query I rowsort label-6670
SELECT 15 / + - 83 + - + 45 + - - 31 + + 14 * - 79 AS col2
----
-1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6671
SELECT DISTINCT + - MAX( ALL + CAST( NULL AS SIGNED ) ) + - 43 + + 4 / + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - 43 + + 4 / + 8 AS col2
----
NULL

query I rowsort
SELECT 73 + + + 70 + 88
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT ALL + 60 + - + MIN( 14 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL + 60 + - + MIN ( 14 ) AS col0
----
46

query I rowsort
SELECT ALL + + 45 * 80 col1
----
3600

query I rowsort
SELECT ( - - 60 ) + 19
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6676
SELECT DISTINCT - CASE SUM( + 26 ) WHEN + ( CAST( + 69 AS SIGNED ) ) THEN COUNT( - + 33 ) + - + 88 WHEN + 28 THEN + COUNT( * ) ELSE NULL END + - - CAST( NULL AS DECIMAL ) + - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT - CASE SUM ( + 26 ) WHEN + ( CAST ( + 69 AS INTEGER ) ) THEN COUNT ( - + 33 ) + - + 88 WHEN + 28 THEN + COUNT ( * ) ELSE NULL END + - - CAST ( NULL AS REAL ) + - - 91
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6677
SELECT ALL + CAST( NULL AS SIGNED ) + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL + CAST ( NULL AS INTEGER ) + - 41
----
NULL

query I rowsort
SELECT ALL - 45 + 70
----
25

query I rowsort
SELECT 35 + + 42 AS col2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6680
SELECT ALL + COALESCE ( COUNT( * ), - 99 ) + 93 * + ( + 17 ) AS col0, - ( + + 93 )
----
1582
-93

skipif mysql # not compatible
query II rowsort label-6680
SELECT ALL + COALESCE ( COUNT ( * ), - 99 ) + 93 * + ( + 17 ) AS col0, - ( + + 93 )
----
1582
-93

query II rowsort
SELECT ALL - 46 + 62 + - + 48, + 20 + 59 col1
----
-32
79

query I rowsort
SELECT + ( 15 ) * + - 12
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6683
SELECT ALL + 73 DIV - 76 * - MAX( DISTINCT - 73 ) * + 8 AS col2, + 32 * - - COUNT( * )
----
0
32

skipif mysql # not compatible
query II rowsort label-6683
SELECT ALL + 73 / - 76 * - MAX ( DISTINCT - 73 ) * + 8 AS col2, + 32 * - - COUNT ( * )
----
0
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT - COUNT( * ) + ( + 90 )
----
89

skipif mysql # not compatible
query I rowsort label-6684
SELECT - COUNT ( * ) + ( + 90 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT ALL MAX( 56 ) * 16 + + + 2 AS col1
----
898

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL MAX ( 56 ) * 16 + + + 2 AS col1
----
898

onlyif mysql # DIV for integer division: 
query I rowsort label-6686
SELECT + ( + 13 ) + + 72 * 44 * + + 62 - + - 98 DIV - + 65 AS col1
----
196428

skipif mysql # not compatible
query I rowsort label-6686
SELECT + ( + 13 ) + + 72 * 44 * + + 62 - + - 98 / - + 65 AS col1
----
196428

query I rowsort
SELECT DISTINCT + 65 - + 63 * - 54 * 43
----
146351

query I rowsort
SELECT DISTINCT - 56 * 40 * + 29
----
-64960

query I rowsort
SELECT - 43 + - 44
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-6690
SELECT + 49 DIV - + 69
----
0

skipif mysql # not compatible
query I rowsort label-6690
SELECT + 49 / - + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT - SUM( ALL 89 ) + + - 58 AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-6691
SELECT - SUM ( ALL 89 ) + + - 58 AS col0
----
-147

onlyif mysql # DIV for integer division: 
query II rowsort label-6692
SELECT + 36 + + 16 - - 68 * + - ( + + 7 ) + + 79 DIV 84 DIV - NULLIF ( - 55, + 75 ) - - 74 * - 82 * + 73 * 46 + 23 AS col0, NULLIF ( - 25, + NULLIF ( + 23, + 51 ) ) AS col2
----
-20376745
-25

skipif mysql # not compatible
query II rowsort label-6692
SELECT + 36 + + 16 - - 68 * + - ( + + 7 ) + + 79 / 84 / - NULLIF ( - 55, + 75 ) - - 74 * - 82 * + 73 * 46 + 23 AS col0, NULLIF ( - 25, + NULLIF ( + 23, + 51 ) ) AS col2
----
-20376745
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6693
SELECT ALL - CAST( + 15 AS SIGNED ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL - CAST ( + 15 AS INTEGER ) AS col1
----
-15

query I rowsort
SELECT + ( 19 ) + - 49 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6695
SELECT + 94 * - MIN( 16 ) AS col1, + 3 AS col1
----
-1504
3

skipif mysql # not compatible
query II rowsort label-6695
SELECT + 94 * - MIN ( 16 ) AS col1, + 3 AS col1
----
-1504
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6696
SELECT ALL - 60, ( - COUNT( * ) ) + - - 16 AS col1
----
-60
15

skipif mysql # not compatible
query II rowsort label-6696
SELECT ALL - 60, ( - COUNT ( * ) ) + - - 16 AS col1
----
-60
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6697
SELECT - - COUNT( * ), 35 + + 45 - - COUNT( * ) * + 94 - - - 3 col1
----
1
171

skipif mysql # not compatible
query II rowsort label-6697
SELECT - - COUNT ( * ), 35 + + 45 - - COUNT ( * ) * + 94 - - - 3 col1
----
1
171

query I rowsort
SELECT ALL + 90 * + 21 * + + 86 * - 61 * ( - - 36 ) + - 63 * 55 col0
----
-356941305

query I rowsort
SELECT + - 19 + - 45
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-6700
SELECT ALL + + 97 * + ( - COUNT( * ) ) - + 29 * - + 44, 53 AS col1
----
1179
53

skipif mysql # not compatible
query II rowsort label-6700
SELECT ALL + + 97 * + ( - COUNT ( * ) ) - + 29 * - + 44, 53 AS col1
----
1179
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6701
SELECT + - 28 * + + 34 + - + COALESCE ( - - 17, + 79 DIV - 51 + + 48 - + ( + 73 ) DIV COUNT( * ) * + 15 + - + 1 + 3 ) AS col0, 92 AS col2
----
-969
92

skipif mysql # not compatible
query II rowsort label-6701
SELECT + - 28 * + + 34 + - + COALESCE ( - - 17, + 79 / - 51 + + 48 - + ( + 73 ) / COUNT ( * ) * + 15 + - + 1 + 3 ) AS col0, 92 AS col2
----
-969
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6702
SELECT DISTINCT + 97 * - - NULLIF ( - + NULLIF ( + 87, + 30 ), - 36 DIV + COUNT( * ) ) + + - 53 DIV + + 71
----
-8439

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT + 97 * - - NULLIF ( - + NULLIF ( + 87, + 30 ), - 36 / + COUNT ( * ) ) + + - 53 / + + 71
----
-8439

query I rowsort
SELECT ALL - 61 * - - 36 + - 74 + 86
----
-2184

query I rowsort
SELECT DISTINCT 18 * - 42 AS col2
----
-756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6705
SELECT + + CASE + CAST( + MAX( - 51 ) AS SIGNED ) WHEN 1 + + 7 THEN COUNT( ( - CAST( NULL AS SIGNED ) ) ) WHEN + COUNT( * ) THEN + 95 ELSE NULL END * + 54 * 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6705
SELECT + + CASE + CAST ( + MAX ( - 51 ) AS INTEGER ) WHEN 1 + + 7 THEN COUNT ( ( - CAST ( NULL AS INTEGER ) ) ) WHEN + COUNT ( * ) THEN + 95 ELSE NULL END * + 54 * 45 AS col2
----
NULL

query I rowsort
SELECT ALL 36 * - + 93 + + 80 AS col2
----
-3268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6707
SELECT ALL + 46 * - - COALESCE ( COUNT( * ), + COUNT( * ), - - 54 + + + 79 * + - COALESCE ( - - 7, + 88 ) * - 69 + - - 17 DIV 28 + - 36 ) * 0 + 27 * 36 * + - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL + 46 * - - COALESCE ( COUNT ( * ), + COUNT ( * ), - - 54 + + + 79 * + - COALESCE ( - - 7, + 88 ) * - 69 + - - 17 / 28 + - 36 ) * 0 + 27 * 36 * + - 0 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6708
SELECT + ( + - ( + 52 ) ) DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6708
SELECT + ( + - ( + 52 ) ) / 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL COUNT( * ) * + + 12 + + + 24 * - 20 * + + COUNT( * ) * + 76 + - - 56
----
-36412

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL COUNT ( * ) * + + 12 + + + 24 * - 20 * + + COUNT ( * ) * + 76 + - - 56
----
-36412

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT COUNT( 69 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6710
SELECT COUNT ( 69 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL + COALESCE ( + 54, - NULLIF ( + - COUNT( + - 39 ), - 45 ) ) col0
----
54

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL + COALESCE ( + 54, - NULLIF ( + - COUNT ( + - 39 ), - 45 ) ) col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL - 41 * + - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL - 41 * + - COUNT ( * ) AS col2
----
41

query I rowsort
SELECT NULLIF ( 28, 64 ) AS col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6714
SELECT ALL 51 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL 51 / - 79
----
0

query I rowsort
SELECT + 92 - + 33
----
59

query I rowsort
SELECT - 98 * - 19 AS col0
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT MAX( - 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-6717
SELECT MAX ( - 78 ) AS col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6718
SELECT 69 * COUNT( * ) + - + NULLIF ( - 6, 47 ) + - MAX( - - 35 ) DIV + 60 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-6718
SELECT 69 * COUNT ( * ) + - + NULLIF ( - 6, 47 ) + - MAX ( - - 35 ) / + 60 AS col0
----
75

query I rowsort
SELECT DISTINCT ( CASE 91 WHEN - 53 THEN + 14 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6720
SELECT ALL + 69 * + + CAST( + + 33 AS SIGNED ) AS col0
----
2277

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL + 69 * + + CAST ( + + 33 AS INTEGER ) AS col0
----
2277

onlyif mysql # aggregate syntax: 
query II rowsort label-6721
SELECT - 39 AS col1, + 98 + - COALESCE ( - 96, COUNT( * ) - 47 + - - 24 * - - 58 + + + 14 * + + 50 + - - 22, + 7 ) * - + MAX( ALL + 62 )
----
-39
-5854

skipif mysql # not compatible
query II rowsort label-6721
SELECT - 39 AS col1, + 98 + - COALESCE ( - 96, COUNT ( * ) - 47 + - - 24 * - - 58 + + + 14 * + + 50 + - - 22, + 7 ) * - + MAX ( ALL + 62 )
----
-39
-5854

onlyif mysql # aggregate syntax: 
query II rowsort label-6722
SELECT ALL COUNT( * ) AS col1, 22
----
1
22

skipif mysql # not compatible
query II rowsort label-6722
SELECT ALL COUNT ( * ) AS col1, 22
----
1
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6723
SELECT DISTINCT CAST( - + ( COALESCE ( + 83, 48, COUNT( * ) ) ) AS SIGNED ), 16 * - + 41 AS col2
----
-83
-656

skipif mysql # not compatible
query II rowsort label-6723
SELECT DISTINCT CAST ( - + ( COALESCE ( + 83, 48, COUNT ( * ) ) ) AS INTEGER ), 16 * - + 41 AS col2
----
-83
-656

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6724
SELECT - 96 AS col2, 57 * 8 * - CAST( NULL AS SIGNED )
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-6724
SELECT - 96 AS col2, 57 * 8 * - CAST ( NULL AS INTEGER )
----
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT DISTINCT ( COUNT( 41 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT ( COUNT ( 41 ) )
----
1

query I rowsort
SELECT - 8 * - + ( - 82 )
----
-656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6727
SELECT ALL CAST( + MAX( CAST( - 19 AS SIGNED ) ) AS SIGNED ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL CAST ( + MAX ( CAST ( - 19 AS INTEGER ) ) AS INTEGER ) AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6728
SELECT DISTINCT - 25 DIV + - COUNT( * ) AS col0, 15 + - + 59 AS col0
----
25
-44

skipif mysql # not compatible
query II rowsort label-6728
SELECT DISTINCT - 25 / + - COUNT ( * ) AS col0, 15 + - + 59 AS col0
----
25
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT - MAX( DISTINCT 32 ) * 91 * + - 98 AS col0
----
285376

skipif mysql # not compatible
query I rowsort label-6729
SELECT - MAX ( DISTINCT 32 ) * 91 * + - 98 AS col0
----
285376

onlyif mysql # DIV for integer division: 
query I rowsort label-6730
SELECT DISTINCT - 17 DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT - 17 / 98 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6731
SELECT ALL + - COUNT( + 43 ) + 93 * CASE + + NULLIF ( - + 71, + COUNT( * ) ) WHEN 41 THEN NULL WHEN + 96 THEN NULL ELSE CAST( NULL AS DECIMAL ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL + - COUNT ( + 43 ) + 93 * CASE + + NULLIF ( - + 71, + COUNT ( * ) ) WHEN 41 THEN NULL WHEN + 96 THEN NULL ELSE CAST ( NULL AS REAL ) END AS col0
----
NULL

query I rowsort
SELECT - - ( + 80 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6733
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 47 / + 42 + - 68 + + 18 * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 47 / + 42 + - 68 + + 18 * + 67
----
NULL

query I rowsort
SELECT ALL - 68 + 44 - 63
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT - + COUNT( * ) + 55
----
54

skipif mysql # not compatible
query I rowsort label-6735
SELECT - + COUNT ( * ) + 55
----
54

query I rowsort
SELECT + + 98 * + 66
----
6468

query I rowsort
SELECT DISTINCT 6 * + + 82 AS col1
----
492

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6738
SELECT - 82 DIV COUNT( * ) + 22 col0
----
-60

skipif mysql # not compatible
query I rowsort label-6738
SELECT - 82 / COUNT ( * ) + 22 col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT - 7 * - 58 + - + COUNT( * ) AS col2
----
405

skipif mysql # not compatible
query I rowsort label-6739
SELECT - 7 * - 58 + - + COUNT ( * ) AS col2
----
405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6740
SELECT ALL + COALESCE ( 99, MAX( ALL - 48 ), + + 46 ) DIV COALESCE ( - 55, + 3 * - - 93 - - + MIN( - + 51 ) + + COALESCE ( - - 66, + 59 ) DIV - + 21, + + 6 ) + - - MAX( ALL + + 93 ) + + SUM( 41 ) AS col0
----
133

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL + COALESCE ( 99, MAX ( ALL - 48 ), + + 46 ) / COALESCE ( - 55, + 3 * - - 93 - - + MIN ( - + 51 ) + + COALESCE ( - - 66, + 59 ) / - + 21, + + 6 ) + - - MAX ( ALL + + 93 ) + + SUM ( 41 ) AS col0
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-6741
SELECT 75 AS col1, 26 * - 66 * MIN( - 73 ) * - 28 AS col0
----
75
-3507504

skipif mysql # not compatible
query II rowsort label-6741
SELECT 75 AS col1, 26 * - 66 * MIN ( - 73 ) * - 28 AS col0
----
75
-3507504

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT 72 * - COUNT( * ) + - 88 + - - 36 + - 79 * - + 38
----
2878

skipif mysql # not compatible
query I rowsort label-6742
SELECT 72 * - COUNT ( * ) + - 88 + - - 36 + - 79 * - + 38
----
2878

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT ALL 70 * + + ( + CASE + 1 WHEN + ( - - 25 ) THEN NULL WHEN NULLIF ( - COALESCE ( + - 54, + 6 ), - 82 ) THEN - + COUNT( * ) * - COALESCE ( + - ( + 11 ), COUNT( * ) + - COUNT( * ) - 71 + + 27 + SUM( 31 ) ) + 9 - MIN( DISTINCT - 20 ) + - 20 * - + 71 + - 5 - - 29 * 65 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL 70 * + + ( + CASE + 1 WHEN + ( - - 25 ) THEN NULL WHEN NULLIF ( - COALESCE ( + - 54, + 6 ), - 82 ) THEN - + COUNT ( * ) * - COALESCE ( + - ( + 11 ), COUNT ( * ) + - COUNT ( * ) - 71 + + 27 + SUM ( 31 ) ) + 9 - MIN ( DISTINCT - 20 ) + - 20 * - + 71 + - 5 - - 29 * 65 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6744
SELECT - - 41 / + 9 + + + CAST( NULL AS SIGNED ) * 67 + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT - - 41 / + 9 + + + CAST ( NULL AS INTEGER ) * 67 + - 64
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6745
SELECT 54 + - CAST( - 86 AS SIGNED ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-6745
SELECT 54 + - CAST ( - 86 AS INTEGER ) AS col1
----
140

query I rowsort
SELECT ALL 10 - + 82
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT 46 * 26 + + COUNT( * ) * + COUNT( * )
----
1197

skipif mysql # not compatible
query I rowsort label-6747
SELECT 46 * 26 + + COUNT ( * ) * + COUNT ( * )
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT 61 * - ( COALESCE ( - 53, - - COUNT( * ) ) )
----
3233

skipif mysql # not compatible
query I rowsort label-6748
SELECT 61 * - ( COALESCE ( - 53, - - COUNT ( * ) ) )
----
3233

query I rowsort
SELECT ALL 28 * - - 14 AS col2
----
392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT - CAST( NULL AS SIGNED ) * 81 + - ( + + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT - CAST ( NULL AS INTEGER ) * 81 + - ( + + 94 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6751
SELECT DISTINCT 63 * - + CAST( - 57 AS SIGNED ) * - 29 * + 71 AS col2
----
-7393869

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT 63 * - + CAST ( - 57 AS INTEGER ) * - 29 * + 71 AS col2
----
-7393869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6752
SELECT ( - - 42 ) * - 9 * - - 63 - + 65 * + - AVG ( - + CAST( NULL AS SIGNED ) ) / CASE + 88 WHEN - 30 * - 93 * + 33 + + - 48 * 43 + ( + ( + CASE + 32 WHEN - 3 * - ( 3 ) THEN - 83 WHEN + 42 THEN 81 WHEN + 93 * 99 + - - COUNT( * ) - + 17 THEN - + 92 + - COUNT( * ) / - 80 WHEN 53 * 29 THEN + 31 ELSE NULLIF ( - NULLIF ( COUNT( * ), + MIN( DISTINCT 2 ) ), - 1 * MIN( ALL + 41 ) + - COUNT( * ) ) * 41 END ) ) + + COALESCE ( CASE + ( CAST( 12 AS SIGNED ) ) WHEN 10 THEN + 0 END + 12, 72 ) THEN + 8 ELSE NULL END + - COUNT( * ) + COUNT( * ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT ( - - 42 ) * - 9 * - - 63 - + 65 * + - AVG ( - + CAST ( NULL AS INTEGER ) ) / CASE + 88 WHEN - 30 * - 93 * + 33 + + - 48 * 43 + ( + ( + CASE + 32 WHEN - 3 * - ( 3 ) THEN - 83 WHEN + 42 THEN 81 WHEN + 93 * 99 + - - COUNT ( * ) - + 17 THEN - + 92 + - COUNT ( * ) / - 80 WHEN 53 * 29 THEN + 31 ELSE NULLIF ( - NULLIF ( COUNT ( * ), + MIN ( DISTINCT 2 ) ), - 1 * MIN ( ALL + 41 ) + - COUNT ( * ) ) * 41 END ) ) + + COALESCE ( CASE + ( CAST ( 12 AS INTEGER ) ) WHEN 10 THEN + 0 END + 12, 72 ) THEN + 8 ELSE NULL END + - COUNT ( * ) + COUNT ( * ) * COUNT ( * )
----
NULL

query I rowsort
SELECT 51 * - 28
----
-1428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT ALL 56 - + - 34 * - - 13 * - NULLIF ( - 25, + 45 + + + 38 + + NULLIF ( 52, 73 * + 68 ) ) * + + 80 + + CAST( NULL AS SIGNED ) + - - 37 + CAST( 56 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL 56 - + - 34 * - - 13 * - NULLIF ( - 25, + 45 + + + 38 + + NULLIF ( 52, 73 * + 68 ) ) * + + 80 + + CAST ( NULL AS INTEGER ) + - - 37 + CAST ( 56 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 86 * 70 + - + 28 + - + 51
----
5941

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ( 48 ) * - + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-6756
SELECT ( 48 ) * - + COUNT ( * )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6757
SELECT 75 + - CAST( - + CASE - 44 WHEN + ( - COALESCE ( - - 36, - 31 / 47, 43 / 70, 84 ) ) THEN - - 7 ELSE NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT 75 + - CAST ( - + CASE - 44 WHEN + ( - COALESCE ( - - 36, - 31 / 47, 43 / 70, 84 ) ) THEN - - 7 ELSE NULL END AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 39 * - + 56
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT ALL + + 18 + COUNT( * ) * 31 + 10 * + 27 * NULLIF ( + + COUNT( * ), 88 * 73 * - 26 - + 51 - + - 48 + 27 ) * + + COUNT( * )
----
319

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL + + 18 + COUNT ( * ) * 31 + 10 * + 27 * NULLIF ( + + COUNT ( * ), 88 * 73 * - 26 - + 51 - + - 48 + 27 ) * + + COUNT ( * )
----
319

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT 41 + 88 + + 49 * - COUNT( ALL + 53 ) - 32 col2
----
48

skipif mysql # not compatible
query I rowsort label-6760
SELECT 41 + 88 + + 49 * - COUNT ( ALL + 53 ) - 32 col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6761
SELECT ALL + + 43 + MAX( 42 ) * + 6 - 52 DIV - 7 AS col2
----
302

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL + + 43 + MAX ( 42 ) * + 6 - 52 / - 7 AS col2
----
302

query I rowsort
SELECT 33 + 75 AS col1
----
108

query I rowsort
SELECT ALL + + ( + AVG ( DISTINCT - 15 ) ) + + CASE - 16 WHEN - - 37 THEN NULL WHEN - AVG ( + + 9 ) THEN ( - 3 ) END + - 41 * 99 + - 13 + 11 - - ( + 99 ) * - 32 AS col1
----
NULL

query I rowsort
SELECT 79 + + 57 AS col0
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6765
SELECT ALL + + CASE + + 37 WHEN - - 92 THEN - + ( 39 ) * + + CASE + - ( - - 9 ) WHEN + CAST( + - 0 AS SIGNED ) + + COUNT( * ) + - CAST( + CASE + + 11 WHEN + 63 / - 88 * - CAST( + 60 AS SIGNED ) THEN NULL WHEN - + 14 * + - SUM( + 92 ) - - COUNT( * ) + 9 THEN - 70 + - - ( + 88 ) WHEN - 66 THEN + 23 ELSE NULL END AS DECIMAL ) * + 71 THEN NULL ELSE 96 END END + - ( 83 ) * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL + + CASE + + 37 WHEN - - 92 THEN - + ( 39 ) * + + CASE + - ( - - 9 ) WHEN + CAST ( + - 0 AS INTEGER ) + + COUNT ( * ) + - CAST ( + CASE + + 11 WHEN + 63 / - 88 * - CAST ( + 60 AS INTEGER ) THEN NULL WHEN - + 14 * + - SUM ( + 92 ) - - COUNT ( * ) + 9 THEN - 70 + - - ( + 88 ) WHEN - 66 THEN + 23 ELSE NULL END AS REAL ) * + 71 THEN NULL ELSE 96 END END + - ( 83 ) * 70
----
NULL

query I rowsort
SELECT NULLIF ( + - 46, - 54 ) + 44 AS col0
----
-2

query I rowsort
SELECT ALL - - 38 + - + 86 - + 44
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT DISTINCT - 23 * - - 34 * + + COUNT( DISTINCT - 27 ) + + 10 col0
----
-772

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT - 23 * - - 34 * + + COUNT ( DISTINCT - 27 ) + + 10 col0
----
-772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6769
SELECT ALL - + 71 DIV COUNT( * ) * 84
----
-5964

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL - + 71 / COUNT ( * ) * 84
----
-5964

query I rowsort
SELECT DISTINCT + - COALESCE ( - ( + + 88 ), 20 ) - - 7 AS col2
----
95

query II rowsort
SELECT ALL 54 * - 1 + 44 AS col1, + 68 * + 25 AS col1
----
-10
1700

query I rowsort
SELECT DISTINCT - ( + - ( - 79 ) ) - - 81 AS col0
----
2

query I rowsort
SELECT DISTINCT - 96 * 81
----
-7776

query II rowsort
SELECT ALL - 25 AS col2, 64
----
-25
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT 60 * - + COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-6775
SELECT 60 * - + COUNT ( * ) AS col0
----
-60

query II rowsort
SELECT ALL - 41 AS col2, + 10
----
-41
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6777
SELECT DISTINCT - COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) - 69 + - CASE - - 24 WHEN 27 * + - AVG ( ALL 86 ) - - + COALESCE ( - - CASE - + 69 WHEN 84 * + ( - COUNT( * ) ) THEN 10 * - + 98 * + - CAST( + 4 AS SIGNED ) * - CASE + 56 WHEN - COUNT( * ) THEN - - CAST( + 44 AS SIGNED ) WHEN 74 THEN NULL ELSE 1 END + - + 17 + + 40 + - - 1 * + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) / + - 77 * + COUNT( * ) ELSE NULL END, - 83 ) THEN NULL ELSE - ( 20 ) * COUNT( * ) END - 29 col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6777
SELECT DISTINCT - COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) - 69 + - CASE - - 24 WHEN 27 * + - AVG ( ALL 86 ) - - + COALESCE ( - - CASE - + 69 WHEN 84 * + ( - COUNT ( * ) ) THEN 10 * - + 98 * + - CAST ( + 4 AS INTEGER ) * - CASE + 56 WHEN - COUNT ( * ) THEN - - CAST ( + 44 AS INTEGER ) WHEN 74 THEN NULL ELSE 1 END + - + 17 + + 40 + - - 1 * + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) / + - 77 * + COUNT ( * ) ELSE NULL END, - 83 ) THEN NULL ELSE - ( 20 ) * COUNT ( * ) END - 29 col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT 50 * - COUNT( * ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-6778
SELECT 50 * - COUNT ( * ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-6779
SELECT MAX( DISTINCT - 89 ) * + 69 AS col0, 22 * + + 4 AS col2
----
-6141
88

skipif mysql # not compatible
query II rowsort label-6779
SELECT MAX ( DISTINCT - 89 ) * + 69 AS col0, 22 * + + 4 AS col2
----
-6141
88

query I rowsort
SELECT DISTINCT 56 * 78 AS col1
----
4368

query I rowsort
SELECT DISTINCT 73 + - 56
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT DISTINCT 8 + - 23 + COUNT( * ) * + + 16
----
1

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT 8 + - 23 + COUNT ( * ) * + + 16
----
1

query II rowsort
SELECT ALL 2 AS col2, 10 AS col0
----
2
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT ALL 79 + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL 79 + + COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT - COUNT( + 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-6785
SELECT - COUNT ( + 69 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6786
SELECT ALL COUNT( - 60 ) + - + 43 DIV + COUNT( * ) + - 27 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL COUNT ( - 60 ) + - + 43 / + COUNT ( * ) + - 27 AS col2
----
-69

query II rowsort
SELECT ALL 68 AS col0, - 64 AS col1
----
68
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT DISTINCT - CAST( - + 52 AS SIGNED ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT - CAST ( - + 52 AS INTEGER ) AS col1
----
52

query I rowsort
SELECT 35 * + 6 + 76 * - + 63 * + + 26 AS col0
----
-124278

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT DISTINCT COALESCE ( - ( - ( 45 ) ), 88, MAX( DISTINCT - 81 ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT COALESCE ( - ( - ( 45 ) ), 88, MAX ( DISTINCT - 81 ) ) AS col0
----
45

query I rowsort
SELECT ALL + 85 - 15
----
70

query I rowsort
SELECT - + ( - - 53 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6793
SELECT COUNT( * ) - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT COUNT ( * ) - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 94 * - 93 col2
----
8742

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT + - NULLIF ( + - COUNT( * ), COUNT( * ) ) * 91 * ( + COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-6795
SELECT + - NULLIF ( + - COUNT ( * ), COUNT ( * ) ) * 91 * ( + COUNT ( * ) )
----
91

query I rowsort
SELECT + + 69 + 1 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT - + COUNT( * ) * - - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6797
SELECT - + COUNT ( * ) * - - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6798
SELECT - + COUNT( * ) DIV + 5 + - - 80 + + 35 + + + 2 * - 75 DIV 60
----
113

skipif mysql # not compatible
query I rowsort label-6798
SELECT - + COUNT ( * ) / + 5 + - - 80 + + 35 + + + 2 * - 75 / 60
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT + NULLIF ( - ( 43 ), - - 74 + - 51 ) * - 7 + ( - 53 ) - COUNT( * ) AS col2
----
247

skipif mysql # not compatible
query I rowsort label-6799
SELECT + NULLIF ( - ( 43 ), - - 74 + - 51 ) * - 7 + ( - 53 ) - COUNT ( * ) AS col2
----
247

query I rowsort
SELECT NULLIF ( - + ( + + 37 ), + + 57 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT + MAX( ALL - 64 ) * + - 30 + + CASE - 86 WHEN 75 THEN + 32 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT + MAX ( ALL - 64 ) * + - 30 + + CASE - 86 WHEN 75 THEN + 32 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL + MIN( ALL 5 )
----
5

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL + MIN ( ALL 5 )
----
5

query I rowsort
SELECT ALL + 10 * + 40
----
400

onlyif mysql # DIV for integer division: 
query I rowsort label-6804
SELECT DISTINCT + 38 DIV + - 50 col2
----
0

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT + 38 / + - 50 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL 28 * 29 * + - 85 + + - 59 * COUNT( * )
----
-69079

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL 28 * 29 * + - 85 + + - 59 * COUNT ( * )
----
-69079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6806
SELECT COALESCE ( + 12, - 82, - 73 * 75 DIV - - 89 * + - 93 - - 77 * - 11 + 25 * - 56 DIV - 3 - - 69 + MAX( 25 ) * - 37 * + + NULLIF ( - - 26, + AVG ( DISTINCT - 97 ) + + 53 - + - 24 ) DIV + 46 DIV + 9 * - + 19 DIV - 90 * + 59 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6806
SELECT COALESCE ( + 12, - 82, - 73 * 75 / - - 89 * + - 93 - - 77 * - 11 + 25 * - 56 / - 3 - - 69 + MAX ( 25 ) * - 37 * + + NULLIF ( - - 26, + AVG ( DISTINCT - 97 ) + + 53 - + - 24 ) / + 46 / + 9 * - + 19 / - 90 * + 59 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6807
SELECT ALL - 47 * + - NULLIF ( 61, - COUNT( * ) + + 69 ), + ( + 9 ) AS col0
----
2867
9

skipif mysql # not compatible
query II rowsort label-6807
SELECT ALL - 47 * + - NULLIF ( 61, - COUNT ( * ) + + 69 ), + ( + 9 ) AS col0
----
2867
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6808
SELECT NULLIF ( - 69, CASE + - SUM( DISTINCT + 91 ) WHEN - 85 THEN NULLIF ( + + 3, - 91 ) * + CAST( + - 75 AS SIGNED ) * + 92 WHEN NULLIF ( + CAST( COUNT( * ) AS SIGNED ), - COUNT( * ) ) THEN - + 71 END / + 33 + - + 16 + + 59 )
----
-69

skipif mysql # not compatible
query I rowsort label-6808
SELECT NULLIF ( - 69, CASE + - SUM ( DISTINCT + 91 ) WHEN - 85 THEN NULLIF ( + + 3, - 91 ) * + CAST ( + - 75 AS INTEGER ) * + 92 WHEN NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), - COUNT ( * ) ) THEN - + 71 END / + 33 + - + 16 + + 59 )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-6809
SELECT - ( NULLIF ( - 0, + 44 DIV 6 + + - 47 * + - 68 ) ) DIV - 88 col2
----
0

skipif mysql # not compatible
query I rowsort label-6809
SELECT - ( NULLIF ( - 0, + 44 / 6 + + - 47 * + - 68 ) ) / - 88 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6810
SELECT + 3 DIV 2 * - - 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6810
SELECT + 3 / 2 * - - 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT ALL COUNT( * ) * + 14 + ( + 3 )
----
17

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL COUNT ( * ) * + 14 + ( + 3 )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6812
SELECT ALL COUNT( * ) * - 65 + - CAST( NULL AS SIGNED ) + 75, - MAX( DISTINCT - 25 ) * - 90 * - ( + CAST( NULL AS SIGNED ) ) + 82 * - - 15 + - - 44 * - 71 * + 30 + 55 * - - 42 + ( - 53 ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6812
SELECT ALL COUNT ( * ) * - 65 + - CAST ( NULL AS INTEGER ) + 75, - MAX ( DISTINCT - 25 ) * - 90 * - ( + CAST ( NULL AS INTEGER ) ) + 82 * - - 15 + - - 44 * - 71 * + 30 + 55 * - - 42 + ( - 53 ) AS col0
----
NULL
NULL

query I rowsort
SELECT ALL + 35 * + - 1 + - - 74
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT + 43 * ( + 31 ) * - 22 * - COUNT( * ) + 32 AS col1
----
29358

skipif mysql # not compatible
query I rowsort label-6814
SELECT + 43 * ( + 31 ) * - 22 * - COUNT ( * ) + 32 AS col1
----
29358

query I rowsort
SELECT - + 16 * + ( 18 )
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6816
SELECT - 33 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6816
SELECT - 33 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT + COUNT( * ) - + ( + 93 ) * COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6817
SELECT + COUNT ( * ) - + ( + 93 ) * COUNT ( * ) AS col0
----
-92

query I rowsort
SELECT DISTINCT 73 + - 21 * + 19 * - 48 * - 75 - - 46 + - 25 AS col1
----
-1436306

onlyif mysql # DIV for integer division: 
query I rowsort label-6819
SELECT DISTINCT 35 - - + 39 + COALESCE ( - 85, + ( + 25 ) ) DIV - - ( - 8 )
----
84

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT 35 - - + 39 + COALESCE ( - 85, + ( + 25 ) ) / - - ( - 8 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6820
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL - SUM( + ( + 17 ) ) - - - 22 * COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL - SUM ( + ( + 17 ) ) - - - 22 * COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT + + ( - - COALESCE ( + + SUM( - 23 ), - + 85 ) ) + - 41 - - MIN( + + 31 ) * + + 53 * + 95 col2
----
156021

skipif mysql # not compatible
query I rowsort label-6822
SELECT + + ( - - COALESCE ( + + SUM ( - 23 ), - + 85 ) ) + - 41 - - MIN ( + + 31 ) * + + 53 * + 95 col2
----
156021

onlyif mysql # DIV for integer division: 
query I rowsort label-6823
SELECT + + 73 DIV + 45 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6823
SELECT + + 73 / + 45 AS col1
----
1

query I rowsort
SELECT + - 9 + 66
----
57

query II rowsort
SELECT + 19 * + + 55, - 75 AS col0
----
1045
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6826
SELECT ALL COUNT( * ) * - CAST( + ( 42 ) AS SIGNED ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL COUNT ( * ) * - CAST ( + ( 42 ) AS INTEGER ) AS col1
----
-42

query I rowsort
SELECT + + 32 * + + 80 - 6 AS col0
----
2554

query I rowsort
SELECT DISTINCT + 42 * + + 99 AS col0
----
4158

query I rowsort
SELECT DISTINCT NULLIF ( 27, + 92 ) AS col0
----
27

query I rowsort
SELECT ALL + 24 + - 18 AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6831
SELECT CAST( NULL AS SIGNED ), + 79 AS col0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-6831
SELECT CAST ( NULL AS INTEGER ), + 79 AS col0
----
NULL
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL 45 * + - 40 * - MIN( - - 91 ) AS col0
----
163800

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL 45 * + - 40 * - MIN ( - - 91 ) AS col0
----
163800

query I rowsort
SELECT + ( 1 ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6834
SELECT DISTINCT COUNT( * ) DIV - + MIN( ALL - 5 ) + 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT COUNT ( * ) / - + MIN ( ALL - 5 ) + 5 AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6835
SELECT ALL 86 DIV - + 89 + COUNT( + 10 ) - - ( - - 30 ) + 67 * + 59 - - 29 AS col2
----
4013

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL 86 / - + 89 + COUNT ( + 10 ) - - ( - - 30 ) + 67 * + 59 - - 29 AS col2
----
4013

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6836
SELECT DISTINCT 61 DIV - 79 DIV 49 * SUM( ALL ( - - 61 ) ) * 6 * - 66 + + 12 + - - COUNT( * ) col1, 85 * + 0
----
13
0

skipif mysql # not compatible
query II rowsort label-6836
SELECT DISTINCT 61 / - 79 / 49 * SUM ( ALL ( - - 61 ) ) * 6 * - 66 + + 12 + - - COUNT ( * ) col1, 85 * + 0
----
13
0

query I rowsort
SELECT - ( 99 ) * + - 1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6838
SELECT ALL + MAX( + ( - + 63 ) ) DIV - - 61 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL + MAX ( + ( - + 63 ) ) / - - 61 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT DISTINCT + MAX( + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT + MAX ( + 67 )
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6840
SELECT DISTINCT 98 DIV + 18 + COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT 98 / + 18 + COUNT ( * ) AS col0
----
6

query I rowsort
SELECT - 26 * 51
----
-1326

onlyif mysql # DIV for integer division: 
query I rowsort label-6842
SELECT ALL - 89 DIV - - 22 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL - 89 / - - 22 AS col2
----
-4

query I rowsort
SELECT - 43 + - 43 + + 31 + - 94 * - 0 * - 33 * 47
----
-55

query I rowsort
SELECT ( 45 ) col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ALL + MAX( - 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + MAX ( - 60 ) AS col0
----
-60

query I rowsort
SELECT - - 46 * 78 * - 87 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT - 78 * - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-6847
SELECT - 78 * - COUNT ( * )
----
78

query II rowsort
SELECT + 15 * + - 60 + + ( 56 ) + - ( - - 61 ), 0 AS col0
----
-905
0

query I rowsort
SELECT DISTINCT - - 77 * 64 - + 67
----
4861

query I rowsort
SELECT NULLIF ( + 57, + + 19 / - 73 ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6851
SELECT ALL + 49 * + 14 + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL + 49 * + 14 + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6852
SELECT ALL - + ( 3 ) DIV + 51 - COUNT( * ) - - 98
----
97

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL - + ( 3 ) / + 51 - COUNT ( * ) - - 98
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6853
SELECT ALL - ( - + COALESCE ( + 36, - NULLIF ( - COUNT( * ), + 54 * 64 * + 60 ) * + 61 DIV CAST( NULL AS SIGNED ) DIV + 30 + - - ( - 26 ) ) )
----
36

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL - ( - + COALESCE ( + 36, - NULLIF ( - COUNT ( * ), + 54 * 64 * + 60 ) * + 61 / CAST ( NULL AS INTEGER ) / + 30 + - - ( - 26 ) ) )
----
36

query I rowsort
SELECT 56 * - + 17
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT ALL NULLIF ( + NULLIF ( + 28, - - COUNT( * ) ), 53 ) col1
----
28

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL NULLIF ( + NULLIF ( + 28, - - COUNT ( * ) ), 53 ) col1
----
28

query I rowsort
SELECT + 72 - - + ( 63 ) - - - 58 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT - 20 - + SUM( + - ( 44 ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6857
SELECT - 20 - + SUM ( + - ( 44 ) ) AS col2
----
24

query I rowsort
SELECT 67 - + 17 AS col1
----
50

query I rowsort
SELECT ALL - - 60 * + 22
----
1320

query I rowsort
SELECT + ( - ( ( - 96 ) ) ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT ALL + 92 + 85 * + COUNT( + 64 ) AS col0
----
177

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL + 92 + 85 * + COUNT ( + 64 ) AS col0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT - MIN( ALL NULLIF ( - 79, - 14 ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6862
SELECT - MIN ( ALL NULLIF ( - 79, - 14 ) ) AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6863
SELECT ALL 34 + - 22 DIV + COUNT( * ) - - 1 * - - 28 + - - 15 col1
----
55

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL 34 + - 22 / + COUNT ( * ) - - 1 * - - 28 + - - 15 col1
----
55

query I rowsort
SELECT 70 * - 21 AS col1
----
-1470

query II rowsort
SELECT ALL 13, - 7 col2
----
13
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT DISTINCT 63 + + - COUNT( * ) - SUM( ALL 76 ) * - 1 * + COUNT( * ) - + - 86 + - ( + 35 ) AS col0
----
189

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT 63 + + - COUNT ( * ) - SUM ( ALL 76 ) * - 1 * + COUNT ( * ) - + - 86 + - ( + 35 ) AS col0
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-6867
SELECT 89 DIV - + 65
----
-1

skipif mysql # not compatible
query I rowsort label-6867
SELECT 89 / - + 65
----
-1

query I rowsort
SELECT ALL 98 + 47
----
145

query I rowsort
SELECT 60 + + 77
----
137

query I rowsort
SELECT DISTINCT 50 * - 40
----
-2000

query I rowsort
SELECT 79 + 7
----
86

query I rowsort
SELECT ALL 62 + + - 43 * 63
----
-2647

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT DISTINCT 85 * + COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT 85 * + COUNT ( * ) AS col1
----
85

query I rowsort
SELECT ALL + 93 + - ( + 93 ) AS col0
----
0

query II rowsort
SELECT ALL - 30 AS col1, + 37 * - 26 AS col2
----
-30
-962

query I rowsort
SELECT 94 * + + 24 + 90 + 79 * - 4 AS col1
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT ALL - MAX( + ( - 45 ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL - MAX ( + ( - 45 ) ) AS col2
----
45

query II rowsort
SELECT 14 + - + 77 AS col1, - 8
----
-63
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT ALL MAX( 45 ) - 86 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL MAX ( 45 ) - 86 AS col2
----
-41

query II rowsort
SELECT + 54 col0, 96
----
54
96

query I rowsort
SELECT 4 * - 55 AS col1
----
-220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6882
SELECT - CAST( NULL AS SIGNED ) * COALESCE ( - 18, 94 ) * - + 87 + + - 50 + + + CAST( NULL AS SIGNED ) - 63 / + 36 * + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6882
SELECT - CAST ( NULL AS INTEGER ) * COALESCE ( - 18, 94 ) * - + 87 + + - 50 + + + CAST ( NULL AS INTEGER ) - 63 / + 36 * + 52 AS col2
----
NULL

query I rowsort
SELECT ALL - + ( + 37 ) AS col2
----
-37

query I rowsort
SELECT ALL - + ( 48 ) col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL - + COUNT( ALL 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL - + COUNT ( ALL 26 )
----
-1

query I rowsort
SELECT ALL - + ( - 27 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT - 52 + + + MAX( DISTINCT + + 73 ) + - 55 + + - 13 * + + 70 * + + COUNT( * )
----
-944

skipif mysql # not compatible
query I rowsort label-6887
SELECT - 52 + + + MAX ( DISTINCT + + 73 ) + - 55 + + - 13 * + + 70 * + + COUNT ( * )
----
-944

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT DISTINCT - COUNT( * ) * + + 41 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT - COUNT ( * ) * + + 41 AS col1
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6889
SELECT - 9 DIV - - 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6889
SELECT - 9 / - - 21 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT - 79 * - COUNT( * ) + - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-6890
SELECT - 79 * - COUNT ( * ) + - COUNT ( * )
----
78

query I rowsort
SELECT + 18 + 8
----
26

query II rowsort
SELECT - - 51, - 37 col0
----
51
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT - ( - 4 ) * + COUNT( * ) * - 61
----
-244

skipif mysql # not compatible
query I rowsort label-6893
SELECT - ( - 4 ) * + COUNT ( * ) * - 61
----
-244

query I rowsort
SELECT + 1 - + - 65
----
66

query II rowsort
SELECT ALL + 84 AS col2, + 65 col1
----
84
65

query I rowsort
SELECT ALL - + 20 + + 90 * - 36
----
-3260

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6897
SELECT DISTINCT + + 58 * CAST( NULL AS DECIMAL ) - + + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT + + 58 * CAST ( NULL AS REAL ) - + + 38 AS col0
----
NULL

query I rowsort
SELECT + ( + 95 ) * - 16 AS col2
----
-1520

query I rowsort
SELECT - 68 + - 9 AS col2
----
-77

query I rowsort
SELECT 50 + 92 * - ( - 54 )
----
5018

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT ALL 25 + + + SUM( DISTINCT - + 30 ) * - 84 - - 17 + - 80 * 3 AS col1
----
2322

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL 25 + + + SUM ( DISTINCT - + 30 ) * - 84 - - 17 + - 80 * 3 AS col1
----
2322

query I rowsort
SELECT DISTINCT - 6 + - 8
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT ALL MAX( - 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL MAX ( - 27 ) AS col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6904
SELECT 69 * + 53 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT 69 * + 53 * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT 9 + 3 AS col1
----
12

query I rowsort
SELECT DISTINCT - 7 * - 63 AS col0
----
441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6907
SELECT ALL 44 + ( + - 53 ) * COUNT( * ) DIV + 61 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL 44 + ( + - 53 ) * COUNT ( * ) / + 61 AS col0
----
44

query I rowsort
SELECT ALL - 89 * ( + 83 )
----
-7387

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT ALL MAX( + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL MAX ( + 38 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT CASE + 85 WHEN + COUNT( * ) THEN 30 * + 77 ELSE MAX( ALL - - NULLIF ( 66, 51 / - 69 ) ) END AS col1
----
66

skipif mysql # not compatible
query I rowsort label-6910
SELECT CASE + 85 WHEN + COUNT ( * ) THEN 30 * + 77 ELSE MAX ( ALL - - NULLIF ( 66, 51 / - 69 ) ) END AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6911
SELECT ALL 34 * - CAST( + CAST( - 87 AS SIGNED ) AS SIGNED ) * 98 - + COUNT( * ) AS col2
----
289883

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL 34 * - CAST ( + CAST ( - 87 AS INTEGER ) AS INTEGER ) * 98 - + COUNT ( * ) AS col2
----
289883

onlyif mysql # aggregate syntax: 
query II rowsort label-6912
SELECT + MAX( ALL - 7 ) AS col2, + 10 col2
----
-7
10

skipif mysql # not compatible
query II rowsort label-6912
SELECT + MAX ( ALL - 7 ) AS col2, + 10 col2
----
-7
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT MIN( - 14 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-6913
SELECT MIN ( - 14 ) AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT COALESCE ( COALESCE ( 57, 67 + + + 59 ), - + COALESCE ( 51, + 12, + 34 ) ) DIV + 4 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6914
SELECT COALESCE ( COALESCE ( 57, 67 + + + 59 ), - + COALESCE ( 51, + 12, + 34 ) ) / + 4 AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT DISTINCT ( - 4 ) DIV - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT ( - 4 ) / - 48 AS col0
----
0

query I rowsort
SELECT ALL 53 * + 39 + + 52 * - 0
----
2067

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6917
SELECT + COUNT( * ) DIV + + 31 * - 85 + + ( - 3 ) DIV - ( - - 78 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6917
SELECT + COUNT ( * ) / + + 31 * - 85 + + ( - 3 ) / - ( - - 78 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6918
SELECT + COUNT( * ) - + - 94 DIV 40
----
3

skipif mysql # not compatible
query I rowsort label-6918
SELECT + COUNT ( * ) - + - 94 / 40
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT + SUM( ALL - - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-6919
SELECT + SUM ( ALL - - 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT + - 11 * + 42 * CASE - 17 WHEN + COUNT( + + 83 ) THEN 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6920
SELECT + - 11 * + 42 * CASE - 17 WHEN + COUNT ( + + 83 ) THEN 85 END
----
NULL

query I rowsort
SELECT + 68 * 99 + + 84 + + 36 * - + ( 98 ) + - - ( + - 82 ) AS col2
----
3206

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT - ( 26 ) * + 21 + - COALESCE ( + + COUNT( * ), - - COUNT( * ) * - - 33 - CASE - 87 WHEN + - ( 43 ) THEN NULL ELSE + 46 * 23 + + + 90 END * + - 24 + - 13 + - - COUNT( * ) * + + 21, - 97 ) AS col1
----
-547

skipif mysql # not compatible
query I rowsort label-6922
SELECT - ( 26 ) * + 21 + - COALESCE ( + + COUNT ( * ), - - COUNT ( * ) * - - 33 - CASE - 87 WHEN + - ( 43 ) THEN NULL ELSE + 46 * 23 + + + 90 END * + - 24 + - 13 + - - COUNT ( * ) * + + 21, - 97 ) AS col1
----
-547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6923
SELECT - + CASE 24 WHEN COALESCE ( + 56, - ( + - 5 ) + - NULLIF ( MAX( DISTINCT - 68 ), + 48 + 54 ) + - 49, 13 ) * - 61 THEN - 25 * - + 14 * - 21 + + 98 WHEN - 73 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - 76 END / - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6923
SELECT - + CASE 24 WHEN COALESCE ( + 56, - ( + - 5 ) + - NULLIF ( MAX ( DISTINCT - 68 ), + 48 + 54 ) + - 49, 13 ) * - 61 THEN - 25 * - + 14 * - 21 + + 98 WHEN - 73 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - 76 END / - 91
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6924
SELECT ALL + - CASE 47 WHEN + - NULLIF ( 38, + 56 ) * + 43 + + COUNT( + - 21 ) * 31 THEN COUNT( * ) WHEN 40 THEN NULL ELSE NULL END + - + CAST( NULL AS SIGNED ) AS col0, 34
----
NULL
34

skipif mysql # not compatible
query II rowsort label-6924
SELECT ALL + - CASE 47 WHEN + - NULLIF ( 38, + 56 ) * + 43 + + COUNT ( + - 21 ) * 31 THEN COUNT ( * ) WHEN 40 THEN NULL ELSE NULL END + - + CAST ( NULL AS INTEGER ) AS col0, 34
----
NULL
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6925
SELECT DISTINCT - 20 * 19 DIV + COUNT( * ) AS col0
----
-380

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT - 20 * 19 / + COUNT ( * ) AS col0
----
-380

query I rowsort
SELECT ALL + 65 * + COALESCE ( - 41, + - 44 ) AS col1
----
-2665

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT - CASE - - 65 WHEN + - 50 THEN - - 70 ELSE NULLIF ( + 50, + - 81 * - 18 + - 12 ) END DIV - 37 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6927
SELECT - CASE - - 65 WHEN + - 50 THEN - - 70 ELSE NULLIF ( + 50, + - 81 * - 18 + - 12 ) END / - 37 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6928
SELECT - 86 DIV + 28 col0
----
-3

skipif mysql # not compatible
query I rowsort label-6928
SELECT - 86 / + 28 col0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6929
SELECT ALL - AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) - - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL - AVG ( DISTINCT + CAST ( NULL AS REAL ) ) - - 37 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 20 * - 48
----
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT - CAST( - - 57 AS SIGNED ) - - - 14
----
-71

skipif mysql # not compatible
query I rowsort label-6931
SELECT - CAST ( - - 57 AS INTEGER ) - - - 14
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT DISTINCT + COUNT( * ) / + CASE - 18 WHEN - MIN( + 94 ) THEN + 12 ELSE NULL END * - 2 / + MAX( 30 ) + - MAX( - - 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT + COUNT ( * ) / + CASE - 18 WHEN - MIN ( + 94 ) THEN + 12 ELSE NULL END * - 2 / + MAX ( 30 ) + - MAX ( - - 16 )
----
NULL

query II rowsort
SELECT 11 AS col2, - 76 * 96 * 3
----
11
-21888

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6934
SELECT 46 AS col1, + COUNT( * ) DIV - + COUNT( * )
----
46
-1

skipif mysql # not compatible
query II rowsort label-6934
SELECT 46 AS col1, + COUNT ( * ) / - + COUNT ( * )
----
46
-1

query I rowsort
SELECT + 97 * + ( + 43 ) AS col1
----
4171

query I rowsort
SELECT ALL - 58 * 52 AS col1
----
-3016

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT - 67 + + ( + + 11 ) * + COUNT( * ) + + 31 * 35 * + COUNT( * ) * + 45 * NULLIF ( 53, - 12 ) + + 10 AS col2
----
2587679

skipif mysql # not compatible
query I rowsort label-6937
SELECT - 67 + + ( + + 11 ) * + COUNT ( * ) + + 31 * 35 * + COUNT ( * ) * + 45 * NULLIF ( 53, - 12 ) + + 10 AS col2
----
2587679

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT - 98 * + + COUNT( * ) - + - ( - 71 ) + 13 + 2
----
-154

skipif mysql # not compatible
query I rowsort label-6938
SELECT - 98 * + + COUNT ( * ) - + - ( - 71 ) + 13 + 2
----
-154

query II rowsort
SELECT + 98, + 24 * - 81 + + 61 AS col0
----
98
-1883

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT - 43 + COUNT( * ) - 36 + - 88 * - 70
----
6082

skipif mysql # not compatible
query I rowsort label-6940
SELECT - 43 + COUNT ( * ) - 36 + - 88 * - 70
----
6082

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT - 61 * - - COUNT( * ) * - 30
----
1830

skipif mysql # not compatible
query I rowsort label-6941
SELECT - 61 * - - COUNT ( * ) * - 30
----
1830

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL + MIN( DISTINCT - 93 ) * - 89
----
8277

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL + MIN ( DISTINCT - 93 ) * - 89
----
8277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6943
SELECT 31 * COUNT( * ) + CASE - COUNT( * ) WHEN - SUM( ALL + CAST( NULL AS SIGNED ) ) THEN 5 WHEN - 65 THEN NULL ELSE NULL END - 62 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT 31 * COUNT ( * ) + CASE - COUNT ( * ) WHEN - SUM ( ALL + CAST ( NULL AS INTEGER ) ) THEN 5 WHEN - 65 THEN NULL ELSE NULL END - 62 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 28 * - + 92 * + 84 * + - 60 - - 73
----
12983113

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6945
SELECT + + 1 * COALESCE ( 74, - 57 DIV - - 86 DIV + 67 + + CAST( 35 AS SIGNED ), - 8 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-6945
SELECT + + 1 * COALESCE ( 74, - 57 / - - 86 / + 67 + + CAST ( 35 AS INTEGER ), - 8 ) AS col2
----
74

query II rowsort
SELECT ALL + + 8, + 54 AS col1
----
8
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT + MAX( DISTINCT - + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-6947
SELECT + MAX ( DISTINCT - + 95 )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6948
SELECT ALL ( COUNT( * ) ) DIV - 2 + + 67 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL ( COUNT ( * ) ) / - 2 + + 67 / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT - 37 * CASE 65 WHEN - 83 + - 66 THEN NULL WHEN + AVG ( - + 46 ) * + - 39 + - 62 * COUNT( * ) THEN NULL WHEN + 10 * 76 + + 28 THEN + 49 - + + 94 END * + 45 + + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-6949
SELECT - 37 * CASE 65 WHEN - 83 + - 66 THEN NULL WHEN + AVG ( - + 46 ) * + - 39 + - 62 * COUNT ( * ) THEN NULL WHEN + 10 * 76 + + 28 THEN + 49 - + + 94 END * + 45 + + + 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6950
SELECT ALL ( - 39 ) * + - 90 * CASE + - ( - 18 ) WHEN 36 * SUM( DISTINCT + 66 ) THEN NULL ELSE + - 89 + - COALESCE ( - 84, + 25 DIV + 21 ) END * + 92 AS col2
----
-1614600

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL ( - 39 ) * + - 90 * CASE + - ( - 18 ) WHEN 36 * SUM ( DISTINCT + 66 ) THEN NULL ELSE + - 89 + - COALESCE ( - 84, + 25 / + 21 ) END * + 92 AS col2
----
-1614600

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ALL + + COUNT( * ) * + - 36 + + - 65
----
-101

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL + + COUNT ( * ) * + - 36 + + - 65
----
-101

query I rowsort
SELECT DISTINCT + + 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6953
SELECT ALL 57 * - - COALESCE ( + 0, + 58 ) + + 4 * 68, + 64 * COUNT( * ) AS col1
----
272
64

skipif mysql # not compatible
query II rowsort label-6953
SELECT ALL 57 * - - COALESCE ( + 0, + 58 ) + + 4 * 68, + 64 * COUNT ( * ) AS col1
----
272
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6954
SELECT + + CASE + 34 WHEN - 92 + + - SUM( ALL + 81 ) THEN NULL ELSE 30 END + - ( - 81 ) AS col2, - 68 AS col2
----
111
-68

skipif mysql # not compatible
query II rowsort label-6954
SELECT + + CASE + 34 WHEN - 92 + + - SUM ( ALL + 81 ) THEN NULL ELSE 30 END + - ( - 81 ) AS col2, - 68 AS col2
----
111
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6955
SELECT ALL 41 * + 47 + - NULLIF ( - CASE + COUNT( * ) WHEN - 7 THEN 20 ELSE NULL END, + 97 + - + MAX( ALL + CAST( NULL AS SIGNED ) ) * + + 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL 41 * + 47 + - NULLIF ( - CASE + COUNT ( * ) WHEN - 7 THEN 20 ELSE NULL END, + 97 + - + MAX ( ALL + CAST ( NULL AS INTEGER ) ) * + + 95 ) AS col1
----
NULL

query II rowsort
SELECT 65, - 52 AS col1
----
65
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT + 45 * - 63 * - CAST( - + 70 AS SIGNED ) + + - 28 col2
----
-198478

skipif mysql # not compatible
query I rowsort label-6957
SELECT + 45 * - 63 * - CAST ( - + 70 AS INTEGER ) + + - 28 col2
----
-198478

query II rowsort
SELECT ALL - 70 col1, - 82 AS col1
----
-70
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6959
SELECT + 30 + 0 * COUNT( * ) + - 90 DIV + 52
----
29

skipif mysql # not compatible
query I rowsort label-6959
SELECT + 30 + 0 * COUNT ( * ) + - 90 / + 52
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-6960
SELECT - 87 - + + MAX( DISTINCT 20 ) + 44, 40 AS col2
----
-63
40

skipif mysql # not compatible
query II rowsort label-6960
SELECT - 87 - + + MAX ( DISTINCT 20 ) + 44, 40 AS col2
----
-63
40

query I rowsort
SELECT - 45 * 94
----
-4230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT - CAST( - 54 AS SIGNED ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6962
SELECT - CAST ( - 54 AS INTEGER ) AS col0
----
54

query I rowsort
SELECT + 51 + + + 54 * 41 col2
----
2265

query I rowsort
SELECT + ( - - 82 ) * 25 * 13 AS col1
----
26650

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ALL + 34 * - + COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL + 34 * - + COUNT ( * )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6966
SELECT - 27 + - - 37 DIV COALESCE ( + MAX( ALL - + 98 ), - NULLIF ( - - SUM( DISTINCT + + ( + 89 ) ), - 73 + SUM( + 70 ) * 8 ), + + 7 * 39 * - 50 + 87 * - NULLIF ( + + 20, - 16 + + AVG ( + 84 ) ) + - 67 + - 51 DIV - + 66 + - - 22 DIV 34 * 39 ) - + - 9 col1, 22 AS col1
----
-18
22

skipif mysql # not compatible
query II rowsort label-6966
SELECT - 27 + - - 37 / COALESCE ( + MAX ( ALL - + 98 ), - NULLIF ( - - SUM ( DISTINCT + + ( + 89 ) ), - 73 + SUM ( + 70 ) * 8 ), + + 7 * 39 * - 50 + 87 * - NULLIF ( + + 20, - 16 + + AVG ( + 84 ) ) + - 67 + - 51 / - + 66 + - - 22 / 34 * 39 ) - + - 9 col1, 22 AS col1
----
-18
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT ALL COUNT( * ) - 47 * 95 AS col1
----
-4464

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL COUNT ( * ) - 47 * 95 AS col1
----
-4464

query I rowsort
SELECT + ( - 50 ) * + ( 31 )
----
-1550

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT - 79 * + MIN( + 31 )
----
-2449

skipif mysql # not compatible
query I rowsort label-6969
SELECT - 79 * + MIN ( + 31 )
----
-2449

query I rowsort
SELECT - 43 * - 3 AS col2
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6971
SELECT 20 DIV + + 46 DIV + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6971
SELECT 20 / + + 46 / + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6972
SELECT ALL CASE + 24 WHEN - SUM( - + 41 ) THEN NULL ELSE + 7 DIV 24 END * - 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL CASE + 24 WHEN - SUM ( - + 41 ) THEN NULL ELSE + 7 / 24 END * - 30 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT ALL COUNT( * ) * - 74 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL COUNT ( * ) * - 74 AS col2
----
-74

query II rowsort
SELECT ALL - 72 + - + 28 * + 84 + 9 * + 14 - - 95 + - + NULLIF ( - 36, 17 ), - 65 AS col0
----
-2167
-65

query II rowsort
SELECT DISTINCT - + ( + + 10 ) AS col1, 39
----
-10
39

query II rowsort
SELECT ALL + + 93 + - - 98, - 25 AS col1
----
191
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6977
SELECT ALL - 25 + + CAST( + COALESCE ( 28, 71 ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL - 25 + + CAST ( + COALESCE ( 28, 71 ) AS INTEGER )
----
3

query I rowsort
SELECT 26 * - 4
----
-104

query I rowsort
SELECT DISTINCT + - 1 + 58 AS col0
----
57

query I rowsort
SELECT ALL - NULLIF ( 56, - 0 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT - COUNT( * ) + - 60 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6981
SELECT - COUNT ( * ) + - 60 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT DISTINCT 87 * - COUNT( * ) * 99
----
-8613

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT 87 * - COUNT ( * ) * 99
----
-8613

onlyif mysql # DIV for integer division: 
query I rowsort label-6983
SELECT DISTINCT - 48 DIV - 19
----
2

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT - 48 / - 19
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6984
SELECT 98 DIV + 97
----
1

skipif mysql # not compatible
query I rowsort label-6984
SELECT 98 / + 97
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ALL SUM( ALL - 17 ) * COUNT( DISTINCT - 44 )
----
-17

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL SUM ( ALL - 17 ) * COUNT ( DISTINCT - 44 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT DISTINCT COUNT( * ) * + 5 col0
----
5

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT COUNT ( * ) * + 5 col0
----
5

query I rowsort
SELECT 94 - 42 * - 21 AS col1
----
976

query II rowsort
SELECT ALL 85 AS col1, 36 AS col2
----
85
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT DISTINCT MIN( ALL - 85 ) * - - 10
----
-850

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT MIN ( ALL - 85 ) * - - 10
----
-850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT CAST( NULL AS SIGNED ) * + + NULLIF ( - ( + + 28 ), + - 2 ) * - + 69 / 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT CAST ( NULL AS INTEGER ) * + + NULLIF ( - ( + + 28 ), + - 2 ) * - + 69 / 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT ALL NULLIF ( - 9, 32 ) + + + COUNT( + 78 ) + 0 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL NULLIF ( - 9, 32 ) + + + COUNT ( + 78 ) + 0 AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6992
SELECT CAST( NULL AS SIGNED ) - + - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT CAST ( NULL AS INTEGER ) - + - 80 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6993
SELECT ALL - 40 + + - 19 * + 64 DIV COUNT( * ) * - 34 AS col2
----
41304

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL - 40 + + - 19 * + 64 / COUNT ( * ) * - 34 AS col2
----
41304

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT NULLIF ( + - 48, + 46 ) - - COUNT( * ) + + 57 * + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-6994
SELECT NULLIF ( + - 48, + 46 ) - - COUNT ( * ) + + 57 * + COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6995
SELECT ALL 50 AS col0, + 20 * - 62 + - + ( + + CASE + 98 WHEN 96 * - 2 * + - COUNT( * ) * + 36 THEN + + COALESCE ( NULLIF ( - + 4, + 38 ), - 32, + 33 * - 94 + + - 43 ) WHEN + 58 THEN NULL ELSE COUNT( * ) END )
----
50
-1241

skipif mysql # not compatible
query II rowsort label-6995
SELECT ALL 50 AS col0, + 20 * - 62 + - + ( + + CASE + 98 WHEN 96 * - 2 * + - COUNT ( * ) * + 36 THEN + + COALESCE ( NULLIF ( - + 4, + 38 ), - 32, + 33 * - 94 + + - 43 ) WHEN + 58 THEN NULL ELSE COUNT ( * ) END )
----
50
-1241

onlyif mysql # DIV for integer division: 
query I rowsort label-6996
SELECT DISTINCT 78 DIV 39 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT 78 / 39 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT 13 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT 13 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 48 * - 18 AS col2
----
-864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6999
SELECT ALL CASE 14 WHEN + 46 * - 54 * 68 * - CAST( NULL AS SIGNED ) * 50 THEN + ( + 11 ) END + - 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL CASE 14 WHEN + 46 * - 54 * 68 * - CAST ( NULL AS INTEGER ) * 50 THEN + ( + 11 ) END + - 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT + SUM( + - 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-7000
SELECT + SUM ( + - 39 ) AS col1
----
-39

query I rowsort
SELECT + 69 * + + 54
----
3726

onlyif mysql # DIV for integer division: 
query I rowsort label-7002
SELECT 71 + + 81 + - 25 DIV + ( - + 63 )
----
152

skipif mysql # not compatible
query I rowsort label-7002
SELECT 71 + + 81 + - 25 / + ( - + 63 )
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-7003
SELECT ALL - + COUNT( * ), - 5 AS col1
----
-1
-5

skipif mysql # not compatible
query II rowsort label-7003
SELECT ALL - + COUNT ( * ), - 5 AS col1
----
-1
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT + - COALESCE ( 13, - - 3 + - COUNT( * ) ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7004
SELECT + - COALESCE ( 13, - - 3 + - COUNT ( * ) ) AS col2
----
-13

query I rowsort
SELECT ALL + 18 * + + 97
----
1746

onlyif mysql # aggregate syntax: 
query II rowsort label-7006
SELECT DISTINCT - - 30 AS col0, COUNT( * ) + - 44 * + 39 * 94 * - ( 55 )
----
30
8871721

skipif mysql # not compatible
query II rowsort label-7006
SELECT DISTINCT - - 30 AS col0, COUNT ( * ) + - 44 * + 39 * 94 * - ( 55 )
----
30
8871721

query I rowsort
SELECT DISTINCT 74 + - - 86
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7008
SELECT ALL + NULLIF ( + + COALESCE ( - + ( 66 ), - CAST( + COALESCE ( - ( - - 56 ), + 40 * - NULLIF ( - 76, 76 ) + - CAST( NULL AS SIGNED ) ) AS SIGNED ) * - 51, - - 13 * - 79 + - 42, - + COUNT( * ) ), - MAX( ALL - + 14 ) ) + NULLIF ( - - ( + 67 ), + - 53 + + COUNT( * ) ) * 27 AS col0
----
1743

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL + NULLIF ( + + COALESCE ( - + ( 66 ), - CAST ( + COALESCE ( - ( - - 56 ), + 40 * - NULLIF ( - 76, 76 ) + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - 51, - - 13 * - 79 + - 42, - + COUNT ( * ) ), - MAX ( ALL - + 14 ) ) + NULLIF ( - - ( + 67 ), + - 53 + + COUNT ( * ) ) * 27 AS col0
----
1743

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT DISTINCT - + MAX( - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT - + MAX ( - 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT - NULLIF ( NULLIF ( 68, + 29 ), + - COALESCE ( + - 87, - 52 + + + COALESCE ( - + 14, 20, - 19 + 22 ) + - - 36, + NULLIF ( 98, + - 29 * - NULLIF ( - 78, + 26 ) / + - 89 + ( - COUNT( 90 ) ) * MAX( ALL + 27 ) * + 71 ) ) ) + - COUNT( * ) + - 61
----
-130

skipif mysql # not compatible
query I rowsort label-7010
SELECT - NULLIF ( NULLIF ( 68, + 29 ), + - COALESCE ( + - 87, - 52 + + + COALESCE ( - + 14, 20, - 19 + 22 ) + - - 36, + NULLIF ( 98, + - 29 * - NULLIF ( - 78, + 26 ) / + - 89 + ( - COUNT ( 90 ) ) * MAX ( ALL + 27 ) * + 71 ) ) ) + - COUNT ( * ) + - 61
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7011
SELECT + 85 + - COUNT( * ) DIV - - 68 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-7011
SELECT + 85 + - COUNT ( * ) / - - 68 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT 20 * - COUNT( DISTINCT + 96 ) * - + 76 * - 44 AS col2
----
-66880

skipif mysql # not compatible
query I rowsort label-7012
SELECT 20 * - COUNT ( DISTINCT + 96 ) * - + 76 * - 44 AS col2
----
-66880

query I rowsort
SELECT 63 * - + 60
----
-3780

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT DISTINCT + - 73 - - - 83 DIV 43 * - 65 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7014
SELECT DISTINCT + - 73 - - - 83 / 43 * - 65 AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7015
SELECT ALL - - SUM( ALL 99 ) * + CAST( NULL AS SIGNED ), 34 * - - 45 + - ( 81 ) + - 96 + + 71 col1
----
NULL
1424

skipif mysql # not compatible
query II rowsort label-7015
SELECT ALL - - SUM ( ALL 99 ) * + CAST ( NULL AS INTEGER ), 34 * - - 45 + - ( 81 ) + - 96 + + 71 col1
----
NULL
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT 95 + - - 31 + 18 * + - COUNT( * ) * 41 AS col0
----
-612

skipif mysql # not compatible
query I rowsort label-7016
SELECT 95 + - - 31 + 18 * + - COUNT ( * ) * 41 AS col0
----
-612

query I rowsort
SELECT DISTINCT - 61 - + 0 AS col1
----
-61

query I rowsort
SELECT 4 + 10 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT ALL - COUNT( * ) * 79 col0
----
-79

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL - COUNT ( * ) * 79 col0
----
-79

query I rowsort
SELECT 78 * - 99
----
-7722

query I rowsort
SELECT 85 + - + 92
----
-7

query I rowsort
SELECT 94 + + + COALESCE ( - 23, - 84, - 97 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7023
SELECT 33 DIV - + 96 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7023
SELECT 33 / - + 96 * - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7024
SELECT 4 + + CAST( + 65 AS SIGNED ) * - 48 col0
----
-3116

skipif mysql # not compatible
query I rowsort label-7024
SELECT 4 + + CAST ( + 65 AS INTEGER ) * - 48 col0
----
-3116

query I rowsort
SELECT 39 + - 20 - + 14 AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7026
SELECT ALL 80 AS col1, + MIN( - ( 63 ) ) DIV ( 57 ) - - 12 AS col1
----
80
11

skipif mysql # not compatible
query II rowsort label-7026
SELECT ALL 80 AS col1, + MIN ( - ( 63 ) ) / ( 57 ) - - 12 AS col1
----
80
11

onlyif mysql # DIV for integer division: 
query II rowsort label-7027
SELECT ALL + 72 + - + 20 DIV ( - 77 ) col0, 14 * - 95 AS col2
----
72
-1330

skipif mysql # not compatible
query II rowsort label-7027
SELECT ALL + 72 + - + 20 / ( - 77 ) col0, 14 * - 95 AS col2
----
72
-1330

onlyif mysql # aggregate syntax: 
query II rowsort label-7028
SELECT + COUNT( * ) + - 56 col1, 18 + + 54
----
-55
72

skipif mysql # not compatible
query II rowsort label-7028
SELECT + COUNT ( * ) + - 56 col1, 18 + + 54
----
-55
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7029
SELECT DISTINCT COUNT( + 87 ) * - 4 * + + 89 AS col1, - ( CAST( + + 75 AS SIGNED ) ) col2
----
-356
-75

skipif mysql # not compatible
query II rowsort label-7029
SELECT DISTINCT COUNT ( + 87 ) * - 4 * + + 89 AS col1, - ( CAST ( + + 75 AS INTEGER ) ) col2
----
-356
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7030
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 10 + - 29 * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 10 + - 29 * 79
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7031
SELECT 80, + SUM( + 2 ) AS col1
----
80
2

skipif mysql # not compatible
query II rowsort label-7031
SELECT 80, + SUM ( + 2 ) AS col1
----
80
2

query I rowsort
SELECT ALL 72 + 75 + 16 AS col2
----
163

query I rowsort
SELECT + 84 + - ( + 16 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT - - COALESCE ( 15, - 80 * + COUNT( + - ( - 75 ) ) - + - CASE - 74 WHEN + - 75 * - ( + 50 ) - - 48 THEN 21 END ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7034
SELECT - - COALESCE ( 15, - 80 * + COUNT ( + - ( - 75 ) ) - + - CASE - 74 WHEN + - 75 * - ( + 50 ) - - 48 THEN 21 END ) AS col1
----
15

query I rowsort
SELECT DISTINCT NULLIF ( + + ( + 7 ), - - 6 / + 60 * + - ( + - 2 ) )
----
7

query I rowsort
SELECT ALL - 89 + + + 38 * 77
----
2837

query II rowsort
SELECT - 69, + 30 AS col1
----
-69
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT ALL 24 + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL 24 + + COUNT ( * )
----
25

query II rowsort
SELECT - 19 AS col1, - 16
----
-19
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT + + 87 + - CASE + COALESCE ( 51, + 61 + + 81 ) WHEN + - ( - 73 ) / + + 57 THEN NULL WHEN 41 THEN - COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7040
SELECT + + 87 + - CASE + COALESCE ( 51, + 61 + + 81 ) WHEN + - ( - 73 ) / + + 57 THEN NULL WHEN 41 THEN - COUNT ( * ) ELSE NULL END col1
----
NULL

query II rowsort
SELECT + 7 * + 71 AS col0, 49 * - 38
----
497
-1862

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7042
SELECT + - 12 + - + 13 + - 38 DIV - 35 AS col0, COUNT( * ) * + 54
----
-24
54

skipif mysql # not compatible
query II rowsort label-7042
SELECT + - 12 + - + 13 + - 38 / - 35 AS col0, COUNT ( * ) * + 54
----
-24
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7043
SELECT ALL - CAST( NULL AS SIGNED ) / - 48 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL - CAST ( NULL AS INTEGER ) / - 48 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + - MAX( 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-7044
SELECT + - MAX ( 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT ALL COUNT( * ) * + COUNT( * ) + + 87 * ( - COUNT( * ) ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL COUNT ( * ) * + COUNT ( * ) + + 87 * ( - COUNT ( * ) ) AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7046
SELECT COUNT( * ) DIV - 3 + + 51 * - 90 * + 74 AS col2
----
-339660

skipif mysql # not compatible
query I rowsort label-7046
SELECT COUNT ( * ) / - 3 + + 51 * - 90 * + 74 AS col2
----
-339660

query II rowsort
SELECT + - 65 AS col1, 83 + + - 59 + - 74 + - ( + 57 ) * + 43 AS col1
----
-65
-2501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7048
SELECT + 9 / COUNT( * ) * - + CAST( NULL AS SIGNED ) * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7048
SELECT + 9 / COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT DISTINCT + COUNT( ALL - 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT + COUNT ( ALL - 93 ) AS col2
----
1

query I rowsort
SELECT ALL 93 * - 85 * - 75 + COALESCE ( 3, NULLIF ( - 2, + - 83 ) )
----
592878

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT - 87 - COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7051
SELECT - 87 - COUNT ( * ) AS col1
----
-88

query I rowsort
SELECT - 80 * + 46 * + 5 * + 40
----
-736000

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT COALESCE ( - 23, + COUNT( * ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7053
SELECT COALESCE ( - 23, + COUNT ( * ) ) AS col1
----
-23

query I rowsort
SELECT ALL 8 * + - 32 * + 36 + + 5
----
-9211

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT - 44 * - - MIN( DISTINCT - 5 )
----
220

skipif mysql # not compatible
query I rowsort label-7055
SELECT - 44 * - - MIN ( DISTINCT - 5 )
----
220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7056
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * + - COUNT( * ) * + + 88 DIV + ( 42 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * + - COUNT ( * ) * + + 88 / + ( 42 ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7057
SELECT DISTINCT + 23 * CAST( - + 94 AS SIGNED ) + + 71
----
-2091

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT + 23 * CAST ( - + 94 AS INTEGER ) + + 71
----
-2091

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7058
SELECT ALL - 13 * 13 AS col0, - 90 * - 92 + 68 - + CAST( NULL AS SIGNED ) AS col1
----
-169
NULL

skipif mysql # not compatible
query II rowsort label-7058
SELECT ALL - 13 * 13 AS col0, - 90 * - 92 + 68 - + CAST ( NULL AS INTEGER ) AS col1
----
-169
NULL

query I rowsort
SELECT - 2 - - NULLIF ( - 92, 35 ) AS col2
----
-94

query I rowsort
SELECT - COALESCE ( + 35, - 67 ) AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7061
SELECT - 55 + - 84 DIV - + 79
----
-54

skipif mysql # not compatible
query I rowsort label-7061
SELECT - 55 + - 84 / - + 79
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7062
SELECT ALL - NULLIF ( 59, NULLIF ( - - 77, COUNT( * ) / - 14 ) ) + + - CASE - + 62 WHEN 13 THEN - + COUNT( * ) * - CASE 64 WHEN - 2 THEN - - 93 * + 84 * 69 * - 86 * - 22 ELSE NULL END * + CAST( - COUNT( * ) AS SIGNED ) * - 53 WHEN - 81 THEN 24 * 93 - + - 74 ELSE + - 41 END AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL - NULLIF ( 59, NULLIF ( - - 77, COUNT ( * ) / - 14 ) ) + + - CASE - + 62 WHEN 13 THEN - + COUNT ( * ) * - CASE 64 WHEN - 2 THEN - - 93 * + 84 * 69 * - 86 * - 22 ELSE NULL END * + CAST ( - COUNT ( * ) AS INTEGER ) * - 53 WHEN - 81 THEN 24 * 93 - + - 74 ELSE + - 41 END AS col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7063
SELECT DISTINCT 25 DIV + 31 col0, - COUNT( ALL + 5 ) * + - 7
----
0
7

skipif mysql # not compatible
query II rowsort label-7063
SELECT DISTINCT 25 / + 31 col0, - COUNT ( ALL + 5 ) * + - 7
----
0
7

query I rowsort
SELECT DISTINCT - 60 + 99 * - + 49
----
-4911

onlyif mysql # DIV for integer division: 
query I rowsort label-7065
SELECT ALL + 2 DIV - - 50 col1
----
0

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL + 2 / - - 50 col1
----
0

query I rowsort
SELECT ALL NULLIF ( + 92, + 84 ) - + - 4
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT - 78 - - - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-7067
SELECT - 78 - - - COUNT ( * )
----
-79

query I rowsort
SELECT + 91 + - 31
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7069
SELECT + + 41 * + 46 AS col2, - 73 + ( - 11 ) + 60 * + - 82 DIV - COUNT( 50 )
----
1886
4836

skipif mysql # not compatible
query II rowsort label-7069
SELECT + + 41 * + 46 AS col2, - 73 + ( - 11 ) + 60 * + - 82 / - COUNT ( 50 )
----
1886
4836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-7070
SELECT - + 72 + - CAST( + - COALESCE ( COUNT( * ), - 75, + + 10 * COUNT( * ) * 4 + + - 20 - - 79 ) AS SIGNED ) AS col1, 90 + - COALESCE ( - - CAST( NULL AS SIGNED ), NULLIF ( + - 90, CAST( 50 AS DECIMAL ) ) ) DIV + ( 82 )
----
-71
91

skipif mysql # not compatible
query II rowsort label-7070
SELECT - + 72 + - CAST ( + - COALESCE ( COUNT ( * ), - 75, + + 10 * COUNT ( * ) * 4 + + - 20 - - 79 ) AS INTEGER ) AS col1, 90 + - COALESCE ( - - CAST ( NULL AS INTEGER ), NULLIF ( + - 90, CAST ( 50 AS REAL ) ) ) / + ( 82 )
----
-71
91

query I rowsort
SELECT + - 66 * 39
----
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT + + 22 + + + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7072
SELECT + + 22 + + + COUNT ( * ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7073
SELECT ALL - 16 * - COUNT( * ) - - COALESCE ( + 51, - 8 + COUNT( * ), - CAST( + + COUNT( * ) AS SIGNED ) DIV 18 DIV 15 * - 10 ) col0
----
67

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL - 16 * - COUNT ( * ) - - COALESCE ( + 51, - 8 + COUNT ( * ), - CAST ( + + COUNT ( * ) AS INTEGER ) / 18 / 15 * - 10 ) col0
----
67

query I rowsort
SELECT 56 * - 56 + + 54 + - 70 * 8 AS col0
----
-3642

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7075
SELECT + 60 DIV + CAST( - 5 AS SIGNED ) + - 97 * ( - 21 ) col0
----
2025

skipif mysql # not compatible
query I rowsort label-7075
SELECT + 60 / + CAST ( - 5 AS INTEGER ) + - 97 * ( - 21 ) col0
----
2025

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT + 81 DIV - 74
----
-1

skipif mysql # not compatible
query I rowsort label-7076
SELECT + 81 / - 74
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7077
SELECT + CASE - 59 WHEN 84 - + 75 * + + 95 * - 91 / + SUM( - 3 ) THEN + 68 / + + CASE + ( - 25 ) WHEN + 89 THEN NULL WHEN + + SUM( - ( - 95 ) ) THEN 22 + ( COUNT( * ) ) + 22 * MIN( + 17 ) END + + 99 ELSE - 89 * + + CAST( + 52 AS SIGNED ) + + 75 + + COALESCE ( - 12, + 77, 28 - - 41 + - AVG ( 35 ) * + 34 ) + + 41 + + + COUNT( * ) * + 77 END + - 95 + 55 + - + 68 + + ( + CASE 18 WHEN 79 * 20 THEN + ( NULLIF ( - 5, + 46 ) ) WHEN CASE 98 WHEN 95 THEN + 42 + - 25 * 33 WHEN - 8 THEN 35 * CASE CAST( NULL AS SIGNED ) WHEN 7 THEN NULL ELSE - MAX( - 82 ) + 60 END END * 98 THEN + COUNT( * ) * + COUNT( * ) WHEN 3 + ( + 34 + ( + COUNT( * ) ) ) THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT + CASE - 59 WHEN 84 - + 75 * + + 95 * - 91 / + SUM ( - 3 ) THEN + 68 / + + CASE + ( - 25 ) WHEN + 89 THEN NULL WHEN + + SUM ( - ( - 95 ) ) THEN 22 + ( COUNT ( * ) ) + 22 * MIN ( + 17 ) END + + 99 ELSE - 89 * + + CAST ( + 52 AS INTEGER ) + + 75 + + COALESCE ( - 12, + 77, 28 - - 41 + - AVG ( 35 ) * + 34 ) + + 41 + + + COUNT ( * ) * + 77 END + - 95 + 55 + - + 68 + + ( + CASE 18 WHEN 79 * 20 THEN + ( NULLIF ( - 5, + 46 ) ) WHEN CASE 98 WHEN 95 THEN + 42 + - 25 * 33 WHEN - 8 THEN 35 * CASE CAST ( NULL AS INTEGER ) WHEN 7 THEN NULL ELSE - MAX ( - 82 ) + 60 END END * 98 THEN + COUNT ( * ) * + COUNT ( * ) WHEN 3 + ( + 34 + ( + COUNT ( * ) ) ) THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT DISTINCT COUNT( * ) * - NULLIF ( + 45, - 62 / + COALESCE ( - 27, - 70 + + 14 ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT COUNT ( * ) * - NULLIF ( + 45, - 62 / + COALESCE ( - 27, - 70 + + 14 ) ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT 8 * 13 + + 69 + MAX( + 86 ) AS col2
----
259

skipif mysql # not compatible
query I rowsort label-7079
SELECT 8 * 13 + + 69 + MAX ( + 86 ) AS col2
----
259

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7080
SELECT NULLIF ( COUNT( * ), + 1 * - COUNT( * ) * 73 + + 99 DIV - 98 ) DIV - + 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7080
SELECT NULLIF ( COUNT ( * ), + 1 * - COUNT ( * ) * 73 + + 99 / - 98 ) / - + 13 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7081
SELECT ALL + CASE + - CAST( NULL AS SIGNED ) WHEN COALESCE ( 36, - 44 ) THEN - 99 + + CASE - 37 WHEN - ( - 25 ) + 70 - COUNT( * ) + 84 * + + 31 THEN + MIN( DISTINCT - 79 ) WHEN 48 THEN + - 45 END * + - COUNT( * ) END + - 45 * - COUNT( * ) - - - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL + CASE + - CAST ( NULL AS INTEGER ) WHEN COALESCE ( 36, - 44 ) THEN - 99 + + CASE - 37 WHEN - ( - 25 ) + 70 - COUNT ( * ) + 84 * + + 31 THEN + MIN ( DISTINCT - 79 ) WHEN 48 THEN + - 45 END * + - COUNT ( * ) END + - 45 * - COUNT ( * ) - - - 0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7082
SELECT ALL 27 * COALESCE ( + 12, - 54 DIV - 2 ) AS col2
----
324

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL 27 * COALESCE ( + 12, - 54 / - 2 ) AS col2
----
324

query I rowsort
SELECT 29 + + + 10
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT CAST( NULL AS SIGNED ) * - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7084
SELECT CAST ( NULL AS INTEGER ) * - 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT DISTINCT 62 + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT 62 + COUNT ( * )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7086
SELECT CAST( NULL AS SIGNED ) + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7086
SELECT CAST ( NULL AS INTEGER ) + + 64 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7087
SELECT 64 - + - 70 + - MAX( - - 89 ) + + CAST( NULL AS SIGNED ) * - + 86 * 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7087
SELECT 64 - + - 70 + - MAX ( - - 89 ) + + CAST ( NULL AS INTEGER ) * - + 86 * 99 AS col0
----
NULL

query II rowsort
SELECT ALL 44, + 20 AS col2
----
44
20

query I rowsort
SELECT DISTINCT + 64 * + 69
----
4416

query I rowsort
SELECT ALL - 10 - + 49 * - - ( 82 )
----
-4028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7091
SELECT 73 * + 94 + - CASE - + 49 WHEN + ( + CAST( NULL AS SIGNED ) ) + - 20 * CAST( + 72 AS SIGNED ) THEN 94 WHEN - 40 - - ( + + ( + CAST( NULL AS SIGNED ) ) ) + COUNT( * ) * 41 * - NULLIF ( + + 49, + CAST( NULL AS SIGNED ) ) THEN + 76 / 93 WHEN - ( 20 ) THEN NULL ELSE NULL END + 17 / 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT 73 * + 94 + - CASE - + 49 WHEN + ( + CAST ( NULL AS INTEGER ) ) + - 20 * CAST ( + 72 AS INTEGER ) THEN 94 WHEN - 40 - - ( + + ( + CAST ( NULL AS INTEGER ) ) ) + COUNT ( * ) * 41 * - NULLIF ( + + 49, + CAST ( NULL AS INTEGER ) ) THEN + 76 / 93 WHEN - ( 20 ) THEN NULL ELSE NULL END + 17 / 1
----
NULL

query II rowsort
SELECT ALL 4 AS col2, + 86 + + 15
----
4
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT ALL 23 * + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL 23 * + COUNT ( * )
----
23

query I rowsort
SELECT - + NULLIF ( 45, ( + 94 ) * - - 42 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-7095
SELECT ( - MIN( ALL + 10 ) ) + 96 col0, 18
----
86
18

skipif mysql # not compatible
query II rowsort label-7095
SELECT ( - MIN ( ALL + 10 ) ) + 96 col0, 18
----
86
18

query I rowsort
SELECT 49 * 97 * - 99 col1
----
-470547

query I rowsort
SELECT ALL + 6 * + + 33
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-7098
SELECT 79 DIV 41
----
1

skipif mysql # not compatible
query I rowsort label-7098
SELECT 79 / 41
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7099
SELECT - 98 * + 4 * + + CAST( NULL AS SIGNED ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT - 98 * + 4 * + + CAST ( NULL AS INTEGER ) * 0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7100
SELECT ALL + 13 AS col2, - COUNT( * )
----
13
-1

skipif mysql # not compatible
query II rowsort label-7100
SELECT ALL + 13 AS col2, - COUNT ( * )
----
13
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7101
SELECT + 64 DIV - ( 13 ) AS col1, - 4
----
-4
-4

skipif mysql # not compatible
query II rowsort label-7101
SELECT + 64 / - ( 13 ) AS col1, - 4
----
-4
-4

query II rowsort
SELECT - 38, - 42 + + 99 AS col2
----
-38
57

query I rowsort
SELECT ALL ( + + 41 ) AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7104
SELECT ALL + - NULLIF ( - MIN( DISTINCT 91 ), 72 ) DIV + + 76
----
1

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL + - NULLIF ( - MIN ( DISTINCT 91 ), 72 ) / + + 76
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT - COUNT( DISTINCT 30 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7105
SELECT - COUNT ( DISTINCT 30 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT ALL - 74 * + + 46 + - - 98 + - MIN( 71 )
----
-3377

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL - 74 * + + 46 + - - 98 + - MIN ( 71 )
----
-3377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7107
SELECT 25 + - CAST( - COUNT( * ) AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-7107
SELECT 25 + - CAST ( - COUNT ( * ) AS INTEGER )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7108
SELECT - COALESCE ( 69, + - 39, ( - 23 ) DIV + ( 95 ) + 53 - - 43 + + COUNT( * ) ) * - COUNT( * ) * + 46
----
3174

skipif mysql # not compatible
query I rowsort label-7108
SELECT - COALESCE ( 69, + - 39, ( - 23 ) / + ( 95 ) + 53 - - 43 + + COUNT ( * ) ) * - COUNT ( * ) * + 46
----
3174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7109
SELECT 74 - - 17 + + 3 AS col1, CASE + 10 WHEN 95 + + 94 + - CAST( - 7 AS SIGNED ) THEN - 37 + - + COUNT( * ) + ( 61 ) * + 40 / CASE 51 WHEN + 14 * + AVG ( ALL + ( + 66 ) ) + - 63 + COUNT( * ) + 63 - + + 44 * + COUNT( * ) - - + ( + - 96 ) * - + COALESCE ( + + 30, + 85 * + COUNT( * ) + - + COUNT( 23 ) ) THEN - + NULLIF ( 60, NULLIF ( - + COUNT( ALL + - 37 ), + CASE + 4 WHEN + + 51 THEN ( - NULLIF ( 90, 65 * + 70 ) ) WHEN 44 THEN NULL END * COUNT( 85 ) ) * - 14 ) + 97 END * - COUNT( * ) ELSE NULL END - 39 AS col2
----
94
NULL

skipif mysql # not compatible
query II rowsort label-7109
SELECT 74 - - 17 + + 3 AS col1, CASE + 10 WHEN 95 + + 94 + - CAST ( - 7 AS INTEGER ) THEN - 37 + - + COUNT ( * ) + ( 61 ) * + 40 / CASE 51 WHEN + 14 * + AVG ( ALL + ( + 66 ) ) + - 63 + COUNT ( * ) + 63 - + + 44 * + COUNT ( * ) - - + ( + - 96 ) * - + COALESCE ( + + 30, + 85 * + COUNT ( * ) + - + COUNT ( 23 ) ) THEN - + NULLIF ( 60, NULLIF ( - + COUNT ( ALL + - 37 ), + CASE + 4 WHEN + + 51 THEN ( - NULLIF ( 90, 65 * + 70 ) ) WHEN 44 THEN NULL END * COUNT ( 85 ) ) * - 14 ) + 97 END * - COUNT ( * ) ELSE NULL END - 39 AS col2
----
94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT + COUNT( * ) * + - 5 + - + 24 - + - 74 * + COUNT( ALL + 65 ) * 50
----
3671

skipif mysql # not compatible
query I rowsort label-7110
SELECT + COUNT ( * ) * + - 5 + - + 24 - + - 74 * + COUNT ( ALL + 65 ) * 50
----
3671

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT 4 * + COUNT( * ) * 62 * + 9
----
2232

skipif mysql # not compatible
query I rowsort label-7111
SELECT 4 * + COUNT ( * ) * 62 * + 9
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL + COUNT( * ) + + + 42 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL + COUNT ( * ) + + + 42 AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7113
SELECT ALL - 85 + + 21 + - COUNT( * ) + - 98 AS col0, - 63 * - - COUNT( DISTINCT - 74 ) * 68 AS col1
----
-163
-4284

skipif mysql # not compatible
query II rowsort label-7113
SELECT ALL - 85 + + 21 + - COUNT ( * ) + - 98 AS col0, - 63 * - - COUNT ( DISTINCT - 74 ) * 68 AS col1
----
-163
-4284

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT DISTINCT + NULLIF ( + 17, + - 48 / + - COUNT( * ) * + 19 ) * + 62
----
1054

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT + NULLIF ( + 17, + - 48 / + - COUNT ( * ) * + 19 ) * + 62
----
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT ALL 57 + + MIN( - 74 )
----
-17

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL 57 + + MIN ( - 74 )
----
-17

query I rowsort
SELECT ALL ( 38 ) + 17
----
55

query I rowsort
SELECT ALL - ( + - 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7118
SELECT 33 - - 74 DIV - + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-7118
SELECT 33 - - 74 / - + COUNT ( * )
----
-41

query I rowsort
SELECT ALL 21 + + + 18 AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7120
SELECT DISTINCT 56 + - 69 AS col0, + COUNT( * ) AS col2
----
-13
1

skipif mysql # not compatible
query II rowsort label-7120
SELECT DISTINCT 56 + - 69 AS col0, + COUNT ( * ) AS col2
----
-13
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7121
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 33 / MIN( DISTINCT - 26 ), + 41 / + NULLIF ( + CASE - CAST( ( - COUNT( * ) ) AS SIGNED ) WHEN - 56 + - ( - 80 ) THEN - 53 END, + 6 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7121
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 33 / MIN ( DISTINCT - 26 ), + 41 / + NULLIF ( + CASE - CAST ( ( - COUNT ( * ) ) AS INTEGER ) WHEN - 56 + - ( - 80 ) THEN - 53 END, + 6 )
----
NULL
NULL

query I rowsort
SELECT COALESCE ( + ( 5 ), - 42 ) * + 44 + + - 21 + - 83 - - 18 AS col1
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7123
SELECT CAST( + 51 AS SIGNED ) * - 70 col1
----
-3570

skipif mysql # not compatible
query I rowsort label-7123
SELECT CAST ( + 51 AS INTEGER ) * - 70 col1
----
-3570

query II rowsort
SELECT ALL 49 * - 84 AS col2, 73 col1
----
-4116
73

onlyif mysql # DIV for integer division: 
query II rowsort label-7125
SELECT ALL ( + 24 ) DIV - + 18 + - 26 + + 86 AS col2, 88 + - + 41 AS col1
----
59
47

skipif mysql # not compatible
query II rowsort label-7125
SELECT ALL ( + 24 ) / - + 18 + - 26 + + 86 AS col2, 88 + - + 41 AS col1
----
59
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT DISTINCT COUNT( * ) - - COUNT( * ) - 10
----
-8

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) - 10
----
-8

query I rowsort
SELECT DISTINCT - NULLIF ( 95, - 25 + + - 39 * + 28 * - 11 * - 0 / + + ( - ( - 65 ) ) + + 86 ) AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7128
SELECT CAST( + 19 AS SIGNED ) * - - 42 + + CAST( NULL AS DECIMAL ) - 24 + + 58 + - COUNT( * ) * - - 8 + - 2 * - 56 * + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7128
SELECT CAST ( + 19 AS INTEGER ) * - - 42 + + CAST ( NULL AS REAL ) - 24 + + 58 + - COUNT ( * ) * - - 8 + - 2 * - 56 * + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 2 * - 1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7130
SELECT + 4 * 88, COUNT( * ) + + 78 + + 64 col1
----
352
143

skipif mysql # not compatible
query II rowsort label-7130
SELECT + 4 * 88, COUNT ( * ) + + 78 + + 64 col1
----
352
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT - 13 + - + COALESCE ( NULLIF ( - 94, - NULLIF ( - + 48, + 97 / 44 ) ), 96 + COALESCE ( + 60, + - ( COUNT( * ) ) * - - ( - - 49 ) + - + 75, + + ( - COUNT( * ) ) ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7131
SELECT - 13 + - + COALESCE ( NULLIF ( - 94, - NULLIF ( - + 48, + 97 / 44 ) ), 96 + COALESCE ( + 60, + - ( COUNT ( * ) ) * - - ( - - 49 ) + - + 75, + + ( - COUNT ( * ) ) ) ) AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7132
SELECT 92 DIV - 85
----
-1

skipif mysql # not compatible
query I rowsort label-7132
SELECT 92 / - 85
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT DISTINCT - 19 DIV 19
----
-1

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT - 19 / 19
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7134
SELECT 94 + + - COUNT( * ), 92 AS col2
----
93
92

skipif mysql # not compatible
query II rowsort label-7134
SELECT 94 + + - COUNT ( * ), 92 AS col2
----
93
92

query I rowsort
SELECT - 40 + 41 * + + 87 AS col2
----
3527

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT DISTINCT - NULLIF ( - + 77, MAX( ALL - 68 ) * + - ( - + 77 ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT - NULLIF ( - + 77, MAX ( ALL - 68 ) * + - ( - + 77 ) ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT DISTINCT COUNT( * ) * - 97 * 38 * + 3 AS col0
----
-11058

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT COUNT ( * ) * - 97 * 38 * + 3 AS col0
----
-11058

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT - 89 + - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-7138
SELECT - 89 + - COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7139
SELECT 40 DIV - 57 + - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7139
SELECT 40 / - 57 + - + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT - 3 + 38 * - 15 - 82 AS col2
----
-655

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT - 56 + - + 41 DIV - 83
----
-56

skipif mysql # not compatible
query I rowsort label-7141
SELECT - 56 + - + 41 / - 83
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT - - 73 - - 33 * + + ( 82 ) + CASE + 61 WHEN + + 71 * + COUNT( + ( 32 ) ) * + + 89 / - 97 * + 86 * + + 8 + COALESCE ( + - 20, CASE + 59 WHEN ( - - 0 ) + + 74 THEN NULL ELSE + 41 + - 24 + - 66 + COUNT( * ) END ) * - - 79 * + COUNT( 80 ) + COUNT( - + 18 ) THEN - 7 + + 68 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7142
SELECT - - 73 - - 33 * + + ( 82 ) + CASE + 61 WHEN + + 71 * + COUNT ( + ( 32 ) ) * + + 89 / - 97 * + 86 * + + 8 + COALESCE ( + - 20, CASE + 59 WHEN ( - - 0 ) + + 74 THEN NULL ELSE + 41 + - 24 + - 66 + COUNT ( * ) END ) * - - 79 * + COUNT ( 80 ) + COUNT ( - + 18 ) THEN - 7 + + 68 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 10 + 7
----
17

query II rowsort
SELECT - 69 + 64 - + 98 + - 88, + 25 + - 42 AS col1
----
-191
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7145
SELECT ALL + + MIN( ALL - + 94 ) + - NULLIF ( + + 31, - 99 * - 91 + CASE - 51 WHEN - - MAX( DISTINCT - 81 ) THEN - 60 WHEN - + NULLIF ( + 79, + 98 + + MAX( - + CAST( NULL AS SIGNED ) ) ) + 35 THEN NULL END )
----
-125

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL + + MIN ( ALL - + 94 ) + - NULLIF ( + + 31, - 99 * - 91 + CASE - 51 WHEN - - MAX ( DISTINCT - 81 ) THEN - 60 WHEN - + NULLIF ( + 79, + 98 + + MAX ( - + CAST ( NULL AS INTEGER ) ) ) + 35 THEN NULL END )
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7146
SELECT COALESCE ( + - COALESCE ( - - 80, + 34, - 17 + + COUNT( * ) + CASE - - 48 WHEN - 41 + 75 * + AVG ( - 66 ) THEN - - 24 - - - COUNT( * ) END + NULLIF ( + + 92, + + 28 ) ), - CAST( - 8 AS SIGNED ) ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-7146
SELECT COALESCE ( + - COALESCE ( - - 80, + 34, - 17 + + COUNT ( * ) + CASE - - 48 WHEN - 41 + 75 * + AVG ( - 66 ) THEN - - 24 - - - COUNT ( * ) END + NULLIF ( + + 92, + + 28 ) ), - CAST ( - 8 AS INTEGER ) ) AS col1
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7147
SELECT ALL - COUNT( * ) * - 52 DIV 23 + - 76 * + 55 + + - ( COUNT( * ) ) AS col0
----
-4179

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL - COUNT ( * ) * - 52 / 23 + - 76 * + 55 + + - ( COUNT ( * ) ) AS col0
----
-4179

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT DISTINCT + 79 * + - 59 * - 25 + + 95 + 64 * - COUNT( * ) * + - 98 * ( + 86 ) * - 24 + - - 66 * 46
----
-12825752

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT + 79 * + - 59 * - 25 + + 95 + 64 * - COUNT ( * ) * + - 98 * ( + 86 ) * - 24 + - - 66 * 46
----
-12825752

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT ALL - 47 * CASE 91 WHEN - + 93 THEN - ( ( 2 ) ) * + 59 END / + ( - ( - NULLIF ( - 21, - MAX( ALL + + 10 ) ) ) ) * - 60 + - + 99 + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL - 47 * CASE 91 WHEN - + 93 THEN - ( ( 2 ) ) * + 59 END / + ( - ( - NULLIF ( - 21, - MAX ( ALL + + 10 ) ) ) ) * - 60 + - + 99 + + 92
----
NULL

query I rowsort
SELECT ALL + 63 * + 73 + 29
----
4628

onlyif mysql # aggregate syntax: 
query II rowsort label-7151
SELECT - 86 * 39 * COUNT( * ) * + - MIN( + 44 ), - MAX( DISTINCT + ( ( - 89 ) ) ) * + 49 + 32 * - ( + ( + 71 ) ) AS col2
----
147576
2089

skipif mysql # not compatible
query II rowsort label-7151
SELECT - 86 * 39 * COUNT ( * ) * + - MIN ( + 44 ), - MAX ( DISTINCT + ( ( - 89 ) ) ) * + 49 + 32 * - ( + ( + 71 ) ) AS col2
----
147576
2089

query I rowsort
SELECT - 3 + 29
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL + ( + - ( + COUNT( * ) ) ) * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL + ( + - ( + COUNT ( * ) ) ) * - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7154
SELECT - MIN( DISTINCT 34 ) * + + 84 + + MAX( 21 ) DIV 63 + 16
----
-2840

skipif mysql # not compatible
query I rowsort label-7154
SELECT - MIN ( DISTINCT 34 ) * + + 84 + + MAX ( 21 ) / 63 + 16
----
-2840

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT ALL 1 * + 6 * MIN( 82 ) - + 18
----
474

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL 1 * + 6 * MIN ( 82 ) - + 18
----
474

onlyif mysql # aggregate syntax: 
query II rowsort label-7156
SELECT DISTINCT + 80 AS col1, + 80 + + - COUNT( * ) AS col2
----
80
79

skipif mysql # not compatible
query II rowsort label-7156
SELECT DISTINCT + 80 AS col1, + 80 + + - COUNT ( * ) AS col2
----
80
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT MIN( ALL - 57 ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-7157
SELECT MIN ( ALL - 57 ) col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT + 37 * COUNT( * ) + + + ( - 64 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-7158
SELECT + 37 * COUNT ( * ) + + + ( - 64 ) AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7159
SELECT ALL - 90 * 88 / CAST( NULL AS SIGNED ) + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL - 90 * 88 / CAST ( NULL AS INTEGER ) + 86
----
NULL

query I rowsort
SELECT + - 79 + + NULLIF ( ( 47 ), 3 * + 54 + 86 )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-7161
SELECT ALL NULLIF ( - + COUNT( * ), - 64 / - AVG ( ( 20 ) ) + + 22 + 87 ) AS col2, - 43 * + 29
----
-1
-1247

skipif mysql # not compatible
query II rowsort label-7161
SELECT ALL NULLIF ( - + COUNT ( * ), - 64 / - AVG ( ( 20 ) ) + + 22 + 87 ) AS col2, - 43 * + 29
----
-1
-1247

query II rowsort
SELECT DISTINCT + 83, 16 + 56 + - - 44 + + 77 + ( + 23 ) * 50 * + + 82 AS col0
----
83
94493

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT DISTINCT SUM( ALL + 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT SUM ( ALL + 32 ) AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7164
SELECT DISTINCT + 96 + - 6 DIV + 55 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT + 96 + - 6 / + 55 AS col2
----
96

query I rowsort
SELECT ALL 30 * + 16
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT + SUM( + 75 ) + + 78 AS col2
----
153

skipif mysql # not compatible
query I rowsort label-7166
SELECT + SUM ( + 75 ) + + 78 AS col2
----
153

query II rowsort
SELECT + NULLIF ( - 72, - + 61 ) AS col2, 70
----
-72
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT ALL + 13 + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL + 13 + COUNT ( * )
----
14

query I rowsort
SELECT - + 2 + - 49 AS col2
----
-51

query II rowsort
SELECT - 7 AS col1, 58 AS col0
----
-7
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT DISTINCT COUNT( * ) + + 19 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT COUNT ( * ) + + 19 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL 4 * - - 62 * - CASE 90 WHEN - 74 + COUNT( * ) - 1 + 76 * + 39 * + 52 THEN - COUNT( * ) + + 25 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL 4 * - - 62 * - CASE 90 WHEN - 74 + COUNT ( * ) - 1 + 76 * + 39 * + 52 THEN - COUNT ( * ) + + 25 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7173
SELECT - ( - + COUNT( * ) ) AS col1, 47
----
1
47

skipif mysql # not compatible
query II rowsort label-7173
SELECT - ( - + COUNT ( * ) ) AS col1, 47
----
1
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7174
SELECT - 15 + + + CAST( NULL AS SIGNED ) + - 85 * - - COALESCE ( + COALESCE ( + + 78, + - CAST( 23 AS SIGNED ) + - 83 * 74 ), - 42, - 38 * - - 92 ) - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7174
SELECT - 15 + + + CAST ( NULL AS INTEGER ) + - 85 * - - COALESCE ( + COALESCE ( + + 78, + - CAST ( 23 AS INTEGER ) + - 83 * 74 ), - 42, - 38 * - - 92 ) - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT ALL + COUNT( 40 )
----
1

skipif mysql # not compatible
query I rowsort label-7175
SELECT ALL + COUNT ( 40 )
----
1

query I rowsort
SELECT + 62 - - - 72 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT - 68 * + + COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-7177
SELECT - 68 * + + COUNT ( * ) AS col0
----
-68

query II rowsort
SELECT ALL + 94 AS col0, + 86
----
94
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7179
SELECT DISTINCT + CASE + - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) / - - 33 * - - 32 + + 27 * - + 88 THEN NULLIF ( 85, - 49 ) + - MIN( ALL 61 ) WHEN 87 THEN + + 68 ELSE NULL END AS col2, 14 + - 95 AS col2
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-7179
SELECT DISTINCT + CASE + - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) / - - 33 * - - 32 + + 27 * - + 88 THEN NULLIF ( 85, - 49 ) + - MIN ( ALL 61 ) WHEN 87 THEN + + 68 ELSE NULL END AS col2, 14 + - 95 AS col2
----
NULL
-81

query I rowsort
SELECT - 66 * 0 - 65 col0
----
-65

query I rowsort
SELECT DISTINCT + ( - 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT DISTINCT + SUM( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT + SUM ( 96 )
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7183
SELECT ALL - 23 DIV ( 92 ) DIV 86 + + MAX( DISTINCT - - 4 ) + + + 64
----
68

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL - 23 / ( 92 ) / 86 + + MAX ( DISTINCT - - 4 ) + + + 64
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7184
SELECT ALL + ( COALESCE ( + 35, + COUNT( * ) ) ) AS col0, 2
----
35
2

skipif mysql # not compatible
query II rowsort label-7184
SELECT ALL + ( COALESCE ( + 35, + COUNT ( * ) ) ) AS col0, 2
----
35
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT - CASE 76 WHEN + - 70 THEN - 55 + + 15 WHEN - + 97 THEN 23 WHEN 45 THEN 36 ELSE NULL END * + NULLIF ( + ( - + 16 ), + ( + 39 ) * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7185
SELECT - CASE 76 WHEN + - 70 THEN - 55 + + 15 WHEN - + 97 THEN 23 WHEN 45 THEN 36 ELSE NULL END * + NULLIF ( + ( - + 16 ), + ( + 39 ) * COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7186
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 28 + + + 46 + 38 + + ( + + 76 ) DIV 1 col0
----
NULL
188

skipif mysql # not compatible
query II rowsort label-7186
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 28 + + + 46 + 38 + + ( + + 76 ) / 1 col0
----
NULL
188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7187
SELECT + CASE - + AVG ( ALL - 68 ) WHEN 10 DIV - 70 * - COUNT( * ) THEN NULL WHEN + - 42 THEN + 4 ELSE - 75 END DIV - + 31
----
2

skipif mysql # not compatible
query I rowsort label-7187
SELECT + CASE - + AVG ( ALL - 68 ) WHEN 10 / - 70 * - COUNT ( * ) THEN NULL WHEN + - 42 THEN + 4 ELSE - 75 END / - + 31
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT ALL + 88 * + + MIN( - 93 )
----
-8184

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL + 88 * + + MIN ( - 93 )
----
-8184

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT - + COUNT( * ) * - 3 + + 27 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-7189
SELECT - + COUNT ( * ) * - 3 + + 27 AS col0
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7190
SELECT ALL + + 69 AS col0, 14 / - 21 / + 7 + - CAST( NULL AS DECIMAL ) AS col2
----
69
NULL

skipif mysql # not compatible
query II rowsort label-7190
SELECT ALL + + 69 AS col0, 14 / - 21 / + 7 + - CAST ( NULL AS REAL ) AS col2
----
69
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7191
SELECT DISTINCT + 35 * - 9 + - 75 * ( 34 ) DIV 69 + + 94 AS col0, + 40 + - - 67 AS col1
----
-257
107

skipif mysql # not compatible
query II rowsort label-7191
SELECT DISTINCT + 35 * - 9 + - 75 * ( 34 ) / 69 + + 94 AS col0, + 40 + - - 67 AS col1
----
-257
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7192
SELECT ALL 81 * - NULLIF ( - 2, - - COALESCE ( 85, 19 ) - - NULLIF ( - + NULLIF ( + 75, + + COUNT( ALL + + CAST( NULL AS SIGNED ) ) ), + 31 / + CAST( NULL AS SIGNED ) ) ) * + 47 + - + 20 + + 26 - + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL 81 * - NULLIF ( - 2, - - COALESCE ( 85, 19 ) - - NULLIF ( - + NULLIF ( + 75, + + COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) ), + 31 / + CAST ( NULL AS INTEGER ) ) ) * + 47 + - + 20 + + 26 - + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 88 + + 7
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-7194
SELECT 95, 47 DIV - - 4 col2
----
95
11

skipif mysql # not compatible
query II rowsort label-7194
SELECT 95, 47 / - - 4 col2
----
95
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL + 77 * 60 + + COUNT( * ) * + 74 * - 71
----
-634

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL + 77 * 60 + + COUNT ( * ) * + 74 * - 71
----
-634

onlyif mysql # aggregate syntax: 
query II rowsort label-7196
SELECT 1 AS col0, 41 + CASE + NULLIF ( + COUNT( * ), 76 * ( + - 80 ) * - + 80 * 81 ) WHEN - - 85 THEN NULL WHEN - + 10 / + 13 THEN - + 62 END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7196
SELECT 1 AS col0, 41 + CASE + NULLIF ( + COUNT ( * ), 76 * ( + - 80 ) * - + 80 * 81 ) WHEN - - 85 THEN NULL WHEN - + 10 / + 13 THEN - + 62 END
----
1
NULL

query I rowsort
SELECT - NULLIF ( + 69, + - 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT ALL - NULLIF ( + - 79, CASE - 58 WHEN + COUNT( * ) THEN + + 42 WHEN + 79 THEN NULL END + + ( - + 55 ) ) + 20 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL - NULLIF ( + - 79, CASE - 58 WHEN + COUNT ( * ) THEN + + 42 WHEN + 79 THEN NULL END + + ( - + 55 ) ) + 20 AS col0
----
99

query I rowsort
SELECT + 24 + - 28
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7200
SELECT - + 70 AS col1, CAST( NULL AS SIGNED )
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-7200
SELECT - + 70 AS col1, CAST ( NULL AS INTEGER )
----
-70
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7201
SELECT 72 + - CAST( - - 4 AS SIGNED ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-7201
SELECT 72 + - CAST ( - - 4 AS INTEGER ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT ALL 77 + - SUM( 98 ) + + 66 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL 77 + - SUM ( 98 ) + + 66 AS col0
----
45

query I rowsort
SELECT 3 * - 39 + + 82 col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7204
SELECT ALL - 40 * + + 50 * - + CAST( NULL AS DECIMAL ) - - 67, - 18 * + - 8 * + MIN( + 88 ) AS col2
----
NULL
12672

skipif mysql # not compatible
query II rowsort label-7204
SELECT ALL - 40 * + + 50 * - + CAST ( NULL AS REAL ) - - 67, - 18 * + - 8 * + MIN ( + 88 ) AS col2
----
NULL
12672

query I rowsort
SELECT DISTINCT - + 63 + 32
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7206
SELECT DISTINCT - 49 - COUNT( * ) DIV - 29 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT - 49 - COUNT ( * ) / - 29 AS col0
----
-49

query I rowsort
SELECT ALL - 90 * - 74 + + 23 + - 33 + + 23 + + 95 * 42
----
10663

query I rowsort
SELECT 4 * 4 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT CASE - CAST( - 82 AS SIGNED ) WHEN + 52 + + 80 THEN - + 85 END + + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT CASE - CAST ( - 82 AS INTEGER ) WHEN + 52 + + 80 THEN - + 85 END + + + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT COUNT( * ) + - - 39 * + ( - - 15 )
----
586

skipif mysql # not compatible
query I rowsort label-7210
SELECT COUNT ( * ) + - - 39 * + ( - - 15 )
----
586

onlyif mysql # DIV for integer division: 
query I rowsort label-7211
SELECT ( - 97 ) DIV - - 1
----
-97

skipif mysql # not compatible
query I rowsort label-7211
SELECT ( - 97 ) / - - 1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7212
SELECT 32 + + + CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7212
SELECT 32 + + + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT ALL 44 - + + 71
----
-27

query II rowsort
SELECT DISTINCT - 37 * + 30, 34 col1
----
-1110
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT 58 * + COUNT( ALL 6 )
----
58

skipif mysql # not compatible
query I rowsort label-7215
SELECT 58 * + COUNT ( ALL 6 )
----
58

query I rowsort
SELECT ALL - 19 * - - 39 AS col0
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT DISTINCT 49 * + COUNT( * ) * + 43
----
2107

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT 49 * + COUNT ( * ) * + 43
----
2107

query I rowsort
SELECT 83 * + 29
----
2407

query I rowsort
SELECT ALL 84 * 18 AS col1
----
1512

query I rowsort
SELECT ALL 48 + + + 58 + 87 AS col0
----
193

query I rowsort
SELECT DISTINCT + 40 + + - 47 + - 83
----
-90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7222
SELECT ALL + 7 + + + 22 + 57 / - ( CAST( NULL AS DECIMAL ) ) * + ( + 6 ) * + 32 + - - 18 + - 92, - NULLIF ( + 8, + MIN( - + ( - - CAST( + + 97 AS DECIMAL ) ) ) ) * + 41 * + 18 AS col0
----
NULL
-5904

skipif mysql # not compatible
query II rowsort label-7222
SELECT ALL + 7 + + + 22 + 57 / - ( CAST ( NULL AS REAL ) ) * + ( + 6 ) * + 32 + - - 18 + - 92, - NULLIF ( + 8, + MIN ( - + ( - - CAST ( + + 97 AS REAL ) ) ) ) * + 41 * + 18 AS col0
----
NULL
-5904

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT 69 + COUNT( * ) - - 75
----
145

skipif mysql # not compatible
query I rowsort label-7223
SELECT 69 + COUNT ( * ) - - 75
----
145

query I rowsort
SELECT ALL + 96 + - + 43 AS col1
----
53

query I rowsort
SELECT DISTINCT + - 16 + ( 10 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT - + COUNT( DISTINCT COALESCE ( - 44, 36 ) ) * + 17 * - + 19 + - 17
----
306

skipif mysql # not compatible
query I rowsort label-7226
SELECT - + COUNT ( DISTINCT COALESCE ( - 44, 36 ) ) * + 17 * - + 19 + - 17
----
306

onlyif mysql # DIV for integer division: 
query I rowsort label-7227
SELECT 48 DIV - 82 + - 73 * + 37 + - 3
----
-2704

skipif mysql # not compatible
query I rowsort label-7227
SELECT 48 / - 82 + - 73 * + 37 + - 3
----
-2704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7228
SELECT - CAST( NULL AS SIGNED ) * + - AVG ( 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT - CAST ( NULL AS INTEGER ) * + - AVG ( 30 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT ALL - MIN( 42 ) * + 66 * - + 63 + 12
----
174648

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL - MIN ( 42 ) * + 66 * - + 63 + 12
----
174648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7230
SELECT ALL + CAST( + 98 AS SIGNED ) + + - 28
----
70

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL + CAST ( + 98 AS INTEGER ) + + - 28
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7231
SELECT DISTINCT - CAST( ( 85 ) AS SIGNED ), + 29 - - - ( - - 81 ) AS col0
----
-85
-52

skipif mysql # not compatible
query II rowsort label-7231
SELECT DISTINCT - CAST ( ( 85 ) AS INTEGER ), + 29 - - - ( - - 81 ) AS col0
----
-85
-52

query I rowsort
SELECT DISTINCT + 53 - + - 57 AS col2
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7233
SELECT ALL - 94 * - CAST( NULL AS SIGNED ), + SUM( + 73 ) col2
----
NULL
73

skipif mysql # not compatible
query II rowsort label-7233
SELECT ALL - 94 * - CAST ( NULL AS INTEGER ), + SUM ( + 73 ) col2
----
NULL
73

query I rowsort
SELECT ( + 91 ) col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7235
SELECT ALL + - 73 - + 49 - 41 + COALESCE ( + ( 55 ), - ( - 49 ) * - - 46 + - + MAX( + CAST( 7 AS SIGNED ) ) + - - COUNT( * ) ) + - 56 AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL + - 73 - + 49 - 41 + COALESCE ( + ( 55 ), - ( - 49 ) * - - 46 + - + MAX ( + CAST ( 7 AS INTEGER ) ) + - - COUNT ( * ) ) + - 56 AS col1
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT DISTINCT + ( + - COUNT( DISTINCT 83 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT + ( + - COUNT ( DISTINCT 83 ) )
----
-1

query I rowsort
SELECT 97 * - 37 AS col2
----
-3589

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT DISTINCT COUNT( ALL - 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT COUNT ( ALL - 88 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT DISTINCT + 41 - - 57 DIV - 44
----
40

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT + 41 - - 57 / - 44
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7240
SELECT 29 + - + ( 65 ) * + COUNT( * ) + - CAST( + - SUM( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7240
SELECT 29 + - + ( 65 ) * + COUNT ( * ) + - CAST ( + - SUM ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7241
SELECT - 60, + 57 + + COUNT( * ) - + COALESCE ( - - 69, - 21 ) AS col2
----
-60
-11

skipif mysql # not compatible
query II rowsort label-7241
SELECT - 60, + 57 + + COUNT ( * ) - + COALESCE ( - - 69, - 21 ) AS col2
----
-60
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT ALL SUM( DISTINCT + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL SUM ( DISTINCT + 7 )
----
7

query I rowsort
SELECT DISTINCT 85 * - 38 * + 15 AS col1
----
-48450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7244
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT ALL + 23 * + + COUNT( * ) col2
----
23

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL + 23 * + + COUNT ( * ) col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7246
SELECT CASE + - 59 WHEN + 4 THEN - 61 * COUNT( * ) / - 94 WHEN 43 * CAST( + 72 AS DECIMAL ) THEN NULL WHEN - 25 * + MIN( - - 44 ) THEN NULL ELSE NULL END + - 51 + + + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT CASE + - 59 WHEN + 4 THEN - 61 * COUNT ( * ) / - 94 WHEN 43 * CAST ( + 72 AS REAL ) THEN NULL WHEN - 25 * + MIN ( - - 44 ) THEN NULL ELSE NULL END + - 51 + + + 27 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 49 * - 46 AS col0
----
-2254

query I rowsort
SELECT ALL 8 + - 95
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT ( + 38 ) DIV 13 DIV + 86 + + 33 col0
----
33

skipif mysql # not compatible
query I rowsort label-7249
SELECT ( + 38 ) / 13 / + 86 + + 33 col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7250
SELECT ALL CAST( NULL AS SIGNED ) * + CASE - 34 WHEN + 0 + - - 54 THEN + 1 + 66 * AVG ( + ( - + 38 ) ) WHEN + 46 THEN 1 ELSE - ( + + 51 ) + - + 90 END + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL CAST ( NULL AS INTEGER ) * + CASE - 34 WHEN + 0 + - - 54 THEN + 1 + 66 * AVG ( + ( - + 38 ) ) WHEN + 46 THEN 1 ELSE - ( + + 51 ) + - + 90 END + + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT 57 - + COUNT( * ) + + 1 + + COUNT( * ) * + 76 * - MAX( - 12 ) + - ( - 77 ) AS col1
----
1046

skipif mysql # not compatible
query I rowsort label-7251
SELECT 57 - + COUNT ( * ) + + 1 + + COUNT ( * ) * + 76 * - MAX ( - 12 ) + - ( - 77 ) AS col1
----
1046

onlyif mysql # aggregate syntax: 
query II rowsort label-7252
SELECT + COUNT( * ) AS col0, 68 * + 87 * - COUNT( * )
----
1
-5916

skipif mysql # not compatible
query II rowsort label-7252
SELECT + COUNT ( * ) AS col0, 68 * + 87 * - COUNT ( * )
----
1
-5916

onlyif mysql # aggregate syntax: 
query II rowsort label-7253
SELECT 63 * + 47 * + COUNT( * ) col2, 23
----
2961
23

skipif mysql # not compatible
query II rowsort label-7253
SELECT 63 * + 47 * + COUNT ( * ) col2, 23
----
2961
23

query I rowsort
SELECT + 19 * + 51 + 37 AS col2
----
1006

onlyif mysql # DIV for integer division: 
query I rowsort label-7255
SELECT ( 53 ) DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-7255
SELECT ( 53 ) / + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ALL 38 * + + 61 + + 3 + + 71 * - - 44 + - COUNT( * ) AS col2
----
5444

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL 38 * + + 61 + + 3 + + 71 * - - 44 + - COUNT ( * ) AS col2
----
5444

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT + COUNT( 72 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7257
SELECT + COUNT ( 72 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7258
SELECT DISTINCT - 35 AS col2, - COUNT( DISTINCT + - 69 )
----
-35
-1

skipif mysql # not compatible
query II rowsort label-7258
SELECT DISTINCT - 35 AS col2, - COUNT ( DISTINCT + - 69 )
----
-35
-1

query I rowsort
SELECT ( - 98 ) - 55 - 86 + + - 94 * - 25 * + + 39 * + 48 * + 61 col0
----
268350961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7260
SELECT ALL + CAST( + COUNT( - 72 ) AS SIGNED ) * 95 - - 85
----
180

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL + CAST ( + COUNT ( - 72 ) AS INTEGER ) * 95 - - 85
----
180

query I rowsort
SELECT 84 * 15 AS col1
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT ALL COALESCE ( + + 93, + COUNT( * ) ) * + 61 + + - 83
----
5590

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL COALESCE ( + + 93, + COUNT ( * ) ) * + 61 + + - 83
----
5590

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT + + 19 * + SUM( ALL 73 ) - 66 * 29
----
-527

skipif mysql # not compatible
query I rowsort label-7263
SELECT + + 19 * + SUM ( ALL 73 ) - 66 * 29
----
-527

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT CASE 46 WHEN COALESCE ( - 81, + 3 / - 16, - 23 + + + 84 - + + 63 ) - + - 89 THEN NULL WHEN - - 68 THEN + + 17 * + 69 * - 48 + 67 + - COUNT( * ) + + + 16 * - + COUNT( * ) ELSE - 46 * + 84 - - 30 END
----
-3834

skipif mysql # not compatible
query I rowsort label-7264
SELECT CASE 46 WHEN COALESCE ( - 81, + 3 / - 16, - 23 + + + 84 - + + 63 ) - + - 89 THEN NULL WHEN - - 68 THEN + + 17 * + 69 * - 48 + 67 + - COUNT ( * ) + + + 16 * - + COUNT ( * ) ELSE - 46 * + 84 - - 30 END
----
-3834

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7265
SELECT ALL + + 13 + - COUNT( * ) * + 99 DIV - 95
----
14

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL + + 13 + - COUNT ( * ) * + 99 / - 95
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT ALL + - NULLIF ( + 59, 40 * COUNT( * ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL + - NULLIF ( + 59, 40 * COUNT ( * ) ) AS col0
----
-59

query II rowsort
SELECT 55 AS col0, - 72 - + 50 + - 58
----
55
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-7268
SELECT ALL + 53 AS col1, COUNT( * ) * 41 * 25 * + - 28 AS col2
----
53
-28700

skipif mysql # not compatible
query II rowsort label-7268
SELECT ALL + 53 AS col1, COUNT ( * ) * 41 * 25 * + - 28 AS col2
----
53
-28700

query I rowsort
SELECT + ( + - 8 )
----
-8

query I rowsort
SELECT - + 29 - + - 37 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT COUNT( + - 76 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7271
SELECT COUNT ( + - 76 ) col2
----
1

query II rowsort
SELECT ALL + + 3 AS col2, - ( + - 8 )
----
3
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7273
SELECT DISTINCT + + 71 / CAST( NULL AS SIGNED ) * 45 + - - 50 + 63 - + - 27 + + 92 * 89 + - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT + + 71 / CAST ( NULL AS INTEGER ) * 45 + - - 50 + 63 - + - 27 + + 92 * 89 + - 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT + + SUM( DISTINCT 48 ) + + + 58 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-7274
SELECT + + SUM ( DISTINCT 48 ) + + + 58 AS col1
----
106

query I rowsort
SELECT + ( - 28 ) + - 16 AS col2
----
-44

query I rowsort
SELECT - 65 * - 14 AS col1
----
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7277
SELECT - + CASE + + COUNT( * ) WHEN - 94 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN + + 43 WHEN - - CAST( - COALESCE ( - 70, - + 65 * 89 * + CASE COUNT( ALL 41 ) WHEN - + 76 THEN + - COUNT( * ) - - CASE - - 32 WHEN - 10 * - + AVG ( - 14 ) / - 26 * 78 * 98 THEN 40 END WHEN + SUM( - 95 ) + 9 - + - 48 * - + 94 THEN + 21 * + 18 * + + 68 * 99 WHEN + + 47 * MIN( DISTINCT + ( 94 ) ) + - - 87 THEN NULL ELSE - 62 END, + 32 ) AS SIGNED ) + + NULLIF ( - ( + ( AVG ( ALL 67 ) ) ), + + ( 96 ) - 31 + - 51 ) THEN - COUNT( * ) END * + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT - + CASE + + COUNT ( * ) WHEN - 94 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN + + 43 WHEN - - CAST ( - COALESCE ( - 70, - + 65 * 89 * + CASE COUNT ( ALL 41 ) WHEN - + 76 THEN + - COUNT ( * ) - - CASE - - 32 WHEN - 10 * - + AVG ( - 14 ) / - 26 * 78 * 98 THEN 40 END WHEN + SUM ( - 95 ) + 9 - + - 48 * - + 94 THEN + 21 * + 18 * + + 68 * 99 WHEN + + 47 * MIN ( DISTINCT + ( 94 ) ) + - - 87 THEN NULL ELSE - 62 END, + 32 ) AS INTEGER ) + + NULLIF ( - ( + ( AVG ( ALL 67 ) ) ), + + ( 96 ) - 31 + - 51 ) THEN - COUNT ( * ) END * + 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT - 39 + + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-7278
SELECT - 39 + + COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL NULLIF ( - 64, 49 + - NULLIF ( + 10, - 9 + - + ( COUNT( ALL - COALESCE ( - 51, - + 32 ) ) ) ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL NULLIF ( - 64, 49 + - NULLIF ( + 10, - 9 + - + ( COUNT ( ALL - COALESCE ( - 51, - + 32 ) ) ) ) ) AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT - 57 DIV + 44 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7280
SELECT - 57 / + 44 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7281
SELECT DISTINCT 62 * - COUNT( * ) AS col0, 5 * + + 70 AS col0
----
-62
350

skipif mysql # not compatible
query II rowsort label-7281
SELECT DISTINCT 62 * - COUNT ( * ) AS col0, 5 * + + 70 AS col0
----
-62
350

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT - COUNT( * ) * + + 46 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7282
SELECT - COUNT ( * ) * + + 46 AS col2
----
-46

query II rowsort
SELECT DISTINCT ( + 92 ), 98 AS col0
----
92
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7284
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 26 / + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 26 / + 72 AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 97, + + 92 ) AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7286
SELECT ALL NULLIF ( + SUM( + - 41 ), 20 * + ( - + ( COUNT( * ) ) ) + - ( 88 ) + + MAX( ALL + CAST( NULL AS SIGNED ) ) )
----
-41

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL NULLIF ( + SUM ( + - 41 ), 20 * + ( - + ( COUNT ( * ) ) ) + - ( 88 ) + + MAX ( ALL + CAST ( NULL AS INTEGER ) ) )
----
-41

query I rowsort
SELECT ALL + 1 + + 54
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7288
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 38, + CAST( NULL AS SIGNED ) col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7288
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 38, + CAST ( NULL AS INTEGER ) col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT DISTINCT SUM( + 37 ) + + 65 + COUNT( * ) * ( - - 12 ) AS col0
----
114

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT SUM ( + 37 ) + + 65 + COUNT ( * ) * ( - - 12 ) AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT 55 + - COUNT( - 63 )
----
54

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT 55 + - COUNT ( - 63 )
----
54

query I rowsort
SELECT DISTINCT NULLIF ( - 67, 64 ) AS col0
----
-67

query I rowsort
SELECT DISTINCT - 75 * - + 12 AS col2
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT DISTINCT + + COUNT( * ) * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT + + COUNT ( * ) * + + COUNT ( * )
----
1

query I rowsort
SELECT - 68 * 18 AS col1
----
-1224

query I rowsort
SELECT + + 35 * 69 AS col1
----
2415

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT ALL + 30 DIV - + 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL + 30 / - + 48 AS col2
----
0

query I rowsort
SELECT - 90 * - 65 + - + ( - 34 ) + - 34 + 97 AS col2
----
5947

query I rowsort
SELECT ALL - 93 * - 87 - + 74
----
8017

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT - 78 * + 77 + + 18 * - 39 * - + 71 - - + 96 + - COUNT( * ) * 35 AS col0
----
43897

skipif mysql # not compatible
query I rowsort label-7299
SELECT - 78 * + 77 + + 18 * - 39 * - + 71 - - + 96 + - COUNT ( * ) * 35 AS col0
----
43897

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT DISTINCT + - CASE - + 68 WHEN ( - + ( 90 ) ) * - + COUNT( * ) * + 33 * + + 85 THEN + 85 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT + - CASE - + 68 WHEN ( - + ( 90 ) ) * - + COUNT ( * ) * + 33 * + + 85 THEN + 85 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT + 13 + + + 24 * + - 86 / + CASE COUNT( - 27 ) WHEN 50 THEN - 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT + 13 + + + 24 * + - 86 / + CASE COUNT ( - 27 ) WHEN 50 THEN - 22 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7302
SELECT + - 0 * + ( - 29 ) * - CAST( + 73 AS SIGNED ) * + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7302
SELECT + - 0 * + ( - 29 ) * - CAST ( + 73 AS INTEGER ) * + 75 AS col2
----
0

query I rowsort
SELECT + 27 + + - 88 + + + 54
----
-7

query I rowsort
SELECT + - ( 67 ) * - - 73
----
-4891

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT NULLIF ( - - 29, 80 * - 77 * COUNT( * ) * + 94 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-7305
SELECT NULLIF ( - - 29, 80 * - 77 * COUNT ( * ) * + 94 ) AS col0
----
29

query I rowsort
SELECT DISTINCT 14 * + 36 AS col0
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT + MAX( - 3 ) * 33 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-7307
SELECT + MAX ( - 3 ) * 33 AS col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7308
SELECT + CAST( 25 AS SIGNED ) + - ( + 98 ) * + - 51 * + 1
----
5023

skipif mysql # not compatible
query I rowsort label-7308
SELECT + CAST ( 25 AS INTEGER ) + - ( + 98 ) * + - 51 * + 1
----
5023

query I rowsort
SELECT DISTINCT + - 28 AS col0
----
-28

query I rowsort
SELECT ALL NULLIF ( + 8, - 79 )
----
8

query I rowsort
SELECT + 16 * + 24
----
384

query I rowsort
SELECT ALL 21 * - 91 AS col1
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT SUM( ALL - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-7313
SELECT SUM ( ALL - 11 )
----
-11

query I rowsort
SELECT - 86 * 7 * - 9
----
5418

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT - ( + NULLIF ( ( MAX( DISTINCT 63 ) ), + 11 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-7315
SELECT - ( + NULLIF ( ( MAX ( DISTINCT 63 ) ), + 11 ) )
----
-63

query I rowsort
SELECT ALL + 33 + - 43
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7317
SELECT - CAST( AVG ( + 21 ) AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-7317
SELECT - CAST ( AVG ( + 21 ) AS INTEGER )
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7318
SELECT - 38 DIV 78 DIV + 37 * 44
----
0

skipif mysql # not compatible
query I rowsort label-7318
SELECT - 38 / 78 / + 37 * 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT + 50 * COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7319
SELECT + 50 * COUNT ( * ) AS col2
----
50

query I rowsort
SELECT ALL - 60 * + + 6
----
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT + 67 DIV 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7321
SELECT + 67 / 76 AS col1
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-7322
SELECT DISTINCT COUNT( + + 98 ) + + + 30 AS col1, 43 + - 11 + + 92 AS col1, 61
----
31
124
61

skipif mysql # not compatible
query III rowsort label-7322
SELECT DISTINCT COUNT ( + + 98 ) + + + 30 AS col1, 43 + - 11 + + 92 AS col1, 61
----
31
124
61

query I rowsort
SELECT DISTINCT ( - 9 ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7324
SELECT - 2 DIV - 10 * + COUNT( * ) * - 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7324
SELECT - 2 / - 10 * + COUNT ( * ) * - 2 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT ALL 8 + AVG ( + - 42 ) + + 46 * + CAST( NULL AS SIGNED ) / + 75 + 49 + - ( + - 49 ) * 26 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL 8 + AVG ( + - 42 ) + + 46 * + CAST ( NULL AS INTEGER ) / + 75 + 49 + - ( + - 49 ) * 26 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ALL - 33 + + MIN( 55 ) + + 11 * - NULLIF ( - + 79, + - 59 )
----
891

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL - 33 + + MIN ( 55 ) + + 11 * - NULLIF ( - + 79, + - 59 )
----
891

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7327
SELECT - 37 AS col0, 69 / + 81 * + 36 * + NULLIF ( + CASE CAST( + 8 AS SIGNED ) WHEN + 92 THEN NULL WHEN + 98 * + 8 THEN - + 98 END, CASE - 5 WHEN ( - 14 ) THEN NULL ELSE - 78 + + + 82 + 75 - + ( - 33 ) END ) * 61 * - 41
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-7327
SELECT - 37 AS col0, 69 / + 81 * + 36 * + NULLIF ( + CASE CAST ( + 8 AS INTEGER ) WHEN + 92 THEN NULL WHEN + 98 * + 8 THEN - + 98 END, CASE - 5 WHEN ( - 14 ) THEN NULL ELSE - 78 + + + 82 + 75 - + ( - 33 ) END ) * 61 * - 41
----
-37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL NULLIF ( - 12, 26 - COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL NULLIF ( - 12, 26 - COUNT ( * ) )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7329
SELECT DISTINCT + 88 + - - MAX( ALL - 86 ) DIV + 57
----
87

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT + 88 + - - MAX ( ALL - 86 ) / + 57
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT ALL - 70 - + COUNT( * ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL - 70 - + COUNT ( * ) col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT 82 * - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-7331
SELECT 82 * - COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT 92 + - SUM( DISTINCT + 67 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7332
SELECT 92 + - SUM ( DISTINCT + 67 ) AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7333
SELECT DISTINCT - 44 DIV + ( 1 * 53 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT - 44 / + ( 1 * 53 ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT ALL - 71 - + 7 / CASE - CAST( NULL AS SIGNED ) + 15 WHEN + NULLIF ( 84, 77 - + 46 ) * - 61 THEN - 23 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL - 71 - + 7 / CASE - CAST ( NULL AS INTEGER ) + 15 WHEN + NULLIF ( 84, 77 - + 46 ) * - 61 THEN - 23 END AS col2
----
NULL

query I rowsort
SELECT ALL 41 * 34
----
1394

onlyif mysql # DIV for integer division: 
query I rowsort label-7336
SELECT DISTINCT - 53 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT - 53 / - 57
----
0

query I rowsort
SELECT DISTINCT 76 * 95
----
7220

query I rowsort
SELECT 27 * + 39
----
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT ALL - NULLIF ( 75, - MIN( ALL - 87 ) + 74 ) * + 3
----
-225

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL - NULLIF ( 75, - MIN ( ALL - 87 ) + 74 ) * + 3
----
-225

query I rowsort
SELECT 97 * + 26
----
2522

query I rowsort
SELECT ALL - 26 * - 7 AS col0
----
182

query I rowsort
SELECT - 90 * 27 - - 58 * 80 col0
----
2210

onlyif mysql # DIV for integer division: 
query I rowsort label-7343
SELECT 17 DIV NULLIF ( + 97, 16 * + 61 + + NULLIF ( - 30, 94 + 78 ) * ( 38 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7343
SELECT 17 / NULLIF ( + 97, 16 * + 61 + + NULLIF ( - 30, 94 + 78 ) * ( 38 ) ) AS col2
----
0

query I rowsort
SELECT 52 * - 62
----
-3224

query I rowsort
SELECT ( COALESCE ( + 73, 15 ) ) * + 20 AS col0
----
1460

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT DISTINCT - COUNT( 65 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT - COUNT ( 65 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7347
SELECT DISTINCT 93 DIV + 26
----
3

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT 93 / + 26
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7348
SELECT 42 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-7348
SELECT 42 / 61
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7349
SELECT ALL 28 DIV - 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL 28 / - 44 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7350
SELECT 64 * - 11 - NULLIF ( 81, - 70 + - 44 DIV + COUNT( * ) ) DIV 99 AS col2
----
-704

skipif mysql # not compatible
query I rowsort label-7350
SELECT 64 * - 11 - NULLIF ( 81, - 70 + - 44 / + COUNT ( * ) ) / 99 AS col2
----
-704

query I rowsort
SELECT DISTINCT 21 * + 66
----
1386

query I rowsort
SELECT 32 + 71
----
103

query I rowsort
SELECT ALL 92 + 15 * 2
----
122

query I rowsort
SELECT ALL 68 + + 99
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7355
SELECT DISTINCT 85 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT 85 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 95 * 75 + 8
----
7133

query I rowsort
SELECT ALL 20 * + 51
----
1020

query I rowsort
SELECT 67 + ( - 12 )
----
55

query I rowsort
SELECT ( 28 ) + + 72 col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL COUNT( * ) + 15
----
16

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL COUNT ( * ) + 15
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT COUNT( 69 ) + 94 * 95 AS col2
----
8931

skipif mysql # not compatible
query I rowsort label-7361
SELECT COUNT ( 69 ) + 94 * 95 AS col2
----
8931

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT DISTINCT 19 - COUNT( * ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT 19 - COUNT ( * ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT 11 + CAST( NULL AS SIGNED ) * - ( + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT 11 + CAST ( NULL AS INTEGER ) * - ( + 47 )
----
NULL

query I rowsort
SELECT ALL 54 - 79
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT SUM( 11 ) * 73
----
803

skipif mysql # not compatible
query I rowsort label-7365
SELECT SUM ( 11 ) * 73
----
803

query I rowsort
SELECT 18 * + 36 AS col1
----
648

onlyif mysql # DIV for integer division: 
query I rowsort label-7367
SELECT ALL 72 DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL 72 / 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT SUM( ALL 95 ) + COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-7368
SELECT SUM ( ALL 95 ) + COUNT ( * ) AS col0
----
96

query I rowsort
SELECT DISTINCT + NULLIF ( 4, - 84 ) AS col0
----
4

query I rowsort
SELECT ALL ( 25 ) AS col2
----
25

query I rowsort
SELECT 61 * - 53
----
-3233

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL - 27 * COUNT( - 75 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL - 27 * COUNT ( - 75 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT + + ( ( SUM( - 49 ) ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7373
SELECT + + ( ( SUM ( - 49 ) ) ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT 41 * MAX( DISTINCT - 71 - 32 * 50 )
----
-68511

skipif mysql # not compatible
query I rowsort label-7374
SELECT 41 * MAX ( DISTINCT - 71 - 32 * 50 )
----
-68511

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT + COUNT( * ) * - 35
----
-35

skipif mysql # not compatible
query I rowsort label-7375
SELECT + COUNT ( * ) * - 35
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT + COUNT( DISTINCT + 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7376
SELECT + COUNT ( DISTINCT + 89 ) AS col2
----
1

query I rowsort
SELECT + 43 * 42 + + 21 AS col0
----
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT ALL - - 35 + 72 * - ( - MIN( ALL 64 ) - - 90 )
----
-1837

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL - - 35 + 72 * - ( - MIN ( ALL 64 ) - - 90 )
----
-1837

query I rowsort
SELECT ALL - + 27 * + 46 AS col0
----
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT - 31 * ( + NULLIF ( + 5, COUNT( * ) * + COUNT( * ) ) - - COUNT( * ) ) + 67
----
-119

skipif mysql # not compatible
query I rowsort label-7380
SELECT - 31 * ( + NULLIF ( + 5, COUNT ( * ) * + COUNT ( * ) ) - - COUNT ( * ) ) + 67
----
-119

query I rowsort
SELECT DISTINCT + - 14 + 8 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7382
SELECT DISTINCT + - CAST( 40 AS SIGNED ) + 60 col0
----
20

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + - CAST ( 40 AS INTEGER ) + 60 col0
----
20

query I rowsort
SELECT DISTINCT + 87 + + - 79
----
8

query I rowsort
SELECT ALL + 78 * + ( 37 ) AS col1
----
2886

query I rowsort
SELECT + 91 * + 1 * 18 + + 43 * 22 AS col1
----
2584

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT 48 * - + 58 * COUNT( * ) AS col1
----
-2784

skipif mysql # not compatible
query I rowsort label-7386
SELECT 48 * - + 58 * COUNT ( * ) AS col1
----
-2784

query I rowsort
SELECT DISTINCT - COALESCE ( - + 81, ( 96 ) )
----
81

query I rowsort
SELECT ALL - 5 + - + 85
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT 67 DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7389
SELECT 67 / 82 AS col1
----
0

query I rowsort
SELECT ALL + 69 + 64
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7391
SELECT ALL 38 DIV COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL 38 / COUNT ( * ) AS col0
----
38

query I rowsort
SELECT ALL 14 - - + 98 + 83 * 74 AS col1
----
6254

query I rowsort
SELECT DISTINCT - 88 - - 82
----
-6

query I rowsort
SELECT 2 * - + 51 AS col0
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7395
SELECT ALL 78 - 60 - - COUNT( * ) DIV + 82 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL 78 - 60 - - COUNT ( * ) / + 82 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT - CAST( + 61 AS SIGNED ) - + 57
----
-118

skipif mysql # not compatible
query I rowsort label-7396
SELECT - CAST ( + 61 AS INTEGER ) - + 57
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7397
SELECT - CASE + - CASE 5 WHEN + 23 / COUNT( * ) + + CAST( NULL AS SIGNED ) THEN + 63 END WHEN + COUNT( * ) * COALESCE ( - 72 * - 13, 97 * + 45 ) THEN NULL WHEN NULLIF ( + 4, + 83 ) / CAST( 60 AS SIGNED ) THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT - CASE + - CASE 5 WHEN + 23 / COUNT ( * ) + + CAST ( NULL AS INTEGER ) THEN + 63 END WHEN + COUNT ( * ) * COALESCE ( - 72 * - 13, 97 * + 45 ) THEN NULL WHEN NULLIF ( + 4, + 83 ) / CAST ( 60 AS INTEGER ) THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 31 * 18
----
558

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7399
SELECT + COUNT( * ) - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT + COUNT ( * ) - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 42 * - - ( + 46 )
----
1932

query I rowsort
SELECT DISTINCT 9 * - + 60 * + 65 col0
----
-35100

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT ALL + 57 * - - 26 + COUNT( * ) * 43
----
1525

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL + 57 * - - 26 + COUNT ( * ) * 43
----
1525

query I rowsort
SELECT + 79 + 23 * ( 20 ) AS col2
----
539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7404
SELECT ALL - CAST( - + 76 AS SIGNED ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL - CAST ( - + 76 AS INTEGER ) AS col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7405
SELECT + 23 DIV - COUNT( ( 75 ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7405
SELECT + 23 / - COUNT ( ( 75 ) ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT + 93 * + + 29 + COUNT( * ) AS col2
----
2698

skipif mysql # not compatible
query I rowsort label-7406
SELECT + 93 * + + 29 + COUNT ( * ) AS col2
----
2698

onlyif mysql # DIV for integer division: 
query I rowsort label-7407
SELECT DISTINCT - 74 DIV + + 64 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT - 74 / + + 64 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL + - 36 * - MAX( DISTINCT + ( 5 ) ) * - COUNT( * ) + - 90 + - 74 AS col1
----
-344

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL + - 36 * - MAX ( DISTINCT + ( 5 ) ) * - COUNT ( * ) + - 90 + - 74 AS col1
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT - + COUNT( - 52 ) * - 64 + 45 * COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT - + COUNT ( - 52 ) * - 64 + 45 * COUNT ( * )
----
109

query I rowsort
SELECT - 29 * 60 + + 64 AS col2
----
-1676

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7411
SELECT ALL 20 DIV - ( - COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL 20 / - ( - COUNT ( * ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT 87 * 70 * CASE 36 WHEN + 74 * - 15 THEN - MIN( 8 ) / 18 + - COUNT( * ) WHEN 61 THEN + 64 END + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT 87 * 70 * CASE 36 WHEN + 74 * - 15 THEN - MIN ( 8 ) / 18 + - COUNT ( * ) WHEN 61 THEN + 64 END + 62
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7413
SELECT ALL - - 24 * ( 27 ) + + 80 DIV COUNT( * ) AS col2
----
728

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL - - 24 * ( 27 ) + + 80 / COUNT ( * ) AS col2
----
728

query I rowsort
SELECT + + ( 94 ) * 73 AS col0
----
6862

onlyif mysql # DIV for integer division: 
query I rowsort label-7415
SELECT ALL + + 17 * - 89 + + 78 DIV 68
----
-1512

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + + 17 * - 89 + + 78 / 68
----
-1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7416
SELECT ALL 12 * + CAST( - 49 AS SIGNED ) * COUNT( * ) + NULLIF ( ( + 96 ), 85 / - 94 ) * COUNT( * ) col1
----
-492

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL 12 * + CAST ( - 49 AS INTEGER ) * COUNT ( * ) + NULLIF ( ( + 96 ), 85 / - 94 ) * COUNT ( * ) col1
----
-492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7417
SELECT - SUM( 10 ) * CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT - SUM ( 10 ) * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT ALL - + 85 * + 23 * - COUNT( * ) + + 24
----
1979

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL - + 85 * + 23 * - COUNT ( * ) + + 24
----
1979

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ( MIN( DISTINCT + 96 ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7419
SELECT ( MIN ( DISTINCT + 96 ) ) AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7420
SELECT ALL ( 30 ) * + COUNT( * ) + CASE COUNT( * ) WHEN - ( 74 ) * - 92 THEN NULL ELSE 77 * 46 END * NULLIF ( - 32, - CASE + 18 WHEN MIN( ALL CAST( NULL AS DECIMAL ) ) + - 20 THEN 94 WHEN 16 * - CASE + COUNT( * ) WHEN + ( CAST( NULL AS SIGNED ) ) / - 68 THEN NULL WHEN - 10 * 18 THEN - 70 * - COUNT( * ) END + 66 * 80 THEN 58 / 31 END / - 98 )
----
-113314

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL ( 30 ) * + COUNT ( * ) + CASE COUNT ( * ) WHEN - ( 74 ) * - 92 THEN NULL ELSE 77 * 46 END * NULLIF ( - 32, - CASE + 18 WHEN MIN ( ALL CAST ( NULL AS REAL ) ) + - 20 THEN 94 WHEN 16 * - CASE + COUNT ( * ) WHEN + ( CAST ( NULL AS INTEGER ) ) / - 68 THEN NULL WHEN - 10 * 18 THEN - 70 * - COUNT ( * ) END + 66 * 80 THEN 58 / 31 END / - 98 )
----
-113314

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT ALL + COUNT( + 98 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL + COUNT ( + 98 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT DISTINCT + + SUM( ALL + 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT + + SUM ( ALL + 21 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT COUNT( * ) * COUNT( * ) - - + 90
----
91

skipif mysql # not compatible
query I rowsort label-7423
SELECT COUNT ( * ) * COUNT ( * ) - - + 90
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT NULLIF ( - + COUNT( * ), + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7424
SELECT NULLIF ( - + COUNT ( * ), + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT NULLIF ( - ( + + 49 ), 94 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL 81 * SUM( DISTINCT + + 10 ) - - 42 AS col1
----
852

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL 81 * SUM ( DISTINCT + + 10 ) - - 42 AS col1
----
852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7427
SELECT NULLIF ( + ( + + CAST( 67 AS SIGNED ) ), + 19 )
----
67

skipif mysql # not compatible
query I rowsort label-7427
SELECT NULLIF ( + ( + + CAST ( 67 AS INTEGER ) ), + 19 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT - NULLIF ( 8, - SUM( ALL 28 ) * + COUNT( * ) ) * 88 AS col2
----
-704

skipif mysql # not compatible
query I rowsort label-7428
SELECT - NULLIF ( 8, - SUM ( ALL 28 ) * + COUNT ( * ) ) * 88 AS col2
----
-704

query I rowsort
SELECT DISTINCT + 29 * 57
----
1653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7430
SELECT DISTINCT + 56 / CAST( NULL AS SIGNED ) * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT + 56 / CAST ( NULL AS INTEGER ) * + 30
----
NULL

query I rowsort
SELECT - 73 - + 25 col0
----
-98

query I rowsort
SELECT - ( - 29 ) * ( + 26 ) * - 88 + - 86 col0
----
-66438

query I rowsort
SELECT - 90 * - 32
----
2880

query I rowsort
SELECT - 61 + 85 AS col2
----
24

query I rowsort
SELECT + 25 * 11 * 6 AS col0
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT + 48 * + NULLIF ( 59, - 15 ) + ( - NULLIF ( + AVG ( ALL + 20 ), - SUM( DISTINCT 29 ) * 44 + - 61 ) ) * - CASE - SUM( DISTINCT 98 ) WHEN 97 THEN + 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT + 48 * + NULLIF ( 59, - 15 ) + ( - NULLIF ( + AVG ( ALL + 20 ), - SUM ( DISTINCT 29 ) * 44 + - 61 ) ) * - CASE - SUM ( DISTINCT 98 ) WHEN 97 THEN + 7 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 39 - - ( - 42 ) * 18 AS col1
----
-717

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT - 13 + - CASE + - COUNT( DISTINCT 9 ) WHEN - 74 THEN 32 WHEN 69 THEN NULL ELSE - 21 END
----
8

skipif mysql # not compatible
query I rowsort label-7438
SELECT - 13 + - CASE + - COUNT ( DISTINCT 9 ) WHEN - 74 THEN 32 WHEN 69 THEN NULL ELSE - 21 END
----
8

query I rowsort
SELECT - 31 * - 78
----
2418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7440
SELECT ALL ( + - ( CAST( + COUNT( * ) AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL ( + - ( CAST ( + COUNT ( * ) AS INTEGER ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT - - MIN( CASE - 40 WHEN + 26 THEN CASE 56 WHEN 6 * - ( 81 ) THEN - 44 END * 58 END ) / + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7441
SELECT - - MIN ( CASE - 40 WHEN + 26 THEN CASE 56 WHEN 6 * - ( 81 ) THEN - 44 END * 58 END ) / + 21 AS col1
----
NULL

query I rowsort
SELECT + 64 * 39 * + + 28
----
69888

onlyif mysql # aggregate syntax: 
query II rowsort label-7443
SELECT - - 22 AS col0, + COUNT( * ) AS col0
----
22
1

skipif mysql # not compatible
query II rowsort label-7443
SELECT - - 22 AS col0, + COUNT ( * ) AS col0
----
22
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL + COUNT( * ) + 51 * - - 3
----
154

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL + COUNT ( * ) + 51 * - - 3
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT - MAX( + 68 ) col0
----
-68

skipif mysql # not compatible
query I rowsort label-7445
SELECT - MAX ( + 68 ) col0
----
-68

query I rowsort
SELECT ALL - 45 + 38 * + - 66
----
-2553

query I rowsort
SELECT - - 39 + 12 AS col2
----
51

query II rowsort
SELECT - 45 AS col2, 8 + + 29
----
-45
37

query I rowsort
SELECT ALL CASE + 23 WHEN + 20 THEN NULL ELSE NULLIF ( - COALESCE ( + 44, + ( - 46 ) * 19, 20 * 83 ), + AVG ( 44 ) ) * + 63 END
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT DISTINCT + - 18 + COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT + - 18 + COUNT ( * ) AS col1
----
-17

query I rowsort
SELECT DISTINCT 83 + - + 91 + 60 * 18
----
1072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7452
SELECT ALL ( + CAST( - + 50 AS SIGNED ) )
----
-50

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL ( + CAST ( - + 50 AS INTEGER ) )
----
-50

query I rowsort
SELECT DISTINCT 92 + 75 - - 85 * 0 col2
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7454
SELECT DISTINCT + 26 + - COUNT( ALL - - CAST( NULL AS SIGNED ) ) col1
----
26

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT + 26 + - COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT DISTINCT SUM( - COALESCE ( 71, 10 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT SUM ( - COALESCE ( 71, 10 ) )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-7456
SELECT ALL - 75 DIV - 18 + - 61 - 17 + 34 * 67 AS col1
----
2204

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL - 75 / - 18 + - 61 - 17 + 34 * 67 AS col1
----
2204

onlyif mysql # DIV for integer division: 
query I rowsort label-7457
SELECT + 80 + 10 + + 99 DIV 89 * 75
----
165

skipif mysql # not compatible
query I rowsort label-7457
SELECT + 80 + 10 + + 99 / 89 * 75
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT ALL + - MAX( ALL 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL + - MAX ( ALL 5 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT + + 10 * + 74 + - COUNT( * ) * 18 + 36 * 78
----
3530

skipif mysql # not compatible
query I rowsort label-7459
SELECT + + 10 * + 74 + - COUNT ( * ) * 18 + 36 * 78
----
3530

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7460
SELECT NULLIF ( + 30, - 19 + CAST( - 44 + 33 AS DECIMAL ) )
----
30

skipif mysql # not compatible
query I rowsort label-7460
SELECT NULLIF ( + 30, - 19 + CAST ( - 44 + 33 AS REAL ) )
----
30

query II rowsort
SELECT + - 16, 80 AS col0
----
-16
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7462
SELECT ALL + COUNT( * ) DIV + 29 * 83 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL + COUNT ( * ) / + 29 * 83 + + COUNT ( * )
----
1

query I rowsort
SELECT + - 38 + 34 + + 10 * 31 AS col0
----
306

query I rowsort
SELECT + 51 * - 64
----
-3264

onlyif mysql # DIV for integer division: 
query I rowsort label-7465
SELECT ALL + 68 DIV - - 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL + 68 / - - 48 AS col2
----
1

query I rowsort
SELECT - 57 - NULLIF ( + - 29, 13 + 9 ) + 50 * 26
----
1272

query I rowsort
SELECT DISTINCT 62 * + 17 * + 57
----
60078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7468
SELECT DISTINCT 74 DIV - + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT 74 / - + COUNT ( * )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7469
SELECT ALL 8 / + 34 * 39 - - CASE + 28 WHEN + 34 THEN 7 * COUNT( * ) ELSE CAST( NULL AS SIGNED ) END + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL 8 / + 34 * 39 - - CASE + 28 WHEN + 34 THEN 7 * COUNT ( * ) ELSE CAST ( NULL AS INTEGER ) END + 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7470
SELECT + 3 * + 98 AS col1, COUNT( * )
----
294
1

skipif mysql # not compatible
query II rowsort label-7470
SELECT + 3 * + 98 AS col1, COUNT ( * )
----
294
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL 9 * ( + 64 ) * 50 * COUNT( * ) AS col2
----
28800

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL 9 * ( + 64 ) * 50 * COUNT ( * ) AS col2
----
28800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT DISTINCT ( - 70 ) / + CASE - ( + 35 ) WHEN + 80 / CAST( + 13 AS SIGNED ) THEN 26 WHEN - 91 THEN 36 * - 39 END - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT ( - 70 ) / + CASE - ( + 35 ) WHEN + 80 / CAST ( + 13 AS INTEGER ) THEN 26 WHEN - 91 THEN 36 * - 39 END - 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7473
SELECT ALL + COUNT( + 86 ) AS col1, + COALESCE ( + CASE WHEN NOT ( NULL ) = - 98 THEN - CAST( NULL AS SIGNED ) ELSE NULL END, + 28 * - 98 + + 52 ) AS col2
----
1
-2692

skipif mysql # not compatible
query II rowsort label-7473
SELECT ALL + COUNT ( + 86 ) AS col1, + COALESCE ( + CASE WHEN NOT ( NULL ) = - 98 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END, + 28 * - 98 + + 52 ) AS col2
----
1
-2692

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT - ( COUNT( * ) ) + 79 + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-7474
SELECT - ( COUNT ( * ) ) + 79 + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT ALL 3 * - - CASE 73 WHEN + - 97 * + COUNT( * ) THEN NULL WHEN - 31 THEN NULL WHEN - 97 THEN CASE COUNT( * ) WHEN 63 * - 15 THEN 15 END ELSE - ( - 54 ) END AS col1
----
162

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL 3 * - - CASE 73 WHEN + - 97 * + COUNT ( * ) THEN NULL WHEN - 31 THEN NULL WHEN - 97 THEN CASE COUNT ( * ) WHEN 63 * - 15 THEN 15 END ELSE - ( - 54 ) END AS col1
----
162

query I rowsort
SELECT 43 * ( 44 ) + + 36
----
1928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7477
SELECT - COUNT( * ) * - - 89 + - 48 + 17 * 63 DIV - 31
----
-171

skipif mysql # not compatible
query I rowsort label-7477
SELECT - COUNT ( * ) * - - 89 + - 48 + 17 * 63 / - 31
----
-171

query II rowsort
SELECT 18 * + + 14, + 19 + - 49 * + 57 AS col1
----
252
-2774

query I rowsort
SELECT 8 * 72
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT DISTINCT + MIN( + - 0 ) * 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT + MIN ( + - 0 ) * 39 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7481
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) + + - ( - - 23 ) + + 95
----
71

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) + + - ( - - 23 ) + + 95
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7482
SELECT ALL + NULLIF ( + 42, - COUNT( * ) * - 37 + CAST( NULL AS DECIMAL ) ) * - 3 AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL + NULLIF ( + 42, - COUNT ( * ) * - 37 + CAST ( NULL AS REAL ) ) * - 3 AS col1
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT + 78 DIV + 44
----
1

skipif mysql # not compatible
query I rowsort label-7483
SELECT + 78 / + 44
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7484
SELECT COUNT( * ) + 12 - + - 29 + + 1 DIV 57
----
42

skipif mysql # not compatible
query I rowsort label-7484
SELECT COUNT ( * ) + 12 - + - 29 + + 1 / 57
----
42

query I rowsort
SELECT DISTINCT - 7 * + 47 AS col1
----
-329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7486
SELECT ALL - 90 + 40 * 75 DIV - + COUNT( * )
----
-3090

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL - 90 + 40 * 75 / - + COUNT ( * )
----
-3090

query I rowsort
SELECT - - COALESCE ( - - NULLIF ( + + 19, + 73 * 75 - 11 * 2 ), - 54 ) AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT 23 DIV 64 * - + 34 * ( - 56 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7488
SELECT 23 / 64 * - + 34 * ( - 56 ) AS col0
----
0

query I rowsort
SELECT ALL + 88 + + + 68
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7490
SELECT ALL - + 45 DIV + - COUNT( * ) + + - COUNT( * ) * COUNT( * ) + + 50
----
94

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL - + 45 / + - COUNT ( * ) + + - COUNT ( * ) * COUNT ( * ) + + 50
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7491
SELECT ALL 81 + CASE - 53 WHEN ( + 88 ) * CAST( NULL AS SIGNED ) THEN + 89 + 20 ELSE 4 * ( ( 98 ) ) END AS col1
----
473

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL 81 + CASE - 53 WHEN ( + 88 ) * CAST ( NULL AS INTEGER ) THEN + 89 + 20 ELSE 4 * ( ( 98 ) ) END AS col1
----
473

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT SUM( + 82 ) + COUNT( * ) * - + 37
----
45

skipif mysql # not compatible
query I rowsort label-7492
SELECT SUM ( + 82 ) + COUNT ( * ) * - + 37
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7493
SELECT ALL - + 53 DIV + 29 - - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL - + 53 / + 29 - - + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7494
SELECT 54 - - + 57 + 44 + + - 45 DIV + CAST( COUNT( * ) AS SIGNED )
----
110

skipif mysql # not compatible
query I rowsort label-7494
SELECT 54 - - + 57 + 44 + + - 45 / + CAST ( COUNT ( * ) AS INTEGER )
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 17 + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 17 + 16
----
NULL

query I rowsort
SELECT ALL + 23 * + 29 AS col2
----
667

query I rowsort
SELECT ALL + 74 * 40
----
2960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7498
SELECT DISTINCT - 56 * + ( CAST( NULL AS SIGNED ) ) / 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT - 56 * + ( CAST ( NULL AS INTEGER ) ) / 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT DISTINCT - NULLIF ( - 88, + - 43 + COUNT( * ) * + + COALESCE ( 22, 53 ) + 0 ) col0
----
88

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT - NULLIF ( - 88, + - 43 + COUNT ( * ) * + + COALESCE ( 22, 53 ) + 0 ) col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7500
SELECT ALL 3 - + SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL 3 - + SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 76 * - ( - 83 )
----
6308

query I rowsort
SELECT 11 * - 96 AS col1
----
-1056

query I rowsort
SELECT ALL 8 * + - ( + 57 )
----
-456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT 1 * - CAST( 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-7504
SELECT 1 * - CAST ( 19 AS INTEGER )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7505
SELECT ALL 19 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL 19 / 65
----
0

query I rowsort
SELECT DISTINCT ( + 60 ) * - 74 * - + 24
----
106560

query II rowsort
SELECT + 84, + 42 AS col2
----
84
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7508
SELECT CAST( NULL AS SIGNED ) - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7508
SELECT CAST ( NULL AS INTEGER ) - 44 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7509
SELECT ALL - CAST( NULL AS SIGNED ) + + - 98 + - MIN( DISTINCT + ( 73 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 98 + - MIN ( DISTINCT + ( 73 ) )
----
NULL

query I rowsort
SELECT ALL 89 * + 97 * 82 * + + 71 AS col0
----
50261326

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT 36 - - - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-7511
SELECT 36 - - - COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-7512
SELECT 71 AS col2, COUNT( * ) * + + 44 - - + 25 col0
----
71
69

skipif mysql # not compatible
query II rowsort label-7512
SELECT 71 AS col2, COUNT ( * ) * + + 44 - - + 25 col0
----
71
69

query I rowsort
SELECT DISTINCT 15 + - 4 * + - 34 + + 25
----
176

query I rowsort
SELECT ALL + 20 + - 24 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT 61 + + MAX( DISTINCT + 49 ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-7515
SELECT 61 + + MAX ( DISTINCT + 49 ) AS col0
----
110

query I rowsort
SELECT ALL 86 + 44 AS col1
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7517
SELECT DISTINCT + + 80 + CAST( NULL AS SIGNED ) * - 78 AS col1, 67 AS col2
----
NULL
67

skipif mysql # not compatible
query II rowsort label-7517
SELECT DISTINCT + + 80 + CAST ( NULL AS INTEGER ) * - 78 AS col1, 67 AS col2
----
NULL
67

query I rowsort
SELECT NULLIF ( + NULLIF ( - - 2, - + 16 - + 42 * - 1 ), + AVG ( 57 ) * + 79 ) * 34
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT + COUNT( - ( + - ( - + 60 ) ) ) + - COALESCE ( 11, 82, + 19 ) * - 1 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7519
SELECT + COUNT ( - ( + - ( - + 60 ) ) ) + - COALESCE ( 11, 82, + 19 ) * - 1 AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7520
SELECT DISTINCT - - 51 * - - 50 + - 21 AS col1, NULLIF ( - 53, CAST( NULL AS SIGNED ) + - ( - 11 ) ) AS col1
----
2529
-53

skipif mysql # not compatible
query II rowsort label-7520
SELECT DISTINCT - - 51 * - - 50 + - 21 AS col1, NULLIF ( - 53, CAST ( NULL AS INTEGER ) + - ( - 11 ) ) AS col1
----
2529
-53

query I rowsort
SELECT DISTINCT + + 88 - + + 38
----
50

query I rowsort
SELECT 10 * - 2 * + COALESCE ( - + 21, - 97 )
----
420

query I rowsort
SELECT ALL + - 38 - + + 89
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7524
SELECT - CASE - 81 WHEN - - COUNT( * ) * - 73 THEN NULL WHEN 26 / 23 + - 90 * CAST( + COUNT( * ) * CAST( NULL AS SIGNED ) AS DECIMAL ) THEN 98 ELSE 95 * 58 + 35 * - 64 END AS col1
----
-3270

skipif mysql # not compatible
query I rowsort label-7524
SELECT - CASE - 81 WHEN - - COUNT ( * ) * - 73 THEN NULL WHEN 26 / 23 + - 90 * CAST ( + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS REAL ) THEN 98 ELSE 95 * 58 + 35 * - 64 END AS col1
----
-3270

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT - 42 + - + COUNT( * ) + - + 95 AS col1
----
-138

skipif mysql # not compatible
query I rowsort label-7525
SELECT - 42 + - + COUNT ( * ) + - + 95 AS col1
----
-138

query I rowsort
SELECT ALL + + 46 - + 50 * - + 79
----
3996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7527
SELECT ALL - MAX( + NULLIF ( + 92, + 99 + - 82 ) ) - + CAST( 71 AS SIGNED ) + ( - 52 + 23 ) AS col0
----
-192

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL - MAX ( + NULLIF ( + 92, + 99 + - 82 ) ) - + CAST ( 71 AS INTEGER ) + ( - 52 + 23 ) AS col0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT ALL MAX( ALL - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL MAX ( ALL - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT NULLIF ( - + 29, - + MIN( - 60 ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-7529
SELECT NULLIF ( - + 29, - + MIN ( - 60 ) ) AS col2
----
-29

query I rowsort
SELECT 79 * - - 34 + + 77 + + 90 + + 20 AS col0
----
2873

query II rowsort
SELECT ALL + 37 AS col1, 84
----
37
84

query I rowsort
SELECT COALESCE ( 86, + 72 ) AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7533
SELECT ALL + ( + 78 ), 58 DIV 76 DIV + ( NULLIF ( 26, 63 * - 50 - - COUNT( 43 ) ) ) col1
----
78
0

skipif mysql # not compatible
query II rowsort label-7533
SELECT ALL + ( + 78 ), 58 / 76 / + ( NULLIF ( 26, 63 * - 50 - - COUNT ( 43 ) ) ) col1
----
78
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7534
SELECT - 37 DIV + ( - 52 ) - - 67
----
67

skipif mysql # not compatible
query I rowsort label-7534
SELECT - 37 / + ( - 52 ) - - 67
----
67

query II rowsort
SELECT + 26 * - + 82, - 85 + - 83 AS col2
----
-2132
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7536
SELECT ALL 49 * + CASE - - ( 42 ) WHEN - 35 THEN + 83 WHEN - 90 + 5 THEN NULL WHEN 83 - 85 * - 10 THEN CAST( NULL AS SIGNED ) WHEN 94 THEN COUNT( * ) ELSE + 50 END + CASE 30 WHEN 65 THEN + 27 * + SUM( ALL + 77 ) WHEN 99 THEN NULL WHEN - 71 THEN 24 + - 95 * + AVG ( - 39 ) WHEN 60 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL 49 * + CASE - - ( 42 ) WHEN - 35 THEN + 83 WHEN - 90 + 5 THEN NULL WHEN 83 - 85 * - 10 THEN CAST ( NULL AS INTEGER ) WHEN 94 THEN COUNT ( * ) ELSE + 50 END + CASE 30 WHEN 65 THEN + 27 * + SUM ( ALL + 77 ) WHEN 99 THEN NULL WHEN - 71 THEN 24 + - 95 * + AVG ( - 39 ) WHEN 60 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT DISTINCT - COUNT( * ) * - 52
----
52

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT - COUNT ( * ) * - 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT + 8 + + 15 * - + 50 + + 87 - + COUNT( * )
----
-656

skipif mysql # not compatible
query I rowsort label-7538
SELECT + 8 + + 15 * - + 50 + + 87 - + COUNT ( * )
----
-656

query I rowsort
SELECT ALL - 8 * - + 47
----
376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7540
SELECT ALL + COUNT( * ) * + + 68 * + 12 + - 6 + - 57 - 7 DIV 79 AS col1
----
753

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL + COUNT ( * ) * + + 68 * + 12 + - 6 + - 57 - 7 / 79 AS col1
----
753

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7541
SELECT 17 * + 73 + 89 * + 71, CAST( NULL AS SIGNED ) AS col1
----
7560
NULL

skipif mysql # not compatible
query II rowsort label-7541
SELECT 17 * + 73 + 89 * + 71, CAST ( NULL AS INTEGER ) AS col1
----
7560
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT + - 5 * 44 + + COUNT( * )
----
-219

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT + - 5 * 44 + + COUNT ( * )
----
-219

query I rowsort
SELECT ALL - 57 * + + 5 * 59
----
-16815

query I rowsort
SELECT + 1 * + - 29 * - 48
----
1392

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7545
SELECT DISTINCT CAST( 46 AS SIGNED ) DIV ( + 74 ) * + 65 + 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT CAST ( 46 AS INTEGER ) / ( + 74 ) * + 65 + 57 AS col2
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7546
SELECT DISTINCT - 66 * COUNT( * ) AS col0, 11 AS col1
----
-66
11

skipif mysql # not compatible
query II rowsort label-7546
SELECT DISTINCT - 66 * COUNT ( * ) AS col0, 11 AS col1
----
-66
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7547
SELECT ALL - COUNT( * ) - MIN( + 22 ) * - 3 AS col0, 21 + 59 * 25
----
65
1496

skipif mysql # not compatible
query II rowsort label-7547
SELECT ALL - COUNT ( * ) - MIN ( + 22 ) * - 3 AS col0, 21 + 59 * 25
----
65
1496

query I rowsort
SELECT + - 2 * - + 87 * - 56 * - ( + ( + 22 ) )
----
214368

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL + SUM( ALL - 11 ) * + 66 * COUNT( * ) - + COUNT( * ) AS col0
----
-727

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL + SUM ( ALL - 11 ) * + 66 * COUNT ( * ) - + COUNT ( * ) AS col0
----
-727

query I rowsort
SELECT ALL + CASE + 47 WHEN + + AVG ( - + 32 ) THEN NULL WHEN - + 48 THEN NULL ELSE + ( + ( + 75 ) ) END AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT + + 27 * - + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-7551
SELECT + + 27 * - + COUNT ( * )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7552
SELECT + 46 + 83 - + + CASE 42 WHEN - 67 THEN - CAST( NULL AS SIGNED ) + + COALESCE ( - CASE 48 WHEN + MIN( - 12 ) * 2 THEN + 87 ELSE - NULLIF ( + 23, - 56 ) END - + 1, + 86 + + 64 / + 55 ) END / + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7552
SELECT + 46 + 83 - + + CASE 42 WHEN - 67 THEN - CAST ( NULL AS INTEGER ) + + COALESCE ( - CASE 48 WHEN + MIN ( - 12 ) * 2 THEN + 87 ELSE - NULLIF ( + 23, - 56 ) END - + 1, + 86 + + 64 / + 55 ) END / + 88
----
NULL

query I rowsort
SELECT DISTINCT 16 * 70 + 73 * - 35 AS col2
----
-1435

onlyif mysql # aggregate syntax: 
query II rowsort label-7554
SELECT - 73 * + 75, + CASE 26 WHEN + 21 THEN - 7 * COUNT( DISTINCT 30 ) - 67 END col0
----
-5475
NULL

skipif mysql # not compatible
query II rowsort label-7554
SELECT - 73 * + 75, + CASE 26 WHEN + 21 THEN - 7 * COUNT ( DISTINCT 30 ) - 67 END col0
----
-5475
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7555
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 67 col1
----
NULL

query I rowsort
SELECT ALL CASE 67 WHEN + 58 * - + 9 * 46 + - + 67 * - 40 THEN - 58 / + 70 END
----
NULL

query I rowsort
SELECT + + 1 * - - 4
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7558
SELECT + 27 AS col2, - 29 * NULLIF ( - MIN( ALL + 61 ), 49 + 39 ) + - 87 col0
----
27
1682

skipif mysql # not compatible
query II rowsort label-7558
SELECT + 27 AS col2, - 29 * NULLIF ( - MIN ( ALL + 61 ), 49 + 39 ) + - 87 col0
----
27
1682

query I rowsort
SELECT - 62 + 89
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7560
SELECT - CASE + MAX( - 68 ) WHEN + COUNT( * ) + COUNT( * ) THEN - 25 WHEN - MAX( 21 ) * + CAST( NULL AS SIGNED ) THEN NULL END - - 50 * ( 51 * + CAST( + 88 * - 81 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT - CASE + MAX ( - 68 ) WHEN + COUNT ( * ) + COUNT ( * ) THEN - 25 WHEN - MAX ( 21 ) * + CAST ( NULL AS INTEGER ) THEN NULL END - - 50 * ( 51 * + CAST ( + 88 * - 81 AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 93 * - 33 * - + 18
----
55242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7562
SELECT ALL + 84 * 42 * 47 * - + 80 DIV COUNT( * ) * 64
----
-848977920

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL + 84 * 42 * 47 * - + 80 / COUNT ( * ) * 64
----
-848977920

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT - ( - COUNT( DISTINCT - 11 ) ) * + + 92 * - 30
----
-2760

skipif mysql # not compatible
query I rowsort label-7563
SELECT - ( - COUNT ( DISTINCT - 11 ) ) * + + 92 * - 30
----
-2760

onlyif mysql # DIV for integer division: 
query I rowsort label-7564
SELECT - 90 DIV 23 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7564
SELECT - 90 / 23 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-7565
SELECT DISTINCT + 39 DIV + 53 AS col1, 76
----
0
76

skipif mysql # not compatible
query II rowsort label-7565
SELECT DISTINCT + 39 / + 53 AS col1, 76
----
0
76

query I rowsort
SELECT + 78 + + 1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7567
SELECT - COUNT( + + NULLIF ( - 89, ( 26 ) ) ) DIV + 77 * - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7567
SELECT - COUNT ( + + NULLIF ( - 89, ( 26 ) ) ) / + 77 * - 87 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT ALL + 57 DIV + NULLIF ( - - 65, - 43 + 47 ) + 26 + - + 22 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL + 57 / + NULLIF ( - - 65, - 43 + 47 ) + 26 + - + 22 AS col1
----
4

query I rowsort
SELECT - 44 * + - 80 - - - 57
----
3463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7570
SELECT ( CAST( NULL AS SIGNED ) ), + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7570
SELECT ( CAST ( NULL AS INTEGER ) ), + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7571
SELECT ALL - 28 * - - CASE + CASE 72 WHEN - 4 THEN + CAST( + 21 AS SIGNED ) END WHEN COUNT( * ) * - COUNT( * ) THEN COUNT( * ) END * 40 - ( 11 ) * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL - 28 * - - CASE + CASE 72 WHEN - 4 THEN + CAST ( + 21 AS INTEGER ) END WHEN COUNT ( * ) * - COUNT ( * ) THEN COUNT ( * ) END * 40 - ( 11 ) * + 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7572
SELECT - - CAST( NULL AS SIGNED ) + - 83 * - 98 AS col2, 98 AS col0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-7572
SELECT - - CAST ( NULL AS INTEGER ) + - 83 * - 98 AS col2, 98 AS col0
----
NULL
98

query I rowsort
SELECT ALL - 37 * + 77 - - 62
----
-2787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7574
SELECT - 94 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT - 94 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + + 9 * 14, + 67 AS col2
----
126
67

query I rowsort
SELECT - 8 - - - 40
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT + 42 * - MIN( + 78 ) - + - 77 AS col0
----
-3199

skipif mysql # not compatible
query I rowsort label-7577
SELECT + 42 * - MIN ( + 78 ) - + - 77 AS col0
----
-3199

query I rowsort
SELECT - 61 * 63
----
-3843

query I rowsort
SELECT + + NULLIF ( 25, + + 49 + 66 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7580
SELECT + 35 + - AVG ( CAST( NULL AS SIGNED ) ) * - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7580
SELECT + 35 + - AVG ( CAST ( NULL AS INTEGER ) ) * - 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT ALL 46 * + 95 * - - 55 - ( - COUNT( * ) )
----
240351

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL 46 * + 95 * - - 55 - ( - COUNT ( * ) )
----
240351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7582
SELECT + + NULLIF ( + - 17, COUNT( * ) ) * - 0 + + 81 * + 82 + ( 25 ) DIV 32
----
6642

skipif mysql # not compatible
query I rowsort label-7582
SELECT + + NULLIF ( + - 17, COUNT ( * ) ) * - 0 + + 81 * + 82 + ( 25 ) / 32
----
6642

query I rowsort
SELECT + + 90 * 6 AS col2
----
540

onlyif mysql # DIV for integer division: 
query II rowsort label-7584
SELECT ALL + 85 DIV 24, 27 AS col0
----
3
27

skipif mysql # not compatible
query II rowsort label-7584
SELECT ALL + 85 / 24, 27 AS col0
----
3
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7585
SELECT + - 21 + COUNT( * ) AS col1, - NULLIF ( + 3, + - 53 ) AS col1
----
-20
-3

skipif mysql # not compatible
query II rowsort label-7585
SELECT + - 21 + COUNT ( * ) AS col1, - NULLIF ( + 3, + - 53 ) AS col1
----
-20
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL - - COUNT( * ) * + MAX( DISTINCT 49 ) * 60 + - 18 - - 62 * + + 35 * - 66
----
-140298

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - - COUNT ( * ) * + MAX ( DISTINCT 49 ) * 60 + - 18 - - 62 * + + 35 * - 66
----
-140298

query III rowsort
SELECT + + 46 + 84 col0, 35 * - ( 16 ), 2 AS col1
----
130
-560
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7588
SELECT ALL + COUNT( * ) * - + CAST( 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL + COUNT ( * ) * - + CAST ( 19 AS INTEGER )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT CASE - - 9 WHEN MAX( DISTINCT + NULLIF ( - 72, - 58 ) ) * - 91 * 78 THEN - 67 WHEN 38 THEN NULL WHEN - 81 + + COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT CASE - - 9 WHEN MAX ( DISTINCT + NULLIF ( - 72, - 58 ) ) * - 91 * 78 THEN - 67 WHEN 38 THEN NULL WHEN - 81 + + COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT 49 + + + 28 - - COUNT( * ) * 80
----
157

skipif mysql # not compatible
query I rowsort label-7590
SELECT 49 + + + 28 - - COUNT ( * ) * 80
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7591
SELECT + COUNT( + 96 ), CASE - CAST( NULL AS SIGNED ) WHEN + NULLIF ( 50, COUNT( * ) * - 18 ) - + 58 THEN - 85 END * - 91 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7591
SELECT + COUNT ( + 96 ), CASE - CAST ( NULL AS INTEGER ) WHEN + NULLIF ( 50, COUNT ( * ) * - 18 ) - + 58 THEN - 85 END * - 91 AS col0
----
1
NULL

query I rowsort
SELECT 8 + - + 63 * + 62 AS col1
----
-3898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7593
SELECT - SUM( ALL + 81 ) DIV - - 61 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7593
SELECT - SUM ( ALL + 81 ) / - - 61 AS col2
----
-1

query II rowsort
SELECT 39 * + - COALESCE ( + 52, + 86 + + 93 ), + 12 AS col1
----
-2028
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7595
SELECT ALL 39 * + 91 * 78 * + 49 DIV - 49 AS col0
----
-276822

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL 39 * + 91 * 78 * + 49 / - 49 AS col0
----
-276822

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT SUM( DISTINCT + COALESCE ( + + 95, + 52, + 60 ) ) + - - 32 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-7596
SELECT SUM ( DISTINCT + COALESCE ( + + 95, + 52, + 60 ) ) + - - 32 AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7597
SELECT ALL 33 + - - 9 + - + 57 + + 78 / + - COUNT( * ) * + + CAST( NULL AS SIGNED ) + 29 - - + 51 * + ( CAST( NULL AS SIGNED ) * 98 + - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL 33 + - - 9 + - + 57 + + 78 / + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + 29 - - + 51 * + ( CAST ( NULL AS INTEGER ) * 98 + - 37 )
----
NULL

query I rowsort
SELECT 92 + + 23
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7599
SELECT ALL 44 + + COUNT( * ) + + 10 / - + COUNT( * ) * + 52 + + 45 + + ( - COUNT( * ) ) - - 1 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL 44 + + COUNT ( * ) + + 10 / - + COUNT ( * ) * + 52 + + 45 + + ( - COUNT ( * ) ) - - 1 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7600
SELECT NULLIF ( 97, + CAST( NULL AS DECIMAL ) + - 71 ) + - 87 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7600
SELECT NULLIF ( 97, + CAST ( NULL AS REAL ) + - 71 ) + - 87 AS col1
----
10

query I rowsort
SELECT ALL + 80 + + ( + 22 )
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-7602
SELECT ALL 14 AS col2, 12 - + COUNT( * ) AS col2
----
14
11

skipif mysql # not compatible
query II rowsort label-7602
SELECT ALL 14 AS col2, 12 - + COUNT ( * ) AS col2
----
14
11

query I rowsort
SELECT ALL 97 + + 51 AS col2
----
148

query I rowsort
SELECT 17 + - 83 AS col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7605
SELECT 46 + - - 10 * + 82 + + 55 * - ( - 89 ) col0, 24 * - + CAST( NULL AS SIGNED ) * + 34 col1
----
5761
NULL

skipif mysql # not compatible
query II rowsort label-7605
SELECT 46 + - - 10 * + 82 + + 55 * - ( - 89 ) col0, 24 * - + CAST ( NULL AS INTEGER ) * + 34 col1
----
5761
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7606
SELECT ALL - 91, + SUM( + 87 ) * - 60 + - - 73 + + 92 AS col1
----
-91
-5055

skipif mysql # not compatible
query II rowsort label-7606
SELECT ALL - 91, + SUM ( + 87 ) * - 60 + - - 73 + + 92 AS col1
----
-91
-5055

query I rowsort
SELECT 54 * - 84 + 8 * + 23 AS col1
----
-4352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT ALL 31 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL 31 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 18 - + 89
----
-71

query I rowsort
SELECT 42 * - 64
----
-2688

query II rowsort
SELECT ALL - - 53 AS col2, 90 + + 72
----
53
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7612
SELECT + 45 * + CASE + - ( CAST( - - 84 AS SIGNED ) ) WHEN - - COALESCE ( 37, - 41 + 78 ) THEN COUNT( * ) WHEN + COUNT( * ) * ( ( - 22 ) ) - + COUNT( * ) THEN NULL END + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT + 45 * + CASE + - ( CAST ( - - 84 AS INTEGER ) ) WHEN - - COALESCE ( 37, - 41 + 78 ) THEN COUNT ( * ) WHEN + COUNT ( * ) * ( ( - 22 ) ) - + COUNT ( * ) THEN NULL END + + 12
----
NULL

query I rowsort
SELECT + 15 * - 1 + - 68 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ( - NULLIF ( - COUNT( ALL 97 ), + 44 * - 86 + 84 ) ) * - 41 * - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-7614
SELECT ( - NULLIF ( - COUNT ( ALL 97 ), + 44 * - 86 + 84 ) ) * - 41 * - COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7615
SELECT - COUNT( * ) AS col0, + 90 col0
----
-1
90

skipif mysql # not compatible
query II rowsort label-7615
SELECT - COUNT ( * ) AS col0, + 90 col0
----
-1
90

query I rowsort
SELECT ALL + + 31 * + 51 col0
----
1581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7617
SELECT + CAST( 36 AS SIGNED ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7617
SELECT + CAST ( 36 AS INTEGER ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7618
SELECT ALL - + CASE - 54 WHEN - MIN( ALL + 64 ) * + 55 THEN NULL WHEN - 62 / - MIN( ALL - - 95 ) - COUNT( + 32 + 84 ) THEN NULL WHEN 52 THEN + COALESCE ( - 16, + NULLIF ( CAST( NULL AS DECIMAL ), + 57 * 5 ), 37, 51 ) + - AVG ( 62 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL - + CASE - 54 WHEN - MIN ( ALL + 64 ) * + 55 THEN NULL WHEN - 62 / - MIN ( ALL - - 95 ) - COUNT ( + 32 + 84 ) THEN NULL WHEN 52 THEN + COALESCE ( - 16, + NULLIF ( CAST ( NULL AS REAL ), + 57 * 5 ), 37, 51 ) + - AVG ( 62 ) END AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 67 AS col2, 33 col0
----
-67
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT + - COUNT( ALL 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-7620
SELECT + - COUNT ( ALL 94 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT ALL + - CAST( NULL AS SIGNED ) * - + COALESCE ( - + 45, - 21 ) + - COALESCE ( 79, - 37, + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL + - CAST ( NULL AS INTEGER ) * - + COALESCE ( - + 45, - 21 ) + - COALESCE ( 79, - 37, + 97 )
----
NULL

query I rowsort
SELECT 33 + 85
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT + SUM( - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-7623
SELECT + SUM ( - 20 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7624
SELECT - - CASE WHEN + 4 BETWEEN + + 50 + - 1 AND ( + - 15 + - 68 - 54 ) THEN + 58 * - 17 WHEN NOT + CAST( - CAST( 70 AS SIGNED ) AS SIGNED ) IS NOT NULL THEN 83 + + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT - - CASE WHEN + 4 BETWEEN + + 50 + - 1 AND ( + - 15 + - 68 - 54 ) THEN + 58 * - 17 WHEN NOT + CAST ( - CAST ( 70 AS INTEGER ) AS INTEGER ) IS NOT NULL THEN 83 + + COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 44 + 52 AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7626
SELECT 23 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7626
SELECT 23 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + + 14 + + 51 * - - 75 + - - 73 AS col0, - 34 * - + 91 + + + 16 AS col1
----
3912
3110

query I rowsort
SELECT 86 - + + 47
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT DISTINCT 92 + - COUNT( * ) + + COUNT( * ) + - 39 * + + ( 4 ) * 19
----
-2872

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT 92 + - COUNT ( * ) + + COUNT ( * ) + - 39 * + + ( 4 ) * 19
----
-2872

query II rowsort
SELECT 95 - - 8 col2, - 92 + + ( + + 46 ) AS col0
----
103
-46

query II rowsort
SELECT DISTINCT 27 + - NULLIF ( 9, 96 * - 93 ) AS col2, - 93
----
18
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT DISTINCT 44 * - COUNT( * ) * + 75 * 38
----
-125400

skipif mysql # not compatible
query I rowsort label-7632
SELECT DISTINCT 44 * - COUNT ( * ) * + 75 * 38
----
-125400

query II rowsort
SELECT DISTINCT 91 + 72 * + - 22 * 27 AS col1, - ( - 90 ) AS col0
----
-42677
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7634
SELECT COUNT( * ) * - 16 AS col0, 45 AS col2
----
-16
45

skipif mysql # not compatible
query II rowsort label-7634
SELECT COUNT ( * ) * - 16 AS col0, 45 AS col2
----
-16
45

onlyif mysql # aggregate syntax: 
query II rowsort label-7635
SELECT 11 * COUNT( * ), 28 AS col1
----
11
28

skipif mysql # not compatible
query II rowsort label-7635
SELECT 11 * COUNT ( * ), 28 AS col1
----
11
28

onlyif mysql # DIV for integer division: 
query II rowsort label-7636
SELECT 17 DIV 58, ( - - 43 ) AS col2
----
0
43

skipif mysql # not compatible
query II rowsort label-7636
SELECT 17 / 58, ( - - 43 ) AS col2
----
0
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT ALL - 3 * + + 58 * - 27 - - ( COUNT( * ) ) AS col2
----
4699

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL - 3 * + + 58 * - 27 - - ( COUNT ( * ) ) AS col2
----
4699

query I rowsort
SELECT DISTINCT ( + 74 ) * 63
----
4662

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT MAX( + - 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-7639
SELECT MAX ( + - 83 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT + MIN( DISTINCT - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-7640
SELECT + MIN ( DISTINCT - 61 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT CAST( + ( + 56 ) AS SIGNED ) * - 90
----
-5040

skipif mysql # not compatible
query I rowsort label-7641
SELECT CAST ( + ( + 56 ) AS INTEGER ) * - 90
----
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT MIN( DISTINCT 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7642
SELECT MIN ( DISTINCT 56 ) AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7643
SELECT + 20 + ( + 34 ) + COUNT( * ), - CAST( NULL AS SIGNED ) + - 24 AS col2
----
55
NULL

skipif mysql # not compatible
query II rowsort label-7643
SELECT + 20 + ( + 34 ) + COUNT ( * ), - CAST ( NULL AS INTEGER ) + - 24 AS col2
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL + - 78 * + + 51 * - 48 - - 53 * - - COUNT( * ) AS col0
----
190997

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL + - 78 * + + 51 * - 48 - - 53 * - - COUNT ( * ) AS col0
----
190997

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT COUNT( + - 98 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7645
SELECT COUNT ( + - 98 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT 46 * - MAX( DISTINCT + 80 ) * ( 42 ) * + - 23 * 44 + + 6 * + + 51 AS col2
----
156415026

skipif mysql # not compatible
query I rowsort label-7646
SELECT 46 * - MAX ( DISTINCT + 80 ) * ( 42 ) * + - 23 * 44 + + 6 * + + 51 AS col2
----
156415026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7647
SELECT - 12 * + CAST( - 47 AS SIGNED ) / - 40 * + + NULLIF ( - 18, - + COUNT( * ) ) + - 11 * - + CASE - NULLIF ( 97, MIN( DISTINCT 37 ) ) WHEN - CAST( - 53 AS SIGNED ) * 16 THEN + 98 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT - 12 * + CAST ( - 47 AS INTEGER ) / - 40 * + + NULLIF ( - 18, - + COUNT ( * ) ) + - 11 * - + CASE - NULLIF ( 97, MIN ( DISTINCT 37 ) ) WHEN - CAST ( - 53 AS INTEGER ) * 16 THEN + 98 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7648
SELECT DISTINCT CASE + - 50 WHEN + COALESCE ( - - 74, ( - + COUNT( * ) ) * + 22 ) / - - 33 + - COUNT( * ) * + MIN( DISTINCT 0 ) THEN - 26 ELSE + COUNT( + 38 ) END * CAST( - 46 AS SIGNED ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT CASE + - 50 WHEN + COALESCE ( - - 74, ( - + COUNT ( * ) ) * + 22 ) / - - 33 + - COUNT ( * ) * + MIN ( DISTINCT 0 ) THEN - 26 ELSE + COUNT ( + 38 ) END * CAST ( - 46 AS INTEGER ) AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7649
SELECT + MAX( DISTINCT + 60 ) * - 21 + CAST( 45 AS SIGNED ) * - 64
----
-4140

skipif mysql # not compatible
query I rowsort label-7649
SELECT + MAX ( DISTINCT + 60 ) * - 21 + CAST ( 45 AS INTEGER ) * - 64
----
-4140

onlyif mysql # DIV for integer division: 
query I rowsort label-7650
SELECT - 79 DIV + + 15
----
-5

skipif mysql # not compatible
query I rowsort label-7650
SELECT - 79 / + + 15
----
-5

query I rowsort
SELECT - COALESCE ( - - 29, - + 93 - - - 15, + 86 * 30 )
----
-29

query I rowsort
SELECT ALL 67 + 18
----
85

query I rowsort
SELECT + - 44 + - 82
----
-126

query I rowsort
SELECT NULLIF ( 12, + 49 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7655
SELECT ALL - 42 + + + COUNT( * ) DIV - + 7 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL - 42 + + + COUNT ( * ) / - + 7 AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7656
SELECT + ( + - CASE 42 WHEN + NULLIF ( 54, - 81 + + - 70 ) + 66 THEN + 72 END ) * + ( + 30 + MAX( - 23 ) * 60 ) + COALESCE ( 85, - 17 + 64 * + CAST( NULL AS SIGNED ), + 93 * + 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7656
SELECT + ( + - CASE 42 WHEN + NULLIF ( 54, - 81 + + - 70 ) + 66 THEN + 72 END ) * + ( + 30 + MAX ( - 23 ) * 60 ) + COALESCE ( 85, - 17 + 64 * + CAST ( NULL AS INTEGER ), + 93 * + 5 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT - ( CASE - COUNT( * ) WHEN 50 * - 31 / COUNT( * ) * - COUNT( * ) + COALESCE ( + 83, 79 * MIN( DISTINCT 9 ) ) + 87 THEN NULL ELSE 53 END ) + 99
----
46

skipif mysql # not compatible
query I rowsort label-7657
SELECT - ( CASE - COUNT ( * ) WHEN 50 * - 31 / COUNT ( * ) * - COUNT ( * ) + COALESCE ( + 83, 79 * MIN ( DISTINCT 9 ) ) + 87 THEN NULL ELSE 53 END ) + 99
----
46

query I rowsort
SELECT ALL COALESCE ( + 89, 15 )
----
89

query I rowsort
SELECT ALL - 52 + 37 + 43 - - 12 * + 73 col2
----
904

onlyif mysql # aggregate syntax: 
query II rowsort label-7660
SELECT ALL - ( COUNT( * ) ) + + 0 * 79 + + 40 AS col2, + ( + 96 ) * + CASE COUNT( * ) WHEN - + CASE + 16 WHEN COUNT( * ) THEN COALESCE ( + 42, - COUNT( + 18 ) + 74 * ( 2 * 51 ) ) * ( - 80 ) ELSE COUNT( * ) * + 22 + 71 END THEN ( + 94 ) - - 31 ELSE NULL END + + COUNT( * ) / - 3 + 79 col2
----
39
NULL

skipif mysql # not compatible
query II rowsort label-7660
SELECT ALL - ( COUNT ( * ) ) + + 0 * 79 + + 40 AS col2, + ( + 96 ) * + CASE COUNT ( * ) WHEN - + CASE + 16 WHEN COUNT ( * ) THEN COALESCE ( + 42, - COUNT ( + 18 ) + 74 * ( 2 * 51 ) ) * ( - 80 ) ELSE COUNT ( * ) * + 22 + 71 END THEN ( + 94 ) - - 31 ELSE NULL END + + COUNT ( * ) / - 3 + 79 col2
----
39
NULL

query I rowsort
SELECT ALL - 53 + + 39
----
-14

query II rowsort
SELECT 40 AS col1, 75
----
40
75

query I rowsort
SELECT - 44 + 66 * - 92 - + 51
----
-6167

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL - SUM( DISTINCT 19 ) * + - 61 * - 53 + 11 AS col2
----
-61416

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL - SUM ( DISTINCT 19 ) * + - 61 * - 53 + 11 AS col2
----
-61416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7665
SELECT DISTINCT CASE + 66 WHEN + + 62 * - 88 + + - CAST( NULL AS SIGNED ) THEN + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT CASE + 66 WHEN + + 62 * - 88 + + - CAST ( NULL AS INTEGER ) THEN + 74 END
----
NULL

query II rowsort
SELECT 21 AS col1, 39 * - 38 * - 60 AS col2
----
21
88920

query I rowsort
SELECT ALL ( + - 84 ) col0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-7668
SELECT ALL 72 * 6 DIV - 8
----
-54

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL 72 * 6 / - 8
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT + 78 * + MAX( DISTINCT - - 26 ) AS col1
----
2028

skipif mysql # not compatible
query I rowsort label-7669
SELECT + 78 * + MAX ( DISTINCT - - 26 ) AS col1
----
2028

query I rowsort
SELECT ALL 89 * + 24 col0
----
2136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7671
SELECT + 95 + - COUNT( * ) * - NULLIF ( - ( 13 ), - 60 ) DIV + 13 + COALESCE ( - 95, 52 - + 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-7671
SELECT + 95 + - COUNT ( * ) * - NULLIF ( - ( 13 ), - 60 ) / + 13 + COALESCE ( - 95, 52 - + 93 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT DISTINCT - 18 / CASE - 26 WHEN - 56 THEN NULL WHEN + - 89 THEN SUM( DISTINCT - - ( - 2 ) ) + + - 58 + ( + 63 ) * + 41 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT - 18 / CASE - 26 WHEN - 56 THEN NULL WHEN + - 89 THEN SUM ( DISTINCT - - ( - 2 ) ) + + - 58 + ( + 63 ) * + 41 END AS col1
----
NULL

query I rowsort
SELECT ALL 36 * 36 * + 46 AS col0
----
59616

query I rowsort
SELECT - 42 * + 31 AS col0
----
-1302

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT + ( - + 35 ) DIV + 52 + + 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7675
SELECT + ( - + 35 ) / + 52 + + 53 AS col1
----
53

query I rowsort
SELECT - - 0 * - 52 AS col2
----
0

query I rowsort
SELECT ALL 71 * - 62
----
-4402

query I rowsort
SELECT ALL - - 23 * + ( + + 80 ) col2
----
1840

query I rowsort
SELECT ALL + + 60 * - - 42 * + 66 * + 69 AS col0
----
11476080

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT + MAX( DISTINCT - + 32 ) * - COUNT( * ) * + 23 + - + COUNT( + 0 ) AS col2
----
735

skipif mysql # not compatible
query I rowsort label-7680
SELECT + MAX ( DISTINCT - + 32 ) * - COUNT ( * ) * + 23 + - + COUNT ( + 0 ) AS col2
----
735

query I rowsort
SELECT DISTINCT 14 * - + 46 * - 76 * - 40 + - - 35 + 74 AS col2
----
-1957651

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT + - ( + COUNT( * ) ) + - + 60 * + 91 AS col1
----
-5461

skipif mysql # not compatible
query I rowsort label-7682
SELECT + - ( + COUNT ( * ) ) + - + 60 * + 91 AS col1
----
-5461

query II rowsort
SELECT + + 73 * - 16 + + 30, + 63 AS col2
----
-1138
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7684
SELECT - 56 * + - 31 * 22 DIV + COUNT( * ) + + NULLIF ( + - 24, 13 * + COUNT( * ) ) + 38 + + + 76 col0
----
38282

skipif mysql # not compatible
query I rowsort label-7684
SELECT - 56 * + - 31 * 22 / + COUNT ( * ) + + NULLIF ( + - 24, 13 * + COUNT ( * ) ) + 38 + + + 76 col0
----
38282

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT - 31 DIV 9 + ( - ( + 29 ) ) * - 84 + 29 * + ( 88 ) * + + 79 + - 21 * 29 AS col1
----
203432

skipif mysql # not compatible
query I rowsort label-7685
SELECT - 31 / 9 + ( - ( + 29 ) ) * - 84 + 29 * + ( 88 ) * + + 79 + - 21 * 29 AS col1
----
203432

query I rowsort
SELECT + - 90 + 0 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT + SUM( ALL + 48 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-7687
SELECT + SUM ( ALL + 48 ) AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7688
SELECT + 97 DIV + + 28
----
3

skipif mysql # not compatible
query I rowsort label-7688
SELECT + 97 / + + 28
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT ALL SUM( ( - 40 ) ) * NULLIF ( 62, 51 ) + - - 39 + 78 + + 62 * + 74 + 10 * 71
----
2935

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL SUM ( ( - 40 ) ) * NULLIF ( 62, 51 ) + - - 39 + 78 + + 62 * + 74 + 10 * 71
----
2935

query I rowsort
SELECT + 92 * + + 64 AS col2
----
5888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7691
SELECT ALL + CASE + 78 WHEN - - SUM( DISTINCT - 13 ) * 62 / 41 THEN - - 80 ELSE + CAST( + MAX( ALL - 36 ) AS SIGNED ) END * + 37 * + 48 - + COALESCE ( 33, 74 )
----
-63969

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL + CASE + 78 WHEN - - SUM ( DISTINCT - 13 ) * 62 / 41 THEN - - 80 ELSE + CAST ( + MAX ( ALL - 36 ) AS INTEGER ) END * + 37 * + 48 - + COALESCE ( 33, 74 )
----
-63969

query I rowsort
SELECT - 85 + + 14
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT - 44 DIV + - 35 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7693
SELECT - 44 / + - 35 AS col1
----
1

query I rowsort
SELECT + 56 * - + ( + 41 ) * + ( - 96 ) col1
----
220416

query I rowsort
SELECT - 62 + - - 13
----
-49

query I rowsort
SELECT + 8 - + + NULLIF ( - 15, + 98 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7697
SELECT DISTINCT COUNT( * ) col0, - 98
----
1
-98

skipif mysql # not compatible
query II rowsort label-7697
SELECT DISTINCT COUNT ( * ) col0, - 98
----
1
-98

query I rowsort
SELECT - 84 + ( - + 8 ) AS col0
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7699
SELECT ALL - 31 * - - 28 * - 15 DIV + COUNT( * ) AS col0
----
13020

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL - 31 * - - 28 * - 15 / + COUNT ( * ) AS col0
----
13020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT DISTINCT CAST( 75 AS SIGNED ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT CAST ( 75 AS INTEGER ) AS col2
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7701
SELECT - 77, - 12 * - - CAST( NULL AS DECIMAL ) * + + 63 AS col1
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-7701
SELECT - 77, - 12 * - - CAST ( NULL AS REAL ) * + + 63 AS col1
----
-77
NULL

query I rowsort
SELECT + 48 + + 29
----
77

query I rowsort
SELECT - 54 * + + 7 * + ( 20 )
----
-7560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7704
SELECT ALL - COALESCE ( + + COUNT( - + COALESCE ( + 36, - 38 + 63 ) ), - 66 ) * + + ( 39 ) * + 47 DIV - 47 + + 12 DIV 73 + - 60 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL - COALESCE ( + + COUNT ( - + COALESCE ( + 36, - 38 + 63 ) ), - 66 ) * + + ( 39 ) * + 47 / - 47 + + 12 / 73 + - 60 AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7705
SELECT - 18 DIV - NULLIF ( 19, ( - - COUNT( * ) ) * + 70 ), + ( - 8 ) * - - CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7705
SELECT - 18 / - NULLIF ( 19, ( - - COUNT ( * ) ) * + 70 ), + ( - 8 ) * - - CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

query II rowsort
SELECT DISTINCT - 39 AS col1, + 16 - + 45 AS col2
----
-39
-29

query I rowsort
SELECT DISTINCT - 90 + - - 89 * + 53 AS col0
----
4627

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7708
SELECT ALL + 68 DIV COUNT( * ) * + + 99
----
6732

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL + 68 / COUNT ( * ) * + + 99
----
6732

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7709
SELECT ALL + 57 + + 80 AS col0, + 36 * - - COALESCE ( - CAST( NULL AS SIGNED ), - + 62 * 94 + 31 ) + + - 15 + - ( + 90 ) + - 5 * 92
----
137
-209257

skipif mysql # not compatible
query II rowsort label-7709
SELECT ALL + 57 + + 80 AS col0, + 36 * - - COALESCE ( - CAST ( NULL AS INTEGER ), - + 62 * 94 + 31 ) + + - 15 + - ( + 90 ) + - 5 * 92
----
137
-209257

query I rowsort
SELECT DISTINCT - 99 + 37
----
-62

query I rowsort
SELECT DISTINCT NULLIF ( - 14, + + 13 ) + - 62
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7712
SELECT ALL ( - SUM( + - 0 ) ) + - ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT ALL ( - SUM ( + - 0 ) ) + - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7713
SELECT ALL - 80, - COUNT( DISTINCT 5 ) AS col1
----
-80
-1

skipif mysql # not compatible
query II rowsort label-7713
SELECT ALL - 80, - COUNT ( DISTINCT 5 ) AS col1
----
-80
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7714
SELECT ALL + NULLIF ( + MAX( ALL - 40 ), + 23 ) * + 70 + + 66 - - CAST( - 84 AS SIGNED ) * - COUNT( * ) AS col0
----
-2650

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL + NULLIF ( + MAX ( ALL - 40 ), + 23 ) * + 70 + + 66 - - CAST ( - 84 AS INTEGER ) * - COUNT ( * ) AS col0
----
-2650

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT - COUNT( 2 ) * COUNT( * ) * + 87 * - 88 col2
----
7656

skipif mysql # not compatible
query I rowsort label-7715
SELECT - COUNT ( 2 ) * COUNT ( * ) * + 87 * - 88 col2
----
7656

query I rowsort
SELECT 29 * 16 AS col0
----
464

query I rowsort
SELECT ALL - ( 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT DISTINCT + 14 * + + COALESCE ( + 39, + + COALESCE ( - + 50, + SUM( DISTINCT + 20 ) ), + 64 ) AS col2
----
546

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT + 14 * + + COALESCE ( + 39, + + COALESCE ( - + 50, + SUM ( DISTINCT + 20 ) ), + 64 ) AS col2
----
546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7719
SELECT DISTINCT - - 78 + - 84 DIV COUNT( * ) DIV + 91
----
78

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT - - 78 + - 84 / COUNT ( * ) / + 91
----
78

query I rowsort
SELECT 88 + 81 col1
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-7721
SELECT ALL COUNT( * ) - + 20, - 41 AS col0
----
-19
-41

skipif mysql # not compatible
query II rowsort label-7721
SELECT ALL COUNT ( * ) - + 20, - 41 AS col0
----
-19
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7722
SELECT NULLIF ( 41, - AVG ( DISTINCT + 78 ) ) * + CASE - ( - + CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) * + - CAST( NULL AS DECIMAL ) * 92 * 72 * - + CASE - 1 WHEN - 72 THEN + CASE + COUNT( ALL + 69 ) WHEN 89 THEN + 36 ELSE COUNT( * ) END / + 98 END * - 3 THEN - SUM( DISTINCT - 63 ) ELSE CASE 88 WHEN - ( AVG ( - 16 ) ) THEN NULL ELSE + 52 END + - 27 END + CASE 95 + + 17 WHEN - 11 THEN - 52 * + COUNT( DISTINCT + 12 * - 80 ) + - 71 * + CAST( 99 AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT NULLIF ( 41, - AVG ( DISTINCT + 78 ) ) * + CASE - ( - + CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) * + - CAST ( NULL AS REAL ) * 92 * 72 * - + CASE - 1 WHEN - 72 THEN + CASE + COUNT ( ALL + 69 ) WHEN 89 THEN + 36 ELSE COUNT ( * ) END / + 98 END * - 3 THEN - SUM ( DISTINCT - 63 ) ELSE CASE 88 WHEN - ( AVG ( - 16 ) ) THEN NULL ELSE + 52 END + - 27 END + CASE 95 + + 17 WHEN - 11 THEN - 52 * + COUNT ( DISTINCT + 12 * - 80 ) + - 71 * + CAST ( 99 AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7723
SELECT 35 * - SUM( DISTINCT + ( - 98 ) ) * 48 - - 89 - + 82 * + CAST( - + 46 AS SIGNED ) + - - 66
----
168567

skipif mysql # not compatible
query I rowsort label-7723
SELECT 35 * - SUM ( DISTINCT + ( - 98 ) ) * 48 - - 89 - + 82 * + CAST ( - + 46 AS INTEGER ) + - - 66
----
168567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7724
SELECT DISTINCT MIN( - - 50 ) DIV + + 72
----
0

skipif mysql # not compatible
query I rowsort label-7724
SELECT DISTINCT MIN ( - - 50 ) / + + 72
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT COALESCE ( + 66, + 1 DIV - - 47 + - 32 ) + 80 AS col2
----
146

skipif mysql # not compatible
query I rowsort label-7725
SELECT COALESCE ( + 66, + 1 / - - 47 + - 32 ) + 80 AS col2
----
146

query I rowsort
SELECT NULLIF ( - 21, - 44 ) * - + 71
----
1491

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT 36 * - ( + 63 ) * - COUNT( * )
----
2268

skipif mysql # not compatible
query I rowsort label-7727
SELECT 36 * - ( + 63 ) * - COUNT ( * )
----
2268

query I rowsort
SELECT ALL 54 + - 87 AS col0
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-7729
SELECT ALL 13 DIV - + 2, 48 * 88 AS col2
----
-6
4224

skipif mysql # not compatible
query II rowsort label-7729
SELECT ALL 13 / - + 2, 48 * 88 AS col2
----
-6
4224

query II rowsort
SELECT DISTINCT + 55 * 29 AS col0, + 14
----
1595
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT ALL 92 + - 93 + + + 41 * SUM( + + ( 38 ) )
----
1557

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL 92 + - 93 + + + 41 * SUM ( + + ( 38 ) )
----
1557

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ALL - - ( 45 ) + + + 29 * 21 - + + COUNT( * ) - 75 * + 22 col0
----
-997

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL - - ( 45 ) + + + 29 * 21 - + + COUNT ( * ) - 75 * + 22 col0
----
-997

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT - 89 * ( MIN( ALL + 47 ) )
----
-4183

skipif mysql # not compatible
query I rowsort label-7733
SELECT - 89 * ( MIN ( ALL + 47 ) )
----
-4183

query I rowsort
SELECT 5 + + 50 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT DISTINCT + + COUNT( * ) + + - 68 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT + + COUNT ( * ) + + - 68 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-7736
SELECT ALL + - 80 + + 90, COUNT( * ) * + 4 AS col1
----
10
4

skipif mysql # not compatible
query II rowsort label-7736
SELECT ALL + - 80 + + 90, COUNT ( * ) * + 4 AS col1
----
10
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT + - ( + SUM( 11 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-7737
SELECT + - ( + SUM ( 11 ) )
----
-11

query I rowsort
SELECT ALL + - 88 - - 95 * + 42 AS col0
----
3902

query I rowsort
SELECT - 61 * + + 46 + 35 col0
----
-2771

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL - 5 - + SUM( DISTINCT - 92 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL - 5 - + SUM ( DISTINCT - 92 ) AS col0
----
87

query I rowsort
SELECT + - 54 col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7742
SELECT - 88 DIV - 18 + + ( - 74 ) * + 26 AS col2
----
-1920

skipif mysql # not compatible
query I rowsort label-7742
SELECT - 88 / - 18 + + ( - 74 ) * + 26 AS col2
----
-1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7743
SELECT DISTINCT + COALESCE ( - 43, + CAST( NULL AS SIGNED ) + COUNT( * ) + - - ( + - CASE + COALESCE ( + 80, COUNT( * ) * - 22 * + 56 + - 95 / - 74 ) WHEN COUNT( * ) * NULLIF ( - 12, - ( COUNT( * ) ) ) THEN - 48 ELSE 97 - - 75 * 59 END ) - + 43 ) * + 12 AS col1
----
-516

skipif mysql # not compatible
query I rowsort label-7743
SELECT DISTINCT + COALESCE ( - 43, + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - - ( + - CASE + COALESCE ( + 80, COUNT ( * ) * - 22 * + 56 + - 95 / - 74 ) WHEN COUNT ( * ) * NULLIF ( - 12, - ( COUNT ( * ) ) ) THEN - 48 ELSE 97 - - 75 * 59 END ) - + 43 ) * + 12 AS col1
----
-516

query I rowsort
SELECT 4 * ( - 63 ) * + 47 * - 39 col2
----
461916

query I rowsort
SELECT ALL + 3 * - + 23 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT COUNT( * ) - - 54 + + 2 + 85
----
142

skipif mysql # not compatible
query I rowsort label-7746
SELECT COUNT ( * ) - - 54 + + 2 + 85
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7747
SELECT ( CAST( NULL AS SIGNED ) ) / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT ( CAST ( NULL AS INTEGER ) ) / - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7748
SELECT 37 AS col0, COUNT( * )
----
37
1

skipif mysql # not compatible
query II rowsort label-7748
SELECT 37 AS col0, COUNT ( * )
----
37
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7749
SELECT DISTINCT + 58 * + CAST( - CAST( + 69 AS SIGNED ) AS SIGNED ) AS col2
----
-4002

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT + 58 * + CAST ( - CAST ( + 69 AS INTEGER ) AS INTEGER ) AS col2
----
-4002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7750
SELECT ALL - ( - 15 ) * - + COUNT( ALL + 58 ) DIV - - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL - ( - 15 ) * - + COUNT ( ALL + 58 ) / - - 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7751
SELECT 53 AS col2, + NULLIF ( + - 33, - 65 ) * NULLIF ( COUNT( * ), - 13 ) + + - 56
----
53
-89

skipif mysql # not compatible
query II rowsort label-7751
SELECT 53 AS col2, + NULLIF ( + - 33, - 65 ) * NULLIF ( COUNT ( * ), - 13 ) + + - 56
----
53
-89

query II rowsort
SELECT DISTINCT - 78, 61 * + 65 + + - 87 AS col1
----
-78
3878

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT ALL COUNT( ALL - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL COUNT ( ALL - 55 )
----
1

query I rowsort
SELECT 20 + 60 AS col1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7755
SELECT DISTINCT 71 AS col0, + 52 * - COUNT( * ) * COUNT( * ) AS col2
----
71
-52

skipif mysql # not compatible
query II rowsort label-7755
SELECT DISTINCT 71 AS col0, + 52 * - COUNT ( * ) * COUNT ( * ) AS col2
----
71
-52

query I rowsort
SELECT DISTINCT 78 + - + 79 - + + 98 * + 22
----
-2157

query I rowsort
SELECT ( - ( - + 56 ) ) * 76
----
4256

query I rowsort
SELECT ALL 13 + - 41
----
-28

query I rowsort
SELECT DISTINCT 72 * - - 88 AS col0
----
6336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7760
SELECT ALL 7 * - COALESCE ( COUNT( * ), 13 DIV AVG ( + + 56 ) + - 3 * + - 46 + + + 59 + - 5 + NULLIF ( - 12, - - SUM( + NULLIF ( + 81, 21 + 86 ) ) DIV 90 ) * - 86 * 57 )
----
-7

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL 7 * - COALESCE ( COUNT ( * ), 13 / AVG ( + + 56 ) + - 3 * + - 46 + + + 59 + - 5 + NULLIF ( - 12, - - SUM ( + NULLIF ( + 81, 21 + 86 ) ) / 90 ) * - 86 * 57 )
----
-7

query I rowsort
SELECT ALL 77 + - - 15
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7762
SELECT + + 35 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-7762
SELECT + + 35 / 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT + + COUNT( * ) * + 69 * + 3 AS col2
----
207

skipif mysql # not compatible
query I rowsort label-7763
SELECT + + COUNT ( * ) * + 69 * + 3 AS col2
----
207

query II rowsort
SELECT - 12 AS col1, 36 + - - 46 * + 44
----
-12
2060

query I rowsort
SELECT + COALESCE ( 19, - + 24, - 3 * - 93 * 48 * + 10 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT + 9 - - + MAX( + 68 )
----
77

skipif mysql # not compatible
query I rowsort label-7766
SELECT + 9 - - + MAX ( + 68 )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7767
SELECT DISTINCT 49 DIV - 38 - + 54 AS col2, COUNT( * ) + + COUNT( * ) DIV - COUNT( - 59 ) + - + 21 + COUNT( * )
----
-55
-20

skipif mysql # not compatible
query II rowsort label-7767
SELECT DISTINCT 49 / - 38 - + 54 AS col2, COUNT ( * ) + + COUNT ( * ) / - COUNT ( - 59 ) + - + 21 + COUNT ( * )
----
-55
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-7768
SELECT DISTINCT + COUNT( * ) AS col1, - 65 * + 5 * + 39
----
1
-12675

skipif mysql # not compatible
query II rowsort label-7768
SELECT DISTINCT + COUNT ( * ) AS col1, - 65 * + 5 * + 39
----
1
-12675

query I rowsort
SELECT ALL - 25 * - - 48 col1
----
-1200

onlyif mysql # aggregate syntax: 
query II rowsort label-7770
SELECT DISTINCT + 17 AS col2, + COUNT( * ) * + 15 AS col2
----
17
15

skipif mysql # not compatible
query II rowsort label-7770
SELECT DISTINCT + 17 AS col2, + COUNT ( * ) * + 15 AS col2
----
17
15

query I rowsort
SELECT DISTINCT + + 11 col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7772
SELECT ALL + - 93 * - 49 * - 30 - - CAST( 24 AS SIGNED ) * - CASE - 57 WHEN - 58 THEN - ( 94 ) * + + ( - 98 ) WHEN - 40 THEN + 98 WHEN - COUNT( * ) THEN 92 + - SUM( 16 ) END * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL + - 93 * - 49 * - 30 - - CAST ( 24 AS INTEGER ) * - CASE - 57 WHEN - 58 THEN - ( 94 ) * + + ( - 98 ) WHEN - 40 THEN + 98 WHEN - COUNT ( * ) THEN 92 + - SUM ( 16 ) END * 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7773
SELECT - 44 * + + 14 * - + 48 - + - ( - + CAST( NULL AS SIGNED ) ) * - 96 / + + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7773
SELECT - 44 * + + 14 * - + 48 - + - ( - + CAST ( NULL AS INTEGER ) ) * - 96 / + + 68 AS col1
----
NULL

query II rowsort
SELECT ALL + 81, 83 col2
----
81
83

query I rowsort
SELECT + - 59 + + 36 AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7776
SELECT + COUNT( ALL + 1 ) / 82 - - CASE + 86 WHEN NULLIF ( - + ( MAX( - - 6 ) ), + + COUNT( * ) * - 34 / - MAX( + CAST( 91 AS DECIMAL ) ) + 2 * 53 ) THEN + AVG ( 85 ) * + 68 ELSE NULL END - SUM( ( - 73 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7776
SELECT + COUNT ( ALL + 1 ) / 82 - - CASE + 86 WHEN NULLIF ( - + ( MAX ( - - 6 ) ), + + COUNT ( * ) * - 34 / - MAX ( + CAST ( 91 AS REAL ) ) + 2 * 53 ) THEN + AVG ( 85 ) * + 68 ELSE NULL END - SUM ( ( - 73 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7777
SELECT + - ( + + ( MIN( - - 36 ) ) ) * - 12 + 19 + + 91 + + 8 * - - CAST( 21 AS SIGNED )
----
710

skipif mysql # not compatible
query I rowsort label-7777
SELECT + - ( + + ( MIN ( - - 36 ) ) ) * - 12 + 19 + + 91 + + 8 * - - CAST ( 21 AS INTEGER )
----
710

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7778
SELECT AVG ( - - CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT AVG ( - - CAST ( NULL AS REAL ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7779
SELECT 79 AS col0, 5 DIV + 39 AS col0
----
79
0

skipif mysql # not compatible
query II rowsort label-7779
SELECT 79 AS col0, 5 / + 39 AS col0
----
79
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7780
SELECT - MIN( DISTINCT + 45 ) * + CASE CAST( NULL AS SIGNED ) WHEN + - 90 THEN + - 62 ELSE 94 END + - 93 * + - 15
----
-2835

skipif mysql # not compatible
query I rowsort label-7780
SELECT - MIN ( DISTINCT + 45 ) * + CASE CAST ( NULL AS INTEGER ) WHEN + - 90 THEN + - 62 ELSE 94 END + - 93 * + - 15
----
-2835

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT - 27 * - + COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-7781
SELECT - 27 * - + COUNT ( * ) AS col0
----
27

query I rowsort
SELECT - 85 + - + 66 AS col1
----
-151

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7783
SELECT 45 * - 41 * 46 + + + 67 + + 47 * - CAST( + 43 AS SIGNED ) AS col0, 91 * - 94 AS col0
----
-86824
-8554

skipif mysql # not compatible
query II rowsort label-7783
SELECT 45 * - 41 * 46 + + + 67 + + 47 * - CAST ( + 43 AS INTEGER ) AS col0, 91 * - 94 AS col0
----
-86824
-8554

query I rowsort
SELECT ALL - 72 * - 67 AS col1
----
4824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7785
SELECT COALESCE ( 38, - - 79 + - + 76 + + COUNT( + + 61 ) + - 2 * - + CAST( - 29 AS SIGNED ) + + + COUNT( - - 30 ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7785
SELECT COALESCE ( 38, - - 79 + - + 76 + + COUNT ( + + 61 ) + - 2 * - + CAST ( - 29 AS INTEGER ) + + + COUNT ( - - 30 ) ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT + SUM( DISTINCT + - 29 ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-7786
SELECT + SUM ( DISTINCT + - 29 ) col1
----
-29

query I rowsort
SELECT DISTINCT + 56 * + 42 + - 19 AS col2
----
2333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7788
SELECT ALL - 73 * + + COUNT( * ) / CAST( NULL AS SIGNED ) * + 99 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL - 73 * + + COUNT ( * ) / CAST ( NULL AS INTEGER ) * + 99 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7789
SELECT - 49 DIV + 13 col2, 35 + - 3 - - 88 + + 40 * - - 47 * + NULLIF ( + - CAST( NULL AS SIGNED ), COUNT( * ) * + AVG ( ALL + 35 ) ) + - + 43
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-7789
SELECT - 49 / + 13 col2, 35 + - 3 - - 88 + + 40 * - - 47 * + NULLIF ( + - CAST ( NULL AS INTEGER ), COUNT ( * ) * + AVG ( ALL + 35 ) ) + - + 43
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT + NULLIF ( COUNT( * ), + 30 ) + 16 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-7790
SELECT + NULLIF ( COUNT ( * ), + 30 ) + 16 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT DISTINCT - 55 * - + ( - - COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT - 55 * - + ( - - COUNT ( * ) )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7792
SELECT ALL 28 * - + SUM( DISTINCT + - 79 ) + - 84 - 89 - 25 * - + 86 * - - COUNT( * ) * 92 * + + NULLIF ( - - 75, + - 65 ) * - + CAST( NULL AS SIGNED ) * - ( 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL 28 * - + SUM ( DISTINCT + - 79 ) + - 84 - 89 - 25 * - + 86 * - - COUNT ( * ) * 92 * + + NULLIF ( - - 75, + - 65 ) * - + CAST ( NULL AS INTEGER ) * - ( 81 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7793
SELECT - COUNT( * ) * - + NULLIF ( CASE + 16 WHEN AVG ( + - CAST( NULL AS SIGNED ) ) THEN NULL WHEN - - 74 + + + 61 / 36 THEN 59 END, + 90 + + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT - COUNT ( * ) * - + NULLIF ( CASE + 16 WHEN AVG ( + - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - - 74 + + + 61 / 36 THEN 59 END, + 90 + + 32 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7794
SELECT DISTINCT - 78 * - 13 + - ( + 84 ) + - + 32 - - 91 * + + 33 * + - SUM( ALL + 70 ) * - - CAST( NULL AS DECIMAL ) * + 79 + + CAST( NULL AS SIGNED ) + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT - 78 * - 13 + - ( + 84 ) + - + 32 - - 91 * + + 33 * + - SUM ( ALL + 70 ) * - - CAST ( NULL AS REAL ) * + 79 + + CAST ( NULL AS INTEGER ) + + 7
----
NULL

query I rowsort
SELECT ALL - 73 * 20
----
-1460

query I rowsort
SELECT ALL + 10 + + 79 AS col1
----
89

query II rowsort
SELECT DISTINCT ( + 1 ) AS col0, 75
----
1
75

query I rowsort
SELECT ALL 59 + - 42 + + 87 col0
----
104

query I rowsort
SELECT - 77 + - 16 + - + 13 + - 65 AS col1
----
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-7800
SELECT + SUM( DISTINCT + 4 ) - + 80 * + 7 * - - 18, 29 AS col0
----
-10076
29

skipif mysql # not compatible
query II rowsort label-7800
SELECT + SUM ( DISTINCT + 4 ) - + 80 * + 7 * - - 18, 29 AS col0
----
-10076
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT + MIN( DISTINCT + - 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7801
SELECT + MIN ( DISTINCT + - 12 ) AS col1
----
-12

query I rowsort
SELECT ALL 37 * 44 AS col2
----
1628

query I rowsort
SELECT + 7 + ( - + 23 ) AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7804
SELECT ALL - 18 - + 97 + - 70 * COUNT( * ) * + 72 * COUNT( + CAST( NULL AS SIGNED ) ) - - - 76 DIV + - MAX( - 53 ) AS col0, COUNT( * ) * 78
----
-116
78

skipif mysql # not compatible
query II rowsort label-7804
SELECT ALL - 18 - + 97 + - 70 * COUNT ( * ) * + 72 * COUNT ( + CAST ( NULL AS INTEGER ) ) - - - 76 / + - MAX ( - 53 ) AS col0, COUNT ( * ) * 78
----
-116
78

query I rowsort
SELECT + 21 + - 68
----
-47

query II rowsort
SELECT ALL + 38 - - 57, 29 + + 68 AS col0
----
95
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7807
SELECT + - 83 + CASE 90 WHEN + + 72 * - - CAST( NULL AS SIGNED ) + - + SUM( DISTINCT 19 ) THEN 86 * - 10 / + 56 - + + 21 - - 50 * - + 98 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT + - 83 + CASE 90 WHEN + + 72 * - - CAST ( NULL AS INTEGER ) + - + SUM ( DISTINCT 19 ) THEN 86 * - 10 / + 56 - + + 21 - - 50 * - + 98 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 93 * - 12
----
1116

query I rowsort
SELECT ALL + NULLIF ( + - 11, + + 28 )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT + CAST( + 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-7810
SELECT + CAST ( + 30 AS INTEGER )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT ALL + COALESCE ( - COUNT( DISTINCT 67 ), + 28, - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL + COALESCE ( - COUNT ( DISTINCT 67 ), + 28, - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7812
SELECT + 62 DIV + CAST( + + 75 AS SIGNED ) * - 92 + - 39
----
-39

skipif mysql # not compatible
query I rowsort label-7812
SELECT + 62 / + CAST ( + + 75 AS INTEGER ) * - 92 + - 39
----
-39

query I rowsort
SELECT DISTINCT - 86 * - 53
----
4558

onlyif mysql # DIV for integer division: 
query II rowsort label-7814
SELECT ALL - 44 DIV + 40 + + 71, + 88 col2
----
70
88

skipif mysql # not compatible
query II rowsort label-7814
SELECT ALL - 44 / + 40 + + 71, + 88 col2
----
70
88

query I rowsort
SELECT + ( + - 1 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7816
SELECT + CAST( - 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-7816
SELECT + CAST ( - 59 AS INTEGER )
----
-59

query I rowsort
SELECT + 20 - - 47
----
67

query I rowsort
SELECT ALL 24 * + NULLIF ( + 13, + + 18 + - 65 ) * 50 + - + 57 AS col1
----
15543

query I rowsort
SELECT DISTINCT 60 * - + 14 AS col0
----
-840

query I rowsort
SELECT 64 * - + 35 AS col2
----
-2240

onlyif mysql # aggregate syntax: 
query II rowsort label-7821
SELECT + 83 AS col2, 37 + - COALESCE ( - 83, 18, + - 10 * + 79, - COUNT( * ) )
----
83
120

skipif mysql # not compatible
query II rowsort label-7821
SELECT + 83 AS col2, 37 + - COALESCE ( - 83, 18, + - 10 * + 79, - COUNT ( * ) )
----
83
120

query I rowsort
SELECT 96 + - 97 * - + 32 * 27 AS col0
----
83904

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT - 91 * - NULLIF ( - - ( + 73 ), - COUNT( * ) ) AS col1
----
6643

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT - 91 * - NULLIF ( - - ( + 73 ), - COUNT ( * ) ) AS col1
----
6643

query I rowsort
SELECT - 82 * + 40 * - 59 * + 88 + 84 - + 11 + - 27 col1
----
17029806

query I rowsort
SELECT ALL + + 74 * 94
----
6956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7826
SELECT - CASE + CASE 65 WHEN - - 45 THEN - 60 * - CAST( NULL AS SIGNED ) - + + 11 ELSE + - 92 + - 5 + + + ( + + 21 ) END WHEN CAST( - COUNT( * ) AS SIGNED ) / + + 97 THEN + 80 + + 47 * + 39 WHEN 2 * 54 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7826
SELECT - CASE + CASE 65 WHEN - - 45 THEN - 60 * - CAST ( NULL AS INTEGER ) - + + 11 ELSE + - 92 + - 5 + + + ( + + 21 ) END WHEN CAST ( - COUNT ( * ) AS INTEGER ) / + + 97 THEN + 80 + + 47 * + 39 WHEN 2 * 54 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7827
SELECT DISTINCT + + AVG ( + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) * + 80 * - 24 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT + + AVG ( + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + 80 * - 24 * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7828
SELECT ( + + CAST( NULL AS SIGNED ) ) * - 73 col0, - 77 * + 18
----
NULL
-1386

skipif mysql # not compatible
query II rowsort label-7828
SELECT ( + + CAST ( NULL AS INTEGER ) ) * - 73 col0, - 77 * + 18
----
NULL
-1386

onlyif mysql # aggregate syntax: 
query II rowsort label-7829
SELECT - - 60, COUNT( * ) col1
----
60
1

skipif mysql # not compatible
query II rowsort label-7829
SELECT - - 60, COUNT ( * ) col1
----
60
1

query I rowsort
SELECT + 32 * 6 AS col2
----
192

query I rowsort
SELECT DISTINCT ( + 81 ) col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7832
SELECT - SUM( + CAST( 2 AS SIGNED ) ) * - 70
----
140

skipif mysql # not compatible
query I rowsort label-7832
SELECT - SUM ( + CAST ( 2 AS INTEGER ) ) * - 70
----
140

query I rowsort
SELECT 98 * + - 88
----
-8624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7834
SELECT + CAST( NULL AS SIGNED ) - MIN( ALL - 70 ), - 30 * + + 52 AS col2
----
NULL
-1560

skipif mysql # not compatible
query II rowsort label-7834
SELECT + CAST ( NULL AS INTEGER ) - MIN ( ALL - 70 ), - 30 * + + 52 AS col2
----
NULL
-1560

query II rowsort
SELECT 72 AS col1, 45
----
72
45

query I rowsort
SELECT DISTINCT 56 * + 84 * + 60
----
282240

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT ALL - COUNT( + 16 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL - COUNT ( + 16 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7838
SELECT ALL - CASE NULLIF ( 69, + COUNT( + 61 ) ) WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN + + COUNT( * ) * + 66 * - COUNT( * ) + - - 31 + + 27 + 17 THEN - 10 + + 27 WHEN + - 7 - - COUNT( * ) THEN ( + COALESCE ( - 11, + 38, 0 ) ) * COUNT( * ) END * - NULLIF ( + 97 * 69, + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL - CASE NULLIF ( 69, + COUNT ( + 61 ) ) WHEN CAST ( NULL AS REAL ) THEN NULL WHEN + + COUNT ( * ) * + 66 * - COUNT ( * ) + - - 31 + + 27 + 17 THEN - 10 + + 27 WHEN + - 7 - - COUNT ( * ) THEN ( + COALESCE ( - 11, + 38, 0 ) ) * COUNT ( * ) END * - NULLIF ( + 97 * 69, + 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT DISTINCT - 79 * - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT - 79 * - COUNT ( * ) AS col1
----
79

query I rowsort
SELECT ALL CASE + - 42 WHEN + 37 * + 40 THEN + ( - - CASE + 47 WHEN + 13 * - 82 + + + 37 - - + 97 * - ( 20 ) / - 26 * - 44 + 84 - 11 THEN 50 END ) WHEN - 16 + - 34 * 95 THEN NULL ELSE NULL END * ( - 93 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT - 58 * 94 + + - 18 * + 57 * - COUNT( * ) AS col1
----
-4426

skipif mysql # not compatible
query I rowsort label-7841
SELECT - 58 * 94 + + - 18 * + 57 * - COUNT ( * ) AS col1
----
-4426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7842
SELECT ALL 90 + - 65 * + COUNT( * ) * - 93 * 11 + + 81 AS col1, + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + 0 AS col1
----
66666
NULL

skipif mysql # not compatible
query II rowsort label-7842
SELECT ALL 90 + - 65 * + COUNT ( * ) * - 93 * 11 + + 81 AS col1, + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + 0 AS col1
----
66666
NULL

query I rowsort
SELECT ALL 2 + + 3
----
5

query I rowsort
SELECT ALL 84 * 41
----
3444

query I rowsort
SELECT ( 57 ) * - 75 AS col1
----
-4275

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT ALL 96 DIV 19 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL 96 / 19 AS col2
----
5

query I rowsort
SELECT 99 + - 10
----
89

query II rowsort
SELECT ALL - 18, 86 AS col1
----
-18
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT COUNT( * ) + + - 91 * 70 + + 10
----
-6359

skipif mysql # not compatible
query I rowsort label-7849
SELECT COUNT ( * ) + + - 91 * 70 + + 10
----
-6359

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ALL + COUNT( * ) * - + COUNT( DISTINCT + 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL + COUNT ( * ) * - + COUNT ( DISTINCT + 38 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT DISTINCT COUNT( DISTINCT + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT COUNT ( DISTINCT + 19 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7852
SELECT DISTINCT ( 40 ) AS col1, COUNT( * ) AS col1
----
40
1

skipif mysql # not compatible
query II rowsort label-7852
SELECT DISTINCT ( 40 ) AS col1, COUNT ( * ) AS col1
----
40
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7853
SELECT 74 + 54, COUNT( CASE + ( + 14 ) WHEN + + 75 THEN 67 + + + 19 ELSE NULL END ) + + CASE - 36 WHEN + 18 + 1 THEN - COUNT( * ) WHEN - - 13 THEN NULL WHEN + 87 THEN + 36 END - + 30 * 88 col1
----
128
NULL

skipif mysql # not compatible
query II rowsort label-7853
SELECT 74 + 54, COUNT ( CASE + ( + 14 ) WHEN + + 75 THEN 67 + + + 19 ELSE NULL END ) + + CASE - 36 WHEN + 18 + 1 THEN - COUNT ( * ) WHEN - - 13 THEN NULL WHEN + 87 THEN + 36 END - + 30 * 88 col1
----
128
NULL

query II rowsort
SELECT - 38 AS col2, 39 col0
----
-38
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7855
SELECT ALL 49, + COUNT( * ) * - 55 DIV - - 89 + + 53 AS col1
----
49
53

skipif mysql # not compatible
query II rowsort label-7855
SELECT ALL 49, + COUNT ( * ) * - 55 / - - 89 + + 53 AS col1
----
49
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7856
SELECT - 60 col1, - COUNT( * ) * 81 + 77 AS col2
----
-60
-4

skipif mysql # not compatible
query II rowsort label-7856
SELECT - 60 col1, - COUNT ( * ) * 81 + 77 AS col2
----
-60
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT - MAX( + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-7857
SELECT - MAX ( + 50 )
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7858
SELECT 23 DIV + 75 + - ( 4 ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-7858
SELECT 23 / + 75 + - ( 4 ) col2
----
-4

query I rowsort
SELECT 67 * + + 24 * 70
----
112560

query I rowsort
SELECT ALL + 86 + 59 + + ( - ( - 21 ) ) + - 57 col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT COUNT( ALL ( + 72 ) ) + 23
----
24

skipif mysql # not compatible
query I rowsort label-7861
SELECT COUNT ( ALL ( + 72 ) ) + 23
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT - + COUNT( - - 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-7862
SELECT - + COUNT ( - - 17 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT + 5 + - - COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7863
SELECT + 5 + - - COUNT ( * ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT DISTINCT - MIN( ALL - - 78 ) * SUM( ALL 96 ) * - + 73 * + + 33
----
18038592

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT - MIN ( ALL - - 78 ) * SUM ( ALL 96 ) * - + 73 * + + 33
----
18038592

query I rowsort
SELECT DISTINCT - ( - NULLIF ( 2, 45 * + 37 + + 38 * + 20 ) ) + - 21 * + 66 AS col1
----
-1384

query I rowsort
SELECT ALL + + 62 + 92
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7867
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - 47 + - 42 * + CASE - 20 WHEN + CASE - 50 WHEN - + 96 THEN - + 3 * + 70 ELSE NULL END * 93 * + 4 / 27 + + - 6 + - COUNT( * ) THEN + 55 WHEN - 23 / - 74 THEN NULL ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7867
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - 47 + - 42 * + CASE - 20 WHEN + CASE - 50 WHEN - + 96 THEN - + 3 * + 70 ELSE NULL END * 93 * + 4 / 27 + + - 6 + - COUNT ( * ) THEN + 55 WHEN - 23 / - 74 THEN NULL ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT 92 * - 4 + - 86 - - 52
----
-402

query I rowsort
SELECT ALL - 50 + 27 AS col2
----
-23

query I rowsort
SELECT DISTINCT + 92 + - 34 AS col0
----
58

query I rowsort
SELECT 65 + - - 0 AS col1
----
65

query I rowsort
SELECT 74 + + 39 + + 59 AS col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL 73 * - - COUNT( * ) + - - MIN( DISTINCT - - 54 )
----
127

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL 73 * - - COUNT ( * ) + - - MIN ( DISTINCT - - 54 )
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT NULLIF ( + CASE + SUM( DISTINCT COALESCE ( + ( + 73 ), - 95 ) ) WHEN + 27 THEN - 28 ELSE NULL END, - - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT NULLIF ( + CASE + SUM ( DISTINCT COALESCE ( + ( + 73 ), - 95 ) ) WHEN + 27 THEN - 28 ELSE NULL END, - - 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT ALL - COUNT( DISTINCT - + 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL - COUNT ( DISTINCT - + 38 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7876
SELECT DISTINCT + CASE - - CAST( NULL AS SIGNED ) WHEN - 20 THEN + - 19 * + 5 * + 51 * - - 52 / + CASE - + 54 WHEN 12 THEN SUM( - - CAST( NULL AS DECIMAL ) ) + + 23 WHEN - - 76 * 81 / + + 18 - 12 * 91 THEN - SUM( 38 ) END ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT + CASE - - CAST ( NULL AS INTEGER ) WHEN - 20 THEN + - 19 * + 5 * + 51 * - - 52 / + CASE - + 54 WHEN 12 THEN SUM ( - - CAST ( NULL AS REAL ) ) + + 23 WHEN - - 76 * 81 / + + 18 - 12 * 91 THEN - SUM ( 38 ) END ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7877
SELECT ALL 10 * + COUNT( * ) * - CASE - 14 WHEN 42 - - - 60 THEN NULL ELSE CAST( NULL AS SIGNED ) END - + + COUNT( * ) + + 34 / - 42 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL 10 * + COUNT ( * ) * - CASE - 14 WHEN 42 - - - 60 THEN NULL ELSE CAST ( NULL AS INTEGER ) END - + + COUNT ( * ) + + 34 / - 42 * - 64
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7878
SELECT DISTINCT 43 * 10 * - AVG ( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT 43 * 10 * - AVG ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT ALL + 51 * ( CAST( + + 39 AS SIGNED ) ) col0
----
1989

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL + 51 * ( CAST ( + + 39 AS INTEGER ) ) col0
----
1989

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT MAX( ALL - - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-7880
SELECT MAX ( ALL - - 0 )
----
0

query I rowsort
SELECT DISTINCT 7 * 78 AS col2
----
546

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7882
SELECT + COUNT( 60 ), COUNT( * ) DIV 54 * - + 70 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-7882
SELECT + COUNT ( 60 ), COUNT ( * ) / 54 * - + 70 AS col0
----
1
0

query I rowsort
SELECT - ( 38 ) * + 9 * - 80
----
27360

query II rowsort
SELECT + 36 * + 8 AS col1, + 98
----
288
98

onlyif mysql # aggregate syntax: 
query II rowsort label-7885
SELECT + NULLIF ( ( + + 18 ), + 0 * COALESCE ( + 28, MIN( DISTINCT 54 ) * 19 ) + 71 ) col0, SUM( 38 ) * MIN( - 82 ) AS col2
----
18
-3116

skipif mysql # not compatible
query II rowsort label-7885
SELECT + NULLIF ( ( + + 18 ), + 0 * COALESCE ( + 28, MIN ( DISTINCT 54 ) * 19 ) + 71 ) col0, SUM ( 38 ) * MIN ( - 82 ) AS col2
----
18
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT + COUNT( * ) - - 71
----
72

skipif mysql # not compatible
query I rowsort label-7886
SELECT + COUNT ( * ) - - 71
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7887
SELECT MAX( ALL ( 21 ) ) AS col2, - 83 / - CAST( NULL AS SIGNED )
----
21
NULL

skipif mysql # not compatible
query II rowsort label-7887
SELECT MAX ( ALL ( 21 ) ) AS col2, - 83 / - CAST ( NULL AS INTEGER )
----
21
NULL

query I rowsort
SELECT + + ( + 82 ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7889
SELECT ALL + - COALESCE ( - CAST( NULL AS SIGNED ), + 75 ), - 86 AS col1
----
-75
-86

skipif mysql # not compatible
query II rowsort label-7889
SELECT ALL + - COALESCE ( - CAST ( NULL AS INTEGER ), + 75 ), - 86 AS col1
----
-75
-86

query I rowsort
SELECT ALL - 50 * - - 8 - - 70 * - 30
----
-2500

onlyif mysql # aggregate syntax: 
query II rowsort label-7891
SELECT - 31 + + 54, - COUNT( * ) AS col2
----
23
-1

skipif mysql # not compatible
query II rowsort label-7891
SELECT - 31 + + 54, - COUNT ( * ) AS col2
----
23
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7892
SELECT - 98 * + 61 / - - CAST( NULL AS SIGNED ) + 14 + - - 81 AS col1, CAST( + 85 AS SIGNED ) col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-7892
SELECT - 98 * + 61 / - - CAST ( NULL AS INTEGER ) + 14 + - - 81 AS col1, CAST ( + 85 AS INTEGER ) col1
----
NULL
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT + NULLIF ( + + 90, - COUNT( * ) * + + COUNT( * ) ) - - 73
----
163

skipif mysql # not compatible
query I rowsort label-7893
SELECT + NULLIF ( + + 90, - COUNT ( * ) * + + COUNT ( * ) ) - - 73
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT + - 1 * SUM( DISTINCT + 87 ) * 28 * - 27 AS col2
----
65772

skipif mysql # not compatible
query I rowsort label-7894
SELECT + - 1 * SUM ( DISTINCT + 87 ) * 28 * - 27 AS col2
----
65772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT + - 95 + + - CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT + - 95 + + - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7896
SELECT - CAST( + + 77 AS SIGNED ), 94 AS col2
----
-77
94

skipif mysql # not compatible
query II rowsort label-7896
SELECT - CAST ( + + 77 AS INTEGER ), 94 AS col2
----
-77
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7897
SELECT ALL ( - 85 ) + - ( + - COUNT( * ) ) * - 72, - ( - 17 ) * NULLIF ( - 98, + 45 / CASE - 7 WHEN + 96 THEN NULL WHEN - 29 THEN - COUNT( * ) * 79 END + + - ( + 37 ) ) - COUNT( * ) * 79 AS col1
----
-157
-1745

skipif mysql # not compatible
query II rowsort label-7897
SELECT ALL ( - 85 ) + - ( + - COUNT ( * ) ) * - 72, - ( - 17 ) * NULLIF ( - 98, + 45 / CASE - 7 WHEN + 96 THEN NULL WHEN - 29 THEN - COUNT ( * ) * 79 END + + - ( + 37 ) ) - COUNT ( * ) * 79 AS col1
----
-157
-1745

query I rowsort
SELECT ALL - 57 + + - 6 * - 93 AS col1
----
501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7899
SELECT + + CAST( SUM( DISTINCT - + 5 ) AS SIGNED ) + + + 60
----
55

skipif mysql # not compatible
query I rowsort label-7899
SELECT + + CAST ( SUM ( DISTINCT - + 5 ) AS INTEGER ) + + + 60
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7900
SELECT DISTINCT + COUNT( * ) + 52 AS col0, - 40
----
53
-40

skipif mysql # not compatible
query II rowsort label-7900
SELECT DISTINCT + COUNT ( * ) + 52 AS col0, - 40
----
53
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT ALL 73 + - MAX( DISTINCT - 1 )
----
74

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL 73 + - MAX ( DISTINCT - 1 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT ALL 77 + - - 44 - - COUNT( * ) + - - ( + 73 ) * - 80 AS col1
----
-5718

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL 77 + - - 44 - - COUNT ( * ) + - - ( + 73 ) * - 80 AS col1
----
-5718

query I rowsort
SELECT - 44 * 63 AS col2
----
-2772

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT ALL + + 60 DIV 46 + - - 18 + - + 28
----
-9

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL + + 60 / 46 + - - 18 + - + 28
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7905
SELECT - ( - 36 ) DIV - 79 + + ( + - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-7905
SELECT - ( - 36 ) / - 79 + + ( + - 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL - 82 + - - COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - 82 + - - COUNT ( * ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT 20 * + COUNT( * ) * 44 * - - COUNT( * )
----
880

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT 20 * + COUNT ( * ) * 44 * - - COUNT ( * )
----
880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7908
SELECT ALL AVG ( DISTINCT - CASE - 52 WHEN + 26 THEN + 31 * 89 * 71 + - + 69 + 8 / 14 * + - 86 * - - 36 * + 46 WHEN - CAST( NULL AS SIGNED ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL AVG ( DISTINCT - CASE - 52 WHEN + 26 THEN + 31 * 89 * 71 + - + 69 + 8 / 14 * + - 86 * - - 36 * + 46 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 28 * - 70
----
1960

query I rowsort
SELECT - 49 * - + 31
----
1519

query I rowsort
SELECT ALL + NULLIF ( NULLIF ( 47, 35 / - + 7 + + 40 / 40 ), - + 54 / 7 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT - COUNT( * ) + + - NULLIF ( - 62, + 1 )
----
61

skipif mysql # not compatible
query I rowsort label-7912
SELECT - COUNT ( * ) + + - NULLIF ( - 62, + 1 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7913
SELECT + COUNT( - - 5 ) / - + 40 - - - CAST( NULL AS DECIMAL ) - + 95 / SUM( - - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT + COUNT ( - - 5 ) / - + 40 - - - CAST ( NULL AS REAL ) - + 95 / SUM ( - - 52 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7914
SELECT ( - ( - - 86 ) ), - NULLIF ( + 11, + - 94 + 14 ) DIV - - ( - 96 ) + + + COUNT( * ) AS col2
----
-86
1

skipif mysql # not compatible
query II rowsort label-7914
SELECT ( - ( - - 86 ) ), - NULLIF ( + 11, + - 94 + 14 ) / - - ( - 96 ) + + + COUNT ( * ) AS col2
----
-86
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT ( - MAX( DISTINCT CAST( + 73 AS SIGNED ) ) )
----
-73

skipif mysql # not compatible
query I rowsort label-7915
SELECT ( - MAX ( DISTINCT CAST ( + 73 AS INTEGER ) ) )
----
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7916
SELECT + CASE + + 52 WHEN - + CAST( NULL AS DECIMAL ) THEN NULL ELSE - 20 END
----
-20

skipif mysql # not compatible
query I rowsort label-7916
SELECT + CASE + + 52 WHEN - + CAST ( NULL AS REAL ) THEN NULL ELSE - 20 END
----
-20

query I rowsort
SELECT ALL + ( + - 2 )
----
-2

query I rowsort
SELECT + 11 * 76 * 28 + - 86
----
23322

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT ALL + NULLIF ( + - COUNT( * ), - ( 34 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL + NULLIF ( + - COUNT ( * ), - ( 34 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7920
SELECT DISTINCT + NULLIF ( + 32, - 36 * + 85 ), + 72 * - SUM( 62 ) AS col1
----
32
-4464

skipif mysql # not compatible
query II rowsort label-7920
SELECT DISTINCT + NULLIF ( + 32, - 36 * + 85 ), + 72 * - SUM ( 62 ) AS col1
----
32
-4464

onlyif mysql # aggregate syntax: 
query II rowsort label-7921
SELECT ALL + 60 AS col2, COUNT( * ) * - SUM( + 43 ) * + 69
----
60
-2967

skipif mysql # not compatible
query II rowsort label-7921
SELECT ALL + 60 AS col2, COUNT ( * ) * - SUM ( + 43 ) * + 69
----
60
-2967

onlyif mysql # aggregate syntax: 
query II rowsort label-7922
SELECT + COUNT( * ) AS col1, 59 AS col2
----
1
59

skipif mysql # not compatible
query II rowsort label-7922
SELECT + COUNT ( * ) AS col1, 59 AS col2
----
1
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7923
SELECT DISTINCT + 31, COUNT( * ) AS col0
----
31
1

skipif mysql # not compatible
query II rowsort label-7923
SELECT DISTINCT + 31, COUNT ( * ) AS col0
----
31
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7924
SELECT - - 90 * + + CAST( NULL AS SIGNED ) / 94 * AVG ( DISTINCT 85 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT - - 90 * + + CAST ( NULL AS INTEGER ) / 94 * AVG ( DISTINCT 85 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT DISTINCT + - COUNT( * ) * + - 87 * MIN( - - 97 ) AS col1
----
8439

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT + - COUNT ( * ) * + - 87 * MIN ( - - 97 ) AS col1
----
8439

query I rowsort
SELECT - - 46 * + 90 AS col1
----
4140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7927
SELECT - + 30 DIV + + ( + NULLIF ( 25, + NULLIF ( + 55, SUM( - + 76 ) DIV - - 66 - - 30 * - 10 - - - NULLIF ( 68, 39 ) + - - COUNT( * ) * + - 5 + + 54 ) DIV - 53 DIV - COALESCE ( 45, - 37 ) + + 34 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7927
SELECT - + 30 / + + ( + NULLIF ( 25, + NULLIF ( + 55, SUM ( - + 76 ) / - - 66 - - 30 * - 10 - - - NULLIF ( 68, 39 ) + - - COUNT ( * ) * + - 5 + + 54 ) / - 53 / - COALESCE ( 45, - 37 ) + + 34 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT + NULLIF ( - - 32, - - ( 0 ) ) * + + CAST( NULL AS SIGNED ) - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT + NULLIF ( - - 32, - - ( 0 ) ) * + + CAST ( NULL AS INTEGER ) - 78 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7929
SELECT ALL + + 21 * CASE NULLIF ( - 44, AVG ( 74 ) * + 78 * + 33 ) WHEN 81 * 82 + + CAST( NULL AS SIGNED ) * + 61 * + + 3 - 32 THEN - 88 / - + 45 - - 28 - 4 - COUNT( ALL 78 ) / 68 * - 9 WHEN 13 * 28 + + MIN( ALL 88 ) THEN 52 ELSE NULL END + - 38 + + 81 * - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL + + 21 * CASE NULLIF ( - 44, AVG ( 74 ) * + 78 * + 33 ) WHEN 81 * 82 + + CAST ( NULL AS INTEGER ) * + 61 * + + 3 - 32 THEN - 88 / - + 45 - - 28 - 4 - COUNT ( ALL 78 ) / 68 * - 9 WHEN 13 * 28 + + MIN ( ALL 88 ) THEN 52 ELSE NULL END + - 38 + + 81 * - 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT DISTINCT - COUNT( * ) * + 54 + - ( + SUM( + 49 ) ) AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT - COUNT ( * ) * + 54 + - ( + SUM ( + 49 ) ) AS col0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT - - COUNT( DISTINCT - + 4 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7931
SELECT - - COUNT ( DISTINCT - + 4 ) AS col2
----
1

query I rowsort
SELECT ALL + + 68 * - 2 + 61 AS col1
----
-75

query I rowsort
SELECT ALL + - 2 * + + 35 + + - 0 + - 45
----
-115

query I rowsort
SELECT CASE + - 60 WHEN - 50 THEN + - 38 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL 87 * + - COUNT( * ) + - 38 * 86 * + 12
----
-39303

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL 87 * + - COUNT ( * ) + - 38 * 86 * + 12
----
-39303

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT + - 97 - + 36 DIV + 29 col1
----
-98

skipif mysql # not compatible
query I rowsort label-7936
SELECT + - 97 - + 36 / + 29 col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT - - CAST( - 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-7937
SELECT - - CAST ( - 84 AS INTEGER )
----
-84

query I rowsort
SELECT + 76 + - 3
----
73

query I rowsort
SELECT DISTINCT 32 * + 76
----
2432

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7940
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + - NULLIF ( - 91, - + 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT CAST ( NULL AS REAL ) * + - NULLIF ( - 91, - + 52 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7941
SELECT ALL NULLIF ( 4, COALESCE ( + CASE - CAST( - 40 AS SIGNED ) WHEN + - MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) THEN NULL WHEN - COUNT( * ) - 92 THEN NULL ELSE - 90 END, + + 58, + 90 ) + + 19 ) - - MIN( ALL - 10 ) * 73 * ( + 80 ) AS col0
----
-58396

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL NULLIF ( 4, COALESCE ( + CASE - CAST ( - 40 AS INTEGER ) WHEN + - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - COUNT ( * ) - 92 THEN NULL ELSE - 90 END, + + 58, + 90 ) + + 19 ) - - MIN ( ALL - 10 ) * 73 * ( + 80 ) AS col0
----
-58396

query I rowsort
SELECT DISTINCT 38 - 90 + + NULLIF ( - COALESCE ( - 35, - 21 ), 51 - 56 )
----
-17

query I rowsort
SELECT ( - - 55 ) + - 50 + 66 AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7944
SELECT 90 + 59 AS col0, CAST( + 13 AS SIGNED )
----
149
13

skipif mysql # not compatible
query II rowsort label-7944
SELECT 90 + 59 AS col0, CAST ( + 13 AS INTEGER )
----
149
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT DISTINCT 66 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT 66 / 57
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7946
SELECT 9 + CASE + 81 WHEN + 16 THEN - - 28 - + + NULLIF ( - 40, + - COALESCE ( 81, 45 * + AVG ( + 77 ) / - 5, COALESCE ( - + 79, - CAST( NULL AS SIGNED ) ) * - COUNT( * ) ) / - COUNT( ALL - 77 ) + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + COUNT( * ) WHEN 37 * - NULLIF ( SUM( ALL + 58 ), - 84 ) - + 36 THEN NULL ELSE NULL END + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT 9 + CASE + 81 WHEN + 16 THEN - - 28 - + + NULLIF ( - 40, + - COALESCE ( 81, 45 * + AVG ( + 77 ) / - 5, COALESCE ( - + 79, - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) ) / - COUNT ( ALL - 77 ) + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + COUNT ( * ) WHEN 37 * - NULLIF ( SUM ( ALL + 58 ), - 84 ) - + 36 THEN NULL ELSE NULL END + 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7947
SELECT DISTINCT 30 DIV 47 * + + 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT 30 / 47 * + + 53 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7948
SELECT 99 * - 97 * + - ( 53 ) * - + COALESCE ( - 42, - 38 - CASE + 49 WHEN ( + 95 ) THEN + ( - 17 ) END ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7948
SELECT 99 * - 97 * + - ( 53 ) * - + COALESCE ( - 42, - 38 - CASE + 49 WHEN ( + 95 ) THEN + ( - 17 ) END ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT + MIN( - 23 ) * 8 * + + 29 - 24 col1
----
-5360

skipif mysql # not compatible
query I rowsort label-7949
SELECT + MIN ( - 23 ) * 8 * + + 29 - 24 col1
----
-5360

onlyif mysql # aggregate syntax: 
query II rowsort label-7950
SELECT - COUNT( * ) * 86, COUNT( * ) * 34 * + - 90 AS col1
----
-86
-3060

skipif mysql # not compatible
query II rowsort label-7950
SELECT - COUNT ( * ) * 86, COUNT ( * ) * 34 * + - 90 AS col1
----
-86
-3060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT CAST( - - 91 AS SIGNED ) * 75 AS col0
----
6825

skipif mysql # not compatible
query I rowsort label-7951
SELECT CAST ( - - 91 AS INTEGER ) * 75 AS col0
----
6825

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query III rowsort label-7952
SELECT - 83 * + - CAST( NULL AS SIGNED ), + 97 * 21 DIV - - 16 AS col0, 12 * + 57 DIV + CAST( NULL AS DECIMAL ) + - ( + 71 )
----
NULL
127
NULL

skipif mysql # not compatible
query III rowsort label-7952
SELECT - 83 * + - CAST ( NULL AS INTEGER ), + 97 * 21 / - - 16 AS col0, 12 * + 57 / + CAST ( NULL AS REAL ) + - ( + 71 )
----
NULL
127
NULL

query I rowsort
SELECT - 92 + - - NULLIF ( - ( - 61 ), + 99 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT - + COUNT( * ) + + + 6 + + 48 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT - + COUNT ( * ) + + + 6 + + 48 AS col1
----
53

query I rowsort
SELECT ALL + + ( + 21 ) + + 97 AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT NULLIF ( - COUNT( * ), + 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-7956
SELECT NULLIF ( - COUNT ( * ), + 39 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT ALL - COUNT( ALL - 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL - COUNT ( ALL - 58 ) AS col1
----
-1

query I rowsort
SELECT ALL - + 68 + - 3
----
-71

query I rowsort
SELECT DISTINCT 11 + - 35 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-7960
SELECT 1 + + NULLIF ( - + 47, - MAX( + 21 ) ) col1, - 50
----
-46
-50

skipif mysql # not compatible
query II rowsort label-7960
SELECT 1 + + NULLIF ( - + 47, - MAX ( + 21 ) ) col1, - 50
----
-46
-50

query II rowsort
SELECT + 99 * + + 58, 85 - 12 * + - 84 AS col2
----
5742
1093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7962
SELECT ALL - CAST( NULL AS SIGNED ) - - 17 + - 9 * AVG ( 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL - CAST ( NULL AS INTEGER ) - - 17 + - 9 * AVG ( 4 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7963
SELECT 65 * + CAST( - + 68 AS SIGNED ) AS col2, 41
----
-4420
41

skipif mysql # not compatible
query II rowsort label-7963
SELECT 65 * + CAST ( - + 68 AS INTEGER ) AS col2, 41
----
-4420
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7964
SELECT ALL 85 DIV - + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL 85 / - + 86 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7965
SELECT DISTINCT - 10 DIV + 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT - 10 / + 46 AS col2
----
0

query I rowsort
SELECT 54 + + 57 AS col0
----
111

query I rowsort
SELECT ALL 49 * - - 17 col1
----
833

query I rowsort
SELECT ALL 25 * + 9
----
225

query I rowsort
SELECT 70 - + - 27
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7970
SELECT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7970
SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 13 + + 35 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT DISTINCT 24 * COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT 24 * COUNT ( * ) AS col0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7973
SELECT 8 * 91 DIV - + 43
----
-16

skipif mysql # not compatible
query I rowsort label-7973
SELECT 8 * 91 / - + 43
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7974
SELECT 20 * + 10 * - - 96 * + CAST( NULL AS SIGNED ) - - MIN( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT 20 * + 10 * - - 96 * + CAST ( NULL AS INTEGER ) - - MIN ( 39 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7975
SELECT 86 DIV - + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-7975
SELECT 86 / - + COUNT ( * )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7976
SELECT ALL - 73 * + CAST( NULL AS SIGNED ) + - 44 AS col0, - 39
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-7976
SELECT ALL - 73 * + CAST ( NULL AS INTEGER ) + - 44 AS col0, - 39
----
NULL
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT - CASE + COALESCE ( + + ( 21 ), - 69 * - CASE 7 WHEN + + 42 THEN - 17 * - COUNT( * ) / + 90 / - - 41 * 10 - 46 ELSE - 35 END ) WHEN COUNT( * ) THEN + - COUNT( ALL CASE - 37 WHEN + 42 / 74 + 71 THEN 11 END ) WHEN ( - 71 ) * COUNT( DISTINCT 61 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT - CASE + COALESCE ( + + ( 21 ), - 69 * - CASE 7 WHEN + + 42 THEN - 17 * - COUNT ( * ) / + 90 / - - 41 * 10 - 46 ELSE - 35 END ) WHEN COUNT ( * ) THEN + - COUNT ( ALL CASE - 37 WHEN + 42 / 74 + 71 THEN 11 END ) WHEN ( - 71 ) * COUNT ( DISTINCT 61 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7978
SELECT + COUNT( DISTINCT + ( + - 64 ) ) AS col2, COUNT( * ) * - ( + 90 ) * 71 + + - 53
----
1
-6443

skipif mysql # not compatible
query II rowsort label-7978
SELECT + COUNT ( DISTINCT + ( + - 64 ) ) AS col2, COUNT ( * ) * - ( + 90 ) * 71 + + - 53
----
1
-6443

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT - 80 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT - 80 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT ALL - - 66 * + COUNT( * ) + 56 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL - - 66 * + COUNT ( * ) + 56 AS col2
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7981
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 69 * COALESCE ( - COUNT( * ), + - 89 + - 35 ) * + + 92 + + - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 69 * COALESCE ( - COUNT ( * ), + - 89 + - 35 ) * + + 92 + + - 66 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7982
SELECT + COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7983
SELECT ALL + 80 * 30 * - + ( - CAST( NULL AS SIGNED ) ) * 3 * - 55 * - - 83 * - MIN( - 2 ) * - + 12 + - 28 + 53 + + + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL + 80 * 30 * - + ( - CAST ( NULL AS INTEGER ) ) * 3 * - 55 * - - 83 * - MIN ( - 2 ) * - + 12 + - 28 + 53 + + + 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT ALL - 78 + - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL - 78 + - COUNT ( * )
----
-79

query I rowsort
SELECT ALL 39 * - 44 AS col1
----
-1716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7986
SELECT - COUNT( * ) DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-7986
SELECT - COUNT ( * ) / + 90
----
0

query I rowsort
SELECT - 83 * - + 50 AS col2
----
4150

query I rowsort
SELECT - 20 * 99 * + 43 + + 68 AS col0
----
-85072

query II rowsort
SELECT + - 44 AS col2, 72
----
-44
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7990
SELECT 5 + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT 5 + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT ALL + - SUM( - 24 ) - + ( 77 )
----
-53

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL + - SUM ( - 24 ) - + ( 77 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT + COUNT( + 7 )
----
1

skipif mysql # not compatible
query I rowsort label-7992
SELECT + COUNT ( + 7 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7993
SELECT DISTINCT + - 24 AS col0, CAST( - AVG ( 47 ) AS SIGNED ) AS col1
----
-24
-47

skipif mysql # not compatible
query II rowsort label-7993
SELECT DISTINCT + - 24 AS col0, CAST ( - AVG ( 47 ) AS INTEGER ) AS col1
----
-24
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT + COUNT( * ) * + 38 + 97 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-7994
SELECT + COUNT ( * ) * + 38 + 97 AS col1
----
135

query II rowsort
SELECT + 26, - 21 AS col2
----
26
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT ALL - 96 * + MAX( DISTINCT - 7 )
----
672

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL - 96 * + MAX ( DISTINCT - 7 )
----
672

onlyif mysql # aggregate syntax: 
query II rowsort label-7997
SELECT - SUM( 97 ) * - ( + 57 ), SUM( + - 21 ) AS col2
----
5529
-21

skipif mysql # not compatible
query II rowsort label-7997
SELECT - SUM ( 97 ) * - ( + 57 ), SUM ( + - 21 ) AS col2
----
5529
-21

query II rowsort
SELECT ALL - 23 * + 0 * 43 * - - 98 col0, - 60 * + ( + ( - 50 ) )
----
0
3000

query I rowsort
SELECT - 62 + - - 61
----
-1

query II rowsort
SELECT - 99 AS col1, 6
----
-99
6

query I rowsort
SELECT - 44 + ( - 8 ) * + 78
----
-668

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8002
SELECT + NULLIF ( - + 24, + COUNT( * ) - - ( - 36 ) ) + + 7 + - SUM( - 31 ) + + 29 * + - 69 + - 84 DIV 6 * 76 * + - 50 + - 2 col0
----
51211

skipif mysql # not compatible
query I rowsort label-8002
SELECT + NULLIF ( - + 24, + COUNT ( * ) - - ( - 36 ) ) + + 7 + - SUM ( - 31 ) + + 29 * + - 69 + - 84 / 6 * 76 * + - 50 + - 2 col0
----
51211

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT - COUNT( * ) + - COUNT( * ) * - 59 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8003
SELECT - COUNT ( * ) + - COUNT ( * ) * - 59 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT + 6 + 37 + - ( + + COALESCE ( - COUNT( * ), - + 73 ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT + 6 + 37 + - ( + + COALESCE ( - COUNT ( * ), - + 73 ) ) AS col1
----
44

query I rowsort
SELECT - ( + 59 ) + - - 67 - + - 32
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT DISTINCT NULLIF ( - CAST( - - 69 AS SIGNED ), + + 38 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT NULLIF ( - CAST ( - - 69 AS INTEGER ), + + 38 ) AS col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8007
SELECT DISTINCT CASE AVG ( ALL + 3 ) WHEN - - COUNT( * ) THEN + 39 WHEN + CAST( + NULLIF ( - 60, 10 ) AS SIGNED ) THEN NULL WHEN - 57 / - 7 - + + 11 - 52 THEN + CAST( + 59 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT CASE AVG ( ALL + 3 ) WHEN - - COUNT ( * ) THEN + 39 WHEN + CAST ( + NULLIF ( - 60, 10 ) AS INTEGER ) THEN NULL WHEN - 57 / - 7 - + + 11 - 52 THEN + CAST ( + 59 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT ALL + 61 + COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL + 61 + COUNT ( * ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8009
SELECT + 54 + + MIN( + 92 ) * + + 20 col1, - COALESCE ( + 0, 49 ) AS col0
----
1894
0

skipif mysql # not compatible
query II rowsort label-8009
SELECT + 54 + + MIN ( + 92 ) * + + 20 col1, - COALESCE ( + 0, 49 ) AS col0
----
1894
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8010
SELECT - 24 * - + 9 col0, 50 * + COUNT( * ), - COUNT( * ) DIV - + 29 col0
----
216
50
0

skipif mysql # not compatible
query III rowsort label-8010
SELECT - 24 * - + 9 col0, 50 * + COUNT ( * ), - COUNT ( * ) / - + 29 col0
----
216
50
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8011
SELECT + 30 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT + 30 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8012
SELECT 42 AS col2, COUNT( * ) + - - CAST( NULL AS SIGNED )
----
42
NULL

skipif mysql # not compatible
query II rowsort label-8012
SELECT 42 AS col2, COUNT ( * ) + - - CAST ( NULL AS INTEGER )
----
42
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8013
SELECT + COUNT( * ) + + 72 * 44 + + 59 DIV + MIN( - 72 ) * 49
----
3169

skipif mysql # not compatible
query I rowsort label-8013
SELECT + COUNT ( * ) + + 72 * 44 + + 59 / + MIN ( - 72 ) * 49
----
3169

query I rowsort
SELECT + NULLIF ( - - ( - CASE 67 WHEN + 71 + - ( AVG ( ALL 61 ) ) THEN NULL ELSE - 50 * 99 + 52 END ), + 30 + - + 58 )
----
4898

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8015
SELECT ALL + CAST( NULL AS DECIMAL ) * + 73 * - + 13 + - 76 + + + COUNT( * ) + - ( 13 ) + 3 * - 43 * 42 * + 65 / - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL + CAST ( NULL AS REAL ) * + 73 * - + 13 + - 76 + + + COUNT ( * ) + - ( 13 ) + 3 * - 43 * 42 * + 65 / - - 53
----
NULL

query I rowsort
SELECT + 54 * 74 AS col0
----
3996

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8017
SELECT ALL + 96 * - + 68 + + - CAST( NULL AS SIGNED ) + + 10, - 67 + ( - - CASE - + 86 WHEN - 12 * - 3 THEN 13 WHEN + 4 THEN NULL END ) * + + 19 * + 62 + 41 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8017
SELECT ALL + 96 * - + 68 + + - CAST ( NULL AS INTEGER ) + + 10, - 67 + ( - - CASE - + 86 WHEN - 12 * - 3 THEN 13 WHEN + 4 THEN NULL END ) * + + 19 * + 62 + 41 AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8018
SELECT COUNT( * ) * 16 * - - 33 * + 44 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT COUNT ( * ) * 16 * - - 33 * + 44 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT + + 52 DIV - 26 + 45 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8019
SELECT + + 52 / - 26 + 45 AS col2
----
43

query I rowsort
SELECT + + 41 * + 80 AS col2
----
3280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8021
SELECT DISTINCT 68 DIV COUNT( * ) + - + 51
----
17

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT 68 / COUNT ( * ) + - + 51
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT ALL + - MIN( DISTINCT + 43 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL + - MIN ( DISTINCT + 43 ) AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8023
SELECT ALL + CASE 61 WHEN - COUNT( * ) / ( - - COALESCE ( ( - 74 ), - 89 * - + 18 + + - COUNT( * ) + COUNT( * ) + + COALESCE ( 3, ( - 14 ) ) ) ) THEN - - 45 ELSE NULL END * + CAST( NULL AS SIGNED ) * 90 * + 34 + - - 10 * + COUNT( * ) * - COUNT( DISTINCT 95 ) - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL + CASE 61 WHEN - COUNT ( * ) / ( - - COALESCE ( ( - 74 ), - 89 * - + 18 + + - COUNT ( * ) + COUNT ( * ) + + COALESCE ( 3, ( - 14 ) ) ) ) THEN - - 45 ELSE NULL END * + CAST ( NULL AS INTEGER ) * 90 * + 34 + - - 10 * + COUNT ( * ) * - COUNT ( DISTINCT 95 ) - 13
----
NULL

query I rowsort
SELECT + + 91 - - 53
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT COUNT( * ) * - 21 - - 90
----
69

skipif mysql # not compatible
query I rowsort label-8025
SELECT COUNT ( * ) * - 21 - - 90
----
69

query I rowsort
SELECT DISTINCT + 53 * + - 14 AS col1
----
-742

onlyif mysql # DIV for integer division: 
query I rowsort label-8027
SELECT - 83 DIV - 43 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8027
SELECT - 83 / - 43 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT + + 14 * COUNT( * ) + - 21 col1
----
-7

skipif mysql # not compatible
query I rowsort label-8028
SELECT + + 14 * COUNT ( * ) + - 21 col1
----
-7

query I rowsort
SELECT + 21 + - 77
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8030
SELECT MIN( ALL CAST( + + 32 AS SIGNED ) )
----
32

skipif mysql # not compatible
query I rowsort label-8030
SELECT MIN ( ALL CAST ( + + 32 AS INTEGER ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT MIN( DISTINCT - - 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8031
SELECT MIN ( DISTINCT - - 88 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8032
SELECT ALL 8 * COUNT( ALL - CAST( NULL AS SIGNED ) ) + + 92
----
92

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL 8 * COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT - 67 + - - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-8033
SELECT - 67 + - - COUNT ( * )
----
-66

query I rowsort
SELECT ALL - ( - 1 ) + - + 59 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT DISTINCT NULLIF ( + 15, - COUNT( * ) * - 45 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT NULLIF ( + 15, - COUNT ( * ) * - 45 ) AS col0
----
15

query I rowsort
SELECT ALL + 93 + 91
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT ALL - 29 + + COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL - 29 + + COUNT ( * ) AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8038
SELECT - ( + + 48 ) + + + 23 - - - NULLIF ( + + CASE - COUNT( * ) WHEN 75 * 88 + + CAST( 15 AS SIGNED ) THEN + 27 ELSE + COUNT( * ) * + - 51 * + + 85 + + CAST( NULL AS DECIMAL ) END, - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT - ( + + 48 ) + + + 23 - - - NULLIF ( + + CASE - COUNT ( * ) WHEN 75 * 88 + + CAST ( 15 AS INTEGER ) THEN + 27 ELSE + COUNT ( * ) * + - 51 * + + 85 + + CAST ( NULL AS REAL ) END, - 6 )
----
NULL

query I rowsort
SELECT - 30 * + 54
----
-1620

query I rowsort
SELECT - 18 - 75 AS col2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8041
SELECT ALL + ( 14 ) + - 20 * + + 50 + + 90, - 22 * ( - - 55 ) + - CASE COUNT( 34 ) WHEN + 0 * - - 47 + - COUNT( * ) THEN 94 WHEN - AVG ( 52 ) THEN + + 35 * + + 91 ELSE + COUNT( * ) DIV 62 - + - ( 15 ) * 53 END * 70 col0
----
-896
-56860

skipif mysql # not compatible
query II rowsort label-8041
SELECT ALL + ( 14 ) + - 20 * + + 50 + + 90, - 22 * ( - - 55 ) + - CASE COUNT ( 34 ) WHEN + 0 * - - 47 + - COUNT ( * ) THEN 94 WHEN - AVG ( 52 ) THEN + + 35 * + + 91 ELSE + COUNT ( * ) / 62 - + - ( 15 ) * 53 END * 70 col0
----
-896
-56860

query I rowsort
SELECT ALL + 57 + - 86 + 72 - - 35
----
78

query II rowsort
SELECT - 15 + + COALESCE ( 8, - + 44, + - 86 ) col0, 45 * + - 4
----
-7
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8044
SELECT - CAST( NULL AS SIGNED ) + ( - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT - CAST ( NULL AS INTEGER ) + ( - 65 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8045
SELECT - - 31 * CASE + - 58 WHEN 41 THEN NULL WHEN + 3 THEN + 76 / - + 16 - - AVG ( DISTINCT - - 38 ) - - + CAST( + + COUNT( - 57 ) AS SIGNED ) * - + MAX( + + 5 ) ELSE NULL END + + 10 AS col0, + 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-8045
SELECT - - 31 * CASE + - 58 WHEN 41 THEN NULL WHEN + 3 THEN + 76 / - + 16 - - AVG ( DISTINCT - - 38 ) - - + CAST ( + + COUNT ( - 57 ) AS INTEGER ) * - + MAX ( + + 5 ) ELSE NULL END + + 10 AS col0, + 10
----
NULL
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8046
SELECT - + 61 + - + COALESCE ( + COUNT( * ), - COALESCE ( 3, - 17 + 18 * - 51, - 74 ) * - COUNT( * ) DIV + 61 * ( + 0 ) - + 32 ) + 93 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8046
SELECT - + 61 + - + COALESCE ( + COUNT ( * ), - COALESCE ( 3, - 17 + 18 * - 51, - 74 ) * - COUNT ( * ) / + 61 * ( + 0 ) - + 32 ) + 93 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT + - ( - COUNT( * ) ) - - 51
----
52

skipif mysql # not compatible
query I rowsort label-8047
SELECT + - ( - COUNT ( * ) ) - - 51
----
52

query I rowsort
SELECT + 74 * - 8
----
-592

onlyif mysql # DIV for integer division: 
query I rowsort label-8049
SELECT DISTINCT COALESCE ( + 60, + 12 DIV - + 27 ) * + - 71
----
-4260

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT COALESCE ( + 60, + 12 / - + 27 ) * + - 71
----
-4260

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT + 77 DIV 32 + 80 * 60
----
4802

skipif mysql # not compatible
query I rowsort label-8050
SELECT + 77 / 32 + 80 * 60
----
4802

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT DISTINCT + - 7 * MAX( + 19 ) * + - 33 * - ( - 36 ) AS col2
----
158004

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT + - 7 * MAX ( + 19 ) * + - 33 * - ( - 36 ) AS col2
----
158004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8052
SELECT - 45 + - COUNT( * ) * ( - 67 ) DIV + 20
----
-42

skipif mysql # not compatible
query I rowsort label-8052
SELECT - 45 + - COUNT ( * ) * ( - 67 ) / + 20
----
-42

query II rowsort
SELECT ALL + 23 * + + 76, + 83 AS col2
----
1748
83

query I rowsort
SELECT + ( - ( 82 ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + ( - - 14 ) * MAX( + 93 ) * + 97 + - 43 + - 62 + + 32
----
126221

skipif mysql # not compatible
query I rowsort label-8055
SELECT + ( - - 14 ) * MAX ( + 93 ) * + 97 + - 43 + - 62 + + 32
----
126221

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT + 73 * - 52 * + 62 * - 17 + + + 18 + - CASE - 66 WHEN - COUNT( ALL + 69 ) THEN + 90 + + COUNT( * ) + 59 WHEN + 44 * - 39 + + 36 THEN + + 93 + + 68 ELSE NULL END * - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT + 73 * - 52 * + 62 * - 17 + + + 18 + - CASE - 66 WHEN - COUNT ( ALL + 69 ) THEN + 90 + + COUNT ( * ) + 59 WHEN + 44 * - 39 + + 36 THEN + + 93 + + 68 ELSE NULL END * - + 56
----
NULL

query I rowsort
SELECT ALL 26 + 59 + + 44
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT DISTINCT 14 + + 96 + + 20 * + CASE - - MIN( - ( - 3 ) ) WHEN 78 + - 52 + + - 90 + + SUM( + ( + 66 ) ) / - 81 + + 47 - + 74 * + 42 * - 62 THEN + - 14 - + + 74 WHEN + ( + + 89 ) THEN 76 * + 37 + - 81 WHEN - 43 THEN 72 * COUNT( * ) END - 45 * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT 14 + + 96 + + 20 * + CASE - - MIN ( - ( - 3 ) ) WHEN 78 + - 52 + + - 90 + + SUM ( + ( + 66 ) ) / - 81 + + 47 - + 74 * + 42 * - 62 THEN + - 14 - + + 74 WHEN + ( + + 89 ) THEN 76 * + 37 + - 81 WHEN - 43 THEN 72 * COUNT ( * ) END - 45 * 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT DISTINCT COUNT( DISTINCT + 95 ) + - 52 col2
----
-51

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT COUNT ( DISTINCT + 95 ) + - 52 col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8060
SELECT ALL - COUNT( * ) * CASE NULLIF ( + COUNT( * ), + + 63 ) WHEN + COUNT( * ) THEN NULL WHEN - 74 THEN + 5 DIV + + 79 ELSE NULL END AS col0, + 20 DIV + COUNT( * ) AS col0, + + 85 AS col0
----
NULL
20
85

skipif mysql # not compatible
query III rowsort label-8060
SELECT ALL - COUNT ( * ) * CASE NULLIF ( + COUNT ( * ), + + 63 ) WHEN + COUNT ( * ) THEN NULL WHEN - 74 THEN + 5 / + + 79 ELSE NULL END AS col0, + 20 / + COUNT ( * ) AS col0, + + 85 AS col0
----
NULL
20
85

query I rowsort
SELECT ALL 67 + - ( - - 55 ) + + - 5 * + - 45
----
237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8062
SELECT ( 48 ) + + 95 + + ( + + CASE - - ( - 37 ) WHEN - + 22 THEN 51 + COUNT( * ) + + 22 DIV + 25 WHEN - - 25 THEN + COUNT( * ) WHEN + + 14 + + 28 * 5 + - 45 THEN NULL ELSE - COUNT( * ) * - 82 END ) + COUNT( * ) + 81
----
307

skipif mysql # not compatible
query I rowsort label-8062
SELECT ( 48 ) + + 95 + + ( + + CASE - - ( - 37 ) WHEN - + 22 THEN 51 + COUNT ( * ) + + 22 / + 25 WHEN - - 25 THEN + COUNT ( * ) WHEN + + 14 + + 28 * 5 + - 45 THEN NULL ELSE - COUNT ( * ) * - 82 END ) + COUNT ( * ) + 81
----
307

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8063
SELECT DISTINCT COUNT( - - 22 ) + - CAST( NULL AS DECIMAL ) - - - 92 + + - COUNT( * ) / + + 57 * + 16 * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT COUNT ( - - 22 ) + - CAST ( NULL AS REAL ) - - - 92 + + - COUNT ( * ) / + + 57 * + 16 * - 38
----
NULL

query I rowsort
SELECT 24 + - 20
----
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8065
SELECT DISTINCT 23 AS col1, 92 + + 55 DIV ( - CAST( - 87 AS SIGNED ) ) col0, - CAST( NULL AS SIGNED ) col1
----
23
92
NULL

skipif mysql # not compatible
query III rowsort label-8065
SELECT DISTINCT 23 AS col1, 92 + + 55 / ( - CAST ( - 87 AS INTEGER ) ) col0, - CAST ( NULL AS INTEGER ) col1
----
23
92
NULL

query I rowsort
SELECT ALL + 62 + - 11
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT ALL 0 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL 0 - + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT ALL + CAST( NULL AS SIGNED ) - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL + CAST ( NULL AS INTEGER ) - + 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8069
SELECT DISTINCT + 70 AS col1, 65 + COUNT( * ) + + 57 * - COALESCE ( - 34, - ( + 68 ) * COUNT( * ) DIV - + CASE + 29 WHEN - 20 THEN 56 + - 41 + 46 * + 5 WHEN - 89 THEN NULL END ) AS col1
----
70
2004

skipif mysql # not compatible
query II rowsort label-8069
SELECT DISTINCT + 70 AS col1, 65 + COUNT ( * ) + + 57 * - COALESCE ( - 34, - ( + 68 ) * COUNT ( * ) / - + CASE + 29 WHEN - 20 THEN 56 + - 41 + 46 * + 5 WHEN - 89 THEN NULL END ) AS col1
----
70
2004

query I rowsort
SELECT DISTINCT 87 - - 46
----
133

query I rowsort
SELECT ALL + 79 * - 53 AS col2
----
-4187

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT - MAX( ALL - ( + - 18 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-8072
SELECT - MAX ( ALL - ( + - 18 ) )
----
-18

query II rowsort
SELECT - 9 col0, - 52
----
-9
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT 11 + + COUNT( * ) - + - 5
----
17

skipif mysql # not compatible
query I rowsort label-8074
SELECT 11 + + COUNT ( * ) - + - 5
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8075
SELECT ALL + COUNT( * ) * 91 * + 46 * - NULLIF ( - - ( - 60 ), - 91 + + - 58 ) col1, 36 + + + 5 AS col0
----
251160
41

skipif mysql # not compatible
query II rowsort label-8075
SELECT ALL + COUNT ( * ) * 91 * + 46 * - NULLIF ( - - ( - 60 ), - 91 + + - 58 ) col1, 36 + + + 5 AS col0
----
251160
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT + COUNT( * ) + - - 92
----
93

skipif mysql # not compatible
query I rowsort label-8076
SELECT + COUNT ( * ) + - - 92
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT + - MAX( DISTINCT - - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-8077
SELECT + - MAX ( DISTINCT - - 20 ) AS col2
----
-20

query II rowsort
SELECT ALL - 80, 39 col1
----
-80
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8079
SELECT DISTINCT - - COUNT( * ), - 21 col0
----
1
-21

skipif mysql # not compatible
query II rowsort label-8079
SELECT DISTINCT - - COUNT ( * ), - 21 col0
----
1
-21

query I rowsort
SELECT + 58 * - 54 + + 98 + 82 + + 10 * + 47 * 41 col0
----
16318

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT ALL - 3 DIV + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL - 3 / + 81 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8082
SELECT 0 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-8082
SELECT 0 / - 80
----
0

query I rowsort
SELECT - 74 + - 47 AS col2
----
-121

query I rowsort
SELECT ALL + - 29 + 46 AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8085
SELECT ALL - COUNT( * ) + + 70 + - 97 + COUNT( * ) DIV - - 4 * - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL - COUNT ( * ) + + 70 + - 97 + COUNT ( * ) / - - 4 * - COUNT ( * )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8086
SELECT ALL - 65 DIV - - 90
----
0

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL - 65 / - - 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8087
SELECT ALL CASE - 25 WHEN + CASE - 11 WHEN - 50 + - 25 THEN + 23 + ( + + 7 ) WHEN - + 0 THEN NULL END * - 63 THEN + + CAST( NULL AS SIGNED ) - 90 * AVG ( ALL - 89 ) + - 69 WHEN - + COUNT( * ) THEN NULL WHEN - 18 THEN NULL END + + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL CASE - 25 WHEN + CASE - 11 WHEN - 50 + - 25 THEN + 23 + ( + + 7 ) WHEN - + 0 THEN NULL END * - 63 THEN + + CAST ( NULL AS INTEGER ) - 90 * AVG ( ALL - 89 ) + - 69 WHEN - + COUNT ( * ) THEN NULL WHEN - 18 THEN NULL END + + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL CASE - 80 WHEN 99 + - - 2 THEN + 38 + - + COUNT( * ) END * + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL CASE - 80 WHEN 99 + - - 2 THEN + 38 + - + COUNT ( * ) END * + - 76
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8089
SELECT ALL + 29 + - + 48 + + + ( - + COUNT( * ) ), - 52 + - 99 AS col0
----
-20
-151

skipif mysql # not compatible
query II rowsort label-8089
SELECT ALL + 29 + - + 48 + + + ( - + COUNT ( * ) ), - 52 + - 99 AS col0
----
-20
-151

query I rowsort
SELECT 73 + + - 48
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT DISTINCT 60 + MIN( + + 70 )
----
130

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT 60 + MIN ( + + 70 )
----
130

query I rowsort
SELECT 5 * - 56 * - 62 AS col2
----
17360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8093
SELECT DISTINCT 48 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT 48 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT ALL 77 DIV + 25 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL 77 / + 25 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT COUNT( * ) * 65 * + + 88 AS col0
----
5720

skipif mysql # not compatible
query I rowsort label-8095
SELECT COUNT ( * ) * 65 * + + 88 AS col0
----
5720

query I rowsort
SELECT ALL 90 * - 91 + + 50 AS col0
----
-8140

query I rowsort
SELECT ALL 94 * - 78
----
-7332

query I rowsort
SELECT + + 28 * - 53 AS col2
----
-1484

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT + SUM( + 92 ) * COALESCE ( 41, + 13 + + - 6 * + - 95 ) * - COALESCE ( 70, COUNT( * ), - - 37 )
----
-264040

skipif mysql # not compatible
query I rowsort label-8099
SELECT + SUM ( + 92 ) * COALESCE ( 41, + 13 + + - 6 * + - 95 ) * - COALESCE ( 70, COUNT ( * ), - - 37 )
----
-264040

query I rowsort
SELECT + - ( 16 ) + 20
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8101
SELECT + + 79 + 3 DIV ( - COUNT( * ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8101
SELECT + + 79 + 3 / ( - COUNT ( * ) ) AS col0
----
76

query I rowsort
SELECT + - 4 + + 62 col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8103
SELECT DISTINCT - + 31 * - COUNT( * ), - 91 * + COUNT( * ) + + 68 + + 73 * 15 / + + SUM( 34 ) / + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * + + 28 / - - 31 AS col2
----
31
NULL

skipif mysql # not compatible
query II rowsort label-8103
SELECT DISTINCT - + 31 * - COUNT ( * ), - 91 * + COUNT ( * ) + + 68 + + 73 * 15 / + + SUM ( 34 ) / + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + + 28 / - - 31 AS col2
----
31
NULL

query I rowsort
SELECT - + 29 + + ( - - 88 ) AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8105
SELECT ALL + NULLIF ( + - 15, + 34 * MAX( - 77 ) + + CAST( - - AVG ( + 79 ) AS SIGNED ) + - AVG ( 37 ) + - - 17 ) + 2 * 7 * + 27 * + - 61 AS col0
----
-23073

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL + NULLIF ( + - 15, + 34 * MAX ( - 77 ) + + CAST ( - - AVG ( + 79 ) AS INTEGER ) + - AVG ( 37 ) + - - 17 ) + 2 * 7 * + 27 * + - 61 AS col0
----
-23073

query I rowsort
SELECT + 80 + + - 89 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8107
SELECT + ( ( 76 ) ) * - SUM( + NULLIF ( + 11, - 11 / - 1 * + 52 ) ) + + 76 * 46 + + - CASE + 10 WHEN MAX( 49 ) + ( 12 ) THEN ( 87 ) ELSE NULL END * - 92 + + 22 + + - CAST( + 9 AS SIGNED ) * - 6 * 87 + - 87 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT + ( ( 76 ) ) * - SUM ( + NULLIF ( + 11, - 11 / - 1 * + 52 ) ) + + 76 * 46 + + - CASE + 10 WHEN MAX ( 49 ) + ( 12 ) THEN ( 87 ) ELSE NULL END * - 92 + + 22 + + - CAST ( + 9 AS INTEGER ) * - 6 * 87 + - 87 col0
----
NULL

query I rowsort
SELECT - 63 + + 10 AS col2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8109
SELECT + - 75 * + + CAST( - 79 AS SIGNED ) - - + 1 * + - 51 + - 27
----
5847

skipif mysql # not compatible
query I rowsort label-8109
SELECT + - 75 * + + CAST ( - 79 AS INTEGER ) - - + 1 * + - 51 + - 27
----
5847

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL + SUM( 39 )
----
39

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL + SUM ( 39 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8111
SELECT - CAST( NULL AS SIGNED ) + + ( + + 63 ) * + - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT - CAST ( NULL AS INTEGER ) + + ( + + 63 ) * + - 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT ALL 90 * + MIN( 34 ) + - 91 + - 42 AS col0
----
2927

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL 90 * + MIN ( 34 ) + - 91 + - 42 AS col0
----
2927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8113
SELECT COALESCE ( + - CAST( - - NULLIF ( - 53, 15 ) AS SIGNED ), - + MIN( ALL - 16 ) * + + COALESCE ( - 20, - + 48 + + + 2, - 2 ) + 6 + 68 + - - COALESCE ( - - CASE ( - AVG ( - 15 ) ) WHEN + CAST( NULL AS SIGNED ) * + CAST( - + 90 AS DECIMAL ) THEN NULL WHEN 45 + + - 13 THEN + + 17 + - ( 24 ) END, + 23 ) )
----
53

skipif mysql # not compatible
query I rowsort label-8113
SELECT COALESCE ( + - CAST ( - - NULLIF ( - 53, 15 ) AS INTEGER ), - + MIN ( ALL - 16 ) * + + COALESCE ( - 20, - + 48 + + + 2, - 2 ) + 6 + 68 + - - COALESCE ( - - CASE ( - AVG ( - 15 ) ) WHEN + CAST ( NULL AS INTEGER ) * + CAST ( - + 90 AS REAL ) THEN NULL WHEN 45 + + - 13 THEN + + 17 + - ( 24 ) END, + 23 ) )
----
53

query I rowsort
SELECT - 37 * - 84
----
3108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8115
SELECT + COALESCE ( - - 81, + - COUNT( * ), 44 ) * 95 * SUM( + - ( 66 ) ) * - ( + 23 ) + - 2 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT + COALESCE ( - - 81, + - COUNT ( * ), 44 ) * 95 * SUM ( + - ( 66 ) ) * - ( + 23 ) + - 2 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT 7 * 4 * 91 * + CASE + NULLIF ( - + 5, - 3 ) WHEN - 99 - - + 54 + 57 THEN 66 * + + 85 * - - 61 * COUNT( * ) - - COUNT( * ) WHEN - 48 + + 65 * - - 33 + - 16 THEN NULL END + - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT 7 * 4 * 91 * + CASE + NULLIF ( - + 5, - 3 ) WHEN - 99 - - + 54 + 57 THEN 66 * + + 85 * - - 61 * COUNT ( * ) - - COUNT ( * ) WHEN - 48 + + 65 * - - 33 + - 16 THEN NULL END + - 64 AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - 42, - + 26 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT + MAX( - + 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-8118
SELECT + MAX ( - + 39 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT ALL + 98 * - COALESCE ( 62, - - 18, + COUNT( * ) )
----
-6076

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL + 98 * - COALESCE ( 62, - - 18, + COUNT ( * ) )
----
-6076

query I rowsort
SELECT DISTINCT + 89 * 61 * + 28
----
152012

onlyif mysql # DIV for integer division: 
query I rowsort label-8121
SELECT DISTINCT + 16 DIV + 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT + 16 / + 66 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8122
SELECT ALL + 89 col0, 36 * + CAST( NULL AS SIGNED ) col2
----
89
NULL

skipif mysql # not compatible
query II rowsort label-8122
SELECT ALL + 89 col0, 36 * + CAST ( NULL AS INTEGER ) col2
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT + 0 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8123
SELECT + 0 * + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT - + MIN( 7 ) * + 75 - 13 + + - 98 + - COUNT( * ) + + SUM( - + COALESCE ( - 49, - COALESCE ( 89, + 62, 8 * 13 + 65 + 59 ) ) ) * COUNT( * ) AS col2
----
-588

skipif mysql # not compatible
query I rowsort label-8124
SELECT - + MIN ( 7 ) * + 75 - 13 + + - 98 + - COUNT ( * ) + + SUM ( - + COALESCE ( - 49, - COALESCE ( 89, + 62, 8 * 13 + 65 + 59 ) ) ) * COUNT ( * ) AS col2
----
-588

onlyif mysql # DIV for integer division: 
query I rowsort label-8125
SELECT + + 68 + - 40 * + 61 + 96 + - 52 DIV - - COALESCE ( - + 12, - 50 + 26 )
----
-2272

skipif mysql # not compatible
query I rowsort label-8125
SELECT + + 68 + - 40 * + 61 + 96 + - 52 / - - COALESCE ( - + 12, - 50 + 26 )
----
-2272

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT + - 93 + - 4 * 56 * - 90 + + - 44 - + + COUNT( * )
----
20022

skipif mysql # not compatible
query I rowsort label-8126
SELECT + - 93 + - 4 * 56 * - 90 + + - 44 - + + COUNT ( * )
----
20022

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT + + COUNT( * ) / - - 5 + + - 15 * 18 + - + COUNT( * ) + - - MIN( + CASE - 33 WHEN 5 / + 29 THEN + 51 * 37 - - 41 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8127
SELECT + + COUNT ( * ) / - - 5 + + - 15 * 18 + - + COUNT ( * ) + - - MIN ( + CASE - 33 WHEN 5 / + 29 THEN + 51 * 37 - - 41 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8128
SELECT ALL - CAST( - ( - + 53 ) AS SIGNED ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL - CAST ( - ( - + 53 ) AS INTEGER ) AS col1
----
-53

query I rowsort
SELECT DISTINCT + 60 + + 12 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL COUNT( * ) * - 84 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL COUNT ( * ) * - 84 AS col1
----
-84

query I rowsort
SELECT ALL - ( 57 )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-8132
SELECT + 11 DIV + 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8132
SELECT + 11 / + 12 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT - 51 * MIN( - 97 )
----
4947

skipif mysql # not compatible
query I rowsort label-8133
SELECT - 51 * MIN ( - 97 )
----
4947

onlyif mysql # DIV for integer division: 
query I rowsort label-8134
SELECT + - 67 + NULLIF ( - 55, + 66 * + + 59 ) * - + 56 + - 8 DIV + 78 AS col2
----
3013

skipif mysql # not compatible
query I rowsort label-8134
SELECT + - 67 + NULLIF ( - 55, + 66 * + + 59 ) * - + 56 + - 8 / + 78 AS col2
----
3013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8135
SELECT - NULLIF ( + COUNT( * ), 74 DIV - 44 DIV - + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8135
SELECT - NULLIF ( + COUNT ( * ), 74 / - 44 / - + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8136
SELECT + 78 DIV + - COALESCE ( + 84, + - MIN( 13 ), + + ( - 27 ) * - 87 ) * + 58
----
0

skipif mysql # not compatible
query I rowsort label-8136
SELECT + 78 / + - COALESCE ( + 84, + - MIN ( 13 ), + + ( - 27 ) * - 87 ) * + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT ALL + 86 + - 74 * - - MAX( DISTINCT + 25 ) * - COUNT( * ) - + NULLIF ( COUNT( * ), 99 ) - 38 * + 83
----
-1219

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL + 86 + - 74 * - - MAX ( DISTINCT + 25 ) * - COUNT ( * ) - + NULLIF ( COUNT ( * ), 99 ) - 38 * + 83
----
-1219

query I rowsort
SELECT - - 17 * - + 27 AS col0
----
-459

onlyif mysql # DIV for integer division: 
query I rowsort label-8139
SELECT ALL - 12 + + 22 + 49 + + + 22 DIV - 35
----
59

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL - 12 + + 22 + 49 + + + 22 / - 35
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8140
SELECT DISTINCT ( - COUNT( * ) ) DIV + MAX( DISTINCT 34 ) * ( + ( 62 ) ) * COUNT( + - 64 ) + 94 * ( - 39 ) * - 43 + - ( + 83 ) - + 33 + + ( - - CASE 23 WHEN + - COUNT( * ) THEN - ( - + NULLIF ( 88, 86 + - - 28 - 49 DIV + 24 ) ) ELSE - 16 * 41 END ) + 71 AS col2
----
156937

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT ( - COUNT ( * ) ) / + MAX ( DISTINCT 34 ) * ( + ( 62 ) ) * COUNT ( + - 64 ) + 94 * ( - 39 ) * - 43 + - ( + 83 ) - + 33 + + ( - - CASE 23 WHEN + - COUNT ( * ) THEN - ( - + NULLIF ( 88, 86 + - - 28 - 49 / + 24 ) ) ELSE - 16 * 41 END ) + 71 AS col2
----
156937

query I rowsort
SELECT + 27 * - 15
----
-405

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8142
SELECT + CAST( NULL AS DECIMAL ), - 8 AS col2
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-8142
SELECT + CAST ( NULL AS REAL ), - 8 AS col2
----
NULL
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8143
SELECT CAST( 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-8143
SELECT CAST ( 76 AS INTEGER )
----
76

query I rowsort
SELECT - 14 * + 7 * - + 32
----
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT - 31 + + - COALESCE ( + - 23, - 97 ) + - 77 * - + 17 * + - NULLIF ( 48, - 92 + - 90 + 74 * + COUNT( DISTINCT 30 ) )
----
-62840

skipif mysql # not compatible
query I rowsort label-8145
SELECT - 31 + + - COALESCE ( + - 23, - 97 ) + - 77 * - + 17 * + - NULLIF ( 48, - 92 + - 90 + 74 * + COUNT ( DISTINCT 30 ) )
----
-62840

query I rowsort
SELECT DISTINCT + 30 * + 21
----
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8147
SELECT + CAST( NULL AS SIGNED ), MAX( ALL 56 ) AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-8147
SELECT + CAST ( NULL AS INTEGER ), MAX ( ALL 56 ) AS col0
----
NULL
56

query I rowsort
SELECT + 78 * + 8
----
624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8149
SELECT ALL + CAST( NULL AS SIGNED ) * - MIN( ALL - 37 ) / 48 - 84 + - 70 * COUNT( * ) * - 30 - - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL + CAST ( NULL AS INTEGER ) * - MIN ( ALL - 37 ) / 48 - 84 + - 70 * COUNT ( * ) * - 30 - - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8150
SELECT DISTINCT COUNT( * ) * CASE + + 80 WHEN + 24 / - CAST( - 87 AS SIGNED ) * + - 76 * + COUNT( ALL - 15 ) + - COUNT( * ) THEN COUNT( DISTINCT + 10 ) * + 90 ELSE - MAX( + 80 ) END AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT COUNT ( * ) * CASE + + 80 WHEN + 24 / - CAST ( - 87 AS INTEGER ) * + - 76 * + COUNT ( ALL - 15 ) + - COUNT ( * ) THEN COUNT ( DISTINCT + 10 ) * + 90 ELSE - MAX ( + 80 ) END AS col0
----
-80

query II rowsort
SELECT ALL + 89 AS col1, 71 * + - 79 col1
----
89
-5609

query I rowsort
SELECT ( - 7 ) AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8153
SELECT DISTINCT + 95 AS col2, - 21 - - COUNT( * ) + 83 + + 1 DIV - - 78 * + 67 * - - 23 * + + COALESCE ( + 84, - - 79 * - + COUNT( * ) DIV - CAST( - 53 AS SIGNED ), + - CAST( - 66 AS SIGNED ) )
----
95
63

skipif mysql # not compatible
query II rowsort label-8153
SELECT DISTINCT + 95 AS col2, - 21 - - COUNT ( * ) + 83 + + 1 / - - 78 * + 67 * - - 23 * + + COALESCE ( + 84, - - 79 * - + COUNT ( * ) / - CAST ( - 53 AS INTEGER ), + - CAST ( - 66 AS INTEGER ) )
----
95
63

query I rowsort
SELECT - 48 * - 18 AS col2
----
864

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8155
SELECT + COUNT( * ), NULLIF ( 66, 20 ) DIV 79 DIV + 50 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-8155
SELECT + COUNT ( * ), NULLIF ( 66, 20 ) / 79 / + 50 AS col1
----
1
0

query I rowsort
SELECT 24 * 76 AS col0
----
1824

query I rowsort
SELECT 33 * + + 79 * 97 AS col2
----
252879

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL + - COUNT( * ) + + 48 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL + - COUNT ( * ) + + 48 AS col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8159
SELECT ALL + + 10 DIV + 79 col0
----
0

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL + + 10 / + 79 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT ALL - 67 * - COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL - 67 * - COUNT ( * ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT 96 * + - CASE + SUM( DISTINCT 62 ) WHEN + 1 THEN + 90 * 16 END * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT 96 * + - CASE + SUM ( DISTINCT 62 ) WHEN + 1 THEN + 90 * 16 END * + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 51 + + 45 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT DISTINCT + + 98 * - - COALESCE ( + 53, + + ( - COUNT( * ) ), - + COUNT( DISTINCT + + 12 ) ) + COALESCE ( - + ( + - 70 ), ( + 84 ), + ( + + 16 ) )
----
5264

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT + + 98 * - - COALESCE ( + 53, + + ( - COUNT ( * ) ), - + COUNT ( DISTINCT + + 12 ) ) + COALESCE ( - + ( + - 70 ), ( + 84 ), + ( + + 16 ) )
----
5264

query I rowsort
SELECT 29 + 79
----
108

query I rowsort
SELECT + 5 - NULLIF ( - 79, + + 83 ) AS col2
----
84

query II rowsort
SELECT - 28 AS col1, 17 AS col2
----
-28
17

query I rowsort
SELECT + 62 + 77 AS col0
----
139

query I rowsort
SELECT ALL - 16 + + 78
----
62

query II rowsort
SELECT - 35 AS col0, 80 + 15 + + - 81
----
-35
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8170
SELECT ALL 7 AS col0, - MIN( ALL 5 ) - - - 95 * - CAST( 24 AS SIGNED ) + 42 + - 71
----
7
2246

skipif mysql # not compatible
query II rowsort label-8170
SELECT ALL 7 AS col0, - MIN ( ALL 5 ) - - - 95 * - CAST ( 24 AS INTEGER ) + 42 + - 71
----
7
2246

query II rowsort
SELECT ALL + 1, - 37 * + + 44 AS col2
----
1
-1628

query I rowsort
SELECT ALL - ( + 21 ) + ( - 92 ) - 86 AS col1
----
-199

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8173
SELECT - CAST( NULL AS DECIMAL ) + + 49 * + COUNT( * ) * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8173
SELECT - CAST ( NULL AS REAL ) + + 49 * + COUNT ( * ) * + 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8174
SELECT + 21 * - - NULLIF ( + + CAST( NULL AS SIGNED ), + + 67 ) + - MIN( + 39 ) * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT + 21 * - - NULLIF ( + + CAST ( NULL AS INTEGER ), + + 67 ) + - MIN ( + 39 ) * - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT COUNT( * ) + - - COUNT( * ) + - 59 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-8175
SELECT COUNT ( * ) + - - COUNT ( * ) + - 59 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL COUNT( * ) * ( - ( - + COUNT( * ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL COUNT ( * ) * ( - ( - + COUNT ( * ) ) ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8177
SELECT ALL MIN( + CASE + + 91 WHEN + 27 THEN 66 WHEN - ( 58 ) THEN CAST( NULL AS SIGNED ) + + 26 WHEN 46 THEN NULL ELSE 13 * - NULLIF ( + 43, - + 40 * 56 - - 51 / - 48 ) END ) - 77
----
-636

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL MIN ( + CASE + + 91 WHEN + 27 THEN 66 WHEN - ( 58 ) THEN CAST ( NULL AS INTEGER ) + + 26 WHEN 46 THEN NULL ELSE 13 * - NULLIF ( + 43, - + 40 * 56 - - 51 / - 48 ) END ) - 77
----
-636

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT 43 * - COUNT( * ) + + + 53 + + + 96 * + + 92
----
8842

skipif mysql # not compatible
query I rowsort label-8178
SELECT 43 * - COUNT ( * ) + + + 53 + + + 96 * + + 92
----
8842

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT 15 * - COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8179
SELECT 15 * - COUNT ( * ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT COUNT( * ) + 69 * - + COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-8180
SELECT COUNT ( * ) + 69 * - + COUNT ( * ) AS col2
----
-68

query I rowsort
SELECT 27 + + 68 + - 11 AS col1
----
84

query I rowsort
SELECT 35 * + 73 * - - 16 + - + 36
----
40844

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT 81 * + 0 * + 50 * ( + + 29 ) + + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8183
SELECT 81 * + 0 * + 50 * ( + + 29 ) + + + COUNT ( * )
----
1

query I rowsort
SELECT ALL 24 + + 65 + + - 65 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8185
SELECT ALL CAST( - - 92 AS SIGNED ) * + + COUNT( * ) + + - 21
----
71

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL CAST ( - - 92 AS INTEGER ) * + + COUNT ( * ) + + - 21
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT 69 * - + NULLIF ( - - 31, COUNT( - - 95 ) + 42 )
----
-2139

skipif mysql # not compatible
query I rowsort label-8186
SELECT 69 * - + NULLIF ( - - 31, COUNT ( - - 95 ) + 42 )
----
-2139

query I rowsort
SELECT DISTINCT 53 + 49 * - - 98
----
4855

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT DISTINCT + 63 * - COUNT( * ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT + 63 * - COUNT ( * ) AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8189
SELECT ALL - 9 + + CAST( - 33 AS SIGNED ) + 3 col1
----
-39

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL - 9 + + CAST ( - 33 AS INTEGER ) + 3 col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT 66 * - 59 + + MAX( ALL 3 ) + - COUNT( * ) * + + CASE - NULLIF ( + - 70, + 76 * + 71 - - COUNT( + 81 ) * 47 ) WHEN 84 * 94 + + COUNT( * ) THEN NULL WHEN + + 19 THEN + COALESCE ( + ( - + ( - + 73 ) ), + + 36 ) * COUNT( * ) ELSE NULL END + 22 - + 14 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT 66 * - 59 + + MAX ( ALL 3 ) + - COUNT ( * ) * + + CASE - NULLIF ( + - 70, + 76 * + 71 - - COUNT ( + 81 ) * 47 ) WHEN 84 * 94 + + COUNT ( * ) THEN NULL WHEN + + 19 THEN + COALESCE ( + ( - + ( - + 73 ) ), + + 36 ) * COUNT ( * ) ELSE NULL END + 22 - + 14 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8191
SELECT + + CAST( NULL AS SIGNED ) * + + 85 * ( 65 ) + - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT + + CAST ( NULL AS INTEGER ) * + + 85 * ( 65 ) + - - 68
----
NULL

query I rowsort
SELECT ALL + 80 + 82 col1
----
162

query I rowsort
SELECT ALL COALESCE ( - 48, + 20 * - - 22 * - 3 * + 76 * - + 18 + + COALESCE ( - 11, ( 64 ) ) )
----
-48

query I rowsort
SELECT ALL - 11 + - - 38 + - 93 + 0 * + - 30 AS col2
----
-66

query I rowsort
SELECT 42 + - - 50
----
92

query I rowsort
SELECT 34 + 93 AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8197
SELECT ALL + + SUM( 74 ) + + + ( - 68 ) - 55 * - COUNT( * ) + - 10 * 12 * - CAST( + + 29 AS SIGNED ) - COUNT( * ) DIV - COUNT( ALL - 79 ) AS col1
----
3542

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL + + SUM ( 74 ) + + + ( - 68 ) - 55 * - COUNT ( * ) + - 10 * 12 * - CAST ( + + 29 AS INTEGER ) - COUNT ( * ) / - COUNT ( ALL - 79 ) AS col1
----
3542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8199
SELECT DISTINCT NULLIF ( - CASE 55 WHEN - 66 THEN NULL WHEN - - COALESCE ( + + COUNT( * ), - CAST( NULL AS SIGNED ) * + SUM( - 88 ) + + - 76 + - ( 91 ) + - MAX( + 57 ) ) THEN NULL ELSE 85 END, + 46 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT NULLIF ( - CASE 55 WHEN - 66 THEN NULL WHEN - - COALESCE ( + + COUNT ( * ), - CAST ( NULL AS INTEGER ) * + SUM ( - 88 ) + + - 76 + - ( 91 ) + - MAX ( + 57 ) ) THEN NULL ELSE 85 END, + 46 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT - COUNT( * ) + + 5 * + 12 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT - COUNT ( * ) + + 5 * + 12 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT DISTINCT - + 82 * + - SUM( ALL - 12 )
----
-984

skipif mysql # not compatible
query I rowsort label-8201
SELECT DISTINCT - + 82 * + - SUM ( ALL - 12 )
----
-984

query I rowsort
SELECT ALL + + 20 * - + ( + 69 )
----
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT DISTINCT - COUNT( * ) * 63 * - - 44 col2
----
-2772

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT - COUNT ( * ) * 63 * - - 44 col2
----
-2772

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT ALL - - 7 - 13 DIV - + ( 29 ) * + + 62 * - 2 + + 91 - - - 42 DIV + 14
----
95

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL - - 7 - 13 / - + ( 29 ) * + + 62 * - 2 + + 91 - - - 42 / + 14
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL + COUNT( * ) * - 7
----
-7

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL + COUNT ( * ) * - 7
----
-7

query I rowsort
SELECT - CASE - - 73 WHEN - 62 THEN NULL ELSE 76 END AS col1
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8207
SELECT - 36 AS col1, COUNT( * ) * COUNT( * ) AS col1
----
-36
1

skipif mysql # not compatible
query II rowsort label-8207
SELECT - 36 AS col1, COUNT ( * ) * COUNT ( * ) AS col1
----
-36
1

query II rowsort
SELECT - 88, 67 AS col2
----
-88
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT ALL SUM( ALL - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL SUM ( ALL - 55 )
----
-55

query I rowsort
SELECT 99 * + 69 AS col0
----
6831

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT CASE - - 42 WHEN - - 16 + + COUNT( * ) THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT CASE - - 42 WHEN - - 16 + + COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8212
SELECT ALL CAST( NULL AS SIGNED ) / 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL CAST ( NULL AS INTEGER ) / 67 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8213
SELECT ALL - CASE 37 WHEN + MIN( DISTINCT + ( - + 25 ) ) * + + CASE - - 63 WHEN - CAST( NULL AS SIGNED ) * 82 THEN - 7 * - 26 + 95 + 87 + - - COUNT( * ) WHEN - MAX( DISTINCT 62 ) + - 43 THEN NULL END + - + 45 / - 51 + MAX( + 75 ) THEN + 25 WHEN + 95 * + 2 * - COUNT( - 13 ) + + COUNT( + 12 ) THEN + CAST( NULL AS SIGNED ) + 61 * 27 ELSE CAST( NULL AS SIGNED ) - + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL - CASE 37 WHEN + MIN ( DISTINCT + ( - + 25 ) ) * + + CASE - - 63 WHEN - CAST ( NULL AS INTEGER ) * 82 THEN - 7 * - 26 + 95 + 87 + - - COUNT ( * ) WHEN - MAX ( DISTINCT 62 ) + - 43 THEN NULL END + - + 45 / - 51 + MAX ( + 75 ) THEN + 25 WHEN + 95 * + 2 * - COUNT ( - 13 ) + + COUNT ( + 12 ) THEN + CAST ( NULL AS INTEGER ) + 61 * 27 ELSE CAST ( NULL AS INTEGER ) - + 93 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8214
SELECT ALL - 85 DIV + CAST( - 45 AS SIGNED ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL - 85 / + CAST ( - 45 AS INTEGER ) * COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT 49 * + 28 + COUNT( * ) + - + 80 AS col2
----
1293

skipif mysql # not compatible
query I rowsort label-8215
SELECT 49 * + 28 + COUNT ( * ) + - + 80 AS col2
----
1293

query I rowsort
SELECT 14 * - 19
----
-266

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8217
SELECT - CAST( 45 AS SIGNED ) * + + 1 * 41 + - ( - - 47 ) DIV - 83
----
-1845

skipif mysql # not compatible
query I rowsort label-8217
SELECT - CAST ( 45 AS INTEGER ) * + + 1 * 41 + - ( - - 47 ) / - 83
----
-1845

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT SUM( ALL + 83 ) col2
----
83

skipif mysql # not compatible
query I rowsort label-8218
SELECT SUM ( ALL + 83 ) col2
----
83

query I rowsort
SELECT - 13 * - 18
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT + COUNT( * ) + - 98 + + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-8220
SELECT + COUNT ( * ) + - 98 + + COUNT ( * )
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8221
SELECT + 77 * - 83 DIV COUNT( * ) AS col1, 21 - + 68 + - + 9 * + - 96 col0
----
-6391
817

skipif mysql # not compatible
query II rowsort label-8221
SELECT + 77 * - 83 / COUNT ( * ) AS col1, 21 - + 68 + - + 9 * + - 96 col0
----
-6391
817

query I rowsort
SELECT ALL ( 21 ) * + 23 * 24 + - 58 * 73 col2
----
7358

query I rowsort
SELECT 86 * - 59 + + 93 - + 14 - + ( - + ( - 37 ) ) * - 5 AS col0
----
-4810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8224
SELECT + 59 DIV + + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8224
SELECT + 59 / + + COUNT ( * ) AS col0
----
59

query I rowsort
SELECT ALL 35 * + + 13 + ( + - 66 ) col0
----
389

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL + + MIN( ALL + + 21 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + + MIN ( ALL + + 21 ) col0
----
21

query II rowsort
SELECT + 90 AS col1, 83 AS col1
----
90
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT + 3 * - COUNT( * ) * MIN( + 83 ) AS col1
----
-249

skipif mysql # not compatible
query I rowsort label-8228
SELECT + 3 * - COUNT ( * ) * MIN ( + 83 ) AS col1
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT + 73 * COUNT( * ) + + 87 * + - 36 * 58
----
-181583

skipif mysql # not compatible
query I rowsort label-8229
SELECT + 73 * COUNT ( * ) + + 87 * + - 36 * 58
----
-181583

query II rowsort
SELECT - 40, - 70 + - 11 AS col0
----
-40
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT DISTINCT + NULLIF ( + 19, + ( - MAX( + + 52 ) ) * - 4 ) + + - 89 - + 34 * - 67 AS col0
----
2208

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT + NULLIF ( + 19, + ( - MAX ( + + 52 ) ) * - 4 ) + + - 89 - + 34 * - 67 AS col0
----
2208

query I rowsort
SELECT ALL + - 61 col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT DISTINCT + ( 14 ) * + 16 - - MAX( DISTINCT 57 ) + + 11
----
292

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT + ( 14 ) * + 16 - - MAX ( DISTINCT 57 ) + + 11
----
292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8234
SELECT + CASE 69 WHEN - 96 * - ( - 82 ) + + + MIN( - 58 ) + MIN( 3 ) * - - 34 THEN COUNT( * ) WHEN COUNT( * ) + - - 32 * - MAX( DISTINCT + + 88 ) * - 27 + CASE 27 WHEN + - 58 - - 90 + - 72 THEN NULL WHEN + ( 98 ) + + 74 THEN NULL WHEN + 17 * - 36 THEN + 75 * CAST( NULL AS SIGNED ) END * 8 THEN - MIN( ALL - ( 95 ) ) END * 91 - - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT + CASE 69 WHEN - 96 * - ( - 82 ) + + + MIN ( - 58 ) + MIN ( 3 ) * - - 34 THEN COUNT ( * ) WHEN COUNT ( * ) + - - 32 * - MAX ( DISTINCT + + 88 ) * - 27 + CASE 27 WHEN + - 58 - - 90 + - 72 THEN NULL WHEN + ( 98 ) + + 74 THEN NULL WHEN + 17 * - 36 THEN + 75 * CAST ( NULL AS INTEGER ) END * 8 THEN - MIN ( ALL - ( 95 ) ) END * 91 - - 32 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT ALL - 88 - + ( + - 72 ) + + ( - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL - 88 - + ( + - 72 ) + + ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL - COUNT( * ) * - 59 * - COUNT( * ) * + 80 AS col0
----
-4720

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL - COUNT ( * ) * - 59 * - COUNT ( * ) * + 80 AS col0
----
-4720

onlyif mysql # aggregate syntax: 
query II rowsort label-8237
SELECT DISTINCT + + 18 - 97 * + CASE - 43 WHEN + 99 / 27 THEN NULL ELSE + COUNT( * ) END * 34 AS col2, 26 AS col2
----
-3280
26

skipif mysql # not compatible
query II rowsort label-8237
SELECT DISTINCT + + 18 - 97 * + CASE - 43 WHEN + 99 / 27 THEN NULL ELSE + COUNT ( * ) END * 34 AS col2, 26 AS col2
----
-3280
26

query I rowsort
SELECT ALL + 33 - - 37 AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8239
SELECT - - ( + - 77 ) * 44 DIV COALESCE ( - + 93, - + COALESCE ( + 97, - CASE + MIN( + 55 ) WHEN 16 + COALESCE ( + + 43, + - 21, CASE - + 17 WHEN + COALESCE ( - 13, - COUNT( * ) * 77 ) * 26 THEN 40 END ) + + 16 * - 44 THEN + 11 ELSE - 42 DIV - - 67 END, + NULLIF ( ( 19 ), 81 ) * + 47 ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8239
SELECT - - ( + - 77 ) * 44 / COALESCE ( - + 93, - + COALESCE ( + 97, - CASE + MIN ( + 55 ) WHEN 16 + COALESCE ( + + 43, + - 21, CASE - + 17 WHEN + COALESCE ( - 13, - COUNT ( * ) * 77 ) * 26 THEN 40 END ) + + 16 * - 44 THEN + 11 ELSE - 42 / - - 67 END, + NULLIF ( ( 19 ), 81 ) * + 47 ) ) AS col1
----
36

query II rowsort
SELECT ALL 59, + 36 AS col2
----
59
36

query I rowsort
SELECT + COALESCE ( - 2, + 69 - + 79 ) + + 72 AS col0
----
70

query II rowsort
SELECT - 3 - + - 4 * + 77 AS col1, - 8 AS col0
----
305
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8243
SELECT ALL + CAST( + AVG ( ALL + 55 ) AS SIGNED ) - 28 col2, - 37
----
27
-37

skipif mysql # not compatible
query II rowsort label-8243
SELECT ALL + CAST ( + AVG ( ALL + 55 ) AS INTEGER ) - 28 col2, - 37
----
27
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8244
SELECT + AVG ( - 25 ) + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT + AVG ( - 25 ) + CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT 42 AS col0, - 28 + - 38 AS col2
----
42
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-8246
SELECT ALL - SUM( ALL + 26 ) * + - COUNT( * ) * + 9 AS col1, NULLIF ( - - 49, 12 * + 78 - CASE - - 68 WHEN + - COUNT( * ) * + 72 THEN 31 ELSE 85 END ) * + - ( 38 ) + - - 76 * - + 85
----
234
-8322

skipif mysql # not compatible
query II rowsort label-8246
SELECT ALL - SUM ( ALL + 26 ) * + - COUNT ( * ) * + 9 AS col1, NULLIF ( - - 49, 12 * + 78 - CASE - - 68 WHEN + - COUNT ( * ) * + 72 THEN 31 ELSE 85 END ) * + - ( 38 ) + - - 76 * - + 85
----
234
-8322

query I rowsort
SELECT ALL + 53 + + 95 - + 42
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT DISTINCT - CASE - 45 WHEN 83 THEN NULL ELSE - - 93 END * + ( COUNT( * ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT - CASE - 45 WHEN 83 THEN NULL ELSE - - 93 END * + ( COUNT ( * ) ) AS col2
----
-93

query I rowsort
SELECT - 95 * - ( - - 98 ) AS col1
----
9310

onlyif mysql # DIV for integer division: 
query I rowsort label-8250
SELECT 17 DIV 61 + 73
----
73

skipif mysql # not compatible
query I rowsort label-8250
SELECT 17 / 61 + 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL - 81 * COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL - 81 * COUNT ( * ) AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8252
SELECT DISTINCT + CASE + CASE + + 16 WHEN + CASE CASE 6 WHEN 39 THEN + CAST( + 47 AS SIGNED ) WHEN + 16 THEN NULL ELSE NULL END WHEN + - 13 + 91 THEN NULL WHEN - + 75 THEN - CAST( NULL AS DECIMAL ) + NULLIF ( - ( 88 ), - + COALESCE ( + 53, - 28 + + 99, + + SUM( + - 41 ) - + COUNT( * ) ) / - ( + - 15 ) ) - + + 78 * + 29 * + + CASE 5 WHEN 85 / 97 + - 58 THEN - AVG ( ALL - 32 ) * 50 END * - COUNT( * ) ELSE 1 END THEN NULL WHEN 12 THEN NULL WHEN 32 * 36 + 21 THEN + 15 * - 92 END WHEN 29 THEN COALESCE ( - 82, 65 - - 63 ) + + 29 ELSE - SUM( DISTINCT 98 ) * + 65 + MIN( DISTINCT 96 ) END AS col1
----
-6274

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT + CASE + CASE + + 16 WHEN + CASE CASE 6 WHEN 39 THEN + CAST ( + 47 AS INTEGER ) WHEN + 16 THEN NULL ELSE NULL END WHEN + - 13 + 91 THEN NULL WHEN - + 75 THEN - CAST ( NULL AS REAL ) + NULLIF ( - ( 88 ), - + COALESCE ( + 53, - 28 + + 99, + + SUM ( + - 41 ) - + COUNT ( * ) ) / - ( + - 15 ) ) - + + 78 * + 29 * + + CASE 5 WHEN 85 / 97 + - 58 THEN - AVG ( ALL - 32 ) * 50 END * - COUNT ( * ) ELSE 1 END THEN NULL WHEN 12 THEN NULL WHEN 32 * 36 + 21 THEN + 15 * - 92 END WHEN 29 THEN COALESCE ( - 82, 65 - - 63 ) + + 29 ELSE - SUM ( DISTINCT 98 ) * + 65 + MIN ( DISTINCT 96 ) END AS col1
----
-6274

query I rowsort
SELECT - 83 * 13
----
-1079

query I rowsort
SELECT ( + - 92 ) AS col1
----
-92

query I rowsort
SELECT ALL 29 * - 46 AS col0
----
-1334

query I rowsort
SELECT DISTINCT 91 * + 42 + - + 46 + 53 + + 44
----
3873

query I rowsort
SELECT - - 91 * + + 13 + + - 89
----
1094

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8258
SELECT + ( 63 ) * + 67 + + 61 AS col2, - 58 / + CAST( NULL AS SIGNED ) AS col1
----
4282
NULL

skipif mysql # not compatible
query II rowsort label-8258
SELECT + ( 63 ) * + 67 + + 61 AS col2, - 58 / + CAST ( NULL AS INTEGER ) AS col1
----
4282
NULL

query I rowsort
SELECT DISTINCT - 77 * + - ( - + 11 ) - + 88 + - + 0 + - - 90 * 48 * + + 85 * + 38 + + 14 + + 67 + + - 11
----
13952735

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT + SUM( ALL + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-8260
SELECT + SUM ( ALL + 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT DISTINCT 11 * ( COUNT( * ) ) - 60
----
-49

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT 11 * ( COUNT ( * ) ) - 60
----
-49

query I rowsort
SELECT ALL + + 49 * 37 * + - ( + 38 ) AS col2
----
-68894

query I rowsort
SELECT + + 97 * + + 98 + 61
----
9567

onlyif mysql # DIV for integer division: 
query I rowsort label-8264
SELECT + + 7 + 84 + 76 + + + 45 DIV + 72 col1
----
167

skipif mysql # not compatible
query I rowsort label-8264
SELECT + + 7 + 84 + 76 + + + 45 / + 72 col1
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT COUNT( + 58 ) * + 33 + + - NULLIF ( COUNT( * ), + - 98 * - 53 + - NULLIF ( + 3, + 85 ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT COUNT ( + 58 ) * + 33 + + - NULLIF ( COUNT ( * ), + - 98 * - 53 + - NULLIF ( + 3, + 85 ) ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT + + SUM( - COALESCE ( + + 67, + - 96 ) ) * - - 34 AS col1
----
-2278

skipif mysql # not compatible
query I rowsort label-8266
SELECT + + SUM ( - COALESCE ( + + 67, + - 96 ) ) * - - 34 AS col1
----
-2278

query I rowsort
SELECT ALL 37 * 52 AS col0
----
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT DISTINCT CASE 44 WHEN + ( + + 16 ) THEN - + COUNT( * ) / + 58 + + COUNT( * ) + - 3 + - 55 WHEN + - 54 THEN + - CASE COUNT( * ) WHEN 28 * + + 83 * - 92 + + 55 THEN 14 WHEN - 32 THEN NULL END END + - ( + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT CASE 44 WHEN + ( + + 16 ) THEN - + COUNT ( * ) / + 58 + + COUNT ( * ) + - 3 + - 55 WHEN + - 54 THEN + - CASE COUNT ( * ) WHEN 28 * + + 83 * - 92 + + 55 THEN 14 WHEN - 32 THEN NULL END END + - ( + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 37 + 94
----
131

query I rowsort
SELECT - ( - + 55 ) AS col2
----
55

query I rowsort
SELECT 53 * 74 AS col1
----
3922

onlyif mysql # aggregate syntax: 
query II rowsort label-8272
SELECT DISTINCT 5 col1, COUNT( DISTINCT + 49 )
----
5
1

skipif mysql # not compatible
query II rowsort label-8272
SELECT DISTINCT 5 col1, COUNT ( DISTINCT + 49 )
----
5
1

query I rowsort
SELECT DISTINCT + 40 + - 35
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8274
SELECT ( + + 9 ) - + COUNT( - 1 ) + COALESCE ( + 97, 12 ) + MIN( DISTINCT - 46 ) + - - NULLIF ( - 12, MIN( - CAST( - 22 AS SIGNED ) ) ) / 53 / + MIN( + - 24 ) + - MIN( DISTINCT - + ( + 12 ) ) + - 10 * COUNT( * ) * ( + CASE - - 63 WHEN 90 / + + 58 * + 4 THEN - - 24 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT ( + + 9 ) - + COUNT ( - 1 ) + COALESCE ( + 97, 12 ) + MIN ( DISTINCT - 46 ) + - - NULLIF ( - 12, MIN ( - CAST ( - 22 AS INTEGER ) ) ) / 53 / + MIN ( + - 24 ) + - MIN ( DISTINCT - + ( + 12 ) ) + - 10 * COUNT ( * ) * ( + CASE - - 63 WHEN 90 / + + 58 * + 4 THEN - - 24 END ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 16 AS col2, 98 * + + 9
----
16
882

query I rowsort
SELECT DISTINCT + 4 + 46 AS col0
----
50

query I rowsort
SELECT ALL - 50 * 96 * - 57 AS col0
----
273600

query I rowsort
SELECT DISTINCT + 95 * + + 47 AS col0
----
4465

onlyif mysql # DIV for integer division: 
query I rowsort label-8279
SELECT 62 DIV 90 * 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8279
SELECT 62 / 90 * 11 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8280
SELECT ALL CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 68 * 59
----
4012

query I rowsort
SELECT 23 * 29 + 91
----
758

query I rowsort
SELECT ALL - 50 * + - 3
----
150

query II rowsort
SELECT 84 + + + 35 + 61 AS col0, 25
----
180
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8285
SELECT COUNT( * ) + + CAST( 47 AS SIGNED ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8285
SELECT COUNT ( * ) + + CAST ( 47 AS INTEGER ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT + + SUM( ALL + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-8286
SELECT + + SUM ( ALL + 44 )
----
44

query II rowsort
SELECT ALL - 29 col0, 78 + 44 AS col0
----
-29
122

query II rowsort
SELECT ALL - + 56 AS col0, + 3 AS col1
----
-56
3

query I rowsort
SELECT + 30 * + 84 + + 86
----
2606

query I rowsort
SELECT ALL 79 * - 52
----
-4108

query I rowsort
SELECT ( + - 15 ) + - 26 * 56 AS col2
----
-1471

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + ( + - MAX( DISTINCT - + 93 ) ) col0
----
93

skipif mysql # not compatible
query I rowsort label-8292
SELECT + ( + - MAX ( DISTINCT - + 93 ) ) col0
----
93

query I rowsort
SELECT + 89 + 10 + - - 9 + + 89
----
197

query I rowsort
SELECT ALL - COALESCE ( + + 74, - + 66 + + 56 ) AS col2
----
-74

query I rowsort
SELECT + + ( + + 89 )
----
89

query I rowsort
SELECT CASE - AVG ( DISTINCT - 13 ) WHEN 23 THEN - + 5 * + - 26 + - 7 END
----
NULL

query I rowsort
SELECT ALL 68 * - 27 + - - 94 - 63 AS col1
----
-1805

query I rowsort
SELECT - 38 - 95 + + 44
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8299
SELECT COUNT( * ) DIV 39 DIV - COALESCE ( - - 83, - 52, - 86 * + 22 + + 60 ) * + 10 * 28 + - - 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8299
SELECT COUNT ( * ) / 39 / - COALESCE ( - - 83, - 52, - 86 * + 22 + + 60 ) * + 10 * 28 + - - 57 AS col0
----
57

query I rowsort
SELECT ALL 81 + + + 45 AS col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT - + 21 * + COUNT( * ) - - ( + 61 )
----
40

skipif mysql # not compatible
query I rowsort label-8301
SELECT - + 21 * + COUNT ( * ) - - ( + 61 )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8302
SELECT DISTINCT + 53 + - 19 DIV - 37 + - + 81
----
-28

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT + 53 + - 19 / - 37 + - + 81
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT ALL CAST( NULL AS SIGNED ) / - - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL CAST ( NULL AS INTEGER ) / - - 62 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8304
SELECT NULLIF ( - 56, + 23 * 80 ) DIV + + 89 + 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8304
SELECT NULLIF ( - 56, + 23 * 80 ) / + + 89 + 9 AS col1
----
9

query II rowsort
SELECT ALL + 53 + - 74 * 53 * + 37 AS col1, - 99 AS col2
----
-145061
-99

query II rowsort
SELECT 98 + + - 34, + ( ( 86 ) ) col1
----
64
86

onlyif mysql # aggregate syntax: 
query II rowsort label-8307
SELECT COUNT( * ) - + 29 AS col2, + 34 AS col1
----
-28
34

skipif mysql # not compatible
query II rowsort label-8307
SELECT COUNT ( * ) - + 29 AS col2, + 34 AS col1
----
-28
34

onlyif mysql # DIV for integer division: 
query II rowsort label-8308
SELECT ALL 43 AS col2, 96 DIV - 28 AS col0
----
43
-3

skipif mysql # not compatible
query II rowsort label-8308
SELECT ALL 43 AS col2, 96 / - 28 AS col0
----
43
-3

query II rowsort
SELECT ALL 94 AS col1, - 39 AS col1
----
94
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT CASE WHEN NOT NULL <> - 29 THEN NULL ELSE + - ( 66 ) - + 49 - 22 END * - - 50 + + COUNT( * ) * - 6
----
-6856

skipif mysql # not compatible
query I rowsort label-8310
SELECT CASE WHEN NOT NULL <> - 29 THEN NULL ELSE + - ( 66 ) - + 49 - 22 END * - - 50 + + COUNT ( * ) * - 6
----
-6856

query II rowsort
SELECT ALL 54 col1, + 13
----
54
13

query I rowsort
SELECT ALL 60 + 15
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8313
SELECT 43 + + 77 + - 57 + 15 DIV 48 * - - ( 54 ) - - - 19 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8313
SELECT 43 + + 77 + - 57 + 15 / 48 * - - ( 54 ) - - - 19 AS col1
----
44

query I rowsort
SELECT 62 + + ( + 35 ) AS col2
----
97

query I rowsort
SELECT DISTINCT 83 * + 37
----
3071

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT NULLIF ( + ( + COUNT( * ) ), 14 ) / NULLIF ( - - CASE + COALESCE ( 5, + 56 ) WHEN + + ( + 80 ) - 41 THEN + 65 ELSE NULL END, + 63 ) / - - AVG ( DISTINCT + 31 ) + + 43 * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT NULLIF ( + ( + COUNT ( * ) ), 14 ) / NULLIF ( - - CASE + COALESCE ( 5, + 56 ) WHEN + + ( + 80 ) - 41 THEN + 65 ELSE NULL END, + 63 ) / - - AVG ( DISTINCT + 31 ) + + 43 * 28
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8317
SELECT DISTINCT 26, 84 DIV 92 col2
----
26
0

skipif mysql # not compatible
query II rowsort label-8317
SELECT DISTINCT 26, 84 / 92 col2
----
26
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT MAX( DISTINCT + - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-8318
SELECT MAX ( DISTINCT + - 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT MAX( ALL + - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8319
SELECT MAX ( ALL + - 34 ) AS col0
----
-34

query I rowsort
SELECT - 97 * + 81
----
-7857

query II rowsort
SELECT ALL - 54 col0, 85 * ( + 44 ) * + 27 AS col2
----
-54
100980

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT - NULLIF ( + 84, 84 + + COUNT( * ) ) * + + 62
----
-5208

skipif mysql # not compatible
query I rowsort label-8322
SELECT - NULLIF ( + 84, 84 + + COUNT ( * ) ) * + + 62
----
-5208

onlyif mysql # DIV for integer division: 
query I rowsort label-8323
SELECT DISTINCT 84 DIV - - 41 + - 45
----
-43

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT 84 / - - 41 + - 45
----
-43

query I rowsort
SELECT ALL + + 73 * + 89 AS col1
----
6497

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8325
SELECT NULLIF ( - - 78, - AVG ( DISTINCT + 79 ) ) * - 69 * + 71 + + - 26 / CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT NULLIF ( - - 78, - AVG ( DISTINCT + 79 ) ) * - 69 * + 71 + + - 26 / CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8326
SELECT ALL - CAST( NULL AS SIGNED ), 54 AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-8326
SELECT ALL - CAST ( NULL AS INTEGER ), 54 AS col2
----
NULL
54

query I rowsort
SELECT + 77 * + - 14 AS col1
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT + 46 * + - COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-8328
SELECT + 46 * + - COUNT ( * ) AS col1
----
-46

query I rowsort
SELECT + + 60 * + 46 + - 27
----
2733

query I rowsort
SELECT 11 - - - 12
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT + + COALESCE ( - 0, - COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8331
SELECT + + COALESCE ( - 0, - COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8332
SELECT ALL - + COALESCE ( 92, + + 89 * + COUNT( * ) ) AS col0, + 96 + ( - 61 ) AS col0
----
-92
35

skipif mysql # not compatible
query II rowsort label-8332
SELECT ALL - + COALESCE ( 92, + + 89 * + COUNT ( * ) ) AS col0, + 96 + ( - 61 ) AS col0
----
-92
35

query II rowsort
SELECT + 88, 52 + 65 AS col0
----
88
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT 3 * + 91 - 97 + COUNT( * ) + - COUNT( * ) * 34
----
143

skipif mysql # not compatible
query I rowsort label-8334
SELECT 3 * + 91 - 97 + COUNT ( * ) + - COUNT ( * ) * 34
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT MAX( DISTINCT + 48 ) + - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8335
SELECT MAX ( DISTINCT + 48 ) + - COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT DISTINCT + MIN( 32 ) * + 51 * + - 78
----
-127296

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT + MIN ( 32 ) * + 51 * + - 78
----
-127296

onlyif mysql # aggregate syntax: 
query II rowsort label-8337
SELECT + 39 AS col0, SUM( ALL - 65 ) AS col1
----
39
-65

skipif mysql # not compatible
query II rowsort label-8337
SELECT + 39 AS col0, SUM ( ALL - 65 ) AS col1
----
39
-65

query I rowsort
SELECT ALL + - 94 + + 6 AS col2
----
-88

query I rowsort
SELECT ALL + - 77 + + - 83 + - 91 AS col1
----
-251

query II rowsort
SELECT - - 59 AS col2, - 17
----
59
-17

query I rowsort
SELECT - 20 * + 26 col2
----
-520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8342
SELECT DISTINCT + COUNT( * ) + + - CAST( - 3 AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT + COUNT ( * ) + + - CAST ( - 3 AS INTEGER ) AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8343
SELECT DISTINCT COALESCE ( + 53, - - AVG ( DISTINCT + - COALESCE ( + - 90, + 71 * - ( - + 89 ) ) ) DIV 52 + + 85, - COUNT( * ) * + 33 * - 80 + + 25, + + CASE WHEN NOT + COALESCE ( + 20, - + 75 ) < - CASE + + 11 WHEN + 29 THEN NULL WHEN - - 52 * 1 THEN NULL ELSE - 4 * + - 25 + + 96 - + + 61 + + + 22 END THEN + + 60 WHEN NOT NULL IS NULL THEN NULL ELSE NULL END )
----
53

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT COALESCE ( + 53, - - AVG ( DISTINCT + - COALESCE ( + - 90, + 71 * - ( - + 89 ) ) ) / 52 + + 85, - COUNT ( * ) * + 33 * - 80 + + 25, + + CASE WHEN NOT + COALESCE ( + 20, - + 75 ) < - CASE + + 11 WHEN + 29 THEN NULL WHEN - - 52 * 1 THEN NULL ELSE - 4 * + - 25 + + 96 - + + 61 + + + 22 END THEN + + 60 WHEN NOT NULL IS NULL THEN NULL ELSE NULL END )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8344
SELECT ALL + CAST( NULL AS SIGNED ) + - 83 * + 93 - + 84 + + COALESCE ( - + 95, - CASE 72 WHEN - 55 * 9 THEN NULL ELSE - - 2 END + SUM( + + 77 ) + 5 ) + + - COUNT( * ) * COUNT( * ) * - CASE SUM( + 68 ) WHEN - + 74 THEN NULL ELSE 1 * + + SUM( DISTINCT - 26 ) * - 59 END / - COALESCE ( + 81, + - ( 54 ) + - 19 ) + - CASE + COUNT( * ) WHEN + 74 THEN 37 ELSE + NULLIF ( - 66, 96 ) + 73 END * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL + CAST ( NULL AS INTEGER ) + - 83 * + 93 - + 84 + + COALESCE ( - + 95, - CASE 72 WHEN - 55 * 9 THEN NULL ELSE - - 2 END + SUM ( + + 77 ) + 5 ) + + - COUNT ( * ) * COUNT ( * ) * - CASE SUM ( + 68 ) WHEN - + 74 THEN NULL ELSE 1 * + + SUM ( DISTINCT - 26 ) * - 59 END / - COALESCE ( + 81, + - ( 54 ) + - 19 ) + - CASE + COUNT ( * ) WHEN + 74 THEN 37 ELSE + NULLIF ( - 66, 96 ) + 73 END * - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT - COUNT( 77 ) * + + 52
----
-52

skipif mysql # not compatible
query I rowsort label-8345
SELECT - COUNT ( 77 ) * + + 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL + ( + + COUNT( * ) ) * - - 71
----
71

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL + ( + + COUNT ( * ) ) * - - 71
----
71

query I rowsort
SELECT DISTINCT 19 + - + 20 AS col2
----
-1

query I rowsort
SELECT ALL - COALESCE ( - 18, + + ( + 65 ) ) - - 62 AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8349
SELECT DISTINCT 72 / - - CASE + 12 WHEN + + 21 * CAST( NULL AS SIGNED ) + + 48 THEN + - 92 WHEN 1 * + - COUNT( * ) + - - 41 - - - 13 THEN + COUNT( + 65 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT 72 / - - CASE + 12 WHEN + + 21 * CAST ( NULL AS INTEGER ) + + 48 THEN + - 92 WHEN 1 * + - COUNT ( * ) + - - 41 - - - 13 THEN + COUNT ( + 65 ) END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8350
SELECT - 30 - CAST( + - 45 AS SIGNED ), + 97 + 30 col2
----
15
127

skipif mysql # not compatible
query II rowsort label-8350
SELECT - 30 - CAST ( + - 45 AS INTEGER ), + 97 + 30 col2
----
15
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT - SUM( - - 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8351
SELECT - SUM ( - - 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8352
SELECT + 12 DIV - COUNT( 98 )
----
-12

skipif mysql # not compatible
query I rowsort label-8352
SELECT + 12 / - COUNT ( 98 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - COALESCE ( + 25, + CASE + + 77 WHEN + ( - 78 ) THEN + + MIN( 3 ) WHEN - + 65 THEN - + COUNT( * ) END ) * - 49
----
1225

skipif mysql # not compatible
query I rowsort label-8353
SELECT - COALESCE ( + 25, + CASE + + 77 WHEN + ( - 78 ) THEN + + MIN ( 3 ) WHEN - + 65 THEN - + COUNT ( * ) END ) * - 49
----
1225

query I rowsort
SELECT - COALESCE ( + 97, 37, - 98, + 89 ) AS col0
----
-97

query I rowsort
SELECT DISTINCT 29 * + 29 col0
----
841

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT + - 52 - + + SUM( ALL - 61 ) + - 86 * - 38
----
3277

skipif mysql # not compatible
query I rowsort label-8356
SELECT + - 52 - + + SUM ( ALL - 61 ) + - 86 * - 38
----
3277

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ALL + 41 * MIN( ALL - 89 ) * + 52 + + ( - 79 )
----
-189827

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL + 41 * MIN ( ALL - 89 ) * + 52 + + ( - 79 )
----
-189827

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT + + 35 * - MAX( DISTINCT 87 ) AS col0
----
-3045

skipif mysql # not compatible
query I rowsort label-8358
SELECT + + 35 * - MAX ( DISTINCT 87 ) AS col0
----
-3045

query I rowsort
SELECT DISTINCT 73 * ( - 26 ) AS col0
----
-1898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8360
SELECT + COUNT( * ) DIV - + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8360
SELECT + COUNT ( * ) / - + 34 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8361
SELECT ALL CAST( NULL AS SIGNED ) * - + 65 - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL CAST ( NULL AS INTEGER ) * - + 65 - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT + SUM( - + 66 ) * + ( + - 83 ) AS col1
----
5478

skipif mysql # not compatible
query I rowsort label-8362
SELECT + SUM ( - + 66 ) * + ( + - 83 ) AS col1
----
5478

query I rowsort
SELECT ( - ( - + 42 ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT DISTINCT + COUNT( * ) * + + 8 + - + 67 + - 53 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT + COUNT ( * ) * + + 8 + - + 67 + - 53 AS col0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT + MAX( ALL + - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT + MAX ( ALL + - 48 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT + 97 DIV 93 DIV - ( 85 ) + + 76 + 44 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-8366
SELECT + 97 / 93 / - ( 85 ) + + 76 + 44 AS col2
----
120

query I rowsort
SELECT + + 75 + + 41 - + 68 + + + 50 * + - 72 * + ( + 34 ) + - 76 + 61
----
-122367

query I rowsort
SELECT ALL + 48 * - 79 - + 29 + ( - - 20 ) col1
----
-3801

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT ALL COUNT( * ) * + 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL COUNT ( * ) * + 19 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT + 0 + - COUNT( * ) - - 13 * + + 87 AS col0
----
1130

skipif mysql # not compatible
query I rowsort label-8370
SELECT + 0 + - COUNT ( * ) - - 13 * + + 87 AS col0
----
1130

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT CASE COUNT( * ) WHEN ( 87 ) THEN - COALESCE ( + 76, + 41 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8371
SELECT CASE COUNT ( * ) WHEN ( 87 ) THEN - COALESCE ( + 76, + 41 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8372
SELECT ALL - COUNT( * ) * + 43 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL - COUNT ( * ) * + 43 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8373
SELECT COUNT( * ), + CAST( + 76 AS SIGNED ) + - + ( - 75 ) * 70 AS col0
----
1
5326

skipif mysql # not compatible
query II rowsort label-8373
SELECT COUNT ( * ), + CAST ( + 76 AS INTEGER ) + - + ( - 75 ) * 70 AS col0
----
1
5326

onlyif mysql # aggregate syntax: 
query II rowsort label-8374
SELECT SUM( DISTINCT + 29 ) * COUNT( * ) - 14 * MAX( ALL - + 94 ), - 86 AS col1
----
1345
-86

skipif mysql # not compatible
query II rowsort label-8374
SELECT SUM ( DISTINCT + 29 ) * COUNT ( * ) - 14 * MAX ( ALL - + 94 ), - 86 AS col1
----
1345
-86

query I rowsort
SELECT DISTINCT NULLIF ( - 71, - ( - 14 ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT DISTINCT ( + CASE COUNT( * ) WHEN - 83 THEN MAX( - 88 ) WHEN - 31 * - 9 / + - COUNT( * ) + + MIN( + 67 ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT ( + CASE COUNT ( * ) WHEN - 83 THEN MAX ( - 88 ) WHEN - 31 * - 9 / + - COUNT ( * ) + + MIN ( + 67 ) THEN NULL END )
----
NULL

query I rowsort
SELECT - 43 + - 42 + - 24
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-8378
SELECT ALL - 97 * - - 66 - + + 29 AS col1, - 33 * COUNT( * ) col1
----
-6431
-33

skipif mysql # not compatible
query II rowsort label-8378
SELECT ALL - 97 * - - 66 - + + 29 AS col1, - 33 * COUNT ( * ) col1
----
-6431
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8379
SELECT - 3 AS col2, 6 * + + COALESCE ( - 65, + ( 55 ) + CASE - 3 WHEN 58 * - 20 THEN 73 END ) + + SUM( ALL - 52 ) * - SUM( + 87 ) * - + 45 AS col1
----
-3
-203970

skipif mysql # not compatible
query II rowsort label-8379
SELECT - 3 AS col2, 6 * + + COALESCE ( - 65, + ( 55 ) + CASE - 3 WHEN 58 * - 20 THEN 73 END ) + + SUM ( ALL - 52 ) * - SUM ( + 87 ) * - + 45 AS col1
----
-3
-203970

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT + 31 + + MAX( ALL - 63 ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-8380
SELECT + 31 + + MAX ( ALL - 63 ) col2
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-8381
SELECT ALL NULLIF ( + 99, - SUM( DISTINCT + - 60 ) ) AS col1, + SUM( ALL - 91 ) AS col0
----
99
-91

skipif mysql # not compatible
query II rowsort label-8381
SELECT ALL NULLIF ( + 99, - SUM ( DISTINCT + - 60 ) ) AS col1, + SUM ( ALL - 91 ) AS col0
----
99
-91

query I rowsort
SELECT - 7 + 42
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT - COALESCE ( + - COUNT( CASE - 66 WHEN - 53 THEN - + 33 END ), - - COUNT( * ) * + 57 * - 14 + - 48 - 96 ) - 90
----
-90

skipif mysql # not compatible
query I rowsort label-8383
SELECT - COALESCE ( + - COUNT ( CASE - 66 WHEN - 53 THEN - + 33 END ), - - COUNT ( * ) * + 57 * - 14 + - 48 - 96 ) - 90
----
-90

query I rowsort
SELECT - 83 + + 63 AS col0
----
-20

query I rowsort
SELECT - 89 - - 63
----
-26

query I rowsort
SELECT - 0 * + + ( 15 )
----
0

query I rowsort
SELECT - 6 * 75
----
-450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8388
SELECT ALL CAST( - 52 AS SIGNED ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL CAST ( - 52 AS INTEGER ) AS col0
----
-52

query I rowsort
SELECT ALL + + 2 * + 74 AS col0
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8390
SELECT DISTINCT + CASE - 43 WHEN - + 65 THEN NULL WHEN - 5 * - - COUNT( * ) + 54 THEN NULL ELSE COUNT( * ) / + + CAST( NULL AS SIGNED ) - - 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT + CASE - 43 WHEN - + 65 THEN NULL WHEN - 5 * - - COUNT ( * ) + 54 THEN NULL ELSE COUNT ( * ) / + + CAST ( NULL AS INTEGER ) - - 91 END
----
NULL

query I rowsort
SELECT + NULLIF ( 73, - 6 ) + - 36 + 20
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8392
SELECT - - COUNT( * ) * - SUM( 32 ) AS col0, + 75 AS col0
----
-32
75

skipif mysql # not compatible
query II rowsort label-8392
SELECT - - COUNT ( * ) * - SUM ( 32 ) AS col0, + 75 AS col0
----
-32
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8393
SELECT DISTINCT - 30 DIV 97 + + - 46 + ( + 97 )
----
51

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT - 30 / 97 + + - 46 + ( + 97 )
----
51

query I rowsort
SELECT + ( 45 ) AS col0
----
45

query II rowsort
SELECT 63 * + + 0 + - 83 AS col2, + ( 59 ) + + 12 + + 76 AS col0
----
-83
147

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT - 6 DIV - + 23 * + 75 DIV 41 + + ( + 75 ) + + 27 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-8396
SELECT - 6 / - + 23 * + 75 / 41 + + ( + 75 ) + + 27 AS col2
----
102

query I rowsort
SELECT + - 30 * 94 AS col0
----
-2820

query I rowsort
SELECT 53 + 85
----
138

query I rowsort
SELECT ALL - - NULLIF ( - - 17, 43 ) col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT - 58 * - - 30 * - MIN( 42 ) AS col1
----
73080

skipif mysql # not compatible
query I rowsort label-8400
SELECT - 58 * - - 30 * - MIN ( 42 ) AS col1
----
73080

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8401
SELECT + COUNT( * ) * + COALESCE ( 73, 58 * - 54 / - + 69 ) * + CAST( NULL AS DECIMAL ) * - - 88 + + NULLIF ( + 89, + ( - 37 ) ) + 50 + - + 63 + - + 82 + - - 38 * - 97 * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8401
SELECT + COUNT ( * ) * + COALESCE ( 73, 58 * - 54 / - + 69 ) * + CAST ( NULL AS REAL ) * - - 88 + + NULLIF ( + 89, + ( - 37 ) ) + 50 + - + 63 + - + 82 + - - 38 * - 97 * 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8402
SELECT ALL + 41 - - + COUNT( + 63 ), - COUNT( * ) * + 45 - - 12 + - CASE - COUNT( * ) WHEN + 67 THEN 51 * - + 13 * - 67 * + 51 + - 30 + COALESCE ( 25, + 90 * - NULLIF ( + + CASE WHEN NOT - COUNT( * ) IS NULL THEN - 85 END, 89 * - - 60 ) + - 83 * + - 8 ) WHEN - CAST( - ( - - 33 ) AS SIGNED ) + + COALESCE ( - - ( 79 ), + - 12 * - 49 - 19 * 57, + 52 ) * CASE + 29 * ( COUNT( * ) ) WHEN - 52 THEN NULL WHEN NULLIF ( COUNT( * ), + 76 ) THEN NULL ELSE - 4 DIV - 78 END THEN - 29 ELSE - 32 + - 12 DIV 32 END + ( COUNT( * ) ) AS col1
----
42
0

skipif mysql # not compatible
query II rowsort label-8402
SELECT ALL + 41 - - + COUNT ( + 63 ), - COUNT ( * ) * + 45 - - 12 + - CASE - COUNT ( * ) WHEN + 67 THEN 51 * - + 13 * - 67 * + 51 + - 30 + COALESCE ( 25, + 90 * - NULLIF ( + + CASE WHEN NOT - COUNT ( * ) IS NULL THEN - 85 END, 89 * - - 60 ) + - 83 * + - 8 ) WHEN - CAST ( - ( - - 33 ) AS INTEGER ) + + COALESCE ( - - ( 79 ), + - 12 * - 49 - 19 * 57, + 52 ) * CASE + 29 * ( COUNT ( * ) ) WHEN - 52 THEN NULL WHEN NULLIF ( COUNT ( * ), + 76 ) THEN NULL ELSE - 4 / - 78 END THEN - 29 ELSE - 32 + - 12 / 32 END + ( COUNT ( * ) ) AS col1
----
42
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8403
SELECT ALL - + COALESCE ( + 33, - 22 * - COALESCE ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ), + 99 ) + - + 14 - + 49 )
----
-33

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL - + COALESCE ( + 33, - 22 * - COALESCE ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), + 99 ) + - + 14 - + 49 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8404
SELECT ALL - CAST( + - 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL - CAST ( + - 51 AS INTEGER )
----
51

query I rowsort
SELECT 37 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT COUNT( * ) + - - 40 * - CASE + 36 WHEN MIN( DISTINCT + ( - 46 ) ) THEN - - COALESCE ( + - 32, + COUNT( * ) / + 86 + 22 * 82 / - MIN( 92 ) / 52 - 77, 51 - 78 ) WHEN - + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8406
SELECT COUNT ( * ) + - - 40 * - CASE + 36 WHEN MIN ( DISTINCT + ( - 46 ) ) THEN - - COALESCE ( + - 32, + COUNT ( * ) / + 86 + 22 * 82 / - MIN ( 92 ) / 52 - 77, 51 - 78 ) WHEN - + COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 34, + - 17 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT + COUNT( * ) * 2 + ( + + 33 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8408
SELECT + COUNT ( * ) * 2 + ( + + 33 ) AS col1
----
35

query II rowsort
SELECT ALL + 22 - 8, 13 AS col0
----
14
13

query I rowsort
SELECT 61 * + - 18 * + 24
----
-26352

query I rowsort
SELECT ALL 65 * + 18
----
1170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8412
SELECT DISTINCT 0 * - NULLIF ( + CAST( + 43 AS SIGNED ), - 40 + + 87 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT 0 * - NULLIF ( + CAST ( + 43 AS INTEGER ), - 40 + + 87 ) AS col0
----
0

query II rowsort
SELECT 93 * - 80 AS col0, + 8 AS col0
----
-7440
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8414
SELECT ALL - COUNT( - 62 ) + + 58 - - COALESCE ( + ( - 26 ), 43 + - - MIN( DISTINCT + 46 ) * + ( + - CAST( COUNT( * ) AS SIGNED ) ) ) - 95 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - COUNT ( - 62 ) + + 58 - - COALESCE ( + ( - 26 ), 43 + - - MIN ( DISTINCT + 46 ) * + ( + - CAST ( COUNT ( * ) AS INTEGER ) ) ) - 95 AS col2
----
-64

query I rowsort
SELECT 88 - + 68 col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8416
SELECT + MAX( ALL + + CAST( NULL AS SIGNED ) ) AS col2, 69 + 30 + + + CAST( COUNT( * ) AS SIGNED ) AS col1
----
NULL
100

skipif mysql # not compatible
query II rowsort label-8416
SELECT + MAX ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2, 69 + 30 + + + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
NULL
100

query I rowsort
SELECT - - ( + 48 ) AS col0
----
48

query I rowsort
SELECT DISTINCT - 30 * 87
----
-2610

query II rowsort
SELECT ( + 17 ) col0, 74 + - - ( - 5 ) AS col0
----
17
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL - - 99 + COALESCE ( MIN( - 42 ), 32 )
----
57

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL - - 99 + COALESCE ( MIN ( - 42 ), 32 )
----
57

query I rowsort
SELECT 57 - + 97 col2
----
-40

query I rowsort
SELECT DISTINCT + 64 + + - 86 + - + 76
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT - 4 / + - COALESCE ( + 20, ( + - COUNT( * ) ) ) * CASE 5 WHEN + - 43 * + 36 + + 85 - + - 11 * - 28 THEN + 34 END - - 11 + + COUNT( * ) / + + 5 * - 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT - 4 / + - COALESCE ( + 20, ( + - COUNT ( * ) ) ) * CASE 5 WHEN + - 43 * + 36 + + 85 - + - 11 * - 28 THEN + 34 END - - 11 + + COUNT ( * ) / + + 5 * - 12 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8424
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * + - 7 + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT - + CAST ( NULL AS REAL ) * + - 7 + + 58
----
NULL

query I rowsort
SELECT DISTINCT - + 57 - + - ( + + 67 ) + + 10 * + - 33 AS col0
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT COUNT( * ) * 27 - - 21
----
48

skipif mysql # not compatible
query I rowsort label-8426
SELECT COUNT ( * ) * 27 - - 21
----
48

query I rowsort
SELECT DISTINCT 20 * - 9 AS col1
----
-180

query I rowsort
SELECT 72 * 76 + + 95
----
5567

query I rowsort
SELECT 36 * + - 19
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT COUNT( 48 ) * - + 87 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-8430
SELECT COUNT ( 48 ) * - + 87 AS col1
----
-87

query I rowsort
SELECT ALL 19 * - - 83
----
1577

query II rowsort
SELECT 82, + 61 + - 61 AS col1
----
82
0

query I rowsort
SELECT ALL + ( 70 ) * - 66
----
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT 77 + 75 * - COUNT( * ) - + 96
----
-94

skipif mysql # not compatible
query I rowsort label-8434
SELECT 77 + 75 * - COUNT ( * ) - + 96
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL COUNT( * ) * - 74
----
-74

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL COUNT ( * ) * - 74
----
-74

query II rowsort
SELECT 81 AS col2, 90
----
81
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8437
SELECT DISTINCT 53 DIV + - 74
----
0

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT 53 / + - 74
----
0

query I rowsort
SELECT 65 * - 99 + + 50 - + ( - 41 ) AS col2
----
-6344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8439
SELECT CASE 71 WHEN CASE CASE - - 1 WHEN - COUNT( * ) THEN + - COALESCE ( + - NULLIF ( 20, + NULLIF ( + 21, 21 * - COUNT( * ) + 85 - + 83 * 60 * - 8 - - 34 * 66 * + COUNT( * ) ) * - 25 + + 58 ), + COUNT( DISTINCT 21 ), COUNT( * ) + COUNT( * ) + - 61 ) END WHEN + - 62 / 40 THEN + CAST( NULL AS SIGNED ) ELSE - COUNT( 1 ) * + 72 / 12 + - 41 / COUNT( * ) END THEN - 40 * 87 ELSE + COUNT( * ) END + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8439
SELECT CASE 71 WHEN CASE CASE - - 1 WHEN - COUNT ( * ) THEN + - COALESCE ( + - NULLIF ( 20, + NULLIF ( + 21, 21 * - COUNT ( * ) + 85 - + 83 * 60 * - 8 - - 34 * 66 * + COUNT ( * ) ) * - 25 + + 58 ), + COUNT ( DISTINCT 21 ), COUNT ( * ) + COUNT ( * ) + - 61 ) END WHEN + - 62 / 40 THEN + CAST ( NULL AS INTEGER ) ELSE - COUNT ( 1 ) * + 72 / 12 + - 41 / COUNT ( * ) END THEN - 40 * 87 ELSE + COUNT ( * ) END + COUNT ( * ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT CAST( NULL AS SIGNED ) - - 89 / + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT CAST ( NULL AS INTEGER ) - - 89 / + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL 67 * - - 33 - COUNT( * ) AS col2
----
2210

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL 67 * - - 33 - COUNT ( * ) AS col2
----
2210

query I rowsort
SELECT 3 + - + 77
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8443
SELECT COUNT( * ) - - ( + 17 ) AS col2, 94 * 59 AS col2
----
18
5546

skipif mysql # not compatible
query II rowsort label-8443
SELECT COUNT ( * ) - - ( + 17 ) AS col2, 94 * 59 AS col2
----
18
5546

query II rowsort
SELECT DISTINCT 68, - 75 col0
----
68
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT DISTINCT 89 + + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT 89 + + COUNT ( * )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8446
SELECT ALL - + 60 + - + 30 DIV - - SUM( DISTINCT 60 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL - + 60 + - + 30 / - - SUM ( DISTINCT 60 ) AS col2
----
-60

query I rowsort
SELECT ALL COALESCE ( - - 97, - 56, CASE + 8 WHEN + - 83 THEN + + 85 WHEN - 17 / 33 - 65 THEN NULL END + 9 + + 13 ) * + 1 + 86
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT 72 + + + 82 DIV + + 11 col0
----
79

skipif mysql # not compatible
query I rowsort label-8448
SELECT 72 + + + 82 / + + 11 col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8449
SELECT ALL CAST( 20 AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL CAST ( 20 AS INTEGER ) AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8450
SELECT ALL + COALESCE ( - - 72, + 93 * - 30 * + CAST( NULL AS SIGNED ) + COUNT( * ), - ( 19 ) ) - 91
----
-19

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL + COALESCE ( - - 72, + 93 * - 30 * + CAST ( NULL AS INTEGER ) + COUNT ( * ), - ( 19 ) ) - 91
----
-19

query I rowsort
SELECT + + 2 * + - 85 * - 59 AS col0
----
10030

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT - + 97 * - NULLIF ( ( - 54 ), + 91 + COUNT( * ) ) col0
----
-5238

skipif mysql # not compatible
query I rowsort label-8452
SELECT - + 97 * - NULLIF ( ( - 54 ), + 91 + COUNT ( * ) ) col0
----
-5238

query I rowsort
SELECT + 52 + 94 AS col0
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8454
SELECT - - 22 + - CAST( + 76 AS SIGNED ) + 78 - - 94 AS col0, + 90 AS col0
----
118
90

skipif mysql # not compatible
query II rowsort label-8454
SELECT - - 22 + - CAST ( + 76 AS INTEGER ) + 78 - - 94 AS col0, + 90 AS col0
----
118
90

query I rowsort
SELECT - + 47 + - + 67 col2
----
-114

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8456
SELECT DISTINCT + - 93 * + NULLIF ( - - 63, - 7 * + 79 + CAST( NULL AS DECIMAL ) + 38 * - 26 ) - - 50 AS col2
----
-5809

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT + - 93 * + NULLIF ( - - 63, - 7 * + 79 + CAST ( NULL AS REAL ) + 38 * - 26 ) - - 50 AS col2
----
-5809

query I rowsort
SELECT 45 * - 97 * + + 2 + + + 14 AS col2
----
-8716

onlyif mysql # DIV for integer division: 
query I rowsort label-8458
SELECT - 7 DIV + 19 * + 17
----
0

skipif mysql # not compatible
query I rowsort label-8458
SELECT - 7 / + 19 * + 17
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8459
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, - 20 + 50
----
NULL
30

skipif mysql # not compatible
query II rowsort label-8459
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - 20 + 50
----
NULL
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8460
SELECT + NULLIF ( - 51, 7 + - + 29 ), MIN( - 95 ) + + ( - 37 ) * - 51 * + 42 AS col1
----
-51
79159

skipif mysql # not compatible
query II rowsort label-8460
SELECT + NULLIF ( - 51, 7 + - + 29 ), MIN ( - 95 ) + + ( - 37 ) * - 51 * + 42 AS col1
----
-51
79159

query II rowsort
SELECT ALL + 98, + NULLIF ( - + 26, 19 ) - + 39 AS col1
----
98
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-8462
SELECT - COUNT( * ) * CASE + 61 WHEN - 83 THEN - 55 * + + 21 END col0, ( - 41 ) AS col1
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-8462
SELECT - COUNT ( * ) * CASE + 61 WHEN - 83 THEN - 55 * + + 21 END col0, ( - 41 ) AS col1
----
NULL
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT NULLIF ( + ( ( + - 37 ) ), + COUNT( * ) + + 11 )
----
-37

skipif mysql # not compatible
query I rowsort label-8463
SELECT NULLIF ( + ( ( + - 37 ) ), + COUNT ( * ) + + 11 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8464
SELECT CAST( NULL AS SIGNED ) * + 25 + 29 - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT CAST ( NULL AS INTEGER ) * + 25 + 29 - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT ALL 43 * - 52 * + 97 * - 40 + - 56 + + - 27 * COUNT( + + 58 )
----
8675597

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL 43 * - 52 * + 97 * - 40 + - 56 + + - 27 * COUNT ( + + 58 )
----
8675597

query I rowsort
SELECT - 78 + 22 * - + 83 AS col2
----
-1904

query II rowsort
SELECT DISTINCT + 3 AS col0, 54
----
3
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8468
SELECT + ( - COUNT( + 66 ) ) * - - 18 DIV + 6 + - + 76 AS col0, 86
----
-79
86

skipif mysql # not compatible
query II rowsort label-8468
SELECT + ( - COUNT ( + 66 ) ) * - - 18 / + 6 + - + 76 AS col0, 86
----
-79
86

query I rowsort
SELECT + 24 + - 85
----
-61

query I rowsort
SELECT + 0 + 2 + - 44 AS col2
----
-42

query II rowsort
SELECT - 25 AS col1, 38 + + 78 + - COALESCE ( 52, 64 + - 80 ) AS col1
----
-25
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8472
SELECT - ( + 25 ) DIV - - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-8472
SELECT - ( + 25 ) / - - COUNT ( * )
----
-25

query II rowsort
SELECT - 35, + 95 AS col0
----
-35
95

query I rowsort
SELECT ALL 78 + 70 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL + CASE SUM( 75 ) WHEN COUNT( * ) THEN + 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL + CASE SUM ( 75 ) WHEN COUNT ( * ) THEN + 75 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT + - ( - 56 ) / + NULLIF ( + MIN( + - 15 ), + 17 - + 74 ) * - CASE - 82 WHEN MAX( - 88 ) - + - 16 THEN NULL WHEN - - 8 * - - 66 + + 35 THEN 49 WHEN - 0 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT + - ( - 56 ) / + NULLIF ( + MIN ( + - 15 ), + 17 - + 74 ) * - CASE - 82 WHEN MAX ( - 88 ) - + - 16 THEN NULL WHEN - - 8 * - - 66 + + 35 THEN 49 WHEN - 0 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT MIN( - + 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-8477
SELECT MIN ( - + 31 ) AS col1
----
-31

query II rowsort
SELECT - 2 AS col2, 33 AS col1
----
-2
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8479
SELECT AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col2, 71 * - 35 * - MIN( ALL - - 62 ) AS col0
----
NULL
154070

skipif mysql # not compatible
query II rowsort label-8479
SELECT AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2, 71 * - 35 * - MIN ( ALL - - 62 ) AS col0
----
NULL
154070

query I rowsort
SELECT - - 31 - - ( 74 )
----
105

query I rowsort
SELECT + 97 * - 53 * + 27 AS col2
----
-138807

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8482
SELECT 35 AS col0, + 36, - CAST( NULL AS SIGNED ) AS col1
----
35
36
NULL

skipif mysql # not compatible
query III rowsort label-8482
SELECT 35 AS col0, + 36, - CAST ( NULL AS INTEGER ) AS col1
----
35
36
NULL

query I rowsort
SELECT + 41 + - ( + 55 )
----
-14

query II rowsort
SELECT ALL - 7 AS col0, 14
----
-7
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8485
SELECT + 55 + + 85 * + + 57 - 23 * + COUNT( * ) + + - 1 AS col2, + 40 AS col2
----
4876
40

skipif mysql # not compatible
query II rowsort label-8485
SELECT + 55 + + 85 * + + 57 - 23 * + COUNT ( * ) + + - 1 AS col2, + 40 AS col2
----
4876
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8486
SELECT - - 10, - SUM( ALL - 51 ) + COUNT( * ) AS col1
----
10
52

skipif mysql # not compatible
query II rowsort label-8486
SELECT - - 10, - SUM ( ALL - 51 ) + COUNT ( * ) AS col1
----
10
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL - MAX( ALL ( 32 ) ) * - 29
----
928

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL - MAX ( ALL ( 32 ) ) * - 29
----
928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8488
SELECT + + CAST( NULL AS SIGNED ) - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT + + CAST ( NULL AS INTEGER ) - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 65 * + + 30 AS col2
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT + COUNT( * ) * + 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8490
SELECT + COUNT ( * ) * + 27 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8491
SELECT COUNT( * ) * + COUNT( * ) + + COALESCE ( - + 3, - - 34, - 95 * - 45 + - ( + - CASE + MIN( CAST( 33 AS SIGNED ) ) WHEN + AVG ( DISTINCT + 98 ) THEN - + 31 DIV + COALESCE ( - COUNT( * ), 14 ) ELSE NULL END ) * + ( + - 16 ), - ( 87 ) + - 37 )
----
-2

skipif mysql # not compatible
query I rowsort label-8491
SELECT COUNT ( * ) * + COUNT ( * ) + + COALESCE ( - + 3, - - 34, - 95 * - 45 + - ( + - CASE + MIN ( CAST ( 33 AS INTEGER ) ) WHEN + AVG ( DISTINCT + 98 ) THEN - + 31 / + COALESCE ( - COUNT ( * ), 14 ) ELSE NULL END ) * + ( + - 16 ), - ( 87 ) + - 37 )
----
-2

query I rowsort
SELECT ALL + COALESCE ( - + 66, + 91 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT - CAST( - + 24 AS SIGNED ) * - CAST( 23 AS SIGNED )
----
-552

skipif mysql # not compatible
query I rowsort label-8493
SELECT - CAST ( - + 24 AS INTEGER ) * - CAST ( 23 AS INTEGER )
----
-552

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT ALL 71 DIV + - 24 + 64 - - 81 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL 71 / + - 24 + 64 - - 81 AS col0
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8495
SELECT ( + 59 ) AS col2, - COUNT( * ) * - - 61 * COUNT( * ) DIV 77 + + 31 * - 59 AS col0
----
59
-1829

skipif mysql # not compatible
query II rowsort label-8495
SELECT ( + 59 ) AS col2, - COUNT ( * ) * - - 61 * COUNT ( * ) / 77 + + 31 * - 59 AS col0
----
59
-1829

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8496
SELECT ALL 42 DIV + + 89 AS col0, COUNT( * ) + - - 61 - - 68 * COALESCE ( + 33, + 46 ) * 49
----
0
110018

skipif mysql # not compatible
query II rowsort label-8496
SELECT ALL 42 / + + 89 AS col0, COUNT ( * ) + - - 61 - - 68 * COALESCE ( + 33, + 46 ) * 49
----
0
110018

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT - 54 * - MIN( DISTINCT + 18 ) col2
----
972

skipif mysql # not compatible
query I rowsort label-8497
SELECT - 54 * - MIN ( DISTINCT + 18 ) col2
----
972

query I rowsort
SELECT + 58 * 44 + + 22
----
2574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8499
SELECT ALL + CASE + - 45 WHEN + ( + MIN( DISTINCT - 30 ) ) THEN 48 * + 53 - + 73 * - + CASE + 43 WHEN - + MAX( + + 9 ) * 35 + - - 21 * + 52 + + 61 * + - 34 THEN - 4 END WHEN 15 * - + 29 * CAST( NULL AS SIGNED ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL + CASE + - 45 WHEN + ( + MIN ( DISTINCT - 30 ) ) THEN 48 * + 53 - + 73 * - + CASE + 43 WHEN - + MAX ( + + 9 ) * 35 + - - 21 * + 52 + + 61 * + - 34 THEN - 4 END WHEN 15 * - + 29 * CAST ( NULL AS INTEGER ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8500
SELECT ( + CAST( NULL AS SIGNED ) ) AS col0, + SUM( + - 73 )
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-8500
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col0, + SUM ( + - 73 )
----
NULL
-73

query I rowsort
SELECT ALL 8 * + + 95 + 1 * - 74 + + 77 * + - 23 * + 9 + 35 + - 69 + - 1 * COALESCE ( - + 80, - - 18 )
----
-15207

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT ( - + MIN( DISTINCT + 16 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-8502
SELECT ( - + MIN ( DISTINCT + 16 ) )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8503
SELECT ALL - COUNT( * ) DIV + 19 * + - 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL - COUNT ( * ) / + 19 * + - 84 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8504
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) + - - 7 + NULLIF ( - + ( 0 ), - ( + 41 ) ) DIV - + 80 * - 46 * + + 40 * - - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) + - - 7 + NULLIF ( - + ( 0 ), - ( + 41 ) ) / - + 80 * - 46 * + + 40 * - - COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL + 13 * + + MAX( ALL 69 ) + - 30 AS col2
----
867

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL + 13 * + + MAX ( ALL 69 ) + - 30 AS col2
----
867

query I rowsort
SELECT - 82 * 37 * 52 * NULLIF ( + + 31, + - 49 + ( NULLIF ( 22, - 31 ) ) - - 2 * + 26 ) - 95 AS col2
----
-4890903

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ALL - ( + - 43 ) * + 11 + - + 13 - + 96 * + MAX( - 7 ) + + 75 AS col2
----
1207

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL - ( + - 43 ) * + 11 + - + 13 - + 96 * + MAX ( - 7 ) + + 75 AS col2
----
1207

onlyif mysql # aggregate syntax: 
query II rowsort label-8508
SELECT ALL + 41 - - COUNT( * ), + COUNT( * ) AS col1
----
42
1

skipif mysql # not compatible
query II rowsort label-8508
SELECT ALL + 41 - - COUNT ( * ), + COUNT ( * ) AS col1
----
42
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8509
SELECT 97 + 51 + + CAST( - - 78 AS SIGNED ) + + 72 * + 65 AS col1
----
4906

skipif mysql # not compatible
query I rowsort label-8509
SELECT 97 + 51 + + CAST ( - - 78 AS INTEGER ) + + 72 * + 65 AS col1
----
4906

query I rowsort
SELECT - 68 * + 72
----
-4896

query I rowsort
SELECT - - 56 col2
----
56

query I rowsort
SELECT - COALESCE ( + 94, - 9, - 69 ) + - 76 * + 57 AS col2
----
-4426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT + 34 * + + 82 - + CAST( + + 81 AS SIGNED ) + - 37
----
2670

skipif mysql # not compatible
query I rowsort label-8513
SELECT + 34 * + + 82 - + CAST ( + + 81 AS INTEGER ) + - 37
----
2670

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT COUNT( * ) + 1 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8514
SELECT COUNT ( * ) + 1 AS col0
----
2

query II rowsort
SELECT + 9 + + 54 AS col1, 19
----
63
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT - 47 * + COUNT( ( 22 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT - 47 * + COUNT ( ( 22 ) )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT DISTINCT + 75 * + CAST( + 2 AS SIGNED )
----
150

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT + 75 * + CAST ( + 2 AS INTEGER )
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8518
SELECT DISTINCT + 31 DIV + COALESCE ( - 40, + + ( COUNT( ALL - - 55 ) ), - + 32 ) * - 56 + - - 11 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8518
SELECT DISTINCT + 31 / + COALESCE ( - 40, + + ( COUNT ( ALL - - 55 ) ), - + 32 ) * - 56 + - - 11 AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8519
SELECT + ( + CAST( NULL AS SIGNED ) ) + - ( COUNT( * ) ) + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8519
SELECT + ( + CAST ( NULL AS INTEGER ) ) + - ( COUNT ( * ) ) + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8520
SELECT 52 DIV - - 60 col1
----
0

skipif mysql # not compatible
query I rowsort label-8520
SELECT 52 / - - 60 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8521
SELECT COUNT( DISTINCT + 47 ) DIV - + COUNT( DISTINCT + + 10 ) + + + 87
----
86

skipif mysql # not compatible
query I rowsort label-8521
SELECT COUNT ( DISTINCT + 47 ) / - + COUNT ( DISTINCT + + 10 ) + + + 87
----
86

query I rowsort
SELECT DISTINCT - 59 * - 99 AS col1
----
5841

query I rowsort
SELECT ALL + ( - 61 ) + - - 3 AS col0
----
-58

query II rowsort
SELECT 79 AS col0, - 39
----
79
-39

query II rowsort
SELECT + 52 AS col0, + 26 AS col2
----
52
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8526
SELECT 70 * + + CAST( NULL AS SIGNED ) + + + 80 - - 43 + - COUNT( * ) + AVG ( ( - 28 ) ) * + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT 70 * + + CAST ( NULL AS INTEGER ) + + + 80 - - 43 + - COUNT ( * ) + AVG ( ( - 28 ) ) * + - 57
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8527
SELECT 78 col1, COUNT( * )
----
78
1

skipif mysql # not compatible
query II rowsort label-8527
SELECT 78 col1, COUNT ( * )
----
78
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8528
SELECT ALL SUM( ALL + + 92 ) + - + 88 + 14, + 14 AS col1
----
18
14

skipif mysql # not compatible
query II rowsort label-8528
SELECT ALL SUM ( ALL + + 92 ) + - + 88 + 14, + 14 AS col1
----
18
14

query II rowsort
SELECT DISTINCT - 28 AS col1, 23 * - - 20 AS col1
----
-28
460

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT DISTINCT 88 * 37 * - COUNT( * ) * - - 13 * - 88
----
3724864

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT 88 * 37 * - COUNT ( * ) * - - 13 * - 88
----
3724864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8531
SELECT - 83 DIV - + COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8531
SELECT - 83 / - + COUNT ( * ) AS col2
----
83

query I rowsort
SELECT 9 * + + 3
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT + COUNT( + 89 ) + 88 * + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8533
SELECT + COUNT ( + 89 ) + 88 * + + COUNT ( * )
----
89

query I rowsort
SELECT ALL - ( - 52 ) AS col2
----
52

query I rowsort
SELECT CASE - 38 WHEN - 93 THEN - 26 * - 0 WHEN + 97 - - 91 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT DISTINCT SUM( DISTINCT - 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT SUM ( DISTINCT - 67 ) AS col2
----
-67

query I rowsort
SELECT ALL ( 52 ) AS col0
----
52

query I rowsort
SELECT 60 - - 29 AS col0
----
89

query I rowsort
SELECT 6 - + + 59 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL - ( - MIN( + 60 ) ) * + 87
----
5220

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL - ( - MIN ( + 60 ) ) * + 87
----
5220

onlyif mysql # aggregate syntax: 
query II rowsort label-8541
SELECT COUNT( * ) * COALESCE ( 31, - 58 ) + + + 5 + COUNT( * ) AS col0, - 40 AS col2
----
37
-40

skipif mysql # not compatible
query II rowsort label-8541
SELECT COUNT ( * ) * COALESCE ( 31, - 58 ) + + + 5 + COUNT ( * ) AS col0, - 40 AS col2
----
37
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT + COUNT( 22 )
----
1

skipif mysql # not compatible
query I rowsort label-8542
SELECT + COUNT ( 22 )
----
1

query I rowsort
SELECT 26 + + 6 AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8544
SELECT ALL - 46 + + MAX( DISTINCT - - 4 ) + - CAST( + + COUNT( 35 ) AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL - 46 + + MAX ( DISTINCT - - 4 ) + - CAST ( + + COUNT ( 35 ) AS INTEGER )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT MAX( - 38 ) - - 48
----
10

skipif mysql # not compatible
query I rowsort label-8545
SELECT MAX ( - 38 ) - - 48
----
10

query I rowsort
SELECT DISTINCT - 55 + - 57
----
-112

query I rowsort
SELECT DISTINCT + 1 + 87
----
88

query I rowsort
SELECT DISTINCT CASE - 43 WHEN + + 58 THEN 85 ELSE NULL END + 31
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT ALL CAST( NULL AS SIGNED ) * - 81 + + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL CAST ( NULL AS INTEGER ) * - 81 + + 89 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8550
SELECT COALESCE ( - + ( + 84 ), + CAST( NULL AS SIGNED ) + - 40 + - 73 + - COUNT( * ) + - ( MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) ) * - 98 * + 61 * + + COUNT( * ) + + 67 + - 50 DIV - CASE - + 88 WHEN COUNT( * ) + 16 + 99 THEN + COUNT( * ) WHEN + + 55 DIV + COUNT( * ) * + + 6 + + + 36 * + - CAST( NULL AS SIGNED ) + 6 THEN - CAST( NULL AS SIGNED ) + - 42 + COALESCE ( + 52, - 39, 94 * - 79 + - COUNT( * ) ) + - 48 DIV - - CAST( NULL AS SIGNED ) + 77 * - MIN( DISTINCT 93 ) + + COALESCE ( 81, - 70 * 87 ) END + - 17 * + COUNT( * ) ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-8550
SELECT COALESCE ( - + ( + 84 ), + CAST ( NULL AS INTEGER ) + - 40 + - 73 + - COUNT ( * ) + - ( MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ) * - 98 * + 61 * + + COUNT ( * ) + + 67 + - 50 / - CASE - + 88 WHEN COUNT ( * ) + 16 + 99 THEN + COUNT ( * ) WHEN + + 55 / + COUNT ( * ) * + + 6 + + + 36 * + - CAST ( NULL AS INTEGER ) + 6 THEN - CAST ( NULL AS INTEGER ) + - 42 + COALESCE ( + 52, - 39, 94 * - 79 + - COUNT ( * ) ) + - 48 / - - CAST ( NULL AS INTEGER ) + 77 * - MIN ( DISTINCT 93 ) + + COALESCE ( 81, - 70 * 87 ) END + - 17 * + COUNT ( * ) ) col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT + ( COUNT( * ) ) * 57 - + 4 + + 79
----
132

skipif mysql # not compatible
query I rowsort label-8551
SELECT + ( COUNT ( * ) ) * 57 - + 4 + + 79
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-8552
SELECT ALL 89 DIV 16 DIV 17 DIV - - 10 col1
----
0

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL 89 / 16 / 17 / - - 10 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8553
SELECT COUNT( * ) DIV 34 AS col1, + 9 AS col2
----
0
9

skipif mysql # not compatible
query II rowsort label-8553
SELECT COUNT ( * ) / 34 AS col1, + 9 AS col2
----
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL + 74 * - - 63 * + + MIN( 5 ) - + ( + + 48 ) * 71 - 96 + - + ( + - 89 ) - + COUNT( * ) * CASE - 99 WHEN - COUNT( * ) THEN NULL WHEN ( COUNT( 55 ) ) THEN NULL ELSE 47 END + + 60
----
19908

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL + 74 * - - 63 * + + MIN ( 5 ) - + ( + + 48 ) * 71 - 96 + - + ( + - 89 ) - + COUNT ( * ) * CASE - 99 WHEN - COUNT ( * ) THEN NULL WHEN ( COUNT ( 55 ) ) THEN NULL ELSE 47 END + + 60
----
19908

onlyif mysql # aggregate syntax: 
query II rowsort label-8555
SELECT ALL + 11 * + 43 * + MIN( ALL + 73 ) AS col1, - NULLIF ( + - 87, - ( + + 43 ) - - + ( - 51 ) + + 67 * - - COUNT( - - 18 ) ) * 54 + - + COUNT( * ) + + 93
----
34529
4790

skipif mysql # not compatible
query II rowsort label-8555
SELECT ALL + 11 * + 43 * + MIN ( ALL + 73 ) AS col1, - NULLIF ( + - 87, - ( + + 43 ) - - + ( - 51 ) + + 67 * - - COUNT ( - - 18 ) ) * 54 + - + COUNT ( * ) + + 93
----
34529
4790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8556
SELECT COUNT( * ) DIV - + 5, 53 + + MIN( - - 59 ) + 1 * CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8556
SELECT COUNT ( * ) / - + 5, 53 + + MIN ( - - 59 ) + 1 * CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8557
SELECT 6 * 6 * + ( COALESCE ( + - 64, 72 * CASE 10 WHEN - CAST( NULL AS SIGNED ) THEN + + ( - + 8 ) END + COUNT( * ), + 86 ) ) AS col2
----
-2304

skipif mysql # not compatible
query I rowsort label-8557
SELECT 6 * 6 * + ( COALESCE ( + - 64, 72 * CASE 10 WHEN - CAST ( NULL AS INTEGER ) THEN + + ( - + 8 ) END + COUNT ( * ), + 86 ) ) AS col2
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT MAX( 39 ) col1
----
39

skipif mysql # not compatible
query I rowsort label-8558
SELECT MAX ( 39 ) col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT ALL 55 * - 16 * + CASE - 8 WHEN + + 81 THEN NULL WHEN + 81 THEN + - ( 5 ) * - - CASE - 34 WHEN AVG ( - 71 ) + - + 60 THEN 39 WHEN + - COUNT( * ) THEN NULL END * + 95 ELSE NULL END - - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL 55 * - 16 * + CASE - 8 WHEN + + 81 THEN NULL WHEN + 81 THEN + - ( 5 ) * - - CASE - 34 WHEN AVG ( - 71 ) + - + 60 THEN 39 WHEN + - COUNT ( * ) THEN NULL END * + 95 ELSE NULL END - - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT + MAX( + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-8560
SELECT + MAX ( + 79 )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8561
SELECT + + COUNT( * ) * 4 - 44 * - 46, + 1 + - 32 * - - 33 * + - 74 AS col0
----
2028
78145

skipif mysql # not compatible
query II rowsort label-8561
SELECT + + COUNT ( * ) * 4 - 44 * - 46, + 1 + - 32 * - - 33 * + - 74 AS col0
----
2028
78145

query I rowsort
SELECT + - ( + ( - 99 ) ) + + 6
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT ( + COUNT( DISTINCT + + 87 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8563
SELECT ( + COUNT ( DISTINCT + + 87 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT ( - CASE - 1 WHEN - - 49 THEN - + CAST( + 70 AS SIGNED ) / + COUNT( * ) * MAX( ALL + 1 ) + + MAX( DISTINCT ( - - 55 ) ) * - 10 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT ( - CASE - 1 WHEN - - 49 THEN - + CAST ( + 70 AS INTEGER ) / + COUNT ( * ) * MAX ( ALL + 1 ) + + MAX ( DISTINCT ( - - 55 ) ) * - 10 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT 69 * + 86 * - 26 + ( 12 ) + + 46 + 56 * 35 * - MAX( + 17 ) * 44 AS col1
----
-1620306

skipif mysql # not compatible
query I rowsort label-8565
SELECT 69 * + 86 * - 26 + ( 12 ) + + 46 + 56 * 35 * - MAX ( + 17 ) * 44 AS col1
----
-1620306

query I rowsort
SELECT ALL 47 * - 9 * - 80 AS col1
----
33840

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT SUM( + 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8567
SELECT SUM ( + 52 ) AS col1
----
52

query I rowsort
SELECT ALL + 97 * NULLIF ( - 37, - 15 )
----
-3589

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT - MAX( - + 77 ) + 0 + - 96 * + COUNT( * ) * - 21 - COUNT( * ) AS col0
----
2092

skipif mysql # not compatible
query I rowsort label-8569
SELECT - MAX ( - + 77 ) + 0 + - 96 * + COUNT ( * ) * - 21 - COUNT ( * ) AS col0
----
2092

query I rowsort
SELECT + - 17 + - 90 AS col2
----
-107

query II rowsort
SELECT ALL - 6 * - 78 AS col1, ( + + 84 )
----
468
84

query II rowsort
SELECT + + 42 + 95 AS col0, 45
----
137
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8573
SELECT - + 37 - + 53 AS col1, - 93 + - MAX( + 3 ) * + - 87
----
-90
168

skipif mysql # not compatible
query II rowsort label-8573
SELECT - + 37 - + 53 AS col1, - 93 + - MAX ( + 3 ) * + - 87
----
-90
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8574
SELECT + 19 DIV - 39 AS col2, COUNT( * ) + - - 34
----
0
35

skipif mysql # not compatible
query II rowsort label-8574
SELECT + 19 / - 39 AS col2, COUNT ( * ) + - - 34
----
0
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT + - 67 + CASE + - 6 WHEN + COUNT( * ) THEN + 31 - + COUNT( * ) / ( 76 ) / + ( 35 ) WHEN 59 + 28 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT + - 67 + CASE + - 6 WHEN + COUNT ( * ) THEN + 31 - + COUNT ( * ) / ( 76 ) / + ( 35 ) WHEN 59 + 28 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT DISTINCT COALESCE ( - COUNT( * ), - 96 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT COALESCE ( - COUNT ( * ), - 96 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8577
SELECT ALL 20 + - - 99 + 74 DIV + COUNT( * ) - - 22 * - 13 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL 20 + - - 99 + 74 / + COUNT ( * ) - - 22 * - 13 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL NULLIF ( + + COUNT( * ), - 40 * + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL NULLIF ( + + COUNT ( * ), - 40 * + 19 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8579
SELECT - 32 AS col2, CASE - + AVG ( ALL - 40 ) WHEN + 79 + + 17 + + 94 THEN + ( + - COUNT( * ) ) WHEN + + 57 THEN + 61 END AS col2
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-8579
SELECT - 32 AS col2, CASE - + AVG ( ALL - 40 ) WHEN + 79 + + 17 + + 94 THEN + ( + - COUNT ( * ) ) WHEN + + 57 THEN + 61 END AS col2
----
-32
NULL

query I rowsort
SELECT ALL + 14 + + 4 AS col1
----
18

query I rowsort
SELECT ALL - 42 * + 21 AS col0
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT - COUNT( * ) + 51 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8582
SELECT - COUNT ( * ) + 51 AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8583
SELECT - CAST( CASE - 41 WHEN + + 10 THEN - 94 + + 44 END AS SIGNED ) + - - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT - CAST ( CASE - 41 WHEN + + 10 THEN - 94 + + 44 END AS INTEGER ) + - - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT DISTINCT + 70 - + NULLIF ( SUM( - 79 ), - 26 ) AS col2
----
149

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT + 70 - + NULLIF ( SUM ( - 79 ), - 26 ) AS col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT - MAX( ALL 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-8585
SELECT - MAX ( ALL 26 )
----
-26

query II rowsort
SELECT + 6 AS col0, 16 AS col0
----
6
16

query I rowsort
SELECT DISTINCT + 25 * - 32
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT DISTINCT CASE - + 28 WHEN + COUNT( * ) * - - 15 THEN + + COUNT( DISTINCT - 79 ) WHEN + 55 - 59 THEN NULL END / 1 - - 71 + COUNT( - 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT CASE - + 28 WHEN + COUNT ( * ) * - - 15 THEN + + COUNT ( DISTINCT - 79 ) WHEN + 55 - 59 THEN NULL END / 1 - - 71 + COUNT ( - 81 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8589
SELECT - 70 DIV 82 + 69 AS col1, ( + + ( 66 ) )
----
69
66

skipif mysql # not compatible
query II rowsort label-8589
SELECT - 70 / 82 + 69 AS col1, ( + + ( 66 ) )
----
69
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8590
SELECT - ( + 44 ) DIV + - 11 AS col1, COALESCE ( - COUNT( * ), - 16 - + + 4 + - 77 ) * + + CASE + - 89 WHEN + 20 + + COUNT( * ) + + 99 + + + 63 THEN + 90 + MAX( DISTINCT + 4 ) + - 24 - CASE + 84 WHEN + - COUNT( * ) THEN NULL WHEN + 52 + 82 THEN - + 31 * - + 99 DIV 12 WHEN + 69 THEN NULL END + + 94 * + COUNT( * ) + - MAX( DISTINCT + 20 ) ELSE - - COUNT( * ) * + 1 * - + COUNT( * ) END
----
4
1

skipif mysql # not compatible
query II rowsort label-8590
SELECT - ( + 44 ) / + - 11 AS col1, COALESCE ( - COUNT ( * ), - 16 - + + 4 + - 77 ) * + + CASE + - 89 WHEN + 20 + + COUNT ( * ) + + 99 + + + 63 THEN + 90 + MAX ( DISTINCT + 4 ) + - 24 - CASE + 84 WHEN + - COUNT ( * ) THEN NULL WHEN + 52 + 82 THEN - + 31 * - + 99 / 12 WHEN + 69 THEN NULL END + + 94 * + COUNT ( * ) + - MAX ( DISTINCT + 20 ) ELSE - - COUNT ( * ) * + 1 * - + COUNT ( * ) END
----
4
1

query I rowsort
SELECT + 94 * + 95 AS col2
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + COUNT( * ) + + + 35
----
36

skipif mysql # not compatible
query I rowsort label-8592
SELECT + COUNT ( * ) + + + 35
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-8593
SELECT + NULLIF ( - 29, - 92 ), - 5 * 1 DIV - - 21 * + 78 DIV 44 AS col1
----
-29
0

skipif mysql # not compatible
query II rowsort label-8593
SELECT + NULLIF ( - 29, - 92 ), - 5 * 1 / - - 21 * + 78 / 44 AS col1
----
-29
0

query I rowsort
SELECT DISTINCT - 20 * 34 * + ( + 99 ) AS col1
----
-67320

query I rowsort
SELECT DISTINCT + + 6 * 19 + - 71 * - + 97 - - - ( - ( 79 ) ) AS col2
----
7080

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT ALL + CASE - - 49 WHEN - ( 66 ) - - 91 + - + 97 THEN + 41 WHEN - + 23 THEN - - COUNT( DISTINCT - 4 ) * + 55 + - + 81 + + 3 * + 71 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL + CASE - - 49 WHEN - ( 66 ) - - 91 + - + 97 THEN + 41 WHEN - + 23 THEN - - COUNT ( DISTINCT - 4 ) * + 55 + - + 81 + + 3 * + 71 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT ALL 94 * + COUNT( * ) + + 91 * + 69
----
6373

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL 94 * + COUNT ( * ) + + 91 * + 69
----
6373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8598
SELECT + COALESCE ( ( + 56 ), - 79 * + + MAX( ALL + CAST( NULL AS SIGNED ) ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8598
SELECT + COALESCE ( ( + 56 ), - 79 * + + MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) AS col2
----
56

query I rowsort
SELECT DISTINCT - 68 * - 96
----
6528

onlyif mysql # aggregate syntax: 
query II rowsort label-8600
SELECT 0 col1, 89 - - 5 * + COUNT( * )
----
0
94

skipif mysql # not compatible
query II rowsort label-8600
SELECT 0 col1, 89 - - 5 * + COUNT ( * )
----
0
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8601
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col1, + 52
----
NULL
52

skipif mysql # not compatible
query II rowsort label-8601
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1, + 52
----
NULL
52

query I rowsort
SELECT + ( + - 16 ) * - + 86
----
1376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8603
SELECT + 77 + + + 19 + + + COUNT( * ) * - - COUNT( * ) * - ( + - 24 ) DIV - - COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-8603
SELECT + 77 + + + 19 + + + COUNT ( * ) * - - COUNT ( * ) * - ( + - 24 ) / - - COUNT ( * )
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8604
SELECT - - 20, + 92 + + 58 / - ( + + CAST( NULL AS SIGNED ) ) * ( COUNT( * ) ) col0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-8604
SELECT - - 20, + 92 + + 58 / - ( + + CAST ( NULL AS INTEGER ) ) * ( COUNT ( * ) ) col0
----
20
NULL

query I rowsort
SELECT DISTINCT 65 * - + 5 AS col1
----
-325

query I rowsort
SELECT DISTINCT + ( - + 95 )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-8607
SELECT DISTINCT 60 * + + 23 + - - NULLIF ( + COALESCE ( + - 83, 45 ), 48 ) + - 9 DIV 19 + - - 83
----
1380

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT 60 * + + 23 + - - NULLIF ( + COALESCE ( + - 83, 45 ), 48 ) + - 9 / 19 + - - 83
----
1380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8608
SELECT ALL COUNT( * ), CAST( ( 66 ) AS SIGNED ) AS col1
----
1
66

skipif mysql # not compatible
query II rowsort label-8608
SELECT ALL COUNT ( * ), CAST ( ( 66 ) AS INTEGER ) AS col1
----
1
66

query I rowsort
SELECT DISTINCT + - 64 + - 66 - - + 87
----
-43

query II rowsort
SELECT DISTINCT 31, + 45 AS col0
----
31
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT - CAST( NULL AS SIGNED ) * 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT - CAST ( NULL AS INTEGER ) * 81 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8612
SELECT ALL 14 * COALESCE ( + 23, - ( - - 91 ) DIV - 70 ) * 35 AS col0
----
11270

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL 14 * COALESCE ( + 23, - ( - - 91 ) / - 70 ) * 35 AS col0
----
11270

query I rowsort
SELECT + 78 + - + 77 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8614
SELECT + CAST( 41 AS SIGNED ) + 55
----
96

skipif mysql # not compatible
query I rowsort label-8614
SELECT + CAST ( 41 AS INTEGER ) + 55
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8615
SELECT - 60 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-8615
SELECT - 60 / 75
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8616
SELECT + CAST( 14 AS SIGNED ) * - 53 * + MIN( ALL + 62 ) AS col2
----
-46004

skipif mysql # not compatible
query I rowsort label-8616
SELECT + CAST ( 14 AS INTEGER ) * - 53 * + MIN ( ALL + 62 ) AS col2
----
-46004

query I rowsort
SELECT ALL 78 * - 23
----
-1794

onlyif mysql # aggregate syntax: 
query II rowsort label-8618
SELECT 94, COUNT( ALL 97 ) AS col2
----
94
1

skipif mysql # not compatible
query II rowsort label-8618
SELECT 94, COUNT ( ALL 97 ) AS col2
----
94
1

query II rowsort
SELECT DISTINCT 53, 18 AS col2
----
53
18

query I rowsort
SELECT 12 * 66 * - 36
----
-28512

onlyif mysql # aggregate syntax: 
query II rowsort label-8621
SELECT 15 + - + COUNT( + + 16 ) + - 34 AS col0, + 50
----
-20
50

skipif mysql # not compatible
query II rowsort label-8621
SELECT 15 + - + COUNT ( + + 16 ) + - 34 AS col0, + 50
----
-20
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8622
SELECT - 63 AS col0, COUNT( * ) AS col1
----
-63
1

skipif mysql # not compatible
query II rowsort label-8622
SELECT - 63 AS col0, COUNT ( * ) AS col1
----
-63
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT + COUNT( 87 ) * - 32 * - - 96 + + + COUNT( * ) col2
----
-3071

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT + COUNT ( 87 ) * - 32 * - - 96 + + + COUNT ( * ) col2
----
-3071

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8624
SELECT - COUNT( * ) * 98 + + 10 + 72 DIV + 61
----
-87

skipif mysql # not compatible
query I rowsort label-8624
SELECT - COUNT ( * ) * 98 + + 10 + 72 / + 61
----
-87

query I rowsort
SELECT 12 * - - 69 * 37 col2
----
30636

query I rowsort
SELECT ALL - 22 + 26 * - - 31 * + 45
----
36248

onlyif mysql # DIV for integer division: 
query I rowsort label-8627
SELECT ALL + - 42 + - - 73 + + 17 + - 6 DIV - 36
----
48

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL + - 42 + - - 73 + + 17 + - 6 / - 36
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT 86 * - COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-8628
SELECT 86 * - COUNT ( * ) AS col0
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8629
SELECT ALL + 30 * + 89 DIV - COUNT( * ) AS col1
----
-2670

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL + 30 * + 89 / - COUNT ( * ) AS col1
----
-2670

query II rowsort
SELECT ALL - 45 AS col2, 65 + 62 * 18 AS col1
----
-45
1181

query II rowsort
SELECT 96 AS col1, 38
----
96
38

onlyif mysql # aggregate syntax: 
query II rowsort label-8632
SELECT ALL - - 51 AS col1, - CASE - + 26 WHEN - + 17 THEN NULL ELSE - 7 + - + COALESCE ( - + 81, - 14 + + SUM( ALL 80 ) ) END AS col0
----
51
-74

skipif mysql # not compatible
query II rowsort label-8632
SELECT ALL - - 51 AS col1, - CASE - + 26 WHEN - + 17 THEN NULL ELSE - 7 + - + COALESCE ( - + 81, - 14 + + SUM ( ALL 80 ) ) END AS col0
----
51
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT - 39 + + COUNT( * ) + - + 18 * - - 6
----
-146

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT - 39 + + COUNT ( * ) + - + 18 * - - 6
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT ALL + 81 + + 92 + - ( 46 ) DIV - + 96 * 55 + ( + + 98 ) AS col1
----
271

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL + 81 + + 92 + - ( 46 ) / - + 96 * 55 + ( + + 98 ) AS col1
----
271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8635
SELECT - + COUNT( * ) * + + 25 + 23 - + 78 * 76 + + 68 + + - 72 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT - + COUNT ( * ) * + + 25 + 23 - + 78 * 76 + + 68 + + - 72 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT CASE + - CAST( NULL AS SIGNED ) WHEN 70 + - 92 * - 41 * + NULLIF ( - 53, + AVG ( + 59 ) ) / 43 + - 85 THEN + 91 WHEN + 51 THEN NULL WHEN - - 77 THEN NULL WHEN - 73 * - + 43 + 35 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT CASE + - CAST ( NULL AS INTEGER ) WHEN 70 + - 92 * - 41 * + NULLIF ( - 53, + AVG ( + 59 ) ) / 43 + - 85 THEN + 91 WHEN + 51 THEN NULL WHEN - - 77 THEN NULL WHEN - 73 * - + 43 + 35 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT - 79 + CASE + AVG ( DISTINCT + - 53 ) WHEN - - 80 * + 6 THEN NULL WHEN + 29 - + 1 / 69 THEN NULL ELSE - 24 - 27 + + 7 + + + NULLIF ( + 35, + 74 + + + COUNT( * ) ) END + - 12 + - 70 * + 59 * - - 80 AS col2
----
-330500

skipif mysql # not compatible
query I rowsort label-8637
SELECT - 79 + CASE + AVG ( DISTINCT + - 53 ) WHEN - - 80 * + 6 THEN NULL WHEN + 29 - + 1 / 69 THEN NULL ELSE - 24 - 27 + + 7 + + + NULLIF ( + 35, + 74 + + + COUNT ( * ) ) END + - 12 + - 70 * + 59 * - - 80 AS col2
----
-330500

query II rowsort
SELECT + 6 AS col2, + 60 + 9 AS col2
----
6
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8639
SELECT + 62 * COUNT( * ) DIV - 50 + - COALESCE ( - 57, 63 ) + - 7 + + + 76 + + - 91 * + ( COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-8639
SELECT + 62 * COUNT ( * ) / - 50 + - COALESCE ( - 57, 63 ) + - 7 + + + 76 + + - 91 * + ( COUNT ( * ) )
----
34

query I rowsort
SELECT + NULLIF ( - 76, - 20 ) * 40
----
-3040

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT DISTINCT - - 33 DIV - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT - - 33 / - 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL + - MIN( 20 ) + - + 93
----
-113

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL + - MIN ( 20 ) + - + 93
----
-113

query I rowsort
SELECT DISTINCT 54 * - COALESCE ( ( - 71 ), - 3 )
----
3834

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT + 66 * - 68 + + MAX( ALL 73 ) * + + COUNT( * )
----
-4415

skipif mysql # not compatible
query I rowsort label-8644
SELECT + 66 * - 68 + + MAX ( ALL 73 ) * + + COUNT ( * )
----
-4415

onlyif mysql # aggregate syntax: 
query II rowsort label-8645
SELECT ALL 36, - COUNT( * ) AS col2
----
36
-1

skipif mysql # not compatible
query II rowsort label-8645
SELECT ALL 36, - COUNT ( * ) AS col2
----
36
-1

query II rowsort
SELECT - 47 AS col1, 83 * - - 61
----
-47
5063

query I rowsort
SELECT DISTINCT + - 45 * 89 + - 46
----
-4051

query I rowsort
SELECT ALL - - 82 - - 74 AS col2
----
156

query I rowsort
SELECT DISTINCT 31 - + 1 * ( - 25 ) AS col0
----
56

query I rowsort
SELECT DISTINCT - 70 - - 43 AS col1
----
-27

query I rowsort
SELECT ALL ( - ( - 26 ) ) * - 61 AS col0
----
-1586

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT 15 + + SUM( 56 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8652
SELECT 15 + + SUM ( 56 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT ALL - 52 * + COALESCE ( + 93, - COUNT( * ) ) AS col2
----
-4836

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL - 52 * + COALESCE ( + 93, - COUNT ( * ) ) AS col2
----
-4836

query III rowsort
SELECT 22 * + 46, - 6 AS col0, 51 * 67 + - - 67 AS col1
----
1012
-6
3484

query I rowsort
SELECT ALL 24 * - 66 * - - 34
----
-53856

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT DISTINCT 59 * - - COUNT( * ) * - + 67
----
-3953

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT 59 * - - COUNT ( * ) * - + 67
----
-3953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8657
SELECT 12 + - - CAST( + - 22 AS SIGNED ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8657
SELECT 12 + - - CAST ( + - 22 AS INTEGER ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT 47 * + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8658
SELECT 47 * + COUNT ( * ) AS col1
----
47

query I rowsort
SELECT 50 + + 28 + + + 32 AS col0
----
110

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8660
SELECT DISTINCT CASE + - 17 WHEN - MAX( DISTINCT - ( + ( 62 ) ) ) * - 1 THEN - + 78 END * - CASE - 85 WHEN + COALESCE ( - 57, + COUNT( * ) ) + - 3 THEN + - 26 WHEN + MIN( + 24 ) + - CAST( NULL AS DECIMAL ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT CASE + - 17 WHEN - MAX ( DISTINCT - ( + ( 62 ) ) ) * - 1 THEN - + 78 END * - CASE - 85 WHEN + COALESCE ( - 57, + COUNT ( * ) ) + - 3 THEN + - 26 WHEN + MIN ( + 24 ) + - CAST ( NULL AS REAL ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8661
SELECT + CASE + - 56 WHEN + 37 + 40 * - - 41 + + CASE 33 WHEN - - 27 THEN - 28 - + ( COUNT( * ) ) * - 14 WHEN + - COUNT( * ) * + 29 THEN NULL ELSE NULL END + + 37 + - 99 THEN - CAST( - ( 55 ) AS DECIMAL ) END * NULLIF ( - 79, - + 77 ) * + COUNT( * ) * + 21 + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT + CASE + - 56 WHEN + 37 + 40 * - - 41 + + CASE 33 WHEN - - 27 THEN - 28 - + ( COUNT ( * ) ) * - 14 WHEN + - COUNT ( * ) * + 29 THEN NULL ELSE NULL END + + 37 + - 99 THEN - CAST ( - ( 55 ) AS REAL ) END * NULLIF ( - 79, - + 77 ) * + COUNT ( * ) * + 21 + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT DISTINCT + COUNT( DISTINCT + 7 ) + - 2 + ( + 7 )
----
6

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT + COUNT ( DISTINCT + 7 ) + - 2 + ( + 7 )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8663
SELECT ALL ( - - 69 ) + ( 1 ) DIV - ( + 8 )
----
69

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL ( - - 69 ) + ( 1 ) / - ( + 8 )
----
69

query I rowsort
SELECT DISTINCT 84 + 59 AS col1
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8665
SELECT 80 * - - ( 93 ) * + CASE - 0 WHEN + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) THEN NULL WHEN 96 / - + 16 * - - 45 + + 31 THEN + COUNT( - 13 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT 80 * - - ( 93 ) * + CASE - 0 WHEN + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 96 / - + 16 * - - 45 + + 31 THEN + COUNT ( - 13 ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT + 32 + COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8666
SELECT + 32 + COUNT ( * ) AS col0
----
33

query I rowsort
SELECT DISTINCT + + 97 * + - 13
----
-1261

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT + 18 * + COALESCE ( - 20, + MAX( DISTINCT - 22 ) ) * - COUNT( * ) + 50 * MAX( - - 55 )
----
3110

skipif mysql # not compatible
query I rowsort label-8668
SELECT + 18 * + COALESCE ( - 20, + MAX ( DISTINCT - 22 ) ) * - COUNT ( * ) + 50 * MAX ( - - 55 )
----
3110

onlyif mysql # DIV for integer division: 
query I rowsort label-8669
SELECT ALL - 86 * 80 DIV + 92
----
-74

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL - 86 * 80 / + 92
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT DISTINCT + 16 + + - 12 * + MIN( ALL + ( - + 4 ) )
----
64

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT + 16 + + - 12 * + MIN ( ALL + ( - + 4 ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT DISTINCT MIN( 31 ) * + 17
----
527

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT MIN ( 31 ) * + 17
----
527

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT DISTINCT - 36 - + + COUNT( DISTINCT - 53 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT - 36 - + + COUNT ( DISTINCT - 53 ) AS col2
----
-37

query II rowsort
SELECT ALL - 25 * + 26, - 78 * + 67 AS col1
----
-650
-5226

query I rowsort
SELECT DISTINCT - + 91 col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8675
SELECT ALL - - CAST( 22 AS SIGNED ) AS col1, 62 + COUNT( - 14 ) - - COUNT( * ) col2
----
22
64

skipif mysql # not compatible
query II rowsort label-8675
SELECT ALL - - CAST ( 22 AS INTEGER ) AS col1, 62 + COUNT ( - 14 ) - - COUNT ( * ) col2
----
22
64

query I rowsort
SELECT 29 - 81
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-8677
SELECT 88 * + - 51 + - 74 AS col0, COUNT( * ) + + 71 * 67 AS col0
----
-4562
4758

skipif mysql # not compatible
query II rowsort label-8677
SELECT 88 * + - 51 + - 74 AS col0, COUNT ( * ) + + 71 * 67 AS col0
----
-4562
4758

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT + + CASE - ( - COUNT( * ) ) WHEN + 14 THEN NULL ELSE + ( - 66 ) END
----
-66

skipif mysql # not compatible
query I rowsort label-8678
SELECT + + CASE - ( - COUNT ( * ) ) WHEN + 14 THEN NULL ELSE + ( - 66 ) END
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8679
SELECT 19 DIV - - 6 + + 19 col2
----
22

skipif mysql # not compatible
query I rowsort label-8679
SELECT 19 / - - 6 + + 19 col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8680
SELECT ALL - COUNT( 91 ) DIV 94 DIV 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL - COUNT ( 91 ) / 94 / 68 AS col2
----
0

query I rowsort
SELECT 77 * - 97
----
-7469

query II rowsort
SELECT - 82 col0, - 0 AS col0
----
-82
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT 90 * - 88 * + + 62 * + COUNT( * )
----
-491040

skipif mysql # not compatible
query I rowsort label-8683
SELECT 90 * - 88 * + + 62 * + COUNT ( * )
----
-491040

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT DISTINCT MAX( ALL 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT MAX ( ALL 74 ) AS col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8685
SELECT ALL ( - 25 ) * 37 * 75 DIV 96
----
-722

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL ( - 25 ) * 37 * 75 / 96
----
-722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8686
SELECT ALL MIN( - CASE - ( + - ( + 30 ) ) WHEN 80 THEN - CAST( - - 80 AS SIGNED ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL MIN ( - CASE - ( + - ( + 30 ) ) WHEN 80 THEN - CAST ( - - 80 AS INTEGER ) ELSE NULL END )
----
NULL

query I rowsort
SELECT - 89 + - + 82
----
-171

query I rowsort
SELECT - 6 * 48 AS col1
----
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8689
SELECT - 65 + + COUNT( * ) + - + ( - - 92 ) + + NULLIF ( + 32, 6 * - + 36 * + 29 * + - 28 + + 37 - + + 40 + COUNT( * ) ) * 67 / - COUNT( * ) + + - 60 + CAST( NULL AS SIGNED ) * 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT - 65 + + COUNT ( * ) + - + ( - - 92 ) + + NULLIF ( + 32, 6 * - + 36 * + 29 * + - 28 + + 37 - + + 40 + COUNT ( * ) ) * 67 / - COUNT ( * ) + + - 60 + CAST ( NULL AS INTEGER ) * 68 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8690
SELECT 71 AS col1, - 60 + + - CAST( NULL AS SIGNED ) + - - 18 + 95
----
71
NULL

skipif mysql # not compatible
query II rowsort label-8690
SELECT 71 AS col1, - 60 + + - CAST ( NULL AS INTEGER ) + - - 18 + 95
----
71
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8691
SELECT ALL 58 AS col2, ( + COUNT( * ) )
----
58
1

skipif mysql # not compatible
query II rowsort label-8691
SELECT ALL 58 AS col2, ( + COUNT ( * ) )
----
58
1

query I rowsort
SELECT - COALESCE ( 92, - 66 * - 57 ) AS col1
----
-92

query I rowsort
SELECT ALL 5 + + 32
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT + 11 + NULLIF ( 35, + MAX( + 15 ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-8694
SELECT + 11 + NULLIF ( 35, + MAX ( + 15 ) ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-8695
SELECT ALL 24 AS col0, MAX( DISTINCT - 88 ) + - + 56 AS col2
----
24
-144

skipif mysql # not compatible
query II rowsort label-8695
SELECT ALL 24 AS col0, MAX ( DISTINCT - 88 ) + - + 56 AS col2
----
24
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-8696
SELECT DISTINCT 75 AS col2, MIN( + 92 ) * + - 4 + - + CASE ( - 52 ) WHEN - + 97 THEN NULL WHEN + + 49 THEN + ( - 85 ) * 35 END AS col1
----
75
NULL

skipif mysql # not compatible
query II rowsort label-8696
SELECT DISTINCT 75 AS col2, MIN ( + 92 ) * + - 4 + - + CASE ( - 52 ) WHEN - + 97 THEN NULL WHEN + + 49 THEN + ( - 85 ) * 35 END AS col1
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL + 14 + + NULLIF ( 60, - 32 / + + 22 + COUNT( * ) + - 93 + + + COUNT( * ) ) * + 93 + - 96 AS col2
----
5498

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + 14 + + NULLIF ( 60, - 32 / + + 22 + COUNT ( * ) + - 93 + + + COUNT ( * ) ) * + 93 + - 96 AS col2
----
5498

onlyif mysql # aggregate syntax: 
query II rowsort label-8698
SELECT ( - - ( - 40 ) ) AS col1, - COUNT( * ) AS col1
----
-40
-1

skipif mysql # not compatible
query II rowsort label-8698
SELECT ( - - ( - 40 ) ) AS col1, - COUNT ( * ) AS col1
----
-40
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8699
SELECT - - 34 - - - ( - CASE - - 73 WHEN + 70 THEN CAST( + + 89 AS SIGNED ) END ) + - NULLIF ( + 35, - CAST( + 66 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT - - 34 - - - ( - CASE - - 73 WHEN + 70 THEN CAST ( + + 89 AS INTEGER ) END ) + - NULLIF ( + 35, - CAST ( + 66 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT + + 75 * + CASE WHEN NOT COUNT( * ) IS NULL THEN - - 72 END AS col2
----
5400

skipif mysql # not compatible
query I rowsort label-8700
SELECT + + 75 * + CASE WHEN NOT COUNT ( * ) IS NULL THEN - - 72 END AS col2
----
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT + + CASE - COUNT( * ) WHEN - 74 * - 62 THEN 78 ELSE - COUNT( * ) - - ( + + 57 ) * + 98 END
----
5585

skipif mysql # not compatible
query I rowsort label-8701
SELECT + + CASE - COUNT ( * ) WHEN - 74 * - 62 THEN 78 ELSE - COUNT ( * ) - - ( + + 57 ) * + 98 END
----
5585

onlyif mysql # DIV for integer division: 
query I rowsort label-8702
SELECT + + 59 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-8702
SELECT + + 59 / - 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8703
SELECT + 17 * + - 90 + + + 63 - - + COUNT( ALL + NULLIF ( ( + + ( 24 ) ), - 17 ) ) + + 11 * + 70 * + CAST( 41 AS SIGNED ) AS col2
----
30104

skipif mysql # not compatible
query I rowsort label-8703
SELECT + 17 * + - 90 + + + 63 - - + COUNT ( ALL + NULLIF ( ( + + ( 24 ) ), - 17 ) ) + + 11 * + 70 * + CAST ( 41 AS INTEGER ) AS col2
----
30104

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT + - SUM( DISTINCT - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-8704
SELECT + - SUM ( DISTINCT - 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT DISTINCT + NULLIF ( + 84, - SUM( DISTINCT - + 79 ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT + NULLIF ( + 84, - SUM ( DISTINCT - + 79 ) ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT ( 58 ) * - 73 - 37 * 49 + - 69 * + 13 * NULLIF ( COUNT( * ), + 72 ) + COUNT( * ) * + 8
----
-6936

skipif mysql # not compatible
query I rowsort label-8706
SELECT ( 58 ) * - 73 - 37 * 49 + - 69 * + 13 * NULLIF ( COUNT ( * ), + 72 ) + COUNT ( * ) * + 8
----
-6936

query I rowsort
SELECT DISTINCT + ( - 37 ) AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8708
SELECT ALL - 38 DIV + - 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL - 38 / + - 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT + SUM( DISTINCT 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8709
SELECT + SUM ( DISTINCT 63 ) AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8710
SELECT ALL + ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL + ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - 52 * - - 59
----
3068

onlyif mysql # aggregate syntax: 
query II rowsort label-8712
SELECT DISTINCT + 85, COUNT( * ) AS col0
----
85
1

skipif mysql # not compatible
query II rowsort label-8712
SELECT DISTINCT + 85, COUNT ( * ) AS col0
----
85
1

query I rowsort
SELECT ALL - - 28 * + 54
----
1512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT + + CAST( NULL AS SIGNED ) + - 81 * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8714
SELECT + + CAST ( NULL AS INTEGER ) + - 81 * + 82
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8715
SELECT DISTINCT SUM( ALL - + 12 ) * 9 + - + 65, 29 AS col0
----
-173
29

skipif mysql # not compatible
query II rowsort label-8715
SELECT DISTINCT SUM ( ALL - + 12 ) * 9 + - + 65, 29 AS col0
----
-173
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT ALL + COUNT( * ) * COUNT( * ) + 3 * 38 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL + COUNT ( * ) * COUNT ( * ) + 3 * 38 AS col1
----
115

query I rowsort
SELECT ALL COALESCE ( - 24, - + 12 ) AS col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8718
SELECT DISTINCT + COUNT( * ) + 71 * - 58 + + + ( - 5 ) + - 23 DIV + 18 AS col1
----
-4123

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT + COUNT ( * ) + 71 * - 58 + + + ( - 5 ) + - 23 / + 18 AS col1
----
-4123

query I rowsort
SELECT - 47 + - - 56
----
9

query I rowsort
SELECT DISTINCT + ( 17 ) + + + 19 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT - 11 * - + 27 * + + COUNT( * ) * - COUNT( * )
----
-297

skipif mysql # not compatible
query I rowsort label-8721
SELECT - 11 * - + 27 * + + COUNT ( * ) * - COUNT ( * )
----
-297

query II rowsort
SELECT DISTINCT ( + 87 ) AS col2, 41 * 40 + - 71
----
87
1569

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL + COUNT( * ) + - 71 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL + COUNT ( * ) + - 71 AS col0
----
-70

query I rowsort
SELECT - - 4 - - + 61
----
65

query I rowsort
SELECT - 31 + - 70 col1
----
-101

query I rowsort
SELECT ( + 38 ) col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8727
SELECT ALL 84 - - COALESCE ( + + ( - NULLIF ( COALESCE ( + COUNT( * ), - + NULLIF ( - + 37, - + 39 ), + CAST( NULL AS SIGNED ) + - COUNT( * ) ), - 66 * - 45 * + 58 * - 24 ) ), - MAX( ALL + 55 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL 84 - - COALESCE ( + + ( - NULLIF ( COALESCE ( + COUNT ( * ), - + NULLIF ( - + 37, - + 39 ), + CAST ( NULL AS INTEGER ) + - COUNT ( * ) ), - 66 * - 45 * + 58 * - 24 ) ), - MAX ( ALL + 55 ) ) AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8728
SELECT DISTINCT - 91 * + CAST( - 16 AS SIGNED ) AS col0
----
1456

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT - 91 * + CAST ( - 16 AS INTEGER ) AS col0
----
1456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8729
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT + CASE - 51 WHEN - 96 THEN 2 ELSE + 33 END * + 5
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT ( - + NULLIF ( + CAST( NULL AS SIGNED ), 7 ) ) * - - 87 + - 18 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT ( - + NULLIF ( + CAST ( NULL AS INTEGER ), 7 ) ) * - - 87 + - 18 col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8732
SELECT - - 3 * - + 54, - 59 DIV + - 99 AS col2
----
-162
0

skipif mysql # not compatible
query II rowsort label-8732
SELECT - - 3 * - + 54, - 59 / + - 99 AS col2
----
-162
0

query I rowsort
SELECT + - 97 * + 47
----
-4559

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT + 17 + - SUM( ALL - 98 ) * 7 - - + COUNT( * ) AS col1
----
704

skipif mysql # not compatible
query I rowsort label-8734
SELECT + 17 + - SUM ( ALL - 98 ) * 7 - - + COUNT ( * ) AS col1
----
704

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT SUM( - + 89 ) * + 22 * - 16 * - - 45 - - COALESCE ( + 82, - - 37 + - MIN( ALL + ( - 79 ) ) )
----
1409842

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT SUM ( - + 89 ) * + 22 * - 16 * - - 45 - - COALESCE ( + 82, - - 37 + - MIN ( ALL + ( - 79 ) ) )
----
1409842

query I rowsort
SELECT + 31 + + 76
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-8737
SELECT + - 48 DIV - - 4 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-8737
SELECT + - 48 / - - 4 AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8738
SELECT ALL 5 * COUNT( * ) - + CAST( NULL AS SIGNED ) + - 39 * 65 / + 86 * - 73 / + 48 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL 5 * COUNT ( * ) - + CAST ( NULL AS INTEGER ) + - 39 * 65 / + 86 * - 73 / + 48 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT + - CASE MAX( - 66 ) WHEN - - 23 THEN 41 WHEN + 43 - - - 15 * + 77 THEN 41 WHEN - CASE + + 71 WHEN COALESCE ( - 67, + 9 + COUNT( * ) + 22, - 49 ) THEN NULL WHEN - + 31 + 16 * 66 * 14 THEN + 53 * 69 WHEN + + COUNT( * ) * + 73 + 51 THEN NULL ELSE NULL END * 24 + 75 - + + 76 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT + - CASE MAX ( - 66 ) WHEN - - 23 THEN 41 WHEN + 43 - - - 15 * + 77 THEN 41 WHEN - CASE + + 71 WHEN COALESCE ( - 67, + 9 + COUNT ( * ) + 22, - 49 ) THEN NULL WHEN - + 31 + 16 * 66 * 14 THEN + 53 * 69 WHEN + + COUNT ( * ) * + 73 + 51 THEN NULL ELSE NULL END * 24 + 75 - + + 76 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 46 * + ( - 88 )
----
4048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8741
SELECT ALL + COUNT( * ) DIV - 61 * - CAST( + 59 AS SIGNED ) * + - 43
----
0

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL + COUNT ( * ) / - 61 * - CAST ( + 59 AS INTEGER ) * + - 43
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8742
SELECT ALL - CAST( + 66 AS SIGNED ) + + 75 AS col1, COALESCE ( + 55, + 33 ) + + 77 AS col1
----
9
132

skipif mysql # not compatible
query II rowsort label-8742
SELECT ALL - CAST ( + 66 AS INTEGER ) + + 75 AS col1, COALESCE ( + 55, + 33 ) + + 77 AS col1
----
9
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8743
SELECT ALL 7 + + - 62 - - 72 / - + 70 * - 77 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL 7 + + - 62 - - 72 / - + 70 * - 77 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT CASE - 90 WHEN MIN( DISTINCT + 78 ) THEN - 0 WHEN COUNT( * ) THEN 10 ELSE NULL END / - 11 + - 92 + - 79 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT CASE - 90 WHEN MIN ( DISTINCT + 78 ) THEN - 0 WHEN COUNT ( * ) THEN 10 ELSE NULL END / - 11 + - 92 + - 79 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8745
SELECT CAST( NULL AS DECIMAL ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT CAST ( NULL AS REAL ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT ( + 10 ) - + 20 AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8747
SELECT DISTINCT - CASE 75 WHEN - + CAST( CAST( 50 AS SIGNED ) AS SIGNED ) + + COUNT( * ) THEN + 24 + - 57 WHEN 24 + 49 + 23 THEN + SUM( DISTINCT + 62 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT - CASE 75 WHEN - + CAST ( CAST ( 50 AS INTEGER ) AS INTEGER ) + + COUNT ( * ) THEN + 24 + - 57 WHEN 24 + 49 + 23 THEN + SUM ( DISTINCT + 62 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8748
SELECT DISTINCT - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8749
SELECT ALL - CASE 65 WHEN - 9 THEN 69 WHEN - - CAST( NULL AS SIGNED ) THEN - + 81 WHEN 66 THEN - 1 + + MIN( DISTINCT + 54 ) + - - 97 * + 41 DIV + 41 + - - 75 ELSE 90 * COALESCE ( + - ( + 23 ), - MAX( ALL 9 ) ) * - 0 END + + COUNT( DISTINCT + 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL - CASE 65 WHEN - 9 THEN 69 WHEN - - CAST ( NULL AS INTEGER ) THEN - + 81 WHEN 66 THEN - 1 + + MIN ( DISTINCT + 54 ) + - - 97 * + 41 / + 41 + - - 75 ELSE 90 * COALESCE ( + - ( + 23 ), - MAX ( ALL 9 ) ) * - 0 END + + COUNT ( DISTINCT + 66 ) AS col0
----
1

query II rowsort
SELECT 96 AS col2, 16 AS col0
----
96
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT DISTINCT CASE + - ( SUM( ALL - 31 ) ) WHEN - NULLIF ( - - 21, + 31 * 80 + + 57 + + 40 + - 3 / COUNT( * ) + - MIN( DISTINCT + 52 ) ) THEN COALESCE ( + - 93, - + 80 + 42 + - - ( 50 ) * - 70 * - 60 + + - COUNT( * ) ) * + 42 + 87 * - COUNT( * ) * - 63 + + 23 WHEN + 91 THEN NULL ELSE NULL END + COUNT( * ) + + + COALESCE ( + 83, + COUNT( * ) * - 53 + - + 24 + 29 ) + - 27 + + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT CASE + - ( SUM ( ALL - 31 ) ) WHEN - NULLIF ( - - 21, + 31 * 80 + + 57 + + 40 + - 3 / COUNT ( * ) + - MIN ( DISTINCT + 52 ) ) THEN COALESCE ( + - 93, - + 80 + 42 + - - ( 50 ) * - 70 * - 60 + + - COUNT ( * ) ) * + 42 + 87 * - COUNT ( * ) * - 63 + + 23 WHEN + 91 THEN NULL ELSE NULL END + COUNT ( * ) + + + COALESCE ( + 83, + COUNT ( * ) * - 53 + - + 24 + 29 ) + - 27 + + 51 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 35 + + - 34
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT 30 + + 61 + + - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-8753
SELECT 30 + + 61 + + - COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8754
SELECT 25, - COUNT( * ) - - 67 - COUNT( * ) AS col2
----
25
65

skipif mysql # not compatible
query II rowsort label-8754
SELECT 25, - COUNT ( * ) - - 67 - COUNT ( * ) AS col2
----
25
65

query II rowsort
SELECT ALL 23, + 45 AS col0
----
23
45

query I rowsort
SELECT - 20 + + + 38 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8757
SELECT 45 - + CAST( NULL AS SIGNED ) + - ( - 92 ) * 85 * COUNT( * ) * - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT 45 - + CAST ( NULL AS INTEGER ) + - ( - 92 ) * 85 * COUNT ( * ) * - 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8758
SELECT DISTINCT 58, + 53 * + COUNT( * ) AS col0
----
58
53

skipif mysql # not compatible
query II rowsort label-8758
SELECT DISTINCT 58, + 53 * + COUNT ( * ) AS col0
----
58
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT DISTINCT + - 91 DIV - + NULLIF ( NULLIF ( + 92, 42 * 65 ), + 3 )
----
0

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT + - 91 / - + NULLIF ( NULLIF ( + 92, 42 * 65 ), + 3 )
----
0

query I rowsort
SELECT - COALESCE ( + 86, + 29 * - 46, ( - + 32 ) ) AS col2
----
-86

query I rowsort
SELECT ALL + ( - + 82 ) - - 70
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8762
SELECT COUNT( * ) DIV + + 54 * - CASE + ( - MIN( ALL - + 71 ) ) WHEN + - 98 THEN NULL WHEN 88 + + 22 * - 40 + + - 55 * - - 42 * + 9 THEN NULL ELSE COUNT( * ) END * - COUNT( * ), CASE 73 WHEN - 57 THEN NULL ELSE + - COUNT( * ) DIV + 51 - - ( MAX( + 19 ) ) END * - + COUNT( * ) AS col1
----
0
-19

skipif mysql # not compatible
query II rowsort label-8762
SELECT COUNT ( * ) / + + 54 * - CASE + ( - MIN ( ALL - + 71 ) ) WHEN + - 98 THEN NULL WHEN 88 + + 22 * - 40 + + - 55 * - - 42 * + 9 THEN NULL ELSE COUNT ( * ) END * - COUNT ( * ), CASE 73 WHEN - 57 THEN NULL ELSE + - COUNT ( * ) / + 51 - - ( MAX ( + 19 ) ) END * - + COUNT ( * ) AS col1
----
0
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8763
SELECT ALL + + 24 DIV COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL + + 24 / COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT DISTINCT - MAX( - 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT - MAX ( - 25 ) AS col1
----
25

query I rowsort
SELECT DISTINCT + + 99 * - + 49
----
-4851

query I rowsort
SELECT ALL - 7 * + 29
----
-203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8767
SELECT CAST( NULL AS SIGNED ) / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT CAST ( NULL AS INTEGER ) / 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8768
SELECT 35 - CAST( NULL AS SIGNED ) - MIN( DISTINCT - 29 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8768
SELECT 35 - CAST ( NULL AS INTEGER ) - MIN ( DISTINCT - 29 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL + COUNT( * ) * 42 * + 91
----
3822

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + COUNT ( * ) * 42 * + 91
----
3822

onlyif mysql # aggregate syntax: 
query II rowsort label-8770
SELECT ALL - 14 AS col1, 44 * 34 * - CASE ( - + COUNT( DISTINCT + 59 ) ) WHEN 81 THEN - + 3 END - - ( 37 ) - - 33 * 85 * + 81
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-8770
SELECT ALL - 14 AS col1, 44 * 34 * - CASE ( - + COUNT ( DISTINCT + 59 ) ) WHEN 81 THEN - + 3 END - - ( 37 ) - - 33 * 85 * + 81
----
-14
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT SUM( DISTINCT 39 ) * - COUNT( * ) * - + 41 + + 61
----
1660

skipif mysql # not compatible
query I rowsort label-8771
SELECT SUM ( DISTINCT 39 ) * - COUNT ( * ) * - + 41 + + 61
----
1660

onlyif mysql # aggregate syntax: 
query II rowsort label-8772
SELECT ALL + - COUNT( * ) + + CASE + COUNT( * ) WHEN + 65 * - 71 * + 24 + 51 - + COUNT( + + 10 ) THEN NULL WHEN - 91 + + 51 * - - 50 / 9 THEN 91 + + - COUNT( - 85 ) + + 98 * + 59 END + - - 13 * + COUNT( * ) col0, + 39
----
NULL
39

skipif mysql # not compatible
query II rowsort label-8772
SELECT ALL + - COUNT ( * ) + + CASE + COUNT ( * ) WHEN + 65 * - 71 * + 24 + 51 - + COUNT ( + + 10 ) THEN NULL WHEN - 91 + + 51 * - - 50 / 9 THEN 91 + + - COUNT ( - 85 ) + + 98 * + 59 END + - - 13 * + COUNT ( * ) col0, + 39
----
NULL
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8773
SELECT + ( - ( - COUNT( * ) ) ) DIV + - 38 - + 78 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-8773
SELECT + ( - ( - COUNT ( * ) ) ) / + - 38 - + 78 AS col2
----
-78

query I rowsort
SELECT DISTINCT - - 21 AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8775
SELECT ALL ( + 58 ) + + ( + + CASE - 91 WHEN - COALESCE ( - 7, - - 33 * - 17 ) + + - MIN( - 85 ) + - MIN( ALL 25 ) * 28 + MAX( - 27 ) - + 43 THEN - ( - CAST( NULL AS SIGNED ) ) * - MIN( DISTINCT - - 66 ) ELSE + 27 END )
----
85

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL ( + 58 ) + + ( + + CASE - 91 WHEN - COALESCE ( - 7, - - 33 * - 17 ) + + - MIN ( - 85 ) + - MIN ( ALL 25 ) * 28 + MAX ( - 27 ) - + 43 THEN - ( - CAST ( NULL AS INTEGER ) ) * - MIN ( DISTINCT - - 66 ) ELSE + 27 END )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT ALL + 61 + - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL + 61 + - COUNT ( * )
----
60

query II rowsort
SELECT 30, + 90 + 35 AS col1
----
30
125

query II rowsort
SELECT + 31, + 28 AS col2
----
31
28

query II rowsort
SELECT ALL - 67, 30 AS col2
----
-67
30

query I rowsort
SELECT ALL ( 87 ) + + + 26 AS col0
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-8781
SELECT COUNT( * ) + + - 5 + 15 * MIN( DISTINCT + - 70 ) * - + 51 AS col1, - 75 * 42 AS col0
----
53546
-3150

skipif mysql # not compatible
query II rowsort label-8781
SELECT COUNT ( * ) + + - 5 + 15 * MIN ( DISTINCT + - 70 ) * - + 51 AS col1, - 75 * 42 AS col0
----
53546
-3150

onlyif mysql # aggregate syntax: 
query III rowsort label-8782
SELECT 49 AS col2, COUNT( * ), 47 + COUNT( * ) col0
----
49
1
48

skipif mysql # not compatible
query III rowsort label-8782
SELECT 49 AS col2, COUNT ( * ), 47 + COUNT ( * ) col0
----
49
1
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL SUM( DISTINCT + 69 ) + 39 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL SUM ( DISTINCT + 69 ) + 39 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL - SUM( DISTINCT - 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL - SUM ( DISTINCT - 70 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT 59 + + 42 - COUNT( * ) + + - SUM( DISTINCT - + 24 ) - - 40 + + 81 * + 2 * - 22 AS col2
----
-3400

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT 59 + + 42 - COUNT ( * ) + + - SUM ( DISTINCT - + 24 ) - - 40 + + 81 * + 2 * - 22 AS col2
----
-3400

query I rowsort
SELECT 50 + 93 + 81
----
224

query I rowsort
SELECT ALL 94 - - 94 AS col1
----
188

query I rowsort
SELECT 21 * - 42 * + - 80
----
70560

query I rowsort
SELECT 56 * 82 AS col2
----
4592

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT COUNT( * ) * + + 58
----
58

skipif mysql # not compatible
query I rowsort label-8790
SELECT COUNT ( * ) * + + 58
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT - CAST( + 41 AS SIGNED ) * - + 63 + - 88 AS col0
----
2495

skipif mysql # not compatible
query I rowsort label-8791
SELECT - CAST ( + 41 AS INTEGER ) * - + 63 + - 88 AS col0
----
2495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8792
SELECT DISTINCT 5 - - CAST( + COALESCE ( + 0, + 62, + COUNT( * ) + - + 51 + - 86 - - 7 - + COUNT( * ) * - ( COALESCE ( - - AVG ( - 50 ), - - ( + COUNT( DISTINCT 13 ) ) + - 67 / 67 ) ) + COUNT( * ) * - 71 ) AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT 5 - - CAST ( + COALESCE ( + 0, + 62, + COUNT ( * ) + - + 51 + - 86 - - 7 - + COUNT ( * ) * - ( COALESCE ( - - AVG ( - 50 ), - - ( + COUNT ( DISTINCT 13 ) ) + - 67 / 67 ) ) + COUNT ( * ) * - 71 ) AS INTEGER )
----
5

query II rowsort
SELECT 73, + NULLIF ( + 78, + 59 ) AS col0
----
73
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT - MIN( + ( 83 ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8794
SELECT - MIN ( + ( 83 ) ) AS col1
----
-83

query I rowsort
SELECT ALL - 2 - - 92
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT + 27 * + + 49 * 35 * - MIN( 37 )
----
-1713285

skipif mysql # not compatible
query I rowsort label-8796
SELECT + 27 * + + 49 * 35 * - MIN ( 37 )
----
-1713285

query I rowsort
SELECT ALL - ( - - 20 ) AS col0
----
-20

query I rowsort
SELECT ALL CASE 83 WHEN 96 + + - 44 + - 93 * - + 40 THEN - 28 WHEN 66 - + 69 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8799
SELECT - 9 AS col2, + CASE + - SUM( ALL + 35 ) WHEN + - 60 THEN NULL WHEN + 94 - - - 64 + + COUNT( DISTINCT - 17 ) THEN + COUNT( * ) WHEN + MIN( DISTINCT NULLIF ( + - 31, 76 ) ) + - + CASE 65 WHEN 97 + - CAST( ( - 40 ) AS SIGNED ) THEN 87 ELSE - COUNT( * ) - + 55 / 37 / + NULLIF ( + 7, + 42 * 11 + + 0 * - 88 + + 23 ) END * + + ( - + 15 ) * + 91 THEN - 70 + - - COUNT( * ) ELSE NULL END
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-8799
SELECT - 9 AS col2, + CASE + - SUM ( ALL + 35 ) WHEN + - 60 THEN NULL WHEN + 94 - - - 64 + + COUNT ( DISTINCT - 17 ) THEN + COUNT ( * ) WHEN + MIN ( DISTINCT NULLIF ( + - 31, 76 ) ) + - + CASE 65 WHEN 97 + - CAST ( ( - 40 ) AS INTEGER ) THEN 87 ELSE - COUNT ( * ) - + 55 / 37 / + NULLIF ( + 7, + 42 * 11 + + 0 * - 88 + + 23 ) END * + + ( - + 15 ) * + 91 THEN - 70 + - - COUNT ( * ) ELSE NULL END
----
-9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT DISTINCT - 58 * 70 * - COUNT( * ) + + 75
----
4135

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT - 58 * 70 * - COUNT ( * ) + + 75
----
4135

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT + MAX( ALL - + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-8801
SELECT + MAX ( ALL - + 9 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8802
SELECT ALL ( COALESCE ( - + 36, COUNT( * ), 81 + + 96 - + CAST( + 19 AS SIGNED ) ) ) * 5 * - 39 + 27
----
7047

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL ( COALESCE ( - + 36, COUNT ( * ), 81 + + 96 - + CAST ( + 19 AS INTEGER ) ) ) * 5 * - 39 + 27
----
7047

query II rowsort
SELECT ALL - 60, CASE - 84 WHEN + 6 * + 77 / - 28 + 76 - - + 65 * - 22 THEN NULL ELSE + 19 END AS col2
----
-60
19

query II rowsort
SELECT 19 - + 81, - 45 AS col0
----
-62
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8805
SELECT COUNT( ALL 87 ) DIV - 3 - + 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8805
SELECT COUNT ( ALL 87 ) / - 3 - + 35 AS col0
----
-35

query I rowsort
SELECT 50 + - - ( - + 35 ) AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8807
SELECT + 99 - - - 2 * COALESCE ( + COALESCE ( + + 55, + 0 + - 52 * - - 35 ), + COALESCE ( - 96, + 25 DIV - + 98 ) ) + 85 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8807
SELECT + 99 - - - 2 * COALESCE ( + COALESCE ( + + 55, + 0 + - 52 * - - 35 ), + COALESCE ( - 96, + 25 / - + 98 ) ) + 85 AS col2
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8808
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) + + - 76 col0
----
1
-75

skipif mysql # not compatible
query II rowsort label-8808
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) + + - 76 col0
----
1
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8809
SELECT - - 20 DIV - 29, 77 * 30 * - - COUNT( * ) AS col1
----
0
2310

skipif mysql # not compatible
query II rowsort label-8809
SELECT - - 20 / - 29, 77 * 30 * - - COUNT ( * ) AS col1
----
0
2310

query I rowsort
SELECT ALL - 15 + - 29 - 95
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT DISTINCT - 56 + - COUNT( * ) - - 26 + + - 24
----
-55

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT - 56 + - COUNT ( * ) - - 26 + + - 24
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT + COUNT( ALL COALESCE ( + - 26, 90 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8812
SELECT + COUNT ( ALL COALESCE ( + - 26, 90 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8813
SELECT DISTINCT - 79 * 35 + + CASE + - 98 WHEN - CASE 9 WHEN 47 THEN - 22 + - 22 + + COUNT( * ) END THEN NULL ELSE + CAST( NULL AS SIGNED ) + + 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT - 79 * 35 + + CASE + - 98 WHEN - CASE 9 WHEN 47 THEN - 22 + - 22 + + COUNT ( * ) END THEN NULL ELSE + CAST ( NULL AS INTEGER ) + + 77 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8814
SELECT ALL + COUNT( * ) * - 92 * 68 DIV 68 + + - 50
----
-142

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL + COUNT ( * ) * - 92 * 68 / 68 + + - 50
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8815
SELECT COALESCE ( 39, - - 93 * 89 + + 47 * + - 65 * + MIN( - + 53 ), ( + + 50 ) ), + 9 DIV - 47 AS col1
----
39
0

skipif mysql # not compatible
query II rowsort label-8815
SELECT COALESCE ( 39, - - 93 * 89 + + 47 * + - 65 * + MIN ( - + 53 ), ( + + 50 ) ), + 9 / - 47 AS col1
----
39
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8816
SELECT DISTINCT + MIN( DISTINCT + + 95 ) AS col2, + 7 AS col0
----
95
7

skipif mysql # not compatible
query II rowsort label-8816
SELECT DISTINCT + MIN ( DISTINCT + + 95 ) AS col2, + 7 AS col0
----
95
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8817
SELECT DISTINCT + SUM( ALL + 98 ) AS col1, + 33 + + CAST( NULL AS DECIMAL ) AS col1
----
98
NULL

skipif mysql # not compatible
query II rowsort label-8817
SELECT DISTINCT + SUM ( ALL + 98 ) AS col1, + 33 + + CAST ( NULL AS REAL ) AS col1
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT + MIN( ALL + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8818
SELECT + MIN ( ALL + 6 ) AS col2
----
6

query I rowsort
SELECT DISTINCT + CASE - 22 WHEN 94 THEN NULL WHEN + 68 THEN NULL ELSE - 21 * - 91 * - 99 * - 78 + 39 END AS col1
----
14756781

onlyif mysql # aggregate syntax: 
query II rowsort label-8820
SELECT ALL - ( - 58 ) * NULLIF ( + 50, + 77 ), + 42 * - COUNT( * ) * - - 63 - + + 75 col1
----
2900
-2721

skipif mysql # not compatible
query II rowsort label-8820
SELECT ALL - ( - 58 ) * NULLIF ( + 50, + 77 ), + 42 * - COUNT ( * ) * - - 63 - + + 75 col1
----
2900
-2721

query I rowsort
SELECT - 76 - + COALESCE ( - 72, - 36, + - 80 ) * 52 * + COALESCE ( + + 29, 98 * + + 62 )
----
108500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8822
SELECT DISTINCT + CASE 32 WHEN - 9 + - SUM( - NULLIF ( + CAST( NULL AS SIGNED ), 43 + + - 67 + - 69 ) ) * - MAX( ALL - 55 ) THEN NULL ELSE + - 73 END AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT + CASE 32 WHEN - 9 + - SUM ( - NULLIF ( + CAST ( NULL AS INTEGER ), 43 + + - 67 + - 69 ) ) * - MAX ( ALL - 55 ) THEN NULL ELSE + - 73 END AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL 40 - - SUM( DISTINCT 76 ) * + ( + + ( - 36 ) ) + + + 86
----
-2610

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL 40 - - SUM ( DISTINCT 76 ) * + ( + + ( - 36 ) ) + + + 86
----
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT ALL - CASE - 40 WHEN + - 2 THEN - - 12 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL - CASE - 40 WHEN + - 2 THEN - - 12 END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 7 * + 72 * 94 AS col1
----
-47376

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT ALL 69 DIV + - 24
----
-2

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL 69 / + - 24
----
-2

query I rowsort
SELECT + 38 - - - 0 + - - 61 * - 28 + - + 92 - - 12 AS col0
----
-1750

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT - COALESCE ( + - MIN( DISTINCT 43 ), + - 1 + 25 * + 78 * + + NULLIF ( - 94, + 40 ) ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8828
SELECT - COALESCE ( + - MIN ( DISTINCT 43 ), + - 1 + 25 * + 78 * + + NULLIF ( - 94, + 40 ) ) AS col2
----
43

query I rowsort
SELECT CASE - 11 WHEN 74 THEN + ( 82 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8830
SELECT + + 99 DIV - ( + 38 ) + - COUNT( * ) * - 40
----
38

skipif mysql # not compatible
query I rowsort label-8830
SELECT + + 99 / - ( + 38 ) + - COUNT ( * ) * - 40
----
38

query I rowsort
SELECT + 27 * - 80 + 80 AS col2
----
-2080

query I rowsort
SELECT ALL 97 + + 65 AS col2
----
162

query I rowsort
SELECT DISTINCT - 27 + 34 + - 38 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL + 52 + COUNT( * ) + + 88 + + COUNT( * ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL + 52 + COUNT ( * ) + + 88 + + COUNT ( * ) AS col1
----
142

query I rowsort
SELECT + - 72 - + - 86 * - + 53 AS col0
----
-4630

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL + 3 + - COUNT( + - 81 )
----
2

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL + 3 + - COUNT ( + - 81 )
----
2

query I rowsort
SELECT + + 97 + 4 * + 12 AS col1
----
145

query I rowsort
SELECT - 99 * + 20 - - 27
----
-1953

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8839
SELECT ALL + 52 DIV + CAST( + 21 AS SIGNED ) + - + 76
----
-74

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL + 52 / + CAST ( + 21 AS INTEGER ) + - + 76
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT + 60 * - + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-8840
SELECT + 60 * - + COUNT ( * )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8841
SELECT ALL + MAX( ALL + ( + CAST( 52 AS SIGNED ) ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL + MAX ( ALL + ( + CAST ( 52 AS INTEGER ) ) ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL + MIN( DISTINCT + 23 ) col1
----
23

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL + MIN ( DISTINCT + 23 ) col1
----
23

query I rowsort
SELECT ALL - 71 * 5
----
-355

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8844
SELECT - 13 - + COUNT( * ) - 78 AS col0, 63 * - + 50 * COUNT( - CASE + 42 WHEN - 50 THEN + 50 END ) + COUNT( * ) DIV - NULLIF ( - 14, + 30 - 61 ) * - ( 84 ) + + 45
----
-92
45

skipif mysql # not compatible
query II rowsort label-8844
SELECT - 13 - + COUNT ( * ) - 78 AS col0, 63 * - + 50 * COUNT ( - CASE + 42 WHEN - 50 THEN + 50 END ) + COUNT ( * ) / - NULLIF ( - 14, + 30 - 61 ) * - ( 84 ) + + 45
----
-92
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8845
SELECT ALL - ( + 6 ) DIV + COALESCE ( - + 80, - COUNT( * ) DIV + 66 * 94 ) - COUNT( * ) AS col1, 58 AS col0
----
-1
58

skipif mysql # not compatible
query II rowsort label-8845
SELECT ALL - ( + 6 ) / + COALESCE ( - + 80, - COUNT ( * ) / + 66 * 94 ) - COUNT ( * ) AS col1, 58 AS col0
----
-1
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8846
SELECT ALL - 62 * - 4 * - 93 col1, ( - MAX( + 94 ) )
----
-23064
-94

skipif mysql # not compatible
query II rowsort label-8846
SELECT ALL - 62 * - 4 * - 93 col1, ( - MAX ( + 94 ) )
----
-23064
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8847
SELECT + CAST( - MIN( DISTINCT + 35 ) AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-8847
SELECT + CAST ( - MIN ( DISTINCT + 35 ) AS INTEGER )
----
-35

query I rowsort
SELECT + 59 * 79
----
4661

query I rowsort
SELECT + 77 + 53 + 77
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT + CAST( NULL AS SIGNED ) * - 12 - 30 - + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT + CAST ( NULL AS INTEGER ) * - 12 - 30 - + 69 AS col1
----
NULL

query I rowsort
SELECT ( + ( + 10 ) ) AS col2
----
10

query I rowsort
SELECT - 70 * - - 83
----
-5810

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT DISTINCT 76 * - 8 * - - COUNT( ALL - 5 ) * + 19
----
-11552

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT 76 * - 8 * - - COUNT ( ALL - 5 ) * + 19
----
-11552

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT ALL + MAX( ALL - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL + MAX ( ALL - 6 )
----
-6

query II rowsort
SELECT + 64 AS col1, + ( + 73 )
----
64
73

query I rowsort
SELECT DISTINCT + ( - - 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT DISTINCT + SUM( DISTINCT 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT + SUM ( DISTINCT 0 )
----
0

query I rowsort
SELECT ALL + ( + 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8859
SELECT - NULLIF ( COUNT( * ), - + 62 ), - 95 DIV 78
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8859
SELECT - NULLIF ( COUNT ( * ), - + 62 ), - 95 / 78
----
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8860
SELECT - - COUNT( * ) AS col0, + 89
----
1
89

skipif mysql # not compatible
query II rowsort label-8860
SELECT - - COUNT ( * ) AS col0, + 89
----
1
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8861
SELECT - + 14 * 79 + + 71, COUNT( * ) * + 46 AS col1
----
-1035
46

skipif mysql # not compatible
query II rowsort label-8861
SELECT - + 14 * 79 + + 71, COUNT ( * ) * + 46 AS col1
----
-1035
46

query I rowsort
SELECT ALL - + 4 * + - 65 AS col0
----
260

query I rowsort
SELECT ALL 42 * - 92 + - 58 AS col2
----
-3922

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT + ( + + CASE 64 WHEN + 79 + + + 31 THEN NULL WHEN - COUNT( * ) THEN 73 ELSE + 41 * 16 END ) AS col1
----
656

skipif mysql # not compatible
query I rowsort label-8864
SELECT + ( + + CASE 64 WHEN + 79 + + + 31 THEN NULL WHEN - COUNT ( * ) THEN 73 ELSE + 41 * 16 END ) AS col1
----
656

query II rowsort
SELECT - - 0 AS col1, ( 9 ) + - 49
----
0
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT - - 70 * SUM( 93 ) * + 12
----
78120

skipif mysql # not compatible
query I rowsort label-8866
SELECT - - 70 * SUM ( 93 ) * + 12
----
78120

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL ( 78 ) * - MAX( - 2 )
----
156

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL ( 78 ) * - MAX ( - 2 )
----
156

query I rowsort
SELECT DISTINCT + 0 + - COALESCE ( 35, - 14 )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8869
SELECT ALL + CAST( - 71 AS SIGNED ) + COUNT( * ) AS col1, + 13 * + 98 AS col1
----
-70
1274

skipif mysql # not compatible
query II rowsort label-8869
SELECT ALL + CAST ( - 71 AS INTEGER ) + COUNT ( * ) AS col1, + 13 * + 98 AS col1
----
-70
1274

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT - SUM( 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT - SUM ( 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ALL CASE + COUNT( * ) WHEN + 89 * - 72 * - COUNT( * ) THEN 34 ELSE 2 * + 97 END + - ( + 3 ) AS col0
----
191

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL CASE + COUNT ( * ) WHEN + 89 * - 72 * - COUNT ( * ) THEN 34 ELSE 2 * + 97 END + - ( + 3 ) AS col0
----
191

query I rowsort
SELECT - 39 * 92 * - - 71 * - 8
----
2037984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT + 48 + + 40 + CAST( - 14 AS SIGNED ) * - 7
----
186

skipif mysql # not compatible
query I rowsort label-8873
SELECT + 48 + + 40 + CAST ( - 14 AS INTEGER ) * - 7
----
186

query II rowsort
SELECT + 51 AS col1, 18
----
51
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8875
SELECT COALESCE ( + 13, 11 * 83 ) + + 16 - + 20 AS col1, CAST( NULL AS SIGNED ) AS col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-8875
SELECT COALESCE ( + 13, 11 * 83 ) + + 16 - + 20 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
9
NULL

query I rowsort
SELECT ALL + 7 + + 82
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8877
SELECT ALL 44 DIV 40
----
1

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL 44 / 40
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT CASE + + 82 WHEN - MAX( + ( - ( 54 ) ) ) THEN 86 WHEN - 41 + - + 6 THEN - + COUNT( * ) END - - 97 + - 7 * 6 * - + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT CASE + + 82 WHEN - MAX ( + ( - ( 54 ) ) ) THEN 86 WHEN - 41 + - + 6 THEN - + COUNT ( * ) END - - 97 + - 7 * 6 * - + 15 AS col0
----
NULL

query I rowsort
SELECT - + ( + 38 )
----
-38

query I rowsort
SELECT 81 + - 79 AS col0
----
2

query I rowsort
SELECT - 97 + 8
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT DISTINCT 67 - + 33 + 85 + - - 67 + + MAX( DISTINCT 1 ) * + 18
----
204

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT 67 - + 33 + 85 + - - 67 + + MAX ( DISTINCT 1 ) * + 18
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT DISTINCT - 48 - - COUNT( DISTINCT 99 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT - 48 - - COUNT ( DISTINCT 99 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT 31 + - COUNT( ALL 59 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8884
SELECT 31 + - COUNT ( ALL 59 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT DISTINCT - NULLIF ( COUNT( * ), - 27 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT - NULLIF ( COUNT ( * ), - 27 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT 15 * + COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8886
SELECT 15 * + COUNT ( * ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT ALL - SUM( - - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL - SUM ( - - 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT 66 + - - CASE 10 WHEN + + 3 THEN NULL WHEN + 90 + + 27 * + 10 / - 92 + 79 + - - COUNT( * ) / + 76 THEN 2 * + 33 * - + 72 * + 5 + + 96 / 47 * - 32 - - 24 END * - 45 + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8888
SELECT 66 + - - CASE 10 WHEN + + 3 THEN NULL WHEN + 90 + + 27 * + 10 / - 92 + 79 + - - COUNT ( * ) / + 76 THEN 2 * + 33 * - + 72 * + 5 + + 96 / 47 * - 32 - - 24 END * - 45 + - 20
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8889
SELECT 69 * CAST( + + 22 AS SIGNED )
----
1518

skipif mysql # not compatible
query I rowsort label-8889
SELECT 69 * CAST ( + + 22 AS INTEGER )
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT + 33 * - + 52 + + COUNT( * )
----
-1715

skipif mysql # not compatible
query I rowsort label-8890
SELECT + 33 * - + 52 + + COUNT ( * )
----
-1715

onlyif mysql # aggregate syntax: 
query II rowsort label-8891
SELECT COALESCE ( - ( 7 ), - 53 + + COUNT( * ) ) * + + 21 * - 31 AS col0, COALESCE ( - - NULLIF ( + COUNT( * ), - 55 * - 69 * 82 + 57 * 29 * 19 ), - 4, ( + COUNT( * ) ) * + - 98 + - 63 + + 8 * + - 18 ) + + COUNT( * )
----
4557
2

skipif mysql # not compatible
query II rowsort label-8891
SELECT COALESCE ( - ( 7 ), - 53 + + COUNT ( * ) ) * + + 21 * - 31 AS col0, COALESCE ( - - NULLIF ( + COUNT ( * ), - 55 * - 69 * 82 + 57 * 29 * 19 ), - 4, ( + COUNT ( * ) ) * + - 98 + - 63 + + 8 * + - 18 ) + + COUNT ( * )
----
4557
2

query II rowsort
SELECT ALL + 41 * + 14, 73 * - - 91 col0
----
574
6643

query I rowsort
SELECT DISTINCT + 23 * - 28 * 24 AS col2
----
-15456

query II rowsort
SELECT ALL - 68 * + 89 AS col1, - 84
----
-6052
-84

query I rowsort
SELECT 81 * + 20 * + 31
----
50220

onlyif mysql # aggregate syntax: 
query II rowsort label-8896
SELECT DISTINCT 23 + - + COUNT( * ) col0, + 78
----
22
78

skipif mysql # not compatible
query II rowsort label-8896
SELECT DISTINCT 23 + - + COUNT ( * ) col0, + 78
----
22
78

query I rowsort
SELECT ALL 81 + + 43 * + 44
----
1973

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT 79 - - + COUNT( * ) col2
----
80

skipif mysql # not compatible
query I rowsort label-8898
SELECT 79 - - + COUNT ( * ) col2
----
80

query I rowsort
SELECT 37 * 46 col1
----
1702

query I rowsort
SELECT ALL - 79 + 27
----
-52

query I rowsort
SELECT ALL - - 77 * + 82
----
6314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8902
SELECT 14 * + 65 - 75 * - 30 + + 8 + - ( - 56 ) * + NULLIF ( - COUNT( + 73 ), - 27 ) DIV + 94 * - 29 + - 58 AS col2
----
3110

skipif mysql # not compatible
query I rowsort label-8902
SELECT 14 * + 65 - 75 * - 30 + + 8 + - ( - 56 ) * + NULLIF ( - COUNT ( + 73 ), - 27 ) / + 94 * - 29 + - 58 AS col2
----
3110

query I rowsort
SELECT 17 * - 47 AS col0
----
-799

query I rowsort
SELECT ALL - 97 + + ( ( 94 ) ) + - ( 74 ) AS col2
----
-77

query I rowsort
SELECT ALL + 38 + - 25
----
13

query I rowsort
SELECT 94 - - 82 + - 95
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT DISTINCT + COUNT( ALL - ( - 64 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT + COUNT ( ALL - ( - 64 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT + COUNT( * ) - ( - + 0 ) - - 37 + + 46 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8908
SELECT + COUNT ( * ) - ( - + 0 ) - - 37 + + 46 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT ALL + + 35 - + - MAX( DISTINCT + 67 ) - - ( - 73 ) + - + COUNT( * ) * - + 23 * + 67 AS col2
----
1570

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL + + 35 - + - MAX ( DISTINCT + 67 ) - - ( - 73 ) + - + COUNT ( * ) * - + 23 * + 67 AS col2
----
1570

query I rowsort
SELECT - 3 + 83
----
80

query I rowsort
SELECT 63 * + - 18 * - - 75
----
-85050

query I rowsort
SELECT ALL + 86 * 35 * + - 94 + 82 + - 58 + + 94
----
-282822

query I rowsort
SELECT NULLIF ( + ( + + CASE - 8 WHEN 17 THEN NULL ELSE + + ( + 7 ) END ), + 31 ) AS col1
----
7

query I rowsort
SELECT - 86 - 78 + - 54
----
-218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8915
SELECT 42 * CAST( + 11 AS SIGNED )
----
462

skipif mysql # not compatible
query I rowsort label-8915
SELECT 42 * CAST ( + 11 AS INTEGER )
----
462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8916
SELECT DISTINCT 90 - - COUNT( * ) + + 77 DIV + ( - 60 ) - + - 43 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT 90 - - COUNT ( * ) + + 77 / + ( - 60 ) - + - 43 AS col0
----
133

query I rowsort
SELECT DISTINCT 25 - ( + + 7 )
----
18

query I rowsort
SELECT 15 * - - 66
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT ALL COUNT( DISTINCT 68 )
----
1

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL COUNT ( DISTINCT 68 )
----
1

query I rowsort
SELECT 21 - + 6 + - - 62 + - + 71 * 24 * - 46 + - 24
----
78437

query I rowsort
SELECT 24 * + - 70 col0
----
-1680

onlyif mysql # DIV for integer division: 
query I rowsort label-8922
SELECT ALL 48 DIV 4
----
12

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL 48 / 4
----
12

query I rowsort
SELECT - 48 * - + 55 + - + 3 AS col2
----
2637

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT COUNT( DISTINCT - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-8924
SELECT COUNT ( DISTINCT - 70 )
----
1

query I rowsort
SELECT 50 * 80 * + - ( + + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL 41 * + ( - - COUNT( * ) ) col2
----
41

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL 41 * + ( - - COUNT ( * ) ) col2
----
41

query I rowsort
SELECT ALL 85 * + 17 + - 44 AS col2
----
1401

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL 88 * + + COUNT( * ) * - 70 * - 47 col2
----
289520

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL 88 * + + COUNT ( * ) * - 70 * - 47 col2
----
289520

query I rowsort
SELECT ( + 36 ) * 95 + + - 91
----
3329

query I rowsort
SELECT ALL 22 * - 1 * - 50 + - - 73 + + 85 * 64 AS col1
----
6613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8931
SELECT CASE CASE - 80 WHEN COUNT( * ) * - 53 - - ( 81 ) / - + COUNT( * ) + 52 * + 50 - - CAST( NULL AS SIGNED ) THEN - 82 * 91 END WHEN - - 81 + - 75 THEN - 25 END * + 83 * + 57 / + 24 + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT CASE CASE - 80 WHEN COUNT ( * ) * - 53 - - ( 81 ) / - + COUNT ( * ) + 52 * + 50 - - CAST ( NULL AS INTEGER ) THEN - 82 * 91 END WHEN - - 81 + - 75 THEN - 25 END * + 83 * + 57 / + 24 + + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ( + ( - 55 ) ) * + SUM( DISTINCT + ( 14 ) )
----
-770

skipif mysql # not compatible
query I rowsort label-8932
SELECT ( + ( - 55 ) ) * + SUM ( DISTINCT + ( 14 ) )
----
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL COUNT( * ) * 34 + + 45
----
79

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL COUNT ( * ) * 34 + + 45
----
79

query I rowsort
SELECT + 40 + - 66 AS col1
----
-26

query I rowsort
SELECT - 46 - + 58
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT MAX( DISTINCT 13 )
----
13

skipif mysql # not compatible
query I rowsort label-8936
SELECT MAX ( DISTINCT 13 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8937
SELECT + 53 * CAST( + 8 AS SIGNED ) + COUNT( * ) AS col0
----
425

skipif mysql # not compatible
query I rowsort label-8937
SELECT + 53 * CAST ( + 8 AS INTEGER ) + COUNT ( * ) AS col0
----
425

query I rowsort
SELECT ALL NULLIF ( + 81, + 29 * - 83 ) + - 69 * - 34 AS col2
----
2427

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8939
SELECT + CAST( NULL AS DECIMAL ) * 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8939
SELECT + CAST ( NULL AS REAL ) * 37 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8940
SELECT ALL - 47 + + 78 DIV - 39
----
-49

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL - 47 + + 78 / - 39
----
-49

query I rowsort
SELECT 10 * + 62 + - 57 * + 46
----
-2002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8942
SELECT DISTINCT MAX( ALL 87 ) DIV - 63
----
-1

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT MAX ( ALL 87 ) / - 63
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT DISTINCT 33 + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT 33 + COUNT ( * )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8944
SELECT + CAST( + ( - 71 ) AS SIGNED ) * 88
----
-6248

skipif mysql # not compatible
query I rowsort label-8944
SELECT + CAST ( + ( - 71 ) AS INTEGER ) * 88
----
-6248

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT NULLIF ( COUNT( * ), - 31 * - COUNT( ALL COALESCE ( + 1, 23 ) ) + 66 ) * + MAX( 88 * - 2 ) AS col2
----
-176

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT NULLIF ( COUNT ( * ), - 31 * - COUNT ( ALL COALESCE ( + 1, 23 ) ) + 66 ) * + MAX ( 88 * - 2 ) AS col2
----
-176

query I rowsort
SELECT ALL 68 - 7 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT - COALESCE ( - CASE - COUNT( DISTINCT 45 ) WHEN 76 / ( + ( 39 ) * NULLIF ( + 49, 76 ) ) THEN + COALESCE ( + 32, - COUNT( * ) ) * 49 - + 16 END, + 27, + SUM( ALL - 41 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-8947
SELECT - COALESCE ( - CASE - COUNT ( DISTINCT 45 ) WHEN 76 / ( + ( 39 ) * NULLIF ( + 49, 76 ) ) THEN + COALESCE ( + 32, - COUNT ( * ) ) * 49 - + 16 END, + 27, + SUM ( ALL - 41 ) )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT + 50 DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8948
SELECT + 50 / 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ALL COUNT( ALL + 48 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL COUNT ( ALL + 48 ) AS col0
----
1

query I rowsort
SELECT ALL - 48 - + 35 * 35
----
-1273

query I rowsort
SELECT - 37 + 44 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT ALL SUM( + 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL SUM ( + 73 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT - COUNT( * ) + + COUNT( + 55 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT - COUNT ( * ) + + COUNT ( + 55 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT ALL SUM( + 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL SUM ( + 76 ) AS col0
----
76

query I rowsort
SELECT - 90 + 94 AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT + 1 + - CAST( - 79 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-8956
SELECT + 1 + - CAST ( - 79 AS INTEGER )
----
80

query I rowsort
SELECT - 60 * 36
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT - CASE - 60 WHEN + COUNT( * ) / - 9 + 20 THEN NULL ELSE 90 END * + COUNT( * ) col1
----
-90

skipif mysql # not compatible
query I rowsort label-8958
SELECT - CASE - 60 WHEN + COUNT ( * ) / - 9 + 20 THEN NULL ELSE 90 END * + COUNT ( * ) col1
----
-90

query I rowsort
SELECT - 78 + 8 AS col1
----
-70

query I rowsort
SELECT DISTINCT + 67 * - 97 AS col2
----
-6499

query I rowsort
SELECT ALL NULLIF ( - 27, + 45 * ( 3 ) ) AS col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT DISTINCT + 58 * CASE CAST( 62 AS SIGNED ) WHEN - AVG ( DISTINCT 74 ) / + 17 THEN + 60 WHEN + 63 THEN - ( ( + CAST( NULL AS SIGNED ) ) ) + 3 ELSE + 22 END col2
----
1276

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT + 58 * CASE CAST ( 62 AS INTEGER ) WHEN - AVG ( DISTINCT 74 ) / + 17 THEN + 60 WHEN + 63 THEN - ( ( + CAST ( NULL AS INTEGER ) ) ) + 3 ELSE + 22 END col2
----
1276

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL SUM( - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL SUM ( - 23 ) AS col0
----
-23

query I rowsort
SELECT - NULLIF ( 58, - 63 + 79 ) * ( 81 + 60 * 24 ) col2
----
-88218

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL + 40 + MAX( DISTINCT ( 83 ) )
----
123

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL + 40 + MAX ( DISTINCT ( 83 ) )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT DISTINCT + CASE - COALESCE ( + COUNT( * ), 93 - 99, + COUNT( * ) ) WHEN 67 * 83 THEN - 56 + ( - 86 ) * - 70 ELSE NULL END * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT + CASE - COALESCE ( + COUNT ( * ), 93 - 99, + COUNT ( * ) ) WHEN 67 * 83 THEN - 56 + ( - 86 ) * - 70 ELSE NULL END * + 26
----
NULL

query I rowsort
SELECT ALL - 13 + 11 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT - COUNT( * ) + - SUM( DISTINCT 31 )
----
-32

skipif mysql # not compatible
query I rowsort label-8968
SELECT - COUNT ( * ) + - SUM ( DISTINCT 31 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8969
SELECT ALL 18 DIV 98 + - ( COALESCE ( + CAST( + COUNT( * ) AS SIGNED ), + 4 ) + + 38 ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL 18 / 98 + - ( COALESCE ( + CAST ( + COUNT ( * ) AS INTEGER ), + 4 ) + + 38 ) col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8970
SELECT ALL ( CAST( NULL AS SIGNED ) ) / + 15 + - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL ( CAST ( NULL AS INTEGER ) ) / + 15 + - 57 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( ( 40 ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT - 64 * + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-8972
SELECT - 64 * + COUNT ( * )
----
-64

query I rowsort
SELECT + 70 + 74 * + ( 90 * 0 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8974
SELECT ALL 76 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL 76 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT - MAX( ALL - 87 ) * 4 + + ( + 41 ) * 71
----
3259

skipif mysql # not compatible
query I rowsort label-8975
SELECT - MAX ( ALL - 87 ) * 4 + + ( + 41 ) * 71
----
3259

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8976
SELECT DISTINCT - 13 * + CASE - 12 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 94 THEN 69 * 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8976
SELECT DISTINCT - 13 * + CASE - 12 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 94 THEN 69 * 3 ELSE NULL END
----
NULL

query I rowsort
SELECT + 91 * - 24 AS col2
----
-2184

query I rowsort
SELECT ALL 31 * - 59
----
-1829

query I rowsort
SELECT ALL 30 * - 92 - + 89
----
-2849

query I rowsort
SELECT - + 30 - 45 col2
----
-75

query I rowsort
SELECT + + 25 * 34
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT CASE COUNT( * ) WHEN + 5 + 64 THEN + 0 + 68 WHEN 21 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT CASE COUNT ( * ) WHEN + 5 + 64 THEN + 0 + 68 WHEN 21 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + + ( 74 ) AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT DISTINCT + 37 DIV - 28 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT + 37 / - 28 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT + 21 - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT + 21 - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL - 4 * ( SUM( 89 ) )
----
-356

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL - 4 * ( SUM ( 89 ) )
----
-356

query I rowsort
SELECT + - 98 * 87
----
-8526

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT ALL 55 * - - COALESCE ( 37, - ( 18 ) * - ( COUNT( * ) + 57 ) )
----
2035

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL 55 * - - COALESCE ( 37, - ( 18 ) * - ( COUNT ( * ) + 57 ) )
----
2035

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT MAX( + + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-8989
SELECT MAX ( + + 76 )
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT - 66 DIV + - COALESCE ( + 35, + 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8990
SELECT - 66 / + - COALESCE ( + 35, + 52 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT ALL 72 * COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL 72 * COUNT ( * ) AS col1
----
72

query I rowsort
SELECT + 78 * 69 * - 1 col0
----
-5382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8993
SELECT + 37 + 58 + COUNT( * ) * NULLIF ( 19 + + 32, + CAST( NULL AS SIGNED ) / 93 ) AS col0
----
146

skipif mysql # not compatible
query I rowsort label-8993
SELECT + 37 + 58 + COUNT ( * ) * NULLIF ( 19 + + 32, + CAST ( NULL AS INTEGER ) / 93 ) AS col0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL 48 * + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL 48 * + + COUNT ( * )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8995
SELECT - CAST( - 82 AS SIGNED ) col1
----
82

skipif mysql # not compatible
query I rowsort label-8995
SELECT - CAST ( - 82 AS INTEGER ) col1
----
82

query I rowsort
SELECT DISTINCT + 72 * 68
----
4896

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT + 30 DIV - + 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8997
SELECT + 30 / - + 40 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL ( MAX( DISTINCT 58 ) ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL ( MAX ( DISTINCT 58 ) ) AS col0
----
58

query I rowsort
SELECT DISTINCT ( ( ( - 38 ) ) ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT ALL - MIN( ALL + + 48 ) + - 42 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL - MIN ( ALL + + 48 ) + - 42 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT DISTINCT + 27 + - 25 + COUNT( 82 ) col1
----
3

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT + 27 + - 25 + COUNT ( 82 ) col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL NULLIF ( 41, + ( - CASE - COALESCE ( 42, + 72 / 20, 3 + - 34 ) WHEN - COALESCE ( - 58, + 92 * 60 ) * + 1 + + COUNT( * ) THEN NULL WHEN COALESCE ( 10, ( + COUNT( * ) ), 31 ) THEN COUNT( * ) WHEN + 42 THEN NULL END ) * COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL NULLIF ( 41, + ( - CASE - COALESCE ( 42, + 72 / 20, 3 + - 34 ) WHEN - COALESCE ( - 58, + 92 * 60 ) * + 1 + + COUNT ( * ) THEN NULL WHEN COALESCE ( 10, ( + COUNT ( * ) ), 31 ) THEN COUNT ( * ) WHEN + 42 THEN NULL END ) * COUNT ( * ) )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9003
SELECT - 76 * + COALESCE ( 32, + 41, COALESCE ( - ( COUNT( * ) ), 2, COALESCE ( ( CASE - NULLIF ( ( - 4 ), 5 * CAST( 5 AS SIGNED ) ) WHEN + 0 + MIN( CAST( 94 AS SIGNED ) ) THEN 73 WHEN - 54 THEN NULL END ), + 69 DIV ( ( 76 ) ) + COALESCE ( + COUNT( * ), + 90, + COUNT( * ) * 70 ) ), 20 ) + COUNT( * ) ) * CAST( 56 AS SIGNED )
----
-136192

skipif mysql # not compatible
query I rowsort label-9003
SELECT - 76 * + COALESCE ( 32, + 41, COALESCE ( - ( COUNT ( * ) ), 2, COALESCE ( ( CASE - NULLIF ( ( - 4 ), 5 * CAST ( 5 AS INTEGER ) ) WHEN + 0 + MIN ( CAST ( 94 AS INTEGER ) ) THEN 73 WHEN - 54 THEN NULL END ), + 69 / ( ( 76 ) ) + COALESCE ( + COUNT ( * ), + 90, + COUNT ( * ) * 70 ) ), 20 ) + COUNT ( * ) ) * CAST ( 56 AS INTEGER )
----
-136192

query I rowsort
SELECT + 88 + + + 85
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9005
SELECT ALL + 82 + + + CAST( NULL AS SIGNED ) + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL + 82 + + + CAST ( NULL AS INTEGER ) + + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT + MIN( ALL + 95 ) + + 47 AS col1
----
142

skipif mysql # not compatible
query I rowsort label-9006
SELECT + MIN ( ALL + 95 ) + + 47 AS col1
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9007
SELECT ALL - 19 * + MAX( DISTINCT - 39 ) DIV COUNT( * ) col0
----
741

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL - 19 * + MAX ( DISTINCT - 39 ) / COUNT ( * ) col0
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT 81 * + + ( + COUNT( * ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9008
SELECT 81 * + + ( + COUNT ( * ) ) AS col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT DISTINCT 64 DIV + 63
----
1

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT 64 / + 63
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT DISTINCT + - COUNT( * ) - - + 22 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT + - COUNT ( * ) - - + 22 AS col1
----
21

query I rowsort
SELECT + 89 + 81 + - 66 * 76 AS col1
----
-4846

query I rowsort
SELECT ALL + + 91 - + + 73 AS col2
----
18

query I rowsort
SELECT + - ( - ( 55 ) )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT + COALESCE ( COUNT( + 84 ), 38 * 82 + + 29 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9014
SELECT + COALESCE ( COUNT ( + 84 ), 38 * 82 + + 29 ) * COUNT ( * )
----
1

query I rowsort
SELECT 71 * + 98 + 13 * - ( 30 ) + 9 * 89
----
7369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9016
SELECT COUNT( ALL 72 ) DIV - 95 + + 47
----
47

skipif mysql # not compatible
query I rowsort label-9016
SELECT COUNT ( ALL 72 ) / - 95 + + 47
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9017
SELECT 23 * NULLIF ( - 23, 56 ) + + CAST( - ( 35 ) + 1 * COUNT( * ) AS SIGNED )
----
-563

skipif mysql # not compatible
query I rowsort label-9017
SELECT 23 * NULLIF ( - 23, 56 ) + + CAST ( - ( 35 ) + 1 * COUNT ( * ) AS INTEGER )
----
-563

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL - - MIN( ALL + 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL - - MIN ( ALL + 28 ) AS col0
----
28

query I rowsort
SELECT + 56 + 57
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9020
SELECT - - CAST( 30 AS SIGNED ) * + 45 - - 84 * 38
----
4542

skipif mysql # not compatible
query I rowsort label-9020
SELECT - - CAST ( 30 AS INTEGER ) * + 45 - - 84 * 38
----
4542

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT NULLIF ( - + 24, + 31 * COALESCE ( + SUM( DISTINCT + 43 ), 90 + 52 ) ) * 94 + + 70 AS col1
----
-2186

skipif mysql # not compatible
query I rowsort label-9021
SELECT NULLIF ( - + 24, + 31 * COALESCE ( + SUM ( DISTINCT + 43 ), 90 + 52 ) ) * 94 + + 70 AS col1
----
-2186

onlyif mysql # DIV for integer division: 
query I rowsort label-9022
SELECT 2 DIV + 95 * 73 + 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9022
SELECT 2 / + 95 * 73 + 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT 48 * - - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-9023
SELECT 48 * - - COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL - 8 * - + 13 - 39 * COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL - 8 * - + 13 - 39 * COUNT ( * )
----
65

query I rowsort
SELECT ALL - ( + 22 )
----
-22

query I rowsort
SELECT 28 * + - 24
----
-672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9027
SELECT - COALESCE ( + ( - 56 ), 46 + 22 * + COUNT( * ) ) * - 10 + + COUNT( * ) DIV - 88
----
-560

skipif mysql # not compatible
query I rowsort label-9027
SELECT - COALESCE ( + ( - 56 ), 46 + 22 * + COUNT ( * ) ) * - 10 + + COUNT ( * ) / - 88
----
-560

query I rowsort
SELECT 40 + - 46 + - + 2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9029
SELECT 55 AS col1, COUNT( * )
----
55
1

skipif mysql # not compatible
query II rowsort label-9029
SELECT 55 AS col1, COUNT ( * )
----
55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT DISTINCT - ( + COUNT( * ) ) * + + 99 * COUNT( * ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT - ( + COUNT ( * ) ) * + + 99 * COUNT ( * ) AS col1
----
-99

query I rowsort
SELECT ALL 1 + + + 34
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9032
SELECT DISTINCT 84, + 18 DIV COUNT( * ) col0
----
84
18

skipif mysql # not compatible
query II rowsort label-9032
SELECT DISTINCT 84, + 18 / COUNT ( * ) col0
----
84
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL 18 + - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL 18 + - COUNT ( * )
----
17

query I rowsort
SELECT 66 + - - 26 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT DISTINCT 30 + - 54 * + + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT 30 + - 54 * + + COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-9036
SELECT - 44, - 25 * COUNT( * ) AS col0
----
-44
-25

skipif mysql # not compatible
query II rowsort label-9036
SELECT - 44, - 25 * COUNT ( * ) AS col0
----
-44
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT SUM( DISTINCT 82 ) + - 91 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9037
SELECT SUM ( DISTINCT 82 ) + - 91 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT COUNT( ALL ( + 5 ) ) * 34 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9038
SELECT COUNT ( ALL ( + 5 ) ) * 34 AS col2
----
34

query I rowsort
SELECT DISTINCT 0 * - 99 AS col1
----
0

query I rowsort
SELECT 65 * - - 68
----
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT 1 + + ( + COALESCE ( + 89, + MIN( DISTINCT 2 ) * - 91 ) ) - MIN( 29 ) * + 35 * + 61
----
-61825

skipif mysql # not compatible
query I rowsort label-9041
SELECT 1 + + ( + COALESCE ( + 89, + MIN ( DISTINCT 2 ) * - 91 ) ) - MIN ( 29 ) * + 35 * + 61
----
-61825

query I rowsort
SELECT 4 * - 35
----
-140

query I rowsort
SELECT DISTINCT 94 * + 5 AS col2
----
470

query I rowsort
SELECT ALL 52 - - - 67 * - 36
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT DISTINCT 64 * - ( ( COUNT( * ) ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT 64 * - ( ( COUNT ( * ) ) ) AS col0
----
-64

query I rowsort
SELECT ALL 23 * - + 22 AS col0
----
-506

query I rowsort
SELECT 90 + - ( + + 84 ) col0
----
6

query I rowsort
SELECT ( ( - 39 ) ) * 56
----
-2184

query I rowsort
SELECT DISTINCT 58 * 39
----
2262

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9050
SELECT ALL 16 - CASE - - 3 WHEN 75 THEN - AVG ( ALL + 2 ) * AVG ( ALL - 32 ) + + 48 ELSE + 73 * MIN( 97 ) END DIV MAX( - 99 )
----
87

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL 16 - CASE - - 3 WHEN 75 THEN - AVG ( ALL + 2 ) * AVG ( ALL - 32 ) + + 48 ELSE + 73 * MIN ( 97 ) END / MAX ( - 99 )
----
87

query I rowsort
SELECT ALL - + ( 68 )
----
-68

query II rowsort
SELECT + + 14 AS col0, 18
----
14
18

query I rowsort
SELECT - 13 * - - 88
----
-1144

query I rowsort
SELECT 7 * - 91 AS col1
----
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT DISTINCT - SUM( ALL 82 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT - SUM ( ALL 82 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9056
SELECT 27 AS col1, + 32 + + COUNT( ALL - 57 ) AS col2
----
27
33

skipif mysql # not compatible
query II rowsort label-9056
SELECT 27 AS col1, + 32 + + COUNT ( ALL - 57 ) AS col2
----
27
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT 86 * + ( + MAX( 31 ) ) - - 72 * 44
----
5834

skipif mysql # not compatible
query I rowsort label-9057
SELECT 86 * + ( + MAX ( 31 ) ) - - 72 * 44
----
5834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9058
SELECT ALL 37 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL 37 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - ( - - 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT DISTINCT - - 50 * - + MAX( - NULLIF ( 81, 74 + - 1 ) ) AS col0
----
4050

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT - - 50 * - + MAX ( - NULLIF ( 81, 74 + - 1 ) ) AS col0
----
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT MAX( + ( 17 ) ) + 66 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-9061
SELECT MAX ( + ( 17 ) ) + 66 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT + 3 * + - COUNT( * ) + 38 * 70
----
2657

skipif mysql # not compatible
query I rowsort label-9062
SELECT + 3 * + - COUNT ( * ) + 38 * 70
----
2657

query II rowsort
SELECT 8 AS col2, - 13
----
8
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9064
SELECT - COUNT( * ) DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-9064
SELECT - COUNT ( * ) / + 74
----
0

query I rowsort
SELECT DISTINCT + ( + 27 ) + 9
----
36

query I rowsort
SELECT ALL + - 8 + 19 col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT - + 63 * + ( 25 ) + NULLIF ( 71, + 64 ) * - COUNT( * ) + 37
----
-1609

skipif mysql # not compatible
query I rowsort label-9067
SELECT - + 63 * + ( 25 ) + NULLIF ( 71, + 64 ) * - COUNT ( * ) + 37
----
-1609

query I rowsort
SELECT 43 + 91
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-9069
SELECT DISTINCT + 99 DIV 27 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT + 99 / 27 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9070
SELECT ALL + CAST( NULL AS SIGNED ) + - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL + CAST ( NULL AS INTEGER ) + - 3 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9071
SELECT MAX( - CAST( NULL AS SIGNED ) ) / 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9071
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) / 51 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 9 + + - 12
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT + 81 * + 33 - - 29 - - + NULLIF ( + COUNT( * ), - 69 + 86 ) AS col2
----
2703

skipif mysql # not compatible
query I rowsort label-9073
SELECT + 81 * + 33 - - 29 - - + NULLIF ( + COUNT ( * ), - 69 + 86 ) AS col2
----
2703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9074
SELECT DISTINCT - 36 * + - 84 AS col0, 66 + - COALESCE ( - CASE - 60 WHEN + 99 DIV ( CAST( 2 AS SIGNED ) ) THEN - 23 ELSE COUNT( * ) DIV CASE CAST( - 9 AS SIGNED ) WHEN - 34 THEN NULL ELSE 64 END END, 28 * ( + 38 DIV - 96 ), - 38 ) + - COUNT( * ) * - 8
----
3024
74

skipif mysql # not compatible
query II rowsort label-9074
SELECT DISTINCT - 36 * + - 84 AS col0, 66 + - COALESCE ( - CASE - 60 WHEN + 99 / ( CAST ( 2 AS INTEGER ) ) THEN - 23 ELSE COUNT ( * ) / CASE CAST ( - 9 AS INTEGER ) WHEN - 34 THEN NULL ELSE 64 END END, 28 * ( + 38 / - 96 ), - 38 ) + - COUNT ( * ) * - 8
----
3024
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9075
SELECT ALL CASE - 78 WHEN ( - - 51 ) + 21 THEN NULL WHEN CAST( 44 AS SIGNED ) THEN - 74 * 79 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL CASE - 78 WHEN ( - - 51 ) + 21 THEN NULL WHEN CAST ( 44 AS INTEGER ) THEN - 74 * 79 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT 59 * 44 * MIN( - + 54 ) AS col0
----
-140184

skipif mysql # not compatible
query I rowsort label-9076
SELECT 59 * 44 * MIN ( - + 54 ) AS col0
----
-140184

query II rowsort
SELECT ALL 59 * 46 col0, + 7
----
2714
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT DISTINCT COUNT( * ) + + ( - 62 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT COUNT ( * ) + + ( - 62 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT - COUNT( - - 73 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9079
SELECT - COUNT ( - - 73 ) AS col1
----
-1

query I rowsort
SELECT ALL + 19 * - - 94 AS col0
----
1786

query II rowsort
SELECT DISTINCT - 65 - - 88, 99 AS col2
----
23
99

query I rowsort
SELECT + 70 * 40 col2
----
2800

onlyif mysql # DIV for integer division: 
query I rowsort label-9083
SELECT + 15 DIV + 10 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9083
SELECT + 15 / + 10 AS col0
----
1

query I rowsort
SELECT ALL 54 * + 24 + - 53 AS col2
----
1243

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT - + ( + + MIN( ALL + 33 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9085
SELECT - + ( + + MIN ( ALL + 33 ) ) AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9086
SELECT ALL - COUNT( * ) * 2 AS col2, CAST( - - 97 AS SIGNED ) AS col0
----
-2
97

skipif mysql # not compatible
query II rowsort label-9086
SELECT ALL - COUNT ( * ) * 2 AS col2, CAST ( - - 97 AS INTEGER ) AS col0
----
-2
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9087
SELECT - + COALESCE ( + 39, 82 ) DIV + 19 * COUNT( * ) + 87
----
85

skipif mysql # not compatible
query I rowsort label-9087
SELECT - + COALESCE ( + 39, 82 ) / + 19 * COUNT ( * ) + 87
----
85

query I rowsort
SELECT + - 19 * - + 57
----
1083

query I rowsort
SELECT ALL ( + + 23 ) * + - ( + - 73 )
----
1679

query I rowsort
SELECT - 87 + 49 AS col2
----
-38

query I rowsort
SELECT DISTINCT + - 16 * - - 63 + - COALESCE ( - + 25, - 11 ) AS col0
----
-983

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT + 54 + - - 6 * - - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9092
SELECT + 54 + - - 6 * - - COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT ALL + + MIN( 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL + + MIN ( 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT 31 * COUNT( * ) * 42 * + 36 * 84 + ( + 67 )
----
3937315

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT 31 * COUNT ( * ) * 42 * + 36 * 84 + ( + 67 )
----
3937315

query I rowsort
SELECT DISTINCT + 73 * - 92 + - + 13 col1
----
-6729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9096
SELECT ALL + 22 * + COALESCE ( - + SUM( ALL + + 24 ), 63 DIV 61 ) AS col1
----
-528

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL + 22 * + COALESCE ( - + SUM ( ALL + + 24 ), 63 / 61 ) AS col1
----
-528

query I rowsort
SELECT - 60 + + COALESCE ( - + 64, + 60 - - - 6 )
----
-124

query I rowsort
SELECT - COALESCE ( + - 68, - 77 ) * 35 + + 41
----
2421

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT + COUNT( 98 ) * - 43 + + + CASE 8 WHEN 88 + 48 * - 95 THEN + COUNT( * ) WHEN 5 + 74 THEN 61 * + COUNT( * ) END - + 84 * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9099
SELECT + COUNT ( 98 ) * - 43 + + + CASE 8 WHEN 88 + 48 * - 95 THEN + COUNT ( * ) WHEN 5 + 74 THEN 61 * + COUNT ( * ) END - + 84 * + 24
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9100
SELECT ALL + 60 DIV + + 95
----
0

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL + 60 / + + 95
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT - CAST( NULL AS SIGNED ) * - - ( + 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT - CAST ( NULL AS INTEGER ) * - - ( + 3 )
----
NULL

query I rowsort
SELECT ALL - 51 * 97 * 84 AS col1
----
-415548

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT DISTINCT - 78 DIV 98 * 9
----
0

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT - 78 / 98 * 9
----
0

query I rowsort
SELECT - 11 + - 50 AS col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9105
SELECT - 70 DIV - NULLIF ( - 37, - COUNT( * ) * + + 82 DIV 26 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9105
SELECT - 70 / - NULLIF ( - 37, - COUNT ( * ) * + + 82 / 26 ) AS col2
----
-1

query I rowsort
SELECT ALL ( + - 10 )
----
-10

query I rowsort
SELECT + 64 + + 55
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-9108
SELECT - COUNT( * ), - CASE + 23 WHEN 78 + 39 + - 40 THEN 7 + 39 END AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9108
SELECT - COUNT ( * ), - CASE + 23 WHEN 78 + 39 + - 40 THEN 7 + 39 END AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT ALL CASE - COUNT( + 0 ) WHEN + 65 THEN - COUNT( * ) * COUNT( * ) ELSE - ( - 41 ) END AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL CASE - COUNT ( + 0 ) WHEN + 65 THEN - COUNT ( * ) * COUNT ( * ) ELSE - ( - 41 ) END AS col2
----
41

query I rowsort
SELECT - + 97 * 27 * 49
----
-128331

query I rowsort
SELECT ALL + 92 * - - 72 * - - ( - 71 ) col2
----
-470304

query I rowsort
SELECT ALL 75 + + CASE - 14 WHEN 72 THEN - + 90 * 33 END AS col1
----
NULL

query II rowsort
SELECT 25 AS col0, COALESCE ( - - 56, 93 ) AS col0
----
25
56

query I rowsort
SELECT ALL 88 + ( - 88 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9115
SELECT - - 45 - - 15 DIV + 59 AS col2, MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-9115
SELECT - - 45 - - 15 / + 59 AS col2, MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT - + 71 * + 79 * - + 33 + + - ( + 76 ) + - COUNT( DISTINCT 39 + - ( 69 ) * 63 ) * + 73
----
184948

skipif mysql # not compatible
query I rowsort label-9116
SELECT - + 71 * + 79 * - + 33 + + - ( + 76 ) + - COUNT ( DISTINCT 39 + - ( 69 ) * 63 ) * + 73
----
184948

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT + CASE + + NULLIF ( 28, + MIN( + + 68 ) ) WHEN - 11 - + ( + 66 + 21 ) * + 25 THEN + 33 + + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9117
SELECT + CASE + + NULLIF ( 28, + MIN ( + + 68 ) ) WHEN - 11 - + ( + 66 + 21 ) * + 25 THEN + 33 + + 34 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT + CASE - - 24 WHEN 10 / + COALESCE ( + - MAX( CASE 54 WHEN - COALESCE ( + 9, 63 ) - 66 THEN 86 WHEN 11 THEN 35 WHEN + 39 THEN 75 ELSE NULL END ), 54 * 43 ) - ( + COUNT( * ) + - MAX( + 80 ) ) THEN NULL WHEN 18 THEN + COALESCE ( MIN( - ( 47 ) ), 61 * 19 ) / 15 + 28 ELSE - 50 END
----
-50

skipif mysql # not compatible
query I rowsort label-9118
SELECT + CASE - - 24 WHEN 10 / + COALESCE ( + - MAX ( CASE 54 WHEN - COALESCE ( + 9, 63 ) - 66 THEN 86 WHEN 11 THEN 35 WHEN + 39 THEN 75 ELSE NULL END ), 54 * 43 ) - ( + COUNT ( * ) + - MAX ( + 80 ) ) THEN NULL WHEN 18 THEN + COALESCE ( MIN ( - ( 47 ) ), 61 * 19 ) / 15 + 28 ELSE - 50 END
----
-50

query II rowsort
SELECT ALL + + 77 AS col1, + 59 AS col2
----
77
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9120
SELECT + + COUNT( * ) DIV - ( - 47 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9120
SELECT + + COUNT ( * ) / - ( - 47 ) AS col0
----
0

query I rowsort
SELECT + 60 * 70
----
4200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9122
SELECT DISTINCT + - 0 col0, + ( CAST( NULL AS SIGNED ) ) * 34 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9122
SELECT DISTINCT + - 0 col0, + ( CAST ( NULL AS INTEGER ) ) * 34 AS col1
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9123
SELECT ALL 29 / + 30 + - 62 * COUNT( * ) + - MIN( DISTINCT - 7 ) + ( - 20 - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL 29 / + 30 + - 62 * COUNT ( * ) + - MIN ( DISTINCT - 7 ) + ( - 20 - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 74 - - 39 + - 88 * + 44
----
-3759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9125
SELECT ALL NULLIF ( + 12, + ( + CASE + + 64 WHEN 45 + + 8 * - 30 THEN NULL ELSE - COUNT( * ) * + 67 END ) ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL NULLIF ( + 12, + ( + CASE + + 64 WHEN 45 + + 8 * - 30 THEN NULL ELSE - COUNT ( * ) * + 67 END ) ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT ALL - 19 / - 86 * + 42 * 74 * + CAST( NULL AS SIGNED ) + 20 + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL - 19 / - 86 * + 42 * 74 * + CAST ( NULL AS INTEGER ) + 20 + + 28
----
NULL

query II rowsort
SELECT + 96 * + 93, + 32 AS col0
----
8928
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ( - - MIN( ALL - CASE + 33 WHEN - - 4 THEN 10 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT ( - - MIN ( ALL - CASE + 33 WHEN - - 4 THEN 10 ELSE NULL END ) )
----
NULL

query II rowsort
SELECT ( + 17 ), 80 col1
----
17
80

query I rowsort
SELECT 59 + - 32 + - 63 * + + ( 58 ) AS col0
----
-3627

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT + 73 * - 45 + + 99 + + SUM( ALL + 17 ) - 80 AS col1
----
-3249

skipif mysql # not compatible
query I rowsort label-9131
SELECT + 73 * - 45 + + 99 + + SUM ( ALL + 17 ) - 80 AS col1
----
-3249

query I rowsort
SELECT 4 * 72 * 63 * - 4
----
-72576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT ALL - NULLIF ( 67, + CAST( NULL AS SIGNED ) ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL - NULLIF ( 67, + CAST ( NULL AS INTEGER ) ) col1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9134
SELECT + 87 AS col0, - CAST( NULL AS SIGNED )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-9134
SELECT + 87 AS col0, - CAST ( NULL AS INTEGER )
----
87
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9135
SELECT + 42 AS col0, + COUNT( * ) AS col0
----
42
1

skipif mysql # not compatible
query II rowsort label-9135
SELECT + 42 AS col0, + COUNT ( * ) AS col0
----
42
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ALL + CASE - - 93 WHEN + 28 THEN + 89 WHEN 14 THEN NULL END * - + CASE 95 WHEN + 15 * - 17 THEN + ( 38 ) - NULLIF ( 32 - ( MIN( DISTINCT 46 ) + MIN( - 91 ) ), + 16 - - 4 ) * ( - COUNT( * ) - - CASE + 49 WHEN + 4 * + 11 THEN NULL ELSE + 50 END ) ELSE NULL END * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL + CASE - - 93 WHEN + 28 THEN + 89 WHEN 14 THEN NULL END * - + CASE 95 WHEN + 15 * - 17 THEN + ( 38 ) - NULLIF ( 32 - ( MIN ( DISTINCT 46 ) + MIN ( - 91 ) ), + 16 - - 4 ) * ( - COUNT ( * ) - - CASE + 49 WHEN + 4 * + 11 THEN NULL ELSE + 50 END ) ELSE NULL END * 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT 94 * - + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-9137
SELECT 94 * - + COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT ALL COUNT( * ) * - + MAX( 94 ) * - 84 col0
----
7896

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL COUNT ( * ) * - + MAX ( 94 ) * - 84 col0
----
7896

onlyif mysql # aggregate syntax: 
query II rowsort label-9139
SELECT - 52 col1, 74 * + COUNT( * ) AS col2
----
-52
74

skipif mysql # not compatible
query II rowsort label-9139
SELECT - 52 col1, 74 * + COUNT ( * ) AS col2
----
-52
74

query II rowsort
SELECT 14 AS col1, 95
----
14
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9141
SELECT 84 DIV - + 57 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9141
SELECT 84 / - + 57 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT 19 * + + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-9142
SELECT 19 * + + COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9143
SELECT 92, COUNT( ALL - 49 ) * + + 32 * - - 6 - + - ( + COUNT( ALL + 50 ) ) AS col1
----
92
193

skipif mysql # not compatible
query II rowsort label-9143
SELECT 92, COUNT ( ALL - 49 ) * + + 32 * - - 6 - + - ( + COUNT ( ALL + 50 ) ) AS col1
----
92
193

query II rowsort
SELECT 95 AS col1, + 39 AS col2
----
95
39

query II rowsort
SELECT 30 AS col0, 44 col0
----
30
44

query I rowsort
SELECT - 6 * 73
----
-438

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL + COALESCE ( + COUNT( * ), - - NULLIF ( 21, - + 41 + COUNT( * ) ) * 74, 77 ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL + COALESCE ( + COUNT ( * ), - - NULLIF ( 21, - + 41 + COUNT ( * ) ) * 74, 77 ) + + 76
----
77

query I rowsort
SELECT 23 - 47 AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9149
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), 39 )
----
39

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT + ( - + COUNT( * ) ) * 26 * - 27
----
702

skipif mysql # not compatible
query I rowsort label-9150
SELECT + ( - + COUNT ( * ) ) * 26 * - 27
----
702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9151
SELECT ALL + 80 + + 59 * 25 + CAST( NULL AS SIGNED ) - COUNT( * ) + + - 64 * 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL + 80 + + 59 * 25 + CAST ( NULL AS INTEGER ) - COUNT ( * ) + + - 64 * 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT SUM( + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-9152
SELECT SUM ( + 55 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9153
SELECT 92 - + 7 + + COUNT( * ) + - - 29 + COUNT( + 22 ) * 4 DIV 41 DIV - 74 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-9153
SELECT 92 - + 7 + + COUNT ( * ) + - - 29 + COUNT ( + 22 ) * 4 / 41 / - 74 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL + 45 + + COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL + 45 + + COUNT ( * ) AS col1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9155
SELECT + COUNT( * ) DIV + 65 + 28 * + 84 * + COUNT( * )
----
2352

skipif mysql # not compatible
query I rowsort label-9155
SELECT + COUNT ( * ) / + 65 + 28 * + 84 * + COUNT ( * )
----
2352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9156
SELECT ALL ( - - 89 ) + - CAST( NULL AS SIGNED ) + - - COUNT( * ), + 56 + + 39 AS col2
----
NULL
95

skipif mysql # not compatible
query II rowsort label-9156
SELECT ALL ( - - 89 ) + - CAST ( NULL AS INTEGER ) + - - COUNT ( * ), + 56 + + 39 AS col2
----
NULL
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9157
SELECT + 72 + COUNT( * ) + CAST( + + COUNT( - 26 ) AS SIGNED ) DIV 28 DIV + 18 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-9157
SELECT + 72 + COUNT ( * ) + CAST ( + + COUNT ( - 26 ) AS INTEGER ) / 28 / + 18 AS col1
----
73

query II rowsort
SELECT 82 AS col2, + 67 * + 34
----
82
2278

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT - 5 * - ( 62 ) + - COALESCE ( MIN( - 44 ), - 25 * - 11 ) * - 84
----
-3386

skipif mysql # not compatible
query I rowsort label-9159
SELECT - 5 * - ( 62 ) + - COALESCE ( MIN ( - 44 ), - 25 * - 11 ) * - 84
----
-3386

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL - 95 - + MAX( 18 ) AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL - 95 - + MAX ( 18 ) AS col2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT 85 * - 38 * MAX( ALL 89 ) AS col1
----
-287470

skipif mysql # not compatible
query I rowsort label-9161
SELECT 85 * - 38 * MAX ( ALL 89 ) AS col1
----
-287470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9162
SELECT + 70 * + 94 + + - CAST( NULL AS SIGNED ) * - MAX( 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT + 70 * + 94 + + - CAST ( NULL AS INTEGER ) * - MAX ( 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT DISTINCT 1 - + - 26 * + + COUNT( * ) - + 55 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT 1 - + - 26 * + + COUNT ( * ) - + 55 AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9164
SELECT 96 DIV 50 + - 39 AS col2, 92 + - 42 * + + 69 * + + NULLIF ( - 19, 61 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2
----
-38
55154

skipif mysql # not compatible
query II rowsort label-9164
SELECT 96 / 50 + - 39 AS col2, 92 + - 42 * + + 69 * + + NULLIF ( - 19, 61 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2
----
-38
55154

query I rowsort
SELECT DISTINCT 54 * + + 28 col2
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT - MAX( DISTINCT + + 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT - MAX ( DISTINCT + + 93 ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT 94 DIV + - 93
----
-1

skipif mysql # not compatible
query I rowsort label-9167
SELECT 94 / + - 93
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL 0 * + + COUNT( - - 8 ) * 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL 0 * + + COUNT ( - - 8 ) * 81 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9169
SELECT CAST( NULL AS SIGNED ) + 29 * - 92 AS col2, - 91 * CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9169
SELECT CAST ( NULL AS INTEGER ) + 29 * - 92 AS col2, - 91 * CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT COUNT( * ) + - - 59 col2
----
60

skipif mysql # not compatible
query I rowsort label-9170
SELECT COUNT ( * ) + - - 59 col2
----
60

query I rowsort
SELECT 25 * NULLIF ( 94, ( - + 60 ) ) + + ( - 69 ) AS col1
----
2281

query I rowsort
SELECT 35 - 15 * + 18 * - 72
----
19475

query I rowsort
SELECT DISTINCT 81 + + 93 * 68 * 23 AS col2
----
145533

onlyif mysql # aggregate syntax: 
query II rowsort label-9174
SELECT ALL - - COUNT( * ) + + 20 AS col0, + 85
----
21
85

skipif mysql # not compatible
query II rowsort label-9174
SELECT ALL - - COUNT ( * ) + + 20 AS col0, + 85
----
21
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9175
SELECT + CAST( NULL AS SIGNED ) + - - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT + CAST ( NULL AS INTEGER ) + - - 76 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 92 + + + ( - 44 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT + COUNT( * ) * 36 * 3 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-9177
SELECT + COUNT ( * ) * 36 * 3 AS col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9178
SELECT + CAST( NULL AS SIGNED ) + + 2, 78 / + + 49 - - 78 + - + 72 - - CAST( NULL AS SIGNED ) + MIN( 93 ) / + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9178
SELECT + CAST ( NULL AS INTEGER ) + + 2, 78 / + + 49 - - 78 + - + 72 - - CAST ( NULL AS INTEGER ) + MIN ( 93 ) / + COUNT ( * )
----
NULL
NULL

query I rowsort
SELECT - 79 * 32 col0
----
-2528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9180
SELECT - 6 DIV - NULLIF ( + + 59, + 45 * + + SUM( 55 ) * ( 9 ) + ( - 57 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9180
SELECT - 6 / - NULLIF ( + + 59, + 45 * + + SUM ( 55 ) * ( 9 ) + ( - 57 ) ) col0
----
0

query I rowsort
SELECT 6 + + + 1 * 39 AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9182
SELECT DISTINCT COALESCE ( - 13, COUNT( * ) + - CAST( NULL AS SIGNED ), - 66 ), - 86 * 21 + 81 AS col0
----
-13
-1725

skipif mysql # not compatible
query II rowsort label-9182
SELECT DISTINCT COALESCE ( - 13, COUNT ( * ) + - CAST ( NULL AS INTEGER ), - 66 ), - 86 * 21 + 81 AS col0
----
-13
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT ALL + MIN( - NULLIF ( + 68, + 85 + - - 46 + 7 / + 81 * - 38 ) ) - 21 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL + MIN ( - NULLIF ( + 68, + 85 + - - 46 + 7 / + 81 * - 38 ) ) - 21 AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9184
SELECT MIN( ALL + 76 ) DIV - 96 + + 69 col2
----
69

skipif mysql # not compatible
query I rowsort label-9184
SELECT MIN ( ALL + 76 ) / - 96 + + 69 col2
----
69

query I rowsort
SELECT DISTINCT + + ( 1 ) * - + 90 - - 60
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9186
SELECT DISTINCT + + 7 DIV 24 * COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT + + 7 / 24 * COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL + - 57 * + + COUNT( * ) * + 73 * 49 + + ( + - 0 ) * + + COALESCE ( 89, - 54 )
----
-203889

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL + - 57 * + + COUNT ( * ) * + 73 * 49 + + ( + - 0 ) * + + COALESCE ( 89, - 54 )
----
-203889

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT - NULLIF ( - 9, 21 + 49 ) - + ( + 50 ) + - COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-9188
SELECT - NULLIF ( - 9, 21 + 49 ) - + ( + 50 ) + - COUNT ( * ) AS col2
----
-42

query I rowsort
SELECT + ( + 19 ) AS col0
----
19

query I rowsort
SELECT - 54 * - 98 * + ( - 54 )
----
-285768

query I rowsort
SELECT ALL - 91 * 93
----
-8463

query II rowsort
SELECT + 71 AS col0, 70 * - + 24 AS col1
----
71
-1680

query I rowsort
SELECT NULLIF ( + 8, NULLIF ( - 79, - 37 ) )
----
8

query I rowsort
SELECT - 18 * + 68
----
-1224

query I rowsort
SELECT ALL - 92 * + 52 * + - 10 * - 25 AS col1
----
-1196000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT + 88 * - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT + 88 * - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9197
SELECT ALL COUNT( * ) * + 17 DIV 16 * COUNT( 22 )
----
1

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL COUNT ( * ) * + 17 / 16 * COUNT ( 22 )
----
1

query I rowsort
SELECT - 52 * + - 94 * - 44 AS col0
----
-215072

query I rowsort
SELECT 38 * 21 + - 18 AS col1
----
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9200
SELECT DISTINCT - CASE + 57 WHEN COUNT( * ) THEN NULL ELSE + 58 + - 15 + + 21 END * + + NULLIF ( - CAST( ( + 29 ) AS SIGNED ), 84 ) * 75 + 70 * 57
----
143190

skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT - CASE + 57 WHEN COUNT ( * ) THEN NULL ELSE + 58 + - 15 + + 21 END * + + NULLIF ( - CAST ( ( + 29 ) AS INTEGER ), 84 ) * 75 + 70 * 57
----
143190

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT ALL CASE + 30 WHEN - + 23 THEN NULL ELSE + 18 END * NULLIF ( - 9, - - COUNT( * ) ) AS col1
----
-162

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL CASE + 30 WHEN - + 23 THEN NULL ELSE + 18 END * NULLIF ( - 9, - - COUNT ( * ) ) AS col1
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL + 30 * - + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL + 30 * - + COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9203
SELECT ALL 17 AS col0, - COUNT( * ) * + + 40 - + - MIN( - - 83 ) AS col2
----
17
43

skipif mysql # not compatible
query II rowsort label-9203
SELECT ALL 17 AS col0, - COUNT ( * ) * + + 40 - + - MIN ( - - 83 ) AS col2
----
17
43

query I rowsort
SELECT DISTINCT 80 + - 38 AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9205
SELECT - + 8 AS col2, 63 * NULLIF ( + - 16, MIN( ALL + 27 ) / - ( 53 ) ) * + 19
----
-8
-19152

skipif mysql # not compatible
query II rowsort label-9205
SELECT - + 8 AS col2, 63 * NULLIF ( + - 16, MIN ( ALL + 27 ) / - ( 53 ) ) * + 19
----
-8
-19152

query I rowsort
SELECT ALL 98 + 37
----
135

query I rowsort
SELECT + - ( + 87 ) - - 41 * + 1
----
-46

query I rowsort
SELECT + 82 + + 15 col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ALL COUNT( - + 93 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL COUNT ( - + 93 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT DISTINCT 26 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT 26 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT ALL - COUNT( ALL + - 20 ) - + NULLIF ( + + ( - - 38 ), + 69 * + 51 * - - 68 )
----
-39

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL - COUNT ( ALL + - 20 ) - + NULLIF ( + + ( - - 38 ), + 69 * + 51 * - - 68 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT ALL - MIN( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL - MIN ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT + 27 - - CAST( + ( - 66 ) AS SIGNED ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9213
SELECT + 27 - - CAST ( + ( - 66 ) AS INTEGER ) AS col1
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9214
SELECT + - 59 * - 66 * - + CASE - + 8 WHEN + 10 * - CAST( 55 AS DECIMAL ) + - 14 + 31 THEN NULL WHEN - 30 THEN 22 * - 41 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT + - 59 * - 66 * - + CASE - + 8 WHEN + 10 * - CAST ( 55 AS REAL ) + - 14 + 31 THEN NULL WHEN - 30 THEN 22 * - 41 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL - COUNT( * ) * + 33 col0
----
-33

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL - COUNT ( * ) * + 33 col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL COUNT( * ) - + NULLIF ( - + CASE 5 WHEN - + 66 THEN - MAX( + 3 ) + 19 / - 74 WHEN + 68 THEN ( - ( 98 ) ) ELSE NULL END, - MAX( - 73 ) ) + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL COUNT ( * ) - + NULLIF ( - + CASE 5 WHEN - + 66 THEN - MAX ( + 3 ) + 19 / - 74 WHEN + 68 THEN ( - ( 98 ) ) ELSE NULL END, - MAX ( - 73 ) ) + 42
----
NULL

query I rowsort
SELECT + ( 51 ) * + 48 AS col0
----
2448

query I rowsort
SELECT + 93 + + + 58
----
151

query I rowsort
SELECT + 98 * - - 94 col1
----
9212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9220
SELECT - CASE + 94 WHEN - 66 * + CAST( NULLIF ( CASE + + 42 WHEN - ( ( - COALESCE ( + 52, + COALESCE ( + 43, + 57, 46 * - 2 ), 14 ) ) ) THEN NULL WHEN - 15 THEN NULL ELSE 33 END, 5 ) AS SIGNED ) THEN 4 * - 13 - - CASE ( 86 ) WHEN + 77 + 3 THEN NULL WHEN - COUNT( * ) * CAST( NULL AS DECIMAL ) THEN - 92 END END * - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT - CASE + 94 WHEN - 66 * + CAST ( NULLIF ( CASE + + 42 WHEN - ( ( - COALESCE ( + 52, + COALESCE ( + 43, + 57, 46 * - 2 ), 14 ) ) ) THEN NULL WHEN - 15 THEN NULL ELSE 33 END, 5 ) AS INTEGER ) THEN 4 * - 13 - - CASE ( 86 ) WHEN + 77 + 3 THEN NULL WHEN - COUNT ( * ) * CAST ( NULL AS REAL ) THEN - 92 END END * - 4 AS col0
----
NULL

query I rowsort
SELECT + ( + 95 ) + - ( 91 )
----
4

query I rowsort
SELECT - + 76 - - - 3
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9223
SELECT + - 7 + - + ( + CASE 50 WHEN - 9 * + CASE 99 WHEN 1 + - 86 * MAX( 38 * 89 + 97 ) THEN NULL WHEN ( + 1 ) * - 50 THEN + MAX( ( 38 ) ) WHEN - 6 * ( + 12 * - 66 ) THEN 50 - + COUNT( * ) END * - 24 + - AVG ( ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) THEN - 96 * + CASE 65 WHEN + 10 THEN - 21 + + 76 / CASE COUNT( * ) WHEN 63 * 63 THEN 39 ELSE NULL END WHEN COUNT( * ) THEN NULL WHEN + 34 * + COUNT( * ) + + 17 THEN NULL ELSE + 76 END WHEN COUNT( * ) THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT + - 7 + - + ( + CASE 50 WHEN - 9 * + CASE 99 WHEN 1 + - 86 * MAX ( 38 * 89 + 97 ) THEN NULL WHEN ( + 1 ) * - 50 THEN + MAX ( ( 38 ) ) WHEN - 6 * ( + 12 * - 66 ) THEN 50 - + COUNT ( * ) END * - 24 + - AVG ( ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) THEN - 96 * + CASE 65 WHEN + 10 THEN - 21 + + 76 / CASE COUNT ( * ) WHEN 63 * 63 THEN 39 ELSE NULL END WHEN COUNT ( * ) THEN NULL WHEN + 34 * + COUNT ( * ) + + 17 THEN NULL ELSE + 76 END WHEN COUNT ( * ) THEN NULL ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 90 * - 5 * - + 3
----
1350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9225
SELECT ALL + 32 DIV + NULLIF ( + + 67, - MIN( + 9 ) * + + 97 - - + 15 - + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL + 32 / + NULLIF ( + + 67, - MIN ( + 9 ) * + + 97 - - + 15 - + 84 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9226
SELECT ALL + 99 DIV - + 20 + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL + 99 / - + 20 + COUNT ( * )
----
-3

query I rowsort
SELECT - 71 + - 44 - + 27 * 50
----
-1465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9228
SELECT CAST( - ( + - 62 ) AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-9228
SELECT CAST ( - ( + - 62 ) AS INTEGER )
----
62

query I rowsort
SELECT DISTINCT + 15 * + + 16
----
240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9230
SELECT ALL + COUNT( * ) DIV 67 + - 73 col2
----
-73

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL + COUNT ( * ) / 67 + - 73 col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL - 72 * + + 61 * 99 * - 54 + + + NULLIF ( 23, - - COALESCE ( + + CASE WHEN NOT ( NULL ) <> ( NULL ) THEN MAX( - 49 ) END, 16 - + 76 ) + 56 ) + + CASE - 20 WHEN COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + 46 END * + 80 * + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL - 72 * + + 61 * 99 * - 54 + + + NULLIF ( 23, - - COALESCE ( + + CASE WHEN NOT ( NULL ) <> ( NULL ) THEN MAX ( - 49 ) END, 16 - + 76 ) + 56 ) + + CASE - 20 WHEN COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + 46 END * + 80 * + 62 AS col2
----
NULL

query I rowsort
SELECT - 11 * 35
----
-385

query I rowsort
SELECT ALL 66 * + + 65 * NULLIF ( 24, CASE - 6 WHEN 36 THEN - - 77 WHEN + 69 THEN + 35 ELSE 62 END * ( - 78 * - 8 ) ) + 98 col2
----
103058

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT ALL + ( COALESCE ( - MIN( DISTINCT - + 74 ), + 75, + MAX( 47 ) - 73 ) ) * - SUM( + ( + 97 ) ) + 24
----
-7154

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL + ( COALESCE ( - MIN ( DISTINCT - + 74 ), + 75, + MAX ( 47 ) - 73 ) ) * - SUM ( + ( + 97 ) ) + 24
----
-7154

query I rowsort
SELECT DISTINCT + CASE - ( 7 ) WHEN - + 16 THEN - - 54 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9236
SELECT ALL + MIN( + 52 ) * 37 + + CAST( - 67 AS SIGNED )
----
1857

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL + MIN ( + 52 ) * 37 + + CAST ( - 67 AS INTEGER )
----
1857

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT + MAX( DISTINCT - + 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9237
SELECT + MAX ( DISTINCT - + 33 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT DISTINCT - 62 * + 25 + + COUNT( * ) AS col0
----
-1549

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT - 62 * + 25 + + COUNT ( * ) AS col0
----
-1549

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9239
SELECT NULLIF ( - 77, 58 * + - CAST( - 19 AS SIGNED ) * 3 + - 63 ), ( - 95 ) * - 68 AS col0
----
-77
6460

skipif mysql # not compatible
query II rowsort label-9239
SELECT NULLIF ( - 77, 58 * + - CAST ( - 19 AS INTEGER ) * 3 + - 63 ), ( - 95 ) * - 68 AS col0
----
-77
6460

query II rowsort
SELECT - 13 * + 32 col0, 3
----
-416
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT - ( + 21 ) - 94 - CASE - 16 WHEN + 79 + + + 99 / - 31 - + 40 * 73 THEN + 13 * 32 - COUNT( * ) WHEN 6 / + 29 + + 40 THEN 59 END * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT - ( + 21 ) - 94 - CASE - 16 WHEN + 79 + + + 99 / - 31 - + 40 * 73 THEN + 13 * 32 - COUNT ( * ) WHEN 6 / + 29 + + 40 THEN 59 END * + 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9242
SELECT DISTINCT - 24 * + ( + 54 ) + COUNT( * ) - - CAST( NULL AS SIGNED ) - 72 - + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT - 24 * + ( + 54 ) + COUNT ( * ) - - CAST ( NULL AS INTEGER ) - 72 - + 39 AS col0
----
NULL

query I rowsort
SELECT ALL - 68 * + - 92 * 77 + + 8 AS col1
----
481720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9244
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) - - 41
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9245
SELECT + COUNT( * ) DIV + - 66 AS col2, 37 AS col2
----
0
37

skipif mysql # not compatible
query II rowsort label-9245
SELECT + COUNT ( * ) / + - 66 AS col2, 37 AS col2
----
0
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT ALL + 66 * + CAST( NULL AS SIGNED ) * - 54 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL + 66 * + CAST ( NULL AS INTEGER ) * - 54 col2
----
NULL

query I rowsort
SELECT ALL 99 * - 54 AS col0
----
-5346

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9248
SELECT COUNT( * ) DIV - - 54 AS col2, - SUM( ALL 46 ) + - 14 * 66
----
0
-970

skipif mysql # not compatible
query II rowsort label-9248
SELECT COUNT ( * ) / - - 54 AS col2, - SUM ( ALL 46 ) + - 14 * 66
----
0
-970

query I rowsort
SELECT + 52 * 40 AS col2
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT COUNT( * ) * - + 55 col2
----
-55

skipif mysql # not compatible
query I rowsort label-9250
SELECT COUNT ( * ) * - + 55 col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT - COUNT( - 28 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9251
SELECT - COUNT ( - 28 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9252
SELECT ALL 84 + - + COUNT( ALL + 24 ) AS col2, COALESCE ( 63, + 35 ) * + + SUM( ALL 4 ) * + 36 + - 21 * 60 + COUNT( + 83 ) AS col0
----
83
7813

skipif mysql # not compatible
query II rowsort label-9252
SELECT ALL 84 + - + COUNT ( ALL + 24 ) AS col2, COALESCE ( 63, + 35 ) * + + SUM ( ALL 4 ) * + 36 + - 21 * 60 + COUNT ( + 83 ) AS col0
----
83
7813

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT DISTINCT COUNT( * ) * 99
----
99

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT COUNT ( * ) * 99
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT CAST( NULL AS SIGNED ) * 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT CAST ( NULL AS INTEGER ) * 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT COUNT( * ) * + + 22 - - 18 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9255
SELECT COUNT ( * ) * + + 22 - - 18 AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9256
SELECT CAST( NULL AS SIGNED ) * - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9256
SELECT CAST ( NULL AS INTEGER ) * - + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT ALL - CASE - 39 WHEN - 1 THEN 96 WHEN + - COUNT( * ) THEN - 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL - CASE - 39 WHEN - 1 THEN 96 WHEN + - COUNT ( * ) THEN - 91 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT COUNT( * ) + 88 + + COALESCE ( - NULLIF ( 57, 88 ), - 15 ) * 56 AS col1
----
-3103

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT COUNT ( * ) + 88 + + COALESCE ( - NULLIF ( 57, 88 ), - 15 ) * 56 AS col1
----
-3103

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT 38 * + - NULLIF ( - + 53, + - 79 ) * 51, - COUNT( * ) AS col0
----
102714
-1

skipif mysql # not compatible
query II rowsort label-9259
SELECT 38 * + - NULLIF ( - + 53, + - 79 ) * 51, - COUNT ( * ) AS col0
----
102714
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9260
SELECT DISTINCT 22 DIV - + COUNT( DISTINCT - 41 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT 22 / - + COUNT ( DISTINCT - 41 ) AS col1
----
-22

query I rowsort
SELECT 54 * - 97 AS col2
----
-5238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9262
SELECT ALL + CAST( MAX( - COALESCE ( 68, + + 92 ) ) AS SIGNED ) * - COALESCE ( + 66, 97 DIV - NULLIF ( + ( 42 ), - CAST( NULL AS DECIMAL ) ), + 56 ) * - 28 col0
----
-125664

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL + CAST ( MAX ( - COALESCE ( 68, + + 92 ) ) AS INTEGER ) * - COALESCE ( + 66, 97 / - NULLIF ( + ( 42 ), - CAST ( NULL AS REAL ) ), + 56 ) * - 28 col0
----
-125664

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT - COUNT( * ) * - COUNT( * ) * 73 + 11
----
84

skipif mysql # not compatible
query I rowsort label-9263
SELECT - COUNT ( * ) * - COUNT ( * ) * 73 + 11
----
84

query I rowsort
SELECT DISTINCT - 19 * + 44 * + 5
----
-4180

query I rowsort
SELECT 61 * + 77 * 53 * + 49
----
12198109

query I rowsort
SELECT DISTINCT + 70 - ( COALESCE ( + 92, 83 + - + 0 ) ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT + - COUNT( ALL - 84 ) * + ( - 25 ) + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-9267
SELECT + - COUNT ( ALL - 84 ) * + ( - 25 ) + COUNT ( * )
----
26

query I rowsort
SELECT 84 * + 25 * 90 col2
----
189000

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT - MAX( - 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9269
SELECT - MAX ( - 17 ) AS col1
----
17

query I rowsort
SELECT - 75 + - + 0 + + - ( - 92 ) + + 78 * ( + 52 ) * + 90 + + 25 * + + 24 AS col2
----
365657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9271
SELECT + 49 / + + CAST( NULL AS SIGNED ) + + ( + + 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT + 49 / + + CAST ( NULL AS INTEGER ) + + ( + + 65 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL - + 38 * COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL - + 38 * COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL + + ( 20 ) + 19 - - COUNT( * ) * + - 17
----
22

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL + + ( 20 ) + 19 - - COUNT ( * ) * + - 17
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9274
SELECT 40 - 99 - 34 + - + 79 + - - COUNT( * ) DIV - 90 * - 74 DIV + SUM( - + 11 ) AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-9274
SELECT 40 - 99 - 34 + - + 79 + - - COUNT ( * ) / - 90 * - 74 / + SUM ( - + 11 ) AS col0
----
-172

query I rowsort
SELECT ALL 55 + + 97 AS col0
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9276
SELECT + ( CAST( NULL AS SIGNED ) ) - + MAX( - 3 ) + + + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT + ( CAST ( NULL AS INTEGER ) ) - + MAX ( - 3 ) + + + 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT COUNT( * ) - - + 18
----
19

skipif mysql # not compatible
query I rowsort label-9277
SELECT COUNT ( * ) - - + 18
----
19

query I rowsort
SELECT 84 + + 28 * - + 76
----
-2044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9279
SELECT ALL NULLIF ( + 63, - CAST( NULL AS SIGNED ) ) + - + COUNT( * ), COUNT( * ) + - + 56 + + - 66 AS col0
----
62
-121

skipif mysql # not compatible
query II rowsort label-9279
SELECT ALL NULLIF ( + 63, - CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ), COUNT ( * ) + - + 56 + + - 66 AS col0
----
62
-121

query I rowsort
SELECT ( + 63 ) - 79 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-9281
SELECT DISTINCT COUNT( * ), 21 * + - 93 AS col2
----
1
-1953

skipif mysql # not compatible
query II rowsort label-9281
SELECT DISTINCT COUNT ( * ), 21 * + - 93 AS col2
----
1
-1953

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9282
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 70 * + ( 74 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT CAST ( NULL AS REAL ) * - 70 * + ( 74 ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9283
SELECT 7 DIV - COUNT( - 74 ) + + 1 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9283
SELECT 7 / - COUNT ( - 74 ) + + 1 AS col2
----
-6

query I rowsort
SELECT DISTINCT 81 * - - 68
----
5508

query I rowsort
SELECT ALL 16 * + 42 * + + 50
----
33600

onlyif mysql # DIV for integer division: 
query I rowsort label-9286
SELECT 28 DIV 2
----
14

skipif mysql # not compatible
query I rowsort label-9286
SELECT 28 / 2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9287
SELECT 63 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9287
SELECT 63 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9288
SELECT DISTINCT 45 * + + CAST( - - 90 AS SIGNED ) AS col1
----
4050

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT 45 * + + CAST ( - - 90 AS INTEGER ) AS col1
----
4050

query I rowsort
SELECT DISTINCT - - CASE 26 WHEN 89 * + - 20 * ( + 19 ) THEN NULL WHEN 1 THEN - - 60 WHEN - 88 THEN NULL ELSE 60 END AS col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9290
SELECT 30 DIV - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-9290
SELECT 30 / - COUNT ( * )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT ALL - - 90 DIV - 89 + + 10 + + ( - 8 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL - - 90 / - 89 + + 10 + + ( - 8 ) AS col1
----
1

query II rowsort
SELECT ALL - - 14 AS col0, - 41 + + 30 + 31 + + - CASE - 63 WHEN 81 THEN NULL WHEN - - 94 THEN 24 * 28 + + + 74 END + ( + AVG ( 99 ) ) / 47 * - 96
----
14
NULL

query I rowsort
SELECT ALL - ( + 26 ) AS col1
----
-26

query II rowsort
SELECT ( 51 ), ( + 85 ) AS col0
----
51
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT + 94 * 36 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT + 94 * 36 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9296
SELECT + + 60 DIV - ( - 15 ) - + NULLIF ( + 37, NULLIF ( + + ( - 19 ), + - 91 + 72 ) ) + 1
----
-32

skipif mysql # not compatible
query I rowsort label-9296
SELECT + + 60 / - ( - 15 ) - + NULLIF ( + 37, NULLIF ( + + ( - 19 ), + - 91 + 72 ) ) + 1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT - COUNT( * ) * - - COALESCE ( - 72, - 27 - + 73 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9297
SELECT - COUNT ( * ) * - - COALESCE ( - 72, - 27 - + 73 ) AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9298
SELECT ALL CAST( 79 AS SIGNED ) / + - COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL CAST ( 79 AS INTEGER ) / + - COUNT ( * ) * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT - 20 * - COALESCE ( + 8, COUNT( * ) * 95 )
----
160

skipif mysql # not compatible
query I rowsort label-9299
SELECT - 20 * - COALESCE ( + 8, COUNT ( * ) * 95 )
----
160

query I rowsort
SELECT + + 8 * + + 74 + + 44
----
636

query I rowsort
SELECT + 64 - + + 2
----
62

query I rowsort
SELECT ALL + 25 * 18 AS col1
----
450

query I rowsort
SELECT ALL + 14 + 65
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT DISTINCT 61 + - ( 2 ) + 72 + CASE - 30 WHEN 74 THEN 9 WHEN 74 THEN - ( - - 53 ) WHEN + 24 THEN NULL ELSE NULL END + - 16 / - MAX( DISTINCT - 84 * + 82 ) * CASE + 86 WHEN - MIN( 98 ) THEN 68 + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT 61 + - ( 2 ) + 72 + CASE - 30 WHEN 74 THEN 9 WHEN 74 THEN - ( - - 53 ) WHEN + 24 THEN NULL ELSE NULL END + - 16 / - MAX ( DISTINCT - 84 * + 82 ) * CASE + 86 WHEN - MIN ( 98 ) THEN 68 + 64 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9305
SELECT DISTINCT + CAST( NULL AS SIGNED ) + ( - 74 ) + - CASE - 48 WHEN - 85 * 59 * - CASE - - COUNT( * ) WHEN + 18 THEN NULL ELSE - + ( ( 68 ) ) END + 51 - 11 THEN - 96 END - ( 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + ( - 74 ) + - CASE - 48 WHEN - 85 * 59 * - CASE - - COUNT ( * ) WHEN + 18 THEN NULL ELSE - + ( ( 68 ) ) END + 51 - 11 THEN - 96 END - ( 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT - + 53 + - SUM( ALL + 61 ) - + 82 AS col0
----
-196

skipif mysql # not compatible
query I rowsort label-9306
SELECT - + 53 + - SUM ( ALL + 61 ) - + 82 AS col0
----
-196

query I rowsort
SELECT ALL + 74 + - + 2 col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9308
SELECT ALL - COUNT( * ) DIV - + COALESCE ( + 52, + - 29 - + 89, - 91 + - 6 + 91 * + 83 * - 5 + + 92 )
----
0

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL - COUNT ( * ) / - + COALESCE ( + 52, + - 29 - + 89, - 91 + - 6 + 91 * + 83 * - 5 + + 92 )
----
0

query I rowsort
SELECT ALL + 74 + + 1 col0
----
75

query I rowsort
SELECT ALL - ( 81 ) * 48 col1
----
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT DISTINCT ( - MIN( ALL 69 ) ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT ( - MIN ( ALL 69 ) ) AS col0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9312
SELECT DISTINCT + 57 - COALESCE ( + CAST( 95 AS SIGNED ), 28 + - 70 ) - + + CASE - + COALESCE ( - ( - - 75 ), - + 62, + 39 + + 71, 34 ) WHEN 5 + 63 / NULLIF ( + 34, 48 * 88 + CASE 14 WHEN - 14 * + CASE + 61 WHEN - 36 / COALESCE ( - 94, - 99 + - 32 * 55 ) THEN NULL WHEN CASE 10 WHEN + 43 * - 88 THEN 47 WHEN + COUNT( * ) THEN + NULLIF ( MIN( DISTINCT - 62 ), 10 ) + - 86 ELSE NULL END / + 79 THEN 65 * 23 ELSE ( - COUNT( * ) ) / NULLIF ( 51 * + 85, COUNT( * ) * 17 + - 98 ) END + NULLIF ( - 17, 30 ) THEN 38 * 95 END * + 72 ) THEN 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT + 57 - COALESCE ( + CAST ( 95 AS INTEGER ), 28 + - 70 ) - + + CASE - + COALESCE ( - ( - - 75 ), - + 62, + 39 + + 71, 34 ) WHEN 5 + 63 / NULLIF ( + 34, 48 * 88 + CASE 14 WHEN - 14 * + CASE + 61 WHEN - 36 / COALESCE ( - 94, - 99 + - 32 * 55 ) THEN NULL WHEN CASE 10 WHEN + 43 * - 88 THEN 47 WHEN + COUNT ( * ) THEN + NULLIF ( MIN ( DISTINCT - 62 ), 10 ) + - 86 ELSE NULL END / + 79 THEN 65 * 23 ELSE ( - COUNT ( * ) ) / NULLIF ( 51 * + 85, COUNT ( * ) * 17 + - 98 ) END + NULLIF ( - 17, 30 ) THEN 38 * 95 END * + 72 ) THEN 91 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT DISTINCT COUNT( * ) - - 1 - - 92 * - NULLIF ( + + 11, - + 72 ) * + + 52
----
-52622

skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT COUNT ( * ) - - 1 - - 92 * - NULLIF ( + + 11, - + 72 ) * + + 52
----
-52622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9314
SELECT - 70 * + CAST( NULL AS SIGNED ) / + - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT - 70 * + CAST ( NULL AS INTEGER ) / + - ( - COUNT ( * ) )
----
NULL

query I rowsort
SELECT + 76 * - 52
----
-3952

query I rowsort
SELECT 75 * + CASE ( 80 ) WHEN + 34 - 85 + - + 63 * + 64 / 89 THEN NULL ELSE + 74 END - 66 col1
----
5484

query II rowsort
SELECT + COALESCE ( + 32, - + 3 ) AS col0, - 72
----
32
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT + COUNT( * ) * - + NULLIF ( + + 79, COUNT( * ) + + 98 + + 28 - - - SUM( + 50 ) - COUNT( * ) + - - ( - 56 ) * - 92 )
----
-79

skipif mysql # not compatible
query I rowsort label-9318
SELECT + COUNT ( * ) * - + NULLIF ( + + 79, COUNT ( * ) + + 98 + + 28 - - - SUM ( + 50 ) - COUNT ( * ) + - - ( - 56 ) * - 92 )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-9319
SELECT - 28 * + + COUNT( * ) - 94 AS col0, - 75 col0
----
-122
-75

skipif mysql # not compatible
query II rowsort label-9319
SELECT - 28 * + + COUNT ( * ) - 94 AS col0, - 75 col0
----
-122
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9320
SELECT + COUNT( * ) DIV - + 99, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-9320
SELECT + COUNT ( * ) / - + 99, COUNT ( * ) AS col0
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9321
SELECT + MAX( - 98 ) AS col0, COUNT( * ) * 22
----
-98
22

skipif mysql # not compatible
query II rowsort label-9321
SELECT + MAX ( - 98 ) AS col0, COUNT ( * ) * 22
----
-98
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT - 16 * COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9322
SELECT - 16 * COUNT ( * ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT ( - COALESCE ( + 72, + 66, + SUM( 61 ) ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-9323
SELECT ( - COALESCE ( + 72, + 66, + SUM ( 61 ) ) ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT - 8 * + COUNT( 19 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-9324
SELECT - 8 * + COUNT ( 19 ) AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9325
SELECT NULLIF ( NULLIF ( - + 88, + ( - + 90 ) ), - + 68 * - CAST( + 38 AS SIGNED ) / + - NULLIF ( + 36, - NULLIF ( - 87, - COUNT( * ) + 45 ) * - 11 ) + + 30 )
----
-88

skipif mysql # not compatible
query I rowsort label-9325
SELECT NULLIF ( NULLIF ( - + 88, + ( - + 90 ) ), - + 68 * - CAST ( + 38 AS INTEGER ) / + - NULLIF ( + 36, - NULLIF ( - 87, - COUNT ( * ) + 45 ) * - 11 ) + + 30 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9326
SELECT ALL + COALESCE ( 18, COUNT( * ), 63 ) * + + 36 + 54 + + - 54 * - 77 * 84 * + CAST( ( - - 36 ) AS SIGNED ) + - 94 + 61
----
12574461

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL + COALESCE ( 18, COUNT ( * ), 63 ) * + + 36 + 54 + + - 54 * - 77 * 84 * + CAST ( ( - - 36 ) AS INTEGER ) + - 94 + 61
----
12574461

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT ALL CASE + 92 WHEN - 88 THEN NULL WHEN + COUNT( DISTINCT 39 ) * + 5 + - 3 THEN + - 71 END * + + COALESCE ( + - MIN( - - 57 ), - 2 * + 3, + COUNT( * ) ) * 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL CASE + 92 WHEN - 88 THEN NULL WHEN + COUNT ( DISTINCT 39 ) * + 5 + - 3 THEN + - 71 END * + + COALESCE ( + - MIN ( - - 57 ), - 2 * + 3, + COUNT ( * ) ) * 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT + - 18 * SUM( 59 ) * + - 9 * - 65 * + 63 + + 94 AS col0
----
-39139916

skipif mysql # not compatible
query I rowsort label-9328
SELECT + - 18 * SUM ( 59 ) * + - 9 * - 65 * + 63 + + 94 AS col0
----
-39139916

query I rowsort
SELECT DISTINCT - 76 * 75 AS col1
----
-5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9330
SELECT ALL 71 * COALESCE ( - 36, - + COUNT( * ) - + NULLIF ( + 5, + 63 ), 36 ) + + 15 * - + CAST( - - 33 AS SIGNED ) + + 52 + + 66 AS col0
----
-2933

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL 71 * COALESCE ( - 36, - + COUNT ( * ) - + NULLIF ( + 5, + 63 ), 36 ) + + 15 * - + CAST ( - - 33 AS INTEGER ) + + 52 + + 66 AS col0
----
-2933

query II rowsort
SELECT + - AVG ( 29 ) * + CASE - + 2 WHEN 25 * - ( - 14 ) * - 44 * 77 THEN - - 43 ELSE NULL END, 69 * + 97 / CASE ( 39 ) WHEN 40 THEN + 69 * 64 WHEN + 94 THEN 41 + 62 ELSE NULL END AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT 96 * - + 88 - - COUNT( * ) AS col2
----
-8447

skipif mysql # not compatible
query I rowsort label-9332
SELECT 96 * - + 88 - - COUNT ( * ) AS col2
----
-8447

query I rowsort
SELECT + 64 * 70
----
4480

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT DISTINCT + COUNT( ALL 38 ) * + 31 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT + COUNT ( ALL 38 ) * + 31 AS col2
----
31

query I rowsort
SELECT ALL - 15 * + - 82
----
1230

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9336
SELECT - CAST( NULL AS SIGNED ) AS col2, + 51 DIV + + 89 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9336
SELECT - CAST ( NULL AS INTEGER ) AS col2, + 51 / + + 89 AS col1
----
NULL
0

query I rowsort
SELECT ALL 18 - - 83 AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT DISTINCT - MAX( ALL - 92 ) * + 38
----
3496

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT - MAX ( ALL - 92 ) * + 38
----
3496

query I rowsort
SELECT - 6 - + - 62
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT DISTINCT MIN( + 26 ) col2
----
26

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT MIN ( + 26 ) col2
----
26

query I rowsort
SELECT ALL 71 * - 89 AS col1
----
-6319

query I rowsort
SELECT - 83 - 43 AS col2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL CASE - 36 WHEN + MIN( COALESCE ( + - 3, - - 96 / - ( + + 67 ) - - 86 ) ) THEN + - 23 * - 73 * + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL CASE - 36 WHEN + MIN ( COALESCE ( + - 3, - - 96 / - ( + + 67 ) - - 86 ) ) THEN + - 23 * - 73 * + 0 END
----
NULL

query I rowsort
SELECT + 53 + - ( + 73 ) AS col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT - CAST( + + 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-9345
SELECT - CAST ( + + 5 AS INTEGER )
----
-5

query I rowsort
SELECT + 29 * - 64 AS col2
----
-1856

query I rowsort
SELECT + 47 + + + ( 48 )
----
95

query I rowsort
SELECT - 52 * 65
----
-3380

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT - MIN( - NULLIF ( + 42, + - 79 ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9349
SELECT - MIN ( - NULLIF ( + 42, + - 79 ) ) AS col0
----
42

query I rowsort
SELECT - ( - - 92 ) - + 9 AS col2
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-9351
SELECT ALL + 53 DIV - 95 * - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL + 53 / - 95 * - 58 AS col1
----
0

query I rowsort
SELECT - 99 + + + 56 AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9353
SELECT DISTINCT + MIN( + ( - CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) ) ) / + - CASE - ( + 38 ) WHEN - 61 / + 36 * + 44 + + - 1 - + 0 * + 53 THEN - CASE 90 WHEN 9 THEN NULL WHEN 81 + + 66 * COALESCE ( + COUNT( * ), - 42 ) THEN ( 21 ) ELSE NULL END + + 8 WHEN 34 THEN - AVG ( DISTINCT - 29 ) + ( 58 ) WHEN 59 THEN NULL ELSE + 24 * 7 + - 95 END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT + MIN ( + ( - CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) ) / + - CASE - ( + 38 ) WHEN - 61 / + 36 * + 44 + + - 1 - + 0 * + 53 THEN - CASE 90 WHEN 9 THEN NULL WHEN 81 + + 66 * COALESCE ( + COUNT ( * ), - 42 ) THEN ( 21 ) ELSE NULL END + + 8 WHEN 34 THEN - AVG ( DISTINCT - 29 ) + ( 58 ) WHEN 59 THEN NULL ELSE + 24 * 7 + - 95 END + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT - 53 + - COUNT( * ) + 13 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9354
SELECT - 53 + - COUNT ( * ) + 13 AS col0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT 0 DIV + - 13 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9355
SELECT 0 / + - 13 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9356
SELECT + 38, CAST( 50 AS SIGNED ) * + + CASE + + COUNT( * ) WHEN + + 19 - CASE COUNT( * ) WHEN COUNT( * ) - + 99 * ( + - 39 ) THEN NULL WHEN + - 63 THEN CAST( + MIN( 66 ) AS SIGNED ) ELSE 1 END THEN 61 ELSE + COUNT( 31 ) DIV - 92 END AS col1
----
38
0

skipif mysql # not compatible
query II rowsort label-9356
SELECT + 38, CAST ( 50 AS INTEGER ) * + + CASE + + COUNT ( * ) WHEN + + 19 - CASE COUNT ( * ) WHEN COUNT ( * ) - + 99 * ( + - 39 ) THEN NULL WHEN + - 63 THEN CAST ( + MIN ( 66 ) AS INTEGER ) ELSE 1 END THEN 61 ELSE + COUNT ( 31 ) / - 92 END AS col1
----
38
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT 59 + + - COUNT( ALL 76 ) + 64 * + - 63
----
-3974

skipif mysql # not compatible
query I rowsort label-9357
SELECT 59 + + - COUNT ( ALL 76 ) + 64 * + - 63
----
-3974

query I rowsort
SELECT ALL + 49 + 45
----
94

query I rowsort
SELECT DISTINCT - - 54 col2
----
54

query I rowsort
SELECT + 23 * 38 + - NULLIF ( 97, 87 ) AS col0
----
777

query I rowsort
SELECT 69 + - 42 - + 8 + - 70 AS col1
----
-51

query I rowsort
SELECT ALL - 47 + - 99
----
-146

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9363
SELECT ALL 94 + + - 20 + - 54 + + - COALESCE ( - + 20, 51 ), 36 * COALESCE ( - - 86, + 64, - CAST( + + 18 AS SIGNED ) ) AS col0
----
40
3096

skipif mysql # not compatible
query II rowsort label-9363
SELECT ALL 94 + + - 20 + - 54 + + - COALESCE ( - + 20, 51 ), 36 * COALESCE ( - - 86, + 64, - CAST ( + + 18 AS INTEGER ) ) AS col0
----
40
3096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9364
SELECT ALL + 8 + - CAST( NULL AS SIGNED ) + + MIN( + + 14 ) + - 92 + 93 * + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL + 8 + - CAST ( NULL AS INTEGER ) + + MIN ( + + 14 ) + - 92 + 93 * + - 0
----
NULL

query II rowsort
SELECT + + 61 AS col2, - 90 * - 44 AS col0
----
61
3960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9366
SELECT DISTINCT + 39 + 58 DIV + COUNT( + ( + + 27 ) ) col2
----
97

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT + 39 + 58 / + COUNT ( + ( + + 27 ) ) col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9367
SELECT + 79 AS col1, ( - CAST( 61 AS SIGNED ) ) AS col0
----
79
-61

skipif mysql # not compatible
query II rowsort label-9367
SELECT + 79 AS col1, ( - CAST ( 61 AS INTEGER ) ) AS col0
----
79
-61

query I rowsort
SELECT - 48 * + 70 + 23
----
-3337

onlyif mysql # DIV for integer division: 
query I rowsort label-9369
SELECT ALL - NULLIF ( + 54, + - 87 ) + + - 82 DIV - 29
----
-52

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL - NULLIF ( + 54, + - 87 ) + + - 82 / - 29
----
-52

query I rowsort
SELECT + NULLIF ( - - 13, - - 40 - - 81 - - + 19 * - 12 / - COALESCE ( + 72, - 58 - - 13 ) ) + - 48 + - - 4 * + ( ( 15 ) )
----
25

query II rowsort
SELECT + 79 AS col2, + ( + 34 )
----
79
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT 51 * + 59 + - SUM( - 52 ) * + + 13 + + 52
----
3737

skipif mysql # not compatible
query I rowsort label-9372
SELECT 51 * + 59 + - SUM ( - 52 ) * + + 13 + + 52
----
3737

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL COALESCE ( - COUNT( * ), 80 ) * - 89 * - 6 + - 91 + - 24 * - - 29 AS col2
----
-1321

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL COALESCE ( - COUNT ( * ), 80 ) * - 89 * - 6 + - 91 + - 24 * - - 29 AS col2
----
-1321

query II rowsort
SELECT ALL + 11 * - 3 AS col0, 76 AS col2
----
-33
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL - SUM( ALL + - 93 ) - - COALESCE ( - 1, - 96 ) * 83 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - SUM ( ALL + - 93 ) - - COALESCE ( - 1, - 96 ) * 83 AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9376
SELECT DISTINCT + 2 * 62 AS col1, 4 DIV - - MAX( - 24 ) AS col2
----
124
0

skipif mysql # not compatible
query II rowsort label-9376
SELECT DISTINCT + 2 * 62 AS col1, 4 / - - MAX ( - 24 ) AS col2
----
124
0

query I rowsort
SELECT 19 + + 48
----
67

query I rowsort
SELECT 38 + + 19
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT 9 * + MIN( ALL + 7 )
----
63

skipif mysql # not compatible
query I rowsort label-9379
SELECT 9 * + MIN ( ALL + 7 )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9380
SELECT CAST( NULL AS SIGNED ) * + 49 * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT CAST ( NULL AS INTEGER ) * + 49 * + 20
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9381
SELECT 54 DIV + ( - 4 )
----
-13

skipif mysql # not compatible
query I rowsort label-9381
SELECT 54 / + ( - 4 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT DISTINCT CAST( 72 AS SIGNED ) * - 99 - 39 col1
----
-7167

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT CAST ( 72 AS INTEGER ) * - 99 - 39 col1
----
-7167

query I rowsort
SELECT 63 + + + 52
----
115

query I rowsort
SELECT ALL 93 * 12 AS col1
----
1116

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9385
SELECT CAST( NULL AS DECIMAL ) * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT CAST ( NULL AS REAL ) * - 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT ALL CAST( NULL AS SIGNED ) / 81 / - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL CAST ( NULL AS INTEGER ) / 81 / - 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9387
SELECT ALL + 49 * - CAST( - 17 AS SIGNED ) AS col1
----
833

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL + 49 * - CAST ( - 17 AS INTEGER ) AS col1
----
833

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL CASE + COUNT( * ) WHEN - COUNT( * ) THEN - ( + + 77 ) ELSE NULL END * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN - ( + + 77 ) ELSE NULL END * + 39
----
NULL

query II rowsort
SELECT 72 * + 71 col0, ( - + 64 ) AS col2
----
5112
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT ALL - 53 + - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL - 53 + - COUNT ( * )
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9391
SELECT + 21 / + 47 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT + 21 / + 47 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT DISTINCT - - 42 + NULLIF ( NULLIF ( - + 18, + 56 * + + COUNT( * ) ), + - 2 * + + 25 * SUM( 48 ) ) * + 39 AS col0
----
-660

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT - - 42 + NULLIF ( NULLIF ( - + 18, + 56 * + + COUNT ( * ) ), + - 2 * + + 25 * SUM ( 48 ) ) * + 39 AS col0
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL + + COUNT( * ) + - 22 + + - MAX( 8 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL + + COUNT ( * ) + - 22 + + - MAX ( 8 ) AS col1
----
-29

query I rowsort
SELECT - 53 * + 11 col0
----
-583

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9395
SELECT DISTINCT + 10 + + 69 + - SUM( DISTINCT 18 ) DIV + 10 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT + 10 + + 69 + - SUM ( DISTINCT 18 ) / + 10 AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9396
SELECT DISTINCT - + 99 + - 41 DIV + 6
----
-105

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT - + 99 + - 41 / + 6
----
-105

query I rowsort
SELECT + 19 * - - 90
----
1710

query I rowsort
SELECT - ( - + ( + 12 ) )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9399
SELECT - 53 * - ( + + 99 ) * MAX( + 16 ) + + CAST( NULL AS SIGNED ) + - 30 - 81 * + 52 + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9399
SELECT - 53 * - ( + + 99 ) * MAX ( + 16 ) + + CAST ( NULL AS INTEGER ) + - 30 - 81 * + 52 + + 72
----
NULL

query I rowsort
SELECT DISTINCT - 94 - - + 20
----
-74

query I rowsort
SELECT DISTINCT - + 34 col0
----
-34

query II rowsort
SELECT ALL - COALESCE ( - 33, - ( + ( 26 ) ) ), - 95 AS col0
----
33
-95

query I rowsort
SELECT ALL 60 - + 93
----
-33

query II rowsort
SELECT DISTINCT - 64 AS col1, - 15
----
-64
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT 3 * + - COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9405
SELECT 3 * + - COUNT ( * ) AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9406
SELECT 80 * 1 * ( + + COUNT( * ) ) + 97 + - 67 + 62 DIV 19 * - - 94 * 77
----
21824

skipif mysql # not compatible
query I rowsort label-9406
SELECT 80 * 1 * ( + + COUNT ( * ) ) + 97 + - 67 + 62 / 19 * - - 94 * 77
----
21824

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT COUNT( * ) * + 50 * - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-9407
SELECT COUNT ( * ) * + 50 * - COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT ( - + CASE + 22 WHEN + 65 + 39 THEN + + 3 END ) * - 23 + - 38 + - 52 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT ( - + CASE + 22 WHEN + 65 + 39 THEN + + 3 END ) * - 23 + - 38 + - 52 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9409
SELECT ALL CAST( NULL AS DECIMAL ) * 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL CAST ( NULL AS REAL ) * 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT COUNT( * ) + 27
----
28

skipif mysql # not compatible
query I rowsort label-9410
SELECT COUNT ( * ) + 27
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9411
SELECT ALL + 80 * ( COALESCE ( + 15, - 57 ) ) * - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * - 38 + MAX( 53 ) AS col0, 11 DIV 74 + + + 43 AS col0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-9411
SELECT ALL + 80 * ( COALESCE ( + 15, - 57 ) ) * - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 38 + MAX ( 53 ) AS col0, 11 / 74 + + + 43 AS col0
----
NULL
43

query I rowsort
SELECT 38 + + 25
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT DISTINCT COALESCE ( - 98, 44 * + - COUNT( + 3 ) + - 39 * + 77 )
----
-98

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT COALESCE ( - 98, 44 * + - COUNT ( + 3 ) + - 39 * + 77 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9414
SELECT ALL + ( 85 ) + + NULLIF ( + 65, - 37 + + CAST( NULL AS SIGNED ) ) + - 64
----
86

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL + ( 85 ) + + NULLIF ( + 65, - 37 + + CAST ( NULL AS INTEGER ) ) + - 64
----
86

query I rowsort
SELECT ALL CASE - 95 WHEN 71 THEN + 67 END + 9 / - + 78 * - + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT DISTINCT 17 + 85 - - + COUNT( * ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT 17 + 85 - - + COUNT ( * ) AS col2
----
103

query I rowsort
SELECT + 46 + + 95 + + 64 * - + 75 * 11
----
-52659

query I rowsort
SELECT ALL 52 + - - 51 AS col0
----
103

query II rowsort
SELECT 86, 47 AS col0
----
86
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9420
SELECT + COALESCE ( + - 30, + + 86 DIV + 32 - + + ( + 85 ) ) * + - COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9420
SELECT + COALESCE ( + - 30, + + 86 / + 32 - + + ( + 85 ) ) * + - COUNT ( * ) AS col1
----
30

query I rowsort
SELECT + 88 + + - 33 AS col1
----
55

query II rowsort
SELECT + 62 AS col2, 45 * + 94
----
62
4230

query II rowsort
SELECT ALL + 33 + - + 57 + 86 AS col1, + 82 * 44
----
62
3608

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT + ( - COUNT( * ) ) + + ( 89 ) + - COUNT( * ) * 72 * + + 72
----
-5096

skipif mysql # not compatible
query I rowsort label-9424
SELECT + ( - COUNT ( * ) ) + + ( 89 ) + - COUNT ( * ) * 72 * + + 72
----
-5096

query I rowsort
SELECT ALL 71 + + 68 AS col2
----
139

query II rowsort
SELECT DISTINCT + 35 AS col1, - 1
----
35
-1

query I rowsort
SELECT + 15 + + + 32 * 62
----
1999

query I rowsort
SELECT ALL 54 + - 35 AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT ALL 98 + - 95 + + 41 DIV + 34 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL 98 + - 95 + + 41 / + 34 AS col1
----
4

query I rowsort
SELECT ALL 97 * - + 91 + + - 56 - + + 2 AS col2
----
-8885

onlyif mysql # aggregate syntax: 
query II rowsort label-9431
SELECT COUNT( * ) AS col2, - 39 AS col0
----
1
-39

skipif mysql # not compatible
query II rowsort label-9431
SELECT COUNT ( * ) AS col2, - 39 AS col0
----
1
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9432
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) + + + 97 + - 93 * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + + 97 + - 93 * - 62
----
NULL

query I rowsort
SELECT + 17 * - 26 AS col0
----
-442

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT - 87 * + COUNT( * ) - 65
----
-152

skipif mysql # not compatible
query I rowsort label-9434
SELECT - 87 * + COUNT ( * ) - 65
----
-152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9435
SELECT + - 61 DIV - - 43 + + COUNT( 48 )
----
0

skipif mysql # not compatible
query I rowsort label-9435
SELECT + - 61 / - - 43 + + COUNT ( 48 )
----
0

query I rowsort
SELECT DISTINCT + ( - + 76 ) AS col0
----
-76

query I rowsort
SELECT DISTINCT + ( + 48 )
----
48

query I rowsort
SELECT ALL - 65 * 27 AS col0
----
-1755

query I rowsort
SELECT - - 59 * 41 + - 88
----
2331

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT DISTINCT + COUNT( - + 64 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT + COUNT ( - + 64 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9441
SELECT ALL - SUM( - 10 ) * + 32 + 43 AS col2, 81 * + COUNT( * )
----
363
81

skipif mysql # not compatible
query II rowsort label-9441
SELECT ALL - SUM ( - 10 ) * + 32 + 43 AS col2, 81 * + COUNT ( * )
----
363
81

query I rowsort
SELECT + 54 * - 96 AS col0
----
-5184

query II rowsort
SELECT + ( + + 15 ) AS col1, 70 AS col0
----
15
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT - COUNT( * ) + + ( 75 )
----
74

skipif mysql # not compatible
query I rowsort label-9444
SELECT - COUNT ( * ) + + ( 75 )
----
74

query I rowsort
SELECT - 47 + 45
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9446
SELECT - 12 DIV - SUM( DISTINCT + - 3 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9446
SELECT - 12 / - SUM ( DISTINCT + - 3 ) AS col0
----
-4

query I rowsort
SELECT - 24 * - 6
----
144

query I rowsort
SELECT ALL 30 * 34 AS col1
----
1020

query I rowsort
SELECT ALL + ( - 13 ) * - - 38 + + 24
----
-470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9450
SELECT - COUNT( * ) * 15 DIV + 11
----
-1

skipif mysql # not compatible
query I rowsort label-9450
SELECT - COUNT ( * ) * 15 / + 11
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9451
SELECT ALL - 94 DIV COALESCE ( - 39, - 91 DIV MIN( ALL - 55 ) - - - 71 * - + 57, + - 5 * - + CAST( NULL AS SIGNED ) DIV - + COUNT( ALL + CASE + ( + CAST( NULL AS SIGNED ) ) WHEN - - 63 THEN - + 17 + CAST( NULL AS DECIMAL ) ELSE NULL END ) + - 77 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - 94 / COALESCE ( - 39, - 91 / MIN ( ALL - 55 ) - - - 71 * - + 57, + - 5 * - + CAST ( NULL AS INTEGER ) / - + COUNT ( ALL + CASE + ( + CAST ( NULL AS INTEGER ) ) WHEN - - 63 THEN - + 17 + CAST ( NULL AS REAL ) ELSE NULL END ) + - 77 ) AS col0
----
2

query I rowsort
SELECT ALL - ( - + 67 ) + + 97 + - 3 + 38
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9453
SELECT - 93 col1, - CAST( NULL AS SIGNED ) AS col0
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-9453
SELECT - 93 col1, - CAST ( NULL AS INTEGER ) AS col0
----
-93
NULL

query II rowsort
SELECT ALL 64 + + 27 + - - 16 * - - 20, 43 col1
----
411
43

query II rowsort
SELECT - ( 79 ) + 18 * - 79 AS col0, - 27
----
-1501
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9456
SELECT ALL + CAST( NULL AS SIGNED ) + - + COUNT( - 13 ) * + - 65 / + CAST( - - COALESCE ( + - 78, 92 ) AS SIGNED ) - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + CAST ( NULL AS INTEGER ) + - + COUNT ( - 13 ) * + - 65 / + CAST ( - - COALESCE ( + - 78, 92 ) AS INTEGER ) - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT DISTINCT ( MAX( 98 ) )
----
98

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT ( MAX ( 98 ) )
----
98

query I rowsort
SELECT DISTINCT ( - + ( - - 47 ) )
----
-47

query I rowsort
SELECT ALL - 22 + - + 96 AS col0
----
-118

query I rowsort
SELECT - 34 * - 62
----
2108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9461
SELECT 63, NULLIF ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), 30 ) AS col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-9461
SELECT 63, NULLIF ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), 30 ) AS col0
----
63
NULL

query I rowsort
SELECT ALL + 86 + + 85
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-9463
SELECT + - 65 * ( COUNT( * ) ) * + 97 AS col2, 60 - + 73
----
-6305
-13

skipif mysql # not compatible
query II rowsort label-9463
SELECT + - 65 * ( COUNT ( * ) ) * + 97 AS col2, 60 - + 73
----
-6305
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL + COUNT( - 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL + COUNT ( - 81 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9465
SELECT + - 15 / - - 54 + + - CAST( + - 71 AS SIGNED ) * - + CAST( NULL AS SIGNED ) - - - 97 + - 93 * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9465
SELECT + - 15 / - - 54 + + - CAST ( + - 71 AS INTEGER ) * - + CAST ( NULL AS INTEGER ) - - - 97 + - 93 * + 51
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT - CAST( - 14 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-9466
SELECT - CAST ( - 14 AS INTEGER )
----
14

query II rowsort
SELECT - + 90 AS col0, - 49 + 6
----
-90
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9468
SELECT ALL 32 DIV + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL 32 / + COUNT ( * )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT + 71 * - ( + CAST( NULL AS SIGNED ) ) * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT + 71 * - ( + CAST ( NULL AS INTEGER ) ) * 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT + COUNT( * ) + + 21
----
22

skipif mysql # not compatible
query I rowsort label-9470
SELECT + COUNT ( * ) + + 21
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9471
SELECT + + 89 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT + + 89 / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT ALL + 83 * - - MAX( DISTINCT 79 )
----
6557

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL + 83 * - - MAX ( DISTINCT 79 )
----
6557

query II rowsort
SELECT ALL + 52, NULLIF ( 76, 36 ) AS col1
----
52
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT DISTINCT - 75 * CAST( + 62 AS SIGNED ) + - 46 * + 12
----
-5202

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT - 75 * CAST ( + 62 AS INTEGER ) + - 46 * + 12
----
-5202

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT + 30 * + CASE 4 WHEN NULLIF ( - COUNT( * ), 56 ) * + 24 THEN + 29 WHEN 66 THEN NULL WHEN 56 / + 11 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT + 30 * + CASE 4 WHEN NULLIF ( - COUNT ( * ), 56 ) * + 24 THEN + 29 WHEN 66 THEN NULL WHEN 56 / + 11 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9476
SELECT ( + + COUNT( * ) ) AS col2, + 56 + - COUNT( * ) - + - 89 + - - 71 - 57
----
1
158

skipif mysql # not compatible
query II rowsort label-9476
SELECT ( + + COUNT ( * ) ) AS col2, + 56 + - COUNT ( * ) - + - 89 + - - 71 - 57
----
1
158

query II rowsort
SELECT ( - + 60 ), 63 AS col0
----
-60
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT 98 * 85 + CAST( - - 40 AS SIGNED )
----
8370

skipif mysql # not compatible
query I rowsort label-9478
SELECT 98 * 85 + CAST ( - - 40 AS INTEGER )
----
8370

query I rowsort
SELECT + 0 * + + 11 * ( + 93 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9480
SELECT ( - + CAST( - 12 AS SIGNED ) )
----
12

skipif mysql # not compatible
query I rowsort label-9480
SELECT ( - + CAST ( - 12 AS INTEGER ) )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9481
SELECT COUNT( * ) + 18 * + 81 + + ( + 99 ) DIV - 60
----
1458

skipif mysql # not compatible
query I rowsort label-9481
SELECT COUNT ( * ) + 18 * + 81 + + ( + 99 ) / - 60
----
1458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9482
SELECT 63 * + - ( COUNT( DISTINCT - 79 ) ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT 63 * + - ( COUNT ( DISTINCT - 79 ) ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - + 19, + 88 + + 22 ) AS col1
----
19

query I rowsort
SELECT - 14 * + - 56 + - 62
----
722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9485
SELECT - 52 * - COUNT( * ) * 67 + - + 36 * 83 * NULLIF ( - + 13, - COUNT( * ) + - - 71 / + CAST( NULL AS SIGNED ) * + 51 ) * + - 68 + + COUNT( * )
----
-2637907

skipif mysql # not compatible
query I rowsort label-9485
SELECT - 52 * - COUNT ( * ) * 67 + - + 36 * 83 * NULLIF ( - + 13, - COUNT ( * ) + - - 71 / + CAST ( NULL AS INTEGER ) * + 51 ) * + - 68 + + COUNT ( * )
----
-2637907

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT ALL - 90 + - COUNT( ALL - 35 ) + + - ( - + 14 )
----
-77

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL - 90 + - COUNT ( ALL - 35 ) + + - ( - + 14 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT 88 * CASE - 19 WHEN - - 25 THEN 77 WHEN - - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT 88 * CASE - 19 WHEN - - 25 THEN 77 WHEN - - COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9488
SELECT 63 + + 82 AS col2, - COUNT( ALL + 87 ) AS col0
----
145
-1

skipif mysql # not compatible
query II rowsort label-9488
SELECT 63 + + 82 AS col2, - COUNT ( ALL + 87 ) AS col0
----
145
-1

query I rowsort
SELECT ALL 75 * 43
----
3225

query I rowsort
SELECT DISTINCT 34 * 3 * - 91
----
-9282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9491
SELECT 90 * + 64 + + 48 DIV + 93 + + 24 + - - COUNT( * ) AS col1
----
5785

skipif mysql # not compatible
query I rowsort label-9491
SELECT 90 * + 64 + + 48 / + 93 + + 24 + - - COUNT ( * ) AS col1
----
5785

query I rowsort
SELECT 38 + 68 AS col2
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9493
SELECT ALL + - COUNT( * ) - COALESCE ( + 9, + COUNT( * ) DIV - + 65 + 55 * + COUNT( * ) * + ( 21 ) ) DIV + 97 AS col2, + ( - - 52 )
----
-1
52

skipif mysql # not compatible
query II rowsort label-9493
SELECT ALL + - COUNT ( * ) - COALESCE ( + 9, + COUNT ( * ) / - + 65 + 55 * + COUNT ( * ) * + ( 21 ) ) / + 97 AS col2, + ( - - 52 )
----
-1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT MIN( ALL - - 90 ) * 24 + + 60 AS col2
----
2220

skipif mysql # not compatible
query I rowsort label-9494
SELECT MIN ( ALL - - 90 ) * 24 + + 60 AS col2
----
2220

query II rowsort
SELECT DISTINCT - - 93 * 22 AS col1, + CASE + 9 WHEN + 25 THEN NULL WHEN + 34 THEN + 48 ELSE NULL END + - 50 + - + 52 / 91
----
2046
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT + 86 + + MAX( ALL 6 )
----
92

skipif mysql # not compatible
query I rowsort label-9496
SELECT + 86 + + MAX ( ALL 6 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT 38 * COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9497
SELECT 38 * COUNT ( * ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT DISTINCT - + ( + + NULLIF ( + 24, + + 51 ) ) * + COUNT( * ) col1
----
-24

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT - + ( + + NULLIF ( + 24, + + 51 ) ) * + COUNT ( * ) col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL - - CASE - - 89 WHEN MAX( + + 74 ) THEN NULL WHEN - CASE + 34 WHEN - - 32 * 48 + - - 17 + + 84 THEN NULL WHEN 67 + 25 * COUNT( * ) THEN + + 26 END THEN COUNT( * ) + - + 84 / + + 59 * 82 END * - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - - CASE - - 89 WHEN MAX ( + + 74 ) THEN NULL WHEN - CASE + 34 WHEN - - 32 * 48 + - - 17 + + 84 THEN NULL WHEN 67 + 25 * COUNT ( * ) THEN + + 26 END THEN COUNT ( * ) + - + 84 / + + 59 * 82 END * - 30 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT - 34 DIV - ( - 96 ) + 93 * 72
----
6696

skipif mysql # not compatible
query I rowsort label-9500
SELECT - 34 / - ( - 96 ) + 93 * 72
----
6696

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT 77 + + COUNT( * ) * + 65 * - + 6
----
-313

skipif mysql # not compatible
query I rowsort label-9501
SELECT 77 + + COUNT ( * ) * + 65 * - + 6
----
-313

query I rowsort
SELECT DISTINCT - ( + ( 21 ) ) AS col0
----
-21

query II rowsort
SELECT DISTINCT + 46 + + 50 AS col2, 50 AS col1
----
96
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9504
SELECT + 71 DIV - 10
----
-7

skipif mysql # not compatible
query I rowsort label-9504
SELECT + 71 / - 10
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL - MAX( ALL + 31 ) + + 91 + 21 * - 64 * + COUNT( * ) + + 36 AS col0
----
-1248

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL - MAX ( ALL + 31 ) + + 91 + 21 * - 64 * + COUNT ( * ) + + 36 AS col0
----
-1248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9506
SELECT ALL 1 + - CAST( - 54 AS SIGNED ) col0
----
55

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL 1 + - CAST ( - 54 AS INTEGER ) col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT DISTINCT + NULLIF ( + 25, - 94 ) + - CASE + MIN( ALL 66 ) WHEN COUNT( - - 47 ) THEN - 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT + NULLIF ( + 25, - 94 ) + - CASE + MIN ( ALL 66 ) WHEN COUNT ( - - 47 ) THEN - 60 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT COUNT( * ) * + ( 51 )
----
51

skipif mysql # not compatible
query I rowsort label-9508
SELECT COUNT ( * ) * + ( 51 )
----
51

query I rowsort
SELECT ALL 95 * + + 66
----
6270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9510
SELECT COUNT( * ) + - ( - CAST( + 34 AS SIGNED ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9510
SELECT COUNT ( * ) + - ( - CAST ( + 34 AS INTEGER ) ) AS col1
----
35

query I rowsort
SELECT ALL + 21 + - 36 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL 88 + COUNT( - 35 ) + MAX( DISTINCT ( - 51 ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL 88 + COUNT ( - 35 ) + MAX ( DISTINCT ( - 51 ) ) AS col0
----
38

query I rowsort
SELECT DISTINCT 0 + - 70 AS col1
----
-70

query I rowsort
SELECT + 48 * + + 7 + + 2 AS col2
----
338

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT ALL 35 * + COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL 35 * + COUNT ( * ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9516
SELECT MIN( DISTINCT - 53 ) + + NULLIF ( 29, + + COUNT( * ) ) + 16, 44 + 79 + + COUNT( * ) AS col1
----
-8
124

skipif mysql # not compatible
query II rowsort label-9516
SELECT MIN ( DISTINCT - 53 ) + + NULLIF ( 29, + + COUNT ( * ) ) + 16, 44 + 79 + + COUNT ( * ) AS col1
----
-8
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT COUNT( DISTINCT + 33 ) * + 7 * - 64
----
-448

skipif mysql # not compatible
query I rowsort label-9517
SELECT COUNT ( DISTINCT + 33 ) * + 7 * - 64
----
-448

query I rowsort
SELECT DISTINCT 22 - + 82 AS col1
----
-60

query II rowsort
SELECT ALL - 37 AS col2, 79
----
-37
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9520
SELECT ALL 4, MAX( DISTINCT - 84 ) col1
----
4
-84

skipif mysql # not compatible
query II rowsort label-9520
SELECT ALL 4, MAX ( DISTINCT - 84 ) col1
----
4
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT - COUNT( ALL + 49 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9521
SELECT - COUNT ( ALL + 49 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9522
SELECT ALL + MAX( DISTINCT - 12 ) * + - 26 AS col1, + 13
----
312
13

skipif mysql # not compatible
query II rowsort label-9522
SELECT ALL + MAX ( DISTINCT - 12 ) * + - 26 AS col1, + 13
----
312
13

query II rowsort
SELECT - 3 + 33 * 47 AS col2, - 34
----
1548
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9524
SELECT - + COUNT( * ), 59 * - CAST( NULL AS SIGNED ) + + COALESCE ( - 74, - - CAST( - COUNT( * ) AS SIGNED ) ) + + ( + - CASE - 69 WHEN 48 + 46 THEN NULL WHEN - + 59 / + 88 * - + COUNT( 10 ) * + 26 * - 65 THEN - 92 + CAST( 66 AS SIGNED ) ELSE + 53 END ) / + ( 88 ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9524
SELECT - + COUNT ( * ), 59 * - CAST ( NULL AS INTEGER ) + + COALESCE ( - 74, - - CAST ( - COUNT ( * ) AS INTEGER ) ) + + ( + - CASE - 69 WHEN 48 + 46 THEN NULL WHEN - + 59 / + 88 * - + COUNT ( 10 ) * + 26 * - 65 THEN - 92 + CAST ( 66 AS INTEGER ) ELSE + 53 END ) / + ( 88 ) AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT MIN( + + 68 ) * + SUM( DISTINCT + + 53 ) AS col1
----
3604

skipif mysql # not compatible
query I rowsort label-9525
SELECT MIN ( + + 68 ) * + SUM ( DISTINCT + + 53 ) AS col1
----
3604

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT ALL + SUM( 35 ) * - + 29 AS col0
----
-1015

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL + SUM ( 35 ) * - + 29 AS col0
----
-1015

query I rowsort
SELECT + 26 * + + 10 * 89 AS col0
----
23140

query I rowsort
SELECT ALL - 19 * - + 41
----
779

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9529
SELECT ( - 16 ) * 8 * + 67 + + + ( - - CAST( NULL AS DECIMAL ) ), - COUNT( * ) + - + 75 + + + 1 AS col1
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-9529
SELECT ( - 16 ) * 8 * + 67 + + + ( - - CAST ( NULL AS REAL ) ), - COUNT ( * ) + - + 75 + + + 1 AS col1
----
NULL
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9530
SELECT ALL + COUNT( * ) * COUNT( * ) * + + 16, - 10 + ( + COUNT( * ) ) * SUM( + 24 ) AS col1
----
16
14

skipif mysql # not compatible
query II rowsort label-9530
SELECT ALL + COUNT ( * ) * COUNT ( * ) * + + 16, - 10 + ( + COUNT ( * ) ) * SUM ( + 24 ) AS col1
----
16
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9531
SELECT DISTINCT 4, + ( - COUNT( * ) ) * - 8 * - 96 col1
----
4
-768

skipif mysql # not compatible
query II rowsort label-9531
SELECT DISTINCT 4, + ( - COUNT ( * ) ) * - 8 * - 96 col1
----
4
-768

query II rowsort
SELECT ALL 32 AS col2, + 2 AS col2
----
32
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9533
SELECT - 92 DIV + 64 + + + CAST( 46 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-9533
SELECT - 92 / + 64 + + + CAST ( 46 AS INTEGER )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT 62 * - MAX( + + 96 ) AS col2
----
-5952

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT 62 * - MAX ( + + 96 ) AS col2
----
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT DISTINCT COUNT( ALL 62 )
----
1

skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT COUNT ( ALL 62 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT - 11 DIV - + ( + 97 ) + - + 40
----
-40

skipif mysql # not compatible
query I rowsort label-9536
SELECT - 11 / - + ( + 97 ) + - + 40
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9537
SELECT ALL + 78 DIV COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL + 78 / COUNT ( * )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT - + CASE + 4 WHEN - 3 THEN - CAST( NULL AS SIGNED ) + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9538
SELECT - + CASE + 4 WHEN - 3 THEN - CAST ( NULL AS INTEGER ) + 78 END
----
NULL

query I rowsort
SELECT 2 + - 16
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9540
SELECT - CASE + MAX( - COALESCE ( - CAST( NULL AS DECIMAL ), - - 1 * 40 + - - 43 + + - 65 * 54 ) ) WHEN 26 THEN NULL WHEN + 73 THEN NULL ELSE - 65 END AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9540
SELECT - CASE + MAX ( - COALESCE ( - CAST ( NULL AS REAL ), - - 1 * 40 + - - 43 + + - 65 * 54 ) ) WHEN 26 THEN NULL WHEN + 73 THEN NULL ELSE - 65 END AS col2
----
65

query I rowsort
SELECT ALL - - 11 + + + 41
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9542
SELECT + MIN( + 99 ) * + - 9 AS col1, + 37 AS col1
----
-891
37

skipif mysql # not compatible
query II rowsort label-9542
SELECT + MIN ( + 99 ) * + - 9 AS col1, + 37 AS col1
----
-891
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9543
SELECT ALL + 42 + + - 61 + - + MAX( ALL 96 ) + - COUNT( * ) DIV 26 - + 71 + - - 31 * + COUNT( * ) AS col1, COUNT( * ) AS col2
----
-155
1

skipif mysql # not compatible
query II rowsort label-9543
SELECT ALL + 42 + + - 61 + - + MAX ( ALL 96 ) + - COUNT ( * ) / 26 - + 71 + - - 31 * + COUNT ( * ) AS col1, COUNT ( * ) AS col2
----
-155
1

query I rowsort
SELECT + 99 - + 47 col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT - 9 * + COUNT( * ) + COUNT( * ) * 25 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9545
SELECT - 9 * + COUNT ( * ) + COUNT ( * ) * 25 AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9546
SELECT 41 + MAX( - 30 ) * COUNT( * ) DIV - + 98 * 24 * - 98
----
41

skipif mysql # not compatible
query I rowsort label-9546
SELECT 41 + MAX ( - 30 ) * COUNT ( * ) / - + 98 * 24 * - 98
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT ALL CAST( 70 AS SIGNED ) * + - 6 + - 77
----
-497

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL CAST ( 70 AS INTEGER ) * + - 6 + - 77
----
-497

query I rowsort
SELECT ALL 26 * + 22 + + + 43
----
615

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9549
SELECT NULLIF ( - + 51, - ( - 34 ) * 61 + - COUNT( * ) + - 39 ), 82 DIV + - 90 AS col2
----
-51
0

skipif mysql # not compatible
query II rowsort label-9549
SELECT NULLIF ( - + 51, - ( - 34 ) * 61 + - COUNT ( * ) + - 39 ), 82 / + - 90 AS col2
----
-51
0

query I rowsort
SELECT DISTINCT + 8 * + 82 AS col1
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT - 24 + - 87 - ( - MAX( 7 ) ) AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-9551
SELECT - 24 + - 87 - ( - MAX ( 7 ) ) AS col0
----
-104

query I rowsort
SELECT + 44 * - 75 - + 32
----
-3332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9553
SELECT ALL 63 * - 29 + + COUNT( * ) DIV + ( - 12 ) AS col2
----
-1827

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL 63 * - 29 + + COUNT ( * ) / + ( - 12 ) AS col2
----
-1827

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT - 35 * - SUM( + + 74 )
----
2590

skipif mysql # not compatible
query I rowsort label-9554
SELECT - 35 * - SUM ( + + 74 )
----
2590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9555
SELECT + SUM( + + 37 ) * - + 35 + + + 84 DIV + + 82 + + 40 * + 52 * + - COUNT( DISTINCT 44 )
----
-3374

skipif mysql # not compatible
query I rowsort label-9555
SELECT + SUM ( + + 37 ) * - + 35 + + + 84 / + + 82 + + 40 * + 52 * + - COUNT ( DISTINCT 44 )
----
-3374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9556
SELECT + CAST( - + 21 AS SIGNED ) * + 64 AS col1
----
-1344

skipif mysql # not compatible
query I rowsort label-9556
SELECT + CAST ( - + 21 AS INTEGER ) * + 64 AS col1
----
-1344

onlyif mysql # DIV for integer division: 
query I rowsort label-9557
SELECT ALL 5 DIV - - 55 * 5 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL 5 / - - 55 * 5 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT ALL - COUNT( * ) * - + NULLIF ( - 13, - 65 * - COUNT( * ) ) * - 75 + + MAX( DISTINCT - 52 ) - - 14 + + 40 AS col2
----
977

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL - COUNT ( * ) * - + NULLIF ( - 13, - 65 * - COUNT ( * ) ) * - 75 + + MAX ( DISTINCT - 52 ) - - 14 + + 40 AS col2
----
977

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9559
SELECT DISTINCT COUNT( * ) * + + ( - - 48 ) - CAST( - + 52 AS SIGNED ) + + 6 * 58 + - 60 + 89 - CAST( - MIN( - 57 ) AS SIGNED ) * + 74 * + ( + - MAX( + 58 ) ) * - + 96
----
-23485347

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT COUNT ( * ) * + + ( - - 48 ) - CAST ( - + 52 AS INTEGER ) + + 6 * 58 + - 60 + 89 - CAST ( - MIN ( - 57 ) AS INTEGER ) * + 74 * + ( + - MAX ( + 58 ) ) * - + 96
----
-23485347

query I rowsort
SELECT DISTINCT + NULLIF ( - 1, + ( - 74 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT + NULLIF ( - COUNT( * ), - 30 ) * 35
----
-35

skipif mysql # not compatible
query I rowsort label-9561
SELECT + NULLIF ( - COUNT ( * ), - 30 ) * 35
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT + COUNT( ALL - 88 ) * - 42 * SUM( + + 10 ) + + 66
----
-354

skipif mysql # not compatible
query I rowsort label-9562
SELECT + COUNT ( ALL - 88 ) * - 42 * SUM ( + + 10 ) + + 66
----
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT COUNT( - - 74 ) * - 65 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT COUNT ( - - 74 ) * - 65 AS col2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-9564
SELECT + 30 * - ( - - ( - - 96 ) ) * + 27 + - 71 DIV - - COALESCE ( 32, - 69 )
----
-77762

skipif mysql # not compatible
query I rowsort label-9564
SELECT + 30 * - ( - - ( - - 96 ) ) * + 27 + - 71 / - - COALESCE ( 32, - 69 )
----
-77762

query II rowsort
SELECT + 54 + + 62 AS col1, 48
----
116
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT ALL - - 63 + - 52 DIV - + 15
----
66

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL - - 63 + - 52 / - + 15
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT + - COUNT( * ) * + 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-9567
SELECT + - COUNT ( * ) * + 7 AS col0
----
-7

query I rowsort
SELECT DISTINCT - 88 * + 89 * + + 4
----
-31328

query I rowsort
SELECT - + 77 + + + 70
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT + ( COALESCE ( MIN( NULLIF ( ( - 79 ), ( - 6 ) ) ), + 5 + - COUNT( * ) ) ) + 9 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9570
SELECT + ( COALESCE ( MIN ( NULLIF ( ( - 79 ), ( - 6 ) ) ), + 5 + - COUNT ( * ) ) ) + 9 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL COUNT( + - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL COUNT ( + - 84 )
----
1

query II rowsort
SELECT ALL + 96 + - - 62 + 32 * + 24 AS col2, - 81 col2
----
926
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT + 97 + 23 DIV + 78 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9573
SELECT + 97 + 23 / + 78 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ALL COUNT( ALL + 18 ) + + 12 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL COUNT ( ALL + 18 ) + + 12 AS col1
----
13

query I rowsort
SELECT ALL 66 + - + 55
----
11

query I rowsort
SELECT ALL - 67 + 74 + - + 49 - - ( - ( ( 79 ) ) ) * - 32 * + ( + 73 ) AS col0
----
184502

query I rowsort
SELECT - 77 * 38
----
-2926

query I rowsort
SELECT ALL + 3 + + 90 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT ALL + MIN( - 13 ) col2
----
-13

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL + MIN ( - 13 ) col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9580
SELECT CAST( + 27 AS SIGNED ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9580
SELECT CAST ( + 27 AS INTEGER ) AS col0
----
27

query II rowsort
SELECT + 70 AS col0, 82 AS col2
----
70
82

onlyif mysql # DIV for integer division: 
query II rowsort label-9582
SELECT DISTINCT + 2 DIV - 11 * 11 + + 2 * - - 40 * + 88 * 32 + 58 AS col0, + 69
----
225338
69

skipif mysql # not compatible
query II rowsort label-9582
SELECT DISTINCT + 2 / - 11 * 11 + + 2 * - - 40 * + 88 * 32 + 58 AS col0, + 69
----
225338
69

query I rowsort
SELECT + 78 * + 31 + ( + - 89 )
----
2329

onlyif mysql # DIV for integer division: 
query I rowsort label-9584
SELECT ALL 90 DIV + 31 - ( 43 )
----
-41

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL 90 / + 31 - ( 43 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT - COUNT( * ) * - + 78
----
78

skipif mysql # not compatible
query I rowsort label-9585
SELECT - COUNT ( * ) * - + 78
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9586
SELECT + 40 * + 51 * + NULLIF ( + 44, + - COUNT( * ) + - 7 + + - 37 + 50 * 38 * 80 ) / + - 11 + - CAST( NULL AS SIGNED ) * + - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT + 40 * + 51 * + NULLIF ( + 44, + - COUNT ( * ) + - 7 + + - 37 + 50 * 38 * 80 ) / + - 11 + - CAST ( NULL AS INTEGER ) * + - 43 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 86 * - + 35
----
-3010

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT 95 / + ( + - 86 ) + - 33 + + + 28 - CASE 3 WHEN - - COUNT( * ) * 54 * - 54 / + 30 THEN NULL WHEN - - 34 THEN AVG ( + + 11 ) * - 32 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9588
SELECT 95 / + ( + - 86 ) + - 33 + + + 28 - CASE 3 WHEN - - COUNT ( * ) * 54 * - 54 / + 30 THEN NULL WHEN - - 34 THEN AVG ( + + 11 ) * - 32 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9589
SELECT ALL + COUNT( * ) AS col1, + 2
----
1
2

skipif mysql # not compatible
query II rowsort label-9589
SELECT ALL + COUNT ( * ) AS col1, + 2
----
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9590
SELECT ALL - 69 * - NULLIF ( - CAST( COUNT( * ) AS SIGNED ), 10 * - CAST( + 68 AS SIGNED ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL - 69 * - NULLIF ( - CAST ( COUNT ( * ) AS INTEGER ), 10 * - CAST ( + 68 AS INTEGER ) ) AS col2
----
-69

query I rowsort
SELECT ( + 55 ) col1
----
55

query I rowsort
SELECT COALESCE ( 99, + - 95, 19 ) AS col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9593
SELECT - 4 DIV - 33
----
0

skipif mysql # not compatible
query I rowsort label-9593
SELECT - 4 / - 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT + COUNT( 18 ) * - 34
----
-34

skipif mysql # not compatible
query I rowsort label-9594
SELECT + COUNT ( 18 ) * - 34
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9595
SELECT - + COUNT( * ) DIV - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9595
SELECT - + COUNT ( * ) / - 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9596
SELECT ALL + 11 * COUNT( * ) * - NULLIF ( - 85, - + COUNT( * ) + + 4 + + + 81 * - - 37 ) AS col0, + 76 + 98
----
935
174

skipif mysql # not compatible
query II rowsort label-9596
SELECT ALL + 11 * COUNT ( * ) * - NULLIF ( - 85, - + COUNT ( * ) + + 4 + + + 81 * - - 37 ) AS col0, + 76 + 98
----
935
174

query I rowsort
SELECT CASE 12 WHEN + 16 * 1 + - 90 THEN + 65 * - + 61 WHEN 40 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT DISTINCT - 0 DIV - + 2 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT - 0 / - + 2 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT ALL + 83 * COUNT( * ) + - 21
----
62

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL + 83 * COUNT ( * ) + - 21
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT ( CASE - + CASE - - COUNT( + 48 ) WHEN - 3 * CASE - 87 WHEN + - 3 * - SUM( - ( 81 ) ) THEN NULL WHEN - + ( - 91 ) THEN + COUNT( * ) ELSE NULL END THEN - COUNT( * ) - 18 + 26 * - - CAST( NULL AS SIGNED ) WHEN + - 69 THEN - 39 ELSE NULL END WHEN + 1 THEN + 36 WHEN 59 * + 34 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT ( CASE - + CASE - - COUNT ( + 48 ) WHEN - 3 * CASE - 87 WHEN + - 3 * - SUM ( - ( 81 ) ) THEN NULL WHEN - + ( - 91 ) THEN + COUNT ( * ) ELSE NULL END THEN - COUNT ( * ) - 18 + 26 * - - CAST ( NULL AS INTEGER ) WHEN + - 69 THEN - 39 ELSE NULL END WHEN + 1 THEN + 36 WHEN 59 * + 34 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT ALL - + COUNT( * ) * - - 11
----
-11

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL - + COUNT ( * ) * - - 11
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9602
SELECT - + 61 DIV + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9602
SELECT - + 61 / + 98 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9603
SELECT - - MIN( - 96 ) * - 26 + + MIN( - - CAST( NULL AS SIGNED ) ) / 8 - - ( COALESCE ( 78, - AVG ( 91 ) / + ( - ( + ( - + AVG ( + 36 ) ) ) ) + + 13, + - MIN( DISTINCT - 93 ) + + 90 + + 18 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9603
SELECT - - MIN ( - 96 ) * - 26 + + MIN ( - - CAST ( NULL AS INTEGER ) ) / 8 - - ( COALESCE ( 78, - AVG ( 91 ) / + ( - ( + ( - + AVG ( + 36 ) ) ) ) + + 13, + - MIN ( DISTINCT - 93 ) + + 90 + + 18 ) )
----
NULL

query I rowsort
SELECT + 15 * - 47
----
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL - + COUNT( * ) * - NULLIF ( - 44, 32 ) + 38 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - + COUNT ( * ) * - NULLIF ( - 44, 32 ) + 38 AS col0
----
-6

query II rowsort
SELECT - 89 AS col0, - 97
----
-89
-97

query I rowsort
SELECT DISTINCT - 59 * 21
----
-1239

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL MIN( + + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL MIN ( + + 70 )
----
70

query I rowsort
SELECT DISTINCT + 67 + - 28 * - 63
----
1831

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - NULLIF ( 29, - ( + COUNT( * ) ) )
----
-29

skipif mysql # not compatible
query I rowsort label-9610
SELECT - NULLIF ( 29, - ( + COUNT ( * ) ) )
----
-29

query II rowsort
SELECT 49, + 7 col2
----
49
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL + 34 + - + COUNT( * ) col0
----
33

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL + 34 + - + COUNT ( * ) col0
----
33

query I rowsort
SELECT 57 * - - 9
----
513

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9614
SELECT - 65 AS col2, CAST( NULL AS SIGNED )
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-9614
SELECT - 65 AS col2, CAST ( NULL AS INTEGER )
----
-65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT ALL 12 - + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL 12 - + COUNT ( * )
----
11

query I rowsort
SELECT 47 * + 42 AS col2
----
1974

query I rowsort
SELECT 82 * + 32
----
2624

query I rowsort
SELECT ALL 30 * + 87
----
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ( + + CASE 39 WHEN 36 + + COUNT( * ) THEN - COUNT( * ) WHEN ( - 4 ) THEN 34 ELSE + 6 * - + 29 * + - COUNT( * ) * + + COUNT( * ) END ) + - 20 AS col0
----
154

skipif mysql # not compatible
query I rowsort label-9619
SELECT ( + + CASE 39 WHEN 36 + + COUNT ( * ) THEN - COUNT ( * ) WHEN ( - 4 ) THEN 34 ELSE + 6 * - + 29 * + - COUNT ( * ) * + + COUNT ( * ) END ) + - 20 AS col0
----
154

query II rowsort
SELECT DISTINCT - 30 AS col0, 17
----
-30
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9621
SELECT COUNT( - 42 ) * + - 77 + 64 col0, + 8 + - 22 * + + 35 * CAST( NULL AS SIGNED ) + - + 54
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-9621
SELECT COUNT ( - 42 ) * + - 77 + 64 col0, + 8 + - 22 * + + 35 * CAST ( NULL AS INTEGER ) + - + 54
----
-13
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9622
SELECT ALL + 73 - + 54 + + NULLIF ( 32, 63 ) + + 38 + + COUNT( * ) DIV 6 + - 41 - 21 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL + 73 - + 54 + + NULLIF ( 32, 63 ) + + 38 + + COUNT ( * ) / 6 + - 41 - 21 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT 98 * + + COUNT( 57 )
----
98

skipif mysql # not compatible
query I rowsort label-9623
SELECT 98 * + + COUNT ( 57 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9624
SELECT DISTINCT 63 DIV - ( 72 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT 63 / - ( 72 ) col0
----
0

query I rowsort
SELECT ALL - NULLIF ( + 55, 44 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9626
SELECT CAST( 63 AS SIGNED ) * 19 - COUNT( * ) DIV - 43
----
1197

skipif mysql # not compatible
query I rowsort label-9626
SELECT CAST ( 63 AS INTEGER ) * 19 - COUNT ( * ) / - 43
----
1197

query II rowsort
SELECT 7 * + 83 AS col0, CASE + + 27 WHEN - 16 THEN + 65 WHEN + 8 * + - 73 * - 10 THEN NULL END AS col0
----
581
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9628
SELECT ALL - COUNT( * ) AS col2, + COUNT( + 93 )
----
-1
1

skipif mysql # not compatible
query II rowsort label-9628
SELECT ALL - COUNT ( * ) AS col2, + COUNT ( + 93 )
----
-1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT ALL - AVG ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL - - 84 * + - 35 + 64 + - - 79 + + COUNT( * ) * 86 * - ( ( 60 ) ) AS col2
----
-7957

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL - - 84 * + - 35 + 64 + - - 79 + + COUNT ( * ) * 86 * - ( ( 60 ) ) AS col2
----
-7957

query I rowsort
SELECT ALL + 20 + + 26 AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9632
SELECT ALL - - CAST( NULL AS SIGNED ) * - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 29 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9633
SELECT SUM( DISTINCT - + 99 ) AS col2, CASE + 86 WHEN - CAST( 42 AS SIGNED ) * + 4 THEN + 35 ELSE NULL END AS col1
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-9633
SELECT SUM ( DISTINCT - + 99 ) AS col2, CASE + 86 WHEN - CAST ( 42 AS INTEGER ) * + 4 THEN + 35 ELSE NULL END AS col1
----
-99
NULL

query I rowsort
SELECT ALL - - 92 + - + 46
----
46

query I rowsort
SELECT DISTINCT + 12 + + ( - - 16 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT + 96 * - + COUNT( * ) + - + 17 AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-9636
SELECT + 96 * - + COUNT ( * ) + - + 17 AS col2
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-9637
SELECT 97 DIV - 63 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9637
SELECT 97 / - 63 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT COUNT( ALL NULLIF ( - 95, - 4 ) ) * - 2 + 85 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-9638
SELECT COUNT ( ALL NULLIF ( - 95, - 4 ) ) * - 2 + 85 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9639
SELECT DISTINCT CAST( - - MAX( ALL 25 ) AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT CAST ( - - MAX ( ALL 25 ) AS INTEGER )
----
25

query I rowsort
SELECT ALL + + 4 + - 18 + 48 - 38
----
-4

query I rowsort
SELECT ALL + + 87 + 43
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-9642
SELECT DISTINCT + 96 + + ( + 44 ) + 40 DIV - 45 * - - 93 + + 41 AS col1
----
181

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT + 96 + + ( + 44 ) + 40 / - 45 * - - 93 + + 41 AS col1
----
181

query I rowsort
SELECT ALL + 38 + - 52 * - NULLIF ( + NULLIF ( 47, - AVG ( DISTINCT 17 ) ), - + 23 * 10 )
----
2482

onlyif mysql # aggregate syntax: 
query II rowsort label-9644
SELECT 7 * - 5 - + 93 + COUNT( * ) * - 86 * - 98 * + 65 AS col2, 19 AS col0
----
547692
19

skipif mysql # not compatible
query II rowsort label-9644
SELECT 7 * - 5 - + 93 + COUNT ( * ) * - 86 * - 98 * + 65 AS col2, 19 AS col0
----
547692
19

query II rowsort
SELECT DISTINCT 79 AS col2, 59
----
79
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL 19 - COUNT( + 23 )
----
18

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL 19 - COUNT ( + 23 )
----
18

query II rowsort
SELECT - + 54 col2, + 81
----
-54
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9648
SELECT DISTINCT 28 * 44 + NULLIF ( 14, + - 2 * 16 + + COUNT( * ) ) * + - 80 DIV 8 * + CAST( + + CAST( + 41 AS SIGNED ) AS SIGNED ) * - 41
----
236572

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT 28 * 44 + NULLIF ( 14, + - 2 * 16 + + COUNT ( * ) ) * + - 80 / 8 * + CAST ( + + CAST ( + 41 AS INTEGER ) AS INTEGER ) * - 41
----
236572

query I rowsort
SELECT ALL - 3 - + - 9
----
6

query I rowsort
SELECT DISTINCT 71 * - + 24 AS col0
----
-1704

query II rowsort
SELECT ALL - 4 * + + 91 AS col2, 59 + - 71 + + 55
----
-364
43

query II rowsort
SELECT ALL 76 * - 79 col2, 55 col2
----
-6004
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9653
SELECT ALL 23 DIV COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL 23 / COUNT ( * )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9654
SELECT 72 DIV - 16 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9654
SELECT 72 / - 16 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT COUNT( * ) * - 5 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9655
SELECT COUNT ( * ) * - 5 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9656
SELECT DISTINCT 57 * + COUNT( * ) AS col1, - COUNT( * ) * 51 AS col1
----
57
-51

skipif mysql # not compatible
query II rowsort label-9656
SELECT DISTINCT 57 * + COUNT ( * ) AS col1, - COUNT ( * ) * 51 AS col1
----
57
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT 33 * + + 57 + + - NULLIF ( - 61, COUNT( * ) ) * + 16
----
2857

skipif mysql # not compatible
query I rowsort label-9657
SELECT 33 * + + 57 + + - NULLIF ( - 61, COUNT ( * ) ) * + 16
----
2857

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT DISTINCT 6 * - + 45 + - + 19 * MIN( - - 15 ) + + 80 * - + CASE - 2 WHEN + 6 * + - COUNT( - 71 ) * NULLIF ( 47, + 28 * 46 ) + 16 THEN + + 41 WHEN 47 * COUNT( * ) + - 46 THEN + 54 - 13 ELSE 81 - 41 END * - 46 + + 54
----
146699

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT 6 * - + 45 + - + 19 * MIN ( - - 15 ) + + 80 * - + CASE - 2 WHEN + 6 * + - COUNT ( - 71 ) * NULLIF ( 47, + 28 * 46 ) + 16 THEN + + 41 WHEN 47 * COUNT ( * ) + - 46 THEN + 54 - 13 ELSE 81 - 41 END * - 46 + + 54
----
146699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9659
SELECT COUNT( DISTINCT - 50 ) + + CAST( NULL AS SIGNED ) AS col0, 56 + + + 7 AS col1
----
NULL
63

skipif mysql # not compatible
query II rowsort label-9659
SELECT COUNT ( DISTINCT - 50 ) + + CAST ( NULL AS INTEGER ) AS col0, 56 + + + 7 AS col1
----
NULL
63

query I rowsort
SELECT DISTINCT - 55 * - 81 + + 30 * 57
----
6165

query I rowsort
SELECT DISTINCT 21 * 42 AS col0
----
882

query I rowsort
SELECT ALL - - ( + 42 ) * + 83 * + 92 + - - 5 - - ( 56 ) * 18
----
321725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT ALL + - CAST( NULL AS SIGNED ) + - ( - 11 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL + - CAST ( NULL AS INTEGER ) + - ( - 11 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9664
SELECT ALL COUNT( * ) DIV + + 86 + + 9 col1, 6 * - + COALESCE ( + 2, 43 ) AS col0
----
9
-12

skipif mysql # not compatible
query II rowsort label-9664
SELECT ALL COUNT ( * ) / + + 86 + + 9 col1, 6 * - + COALESCE ( + 2, 43 ) AS col0
----
9
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT COUNT( 93 ) + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-9665
SELECT COUNT ( 93 ) + - 96
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT + COUNT( * ) * + 88 * - 12 col0
----
-1056

skipif mysql # not compatible
query I rowsort label-9666
SELECT + COUNT ( * ) * + 88 * - 12 col0
----
-1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9667
SELECT DISTINCT - - 14 + - - 0 AS col2, COUNT( * ) DIV + 34 + + COUNT( * ) + - 69 AS col0
----
14
-68

skipif mysql # not compatible
query II rowsort label-9667
SELECT DISTINCT - - 14 + - - 0 AS col2, COUNT ( * ) / + 34 + + COUNT ( * ) + - 69 AS col0
----
14
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9668
SELECT ALL + MIN( + CAST( - 68 AS SIGNED ) ) - + 29
----
-97

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL + MIN ( + CAST ( - 68 AS INTEGER ) ) - + 29
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT ALL - COALESCE ( - 98, 28 + - 56 ) * ( + + 65 ) + - - 67 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL - COALESCE ( - 98, 28 + - 56 ) * ( + + 65 ) + - - 67 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 73 * + + 77
----
-5621

query II rowsort
SELECT DISTINCT + ( + - 81 ), - NULLIF ( + + 26, + 86 ) AS col0
----
-81
-26

query I rowsort
SELECT DISTINCT - CASE - 35 WHEN 41 THEN - 78 END * - 40 / 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL + + 72 - + - ( 22 ) * 44 * COUNT( * ) + + 10
----
1050

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL + + 72 - + - ( 22 ) * 44 * COUNT ( * ) + + 10
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT - + 26 * - COUNT( * ) * + - 17
----
-442

skipif mysql # not compatible
query I rowsort label-9674
SELECT - + 26 * - COUNT ( * ) * + - 17
----
-442

query I rowsort
SELECT - 18 - + 51 * 56
----
-2874

query II rowsort
SELECT - 63 AS col2, - 9 - - - 74 col0
----
-63
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9677
SELECT 24, CAST( NULL AS SIGNED ) col1
----
24
NULL

skipif mysql # not compatible
query II rowsort label-9677
SELECT 24, CAST ( NULL AS INTEGER ) col1
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL NULLIF ( + COUNT( * ), 42 + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL NULLIF ( + COUNT ( * ), 42 + 20 )
----
1

query II rowsort
SELECT - 21 AS col1, 44 AS col0
----
-21
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9680
SELECT ALL + 45 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + 45 / 88
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9681
SELECT DISTINCT 26 AS col2, + COUNT( * ) AS col2
----
26
1

skipif mysql # not compatible
query II rowsort label-9681
SELECT DISTINCT 26 AS col2, + COUNT ( * ) AS col2
----
26
1

query I rowsort
SELECT - 35 + - + 33
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9683
SELECT ALL NULLIF ( - MAX( + COALESCE ( - ( - + 58 ), 69 ) ), - - COUNT( * ) / MAX( - 78 ) + - - 47 * - + COUNT( * ) ) col0, 14
----
-58
14

skipif mysql # not compatible
query II rowsort label-9683
SELECT ALL NULLIF ( - MAX ( + COALESCE ( - ( - + 58 ), 69 ) ), - - COUNT ( * ) / MAX ( - 78 ) + - - 47 * - + COUNT ( * ) ) col0, 14
----
-58
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT - 52 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT - 52 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 17 * - ( + + 40 )
----
-680

onlyif mysql # aggregate syntax: 
query II rowsort label-9686
SELECT 24 AS col2, ( - + NULLIF ( + 13, - COUNT( * ) - COUNT( * ) ) ) + - 1 AS col0
----
24
-14

skipif mysql # not compatible
query II rowsort label-9686
SELECT 24 AS col2, ( - + NULLIF ( + 13, - COUNT ( * ) - COUNT ( * ) ) ) + - 1 AS col0
----
24
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9687
SELECT + 34 DIV 28
----
1

skipif mysql # not compatible
query I rowsort label-9687
SELECT + 34 / 28
----
1

query I rowsort
SELECT ALL + 1 + - 13
----
-12

query I rowsort
SELECT ALL 16 + - 60 AS col1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9690
SELECT - COUNT( * ) * 1 DIV - 1
----
1

skipif mysql # not compatible
query I rowsort label-9690
SELECT - COUNT ( * ) * 1 / - 1
----
1

query I rowsort
SELECT DISTINCT - 56 * + + 62 AS col0
----
-3472

query II rowsort
SELECT DISTINCT + 39, 63 + + 6 AS col2
----
39
69

query II rowsort
SELECT DISTINCT + 74, - 28 AS col0
----
74
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL COUNT( * ) * - - 84 * + NULLIF ( + 39, - 71 + - + COALESCE ( + COUNT( ALL 98 ), 31 + + + 82 ) + - 92 + 52 * - + ( + + 53 ) / - ( 5 ) * 16 ) + + - NULLIF ( + 70, 34 ) * - 29 * COUNT( * ) * + 80
----
165676

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL COUNT ( * ) * - - 84 * + NULLIF ( + 39, - 71 + - + COALESCE ( + COUNT ( ALL 98 ), 31 + + + 82 ) + - 92 + 52 * - + ( + + 53 ) / - ( 5 ) * 16 ) + + - NULLIF ( + 70, 34 ) * - 29 * COUNT ( * ) * + 80
----
165676

query II rowsort
SELECT DISTINCT + 84, 48 + - 74 col1
----
84
-26

query I rowsort
SELECT ALL + - 89 * + 7 + 28 - 78
----
-673

onlyif mysql # DIV for integer division: 
query I rowsort label-9697
SELECT + NULLIF ( + 9, - 46 ) DIV + + 3 + - 80
----
-77

skipif mysql # not compatible
query I rowsort label-9697
SELECT + NULLIF ( + 9, - 46 ) / + + 3 + - 80
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9698
SELECT + + NULLIF ( 64, + 16 DIV 65 ) DIV COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-9698
SELECT + + NULLIF ( 64, + 16 / 65 ) / COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT + ( + - ( + SUM( + 95 ) ) )
----
-95

skipif mysql # not compatible
query I rowsort label-9699
SELECT + ( + - ( + SUM ( + 95 ) ) )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9700
SELECT 57 DIV COUNT( * ) + + 23 - ( + CAST( + COUNT( DISTINCT - 72 ) AS SIGNED ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9700
SELECT 57 / COUNT ( * ) + + 23 - ( + CAST ( + COUNT ( DISTINCT - 72 ) AS INTEGER ) ) AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9701
SELECT + 74 col1, + MIN( - - 55 ) * 93 - - 2 + CAST( - 30 AS SIGNED ) AS col0
----
74
5087

skipif mysql # not compatible
query II rowsort label-9701
SELECT + 74 col1, + MIN ( - - 55 ) * 93 - - 2 + CAST ( - 30 AS INTEGER ) AS col0
----
74
5087

query I rowsort
SELECT ALL 51 * - - 91
----
4641

query I rowsort
SELECT DISTINCT + - ( 63 ) * + 0 - + 3 * - 93 + 60
----
339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9704
SELECT ALL CAST( NULL AS SIGNED ) * - + 64 / ( + - MIN( ( - - 40 ) ) ) - - ( - - 98 ) / - - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL CAST ( NULL AS INTEGER ) * - + 64 / ( + - MIN ( ( - - 40 ) ) ) - - ( - - 98 ) / - - 21 AS col2
----
NULL

query II rowsort
SELECT ALL + 16 AS col0, - 52 - + 73 * ( - 65 )
----
16
4693

query I rowsort
SELECT ALL 18 * + 42
----
756

query II rowsort
SELECT - 47, 62 AS col2
----
-47
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT + + 47 + MIN( ALL 1 ) + + 42 + + 34
----
124

skipif mysql # not compatible
query I rowsort label-9708
SELECT + + 47 + MIN ( ALL 1 ) + + 42 + + 34
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT + + 41 - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-9709
SELECT + + 41 - COUNT ( * )
----
40

query I rowsort
SELECT ALL + 19 * + 1 - 54
----
-35

query II rowsort
SELECT ALL + 96, - 23 * + 55 AS col1
----
96
-1265

query I rowsort
SELECT - 49 * 94 + + + 69 + - + 82 + + - 99 * - 98 + - + 57 AS col2
----
5026

query I rowsort
SELECT - ( - 9 ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9714
SELECT + COUNT( * ) / - ( 66 ) * 81 - + CAST( NULL AS SIGNED ) + - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT + COUNT ( * ) / - ( 66 ) * 81 - + CAST ( NULL AS INTEGER ) + - 3 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9715
SELECT - 7 * - CAST( NULL AS SIGNED ) * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9715
SELECT - 7 * - CAST ( NULL AS INTEGER ) * + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT + COALESCE ( + + 34, - 60 + - - 7 - + + 94 + + MIN( DISTINCT + 20 ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9716
SELECT + COALESCE ( + + 34, - 60 + - - 7 - + + 94 + + MIN ( DISTINCT + 20 ) ) AS col2
----
34

query I rowsort
SELECT ALL NULLIF ( + + 82, 51 ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9718
SELECT + CASE + 82 WHEN - 63 THEN - - 54 + + 68 + + CAST( - NULLIF ( + 0, + + 75 + - 29 + NULLIF ( - 16, 66 * 64 ) / + + COUNT( DISTINCT + 80 ) ) AS SIGNED ) / - 15 + - + AVG ( DISTINCT 42 ) + 26 * - 23 WHEN - MIN( ALL + - 5 ) + 92 + COUNT( * ) * + CAST( + 55 + + 40 * 3 AS SIGNED ) THEN NULL END * + MAX( - 97 - + NULLIF ( 47, 12 ) * + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT + CASE + 82 WHEN - 63 THEN - - 54 + + 68 + + CAST ( - NULLIF ( + 0, + + 75 + - 29 + NULLIF ( - 16, 66 * 64 ) / + + COUNT ( DISTINCT + 80 ) ) AS INTEGER ) / - 15 + - + AVG ( DISTINCT 42 ) + 26 * - 23 WHEN - MIN ( ALL + - 5 ) + 92 + COUNT ( * ) * + CAST ( + 55 + + 40 * 3 AS INTEGER ) THEN NULL END * + MAX ( - 97 - + NULLIF ( 47, 12 ) * + 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT - 47 + + - 10 + - - CASE - 22 WHEN + - 15 THEN NULL WHEN + ( + + COUNT( * ) ) THEN NULL ELSE - 18 * - 73 + + + 52 + 90 + 67 * + + 95 END
----
7764

skipif mysql # not compatible
query I rowsort label-9719
SELECT - 47 + + - 10 + - - CASE - 22 WHEN + - 15 THEN NULL WHEN + ( + + COUNT ( * ) ) THEN NULL ELSE - 18 * - 73 + + + 52 + 90 + 67 * + + 95 END
----
7764

query I rowsort
SELECT DISTINCT 12 * - 52 * + 54
----
-33696

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9721
SELECT - ( MAX( 19 ) ) + - 75 DIV + 5 AS col0, 85 col2
----
-34
85

skipif mysql # not compatible
query II rowsort label-9721
SELECT - ( MAX ( 19 ) ) + - 75 / + 5 AS col0, 85 col2
----
-34
85

query I rowsort
SELECT ALL + 41 * - + 56
----
-2296

query I rowsort
SELECT - 17 + + - 32 AS col0
----
-49

query II rowsort
SELECT DISTINCT - 69 + + + 79, 79 col0
----
10
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9725
SELECT DISTINCT - 69 + 93 + - + 62 * - + ( + 36 ) + - + CAST( NULL AS SIGNED ) * - 46 + + + 54 / + 20 * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT - 69 + 93 + - + 62 * - + ( + 36 ) + - + CAST ( NULL AS INTEGER ) * - 46 + + + 54 / + 20 * 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT DISTINCT + ( ( + 37 ) ) + - - 79 - - ( - - 7 ) * + - MAX( + - 53 ) * + 76 AS col2
----
28312

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT + ( ( + 37 ) ) + - - 79 - - ( - - 7 ) * + - MAX ( + - 53 ) * + 76 AS col2
----
28312

query I rowsort
SELECT - 27 * + 65
----
-1755

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT DISTINCT + CASE 79 WHEN + COUNT( * ) THEN + 46 WHEN + 99 - + + 47 * + - COUNT( * ) * - + 5 * 11 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT + CASE 79 WHEN + COUNT ( * ) THEN + 46 WHEN + 99 - + + 47 * + - COUNT ( * ) * - + 5 * 11 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT - - COUNT( * ) * COALESCE ( 42, + + ( 62 ) )
----
42

skipif mysql # not compatible
query I rowsort label-9729
SELECT - - COUNT ( * ) * COALESCE ( 42, + + ( 62 ) )
----
42

query I rowsort
SELECT ALL + - 72 * + + 25
----
-1800

query I rowsort
SELECT DISTINCT + 0 - - 3
----
3

query I rowsort
SELECT 83 + - 92
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9733
SELECT ALL + 31 * + - 14 + CAST( - + COUNT( * ) AS SIGNED ) * 38
----
-472

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL + 31 * + - 14 + CAST ( - + COUNT ( * ) AS INTEGER ) * 38
----
-472

onlyif mysql # DIV for integer division: 
query I rowsort label-9734
SELECT 75 * 37 DIV - 84 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9734
SELECT 75 * 37 / - 84 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + MAX( ALL + 68 ) * - 90 + - 74 * + ( 73 ) AS col2
----
-11522

skipif mysql # not compatible
query I rowsort label-9735
SELECT + MAX ( ALL + 68 ) * - 90 + - 74 * + ( 73 ) AS col2
----
-11522

query I rowsort
SELECT DISTINCT + 65 - - 71 * - 75 + + 32 AS col2
----
-5228

query I rowsort
SELECT DISTINCT - + ( - - 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT - MAX( + 42 ) + 27 col0
----
-15

skipif mysql # not compatible
query I rowsort label-9738
SELECT - MAX ( + 42 ) + 27 col0
----
-15

query I rowsort
SELECT ALL 51 * - 12 * 40 AS col1
----
-24480

query I rowsort
SELECT ALL 79 * - - 91 AS col0
----
7189

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ALL - - 13 * - COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL - - 13 * - COUNT ( * ) AS col1
----
-13

query I rowsort
SELECT DISTINCT 1 + 95 - + - 90 col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL MIN( ALL + 39 ) + + - 35 * + + 92 * 5 - + + COUNT( * ) AS col2
----
-16062

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL MIN ( ALL + 39 ) + + - 35 * + + 92 * 5 - + + COUNT ( * ) AS col2
----
-16062

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT 85 DIV 81 * + 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-9744
SELECT 85 / 81 * + 45 AS col0
----
45

query I rowsort
SELECT 56 * 16 * 84 * + 50 AS col2
----
3763200

query I rowsort
SELECT 91 * + 5 AS col0
----
455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9747
SELECT AVG ( 42 ) * CAST( 48 AS DECIMAL ) + + CASE + AVG ( 47 ) WHEN - 41 THEN + + CAST( NULL AS SIGNED ) WHEN SUM( - - 71 ) * + 56 + - + COUNT( * ) - - COALESCE ( - + 26, + + 17 ) - + - 3 / - COUNT( * ) + - + 82 * + + 86 * + COALESCE ( - 91, 10, + - ( + CAST( 11 AS DECIMAL ) ) * 74 ) + 89 + 79 / 38 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT AVG ( 42 ) * CAST ( 48 AS REAL ) + + CASE + AVG ( 47 ) WHEN - 41 THEN + + CAST ( NULL AS INTEGER ) WHEN SUM ( - - 71 ) * + 56 + - + COUNT ( * ) - - COALESCE ( - + 26, + + 17 ) - + - 3 / - COUNT ( * ) + - + 82 * + + 86 * + COALESCE ( - 91, 10, + - ( + CAST ( 11 AS REAL ) ) * 74 ) + 89 + 79 / 38 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT DISTINCT COUNT( * ) + - - 34 - + COUNT( - 72 ) + 38 - + - 55 * + 40 AS col2
----
2272

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT COUNT ( * ) + - - 34 - + COUNT ( - 72 ) + 38 - + - 55 * + 40 AS col2
----
2272

query I rowsort
SELECT ALL 0 + CASE 95 WHEN - 70 / 65 + + 95 THEN 74 ELSE NULL END
----
NULL

query I rowsort
SELECT ( - 67 ) - - + 15 col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT DISTINCT COUNT( * ) + 11 * + SUM( 41 ) AS col0
----
452

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT COUNT ( * ) + 11 * + SUM ( 41 ) AS col0
----
452

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT ALL 64 + - ( - 65 ) + - ( 36 ) * - COUNT( ALL + + ( - 18 ) ) AS col2
----
165

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL 64 + - ( - 65 ) + - ( 36 ) * - COUNT ( ALL + + ( - 18 ) ) AS col2
----
165

query I rowsort
SELECT DISTINCT + 92 * + 18
----
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT 16 * - - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-9754
SELECT 16 * - - COUNT ( * )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT MAX( - 68 ) + ( + + 36 ) + NULLIF ( + 50, - 0 ) + 26 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9755
SELECT MAX ( - 68 ) + ( + + 36 ) + NULLIF ( + 50, - 0 ) + 26 AS col1
----
44

query I rowsort
SELECT 26 - + + 76 AS col2
----
-50

query II rowsort
SELECT - 51 AS col0, + 1 AS col1
----
-51
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9758
SELECT 0 + + CAST( NULL AS SIGNED ) + ( - CASE 57 WHEN + 75 * + 50 THEN - 52 ELSE NULL END ) * - + 99 - - COUNT( * ) - - - CAST( NULL AS SIGNED ) * MIN( ALL 40 ) - + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT 0 + + CAST ( NULL AS INTEGER ) + ( - CASE 57 WHEN + 75 * + 50 THEN - 52 ELSE NULL END ) * - + 99 - - COUNT ( * ) - - - CAST ( NULL AS INTEGER ) * MIN ( ALL 40 ) - + 14
----
NULL

query I rowsort
SELECT 6 * - 37 AS col2
----
-222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9760
SELECT ALL + - 70 - + - 69 * - 7 + - 6 DIV + 88 * - COUNT( * ) - + MAX( DISTINCT - 71 )
----
-482

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL + - 70 - + - 69 * - 7 + - 6 / + 88 * - COUNT ( * ) - + MAX ( DISTINCT - 71 )
----
-482

query I rowsort
SELECT - CASE - 53 WHEN + 17 THEN NULL WHEN 0 + - 97 THEN - - 32 ELSE + 70 * 18 + - - 17 * + 97 * - + 13 END + 38
----
20215

onlyif mysql # DIV for integer division: 
query I rowsort label-9762
SELECT DISTINCT 54 * + 51 * - COALESCE ( 0, - 6, 85 DIV + 15 + + 66 ) * + 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT 54 * + 51 * - COALESCE ( 0, - 6, 85 / + 15 + + 66 ) * + 41 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT CASE - 30 WHEN + NULLIF ( 0, - 75 ) THEN COUNT( * ) WHEN + + 23 * - NULLIF ( + 42, 78 ) + - - 5 THEN NULL WHEN + 45 / + 77 - + - 69 * + MAX( 43 ) + + 7 - + 71 THEN NULL END * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT CASE - 30 WHEN + NULLIF ( 0, - 75 ) THEN COUNT ( * ) WHEN + + 23 * - NULLIF ( + 42, 78 ) + - - 5 THEN NULL WHEN + 45 / + 77 - + - 69 * + MAX ( 43 ) + + 7 - + 71 THEN NULL END * + 24
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9764
SELECT + - 97, + 76 DIV + 62 col2
----
-97
1

skipif mysql # not compatible
query II rowsort label-9764
SELECT + - 97, + 76 / + 62 col2
----
-97
1

query I rowsort
SELECT ALL - 22 * + + 56 AS col0
----
-1232

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT + 30 DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9766
SELECT + 30 / 82 AS col1
----
0

query I rowsort
SELECT 31 * - - 5
----
155

query II rowsort
SELECT + 92 AS col1, 30
----
92
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9769
SELECT DISTINCT - 78 * MIN( + 50 ), - 42 AS col1
----
-3900
-42

skipif mysql # not compatible
query II rowsort label-9769
SELECT DISTINCT - 78 * MIN ( + 50 ), - 42 AS col1
----
-3900
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9770
SELECT - 96 DIV + 70 col2
----
-1

skipif mysql # not compatible
query I rowsort label-9770
SELECT - 96 / + 70 col2
----
-1

query I rowsort
SELECT ALL - 44 * + 83 + 27 col2
----
-3625

query I rowsort
SELECT + 5 - 50
----
-45

query I rowsort
SELECT ALL - - 80 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9774
SELECT NULLIF ( 8, - + 72 + + 17 DIV + + COUNT( * ) ) + CASE 41 WHEN - 13 THEN - + 6 ELSE MAX( - 80 ) * COUNT( * ) + 10 + - 61 + + 26 * + 54 + - CASE ( + 96 ) WHEN 86 * - + CAST( + 26 AS SIGNED ) + + COUNT( * ) * 44 + - COUNT( * ) * - ( 29 * 67 ) THEN - CASE + ( - CASE - NULLIF ( 59, + SUM( CAST( NULL AS SIGNED ) ) + - 36 * 6 ) WHEN 51 THEN NULL WHEN + 19 THEN 2 * 99 + + ( ( 85 ) ) ELSE 11 END ) WHEN 94 THEN 48 + CASE 49 + + COUNT( * ) WHEN 32 THEN COUNT( * ) DIV SUM( DISTINCT + 96 ) END ELSE NULL END ELSE 47 END * + 35 END
----
-364

skipif mysql # not compatible
query I rowsort label-9774
SELECT NULLIF ( 8, - + 72 + + 17 / + + COUNT ( * ) ) + CASE 41 WHEN - 13 THEN - + 6 ELSE MAX ( - 80 ) * COUNT ( * ) + 10 + - 61 + + 26 * + 54 + - CASE ( + 96 ) WHEN 86 * - + CAST ( + 26 AS INTEGER ) + + COUNT ( * ) * 44 + - COUNT ( * ) * - ( 29 * 67 ) THEN - CASE + ( - CASE - NULLIF ( 59, + SUM ( CAST ( NULL AS INTEGER ) ) + - 36 * 6 ) WHEN 51 THEN NULL WHEN + 19 THEN 2 * 99 + + ( ( 85 ) ) ELSE 11 END ) WHEN 94 THEN 48 + CASE 49 + + COUNT ( * ) WHEN 32 THEN COUNT ( * ) / SUM ( DISTINCT + 96 ) END ELSE NULL END ELSE 47 END * + 35 END
----
-364

query II rowsort
SELECT ALL - + 63 col2, + 68
----
-63
68

query I rowsort
SELECT DISTINCT - 26 * 35
----
-910

query I rowsort
SELECT ALL + 86 + - + ( + - 22 ) + - 35 col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT 56 + + COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-9778
SELECT 56 + + COUNT ( * ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9779
SELECT 1 * - COUNT( * ) AS col1, 79 + - + 54 AS col1
----
-1
25

skipif mysql # not compatible
query II rowsort label-9779
SELECT 1 * - COUNT ( * ) AS col1, 79 + - + 54 AS col1
----
-1
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9780
SELECT ALL - 14 + + 10 + COALESCE ( - CAST( + 89 AS SIGNED ), + COALESCE ( + 73, + 40 * + + 46 * 55 + - - 27 + 21 + + CAST( - - 24 AS SIGNED ) - - - CASE - - COUNT( * ) WHEN - 86 THEN NULL WHEN + 37 THEN + NULLIF ( + 96, + + 81 ) - - 63 + + CASE - - 39 WHEN + 88 * 58 / + 78 THEN 57 WHEN + 44 THEN 81 + 40 ELSE + 89 END ELSE NULL END + 57 * 8 * 79 ) ) * ( COUNT( * ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL - 14 + + 10 + COALESCE ( - CAST ( + 89 AS INTEGER ), + COALESCE ( + 73, + 40 * + + 46 * 55 + - - 27 + 21 + + CAST ( - - 24 AS INTEGER ) - - - CASE - - COUNT ( * ) WHEN - 86 THEN NULL WHEN + 37 THEN + NULLIF ( + 96, + + 81 ) - - 63 + + CASE - - 39 WHEN + 88 * 58 / + 78 THEN 57 WHEN + 44 THEN 81 + 40 ELSE + 89 END ELSE NULL END + 57 * 8 * 79 ) ) * ( COUNT ( * ) ) AS col2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9781
SELECT AVG ( - - 53 ) + + 54 * - 34 / CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - 37, 23 + - 62 col2
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-9781
SELECT AVG ( - - 53 ) + + 54 * - 34 / CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 37, 23 + - 62 col2
----
NULL
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-9782
SELECT DISTINCT 74 AS col2, + 23 - - SUM( DISTINCT 64 )
----
74
87

skipif mysql # not compatible
query II rowsort label-9782
SELECT DISTINCT 74 AS col2, + 23 - - SUM ( DISTINCT 64 )
----
74
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9783
SELECT ALL 79 AS col1, COUNT( * ) AS col0
----
79
1

skipif mysql # not compatible
query II rowsort label-9783
SELECT ALL 79 AS col1, COUNT ( * ) AS col0
----
79
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9784
SELECT COALESCE ( + 75, - CAST( - - 97 AS SIGNED ) + + - 84 ) + 5 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-9784
SELECT COALESCE ( + 75, - CAST ( - - 97 AS INTEGER ) + + - 84 ) + 5 AS col1
----
80

query I rowsort
SELECT DISTINCT - 97 * - 78
----
7566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9786
SELECT ALL COUNT( * ) - + NULLIF ( - - 5, 85 / CAST( COUNT( * ) AS SIGNED ) )
----
-4

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL COUNT ( * ) - + NULLIF ( - - 5, 85 / CAST ( COUNT ( * ) AS INTEGER ) )
----
-4

query I rowsort
SELECT 16 + 18
----
34

query I rowsort
SELECT ALL 58 * - + ( 64 ) AS col1
----
-3712

onlyif mysql # aggregate syntax: 
query II rowsort label-9789
SELECT ALL NULLIF ( - COUNT( * ), - - 66 ) * 56 * + + 33 * - 79, - 36 + - 63 * 60 AS col1
----
145992
-3816

skipif mysql # not compatible
query II rowsort label-9789
SELECT ALL NULLIF ( - COUNT ( * ), - - 66 ) * 56 * + + 33 * - 79, - 36 + - 63 * 60 AS col1
----
145992
-3816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9790
SELECT CAST( NULL AS SIGNED ) + + 37, - 30 * + - COUNT( * ) + + 62 * COUNT( * ) AS col1
----
NULL
92

skipif mysql # not compatible
query II rowsort label-9790
SELECT CAST ( NULL AS INTEGER ) + + 37, - 30 * + - COUNT ( * ) + + 62 * COUNT ( * ) AS col1
----
NULL
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9791
SELECT COUNT( * ) + 25 AS col2, - 84 AS col0
----
26
-84

skipif mysql # not compatible
query II rowsort label-9791
SELECT COUNT ( * ) + 25 AS col2, - 84 AS col0
----
26
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9792
SELECT ALL COUNT( * ) - + 3 + + MAX( DISTINCT + 13 ) + - ( + ( + COUNT( * ) ) ) DIV - 33 + COUNT( DISTINCT - + 80 )
----
12

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL COUNT ( * ) - + 3 + + MAX ( DISTINCT + 13 ) + - ( + ( + COUNT ( * ) ) ) / - 33 + COUNT ( DISTINCT - + 80 )
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9793
SELECT 45 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT 45 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT + 10 + + CAST( + ( + - 81 ) AS SIGNED ) + - + COUNT( * ) + MIN( + 44 ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-9794
SELECT + 10 + + CAST ( + ( + - 81 ) AS INTEGER ) + - + COUNT ( * ) + MIN ( + 44 ) col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9795
SELECT DISTINCT 75, - 80 * + + COALESCE ( + 56, + 72, 71 + + + 84 + - + 8 * + 6 * + - 63 ) DIV - + COUNT( * ) AS col2
----
75
4480

skipif mysql # not compatible
query II rowsort label-9795
SELECT DISTINCT 75, - 80 * + + COALESCE ( + 56, + 72, 71 + + + 84 + - + 8 * + 6 * + - 63 ) / - + COUNT ( * ) AS col2
----
75
4480

onlyif mysql # aggregate syntax: 
query II rowsort label-9796
SELECT - 31, + COUNT( * ) + - + 3 + - 21 col1
----
-31
-23

skipif mysql # not compatible
query II rowsort label-9796
SELECT - 31, + COUNT ( * ) + - + 3 + - 21 col1
----
-31
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT ALL + SUM( - - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL + SUM ( - - 79 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9798
SELECT DISTINCT 59 AS col2, + CAST( NULL AS SIGNED ) col0
----
59
NULL

skipif mysql # not compatible
query II rowsort label-9798
SELECT DISTINCT 59 AS col2, + CAST ( NULL AS INTEGER ) col0
----
59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9799
SELECT - 54, + 11 * CAST( + ( 66 ) AS SIGNED ) AS col0
----
-54
726

skipif mysql # not compatible
query II rowsort label-9799
SELECT - 54, + 11 * CAST ( + ( 66 ) AS INTEGER ) AS col0
----
-54
726

onlyif mysql # aggregate syntax: 
query II rowsort label-9800
SELECT - 65 AS col1, - MIN( 35 ) - + 65 * 95 + 78
----
-65
-6132

skipif mysql # not compatible
query II rowsort label-9800
SELECT - 65 AS col1, - MIN ( 35 ) - + 65 * 95 + 78
----
-65
-6132

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT + + MAX( ALL 11 ) * 24 AS col0
----
264

skipif mysql # not compatible
query I rowsort label-9801
SELECT + + MAX ( ALL 11 ) * 24 AS col0
----
264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9802
SELECT - + MAX( - 39 ) + + + ( 21 ) DIV 93 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9802
SELECT - + MAX ( - 39 ) + + + ( 21 ) / 93 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL - 48 * + COUNT( * ) + CASE - 37 WHEN + 86 THEN + - ( + - 63 ) * 90 + MAX( DISTINCT + + 40 ) + COUNT( * ) WHEN - 60 THEN + 33 + + 60 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL - 48 * + COUNT ( * ) + CASE - 37 WHEN + 86 THEN + - ( + - 63 ) * 90 + MAX ( DISTINCT + + 40 ) + COUNT ( * ) WHEN - 60 THEN + 33 + + 60 END AS col0
----
NULL

query II rowsort
SELECT - 49, 84 AS col2
----
-49
84

query I rowsort
SELECT - ( + - 91 ) * + 64 * - ( ( + 71 ) ) * - 21 + - 34 * - 33 - + 4
----
8684702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9806
SELECT + CASE 10 WHEN 27 THEN NULL ELSE + 75 + + MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) + 35 * 81 + + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT + CASE 10 WHEN 27 THEN NULL ELSE + 75 + + MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + 35 * 81 + + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9807
SELECT 93 DIV 50 + - 52 + + - 70 + 79
----
-42

skipif mysql # not compatible
query I rowsort label-9807
SELECT 93 / 50 + - 52 + + - 70 + 79
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ALL + + NULLIF ( + 5, - 92 + + - SUM( DISTINCT + 46 ) + + 94 )
----
5

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL + + NULLIF ( + 5, - 92 + + - SUM ( DISTINCT + 46 ) + + 94 )
----
5

query I rowsort
SELECT DISTINCT + ( + 84 ) * + 96 + 8
----
8072

query I rowsort
SELECT ALL 25 * + + 1 + 76
----
101

query II rowsort
SELECT + 22 AS col1, - 54 AS col2
----
22
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL 38 * COUNT( * ) + + + 84 + + 5 + + 12 + - 93 * - COUNT( * ) + + 52 + - + 93 AS col2
----
191

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL 38 * COUNT ( * ) + + + 84 + + 5 + + 12 + - 93 * - COUNT ( * ) + + 52 + - + 93 AS col2
----
191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9813
SELECT - NULLIF ( + 11, COUNT( * ) + + SUM( DISTINCT 72 ) * - COUNT( * ) * + 45 ) + - 27 + COUNT( * ) + + - MAX( 64 ) DIV + 96
----
-37

skipif mysql # not compatible
query I rowsort label-9813
SELECT - NULLIF ( + 11, COUNT ( * ) + + SUM ( DISTINCT 72 ) * - COUNT ( * ) * + 45 ) + - 27 + COUNT ( * ) + + - MAX ( 64 ) / + 96
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9814
SELECT - 95 AS col1, 55 + - 57 + - CASE 11 WHEN - COUNT( * ) THEN ( + 5 ) * 21 * + - AVG ( DISTINCT - ( 28 ) ) * 33 + ( - ( - 10 ) ) WHEN + 89 THEN + 83 + + COUNT( * ) WHEN + - 73 / + 76 + + - 93 THEN NULL END * - 62 AS col1
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-9814
SELECT - 95 AS col1, 55 + - 57 + - CASE 11 WHEN - COUNT ( * ) THEN ( + 5 ) * 21 * + - AVG ( DISTINCT - ( 28 ) ) * 33 + ( - ( - 10 ) ) WHEN + 89 THEN + 83 + + COUNT ( * ) WHEN + - 73 / + 76 + + - 93 THEN NULL END * - 62 AS col1
----
-95
NULL

query II rowsort
SELECT 52 * - 71 + - + 47 + + 18 * + 9 * - 39 AS col0, - 8 + + 43 AS col1
----
-10057
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT CASE + - 4 WHEN 20 + - 9 THEN NULL WHEN 10 THEN + 85 ELSE + NULLIF ( 83, 68 * - COALESCE ( 7, + COUNT( * ) - - 92 * + + SUM( DISTINCT + 25 ) ) ) END
----
83

skipif mysql # not compatible
query I rowsort label-9816
SELECT CASE + - 4 WHEN 20 + - 9 THEN NULL WHEN 10 THEN + 85 ELSE + NULLIF ( 83, 68 * - COALESCE ( 7, + COUNT ( * ) - - 92 * + + SUM ( DISTINCT + 25 ) ) ) END
----
83

query I rowsort
SELECT - 18 + + 55 + 27
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9818
SELECT - 6 * + + 73 AS col1, CAST( + 57 AS SIGNED ) AS col0
----
-438
57

skipif mysql # not compatible
query II rowsort label-9818
SELECT - 6 * + + 73 AS col1, CAST ( + 57 AS INTEGER ) AS col0
----
-438
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9819
SELECT - ( + 50 ) * + + COUNT( * ) DIV 88 * + 21 DIV - + 79
----
0

skipif mysql # not compatible
query I rowsort label-9819
SELECT - ( + 50 ) * + + COUNT ( * ) / 88 * + 21 / - + 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9820
SELECT ALL CAST( NULL AS SIGNED ) * + 48 + + 38 + - 47 * - 78 * + - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL CAST ( NULL AS INTEGER ) * + 48 + + 38 + - 47 * - 78 * + - 26 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( + 0 )
----
0

query I rowsort
SELECT ALL + 52 * + 91 - - - 20 AS col0
----
4712

query I rowsort
SELECT ALL - 2 * 29 - - 85 * + - 36 + + 79 AS col2
----
-3039

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT ALL COALESCE ( - ( + - 77 ), 78 + + 88 + + NULLIF ( + 67, + + 92 - + 97 ) + + 20 * - COUNT( ALL + - 98 ) + + 55 )
----
77

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL COALESCE ( - ( + - 77 ), 78 + + 88 + + NULLIF ( + 67, + + 92 - + 97 ) + + 20 * - COUNT ( ALL + - 98 ) + + 55 )
----
77

query I rowsort
SELECT DISTINCT ( + + 71 )
----
71

query II rowsort
SELECT DISTINCT 39 * - ( - 10 ) AS col1, 95 AS col1
----
390
95

query I rowsort
SELECT ALL 15 * + 63 * - - 42 * + 31 + + 92
----
1230482

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT + 85 DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-9828
SELECT + 85 / + 47
----
1

query I rowsort
SELECT - - ( ( - 47 ) ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT - 42 + + - 84 + + - COUNT( * )
----
-127

skipif mysql # not compatible
query I rowsort label-9830
SELECT - 42 + + - 84 + + - COUNT ( * )
----
-127

query II rowsort
SELECT + - 0 - + 17, 54 * + + 88 AS col1
----
-17
4752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9832
SELECT - - 89 DIV - - MAX( DISTINCT - 78 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9832
SELECT - - 89 / - - MAX ( DISTINCT - 78 ) col2
----
-1

query I rowsort
SELECT + + 25 - + + 33
----
-8

query I rowsort
SELECT ALL + ( 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT + - 8 * - CASE + 1 WHEN + COUNT( * ) THEN - 41 WHEN 48 + - 11 THEN NULL END AS col2
----
-328

skipif mysql # not compatible
query I rowsort label-9835
SELECT + - 8 * - CASE + 1 WHEN + COUNT ( * ) THEN - 41 WHEN 48 + - 11 THEN NULL END AS col2
----
-328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9836
SELECT + MAX( ALL + 87 ) DIV + - 2 col2, - CAST( 36 AS SIGNED ) AS col1
----
-43
-36

skipif mysql # not compatible
query II rowsort label-9836
SELECT + MAX ( ALL + 87 ) / + - 2 col2, - CAST ( 36 AS INTEGER ) AS col1
----
-43
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT ALL + - ( MAX( ALL - 78 ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL + - ( MAX ( ALL - 78 ) ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT + + 81 * - COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-9838
SELECT + + 81 * - COUNT ( * ) AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9839
SELECT DISTINCT - CAST( + 76 AS SIGNED ) DIV - 4 + - 37 + - 52 * ( - 13 )
----
658

skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT - CAST ( + 76 AS INTEGER ) / - 4 + - 37 + - 52 * ( - 13 )
----
658

query II rowsort
SELECT ALL + 56 AS col0, - 81 + 63 col0
----
56
-18

query I rowsort
SELECT - 76 * - 71
----
5396

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT 51 * + 9 - + COUNT( * )
----
458

skipif mysql # not compatible
query I rowsort label-9842
SELECT 51 * + 9 - + COUNT ( * )
----
458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9843
SELECT - 11 * - + COALESCE ( + 18, COALESCE ( + - COUNT( * ), + 28 * - CAST( NULL AS SIGNED ) + - 58, - + 10 ) * + 14 ) AS col1
----
198

skipif mysql # not compatible
query I rowsort label-9843
SELECT - 11 * - + COALESCE ( + 18, COALESCE ( + - COUNT ( * ), + 28 * - CAST ( NULL AS INTEGER ) + - 58, - + 10 ) * + 14 ) AS col1
----
198

query I rowsort
SELECT + 69 * - 84 + - 15
----
-5811

onlyif mysql # DIV for integer division: 
query I rowsort label-9845
SELECT - 29 - - + 57 DIV - - 85 * - ( + 52 ) * 11 + + 84 col0
----
55

skipif mysql # not compatible
query I rowsort label-9845
SELECT - 29 - - + 57 / - - 85 * - ( + 52 ) * 11 + + 84 col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9846
SELECT + CAST( NULL AS SIGNED ) * - 86 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT + CAST ( NULL AS INTEGER ) * - 86 col0
----
NULL

query I rowsort
SELECT 52 * 17 + - 50
----
834

query I rowsort
SELECT NULLIF ( + + 67, + 39 )
----
67

query I rowsort
SELECT ALL - ( + 23 ) * 18 * ( + + 42 ) AS col1
----
-17388

query I rowsort
SELECT 26 + + 10
----
36

query I rowsort
SELECT 35 + + 95 AS col0
----
130

query II rowsort
SELECT ALL 3 AS col2, 67 * + 8 * - 30 * - + 2 AS col2
----
3
32160

query I rowsort
SELECT ALL + 62 * + 11
----
682

query I rowsort
SELECT + 83 + + + 45 AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT NULLIF ( - 32, - 89 + 29 * - 78 + + 51 + - - ( + 56 ) / 73 * - 64 + - 29 - - 55 ) + + - COUNT( * ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-9855
SELECT NULLIF ( - 32, - 89 + 29 * - 78 + + 51 + - - ( + 56 ) / 73 * - 64 + - 29 - - 55 ) + + - COUNT ( * ) AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9856
SELECT ALL CAST( - - 80 AS SIGNED ) col1
----
80

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL CAST ( - - 80 AS INTEGER ) col1
----
80

query I rowsort
SELECT + 40 * + - 50
----
-2000

query I rowsort
SELECT + 10 + 58 * + + 62 * - - 38
----
136658

query II rowsort
SELECT - 61 AS col1, + 46 * 25 + 79 AS col0
----
-61
1229

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL + - COUNT( * ) + + COUNT( ALL 42 ) + 80 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL + - COUNT ( * ) + + COUNT ( ALL 42 ) + 80 AS col2
----
80

query I rowsort
SELECT DISTINCT + - 29 + 0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-9862
SELECT ALL + 62, ( - COUNT( * ) ) AS col0
----
62
-1

skipif mysql # not compatible
query II rowsort label-9862
SELECT ALL + 62, ( - COUNT ( * ) ) AS col0
----
62
-1

query I rowsort
SELECT 5 + 87 + CASE + 57 WHEN + + 41 THEN + + 35 / + 53 END * + 98 AS col2
----
NULL

query I rowsort
SELECT - 76 * + 47 * - ( 10 ) * + 57 AS col1
----
2036040

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT - 66 + - COUNT( ( - 78 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT - 66 + - COUNT ( ( - 78 ) )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9866
SELECT - ( - + CASE - COALESCE ( + 8, 26 ) WHEN - - 41 THEN + CASE + 83 WHEN + 78 THEN 62 ELSE NULL END / 48 WHEN - CASE + + COUNT( * ) WHEN COUNT( * ) / + 35 THEN + 53 WHEN 85 + NULLIF ( 66, - 77 + 99 - NULLIF ( 43, 87 ) / 51 - + NULLIF ( - 75, - SUM( - 30 ) ) + COUNT( * ) * ( ( + COUNT( 1 ) ) ) ) + 64 THEN NULL WHEN - 81 + ( - 26 ) * - AVG ( ALL 58 ) THEN 71 END - - 20 THEN COUNT( * ) - + 45 / + 56 ELSE ( CAST( NULL AS SIGNED ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9866
SELECT - ( - + CASE - COALESCE ( + 8, 26 ) WHEN - - 41 THEN + CASE + 83 WHEN + 78 THEN 62 ELSE NULL END / 48 WHEN - CASE + + COUNT ( * ) WHEN COUNT ( * ) / + 35 THEN + 53 WHEN 85 + NULLIF ( 66, - 77 + 99 - NULLIF ( 43, 87 ) / 51 - + NULLIF ( - 75, - SUM ( - 30 ) ) + COUNT ( * ) * ( ( + COUNT ( 1 ) ) ) ) + 64 THEN NULL WHEN - 81 + ( - 26 ) * - AVG ( ALL 58 ) THEN 71 END - - 20 THEN COUNT ( * ) - + 45 / + 56 ELSE ( CAST ( NULL AS INTEGER ) ) END )
----
NULL

query I rowsort
SELECT DISTINCT + + 4 + + - 9 + + 25 + + 1 AS col0
----
21

query I rowsort
SELECT + 43 - 17 AS col2
----
26

query I rowsort
SELECT ( 68 ) * - 1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT - NULLIF ( - SUM( 20 ), 42 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9870
SELECT - NULLIF ( - SUM ( 20 ), 42 ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9871
SELECT DISTINCT + 5 + + CAST( + 39 AS SIGNED ) + + 0 + - + SUM( DISTINCT 45 ) * 12 * 97 * + 65 AS col1
----
-3404656

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT + 5 + + CAST ( + 39 AS INTEGER ) + + 0 + - + SUM ( DISTINCT 45 ) * 12 * 97 * + 65 AS col1
----
-3404656

query I rowsort
SELECT - 35 + + + 46 AS col0
----
11

query I rowsort
SELECT 23 * + + 48 AS col1
----
1104

onlyif mysql # DIV for integer division: 
query I rowsort label-9874
SELECT ALL 71 - - + 5 + - + 38 DIV 37 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL 71 - - + 5 + - + 38 / 37 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL COALESCE ( 32, ( 32 ) ) * COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL COALESCE ( 32, ( 32 ) ) * COUNT ( * )
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9876
SELECT - 3 * - COALESCE ( 78, + CASE + 45 WHEN + - 94 + + + 75 THEN NULLIF ( + + 42, 76 DIV + 52 ) + + ( - 69 ) DIV + 25 DIV + 6 ELSE NULL END DIV + 63 ) + - CAST( + NULLIF ( 36, + 26 ) AS SIGNED ) + - + 89 * 78
----
-6744

skipif mysql # not compatible
query I rowsort label-9876
SELECT - 3 * - COALESCE ( 78, + CASE + 45 WHEN + - 94 + + + 75 THEN NULLIF ( + + 42, 76 / + 52 ) + + ( - 69 ) / + 25 / + 6 ELSE NULL END / + 63 ) + - CAST ( + NULLIF ( 36, + 26 ) AS INTEGER ) + - + 89 * 78
----
-6744

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT DISTINCT ( COUNT( * ) ) * 45 * + + 59, + 31 AS col2
----
2655
31

skipif mysql # not compatible
query II rowsort label-9877
SELECT DISTINCT ( COUNT ( * ) ) * 45 * + + 59, + 31 AS col2
----
2655
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL - SUM( 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - SUM ( 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT ALL - CASE + + 32 WHEN + 44 * + COUNT( * ) + - 32 THEN + NULLIF ( COUNT( * ), 27 ) + 84 * 58 * - 73 WHEN + + 14 / ( + SUM( + 42 ) ) + - 33 THEN - - 96 + + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL - CASE + + 32 WHEN + 44 * + COUNT ( * ) + - 32 THEN + NULLIF ( COUNT ( * ), 27 ) + 84 * 58 * - 73 WHEN + + 14 / ( + SUM ( + 42 ) ) + - 33 THEN - - 96 + + 88 END
----
NULL

query I rowsort
SELECT DISTINCT ( - 18 ) * 29 AS col0
----
-522

onlyif mysql # DIV for integer division: 
query I rowsort label-9881
SELECT DISTINCT + 3 DIV - - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT + 3 / - - 51 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9882
SELECT 94 * + - 52 + - COUNT( * ) * + COUNT( * ) - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9882
SELECT 94 * + - 52 + - COUNT ( * ) * + COUNT ( * ) - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT COUNT( * ) + - - 5
----
6

skipif mysql # not compatible
query I rowsort label-9883
SELECT COUNT ( * ) + - - 5
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT 10 * + COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9884
SELECT 10 * + COUNT ( * ) AS col2
----
10

query I rowsort
SELECT DISTINCT - ( + - 49 ) + 6 AS col2
----
55

query I rowsort
SELECT ALL + 3 + + + 81 AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT - 47 - + 89 * + CAST( 29 AS SIGNED ) - NULLIF ( + 89, 12 ) col0
----
-2717

skipif mysql # not compatible
query I rowsort label-9887
SELECT - 47 - + 89 * + CAST ( 29 AS INTEGER ) - NULLIF ( + 89, 12 ) col0
----
-2717

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9888
SELECT ALL + AVG ( ALL + CASE + + 76 WHEN - 75 / - CAST( NULL AS SIGNED ) + - 79 * 45 / COALESCE ( 19, + 46 / + - 62 + 62 * 35 + + + 16 ) * 54 * + 67 - + 36 / - 18 THEN + 17 END ) AS col2, - 62 * - 85 AS col2
----
NULL
5270

skipif mysql # not compatible
query II rowsort label-9888
SELECT ALL + AVG ( ALL + CASE + + 76 WHEN - 75 / - CAST ( NULL AS INTEGER ) + - 79 * 45 / COALESCE ( 19, + 46 / + - 62 + 62 * 35 + + + 16 ) * 54 * + 67 - + 36 / - 18 THEN + 17 END ) AS col2, - 62 * - 85 AS col2
----
NULL
5270

query I rowsort
SELECT + ( + + 35 ) * 36 AS col2
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT 89 - CASE + 45 WHEN + - 48 THEN NULL ELSE + MIN( 77 ) END + 51 - + + COALESCE ( 96, 35 )
----
-33

skipif mysql # not compatible
query I rowsort label-9890
SELECT 89 - CASE + 45 WHEN + - 48 THEN NULL ELSE + MIN ( 77 ) END + 51 - + + COALESCE ( 96, 35 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT ALL COUNT( * ) * + ( + SUM( - + 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL COUNT ( * ) * + ( + SUM ( - + 65 ) )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9892
SELECT ALL - 67 + - COALESCE ( - 10, + 59 * - MIN( 86 ) * + 14 + - 0 DIV + COALESCE ( - 73, - AVG ( ALL 64 ) ) - + - 3 + + ( - 70 ) + ( + 61 ) ) + - 63 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL - 67 + - COALESCE ( - 10, + 59 * - MIN ( 86 ) * + 14 + - 0 / + COALESCE ( - 73, - AVG ( ALL 64 ) ) - + - 3 + + ( - 70 ) + ( + 61 ) ) + - 63 AS col0
----
-120

query I rowsort
SELECT 69 + + + 18
----
87

query I rowsort
SELECT 59 - + - 61 + 50 * 10
----
620

query I rowsort
SELECT - 24 - + + 53 - + 38 + - 26 AS col0
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-9896
SELECT + COUNT( DISTINCT - 25 ) AS col2, 47 col2
----
1
47

skipif mysql # not compatible
query II rowsort label-9896
SELECT + COUNT ( DISTINCT - 25 ) AS col2, 47 col2
----
1
47

query I rowsort
SELECT ALL + 26 - - 79
----
105

query I rowsort
SELECT 38 + + 37
----
75

query I rowsort
SELECT ALL + ( ( 47 ) ) AS col0
----
47

query I rowsort
SELECT ALL 30 * + 62 AS col2
----
1860

query II rowsort
SELECT + 63 AS col2, + 46
----
63
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT 0 * + SUM( - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-9902
SELECT 0 * + SUM ( - 15 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9903
SELECT - 76 * ( + - 80 ) DIV - 26
----
-233

skipif mysql # not compatible
query I rowsort label-9903
SELECT - 76 * ( + - 80 ) / - 26
----
-233

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT + MIN( DISTINCT + ( - 10 ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9904
SELECT + MIN ( DISTINCT + ( - 10 ) ) AS col1
----
-10

query I rowsort
SELECT - 93 + - + 63
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9906
SELECT ALL + 55 AS col2, ( CASE - - 55 WHEN - 68 + + - 69 - - + NULLIF ( + 26, - 6 ) THEN - 75 / + + COUNT( DISTINCT + 82 ) / - CASE + - 4 WHEN 30 THEN 83 WHEN + 11 THEN - + COUNT( * ) ELSE + + 90 * - - AVG ( ALL - 55 ) + - CAST( + + 11 AS SIGNED ) * - ( - + 59 ) + + 97 * - + 66 - - - SUM( DISTINCT ( + 91 ) ) + 4 * 45 END * 8 END ) + + 18
----
55
NULL

skipif mysql # not compatible
query II rowsort label-9906
SELECT ALL + 55 AS col2, ( CASE - - 55 WHEN - 68 + + - 69 - - + NULLIF ( + 26, - 6 ) THEN - 75 / + + COUNT ( DISTINCT + 82 ) / - CASE + - 4 WHEN 30 THEN 83 WHEN + 11 THEN - + COUNT ( * ) ELSE + + 90 * - - AVG ( ALL - 55 ) + - CAST ( + + 11 AS INTEGER ) * - ( - + 59 ) + + 97 * - + 66 - - - SUM ( DISTINCT ( + 91 ) ) + 4 * 45 END * 8 END ) + + 18
----
55
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9907
SELECT DISTINCT - ( SUM( ALL + + 51 ) ) DIV COUNT( * ) * - + COALESCE ( 69, + 10 )
----
3519

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT - ( SUM ( ALL + + 51 ) ) / COUNT ( * ) * - + COALESCE ( 69, + 10 )
----
3519

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT + MIN( DISTINCT + - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-9908
SELECT + MIN ( DISTINCT + - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT - 34 + 9 + - COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-9909
SELECT - 34 + 9 + - COUNT ( * ) AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT - 22 * + 8 + + CAST( - + 77 AS SIGNED ) AS col1
----
-253

skipif mysql # not compatible
query I rowsort label-9910
SELECT - 22 * + 8 + + CAST ( - + 77 AS INTEGER ) AS col1
----
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT + ( + 31 ) + - MIN( DISTINCT + 0 )
----
31

skipif mysql # not compatible
query I rowsort label-9911
SELECT + ( + 31 ) + - MIN ( DISTINCT + 0 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT - - 40 * 53 + - NULLIF ( - 46, - 81 * - NULLIF ( 24, COUNT( * ) + ( + 49 ) * - + 0 ) )
----
2166

skipif mysql # not compatible
query I rowsort label-9912
SELECT - - 40 * 53 + - NULLIF ( - 46, - 81 * - NULLIF ( 24, COUNT ( * ) + ( + 49 ) * - + 0 ) )
----
2166

query I rowsort
SELECT + 92 * 51 AS col1
----
4692

query I rowsort
SELECT + - 26 + - 47
----
-73

query I rowsort
SELECT ALL - 21 * + - 20
----
420

query I rowsort
SELECT + + 52 + + 53
----
105

query II rowsort
SELECT ALL - 45 AS col0, + 48
----
-45
48

query I rowsort
SELECT ALL - 71 + - + 97
----
-168

query I rowsort
SELECT + 67 * + - 31 + 72 + + - COALESCE ( + + 66, - 54 * - 89 )
----
-2071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9920
SELECT DISTINCT - - 79 / - 30 + - 83 * + NULLIF ( - 15, - 19 + + COUNT( * ) * COUNT( * ) ) * 88 + - CAST( NULL AS SIGNED ) + + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT - - 79 / - 30 + - 83 * + NULLIF ( - 15, - 19 + + COUNT ( * ) * COUNT ( * ) ) * 88 + - CAST ( NULL AS INTEGER ) + + 40 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 38 - + ( - 67 )
----
105

query I rowsort
SELECT - 94 + - 88 + - COALESCE ( 28, - 90, + 70 ) AS col1
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT + + 0 * - ( - CASE 93 WHEN - 12 THEN + COALESCE ( 76, 78 ) WHEN - COUNT( * ) THEN + - 74 ELSE NULL END ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT + + 0 * - ( - CASE 93 WHEN - 12 THEN + COALESCE ( 76, 78 ) WHEN - COUNT ( * ) THEN + - 74 ELSE NULL END ) * COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9924
SELECT 71 AS col2, - 67 DIV + 87
----
71
0

skipif mysql # not compatible
query II rowsort label-9924
SELECT 71 AS col2, - 67 / + 87
----
71
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT DISTINCT + 89 DIV - 26 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT + 89 / - 26 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9926
SELECT ALL - + COALESCE ( + SUM( ALL CAST( + - 82 AS SIGNED ) ), 45 * + + 58 ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL - + COALESCE ( + SUM ( ALL CAST ( + - 82 AS INTEGER ) ), 45 * + + 58 ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9927
SELECT + + 50 / CASE COUNT( * ) WHEN - + 37 THEN - CAST( - + COUNT( DISTINCT + - 49 ) AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT + + 50 / CASE COUNT ( * ) WHEN - + 37 THEN - CAST ( - + COUNT ( DISTINCT + - 49 ) AS REAL ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9928
SELECT ALL + 44 DIV 41 * COALESCE ( + 16, 78 )
----
16

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL + 44 / 41 * COALESCE ( + 16, 78 )
----
16

query I rowsort
SELECT + 70 + + 11
----
81

query I rowsort
SELECT ALL + 64 * + 67
----
4288

query I rowsort
SELECT ALL 53 * - + 25 AS col2
----
-1325

query I rowsort
SELECT ALL + 95 * 76
----
7220

query I rowsort
SELECT + 6 - - 91
----
97

query I rowsort
SELECT DISTINCT COALESCE ( + + 23, - 25 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9935
SELECT ALL + CASE CAST( - 67 AS SIGNED ) WHEN - - COUNT( * ) THEN - 71 * - + COUNT( * ) END AS col2, - 57 AS col0
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-9935
SELECT ALL + CASE CAST ( - 67 AS INTEGER ) WHEN - - COUNT ( * ) THEN - 71 * - + COUNT ( * ) END AS col2, - 57 AS col0
----
NULL
-57

query I rowsort
SELECT - 82 * + 22
----
-1804

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT - 52 - - CASE + COALESCE ( - 49, - COUNT( * ) ) WHEN + 60 * - 79 - - 10 * 26 THEN ( - ( COUNT( * ) ) ) + 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT - 52 - - CASE + COALESCE ( - 49, - COUNT ( * ) ) WHEN + 60 * - 79 - - 10 * 26 THEN ( - ( COUNT ( * ) ) ) + 70 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9938
SELECT DISTINCT - 55 DIV + 71 + + 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT - 55 / + 71 + + 98 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT - 46 * - CAST( + 73 AS SIGNED )
----
3358

skipif mysql # not compatible
query I rowsort label-9939
SELECT - 46 * - CAST ( + 73 AS INTEGER )
----
3358

onlyif mysql # DIV for integer division: 
query I rowsort label-9940
SELECT ALL + 22 DIV - 37 + - 68 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL + 22 / - 37 + - 68 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9941
SELECT DISTINCT ( 8 ) * - 59 * - 88 + + COUNT( * ) + + 73 AS col0, 93
----
41610
93

skipif mysql # not compatible
query II rowsort label-9941
SELECT DISTINCT ( 8 ) * - 59 * - 88 + + COUNT ( * ) + + 73 AS col0, 93
----
41610
93

query I rowsort
SELECT ALL - 3 * - 67
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-9943
SELECT - 10 DIV + + 97
----
0

skipif mysql # not compatible
query I rowsort label-9943
SELECT - 10 / + + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT 30 * - COUNT( * ) + - 60 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9944
SELECT 30 * - COUNT ( * ) + - 60 AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9945
SELECT ALL AVG ( ALL - 75 ) * - + 47 / - COUNT( * ) + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL AVG ( ALL - 75 ) * - + 47 / - COUNT ( * ) + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + 50, 96 * + - 94 col1
----
50
-9024

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT - 80 DIV + 17 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9947
SELECT - 80 / + 17 AS col1
----
-4

query I rowsort
SELECT - 29 * + + 72 AS col2
----
-2088

query II rowsort
SELECT + + 57, + 59 AS col2
----
57
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9950
SELECT 20 * - CAST( NULL AS SIGNED ) * - 17 + + - 98 - + CASE 8 WHEN - - 20 THEN - + 79 WHEN 91 * - 58 THEN 88 * 14 ELSE NULL END / - COALESCE ( - SUM( DISTINCT + - 15 ), + 69 + 45 + - - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT 20 * - CAST ( NULL AS INTEGER ) * - 17 + + - 98 - + CASE 8 WHEN - - 20 THEN - + 79 WHEN 91 * - 58 THEN 88 * 14 ELSE NULL END / - COALESCE ( - SUM ( DISTINCT + - 15 ), + 69 + 45 + - - 97 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT + + COUNT( * ) * + - 73 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9951
SELECT + + COUNT ( * ) * + - 73 AS col1
----
-73

query I rowsort
SELECT ALL ( 49 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT - CASE + COUNT( + 41 ) WHEN 81 THEN + - 44 + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT - CASE + COUNT ( + 41 ) WHEN 81 THEN + - 44 + 72 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9954
SELECT ALL + CASE - CAST( NULL AS SIGNED ) WHEN - 6 + - ( COUNT( * ) ) THEN NULL WHEN + - 79 + 87 THEN + NULLIF ( + AVG ( DISTINCT - 95 ), - COUNT( * ) ) END * - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL + CASE - CAST ( NULL AS INTEGER ) WHEN - 6 + - ( COUNT ( * ) ) THEN NULL WHEN + - 79 + 87 THEN + NULLIF ( + AVG ( DISTINCT - 95 ), - COUNT ( * ) ) END * - 62 AS col0
----
NULL

query I rowsort
SELECT + + 54 * + 9 * + + NULLIF ( + + NULLIF ( + + 98, + + 86 ), 34 / + - 49 + - 71 * - 34 ) + 71 AS col0
----
47699

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT - MAX( DISTINCT - 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT - MAX ( DISTINCT - 78 ) AS col2
----
78

query I rowsort
SELECT + 72 + + 78 - - 80
----
230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9958
SELECT DISTINCT + NULLIF ( 49, + MIN( DISTINCT 66 ) * + 86 - CASE - 82 WHEN - - COALESCE ( + COUNT( * ), - COUNT( + - CAST( + 24 AS SIGNED ) ) ) / + 39 THEN NULL ELSE 59 * + 71 * - + ( ( + + 19 ) ) + + 13 END )
----
49

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT + NULLIF ( 49, + MIN ( DISTINCT 66 ) * + 86 - CASE - 82 WHEN - - COALESCE ( + COUNT ( * ), - COUNT ( + - CAST ( + 24 AS INTEGER ) ) ) / + 39 THEN NULL ELSE 59 * + 71 * - + ( ( + + 19 ) ) + + 13 END )
----
49

query I rowsort
SELECT + 25 + + 9
----
34

query I rowsort
SELECT + - 27 * - - 64
----
-1728

query I rowsort
SELECT + 30 * + + 56 AS col2
----
1680

query I rowsort
SELECT + 89 - + + 11 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL - ( - - COUNT( * ) ) * - 3 - 57 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL - ( - - COUNT ( * ) ) * - 3 - 57 AS col2
----
-54

query I rowsort
SELECT ALL 76 + + 55
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9965
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9966
SELECT ALL + 61 + 2 * + 59 * - MIN( - + 38 ) * - 65 * - CAST( + 49 AS SIGNED ), + 61 + COUNT( * ) AS col0, + 52 col1
----
14281601
62
52

skipif mysql # not compatible
query III rowsort label-9966
SELECT ALL + 61 + 2 * + 59 * - MIN ( - + 38 ) * - 65 * - CAST ( + 49 AS INTEGER ), + 61 + COUNT ( * ) AS col0, + 52 col1
----
14281601
62
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT 98 * - ( - - COUNT( * ) ) + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-9967
SELECT 98 * - ( - - COUNT ( * ) ) + COUNT ( * )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9968
SELECT - 77 DIV - + 11 + + 39 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9968
SELECT - 77 / - + 11 + + 39 AS col0
----
46

query II rowsort
SELECT ALL - 99 + - 7, + 36 col1
----
-106
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ALL - SUM( ALL 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL - SUM ( ALL 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT + 33 * + + 17 + 95 * COUNT( * ) AS col2
----
656

skipif mysql # not compatible
query I rowsort label-9971
SELECT + 33 * + + 17 + 95 * COUNT ( * ) AS col2
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT 35 * COUNT( * ) + 52 + + 28
----
115

skipif mysql # not compatible
query I rowsort label-9972
SELECT 35 * COUNT ( * ) + 52 + + 28
----
115

query I rowsort
SELECT ALL - 24 - + 42 col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT 18 + - NULLIF ( + - 47, - 72 * - 73 / - 10 * - - COUNT( * ) - 77 )
----
65

skipif mysql # not compatible
query I rowsort label-9974
SELECT 18 + - NULLIF ( + - 47, - 72 * - 73 / - 10 * - - COUNT ( * ) - 77 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT DISTINCT + + 95 * COUNT( * ) * + - 52 * - ( 21 ) + SUM( + 93 ) AS col2
----
103833

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT + + 95 * COUNT ( * ) * + - 52 * - ( 21 ) + SUM ( + 93 ) AS col2
----
103833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9976
SELECT CAST( AVG ( ALL + 57 ) AS SIGNED ) * - COUNT( * ) + + 38
----
-19

skipif mysql # not compatible
query I rowsort label-9976
SELECT CAST ( AVG ( ALL + 57 ) AS INTEGER ) * - COUNT ( * ) + + 38
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT + - COUNT( * ) * 44 + + COUNT( * ) + - - 31
----
-12

skipif mysql # not compatible
query I rowsort label-9977
SELECT + - COUNT ( * ) * 44 + + COUNT ( * ) + - - 31
----
-12

query I rowsort
SELECT ALL - + 66 * - 56
----
3696

onlyif mysql # DIV for integer division: 
query II rowsort label-9979
SELECT ALL 73 DIV + 18 AS col0, + ( 50 )
----
4
50

skipif mysql # not compatible
query II rowsort label-9979
SELECT ALL 73 / + 18 AS col0, + ( 50 )
----
4
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT - COUNT( * ) + - - 72 + + COUNT( * ) - 90 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9980
SELECT - COUNT ( * ) + - - 72 + + COUNT ( * ) - 90 AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9981
SELECT + 52 DIV - CAST( - 17 AS SIGNED ) * + + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9981
SELECT + 52 / - CAST ( - 17 AS INTEGER ) * + + COUNT ( * ) AS col0
----
3

query I rowsort
SELECT ALL NULLIF ( + 38, + 78 ) AS col1
----
38

query II rowsort
SELECT DISTINCT - ( - 21 ) AS col0, 72 * - 89
----
21
-6408

query I rowsort
SELECT 39 + + + 2 AS col0
----
41

query I rowsort
SELECT ALL 71 + - - 11 AS col2
----
82

query I rowsort
SELECT DISTINCT NULLIF ( - NULLIF ( + - 37, + 34 - 99 ), 63 ) * + 4
----
148

query I rowsort
SELECT DISTINCT + 47 + - - 82 + 29 * 37 AS col0
----
1202

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9988
SELECT ALL - 75 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - 75 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 58 + - 11
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9990
SELECT ALL 17 + - 59 + - + 78 DIV 16 * - - MAX( - ( 95 ) ) * + 65 AS col2, - 44 AS col0
----
24658
-44

skipif mysql # not compatible
query II rowsort label-9990
SELECT ALL 17 + - 59 + - + 78 / 16 * - - MAX ( - ( 95 ) ) * + 65 AS col2, - 44 AS col0
----
24658
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9991
SELECT COUNT( * ) DIV + 93 * - - 76 col2
----
0

skipif mysql # not compatible
query I rowsort label-9991
SELECT COUNT ( * ) / + 93 * - - 76 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9992
SELECT DISTINCT 79 col1, SUM( 4 ) * CAST( NULL AS SIGNED ) AS col0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-9992
SELECT DISTINCT 79 col1, SUM ( 4 ) * CAST ( NULL AS INTEGER ) AS col0
----
79
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9993
SELECT ALL COUNT( * ) + + 28 + + - COUNT( * ) AS col1, + 19 * - 37 * - + 59 * 47
----
28
1949419

skipif mysql # not compatible
query II rowsort label-9993
SELECT ALL COUNT ( * ) + + 28 + + - COUNT ( * ) AS col1, + 19 * - 37 * - + 59 * 47
----
28
1949419

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT CAST( ( - 5 ) AS SIGNED ) + + + 37
----
32

skipif mysql # not compatible
query I rowsort label-9994
SELECT CAST ( ( - 5 ) AS INTEGER ) + + + 37
----
32

query II rowsort
SELECT + 37, - 99 + - ( 21 ) * + - 77 AS col0
----
37
1518

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9996
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - SUM( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT CAST ( NULL AS REAL ) / - SUM ( 9 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT ( 74 ) - + + COUNT( * ) + 71 * 47
----
3410

skipif mysql # not compatible
query I rowsort label-9997
SELECT ( 74 ) - + + COUNT ( * ) + 71 * 47
----
3410

query I rowsort
SELECT ALL 51 * 84
----
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT COUNT( DISTINCT ( + + 85 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9999
SELECT COUNT ( DISTINCT ( + + 85 ) )
----
1

