sqllogictest
Artifact Content
Not logged in

Artifact 72addd780f3c84859adc790f4d2974524a36e4b9:


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