sqllogictest
Artifact Content
Not logged in

Artifact 205c31820222129c4c8e186faa6ca86c13e46f87:


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 - + 4 * + ( + 80 ) AS col2
----
-320

query I rowsort
SELECT + - 35 * + 81 + + + 41
----
-2794

query I rowsort
SELECT DISTINCT + - 80 AS col0
----
-80

query I rowsort
SELECT ALL 74 * - - ( - 67 ) - 90 AS col2
----
-5048

query II rowsort
SELECT DISTINCT + 77 AS col0, 92
----
77
92

query I rowsort
SELECT - 25 + 36 AS col1
----
11

query II rowsort
SELECT ALL + 54 AS col1, 84 AS col2
----
54
84

query I rowsort
SELECT 67 * 30 * + - 28 * - + 66 + ( 18 ) AS col2
----
3714498

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT ( + COALESCE ( + 75, + COUNT( ALL 78 ) ) )
----
75

skipif mysql # not compatible
query I rowsort label-8
SELECT ( + COALESCE ( + 75, + COUNT ( ALL 78 ) ) )
----
75

query I rowsort
SELECT - 48 * - + 62
----
2976

query I rowsort
SELECT - 54 * ( - ( + 40 ) ) AS col0
----
2160

query I rowsort
SELECT - 71 + 82
----
11

query I rowsort
SELECT DISTINCT - ( - 58 ) * 54 AS col0
----
3132

query I rowsort
SELECT ALL + 77 * + + 51 * + 84
----
329868

query I rowsort
SELECT 34 * - NULLIF ( 39, 56 ) AS col1
----
-1326

query I rowsort
SELECT ALL + 4 * - 53
----
-212

onlyif mysql # DIV for integer division: 
query II rowsort label-16
SELECT ALL 13 AS col1, 10 DIV 84
----
13
0

skipif mysql # not compatible
query II rowsort label-16
SELECT ALL 13 AS col1, 10 / 84
----
13
0

query II rowsort
SELECT ALL + ( + 70 ) * 90 AS col0, - 70
----
6300
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT COUNT( + 62 ) * COUNT( * ) * + 68 + + 34
----
102

skipif mysql # not compatible
query I rowsort label-18
SELECT COUNT ( + 62 ) * COUNT ( * ) * + 68 + + 34
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-19
SELECT DISTINCT + 59 + - + CASE + 98 WHEN + CASE + - 48 WHEN 5 + + COUNT( * ) THEN + 61 + - CASE + COUNT( * ) WHEN 1 THEN NULL ELSE COUNT( * ) END * 99 / 56 / COUNT( - COALESCE ( - 33, + 86 ) ) WHEN COUNT( * ) THEN NULL END * MIN( ALL - CAST( + 92 AS SIGNED ) + ( ( + 0 ) ) ) + - NULLIF ( + 47, COALESCE ( - NULLIF ( COUNT( * ), - NULLIF ( - 86, + COUNT( 92 ) ) * 14 ), 3, - 3, - NULLIF ( 9, 25 + + 89 * ( + 7 ) ) / + 44 - - SUM( + 34 ) ) + CAST( NULL AS SIGNED ) ) THEN COUNT( * ) ELSE NULL END / - 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT + 59 + - + CASE + 98 WHEN + CASE + - 48 WHEN 5 + + COUNT ( * ) THEN + 61 + - CASE + COUNT ( * ) WHEN 1 THEN NULL ELSE COUNT ( * ) END * 99 / 56 / COUNT ( - COALESCE ( - 33, + 86 ) ) WHEN COUNT ( * ) THEN NULL END * MIN ( ALL - CAST ( + 92 AS INTEGER ) + ( ( + 0 ) ) ) + - NULLIF ( + 47, COALESCE ( - NULLIF ( COUNT ( * ), - NULLIF ( - 86, + COUNT ( 92 ) ) * 14 ), 3, - 3, - NULLIF ( 9, 25 + + 89 * ( + 7 ) ) / + 44 - - SUM ( + 34 ) ) + CAST ( NULL AS INTEGER ) ) THEN COUNT ( * ) ELSE NULL END / - 80 col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-21
SELECT + 38 DIV + 81 + + 52 AS col0, - 5 AS col0, + - 5
----
52
-5
-5

skipif mysql # not compatible
query III rowsort label-21
SELECT + 38 / + 81 + + 52 AS col0, - 5 AS col0, + - 5
----
52
-5
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-22
SELECT CASE - + 11 WHEN + CAST( ( + 31 ) AS SIGNED ) / COUNT( - + 66 ) THEN 51 * - + COUNT( * ) ELSE - 52 END * - + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-22
SELECT CASE - + 11 WHEN + CAST ( ( + 31 ) AS INTEGER ) / COUNT ( - + 66 ) THEN 51 * - + COUNT ( * ) ELSE - 52 END * - + COUNT ( * ) AS col1
----
52

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

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

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL COUNT ( * ) / + 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-25
SELECT ALL + + CASE + 58 WHEN - 64 THEN + NULLIF ( - ( - + 66 ), - 32 ) * + - COUNT( + 90 ) + - 92 * + COUNT( * ) * 89 / - 68 END + CAST( - 82 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL + + CASE + 58 WHEN - 64 THEN + NULLIF ( - ( - + 66 ), - 32 ) * + - COUNT ( + 90 ) + - 92 * + COUNT ( * ) * 89 / - 68 END + CAST ( - 82 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-26
SELECT DISTINCT - - 32 + 47 * + + 15 * - - 90 + + 21 DIV - 14 + + MAX( ALL + + 91 ) + - COUNT( * ) DIV - COUNT( * ) AS col2
----
63573

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT - - 32 + 47 * + + 15 * - - 90 + + 21 / - 14 + + MAX ( ALL + + 91 ) + - COUNT ( * ) / - COUNT ( * ) AS col2
----
63573

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT DISTINCT COALESCE ( + MAX( DISTINCT + + 4 ), 3 )
----
4

skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT COALESCE ( + MAX ( DISTINCT + + 4 ), 3 )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT ALL 58 + + 33 DIV + ( 36 ) * - + ( - 82 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL 58 + + 33 / + ( 36 ) * - + ( - 82 ) col1
----
58

query I rowsort
SELECT 21 - + 10 AS col0
----
11

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

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

query I rowsort
SELECT - 71 + 61 AS col2
----
-10

query I rowsort
SELECT - - 97 col2
----
97

query II rowsort
SELECT DISTINCT - + 20 AS col2, 20 col2
----
-20
20

query I rowsort
SELECT ALL + 19 - 24 + - 52
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-35
SELECT COALESCE ( - - 51, + + 79 + + MAX( 39 ) ) * CASE + COUNT( * ) WHEN + CAST( - NULLIF ( - - 16, - 32 + 92 ) AS SIGNED ) THEN NULL WHEN - 16 THEN + 24 ELSE - + 18 END + 31
----
-887

skipif mysql # not compatible
query I rowsort label-35
SELECT COALESCE ( - - 51, + + 79 + + MAX ( 39 ) ) * CASE + COUNT ( * ) WHEN + CAST ( - NULLIF ( - - 16, - 32 + 92 ) AS INTEGER ) THEN NULL WHEN - 16 THEN + 24 ELSE - + 18 END + 31
----
-887

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT 39 * + 9 + - COUNT( * ) AS col1
----
350

skipif mysql # not compatible
query I rowsort label-36
SELECT 39 * + 9 + - COUNT ( * ) AS col1
----
350

query II rowsort
SELECT 89, - 38 AS col2
----
89
-38

query II rowsort
SELECT + 52 AS col2, - 34 * - 22 col0
----
52
748

query I rowsort
SELECT ALL - - 4 AS col0
----
4

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

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL - COUNT ( DISTINCT 83 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-41
SELECT ( - 65 ) DIV + 20 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-41
SELECT ( - 65 ) / + 20 AS col2
----
-3

query I rowsort
SELECT 80 * 48 + 71
----
3911

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT ALL ( - 16 ) * - - 67 * - COUNT( * )
----
1072

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL ( - 16 ) * - - 67 * - COUNT ( * )
----
1072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-44
SELECT ( - + 40 ) DIV + 91 * - - MIN( ALL + 23 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-44
SELECT ( - + 40 ) / + 91 * - - MIN ( ALL + 23 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT ALL - COUNT( * ) * 91 * 9 * + NULLIF ( - - 39, + COUNT( * ) )
----
-31941

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL - COUNT ( * ) * 91 * 9 * + NULLIF ( - - 39, + COUNT ( * ) )
----
-31941

query I rowsort
SELECT 43 * - 99 * - 60 col0
----
255420

query I rowsort
SELECT ALL + 72 + - ( 3 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT + 62 * 89 - + NULLIF ( - ( 60 ), - 6 * - COUNT( * ) * + COALESCE ( + 39, - + ( - 14 ) * AVG ( DISTINCT - - 23 ) * + + MAX( 51 ) ) - - - AVG ( ALL 33 ) ) + + 15
----
5593

skipif mysql # not compatible
query I rowsort label-48
SELECT + 62 * 89 - + NULLIF ( - ( 60 ), - 6 * - COUNT ( * ) * + COALESCE ( + 39, - + ( - 14 ) * AVG ( DISTINCT - - 23 ) * + + MAX ( 51 ) ) - - - AVG ( ALL 33 ) ) + + 15
----
5593

query I rowsort
SELECT 24 + + - 50
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-50
SELECT COALESCE ( 62, + MAX( DISTINCT - 84 ) * 49, - - 15 * + 76 * - - 6 ) * + 6 * 8, + 86 * CASE - + 14 WHEN - 64 THEN NULL WHEN 18 * + 23 - + 2 THEN NULL ELSE 83 END + + 24 AS col1
----
2976
7162

skipif mysql # not compatible
query II rowsort label-50
SELECT COALESCE ( 62, + MAX ( DISTINCT - 84 ) * 49, - - 15 * + 76 * - - 6 ) * + 6 * 8, + 86 * CASE - + 14 WHEN - 64 THEN NULL WHEN 18 * + 23 - + 2 THEN NULL ELSE 83 END + + 24 AS col1
----
2976
7162

query I rowsort
SELECT 69 * - 8
----
-552

onlyif mysql # DIV for integer division: 
query II rowsort label-52
SELECT ALL + 73 + - 38 * - 44 + + 13 AS col1, 64 DIV - 20
----
1758
-3

skipif mysql # not compatible
query II rowsort label-52
SELECT ALL + 73 + - 38 * - 44 + + 13 AS col1, 64 / - 20
----
1758
-3

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

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

query I rowsort
SELECT ALL + - 59 * 70 - - 82
----
-4048

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT ALL 45 + MIN( DISTINCT + 18 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL 45 + MIN ( DISTINCT + 18 ) AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-56
SELECT ALL - MIN( DISTINCT - 19 ) + + SUM( DISTINCT 93 ) + + 48 + + + SUM( DISTINCT + + 89 ) + + + CAST( NULL AS SIGNED ) * - - CAST( - COUNT( * ) AS SIGNED ) * + - 97 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL - MIN ( DISTINCT - 19 ) + + SUM ( DISTINCT 93 ) + + 48 + + + SUM ( DISTINCT + + 89 ) + + + CAST ( NULL AS INTEGER ) * - - CAST ( - COUNT ( * ) AS INTEGER ) * + - 97 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT ALL + - 58 + COUNT( ALL + 84 ) * - - 37 * 65
----
2347

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL + - 58 + COUNT ( ALL + 84 ) * - - 37 * 65
----
2347

query I rowsort
SELECT + 12 + 10 + + - 63 AS col2
----
-41

query I rowsort
SELECT DISTINCT + ( - 10 ) + - 97 AS col2
----
-107

onlyif mysql # DIV for integer division: 
query II rowsort label-60
SELECT - - ( + 31 ) col0, 42 DIV + - 58 * - 19
----
31
0

skipif mysql # not compatible
query II rowsort label-60
SELECT - - ( + 31 ) col0, 42 / + - 58 * - 19
----
31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT 81 + + COUNT( * ) + 84
----
166

skipif mysql # not compatible
query I rowsort label-61
SELECT 81 + + COUNT ( * ) + 84
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL + 48 - - MIN( ALL + - 23 ) col0
----
25

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL + 48 - - MIN ( ALL + - 23 ) col0
----
25

query I rowsort
SELECT 12 * - 41 AS col2
----
-492

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT + 52 + - 29 DIV - 1
----
81

skipif mysql # not compatible
query I rowsort label-64
SELECT + 52 + - 29 / - 1
----
81

query I rowsort
SELECT 15 * + 44 * + 6 + 17
----
3977

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT ALL - 98 DIV - 52
----
1

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL - 98 / - 52
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT 92 * 62 + COUNT( DISTINCT - 65 ) col1
----
5705

skipif mysql # not compatible
query I rowsort label-67
SELECT 92 * 62 + COUNT ( DISTINCT - 65 ) col1
----
5705

query I rowsort
SELECT + 28 * + 28 + - 54 + - 53 AS col0
----
677

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

skipif mysql # not compatible
query I rowsort label-69
SELECT + - MIN ( 84 )
----
-84

query II rowsort
SELECT + 73 AS col1, + 91 AS col0
----
73
91

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

skipif mysql # not compatible
query I rowsort label-71
SELECT SUM ( + + 10 )
----
10

query I rowsort
SELECT DISTINCT ( - 60 ) * - 19
----
1140

onlyif mysql # aggregate syntax: 
query II rowsort label-73
SELECT 3 * + COUNT( * ) + - COUNT( * ) * - - 6 * COUNT( * ) * - - 96, - NULLIF ( COUNT( * ), - 9 + + 78 - ( 35 ) * - 61 ) AS col1
----
-573
-1

skipif mysql # not compatible
query II rowsort label-73
SELECT 3 * + COUNT ( * ) + - COUNT ( * ) * - - 6 * COUNT ( * ) * - - 96, - NULLIF ( COUNT ( * ), - 9 + + 78 - ( 35 ) * - 61 ) AS col1
----
-573
-1

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

skipif mysql # not compatible
query I rowsort label-74
SELECT + MIN ( + - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT MIN( - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-75
SELECT MIN ( - 91 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT ALL 89 DIV 59 DIV - + 65
----
0

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL 89 / 59 / - + 65
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT + 12 + + 24 + - MAX( - 33 ) * 28 * - MIN( ALL - - 64 )
----
-59100

skipif mysql # not compatible
query I rowsort label-78
SELECT + 12 + + 24 + - MAX ( - 33 ) * 28 * - MIN ( ALL - - 64 )
----
-59100

onlyif mysql # aggregate syntax: 
query II rowsort label-79
SELECT + CASE - + 57 WHEN 27 THEN 71 ELSE + COUNT( * ) END AS col0, 87
----
1
87

skipif mysql # not compatible
query II rowsort label-79
SELECT + CASE - + 57 WHEN 27 THEN 71 ELSE + COUNT ( * ) END AS col0, 87
----
1
87

query I rowsort
SELECT DISTINCT - 44 * + 33 + - 12 AS col2
----
-1464

query I rowsort
SELECT + 64 + + 44 + - + 13 col1
----
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT + MIN( - + 77 ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-83
SELECT + MIN ( - + 77 ) col1
----
-77

query I rowsort
SELECT ALL 34 + - 13 AS col2
----
21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-86
SELECT DISTINCT - 54 DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-86
SELECT DISTINCT - 54 / 99 AS col1
----
0

query I rowsort
SELECT + - 49 * 17
----
-833

onlyif mysql # aggregate syntax: 
query II rowsort label-88
SELECT + 96 AS col0, + 63 + - COUNT( * )
----
96
62

skipif mysql # not compatible
query II rowsort label-88
SELECT + 96 AS col0, + 63 + - COUNT ( * )
----
96
62

query I rowsort
SELECT - + 4
----
-4

query I rowsort
SELECT ALL 79 - + + 8 AS col0
----
71

query I rowsort
SELECT + 49 * 31 * + + 71
----
107849

query I rowsort
SELECT - NULLIF ( + 60, 7 + + 57 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT + SUM( + 89 ) - - 67
----
156

skipif mysql # not compatible
query I rowsort label-93
SELECT + SUM ( + 89 ) - - 67
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT - - MAX( ALL + + 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-94
SELECT - - MAX ( ALL + + 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT + 76 - + MIN( DISTINCT - - 27 ) + - 70 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-95
SELECT + 76 - + MIN ( DISTINCT - - 27 ) + - 70 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT - 45 * - + 35 * - + COUNT( * )
----
-1575

skipif mysql # not compatible
query I rowsort label-96
SELECT - 45 * - + 35 * - + COUNT ( * )
----
-1575

query I rowsort
SELECT DISTINCT - - 89 * + 68 AS col1
----
6052

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-98
SELECT DISTINCT - 88 AS col0, ( - + NULLIF ( + - 28, - CAST( - 10 AS SIGNED ) + + 41 * + 86 ) ) DIV 90
----
-88
0

skipif mysql # not compatible
query II rowsort label-98
SELECT DISTINCT - 88 AS col0, ( - + NULLIF ( + - 28, - CAST ( - 10 AS INTEGER ) + + 41 * + 86 ) ) / 90
----
-88
0

query I rowsort
SELECT ALL - + 39 * - 62 * - 66 AS col1
----
-159588

query I rowsort
SELECT - + 31 * - 40 AS col1
----
1240

query I rowsort
SELECT ALL + ( + CASE - + 74 WHEN 31 * - 42 + - 96 THEN 67 END )
----
NULL

query I rowsort
SELECT - - 56 - + 68 AS col1
----
-12

query I rowsort
SELECT - - 40 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-104
SELECT + + SUM( ALL - 85 ) + SUM( DISTINCT + 61 ) - - ( - + NULLIF ( - CAST( NULL AS SIGNED ), 42 / - - 92 + + + 78 + 64 - + ( - COUNT( * ) ) ) ) - - + 3 * - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-104
SELECT + + SUM ( ALL - 85 ) + SUM ( DISTINCT + 61 ) - - ( - + NULLIF ( - CAST ( NULL AS INTEGER ), 42 / - - 92 + + + 78 + 64 - + ( - COUNT ( * ) ) ) ) - - + 3 * - 81 AS col0
----
NULL

query I rowsort
SELECT - - ( 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT - COUNT( * ) * - + 88 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-106
SELECT - COUNT ( * ) * - + 88 AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-107
SELECT 17 * + 19 + - 30 * - - 86, + 41 + + + CASE - 17 WHEN - 16 * + 3 / + + 3 + 16 + + - 57 - - - 62 * + 4 / - 8 THEN - + COUNT( * ) ELSE - 10 END - - 77 AS col0
----
-2257
108

skipif mysql # not compatible
query II rowsort label-107
SELECT 17 * + 19 + - 30 * - - 86, + 41 + + + CASE - 17 WHEN - 16 * + 3 / + + 3 + 16 + + - 57 - - - 62 * + 4 / - 8 THEN - + COUNT ( * ) ELSE - 10 END - - 77 AS col0
----
-2257
108

query I rowsort
SELECT ( - 49 ) AS col1
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-109
SELECT - 43 DIV 82 AS col0, 4 + + 78 AS col0
----
0
82

skipif mysql # not compatible
query II rowsort label-109
SELECT - 43 / 82 AS col0, 4 + + 78 AS col0
----
0
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-110
SELECT - 36 / - 75 * - 94 + 5 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-110
SELECT - 36 / - 75 * - 94 + 5 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + CASE - - 31 WHEN - 27 + 56 THEN NULL WHEN 72 THEN - ( 19 ) END
----
NULL

query II rowsort
SELECT ( - + COALESCE ( 74, + 84 ) ) AS col2, 36
----
-74
36

onlyif mysql # DIV for integer division: 
query I rowsort label-113
SELECT ALL - 45 DIV - 9
----
5

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL - 45 / - 9
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT + ( + + 99 ) * NULLIF ( - + 88, + COUNT( * ) )
----
-8712

skipif mysql # not compatible
query I rowsort label-115
SELECT + ( + + 99 ) * NULLIF ( - + 88, + COUNT ( * ) )
----
-8712

query I rowsort
SELECT ALL + 17 * 57 + 26 * + 69 col0
----
2763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-117
SELECT ALL + CASE - + 34 WHEN + - 82 + + 32 * + AVG ( ALL - 87 ) / 16 THEN + NULLIF ( - 29, NULLIF ( - 11, + + COUNT( ALL + - 90 ) ) * - 2 / 51 - - - 14 ) WHEN + + CAST( - + 16 AS SIGNED ) * 30 + - - CAST( - COUNT( * ) AS SIGNED ) THEN - COUNT( * ) + 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL + CASE - + 34 WHEN + - 82 + + 32 * + AVG ( ALL - 87 ) / 16 THEN + NULLIF ( - 29, NULLIF ( - 11, + + COUNT ( ALL + - 90 ) ) * - 2 / 51 - - - 14 ) WHEN + + CAST ( - + 16 AS INTEGER ) * 30 + - - CAST ( - COUNT ( * ) AS INTEGER ) THEN - COUNT ( * ) + 23 END
----
NULL

query I rowsort
SELECT + CASE + 82 WHEN - 1 * - - 43 THEN NULL ELSE 41 + 76 + + 10 * + 75 END AS col1
----
867

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-121
SELECT - 53 + - 63 AS col1, MIN( - + 13 ) + 50
----
-116
37

skipif mysql # not compatible
query II rowsort label-121
SELECT - 53 + - 63 AS col1, MIN ( - + 13 ) + 50
----
-116
37

query I rowsort
SELECT + 58 * + - 15 AS col0
----
-870

query I rowsort
SELECT DISTINCT + ( - + 68 ) AS col0
----
-68

query I rowsort
SELECT 74 * - 46 - 86
----
-3490

query I rowsort
SELECT + 80 col2
----
80

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

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

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

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

query I rowsort
SELECT - 91 * - 0 * - 89 + + 6 AS col1
----
6

query I rowsort
SELECT + 63 col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT - COALESCE ( - - COUNT( * ), - 37 ) * - 91 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-130
SELECT - COALESCE ( - - COUNT ( * ), - 37 ) * - 91 AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-131
SELECT + + COUNT( * ) - + + 77 DIV MAX( ( - 19 ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-131
SELECT + + COUNT ( * ) - + + 77 / MAX ( ( - 19 ) ) AS col1
----
5

query I rowsort
SELECT ALL + 40 - - 33
----
73

query I rowsort
SELECT + 83 * 51 + 72
----
4305

query II rowsort
SELECT + - 2 * NULLIF ( + - 33, + 17 ), + 82 * + 27 AS col0
----
66
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT DISTINCT MIN( ALL - 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT MIN ( ALL - 66 ) AS col0
----
-66

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-137
SELECT - 23 + + + 19 + - - ( - ( - CASE + - 62 WHEN COALESCE ( + 22, + CASE 42 WHEN + + 62 * - - CAST( NULL AS DECIMAL ) - - 11 * - - ( + 78 ) THEN - COALESCE ( - 94, - 27 ) END ) THEN - + 43 * COUNT( * ) * 85 - 54 WHEN - 30 THEN NULL ELSE NULL END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-137
SELECT - 23 + + + 19 + - - ( - ( - CASE + - 62 WHEN COALESCE ( + 22, + CASE 42 WHEN + + 62 * - - CAST ( NULL AS REAL ) - - 11 * - - ( + 78 ) THEN - COALESCE ( - 94, - 27 ) END ) THEN - + 43 * COUNT ( * ) * 85 - 54 WHEN - 30 THEN NULL ELSE NULL END ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 11 AS col2
----
-11

query I rowsort
SELECT - - 54 col1
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-140
SELECT - 37 + + 58 + + + 17 DIV - - 15 col0, ( + 54 ) + - 67 AS col1
----
22
-13

skipif mysql # not compatible
query II rowsort label-140
SELECT - 37 + + 58 + + + 17 / - - 15 col0, ( + 54 ) + - 67 AS col1
----
22
-13

query I rowsort
SELECT DISTINCT 25 col1
----
25

query I rowsort
SELECT ALL 25 + 20 + - 8
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-143
SELECT DISTINCT - 31 * + + 56 AS col0, - MAX( + CASE 96 WHEN - + 40 THEN NULL WHEN - ( - - 25 ) THEN + 67 ELSE 62 END )
----
-1736
-62

skipif mysql # not compatible
query II rowsort label-143
SELECT DISTINCT - 31 * + + 56 AS col0, - MAX ( + CASE 96 WHEN - + 40 THEN NULL WHEN - ( - - 25 ) THEN + 67 ELSE 62 END )
----
-1736
-62

query I rowsort
SELECT ALL + 77 + + - 15
----
62

query II rowsort
SELECT DISTINCT + 4 + - 78 col1, 90 AS col1
----
-74
90

query II rowsort
SELECT ALL - ( - 44 ), + 51 AS col2
----
44
51

query II rowsort
SELECT 43 * 83 * + 25 * + 1 * + 73 col0, 8
----
6513425
8

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT - COUNT( + 62 ) * - 58 + + MAX( ALL - 5 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-148
SELECT - COUNT ( + 62 ) * - 58 + + MAX ( ALL - 5 ) AS col1
----
53

query I rowsort
SELECT 53 - - + ( 90 ) AS col0
----
143

query II rowsort
SELECT DISTINCT - 42 - + 59 AS col1, 53 * 37
----
-101
1961

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT 68 * COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-151
SELECT 68 * COUNT ( * ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT ALL 93 * - COUNT( * ) * - 70 AS col0
----
6510

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL 93 * - COUNT ( * ) * - 70 AS col0
----
6510

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT DISTINCT - 42 - - 52 * 16 + + COUNT( * ) AS col2
----
791

skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT - 42 - - 52 * 16 + + COUNT ( * ) AS col2
----
791

query I rowsort
SELECT + 43 * 55 + + 7 AS col1
----
2372

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

skipif mysql # not compatible
query I rowsort label-155
SELECT + MIN ( - + 57 )
----
-57

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

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

query I rowsort
SELECT + NULLIF ( - 8, + - 29 * - 33 ) AS col0
----
-8

query I rowsort
SELECT ALL - + 75 AS col0
----
-75

query I rowsort
SELECT ALL - + 81 * + ( + 54 )
----
-4374

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

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

query I rowsort
SELECT ALL 15 col1
----
15

query I rowsort
SELECT - - 90 AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-163
SELECT MAX( + 83 ) DIV - NULLIF ( - COUNT( * ), 45 ) AS col1, + 0 AS col2
----
83
0

skipif mysql # not compatible
query II rowsort label-163
SELECT MAX ( + 83 ) / - NULLIF ( - COUNT ( * ), 45 ) AS col1, + 0 AS col2
----
83
0

onlyif mysql # aggregate syntax: 
query II rowsort label-164
SELECT + ( + 68 ) AS col1, - 53 + + 51 + - + COUNT( * ) * + 87 + 82
----
68
-7

skipif mysql # not compatible
query II rowsort label-164
SELECT + ( + 68 ) AS col1, - 53 + + 51 + - + COUNT ( * ) * + 87 + 82
----
68
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT 38 DIV + ( + - COALESCE ( + 66, - - 84 + + 71 + 26 DIV 73 ) ) + - - ( - ( - 79 ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-165
SELECT 38 / + ( + - COALESCE ( + 66, - - 84 + + 71 + 26 / 73 ) ) + - - ( - ( - 79 ) ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT + 21 * + + COUNT( * ) * + ( - 46 ) - + + 68 + + - 51 * COALESCE ( COUNT( * ), - 39 )
----
-1085

skipif mysql # not compatible
query I rowsort label-166
SELECT + 21 * + + COUNT ( * ) * + ( - 46 ) - + + 68 + + - 51 * COALESCE ( COUNT ( * ), - 39 )
----
-1085

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT SUM( DISTINCT + 44 ) - + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-167
SELECT SUM ( DISTINCT + 44 ) - + COUNT ( * )
----
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-168
SELECT CASE - - 95 WHEN - - 36 + - - COALESCE ( + 51, + ( + - CAST( NULL AS DECIMAL ) ) + - 68 ) + - 79 - - 60 THEN NULL WHEN - + 59 * + 89 THEN + COUNT( * ) + + 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT CASE - - 95 WHEN - - 36 + - - COALESCE ( + 51, + ( + - CAST ( NULL AS REAL ) ) + - 68 ) + - 79 - - 60 THEN NULL WHEN - + 59 * + 89 THEN + COUNT ( * ) + + 31 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 84 + - + 79 AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-170
SELECT + 74 - 70 DIV + - 19 col1
----
77

skipif mysql # not compatible
query I rowsort label-170
SELECT + 74 - 70 / + - 19 col1
----
77

query I rowsort
SELECT ALL - 73 + - 27 AS col0
----
-100

onlyif mysql # DIV for integer division: 
query II rowsort label-172
SELECT ALL 72 AS col0, - 86 + + + 65 DIV - 80 * + ( 32 )
----
72
-86

skipif mysql # not compatible
query II rowsort label-172
SELECT ALL 72 AS col0, - 86 + + + 65 / - 80 * + ( 32 )
----
72
-86

query I rowsort
SELECT 37 * - 62
----
-2294

query I rowsort
SELECT ALL + 90 + 60
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-175
SELECT CAST( 72 AS SIGNED ) - + + 28, 95 AS col2
----
44
95

skipif mysql # not compatible
query II rowsort label-175
SELECT CAST ( 72 AS INTEGER ) - + + 28, 95 AS col2
----
44
95

query I rowsort
SELECT 27 + 55
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT MIN( ALL - 19 ) - - - 94 * + 55 AS col2
----
-5189

skipif mysql # not compatible
query I rowsort label-177
SELECT MIN ( ALL - 19 ) - - - 94 * + 55 AS col2
----
-5189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-178
SELECT - 39 col2, 99 - + - CAST( 21 AS SIGNED ) AS col0
----
-39
120

skipif mysql # not compatible
query II rowsort label-178
SELECT - 39 col2, 99 - + - CAST ( 21 AS INTEGER ) AS col0
----
-39
120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT - 78 * 76 + - ( + + 65 ) + - + COUNT( * ) AS col2
----
-5994

skipif mysql # not compatible
query I rowsort label-180
SELECT - 78 * 76 + - ( + + 65 ) + - + COUNT ( * ) AS col2
----
-5994

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-182
SELECT 91 DIV + 61 + - NULLIF ( - 88, + - 95 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-182
SELECT 91 / + 61 + - NULLIF ( - 88, + - 95 ) AS col1
----
89

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

query I rowsort
SELECT 62 + - 47 col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-185
SELECT + COUNT( * ) AS col0, - 92 * + 70 AS col2
----
1
-6440

skipif mysql # not compatible
query II rowsort label-185
SELECT + COUNT ( * ) AS col0, - 92 * + 70 AS col2
----
1
-6440

query I rowsort
SELECT ALL 70 * 3
----
210

query I rowsort
SELECT 78 * + 82 AS col1
----
6396

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT ALL + CASE - 91 WHEN - - NULLIF ( 82, - + 4 * - COUNT( * ) ) * + 55 THEN - COUNT( * ) + 53 WHEN - 39 * + 31 + - ( - - 50 ) THEN - + 54 ELSE NULL END * + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL + CASE - 91 WHEN - - NULLIF ( 82, - + 4 * - COUNT ( * ) ) * + 55 THEN - COUNT ( * ) + 53 WHEN - 39 * + 31 + - ( - - 50 ) THEN - + 54 ELSE NULL END * + 54 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 5 - 42
----
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT + 45 * - + MAX( ALL 6 ) + 92 AS col0
----
-178

skipif mysql # not compatible
query I rowsort label-191
SELECT + 45 * - + MAX ( ALL 6 ) + 92 AS col0
----
-178

query I rowsort
SELECT ( - 20 ) * - 54 AS col1
----
1080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-193
SELECT - ( - CAST( - + CASE - CAST( NULL AS SIGNED ) WHEN + 82 * + ( + COALESCE ( + + 43, - 92, - 65 + - + 74 - + + 79 + - 42 * - 64 ) ) THEN + AVG ( DISTINCT + 75 ) * 99 + 19 + - - 37 / 28 END AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-193
SELECT - ( - CAST ( - + CASE - CAST ( NULL AS INTEGER ) WHEN + 82 * + ( + COALESCE ( + + 43, - 92, - 65 + - + 74 - + + 79 + - 42 * - 64 ) ) THEN + AVG ( DISTINCT + 75 ) * 99 + 19 + - - 37 / 28 END AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 76 col1
----
-76

onlyif mysql # DIV for integer division: 
query III rowsort label-195
SELECT DISTINCT - 63, + 29 + - ( + 52 ) - + - 76 * + 77 AS col1, - - 73 + + 97 + + 47 DIV - 41 + - - ( + 44 ) - + 24 * - 46 * + + 77 * NULLIF ( - ( 26 ), - 31 * + + 29 * 1 + + 68 ) - - ( 41 ) AS col0
----
-63
5829
-2209954

skipif mysql # not compatible
query III rowsort label-195
SELECT DISTINCT - 63, + 29 + - ( + 52 ) - + - 76 * + 77 AS col1, - - 73 + + 97 + + 47 / - 41 + - - ( + 44 ) - + 24 * - 46 * + + 77 * NULLIF ( - ( 26 ), - 31 * + + 29 * 1 + + 68 ) - - ( 41 ) AS col0
----
-63
5829
-2209954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-196
SELECT DISTINCT + 71 DIV - - COUNT( * ) col2
----
71

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT + 71 / - - COUNT ( * ) col2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-197
SELECT - 69 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-197
SELECT - 69 / - 96
----
0

query I rowsort
SELECT ALL + - 32 + - + 36
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-199
SELECT ALL + - 15 DIV + + 28
----
0

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL + - 15 / + + 28
----
0

query I rowsort
SELECT + 22 * - + 46
----
-1012

query I rowsort
SELECT 4 + 34 * - - 42 * + 78
----
111388

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

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

query I rowsort
SELECT ALL - + ( + 69 ) + - ( + + ( - 85 ) ) AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-204
SELECT 83 * + 13 + - 11 DIV - 35 * + 33 AS col0
----
1079

skipif mysql # not compatible
query I rowsort label-204
SELECT 83 * + 13 + - 11 / - 35 * + 33 AS col0
----
1079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-205
SELECT - CASE 38 WHEN - COALESCE ( CAST( ( - + 58 ) AS SIGNED ), - ( - - COUNT( * ) ), + ( + 89 ) ) * - CASE - 89 WHEN 60 / + 61 * - 88 / + CAST( + 16 AS SIGNED ) + + 27 / COUNT( * ) + + 19 * + + 76 * - + 45 + + 6 * COUNT( * ) THEN - 84 + + 69 WHEN - CAST( NULL AS SIGNED ) * 61 THEN 60 * - ( 29 ) END - COUNT( * ) THEN 88 WHEN - CASE - ( + COUNT( * ) ) WHEN 50 THEN - 46 + 52 / 70 WHEN 96 THEN - 35 * - 95 + + 57 WHEN 69 THEN NULL END THEN - 35 * - 27 WHEN 64 THEN NULL END + - 78 * - ( - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT - CASE 38 WHEN - COALESCE ( CAST ( ( - + 58 ) AS INTEGER ), - ( - - COUNT ( * ) ), + ( + 89 ) ) * - CASE - 89 WHEN 60 / + 61 * - 88 / + CAST ( + 16 AS INTEGER ) + + 27 / COUNT ( * ) + + 19 * + + 76 * - + 45 + + 6 * COUNT ( * ) THEN - 84 + + 69 WHEN - CAST ( NULL AS INTEGER ) * 61 THEN 60 * - ( 29 ) END - COUNT ( * ) THEN 88 WHEN - CASE - ( + COUNT ( * ) ) WHEN 50 THEN - 46 + 52 / 70 WHEN 96 THEN - 35 * - 95 + + 57 WHEN 69 THEN NULL END THEN - 35 * - 27 WHEN 64 THEN NULL END + - 78 * - ( - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 78 col0
----
78

query I rowsort
SELECT DISTINCT + 86 + - 32
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT ALL - COUNT( * ) + + 68
----
67

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL - COUNT ( * ) + + 68
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT - CASE - - COUNT( * ) WHEN 90 THEN NULL WHEN - 90 THEN + COUNT( * ) - + 10 / ( - + 68 ) * COUNT( 70 ) + - 33 * + 45 END + + NULLIF ( - 71, - - ( + - 68 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-209
SELECT - CASE - - COUNT ( * ) WHEN 90 THEN NULL WHEN - 90 THEN + COUNT ( * ) - + 10 / ( - + 68 ) * COUNT ( 70 ) + - 33 * + 45 END + + NULLIF ( - 71, - - ( + - 68 ) )
----
NULL

query I rowsort
SELECT ALL 66 + + 63 AS col2
----
129

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

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

query I rowsort
SELECT ALL COALESCE ( + + ( + - 73 ), + 40 * + + 8 - 6 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT - 60 * + COUNT( * ) * 26
----
-1560

skipif mysql # not compatible
query I rowsort label-213
SELECT - 60 * + COUNT ( * ) * 26
----
-1560

onlyif mysql # DIV for integer division: 
query I rowsort label-214
SELECT DISTINCT 72 DIV - 71
----
-1

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT 72 / - 71
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT ALL 30 - - MAX( 99 ) * - 55 AS col1
----
-5415

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL 30 - - MAX ( 99 ) * - 55 AS col1
----
-5415

query I rowsort
SELECT - COALESCE ( ( + 50 ), - 87 * + 37 )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-217
SELECT + COALESCE ( + + 90, - 57, COUNT( * ) + + 92 + + 85 ) DIV COUNT( * ), 32 AS col0
----
90
32

skipif mysql # not compatible
query II rowsort label-217
SELECT + COALESCE ( + + 90, - 57, COUNT ( * ) + + 92 + + 85 ) / COUNT ( * ), 32 AS col0
----
90
32

query I rowsort
SELECT ALL 24 * - + 12
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-219
SELECT ALL 71 * - 28 * - - 82 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL 71 * - 28 * - - 82 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT DISTINCT 4 * + 79 - + SUM( ALL - + 54 )
----
370

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT 4 * + 79 - + SUM ( ALL - + 54 )
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL 88 * + - 74 * + - COUNT( * ) * + + 34 * + - COUNT( * )
----
-221408

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL 88 * + - 74 * + - COUNT ( * ) * + + 34 * + - COUNT ( * )
----
-221408

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

skipif mysql # not compatible
query I rowsort label-222
SELECT 15 * + COUNT ( * ) + 56 + - 36 AS col0
----
35

query I rowsort
SELECT ( + - CASE 38 WHEN 78 THEN NULL ELSE 85 END ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT ( - + CASE + ( - ( - - 55 ) ) WHEN - - 97 THEN + 64 * + 36 WHEN - + COUNT( 3 ) - - 47 THEN - COUNT( * ) + + + 53 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-224
SELECT ( - + CASE + ( - ( - - 55 ) ) WHEN - - 97 THEN + 64 * + 36 WHEN - + COUNT ( 3 ) - - 47 THEN - COUNT ( * ) + + + 53 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-225
SELECT + COUNT( * ) / + ( + 66 ) * - COUNT( * ) + - 68 + - COUNT( * ) - + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) * + 57 / - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT + COUNT ( * ) / + ( + 66 ) * - COUNT ( * ) + - 68 + - COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) * + 57 / - 94
----
NULL

query II rowsort
SELECT ( - - COALESCE ( - 80, - 53 ) ) AS col2, 62 AS col2
----
-80
62

query I rowsort
SELECT - 28 * CASE - - 47 WHEN 67 * - 13 THEN NULL ELSE + ( + 4 ) END * + 73
----
-8176

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT + - 93 DIV - + 77 + - 88 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-228
SELECT + - 93 / - + 77 + - 88 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT + COALESCE ( 85, - + 32 + COUNT( * ) ) - MIN( - 69 )
----
154

skipif mysql # not compatible
query I rowsort label-229
SELECT + COALESCE ( 85, - + 32 + COUNT ( * ) ) - MIN ( - 69 )
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-230
SELECT ALL MAX( + + 51 ) * + 68 + - SUM( DISTINCT - 10 ) + - 48 + - 94, COALESCE ( - COALESCE ( - + CAST( - + 30 AS SIGNED ), + CAST( COUNT( * ) AS SIGNED ) + - + 28 ), - + 24, + 87 ) col0
----
3336
-30

skipif mysql # not compatible
query II rowsort label-230
SELECT ALL MAX ( + + 51 ) * + 68 + - SUM ( DISTINCT - 10 ) + - 48 + - 94, COALESCE ( - COALESCE ( - + CAST ( - + 30 AS INTEGER ), + CAST ( COUNT ( * ) AS INTEGER ) + - + 28 ), - + 24, + 87 ) col0
----
3336
-30

query I rowsort
SELECT ALL + - 1 AS col2
----
-1

query I rowsort
SELECT ALL - + NULLIF ( - 23, - - 61 ) * + + 76 * - 58 + - 48 AS col0
----
-101432

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT + + COUNT( * ) + + 99 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-233
SELECT + + COUNT ( * ) + + 99 AS col0
----
100

query I rowsort
SELECT 72 * - 86 + + + 74 AS col1
----
-6118

query I rowsort
SELECT CASE 41 WHEN 38 THEN NULL WHEN 42 + 95 * 52 + 45 THEN NULL ELSE - + 43 END AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-236
SELECT ALL + COUNT( * ) * 99 DIV - + 45 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL + COUNT ( * ) * 99 / - + 45 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-237
SELECT + + 3 DIV COUNT( * ), - 77 AS col2
----
3
-77

skipif mysql # not compatible
query II rowsort label-237
SELECT + + 3 / COUNT ( * ), - 77 AS col2
----
3
-77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-239
SELECT DISTINCT - + COUNT( * ) * + 73 * + CAST( - - 99 AS SIGNED ) + + + 58 + + - COUNT( - 69 )
----
-7170

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT - + COUNT ( * ) * + 73 * + CAST ( - - 99 AS INTEGER ) + + + 58 + + - COUNT ( - 69 )
----
-7170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-240
SELECT DISTINCT + COALESCE ( - NULLIF ( + 54, COUNT( * ) ), + + ( + CAST( NULL AS SIGNED ) ) * - 68 ) * + 47 * 71 + + 11 AS col1
----
-180187

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT + COALESCE ( - NULLIF ( + 54, COUNT ( * ) ), + + ( + CAST ( NULL AS INTEGER ) ) * - 68 ) * + 47 * 71 + + 11 AS col1
----
-180187

query I rowsort
SELECT ALL 13 * - 39 + + - 22 AS col2
----
-529

query I rowsort
SELECT - - ( 39 ) * + 37
----
1443

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-243
SELECT ALL + COALESCE ( + 22, - + 65 * - - 40 ), - COUNT( DISTINCT - 51 ) DIV - + 85 - 1 AS col1
----
22
-1

skipif mysql # not compatible
query II rowsort label-243
SELECT ALL + COALESCE ( + 22, - + 65 * - - 40 ), - COUNT ( DISTINCT - 51 ) / - + 85 - 1 AS col1
----
22
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT + + 2 + - 13 + COUNT( * ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-244
SELECT + + 2 + - 13 + COUNT ( * ) AS col1
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT MAX( 13 )
----
13

skipif mysql # not compatible
query I rowsort label-246
SELECT MAX ( 13 )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT - 60 DIV - 14 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-247
SELECT - 60 / - 14 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-248
SELECT - COUNT( * ) AS col1, - 45 * + MIN( + + ( + + 96 ) ) AS col2
----
-1
-4320

skipif mysql # not compatible
query II rowsort label-248
SELECT - COUNT ( * ) AS col1, - 45 * + MIN ( + + ( + + 96 ) ) AS col2
----
-1
-4320

query I rowsort
SELECT ALL + 27 * + 10 * - 82 * - 64
----
1416960

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT - COUNT( * ) - 57 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-250
SELECT - COUNT ( * ) - 57 AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-251
SELECT DISTINCT CAST( - + CASE + 95 WHEN 71 * + 53 * + + COALESCE ( - - 42, - 24 / 85, + 5 ) THEN + - COALESCE ( + 30, + - 45 + - 82, + 19 ) / - - 27 + - CAST( NULL AS SIGNED ) * - - 2 WHEN - + 10 + 41 THEN + 3 * + - 31 * - 49 ELSE NULL END AS SIGNED ) AS col1, + 15 AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-251
SELECT DISTINCT CAST ( - + CASE + 95 WHEN 71 * + 53 * + + COALESCE ( - - 42, - 24 / 85, + 5 ) THEN + - COALESCE ( + 30, + - 45 + - 82, + 19 ) / - - 27 + - CAST ( NULL AS INTEGER ) * - - 2 WHEN - + 10 + 41 THEN + 3 * + - 31 * - 49 ELSE NULL END AS INTEGER ) AS col1, + 15 AS col1
----
NULL
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT DISTINCT ( + + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT ( + + COUNT ( * ) ) col0
----
1

query I rowsort
SELECT DISTINCT ( + 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT - 59 - - MIN( DISTINCT - 78 )
----
-137

skipif mysql # not compatible
query I rowsort label-255
SELECT - 59 - - MIN ( DISTINCT - 78 )
----
-137

query I rowsort
SELECT - 70 * - 71
----
4970

query I rowsort
SELECT + 76 * 96
----
7296

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

onlyif mysql # DIV for integer division: 
query I rowsort label-259
SELECT ALL 17 DIV - + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL 17 / - + 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT 29 * 91 * + CASE + AVG ( 8 ) WHEN - + 43 THEN + 87 - ( 48 ) - - 82 WHEN - COALESCE ( + - 13, - 77 ) THEN NULL END * - + 1 + + 81 + 68 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-260
SELECT 29 * 91 * + CASE + AVG ( 8 ) WHEN - + 43 THEN + 87 - ( 48 ) - - 82 WHEN - COALESCE ( + - 13, - 77 ) THEN NULL END * - + 1 + + 81 + 68 + - + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-261
SELECT + 29 DIV - NULLIF ( + 7, - 68 )
----
-4

skipif mysql # not compatible
query I rowsort label-261
SELECT + 29 / - NULLIF ( + 7, - 68 )
----
-4

query I rowsort
SELECT - 40 * 76 AS col0
----
-3040

onlyif mysql # DIV for integer division: 
query I rowsort label-263
SELECT DISTINCT - 84 DIV - + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-263
SELECT DISTINCT - 84 / - + 93 AS col2
----
0

query II rowsort
SELECT ALL + 58, - 74 * - 82 AS col1
----
58
6068

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT + CASE - ( + + 81 ) WHEN - - CASE + - 16 WHEN - + 23 - + + 21 THEN NULL ELSE COUNT( * ) + + 50 * 63 + + - 90 * - CASE - 56 WHEN - 45 THEN 39 WHEN - 52 THEN NULL END - + 45 END - - 56 THEN NULL ELSE + - 86 END
----
-86

skipif mysql # not compatible
query I rowsort label-265
SELECT + CASE - ( + + 81 ) WHEN - - CASE + - 16 WHEN - + 23 - + + 21 THEN NULL ELSE COUNT ( * ) + + 50 * 63 + + - 90 * - CASE - 56 WHEN - 45 THEN 39 WHEN - 52 THEN NULL END - + 45 END - - 56 THEN NULL ELSE + - 86 END
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-266
SELECT ALL - + 56 DIV + COUNT( * ) + COUNT( * ) + 75 DIV 51 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL - + 56 / + COUNT ( * ) + COUNT ( * ) + 75 / 51 AS col0
----
-54

query I rowsort
SELECT ALL + 13 * + - 73 + + 37
----
-912

query I rowsort
SELECT + + 98 AS col2
----
98

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

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

query I rowsort
SELECT 75 + - - 57 AS col1
----
132

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

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT - MIN ( - + CAST ( 38 AS INTEGER ) ) AS col0
----
38

query I rowsort
SELECT ALL + ( 75 ) + + - 61 AS col0
----
14

query I rowsort
SELECT 91 * - + 54 * ( - + 23 ) + + 52
----
113074

query I rowsort
SELECT ALL - 86 + + 36 AS col1
----
-50

query I rowsort
SELECT DISTINCT - 28 + - 72
----
-100

query I rowsort
SELECT ALL + - 73 - - + 86
----
13

query I rowsort
SELECT DISTINCT - - 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT ALL - 36 * - - COUNT( * ) * + 9 * 92 * + - 2 AS col2
----
59616

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - 36 * - - COUNT ( * ) * + 9 * 92 * + - 2 AS col2
----
59616

query I rowsort
SELECT - 7 + - + 50 - - 90 AS col1
----
33

query I rowsort
SELECT - ( + - NULLIF ( + 12, + + 59 ) ) * 43 * - 71 + 68 AS col2
----
-36568

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-281
SELECT DISTINCT + COUNT( * ) * + 91 + - + 17 AS col1, 4 DIV - 68 AS col2
----
74
0

skipif mysql # not compatible
query II rowsort label-281
SELECT DISTINCT + COUNT ( * ) * + 91 + - + 17 AS col1, 4 / - 68 AS col2
----
74
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT 79 * COALESCE ( NULLIF ( 55, - 8 + - - 2 ), - - COUNT( * ) )
----
4345

skipif mysql # not compatible
query I rowsort label-283
SELECT 79 * COALESCE ( NULLIF ( 55, - 8 + - - 2 ), - - COUNT ( * ) )
----
4345

query II rowsort
SELECT ALL 26, + 82 * + 70 + 99 AS col2
----
26
5839

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-286
SELECT 69 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-286
SELECT 69 / + 49
----
1

query II rowsort
SELECT ALL 89, + 34 AS col0
----
89
34

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT MIN( + 4 ) * - + MAX( DISTINCT - 78 ) AS col2
----
312

skipif mysql # not compatible
query I rowsort label-288
SELECT MIN ( + 4 ) * - + MAX ( DISTINCT - 78 ) AS col2
----
312

query I rowsort
SELECT 88 + - ( - + 96 ) * + 14 * - 20
----
-26792

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-290
SELECT SUM( + 92 ) DIV MIN( 8 ) AS col2, + 59 + - 11 AS col1
----
11
48

skipif mysql # not compatible
query II rowsort label-290
SELECT SUM ( + 92 ) / MIN ( 8 ) AS col2, + 59 + - 11 AS col1
----
11
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-291
SELECT DISTINCT - 51 * + - CAST( COALESCE ( - 88, - 48, + 74 ) AS SIGNED ) AS col0, 42 AS col1
----
-4488
42

skipif mysql # not compatible
query II rowsort label-291
SELECT DISTINCT - 51 * + - CAST ( COALESCE ( - 88, - 48, + 74 ) AS INTEGER ) AS col0, 42 AS col1
----
-4488
42

query I rowsort
SELECT 4 * - + 20 AS col2
----
-80

query I rowsort
SELECT DISTINCT 88 + - - 38
----
126

query I rowsort
SELECT ALL 5 * + 28
----
140

query I rowsort
SELECT 93 + 63 AS col1
----
156

query I rowsort
SELECT - 64 col2
----
-64

query I rowsort
SELECT DISTINCT - 79 * + 87 * - 25 AS col0
----
171825

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

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

query I rowsort
SELECT DISTINCT - + 57 col1
----
-57

query I rowsort
SELECT 21 * - 9
----
-189

query II rowsort
SELECT + 89 AS col0, 94
----
89
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-302
SELECT 10 + - 80 + + SUM( ALL + CAST( 0 AS SIGNED ) ) + - 16 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-302
SELECT 10 + - 80 + + SUM ( ALL + CAST ( 0 AS INTEGER ) ) + - 16 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-303
SELECT ALL - 92 + + + ( - 7 ) * - 76 col1, 95 + - 86 + ( + COUNT( * ) ) - - 61 * 21
----
440
1291

skipif mysql # not compatible
query II rowsort label-303
SELECT ALL - 92 + + + ( - 7 ) * - 76 col1, 95 + - 86 + ( + COUNT ( * ) ) - - 61 * 21
----
440
1291

query I rowsort
SELECT + NULLIF ( - 81, - 76 * - 1 - 66 )
----
-81

query II rowsort
SELECT + 23 AS col0, + 11 col2
----
23
11

query I rowsort
SELECT ALL + 90 + + 3 - - 64 AS col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT DISTINCT - COALESCE ( 34, + + COUNT( * ), + + COUNT( * ) * + - 64, 72 ) col2
----
-34

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT - COALESCE ( 34, + + COUNT ( * ), + + COUNT ( * ) * + - 64, 72 ) col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT ALL 64 - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL 64 - COUNT ( * )
----
63

query II rowsort
SELECT ALL - - 8, 77 AS col0
----
8
77

query I rowsort
SELECT - 47 + - - 91 AS col2
----
44

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

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

query I rowsort
SELECT COALESCE ( - ( + 93 ), + + 66 ) AS col0
----
-93

query I rowsort
SELECT ALL + 49 - 62 col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-314
SELECT ALL - NULLIF ( 74, + 60 / - COUNT( * ) ) AS col0, + NULLIF ( + 8, + ( ( 22 ) ) * 92 ) + 64 AS col2
----
-74
72

skipif mysql # not compatible
query II rowsort label-314
SELECT ALL - NULLIF ( 74, + 60 / - COUNT ( * ) ) AS col0, + NULLIF ( + 8, + ( ( 22 ) ) * 92 ) + 64 AS col2
----
-74
72

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

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

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

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

query I rowsort
SELECT 51 * - + 94 AS col1
----
-4794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT DISTINCT - ( - COALESCE ( + ( + 9 ), - CAST( + 71 AS SIGNED ) * - - 43 * + 42, - 13 ) )
----
9

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT - ( - COALESCE ( + ( + 9 ), - CAST ( + 71 AS INTEGER ) * - - 43 * + 42, - 13 ) )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-319
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT 66 col0
----
66

query I rowsort
SELECT 72 * - 93 * 7 * 73 AS col0
----
-3421656

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

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

query I rowsort
SELECT - 90 col2
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-324
SELECT MAX( - + 81 ) * - ( - SUM( - NULLIF ( + - 45, 71 ) ) ) AS col1, COUNT( * ) + 97
----
-3645
98

skipif mysql # not compatible
query II rowsort label-324
SELECT MAX ( - + 81 ) * - ( - SUM ( - NULLIF ( + - 45, 71 ) ) ) AS col1, COUNT ( * ) + 97
----
-3645
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-325
SELECT ALL 41 * + + COUNT( * ) DIV - + CAST( - 66 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL 41 * + + COUNT ( * ) / - + CAST ( - 66 AS INTEGER ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-326
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) - - 39
----
38

query I rowsort
SELECT ALL 5 + - 49 AS col1
----
-44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-329
SELECT 97 + + + COUNT( * ) col0, + CASE + + 23 WHEN + + ( + 18 ) + + 72 THEN COUNT( * ) + CAST( NULL AS SIGNED ) WHEN + - 35 THEN COUNT( * ) WHEN - 63 THEN NULL ELSE NULL END * + 2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-329
SELECT 97 + + + COUNT ( * ) col0, + CASE + + 23 WHEN + + ( + 18 ) + + 72 THEN COUNT ( * ) + CAST ( NULL AS INTEGER ) WHEN + - 35 THEN COUNT ( * ) WHEN - 63 THEN NULL ELSE NULL END * + 2
----
98
NULL

query I rowsort
SELECT ALL - ( + 19 ) + 76 + - ( + - 89 ) * - 20
----
-1723

query II rowsort
SELECT 13 * + + 49, - 73 AS col1
----
637
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-332
SELECT - COUNT( DISTINCT + + 7 ) AS col2, 96
----
-1
96

skipif mysql # not compatible
query II rowsort label-332
SELECT - COUNT ( DISTINCT + + 7 ) AS col2, 96
----
-1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT 5 + MAX( 61 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-333
SELECT 5 + MAX ( 61 ) AS col0
----
66

query I rowsort
SELECT 48 - 2 AS col0
----
46

query I rowsort
SELECT ALL + 92 col1
----
92

query I rowsort
SELECT + + ( + + 87 ) * 72 AS col2
----
6264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-337
SELECT + 82 / + + 35 * + 81 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT + 82 / + + 35 * + 81 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT 41 * 54 * + NULLIF ( - 37, 71 * + - 80 * - SUM( 21 ) ) + + - 34
----
-81952

skipif mysql # not compatible
query I rowsort label-338
SELECT 41 * 54 * + NULLIF ( - 37, 71 * + - 80 * - SUM ( 21 ) ) + + - 34
----
-81952

query II rowsort
SELECT ALL - - 94 * + - 84, - 53 col2
----
-7896
-53

query I rowsort
SELECT DISTINCT + + 30 AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT - - 65 DIV - ( - + 35 ) + + 42 + 26
----
69

skipif mysql # not compatible
query I rowsort label-341
SELECT - - 65 / - ( - + 35 ) + + 42 + 26
----
69

query I rowsort
SELECT DISTINCT - 2 * + 75 AS col0
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-343
SELECT ALL - MIN( + 49 ) * - COUNT( * ) * - + CAST( + - 69 AS SIGNED ) + 21 - 72 + + + 96 + 56 DIV + + 37
----
3427

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL - MIN ( + 49 ) * - COUNT ( * ) * - + CAST ( + - 69 AS INTEGER ) + 21 - 72 + + + 96 + 56 / + + 37
----
3427

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

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

query II rowsort
SELECT ALL - + ( - 6 ) * - 8 AS col1, - 7
----
-48
-7

query I rowsort
SELECT - - 58 * - 7
----
-406

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-347
SELECT - + 65 * - CAST( NULL AS DECIMAL ) + 34 + + 11 + 58 * - 60 - - NULLIF ( + 3, + ( + + 8 ) ) * - 6 * 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-347
SELECT - + 65 * - CAST ( NULL AS REAL ) + 34 + + 11 + 58 * - 60 - - NULLIF ( + 3, + ( + + 8 ) ) * - 6 * 93 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-348
SELECT + CAST( + 32 AS SIGNED ) AS col0, + 95 AS col2
----
32
95

skipif mysql # not compatible
query II rowsort label-348
SELECT + CAST ( + 32 AS INTEGER ) AS col0, + 95 AS col2
----
32
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-349
SELECT ALL + + COALESCE ( + - 36, 81 + - + 10 DIV - 35 ), 65 + MAX( - CAST( NULL AS SIGNED ) ) DIV - + 74 + + COUNT( * ) AS col1
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-349
SELECT ALL + + COALESCE ( + - 36, 81 + - + 10 / - 35 ), 65 + MAX ( - CAST ( NULL AS INTEGER ) ) / - + 74 + + COUNT ( * ) AS col1
----
-36
NULL

query I rowsort
SELECT - - 14 * 25
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT DISTINCT + - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT + - COUNT ( * ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-352
SELECT - 11 + - 48 AS col0, - 85 - + - CAST( NULL AS SIGNED )
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-352
SELECT - 11 + - 48 AS col0, - 85 - + - CAST ( NULL AS INTEGER )
----
-59
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-353
SELECT - - 65 DIV 89, 26 + + 41 + 51 * + 37 * - 60 + - ( + + ( + - 60 ) ) * - COUNT( ALL 39 ) * 63 AS col0
----
0
-116933

skipif mysql # not compatible
query II rowsort label-353
SELECT - - 65 / 89, 26 + + 41 + 51 * + 37 * - 60 + - ( + + ( + - 60 ) ) * - COUNT ( ALL 39 ) * 63 AS col0
----
0
-116933

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT ALL + 53 * - 8 DIV + COUNT( * )
----
-424

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL + 53 * - 8 / + COUNT ( * )
----
-424

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT - 25 + - COUNT( * ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-355
SELECT - 25 + - COUNT ( * ) col2
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-356
SELECT DISTINCT + SUM( ALL 93 ) DIV + COUNT( * ), 68 AS col1
----
93
68

skipif mysql # not compatible
query II rowsort label-356
SELECT DISTINCT + SUM ( ALL 93 ) / + COUNT ( * ), 68 AS col1
----
93
68

onlyif mysql # aggregate syntax: 
query II rowsort label-357
SELECT ALL + 33, + 63 + + COUNT( ALL - 13 ) AS col0
----
33
64

skipif mysql # not compatible
query II rowsort label-357
SELECT ALL + 33, + 63 + + COUNT ( ALL - 13 ) AS col0
----
33
64

query I rowsort
SELECT ALL 60 * 39 AS col0
----
2340

query I rowsort
SELECT ALL + 69 * 32
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT DISTINCT 20 * COUNT( * ) * - + NULLIF ( + 6, - 7 * - - 68 - - 87 + - + 78 ) + + - ( - 61 )
----
-59

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT 20 * COUNT ( * ) * - + NULLIF ( + 6, - 7 * - - 68 - - 87 + - + 78 ) + + - ( - 61 )
----
-59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT COUNT( - 87 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-362
SELECT COUNT ( - 87 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-363
SELECT DISTINCT MAX( - 56 ) + 5 DIV NULLIF ( 16, - CAST( NULL AS SIGNED ) * + 31 * - + 78 * - 39 + - ( - 22 ) ) + - 86
----
-142

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT MAX ( - 56 ) + 5 / NULLIF ( 16, - CAST ( NULL AS INTEGER ) * + 31 * - + 78 * - 39 + - ( - 22 ) ) + - 86
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT - COUNT( * ) + 90 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-364
SELECT - COUNT ( * ) + 90 AS col1
----
89

query I rowsort
SELECT - NULLIF ( - 47, 65 + - 74 + - 42 ) AS col1
----
47

query I rowsort
SELECT ALL + 34 + - - 7
----
41

query I rowsort
SELECT DISTINCT ( 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-368
SELECT DISTINCT - 25 + CAST( 82 AS SIGNED ) AS col2, - COALESCE ( 52, + 95 * 39 * + 7, - MAX( - 50 ) ) * + + 94 + 65
----
57
-4823

skipif mysql # not compatible
query II rowsort label-368
SELECT DISTINCT - 25 + CAST ( 82 AS INTEGER ) AS col2, - COALESCE ( 52, + 95 * 39 * + 7, - MAX ( - 50 ) ) * + + 94 + 65
----
57
-4823

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT ALL MAX( DISTINCT + + 49 ) + - 81 + - COUNT( * ) * - 53
----
21

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL MAX ( DISTINCT + + 49 ) + - 81 + - COUNT ( * ) * - 53
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT - CASE - 68 WHEN - 70 + COUNT( * ) THEN 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT - CASE - 68 WHEN - 70 + COUNT ( * ) THEN 0 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 17 + + 14 + - + 48 * 86 AS col0
----
-4097

query II rowsort
SELECT 43, 62 AS col0
----
43
62

query I rowsort
SELECT + 46 + 94 * + 74 * + 75
----
521746

query I rowsort
SELECT 51 col2
----
51

query I rowsort
SELECT + - 56 + - 84
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT ALL + 76 - 13 * - COUNT( * ) * + 69
----
973

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL + 76 - 13 * - COUNT ( * ) * + 69
----
973

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT + 79 + + COUNT( * ) - - - 39 * 52 * - SUM( ALL + ( - 52 ) ) + + 71 + 84
----
-105221

skipif mysql # not compatible
query I rowsort label-377
SELECT + 79 + + COUNT ( * ) - - - 39 * 52 * - SUM ( ALL + ( - 52 ) ) + + 71 + 84
----
-105221

query I rowsort
SELECT DISTINCT + 42 - - 90 col1
----
132

onlyif mysql # DIV for integer division: 
query II rowsort label-379
SELECT DISTINCT + 31 * ( - 94 ) AS col0, - 7 + + 45 DIV - 52 - - - ( - 18 ) AS col2
----
-2914
11

skipif mysql # not compatible
query II rowsort label-379
SELECT DISTINCT + 31 * ( - 94 ) AS col0, - 7 + + 45 / - 52 - - - ( - 18 ) AS col2
----
-2914
11

onlyif mysql # DIV for integer division: 
query I rowsort label-380
SELECT ALL + 9 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL + 9 / + 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-381
SELECT + - 4 * - 10 / - 87 - COUNT( * ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-381
SELECT + - 4 * - 10 / - 87 - COUNT ( * ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT ALL + SUM( DISTINCT - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL + SUM ( DISTINCT - 1 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-383
SELECT 13 DIV + + COUNT( * ) + 57 * - 63 + + 7 * NULLIF ( + + 21, + SUM( ALL + + 59 ) ) AS col2, ( + 94 ) + - MAX( DISTINCT - COALESCE ( + 43, + 17 ) )
----
-3431
137

skipif mysql # not compatible
query II rowsort label-383
SELECT 13 / + + COUNT ( * ) + 57 * - 63 + + 7 * NULLIF ( + + 21, + SUM ( ALL + + 59 ) ) AS col2, ( + 94 ) + - MAX ( DISTINCT - COALESCE ( + 43, + 17 ) )
----
-3431
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-384
SELECT ALL - 49 DIV + 58 + - 0 + + - NULLIF ( - 1, 42 + - 93 + - AVG ( DISTINCT 98 ) + 54 * 29 * + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL - 49 / + 58 + - 0 + + - NULLIF ( - 1, 42 + - 93 + - AVG ( DISTINCT 98 ) + 54 * 29 * + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT - COUNT( * ) + + 18 + 21 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-385
SELECT - COUNT ( * ) + + 18 + 21 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-386
SELECT ALL + 32, 99 * - + CAST( NULL AS SIGNED ) + - - 55 + COUNT( * ) AS col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-386
SELECT ALL + 32, 99 * - + CAST ( NULL AS INTEGER ) + - - 55 + COUNT ( * ) AS col0
----
32
NULL

query I rowsort
SELECT + COALESCE ( 49, + 43 * + 95 + 14 ) - - 3 AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-388
SELECT ALL 70 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL 70 / + 39
----
1

query I rowsort
SELECT DISTINCT + + 24 * - 63 + + 4 + - 20
----
-1528

query II rowsort
SELECT DISTINCT + 9, 25 + - 27 AS col0
----
9
-2

query I rowsort
SELECT DISTINCT 41 * 99 + + 80 AS col2
----
4139

query I rowsort
SELECT DISTINCT + 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT + MAX( DISTINCT + ( - - 97 ) ) * - 37 AS col2
----
-3589

skipif mysql # not compatible
query I rowsort label-393
SELECT + MAX ( DISTINCT + ( - - 97 ) ) * - 37 AS col2
----
-3589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-394
SELECT + 3 * + 96 + - COUNT( * ) + 93 + + + ( - + 44 ) + - CAST( - 1 AS SIGNED ) AS col1
----
337

skipif mysql # not compatible
query I rowsort label-394
SELECT + 3 * + 96 + - COUNT ( * ) + 93 + + + ( - + 44 ) + - CAST ( - 1 AS INTEGER ) AS col1
----
337

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT ALL COALESCE ( MIN( - 58 ), - 81, + - NULLIF ( 7, 30 - - ( - 74 ) * 32 ) * + + ( - COUNT( * ) ) ) * - - 73 + + - 66 + - 99 - 48 * - - 32 * + - 55 * 33 + - 33
----
2783408

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL COALESCE ( MIN ( - 58 ), - 81, + - NULLIF ( 7, 30 - - ( - 74 ) * 32 ) * + + ( - COUNT ( * ) ) ) * - - 73 + + - 66 + - 99 - 48 * - - 32 * + - 55 * 33 + - 33
----
2783408

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT DISTINCT CASE - 27 WHEN 48 THEN NULL WHEN - 19 THEN NULL ELSE - COUNT( - + 25 ) END * - COUNT( * ) + - 82 - + - ( COUNT( * ) ) * + NULLIF ( + SUM( ALL + + CASE + + 52 WHEN + + 52 + + 27 + + + 46 THEN NULL WHEN 66 - 31 THEN 51 END ), - 67 + + 31 ) * 95 * - - ( - 49 ) * + 21 + - + 57 * + 57 * 71 * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT CASE - 27 WHEN 48 THEN NULL WHEN - 19 THEN NULL ELSE - COUNT ( - + 25 ) END * - COUNT ( * ) + - 82 - + - ( COUNT ( * ) ) * + NULLIF ( + SUM ( ALL + + CASE + + 52 WHEN + + 52 + + 27 + + + 46 THEN NULL WHEN 66 - 31 THEN 51 END ), - 67 + + 31 ) * 95 * - - ( - 49 ) * + 21 + - + 57 * + 57 * 71 * - 28
----
NULL

query I rowsort
SELECT DISTINCT + 39 col2
----
39

query I rowsort
SELECT ALL 28 * - 2 + + NULLIF ( + + 94, + 22 ) AS col0
----
38

query I rowsort
SELECT - ( + 81 ) * - 77
----
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT DISTINCT + 56 * + 82 + - + SUM( - 52 ) AS col2
----
4644

skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT + 56 * + 82 + - + SUM ( - 52 ) AS col2
----
4644

query I rowsort
SELECT COALESCE ( + 26, 12 )
----
26

query I rowsort
SELECT - 94 * + - 41
----
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT 87 + - + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-403
SELECT 87 + - + COUNT ( * ) AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-404
SELECT 22 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-404
SELECT 22 / + 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-405
SELECT ALL - COUNT( * ) - + 19, - COUNT( * ) * 51 * + - NULLIF ( + 73, - CASE 98 WHEN + - 36 THEN 68 * + + 47 * + 5 END ) DIV COUNT( * ) AS col0
----
-20
3723

skipif mysql # not compatible
query II rowsort label-405
SELECT ALL - COUNT ( * ) - + 19, - COUNT ( * ) * 51 * + - NULLIF ( + 73, - CASE 98 WHEN + - 36 THEN 68 * + + 47 * + 5 END ) / COUNT ( * ) AS col0
----
-20
3723

query I rowsort
SELECT 93 * + 50
----
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT 96 + + SUM( ALL - 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-407
SELECT 96 + + SUM ( ALL - 95 ) AS col0
----
1

query I rowsort
SELECT 65 - + + 48 * ( + 38 )
----
-1759

query I rowsort
SELECT DISTINCT + - 60 * + - 23 * 45
----
62100

query I rowsort
SELECT - 68 + + 7
----
-61

query I rowsort
SELECT ALL + COALESCE ( 30, + 75 ) AS col2
----
30

query I rowsort
SELECT - 44 * CASE - ( + 85 ) WHEN - 56 THEN - + 12 ELSE + + 88 - + + 83 END AS col1
----
-220

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-415
SELECT DISTINCT - COUNT( * ) * + + 91 DIV - 61 col0
----
1

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT - COUNT ( * ) * + + 91 / - 61 col0
----
1

query I rowsort
SELECT 26 + + - 93
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-417
SELECT 13 DIV + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-417
SELECT 13 / + 84 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT MIN( ALL - 86 ) * - 75
----
6450

skipif mysql # not compatible
query I rowsort label-418
SELECT MIN ( ALL - 86 ) * - 75
----
6450

query I rowsort
SELECT ALL + 87 * 33 * - + 41 AS col0
----
-117711

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT DISTINCT + CASE - - 76 WHEN + + 59 - - - 8 THEN + + COUNT( * ) + - + 71 WHEN 84 THEN NULL ELSE - 26 END * + 95 * - 94
----
232180

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT + CASE - - 76 WHEN + + 59 - - - 8 THEN + + COUNT ( * ) + - + 71 WHEN 84 THEN NULL ELSE - 26 END * + 95 * - 94
----
232180

query I rowsort
SELECT DISTINCT - 59 * - COALESCE ( - 18, - - NULLIF ( 98, 16 ) ) AS col0
----
-1062

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT ALL - ( + COUNT( * ) ) + + 61 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL - ( + COUNT ( * ) ) + + 61 AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-424
SELECT ALL - CAST( - 42 AS SIGNED ) + 32 - + CASE - - 73 WHEN 63 / + COUNT( * ) THEN - + COUNT( * ) * - - 23 + 55 + + 87 / 63 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL - CAST ( - 42 AS INTEGER ) + 32 - + CASE - - 73 WHEN 63 / + COUNT ( * ) THEN - + COUNT ( * ) * - - 23 + 55 + + 87 / 63 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-425
SELECT DISTINCT - + 9 DIV - - 84 * - ( - - COALESCE ( + + 47, - 68, 70 ) ) AS col0, 54 + + 21 - + 32 AS col0
----
0
43

skipif mysql # not compatible
query II rowsort label-425
SELECT DISTINCT - + 9 / - - 84 * - ( - - COALESCE ( + + 47, - 68, 70 ) ) AS col0, 54 + + 21 - + 32 AS col0
----
0
43

query I rowsort
SELECT ALL + + 47 + - - 72 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT COUNT( * ) * + 9 * 23 + + - 36
----
171

skipif mysql # not compatible
query I rowsort label-427
SELECT COUNT ( * ) * + 9 * 23 + + - 36
----
171

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

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

query I rowsort
SELECT DISTINCT 83 + - + 14 AS col1
----
69

query I rowsort
SELECT ALL 42 + - 8 + + 32 * - 82 * - 78 + + 59 * 45 * - 95
----
-47519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-431
SELECT + 62 DIV + MAX( - 92 ) * + + 69 * - 65 + - 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-431
SELECT + 62 / + MAX ( - 92 ) * + + 69 * - 65 + - 98 AS col1
----
-98

query I rowsort
SELECT ALL 18 + 80 + + 29
----
127

query I rowsort
SELECT 78 + + 71
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT ALL 30 + + 63 - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL 30 + + 63 - COUNT ( * )
----
92

query I rowsort
SELECT DISTINCT - 97 * + 63 * - 24 AS col0
----
146664

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT DISTINCT 48 DIV - 41 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT 48 / - 41 AS col1
----
-1

query I rowsort
SELECT ALL + 34 + + 38
----
72

query II rowsort
SELECT ALL - 61 col1, 56 AS col2
----
-61
56

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT ALL 82 + + COUNT( * ) col0
----
83

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL 82 + + COUNT ( * ) col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT DISTINCT COUNT( * ) + + MIN( ALL 69 ) col2
----
70

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT COUNT ( * ) + + MIN ( ALL 69 ) col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT ALL + NULLIF ( + 57, 50 ) + - - 18 + + 5 - + MIN( ALL + 1 ) + - 62 * + - 31
----
2001

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL + NULLIF ( + 57, 50 ) + - - 18 + + 5 - + MIN ( ALL + 1 ) + - 62 * + - 31
----
2001

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT - NULLIF ( + 40, - + 26 ) * - COUNT( * ) + - + 37 - 13 * 25
----
-322

skipif mysql # not compatible
query I rowsort label-442
SELECT - NULLIF ( + 40, - + 26 ) * - COUNT ( * ) + - + 37 - 13 * 25
----
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT ALL CASE + 27 WHEN + 64 THEN + COUNT( ALL 29 ) WHEN - 65 + - 16 + + 44 * + - 41 / 73 THEN NULL END * - + CASE WHEN NOT NULL >= COUNT( * ) THEN - 19 ELSE NULL END + - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-443
SELECT ALL CASE + 27 WHEN + 64 THEN + COUNT ( ALL 29 ) WHEN - 65 + - 16 + + 44 * + - 41 / 73 THEN NULL END * - + CASE WHEN NOT NULL >= COUNT ( * ) THEN - 19 ELSE NULL END + - - 8
----
NULL

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

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

query I rowsort
SELECT 12 + - 32
----
-20

query I rowsort
SELECT DISTINCT 14 AS col1
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL - + COUNT( DISTINCT - 29 ) * + ( + 30 ) - + + 5 + 17 * - - 8 * + + NULLIF ( + 1, NULLIF ( COUNT( * ), - - 60 ) ) + + + SUM( ALL + 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL - + COUNT ( DISTINCT - 29 ) * + ( + 30 ) - + + 5 + 17 * - - 8 * + + NULLIF ( + 1, NULLIF ( COUNT ( * ), - - 60 ) ) + + + SUM ( ALL + 58 ) AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-450
SELECT DISTINCT - COUNT ( * ) / + 30
----
0

query I rowsort
SELECT ALL - 82 * + + 48
----
-3936

query I rowsort
SELECT 90 * - 33 - - + 55 AS col0
----
-2915

query I rowsort
SELECT 49 + 81 AS col1
----
130

query I rowsort
SELECT + 41 * + 16 - 53 * + 93 col1
----
-4273

onlyif mysql # DIV for integer division: 
query I rowsort label-455
SELECT + 25 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-455
SELECT + 25 / 66
----
0

query I rowsort
SELECT COALESCE ( + + 83, + 48 * ( - ( - - 77 ) ) ) + - 85 AS col0
----
-2

query I rowsort
SELECT ALL + + 16 * 3 AS col0
----
48

query I rowsort
SELECT ALL ( - - 11 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-459
SELECT ALL + 30 + ( + 85 ) + + MIN( ALL - - 66 ) - 36 * - 48 * + SUM( DISTINCT 7 ) * + 84 - - 25 AS col1, 10
----
1016270
10

skipif mysql # not compatible
query II rowsort label-459
SELECT ALL + 30 + ( + 85 ) + + MIN ( ALL - - 66 ) - 36 * - 48 * + SUM ( DISTINCT 7 ) * + 84 - - 25 AS col1, 10
----
1016270
10

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

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL - MAX ( ALL 83 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT ALL + - COUNT( * ) + + COUNT( * ) * + + COUNT( * ) * - 11 * - CAST( - + COUNT( * ) AS SIGNED ) + - 80
----
-92

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL + - COUNT ( * ) + + COUNT ( * ) * + + COUNT ( * ) * - 11 * - CAST ( - + COUNT ( * ) AS INTEGER ) + - 80
----
-92

query I rowsort
SELECT ALL - + ( 40 ) + + 50 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-463
SELECT ALL 44 + + COUNT( ALL - + CAST( 78 AS SIGNED ) ) col1
----
45

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL 44 + + COUNT ( ALL - + CAST ( 78 AS INTEGER ) ) col1
----
45

query I rowsort
SELECT 82 + - + 56 AS col2
----
26

query II rowsort
SELECT ALL - 41 AS col0, - 21
----
-41
-21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-467
SELECT + 11 DIV 90 + - MIN( DISTINCT 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-467
SELECT + 11 / 90 + - MIN ( DISTINCT 59 )
----
-59

query I rowsort
SELECT - 32 * 84 + - - 93 * + 22
----
-642

query I rowsort
SELECT 97 + - 16 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL 76 * - + 69 + SUM( 44 )
----
-5200

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL 76 * - + 69 + SUM ( 44 )
----
-5200

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT 68 * COUNT( * ) * + + 28
----
1904

skipif mysql # not compatible
query I rowsort label-471
SELECT 68 * COUNT ( * ) * + + 28
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT SUM( - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-472
SELECT SUM ( - 47 )
----
-47

query I rowsort
SELECT DISTINCT 51 * - 58 * + 55 * + ( 55 ) * 17 + + 82 AS col1
----
-152115068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-474
SELECT 81 - + CAST( + COUNT( - 23 ) AS SIGNED ) - + COUNT( + - 44 ) * 41 DIV + - 9 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-474
SELECT 81 - + CAST ( + COUNT ( - 23 ) AS INTEGER ) - + COUNT ( + - 44 ) * 41 / + - 9 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT ALL - 47 * - CASE + 72 WHEN 96 THEN + 65 * - 70 - 47 END * - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL - 47 * - CASE + 72 WHEN 96 THEN + 65 * - 70 - 47 END * - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - 52 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT MAX( ALL - + 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-477
SELECT MAX ( ALL - + 90 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT ALL 13 * + 61 + COUNT( - + 92 ) col2
----
794

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL 13 * + 61 + COUNT ( - + 92 ) col2
----
794

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-479
SELECT ALL - 61 AS col0, CAST( + 37 AS SIGNED ) AS col0
----
-61
37

skipif mysql # not compatible
query II rowsort label-479
SELECT ALL - 61 AS col0, CAST ( + 37 AS INTEGER ) AS col0
----
-61
37

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT COUNT( DISTINCT - 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-480
SELECT COUNT ( DISTINCT - 6 ) AS col0
----
1

query II rowsort
SELECT ALL - 32 AS col0, 24 AS col0
----
-32
24

query II rowsort
SELECT + 39 AS col1, + 25
----
39
25

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT COUNT( ALL - 7 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-483
SELECT COUNT ( ALL - 7 ) AS col0
----
1

query I rowsort
SELECT + NULLIF ( - - ( + - 23 ), - 58 ) * 88 AS col0
----
-2024

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT + 35 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-485
SELECT + 35 / 96
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-486
SELECT - 41 DIV ( + - 48 ) DIV + + 86 * - COUNT( * ) * - 27 + - + 84 + - SUM( - 89 ) * + + 61 + + MIN( DISTINCT + 70 ) + + - 71 + + 4 * 53 * + + 51 + + 96 * + - 88 AS col1
----
7708

skipif mysql # not compatible
query I rowsort label-486
SELECT - 41 / ( + - 48 ) / + + 86 * - COUNT ( * ) * - 27 + - + 84 + - SUM ( - 89 ) * + + 61 + + MIN ( DISTINCT + 70 ) + + - 71 + + 4 * 53 * + + 51 + + 96 * + - 88 AS col1
----
7708

onlyif mysql # aggregate syntax: 
query II rowsort label-487
SELECT ALL 23 * MAX( ALL - 26 ) * 36 + + 41 + + 86, + ( 33 ) AS col2
----
-21401
33

skipif mysql # not compatible
query II rowsort label-487
SELECT ALL 23 * MAX ( ALL - 26 ) * 36 + + 41 + + 86, + ( 33 ) AS col2
----
-21401
33

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

skipif mysql # not compatible
query I rowsort label-488
SELECT SUM ( 31 )
----
31

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

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

query I rowsort
SELECT DISTINCT CASE 45 WHEN - + 27 THEN NULL ELSE - 68 END AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-491
SELECT - 72 * 41 + CAST( NULL AS SIGNED ) / - 60 - + - 47 * - 2 + - 11 + - 23 / + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT - 72 * 41 + CAST ( NULL AS INTEGER ) / - 60 - + - 47 * - 2 + - 11 + - 23 / + 51
----
NULL

query I rowsort
SELECT - + 71 AS col1
----
-71

query II rowsort
SELECT - 4, 47 AS col1
----
-4
47

query I rowsort
SELECT DISTINCT - ( - 14 ) + + ( - ( - + 38 ) )
----
52

query I rowsort
SELECT + + 56 - - 93 + + - 69 col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT - COUNT( 85 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-496
SELECT - COUNT ( 85 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-497
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) / 96 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-498
SELECT DISTINCT COALESCE ( + 38, - - ( - 70 ) * 52 + + 91 + - 47 ) + + CAST( - 54 AS DECIMAL ) / + 68 / + ( - 92 ) * - - CASE WHEN NULL >= NULL THEN COUNT( * ) WHEN - COUNT( * ) IS NULL THEN NULL ELSE NULL END * + 28 * - 58 + COUNT( * ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT COALESCE ( + 38, - - ( - 70 ) * 52 + + 91 + - 47 ) + + CAST ( - 54 AS REAL ) / + 68 / + ( - 92 ) * - - CASE WHEN NULL >= NULL THEN COUNT ( * ) WHEN - COUNT ( * ) IS NULL THEN NULL ELSE NULL END * + 28 * - 58 + COUNT ( * ) + + COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT - - 73 col1
----
73

query I rowsort
SELECT DISTINCT + 79 + - + 91 AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-502
SELECT ALL - + 92 + CASE + 85 WHEN + 9 + COUNT( * ) + + - 14 THEN - 96 / - 85 * + AVG ( - + CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL - + 92 + CASE + 85 WHEN + 9 + COUNT ( * ) + + - 14 THEN - 96 / - 85 * + AVG ( - + CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT ALL + + 76 * - + 46 * - - 77 + + 96
----
-269096

query I rowsort
SELECT + 33 + - + 64
----
-31

query I rowsort
SELECT - 2 - - - 24 * - - ( 16 ) AS col2
----
-386

query I rowsort
SELECT DISTINCT + 76 * + 17
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT DISTINCT - - 63 + + COUNT( - 89 )
----
64

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT - - 63 + + COUNT ( - 89 )
----
64

query I rowsort
SELECT ALL - 85 + + ( 81 ) AS col2
----
-4

query I rowsort
SELECT DISTINCT + 24 * + 86 AS col1
----
2064

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

query I rowsort
SELECT + 26 col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-512
SELECT DISTINCT COUNT( * ) DIV - - COUNT( DISTINCT + - 83 ) - + + 62 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT COUNT ( * ) / - - COUNT ( DISTINCT + - 83 ) - + + 62 AS col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-513
SELECT ALL + ( + 53 ) AS col1, 12 / - CAST( NULL AS SIGNED )
----
53
NULL

skipif mysql # not compatible
query II rowsort label-513
SELECT ALL + ( + 53 ) AS col1, 12 / - CAST ( NULL AS INTEGER )
----
53
NULL

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

query I rowsort
SELECT + 30 * - 43 AS col2
----
-1290

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

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

query II rowsort
SELECT ( - 83 ), 54 AS col0
----
-83
54

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

skipif mysql # not compatible
query I rowsort label-518
SELECT ( - + SUM ( 68 ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT - 94 * + MAX( - - ( 95 ) )
----
-8930

skipif mysql # not compatible
query I rowsort label-519
SELECT - 94 * + MAX ( - - ( 95 ) )
----
-8930

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

query I rowsort
SELECT - 11 + 13
----
2

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

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

skipif mysql # not compatible
query I rowsort label-523
SELECT - 33 * - CAST ( NULL AS INTEGER ) + + + 16
----
NULL

query I rowsort
SELECT ALL + 73 col2
----
73

query I rowsort
SELECT NULLIF ( + 66, + 17 * + 33 ) AS col2
----
66

query I rowsort
SELECT + 57 + - + 60 * - - 82 col0
----
-4863

query II rowsort
SELECT - - 76 * 24, 57 col2
----
1824
57

query I rowsort
SELECT + + ( 99 ) + 82
----
181

query II rowsort
SELECT ALL + ( + + 8 ) AS col1, 24
----
8
24

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

skipif mysql # not compatible
query I rowsort label-530
SELECT + 80 / - 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-531
SELECT ALL + COUNT( * ) * + - COUNT( * ) + + COUNT( * ) DIV + + 98 + - + 20 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) + + COUNT ( * ) / + + 98 + - + 20 AS col0
----
-21

query I rowsort
SELECT ALL 76 * - ( + + 19 )
----
-1444

query I rowsort
SELECT DISTINCT - 44 * 91 + - - 13 + 82 * + 70
----
1749

query II rowsort
SELECT DISTINCT - - 15 + - + 16 AS col1, + 20 + 86 + 39 + - - 70 AS col1
----
-1
215

query I rowsort
SELECT ALL + 50 + + ( 93 )
----
143

query I rowsort
SELECT + - 33 + - 80 - - 34 - + - ( + 80 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-537
SELECT + + 75 * - SUM( DISTINCT - 27 ) + - 11 * + - CAST( - 32 AS SIGNED )
----
1673

skipif mysql # not compatible
query I rowsort label-537
SELECT + + 75 * - SUM ( DISTINCT - 27 ) + - 11 * + - CAST ( - 32 AS INTEGER )
----
1673

query I rowsort
SELECT DISTINCT 65 + + - 83
----
-18

query I rowsort
SELECT ALL - 89 + - 19 AS col2
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-540
SELECT - + 20 * + 47, MIN( ALL + 14 ) + - 41 col0
----
-940
-27

skipif mysql # not compatible
query II rowsort label-540
SELECT - + 20 * + 47, MIN ( ALL + 14 ) + - 41 col0
----
-940
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-541
SELECT + - 92 + - COUNT( 7 ) AS col0, + COUNT( * ) * 3
----
-93
3

skipif mysql # not compatible
query II rowsort label-541
SELECT + - 92 + - COUNT ( 7 ) AS col0, + COUNT ( * ) * 3
----
-93
3

query I rowsort
SELECT + 1 + + - 7 col0
----
-6

query I rowsort
SELECT - ( - 31 ) * + 66 * + 69
----
141174

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL - COUNT( * ) - + + 4 * COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL - COUNT ( * ) - + + 4 * COUNT ( * )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-545
SELECT - 26 AS col2, - CAST( - 15 AS SIGNED ) * - 25 AS col1
----
-26
-375

skipif mysql # not compatible
query II rowsort label-545
SELECT - 26 AS col2, - CAST ( - 15 AS INTEGER ) * - 25 AS col1
----
-26
-375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-546
SELECT 16 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-546
SELECT 16 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-547
SELECT ALL + MAX( ALL - 71 ) * - 84, - 1 col1
----
5964
-1

skipif mysql # not compatible
query II rowsort label-547
SELECT ALL + MAX ( ALL - 71 ) * - 84, - 1 col1
----
5964
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-548
SELECT + 35 AS col0, MAX( ALL + - 32 ) * COUNT( * ), - COUNT( DISTINCT + 93 ) AS col1
----
35
-32
-1

skipif mysql # not compatible
query III rowsort label-548
SELECT + 35 AS col0, MAX ( ALL + - 32 ) * COUNT ( * ), - COUNT ( DISTINCT + 93 ) AS col1
----
35
-32
-1

query I rowsort
SELECT 32 + + 58 col2
----
90

query I rowsort
SELECT DISTINCT - ( - + 95 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-551
SELECT 6 DIV - 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-551
SELECT 6 / - 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT 12 * - COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-552
SELECT 12 * - COUNT ( * ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT ALL COALESCE ( + 49, 53 + + 23 ) * + - 84 + NULLIF ( - 49, + 89 - COUNT( * ) ) AS col2
----
-4165

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL COALESCE ( + 49, 53 + + 23 ) * + - 84 + NULLIF ( - 49, + 89 - COUNT ( * ) ) AS col2
----
-4165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-554
SELECT DISTINCT + COUNT( * ) DIV - 89 * 42 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT + COUNT ( * ) / - 89 * 42 * - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 41 * 26
----
1066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-556
SELECT DISTINCT + CAST( - 65 AS SIGNED ) + + COUNT( * ) + - + 82 + + 41
----
-105

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT + CAST ( - 65 AS INTEGER ) + + COUNT ( * ) + - + 82 + + 41
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL - COUNT( * ) + - 92 - 17 col0
----
-110

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL - COUNT ( * ) + - 92 - 17 col0
----
-110

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

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

query I rowsort
SELECT ALL 52 + - + 43
----
9

query I rowsort
SELECT + + 34
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT ALL + 59 + + + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL + 59 + + + COUNT ( * ) AS col1
----
60

query II rowsort
SELECT + + 11, 24 AS col1
----
11
24

query I rowsort
SELECT DISTINCT + 42 * + - 9
----
-378

query I rowsort
SELECT DISTINCT CASE - NULLIF ( + - 46, 13 * 68 * - 1 + - 48 ) WHEN + - 84 THEN - - 29 END AS col2
----
NULL

query I rowsort
SELECT - - 82 * + - 93 + 25 AS col1
----
-7601

query I rowsort
SELECT - 71 * - 77 col0
----
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT ( + 39 ) + - COUNT( * ) * 37 * + 39
----
-1404

skipif mysql # not compatible
query I rowsort label-568
SELECT ( + 39 ) + - COUNT ( * ) * 37 * + 39
----
-1404

onlyif mysql # DIV for integer division: 
query I rowsort label-569
SELECT DISTINCT - 60 DIV - + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT - 60 / - + 85 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-570
SELECT - COUNT( * ) + - - 7 + CASE 54 WHEN - + MAX( ALL 35 ) THEN NULL ELSE - CAST( NULL AS DECIMAL ) * - - 42 * - + NULLIF ( + 40, + COALESCE ( - + NULLIF ( - 39, - - 79 + + + CAST( - ( + 88 ) AS SIGNED ) + COUNT( * ) ), + 28 - - 0 ) - + + 43 ) END AS col2, + 10 + - - MIN( ALL - 57 ) + CASE + + 94 WHEN 14 - - 27 THEN - COUNT( * ) WHEN + 58 THEN NULL ELSE 89 + - 54 END col0
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-570
SELECT - COUNT ( * ) + - - 7 + CASE 54 WHEN - + MAX ( ALL 35 ) THEN NULL ELSE - CAST ( NULL AS REAL ) * - - 42 * - + NULLIF ( + 40, + COALESCE ( - + NULLIF ( - 39, - - 79 + + + CAST ( - ( + 88 ) AS INTEGER ) + COUNT ( * ) ), + 28 - - 0 ) - + + 43 ) END AS col2, + 10 + - - MIN ( ALL - 57 ) + CASE + + 94 WHEN 14 - - 27 THEN - COUNT ( * ) WHEN + 58 THEN NULL ELSE 89 + - 54 END col0
----
NULL
-12

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

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

query I rowsort
SELECT - 51 + - + 23 AS col0
----
-74

query I rowsort
SELECT - ( - 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT 75 + 90 * COUNT( * )
----
165

skipif mysql # not compatible
query I rowsort label-574
SELECT 75 + 90 * COUNT ( * )
----
165

query I rowsort
SELECT ALL COALESCE ( ( - 3 ), + 99, + 95 + - - 10 - - + 89 * - ( + 68 ) * 91 - + 36 + - 8 ) * + 67 col2
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-576
SELECT ALL COALESCE ( + 96, 17 * 6 DIV - 39 - 78 ) - ( + - 42 ) * 2 AS col2
----
180

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL COALESCE ( + 96, 17 * 6 / - 39 - 78 ) - ( + - 42 ) * 2 AS col2
----
180

query I rowsort
SELECT ( + + 49 ) * - 98 * + COALESCE ( + 94, + 12, + + ( - 20 ) ) AS col2
----
-451388

query II rowsort
SELECT 81 + + - 26, 24 AS col2
----
55
24

query I rowsort
SELECT 16 + 27 - - + 19 AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-580
SELECT 26 + + 58 AS col1, COUNT( * ) * - ( - - COALESCE ( + 79, - - NULLIF ( - + COUNT( * ), - 54 ), 57 ) ) col1
----
84
-79

skipif mysql # not compatible
query II rowsort label-580
SELECT 26 + + 58 AS col1, COUNT ( * ) * - ( - - COALESCE ( + 79, - - NULLIF ( - + COUNT ( * ), - 54 ), 57 ) ) col1
----
84
-79

query I rowsort
SELECT 32 * 6 * - ( - + 77 ) AS col2
----
14784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-582
SELECT ( + 73 ) - - 86 + 81 * + - SUM( - CAST( 8 AS SIGNED ) )
----
807

skipif mysql # not compatible
query I rowsort label-582
SELECT ( + 73 ) - - 86 + 81 * + - SUM ( - CAST ( 8 AS INTEGER ) )
----
807

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

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

query I rowsort
SELECT ALL 89 col1
----
89

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

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

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

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL AVG ( + 51 ) + - + CAST ( NULL AS INTEGER ) * - 10 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-587
SELECT COUNT( * ) DIV 55 - - - ( + 59 ) AS col0
----
-59

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

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

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

query II rowsort
SELECT ALL 64 + 70 AS col1, 16 + + 85
----
134
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-590
SELECT - 25 DIV + - 86 * - - 15 * + COALESCE ( MAX( DISTINCT 57 ), - + 37 - + ( - + 53 ) ) + - 80 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-590
SELECT - 25 / + - 86 * - - 15 * + COALESCE ( MAX ( DISTINCT 57 ), - + 37 - + ( - + 53 ) ) + - 80 AS col0
----
-80

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

skipif mysql # not compatible
query I rowsort label-591
SELECT - 62 * - CAST ( NULL AS INTEGER ) + - - 56
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-592
SELECT 66 DIV + ( 91 )
----
0

skipif mysql # not compatible
query I rowsort label-592
SELECT 66 / + ( 91 )
----
0

query I rowsort
SELECT 37 + - 25 + - + 52
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-594
SELECT ALL + + 73 + - COUNT( * ) AS col2, ( 60 ) + - MAX( ALL + 16 ) + + - 14 * + 86 * + 57 * - CASE + CASE - 42 WHEN 7 * + 77 THEN ( - - 52 ) ELSE - - MIN( + 38 ) * - 14 * + 37 END WHEN + 22 * - CASE + COUNT( * ) WHEN - - 8 THEN - 32 * 31 - + CAST( + 45 AS SIGNED ) + - - SUM( + + 17 ) + + + CAST( NULL AS SIGNED ) * 57 / - 97 WHEN 37 - + COUNT( * ) THEN - 87 END - 26 THEN NULL ELSE 90 + 3 END * ( - 34 ) col1
----
72
-217001692

skipif mysql # not compatible
query II rowsort label-594
SELECT ALL + + 73 + - COUNT ( * ) AS col2, ( 60 ) + - MAX ( ALL + 16 ) + + - 14 * + 86 * + 57 * - CASE + CASE - 42 WHEN 7 * + 77 THEN ( - - 52 ) ELSE - - MIN ( + 38 ) * - 14 * + 37 END WHEN + 22 * - CASE + COUNT ( * ) WHEN - - 8 THEN - 32 * 31 - + CAST ( + 45 AS INTEGER ) + - - SUM ( + + 17 ) + + + CAST ( NULL AS INTEGER ) * 57 / - 97 WHEN 37 - + COUNT ( * ) THEN - 87 END - 26 THEN NULL ELSE 90 + 3 END * ( - 34 ) col1
----
72
-217001692

query I rowsort
SELECT ( 22 ) + - 84
----
-62

query I rowsort
SELECT 94 * + + 4 + + 1
----
377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-597
SELECT ALL - - CASE 3 WHEN + - CAST( NULL AS SIGNED ) THEN + - CAST( NULL AS SIGNED ) WHEN - + 0 - - - 7 * + 78 * SUM( - + 74 ) THEN 69 END + - - ( + 69 ) * 73 * - ( - 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL - - CASE 3 WHEN + - CAST ( NULL AS INTEGER ) THEN + - CAST ( NULL AS INTEGER ) WHEN - + 0 - - - 7 * + 78 * SUM ( - + 74 ) THEN 69 END + - - ( + 69 ) * 73 * - ( - 15 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-598
SELECT 79 * COUNT ( * ) + 92 AS col0
----
171

query I rowsort
SELECT + - 49 * + 47 + + - 37
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT ALL + 13 + + - 70 / - - CASE 25 WHEN 85 THEN - 93 * 8 + - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL + 13 + + - 70 / - - CASE 25 WHEN 85 THEN - 93 * 8 + - - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 65 * + 42 + + + 83 AS col2
----
2813

query I rowsort
SELECT ALL - - NULLIF ( - 27, 73 )
----
-27

query I rowsort
SELECT ALL - - 25
----
25

query I rowsort
SELECT + 18 col2
----
18

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT ALL - - 89 - - 59 * - SUM( DISTINCT - + 64 ) AS col1
----
3865

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL - - 89 - - 59 * - SUM ( DISTINCT - + 64 ) AS col1
----
3865

query I rowsort
SELECT ALL - - 14 * + + 26 * - 93 * - 96 AS col2
----
3249792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-609
SELECT + 71 DIV 41 * + MIN( DISTINCT 86 ) + + 72
----
158

skipif mysql # not compatible
query I rowsort label-609
SELECT + 71 / 41 * + MIN ( DISTINCT 86 ) + + 72
----
158

query I rowsort
SELECT - 11 * 55
----
-605

query I rowsort
SELECT - 65 AS col0
----
-65

query I rowsort
SELECT ALL CASE - 12 WHEN 56 + - 57 THEN + + ( ( + ( 10 ) ) ) ELSE 93 END
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-613
SELECT ALL 21 AS col1, + CASE 42 WHEN + - 16 - - 52 + - 88 THEN NULL ELSE + 79 + - 66 * + + 1 DIV + 72 * + + 19 * + + 21 + - 11 + 5 END AS col2
----
21
73

skipif mysql # not compatible
query II rowsort label-613
SELECT ALL 21 AS col1, + CASE 42 WHEN + - 16 - - 52 + - 88 THEN NULL ELSE + 79 + - 66 * + + 1 / + 72 * + + 19 * + + 21 + - 11 + 5 END AS col2
----
21
73

onlyif mysql # DIV for integer division: 
query I rowsort label-614
SELECT - 18 DIV - 17
----
1

skipif mysql # not compatible
query I rowsort label-614
SELECT - 18 / - 17
----
1

query I rowsort
SELECT + 24 * + + 39 AS col0
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT + 12 + + - 50 + + COALESCE ( - 7, COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-616
SELECT + 12 + + - 50 + + COALESCE ( - 7, COUNT ( * ) )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-617
SELECT ALL - COUNT( 48 ) DIV - MAX( + 16 ) * + 71
----
0

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL - COUNT ( 48 ) / - MAX ( + 16 ) * + 71
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-619
SELECT ALL CAST( 4 AS SIGNED ) * 29, - 81 AS col1
----
116
-81

skipif mysql # not compatible
query II rowsort label-619
SELECT ALL CAST ( 4 AS INTEGER ) * 29, - 81 AS col1
----
116
-81

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

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

query II rowsort
SELECT ( - + ( 69 ) ), 43 AS col0
----
-69
43

onlyif mysql # DIV for integer division: 
query I rowsort label-622
SELECT 86 DIV - 16 + - 64 * + 19 AS col1
----
-1221

skipif mysql # not compatible
query I rowsort label-622
SELECT 86 / - 16 + - 64 * + 19 AS col1
----
-1221

onlyif mysql # aggregate syntax: 
query II rowsort label-623
SELECT ALL + 95 AS col1, 34 + - COUNT( - ( 18 ) ) AS col1
----
95
33

skipif mysql # not compatible
query II rowsort label-623
SELECT ALL + 95 AS col1, 34 + - COUNT ( - ( 18 ) ) AS col1
----
95
33

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

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

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

skipif mysql # not compatible
query I rowsort label-625
SELECT + COUNT ( * ) + - - 67 AS col0
----
68

query I rowsort
SELECT ALL 83 * + - 28 + + 36
----
-2288

query I rowsort
SELECT + NULLIF ( - + 82, + + 12 )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT DISTINCT + COALESCE ( + + 81, 37 - - ( - + 27 ) DIV - + 72, + 78 )
----
81

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT + COALESCE ( + + 81, 37 - - ( - + 27 ) / - + 72, + 78 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT ALL - 59 * + COUNT( * ) - - + CAST( NULL AS SIGNED ) * + - 31 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL - 59 * + COUNT ( * ) - - + CAST ( NULL AS INTEGER ) * + - 31 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT + - ( - NULLIF ( + 1, + AVG ( DISTINCT - 99 ) ) ) * 50 + - COUNT( DISTINCT - 61 )
----
49

skipif mysql # not compatible
query I rowsort label-631
SELECT + - ( - NULLIF ( + 1, + AVG ( DISTINCT - 99 ) ) ) * 50 + - COUNT ( DISTINCT - 61 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-632
SELECT - 62 * - - ( + 34 ) AS col1, CAST( NULL AS SIGNED ) * + + 41
----
-2108
NULL

skipif mysql # not compatible
query II rowsort label-632
SELECT - 62 * - - ( + 34 ) AS col1, CAST ( NULL AS INTEGER ) * + + 41
----
-2108
NULL

query I rowsort
SELECT DISTINCT - 60 * + ( + 4 ) * + 6 + - 94
----
-1534

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

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

query I rowsort
SELECT DISTINCT + 38 AS col0
----
38

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

query I rowsort
SELECT DISTINCT + + 98 AS col1
----
98

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

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

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

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

query I rowsort
SELECT ALL + - 16 AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-641
SELECT + CAST( + 18 AS SIGNED ) + 17 * 67
----
1157

skipif mysql # not compatible
query I rowsort label-641
SELECT + CAST ( + 18 AS INTEGER ) + 17 * 67
----
1157

query I rowsort
SELECT - + 80 - - + 39 * - - 68 AS col0
----
2572

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

onlyif mysql # DIV for integer division: 
query I rowsort label-644
SELECT - - 69 * + - COALESCE ( + 45, - + 48, 61 + - ( + 53 ) ) + + 9 DIV 21 + 59
----
-3046

skipif mysql # not compatible
query I rowsort label-644
SELECT - - 69 * + - COALESCE ( + 45, - + 48, 61 + - ( + 53 ) ) + + 9 / 21 + 59
----
-3046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-645
SELECT - MAX( CAST( + - 16 AS SIGNED ) )
----
16

skipif mysql # not compatible
query I rowsort label-645
SELECT - MAX ( CAST ( + - 16 AS INTEGER ) )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-646
SELECT ALL + 16 + + - ( + 28 ) + - + COUNT( * ) + - + 52 - - COALESCE ( + 73, - 67 - + - ( + + CAST( + 43 AS SIGNED ) ) - + 88 ) * + - 61 * - CAST( - AVG ( DISTINCT 98 ) AS SIGNED ) AS col2
----
-436459

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL + 16 + + - ( + 28 ) + - + COUNT ( * ) + - + 52 - - COALESCE ( + 73, - 67 - + - ( + + CAST ( + 43 AS INTEGER ) ) - + 88 ) * + - 61 * - CAST ( - AVG ( DISTINCT 98 ) AS INTEGER ) AS col2
----
-436459

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT - 71 + + 87 + + + 14 * MIN( - + 15 )
----
-194

skipif mysql # not compatible
query I rowsort label-648
SELECT - 71 + + 87 + + + 14 * MIN ( - + 15 )
----
-194

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-650
SELECT ALL + NULLIF ( COUNT( * ), + + 27 * - + CASE + 2 WHEN - 32 * - 28 THEN 85 + - 94 + - CAST( NULL AS DECIMAL ) - - - 39 + - - 36 END ) + + 2 * - - COUNT( * ) + - + 2 col0
----
1

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL + NULLIF ( COUNT ( * ), + + 27 * - + CASE + 2 WHEN - 32 * - 28 THEN 85 + - 94 + - CAST ( NULL AS REAL ) - - - 39 + - - 36 END ) + + 2 * - - COUNT ( * ) + - + 2 col0
----
1

query I rowsort
SELECT DISTINCT 83 AS col2
----
83

query I rowsort
SELECT ALL 76 + - - 46
----
122

query I rowsort
SELECT DISTINCT - ( - ( + - 30 ) ) * 25 * 11 AS col2
----
-8250

query II rowsort
SELECT 51 AS col0, + 22 + 39 * + 46
----
51
1816

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT DISTINCT + CASE + COUNT( * ) WHEN - - ( + 7 ) THEN + 96 WHEN + SUM( DISTINCT 78 ) / + 55 - + + ( 69 ) + + 53 THEN NULL WHEN 36 THEN - + ( + 57 ) END + 61 - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT + CASE + COUNT ( * ) WHEN - - ( + 7 ) THEN + 96 WHEN + SUM ( DISTINCT 78 ) / + 55 - + + ( 69 ) + + 53 THEN NULL WHEN 36 THEN - + ( + 57 ) END + 61 - - 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-656
SELECT ALL CAST( NULL AS SIGNED ), 87 * + 57 - COUNT( * ) AS col2
----
NULL
4958

skipif mysql # not compatible
query II rowsort label-656
SELECT ALL CAST ( NULL AS INTEGER ), 87 * + 57 - COUNT ( * ) AS col2
----
NULL
4958

onlyif mysql # DIV for integer division: 
query I rowsort label-657
SELECT + 35 DIV + + 6 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-657
SELECT + 35 / + + 6 AS col1
----
5

query I rowsort
SELECT + ( 48 ) + 68 * + 35 AS col2
----
2428

query I rowsort
SELECT ALL 17 + - 63 + - 81 col0
----
-127

query I rowsort
SELECT - 23 - + + 53 AS col0
----
-76

query I rowsort
SELECT DISTINCT - 81 + - 14
----
-95

query I rowsort
SELECT - 99 + + 58
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-663
SELECT DISTINCT + 9 DIV + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT + 9 / + 57 AS col1
----
0

query I rowsort
SELECT + 1 * - + 83 AS col1
----
-83

query I rowsort
SELECT DISTINCT + 55 * - 99 AS col0
----
-5445

query I rowsort
SELECT + + 86 - - + 23 * + 51
----
1259

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

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

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

query I rowsort
SELECT + 93 * 89 + + 32 AS col0
----
8309

query I rowsort
SELECT ALL + - 20
----
-20

query II rowsort
SELECT ALL + - 64 AS col1, + 3 * + 11 * + + 84 AS col0
----
-64
2772

query I rowsort
SELECT + 4 + - 13
----
-9

query I rowsort
SELECT ALL + NULLIF ( + - COALESCE ( - + ( - 21 ), + 22, + 75, + 34 - 63 ), 70 )
----
-21

query I rowsort
SELECT ALL - - 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT COUNT( * ) * 91 * 26
----
2366

skipif mysql # not compatible
query I rowsort label-675
SELECT COUNT ( * ) * 91 * 26
----
2366

query I rowsort
SELECT ALL - + 70 AS col2
----
-70

query I rowsort
SELECT 60 * - 50 + + 94 AS col0
----
-2906

query I rowsort
SELECT + 53 + + NULLIF ( 71, 52 + - 8 + - + 4 )
----
124

query II rowsort
SELECT 27, - 47 col2
----
27
-47

query I rowsort
SELECT ALL + ( - 39 ) + + - 99 * 81 AS col1
----
-8058

query I rowsort
SELECT DISTINCT 60 + 9 + + 16 col1
----
85

query I rowsort
SELECT DISTINCT + 12 + 44 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT DISTINCT + COUNT( * ) + - 44
----
-43

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT + COUNT ( * ) + - 44
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT 25 DIV + ( - 83 ) * 98 - 70
----
-70

skipif mysql # not compatible
query I rowsort label-684
SELECT 25 / + ( - 83 ) * 98 - 70
----
-70

query I rowsort
SELECT 47 + + - 77 * - 3
----
278

query I rowsort
SELECT DISTINCT 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-687
SELECT ALL + MAX( DISTINCT - COALESCE ( - 98, + ( 81 ) + + - 65 ) ) + + - 56 AS col0, SUM( + 63 ) AS col1
----
42
63

skipif mysql # not compatible
query II rowsort label-687
SELECT ALL + MAX ( DISTINCT - COALESCE ( - 98, + ( 81 ) + + - 65 ) ) + + - 56 AS col0, SUM ( + 63 ) AS col1
----
42
63

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

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

query I rowsort
SELECT 41 - + 37 AS col1
----
4

query I rowsort
SELECT ALL 97 col0
----
97

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

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

query I rowsort
SELECT 50 * + + 41
----
2050

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL + 95 * - + 41 * + COUNT( * )
----
-3895

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL + 95 * - + 41 * + COUNT ( * )
----
-3895

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

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

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

query I rowsort
SELECT ALL + ( + 56 ) * - + NULLIF ( - + 25, ( 79 ) )
----
1400

query I rowsort
SELECT 77 + - + 30
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-698
SELECT ALL MAX( DISTINCT + 40 ) AS col1, CAST( NULL AS SIGNED ) + - - COUNT( - 39 )
----
40
NULL

skipif mysql # not compatible
query II rowsort label-698
SELECT ALL MAX ( DISTINCT + 40 ) AS col1, CAST ( NULL AS INTEGER ) + - - COUNT ( - 39 )
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT 26 * + + COUNT( * ) + - 83 * - CASE - 50 WHEN - + COUNT( * ) THEN NULL WHEN 92 * + 88 THEN + + ( + + 25 ) ELSE NULL END + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-699
SELECT 26 * + + COUNT ( * ) + - 83 * - CASE - 50 WHEN - + COUNT ( * ) THEN NULL WHEN 92 * + 88 THEN + + ( + + 25 ) ELSE NULL END + 63
----
NULL

query I rowsort
SELECT + 87 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT ALL - - CASE 66 WHEN + 77 * - COUNT( * ) THEN - 98 WHEN - 73 + + NULLIF ( + - 33, 14 ) THEN NULL WHEN + - 13 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-701
SELECT ALL - - CASE 66 WHEN + 77 * - COUNT ( * ) THEN - 98 WHEN - 73 + + NULLIF ( + - 33, 14 ) THEN NULL WHEN + - 13 THEN NULL ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-703
SELECT 78 * - + ( 3 ) + COUNT( * ) DIV + + 42 - 84
----
-318

skipif mysql # not compatible
query I rowsort label-703
SELECT 78 * - + ( 3 ) + COUNT ( * ) / + + 42 - 84
----
-318

query II rowsort
SELECT ALL - 87 AS col0, - 28
----
-87
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-705
SELECT DISTINCT ( + 90 ) + + + 96, ( - COUNT( * ) ) AS col0
----
186
-1

skipif mysql # not compatible
query II rowsort label-705
SELECT DISTINCT ( + 90 ) + + + 96, ( - COUNT ( * ) ) AS col0
----
186
-1

query I rowsort
SELECT DISTINCT 77 + + 52 AS col2
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-707
SELECT - AVG ( DISTINCT - 67 ) * - 89 * - CAST( - 84 AS SIGNED ) + NULLIF ( - CAST( NULL AS SIGNED ), + - 96 ) / - 14 * - COUNT( * ) * + + 45 AS col2, 9 * - + COUNT( * )
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-707
SELECT - AVG ( DISTINCT - 67 ) * - 89 * - CAST ( - 84 AS INTEGER ) + NULLIF ( - CAST ( NULL AS INTEGER ), + - 96 ) / - 14 * - COUNT ( * ) * + + 45 AS col2, 9 * - + COUNT ( * )
----
NULL
-9

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

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

query I rowsort
SELECT 15 + + 66 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT 51 - + NULLIF ( 80, - 90 / ( + COUNT( * ) ) - 88 ) + + + 89 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-710
SELECT 51 - + NULLIF ( 80, - 90 / ( + COUNT ( * ) ) - 88 ) + + + 89 AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-711
SELECT 60 DIV - - 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-711
SELECT 60 / - - 77 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL CAST ( NULL AS INTEGER ) - + 6 AS col1
----
NULL

query I rowsort
SELECT ALL 76 - - - ( - ( - - 95 ) )
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT COUNT( * ) + - - 32 * ( - - 24 ) * 39 * - MIN( ALL + + 6 ) AS col1
----
-179711

skipif mysql # not compatible
query I rowsort label-714
SELECT COUNT ( * ) + - - 32 * ( - - 24 ) * 39 * - MIN ( ALL + + 6 ) AS col1
----
-179711

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT 40 DIV + 43 * 9
----
0

skipif mysql # not compatible
query I rowsort label-715
SELECT 40 / + 43 * 9
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-716
SELECT 76 DIV + 12
----
6

skipif mysql # not compatible
query I rowsort label-716
SELECT 76 / + 12
----
6

query I rowsort
SELECT 46 * 11 AS col0
----
506

onlyif mysql # aggregate syntax: 
query II rowsort label-718
SELECT 14, - 61 * + COUNT( DISTINCT - + 77 ) * 59 col1
----
14
-3599

skipif mysql # not compatible
query II rowsort label-718
SELECT 14, - 61 * + COUNT ( DISTINCT - + 77 ) * 59 col1
----
14
-3599

query I rowsort
SELECT 85 + - 58 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT ALL CASE + 32 WHEN - - 5 + - 91 + ( ( + 36 ) ) THEN + CASE 60 WHEN + 15 THEN NULL WHEN - + 90 + + 91 * 24 * NULLIF ( - - COUNT( * ), 90 * + 75 * + 64 ) * - + 92 * - 21 THEN + 25 * - + NULLIF ( + 90, SUM( DISTINCT - 94 ) + - 28 * - 24 ) * + 14 + - COUNT( * ) * 61 WHEN - - 38 + + 37 - + 84 THEN + 57 - 34 END * + 17 + + - COUNT( * ) + - 15 WHEN 99 + + 9 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL CASE + 32 WHEN - - 5 + - 91 + ( ( + 36 ) ) THEN + CASE 60 WHEN + 15 THEN NULL WHEN - + 90 + + 91 * 24 * NULLIF ( - - COUNT ( * ), 90 * + 75 * + 64 ) * - + 92 * - 21 THEN + 25 * - + NULLIF ( + 90, SUM ( DISTINCT - 94 ) + - 28 * - 24 ) * + 14 + - COUNT ( * ) * 61 WHEN - - 38 + + 37 - + 84 THEN + 57 - 34 END * + 17 + + - COUNT ( * ) + - 15 WHEN 99 + + 9 THEN NULL END
----
NULL

query II rowsort
SELECT + 92 AS col1, - 12 AS col0
----
92
-12

query II rowsort
SELECT - - 41 AS col2, 75 AS col1
----
41
75

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT ALL + - 47 * + COUNT( * ) * + + 7 AS col2
----
-329

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL + - 47 * + COUNT ( * ) * + + 7 AS col2
----
-329

query I rowsort
SELECT ( + 95 ) + + + 7
----
102

query II rowsort
SELECT + + 18 AS col0, - 46
----
18
-46

query I rowsort
SELECT DISTINCT + 92 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT + NULLIF ( + 27, - 41 ) + + COUNT( DISTINCT + 45 )
----
28

skipif mysql # not compatible
query I rowsort label-727
SELECT + NULLIF ( + 27, - 41 ) + + COUNT ( DISTINCT + 45 )
----
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-728
SELECT - - 31 DIV - 54 + 61 + - CAST( - 39 AS SIGNED ) - - ( - 74 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-728
SELECT - - 31 / - 54 + 61 + - CAST ( - 39 AS INTEGER ) - - ( - 74 ) AS col2
----
26

query I rowsort
SELECT ALL + 54 col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-730
SELECT - 22 - - + CAST( NULL AS SIGNED ) * 29 / - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-730
SELECT - 22 - - + CAST ( NULL AS INTEGER ) * 29 / - 88 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT - 66 DIV + - 13 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-732
SELECT - 66 / + - 13 AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-733
SELECT + + COUNT( * ) DIV 39 + + - 75
----
-75

skipif mysql # not compatible
query I rowsort label-733
SELECT + + COUNT ( * ) / 39 + + - 75
----
-75

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

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

query I rowsort
SELECT - + 7 + - - 48 + - 34 * + + 76 AS col1
----
-2543

query I rowsort
SELECT ALL + - 28 AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-737
SELECT ALL + COUNT( * ) * 66 DIV + 6 + - 18 * + 73 * - - 6 * - 18
----
141923

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL + COUNT ( * ) * 66 / + 6 + - 18 * + 73 * - - 6 * - 18
----
141923

query I rowsort
SELECT 32 * + - 4 + + + 0 col0
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-739
SELECT ALL + - 2 * CAST( 21 AS SIGNED ) + - 3
----
-45

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL + - 2 * CAST ( 21 AS INTEGER ) + - 3
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT - 84 * - + COUNT( * ) + 60 * - NULLIF ( + - 99, 95 + COUNT( * ) )
----
6024

skipif mysql # not compatible
query I rowsort label-740
SELECT - 84 * - + COUNT ( * ) + 60 * - NULLIF ( + - 99, 95 + COUNT ( * ) )
----
6024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-741
SELECT ALL + 6 * + 21 * + 16 + + 43 + + CAST( - - COUNT( * ) AS SIGNED ) * + COALESCE ( 66, 42 ) * - 96 col1
----
-4277

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL + 6 * + 21 * + 16 + + 43 + + CAST ( - - COUNT ( * ) AS INTEGER ) * + COALESCE ( 66, 42 ) * - 96 col1
----
-4277

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

skipif mysql # not compatible
query I rowsort label-742
SELECT 30 * - COUNT ( * ) + + 9 AS col0
----
-21

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-744
SELECT DISTINCT CAST( - + 93 AS SIGNED ) * - 91
----
8463

skipif mysql # not compatible
query I rowsort label-744
SELECT DISTINCT CAST ( - + 93 AS INTEGER ) * - 91
----
8463

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT - SUM( ALL + 35 ) * + 95 AS col1
----
-3325

skipif mysql # not compatible
query I rowsort label-745
SELECT - SUM ( ALL + 35 ) * + 95 AS col1
----
-3325

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-748
SELECT MIN( DISTINCT - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT MIN ( DISTINCT - CAST ( NULL AS REAL ) )
----
NULL

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

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

query I rowsort
SELECT + 16 * NULLIF ( + + ( + 88 ), + AVG ( DISTINCT - 65 ) ) AS col0
----
1408

query I rowsort
SELECT - ( - 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT + + 54 - COUNT( * ) + 19
----
72

skipif mysql # not compatible
query I rowsort label-752
SELECT + + 54 - COUNT ( * ) + 19
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT + 56 + + SUM( 12 ) + + 10 * ( COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-753
SELECT + 56 + + SUM ( 12 ) + + 10 * ( COUNT ( * ) )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-754
SELECT ALL COUNT( * ) * 27 AS col2, 94 + - CASE WHEN NOT 19 >= + 68 * - + 78 THEN + 37 ELSE + + 47 * 59 * COUNT( * ) - + 51 + 47 END DIV 71 * + ( + - 70 ) col0, - COUNT( * ) AS col1
----
27
2824
-1

skipif mysql # not compatible
query III rowsort label-754
SELECT ALL COUNT ( * ) * 27 AS col2, 94 + - CASE WHEN NOT 19 >= + 68 * - + 78 THEN + 37 ELSE + + 47 * 59 * COUNT ( * ) - + 51 + 47 END / 71 * + ( + - 70 ) col0, - COUNT ( * ) AS col1
----
27
2824
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-755
SELECT ALL - CASE 67 WHEN + 23 THEN NULL WHEN - 29 * 75 + 95 THEN - - CASE - - 11 WHEN - 14 THEN + 11 ELSE 68 * + - AVG ( 29 ) * + 3 END + + COUNT( 58 ) + - COUNT( * ) - + NULLIF ( COUNT( 98 ), ( - CASE - + MIN( ALL - 78 ) WHEN - 56 THEN NULL ELSE NULLIF ( - 84, - COUNT( * ) - - - 9 + NULLIF ( - + 55, - 11 ) + COALESCE ( - - 77, + + 32, - 22 * - 35 + 96 / + COALESCE ( 25, 3 / 23 ) ) * 70 / COUNT( * ) ) END ) ) + COALESCE ( ( 48 ), CAST( - 67 AS SIGNED ) ) * + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL - CASE 67 WHEN + 23 THEN NULL WHEN - 29 * 75 + 95 THEN - - CASE - - 11 WHEN - 14 THEN + 11 ELSE 68 * + - AVG ( 29 ) * + 3 END + + COUNT ( 58 ) + - COUNT ( * ) - + NULLIF ( COUNT ( 98 ), ( - CASE - + MIN ( ALL - 78 ) WHEN - 56 THEN NULL ELSE NULLIF ( - 84, - COUNT ( * ) - - - 9 + NULLIF ( - + 55, - 11 ) + COALESCE ( - - 77, + + 32, - 22 * - 35 + 96 / + COALESCE ( 25, 3 / 23 ) ) * 70 / COUNT ( * ) ) END ) ) + COALESCE ( ( 48 ), CAST ( - 67 AS INTEGER ) ) * + 97 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-756
SELECT DISTINCT - + 57 + - COUNT( * ) + + 8 * - 46 col1, + 61 * + 79 + + CASE 36 WHEN 1 THEN NULL WHEN 97 THEN - - 26 END AS col1
----
-426
NULL

skipif mysql # not compatible
query II rowsort label-756
SELECT DISTINCT - + 57 + - COUNT ( * ) + + 8 * - 46 col1, + 61 * + 79 + + CASE 36 WHEN 1 THEN NULL WHEN 97 THEN - - 26 END AS col1
----
-426
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT ALL COUNT( - 97 ) + + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL COUNT ( - 97 ) + + - 55
----
-54

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

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

query I rowsort
SELECT + + ( - 90 ) + + 93 - 27
----
-24

query I rowsort
SELECT + - 2 * 30
----
-60

query I rowsort
SELECT - + 22 + + 25
----
3

query I rowsort
SELECT DISTINCT + - 98
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-763
SELECT DISTINCT MAX( DISTINCT 21 ) DIV - + COALESCE ( - + COUNT( * ), - CASE + + 90 WHEN 42 THEN + + 81 * - 43 WHEN 19 * 65 THEN - 14 + + - NULLIF ( + - 37, + - SUM( ALL - 35 ) ) WHEN + - 11 THEN NULL END ) + 9 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT MAX ( DISTINCT 21 ) / - + COALESCE ( - + COUNT ( * ), - CASE + + 90 WHEN 42 THEN + + 81 * - 43 WHEN 19 * 65 THEN - 14 + + - NULLIF ( + - 37, + - SUM ( ALL - 35 ) ) WHEN + - 11 THEN NULL END ) + 9 AS col2
----
30

query I rowsort
SELECT DISTINCT + + 3 * + 27 AS col1
----
81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-766
SELECT DISTINCT - 55 DIV + - 83 + CASE COUNT( * ) WHEN + 66 THEN - + 66 ELSE 90 END + - 35
----
55

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT - 55 / + - 83 + CASE COUNT ( * ) WHEN + 66 THEN - + 66 ELSE 90 END + - 35
----
55

query I rowsort
SELECT DISTINCT + 94 col1
----
94

query I rowsort
SELECT DISTINCT + + 34
----
34

query II rowsort
SELECT - + 70 * + 20 AS col2, + 56 AS col0
----
-1400
56

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT + 13 + - - 57 + + 46 DIV + 90 + - 20 + + 4 * 48 AS col0
----
242

skipif mysql # not compatible
query I rowsort label-770
SELECT + 13 + - - 57 + + 46 / + 90 + - 20 + + 4 * 48 AS col0
----
242

onlyif mysql # DIV for integer division: 
query I rowsort label-771
SELECT - 18 DIV 6
----
-3

skipif mysql # not compatible
query I rowsort label-771
SELECT - 18 / 6
----
-3

query I rowsort
SELECT - 30 * + 66
----
-1980

query I rowsort
SELECT ( - 63 )
----
-63

query I rowsort
SELECT DISTINCT + ( - 47 ) col1
----
-47

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-777
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 75
----
NULL
75

skipif mysql # not compatible
query II rowsort label-777
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 75
----
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-778
SELECT - 35 * CAST( 35 AS SIGNED ), - 36 AS col0
----
-1225
-36

skipif mysql # not compatible
query II rowsort label-778
SELECT - 35 * CAST ( 35 AS INTEGER ), - 36 AS col0
----
-1225
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-779
SELECT ALL 47 * + 74 * + - AVG ( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL 47 * + 74 * + - AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT - 52 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-780
SELECT - 52 / + 83 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT - 44 * - 34 * - 65 + + NULLIF ( - COUNT( DISTINCT 12 ), - COUNT( DISTINCT 50 ) + - 1 + - - 15 / - - 98 * - 76 )
----
-97241

skipif mysql # not compatible
query I rowsort label-782
SELECT - 44 * - 34 * - 65 + + NULLIF ( - COUNT ( DISTINCT 12 ), - COUNT ( DISTINCT 50 ) + - 1 + - - 15 / - - 98 * - 76 )
----
-97241

query I rowsort
SELECT - ( - - 38 ) - + 10
----
-48

query I rowsort
SELECT DISTINCT + 91 * 57 AS col1
----
5187

onlyif mysql # DIV for integer division: 
query I rowsort label-785
SELECT - 16 DIV ( + 26 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-785
SELECT - 16 / ( + 26 ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-786
SELECT + COALESCE ( - + CAST ( NULL AS INTEGER ), + COUNT ( * ) ) / COUNT ( * )
----
1

query I rowsort
SELECT + 81 - - 78 + + 41 AS col2
----
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT DISTINCT + ( + 19 ) + + - 31 + + ( + 23 ) * + 73 + + COALESCE ( + 79, - CAST( NULL AS SIGNED ) )
----
1746

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT + ( + 19 ) + + - 31 + + ( + 23 ) * + 73 + + COALESCE ( + 79, - CAST ( NULL AS INTEGER ) )
----
1746

query I rowsort
SELECT 24 + + 9 AS col0
----
33

query I rowsort
SELECT ALL - 3 * - 56 * - 23 AS col2
----
-3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-791
SELECT DISTINCT 33 AS col0, + 87 - - 86 * - + 66 / + + CAST( NULL AS SIGNED ) * + CASE + COUNT( * ) WHEN 89 + + - COUNT( 46 ) * + + 88 * + 44 + - CAST( NULL AS SIGNED ) + - 89 * - ( + - ( - ( - 79 ) ) ) THEN 93 END * 46 + + 68 + - 46 * - 89
----
33
NULL

skipif mysql # not compatible
query II rowsort label-791
SELECT DISTINCT 33 AS col0, + 87 - - 86 * - + 66 / + + CAST ( NULL AS INTEGER ) * + CASE + COUNT ( * ) WHEN 89 + + - COUNT ( 46 ) * + + 88 * + 44 + - CAST ( NULL AS INTEGER ) + - 89 * - ( + - ( - ( - 79 ) ) ) THEN 93 END * 46 + + 68 + - 46 * - 89
----
33
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-792
SELECT 49 AS col0, SUM( CAST( NULL AS DECIMAL ) ) / 92 * + + COUNT( * ) * 54 + + AVG ( - 75 ) * - 51 AS col0
----
49
NULL

skipif mysql # not compatible
query II rowsort label-792
SELECT 49 AS col0, SUM ( CAST ( NULL AS REAL ) ) / 92 * + + COUNT ( * ) * 54 + + AVG ( - 75 ) * - 51 AS col0
----
49
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-793
SELECT + 7 + + CAST( + + ( - + 93 ) AS SIGNED ) - - COUNT( * ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-793
SELECT + 7 + + CAST ( + + ( - + 93 ) AS INTEGER ) - - COUNT ( * ) col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-794
SELECT 4 * + NULLIF ( CAST( NULL AS SIGNED ), - COUNT( * ) + - 12 * - 50 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-794
SELECT 4 * + NULLIF ( CAST ( NULL AS INTEGER ), - COUNT ( * ) + - 12 * - 50 ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL 60 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-796
SELECT - COUNT( * ) AS col2, - 42 * + 13 + + - CAST( NULL AS DECIMAL ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-796
SELECT - COUNT ( * ) AS col2, - 42 * + 13 + + - CAST ( NULL AS REAL ) AS col2
----
-1
NULL

query I rowsort
SELECT 11 - + + 53 + - - 56 AS col2
----
14

query I rowsort
SELECT ( - 76 )
----
-76

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

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

query I rowsort
SELECT ALL - 60 + + 93 + - + ( + + 13 ) AS col0
----
20

query I rowsort
SELECT ALL + 79 + - 48 * + 41 col1
----
-1889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-802
SELECT DISTINCT + CAST( - - 32 AS SIGNED ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT + CAST ( - - 32 AS INTEGER ) AS col1
----
32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-804
SELECT 48, - 99 + + CASE + - 69 WHEN 5 / + COALESCE ( - 35, COUNT( * ) * - - COUNT( * ) + + 23 * - 52 ) + - 17 THEN NULL WHEN 41 THEN - - 90 + + MIN( - 46 ) WHEN - 93 - - 16 + - ( - 20 ) + NULLIF ( - 60, + COUNT( * ) + - CAST( - - 26 AS SIGNED ) - - + 72 ) * 14 * + 78 * + 34 + - 24 + - COUNT( * ) THEN 21 END AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-804
SELECT 48, - 99 + + CASE + - 69 WHEN 5 / + COALESCE ( - 35, COUNT ( * ) * - - COUNT ( * ) + + 23 * - 52 ) + - 17 THEN NULL WHEN 41 THEN - - 90 + + MIN ( - 46 ) WHEN - 93 - - 16 + - ( - 20 ) + NULLIF ( - 60, + COUNT ( * ) + - CAST ( - - 26 AS INTEGER ) - - + 72 ) * 14 * + 78 * + 34 + - 24 + - COUNT ( * ) THEN 21 END AS col1
----
48
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-805
SELECT + 0 * - COUNT( * ) + - + 66 AS col2, 78 * - CASE 55 WHEN - + NULLIF ( - - 8, - 70 ) THEN NULL WHEN - 68 THEN - + 97 + + 94 ELSE NULL END
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-805
SELECT + 0 * - COUNT ( * ) + - + 66 AS col2, 78 * - CASE 55 WHEN - + NULLIF ( - - 8, - 70 ) THEN NULL WHEN - 68 THEN - + 97 + + 94 ELSE NULL END
----
-66
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-806
SELECT + 6 - - CAST( + CASE + 51 WHEN - + 88 + COUNT( * ) + + 20 - - + 88 + ( - 38 ) THEN 0 / 79 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-806
SELECT + 6 - - CAST ( + CASE + 51 WHEN - + 88 + COUNT ( * ) + + 20 - - + 88 + ( - 38 ) THEN 0 / 79 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( + 56, 26 ) * - - 72 col1
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT - 12 * COUNT( * ) + - 41
----
-53

skipif mysql # not compatible
query I rowsort label-808
SELECT - 12 * COUNT ( * ) + - 41
----
-53

query I rowsort
SELECT 73 + + ( - - 54 )
----
127

query I rowsort
SELECT ALL - 77 * 88 AS col2
----
-6776

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT COUNT( * ) * 55 + 64 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-811
SELECT COUNT ( * ) * 55 + 64 AS col0
----
119

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

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

query I rowsort
SELECT 57 * - + ( - 31 )
----
1767

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-816
SELECT + 82 AS col2, + COUNT( * ) * - + 65
----
82
-65

skipif mysql # not compatible
query II rowsort label-816
SELECT + 82 AS col2, + COUNT ( * ) * - + 65
----
82
-65

query I rowsort
SELECT ALL 17 * + 29 * + 32
----
15776

query II rowsort
SELECT DISTINCT - COALESCE ( + 60, + - 23, 43 ) AS col2, 48 * 60 AS col2
----
-60
2880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT 85 + + - MIN( - 26 ) + 79 AS col2
----
190

skipif mysql # not compatible
query I rowsort label-820
SELECT 85 + + - MIN ( - 26 ) + 79 AS col2
----
190

query I rowsort
SELECT ALL - NULLIF ( - - 30, - 80 + - + 11 )
----
-30

query I rowsort
SELECT ALL + 33 + - 7 * - - 21
----
-114

query I rowsort
SELECT ALL - 78 + - 54
----
-132

query II rowsort
SELECT 11, 11 AS col1
----
11
11

query II rowsort
SELECT 81 + - - 90 AS col0, + 48 AS col0
----
171
48

query I rowsort
SELECT 85 * - 45 * 47 AS col0
----
-179775

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

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

query II rowsort
SELECT 24 col2, 72 col2
----
24
72

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL - 52 + + + NULLIF ( 28, 13 ) * + + 34 * - NULLIF ( + 29, - 0 * - COUNT( * ) ) + 4 col0
----
-27656

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL - 52 + + + NULLIF ( 28, 13 ) * + + 34 * - NULLIF ( + 29, - 0 * - COUNT ( * ) ) + 4 col0
----
-27656

query I rowsort
SELECT 57 * - + ( + 13 ) col0
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT + ( + COUNT( * ) ) - + + 58 col2
----
-57

skipif mysql # not compatible
query I rowsort label-831
SELECT + ( + COUNT ( * ) ) - + + 58 col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-832
SELECT CAST( NULL AS SIGNED ) * - NULLIF ( + 16, 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-832
SELECT CAST ( NULL AS INTEGER ) * - NULLIF ( + 16, 16 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-833
SELECT 47 + - + 53 + + - 37 + - 1 + - 52 * + 51 * + 24 + - + 41 DIV + 44 * 28 * + 72 * + - 47 AS col2, + COUNT( * )
----
-63692
1

skipif mysql # not compatible
query II rowsort label-833
SELECT 47 + - + 53 + + - 37 + - 1 + - 52 * + 51 * + 24 + - + 41 / + 44 * 28 * + 72 * + - 47 AS col2, + COUNT ( * )
----
-63692
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-835
SELECT DISTINCT + - 98 * 94 * - COUNT( * ) * 5 DIV + COUNT( * ) + - ( + + 36 ) AS col0
----
46024

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT + - 98 * 94 * - COUNT ( * ) * 5 / + COUNT ( * ) + - ( + + 36 ) AS col0
----
46024

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT 95 * - CASE + + 45 WHEN + - MIN( DISTINCT - + 77 ) * + + 13 * COALESCE ( + MIN( DISTINCT + 17 ), - - 73 + - 20, NULLIF ( + 45, + + ( 94 ) ) ) + - COALESCE ( ( 25 ), SUM( + 18 ) + - 58 + - 1 ) THEN NULL ELSE - 47 * 79 END
----
352735

skipif mysql # not compatible
query I rowsort label-836
SELECT 95 * - CASE + + 45 WHEN + - MIN ( DISTINCT - + 77 ) * + + 13 * COALESCE ( + MIN ( DISTINCT + 17 ), - - 73 + - 20, NULLIF ( + 45, + + ( 94 ) ) ) + - COALESCE ( ( 25 ), SUM ( + 18 ) + - 58 + - 1 ) THEN NULL ELSE - 47 * 79 END
----
352735

onlyif mysql # DIV for integer division: 
query I rowsort label-837
SELECT DISTINCT + + 31 + - + 23 * - + 48 DIV 99 DIV 67
----
31

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT + + 31 + - + 23 * - + 48 / 99 / 67
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL - + 69 * MIN( - 6 )
----
414

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - + 69 * MIN ( - 6 )
----
414

query I rowsort
SELECT DISTINCT - NULLIF ( - + ( + + 32 ), 81 ) - 25 AS col2
----
7

query III rowsort
SELECT ALL 41 col2, - ( - 33 ) + - 71, - 80 AS col2
----
41
-38
-80

query I rowsort
SELECT ALL CASE - + 48 WHEN - 37 THEN + AVG ( ALL - 96 ) END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-842
SELECT - 24 AS col1, 86 * + CAST( NULL AS SIGNED ) AS col2
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-842
SELECT - 24 AS col1, 86 * + CAST ( NULL AS INTEGER ) AS col2
----
-24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT 95 + + 5 * - - COALESCE ( 76, MIN( DISTINCT + + ( 83 ) ) ) AS col2
----
475

skipif mysql # not compatible
query I rowsort label-843
SELECT 95 + + 5 * - - COALESCE ( 76, MIN ( DISTINCT + + ( 83 ) ) ) AS col2
----
475

query II rowsort
SELECT 6 AS col2, - 30 AS col0
----
6
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-845
SELECT ALL 78 DIV 86 + - 6 + + CAST( + 81 AS SIGNED ) + - 97 * + 82 AS col0, 46
----
-7879
46

skipif mysql # not compatible
query II rowsort label-845
SELECT ALL 78 / 86 + - 6 + + CAST ( + 81 AS INTEGER ) + - 97 * + 82 AS col0, 46
----
-7879
46

query I rowsort
SELECT 44 * ( 62 ) * 95
----
259160

query I rowsort
SELECT DISTINCT 36 * - 64 AS col2
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT ALL + MAX( + 30 ) * + 22 AS col2
----
660

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL + MAX ( + 30 ) * + 22 AS col2
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT DISTINCT ( - - SUM( DISTINCT - + 43 ) ) * + 68 AS col0
----
-2924

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT ( - - SUM ( DISTINCT - + 43 ) ) * + 68 AS col0
----
-2924

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-851
SELECT - 99 DIV - 49 * + - CAST( COUNT( * ) AS SIGNED ) + - 29 + - 90 DIV - - 45 + - NULLIF ( + 31, - 98 * - 28 ) + - + 13 * - 41 * - 2 * + + COUNT( * ) AS col2, - 8 * - 44 * - + CAST( - + 17 AS SIGNED ) * + - COALESCE ( + 0, + 81 )
----
-1130
0

skipif mysql # not compatible
query II rowsort label-851
SELECT - 99 / - 49 * + - CAST ( COUNT ( * ) AS INTEGER ) + - 29 + - 90 / - - 45 + - NULLIF ( + 31, - 98 * - 28 ) + - + 13 * - 41 * - 2 * + + COUNT ( * ) AS col2, - 8 * - 44 * - + CAST ( - + 17 AS INTEGER ) * + - COALESCE ( + 0, + 81 )
----
-1130
0

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

skipif mysql # not compatible
query I rowsort label-852
SELECT + SUM ( + 0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-853
SELECT NULLIF ( + 37, - 83 ) DIV - - 48 * + 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-853
SELECT NULLIF ( + 37, - 83 ) / - - 48 * + 5 AS col1
----
0

query II rowsort
SELECT 50 + 80 AS col0, - 92 * 79
----
130
-7268

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT DISTINCT 67 * - COALESCE ( 67, 87 ) * - - COALESCE ( - COUNT( * ), - - 8 * 23 * - - 80 ) + + 92 AS col2
----
4581

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT 67 * - COALESCE ( 67, 87 ) * - - COALESCE ( - COUNT ( * ), - - 8 * 23 * - - 80 ) + + 92 AS col2
----
4581

query I rowsort
SELECT ( + + 42 ) - + 81 AS col0
----
-39

query I rowsort
SELECT ALL 64 + + - 17 col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-859
SELECT COALESCE ( + 69, + + 9 - - 34, + - MIN( 92 ) ) * ( + 7 ) * + ( - + 65 ) - - 50 * + ( + 96 ) / - CASE - 9 WHEN + 93 - - CASE 96 WHEN + - 99 * - CAST( NULL AS DECIMAL ) + - + 0 + - 59 THEN AVG ( + 13 ) * + - COUNT( * ) / - COALESCE ( - 20, 40 ) + - - 58 WHEN - ( + - 9 ) + - 7 * + 78 THEN - + COUNT( * ) ELSE NULL END THEN 97 WHEN + 26 * 52 THEN NULL ELSE NULL END - + + 46 + + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-859
SELECT COALESCE ( + 69, + + 9 - - 34, + - MIN ( 92 ) ) * ( + 7 ) * + ( - + 65 ) - - 50 * + ( + 96 ) / - CASE - 9 WHEN + 93 - - CASE 96 WHEN + - 99 * - CAST ( NULL AS REAL ) + - + 0 + - 59 THEN AVG ( + 13 ) * + - COUNT ( * ) / - COALESCE ( - 20, 40 ) + - - 58 WHEN - ( + - 9 ) + - 7 * + 78 THEN - + COUNT ( * ) ELSE NULL END THEN 97 WHEN + 26 * 52 THEN NULL ELSE NULL END - + + 46 + + 2 AS col0
----
NULL

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

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

query I rowsort
SELECT + COALESCE ( - 35, 4 * - 48, + 5 )
----
-35

query I rowsort
SELECT - 73 col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-863
SELECT + CAST( - - COUNT( * ) AS SIGNED ) + - 97 + + - 22
----
-118

skipif mysql # not compatible
query I rowsort label-863
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) + - 97 + + - 22
----
-118

query I rowsort
SELECT - 30 * + 54 - + 88 * - - 60 AS col0
----
-6900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-865
SELECT - MIN( + 14 ) + - + 82 DIV - 78
----
-13

skipif mysql # not compatible
query I rowsort label-865
SELECT - MIN ( + 14 ) + - + 82 / - 78
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-866
SELECT DISTINCT + CAST( + 33 AS SIGNED ) + - MIN( DISTINCT + 4 ) + - + MAX( + 35 ) * + NULLIF ( + 14, CASE + 21 WHEN - - 18 THEN + 47 / + + COUNT( * ) + 13 + - 62 WHEN + 90 THEN NULL WHEN 16 * - 63 / - - 33 - COUNT( * ) THEN NULL ELSE NULL END + + COUNT( * ) ) * + 17
----
-8301

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT + CAST ( + 33 AS INTEGER ) + - MIN ( DISTINCT + 4 ) + - + MAX ( + 35 ) * + NULLIF ( + 14, CASE + 21 WHEN - - 18 THEN + 47 / + + COUNT ( * ) + 13 + - 62 WHEN + 90 THEN NULL WHEN 16 * - 63 / - - 33 - COUNT ( * ) THEN NULL ELSE NULL END + + COUNT ( * ) ) * + 17
----
-8301

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL + MIN( + + 96 ) - - + MAX( DISTINCT + 26 )
----
122

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL + MIN ( + + 96 ) - - + MAX ( DISTINCT + 26 )
----
122

query I rowsort
SELECT - - NULLIF ( 79, - ( - + 71 ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT DISTINCT + COALESCE ( 96, + 89 ) * 32 + + - SUM( - 85 )
----
3157

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT + COALESCE ( 96, + 89 ) * 32 + + - SUM ( - 85 )
----
3157

onlyif mysql # DIV for integer division: 
query I rowsort label-870
SELECT DISTINCT + 10 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT + 10 / + 30
----
0

query I rowsort
SELECT - 66 * - + 68 * + + 33 col0
----
148104

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT + 5 + SUM( 17 ) - 85 - + - MIN( - - 20 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-872
SELECT + 5 + SUM ( 17 ) - 85 - + - MIN ( - - 20 ) AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-873
SELECT DISTINCT + 77 - - - CASE - CAST( NULL AS SIGNED ) WHEN - 11 THEN NULL WHEN - 34 THEN 81 ELSE - 15 + 20 * - ( + CAST( + ( 96 ) AS SIGNED ) ) END AS col0, 35 AS col0
----
2012
35

skipif mysql # not compatible
query II rowsort label-873
SELECT DISTINCT + 77 - - - CASE - CAST ( NULL AS INTEGER ) WHEN - 11 THEN NULL WHEN - 34 THEN 81 ELSE - 15 + 20 * - ( + CAST ( + ( 96 ) AS INTEGER ) ) END AS col0, 35 AS col0
----
2012
35

query I rowsort
SELECT - 19 + 88 - - 64
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-875
SELECT - 32 * 45 AS col2, COUNT( * ) AS col1
----
-1440
1

skipif mysql # not compatible
query II rowsort label-875
SELECT - 32 * 45 AS col2, COUNT ( * ) AS col1
----
-1440
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-876
SELECT - + 33 * - 52 + 14 * - + 98 + + COALESCE ( 47, + 75, COUNT( * ) DIV + 95 + 73 ) AS col2, 83 + - 17 DIV + 85 * + 87
----
391
83

skipif mysql # not compatible
query II rowsort label-876
SELECT - + 33 * - 52 + 14 * - + 98 + + COALESCE ( 47, + 75, COUNT ( * ) / + 95 + 73 ) AS col2, 83 + - 17 / + 85 * + 87
----
391
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-877
SELECT ALL - CAST( NULL AS SIGNED ) * - 59 * NULLIF ( 85, + 76 + - 60 * + 60 * + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL - CAST ( NULL AS INTEGER ) * - 59 * NULLIF ( 85, + 76 + - 60 * + 60 * + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT DISTINCT - 16 * 85 + COUNT( * ) AS col1
----
-1359

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT - 16 * 85 + COUNT ( * ) AS col1
----
-1359

query I rowsort
SELECT - + NULLIF ( + - 7, + + 47 ) + 52
----
59

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

query I rowsort
SELECT DISTINCT + 95 * - 99 AS col0
----
-9405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-882
SELECT - COUNT( * ) + + + MAX( - - ( - CAST( NULL AS SIGNED ) ) ) - - + 97 * 98 AS col1, ( + + 16 ) + - 77 * + COUNT( * )
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-882
SELECT - COUNT ( * ) + + + MAX ( - - ( - CAST ( NULL AS INTEGER ) ) ) - - + 97 * 98 AS col1, ( + + 16 ) + - 77 * + COUNT ( * )
----
NULL
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-883
SELECT ALL - 76 / + 12 * - CAST( NULL AS SIGNED ) + + 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL - 76 / + 12 * - CAST ( NULL AS INTEGER ) + + 81 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT + 33 DIV - 83 - 42 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-884
SELECT + 33 / - 83 - 42 AS col2
----
-42

query I rowsort
SELECT ( - 35 )
----
-35

query I rowsort
SELECT 77 * - 95 + ( + 93 )
----
-7222

query I rowsort
SELECT + 29 + - 36 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT - COUNT( * ) * 37 col0
----
-37

skipif mysql # not compatible
query I rowsort label-888
SELECT - COUNT ( * ) * 37 col0
----
-37

query I rowsort
SELECT + 45 * - 88 + + + ( - ( - 3 ) ) * + 47
----
-3819

onlyif mysql # DIV for integer division: 
query I rowsort label-890
SELECT ( - 32 ) DIV 46 + - ( 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-890
SELECT ( - 32 ) / 46 + - ( 99 ) AS col1
----
-99

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

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

query I rowsort
SELECT - 34 * - + 72
----
2448

query I rowsort
SELECT + 40 * 76 AS col2
----
3040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-894
SELECT COALESCE ( - COUNT( ALL - 79 ), MIN( 7 ) * + ( + - COUNT( * ) ) + + 99 - + 39 + - 72 + - 2 + - ( + COALESCE ( + 94, - 22, - CASE + - 92 WHEN - COUNT( * ) THEN - - CASE - - 57 WHEN + - 50 THEN NULL ELSE - CAST( - 63 AS SIGNED ) END * - 23 * COUNT( * ) DIV - 76 * + + 31 * - + CASE - + MIN( + - 14 ) WHEN 30 THEN + 60 * - 87 END + - 28 END * - 4 - + COUNT( * ) + - COUNT( * ) ) ), + 30, COUNT( * ) * - - 41 - - MAX( ALL - 40 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-894
SELECT COALESCE ( - COUNT ( ALL - 79 ), MIN ( 7 ) * + ( + - COUNT ( * ) ) + + 99 - + 39 + - 72 + - 2 + - ( + COALESCE ( + 94, - 22, - CASE + - 92 WHEN - COUNT ( * ) THEN - - CASE - - 57 WHEN + - 50 THEN NULL ELSE - CAST ( - 63 AS INTEGER ) END * - 23 * COUNT ( * ) / - 76 * + + 31 * - + CASE - + MIN ( + - 14 ) WHEN 30 THEN + 60 * - 87 END + - 28 END * - 4 - + COUNT ( * ) + - COUNT ( * ) ) ), + 30, COUNT ( * ) * - - 41 - - MAX ( ALL - 40 ) )
----
-1

query II rowsort
SELECT + 16 + ( + 51 ), 68 * 61 AS col2
----
67
4148

query I rowsort
SELECT COALESCE ( - 71, ( 67 ) - + 21 ) AS col0
----
-71

query I rowsort
SELECT + + 56 col2
----
56

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-899
SELECT ALL - 33 DIV + + 30
----
-1

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL - 33 / + + 30
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL + ( + - 42 ) * - - COUNT( * ) + - 70 - + 90 AS col0
----
-202

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL + ( + - 42 ) * - - COUNT ( * ) + - 70 - + 90 AS col0
----
-202

query I rowsort
SELECT + - 69 * + 50
----
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT ALL + SUM( DISTINCT - 55 ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL + SUM ( DISTINCT - 55 ) col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-903
SELECT - - COUNT( * ) * + AVG ( - 9 ) + - - COUNT( * ) + AVG ( + 22 ) * + - 25 * - + NULLIF ( CAST( NULL AS SIGNED ), - 86 * ( - COUNT( * ) ) + + + 62 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT - - COUNT ( * ) * + AVG ( - 9 ) + - - COUNT ( * ) + AVG ( + 22 ) * + - 25 * - + NULLIF ( CAST ( NULL AS INTEGER ), - 86 * ( - COUNT ( * ) ) + + + 62 ) col2
----
NULL

query II rowsort
SELECT 80 AS col2, 97 * - + 74
----
80
-7178

query I rowsort
SELECT ALL - 66 col2
----
-66

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

skipif mysql # not compatible
query I rowsort label-906
SELECT + 23 + - CAST ( NULL AS INTEGER ) * + ( 5 )
----
NULL

query I rowsort
SELECT - NULLIF ( - 68, + + 65 )
----
68

query I rowsort
SELECT ALL + - ( + 1 ) * 15 * - 16 * - - 60 + - 3 + - COALESCE ( - 29, + - 29, 57 ) AS col0
----
14426

query I rowsort
SELECT + 81 - - 60
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-910
SELECT 55, MAX( - 9 ) AS col0
----
55
-9

skipif mysql # not compatible
query II rowsort label-910
SELECT 55, MAX ( - 9 ) AS col0
----
55
-9

query I rowsort
SELECT - - 12 + - + 4 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT - MIN( CASE + 91 WHEN 46 THEN + ( + 10 ) + + + 49 + - 7 + - 17 / - 60 / + 60 ELSE NULL END ) * + COUNT( * ) * 1 - - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT - MIN ( CASE + 91 WHEN 46 THEN + ( + 10 ) + + + 49 + - 7 + - 17 / - 60 / + 60 ELSE NULL END ) * + COUNT ( * ) * 1 - - 73
----
NULL

query I rowsort
SELECT ALL ( 66 ) * + - 34 AS col1
----
-2244

query I rowsort
SELECT + + 42 * + 17 AS col1
----
714

onlyif mysql # aggregate syntax: 
query II rowsort label-915
SELECT - + ( ( + 90 ) ) + + COUNT( * ), + 6 AS col1
----
-89
6

skipif mysql # not compatible
query II rowsort label-915
SELECT - + ( ( + 90 ) ) + + COUNT ( * ), + 6 AS col1
----
-89
6

query I rowsort
SELECT - - 62 + - 86 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-917
SELECT ALL 59 AS col2, + COUNT( + - 90 ) AS col0
----
59
1

skipif mysql # not compatible
query II rowsort label-917
SELECT ALL 59 AS col2, + COUNT ( + - 90 ) AS col0
----
59
1

query I rowsort
SELECT ALL + 87 * - 7
----
-609

query I rowsort
SELECT + 39 * + - 51 * + 16 - - 89 AS col2
----
-31735

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT + - COUNT( * ) - - 39 + - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-920
SELECT + - COUNT ( * ) - - 39 + - COUNT ( * ) AS col0
----
37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-922
SELECT - 36 DIV - ( + 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-922
SELECT - 36 / - ( + 34 ) AS col2
----
1

query I rowsort
SELECT + 48 * 58
----
2784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-924
SELECT DISTINCT - 36 / + - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT ALL - 18 * + COUNT( * ) * 81 AS col1
----
-1458

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL - 18 * + COUNT ( * ) * 81 AS col1
----
-1458

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-927
SELECT - CAST( - 27 AS SIGNED ) * - 32
----
-864

skipif mysql # not compatible
query I rowsort label-927
SELECT - CAST ( - 27 AS INTEGER ) * - 32
----
-864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-928
SELECT 75 DIV - - 97 * + COUNT( * ) * + + 8
----
0

skipif mysql # not compatible
query I rowsort label-928
SELECT 75 / - - 97 * + COUNT ( * ) * + + 8
----
0

query I rowsort
SELECT 85 * - 31 AS col2
----
-2635

query I rowsort
SELECT ALL + 46 + 50
----
96

query I rowsort
SELECT 47 * 89 + + 85 AS col0
----
4268

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT 75 + + - COUNT( * ) + + + ( + CASE + - 59 WHEN 30 + 75 * - + 32 THEN + 1 ELSE + + CASE - - 31 WHEN + + 64 * - 22 * + COUNT( * ) + 62 THEN - - COUNT( * ) WHEN - + 29 THEN NULL WHEN 26 * NULLIF ( - - 1, + - 91 / 54 - NULLIF ( + 58, AVG ( + - 16 ) ) / 79 ) + AVG ( DISTINCT + 92 ) + - 96 + - 59 * - 56 * + - ( - 69 ) THEN - - ( - ( - 16 ) ) - 28 * COUNT( * ) / - ( + + ( ( 27 ) ) ) + + - 15 END / 4 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT 75 + + - COUNT ( * ) + + + ( + CASE + - 59 WHEN 30 + 75 * - + 32 THEN + 1 ELSE + + CASE - - 31 WHEN + + 64 * - 22 * + COUNT ( * ) + 62 THEN - - COUNT ( * ) WHEN - + 29 THEN NULL WHEN 26 * NULLIF ( - - 1, + - 91 / 54 - NULLIF ( + 58, AVG ( + - 16 ) ) / 79 ) + AVG ( DISTINCT + 92 ) + - 96 + - 59 * - 56 * + - ( - 69 ) THEN - - ( - ( - 16 ) ) - 28 * COUNT ( * ) / - ( + + ( ( 27 ) ) ) + + - 15 END / 4 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT NULLIF ( - - COUNT( * ), 25 * + NULLIF ( 14, + 76 ) ) * + 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-933
SELECT NULLIF ( - - COUNT ( * ), 25 * + NULLIF ( 14, + 76 ) ) * + 74 AS col0
----
74

query I rowsort
SELECT 84 + - 32
----
52

query I rowsort
SELECT ALL + 4 * + 89 * 58 * 40 * - + 47 AS col1
----
-38818240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-936
SELECT - CAST( NULL AS SIGNED ) * - 11 * - 83 - 89 * + COUNT( * ) + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT - CAST ( NULL AS INTEGER ) * - 11 * - 83 - 89 * + COUNT ( * ) + 79 AS col1
----
NULL

query I rowsort
SELECT ALL - 45 AS col2
----
-45

query I rowsort
SELECT DISTINCT - + 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT - 58 * + 60 + + COUNT( ALL - + 22 )
----
-3479

skipif mysql # not compatible
query I rowsort label-939
SELECT - 58 * + 60 + + COUNT ( ALL - + 22 )
----
-3479

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT DISTINCT - COALESCE ( 40, - 27 + - SUM( DISTINCT - 76 ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT - COALESCE ( 40, - 27 + - SUM ( DISTINCT - 76 ) ) AS col0
----
-40

query I rowsort
SELECT 24 * NULLIF ( + - 68, - 3 )
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT ALL - ( ( COUNT( * ) ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL - ( ( COUNT ( * ) ) ) col0
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-944
SELECT 73 + + 86 DIV - COALESCE ( + COUNT( * ), 36 - - + 11 * 90 DIV - 88 + 47, - - 65 * - - 84 + + 76, + + 90 + - 72 )
----
-13

skipif mysql # not compatible
query I rowsort label-944
SELECT 73 + + 86 / - COALESCE ( + COUNT ( * ), 36 - - + 11 * 90 / - 88 + 47, - - 65 * - - 84 + + 76, + + 90 + - 72 )
----
-13

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

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

query I rowsort
SELECT - 57 * - - 38
----
-2166

query II rowsort
SELECT + + 34 * - 49 - 39 * 36 AS col0, 60
----
-3070
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-948
SELECT ALL - 27 / + 19 / COUNT( * ) + COUNT( * ) - - - 51 + + - COUNT( * ) / - CAST( NULL AS DECIMAL ) * 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL - 27 / + 19 / COUNT ( * ) + COUNT ( * ) - - - 51 + + - COUNT ( * ) / - CAST ( NULL AS REAL ) * 64 AS col0
----
NULL

query I rowsort
SELECT 42 + - 50 col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT 73 * - SUM( - 90 )
----
6570

skipif mysql # not compatible
query I rowsort label-950
SELECT 73 * - SUM ( - 90 )
----
6570

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

query I rowsort
SELECT ALL 18 + 56 + - 66 + - 39 * - 32
----
1256

query I rowsort
SELECT 40 + + 76
----
116

query I rowsort
SELECT 76 * - NULLIF ( + 49, + - 41 ) * - 36 + + - 13 * + 73 + - 67 + - + 19
----
133029

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

query II rowsort
SELECT - 20 AS col0, + 22 * 73
----
-20
1606

query II rowsort
SELECT ALL 75, ( 97 ) AS col1
----
75
97

query I rowsort
SELECT DISTINCT 17 + - CASE + 22 WHEN - 2 + 25 THEN NULL WHEN + 53 THEN 71 ELSE - - 67 END AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT MIN( ALL 66 ) + 97 * + 58 AS col0
----
5692

skipif mysql # not compatible
query I rowsort label-959
SELECT MIN ( ALL 66 ) + 97 * + 58 AS col0
----
5692

query I rowsort
SELECT 94 + COALESCE ( 32, + 11 ) AS col1
----
126

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-962
SELECT 4 * - + COUNT( ALL 32 ) * + 56 * - - 57, 99 AS col0
----
-12768
99

skipif mysql # not compatible
query II rowsort label-962
SELECT 4 * - + COUNT ( ALL 32 ) * + 56 * - - 57, 99 AS col0
----
-12768
99

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT ALL 5 DIV + 58 * + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL 5 / + 58 * + 68 AS col1
----
0

query I rowsort
SELECT 10 + - 68 AS col2
----
-58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-966
SELECT ALL + NULLIF ( - 45, - ( 97 ) ) - + CASE ( - 78 ) WHEN + - 37 * - 37 + + 76 + - 80 * - + CAST( - 18 AS SIGNED ) + + 46 - + MIN( - 53 ) THEN 97 * - + 31 END + + 54 * - COUNT( * ) AS col2, - COUNT( * ) DIV + 68 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-966
SELECT ALL + NULLIF ( - 45, - ( 97 ) ) - + CASE ( - 78 ) WHEN + - 37 * - 37 + + 76 + - 80 * - + CAST ( - 18 AS INTEGER ) + + 46 - + MIN ( - 53 ) THEN 97 * - + 31 END + + 54 * - COUNT ( * ) AS col2, - COUNT ( * ) / + 68 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT + COUNT( 37 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-967
SELECT + COUNT ( 37 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-968
SELECT ALL 69 DIV - 47
----
-1

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL 69 / - 47
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT ALL - COUNT( + - 83 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL - COUNT ( + - 83 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT DISTINCT 4 * + + COUNT( * ) col1
----
4

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT 4 * + + COUNT ( * ) col1
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT + + COALESCE ( + 44, COUNT( ALL - - 68 ) )
----
44

skipif mysql # not compatible
query I rowsort label-973
SELECT + + COALESCE ( + 44, COUNT ( ALL - - 68 ) )
----
44

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

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

query I rowsort
SELECT 16 col0
----
16

query I rowsort
SELECT 87 * - - 29 AS col2
----
2523

query I rowsort
SELECT + 46 + + - 84
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT DISTINCT - 98 * + COUNT( * ) col1
----
-98

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT - 98 * + COUNT ( * ) col1
----
-98

query I rowsort
SELECT ALL - + 38
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-980
SELECT - - 86 * ( + + 44 ) DIV - - COUNT( - 26 ) + + - 63 DIV - + 35
----
3785

skipif mysql # not compatible
query I rowsort label-980
SELECT - - 86 * ( + + 44 ) / - - COUNT ( - 26 ) + + - 63 / - + 35
----
3785

onlyif mysql # aggregate syntax: 
query II rowsort label-981
SELECT DISTINCT + COUNT( * ) + - ( - + 53 ) AS col2, + 85 + - + 48 + 67 + + - ( + COUNT( - 29 ) )
----
54
103

skipif mysql # not compatible
query II rowsort label-981
SELECT DISTINCT + COUNT ( * ) + - ( - + 53 ) AS col2, + 85 + - + 48 + 67 + + - ( + COUNT ( - 29 ) )
----
54
103

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT + COUNT( * ) + - 71 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-982
SELECT + COUNT ( * ) + - 71 AS col2
----
-70

query I rowsort
SELECT DISTINCT - 38 * + 45
----
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT + ( + + COUNT( * ) ) - - 66 - + 42 * + + 35 + - 5
----
-1408

skipif mysql # not compatible
query I rowsort label-984
SELECT + ( + + COUNT ( * ) ) - - 66 - + 42 * + + 35 + - 5
----
-1408

query I rowsort
SELECT ALL + + 42 * + 21 AS col0
----
882

query I rowsort
SELECT 64 + + + 43 + - 83 * 15 * + - 53 * 42
----
2771477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-987
SELECT 85 + CAST( + 55 AS SIGNED )
----
140

skipif mysql # not compatible
query I rowsort label-987
SELECT 85 + CAST ( + 55 AS INTEGER )
----
140

query I rowsort
SELECT ALL 12 + + - 24 AS col1
----
-12

query I rowsort
SELECT + ( - + 88 ) + + - 86
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT DISTINCT CASE 71 WHEN SUM( ALL - + 10 ) THEN - AVG ( + + 0 ) WHEN + ( + COALESCE ( - - 24, + 58 ) ) / - - COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT CASE 71 WHEN SUM ( ALL - + 10 ) THEN - AVG ( + + 0 ) WHEN + ( + COALESCE ( - - 24, + 58 ) ) / - - COUNT ( * ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 46 + + 95 AS col2
----
49

query I rowsort
SELECT ALL CASE 15 WHEN + CASE + ( 45 ) WHEN 64 * + 76 THEN NULL WHEN + 34 THEN NULL ELSE - - 99 END THEN - 11 + + 26 + 25 WHEN + 87 THEN NULL WHEN - 32 THEN 49 WHEN - 92 THEN NULL END - - + 94 * - ( + - 44 ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT 79, 18 AS col1
----
79
18

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

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

query I rowsort
SELECT - CASE + 55 WHEN 12 THEN - 94 WHEN - AVG ( + 26 ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 64 * 93 * - 38 col0
----
-226176

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT + COUNT( * ) * 3 * - ( + 93 )
----
-279

skipif mysql # not compatible
query I rowsort label-997
SELECT + COUNT ( * ) * 3 * - ( + 93 )
----
-279

query I rowsort
SELECT DISTINCT 28 * 82
----
2296

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-999
SELECT DISTINCT + CASE - 82 WHEN CAST( + 31 AS DECIMAL ) THEN - 93 WHEN - 48 / 16 / + - ( 3 ) THEN NULL WHEN + 4 THEN + ( 56 ) * + - 81 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT + CASE - 82 WHEN CAST ( + 31 AS REAL ) THEN - 93 WHEN - 48 / 16 / + - ( 3 ) THEN NULL WHEN + 4 THEN + ( 56 ) * + - 81 END AS col1
----
NULL

query I rowsort
SELECT ALL 63 * + + 4
----
252

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1002
SELECT 6, 68 + + 77 DIV 69 + - - NULLIF ( - 18, NULLIF ( - 77, - 8 ) ) col0
----
6
51

skipif mysql # not compatible
query II rowsort label-1002
SELECT 6, 68 + + 77 / 69 + - - NULLIF ( - 18, NULLIF ( - 77, - 8 ) ) col0
----
6
51

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1004
SELECT - - 97 * + 48 + - CASE - 41 WHEN 48 THEN + 66 END AS col1, 41 DIV - ( 85 ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1004
SELECT - - 97 * + 48 + - CASE - 41 WHEN 48 THEN + 66 END AS col1, 41 / - ( 85 ) AS col1
----
NULL
0

query II rowsort
SELECT 12 AS col0, 5 AS col0
----
12
5

query II rowsort
SELECT ALL + + 77 AS col0, - 76 * - 58 AS col2
----
77
4408

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1007
SELECT + 32 AS col2, COUNT( * ) - COALESCE ( COUNT( * ), - 9 * + 36, - - 68 * 31 ) DIV - 39 + 34 AS col0
----
32
35

skipif mysql # not compatible
query II rowsort label-1007
SELECT + 32 AS col2, COUNT ( * ) - COALESCE ( COUNT ( * ), - 9 * + 36, - - 68 * 31 ) / - 39 + 34 AS col0
----
32
35

query I rowsort
SELECT + 56 * + 32 AS col1
----
1792

query I rowsort
SELECT - 30 * - 78
----
2340

query I rowsort
SELECT ALL + - 95 * + + 75
----
-7125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1011
SELECT - - 49 DIV + 89 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1011
SELECT - - 49 / + 89 + + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1012
SELECT ALL + 18 * 59 * - SUM( - 90 ) - - CASE - 56 WHEN - 31 + + + CAST( NULL AS SIGNED ) - - MAX( + 66 ) / - + 26 * - - 77 THEN + 38 ELSE NULL END + 37 + ( - COUNT( * ) ) * - 16 + + 16 * - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL + 18 * 59 * - SUM ( - 90 ) - - CASE - 56 WHEN - 31 + + + CAST ( NULL AS INTEGER ) - - MAX ( + 66 ) / - + 26 * - - 77 THEN + 38 ELSE NULL END + 37 + ( - COUNT ( * ) ) * - 16 + + 16 * - 64 AS col1
----
NULL

query I rowsort
SELECT ALL - - 68 * + 53 + + 67 + - + 14
----
3657

query I rowsort
SELECT DISTINCT 71 * + 26 AS col2
----
1846

query II rowsort
SELECT - + 31 + - - 10, - 69 + - NULLIF ( 11, - - 69 / - 42 ) AS col0
----
-21
-80

query I rowsort
SELECT + 58 * + 54 AS col1
----
3132

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1017
SELECT - + 67 * + + ( + 29 ) + - 65 - + 73 * COALESCE ( + 68, COALESCE ( 11, 35 + - - CAST( 9 AS SIGNED ) ) ) DIV 30 AS col0
----
-2173

skipif mysql # not compatible
query I rowsort label-1017
SELECT - + 67 * + + ( + 29 ) + - 65 - + 73 * COALESCE ( + 68, COALESCE ( 11, 35 + - - CAST ( 9 AS INTEGER ) ) ) / 30 AS col0
----
-2173

onlyif mysql # aggregate syntax: 
query II rowsort label-1018
SELECT + 62 AS col2, 16 + COUNT( * )
----
62
17

skipif mysql # not compatible
query II rowsort label-1018
SELECT + 62 AS col2, 16 + COUNT ( * )
----
62
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1019
SELECT - COUNT( CAST( NULL AS SIGNED ) ) + + COALESCE ( + COUNT( + 23 ), - NULLIF ( - 2, 23 ) ) DIV - COUNT( * ), 97 DIV - 64
----
-1
-1

skipif mysql # not compatible
query II rowsort label-1019
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) + + COALESCE ( + COUNT ( + 23 ), - NULLIF ( - 2, 23 ) ) / - COUNT ( * ), 97 / - 64
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1020
SELECT ALL 27 * + 4 * - COUNT( * ) * + CAST( - 44 AS SIGNED ) * 75 + - + ( + + 52 ) AS col2
----
356348

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL 27 * + 4 * - COUNT ( * ) * + CAST ( - 44 AS INTEGER ) * 75 + - + ( + + 52 ) AS col2
----
356348

onlyif mysql # aggregate syntax: 
query II rowsort label-1021
SELECT DISTINCT + COUNT( * ) + - 92 AS col0, - COUNT( * ) AS col2
----
-91
-1

skipif mysql # not compatible
query II rowsort label-1021
SELECT DISTINCT + COUNT ( * ) + - 92 AS col0, - COUNT ( * ) AS col2
----
-91
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1022
SELECT DISTINCT - 78 - + + COUNT( * ) + - + 98 * - CASE - 32 WHEN 71 / - 77 * + COALESCE ( + + ( - + NULLIF ( CAST( NULL AS SIGNED ), - 62 ) ), 44 * + 87 * + 36 / + 75 + 87 - - 99 + - - COUNT( DISTINCT 79 ) ) * - 50 + + 6 + - 85 + - 44 THEN - 16 WHEN - - 55 THEN + 7 + 48 * - 21 END * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT - 78 - + + COUNT ( * ) + - + 98 * - CASE - 32 WHEN 71 / - 77 * + COALESCE ( + + ( - + NULLIF ( CAST ( NULL AS INTEGER ), - 62 ) ), 44 * + 87 * + 36 / + 75 + 87 - - 99 + - - COUNT ( DISTINCT 79 ) ) * - 50 + + 6 + - 85 + - 44 THEN - 16 WHEN - - 55 THEN + 7 + 48 * - 21 END * 56
----
NULL

query I rowsort
SELECT ALL + 87 * - - 5
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL + 14 - 15 - - COUNT( * ) * 32 + + + 61 * - 28 AS col2
----
-1677

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL + 14 - 15 - - COUNT ( * ) * 32 + + + 61 * - 28 AS col2
----
-1677

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL NULLIF ( - COUNT( * ), - 5 * + 77 + - 49 + 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL NULLIF ( - COUNT ( * ), - 5 * + 77 + - 49 + 58 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1026
SELECT ALL COALESCE ( CAST( COALESCE ( + - 74, - + 10 ) AS SIGNED ), - 78 * - - 51, + - 99 * - 51 ) * - 54 * + 61
----
243756

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL COALESCE ( CAST ( COALESCE ( + - 74, - + 10 ) AS INTEGER ), - 78 * - - 51, + - 99 * - 51 ) * - 54 * + 61
----
243756

query I rowsort
SELECT - ( + 11 ) * - 8 * - 59
----
-5192

query I rowsort
SELECT ALL + 87 * 58
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT - COALESCE ( COUNT( * ), - - ( + 88 ) * + 74, + 50 ) + + + 78 * - 96 AS col2
----
-7489

skipif mysql # not compatible
query I rowsort label-1029
SELECT - COALESCE ( COUNT ( * ), - - ( + 88 ) * + 74, + 50 ) + + + 78 * - 96 AS col2
----
-7489

query I rowsort
SELECT - 41 - + + 29 AS col1
----
-70

query I rowsort
SELECT - 11 + + 65
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL - 15 - - + CASE 58 WHEN - 41 * - + 56 THEN + 39 + 99 * - COUNT( 44 ) * - MIN( ALL 51 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL - 15 - - + CASE 58 WHEN - 41 * - + 56 THEN + 39 + 99 * - COUNT ( 44 ) * - MIN ( ALL 51 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT - CASE - 23 WHEN COUNT( * ) / - - 34 THEN - 80 * + 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1033
SELECT - CASE - 23 WHEN COUNT ( * ) / - - 34 THEN - 80 * + 77 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 89 AS col0
----
89

query I rowsort
SELECT DISTINCT ( - 21 )
----
-21

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1038
SELECT + 57 + - - COUNT( * ) DIV + + 90 + - ( 4 ) * + 39 + + + 51
----
-48

skipif mysql # not compatible
query I rowsort label-1038
SELECT + 57 + - - COUNT ( * ) / + + 90 + - ( 4 ) * + 39 + + + 51
----
-48

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

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

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

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT + COUNT ( * ) / 12 AS col2
----
0

query I rowsort
SELECT - CASE 6 WHEN + 67 THEN - 9 WHEN - 31 THEN - - 22 WHEN + 74 THEN NULL WHEN - - 70 THEN NULL ELSE + 98 END
----
-98

query I rowsort
SELECT ALL 16 + 59 + - 8
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1043
SELECT 95 * + 52 * + + 13 + - 44 + CASE 43 WHEN + 91 / COUNT( * ) + + 60 * - 9 THEN - COUNT( * ) * + COUNT( * ) / + 39 + - CAST( + 39 AS SIGNED ) * - - 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1043
SELECT 95 * + 52 * + + 13 + - 44 + CASE 43 WHEN + 91 / COUNT ( * ) + + 60 * - 9 THEN - COUNT ( * ) * + COUNT ( * ) / + 39 + - CAST ( + 39 AS INTEGER ) * - - 70 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1044
SELECT DISTINCT 17 / - - 79 + + 56 + 86 * 31 + 25 - + CAST( - COUNT( * ) AS DECIMAL ) / CASE + + 77 WHEN + + 80 / 82 + - 65 THEN MIN( ALL + 83 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT 17 / - - 79 + + 56 + 86 * 31 + 25 - + CAST ( - COUNT ( * ) AS REAL ) / CASE + + 77 WHEN + + 80 / 82 + - 65 THEN MIN ( ALL + 83 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT ALL - COUNT( * ) DIV - NULLIF ( - + 64, - + 41 + 85 + + 31 ) - - 32 + 15
----
47

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL - COUNT ( * ) / - NULLIF ( - + 64, - + 41 + 85 + + 31 ) - - 32 + 15
----
47

query I rowsort
SELECT - 30 * + 89 + - - ( 73 )
----
-2597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1047
SELECT ALL + 88 / + ( + 52 ) + MAX( DISTINCT + 36 ) - - MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) + + SUM( ALL + + 70 ) * - COUNT( * ) * - 53 + 56 / - + 46 * NULLIF ( + 1, - - 52 ) + 20 - 51 * - 29 / + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + 88 / + ( + 52 ) + MAX ( DISTINCT + 36 ) - - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + + SUM ( ALL + + 70 ) * - COUNT ( * ) * - 53 + 56 / - + 46 * NULLIF ( + 1, - - 52 ) + 20 - 51 * - 29 / + + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT + 96 * + SUM( + + 9 ) + - 93
----
771

skipif mysql # not compatible
query I rowsort label-1048
SELECT + 96 * + SUM ( + + 9 ) + - 93
----
771

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT ALL + 27 DIV + 1
----
27

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL + 27 / + 1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1050
SELECT NULLIF ( - SUM( ALL + 48 ), 0 ) * - - MIN( DISTINCT - - 23 ) * - 73 * 54 + 56 * - 17 + + 17 col2, + 32 + + SUM( - 58 ) * - 91 * - + 65 AS col2
----
4351033
-343038

skipif mysql # not compatible
query II rowsort label-1050
SELECT NULLIF ( - SUM ( ALL + 48 ), 0 ) * - - MIN ( DISTINCT - - 23 ) * - 73 * 54 + 56 * - 17 + + 17 col2, + 32 + + SUM ( - 58 ) * - 91 * - + 65 AS col2
----
4351033
-343038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1051
SELECT DISTINCT 95 * + - 5 DIV - COUNT( * )
----
475

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT 95 * + - 5 / - COUNT ( * )
----
475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1052
SELECT ALL 53 * ( CAST( - COUNT( * ) AS SIGNED ) ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL 53 * ( CAST ( - COUNT ( * ) AS INTEGER ) ) col2
----
-53

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

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

query II rowsort
SELECT 4 * 72 * 11, + 24 * - 50 AS col1
----
3168
-1200

query II rowsort
SELECT 99, 11 AS col1
----
99
11

query I rowsort
SELECT 94 * - 4
----
-376

query II rowsort
SELECT DISTINCT 86, + 75 col1
----
86
75

query I rowsort
SELECT 19 * 11 AS col2
----
209

query II rowsort
SELECT - 47 AS col0, 19 * - 78 col2
----
-47
-1482

query I rowsort
SELECT ALL - 93 + - + 74
----
-167

onlyif mysql # DIV for integer division: 
query II rowsort label-1061
SELECT - 3, - 29 DIV 67 * - - 72 * 67 + - 41 AS col2
----
-3
-41

skipif mysql # not compatible
query II rowsort label-1061
SELECT - 3, - 29 / 67 * - - 72 * 67 + - 41 AS col2
----
-3
-41

query I rowsort
SELECT 9 * + 54 col1
----
486

query I rowsort
SELECT 45 * 35 * + 81 * - + 34 AS col2
----
-4337550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1064
SELECT ALL - - COALESCE ( 64, 2 DIV 54 * + COUNT( * ) + CAST( + ( - 74 ) AS SIGNED ) ) + + ( 19 ) + - SUM( + 13 ) * + COUNT( DISTINCT - 92 )
----
70

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL - - COALESCE ( 64, 2 / 54 * + COUNT ( * ) + CAST ( + ( - 74 ) AS INTEGER ) ) + + ( 19 ) + - SUM ( + 13 ) * + COUNT ( DISTINCT - 92 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT ALL + MIN( NULLIF ( - - 94, + - 80 ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL + MIN ( NULLIF ( - - 94, + - 80 ) ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1066
SELECT + CAST( COUNT( ALL - 44 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1066
SELECT + CAST ( COUNT ( ALL - 44 ) AS INTEGER )
----
1

query I rowsort
SELECT 24 - 77 AS col0
----
-53

query I rowsort
SELECT ALL + 44 + 54 col1
----
98

query I rowsort
SELECT ALL - + 26 AS col1
----
-26

query I rowsort
SELECT - 65 * - 42
----
2730

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

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT - MIN ( - 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT ALL - - COUNT( * ) + - ( + ( - - 98 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL - - COUNT ( * ) + - ( + ( - - 98 ) )
----
-97

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

skipif mysql # not compatible
query I rowsort label-1073
SELECT ALL + COUNT ( * ) + - 83 AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1074
SELECT - - 59 DIV - 40 + + 89 col0
----
88

skipif mysql # not compatible
query I rowsort label-1074
SELECT - - 59 / - 40 + + 89 col0
----
88

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

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

query I rowsort
SELECT NULLIF ( 53, + 40 ) + - 43 * 79
----
-3344

query II rowsort
SELECT - 24 AS col0, 78 AS col0
----
-24
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT + + COUNT( * ) * - 57 * - - 52 + - + 63
----
-3027

skipif mysql # not compatible
query I rowsort label-1078
SELECT + + COUNT ( * ) * - 57 * - - 52 + - + 63
----
-3027

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT - 68 * SUM( DISTINCT 6 ) col1
----
-408

skipif mysql # not compatible
query I rowsort label-1079
SELECT - 68 * SUM ( DISTINCT 6 ) col1
----
-408

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

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

query II rowsort
SELECT ALL - 21, NULLIF ( - - 69, 65 ) + + + 84 AS col2
----
-21
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1082
SELECT - CAST( 13 AS SIGNED ) * + 47 + - 42 + + - 31
----
-684

skipif mysql # not compatible
query I rowsort label-1082
SELECT - CAST ( 13 AS INTEGER ) * + 47 + - 42 + + - 31
----
-684

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT 4 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-1083
SELECT 4 / 72
----
0

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

query I rowsort
SELECT - 70 * + 46 * 51 + - 51
----
-164271

query I rowsort
SELECT ALL - 49 col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1087
SELECT DISTINCT 41 DIV - NULLIF ( - COUNT( * ), - CAST( - COUNT( * ) AS SIGNED ) )
----
41

skipif mysql # not compatible
query I rowsort label-1087
SELECT DISTINCT 41 / - NULLIF ( - COUNT ( * ), - CAST ( - COUNT ( * ) AS INTEGER ) )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1088
SELECT 94 DIV + + 93 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1088
SELECT 94 / + + 93 AS col1
----
1

query I rowsort
SELECT ALL 76 * 5
----
380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1090
SELECT 0 - + NULLIF ( - - 22, + MAX( ALL + 72 ) DIV 67 ) DIV + COALESCE ( - ( - 53 ), COALESCE ( - + COUNT( * ), - - 87 * 17, + + 54 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1090
SELECT 0 - + NULLIF ( - - 22, + MAX ( ALL + 72 ) / 67 ) / + COALESCE ( - ( - 53 ), COALESCE ( - + COUNT ( * ), - - 87 * 17, + + 54 ) ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT DISTINCT 88 DIV + 63 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1091
SELECT DISTINCT 88 / + 63 AS col1
----
1

query I rowsort
SELECT DISTINCT 87 col2
----
87

query I rowsort
SELECT 29 * 49 AS col1
----
1421

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

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

query I rowsort
SELECT 35 - + + 36
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT COUNT( * ) + - NULLIF ( + 19, - - 65 ) * - MAX( 40 ) * + 36 + - 82
----
27279

skipif mysql # not compatible
query I rowsort label-1096
SELECT COUNT ( * ) + - NULLIF ( + 19, - - 65 ) * - MAX ( 40 ) * + 36 + - 82
----
27279

query I rowsort
SELECT DISTINCT + 80 + 91
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT ALL + ( + + 28 ) + + COUNT( * ) col2
----
29

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL + ( + + 28 ) + + COUNT ( * ) col2
----
29

query I rowsort
SELECT 39 + - - 74
----
113

query I rowsort
SELECT ALL - 62 + + + 53 * - 73 + + 36 * + - 18 * 33
----
-25315

query I rowsort
SELECT DISTINCT + 46 + 14 AS col2
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1102
SELECT ALL - + CAST( - 33 AS DECIMAL ) * - CASE - 45 WHEN - + 71 * 99 + + 54 / + 67 * - - 75 THEN 97 WHEN - 35 THEN + 32 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL - + CAST ( - 33 AS REAL ) * - CASE - 45 WHEN - + 71 * 99 + + 54 / + 67 * - - 75 THEN 97 WHEN - 35 THEN + 32 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - 63 + 87, + 38 AS col1
----
24
38

query I rowsort
SELECT DISTINCT - + 34 + 47 col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-1105
SELECT + ( - ( + ( - 17 ) ) ) DIV + 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1105
SELECT + ( - ( + ( - 17 ) ) ) / + 36 AS col0
----
0

query I rowsort
SELECT DISTINCT + + 73 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT + MIN( + ( 39 ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1107
SELECT + MIN ( + ( 39 ) ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT DISTINCT - 97 * + - COALESCE ( - 43, - + COUNT( * ) ) - + 67
----
-4238

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT - 97 * + - COALESCE ( - 43, - + COUNT ( * ) ) - + 67
----
-4238

query I rowsort
SELECT - 65 * - 76 col2
----
4940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1110
SELECT ALL + CASE - 55 WHEN + CAST( NULL AS SIGNED ) - 32 * - COUNT( * ) THEN - 8 WHEN + NULLIF ( + ( + + 83 ), - + 60 * 30 * - 42 ) THEN NULL ELSE NULL END AS col0, - COUNT( * ) * - - 60 * 78 * - COALESCE ( - - 82, + - 36 + - COUNT( * ), + + 59 + + COALESCE ( - 82, + 22 DIV 78 ) )
----
NULL
383760

skipif mysql # not compatible
query II rowsort label-1110
SELECT ALL + CASE - 55 WHEN + CAST ( NULL AS INTEGER ) - 32 * - COUNT ( * ) THEN - 8 WHEN + NULLIF ( + ( + + 83 ), - + 60 * 30 * - 42 ) THEN NULL ELSE NULL END AS col0, - COUNT ( * ) * - - 60 * 78 * - COALESCE ( - - 82, + - 36 + - COUNT ( * ), + + 59 + + COALESCE ( - 82, + 22 / 78 ) )
----
NULL
383760

query I rowsort
SELECT DISTINCT + - 39
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1112
SELECT ALL + CASE 52 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE 16 * - + 38 END AS col2, - SUM( ALL + 92 )
----
-608
-92

skipif mysql # not compatible
query II rowsort label-1112
SELECT ALL + CASE 52 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE 16 * - + 38 END AS col2, - SUM ( ALL + 92 )
----
-608
-92

query II rowsort
SELECT - - 31 - + + 69, 59 AS col0
----
-38
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1114
SELECT 56 DIV - COUNT( * ) + - 96
----
-152

skipif mysql # not compatible
query I rowsort label-1114
SELECT 56 / - COUNT ( * ) + - 96
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT MIN( 12 )
----
12

skipif mysql # not compatible
query I rowsort label-1115
SELECT MIN ( 12 )
----
12

query I rowsort
SELECT + 94 * - 35
----
-3290

query I rowsort
SELECT ALL 0 * - 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT + 41 - + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1118
SELECT + 41 - + COUNT ( * ) AS col2
----
40

query I rowsort
SELECT ALL - 66 * 43 AS col2
----
-2838

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL - COUNT( ALL COALESCE ( 28, + + 43 - + - 53 + - 28 * 12 - 40 ) ) + CASE - 14 WHEN - 82 THEN + 14 WHEN - - 49 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL - COUNT ( ALL COALESCE ( 28, + + 43 - + - 53 + - 28 * 12 - 40 ) ) + CASE - 14 WHEN - 82 THEN + 14 WHEN - - 49 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT COUNT( - 6 )
----
1

skipif mysql # not compatible
query I rowsort label-1121
SELECT COUNT ( - 6 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1122
SELECT - 22 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1122
SELECT - 22 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - CASE + + 11 WHEN + 5 THEN + 23 END AS col0
----
NULL

query I rowsort
SELECT ALL 91 col0
----
91

query I rowsort
SELECT + 63 * + 93 AS col2
----
5859

query I rowsort
SELECT + 81 + + 59 + + + 85
----
225

query I rowsort
SELECT + 92 * + ( + 71 )
----
6532

query I rowsort
SELECT - NULLIF ( 35, - 89 )
----
-35

query I rowsort
SELECT - NULLIF ( 18, 8 )
----
-18

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1131
SELECT ALL COUNT( * ) DIV 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL COUNT ( * ) / 66 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT DISTINCT MAX( ALL 75 )
----
75

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT MAX ( ALL 75 )
----
75

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

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

query I rowsort
SELECT + 91 * 2 col0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT + CASE + MIN( 29 ) WHEN ( + 21 ) THEN + MIN( ( 29 ) ) END * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1135
SELECT + CASE + MIN ( 29 ) WHEN ( + 21 ) THEN + MIN ( ( 29 ) ) END * 58
----
NULL

query I rowsort
SELECT - CASE + 80 WHEN 21 THEN + 90 END
----
NULL

query I rowsort
SELECT + 2 * + 22 AS col0
----
44

query I rowsort
SELECT ALL CASE 31 WHEN - 59 THEN + 72 + - AVG ( 42 ) WHEN - 14 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 82 col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1140
SELECT COUNT( * ) DIV - 20 - - COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1140
SELECT COUNT ( * ) / - 20 - - COUNT ( * ) * COUNT ( * ) AS col1
----
1

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

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

query I rowsort
SELECT DISTINCT - 42 * - 76
----
3192

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1144
SELECT ALL - 69 DIV - 65 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL - 69 / - 65 AS col2
----
1

query I rowsort
SELECT 33 * COALESCE ( 9, 52 * + NULLIF ( + 61, 46 ) - 47, - 93 ) + + 15 col1
----
312

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

skipif mysql # not compatible
query I rowsort label-1146
SELECT ( + 40 ) / + 91 + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT 33 * 99 - 76 DIV 33 AS col1
----
3265

skipif mysql # not compatible
query I rowsort label-1147
SELECT 33 * 99 - 76 / 33 AS col1
----
3265

query I rowsort
SELECT DISTINCT + 42 * 73
----
3066

query I rowsort
SELECT - CASE 75 WHEN - 5 THEN - 13 * 55 END + - 81 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1150
SELECT - COALESCE ( - 50, 4 DIV 80 ) DIV - 59 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1150
SELECT - COALESCE ( - 50, 4 / 80 ) / - 59 - + COUNT ( * )
----
-1

query I rowsort
SELECT - 94 * + 22 col1
----
-2068

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

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

query I rowsort
SELECT ALL + 30 col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1154
SELECT DISTINCT 37 * - 22 + CAST( COALESCE ( CASE + 74 WHEN SUM( DISTINCT 7 ) THEN 87 * MIN( DISTINCT 67 * 73 ) ELSE NULL END, SUM( 3 ), COUNT( * ), CAST( NULL AS SIGNED ) ) AS SIGNED ) * + 75
----
-589

skipif mysql # not compatible
query I rowsort label-1154
SELECT DISTINCT 37 * - 22 + CAST ( COALESCE ( CASE + 74 WHEN SUM ( DISTINCT 7 ) THEN 87 * MIN ( DISTINCT 67 * 73 ) ELSE NULL END, SUM ( 3 ), COUNT ( * ), CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + 75
----
-589

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT - COUNT( DISTINCT 30 ) * + 68 + 61
----
-7

skipif mysql # not compatible
query I rowsort label-1155
SELECT - COUNT ( DISTINCT 30 ) * + 68 + 61
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT - 59 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-1156
SELECT - 59 / + 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1157
SELECT DISTINCT 12 * COUNT( * ) + - 66 DIV + 78 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT 12 * COUNT ( * ) + - 66 / + 78 AS col1
----
12

query I rowsort
SELECT ALL + 5 * ( 76 ) + + 61
----
441

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1159
SELECT - CAST( NULL AS DECIMAL ) * AVG ( DISTINCT - 68 / 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1159
SELECT - CAST ( NULL AS REAL ) * AVG ( DISTINCT - 68 / 5 ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( 5, - 80 + 46 )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1161
SELECT ALL + 98 DIV 85 col0
----
1

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL + 98 / 85 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT - 23 + - MAX( + 83 ) AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-1162
SELECT - 23 + - MAX ( + 83 ) AS col0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT + NULLIF ( 34, COUNT( * ) / 77 + 33 )
----
34

skipif mysql # not compatible
query I rowsort label-1163
SELECT + NULLIF ( 34, COUNT ( * ) / 77 + 33 )
----
34

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

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

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

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

query I rowsort
SELECT DISTINCT - 23 * 84 + 71 AS col2
----
-1861

query I rowsort
SELECT COALESCE ( + 12, 57 )
----
12

query I rowsort
SELECT - ( - 5 ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1169
SELECT ALL - 90 * 34 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - 90 * 34 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1170
SELECT NULLIF ( COUNT ( * ), + 89 )
----
1

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

query I rowsort
SELECT - CASE - 14 WHEN 31 THEN 10 WHEN 4 THEN NULL ELSE + 6 END
----
-6

query I rowsort
SELECT DISTINCT + ( 48 ) * - 23
----
-1104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1174
SELECT ALL + 96 * + 69 - 18 DIV COALESCE ( - 90 * + 62, - COUNT( * ), 33 DIV 6 ) AS col2
----
6624

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL + 96 * + 69 - 18 / COALESCE ( - 90 * + 62, - COUNT ( * ), 33 / 6 ) AS col2
----
6624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1175
SELECT ALL + 8 * - CAST( 80 AS SIGNED )
----
-640

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL + 8 * - CAST ( 80 AS INTEGER )
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT - SUM( + 80 ) + + 32 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-1176
SELECT - SUM ( + 80 ) + + 32 AS col0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT + ( 13 ) - + ( 82 + - 22 DIV - 86 )
----
-69

skipif mysql # not compatible
query I rowsort label-1177
SELECT + ( 13 ) - + ( 82 + - 22 / - 86 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT CASE - COUNT( DISTINCT 42 ) WHEN - 95 THEN + MAX( + 67 ) + 58 * + ( + 88 ) ELSE + 59 END
----
59

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT CASE - COUNT ( DISTINCT 42 ) WHEN - 95 THEN + MAX ( + 67 ) + 58 * + ( + 88 ) ELSE + 59 END
----
59

query I rowsort
SELECT - 84 + + 60
----
-24

query I rowsort
SELECT + 54 - 48 col1
----
6

query I rowsort
SELECT + 58 * 96
----
5568

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT SUM( 36 ) - MAX( DISTINCT 56 + + 10 )
----
-30

skipif mysql # not compatible
query I rowsort label-1183
SELECT SUM ( 36 ) - MAX ( DISTINCT 56 + + 10 )
----
-30

query I rowsort
SELECT ALL + 5 - + 23 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT + 20 + SUM( ALL + 35 + ( 72 ) ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-1185
SELECT + 20 + SUM ( ALL + 35 + ( 72 ) ) AS col1
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1186
SELECT CAST( + 6 AS SIGNED ) + 44 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1186
SELECT CAST ( + 6 AS INTEGER ) + 44 AS col0
----
50

query I rowsort
SELECT ALL 73 * 22
----
1606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1188
SELECT ALL - ( COUNT( * ) ) * CASE + 98 WHEN + 37 THEN NULL ELSE 31 DIV - COUNT( * ) END AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL - ( COUNT ( * ) ) * CASE + 98 WHEN + 37 THEN NULL ELSE 31 / - COUNT ( * ) END AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT DISTINCT + 11 * - MAX( DISTINCT 83 ) AS col1
----
-913

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT + 11 * - MAX ( DISTINCT 83 ) AS col1
----
-913

query I rowsort
SELECT - ( - 26 ) + 32
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT DISTINCT - 36 * + SUM( - 9 )
----
324

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT - 36 * + SUM ( - 9 )
----
324

query I rowsort
SELECT ALL - 78 * 50 AS col0
----
-3900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT COUNT( * ) + 86
----
87

skipif mysql # not compatible
query I rowsort label-1194
SELECT COUNT ( * ) + 86
----
87

query I rowsort
SELECT DISTINCT - 86 + + 83 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT + + MAX( 59 )
----
59

skipif mysql # not compatible
query I rowsort label-1196
SELECT + + MAX ( 59 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT ALL MAX( DISTINCT 19 ) + - 39 DIV 63
----
19

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL MAX ( DISTINCT 19 ) + - 39 / 63
----
19

query I rowsort
SELECT ALL 71 * + 96 col1
----
6816

query I rowsort
SELECT 10 + - 68 - 53 * + 18 AS col1
----
-1012

query I rowsort
SELECT DISTINCT 65 + 29 * + 84
----
2501

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

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL COUNT ( * ) + 41 AS col0
----
42

query I rowsort
SELECT DISTINCT - 52 col0
----
-52

query I rowsort
SELECT 94 - - ( - ( 93 ) ) AS col2
----
1

query I rowsort
SELECT ALL + NULLIF ( + + 33, - 59 ) + + 45
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT ( - - COUNT( * ) ) - ( 35 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1205
SELECT ( - - COUNT ( * ) ) - ( 35 ) AS col1
----
-34

query I rowsort
SELECT 39 * - ( 89 )
----
-3471

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT - 82 * + SUM( + 26 ) + - 77 AS col2
----
-2209

skipif mysql # not compatible
query I rowsort label-1207
SELECT - 82 * + SUM ( + 26 ) + - 77 AS col2
----
-2209

onlyif mysql # DIV for integer division: 
query I rowsort label-1208
SELECT DISTINCT + 94 + + 0 DIV 13 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT + 94 + + 0 / 13 AS col1
----
94

query I rowsort
SELECT 29 * - + 89
----
-2581

query I rowsort
SELECT ALL ( - 34 ) * 30 AS col2
----
-1020

query I rowsort
SELECT DISTINCT ( - 7 ) - - 11
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1212
SELECT 44 + CAST( + COUNT( * ) AS SIGNED ) + - 54 col2
----
-9

skipif mysql # not compatible
query I rowsort label-1212
SELECT 44 + CAST ( + COUNT ( * ) AS INTEGER ) + - 54 col2
----
-9

query I rowsort
SELECT ALL + 76 - + - 54
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT DISTINCT - SUM( + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT - SUM ( + 97 )
----
-97

query I rowsort
SELECT 28 * + 29
----
812

onlyif mysql # DIV for integer division: 
query I rowsort label-1216
SELECT DISTINCT - - 27 DIV - - ( + 59 ) * 44 + - 72 * 31 AS col1
----
-2232

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT - - 27 / - - ( + 59 ) * 44 + - 72 * 31 AS col1
----
-2232

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT - 43 DIV - 12
----
3

skipif mysql # not compatible
query I rowsort label-1217
SELECT - 43 / - 12
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT 16 * - + COUNT( ALL ( 67 ) ) + MAX( ALL + 46 )
----
30

skipif mysql # not compatible
query I rowsort label-1218
SELECT 16 * - + COUNT ( ALL ( 67 ) ) + MAX ( ALL + 46 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT COUNT( * ) * + ( - 22 ) + - 11 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1219
SELECT COUNT ( * ) * + ( - 22 ) + - 11 AS col0
----
-33

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

query I rowsort
SELECT DISTINCT 3 AS col0
----
3

query I rowsort
SELECT - ( 41 )
----
-41

query I rowsort
SELECT DISTINCT COALESCE ( + NULLIF ( NULLIF ( 94, - 42 + - 22 ), - 2 ), - 31 ) AS col0
----
94

query I rowsort
SELECT ALL - 83 col2
----
-83

query I rowsort
SELECT DISTINCT + 57 AS col1
----
57

query I rowsort
SELECT DISTINCT + 82 * - 2 * + 66 AS col1
----
-10824

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

skipif mysql # not compatible
query I rowsort label-1227
SELECT + 85 - - COUNT ( * ) + - 4 AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT DISTINCT CAST( - 8 AS SIGNED ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT CAST ( - 8 AS INTEGER ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT ALL + 49 + - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL + 49 + - COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT 65 + 35 - SUM( DISTINCT 88 ) * 43
----
-3684

skipif mysql # not compatible
query I rowsort label-1230
SELECT 65 + 35 - SUM ( DISTINCT 88 ) * 43
----
-3684

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1232
SELECT DISTINCT - 99 DIV + ( + COALESCE ( MIN( DISTINCT 16 ), + COUNT( * ), - 86 + - 87 ) ) + + 41 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT - 99 / + ( + COALESCE ( MIN ( DISTINCT 16 ), + COUNT ( * ), - 86 + - 87 ) ) + + 41 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL + 88 + NULLIF ( COUNT( * ), 92 * MIN( ALL 70 ) ) + ( - 25 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL + 88 + NULLIF ( COUNT ( * ), 92 * MIN ( ALL 70 ) ) + ( - 25 ) AS col1
----
64

query I rowsort
SELECT - COALESCE ( + - 32, 2 * 51 ) - 94 * 81
----
-7582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1235
SELECT DISTINCT ( 98 ) * - ( CAST( NULLIF ( - 41, + 73 / COUNT( * ) + 84 / + 4 ) AS SIGNED ) )
----
4018

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT ( 98 ) * - ( CAST ( NULLIF ( - 41, + 73 / COUNT ( * ) + 84 / + 4 ) AS INTEGER ) )
----
4018

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT DISTINCT - COUNT( * ) + - - SUM( 41 ) + CASE MIN( + 65 ) + 36 WHEN + 3 THEN NULL ELSE - 7 + + 21 END AS col2
----
54

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT - COUNT ( * ) + - - SUM ( 41 ) + CASE MIN ( + 65 ) + 36 WHEN + 3 THEN NULL ELSE - 7 + + 21 END AS col2
----
54

query I rowsort
SELECT ALL - NULLIF ( - 73, - 49 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT ALL - 45 * SUM( ALL 70 ) + - COALESCE ( + COALESCE ( 85, + 88, - 81 ), 50 )
----
-3235

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL - 45 * SUM ( ALL 70 ) + - COALESCE ( + COALESCE ( 85, + 88, - 81 ), 50 )
----
-3235

onlyif mysql # DIV for integer division: 
query I rowsort label-1239
SELECT 13 DIV 15 * 7
----
0

skipif mysql # not compatible
query I rowsort label-1239
SELECT 13 / 15 * 7
----
0

query I rowsort
SELECT DISTINCT - 52 AS col2
----
-52

query I rowsort
SELECT DISTINCT 41 * + ( 60 )
----
2460

query I rowsort
SELECT + 53 * + 46 + + 64
----
2502

query I rowsort
SELECT ALL NULLIF ( 93, + 83 ) * - 16
----
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL 76 * - 98 * + NULLIF ( MAX( DISTINCT + 97 ), - COUNT( * ) )
----
-722456

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL 76 * - 98 * + NULLIF ( MAX ( DISTINCT + 97 ), - COUNT ( * ) )
----
-722456

onlyif mysql # DIV for integer division: 
query I rowsort label-1245
SELECT 43 DIV + - 98 + 26 DIV + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1245
SELECT 43 / + - 98 + 26 / + 40 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT COUNT( * ) * + 62 - - + 79 * ( + ( 56 ) * + COUNT( * ) )
----
4486

skipif mysql # not compatible
query I rowsort label-1246
SELECT COUNT ( * ) * + 62 - - + 79 * ( + ( 56 ) * + COUNT ( * ) )
----
4486

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT MAX( 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1247
SELECT MAX ( 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT SUM( + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1248
SELECT SUM ( + 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT MAX( - - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-1249
SELECT MAX ( - - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT MAX( + - 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-1250
SELECT MAX ( + - 14 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT DISTINCT 75 - 70 * - COUNT( * ) AS col2
----
145

skipif mysql # not compatible
query I rowsort label-1251
SELECT DISTINCT 75 - 70 * - COUNT ( * ) AS col2
----
145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT COUNT( * ) + + CASE + COUNT( * ) WHEN + 10 THEN 80 * 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1253
SELECT COUNT ( * ) + + CASE + COUNT ( * ) WHEN + 10 THEN 80 * 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT ALL COUNT( * ) - 94
----
-93

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL COUNT ( * ) - 94
----
-93

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

skipif mysql # not compatible
query I rowsort label-1255
SELECT COUNT ( * ) + - 80 * 73 AS col1
----
-5839

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

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

query I rowsort
SELECT 64 * - + 81
----
-5184

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1260
SELECT + 52 AS col2, COUNT( * ) - + + 46
----
52
-45

skipif mysql # not compatible
query II rowsort label-1260
SELECT + 52 AS col2, COUNT ( * ) - + + 46
----
52
-45

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1262
SELECT - 83 * - - 54 * - + ( - 31 ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1262
SELECT - 83 * - - 54 * - + ( - 31 ) + CAST ( NULL AS REAL ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 49 * + + 81 col0
----
3969

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

query I rowsort
SELECT DISTINCT - NULLIF ( - 97, - 56 )
----
97

query I rowsort
SELECT - 2 + + 36
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-1268
SELECT ALL - 51 AS col1, CASE + 41 WHEN - 79 + + 36 * 27 THEN 70 * + 55 WHEN 83 THEN AVG ( - 62 ) WHEN COUNT( * ) THEN + 57 * 46 WHEN 53 THEN NULL ELSE 10 * COUNT( * ) END AS col1
----
-51
10

skipif mysql # not compatible
query II rowsort label-1268
SELECT ALL - 51 AS col1, CASE + 41 WHEN - 79 + + 36 * 27 THEN 70 * + 55 WHEN 83 THEN AVG ( - 62 ) WHEN COUNT ( * ) THEN + 57 * 46 WHEN 53 THEN NULL ELSE 10 * COUNT ( * ) END AS col1
----
-51
10

query I rowsort
SELECT ALL 77 * + 45
----
3465

query I rowsort
SELECT - + 33 + 71 * - 16 * 21
----
-23889

onlyif mysql # DIV for integer division: 
query I rowsort label-1271
SELECT ALL - - 49 DIV + + 25 + - - 40 * 99 AS col2
----
3961

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL - - 49 / + + 25 + - - 40 * 99 AS col2
----
3961

query I rowsort
SELECT DISTINCT - 28 AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1273
SELECT + - ( - - ( + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) ) ) + - COUNT( 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-1273
SELECT + - ( - - ( + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) ) + - COUNT ( 99 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT + MIN( + 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1274
SELECT + MIN ( + 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT - + 72 + + - MAX( 45 ) * 63 AS col2
----
-2907

skipif mysql # not compatible
query I rowsort label-1275
SELECT - + 72 + + - MAX ( 45 ) * 63 AS col2
----
-2907

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT - ( 92 ) - - - COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-1276
SELECT - ( 92 ) - - - COUNT ( * ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-1277
SELECT ALL - 61 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL - 61 / - 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1278
SELECT - - CAST( 16 AS SIGNED ) + - + 17 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1278
SELECT - - CAST ( 16 AS INTEGER ) + - + 17 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1279
SELECT - 66 + - 57 DIV + 11 + - 51
----
-122

skipif mysql # not compatible
query I rowsort label-1279
SELECT - 66 + - 57 / + 11 + - 51
----
-122

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1280
SELECT - - 10, - CAST( NULL AS DECIMAL ) AS col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-1280
SELECT - - 10, - CAST ( NULL AS REAL ) AS col2
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT DISTINCT + + COUNT( * ) + - ( + 63 ) + 54
----
-8

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT + + COUNT ( * ) + - ( + 63 ) + 54
----
-8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1283
SELECT ALL + + 94 + - NULLIF ( - NULLIF ( 72, - 74 ), + CAST( NULL AS SIGNED ) ) AS col1
----
166

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL + + 94 + - NULLIF ( - NULLIF ( 72, - 74 ), + CAST ( NULL AS INTEGER ) ) AS col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT - 32 + - MAX( - 92 )
----
60

skipif mysql # not compatible
query I rowsort label-1284
SELECT - 32 + - MAX ( - 92 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT ALL + - 78 + - - COALESCE ( 38, + SUM( 27 ) * 75 + + COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL + - 78 + - - COALESCE ( 38, + SUM ( 27 ) * 75 + + COUNT ( * ) )
----
-40

query II rowsort
SELECT DISTINCT 89 AS col0, - 3 * 37 + 55 AS col2
----
89
-56

query I rowsort
SELECT ALL - 11 + - 69 * 16 col2
----
-1115

query I rowsort
SELECT + 12 * + 99 AS col2
----
1188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT COUNT( * ) * 7 + - + 20 + + 10
----
-3

skipif mysql # not compatible
query I rowsort label-1291
SELECT COUNT ( * ) * 7 + - + 20 + + 10
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1292
SELECT ALL + 7 * + + COUNT( * ) - - 87 DIV - 29
----
4

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + 7 * + + COUNT ( * ) - - 87 / - 29
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT - 76 * CASE 9 WHEN 94 THEN NULL WHEN 29 / + COUNT( * ) THEN + 61 WHEN + 47 * + 42 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1293
SELECT - 76 * CASE 9 WHEN 94 THEN NULL WHEN 29 / + COUNT ( * ) THEN + 61 WHEN + 47 * + 42 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1294
SELECT DISTINCT + CAST( + 63 AS SIGNED ) * - COUNT( * ) * 6 - 2 col1
----
-380

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT + CAST ( + 63 AS INTEGER ) * - COUNT ( * ) * 6 - 2 col1
----
-380

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1297
SELECT ALL - 76 DIV - + 61
----
1

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL - 76 / - + 61
----
1

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

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT + CAST ( 17 AS INTEGER ) AS col2
----
17

query I rowsort
SELECT ALL 16 * + 88
----
1408

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT ALL MIN( ALL - + 92 ) * - + 83 AS col2
----
7636

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL MIN ( ALL - + 92 ) * - + 83 AS col2
----
7636

query I rowsort
SELECT - 92 - ( - + 84 ) col2
----
-8

query I rowsort
SELECT - 10 * - 94 AS col0
----
940

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1303
SELECT - COUNT( + + CAST( NULL AS DECIMAL ) ) * + + 24 + - 91 + 26 - + ( - 89 + 8 * 15 ) * 14
----
-499

skipif mysql # not compatible
query I rowsort label-1303
SELECT - COUNT ( + + CAST ( NULL AS REAL ) ) * + + 24 + - 91 + 26 - + ( - 89 + 8 * 15 ) * 14
----
-499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT CASE - - CAST( NULL AS SIGNED ) WHEN + 96 * + + 23 THEN NULL ELSE 88 + 80 END AS col0
----
168

skipif mysql # not compatible
query I rowsort label-1304
SELECT CASE - - CAST ( NULL AS INTEGER ) WHEN + 96 * + + 23 THEN NULL ELSE 88 + 80 END AS col0
----
168

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

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

query I rowsort
SELECT ALL + CASE + - 58 WHEN - 46 * + 93 + - 18 THEN 89 ELSE NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1307
SELECT + COUNT ( * ) * 11 + 65 AS col0
----
76

query I rowsort
SELECT DISTINCT + + 56
----
56

query I rowsort
SELECT DISTINCT + 12 * + 81 * 85 + - + 84
----
82536

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT ALL ( 33 ) * + - 70 + + 86 * 16 + + ( 79 + COUNT( * ) )
----
-854

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL ( 33 ) * + - 70 + + 86 * 16 + + ( 79 + COUNT ( * ) )
----
-854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1311
SELECT + CASE - 36 WHEN - COUNT( DISTINCT + 37 ) THEN NULL WHEN + 3 + 94 THEN - ( + CAST( NULL AS SIGNED ) ) ELSE NULL END * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1311
SELECT + CASE - 36 WHEN - COUNT ( DISTINCT + 37 ) THEN NULL WHEN + 3 + 94 THEN - ( + CAST ( NULL AS INTEGER ) ) ELSE NULL END * + 0
----
NULL

query I rowsort
SELECT - - 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT DISTINCT - COUNT( * ) * - 48 + + - 27 * + 17 * 49
----
-22443

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT - COUNT ( * ) * - 48 + + - 27 * + 17 * 49
----
-22443

onlyif mysql # aggregate syntax: 
query II rowsort label-1314
SELECT ALL 10 * COUNT( * ) col0, 45 AS col0
----
10
45

skipif mysql # not compatible
query II rowsort label-1314
SELECT ALL 10 * COUNT ( * ) col0, 45 AS col0
----
10
45

query I rowsort
SELECT ALL + + 42 + - + 31 * + + 62 * + + 77 * - 63 AS col2
----
9323664

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT - - NULLIF ( - CASE + + ( - MIN( DISTINCT + 47 ) ) WHEN + 7 THEN - COUNT( * ) * - COALESCE ( 41, + 39, 18 ) + - 65 END, + NULLIF ( NULLIF ( - 80, 44 + - 6 ), 95 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT - - NULLIF ( - CASE + + ( - MIN ( DISTINCT + 47 ) ) WHEN + 7 THEN - COUNT ( * ) * - COALESCE ( 41, + 39, 18 ) + - 65 END, + NULLIF ( NULLIF ( - 80, 44 + - 6 ), 95 ) )
----
NULL

query II rowsort
SELECT ALL + ( - + 95 ) AS col0, - 61
----
-95
-61

query I rowsort
SELECT ALL NULLIF ( - 65, - - 54 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1319
SELECT ALL - 55 + - COALESCE ( - 47, CASE + CASE 37 WHEN 47 THEN NULL WHEN ( COUNT( * ) ) - ( + 91 ) THEN CAST( NULL AS SIGNED ) END WHEN + 74 * + 44 THEN SUM( - 85 ) * 71 + + ( 57 ) WHEN 82 * + 12 - 83 THEN NULL END + 32 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL - 55 + - COALESCE ( - 47, CASE + CASE 37 WHEN 47 THEN NULL WHEN ( COUNT ( * ) ) - ( + 91 ) THEN CAST ( NULL AS INTEGER ) END WHEN + 74 * + 44 THEN SUM ( - 85 ) * 71 + + ( 57 ) WHEN 82 * + 12 - 83 THEN NULL END + 32 ) AS col1
----
-8

query I rowsort
SELECT - - 63
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1321
SELECT + NULLIF ( + 58, + 34 + + 2 ) - - 26 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT + NULLIF ( + 58, + 34 + + 2 ) - - 26 + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1322
SELECT - 12 * 58 * - COUNT( * ) AS col2, - COALESCE ( - 84, - 42 ) * + MIN( ALL + 81 ) col0
----
696
6804

skipif mysql # not compatible
query II rowsort label-1322
SELECT - 12 * 58 * - COUNT ( * ) AS col2, - COALESCE ( - 84, - 42 ) * + MIN ( ALL + 81 ) col0
----
696
6804

query I rowsort
SELECT + 83 + + 4
----
87

query I rowsort
SELECT - 88 * 35 AS col2
----
-3080

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT - 76 DIV NULLIF ( - 31, - 6 )
----
2

skipif mysql # not compatible
query I rowsort label-1325
SELECT - 76 / NULLIF ( - 31, - 6 )
----
2

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

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

query I rowsort
SELECT - 52 - - 11 AS col2
----
-41

query I rowsort
SELECT ALL COALESCE ( - 7, - + 6 ) AS col2
----
-7

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

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

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

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

query I rowsort
SELECT - 22 * + 34
----
-748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1332
SELECT ALL - 72 * - 46 * - ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL - 72 * - 46 * - ( + + CAST ( NULL AS INTEGER ) )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1334
SELECT - CAST( NULL AS SIGNED ) / + 87 * - 51 + - 53 * + NULLIF ( 28, - 50 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1334
SELECT - CAST ( NULL AS INTEGER ) / + 87 * - 51 + - 53 * + NULLIF ( 28, - 50 ) AS col2
----
NULL

query I rowsort
SELECT 38 + + 73 + 16 * - - 51 + - 83 * - 46 AS col1
----
4745

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

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

query I rowsort
SELECT 79 * + 55
----
4345

query I rowsort
SELECT DISTINCT - NULLIF ( 66, 89 * + + 99 ) AS col1
----
-66

query I rowsort
SELECT ALL 74 + - + NULLIF ( - 39, + + 30 ) + + 57 - 51 * 37 * + 47 * + 23
----
-2039677

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

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

query I rowsort
SELECT ALL - NULLIF ( + 21, + 82 )
----
-21

query I rowsort
SELECT ALL - - CASE - 18 WHEN - 24 THEN - 96 + + 83 * 15 WHEN + 83 THEN 48 * + 98 + 76 * 77 END + 89
----
NULL

query I rowsort
SELECT - 37 + - 41 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT DISTINCT + 94 * - 44 * MIN( 45 ) + 89
----
-186031

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT + 94 * - 44 * MIN ( 45 ) + 89
----
-186031

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1345
SELECT DISTINCT - COALESCE ( - 70, - 60 + COUNT( * ), + + 89 DIV 39 + 50 DIV + 4, - 50 + + 87 ) + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT - COALESCE ( - 70, - 60 + COUNT ( * ), + + 89 / 39 + 50 / + 4, - 50 + + 87 ) + COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-1346
SELECT + COUNT( * ) * 82 + 31 col2, 10
----
113
10

skipif mysql # not compatible
query II rowsort label-1346
SELECT + COUNT ( * ) * 82 + 31 col2, 10
----
113
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1347
SELECT MAX( DISTINCT + 62 ) DIV 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1347
SELECT MAX ( DISTINCT + 62 ) / 90 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1348
SELECT ALL - 70 + + - 89 - + ( SUM( + CASE - NULLIF ( + 87, CASE CAST( NULL AS SIGNED ) WHEN 13 / + ( 68 * - ( 64 ) ) THEN + 39 WHEN 70 * - 95 THEN 60 ELSE 15 + + 25 END * 5 ) WHEN + 36 THEN NULL WHEN 24 THEN NULL ELSE 66 END ) ) AS col2
----
-225

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL - 70 + + - 89 - + ( SUM ( + CASE - NULLIF ( + 87, CASE CAST ( NULL AS INTEGER ) WHEN 13 / + ( 68 * - ( 64 ) ) THEN + 39 WHEN 70 * - 95 THEN 60 ELSE 15 + + 25 END * 5 ) WHEN + 36 THEN NULL WHEN 24 THEN NULL ELSE 66 END ) ) AS col2
----
-225

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

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

query I rowsort
SELECT DISTINCT - 59 * - ( 72 )
----
4248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1351
SELECT CAST( NULL AS SIGNED ) + - 91 + + - 11 + 28 * + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1351
SELECT CAST ( NULL AS INTEGER ) + - 91 + + - 11 + 28 * + 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1352
SELECT DISTINCT - 27, 83 * 94 * MIN( DISTINCT + 22 ) * 70 + MIN( DISTINCT 43 ) AS col0
----
-27
12015123

skipif mysql # not compatible
query II rowsort label-1352
SELECT DISTINCT - 27, 83 * 94 * MIN ( DISTINCT + 22 ) * 70 + MIN ( DISTINCT 43 ) AS col0
----
-27
12015123

query I rowsort
SELECT 86 + - 0 + - + 38 * 19 * - - 45 + 80
----
-32324

query I rowsort
SELECT ALL 84 - + 95 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT - 37 - + COALESCE ( - 85, + + COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-1355
SELECT - 37 - + COALESCE ( - 85, + + COUNT ( * ) )
----
48

query I rowsort
SELECT 78 * - 99 col0
----
-7722

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1357
SELECT 65 + + 27 * + + COUNT( * ) DIV + 81 DIV + + 19 + NULLIF ( + 49, 92 ) * 83
----
4132

skipif mysql # not compatible
query I rowsort label-1357
SELECT 65 + + 27 * + + COUNT ( * ) / + 81 / + + 19 + NULLIF ( + 49, 92 ) * 83
----
4132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1358
SELECT COUNT( * ) + + 84 + + 1 - + 3 + + MAX( ALL 15 ) - 14 DIV 20 * 2 * - 8 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1358
SELECT COUNT ( * ) + + 84 + + 1 - + 3 + + MAX ( ALL 15 ) - 14 / 20 * 2 * - 8 AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1359
SELECT ALL SUM( DISTINCT + 41 ) - - ( + 7 ) + - - 49 + + - 54 * 37 * - CASE - 99 WHEN MIN( + CAST( ( 52 ) AS SIGNED ) ) THEN 5 * 95 - + 70 END * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL SUM ( DISTINCT + 41 ) - - ( + 7 ) + - - 49 + + - 54 * 37 * - CASE - 99 WHEN MIN ( + CAST ( ( 52 ) AS INTEGER ) ) THEN 5 * 95 - + 70 END * 52
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1360
SELECT ALL 4 AS col1, + MAX( DISTINCT - 75 ) * + 68 + + 94 + - 12 col0
----
4
-5018

skipif mysql # not compatible
query II rowsort label-1360
SELECT ALL 4 AS col1, + MAX ( DISTINCT - 75 ) * + 68 + + 94 + - 12 col0
----
4
-5018

query II rowsort
SELECT - 5, ( 80 ) AS col2
----
-5
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT 48 + - - 32 + 56 + - MAX( DISTINCT + 37 ) * - + 37
----
1505

skipif mysql # not compatible
query I rowsort label-1362
SELECT 48 + - - 32 + 56 + - MAX ( DISTINCT + 37 ) * - + 37
----
1505

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT COUNT( * ) - - 18 + + 99 col0
----
118

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT COUNT ( * ) - - 18 + + 99 col0
----
118

query I rowsort
SELECT NULLIF ( - 96, 25 * + 2 ) * - 51
----
4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1365
SELECT ALL + COALESCE ( - 80, + CAST( NULL AS SIGNED ) - - - ( - ( - + ( 87 ) ) ), COUNT( * ) + + MIN( 90 ) ) * + 45 col0
----
-3600

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL + COALESCE ( - 80, + CAST ( NULL AS INTEGER ) - - - ( - ( - + ( 87 ) ) ), COUNT ( * ) + + MIN ( 90 ) ) * + 45 col0
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT ALL SUM( - + 68 ) * + 39 AS col0
----
-2652

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL SUM ( - + 68 ) * + 39 AS col0
----
-2652

query I rowsort
SELECT 38 + - 50 AS col1
----
-12

query II rowsort
SELECT ALL 19, 10 AS col2
----
19
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1369
SELECT 48 + 19 + ( - 33 ) * + CAST( NULL AS SIGNED ) * - 92 * - MAX( - 96 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT 48 + 19 + ( - 33 ) * + CAST ( NULL AS INTEGER ) * - 92 * - MAX ( - 96 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1370
SELECT 54 DIV - 8
----
-6

skipif mysql # not compatible
query I rowsort label-1370
SELECT 54 / - 8
----
-6

query II rowsort
SELECT - 29 AS col1, 93 AS col0
----
-29
93

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

skipif mysql # not compatible
query I rowsort label-1372
SELECT CAST ( NULL AS REAL ) * + 65
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1373
SELECT 73 + - COALESCE ( + CASE - 47 WHEN - 13 + COUNT( * ) THEN NULL WHEN + 95 THEN NULL ELSE - MIN( NULLIF ( - 50, CAST( NULL AS SIGNED ) ) ) END, 30 + - 85 ) + + 7 * - 90
----
-607

skipif mysql # not compatible
query I rowsort label-1373
SELECT 73 + - COALESCE ( + CASE - 47 WHEN - 13 + COUNT ( * ) THEN NULL WHEN + 95 THEN NULL ELSE - MIN ( NULLIF ( - 50, CAST ( NULL AS INTEGER ) ) ) END, 30 + - 85 ) + + 7 * - 90
----
-607

onlyif mysql # DIV for integer division: 
query I rowsort label-1374
SELECT ALL + 13 DIV - + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL + 13 / - + 26 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1375
SELECT 80 DIV - - COALESCE ( + 96, 9, - COUNT( * ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1375
SELECT 80 / - - COALESCE ( + 96, 9, - COUNT ( * ) ) col1
----
0

query I rowsort
SELECT DISTINCT + 4 + + - 51
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1377
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 29 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT + 68 + - COUNT( * ) * - 79 * + 36
----
2912

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT + 68 + - COUNT ( * ) * - 79 * + 36
----
2912

query I rowsort
SELECT ALL + 14 * + 71 AS col1
----
994

query I rowsort
SELECT - 69 + + 50 + - + 57 * + 84 + 20
----
-4787

query I rowsort
SELECT ALL + 15 + + 68 AS col1
----
83

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1384
SELECT ALL + COUNT( CAST( + 18 AS SIGNED ) ) + - + 24 AS col0, NULLIF ( - 48, - 76 ) DIV 99 AS col1
----
-23
0

skipif mysql # not compatible
query II rowsort label-1384
SELECT ALL + COUNT ( CAST ( + 18 AS INTEGER ) ) + - + 24 AS col0, NULLIF ( - 48, - 76 ) / 99 AS col1
----
-23
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT - 26 - 85 + - 3 + COUNT( - + ( 13 ) ) - - 52 * + 41 * 78
----
166183

skipif mysql # not compatible
query I rowsort label-1385
SELECT - 26 - 85 + - 3 + COUNT ( - + ( 13 ) ) - - 52 * + 41 * 78
----
166183

onlyif mysql # aggregate syntax: 
query II rowsort label-1386
SELECT + + 52 col0, 27 + - + 66 * + - 93 * + COUNT( * ) + 7
----
52
6172

skipif mysql # not compatible
query II rowsort label-1386
SELECT + + 52 col0, 27 + - + 66 * + - 93 * + COUNT ( * ) + 7
----
52
6172

query I rowsort
SELECT ALL + ( + 68 ) * 31
----
2108

query I rowsort
SELECT + NULLIF ( + 41, 29 + + 62 ) col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1389
SELECT CASE WHEN + - 44 <> 44 * - - 17 + 30 AND NOT NULL IS NOT NULL THEN COUNT( * ) WHEN NULL NOT IN ( COUNT( DISTINCT + 86 ) * - COUNT( * ) ) THEN + 53 ELSE ( 66 ) * - CAST( NULL AS SIGNED ) + 10 END
----
1

skipif mysql # not compatible
query I rowsort label-1389
SELECT CASE WHEN + - 44 <> 44 * - - 17 + 30 AND NOT NULL IS NOT NULL THEN COUNT ( * ) WHEN NULL NOT IN ( COUNT ( DISTINCT + 86 ) * - COUNT ( * ) ) THEN + 53 ELSE ( 66 ) * - CAST ( NULL AS INTEGER ) + 10 END
----
1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1391
SELECT DISTINCT - - 27 AS col2, - 44 DIV - 44 col0
----
27
1

skipif mysql # not compatible
query II rowsort label-1391
SELECT DISTINCT - - 27 AS col2, - 44 / - 44 col0
----
27
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1392
SELECT ALL - - 2 AS col0, + 82 - - COUNT( 92 )
----
2
83

skipif mysql # not compatible
query II rowsort label-1392
SELECT ALL - - 2 AS col0, + 82 - - COUNT ( 92 )
----
2
83

query I rowsort
SELECT + + NULLIF ( - + 14, - 98 ) * - 79 + 7
----
1113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1394
SELECT DISTINCT 11 DIV - - COALESCE ( - COUNT( * ), - 78 + + + CASE - 2 WHEN + 72 THEN + ( + 7 ) WHEN COUNT( * ) THEN 16 * - ( 74 ) WHEN COUNT( * ) THEN NULL ELSE NULL END * + 74 ) - + 25
----
-36

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT 11 / - - COALESCE ( - COUNT ( * ), - 78 + + + CASE - 2 WHEN + 72 THEN + ( + 7 ) WHEN COUNT ( * ) THEN 16 * - ( 74 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END * + 74 ) - + 25
----
-36

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

query II rowsort
SELECT 32 col1, - 13 AS col0
----
32
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1397
SELECT ALL + + 71 DIV NULLIF ( + ( - 48 ), + 55 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL + + 71 / NULLIF ( + ( - 48 ), + 55 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1398
SELECT DISTINCT 75 AS col1, 50 DIV 36 * + + MIN( + 46 ) + + + 34 AS col2
----
75
80

skipif mysql # not compatible
query II rowsort label-1398
SELECT DISTINCT 75 AS col1, 50 / 36 * + + MIN ( + 46 ) + + + 34 AS col2
----
75
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1399
SELECT ALL + + CAST( + - 92 AS SIGNED ) * 43
----
-3956

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL + + CAST ( + - 92 AS INTEGER ) * 43
----
-3956

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

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

query I rowsort
SELECT 93 * 2
----
186

query I rowsort
SELECT ALL - 14 * + 73 AS col2
----
-1022

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT 19 * - + CASE COUNT( * ) WHEN - 81 - - 74 THEN NULL ELSE + 79 END
----
-1501

skipif mysql # not compatible
query I rowsort label-1404
SELECT 19 * - + CASE COUNT ( * ) WHEN - 81 - - 74 THEN NULL ELSE + 79 END
----
-1501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1405
SELECT DISTINCT + NULLIF ( + 3, - 52 * - + 91 + + + 96 * + 55 - - + ( 50 ) / - NULLIF ( ( + 10 ) * + COALESCE ( ( 78 ) * + COUNT( * ), - 75 * ( 2 ) - - COUNT( * ), - 86 + - CAST( NULL AS SIGNED ) ) + - 94, - 53 + + 15 ) ) * 91 AS col0
----
273

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT + NULLIF ( + 3, - 52 * - + 91 + + + 96 * + 55 - - + ( 50 ) / - NULLIF ( ( + 10 ) * + COALESCE ( ( 78 ) * + COUNT ( * ), - 75 * ( 2 ) - - COUNT ( * ), - 86 + - CAST ( NULL AS INTEGER ) ) + - 94, - 53 + + 15 ) ) * 91 AS col0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL + 89 * + NULLIF ( - 94, - 88 * + ( - 72 ) ) * - 20 * + COALESCE ( - 49, 94 - - COUNT( NULLIF ( - 22, 9 ) + 83 * + 81 ) * 9 ) col2
----
-8198680

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL + 89 * + NULLIF ( - 94, - 88 * + ( - 72 ) ) * - 20 * + COALESCE ( - 49, 94 - - COUNT ( NULLIF ( - 22, 9 ) + 83 * + 81 ) * 9 ) col2
----
-8198680

query II rowsort
SELECT 19 - + - 23 col2, - ( - 11 ) AS col2
----
42
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT + COUNT( + - 64 ) * + - 69 * - 95 + 77 + + 18
----
6650

skipif mysql # not compatible
query I rowsort label-1408
SELECT + COUNT ( + - 64 ) * + - 69 * - 95 + 77 + + 18
----
6650

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT - 93 + NULLIF ( + + 38, 54 ) - + NULLIF ( + NULLIF ( - 68, - AVG ( 30 ) * 65 - + COALESCE ( + 46, 9 + - COUNT( * ), - MAX( DISTINCT - 42 ) - - 50 ) ), 83 )
----
13

skipif mysql # not compatible
query I rowsort label-1409
SELECT - 93 + NULLIF ( + + 38, 54 ) - + NULLIF ( + NULLIF ( - 68, - AVG ( 30 ) * 65 - + COALESCE ( + 46, 9 + - COUNT ( * ), - MAX ( DISTINCT - 42 ) - - 50 ) ), 83 )
----
13

query I rowsort
SELECT + 69 + - - 49 * - 45 + ( - CASE + 80 WHEN - ( + 1 ) * - 46 THEN 69 END ) AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( - - 67, 44 )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1412
SELECT + COUNT( * ) + MIN( - 64 ) DIV 12
----
-4

skipif mysql # not compatible
query I rowsort label-1412
SELECT + COUNT ( * ) + MIN ( - 64 ) / 12
----
-4

query I rowsort
SELECT - ( - + 49 ) * + + 17
----
833

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1414
SELECT ALL 57 + 1 col2, SUM( - - 23 ) DIV + 95
----
58
0

skipif mysql # not compatible
query II rowsort label-1414
SELECT ALL 57 + 1 col2, SUM ( - - 23 ) / + 95
----
58
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1415
SELECT ALL CAST( + 4 AS SIGNED ) DIV 75 * + 59 * 87 + 37 * + ( - 98 ) * + 25 col0
----
-90650

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL CAST ( + 4 AS INTEGER ) / 75 * + 59 * 87 + 37 * + ( - 98 ) * + 25 col0
----
-90650

query I rowsort
SELECT ALL 34 + - ( - 86 ) col0
----
120

query I rowsort
SELECT DISTINCT 4 + - 86 AS col0
----
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1418
SELECT ALL + NULLIF ( - - CAST( NULL AS DECIMAL ), + - 84 - - AVG ( - - 21 ) ) col1, + 54 AS col1
----
NULL
54

skipif mysql # not compatible
query II rowsort label-1418
SELECT ALL + NULLIF ( - - CAST ( NULL AS REAL ), + - 84 - - AVG ( - - 21 ) ) col1, + 54 AS col1
----
NULL
54

query I rowsort
SELECT DISTINCT 73 * + - 51 + - + 68
----
-3791

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1420
SELECT DISTINCT - ( + - 59 ) * + COUNT( + - 45 ) + + 51 * 10 DIV - + 34 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT - ( + - 59 ) * + COUNT ( + - 45 ) + + 51 * 10 / - + 34 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1421
SELECT - + 0 * 50 * CAST( NULL AS SIGNED ) + - + 11 + 5 * - CASE + 38 WHEN COUNT( * ) THEN 7 - + ( + 21 ) * 11 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1421
SELECT - + 0 * 50 * CAST ( NULL AS INTEGER ) + - + 11 + 5 * - CASE + 38 WHEN COUNT ( * ) THEN 7 - + ( + 21 ) * 11 ELSE NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT - + 49 * + - 37 - NULLIF ( - - 0, - ( + 38 ) ) + ( - COUNT( * ) ) * - 24 AS col0
----
1837

skipif mysql # not compatible
query I rowsort label-1423
SELECT - + 49 * + - 37 - NULLIF ( - - 0, - ( + 38 ) ) + ( - COUNT ( * ) ) * - 24 AS col0
----
1837

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT + 46 * 46 * + COUNT( * ) AS col1
----
2116

skipif mysql # not compatible
query I rowsort label-1424
SELECT + 46 * 46 * + COUNT ( * ) AS col1
----
2116

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT ALL - + CASE - 93 WHEN - 8 THEN - - 93 * - - 25 * COUNT( * ) * - 47 * AVG ( ALL + 2 ) + ( + 73 ) ELSE NULL END * COUNT( * ) - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL - + CASE - 93 WHEN - 8 THEN - - 93 * - - 25 * COUNT ( * ) * - 47 * AVG ( ALL + 2 ) + ( + 73 ) ELSE NULL END * COUNT ( * ) - + 51
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1427
SELECT ALL + - SUM( DISTINCT - + 64 ) * CAST( - 31 AS SIGNED ) + - + 83 - 9 AS col2
----
-2076

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL + - SUM ( DISTINCT - + 64 ) * CAST ( - 31 AS INTEGER ) + - + 83 - 9 AS col2
----
-2076

query I rowsort
SELECT + + 4 * + - 78
----
-312

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1430
SELECT ALL + SUM( 46 ), 50 AS col0
----
46
50

skipif mysql # not compatible
query II rowsort label-1430
SELECT ALL + SUM ( 46 ), 50 AS col0
----
46
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1431
SELECT - 48 * ( 96 ) + + 7 + + 25 DIV ( - - 8 ) * - 30 AS col1
----
-4691

skipif mysql # not compatible
query I rowsort label-1431
SELECT - 48 * ( 96 ) + + 7 + + 25 / ( - - 8 ) * - 30 AS col1
----
-4691

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT COALESCE ( - 53, - 77 + COUNT( * ) + - + 66 - + - 48 * + 0 * + 96 - - 4 ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-1432
SELECT COALESCE ( - 53, - 77 + COUNT ( * ) + - + 66 - + - 48 * + 0 * + 96 - - 4 ) col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT - + 33 * + + COUNT( * ) + + 86 + + COUNT( * ) * + + 23 * + 71 * 96 + 96 AS col1
----
156917

skipif mysql # not compatible
query I rowsort label-1433
SELECT - + 33 * + + COUNT ( * ) + + 86 + + COUNT ( * ) * + + 23 * + 71 * 96 + 96 AS col1
----
156917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1434
SELECT DISTINCT + - 27 * + 38, - COALESCE ( + CASE 76 WHEN - 65 * + CASE - 49 WHEN 77 DIV 68 THEN - 44 * + 70 ELSE NULL END THEN - 79 WHEN MAX( DISTINCT + 88 ) THEN + COUNT( * ) DIV ( + 38 * + SUM( ( - 41 ) * 37 ) ) + 33 ELSE NULL END, 41 + - 30 * - CAST( + ( + 87 ) AS SIGNED ) ) DIV - 7 AS col2
----
-1026
378

skipif mysql # not compatible
query II rowsort label-1434
SELECT DISTINCT + - 27 * + 38, - COALESCE ( + CASE 76 WHEN - 65 * + CASE - 49 WHEN 77 / 68 THEN - 44 * + 70 ELSE NULL END THEN - 79 WHEN MAX ( DISTINCT + 88 ) THEN + COUNT ( * ) / ( + 38 * + SUM ( ( - 41 ) * 37 ) ) + 33 ELSE NULL END, 41 + - 30 * - CAST ( + ( + 87 ) AS INTEGER ) ) / - 7 AS col2
----
-1026
378

query I rowsort
SELECT DISTINCT ( ( 17 ) ) col2
----
17

query I rowsort
SELECT - 30 + + 16 * - 55 AS col1
----
-910

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT - COUNT( * ) + - + 94 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-1438
SELECT - COUNT ( * ) + - + 94 AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1439
SELECT ALL + 85 + + 96 + - - COUNT( * ) - + - CASE 12 WHEN - 19 THEN - 39 + - - 21 * 2 WHEN - CAST( NULL AS SIGNED ) - 77 THEN NULL ELSE NULL END + - COUNT( * ) * + ( + AVG ( DISTINCT + ( - 97 ) ) + 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL + 85 + + 96 + - - COUNT ( * ) - + - CASE 12 WHEN - 19 THEN - 39 + - - 21 * 2 WHEN - CAST ( NULL AS INTEGER ) - 77 THEN NULL ELSE NULL END + - COUNT ( * ) * + ( + AVG ( DISTINCT + ( - 97 ) ) + 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ( + 15 ) * - 90 - + COUNT( * ) * - + 69 + 37 + - 47 AS col2
----
-1291

skipif mysql # not compatible
query I rowsort label-1440
SELECT ( + 15 ) * - 90 - + COUNT ( * ) * - + 69 + 37 + - 47 AS col2
----
-1291

query I rowsort
SELECT ALL - 13 * + 21 AS col1
----
-273

query II rowsort
SELECT ALL + 58 + - 61 + + + 65 AS col1, + 7 * - 65 * + - 58 AS col1
----
62
26390

query I rowsort
SELECT DISTINCT - 4 + - 95
----
-99

query I rowsort
SELECT - 63 * - - 22 AS col0
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ALL - ( + 35 ) * MAX( DISTINCT + - 36 )
----
1260

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL - ( + 35 ) * MAX ( DISTINCT + - 36 )
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL + 59 + 89 + + 1 - + + 66 + + 98 * + + COUNT( * ) AS col2
----
181

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL + 59 + 89 + + 1 - + + 66 + + 98 * + + COUNT ( * ) AS col2
----
181

query I rowsort
SELECT + 16 + - 90 col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL - 86 + COUNT( * ) - + 71 + - COALESCE ( + + 11, + + 50 + + + 46, 79, + 98 ) AS col0
----
-167

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL - 86 + COUNT ( * ) - + 71 + - COALESCE ( + + 11, + + 50 + + + 46, 79, + 98 ) AS col0
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1449
SELECT + CAST( - 64 AS SIGNED ) + COUNT( - 71 ) - - 40 * + + 6 - - CASE + ( COUNT( 15 ) ) WHEN - 86 THEN 17 ELSE 70 END
----
247

skipif mysql # not compatible
query I rowsort label-1449
SELECT + CAST ( - 64 AS INTEGER ) + COUNT ( - 71 ) - - 40 * + + 6 - - CASE + ( COUNT ( 15 ) ) WHEN - 86 THEN 17 ELSE 70 END
----
247

query I rowsort
SELECT ALL + 23 + 82 * + COALESCE ( 38, 15 )
----
3139

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1451
SELECT - COALESCE ( + - 92, + ( 3 ) DIV + CAST( NULL AS SIGNED ) ) * + NULLIF ( 52, + + 71 ) AS col1
----
4784

skipif mysql # not compatible
query I rowsort label-1451
SELECT - COALESCE ( + - 92, + ( 3 ) / + CAST ( NULL AS INTEGER ) ) * + NULLIF ( 52, + + 71 ) AS col1
----
4784

query I rowsort
SELECT - ( - 44 )
----
44

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

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

query I rowsort
SELECT - ( 53 ) AS col0
----
-53

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

query I rowsort
SELECT + + 60 * 66 AS col1
----
3960

onlyif mysql # aggregate syntax: 
query II rowsort label-1457
SELECT + + 23, - 96 - - 28 * + - COUNT( * ) * + 67 + - 22 * - 10 AS col1
----
23
-1752

skipif mysql # not compatible
query II rowsort label-1457
SELECT + + 23, - 96 - - 28 * + - COUNT ( * ) * + 67 + - 22 * - 10 AS col1
----
23
-1752

query II rowsort
SELECT 43, + 85 col2
----
43
85

query I rowsort
SELECT DISTINCT - 32 * + 14 AS col2
----
-448

onlyif mysql # DIV for integer division: 
query I rowsort label-1460
SELECT ALL - + 98 DIV - 59 - + 4
----
-3

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL - + 98 / - 59 - + 4
----
-3

query I rowsort
SELECT DISTINCT + 16 * - 1
----
-16

query I rowsort
SELECT ALL 5 * 70
----
350

onlyif mysql # aggregate syntax: 
query II rowsort label-1463
SELECT + 44 * - 77 + MAX( - + 18 ), - 28 AS col2
----
-3406
-28

skipif mysql # not compatible
query II rowsort label-1463
SELECT + 44 * - 77 + MAX ( - + 18 ), - 28 AS col2
----
-3406
-28

query I rowsort
SELECT ALL + + 84 col2
----
84

query I rowsort
SELECT + + ( - 63 ) + - 47
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT ALL - 38 * 36 * - ( + - COUNT( * ) ) * 23 - - + 60 AS col2
----
-31404

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL - 38 * 36 * - ( + - COUNT ( * ) ) * 23 - - + 60 AS col2
----
-31404

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT ALL + - CASE + 89 WHEN - - 1 THEN - + 90 + + - 81 ELSE ( + 30 ) DIV - COALESCE ( - 80, 68 + - 42 ) + - 69 END
----
69

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL + - CASE + 89 WHEN - - 1 THEN - + 90 + + - 81 ELSE ( + 30 ) / - COALESCE ( - 80, 68 + - 42 ) + - 69 END
----
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT NULLIF ( 50, + 17 + - + COUNT( * ) + - 28 + - - 58 / + + 58 )
----
50

skipif mysql # not compatible
query I rowsort label-1470
SELECT NULLIF ( 50, + 17 + - + COUNT ( * ) + - 28 + - - 58 / + + 58 )
----
50

query I rowsort
SELECT - 0 * 33 + + + 80
----
80

query I rowsort
SELECT + 47 * - + 85
----
-3995

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT - COALESCE ( - + 8, COUNT( * ) ) + - 24 - - - 77 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-1473
SELECT - COALESCE ( - + 8, COUNT ( * ) ) + - 24 - - - 77 AS col2
----
-93

query I rowsort
SELECT ALL + - 91 AS col1
----
-91

query I rowsort
SELECT + 60 * - 89 AS col0
----
-5340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1476
SELECT DISTINCT 34 DIV + COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT 34 / + COUNT ( * ) AS col0
----
34

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

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

query I rowsort
SELECT - 6 * + 46
----
-276

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1480
SELECT ALL + CAST( + 23 AS SIGNED ) + 13 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL + CAST ( + 23 AS INTEGER ) + 13 AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1481
SELECT ALL - 26 + 78 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL - 26 + 78 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1482
SELECT 38 * + CAST( NULL AS SIGNED ) * 15 * + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1482
SELECT 38 * + CAST ( NULL AS INTEGER ) * 15 * + 25 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1483
SELECT ALL + 54 + - CAST( NULL AS SIGNED ) AS col0, 59 + - + 56 AS col1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1483
SELECT ALL + 54 + - CAST ( NULL AS INTEGER ) AS col0, 59 + - + 56 AS col1
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1484
SELECT 54 - + - CAST( NULL AS SIGNED ) + COUNT( 16 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT 54 - + - CAST ( NULL AS INTEGER ) + COUNT ( 16 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1485
SELECT DISTINCT + CAST( - 16 AS SIGNED ) + + ( - 23 )
----
-39

skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT + CAST ( - 16 AS INTEGER ) + + ( - 23 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1486
SELECT DISTINCT - 82 DIV - 57, + CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1486
SELECT DISTINCT - 82 / - 57, + CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT DISTINCT - 73 + 17 + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT - 73 + 17 + COUNT ( * )
----
-55

query I rowsort
SELECT 53 + 41
----
94

query I rowsort
SELECT 89 * 56
----
4984

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1490
SELECT DISTINCT - 82 DIV 76 AS col0, + CASE - 0 WHEN + COUNT( * ) THEN 4 ELSE NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1490
SELECT DISTINCT - 82 / 76 AS col0, + CASE - 0 WHEN + COUNT ( * ) THEN 4 ELSE NULL END
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1491
SELECT 63 + 24 + 41 - + - ( - + 63 ) DIV + - 86 * - MIN( 37 ) AS col0
----
128

skipif mysql # not compatible
query I rowsort label-1491
SELECT 63 + 24 + 41 - + - ( - + 63 ) / + - 86 * - MIN ( 37 ) AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT ALL - 64 * + MIN( + 75 )
----
-4800

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL - 64 * + MIN ( + 75 )
----
-4800

onlyif mysql # DIV for integer division: 
query II rowsort label-1493
SELECT 72 + + 98 col2, - 27 DIV - - 53 AS col2
----
170
0

skipif mysql # not compatible
query II rowsort label-1493
SELECT 72 + + 98 col2, - 27 / - - 53 AS col2
----
170
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1494
SELECT 8 DIV + + 16
----
0

skipif mysql # not compatible
query I rowsort label-1494
SELECT 8 / + + 16
----
0

query I rowsort
SELECT 79 * - - 51 AS col1
----
4029

query I rowsort
SELECT 82 + + 84
----
166

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1497
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * MAX( DISTINCT - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT - - CAST ( NULL AS REAL ) * MAX ( DISTINCT - 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT - 37 * + ( CASE + 86 WHEN + + CASE WHEN 90 IS NOT NULL THEN ( 22 ) * + 14 END THEN NULL WHEN + NULLIF ( 8, - NULLIF ( - MIN( 66 ), 68 ) ) THEN 29 ELSE NULL END ) * - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1498
SELECT - 37 * + ( CASE + 86 WHEN + + CASE WHEN 90 IS NOT NULL THEN ( 22 ) * + 14 END THEN NULL WHEN + NULLIF ( 8, - NULLIF ( - MIN ( 66 ), 68 ) ) THEN 29 ELSE NULL END ) * - 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT ALL - 42 - - - 32 * + MIN( + 58 ) * 28 AS col0
----
-52010

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL - 42 - - - 32 * + MIN ( + 58 ) * 28 AS col0
----
-52010

query I rowsort
SELECT + + 63 col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT COALESCE ( + 44, - + 92 * + 91 + 16 * COUNT( * ) * - - MAX( + ( - 43 ) ) + 30 + 59 * + COUNT( * ), - 39 )
----
44

skipif mysql # not compatible
query I rowsort label-1501
SELECT COALESCE ( + 44, - + 92 * + 91 + 16 * COUNT ( * ) * - - MAX ( + ( - 43 ) ) + 30 + 59 * + COUNT ( * ), - 39 )
----
44

query I rowsort
SELECT ALL - - 39 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1503
SELECT 87 DIV + - 31 + + + 22 - - 64 * NULLIF ( + - 73, - 15 ) DIV + 53 + + 43
----
-25

skipif mysql # not compatible
query I rowsort label-1503
SELECT 87 / + - 31 + + + 22 - - 64 * NULLIF ( + - 73, - 15 ) / + 53 + + 43
----
-25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT COUNT( * ) * COUNT( DISTINCT + - 35 ) + + + NULLIF ( - 48, + 13 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1505
SELECT COUNT ( * ) * COUNT ( DISTINCT + - 35 ) + + + NULLIF ( - 48, + 13 ) AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1506
SELECT CAST( 24 AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1506
SELECT CAST ( 24 AS INTEGER ) AS col0
----
24

query I rowsort
SELECT ALL + 10 + - ( - 50 ) * 16 * 67 * 32
----
1715210

query I rowsort
SELECT - 54 * 71 AS col1
----
-3834

query I rowsort
SELECT + 72 + + 16 AS col0
----
88

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1511
SELECT - 81 DIV + 40, COUNT( * ) + - 38 + + 50 DIV 77 + - + 0 AS col2
----
-2
-37

skipif mysql # not compatible
query II rowsort label-1511
SELECT - 81 / + 40, COUNT ( * ) + - 38 + + 50 / 77 + - + 0 AS col2
----
-2
-37

query I rowsort
SELECT 28 + 84 - - 74
----
186

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

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

query I rowsort
SELECT 73 * - + 34 AS col2
----
-2482

query I rowsort
SELECT ALL 82 + + 82 + - 51 * 96 AS col1
----
-4732

query I rowsort
SELECT 47 + + - ( + 41 ) * - 77 AS col1
----
3204

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL 52 + COUNT( * ) * + 87 * - 35 AS col1
----
-2993

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL 52 + COUNT ( * ) * + 87 * - 35 AS col1
----
-2993

query II rowsort
SELECT ALL + 59 + - 43 * 28 AS col1, 57
----
-1145
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1519
SELECT ALL ( - SUM( - - 52 ) ) + + + 37 + CASE WHEN NULL < MAX( ALL - 27 ) THEN + + 53 + - + 61 * - 41 ELSE NULLIF ( - MAX( DISTINCT + NULLIF ( ( + 14 ), COALESCE ( + 88, 89 ) / - 92 ) ), + CAST( NULL AS SIGNED ) + + 82 / 99 ) END + - 97 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL ( - SUM ( - - 52 ) ) + + + 37 + CASE WHEN NULL < MAX ( ALL - 27 ) THEN + + 53 + - + 61 * - 41 ELSE NULLIF ( - MAX ( DISTINCT + NULLIF ( ( + 14 ), COALESCE ( + 88, 89 ) / - 92 ) ), + CAST ( NULL AS INTEGER ) + + 82 / 99 ) END + - 97 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 95 * - 43 AS col0
----
4085

query I rowsort
SELECT 73 + ( 99 )
----
172

query I rowsort
SELECT ALL - 86 * + 33 AS col2
----
-2838

query II rowsort
SELECT - 81 AS col1, - 47 * - 63
----
-81
2961

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT 98 + - + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-1524
SELECT 98 + - + COUNT ( * )
----
97

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

skipif mysql # not compatible
query I rowsort label-1525
SELECT - SUM ( DISTINCT - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT 8 + - - 66 * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-1526
SELECT 8 + - - 66 * - COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT ALL + COUNT( * ) - SUM( DISTINCT + 50 )
----
-49

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL + COUNT ( * ) - SUM ( DISTINCT + 50 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT - SUM( DISTINCT - 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-1528
SELECT - SUM ( DISTINCT - 39 ) AS col2
----
39

query I rowsort
SELECT ALL 39 * + CASE - - 48 WHEN - 28 + - 16 THEN - 28 * - 35 ELSE NULL END
----
NULL

query I rowsort
SELECT 88 * - 32
----
-2816

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

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

query I rowsort
SELECT + 13 + - 48 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT ALL + + CASE + COALESCE ( 41, + COUNT( DISTINCT + + 26 ), 4 ) WHEN + COALESCE ( - 19, + 37 * + 47 ) THEN + COUNT( * ) END / COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL + + CASE + COALESCE ( 41, + COUNT ( DISTINCT + + 26 ), 4 ) WHEN + COALESCE ( - 19, + 37 * + 47 ) THEN + COUNT ( * ) END / COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - ( 1 ) + + + 37 + + 10 * - + 29 + 4 - - + 39
----
-211

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL + + NULLIF ( 29, + 62 * + 97 + 26 ) * - MAX( + - 42 )
----
1218

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL + + NULLIF ( 29, + 62 * + 97 + 26 ) * - MAX ( + - 42 )
----
1218

query I rowsort
SELECT - 35 * - 84 col0
----
2940

onlyif mysql # aggregate syntax: 
query II rowsort label-1537
SELECT + 42, 21 * - COUNT( * ) * + - MAX( DISTINCT 32 ) AS col0
----
42
672

skipif mysql # not compatible
query II rowsort label-1537
SELECT + 42, 21 * - COUNT ( * ) * + - MAX ( DISTINCT 32 ) AS col0
----
42
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT ALL CASE + 90 WHEN - 89 * - 91 + + 39 * - 53 * + - 49 THEN 52 + - - NULLIF ( 65, - NULLIF ( - COUNT( * ), CASE + 98 WHEN CAST( 70 AS SIGNED ) THEN NULL WHEN + 41 THEN 51 WHEN 61 + SUM( - 58 - + 78 / ( 82 + + 81 ) ) THEN NULL END * - 15 ) * 38 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL CASE + 90 WHEN - 89 * - 91 + + 39 * - 53 * + - 49 THEN 52 + - - NULLIF ( 65, - NULLIF ( - COUNT ( * ), CASE + 98 WHEN CAST ( 70 AS INTEGER ) THEN NULL WHEN + 41 THEN 51 WHEN 61 + SUM ( - 58 - + 78 / ( 82 + + 81 ) ) THEN NULL END * - 15 ) * 38 ) END
----
NULL

query I rowsort
SELECT ALL + - 62 * - 81 col0
----
5022

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

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

query I rowsort
SELECT ( + + 96 ) * + ( + - 99 ) AS col1
----
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT + NULLIF ( - 83, - + COUNT( * ) - - COUNT( * ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-1542
SELECT + NULLIF ( - 83, - + COUNT ( * ) - - COUNT ( * ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT ALL - - 63 * - 99 + - 38 + + + 81 * + NULLIF ( - 50, - NULLIF ( + 3, + COUNT( * ) + NULLIF ( 40, - ( 96 ) * 49 ) + 39 * 32 ) ) AS col0
----
-10325

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL - - 63 * - 99 + - 38 + + + 81 * + NULLIF ( - 50, - NULLIF ( + 3, + COUNT ( * ) + NULLIF ( 40, - ( 96 ) * 49 ) + 39 * 32 ) ) AS col0
----
-10325

query I rowsort
SELECT - 51 + + + 89 AS col0
----
38

query I rowsort
SELECT 93 * - - 16
----
1488

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT ALL + - COUNT( ALL + 44 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL + - COUNT ( ALL + 44 ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1547
SELECT ALL - MIN( ALL + + CAST( NULL AS SIGNED ) ) * - CASE - 87 WHEN + 15 * + + ( + + 83 ) THEN + 24 + + 38 ELSE NULL END + + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - MIN ( ALL + + CAST ( NULL AS INTEGER ) ) * - CASE - 87 WHEN + 15 * + + ( + + 83 ) THEN + 24 + + 38 ELSE NULL END + + 1 AS col1
----
NULL

query I rowsort
SELECT - - 98 * + COALESCE ( + - 20, + 40 )
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT - COUNT( * ) - 51 * 38 * - - 52 col1
----
-100777

skipif mysql # not compatible
query I rowsort label-1549
SELECT - COUNT ( * ) - 51 * 38 * - - 52 col1
----
-100777

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT + CASE - - 58 WHEN + 17 THEN NULL WHEN - COUNT( * ) THEN + - 40 + 9 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1550
SELECT + CASE - - 58 WHEN + 17 THEN NULL WHEN - COUNT ( * ) THEN + - 40 + 9 END AS col1
----
NULL

query I rowsort
SELECT ALL 41 * + ( + 77 ) * - 85
----
-268345

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT DISTINCT ( - 28 ) * 33 * + MAX( DISTINCT 68 ) - + 25
----
-62857

skipif mysql # not compatible
query I rowsort label-1553
SELECT DISTINCT ( - 28 ) * 33 * + MAX ( DISTINCT 68 ) - + 25
----
-62857

query I rowsort
SELECT ALL + 0 * 97 * + 27 * - 58 AS col1
----
0

query I rowsort
SELECT ALL 57 * + + 84 - NULLIF ( 2, + 91 )
----
4786

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT DISTINCT 40 * + - 6 * - COUNT( * ) * + ( - ( + - COUNT( * ) ) ) AS col1
----
240

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT 40 * + - 6 * - COUNT ( * ) * + ( - ( + - COUNT ( * ) ) ) AS col1
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1557
SELECT ALL + 18 AS col0, - COUNT( * ) * - 33 + + 13 * + 55 * CAST( NULL AS SIGNED )
----
18
NULL

skipif mysql # not compatible
query II rowsort label-1557
SELECT ALL + 18 AS col0, - COUNT ( * ) * - 33 + + 13 * + 55 * CAST ( NULL AS INTEGER )
----
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT MAX( ALL + - 11 ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-1558
SELECT MAX ( ALL + - 11 ) col2
----
-11

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

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

query II rowsort
SELECT - ( - + 69 ), - 79 * + - 18 AS col2
----
69
1422

query I rowsort
SELECT ALL 69 - + - 30
----
99

query II rowsort
SELECT 64, - 69 col0
----
64
-69

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

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

query II rowsort
SELECT ALL 88, + 83 + 47 AS col2
----
88
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1565
SELECT + CAST( + 96 AS SIGNED ) - + - 33 col0
----
129

skipif mysql # not compatible
query I rowsort label-1565
SELECT + CAST ( + 96 AS INTEGER ) - + - 33 col0
----
129

query I rowsort
SELECT - COALESCE ( + + 23, + 56 ) AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1567
SELECT ALL COUNT( * ) AS col0, CASE + 53 WHEN - 73 * + - 16 + + + 81 + + + 35 * - 17 THEN NULL WHEN 87 THEN NULL WHEN - NULLIF ( - ( + CASE NULLIF ( - COUNT( * ), - 94 ) WHEN + 19 THEN NULLIF ( + 62, - COUNT( * ) ) END ), - 77 + - 71 * + 51 ) * - COUNT( * ) THEN + 64 DIV 29 + + 39 ELSE 92 DIV 84 END AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-1567
SELECT ALL COUNT ( * ) AS col0, CASE + 53 WHEN - 73 * + - 16 + + + 81 + + + 35 * - 17 THEN NULL WHEN 87 THEN NULL WHEN - NULLIF ( - ( + CASE NULLIF ( - COUNT ( * ), - 94 ) WHEN + 19 THEN NULLIF ( + 62, - COUNT ( * ) ) END ), - 77 + - 71 * + 51 ) * - COUNT ( * ) THEN + 64 / 29 + + 39 ELSE 92 / 84 END AS col0
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1568
SELECT ALL MAX( - 96 ) DIV 11 * 58 * ( + 32 ) * + - CAST( + 94 AS SIGNED ) - + 4
----
1395708

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL MAX ( - 96 ) / 11 * 58 * ( + 32 ) * + - CAST ( + 94 AS INTEGER ) - + 4
----
1395708

query I rowsort
SELECT + 3 * - NULLIF ( - 27, 5 + + 2 ) AS col2
----
81

query I rowsort
SELECT ALL - 95 * + 30
----
-2850

onlyif mysql # DIV for integer division: 
query I rowsort label-1571
SELECT + + 90 DIV - - 21
----
4

skipif mysql # not compatible
query I rowsort label-1571
SELECT + + 90 / - - 21
----
4

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT - + COUNT( * ) - 86
----
-87

skipif mysql # not compatible
query I rowsort label-1574
SELECT - + COUNT ( * ) - 86
----
-87

query I rowsort
SELECT - + 77 AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1576
SELECT + + CAST( + + ( + COALESCE ( + - 16, + 39, + ( 29 ) + - COUNT( * ) * - COUNT( * ) + + 75 / + 82 ) ) AS SIGNED ) + + 45 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1576
SELECT + + CAST ( + + ( + COALESCE ( + - 16, + 39, + ( 29 ) + - COUNT ( * ) * - COUNT ( * ) + + 75 / + 82 ) ) AS INTEGER ) + + 45 AS col2
----
29

query I rowsort
SELECT - ( 1 ) AS col1
----
-1

query I rowsort
SELECT + - 96 + 66 AS col1
----
-30

query I rowsort
SELECT ALL + ( - - 55 ) + + 58
----
113

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

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 63 + - 37 + - - CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

query I rowsort
SELECT - 27 + - + 52 AS col1
----
-79

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1585
SELECT - NULLIF ( + MAX( + 11 ), CAST( NULL AS DECIMAL ) ) + + 56
----
45

skipif mysql # not compatible
query I rowsort label-1585
SELECT - NULLIF ( + MAX ( + 11 ), CAST ( NULL AS REAL ) ) + + 56
----
45

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1587
SELECT - + 45 * - - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) + + CASE + 1 WHEN - - COUNT( * ) / - - 70 THEN CASE 71 WHEN CAST( NULL AS SIGNED ) * - 90 * 59 THEN + ( - 87 ) ELSE + AVG ( ALL - 42 ) END + - COUNT( * ) * - 19 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT - + 45 * - - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) + + CASE + 1 WHEN - - COUNT ( * ) / - - 70 THEN CASE 71 WHEN CAST ( NULL AS INTEGER ) * - 90 * 59 THEN + ( - 87 ) ELSE + AVG ( ALL - 42 ) END + - COUNT ( * ) * - 19 END AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + + NULLIF ( + 18, - + ( - 52 ) ) * - 13 col1
----
-234

onlyif mysql # aggregate syntax: 
query II rowsort label-1591
SELECT ( COUNT( * ) ) col1, - SUM( DISTINCT + 26 ) * - 91 - + ( + COUNT( * ) )
----
1
2365

skipif mysql # not compatible
query II rowsort label-1591
SELECT ( COUNT ( * ) ) col1, - SUM ( DISTINCT + 26 ) * - 91 - + ( + COUNT ( * ) )
----
1
2365

query I rowsort
SELECT DISTINCT - ( - - 3 ) * 45 * + 19 AS col0
----
-2565

query I rowsort
SELECT 4 * - 64 + + 97 col1
----
-159

query I rowsort
SELECT ALL - 68 * + 94
----
-6392

query II rowsort
SELECT DISTINCT + 14 * + 89 col2, ( + + 28 ) + + + 65
----
1246
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT 85 * - 2 - + MAX( DISTINCT 9 ) * 92
----
-998

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT 85 * - 2 - + MAX ( DISTINCT 9 ) * 92
----
-998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1597
SELECT ( + COUNT( * ) ) AS col2, CASE MAX( DISTINCT - 62 ) WHEN + ( - NULLIF ( + MAX( - 60 ), 40 ) ) * - + 1 THEN + 80 WHEN MIN( DISTINCT CAST( NULL AS SIGNED ) ) THEN - COUNT( * ) ELSE NULL END * 98 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1597
SELECT ( + COUNT ( * ) ) AS col2, CASE MAX ( DISTINCT - 62 ) WHEN + ( - NULLIF ( + MAX ( - 60 ), 40 ) ) * - + 1 THEN + 80 WHEN MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN - COUNT ( * ) ELSE NULL END * 98 AS col2
----
1
NULL

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

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

query I rowsort
SELECT ALL + COALESCE ( + 6, + ( - 2 ) + 98 - - + 55 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT - COUNT( * ) + + 37 * 42 * - 23 * + 82
----
-2930845

skipif mysql # not compatible
query I rowsort label-1600
SELECT - COUNT ( * ) + + 37 * 42 * - 23 * + 82
----
-2930845

query I rowsort
SELECT + 87 - + - 58
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1602
SELECT + 46 * + 49, - ( CAST( - 65 AS SIGNED ) ) AS col1
----
2254
65

skipif mysql # not compatible
query II rowsort label-1602
SELECT + 46 * + 49, - ( CAST ( - 65 AS INTEGER ) ) AS col1
----
2254
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT CASE - 81 WHEN + + 25 * 83 + 66 * - COUNT( * ) THEN NULL ELSE + 14 END
----
14

skipif mysql # not compatible
query I rowsort label-1604
SELECT CASE - 81 WHEN + + 25 * 83 + 66 * - COUNT ( * ) THEN NULL ELSE + 14 END
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1605
SELECT NULLIF ( NULLIF ( MAX( ALL CAST( NULL AS SIGNED ) ), + 11 + + 4 * + 1 ), - ( COUNT( * ) ) + + 12 + 22 + - + 17 * 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1605
SELECT NULLIF ( NULLIF ( MAX ( ALL CAST ( NULL AS INTEGER ) ), + 11 + + 4 * + 1 ), - ( COUNT ( * ) ) + + 12 + 22 + - + 17 * 79 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1606
SELECT - CAST( NULL AS SIGNED ) * + MAX( DISTINCT - + 7 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1606
SELECT - CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT - + 7 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1607
SELECT ALL NULLIF ( - 54, - 43 ) * - COUNT( DISTINCT 57 ), COUNT( * ) AS col2
----
54
1

skipif mysql # not compatible
query II rowsort label-1607
SELECT ALL NULLIF ( - 54, - 43 ) * - COUNT ( DISTINCT 57 ), COUNT ( * ) AS col2
----
54
1

query I rowsort
SELECT DISTINCT ( ( + - 52 ) ) * 84 AS col0
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT - CASE - ( + 0 ) WHEN 18 + - 60 THEN NULL WHEN - CASE - 67 WHEN + - 79 * + COUNT( * ) / 30 - + 32 * + 69 THEN MAX( DISTINCT + 34 ) / + 0 ELSE NULL END * + ( + 45 ) + + 19 * 17 THEN 20 WHEN + SUM( ALL + 78 ) + + 69 THEN 29 * 74 ELSE + NULLIF ( 82, + 72 + 26 ) * 7 END * - 92 + MIN( 88 + 57 ) AS col0
----
52953

skipif mysql # not compatible
query I rowsort label-1609
SELECT - CASE - ( + 0 ) WHEN 18 + - 60 THEN NULL WHEN - CASE - 67 WHEN + - 79 * + COUNT ( * ) / 30 - + 32 * + 69 THEN MAX ( DISTINCT + 34 ) / + 0 ELSE NULL END * + ( + 45 ) + + 19 * 17 THEN 20 WHEN + SUM ( ALL + 78 ) + + 69 THEN 29 * 74 ELSE + NULLIF ( 82, + 72 + 26 ) * 7 END * - 92 + MIN ( 88 + 57 ) AS col0
----
52953

onlyif mysql # aggregate syntax: 
query II rowsort label-1610
SELECT ALL + 43 * 94 * + 62 * 9 + 46 + - 3 + + - COUNT( * ) AS col1, - 2 + - + CASE + 6 WHEN 11 THEN NULL ELSE 79 - 8 END col0
----
2255478
-73

skipif mysql # not compatible
query II rowsort label-1610
SELECT ALL + 43 * 94 * + 62 * 9 + 46 + - 3 + + - COUNT ( * ) AS col1, - 2 + - + CASE + 6 WHEN 11 THEN NULL ELSE 79 - 8 END col0
----
2255478
-73

query I rowsort
SELECT - - 15 col0
----
15

query I rowsort
SELECT + 31 + 53 * + 54
----
2893

onlyif mysql # DIV for integer division: 
query I rowsort label-1613
SELECT + 44 + 98 + - 32 DIV + COALESCE ( - 18, - 1 * + 72 )
----
143

skipif mysql # not compatible
query I rowsort label-1613
SELECT + 44 + 98 + - 32 / + COALESCE ( - 18, - 1 * + 72 )
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-1614
SELECT - + COUNT( DISTINCT - 89 ) AS col0, - 45 + COALESCE ( + + NULLIF ( - - 64, + - 28 ), - 44 ) * - ( - COUNT( * ) ) * + + 90 + 76 - - 48 * - 55
----
-1
3151

skipif mysql # not compatible
query II rowsort label-1614
SELECT - + COUNT ( DISTINCT - 89 ) AS col0, - 45 + COALESCE ( + + NULLIF ( - - 64, + - 28 ), - 44 ) * - ( - COUNT ( * ) ) * + + 90 + 76 - - 48 * - 55
----
-1
3151

query I rowsort
SELECT ALL 28 + - 28 + + 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT ALL COUNT( * ) + + 10 - + 76 * - ( + - 50 ) * + + MAX( DISTINCT 56 ) + - - 16 * - COUNT( * ) * + 25 AS col0
----
-213189

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL COUNT ( * ) + + 10 - + 76 * - ( + - 50 ) * + + MAX ( DISTINCT 56 ) + - - 16 * - COUNT ( * ) * + 25 AS col0
----
-213189

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

skipif mysql # not compatible
query I rowsort label-1617
SELECT + + 34 * - - COUNT ( * ) / - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL - COUNT( * ) * - 0 * 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL - COUNT ( * ) * - 0 * 60 AS col2
----
0

query II rowsort
SELECT DISTINCT 90 + + 79, - 5 AS col1
----
169
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1620
SELECT - CAST( 92 AS SIGNED ) AS col0, 25 * + 61 AS col1
----
-92
1525

skipif mysql # not compatible
query II rowsort label-1620
SELECT - CAST ( 92 AS INTEGER ) AS col0, 25 * + 61 AS col1
----
-92
1525

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT ( + 99 ) DIV - ( 48 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1621
SELECT ( + 99 ) / - ( 48 ) AS col2
----
-2

query I rowsort
SELECT ALL - 79 + + 56
----
-23

query I rowsort
SELECT 94 + + - 38 * + + 44 AS col2
----
-1578

query I rowsort
SELECT + 91 * - 79
----
-7189

query I rowsort
SELECT 53 * + 84 AS col2
----
4452

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT COALESCE ( - 90, 60 * + 71 DIV - 80 + + 4 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-1627
SELECT COALESCE ( - 90, 60 * + 71 / - 80 + + 4 ) AS col0
----
-90

query I rowsort
SELECT - - 84 col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1629
SELECT COUNT( * ) * - CASE - 72 WHEN + 63 THEN NULL WHEN - CAST( NULL AS SIGNED ) * SUM( ALL - 37 ) THEN NULL ELSE + - 39 DIV - - 96 + + - 79 - - 14 * + 12 + + 9 END DIV 23
----
-4

skipif mysql # not compatible
query I rowsort label-1629
SELECT COUNT ( * ) * - CASE - 72 WHEN + 63 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * SUM ( ALL - 37 ) THEN NULL ELSE + - 39 / - - 96 + + - 79 - - 14 * + 12 + + 9 END / 23
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1630
SELECT ALL - CAST( NULL AS SIGNED ) * + + 80 + - + 85 + 25 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 80 + - + 85 + 25 col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1631
SELECT 27 DIV - 59 + 87 AS col2, + 55 col1
----
87
55

skipif mysql # not compatible
query II rowsort label-1631
SELECT 27 / - 59 + 87 AS col2, + 55 col1
----
87
55

query II rowsort
SELECT DISTINCT - 34 AS col1, - ( - 46 )
----
-34
46

query I rowsort
SELECT 73 + + 44
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-1634
SELECT 83 AS col2, ( + - COUNT( * ) ) * 23 AS col1
----
83
-23

skipif mysql # not compatible
query II rowsort label-1634
SELECT 83 AS col2, ( + - COUNT ( * ) ) * 23 AS col1
----
83
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT + 37 * 22 DIV + 58 + - 55 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1635
SELECT + 37 * 22 / + 58 + - 55 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1636
SELECT 2 DIV - MAX( - 48 )
----
0

skipif mysql # not compatible
query I rowsort label-1636
SELECT 2 / - MAX ( - 48 )
----
0

query I rowsort
SELECT ALL - 37 * 95
----
-3515

query I rowsort
SELECT 72 * - 32 AS col1
----
-2304

query I rowsort
SELECT ALL + 65 * - - 17
----
1105

onlyif mysql # DIV for integer division: 
query I rowsort label-1640
SELECT 92 DIV + 34 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1640
SELECT 92 / + 34 AS col2
----
2

query I rowsort
SELECT ALL 16 * - 37 AS col1
----
-592

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

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

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

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

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

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

query I rowsort
SELECT ALL + 65 + - 41 * - - 97 + + 80 + 72
----
-3760

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1646
SELECT SUM( DISTINCT - 34 ) DIV + 56 AS col2, 95 * - 91 * + + 64
----
0
-553280

skipif mysql # not compatible
query II rowsort label-1646
SELECT SUM ( DISTINCT - 34 ) / + 56 AS col2, 95 * - 91 * + + 64
----
0
-553280

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1647
SELECT 17 DIV - - CAST( 25 AS SIGNED ) * - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1647
SELECT 17 / - - CAST ( 25 AS INTEGER ) * - 88 AS col1
----
0

query I rowsort
SELECT 97 * - + 28 * - 20 * + 94
----
5106080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1649
SELECT DISTINCT - 76 + - - 64 DIV + 76 + NULLIF ( + 91, 16 * COALESCE ( - 98, - + 35 ) - - 65 * - - 44 + + 0 + + 42 - + 29 * CAST( MAX( DISTINCT 38 ) AS SIGNED ) ) DIV + 27 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT - 76 + - - 64 / + 76 + NULLIF ( + 91, 16 * COALESCE ( - 98, - + 35 ) - - 65 * - - 44 + + 0 + + 42 - + 29 * CAST ( MAX ( DISTINCT 38 ) AS INTEGER ) ) / + 27 AS col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1650
SELECT DISTINCT - SUM( ALL + - 44 ) + + - CAST( - - COUNT( * ) AS SIGNED ) col1
----
43

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT - SUM ( ALL + - 44 ) + + - CAST ( - - COUNT ( * ) AS INTEGER ) col1
----
43

query II rowsort
SELECT - 61 AS col1, 14 * - 89
----
-61
-1246

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT ALL - + 43 + + - MAX( ALL 89 )
----
-132

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL - + 43 + + - MAX ( ALL 89 )
----
-132

query I rowsort
SELECT + 82 - + 92
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-1654
SELECT ALL COUNT( * ) AS col1, 83 - 49 AS col2
----
1
34

skipif mysql # not compatible
query II rowsort label-1654
SELECT ALL COUNT ( * ) AS col1, 83 - 49 AS col2
----
1
34

query II rowsort
SELECT - 45 col1, 49
----
-45
49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1656
SELECT CAST( NULLIF ( + 86, + CAST( + 57 AS DECIMAL ) ) AS SIGNED ) * - - 62 AS col1
----
5332

skipif mysql # not compatible
query I rowsort label-1656
SELECT CAST ( NULLIF ( + 86, + CAST ( + 57 AS REAL ) ) AS INTEGER ) * - - 62 AS col1
----
5332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1657
SELECT ALL - MIN( - ( 17 ) ) + + ( - CAST( + - 2 AS SIGNED ) ) + - + 61
----
-42

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL - MIN ( - ( 17 ) ) + + ( - CAST ( + - 2 AS INTEGER ) ) + - + 61
----
-42

query I rowsort
SELECT - 48 * - 45
----
2160

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

skipif mysql # not compatible
query I rowsort label-1659
SELECT + ( + ( - + SUM ( + 6 ) ) )
----
-6

query I rowsort
SELECT 32 + - + 10
----
22

query I rowsort
SELECT 78 + - - 92 AS col0
----
170

query I rowsort
SELECT 22 - + 31 AS col0
----
-9

query I rowsort
SELECT ALL + + 71 - 17
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT DISTINCT - + NULLIF ( - + 69, 34 ) * + + 47 + - ( + COUNT( * ) ) AS col0
----
3242

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT - + NULLIF ( - + 69, 34 ) * + + 47 + - ( + COUNT ( * ) ) AS col0
----
3242

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

query I rowsort
SELECT ALL - 67 - - 81
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1667
SELECT COUNT( * ) DIV 12 * - 31 + + 25
----
25

skipif mysql # not compatible
query I rowsort label-1667
SELECT COUNT ( * ) / 12 * - 31 + + 25
----
25

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

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

query I rowsort
SELECT 47 + - + 95
----
-48

query II rowsort
SELECT ALL 25, - CASE 17 WHEN 74 * NULLIF ( - 60, - - 46 ) * - - COALESCE ( + 41, - 99 + - + 79 ) THEN 97 WHEN - 95 + - 86 THEN - ( 17 ) + + 82 ELSE NULL END col0
----
25
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1671
SELECT ALL 82 DIV ( - COALESCE ( + - ( 10 ), + 82 ) )
----
8

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL 82 / ( - COALESCE ( + - ( 10 ), + 82 ) )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1672
SELECT 47 DIV - 90 * + MIN( + 16 ) * 60
----
0

skipif mysql # not compatible
query I rowsort label-1672
SELECT 47 / - 90 * + MIN ( + 16 ) * 60
----
0

query II rowsort
SELECT DISTINCT 17 * - 68, + 26 AS col0
----
-1156
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT ALL 76 * - + NULLIF ( - MAX( + - 68 ), - 42 ) AS col2
----
-5168

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL 76 * - + NULLIF ( - MAX ( + - 68 ), - 42 ) AS col2
----
-5168

query I rowsort
SELECT DISTINCT 11 * - + 29 * - NULLIF ( - 1, - 61 + - NULLIF ( + 76, - + 5 * + 36 - - 78 ) ) AS col1
----
-319

query I rowsort
SELECT DISTINCT - 43 col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-1677
SELECT + COUNT( + - 78 ), - 40 AS col1
----
1
-40

skipif mysql # not compatible
query II rowsort label-1677
SELECT + COUNT ( + - 78 ), - 40 AS col1
----
1
-40

query I rowsort
SELECT DISTINCT 75 + 46
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT 78 * + COUNT( * ) + + 74 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-1679
SELECT 78 * + COUNT ( * ) + + 74 AS col0
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1680
SELECT COUNT( * ) * - 96 DIV - 49
----
1

skipif mysql # not compatible
query I rowsort label-1680
SELECT COUNT ( * ) * - 96 / - 49
----
1

query II rowsort
SELECT ALL 10 + - 26 AS col2, + 39 * - + 60
----
-16
-2340

onlyif mysql # DIV for integer division: 
query I rowsort label-1682
SELECT 97 DIV - 56 + + + 31
----
30

skipif mysql # not compatible
query I rowsort label-1682
SELECT 97 / - 56 + + + 31
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-1683
SELECT COUNT( DISTINCT + 17 ) col2, + 78 * - 58 * + + 55
----
1
-248820

skipif mysql # not compatible
query II rowsort label-1683
SELECT COUNT ( DISTINCT + 17 ) col2, + 78 * - 58 * + + 55
----
1
-248820

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL 62 + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL 62 + - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT ALL + COALESCE ( + 59, + 69 + - 54 ) + - MAX( - + CASE + 25 WHEN 79 THEN - + 3 END ) * + - 67 * - + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL + COALESCE ( + 59, + 69 + - 54 ) + - MAX ( - + CASE + 25 WHEN 79 THEN - + 3 END ) * + - 67 * - + 63 AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT - - 22
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1688
SELECT 75 + - NULLIF ( CASE - 55 WHEN 60 * 18 / - 38 * 80 - + 56 THEN NULL WHEN - 5 - - 1 THEN NULL ELSE + + 50 + - 67 + + 27 END, + 12 * - CAST( - 9 AS SIGNED ) ) + 58 * 30 col2
----
1805

skipif mysql # not compatible
query I rowsort label-1688
SELECT 75 + - NULLIF ( CASE - 55 WHEN 60 * 18 / - 38 * 80 - + 56 THEN NULL WHEN - 5 - - 1 THEN NULL ELSE + + 50 + - 67 + + 27 END, + 12 * - CAST ( - 9 AS INTEGER ) ) + 58 * 30 col2
----
1805

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1690
SELECT DISTINCT + 45 + COALESCE ( COUNT( * ), - - ( + + CASE + 50 WHEN - 45 * AVG ( DISTINCT CAST( - + COALESCE ( + + 33, - 38 ) AS SIGNED ) ) THEN 38 END ) ) * - NULLIF ( 24, 66 - - 57 )
----
21

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT + 45 + COALESCE ( COUNT ( * ), - - ( + + CASE + 50 WHEN - 45 * AVG ( DISTINCT CAST ( - + COALESCE ( + + 33, - 38 ) AS INTEGER ) ) THEN 38 END ) ) * - NULLIF ( 24, 66 - - 57 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1691
SELECT ALL + - 11 + + 71, COUNT( * ) + + 59
----
60
60

skipif mysql # not compatible
query II rowsort label-1691
SELECT ALL + - 11 + + 71, COUNT ( * ) + + 59
----
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT + COUNT( * ) * SUM( - + 39 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-1692
SELECT + COUNT ( * ) * SUM ( - + 39 ) col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1693
SELECT - CAST( NULL AS SIGNED ) * CAST( NULLIF ( + + 66, + 17 * - CASE + 17 WHEN - COUNT( * ) * + - 4 * + 87 * - 81 * - 39 * - ( CAST( NULL AS DECIMAL ) ) THEN NULL WHEN 22 THEN - 66 END / + 47 - 3 + + 20 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT - CAST ( NULL AS INTEGER ) * CAST ( NULLIF ( + + 66, + 17 * - CASE + 17 WHEN - COUNT ( * ) * + - 4 * + 87 * - 81 * - 39 * - ( CAST ( NULL AS REAL ) ) THEN NULL WHEN 22 THEN - 66 END / + 47 - 3 + + 20 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT - 6 + + - MIN( + + 64 )
----
-70

skipif mysql # not compatible
query I rowsort label-1694
SELECT - 6 + + - MIN ( + + 64 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-1695
SELECT + 46 * COALESCE ( 97, - + COUNT( * ) * ( - 18 ) + + - 2 ) AS col0, + COUNT( * ) AS col1
----
4462
1

skipif mysql # not compatible
query II rowsort label-1695
SELECT + 46 * COALESCE ( 97, - + COUNT ( * ) * ( - 18 ) + + - 2 ) AS col0, + COUNT ( * ) AS col1
----
4462
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT ALL + COUNT( + + COALESCE ( - 22, - 70 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL + COUNT ( + + COALESCE ( - 22, - 70 ) ) AS col1
----
1

query I rowsort
SELECT - + 51 + 12
----
-39

query I rowsort
SELECT - 24 col1
----
-24

query I rowsort
SELECT ALL - 71 - + 8 AS col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1700
SELECT - CASE + - 1 WHEN + + ( - 8 ) THEN + + CAST( NULL AS SIGNED ) + + + 19 * + - 46 * - COUNT( DISTINCT - - 3 ) + CAST( 19 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1700
SELECT - CASE + - 1 WHEN + + ( - 8 ) THEN + + CAST ( NULL AS INTEGER ) + + + 19 * + - 46 * - COUNT ( DISTINCT - - 3 ) + CAST ( 19 AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT - 38 * - - 90 AS col1
----
-3420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1702
SELECT - COALESCE ( - ( + + 85 ), - + CAST( NULL AS SIGNED ) ) * 84 + - 45 col1
----
7095

skipif mysql # not compatible
query I rowsort label-1702
SELECT - COALESCE ( - ( + + 85 ), - + CAST ( NULL AS INTEGER ) ) * 84 + - 45 col1
----
7095

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT + COUNT( - 96 ) * - 48 * - 57
----
2736

skipif mysql # not compatible
query I rowsort label-1704
SELECT + COUNT ( - 96 ) * - 48 * - 57
----
2736

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1706
SELECT DISTINCT NULLIF ( - + 55, + 43 ) AS col2, COUNT( * )
----
-55
1

skipif mysql # not compatible
query II rowsort label-1706
SELECT DISTINCT NULLIF ( - + 55, + 43 ) AS col2, COUNT ( * )
----
-55
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1707
SELECT ALL + NULLIF ( - 83, + - CAST( NULL AS SIGNED ) ) AS col2, SUM( DISTINCT 21 )
----
-83
21

skipif mysql # not compatible
query II rowsort label-1707
SELECT ALL + NULLIF ( - 83, + - CAST ( NULL AS INTEGER ) ) AS col2, SUM ( DISTINCT 21 )
----
-83
21

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

query I rowsort
SELECT ALL - 88 * + + 99 + - 25 AS col1
----
-8737

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT 1 DIV 75 * - ( - 90 ) + + + ( - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-1710
SELECT 1 / 75 * - ( - 90 ) + + + ( - 57 )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-1711
SELECT DISTINCT 47 * COUNT( * ) + - 96 * ( + 86 ) col0, 13
----
-8209
13

skipif mysql # not compatible
query II rowsort label-1711
SELECT DISTINCT 47 * COUNT ( * ) + - 96 * ( + 86 ) col0, 13
----
-8209
13

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1713
SELECT ALL COUNT( * ) * - 94 / CASE - 63 WHEN - + 12 THEN + + MAX( - 70 ) + MIN( - - 84 ) WHEN + 75 THEN NULL ELSE NULL END * + CASE - 95 WHEN + 64 THEN + COUNT( * ) + CAST( ( 78 ) AS SIGNED ) ELSE + 55 END * - 47 + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL COUNT ( * ) * - 94 / CASE - 63 WHEN - + 12 THEN + + MAX ( - 70 ) + MIN ( - - 84 ) WHEN + 75 THEN NULL ELSE NULL END * + CASE - 95 WHEN + 64 THEN + COUNT ( * ) + CAST ( ( 78 ) AS INTEGER ) ELSE + 55 END * - 47 + 15 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT COUNT ( * ) / + 3
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL CASE - 57 WHEN - + 9 * 47 / + MIN( DISTINCT - NULLIF ( - + 48, - 29 ) ) * - 5 THEN NULL ELSE - 83 END * NULLIF ( - - SUM( ALL + - 11 ), + 50 + - - ( ( - 22 ) ) + + 40 / - 70 )
----
913

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL CASE - 57 WHEN - + 9 * 47 / + MIN ( DISTINCT - NULLIF ( - + 48, - 29 ) ) * - 5 THEN NULL ELSE - 83 END * NULLIF ( - - SUM ( ALL + - 11 ), + 50 + - - ( ( - 22 ) ) + + 40 / - 70 )
----
913

onlyif mysql # aggregate syntax: 
query II rowsort label-1717
SELECT CASE WHEN COUNT( * ) BETWEEN - - ( + + 93 ) AND + - NULLIF ( + 36, + 80 ) * + 5 THEN - 31 ELSE NULL END, 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-1717
SELECT CASE WHEN COUNT ( * ) BETWEEN - - ( + + 93 ) AND + - NULLIF ( + 36, + 80 ) * + 5 THEN - 31 ELSE NULL END, 84 AS col0
----
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT - 90 * + 76 * 34 + 12 - + COUNT( * ) * - 78 AS col1
----
-232470

skipif mysql # not compatible
query I rowsort label-1718
SELECT - 90 * + 76 * 34 + 12 - + COUNT ( * ) * - 78 AS col1
----
-232470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT CASE + CAST( 5 AS SIGNED ) WHEN + AVG ( 54 ) + - + 44 THEN - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT CASE + CAST ( 5 AS INTEGER ) WHEN + AVG ( 54 ) + - + 44 THEN - 12 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1720
SELECT CASE - 11 WHEN + 88 THEN - ( + COUNT( * ) ) / + 41 * - 89 + - - ( - CASE 46 WHEN CASE 19 WHEN - 91 THEN - 73 * - 13 * + 43 ELSE NULL END + + 64 THEN - COUNT( DISTINCT + 86 ) + + COUNT( * ) WHEN 43 + CAST( COUNT( DISTINCT + 47 ) AS SIGNED ) THEN NULL END ) WHEN CAST( NULL AS SIGNED ) THEN 54 WHEN - 17 THEN 84 * - 38 + 46 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT CASE - 11 WHEN + 88 THEN - ( + COUNT ( * ) ) / + 41 * - 89 + - - ( - CASE 46 WHEN CASE 19 WHEN - 91 THEN - 73 * - 13 * + 43 ELSE NULL END + + 64 THEN - COUNT ( DISTINCT + 86 ) + + COUNT ( * ) WHEN 43 + CAST ( COUNT ( DISTINCT + 47 ) AS INTEGER ) THEN NULL END ) WHEN CAST ( NULL AS INTEGER ) THEN 54 WHEN - 17 THEN 84 * - 38 + 46 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT ALL + 45 * + COALESCE ( + 51, - NULLIF ( + 23, + + COALESCE ( - 2, 89 - + 81 ) ) ) + - 7 * - + COUNT( * ) * - ( - 43 ) AS col0
----
2596

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL + 45 * + COALESCE ( + 51, - NULLIF ( + 23, + + COALESCE ( - 2, 89 - + 81 ) ) ) + - 7 * - + COUNT ( * ) * - ( - 43 ) AS col0
----
2596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1722
SELECT + CASE - ( + - SUM( - 67 ) ) WHEN CAST( - COALESCE ( 89, 52 ) AS SIGNED ) THEN + CASE + 70 WHEN + 15 THEN + 17 * + 21 + + 35 ELSE + 71 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT + CASE - ( + - SUM ( - 67 ) ) WHEN CAST ( - COALESCE ( 89, 52 ) AS INTEGER ) THEN + CASE + 70 WHEN + 15 THEN + 17 * + 21 + + 35 ELSE + 71 END END AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1725
SELECT ALL - 0 * + 9 - - 40 DIV ( COUNT( * ) ) - - 27
----
67

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL - 0 * + 9 - - 40 / ( COUNT ( * ) ) - - 27
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1726
SELECT ( + CASE - 44 WHEN 48 THEN + 33 / - CAST( 7 AS SIGNED ) * - 31 + - ( - - 80 ) + + 70 + 3 + + - 56 WHEN + 38 * CAST( - 41 AS DECIMAL ) + - 76 THEN - MIN( ( + 42 ) ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT ( + CASE - 44 WHEN 48 THEN + 33 / - CAST ( 7 AS INTEGER ) * - 31 + - ( - - 80 ) + + 70 + 3 + + - 56 WHEN + 38 * CAST ( - 41 AS REAL ) + - 76 THEN - MIN ( ( + 42 ) ) ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT + - 35 - - 10
----
-25

query I rowsort
SELECT + 21 * - - 17
----
357

query I rowsort
SELECT + - 82 col1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1730
SELECT - - COALESCE ( - 48, 27 DIV - 57 ) * + 7 - - 10
----
-326

skipif mysql # not compatible
query I rowsort label-1730
SELECT - - COALESCE ( - 48, 27 / - 57 ) * + 7 - - 10
----
-326

query II rowsort
SELECT ALL + 72 col2, + 61
----
72
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT MAX( + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1732
SELECT MAX ( + 79 ) AS col0
----
79

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1734
SELECT + 66 DIV + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1734
SELECT + 66 / + COUNT ( * ) AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1735
SELECT DISTINCT 36 DIV + 27 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT 36 / + 27 AS col2
----
1

query I rowsort
SELECT + 80 - 33 AS col2
----
47

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1738
SELECT ALL 63 * - SUM( DISTINCT + 29 ) + + + 43 DIV 66
----
-1827

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL 63 * - SUM ( DISTINCT + 29 ) + + + 43 / 66
----
-1827

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

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

query I rowsort
SELECT - + 53 * - - 3 col2
----
-159

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1742
SELECT + ( - 80 ) / + CAST( NULL AS SIGNED ) * ( MIN( - 79 ) ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT + COUNT( * ) + - MIN( - ( + ( 53 ) ) )
----
54

skipif mysql # not compatible
query I rowsort label-1743
SELECT + COUNT ( * ) + - MIN ( - ( + ( 53 ) ) )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT - 47 - + 39 DIV - + 93
----
-47

skipif mysql # not compatible
query I rowsort label-1744
SELECT - 47 - + 39 / - + 93
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT ALL NULLIF ( - 72, - 4 * - - COUNT( * ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL NULLIF ( - 72, - 4 * - - COUNT ( * ) ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-1746
SELECT ALL + 51 + MIN( - 30 ) + 55 AS col0, + 53 * - 67 AS col2
----
76
-3551

skipif mysql # not compatible
query II rowsort label-1746
SELECT ALL + 51 + MIN ( - 30 ) + 55 AS col0, + 53 * - 67 AS col2
----
76
-3551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1747
SELECT - ( CAST( - ( - + 65 ) AS SIGNED ) ) * - 36 * - + ( + + 45 ) * + 74 AS col2
----
-7792200

skipif mysql # not compatible
query I rowsort label-1747
SELECT - ( CAST ( - ( - + 65 ) AS INTEGER ) ) * - 36 * - + ( + + 45 ) * + 74 AS col2
----
-7792200

query I rowsort
SELECT ALL ( - + 11 ) col2
----
-11

query I rowsort
SELECT - 63 + - 82
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1750
SELECT 7 col2, - ( - 6 ) * - + MIN( ALL - CAST( - NULLIF ( + 28, + 12 / 92 + - ( 69 ) ) AS SIGNED ) ) AS col2
----
7
-168

skipif mysql # not compatible
query II rowsort label-1750
SELECT 7 col2, - ( - 6 ) * - + MIN ( ALL - CAST ( - NULLIF ( + 28, + 12 / 92 + - ( 69 ) ) AS INTEGER ) ) AS col2
----
7
-168

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT 42 AS col1, NULLIF ( - 25, - 84 + 7 * - + 23 / - COUNT( * ) ) AS col2
----
42
-25

skipif mysql # not compatible
query II rowsort label-1751
SELECT 42 AS col1, NULLIF ( - 25, - 84 + 7 * - + 23 / - COUNT ( * ) ) AS col2
----
42
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1752
SELECT ALL + 67 DIV + CAST( 58 AS SIGNED ) + 63
----
64

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL + 67 / + CAST ( 58 AS INTEGER ) + 63
----
64

query II rowsort
SELECT + 27 AS col0, 9
----
27
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1754
SELECT DISTINCT + 84 AS col1, + ( SUM( - 21 ) ) * 46 AS col2
----
84
-966

skipif mysql # not compatible
query II rowsort label-1754
SELECT DISTINCT + 84 AS col1, + ( SUM ( - 21 ) ) * 46 AS col2
----
84
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT COUNT( * ) * - + SUM( ALL + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-1755
SELECT COUNT ( * ) * - + SUM ( ALL + 20 )
----
-20

query I rowsort
SELECT - 61 * 54 + - 61 + - 27 + 90 AS col0
----
-3292

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

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

query II rowsort
SELECT 7 * 98 AS col1, 90 AS col0
----
686
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1759
SELECT ALL - MIN( ( - + 87 ) ) DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL - MIN ( ( - + 87 ) ) / + - 98
----
0

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

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

query II rowsort
SELECT 27 - - 5 AS col0, + 83 AS col2
----
32
83

query II rowsort
SELECT ALL 67 - + 68 AS col2, - 43 * 57
----
-1
-2451

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

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

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

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

query II rowsort
SELECT ALL - - 8 AS col2, + 93 AS col0
----
8
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1766
SELECT + + CAST( + 29 AS SIGNED ) * + - 39 + + 24 DIV - 29 + - 29 AS col0, - 30
----
-1160
-30

skipif mysql # not compatible
query II rowsort label-1766
SELECT + + CAST ( + 29 AS INTEGER ) * + - 39 + + 24 / - 29 + - 29 AS col0, - 30
----
-1160
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1767
SELECT - 0 DIV - - 24 + - 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-1767
SELECT - 0 / - - 24 + - 36 AS col1
----
-36

query I rowsort
SELECT DISTINCT 65 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT + CASE 82 WHEN - 69 THEN + 62 + - COUNT( ALL 20 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1769
SELECT + CASE 82 WHEN - 69 THEN + 62 + - COUNT ( ALL 20 ) ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1770
SELECT - MAX( ALL + + 66 ) * - CAST( + COUNT( * ) AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-1770
SELECT - MAX ( ALL + + 66 ) * - CAST ( + COUNT ( * ) AS INTEGER )
----
66

query I rowsort
SELECT 22 + + + 4
----
26

query I rowsort
SELECT DISTINCT + 16 + + 8
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT DISTINCT - 65 + - COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - 65 + - COUNT ( * ) AS col1
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-1774
SELECT 11 DIV - 27 col2, 14 AS col1
----
0
14

skipif mysql # not compatible
query II rowsort label-1774
SELECT 11 / - 27 col2, 14 AS col1
----
0
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1775
SELECT 82 * - 23 * - + CAST( NULL AS SIGNED ) * SUM( - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT 82 * - 23 * - + CAST ( NULL AS INTEGER ) * SUM ( - 79 )
----
NULL

query I rowsort
SELECT ALL + 20 + - + 69 AS col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1777
SELECT ( 38 ) - + ( 35 ) DIV + NULLIF ( 23, - 13 * + 86 + + 22 )
----
37

skipif mysql # not compatible
query I rowsort label-1777
SELECT ( 38 ) - + ( 35 ) / + NULLIF ( 23, - 13 * + 86 + + 22 )
----
37

query I rowsort
SELECT 36 * + 97
----
3492

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT DISTINCT NULLIF ( + + 17, + 77 ) - + - SUM( - 11 ) * + - 86 AS col2
----
963

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT NULLIF ( + + 17, + 77 ) - + - SUM ( - 11 ) * + - 86 AS col2
----
963

query I rowsort
SELECT 32 + + 44 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT - 57 * - - 65 - - MAX( ALL - 51 ) AS col1
----
-3756

skipif mysql # not compatible
query I rowsort label-1781
SELECT - 57 * - - 65 - - MAX ( ALL - 51 ) AS col1
----
-3756

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

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

query I rowsort
SELECT CASE + + 25 WHEN - COALESCE ( + + NULLIF ( + + 6, + + 64 ), 6 ) + NULLIF ( - 50, - NULLIF ( + - 72, 52 ) * + 95 * - - 69 + + 82 + 48 - 73 ) THEN 56 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT COUNT( * ) * + 16 + + 39
----
55

skipif mysql # not compatible
query I rowsort label-1785
SELECT COUNT ( * ) * + 16 + + 39
----
55

query I rowsort
SELECT - 73 * - + 9 AS col2
----
657

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT + COUNT( * ) * - 58 * - + 11 * - + 8 * - + 78 + - 89 * + + 94 + - - 44 * - 40
----
387986

skipif mysql # not compatible
query I rowsort label-1787
SELECT + COUNT ( * ) * - 58 * - + 11 * - + 8 * - + 78 + - 89 * + + 94 + - - 44 * - 40
----
387986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1788
SELECT - 39 * - + ( - NULLIF ( + ( + + 26 ), + CASE WHEN NULL IN ( CAST( COUNT( * ) AS SIGNED ), - 38 / - ( - ( - - 90 ) ) * 89 + - CAST( NULL AS SIGNED ) * - 16 ) THEN + + 2 * - COUNT( * ) ELSE NULL END * 1 ) ) AS col0
----
-1014

skipif mysql # not compatible
query I rowsort label-1788
SELECT - 39 * - + ( - NULLIF ( + ( + + 26 ), + CASE WHEN NULL IN ( CAST ( COUNT ( * ) AS INTEGER ), - 38 / - ( - ( - - 90 ) ) * 89 + - CAST ( NULL AS INTEGER ) * - 16 ) THEN + + 2 * - COUNT ( * ) ELSE NULL END * 1 ) ) AS col0
----
-1014

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1791
SELECT ALL + COUNT( * ) + + CAST( + 25 AS SIGNED ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL + COUNT ( * ) + + CAST ( + 25 AS INTEGER ) AS col0
----
26

query I rowsort
SELECT + 28 * + - 8 - + + 51
----
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT - COALESCE ( + 47, + 88, 79, 10 - - 4 + - + COUNT( * ), - 34 * + - 43 ) + - 23 - - 79
----
9

skipif mysql # not compatible
query I rowsort label-1793
SELECT - COALESCE ( + 47, + 88, 79, 10 - - 4 + - + COUNT ( * ), - 34 * + - 43 ) + - 23 - - 79
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT 91 * COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1794
SELECT 91 * COUNT ( * ) AS col1
----
91

query I rowsort
SELECT ALL + - 45 + 78 AS col0
----
33

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

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

query I rowsort
SELECT DISTINCT - 65 + 23 + - - 91 - - - 36
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1798
SELECT 92 - - + 23 + + 18 AS col0, COUNT( * ) - 59 DIV + + 64 col0
----
133
1

skipif mysql # not compatible
query II rowsort label-1798
SELECT 92 - - + 23 + + 18 AS col0, COUNT ( * ) - 59 / + + 64 col0
----
133
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1799
SELECT 51 * + - COALESCE ( + + ( + - 24 ), - 68 DIV + - 23 ) - + 32 - + COUNT( * ) - COALESCE ( 86, + - COUNT( * ) * - 62 + + + NULLIF ( - + 41, + 94 ) )
----
1105

skipif mysql # not compatible
query I rowsort label-1799
SELECT 51 * + - COALESCE ( + + ( + - 24 ), - 68 / + - 23 ) - + 32 - + COUNT ( * ) - COALESCE ( 86, + - COUNT ( * ) * - 62 + + + NULLIF ( - + 41, + 94 ) )
----
1105

query I rowsort
SELECT ALL 3 col0
----
3

query I rowsort
SELECT 75 + - 23 AS col2
----
52

query I rowsort
SELECT 82 + 5
----
87

query I rowsort
SELECT 91 + + 98
----
189

query I rowsort
SELECT 27 * - + 76
----
-2052

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

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

query I rowsort
SELECT 10 + - 69
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL 10 - - + 42 - + ( + MIN( DISTINCT - 52 ) ) * + COALESCE ( - 39, - - COUNT( * ) ) AS col2
----
-1976

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL 10 - - + 42 - + ( + MIN ( DISTINCT - 52 ) ) * + COALESCE ( - 39, - - COUNT ( * ) ) AS col2
----
-1976

query I rowsort
SELECT ALL ( - 80 ) - + 21 AS col2
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-1809
SELECT + 98 + 55 * + COUNT( * ) AS col2, + COUNT( * ) * - 8 * - 29 col2
----
153
232

skipif mysql # not compatible
query II rowsort label-1809
SELECT + 98 + 55 * + COUNT ( * ) AS col2, + COUNT ( * ) * - 8 * - 29 col2
----
153
232

query I rowsort
SELECT + 92 * - + 20 AS col1
----
-1840

query I rowsort
SELECT + 62 * - + 26 * - - 3 AS col0
----
-4836

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT - MIN( DISTINCT - - 74 ) * - 38 - - - 74 + 5 AS col2
----
2743

skipif mysql # not compatible
query I rowsort label-1812
SELECT - MIN ( DISTINCT - - 74 ) * - 38 - - - 74 + 5 AS col2
----
2743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1813
SELECT - 44 DIV - - CASE 61 WHEN 93 THEN NULL WHEN - 66 THEN ( CAST( NULL AS SIGNED ) ) ELSE + + 12 * + ( NULLIF ( - 60, + + COUNT( * ) ) ) + + + COALESCE ( - 88, MIN( ALL - + 1 ) + + 36 + ( 90 ) + + 64 DIV COUNT( * ) ) + 49 * + ( - 37 ) END * MAX( DISTINCT 69 )
----
0

skipif mysql # not compatible
query I rowsort label-1813
SELECT - 44 / - - CASE 61 WHEN 93 THEN NULL WHEN - 66 THEN ( CAST ( NULL AS INTEGER ) ) ELSE + + 12 * + ( NULLIF ( - 60, + + COUNT ( * ) ) ) + + + COALESCE ( - 88, MIN ( ALL - + 1 ) + + 36 + ( 90 ) + + 64 / COUNT ( * ) ) + 49 * + ( - 37 ) END * MAX ( DISTINCT 69 )
----
0

query I rowsort
SELECT ALL + 93 * + ( 24 ) AS col0
----
2232

query I rowsort
SELECT - 32 + - + 9 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT + + MAX( 91 )
----
91

skipif mysql # not compatible
query I rowsort label-1816
SELECT + + MAX ( 91 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1817
SELECT + 81 * - COUNT( * ) * + 44 - - + CAST( - - ( + - 38 ) AS SIGNED ) + - 68 - + 91 col1
----
-3761

skipif mysql # not compatible
query I rowsort label-1817
SELECT + 81 * - COUNT ( * ) * + 44 - - + CAST ( - - ( + - 38 ) AS INTEGER ) + - 68 - + 91 col1
----
-3761

query I rowsort
SELECT DISTINCT - ( - 51 ) * - + 79
----
-4029

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

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

query I rowsort
SELECT + - 36 col1
----
-36

query I rowsort
SELECT ALL - NULLIF ( + 28, - - 98 ) * + ( - + 98 ) + + - 30 AS col0
----
2714

query I rowsort
SELECT + 99 + - 47 * - 60 * - 75 * 55
----
-11632401

query I rowsort
SELECT - ( + 18 ) * + - 25
----
450

query I rowsort
SELECT + - 71 + 6
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT - - 66 - - + SUM( - 80 ) * 80
----
-6334

skipif mysql # not compatible
query I rowsort label-1825
SELECT - - 66 - - + SUM ( - 80 ) * 80
----
-6334

onlyif mysql # aggregate syntax: 
query II rowsort label-1826
SELECT DISTINCT - SUM( - - 42 ) * + + 46, - 32 - + 5 AS col2
----
-1932
-37

skipif mysql # not compatible
query II rowsort label-1826
SELECT DISTINCT - SUM ( - - 42 ) * + + 46, - 32 - + 5 AS col2
----
-1932
-37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT - - 22 DIV 72 * - 34 col0
----
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT - - 22 / 72 * - 34 col0
----
0

query I rowsort
SELECT ALL 5 * + + NULLIF ( - 58, 45 ) + + - 29
----
-319

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT DISTINCT 43 * + ( - 46 ) + + COUNT( * )
----
-1977

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT 43 * + ( - 46 ) + + COUNT ( * )
----
-1977

query I rowsort
SELECT DISTINCT - - 80 * + 12 AS col1
----
960

onlyif mysql # aggregate syntax: 
query II rowsort label-1832
SELECT - COUNT( * ) * 50 AS col1, + COALESCE ( 5, - + 31 * 31 * - 17 ) * + + 49 col2
----
-50
245

skipif mysql # not compatible
query II rowsort label-1832
SELECT - COUNT ( * ) * 50 AS col1, + COALESCE ( 5, - + 31 * 31 * - 17 ) * + + 49 col2
----
-50
245

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT NULLIF ( - - COUNT( * ), + 2 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT NULLIF ( - - COUNT ( * ), + 2 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT + 58 + - COUNT( * ) * + - 19 col1
----
77

skipif mysql # not compatible
query I rowsort label-1834
SELECT + 58 + - COUNT ( * ) * + - 19 col1
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1835
SELECT ALL + COUNT( * ) * + - 45, 14 AS col1
----
-45
14

skipif mysql # not compatible
query II rowsort label-1835
SELECT ALL + COUNT ( * ) * + - 45, 14 AS col1
----
-45
14

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1837
SELECT + 34 + 4 AS col1, ( + SUM( 87 ) ) DIV 32 * - 15 + + 16 AS col0
----
38
-14

skipif mysql # not compatible
query II rowsort label-1837
SELECT + 34 + 4 AS col1, ( + SUM ( 87 ) ) / 32 * - 15 + + 16 AS col0
----
38
-14

query I rowsort
SELECT DISTINCT 57 * - - 24 col0
----
1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1839
SELECT DISTINCT - COUNT( * ) - + 5 - + ( + + COUNT( * ) ) * 56 DIV COALESCE ( - COUNT( * ), + + 63 + - CAST( + 43 AS SIGNED ) * + COUNT( * ) + + MAX( + 50 ) - + 1 - - - COUNT( ALL 44 ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT - COUNT ( * ) - + 5 - + ( + + COUNT ( * ) ) * 56 / COALESCE ( - COUNT ( * ), + + 63 + - CAST ( + 43 AS INTEGER ) * + COUNT ( * ) + + MAX ( + 50 ) - + 1 - - - COUNT ( ALL 44 ) ) AS col2
----
50

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

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

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT ( + SUM ( ALL - 75 ) ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT - CASE - + 44 WHEN - + CASE - 71 WHEN + 25 THEN 66 WHEN - NULLIF ( - 51, - COUNT( + 33 ) ) THEN NULL ELSE - 24 - - ( + + COUNT( * ) ) + + + 40 END THEN NULL ELSE - 21 END AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1842
SELECT - CASE - + 44 WHEN - + CASE - 71 WHEN + 25 THEN 66 WHEN - NULLIF ( - 51, - COUNT ( + 33 ) ) THEN NULL ELSE - 24 - - ( + + COUNT ( * ) ) + + + 40 END THEN NULL ELSE - 21 END AS col2
----
21

query I rowsort
SELECT + 68 * + 11 AS col1
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT - 38 - COUNT( - - 85 ) + + 58 + - 46 * - 41
----
1905

skipif mysql # not compatible
query I rowsort label-1844
SELECT - 38 - COUNT ( - - 85 ) + + 58 + - 46 * - 41
----
1905

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT + - COUNT( * ) * 86 - + 98 + - + 23 + + 0 * + CASE - COUNT( * ) WHEN + COUNT( * ) * + COUNT( * ) THEN NULL WHEN + 80 THEN - ( 82 ) ELSE NULL END + 62 + COUNT( * ) * + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1845
SELECT + - COUNT ( * ) * 86 - + 98 + - + 23 + + 0 * + CASE - COUNT ( * ) WHEN + COUNT ( * ) * + COUNT ( * ) THEN NULL WHEN + 80 THEN - ( 82 ) ELSE NULL END + 62 + COUNT ( * ) * + 16 AS col0
----
NULL

query I rowsort
SELECT ALL 34 * 88 * + 75 AS col2
----
224400

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT ALL 91 DIV + 61
----
1

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL 91 / + 61
----
1

query I rowsort
SELECT + - 61 col1
----
-61

query I rowsort
SELECT + - 51 AS col2
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT + + COUNT( * ) * 69 + + 48 + 63 AS col1
----
180

skipif mysql # not compatible
query I rowsort label-1851
SELECT + + COUNT ( * ) * 69 + + 48 + 63 AS col1
----
180

query I rowsort
SELECT DISTINCT + - 36 AS col0
----
-36

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

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

query I rowsort
SELECT ALL + + 84 col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1855
SELECT + 46 * + 44 - + 25 + - 90 DIV + SUM( DISTINCT - + 10 ) AS col1
----
2008

skipif mysql # not compatible
query I rowsort label-1855
SELECT + 46 * + 44 - + 25 + - 90 / + SUM ( DISTINCT - + 10 ) AS col1
----
2008

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

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

query I rowsort
SELECT + + 56
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT ( + - 45 ) * + + SUM( + 40 ) + - ( + 82 ) * COUNT( * ) - 83 * + COUNT( * ) + - NULLIF ( - 44, + 93 ) AS col2
----
-1921

skipif mysql # not compatible
query I rowsort label-1858
SELECT ( + - 45 ) * + + SUM ( + 40 ) + - ( + 82 ) * COUNT ( * ) - 83 * + COUNT ( * ) + - NULLIF ( - 44, + 93 ) AS col2
----
-1921

query I rowsort
SELECT - 82 * + 29
----
-2378

query I rowsort
SELECT ALL + 61 * + 34 AS col1
----
2074

query I rowsort
SELECT - 29 + + + ( - 42 )
----
-71

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

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

query I rowsort
SELECT - 46 * COALESCE ( - - 27, 66 )
----
-1242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1864
SELECT DISTINCT CAST( + 55 AS SIGNED ) col1
----
55

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT CAST ( + 55 AS INTEGER ) col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1865
SELECT 26 - 20 + MAX( - - ( + 39 ) ) * + COUNT( 16 ) DIV + - 83 + - 38 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-1865
SELECT 26 - 20 + MAX ( - - ( + 39 ) ) * + COUNT ( 16 ) / + - 83 + - 38 AS col0
----
-32

query I rowsort
SELECT DISTINCT 18 col0
----
18

query I rowsort
SELECT 36 - 83
----
-47

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

skipif mysql # not compatible
query I rowsort label-1868
SELECT COUNT ( * ) + 87 AS col1
----
88

query I rowsort
SELECT 16 + - 53 * + 96
----
-5072

query I rowsort
SELECT 26 + + 41 AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1871
SELECT 35 + - 2 + COALESCE ( + - 37, MIN( DISTINCT + 84 ) + + 3 + - COUNT( * ) * - 39, - 14 * 71 * - + 34 DIV + NULLIF ( + 98, + + 26 * - - 54 * + 57 DIV - 5 DIV 81 + 85 - - COUNT( * ) ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-1871
SELECT 35 + - 2 + COALESCE ( + - 37, MIN ( DISTINCT + 84 ) + + 3 + - COUNT ( * ) * - 39, - 14 * 71 * - + 34 / + NULLIF ( + 98, + + 26 * - - 54 * + 57 / - 5 / 81 + 85 - - COUNT ( * ) ) ) AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1872
SELECT ALL + 26 DIV - - COALESCE ( + - 17, 66 + + 7, - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + 26 / - - COALESCE ( + - 17, 66 + + 7, - 37 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT 42 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-1873
SELECT 42 / + 96
----
0

query I rowsort
SELECT ALL 3 * - 68 col0
----
-204

query II rowsort
SELECT ALL 21 AS col0, ( - - 5 ) AS col0
----
21
5

query I rowsort
SELECT DISTINCT + 18 + - 99 AS col0
----
-81

query I rowsort
SELECT 97 + 73 AS col2
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1878
SELECT DISTINCT - ( - 31 ) + + NULLIF ( + 30, + 38 DIV - 56 + + - 80 * + 14 * - + 31 * + COUNT( * ) * - COALESCE ( - + 54, 24, - 88 ) - - 98 + + CASE - COUNT( 90 ) WHEN - 19 DIV - COALESCE ( - COALESCE ( + 1, CASE - 72 WHEN + CAST( NULLIF ( 95, 19 * 10 ) AS SIGNED ) DIV + ( 33 ) + - 65 THEN 84 + AVG ( 45 ) DIV 87 END, CAST( NULL AS SIGNED ) * 80 ), - 18 * 82, + COALESCE ( 8, + 90 * 95 ) ) THEN NULL WHEN 57 + 69 * COUNT( * ) THEN NULL ELSE 65 END ) + 64 DIV 84 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT - ( - 31 ) + + NULLIF ( + 30, + 38 / - 56 + + - 80 * + 14 * - + 31 * + COUNT ( * ) * - COALESCE ( - + 54, 24, - 88 ) - - 98 + + CASE - COUNT ( 90 ) WHEN - 19 / - COALESCE ( - COALESCE ( + 1, CASE - 72 WHEN + CAST ( NULLIF ( 95, 19 * 10 ) AS INTEGER ) / + ( 33 ) + - 65 THEN 84 + AVG ( 45 ) / 87 END, CAST ( NULL AS INTEGER ) * 80 ), - 18 * 82, + COALESCE ( 8, + 90 * 95 ) ) THEN NULL WHEN 57 + 69 * COUNT ( * ) THEN NULL ELSE 65 END ) + 64 / 84 AS col2
----
61

query I rowsort
SELECT ( - 21 )
----
-21

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1882
SELECT 30 * COUNT( * ) + - ( - 25 ) + - 97 + + + 95 DIV 22
----
-38

skipif mysql # not compatible
query I rowsort label-1882
SELECT 30 * COUNT ( * ) + - ( - 25 ) + - 97 + + + 95 / 22
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + 85 * - - 38 * + - 46 - COUNT( * ) + 25 * - 31 * - 64 + 53 * - 22
----
-100147

skipif mysql # not compatible
query I rowsort label-1883
SELECT + 85 * - - 38 * + - 46 - COUNT ( * ) + 25 * - 31 * - 64 + 53 * - 22
----
-100147

query I rowsort
SELECT ALL - + 25 AS col1
----
-25

query I rowsort
SELECT 97 * - 28
----
-2716

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL COUNT( * ) + - 12
----
-11

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL COUNT ( * ) + - 12
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1887
SELECT - 9 DIV 37 - + - 34 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-1887
SELECT - 9 / 37 - + - 34 / 23
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ALL - - ( + - NULLIF ( + 53, 74 * - 15 + 12 * - ( COALESCE ( + 77, ( + - COUNT( * ) ) ) ) - + COUNT( * ) ) ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL - - ( + - NULLIF ( + 53, 74 * - 15 + 12 * - ( COALESCE ( + 77, ( + - COUNT ( * ) ) ) ) - + COUNT ( * ) ) ) col1
----
-53

query I rowsort
SELECT DISTINCT 96 + 23 + - 11
----
108

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1892
SELECT - + 20 DIV - 44 * + 88 + + 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1892
SELECT - + 20 / - 44 * + 88 + + 27 AS col2
----
27

query I rowsort
SELECT 55 + + 36
----
91

query I rowsort
SELECT DISTINCT 36 * - ( + 47 ) * ( + 10 ) * + 21 * 27 + CASE WHEN + 83 BETWEEN - - 43 AND NULL THEN + 15 * ( - 94 ) / + - 59 - + 45 END + 2 * - AVG ( DISTINCT 83 ) AS col0
----
NULL

query I rowsort
SELECT - 42 * + 98 + - 73 col1
----
-4189

query I rowsort
SELECT 30 * + 21
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL - MAX( - + CASE + + 79 WHEN + 1 / ( + 15 ) THEN + - 39 / 72 - - 8 + 94 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL - MAX ( - + CASE + + 79 WHEN + 1 / ( + 15 ) THEN + - 39 / 72 - - 8 + 94 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1898
SELECT - 10 * 14 * + - 56 + - - AVG ( DISTINCT + ( CAST( NULL AS DECIMAL ) ) ) * + 58 * - + 20 + + 7 + + 32 * - + 16 + - 98 + + CASE - - 83 WHEN - + 39 THEN + + 56 WHEN - 41 THEN NULL ELSE + - 1 END + 58 + - 53 / 28 + - 64 * - ( + COUNT( * ) / 33 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT - 10 * 14 * + - 56 + - - AVG ( DISTINCT + ( CAST ( NULL AS REAL ) ) ) * + 58 * - + 20 + + 7 + + 32 * - + 16 + - 98 + + CASE - - 83 WHEN - + 39 THEN + + 56 WHEN - 41 THEN NULL ELSE + - 1 END + 58 + - 53 / 28 + - 64 * - ( + COUNT ( * ) / 33 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1899
SELECT ALL COUNT( * ) * - - 75 DIV 11 * CAST( - + 27 AS SIGNED ) col2
----
-162

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL COUNT ( * ) * - - 75 / 11 * CAST ( - + 27 AS INTEGER ) col2
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1900
SELECT DISTINCT 93 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT 93 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 26 + + - 78 * + 17 AS col0
----
-1300

query I rowsort
SELECT ALL + 30 * + + ( + 86 )
----
2580

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT 36 + + 20 DIV 85 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1903
SELECT 36 + + 20 / 85 AS col2
----
36

query II rowsort
SELECT ALL - 71 AS col0, + 55 AS col0
----
-71
55

query I rowsort
SELECT 42 * + 91 * - CASE 87 WHEN - 28 * + + 78 THEN - 28 WHEN - 75 THEN - - 17 END
----
NULL

query I rowsort
SELECT 30 * + + 98 * - + 39 + - + 59 + - 79
----
-114798

query I rowsort
SELECT ALL 22 col0
----
22

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

query I rowsort
SELECT ( 69 ) * + 54
----
3726

query I rowsort
SELECT DISTINCT + 12 + + 94 * - 80
----
-7508

onlyif mysql # aggregate syntax: 
query II rowsort label-1911
SELECT DISTINCT 37, MAX( DISTINCT 43 ) AS col0
----
37
43

skipif mysql # not compatible
query II rowsort label-1911
SELECT DISTINCT 37, MAX ( DISTINCT 43 ) AS col0
----
37
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL SUM( - 51 ) + 95
----
44

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL SUM ( - 51 ) + 95
----
44

query I rowsort
SELECT DISTINCT - - 53 + + 8 * 55
----
493

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1914
SELECT - + CAST( - NULLIF ( - 12, + 34 * - 18 + + 98 * + ( + - 7 ) ) AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1914
SELECT - + CAST ( - NULLIF ( - 12, + 34 * - 18 + + 98 * + ( + - 7 ) ) AS INTEGER ) AS col1
----
-12

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1916
SELECT ALL - 32 col0, 67 - - 4 DIV + 65
----
-32
67

skipif mysql # not compatible
query II rowsort label-1916
SELECT ALL - 32 col0, 67 - - 4 / + 65
----
-32
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1917
SELECT - CASE - AVG ( DISTINCT + 32 ) WHEN + 86 THEN - + 27 WHEN 63 * 47 THEN NULL ELSE NULL END * - + SUM( DISTINCT - CAST( - + 98 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT - CASE - AVG ( DISTINCT + 32 ) WHEN + 86 THEN - + 27 WHEN 63 * 47 THEN NULL ELSE NULL END * - + SUM ( DISTINCT - CAST ( - + 98 AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1918
SELECT 91 - - CAST( + 36 AS SIGNED )
----
127

skipif mysql # not compatible
query I rowsort label-1918
SELECT 91 - - CAST ( + 36 AS INTEGER )
----
127

query I rowsort
SELECT - 39 * + 24 - + 54 + + - 91 + + 9 * + 75 AS col2
----
-406

query I rowsort
SELECT DISTINCT - 73 + - 93 + - 29 * - 9 AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1921
SELECT DISTINCT - + COUNT( * ) DIV + 35 AS col1
----
0

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

query I rowsort
SELECT ALL - 40 - - + 66 col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1923
SELECT ALL - COALESCE ( ( - + 38 ), - 92 * + + 16 + + + 30, - 94, - - 91 * 63 + 16 + 74 + 68 + - 27 * + 10 + - COALESCE ( - 39, + CAST( NULL AS SIGNED ) DIV + ( - COUNT( * ) ) + - 41 + 4 * - NULLIF ( - 83 * - 11, 69 ), - 23 ) * 88 - - 83 ) * CAST( - 18 - + 46 AS SIGNED ) AS col0
----
-2432

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL - COALESCE ( ( - + 38 ), - 92 * + + 16 + + + 30, - 94, - - 91 * 63 + 16 + 74 + 68 + - 27 * + 10 + - COALESCE ( - 39, + CAST ( NULL AS INTEGER ) / + ( - COUNT ( * ) ) + - 41 + 4 * - NULLIF ( - 83 * - 11, 69 ), - 23 ) * 88 - - 83 ) * CAST ( - 18 - + 46 AS INTEGER ) AS col0
----
-2432

query II rowsort
SELECT DISTINCT - 73 AS col1, + 34 AS col2
----
-73
34

query II rowsort
SELECT 95, 45 AS col2
----
95
45

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

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

query I rowsort
SELECT + + 24 col1
----
24

query I rowsort
SELECT - 55 * - + 50 AS col1
----
2750

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

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

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

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT ( - COUNT ( * ) ) * 54 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 85 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT + MAX( ALL 94 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-1932
SELECT + MAX ( ALL 94 ) col1
----
94

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

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

query I rowsort
SELECT ALL 81 * - ( - 26 ) AS col0
----
2106

onlyif mysql # aggregate syntax: 
query II rowsort label-1935
SELECT SUM( DISTINCT - 69 ) AS col1, 84 + - + 86 + + 97 * - + ( + + 62 )
----
-69
-6016

skipif mysql # not compatible
query II rowsort label-1935
SELECT SUM ( DISTINCT - 69 ) AS col1, 84 + - + 86 + + 97 * - + ( + + 62 )
----
-69
-6016

onlyif mysql # DIV for integer division: 
query I rowsort label-1936
SELECT DISTINCT ( + - 87 ) * 34 + 4 DIV - 75
----
-2958

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT ( + - 87 ) * 34 + 4 / - 75
----
-2958

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT ALL 34 + - - ( - COUNT( * ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL 34 + - - ( - COUNT ( * ) ) AS col1
----
33

query II rowsort
SELECT + 39 + + + 55 AS col1, - 65 AS col1
----
94
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT + COALESCE ( - + 51, + MIN( DISTINCT - ( - 66 ) ) * 61 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-1939
SELECT + COALESCE ( - + 51, + MIN ( DISTINCT - ( - 66 ) ) * 61 ) AS col0
----
-51

query I rowsort
SELECT + 16 + - 24 * ( + 98 )
----
-2336

query I rowsort
SELECT ALL 27 + + - 52 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT SUM( + 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-1942
SELECT SUM ( + 97 ) AS col2
----
97

query I rowsort
SELECT ALL 98 + - NULLIF ( - 93, + + 74 / 67 - 15 ) * - ( - 57 ) AS col2
----
5399

onlyif mysql # DIV for integer division: 
query I rowsort label-1944
SELECT ALL 21 DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL 21 / - 27
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT - CASE - MIN( + 23 ) WHEN + 54 + 36 - + CASE WHEN NOT + ( + COUNT( * ) ) IN ( + COALESCE ( + 49, CASE + COUNT( * ) WHEN COUNT( * ) THEN - - 12 * + COUNT( * ) * 69 + 49 + - 68 END - 82 * + + 75 * + 78 ) / COALESCE ( + 19, - 94 * 18, + 80 - 21 ) ) THEN 31 / + 81 ELSE + 50 END + 69 * 11 * + 35 THEN + 96 WHEN + 59 * - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT - CASE - MIN ( + 23 ) WHEN + 54 + 36 - + CASE WHEN NOT + ( + COUNT ( * ) ) IN ( + COALESCE ( + 49, CASE + COUNT ( * ) WHEN COUNT ( * ) THEN - - 12 * + COUNT ( * ) * 69 + 49 + - 68 END - 82 * + + 75 * + 78 ) / COALESCE ( + 19, - 94 * 18, + 80 - 21 ) ) THEN 31 / + 81 ELSE + 50 END + 69 * 11 * + 35 THEN + 96 WHEN + 59 * - COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - + 16 + 22 col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1948
SELECT ALL 80 * - MAX( - + 57 ) * - - 57 * + COUNT( 97 ) + 81 col2, + 23 AS col2
----
260001
23

skipif mysql # not compatible
query II rowsort label-1948
SELECT ALL 80 * - MAX ( - + 57 ) * - - 57 * + COUNT ( 97 ) + 81 col2, + 23 AS col2
----
260001
23

query I rowsort
SELECT ALL 84 + 36 col0
----
120

query I rowsort
SELECT + 54 + - + 10 + - 38 AS col1
----
6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1952
SELECT + 68 + 21 * + 18 + + CASE + 41 WHEN - - SUM( DISTINCT + 23 ) * - 55 * + 12 * + + 24 + + - 14 + + NULLIF ( - 59, + + 30 * - 91 DIV 34 ) + + 0 DIV + - ( COUNT( * ) ) + - 10 THEN ( + - 31 ) ELSE COALESCE ( + COALESCE ( - COALESCE ( - 91, - 58 DIV CAST( + CASE - 22 WHEN - 56 * 18 THEN + 83 * - 25 + - 21 END AS SIGNED ), ( - 11 ) * + 19 - 51 * - 86 ), NULLIF ( 51, - 34 ) * 70, 24 ), + 92 * 17 + + 28 DIV - ( + 69 + - 25 * + COUNT( * ) ) ) + - COUNT( * ) END AS col2
----
536

skipif mysql # not compatible
query I rowsort label-1952
SELECT + 68 + 21 * + 18 + + CASE + 41 WHEN - - SUM ( DISTINCT + 23 ) * - 55 * + 12 * + + 24 + + - 14 + + NULLIF ( - 59, + + 30 * - 91 / 34 ) + + 0 / + - ( COUNT ( * ) ) + - 10 THEN ( + - 31 ) ELSE COALESCE ( + COALESCE ( - COALESCE ( - 91, - 58 / CAST ( + CASE - 22 WHEN - 56 * 18 THEN + 83 * - 25 + - 21 END AS INTEGER ), ( - 11 ) * + 19 - 51 * - 86 ), NULLIF ( 51, - 34 ) * 70, 24 ), + 92 * 17 + + 28 / - ( + 69 + - 25 * + COUNT ( * ) ) ) + - COUNT ( * ) END AS col2
----
536

query I rowsort
SELECT ALL - 44 * + 3
----
-132

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT DISTINCT - 0 * - + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT - 0 * - + COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1957
SELECT - + 14 + + 41 DIV - 38 * COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-1957
SELECT - + 14 + + 41 / - 38 * COUNT ( * )
----
-15

query I rowsort
SELECT ALL + 49 col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1959
SELECT + 70 DIV + 13 + + + 10 + 62
----
77

skipif mysql # not compatible
query I rowsort label-1959
SELECT + 70 / + 13 + + + 10 + 62
----
77

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

skipif mysql # not compatible
query I rowsort label-1960
SELECT - COUNT ( * ) * COUNT ( * ) * + COUNT ( ALL - 61 ) * 54 AS col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-1961
SELECT ALL - + 71 DIV 71 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL - + 71 / 71 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT - + COUNT( * ) + + - 20 * 92 AS col1
----
-1841

skipif mysql # not compatible
query I rowsort label-1962
SELECT - + COUNT ( * ) + + - 20 * 92 AS col1
----
-1841

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT COUNT( ALL + + 33 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1963
SELECT COUNT ( ALL + + 33 ) col0
----
1

query I rowsort
SELECT ALL - + 96 * 59 * + - 14 * NULLIF ( - ( + 42 ), - 39 * 12 + + + 30 * 19 / - 75 )
----
-3330432

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT - + 62 DIV + 61
----
-1

skipif mysql # not compatible
query I rowsort label-1965
SELECT - + 62 / + 61
----
-1

query I rowsort
SELECT DISTINCT + + 80 AS col2
----
80

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

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

query I rowsort
SELECT - 99 + - 15 col0
----
-114

query I rowsort
SELECT ALL + 57 * 15 * + 75
----
64125

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL + SUM( - 51 ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + SUM ( - 51 ) col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1971
SELECT - 21 * COALESCE ( + 26, 45 + + COALESCE ( 38, - - 83, + 2 ) + + ( + ( + 0 ) ), - + CASE - 92 WHEN + COUNT( * ) - - + 46 THEN 12 ELSE + 62 * + 61 * 54 * - 65 END / + 63 + 10 - 19 ) / CAST( NULL AS SIGNED ) + - COUNT( * ) * + AVG ( NULLIF ( - 82, + ( 3 ) / 16 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT - 21 * COALESCE ( + 26, 45 + + COALESCE ( 38, - - 83, + 2 ) + + ( + ( + 0 ) ), - + CASE - 92 WHEN + COUNT ( * ) - - + 46 THEN 12 ELSE + 62 * + 61 * 54 * - 65 END / + 63 + 10 - 19 ) / CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + AVG ( NULLIF ( - 82, + ( 3 ) / 16 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1972
SELECT 66 DIV + 67 + 26 + + NULLIF ( + + 94, + 59 ) DIV + + 34
----
28

skipif mysql # not compatible
query I rowsort label-1972
SELECT 66 / + 67 + 26 + + NULLIF ( + + 94, + 59 ) / + + 34
----
28

query I rowsort
SELECT ( 26 ) col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT ALL - COUNT( * ) * - + MIN( ALL + 54 ) + - + 55 + COUNT( * ) + - MAX( - 91 ) * - COUNT( * ) * - 50 + + - 74 + 68 + 71 * + 10 + - 4 * + + COUNT( * ) AS col1
----
5250

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL - COUNT ( * ) * - + MIN ( ALL + 54 ) + - + 55 + COUNT ( * ) + - MAX ( - 91 ) * - COUNT ( * ) * - 50 + + - 74 + 68 + 71 * + 10 + - 4 * + + COUNT ( * ) AS col1
----
5250

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT - 58 * - 22 * - MIN( ALL + 89 ) + + - COUNT( * ) AS col1
----
-113565

skipif mysql # not compatible
query I rowsort label-1975
SELECT - 58 * - 22 * - MIN ( ALL + 89 ) + + - COUNT ( * ) AS col1
----
-113565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1976
SELECT + COUNT( * ) + - ( + 27 ) * - 10 + - + COALESCE ( - 74, 62 * 67 ), + 80 + - - CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
345
NULL

skipif mysql # not compatible
query II rowsort label-1976
SELECT + COUNT ( * ) + - ( + 27 ) * - 10 + - + COALESCE ( - 74, 62 * 67 ), + 80 + - - CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
345
NULL

query I rowsort
SELECT DISTINCT + 88 * - 63 + - 29 AS col1
----
-5573

query II rowsort
SELECT DISTINCT + 9 AS col1, - 60 AS col1
----
9
-60

query I rowsort
SELECT COALESCE ( + ( + 96 ), + - 55, + - 33 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL + CASE COUNT( * ) WHEN COALESCE ( 56, - ( + + 34 ), + ( 38 ) * + 49 * - 95 ) / 6 * - COUNT( - - 4 ) THEN + COUNT( * ) / + COUNT( ALL + 12 ) ELSE NULL END * 62 * + MAX( ALL 41 ) + - - 13 + - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL + CASE COUNT ( * ) WHEN COALESCE ( 56, - ( + + 34 ), + ( 38 ) * + 49 * - 95 ) / 6 * - COUNT ( - - 4 ) THEN + COUNT ( * ) / + COUNT ( ALL + 12 ) ELSE NULL END * 62 * + MAX ( ALL 41 ) + - - 13 + - 8 AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 59, - - 24 * 66 ) * ( + 87 ) + - 59 * 12 + - 31 + - - 66
----
-5806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1982
SELECT + 86 + + NULLIF ( + + 89, - AVG ( + CAST( - + NULLIF ( + 15, + 62 + + + ( - COALESCE ( - + 27, + + 33 ) ) ) AS SIGNED ) ) )
----
175

skipif mysql # not compatible
query I rowsort label-1982
SELECT + 86 + + NULLIF ( + + 89, - AVG ( + CAST ( - + NULLIF ( + 15, + 62 + + + ( - COALESCE ( - + 27, + + 33 ) ) ) AS INTEGER ) ) )
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT + COUNT( * ) * - + COUNT( * ) + - 43
----
-44

skipif mysql # not compatible
query I rowsort label-1983
SELECT + COUNT ( * ) * - + COUNT ( * ) + - 43
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1984
SELECT + MIN( DISTINCT - CAST( + 55 AS SIGNED ) ), ( + COALESCE ( - 8, + + 8, + - COUNT( * ) ) ) * + 40 AS col2
----
-55
-320

skipif mysql # not compatible
query II rowsort label-1984
SELECT + MIN ( DISTINCT - CAST ( + 55 AS INTEGER ) ), ( + COALESCE ( - 8, + + 8, + - COUNT ( * ) ) ) * + 40 AS col2
----
-55
-320

query I rowsort
SELECT - ( - 87 ) AS col0
----
87

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

query I rowsort
SELECT - 50 * 46
----
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT + COUNT( DISTINCT + 0 ) * + - 53 + + 89 + 5 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1988
SELECT + COUNT ( DISTINCT + 0 ) * + - 53 + + 89 + 5 AS col1
----
41

query II rowsort
SELECT ALL 90 AS col1, 20 AS col0
----
90
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1990
SELECT DISTINCT 73 * + + 28 - + 69 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT 73 * + + 28 - + 69 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 61 * - 87
----
-5307

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT ALL - 4 * 60 DIV 42 * + 34
----
-170

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL - 4 * 60 / 42 * + 34
----
-170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1993
SELECT ALL + 23 DIV 28 * - - COUNT( + + 10 ) * + 12
----
0

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL + 23 / 28 * - - COUNT ( + + 10 ) * + 12
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1994
SELECT + CAST( - 13 AS SIGNED ) DIV COALESCE ( - + 14, + - NULLIF ( - COUNT( * ), 19 * - - NULLIF ( 12, + MIN( ALL - - ( + - 11 ) ) ) DIV + - 4 + - 84 + + 36 - - 57 + - + 68 * NULLIF ( + 57, + 45 ) ) * + 24 DIV CAST( - 0 AS SIGNED ) DIV + 90, - 93 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1994
SELECT + CAST ( - 13 AS INTEGER ) / COALESCE ( - + 14, + - NULLIF ( - COUNT ( * ), 19 * - - NULLIF ( 12, + MIN ( ALL - - ( + - 11 ) ) ) / + - 4 + - 84 + + 36 - - 57 + - + 68 * NULLIF ( + 57, + 45 ) ) * + 24 / CAST ( - 0 AS INTEGER ) / + 90, - 93 ) col0
----
0

query I rowsort
SELECT ALL - 41 AS col2
----
-41

query I rowsort
SELECT + 97 + + 68
----
165

query I rowsort
SELECT + + 27 * + 17 + 32
----
491

query II rowsort
SELECT ALL + COALESCE ( - 44, - 87 ), 43 - 0 col0
----
-44
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1999
SELECT + 54 - - COUNT( * ) - - - 13 AS col1, COALESCE ( + - 80, + 55 ) * + 93 + 23 col2
----
42
-7417

skipif mysql # not compatible
query II rowsort label-1999
SELECT + 54 - - COUNT ( * ) - - - 13 AS col1, COALESCE ( + - 80, + 55 ) * + 93 + 23 col2
----
42
-7417

query I rowsort
SELECT + + 82 - - 73 AS col0
----
155

query II rowsort
SELECT ALL 4 AS col0, 24 AS col1
----
4
24

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2004
SELECT ALL 54, MIN( + 99 ) AS col0
----
54
99

skipif mysql # not compatible
query II rowsort label-2004
SELECT ALL 54, MIN ( + 99 ) AS col0
----
54
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT DISTINCT CASE WHEN + CASE + - COUNT( * ) WHEN - 10 THEN NULL WHEN + - 23 - 53 THEN ( COUNT( DISTINCT + ( + 21 ) ) ) * 72 + COALESCE ( + + 45, 9 ) WHEN - 40 + - 7 + - 1 THEN NULL END NOT IN ( + 14 + + 18 ) THEN NULL ELSE ( - - 46 ) END
----
46

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT CASE WHEN + CASE + - COUNT ( * ) WHEN - 10 THEN NULL WHEN + - 23 - 53 THEN ( COUNT ( DISTINCT + ( + 21 ) ) ) * 72 + COALESCE ( + + 45, 9 ) WHEN - 40 + - 7 + - 1 THEN NULL END NOT IN ( + 14 + + 18 ) THEN NULL ELSE ( - - 46 ) END
----
46

query II rowsort
SELECT - 13 * 19 * + 24, 30 AS col2
----
-5928
30

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

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL - 94 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT - 73 * - 71 - COUNT( * ) + + - 34 * + ( + + 15 )
----
4672

skipif mysql # not compatible
query I rowsort label-2010
SELECT - 73 * - 71 - COUNT ( * ) + + - 34 * + ( + + 15 )
----
4672

query I rowsort
SELECT COALESCE ( 20, 57 * - 99 ) * - 15 col0
----
-300

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

skipif mysql # not compatible
query I rowsort label-2012
SELECT 35 / ( - - COUNT ( * ) )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2013
SELECT 42 * 46 DIV - - 2
----
966

skipif mysql # not compatible
query I rowsort label-2013
SELECT 42 * 46 / - - 2
----
966

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT + 53 * - NULLIF ( - 94, 73 / 33 + - 42 / COUNT( * ) ) AS col2
----
4982

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT + 53 * - NULLIF ( - 94, 73 / 33 + - 42 / COUNT ( * ) ) AS col2
----
4982

query I rowsort
SELECT ALL + 35 + 35
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2016
SELECT 61 DIV + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2016
SELECT 61 / + 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT ALL - NULLIF ( 70, COUNT( * ) * - 52 + 71 ) * + 22 - - 72 col1
----
-1468

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL - NULLIF ( 70, COUNT ( * ) * - 52 + 71 ) * + 22 - - 72 col1
----
-1468

onlyif mysql # aggregate syntax: 
query II rowsort label-2018
SELECT 70 * - 90 AS col1, ( + COUNT( + 73 ) ) + + + 75
----
-6300
76

skipif mysql # not compatible
query II rowsort label-2018
SELECT 70 * - 90 AS col1, ( + COUNT ( + 73 ) ) + + + 75
----
-6300
76

query I rowsort
SELECT ALL - ( - 99 ) AS col2
----
99

query I rowsort
SELECT + 78 * + 1 * + + 31 + 80 AS col0
----
2498

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT 60 + + + ( NULLIF ( NULLIF ( + 40, + COUNT( * ) ), - + 79 ) )
----
100

skipif mysql # not compatible
query I rowsort label-2021
SELECT 60 + + + ( NULLIF ( NULLIF ( + 40, + COUNT ( * ) ), - + 79 ) )
----
100

query II rowsort
SELECT 96 * + 59 col2, 4
----
5664
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT + MIN( + NULLIF ( + 33, - - 71 ) )
----
33

skipif mysql # not compatible
query I rowsort label-2023
SELECT + MIN ( + NULLIF ( + 33, - - 71 ) )
----
33

query I rowsort
SELECT - - ( - 45 ) AS col2
----
-45

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2026
SELECT 99 DIV 2 + - 87 - - + 30, 54 * + 17 AS col0
----
-8
918

skipif mysql # not compatible
query II rowsort label-2026
SELECT 99 / 2 + - 87 - - + 30, 54 * + 17 AS col0
----
-8
918

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + 52 + - CASE + COUNT( * ) WHEN - AVG ( ALL - CASE - + 82 WHEN 51 THEN NULL ELSE 63 END ) THEN + - COUNT( * ) ELSE 70 END AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2027
SELECT + 52 + - CASE + COUNT ( * ) WHEN - AVG ( ALL - CASE - + 82 WHEN 51 THEN NULL ELSE 63 END ) THEN + - COUNT ( * ) ELSE 70 END AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2028
SELECT - 61 / + 21 - + ( + COUNT( * ) ) * CAST( NULL AS DECIMAL ) * 12 * + 82 AS col2, + 83 * - CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2028
SELECT - 61 / + 21 - + ( + COUNT ( * ) ) * CAST ( NULL AS REAL ) * 12 * + 82 AS col2, + 83 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

query I rowsort
SELECT ALL + + 87 + 35 col1
----
122

query I rowsort
SELECT 68 * - 43 * 9
----
-26316

query I rowsort
SELECT ALL - 9 + + + 30 * 58
----
1731

onlyif mysql # aggregate syntax: 
query II rowsort label-2032
SELECT DISTINCT - 98 * - + NULLIF ( + + 87, + 59 ) col0, - MIN( + - 58 ) AS col0
----
8526
58

skipif mysql # not compatible
query II rowsort label-2032
SELECT DISTINCT - 98 * - + NULLIF ( + + 87, + 59 ) col0, - MIN ( + - 58 ) AS col0
----
8526
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2033
SELECT - ( + ( ( + - 66 ) ) ) + + CASE - MAX( DISTINCT + - 49 ) WHEN + 17 THEN - 2 END, 16 col0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-2033
SELECT - ( + ( ( + - 66 ) ) ) + + CASE - MAX ( DISTINCT + - 49 ) WHEN + 17 THEN - 2 END, 16 col0
----
NULL
16

query II rowsort
SELECT 50 AS col1, 89
----
50
89

query II rowsort
SELECT 85 AS col0, 7 * - 25
----
85
-175

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

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL CAST ( - 25 AS INTEGER ) + 92 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT COUNT( * ) + 79 + + 97 AS col0
----
177

skipif mysql # not compatible
query I rowsort label-2037
SELECT COUNT ( * ) + 79 + + 97 AS col0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT CASE - 39 WHEN + COUNT( * ) THEN NULL WHEN + + 76 THEN 49 END * - 35 * - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT CASE - 39 WHEN + COUNT ( * ) THEN NULL WHEN + + 76 THEN 49 END * - 35 * - - 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT DISTINCT CASE + NULLIF ( - 52, - - 21 ) WHEN + - 24 THEN + 93 + - 18 WHEN COUNT( * ) - - + CAST( + 30 AS SIGNED ) + + - 44 * + ( + + 71 ) / - 13 * + 39 * + 33 THEN + 68 END + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT CASE + NULLIF ( - 52, - - 21 ) WHEN + - 24 THEN + 93 + - 18 WHEN COUNT ( * ) - - + CAST ( + 30 AS INTEGER ) + + - 44 * + ( + + 71 ) / - 13 * + 39 * + 33 THEN + 68 END + 24
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT 3 DIV 22 + 50
----
50

skipif mysql # not compatible
query I rowsort label-2040
SELECT 3 / 22 + 50
----
50

query I rowsort
SELECT ALL 22 + - 22 + 64 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT ALL + 67 + 6 * - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL + 67 + 6 * - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT SUM( + + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2043
SELECT SUM ( + + 92 ) AS col2
----
92

query I rowsort
SELECT + 74 * + 91 + 15 col2
----
6749

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2045
SELECT COALESCE ( - - CASE + - 73 WHEN + MAX( + - 20 ) THEN + - 33 WHEN - + 82 + + + COUNT( * ) - 89 THEN + MIN( + 13 ) + - 13 + + 80 END, - + 87 * + + 75 + CASE - 56 WHEN - 60 / + 1 THEN + 79 * + 5 * + 77 * + 32 * + 11 + - + AVG ( DISTINCT - 7 ) / CAST( NULL AS DECIMAL ) ELSE NULL END ) * - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT COALESCE ( - - CASE + - 73 WHEN + MAX ( + - 20 ) THEN + - 33 WHEN - + 82 + + + COUNT ( * ) - 89 THEN + MIN ( + 13 ) + - 13 + + 80 END, - + 87 * + + 75 + CASE - 56 WHEN - 60 / + 1 THEN + 79 * + 5 * + 77 * + 32 * + 11 + - + AVG ( DISTINCT - 7 ) / CAST ( NULL AS REAL ) ELSE NULL END ) * - 36 AS col2
----
NULL

query I rowsort
SELECT 80 + - 9
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT MAX( DISTINCT - 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-2047
SELECT MAX ( DISTINCT - 29 ) AS col2
----
-29

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

skipif mysql # not compatible
query I rowsort label-2048
SELECT + SUM ( + 12 )
----
12

query I rowsort
SELECT 96 + COALESCE ( + - 26, 88 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT ALL + 32 DIV 13
----
2

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL + 32 / 13
----
2

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

query I rowsort
SELECT 79 * + + 85
----
6715

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT ALL + MIN( DISTINCT 29 ) * + - 99 * + 38
----
-109098

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL + MIN ( DISTINCT 29 ) * + - 99 * + 38
----
-109098

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2055
SELECT ALL + 45 DIV 85 + 91 + + 56 * - ( + + 6 ) AS col0, 19 * + 48 col2
----
-245
912

skipif mysql # not compatible
query II rowsort label-2055
SELECT ALL + 45 / 85 + 91 + + 56 * - ( + + 6 ) AS col0, 19 * + 48 col2
----
-245
912

query I rowsort
SELECT 22 * + + 51
----
1122

query I rowsort
SELECT DISTINCT + 54 * - ( + + 62 )
----
-3348

query I rowsort
SELECT ALL - NULLIF ( + COALESCE ( 42, + + 22 - - 23 * + 12 ), + + 31 )
----
-42

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2060
SELECT ALL + COUNT( * ) * + + 49 + + + 63 AS col0, + 93 DIV + + 34 + - 66
----
112
-64

skipif mysql # not compatible
query II rowsort label-2060
SELECT ALL + COUNT ( * ) * + + 49 + + + 63 AS col0, + 93 / + + 34 + - 66
----
112
-64

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

query I rowsort
SELECT - 6 + 96 col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT - 50 * + + COUNT( * ) + + - 48
----
-98

skipif mysql # not compatible
query I rowsort label-2063
SELECT - 50 * + + COUNT ( * ) + + - 48
----
-98

query I rowsort
SELECT ALL + 60 + + NULLIF ( + ( - 63 ), 4 )
----
-3

query I rowsort
SELECT ALL - - 89 + - - 71
----
160

query II rowsort
SELECT ALL + 27, 6 AS col1
----
27
6

query I rowsort
SELECT DISTINCT + 11 + 34
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2068
SELECT - + 0 * + 31 * 89 / + + ( - CAST( - - 38 AS DECIMAL ) ) * 30 + - 18 + + CASE ( + + CASE 88 WHEN - - 18 THEN NULL WHEN - + CASE + + 77 WHEN 3 * - 0 THEN + AVG ( + + 47 ) - + - 48 WHEN + + 32 THEN MIN( - 7 ) - 37 END THEN NULL ELSE + 0 * + COUNT( * ) END ) WHEN - 31 THEN - ( - CASE 73 WHEN ( 1 ) THEN 33 WHEN + 73 * COUNT( * ) THEN COUNT( * ) END ) ELSE NULL END * - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT - + 0 * + 31 * 89 / + + ( - CAST ( - - 38 AS REAL ) ) * 30 + - 18 + + CASE ( + + CASE 88 WHEN - - 18 THEN NULL WHEN - + CASE + + 77 WHEN 3 * - 0 THEN + AVG ( + + 47 ) - + - 48 WHEN + + 32 THEN MIN ( - 7 ) - 37 END THEN NULL ELSE + 0 * + COUNT ( * ) END ) WHEN - 31 THEN - ( - CASE 73 WHEN ( 1 ) THEN 33 WHEN + 73 * COUNT ( * ) THEN COUNT ( * ) END ) ELSE NULL END * - 45 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2070
SELECT - CASE WHEN NOT + 16 IS NOT NULL THEN - 62 ELSE NULL END + - 24, 19 + + - COUNT( * ) AS col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-2070
SELECT - CASE WHEN NOT + 16 IS NOT NULL THEN - 62 ELSE NULL END + - 24, 19 + + - COUNT ( * ) AS col1
----
NULL
18

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

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

skipif mysql # not compatible
query II rowsort label-2072
SELECT - 28 AS col2, COUNT ( * ) AS col1
----
-28
1

query I rowsort
SELECT - + 6
----
-6

query II rowsort
SELECT - + 93, 58 - - ( - + 53 ) AS col0
----
-93
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT - 52 - + 20 - - COUNT( * ) + + 15 + + 64
----
8

skipif mysql # not compatible
query I rowsort label-2075
SELECT - 52 - + 20 - - COUNT ( * ) + + 15 + + 64
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2076
SELECT - MIN( CAST( NULL AS SIGNED ) )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT ALL + MAX( - 72 ) * 71
----
-5112

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL + MAX ( - 72 ) * 71
----
-5112

query II rowsort
SELECT DISTINCT 97, 34 AS col1
----
97
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2079
SELECT ALL + ( - - COALESCE ( + 21, 7 ) ) + - - 13 + CAST( - 87 AS SIGNED ) + 18 * - + MAX( + - 97 ) AS col1
----
1693

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL + ( - - COALESCE ( + 21, 7 ) ) + - - 13 + CAST ( - 87 AS INTEGER ) + 18 * - + MAX ( + - 97 ) AS col1
----
1693

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT + 10 DIV + 89 * 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT + 10 / + 89 * 30 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT DISTINCT COALESCE ( + + 95, + SUM( + + 41 ), + 22, + 70 + + 64 * + 37 - 43 + + 34 )
----
95

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT COALESCE ( + + 95, + SUM ( + + 41 ), + 22, + 70 + + 64 * + 37 - 43 + + 34 )
----
95

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2084
SELECT ALL 69 DIV 45 DIV + - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL 69 / 45 / + - 96 AS col0
----
0

query I rowsort
SELECT + ( NULLIF ( - 77, - 55 ) ) * - ( 82 )
----
6314

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

query I rowsort
SELECT ( 56 )
----
56

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

query I rowsort
SELECT ALL 97 * - 93
----
-9021

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

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

query I rowsort
SELECT DISTINCT 26 * + - 80 * - 9 * 2
----
37440

query I rowsort
SELECT ALL + 50 col2
----
50

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2095
SELECT - COUNT( * ) * + 16 + - ( - 28 ) DIV 32 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2095
SELECT - COUNT ( * ) * + 16 + - ( - 28 ) / 32 AS col2
----
-16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT ALL + CASE + - 94 WHEN 51 * - 65 THEN NULL WHEN + - 51 THEN - 20 WHEN + + 53 + + 98 * 78 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + CASE + - 94 WHEN 51 * - 65 THEN NULL WHEN + - 51 THEN - 20 WHEN + + 53 + + 98 * 78 THEN + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2098
SELECT ALL - + CASE - CAST( 62 AS SIGNED ) WHEN - - 93 THEN + 40 ELSE - 75 END * 61 * + - 28 * 18 + - 70 + 91
----
-2305779

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL - + CASE - CAST ( 62 AS INTEGER ) WHEN - - 93 THEN + 40 ELSE - 75 END * 61 * + - 28 * 18 + - 70 + 91
----
-2305779

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2100
SELECT ALL + - 90 AS col1, + CAST( - 73 AS SIGNED ) + - 18 AS col1
----
-90
-91

skipif mysql # not compatible
query II rowsort label-2100
SELECT ALL + - 90 AS col1, + CAST ( - 73 AS INTEGER ) + - 18 AS col1
----
-90
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT DISTINCT + - CASE + 34 WHEN + 1 * + 37 + - - 61 THEN - 50 ELSE 94 END * - + 94 + - + SUM( - 8 ) * + 82 + - 56 * - 6 * - + NULLIF ( + 32, + + 97 ) + + 30 AS col1
----
-1230

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT + - CASE + 34 WHEN + 1 * + 37 + - - 61 THEN - 50 ELSE 94 END * - + 94 + - + SUM ( - 8 ) * + 82 + - 56 * - 6 * - + NULLIF ( + 32, + + 97 ) + + 30 AS col1
----
-1230

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT + ( 82 ) + + + 68 * + COUNT( * ) * + 3
----
286

skipif mysql # not compatible
query I rowsort label-2102
SELECT + ( 82 ) + + + 68 * + COUNT ( * ) * + 3
----
286

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL 45 * + - 52 * + ( + 29 ) + ( - COUNT( * ) ) - + + 81 + - 9 * 70
----
-68572

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL 45 * + - 52 * + ( + 29 ) + ( - COUNT ( * ) ) - + + 81 + - 9 * 70
----
-68572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2104
SELECT ALL - + 47 * + + CAST( NULL AS SIGNED ) + - 88 * 21 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL - + 47 * + + CAST ( NULL AS INTEGER ) + - 88 * 21 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2105
SELECT ALL - 73 DIV - 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL - 73 / - 55 AS col0
----
1

query I rowsort
SELECT ALL + - 48 * - + 7 + - 9 AS col1
----
327

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT - + COUNT( * ) + - 59 AS col0, + 83
----
-60
83

skipif mysql # not compatible
query II rowsort label-2107
SELECT - + COUNT ( * ) + - 59 AS col0, + 83
----
-60
83

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

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

query I rowsort
SELECT DISTINCT - + 20 + + 39 + + + 38 - - + 94 + 94
----
245

query I rowsort
SELECT ALL + + 57 + 29 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT + 37 + + - 0 - - COUNT( * ) * + COUNT( * ) * + 5 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2111
SELECT + 37 + + - 0 - - COUNT ( * ) * + COUNT ( * ) * + 5 AS col2
----
42

query I rowsort
SELECT DISTINCT + 80 col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT - 50 + + + COUNT( * ) DIV + 10 + - 39 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-2113
SELECT - 50 + + + COUNT ( * ) / + 10 + - 39 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT ALL ( 56 ) + + - COUNT( ALL 67 ) + - 78 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL ( 56 ) + + - COUNT ( ALL 67 ) + - 78 AS col2
----
-23

query I rowsort
SELECT DISTINCT + 67 - - NULLIF ( + - 96, - + 32 ) * + - 47 AS col2
----
4579

query I rowsort
SELECT ALL + 49 - 42
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT - SUM( ALL - + 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2117
SELECT - SUM ( ALL - + 15 ) AS col0
----
15

query I rowsort
SELECT - 75 + ( + - 15 ) * 84
----
-1335

query I rowsort
SELECT - 39 * - - ( + - 60 ) AS col2
----
2340

query II rowsort
SELECT DISTINCT - 31 * + 10 AS col0, ( + 30 ) AS col0
----
-310
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT - 3 + - 94 * - COUNT( * ) col1
----
91

skipif mysql # not compatible
query I rowsort label-2122
SELECT - 3 + - 94 * - COUNT ( * ) col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2123
SELECT DISTINCT + COALESCE ( 5, - - COUNT( * ) - + - CASE - + CAST( NULL AS DECIMAL ) WHEN - CASE - 93 WHEN + - COALESCE ( + CAST( - 5 AS SIGNED ), ( 87 ) * 54, + 72 ) * 32 - - - 43 THEN NULL WHEN - ( 49 ) THEN - + 3 ELSE NULL END / - + COUNT( * ) THEN - + SUM( 59 ) END + - 44 * 94 * 4 ) AS col1, + 5 * - ( - CAST( NULL AS SIGNED ) ) * - 12 + - COUNT( * ) AS col0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-2123
SELECT DISTINCT + COALESCE ( 5, - - COUNT ( * ) - + - CASE - + CAST ( NULL AS REAL ) WHEN - CASE - 93 WHEN + - COALESCE ( + CAST ( - 5 AS INTEGER ), ( 87 ) * 54, + 72 ) * 32 - - - 43 THEN NULL WHEN - ( 49 ) THEN - + 3 ELSE NULL END / - + COUNT ( * ) THEN - + SUM ( 59 ) END + - 44 * 94 * 4 ) AS col1, + 5 * - ( - CAST ( NULL AS INTEGER ) ) * - 12 + - COUNT ( * ) AS col0
----
5
NULL

query I rowsort
SELECT DISTINCT - 32 * - 44 * - 42
----
-59136

query II rowsort
SELECT ALL + 77 * - 36, + 23 AS col2
----
-2772
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2126
SELECT - ( 58 ) + + 13 AS col0, 47 * MIN( + 53 ) AS col1
----
-45
2491

skipif mysql # not compatible
query II rowsort label-2126
SELECT - ( 58 ) + + 13 AS col0, 47 * MIN ( + 53 ) AS col1
----
-45
2491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2127
SELECT + 56 DIV + COUNT( * ) AS col0
----
56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT ( + 76 ) * + + MIN( 36 ) * + 52 + 67
----
142339

skipif mysql # not compatible
query I rowsort label-2128
SELECT ( + 76 ) * + + MIN ( 36 ) * + 52 + 67
----
142339

query I rowsort
SELECT + 36 col1
----
36

query I rowsort
SELECT - ( + 23 ) * 63 col1
----
-1449

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

skipif mysql # not compatible
query I rowsort label-2131
SELECT - COUNT ( * ) / - COUNT ( * ) + - ( - 42 ) AS col1
----
43

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

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

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

query I rowsort
SELECT ALL - + 31 col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2135
SELECT + CAST( NULL AS SIGNED ) * + + 32 - - 43 + + - AVG ( DISTINCT - - 18 ) * - CASE WHEN NOT - 51 <= + 72 THEN + CASE - 91 WHEN + 67 THEN - 31 WHEN - COUNT( * ) + - + 58 THEN NULL WHEN + 87 + 9 * - - 97 THEN NULL END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT + CAST ( NULL AS INTEGER ) * + + 32 - - 43 + + - AVG ( DISTINCT - - 18 ) * - CASE WHEN NOT - 51 <= + 72 THEN + CASE - 91 WHEN + 67 THEN - 31 WHEN - COUNT ( * ) + - + 58 THEN NULL WHEN + 87 + 9 * - - 97 THEN NULL END END AS col1
----
NULL

query I rowsort
SELECT ALL - - ( + 80 ) + - 51 AS col0
----
29

query I rowsort
SELECT DISTINCT - - 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL + 13 + 49 + + COUNT( * ) * - 69 - + - 24 * - COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL + 13 + 49 + + COUNT ( * ) * - 69 - + - 24 * - COUNT ( * ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-2139
SELECT ALL + 44 + + 80 AS col0, - COUNT( * ) - - MAX( ALL 2 ) + - MIN( 33 ) * - - 41 AS col2
----
124
-1352

skipif mysql # not compatible
query II rowsort label-2139
SELECT ALL + 44 + + 80 AS col0, - COUNT ( * ) - - MAX ( ALL 2 ) + - MIN ( 33 ) * - - 41 AS col2
----
124
-1352

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

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

query I rowsort
SELECT ALL 38 + + 78 + 96
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT 0 * SUM( ALL ( CASE WHEN NOT + 12 >= + 84 THEN - + COALESCE ( - 62, + 94 ) + - 58 WHEN NOT + 95 + - 90 <> - ( 58 ) + - 24 THEN - 56 ELSE NULL END ) )
----
0

skipif mysql # not compatible
query I rowsort label-2142
SELECT 0 * SUM ( ALL ( CASE WHEN NOT + 12 >= + 84 THEN - + COALESCE ( - 62, + 94 ) + - 58 WHEN NOT + 95 + - 90 <> - ( 58 ) + - 24 THEN - 56 ELSE NULL END ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT ALL + CASE - 81 WHEN SUM( - + 73 ) THEN + - 7 * + 85 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL + CASE - 81 WHEN SUM ( - + 73 ) THEN + - 7 * + 85 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 17 - 77 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2145
SELECT DISTINCT 83 DIV + 17 + COALESCE ( - + 45, 93 )
----
-41

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT 83 / + 17 + COALESCE ( - + 45, 93 )
----
-41

query I rowsort
SELECT ALL + 37 - 45 AS col1
----
-8

query I rowsort
SELECT - - 69 AS col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2148
SELECT SUM( ALL - + 17 ) DIV + + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2148
SELECT SUM ( ALL - + 17 ) / + + 90 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT ALL - 8 * COALESCE ( - + CAST( 59 AS SIGNED ), + 82 )
----
472

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL - 8 * COALESCE ( - + CAST ( 59 AS INTEGER ), + 82 )
----
472

query II rowsort
SELECT ALL 99, 35 col2
----
99
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT 71 + + + 23 - + SUM( - 43 ) AS col1
----
137

skipif mysql # not compatible
query I rowsort label-2151
SELECT 71 + + + 23 - + SUM ( - 43 ) AS col1
----
137

query I rowsort
SELECT ALL 28 * - 51 * - 12 * - 96
----
-1645056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2153
SELECT NULLIF ( - - COUNT( * ), - - 34 * + ( 24 ) ) DIV - 31
----
0

skipif mysql # not compatible
query I rowsort label-2153
SELECT NULLIF ( - - COUNT ( * ), - - 34 * + ( 24 ) ) / - 31
----
0

query I rowsort
SELECT 54 + - 36
----
18

query I rowsort
SELECT DISTINCT 51 * - - 46
----
2346

query II rowsort
SELECT ALL 21, + 11 AS col0
----
21
11

query I rowsort
SELECT DISTINCT - 0 * - - 13
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2158
SELECT ALL + COUNT( * ) + - - 12 + 64 AS col1, 19 AS col2
----
77
19

skipif mysql # not compatible
query II rowsort label-2158
SELECT ALL + COUNT ( * ) + - - 12 + 64 AS col1, 19 AS col2
----
77
19

onlyif mysql # aggregate syntax: 
query II rowsort label-2159
SELECT ALL 79, - MAX( DISTINCT 77 ) - + - 61 AS col1
----
79
-16

skipif mysql # not compatible
query II rowsort label-2159
SELECT ALL 79, - MAX ( DISTINCT 77 ) - + - 61 AS col1
----
79
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT MIN( ALL ( - 17 ) ) * - MIN( - + 73 )
----
-1241

skipif mysql # not compatible
query I rowsort label-2160
SELECT MIN ( ALL ( - 17 ) ) * - MIN ( - + 73 )
----
-1241

query I rowsort
SELECT 5 * - + 31 AS col0
----
-155

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2163
SELECT ALL + 46 + CAST( NULL AS SIGNED ) + - + 55 + + 35 * + + CASE + 79 WHEN + 99 + + ( - 17 ) THEN + 70 * COUNT( * ) WHEN - 0 THEN + COUNT( * ) + + - MAX( ALL + 95 ) + - + 82 / - ( + 84 ) * 81 ELSE NULL END - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL + 46 + CAST ( NULL AS INTEGER ) + - + 55 + + 35 * + + CASE + 79 WHEN + 99 + + ( - 17 ) THEN + 70 * COUNT ( * ) WHEN - 0 THEN + COUNT ( * ) + + - MAX ( ALL + 95 ) + - + 82 / - ( + 84 ) * 81 ELSE NULL END - - 93
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2164
SELECT + 86 DIV - 71 - 14 AS col2, + 32 AS col0
----
-15
32

skipif mysql # not compatible
query II rowsort label-2164
SELECT + 86 / - 71 - 14 AS col2, + 32 AS col0
----
-15
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2165
SELECT + CAST( 9 AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2165
SELECT + CAST ( 9 AS INTEGER ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT ALL - 34 + - COUNT( * ) + 23 * 75
----
1690

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL - 34 + - COUNT ( * ) + 23 * 75
----
1690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2167
SELECT COUNT( 68 ) * + - COALESCE ( - 12, 52 + + 86 DIV + 80 - + - 18 * 15 * 72 * - 68 )
----
12

skipif mysql # not compatible
query I rowsort label-2167
SELECT COUNT ( 68 ) * + - COALESCE ( - 12, 52 + + 86 / + 80 - + - 18 * 15 * 72 * - 68 )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2168
SELECT ALL - - 53 + ( + COUNT( * ) ) AS col0, COUNT( * )
----
54
1

skipif mysql # not compatible
query II rowsort label-2168
SELECT ALL - - 53 + ( + COUNT ( * ) ) AS col0, COUNT ( * )
----
54
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2169
SELECT ALL - + 45 + CAST( - + 50 AS SIGNED ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL - + 45 + CAST ( - + 50 AS INTEGER ) AS col2
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT ALL - COUNT( * ) + - CASE + + MIN( - + 42 ) WHEN + 4 / - 69 THEN NULL WHEN - 58 THEN NULL WHEN + 97 THEN - 2 * 7 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL - COUNT ( * ) + - CASE + + MIN ( - + 42 ) WHEN + 4 / - 69 THEN NULL WHEN - 58 THEN NULL WHEN + 97 THEN - 2 * 7 * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT - + 47 col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2173
SELECT + - 58, + ( 24 ) * 96 + - - COUNT( * ) + 18 * + + COUNT( * ) * 9 + - + CAST( NULL AS SIGNED ) col1
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-2173
SELECT + - 58, + ( 24 ) * 96 + - - COUNT ( * ) + 18 * + + COUNT ( * ) * 9 + - + CAST ( NULL AS INTEGER ) col1
----
-58
NULL

query I rowsort
SELECT ALL + - ( - 79 ) + + - 52
----
27

query I rowsort
SELECT ALL - - 69 col2
----
69

query I rowsort
SELECT 35 * - 69 + + 63 AS col0
----
-2352

query I rowsort
SELECT - + 14 * - 55 + - 16
----
754

query I rowsort
SELECT + 61 * + 30
----
1830

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2179
SELECT ALL + 90 DIV - + COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL + 90 / - + COUNT ( * ) AS col2
----
-90

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2181
SELECT ALL + 46 - - - 62 + COUNT( * ) + - + 81 * + + 24 * + COUNT( * ) * - 27 + 81, 44 + + + 63 AS col1
----
52554
107

skipif mysql # not compatible
query II rowsort label-2181
SELECT ALL + 46 - - - 62 + COUNT ( * ) + - + 81 * + + 24 * + COUNT ( * ) * - 27 + 81, 44 + + + 63 AS col1
----
52554
107

query I rowsort
SELECT ALL - 48 AS col2
----
-48

query I rowsort
SELECT 37 * + 37 + - 13 + - 9
----
1347

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2184
SELECT ALL - 49 * - + 14 DIV ( + + COUNT( * ) )
----
686

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL - 49 * - + 14 / ( + + COUNT ( * ) )
----
686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2185
SELECT MIN( ALL - CAST( NULL AS SIGNED ) ) + - 70 * - - 20 * - CAST( 94 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) ) + - 70 * - - 20 * - CAST ( 94 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2186
SELECT 35 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT 35 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2187
SELECT 51 + + 79 - - 74 * + 57 AS col0, COUNT( * ) col2
----
4348
1

skipif mysql # not compatible
query II rowsort label-2187
SELECT 51 + + 79 - - 74 * + 57 AS col0, COUNT ( * ) col2
----
4348
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2189
SELECT ALL - COUNT( * ) + - 99 AS col1, + 72
----
-100
72

skipif mysql # not compatible
query II rowsort label-2189
SELECT ALL - COUNT ( * ) + - 99 AS col1, + 72
----
-100
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2190
SELECT - COALESCE ( + + 37, - 58 * + 53 * COUNT( * ) DIV + COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-2190
SELECT - COALESCE ( + + 37, - 58 * + 53 * COUNT ( * ) / + COUNT ( * ) )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT ALL 80 + + 62 + - + CAST( - + 98 AS SIGNED ) + 44 + - + CAST( NULL AS SIGNED ) * - 35 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL 80 + + 62 + - + CAST ( - + 98 AS INTEGER ) + 44 + - + CAST ( NULL AS INTEGER ) * - 35 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2192
SELECT ALL 38 * + 74 AS col0, 1 DIV - + 16 col2
----
2812
0

skipif mysql # not compatible
query II rowsort label-2192
SELECT ALL 38 * + 74 AS col0, 1 / - + 16 col2
----
2812
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT DISTINCT SUM( - + 80 ) * + - 91 * - COUNT( * ) + + 11 * 74 + + ( - - 43 )
----
-6423

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT SUM ( - + 80 ) * + - 91 * - COUNT ( * ) + + 11 * 74 + + ( - - 43 )
----
-6423

query I rowsort
SELECT + 38 + ( + 79 ) + + 91
----
208

query I rowsort
SELECT - 44 - - 74 col2
----
30

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

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

query I rowsort
SELECT ALL - 61 * + ( 94 ) * - 21 * + + 68 + - 91 + + 44 * 45 + + 49
----
8190090

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

query I rowsort
SELECT ( 86 ) AS col0
----
86

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

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL + COUNT ( * ) * 77 + - 23 - - 97 - 20 * - + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT - 34 * - - 69 + + 66
----
-2280

query I rowsort
SELECT + 62 * + 60
----
3720

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2205
SELECT - + CASE ( 64 ) WHEN 8 + + 17 THEN NULL WHEN - - 77 THEN - COALESCE ( + - ( + 64 ), 86 DIV + 66, + 1, - CAST( NULL AS SIGNED ) + + SUM( DISTINCT 47 ) ) - 32 + - - 29 * + COUNT( * ) * 70 END + - + 85 AS col1, + 36 + - 48 + + + 4 DIV - - 64 * - - 91 - + COALESCE ( 57, 16 + + 55 - 68, - 13 * + 15, - MIN( DISTINCT 46 ) ) * + 15
----
NULL
-867

skipif mysql # not compatible
query II rowsort label-2205
SELECT - + CASE ( 64 ) WHEN 8 + + 17 THEN NULL WHEN - - 77 THEN - COALESCE ( + - ( + 64 ), 86 / + 66, + 1, - CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT 47 ) ) - 32 + - - 29 * + COUNT ( * ) * 70 END + - + 85 AS col1, + 36 + - 48 + + + 4 / - - 64 * - - 91 - + COALESCE ( 57, 16 + + 55 - 68, - 13 * + 15, - MIN ( DISTINCT 46 ) ) * + 15
----
NULL
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT ALL + - 50 * NULLIF ( - 43, + + COUNT( * ) * + 59 + - 35 + - 34 ) + + - NULLIF ( - 75, + 70 )
----
2225

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL + - 50 * NULLIF ( - 43, + + COUNT ( * ) * + 59 + - 35 + - 34 ) + + - NULLIF ( - 75, + 70 )
----
2225

onlyif mysql # DIV for integer division: 
query I rowsort label-2207
SELECT DISTINCT + - 0 * - 67 DIV + 7 * 3 col2
----
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT + - 0 * - 67 / + 7 * 3 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2208
SELECT DISTINCT + + 84 * - + CAST( NULL AS SIGNED ) + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + + 84 * - + CAST ( NULL AS INTEGER ) + - 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT DISTINCT + - 75 * - + 41 * - - 54 + + AVG ( 64 ) * + - 14 * - - CASE WHEN NOT 66 < + 63 THEN NULL WHEN 67 * - 58 - - - CASE - 79 WHEN 95 / - 79 THEN NULL WHEN 74 * - COUNT( * ) THEN NULL ELSE 80 END > NULL THEN - 53 ELSE + NULLIF ( - + 82, 0 * - + 75 * - + 27 + + 87 + + COUNT( * ) ) END * NULLIF ( + 48, 59 ) / + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT + - 75 * - + 41 * - - 54 + + AVG ( 64 ) * + - 14 * - - CASE WHEN NOT 66 < + 63 THEN NULL WHEN 67 * - 58 - - - CASE - 79 WHEN 95 / - 79 THEN NULL WHEN 74 * - COUNT ( * ) THEN NULL ELSE 80 END > NULL THEN - 53 ELSE + NULLIF ( - + 82, 0 * - + 75 * - + 27 + + 87 + + COUNT ( * ) ) END * NULLIF ( + 48, 59 ) / + 47 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2211
SELECT ALL + 1 * + 1 DIV 80 + - MIN( ALL + 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL + 1 * + 1 / 80 + - MIN ( ALL + 40 )
----
-40

query I rowsort
SELECT DISTINCT + + 8 * - 40
----
-320

query I rowsort
SELECT ALL - + 46 * 43 + 43 AS col1
----
-1935

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT - - COALESCE ( 35, - 14 * - COUNT( * ) ) * + 54
----
1890

skipif mysql # not compatible
query I rowsort label-2214
SELECT - - COALESCE ( 35, - 14 * - COUNT ( * ) ) * + 54
----
1890

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT + COUNT( * ) * - 58 * - 53
----
3074

skipif mysql # not compatible
query I rowsort label-2217
SELECT + COUNT ( * ) * - 58 * - 53
----
3074

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2218
SELECT - COUNT( * ) * + ( + 97 ) * 33 + - - 23 AS col0, - COALESCE ( + 64, - 78 ) DIV + + 60
----
-3178
-1

skipif mysql # not compatible
query II rowsort label-2218
SELECT - COUNT ( * ) * + ( + 97 ) * 33 + - - 23 AS col0, - COALESCE ( + 64, - 78 ) / + + 60
----
-3178
-1

query I rowsort
SELECT ALL - 91 + 15
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2220
SELECT DISTINCT 33 * + 67 * + CAST( NULL AS SIGNED ) * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT 33 * + 67 * + CAST ( NULL AS INTEGER ) * 49
----
NULL

query I rowsort
SELECT ALL 92 + - 76 * - - 83 AS col0
----
-6216

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT ALL COUNT( ALL + 52 ) + + + NULLIF ( - 67, + ( COUNT( * ) ) ) * - - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL COUNT ( ALL + 52 ) + + + NULLIF ( - 67, + ( COUNT ( * ) ) ) * - - COUNT ( * )
----
-66

query I rowsort
SELECT 58 col1
----
58

query I rowsort
SELECT + ( - + 68 ) + + 59 col1
----
-9

query I rowsort
SELECT - COALESCE ( + 47, - 65, 50 + + + 95 + + 48 )
----
-47

query I rowsort
SELECT DISTINCT 98 * 34 col2
----
3332

query I rowsort
SELECT ALL 56 + + 45 + 63 + - 27 AS col2
----
137

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

query I rowsort
SELECT + 44 + - 77 AS col2
----
-33

query I rowsort
SELECT DISTINCT + 1 * - 3 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT ALL 26 + + 38 - - - 66 DIV + - 76 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL 26 + + 38 - - - 66 / + - 76 AS col2
----
64

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

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL ( - ( - - 39 ) ) / + 62 * + 19 * + COUNT ( * ) - - - 25 AS col1
----
-25

query I rowsort
SELECT DISTINCT 55 + 79
----
134

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL - ( + COUNT ( * ) ) / 4 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT ALL + - ( + SUM( - - 92 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL + - ( + SUM ( - - 92 ) )
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - 34 * - - 16 * - 9 * + COUNT( * ) AS col0
----
4896

skipif mysql # not compatible
query I rowsort label-2239
SELECT - 34 * - - 16 * - 9 * + COUNT ( * ) AS col0
----
4896

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

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

query II rowsort
SELECT 45, 38 AS col1
----
45
38

query II rowsort
SELECT DISTINCT + 16, - 21 AS col1
----
16
-21

query I rowsort
SELECT DISTINCT 75 * + - 55 AS col0
----
-4125

query I rowsort
SELECT + - 60 * + 13 AS col0
----
-780

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

query I rowsort
SELECT - ( 26 ) - + 74 AS col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT + - NULLIF ( - 10, + COUNT( * ) ) * + - 54 + - 71 * - 78 col1
----
4998

skipif mysql # not compatible
query I rowsort label-2247
SELECT + - NULLIF ( - 10, + COUNT ( * ) ) * + - 54 + - 71 * - 78 col1
----
4998

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

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

query II rowsort
SELECT + 37 col0, - 66 + - COALESCE ( - 83, 80, + - 97 ) * 45 AS col2
----
37
3669

query I rowsort
SELECT ALL 25 * ( + + ( - 93 ) ) + 55
----
-2270

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT 22 * NULLIF ( COUNT( DISTINCT - 75 ), - - 18 ) + - + 1
----
21

skipif mysql # not compatible
query I rowsort label-2251
SELECT 22 * NULLIF ( COUNT ( DISTINCT - 75 ), - - 18 ) + - + 1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2252
SELECT ALL + COUNT( * ), - 79 + - - 11 + + 13 AS col0
----
1
-55

skipif mysql # not compatible
query II rowsort label-2252
SELECT ALL + COUNT ( * ), - 79 + - - 11 + + 13 AS col0
----
1
-55

query I rowsort
SELECT DISTINCT - ( 15 ) * + + 54 + - 35 * 77 AS col1
----
-3505

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT 6 * - SUM( ALL - - ( - 76 ) ) + - + 36
----
420

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT 6 * - SUM ( ALL - - ( - 76 ) ) + - + 36
----
420

query I rowsort
SELECT DISTINCT - 4 * + 3 AS col1
----
-12

query I rowsort
SELECT ALL + 72 * + - 34 + 5
----
-2443

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2257
SELECT COALESCE ( - 39, + - CAST( NULL AS SIGNED ), + 91 ) * - + 26 + - 16 AS col1, + 76 col1
----
998
76

skipif mysql # not compatible
query II rowsort label-2257
SELECT COALESCE ( - 39, + - CAST ( NULL AS INTEGER ), + 91 ) * - + 26 + - 16 AS col1, + 76 col1
----
998
76

query I rowsort
SELECT ALL - 87 * 28 AS col2
----
-2436

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

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

query I rowsort
SELECT 79 * 46
----
3634

query I rowsort
SELECT 85 + + + 80 AS col1
----
165

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL + 15 + + SUM( 20 )
----
35

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL + 15 + + SUM ( 20 )
----
35

query I rowsort
SELECT DISTINCT ( + 69 ) * + + 73
----
5037

query I rowsort
SELECT ALL 3 - - - 29 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT COUNT( * ) - - 64 + - + 45 col1
----
20

skipif mysql # not compatible
query I rowsort label-2266
SELECT COUNT ( * ) - - 64 + - + 45 col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2267
SELECT DISTINCT + CASE - 88 WHEN 20 THEN - 5 WHEN - 45 / - + 90 * CAST( + 10 AS SIGNED ) + + COUNT( * ) - - - 86 * + 10 - - 13 THEN NULL ELSE NULL END - + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT + CASE - 88 WHEN 20 THEN - 5 WHEN - 45 / - + 90 * CAST ( + 10 AS INTEGER ) + + COUNT ( * ) - - - 86 * + 10 - - 13 THEN NULL ELSE NULL END - + 26 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 9 * - + 47 + - NULLIF ( 50, - - 31 )
----
-473

query I rowsort
SELECT 43 * + 35
----
1505

query I rowsort
SELECT ALL 75 * + ( + + 66 ) col1
----
4950

onlyif mysql # aggregate syntax: 
query II rowsort label-2271
SELECT 41 AS col0, + COALESCE ( - 84, - - 62 * 64 * + 30 - MIN( 8 ) + + - 26 * 68, + 23 * 50 * 92 * CASE + - 34 WHEN + 30 / 78 THEN + CASE - - 60 WHEN + 42 * - 36 - - - ( + 49 ) THEN - 93 + + - 66 * + + 5 * + 66 - + + COALESCE ( - 93, + COUNT( * ) ) + 54 WHEN 22 THEN NULL END END ) - - 62
----
41
-22

skipif mysql # not compatible
query II rowsort label-2271
SELECT 41 AS col0, + COALESCE ( - 84, - - 62 * 64 * + 30 - MIN ( 8 ) + + - 26 * 68, + 23 * 50 * 92 * CASE + - 34 WHEN + 30 / 78 THEN + CASE - - 60 WHEN + 42 * - 36 - - - ( + 49 ) THEN - 93 + + - 66 * + + 5 * + 66 - + + COALESCE ( - 93, + COUNT ( * ) ) + 54 WHEN 22 THEN NULL END END ) - - 62
----
41
-22

query I rowsort
SELECT + 58 + ( + - 97 ) AS col1
----
-39

query I rowsort
SELECT 64 - + + 35
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-2274
SELECT ALL - - 67 * - + 27 AS col0, - 76 DIV + 99 + + ( + - 88 )
----
-1809
-88

skipif mysql # not compatible
query II rowsort label-2274
SELECT ALL - - 67 * - + 27 AS col0, - 76 / + 99 + + ( + - 88 )
----
-1809
-88

query I rowsort
SELECT ALL - + 15 col1
----
-15

query I rowsort
SELECT ALL - - 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT 43 + MIN( - CASE + 41 WHEN + + 95 THEN - 42 + + 45 + + - 48 * + + 65 * + 45 + + 86 + 21 WHEN - 0 + 31 + + + 55 * - 14 THEN NULL WHEN 58 / + 48 THEN NULL END ) - COUNT( 33 ) * + 91 * 35 - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT 43 + MIN ( - CASE + 41 WHEN + + 95 THEN - 42 + + 45 + + - 48 * + + 65 * + 45 + + 86 + 21 WHEN - 0 + 31 + + + 55 * - 14 THEN NULL WHEN 58 / + 48 THEN NULL END ) - COUNT ( 33 ) * + 91 * 35 - 45 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT + 87 * + COALESCE ( + NULLIF ( - 78, - COUNT( * ) ), - CASE + 76 WHEN + 4 / + + 60 + + 86 THEN 7 ELSE 0 END ) + + 48 col2
----
-6738

skipif mysql # not compatible
query I rowsort label-2279
SELECT + 87 * + COALESCE ( + NULLIF ( - 78, - COUNT ( * ) ), - CASE + 76 WHEN + 4 / + + 60 + + 86 THEN 7 ELSE 0 END ) + + 48 col2
----
-6738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2280
SELECT - MAX( 63 ) DIV CAST( 70 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2280
SELECT - MAX ( 63 ) / CAST ( 70 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT + 0 / - COUNT( * ) + 54 + - CASE + 12 WHEN + + AVG ( ALL - + 56 ) THEN 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT + 0 / - COUNT ( * ) + 54 + - CASE + 12 WHEN + + AVG ( ALL - + 56 ) THEN 93 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2282
SELECT 59, + CAST( NULL AS DECIMAL ) AS col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-2282
SELECT 59, + CAST ( NULL AS REAL ) AS col1
----
59
NULL

query I rowsort
SELECT - 48 * 1
----
-48

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

query I rowsort
SELECT - 97 + 78
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT ALL COUNT( ALL + - 37 ) + + + ( + - ( - MIN( DISTINCT 86 ) ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL COUNT ( ALL + - 37 ) + + + ( + - ( - MIN ( DISTINCT 86 ) ) ) AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT CAST( 10 AS SIGNED ) * - + 85
----
-850

skipif mysql # not compatible
query I rowsort label-2288
SELECT CAST ( 10 AS INTEGER ) * - + 85
----
-850

query I rowsort
SELECT ALL - 27 + + 7 col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT 96 + MAX( + 18 ) + - 7 * 29
----
-89

skipif mysql # not compatible
query I rowsort label-2290
SELECT 96 + MAX ( + 18 ) + - 7 * 29
----
-89

query I rowsort
SELECT DISTINCT 81 + - 77
----
4

query I rowsort
SELECT ALL 16 + - 80 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2293
SELECT CASE - 25 WHEN COUNT( * ) * - - CAST( + - COUNT( * ) AS SIGNED ) THEN + 75 * CAST( 59 AS SIGNED ) + - ( + - MIN( DISTINCT 17 ) ) ELSE NULL END + ( CAST( - 49 AS SIGNED ) ) - - 30 AS col0, + 29 AS col2
----
NULL
29

skipif mysql # not compatible
query II rowsort label-2293
SELECT CASE - 25 WHEN COUNT ( * ) * - - CAST ( + - COUNT ( * ) AS INTEGER ) THEN + 75 * CAST ( 59 AS INTEGER ) + - ( + - MIN ( DISTINCT 17 ) ) ELSE NULL END + ( CAST ( - 49 AS INTEGER ) ) - - 30 AS col0, + 29 AS col2
----
NULL
29

query I rowsort
SELECT 89 - - - NULLIF ( 71, - 63 )
----
18

query II rowsort
SELECT 24 * + 26 AS col2, - 65 AS col0
----
624
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ALL 80 - + MIN( - 62 ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL 80 - + MIN ( - 62 ) AS col1
----
142

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2298
SELECT ALL - NULLIF ( - 27, + COUNT( * ) + - 61 * CAST( NULL AS SIGNED ) ) - 7 + - 3 - + 5 DIV 19
----
17

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL - NULLIF ( - 27, + COUNT ( * ) + - 61 * CAST ( NULL AS INTEGER ) ) - 7 + - 3 - + 5 / 19
----
17

query I rowsort
SELECT 14 * + - 95
----
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL 73 * - MIN( - 17 ) AS col2
----
1241

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL 73 * - MIN ( - 17 ) AS col2
----
1241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2301
SELECT 20 + + - 97 DIV - 12 + + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-2301
SELECT 20 + + - 97 / - 12 + + - COUNT ( * )
----
27

query I rowsort
SELECT 24 - 98
----
-74

query I rowsort
SELECT 30 + - 95 AS col0
----
-65

query I rowsort
SELECT + 20 * - 80 AS col2
----
-1600

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

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

query I rowsort
SELECT - 12 + 83 AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2307
SELECT ALL - CAST( + CASE 25 WHEN NULLIF ( 81, + AVG ( ALL - - 17 ) * - 58 + 20 + 19 + - 96 + + + CASE - COUNT( * ) WHEN - SUM( 95 ) * - 72 + 54 THEN + 86 * 28 + 23 ELSE - 87 * COALESCE ( - 73, + COUNT( * ), - 36 * + 15 ) + - - 49 + - ( + + 84 ) * 0 * 13 + - - 61 END * 92 + COALESCE ( - 34, - 37 ) ) * + 0 - 73 THEN CAST( NULL AS SIGNED ) + + 93 * + 92 END AS SIGNED ) / 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - CAST ( + CASE 25 WHEN NULLIF ( 81, + AVG ( ALL - - 17 ) * - 58 + 20 + 19 + - 96 + + + CASE - COUNT ( * ) WHEN - SUM ( 95 ) * - 72 + 54 THEN + 86 * 28 + 23 ELSE - 87 * COALESCE ( - 73, + COUNT ( * ), - 36 * + 15 ) + - - 49 + - ( + + 84 ) * 0 * 13 + - - 61 END * 92 + COALESCE ( - 34, - 37 ) ) * + 0 - 73 THEN CAST ( NULL AS INTEGER ) + + 93 * + 92 END AS INTEGER ) / 7 AS col2
----
NULL

query I rowsort
SELECT - + 12 AS col0
----
-12

query I rowsort
SELECT DISTINCT 27 * 47 * - 71 AS col2
----
-90099

query I rowsort
SELECT ALL - - 64 * ( - 3 )
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT - NULLIF ( - 92, + COALESCE ( + NULLIF ( - COUNT( * ), 96 ), + - 14 / - 17, - - 95, 20 ) * + - COUNT( * ) ) * + + COUNT( * ) + + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-2311
SELECT - NULLIF ( - 92, + COALESCE ( + NULLIF ( - COUNT ( * ), 96 ), + - 14 / - 17, - - 95, 20 ) * + - COUNT ( * ) ) * + + COUNT ( * ) + + COUNT ( * )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2312
SELECT + 5 * - 71 + 9 DIV + - 50 * COUNT( 53 ) * + + 74 + - + COUNT( * ) AS col0
----
-356

skipif mysql # not compatible
query I rowsort label-2312
SELECT + 5 * - 71 + 9 / + - 50 * COUNT ( 53 ) * + + 74 + - + COUNT ( * ) AS col0
----
-356

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT ALL - COUNT( * ) * 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL - COUNT ( * ) * 21 AS col2
----
-21

query I rowsort
SELECT CASE - 94 WHEN - 88 * + 52 THEN + 28 WHEN + - 64 * - + 68 + - 68 THEN ( - 12 ) / - + ( 48 ) * - ( - 17 ) - + 91 + - + 4 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2315
SELECT - ( - + 1 ) col2, SUM( ALL 49 ) * - 37
----
1
-1813

skipif mysql # not compatible
query II rowsort label-2315
SELECT - ( - + 1 ) col2, SUM ( ALL 49 ) * - 37
----
1
-1813

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2316
SELECT ALL + 25 * - CASE + CAST( + 5 AS SIGNED ) WHEN 10 THEN NULL ELSE 55 END * + 61 + 17 * + 97 + 13 AS col0, 37
----
-82213
37

skipif mysql # not compatible
query II rowsort label-2316
SELECT ALL + 25 * - CASE + CAST ( + 5 AS INTEGER ) WHEN 10 THEN NULL ELSE 55 END * + 61 + 17 * + 97 + 13 AS col0, 37
----
-82213
37

query I rowsort
SELECT + 72 - 22 * - 46
----
1084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT ALL - CAST( NULL AS SIGNED ) * 47 + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL - CAST ( NULL AS INTEGER ) * 47 + 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2319
SELECT 76 DIV - - MAX( + 83 ) + - 52 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-2319
SELECT 76 / - - MAX ( + 83 ) + - 52 AS col2
----
-52

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2321
SELECT + COUNT( * ) DIV + 78 - + 57
----
-57

skipif mysql # not compatible
query I rowsort label-2321
SELECT + COUNT ( * ) / + 78 - + 57
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2322
SELECT DISTINCT 22 DIV - COALESCE ( - 89, + 10 + + + COUNT( * ) * CASE - COUNT( * ) WHEN - - 41 + + + 83 THEN + 34 - - 60 ELSE NULL END DIV - - 69 + + 32 + COALESCE ( - COUNT( 23 ), + 60 * + 3 ) * CAST( NULL AS SIGNED ), + 44 ) * - ( ( - + 80 ) ) * + NULLIF ( + + COUNT( + - 31 ), + 35 )
----
0

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT 22 / - COALESCE ( - 89, + 10 + + + COUNT ( * ) * CASE - COUNT ( * ) WHEN - - 41 + + + 83 THEN + 34 - - 60 ELSE NULL END / - - 69 + + 32 + COALESCE ( - COUNT ( 23 ), + 60 * + 3 ) * CAST ( NULL AS INTEGER ), + 44 ) * - ( ( - + 80 ) ) * + NULLIF ( + + COUNT ( + - 31 ), + 35 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2323
SELECT 32 * + 45 * + + 50 + CAST( ( - - 69 ) AS SIGNED ), + 97 col0
----
72069
97

skipif mysql # not compatible
query II rowsort label-2323
SELECT 32 * + 45 * + + 50 + CAST ( ( - - 69 ) AS INTEGER ), + 97 col0
----
72069
97

query I rowsort
SELECT ALL 66 * - + 67 + + 70 + + 78 col0
----
-4274

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT ALL 73 * - COUNT( * ) * - - 85 + - COUNT( DISTINCT 41 ) * + 7
----
-6212

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL 73 * - COUNT ( * ) * - - 85 + - COUNT ( DISTINCT 41 ) * + 7
----
-6212

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2327
SELECT 60 * - + 29 * 36 + - CAST( NULL AS DECIMAL ) + + + 6 * - 65 * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT 60 * - + 29 * 36 + - CAST ( NULL AS REAL ) + + + 6 * - 65 * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT ALL 33 * - - COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL 33 * - - COUNT ( * ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT + ( - 62 ) * - 5 * - 58 - + COUNT( * )
----
-17981

skipif mysql # not compatible
query I rowsort label-2329
SELECT + ( - 62 ) * - 5 * - 58 - + COUNT ( * )
----
-17981

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT + 74 + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2330
SELECT + 74 + COUNT ( * ) AS col2
----
75

query I rowsort
SELECT + CASE 82 WHEN + - 5 / + - 9 THEN + + 19 * 10 - + - 83 WHEN + 96 THEN - 49 WHEN + 87 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 32 * - 42
----
-1344

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT 97 * 77 + - + 73 DIV ( + COALESCE ( + 55, + 46 ) ) AS col1
----
7468

skipif mysql # not compatible
query I rowsort label-2333
SELECT 97 * 77 + - + 73 / ( + COALESCE ( + 55, + 46 ) ) AS col1
----
7468

query I rowsort
SELECT + 56 * 8
----
448

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT + 20 + + 2 + COUNT( DISTINCT + ( ( + 43 ) ) )
----
23

skipif mysql # not compatible
query I rowsort label-2336
SELECT + 20 + + 2 + COUNT ( DISTINCT + ( ( + 43 ) ) )
----
23

query II rowsort
SELECT 3 AS col0, - 12 * 13 + + 75
----
3
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2338
SELECT ALL 35 AS col2, - CAST( - + 5 AS SIGNED )
----
35
5

skipif mysql # not compatible
query II rowsort label-2338
SELECT ALL 35 AS col2, - CAST ( - + 5 AS INTEGER )
----
35
5

query I rowsort
SELECT + 8 * + 19
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2340
SELECT ALL 57 DIV + - 76 - ( - 62 ) + + 33 + COUNT( * ) * 20 DIV - + 3
----
89

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL 57 / + - 76 - ( - 62 ) + + 33 + COUNT ( * ) * 20 / - + 3
----
89

query II rowsort
SELECT ALL + 60 AS col2, 98 AS col2
----
60
98

query I rowsort
SELECT ALL 98 col2
----
98

query I rowsort
SELECT DISTINCT ( - 43 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL - COUNT( * ) * - + COUNT( * ) + - + 69 + - MAX( 45 ) AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) + - + 69 + - MAX ( 45 ) AS col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT - + SUM( + + 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-2345
SELECT - + SUM ( + + 64 ) AS col2
----
-64

query I rowsort
SELECT ALL + NULLIF ( 1, - 51 )
----
1

query I rowsort
SELECT DISTINCT 41 + 44 * + 12 * + + 15 * - 76 * 13 * 54
----
-422547799

query II rowsort
SELECT - 27, 67 AS col2
----
-27
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2349
SELECT + - 62 DIV - 72 + + 19 * - - 30 AS col2
----
570

skipif mysql # not compatible
query I rowsort label-2349
SELECT + - 62 / - 72 + + 19 * - - 30 AS col2
----
570

onlyif mysql # DIV for integer division: 
query I rowsort label-2350
SELECT - + ( - 57 ) + + + NULLIF ( 42, + 90 * + - ( + 58 ) ) DIV 40 col1
----
58

skipif mysql # not compatible
query I rowsort label-2350
SELECT - + ( - 57 ) + + + NULLIF ( 42, + 90 * + - ( + 58 ) ) / 40 col1
----
58

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

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

query I rowsort
SELECT + NULLIF ( - 16, - 92 + + + 33 ) + - 23 AS col1
----
-39

query I rowsort
SELECT - - 82 * + 35 AS col0
----
2870

query I rowsort
SELECT + 43 + 93 AS col0
----
136

query I rowsort
SELECT ALL + - 24 + 99 AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT - MAX( - - CAST( NULL AS SIGNED ) ) + - - ( + ( COALESCE ( MAX( DISTINCT + 38 ), + + 92 * 85 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT - MAX ( - - CAST ( NULL AS INTEGER ) ) + - - ( + ( COALESCE ( MAX ( DISTINCT + 38 ), + + 92 * 85 ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2357
SELECT ALL - + 11 + - CAST( COALESCE ( 49, + + 14 ) AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL - + 11 + - CAST ( COALESCE ( 49, + + 14 ) AS INTEGER )
----
-60

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

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

query I rowsort
SELECT DISTINCT + ( + + ( - 53 ) )
----
-53

query I rowsort
SELECT + 34 col1
----
34

query I rowsort
SELECT ( - - 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT + 81 * 9 + - + ( - COUNT( * ) ) AS col1
----
730

skipif mysql # not compatible
query I rowsort label-2362
SELECT + 81 * 9 + - + ( - COUNT ( * ) ) AS col1
----
730

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

query I rowsort
SELECT + 10 + - 86
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT - COUNT( * ) * - ( 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-2365
SELECT - COUNT ( * ) * - ( 77 ) AS col1
----
77

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

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

query I rowsort
SELECT + 2 col0
----
2

query I rowsort
SELECT ALL 31 * + - 2 - 73 col0
----
-135

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

query I rowsort
SELECT - 92 * + NULLIF ( 40, + 86 )
----
-3680

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

skipif mysql # not compatible
query I rowsort label-2371
SELECT CASE - COUNT ( * ) WHEN - - 23 + 57 THEN - - 23 END AS col2
----
NULL

query I rowsort
SELECT ALL + 85 col2
----
85

query I rowsort
SELECT DISTINCT + 56 AS col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2374
SELECT - ( + ( + - ( NULLIF ( + 81, + MAX( + - 35 ) / 80 ) ) ) ) * - - 13 * + 27 * - COALESCE ( - 12, 22 ) + + 17 AS col1, + SUM( + COALESCE ( 34, 79 ) ) + + 68 + + 79 - + + 51 * COUNT( * ) * 31
----
341189
-1400

skipif mysql # not compatible
query II rowsort label-2374
SELECT - ( + ( + - ( NULLIF ( + 81, + MAX ( + - 35 ) / 80 ) ) ) ) * - - 13 * + 27 * - COALESCE ( - 12, 22 ) + + 17 AS col1, + SUM ( + COALESCE ( 34, 79 ) ) + + 68 + + 79 - + + 51 * COUNT ( * ) * 31
----
341189
-1400

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

query I rowsort
SELECT - 8 - - 5
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2377
SELECT + COUNT( * ) DIV ( - + ( - MIN( + - 48 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2377
SELECT + COUNT ( * ) / ( - + ( - MIN ( + - 48 ) ) ) AS col1
----
0

query I rowsort
SELECT ALL ( 40 ) * + 27
----
1080

query I rowsort
SELECT + 26 * - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2380
SELECT DISTINCT + 20 DIV + - 66 * + + 43 * - 27, 31 * - + AVG ( DISTINCT + 87 ) * COUNT( + 50 ) * + CAST( NULL AS SIGNED ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2380
SELECT DISTINCT + 20 / + - 66 * + + 43 * - 27, 31 * - + AVG ( DISTINCT + 87 ) * COUNT ( + 50 ) * + CAST ( NULL AS INTEGER ) AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2381
SELECT ALL + SUM( DISTINCT - 96 ) AS col2, - 33 * 23 * - 26 AS col0
----
-96
19734

skipif mysql # not compatible
query II rowsort label-2381
SELECT ALL + SUM ( DISTINCT - 96 ) AS col2, - 33 * 23 * - 26 AS col0
----
-96
19734

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT + + 52 DIV + + COALESCE ( + 3, 76 )
----
17

skipif mysql # not compatible
query I rowsort label-2382
SELECT + + 52 / + + COALESCE ( + 3, 76 )
----
17

query I rowsort
SELECT ALL + 10 * + - 40 + - 29 + + 52
----
-377

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT - NULLIF ( + + 4, CASE - AVG ( ALL + + 59 ) WHEN - 66 THEN + + 56 END * - CASE - - 10 WHEN + ( + + 59 ) * 82 + + 18 * + 94 + 83 + + - 33 * - 99 THEN 99 WHEN - 37 THEN 83 + 5 ELSE NULL END * + - 58 * - - 69 / + COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2386
SELECT - NULLIF ( + + 4, CASE - AVG ( ALL + + 59 ) WHEN - 66 THEN + + 56 END * - CASE - - 10 WHEN + ( + + 59 ) * 82 + + 18 * + 94 + 83 + + - 33 * - 99 THEN 99 WHEN - 37 THEN 83 + 5 ELSE NULL END * + - 58 * - - 69 / + COUNT ( * ) )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2387
SELECT ALL + 19 + - - 27 * + + CASE + + 49 WHEN + - 27 * - 71 * - - COUNT( * ) + - + 58 + + + 86 * + COUNT( * ) + + MIN( + 4 ) THEN + 62 * + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + NULLIF ( + 6, + 39 * + 55 + - 16 + + 2 * + 54 ) - 36 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL + 19 + - - 27 * + + CASE + + 49 WHEN + - 27 * - 71 * - - COUNT ( * ) + - + 58 + + + 86 * + COUNT ( * ) + + MIN ( + 4 ) THEN + 62 * + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + NULLIF ( + 6, + 39 * + 55 + - 16 + + 2 * + 54 ) - 36 ELSE NULL END AS col1
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT 55 + 29
----
84

query II rowsort
SELECT - ( - 77 ), 32 AS col1
----
77
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT MIN( ALL + 32 ) - 52
----
-20

skipif mysql # not compatible
query I rowsort label-2392
SELECT MIN ( ALL + 32 ) - 52
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT CAST( COALESCE ( CAST( - + ( + - 0 ) AS SIGNED ), - - 46 ) AS SIGNED ) * 89
----
0

skipif mysql # not compatible
query I rowsort label-2393
SELECT CAST ( COALESCE ( CAST ( - + ( + - 0 ) AS INTEGER ), - - 46 ) AS INTEGER ) * 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT + 40 DIV 45 - + ( - + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-2394
SELECT + 40 / 45 - + ( - + 85 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT 15 DIV 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-2395
SELECT 15 / 72 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT ALL - COUNT( ALL - - 57 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL - COUNT ( ALL - - 57 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2397
SELECT CAST( + 73 AS SIGNED ) * - COUNT( * ) + - 17 DIV + - 53 + + 20
----
-53

skipif mysql # not compatible
query I rowsort label-2397
SELECT CAST ( + 73 AS INTEGER ) * - COUNT ( * ) + - 17 / + - 53 + + 20
----
-53

query I rowsort
SELECT ALL - ( - - 31 ) - + - 84
----
53

query I rowsort
SELECT ALL + ( + + 99 ) * - 99 * 7 AS col2
----
-68607

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

skipif mysql # not compatible
query I rowsort label-2400
SELECT 88 + + + COUNT ( * ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT 33 DIV 34 - 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-2401
SELECT 33 / 34 - 23 AS col0
----
-23

query I rowsort
SELECT + 95 * + 53 + 99 - - 53 AS col1
----
5187

query I rowsort
SELECT 33 + 38 AS col0
----
71

query I rowsort
SELECT DISTINCT - 72 col1
----
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT 34 * + 82 * - COUNT( * ) + 76 col1
----
-2712

skipif mysql # not compatible
query I rowsort label-2406
SELECT 34 * + 82 * - COUNT ( * ) + 76 col1
----
-2712

query I rowsort
SELECT ALL + ( + + 92 ) + 22 AS col1
----
114

query I rowsort
SELECT ALL + COALESCE ( 50, 25 ) * - 52 + + 45 AS col1
----
-2555

query I rowsort
SELECT 30 * 83 * + - CASE + + 64 WHEN - 77 THEN + - AVG ( DISTINCT + ( + + 77 ) ) / ( + 20 ) END
----
NULL

query I rowsort
SELECT 33 + - + ( 15 )
----
18

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2412
SELECT ALL + - 58 + + 43 + + 43 AS col2, - 9 + - COUNT( * ) AS col2
----
28
-10

skipif mysql # not compatible
query II rowsort label-2412
SELECT ALL + - 58 + + 43 + + 43 AS col2, - 9 + - COUNT ( * ) AS col2
----
28
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT DISTINCT - COALESCE ( CAST( + NULLIF ( + 50, - 35 ) AS SIGNED ), - - MAX( - 4 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT - COALESCE ( CAST ( + NULLIF ( + 50, - 35 ) AS INTEGER ), - - MAX ( - 4 ) )
----
-50

query I rowsort
SELECT ALL 75 + - 9
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT 64 * - CASE + MAX( DISTINCT + 76 ) WHEN + 88 / COUNT( * ) + 78 THEN - 39 WHEN - + 91 THEN + ( + 62 ) * - 6 ELSE 77 END
----
-4928

skipif mysql # not compatible
query I rowsort label-2415
SELECT 64 * - CASE + MAX ( DISTINCT + 76 ) WHEN + 88 / COUNT ( * ) + 78 THEN - 39 WHEN - + 91 THEN + ( + 62 ) * - 6 ELSE 77 END
----
-4928

query I rowsort
SELECT DISTINCT + 84 + + - COALESCE ( + 37, - 67 ) + + + 57 + + 43 AS col1
----
147

query I rowsort
SELECT 25 + - 33 * 38 AS col1
----
-1229

query I rowsort
SELECT ALL - 34 + + - 52 AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2419
SELECT + CAST( NULL AS SIGNED ) + 40 / - 12 - + COUNT( DISTINCT + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT + CAST ( NULL AS INTEGER ) + 40 / - 12 - + COUNT ( DISTINCT + 21 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT 5 * - 49 - + COUNT( - 95 ) AS col1
----
-246

skipif mysql # not compatible
query I rowsort label-2420
SELECT 5 * - 49 - + COUNT ( - 95 ) AS col1
----
-246

query I rowsort
SELECT DISTINCT 40 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL 77 + + - ( - + COUNT( + - 40 ) ) col0
----
78

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL 77 + + - ( - + COUNT ( + - 40 ) ) col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2423
SELECT ALL + ( + CAST( 69 AS SIGNED ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL + ( + CAST ( 69 AS INTEGER ) ) AS col2
----
69

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

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

query I rowsort
SELECT ALL + 99 * - 46 AS col1
----
-4554

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

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

query I rowsort
SELECT ALL 44 - + 0 AS col0
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT 79 + - - COUNT( 73 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-2429
SELECT 79 + - - COUNT ( 73 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT COUNT( * ) - - 65 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2430
SELECT COUNT ( * ) - - 65 AS col0
----
66

onlyif mysql # aggregate syntax: 
query III rowsort label-2431
SELECT ALL NULLIF ( + - 3, - MAX( ALL - - 72 ) ) * + ( - COUNT( * ) ) col2, 65, - + 51 col2
----
3
65
-51

skipif mysql # not compatible
query III rowsort label-2431
SELECT ALL NULLIF ( + - 3, - MAX ( ALL - - 72 ) ) * + ( - COUNT ( * ) ) col2, 65, - + 51 col2
----
3
65
-51

query I rowsort
SELECT ALL 46 col0
----
46

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2434
SELECT DISTINCT - 47, + ( 66 ) * + 62 * + CAST( NULL AS SIGNED ) + 45 AS col2
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-2434
SELECT DISTINCT - 47, + ( 66 ) * + 62 * + CAST ( NULL AS INTEGER ) + 45 AS col2
----
-47
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2435
SELECT DISTINCT - 85 AS col0, COUNT( * ) + + + 23 AS col1
----
-85
24

skipif mysql # not compatible
query II rowsort label-2435
SELECT DISTINCT - 85 AS col0, COUNT ( * ) + + + 23 AS col1
----
-85
24

query I rowsort
SELECT - 29 * + 4 + - 40
----
-156

onlyif mysql # DIV for integer division: 
query II rowsort label-2437
SELECT ALL - 59 AS col1, 21 DIV - - 44
----
-59
0

skipif mysql # not compatible
query II rowsort label-2437
SELECT ALL - 59 AS col1, 21 / - - 44
----
-59
0

query I rowsort
SELECT DISTINCT 9 * - 81 AS col0
----
-729

query I rowsort
SELECT 98 * 49 * - ( CASE + - 92 WHEN - + 54 THEN NULL WHEN + 42 THEN + + 77 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2440
SELECT 38 DIV + 52 + + 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2440
SELECT 38 / + 52 + + 71 AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2441
SELECT 40 DIV SUM( + + 8 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2441
SELECT 40 / SUM ( + + 8 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL NULLIF ( - + 86, + + 90 + ( + MAX( ALL - - 11 ) ) ) + + MAX( ALL + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL NULLIF ( - + 86, + + 90 + ( + MAX ( ALL - - 11 ) ) ) + + MAX ( ALL + 86 )
----
0

query I rowsort
SELECT 23 * - CASE - - 86 WHEN + 62 / - 70 * + 2 THEN ( - - 78 ) * - - 10 * 97 + + - 75 END / - - ( - 55 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT 30 DIV + COALESCE ( - + 45, + 78 * - 37 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT 30 / + COALESCE ( - + 45, + 78 * - 37 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT DISTINCT 8 + + COUNT( * ) + + - 4
----
5

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT 8 + + COUNT ( * ) + + - 4
----
5

query II rowsort
SELECT ALL + 3 + + 17 AS col0, 89 + - ( + - 58 )
----
20
147

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

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

query I rowsort
SELECT DISTINCT + 94 + 26 + + 16
----
136

query I rowsort
SELECT DISTINCT ( + - 79 ) + - 46
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT ALL - MIN( + + 5 ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL - MIN ( + + 5 ) col2
----
-5

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

skipif mysql # not compatible
query I rowsort label-2451
SELECT - COUNT ( * ) * + 72 + + 69 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT + CASE MAX( + 38 ) WHEN - + 44 + + 23 * - 53 THEN + + 14 + - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT + CASE MAX ( + 38 ) WHEN - + 44 + + 23 * - 53 THEN + + 14 + - 4 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2453
SELECT ALL - CAST( SUM( 58 ) AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - CAST ( SUM ( 58 ) AS INTEGER )
----
-58

query I rowsort
SELECT ALL + 5 + 7
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT 27 - ( COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-2455
SELECT 27 - ( COUNT ( * ) )
----
26

query I rowsort
SELECT + 28 col0
----
28

query II rowsort
SELECT - 51 AS col2, 74 col0
----
-51
74

query II rowsort
SELECT ALL - 48 AS col2, 32 AS col2
----
-48
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2459
SELECT ALL - COUNT( * ) AS col0, + NULLIF ( + 66, + - ( 62 ) ) AS col1
----
-1
66

skipif mysql # not compatible
query II rowsort label-2459
SELECT ALL - COUNT ( * ) AS col0, + NULLIF ( + 66, + - ( 62 ) ) AS col1
----
-1
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2460
SELECT + ( ( - - 69 ) ) DIV - - SUM( 23 ) * - - COUNT( * ) + + 57 * + COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-2460
SELECT + ( ( - - 69 ) ) / - - SUM ( 23 ) * - - COUNT ( * ) + + 57 * + COUNT ( * ) AS col2
----
60

query I rowsort
SELECT DISTINCT + ( + - 80 ) AS col2
----
-80

query II rowsort
SELECT ALL 63 AS col1, + 23
----
63
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT - + 73 * 48 * - + CAST( + + 95 AS SIGNED ) * - CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE - CASE - 87 WHEN + 30 * + 37 * - 25 * - - 32 * + 51 THEN - + 46 * - 33 + 20 - + 38 + + 94 + - ( 89 ) + - - 40 ELSE NULL END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT - + 73 * 48 * - + CAST ( + + 95 AS INTEGER ) * - CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE - CASE - 87 WHEN + 30 * + 37 * - 25 * - - 32 * + 51 THEN - + 46 * - 33 + 20 - + 38 + + 94 + - ( 89 ) + - - 40 ELSE NULL END END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT - - 56 DIV 49
----
1

skipif mysql # not compatible
query I rowsort label-2464
SELECT - - 56 / 49
----
1

query II rowsort
SELECT - 25 AS col1, 93 - 16
----
-25
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT + SUM( 43 ) + - 51
----
-8

skipif mysql # not compatible
query I rowsort label-2466
SELECT + SUM ( 43 ) + - 51
----
-8

query I rowsort
SELECT + + ( - + 62 ) * + + 48 * 91
----
-270816

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2468
SELECT ALL CASE + + 32 WHEN + 9 THEN 53 ELSE CAST( NULL AS DECIMAL ) END * - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL CASE + + 32 WHEN + 9 THEN 53 ELSE CAST ( NULL AS REAL ) END * - 95 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2469
SELECT + 52 / + CASE - 81 WHEN - 84 THEN 82 + - COUNT( DISTINCT + 56 ) WHEN - 12 / - CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT + 52 / + CASE - 81 WHEN - 84 THEN 82 + - COUNT ( DISTINCT + 56 ) WHEN - 12 / - CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT ALL COALESCE ( - 37, + 22, + 12 + + + CAST( - 0 AS SIGNED ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL COALESCE ( - 37, + 22, + 12 + + + CAST ( - 0 AS INTEGER ) ) AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2471
SELECT - NULLIF ( + - CASE - 79 WHEN + 69 THEN NULL WHEN - 33 THEN 7 WHEN - 20 / - NULLIF ( 61, 66 + - + 85 ) + - COUNT( * ) + 38 * + 72 THEN NULL END, + CAST( + - 60 AS SIGNED ) * - - 25 ) + + 99 + + - 40 * 22 * + - 23 / - + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT - NULLIF ( + - CASE - 79 WHEN + 69 THEN NULL WHEN - 33 THEN 7 WHEN - 20 / - NULLIF ( 61, 66 + - + 85 ) + - COUNT ( * ) + 38 * + 72 THEN NULL END, + CAST ( + - 60 AS INTEGER ) * - - 25 ) + + 99 + + - 40 * 22 * + - 23 / - + 84 AS col1
----
NULL

query I rowsort
SELECT - 33 - + 81 + + 71
----
-43

query I rowsort
SELECT - 92 * + + 97
----
-8924

query II rowsort
SELECT + 98 * 23 AS col2, 93 - 18 AS col1
----
2254
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2475
SELECT ALL - 4 * + + 17 + - 7 DIV - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL - 4 * + + 17 + - 7 / - COUNT ( * ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT + NULLIF ( 70, MAX( ( + - 41 ) ) * + COALESCE ( + 84, + 55 ) + 71 * - COALESCE ( + 8, + - ( 3 ) + + 76 ) + - + SUM( 36 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2476
SELECT + NULLIF ( 70, MAX ( ( + - 41 ) ) * + COALESCE ( + 84, + 55 ) + 71 * - COALESCE ( + 8, + - ( 3 ) + + 76 ) + - + SUM ( 36 ) ) AS col2
----
70

query I rowsort
SELECT + 85 + - 66 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT DISTINCT - COUNT( * ) * - ( 14 ) + + 52
----
66

skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT - COUNT ( * ) * - ( 14 ) + + 52
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL + 27 * - 19 + - COUNT( * ) + - 17 * + 18 + + - 44
----
-864

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL + 27 * - 19 + - COUNT ( * ) + - 17 * + 18 + + - 44
----
-864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2480
SELECT CASE - 34 WHEN ( + - 61 ) / CAST( NULL AS SIGNED ) * + 79 * + COUNT( * ) THEN NULL WHEN + 3 THEN + NULLIF ( - 75, - 10 * - ( 11 ) - - - 16 ) / + 45 + + 61 + - 82 * - 48 * 33 + - ( + 43 ) * - 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT CASE - 34 WHEN ( + - 61 ) / CAST ( NULL AS INTEGER ) * + 79 * + COUNT ( * ) THEN NULL WHEN + 3 THEN + NULLIF ( - 75, - 10 * - ( 11 ) - - - 16 ) / + 45 + + 61 + - 82 * - 48 * 33 + - ( + 43 ) * - 57 END
----
NULL

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

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

query II rowsort
SELECT + 32 - - + 90 AS col2, 53 AS col0
----
122
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2483
SELECT + ( + - COUNT( * ) ) col1, 84 * - 93 + - 6 + COUNT( - 92 ) DIV - 11 + + - COUNT( * ) AS col1
----
-1
-7819

skipif mysql # not compatible
query II rowsort label-2483
SELECT + ( + - COUNT ( * ) ) col1, 84 * - 93 + - 6 + COUNT ( - 92 ) / - 11 + + - COUNT ( * ) AS col1
----
-1
-7819

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT - MAX( ALL - 17 ) * - 27 AS col0
----
-459

skipif mysql # not compatible
query I rowsort label-2484
SELECT - MAX ( ALL - 17 ) * - 27 AS col0
----
-459

onlyif mysql # aggregate syntax: 
query II rowsort label-2485
SELECT + - COUNT( DISTINCT - + 19 ) + - 41, MAX( + 6 ) * 93 + + - 30 + + + 99 * MIN( ALL - ( - 63 ) ) * + 0 AS col0
----
-42
528

skipif mysql # not compatible
query II rowsort label-2485
SELECT + - COUNT ( DISTINCT - + 19 ) + - 41, MAX ( + 6 ) * 93 + + - 30 + + + 99 * MIN ( ALL - ( - 63 ) ) * + 0 AS col0
----
-42
528

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2486
SELECT DISTINCT + - COUNT( * ) DIV 84, + 42 AS col0
----
0
42

skipif mysql # not compatible
query II rowsort label-2486
SELECT DISTINCT + - COUNT ( * ) / 84, + 42 AS col0
----
0
42

query I rowsort
SELECT + 20 * + 23
----
460

query I rowsort
SELECT ALL ( - + 17 ) * 56 + - 33 - + + 83 AS col0
----
-1068

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2492
SELECT - - 13 + NULLIF ( - - 13, - COUNT( * ) + - - 56 ) AS col1, + COALESCE ( - + ( + 86 ), - ( - 27 ) - - + 46 + + 12 ) col0
----
26
-86

skipif mysql # not compatible
query II rowsort label-2492
SELECT - - 13 + NULLIF ( - - 13, - COUNT ( * ) + - - 56 ) AS col1, + COALESCE ( - + ( + 86 ), - ( - 27 ) - - + 46 + + 12 ) col0
----
26
-86

query I rowsort
SELECT + + 27 * - 99 AS col0
----
-2673

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT + 9 + + NULLIF ( + + COALESCE ( + 11, - CASE - 93 WHEN - - 12 THEN NULL WHEN - 49 THEN + 62 * - COUNT( * ) ELSE NULL END ), + - 47 * ( - - 1 ) / - 63 + - 85 * ( ( 2 ) ) + - + MIN( 15 ) )
----
20

skipif mysql # not compatible
query I rowsort label-2494
SELECT + 9 + + NULLIF ( + + COALESCE ( + 11, - CASE - 93 WHEN - - 12 THEN NULL WHEN - 49 THEN + 62 * - COUNT ( * ) ELSE NULL END ), + - 47 * ( - - 1 ) / - 63 + - 85 * ( ( 2 ) ) + - + MIN ( 15 ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT DISTINCT - COUNT( * ) * + - 92 + + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT - COUNT ( * ) * + - 92 + + COUNT ( * )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT DISTINCT + CASE COUNT( * ) WHEN + CASE + 9 WHEN - 52 THEN + + 51 / 5 END THEN NULL WHEN 47 - + 64 THEN + 18 ELSE - 36 * - CAST( NULL AS SIGNED ) - 53 * 6 + - 57 - - 70 END * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT + CASE COUNT ( * ) WHEN + CASE + 9 WHEN - 52 THEN + + 51 / 5 END THEN NULL WHEN 47 - + 64 THEN + 18 ELSE - 36 * - CAST ( NULL AS INTEGER ) - 53 * 6 + - 57 - - 70 END * + 75
----
NULL

query I rowsort
SELECT - 36 + + 50 + + 85 - - - COALESCE ( - 99, - COALESCE ( + 27, - 27 ) * - + 11 * 14 ) + + ( COALESCE ( 17, - 11 - 6 ) ) * 21
----
555

query I rowsort
SELECT ALL - 56 * + 76 AS col0
----
-4256

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT DISTINCT CASE - - COUNT( 48 ) WHEN - 60 * + 80 * COUNT( * ) THEN + 1 * - - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT CASE - - COUNT ( 48 ) WHEN - 60 * + 80 * COUNT ( * ) THEN + 1 * - - 38 END
----
NULL

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

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

query I rowsort
SELECT - 69 + - + 64 + 84 + - 11 AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2502
SELECT DISTINCT CASE + + CAST( NULL AS SIGNED ) WHEN - ( - 0 ) * COUNT( * ) * 51 / - COALESCE ( - 96, - 61, - 95 * 61 + + 86 + COALESCE ( - 79, - AVG ( - 73 ), + 24 ) * - 72 + + 87 * + 13 ) THEN + 34 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT CASE + + CAST ( NULL AS INTEGER ) WHEN - ( - 0 ) * COUNT ( * ) * 51 / - COALESCE ( - 96, - 61, - 95 * 61 + + 86 + COALESCE ( - 79, - AVG ( - 73 ), + 24 ) * - 72 + + 87 * + 13 ) THEN + 34 END AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2504
SELECT - 46 + - 30 + + 26 * ( + + 0 ) DIV 20 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-2504
SELECT - 46 + - 30 + + 26 * ( + + 0 ) / 20 AS col1
----
-76

query II rowsort
SELECT 9 AS col0, 16 AS col0
----
9
16

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

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

query I rowsort
SELECT - 10 + + 16 AS col0
----
6

query I rowsort
SELECT + 15 + - 17
----
-2

query I rowsort
SELECT DISTINCT + 66 * - 38
----
-2508

query I rowsort
SELECT DISTINCT + 93 + + 17 AS col2
----
110

query I rowsort
SELECT ALL ( + 94 ) * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2512
SELECT ALL MIN( ALL + + 13 ) DIV COUNT( * ) + 45 + - + 78 DIV - 26
----
61

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL MIN ( ALL + + 13 ) / COUNT ( * ) + 45 + - + 78 / - 26
----
61

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

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

skipif mysql # not compatible
query I rowsort label-2514
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
1

query II rowsort
SELECT DISTINCT + 0 AS col1, 6
----
0
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2516
SELECT ALL 1 DIV + - 89 - - COUNT( * ) - + 74 * - ( ( + COUNT( - 18 ) ) ), + 21 AS col0
----
75
21

skipif mysql # not compatible
query II rowsort label-2516
SELECT ALL 1 / + - 89 - - COUNT ( * ) - + 74 * - ( ( + COUNT ( - 18 ) ) ), + 21 AS col0
----
75
21

query I rowsort
SELECT - 20 * 75 AS col1
----
-1500

query II rowsort
SELECT + ( + - ( 48 ) ) AS col2, - 44
----
-48
-44

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

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

query I rowsort
SELECT DISTINCT + - 43 AS col2
----
-43

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

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

query II rowsort
SELECT + - 41 AS col0, 12
----
-41
12

query II rowsort
SELECT - 30 AS col2, 76
----
-30
76

query I rowsort
SELECT DISTINCT + - 70
----
-70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2526
SELECT ALL - COALESCE ( - - 63, 73 ) * - 29 + 75 * + 14, + 6 + + + 81 * - - 30 + - SUM( - - COALESCE ( 37, - 95 DIV - CAST( 55 AS SIGNED ) + + 89, + 61 * 78, + 77 ) ) + 44 AS col1
----
2877
2443

skipif mysql # not compatible
query II rowsort label-2526
SELECT ALL - COALESCE ( - - 63, 73 ) * - 29 + 75 * + 14, + 6 + + + 81 * - - 30 + - SUM ( - - COALESCE ( 37, - 95 / - CAST ( 55 AS INTEGER ) + + 89, + 61 * 78, + 77 ) ) + 44 AS col1
----
2877
2443

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2527
SELECT + 18 * 71 * - - 37, CAST( NULL AS SIGNED ) / - 29 AS col2
----
47286
NULL

skipif mysql # not compatible
query II rowsort label-2527
SELECT + 18 * 71 * - - 37, CAST ( NULL AS INTEGER ) / - 29 AS col2
----
47286
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2528
SELECT 21 * - - 4 * - CAST( NULL AS SIGNED ) + + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT 21 * - - 4 * - CAST ( NULL AS INTEGER ) + + - 36
----
NULL

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

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

query I rowsort
SELECT 10 + ( - + 5 ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT - 84 DIV + - 91
----
0

skipif mysql # not compatible
query I rowsort label-2531
SELECT - 84 / + - 91
----
0

query I rowsort
SELECT 57 * + 27 AS col0
----
1539

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2534
SELECT 59 - - ( 16 ) / + - CASE 25 WHEN + 11 * + 32 THEN 41 * + - 35 + 69 WHEN + 29 + - 32 * 51 - - 48 * - ( COUNT( * ) ) + CAST( NULL AS SIGNED ) + + - MAX( ALL + 3 ) / + 73 * 88 * 21 THEN + + 35 * - 8 + - SUM( DISTINCT - 98 ) * + 17 * - - 63 + - 70 - - COUNT( * ) + 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT 59 - - ( 16 ) / + - CASE 25 WHEN + 11 * + 32 THEN 41 * + - 35 + 69 WHEN + 29 + - 32 * 51 - - 48 * - ( COUNT ( * ) ) + CAST ( NULL AS INTEGER ) + + - MAX ( ALL + 3 ) / + 73 * 88 * 21 THEN + + 35 * - 8 + - SUM ( DISTINCT - 98 ) * + 17 * - - 63 + - 70 - - COUNT ( * ) + 32 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2535
SELECT ALL - 46, CASE + 5 WHEN + + 2 THEN NULL WHEN COUNT( * ) + - 26 THEN NULL ELSE 70 END + 23 AS col2
----
-46
93

skipif mysql # not compatible
query II rowsort label-2535
SELECT ALL - 46, CASE + 5 WHEN + + 2 THEN NULL WHEN COUNT ( * ) + - 26 THEN NULL ELSE 70 END + 23 AS col2
----
-46
93

query I rowsort
SELECT DISTINCT + 10 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2537
SELECT ALL - COALESCE ( + 55, + MAX( ALL + - 45 ) * - + COUNT( * ) + - CAST( NULL AS SIGNED ), + + COUNT( * ) ) + - ( + - 13 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL - COALESCE ( + 55, + MAX ( ALL + - 45 ) * - + COUNT ( * ) + - CAST ( NULL AS INTEGER ), + + COUNT ( * ) ) + - ( + - 13 ) AS col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-2538
SELECT ALL COALESCE ( - 29, - 71, - 45 ) DIV - 4 + + 6
----
13

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL COALESCE ( - 29, - 71, - 45 ) / - 4 + + 6
----
13

query I rowsort
SELECT 24 * - 67
----
-1608

query I rowsort
SELECT 27 - - 57 + + 96 AS col2
----
180

query I rowsort
SELECT 33 * - 68 AS col1
----
-2244

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

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

query I rowsort
SELECT DISTINCT + ( - COALESCE ( + 90, 58 ) ) + + - 9 * + 13 * - 66
----
7632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2544
SELECT ALL + CAST( - + 74 AS SIGNED ) * - 24 * 7 * 96
----
1193472

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL + CAST ( - + 74 AS INTEGER ) * - 24 * 7 * 96
----
1193472

query I rowsort
SELECT ALL - 7 + 25 + + - 41 * + + 4
----
-146

query I rowsort
SELECT ALL + 44 + - ( 71 )
----
-27

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

skipif mysql # not compatible
query I rowsort label-2547
SELECT 49 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

query I rowsort
SELECT 32 + 44 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT MAX( DISTINCT - 0 ) * - 46
----
0

skipif mysql # not compatible
query I rowsort label-2550
SELECT MAX ( DISTINCT - 0 ) * - 46
----
0

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

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

query I rowsort
SELECT ALL + 7 - - + 74 + - 44
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT - COUNT( * ) * 95 + 83 col2
----
-12

skipif mysql # not compatible
query I rowsort label-2553
SELECT - COUNT ( * ) * 95 + 83 col2
----
-12

query I rowsort
SELECT ALL - 26 - + + 18
----
-44

query I rowsort
SELECT 56 * - 82 * 25
----
-114800

query I rowsort
SELECT + 15 * + - 83 * 28 + 12 - 76 * - 23 AS col0
----
-33100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT - 16 + + CAST( NULL AS SIGNED ) + 49 * 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT - 16 + + CAST ( NULL AS INTEGER ) + 49 * 46 AS col0
----
NULL

query I rowsort
SELECT 35 * + COALESCE ( - 19, + ( - 23 ) )
----
-665

query II rowsort
SELECT 94 + 32, - 89 AS col2
----
126
-89

query II rowsort
SELECT + 35 * + 91 * - - 45 + + ( - - 83 ) AS col2, 68 AS col2
----
143408
68

query I rowsort
SELECT ALL - NULLIF ( + - 32, + 90 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT + CASE - 28 WHEN + 4 - - 83 + + COUNT( * ) * + - 0 + - 53 + 86 THEN + 3 + - NULLIF ( 1, 85 ) + ( + COUNT( * ) ) + + - 93 * - 48 - - COUNT( * ) + 27 END * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2562
SELECT + CASE - 28 WHEN + 4 - - 83 + + COUNT ( * ) * + - 0 + - 53 + 86 THEN + 3 + - NULLIF ( 1, 85 ) + ( + COUNT ( * ) ) + + - 93 * - 48 - - COUNT ( * ) + 27 END * + 53
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT DISTINCT + - COALESCE ( 11, 17 * + + CAST( NULL AS SIGNED ) - + 29 ) + + 38 col1
----
27

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT + - COALESCE ( 11, 17 * + + CAST ( NULL AS INTEGER ) - + 29 ) + + 38 col1
----
27

query I rowsort
SELECT ALL + 50 * - CASE + - 80 WHEN + 21 THEN - 53 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2565
SELECT ALL + + COUNT( * ) + + 98, 55 * + 84 AS col2
----
99
4620

skipif mysql # not compatible
query II rowsort label-2565
SELECT ALL + + COUNT ( * ) + + 98, 55 * + 84 AS col2
----
99
4620

query I rowsort
SELECT 81 * + 97 * + - 2
----
-15714

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT COUNT( * ) - + 62 + 39 + + + 76 + 2 + - - COUNT( * ) + + 13 * 57
----
798

skipif mysql # not compatible
query I rowsort label-2568
SELECT COUNT ( * ) - + 62 + 39 + + + 76 + 2 + - - COUNT ( * ) + + 13 * 57
----
798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2569
SELECT COUNT( * ) + + - 34 + - COALESCE ( - 94, + + 25 * + 61 + - + 80 - - + 27 + 85 * - - ( - 94 ) + 15 * + 47 * - COUNT( ALL CAST( - 91 AS SIGNED ) ) - + 20 ) * - + 98, + 67 AS col0
----
-9245
67

skipif mysql # not compatible
query II rowsort label-2569
SELECT COUNT ( * ) + + - 34 + - COALESCE ( - 94, + + 25 * + 61 + - + 80 - - + 27 + 85 * - - ( - 94 ) + 15 * + 47 * - COUNT ( ALL CAST ( - 91 AS INTEGER ) ) - + 20 ) * - + 98, + 67 AS col0
----
-9245
67

query I rowsort
SELECT ALL 74 + 72 + 79
----
225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2571
SELECT 49 + + - 68 * ( - 77 ) DIV COUNT( * ) AS col0
----
5285

skipif mysql # not compatible
query I rowsort label-2571
SELECT 49 + + - 68 * ( - 77 ) / COUNT ( * ) AS col0
----
5285

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2572
SELECT - MIN( + NULLIF ( 32, - CAST( NULL AS DECIMAL ) ) )
----
-32

skipif mysql # not compatible
query I rowsort label-2572
SELECT - MIN ( + NULLIF ( 32, - CAST ( NULL AS REAL ) ) )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2573
SELECT DISTINCT 80 DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2573
SELECT DISTINCT 80 / 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2574
SELECT ALL ( - 52 ) - + NULLIF ( - 77, - 74 ) AS col0, - COUNT( - - ( + - ( + + CASE - 38 WHEN - - 69 * - 16 THEN - 99 END ) ) )
----
25
0

skipif mysql # not compatible
query II rowsort label-2574
SELECT ALL ( - 52 ) - + NULLIF ( - 77, - 74 ) AS col0, - COUNT ( - - ( + - ( + + CASE - 38 WHEN - - 69 * - 16 THEN - 99 END ) ) )
----
25
0

query I rowsort
SELECT NULLIF ( - 31, - ( - + 43 ) ) * - + 24
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT 68 + ( - SUM( DISTINCT 50 ) ) + + - 63 + - 96 + + 76
----
-65

skipif mysql # not compatible
query I rowsort label-2576
SELECT 68 + ( - SUM ( DISTINCT 50 ) ) + + - 63 + - 96 + + 76
----
-65

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

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

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

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

query II rowsort
SELECT ALL 26, + ( 67 ) * 36 * + - 78 AS col2
----
26
-188136

query I rowsort
SELECT - COALESCE ( - 56, - - 14, + 47 )
----
56

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

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 44 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT ALL ( 66 ) * - 0 * - 37 + MAX( ALL - - 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL ( 66 ) * - 0 * - 37 + MAX ( ALL - - 29 ) AS col2
----
29

query I rowsort
SELECT ALL + - 47 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL + SUM( DISTINCT - NULLIF ( - 10, - 36 ) )
----
10

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + SUM ( DISTINCT - NULLIF ( - 10, - 36 ) )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2586
SELECT + + 89 DIV + CAST( NULL AS SIGNED ) + - - 77, 97 DIV - COUNT( 87 ) AS col1
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-2586
SELECT + + 89 / + CAST ( NULL AS INTEGER ) + - - 77, 97 / - COUNT ( 87 ) AS col1
----
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT - - 84 * - COUNT( * ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-2587
SELECT - - 84 * - COUNT ( * ) AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT - - 15 - - - 36 * + 46 * + CAST( - 5 AS SIGNED ) + 74 + + + 64 + - CAST( NULL AS SIGNED ) / - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT - - 15 - - - 36 * + 46 * + CAST ( - 5 AS INTEGER ) + 74 + + + 64 + - CAST ( NULL AS INTEGER ) / - 99
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2592
SELECT - 75 DIV 19 * - COUNT( * ) - + 49 + + + 47 + + 59 DIV - 5 - + 98 * ( 43 ) * + ( - 76 ) col2
----
320254

skipif mysql # not compatible
query I rowsort label-2592
SELECT - 75 / 19 * - COUNT ( * ) - + 49 + + + 47 + + 59 / - 5 - + 98 * ( 43 ) * + ( - 76 ) col2
----
320254

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT + 16 * - COUNT( DISTINCT + + 30 ) + 10
----
-6

skipif mysql # not compatible
query I rowsort label-2594
SELECT + 16 * - COUNT ( DISTINCT + + 30 ) + 10
----
-6

query I rowsort
SELECT - - 82 + 12
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2596
SELECT DISTINCT + + COUNT( * ) * - + 21 + + 76 + + 77 DIV - 91 - - 63 * COUNT( * )
----
118

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT + + COUNT ( * ) * - + 21 + + 76 + + 77 / - 91 - - 63 * COUNT ( * )
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT + + 8 + 94 + 89 * - + 64 * - NULLIF ( + 50, + 17 ) / + - 58 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT + + 8 + 94 + 89 * - + 64 * - NULLIF ( + 50, + 17 ) / + - 58 / - CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2600
SELECT - 10 * + 25 DIV + COUNT( * ) col0
----
-250

skipif mysql # not compatible
query I rowsort label-2600
SELECT - 10 * + 25 / + COUNT ( * ) col0
----
-250

onlyif mysql # DIV for integer division: 
query I rowsort label-2601
SELECT DISTINCT 15 * - - 25 + - 2 * - + ( 97 ) DIV - - 92 AS col2
----
377

skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT 15 * - - 25 + - 2 * - + ( 97 ) / - - 92 AS col2
----
377

query I rowsort
SELECT DISTINCT COALESCE ( - + 97, - + 34 ) col2
----
-97

query I rowsort
SELECT DISTINCT 92 * - ( + 49 ) * 68 * 58 AS col1
----
-17779552

query I rowsort
SELECT DISTINCT ( - 34 )
----
-34

query I rowsort
SELECT ALL 39 - 6 * + 73 col2
----
-399

query I rowsort
SELECT ALL 58 col1
----
58

query I rowsort
SELECT - 21 - 42 * - 52 * 72 AS col0
----
157227

query I rowsort
SELECT - 79 * + 5
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT ALL - 44 * COUNT( * ) * + + ( 14 )
----
-616

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL - 44 * COUNT ( * ) * + + ( 14 )
----
-616

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

query II rowsort
SELECT ALL 73, 56 AS col1
----
73
56

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

query I rowsort
SELECT - ( - 49 )
----
49

query II rowsort
SELECT DISTINCT - 68, - 52 - 99 AS col0
----
-68
-151

query I rowsort
SELECT + - 93 * + 64 + 23 AS col1
----
-5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2616
SELECT + - CAST( NULL AS SIGNED ) * AVG ( - ( - 22 ) ) * 15 * + MIN( 74 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT + - CAST ( NULL AS INTEGER ) * AVG ( - ( - 22 ) ) * 15 * + MIN ( 74 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT CASE - 40 WHEN + 51 THEN 10 + + SUM( DISTINCT 41 ) + + ( 80 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT CASE - 40 WHEN + 51 THEN 10 + + SUM ( DISTINCT 41 ) + + ( 80 ) END AS col2
----
NULL

query I rowsort
SELECT + - 44 + + 76 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2619
SELECT + SUM( ALL 59 ) + - 81 + - 79 DIV - 47
----
-21

skipif mysql # not compatible
query I rowsort label-2619
SELECT + SUM ( ALL 59 ) + - 81 + - 79 / - 47
----
-21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2621
SELECT + 64 + + ( - COUNT( * ) ) * - 97, 92 + + COALESCE ( + + COUNT( * ), - 45 + ( - COUNT( * ) ), - 64 ) + - - NULLIF ( - MAX( + 88 ), - - MAX( ALL 91 ) ) DIV - - 86 AS col2
----
161
92

skipif mysql # not compatible
query II rowsort label-2621
SELECT + 64 + + ( - COUNT ( * ) ) * - 97, 92 + + COALESCE ( + + COUNT ( * ), - 45 + ( - COUNT ( * ) ), - 64 ) + - - NULLIF ( - MAX ( + 88 ), - - MAX ( ALL 91 ) ) / - - 86 AS col2
----
161
92

query I rowsort
SELECT ALL - 83 * + - 41
----
3403

query II rowsort
SELECT + 38, - 55 + 19 * - 32 col1
----
38
-663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2624
SELECT ALL + COUNT( * ) DIV + MIN( + - 31 ) + 21
----
21

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL + COUNT ( * ) / + MIN ( + - 31 ) + 21
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT ALL - - MIN( - - NULLIF ( 59, - 58 DIV + - 84 ) ) DIV SUM( 71 ) + - - 44 + COUNT( * ) + + 61 * - 54 AS col2
----
-3249

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL - - MIN ( - - NULLIF ( 59, - 58 / + - 84 ) ) / SUM ( 71 ) + - - 44 + COUNT ( * ) + + 61 * - 54 AS col2
----
-3249

query I rowsort
SELECT + + 67 * + 93
----
6231

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT ALL - - 59 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL - - 59 / - 97
----
0

query II rowsort
SELECT + 95, 80 AS col2
----
95
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2629
SELECT ALL + 3 col0, - 0 * COUNT( * ) * + - 71 + - MAX( - CAST( 37 AS SIGNED ) )
----
3
37

skipif mysql # not compatible
query II rowsort label-2629
SELECT ALL + 3 col0, - 0 * COUNT ( * ) * + - 71 + - MAX ( - CAST ( 37 AS INTEGER ) )
----
3
37

query I rowsort
SELECT - 46 + - - 94 AS col2
----
48

query I rowsort
SELECT ALL - NULLIF ( - 62, + + 83 * + - 38 * - 8 * ( 73 ) ) * + - 67 AS col0
----
-4154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2632
SELECT ALL - COALESCE ( MAX( 5 ), - 58 ) DIV - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL - COALESCE ( MAX ( 5 ), - 58 ) / - 69 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2633
SELECT - CASE ( + - 25 ) WHEN - ( - NULLIF ( + 28, + - 53 ) ) THEN - + 74 * + 22 ELSE + - CAST( 35 AS SIGNED ) END - CASE + + 79 WHEN 42 / 13 THEN - COUNT( * ) * - 51 + 93 / + 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT - CASE ( + - 25 ) WHEN - ( - NULLIF ( + 28, + - 53 ) ) THEN - + 74 * + 22 ELSE + - CAST ( 35 AS INTEGER ) END - CASE + + 79 WHEN 42 / 13 THEN - COUNT ( * ) * - 51 + 93 / + 75 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT DISTINCT + CAST( - - 38 AS SIGNED ) * + 43 - 66 AS col0
----
1568

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT + CAST ( - - 38 AS INTEGER ) * + 43 - 66 AS col0
----
1568

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

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

query I rowsort
SELECT - 92 + ( 94 ) * + 12 AS col2
----
1036

query I rowsort
SELECT NULLIF ( + - 78, + 1 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT - MIN( + 3 ) + - 2 + 93
----
88

skipif mysql # not compatible
query I rowsort label-2638
SELECT - MIN ( + 3 ) + - 2 + 93
----
88

query I rowsort
SELECT DISTINCT ( - 48 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2640
SELECT ALL CAST( - - CASE + 81 WHEN - 91 THEN + 37 END AS SIGNED ), + MAX( ALL - - CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2640
SELECT ALL CAST ( - - CASE + 81 WHEN - 91 THEN + 37 END AS INTEGER ), + MAX ( ALL - - CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT SUM( - 56 ) + 3
----
-53

skipif mysql # not compatible
query I rowsort label-2641
SELECT SUM ( - 56 ) + 3
----
-53

query I rowsort
SELECT 77 * 69 col0
----
5313

query I rowsort
SELECT 48 * - 49
----
-2352

query I rowsort
SELECT 83 + - - 5 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT + CASE - - 81 WHEN - - 47 * - 17 THEN - COUNT( * ) * 4 * + ( + 38 ) END + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT + CASE - - 81 WHEN - - 47 * - 17 THEN - COUNT ( * ) * 4 * + ( + 38 ) END + 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT DISTINCT - 95 * COUNT( * ) + ( + 22 ) * - - 44
----
873

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT - 95 * COUNT ( * ) + ( + 22 ) * - - 44
----
873

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2647
SELECT + 12 DIV - - ( + - 15 ) * + CAST( - 70 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2647
SELECT + 12 / - - ( + - 15 ) * + CAST ( - 70 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2648
SELECT DISTINCT - 45 + ( COUNT( * ) ) * 58 * COALESCE ( ( - 62 ), 92 + COUNT( * ) + 62 DIV + 49 + - + 49 ) + + - 15 + 25 * 11 AS col1
----
-3381

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT - 45 + ( COUNT ( * ) ) * 58 * COALESCE ( ( - 62 ), 92 + COUNT ( * ) + 62 / + 49 + - + 49 ) + + - 15 + 25 * 11 AS col1
----
-3381

query I rowsort
SELECT ALL + ( + 6 ) + + + 19 * + 5 * - 52 * + - 75
----
370506

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT - 62 * NULLIF ( - - 36, - 89 * + 2 / - + 38 - COUNT( * ) + + - 29 / - + 8 )
----
-2232

skipif mysql # not compatible
query I rowsort label-2651
SELECT - 62 * NULLIF ( - - 36, - 89 * + 2 / - + 38 - COUNT ( * ) + + - 29 / - + 8 )
----
-2232

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT ( 42 ) DIV - - ( 90 )
----
0

skipif mysql # not compatible
query I rowsort label-2653
SELECT ( 42 ) / - - ( 90 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2654
SELECT + 85 * - COUNT( * ) + CAST( - AVG ( - 46 ) AS SIGNED ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-2654
SELECT + 85 * - COUNT ( * ) + CAST ( - AVG ( - 46 ) AS INTEGER ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT - NULLIF ( + 34, + COUNT( ALL - 22 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-2655
SELECT - NULLIF ( + 34, + COUNT ( ALL - 22 ) )
----
-34

query I rowsort
SELECT DISTINCT - - 77 AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2657
SELECT - 51 - NULLIF ( NULLIF ( - 31, + - ( - - 88 ) ), + 78 ) * 20 * - 45 * + + COUNT( * ) * - 99 DIV + 9, 59 AS col0
----
306849
59

skipif mysql # not compatible
query II rowsort label-2657
SELECT - 51 - NULLIF ( NULLIF ( - 31, + - ( - - 88 ) ), + 78 ) * 20 * - 45 * + + COUNT ( * ) * - 99 / + 9, 59 AS col0
----
306849
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2658
SELECT 28 * - ( - CAST( 95 AS SIGNED ) ) col1
----
2660

skipif mysql # not compatible
query I rowsort label-2658
SELECT 28 * - ( - CAST ( 95 AS INTEGER ) ) col1
----
2660

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

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

query I rowsort
SELECT ALL - + 17
----
-17

query I rowsort
SELECT ALL 28 * + + 93 * 58 AS col0
----
151032

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

skipif mysql # not compatible
query I rowsort label-2662
SELECT COUNT ( * ) * 45
----
45

query I rowsort
SELECT 52 - + 71
----
-19

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

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

query I rowsort
SELECT 59 + 22 AS col0
----
81

query I rowsort
SELECT + 44 col2
----
44

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2668
SELECT ALL - 87 AS col1, CAST( NULL AS SIGNED )
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-2668
SELECT ALL - 87 AS col1, CAST ( NULL AS INTEGER )
----
-87
NULL

query I rowsort
SELECT 58 * + 91 AS col0
----
5278

query II rowsort
SELECT ALL - 93 AS col2, + 92 + 66 col1
----
-93
158

query I rowsort
SELECT DISTINCT + 72 * 6
----
432

query II rowsort
SELECT 17 AS col0, 86 * 37 + - 23 AS col2
----
17
3159

query I rowsort
SELECT ( - 89 ) * + + 44 + + + 15 * 28 AS col0
----
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT ALL + 81 * COALESCE ( 84, - + COUNT( * ) )
----
6804

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL + 81 * COALESCE ( 84, - + COUNT ( * ) )
----
6804

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2675
SELECT ALL - 27 * - COUNT( * ) DIV - CASE + 92 WHEN + + MAX( + 49 ) THEN NULL ELSE - 35 + - 4 + - 9 DIV 53 END
----
0

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL - 27 * - COUNT ( * ) / - CASE + 92 WHEN + + MAX ( + 49 ) THEN NULL ELSE - 35 + - 4 + - 9 / 53 END
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2676
SELECT 57 * + CAST( + - CASE + 86 WHEN ( 34 ) * 61 THEN NULL WHEN - 68 * + + 12 * + 19 THEN + 26 / COUNT( + - 58 ) * - - 95 WHEN - + 39 + 55 + - - CAST( NULL AS SIGNED ) THEN - + 5 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT 57 * + CAST ( + - CASE + 86 WHEN ( 34 ) * 61 THEN NULL WHEN - 68 * + + 12 * + 19 THEN + 26 / COUNT ( + - 58 ) * - - 95 WHEN - + 39 + 55 + - - CAST ( NULL AS INTEGER ) THEN - + 5 END AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 64 - - 83 AS col0
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-2678
SELECT DISTINCT - 9 + - + COUNT( * ) * + 88 * + 74 AS col1, ( - 59 ) + - COUNT( * ) AS col1
----
-6521
-60

skipif mysql # not compatible
query II rowsort label-2678
SELECT DISTINCT - 9 + - + COUNT ( * ) * + 88 * + 74 AS col1, ( - 59 ) + - COUNT ( * ) AS col1
----
-6521
-60

query I rowsort
SELECT ALL + 55 + + 60 AS col2
----
115

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

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

query II rowsort
SELECT + 33 AS col0, 72
----
33
72

query II rowsort
SELECT - - 15 AS col0, - 25 AS col0
----
15
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2683
SELECT + 19 * + CASE 64 WHEN + COUNT( * ) THEN + MAX( 87 ) ELSE + CAST( NULL AS SIGNED ) + - - 62 END col2, 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-2683
SELECT + 19 * + CASE 64 WHEN + COUNT ( * ) THEN + MAX ( 87 ) ELSE + CAST ( NULL AS INTEGER ) + - - 62 END col2, 43
----
NULL
43

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

query II rowsort
SELECT ALL + 47 + - 50 * 46 AS col2, - 91
----
-2253
-91

query II rowsort
SELECT - 67 AS col0, - COALESCE ( 27, + 83, - 28 + + 45 ) AS col2
----
-67
-27

query I rowsort
SELECT ALL - - 93 + + 79
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2688
SELECT + 99 + + ( - COUNT( * ) ) DIV - 57 AS col0, 7
----
99
7

skipif mysql # not compatible
query II rowsort label-2688
SELECT + 99 + + ( - COUNT ( * ) ) / - 57 AS col0, 7
----
99
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT - COUNT( ALL + 91 ) - + 47 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-2689
SELECT - COUNT ( ALL + 91 ) - + 47 AS col1
----
-48

query I rowsort
SELECT 74 + - 8 col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT 5 * + 95 / + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT 5 * + 95 / + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - - 5 - - 64 AS col2
----
69

query I rowsort
SELECT ALL + 62 * - 98
----
-6076

onlyif mysql # aggregate syntax: 
query II rowsort label-2694
SELECT + 49 + + SUM( ALL + 42 ), 53 + + COUNT( - 57 ) AS col2
----
91
54

skipif mysql # not compatible
query II rowsort label-2694
SELECT + 49 + + SUM ( ALL + 42 ), 53 + + COUNT ( - 57 ) AS col2
----
91
54

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

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

query I rowsort
SELECT DISTINCT + + 75 * - 20
----
-1500

onlyif mysql # aggregate syntax: 
query II rowsort label-2697
SELECT DISTINCT - 61, SUM( DISTINCT 53 ) AS col2
----
-61
53

skipif mysql # not compatible
query II rowsort label-2697
SELECT DISTINCT - 61, SUM ( DISTINCT 53 ) AS col2
----
-61
53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2699
SELECT CAST( COUNT( * ) AS SIGNED ) DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-2699
SELECT CAST ( COUNT ( * ) AS INTEGER ) / - 27
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2700
SELECT ALL 16 DIV + 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL 16 / + 72 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT COUNT( DISTINCT - + 49 ) * - 16 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-2701
SELECT COUNT ( DISTINCT - + 49 ) * - 16 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2702
SELECT COUNT( DISTINCT - 47 ) AS col0, + 63 * - 6 * + 64 + - 76 AS col1
----
1
-24268

skipif mysql # not compatible
query II rowsort label-2702
SELECT COUNT ( DISTINCT - 47 ) AS col0, + 63 * - 6 * + 64 + - 76 AS col1
----
1
-24268

query I rowsort
SELECT ALL 80 + 43 + 66 AS col2
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT DISTINCT 73 * 73 * - + 79 * 0 * + 76 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT 73 * 73 * - + 79 * 0 * + 76 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 22 * + 53 * - - 10 * - ( - 46 ) + - 76 - - 41
----
536325

query I rowsort
SELECT + 44 - - 80 * - 72
----
-5716

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT + CASE 67 WHEN + ( - 21 ) THEN NULL WHEN + - 55 THEN + 48 + MAX( ALL - + 30 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2707
SELECT + CASE 67 WHEN + ( - 21 ) THEN NULL WHEN + - 55 THEN + 48 + MAX ( ALL - + 30 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 8 * - 25 AS col2
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT + COUNT( * ) * - COUNT( ALL + 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-2709
SELECT + COUNT ( * ) * - COUNT ( ALL + 87 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT - ( - NULLIF ( - 2, + - COUNT( * ) ) ) * 51 * + + 87 * 30
----
-266220

skipif mysql # not compatible
query I rowsort label-2710
SELECT - ( - NULLIF ( - 2, + - COUNT ( * ) ) ) * 51 * + + 87 * 30
----
-266220

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT + 8 + - - COUNT( * ) * + MIN( DISTINCT + ( 20 ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-2712
SELECT + 8 + - - COUNT ( * ) * + MIN ( DISTINCT + ( 20 ) ) AS col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT DISTINCT + 45 DIV + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT + 45 / + 77 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT - 49 * ( - 95 ) + + - COUNT( * ) + 33 * - 92 AS col2
----
1618

skipif mysql # not compatible
query I rowsort label-2714
SELECT - 49 * ( - 95 ) + + - COUNT ( * ) + 33 * - 92 AS col2
----
1618

query I rowsort
SELECT DISTINCT - ( + + ( - 43 ) ) + + 59 + - + 10 + - 54 * + 73 AS col1
----
-3850

query I rowsort
SELECT DISTINCT 9 * - + 96
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT - 53 + - - CASE COUNT( * ) WHEN - 93 THEN NULL WHEN + - 72 THEN - + 63 ELSE 80 END AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2717
SELECT - 53 + - - CASE COUNT ( * ) WHEN - 93 THEN NULL WHEN + - 72 THEN - + 63 ELSE 80 END AS col1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2718
SELECT DISTINCT - - COUNT( * ) * + 41 - - 98 * - 59, 59 + + MAX( DISTINCT - 69 ) AS col1
----
-5741
-10

skipif mysql # not compatible
query II rowsort label-2718
SELECT DISTINCT - - COUNT ( * ) * + 41 - - 98 * - 59, 59 + + MAX ( DISTINCT - 69 ) AS col1
----
-5741
-10

query I rowsort
SELECT + + 30 * + 86 AS col1
----
2580

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT - + 24 * - NULLIF ( 83, COUNT( * ) )
----
1992

skipif mysql # not compatible
query I rowsort label-2720
SELECT - + 24 * - NULLIF ( 83, COUNT ( * ) )
----
1992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2721
SELECT - 80 + - CASE - CASE + COUNT( * ) WHEN - 92 THEN 44 ELSE - 5 + + 36 END WHEN + 95 THEN + + 70 + - 38 WHEN 17 THEN 50 END * + ( 86 ) AS col0, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2721
SELECT - 80 + - CASE - CASE + COUNT ( * ) WHEN - 92 THEN 44 ELSE - 5 + + 36 END WHEN + 95 THEN + + 70 + - 38 WHEN 17 THEN 50 END * + ( 86 ) AS col0, - CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT - - 55 * - 67
----
-3685

query I rowsort
SELECT - - NULLIF ( + 12, 96 * 56 - + 83 ) * + + 36
----
432

query I rowsort
SELECT DISTINCT ( + 32 ) * - - 1 * + 47 AS col0
----
1504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2725
SELECT - + 28 * - COUNT( * ) AS col0, - CASE - + 18 WHEN CAST( + CAST( - 26 AS SIGNED ) AS DECIMAL ) + - COUNT( * ) - + MAX( - + 17 ) + ( - - COUNT( * ) ) + - SUM( DISTINCT - 93 ) DIV - 61 * - - 94 * ( + 0 ) * CAST( NULL AS DECIMAL ) * + 4 + + + 30 DIV + - 73 * 46 THEN + SUM( + 67 ) ELSE ( - + 84 ) DIV + 22 + ( + - 42 ) * - COUNT( * ) END AS col1
----
28
-39

skipif mysql # not compatible
query II rowsort label-2725
SELECT - + 28 * - COUNT ( * ) AS col0, - CASE - + 18 WHEN CAST ( + CAST ( - 26 AS INTEGER ) AS REAL ) + - COUNT ( * ) - + MAX ( - + 17 ) + ( - - COUNT ( * ) ) + - SUM ( DISTINCT - 93 ) / - 61 * - - 94 * ( + 0 ) * CAST ( NULL AS REAL ) * + 4 + + + 30 / + - 73 * 46 THEN + SUM ( + 67 ) ELSE ( - + 84 ) / + 22 + ( + - 42 ) * - COUNT ( * ) END AS col1
----
28
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT - COALESCE ( + 63, + COUNT( * ) ) * + - 72
----
4536

skipif mysql # not compatible
query I rowsort label-2726
SELECT - COALESCE ( + 63, + COUNT ( * ) ) * + - 72
----
4536

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

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

query I rowsort
SELECT ( - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT + ( - MIN( ( - 50 ) ) ) * + 28 + - - 72 AS col1
----
1472

skipif mysql # not compatible
query I rowsort label-2729
SELECT + ( - MIN ( ( - 50 ) ) ) * + 28 + - - 72 AS col1
----
1472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2730
SELECT - SUM( DISTINCT - + 62 ) - 2 * + 30 DIV 83 + 0 * + + 32
----
62

skipif mysql # not compatible
query I rowsort label-2730
SELECT - SUM ( DISTINCT - + 62 ) - 2 * + 30 / 83 + 0 * + + 32
----
62

query I rowsort
SELECT DISTINCT - 32 * - - 9 + + 78 AS col1
----
-210

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

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

query I rowsort
SELECT ALL + 82 * - 51 * + + 65 / 71 / + + 39 + - 36 + + 60 * - - 85 + + 77 + - + NULLIF ( + - NULLIF ( + 78, + ( 26 ) ), + 95 - - - 21 - + + 19 * - - 25 ) * + 78 * - CASE - - 24 WHEN - - 3 THEN - + 66 WHEN 11 - 9 THEN 60 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL 16 * - + 34 + + + SUM( ALL - 75 ) AS col2
----
-619

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL 16 * - + 34 + + + SUM ( ALL - 75 ) AS col2
----
-619

query I rowsort
SELECT + 3 - - 64 AS col0
----
67

query I rowsort
SELECT ALL 85 * - 22 * - + 4 + + 72
----
7552

query I rowsort
SELECT COALESCE ( + + 33, - ( - 80 ) )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT - COALESCE ( - 30, - COUNT( * ) * + - 50 - 5, 22 ) * 23 * - 35
----
-24150

skipif mysql # not compatible
query I rowsort label-2739
SELECT - COALESCE ( - 30, - COUNT ( * ) * + - 50 - 5, 22 ) * 23 * - 35
----
-24150

query I rowsort
SELECT + 67 * 20 AS col1
----
1340

onlyif mysql # DIV for integer division: 
query I rowsort label-2741
SELECT ALL - 64 DIV + 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL - 64 / + 74 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( + 92 )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2743
SELECT DISTINCT COUNT( * ) * - 7 * 10 + COUNT( * ) * - 57 AS col0, + 90
----
-127
90

skipif mysql # not compatible
query II rowsort label-2743
SELECT DISTINCT COUNT ( * ) * - 7 * 10 + COUNT ( * ) * - 57 AS col0, + 90
----
-127
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL - - 68 * - MIN( - 97 ) + 83 * NULLIF ( - 66, COUNT( * ) ) - + 32
----
1086

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL - - 68 * - MIN ( - 97 ) + 83 * NULLIF ( - 66, COUNT ( * ) ) - + 32
----
1086

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2745
SELECT DISTINCT - + 2 * - CAST( NULL AS DECIMAL ) - + 80 * + AVG ( + 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT - + 2 * - CAST ( NULL AS REAL ) - + 80 * + AVG ( + 53 ) AS col2
----
NULL

query I rowsort
SELECT ALL 98 * - 2 col0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT - + COALESCE ( - - 41, + COUNT( * ), 21 )
----
-41

skipif mysql # not compatible
query I rowsort label-2747
SELECT - + COALESCE ( - - 41, + COUNT ( * ), 21 )
----
-41

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

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

query I rowsort
SELECT DISTINCT 30 col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2750
SELECT ALL - - 50 * CAST( - 95 AS SIGNED ) DIV - - COUNT( * ) + - MAX( DISTINCT + 69 ) + - COUNT( * )
----
-4820

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL - - 50 * CAST ( - 95 AS INTEGER ) / - - COUNT ( * ) + - MAX ( DISTINCT + 69 ) + - COUNT ( * )
----
-4820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2751
SELECT + - 18 DIV + 21 * SUM( ALL - - 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT + - 18 / + 21 * SUM ( ALL - - 82 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2752
SELECT DISTINCT - 12 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT - 12 / 78
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2753
SELECT - + COUNT( * ) - MAX( - 34 ), 22 AS col0
----
33
22

skipif mysql # not compatible
query II rowsort label-2753
SELECT - + COUNT ( * ) - MAX ( - 34 ), 22 AS col0
----
33
22

query I rowsort
SELECT + - ( CASE 7 WHEN - - 5 * - 21 * - 73 * - 62 + + 18 THEN - 37 WHEN - 74 * + 54 THEN NULL ELSE NULL END ) + - ( - 5 ) - - - 85
----
NULL

query I rowsort
SELECT - - 68 - 53
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT + + 99 + MIN( DISTINCT - 85 ) - - 69
----
83

skipif mysql # not compatible
query I rowsort label-2756
SELECT + + 99 + MIN ( DISTINCT - 85 ) - - 69
----
83

query I rowsort
SELECT - 90 * - 91 - + 93
----
8097

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

query I rowsort
SELECT 58 * + + 10 * 62
----
35960

query I rowsort
SELECT 3 * - 1 * + 7 * - 38 * - 13 + 84 AS col0
----
-10290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2761
SELECT DISTINCT - COALESCE ( - 37, - 62, CAST( NULLIF ( 4, + 10 - 35 + - - 99 ) AS SIGNED ) * - 0, 13, - ( - 85 ) * + 72 + 89 + - 34 + + + 2 )
----
37

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT - COALESCE ( - 37, - 62, CAST ( NULLIF ( 4, + 10 - 35 + - - 99 ) AS INTEGER ) * - 0, 13, - ( - 85 ) * + 72 + 89 + - 34 + + + 2 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL - 58 + + SUM( ALL - 84 ) * - ( + 26 )
----
2126

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL - 58 + + SUM ( ALL - 84 ) * - ( + 26 )
----
2126

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

query I rowsort
SELECT 48 * 38
----
1824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2765
SELECT + 62 DIV + 82 * COUNT( * ) * - ( - 53 ) + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2765
SELECT + 62 / + 82 * COUNT ( * ) * - ( - 53 ) + + COUNT ( * ) col2
----
1

query I rowsort
SELECT ALL - 68 + + - 66
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2767
SELECT DISTINCT - 50 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT - 50 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + NULLIF ( 65, - 6 ) * + + 74 + + + 29
----
4839

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

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

query I rowsort
SELECT ALL - 68 * + 50
----
-3400

query I rowsort
SELECT ALL - ( 81 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT COUNT( * ) - + + ( - - 60 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-2772
SELECT COUNT ( * ) - + + ( - - 60 ) AS col1
----
-59

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2774
SELECT 79 * - 1 + - 62 DIV 47 AS col1, 97
----
-80
97

skipif mysql # not compatible
query II rowsort label-2774
SELECT 79 * - 1 + - 62 / 47 AS col1, 97
----
-80
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2775
SELECT + 22 + + SUM( 52 ) * + 93, 93 / + - COUNT( * ) + - CASE - + 38 WHEN - 92 * - 66 + + + 78 THEN - 38 ELSE NULL END + - 61 * + MAX( DISTINCT - 44 ) + + 32 / COUNT( * ) - + 84 col2
----
4858
NULL

skipif mysql # not compatible
query II rowsort label-2775
SELECT + 22 + + SUM ( 52 ) * + 93, 93 / + - COUNT ( * ) + - CASE - + 38 WHEN - 92 * - 66 + + + 78 THEN - 38 ELSE NULL END + - 61 * + MAX ( DISTINCT - 44 ) + + 32 / COUNT ( * ) - + 84 col2
----
4858
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL - 68 - + 61 * + MIN( + 55 ) AS col1
----
-3423

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL - 68 - + 61 * + MIN ( + 55 ) AS col1
----
-3423

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

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

query I rowsort
SELECT ALL - - COALESCE ( - 83, - + 74 ) AS col1
----
-83

query I rowsort
SELECT 69 * - 97
----
-6693

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

skipif mysql # not compatible
query I rowsort label-2780
SELECT - 88 + - COUNT ( * ) AS col1
----
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-2781
SELECT ALL - 59, 30 DIV + - 56 col1
----
-59
0

skipif mysql # not compatible
query II rowsort label-2781
SELECT ALL - 59, 30 / + - 56 col1
----
-59
0

query II rowsort
SELECT ALL + 46 AS col1, 70 * + 36 * + - NULLIF ( - - 68, + - 24 ) AS col2
----
46
-171360

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2784
SELECT + 38 + + 37 * + 12 * + 48 DIV + - COUNT( * ) DIV + COUNT( * ) + - 32 AS col2, + CAST( 61 AS SIGNED ) * - 1
----
-21306
-61

skipif mysql # not compatible
query II rowsort label-2784
SELECT + 38 + + 37 * + 12 * + 48 / + - COUNT ( * ) / + COUNT ( * ) + - 32 AS col2, + CAST ( 61 AS INTEGER ) * - 1
----
-21306
-61

query I rowsort
SELECT ALL CASE + 27 WHEN + - 72 THEN NULL WHEN 23 THEN NULL ELSE + 35 END
----
35

query I rowsort
SELECT DISTINCT 16 * + 47 AS col2
----
752

query I rowsort
SELECT - 98 col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT + 95 * - NULLIF ( - 63, MAX( ALL + + 56 ) ) AS col2
----
5985

skipif mysql # not compatible
query I rowsort label-2788
SELECT + 95 * - NULLIF ( - 63, MAX ( ALL + + 56 ) ) AS col2
----
5985

query I rowsort
SELECT - - ( - ( 44 ) )
----
-44

query I rowsort
SELECT ALL 52 + 29 + + 56 AS col2
----
137

query I rowsort
SELECT 52 * - - 80
----
4160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2792
SELECT ALL + 99 + + CAST( - - 94 AS SIGNED ) + MAX( ( 9 ) ) + + COALESCE ( + 64, 81 * - 16 ) + - 52 AS col1
----
214

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL + 99 + + CAST ( - - 94 AS INTEGER ) + MAX ( ( 9 ) ) + + COALESCE ( + 64, 81 * - 16 ) + - 52 AS col1
----
214

query I rowsort
SELECT ALL 16 + - 31 * - 96 * - 4 * - 68 * + + 29
----
23474704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2794
SELECT MAX( DISTINCT + + 85 ) * 62 + + 62 DIV COUNT( * )
----
5332

skipif mysql # not compatible
query I rowsort label-2794
SELECT MAX ( DISTINCT + + 85 ) * 62 + + 62 / COUNT ( * )
----
5332

query I rowsort
SELECT + 95 col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT + 27 * + + ( - COUNT( * ) ) + - MAX( 43 ) - 84 AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-2796
SELECT + 27 * + + ( - COUNT ( * ) ) + - MAX ( 43 ) - 84 AS col0
----
-154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2797
SELECT 96 DIV + COUNT( ALL + 41 )
----
96

skipif mysql # not compatible
query I rowsort label-2797
SELECT 96 / + COUNT ( ALL + 41 )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2798
SELECT ALL 85 + + + 32, 91 / CASE + 12 WHEN + 69 * - 79 * COUNT( * ) * + + 13 + + ( + 16 ) / + 89 + - 51 THEN - + 90 END AS col1
----
117
NULL

skipif mysql # not compatible
query II rowsort label-2798
SELECT ALL 85 + + + 32, 91 / CASE + 12 WHEN + 69 * - 79 * COUNT ( * ) * + + 13 + + ( + 16 ) / + 89 + - 51 THEN - + 90 END AS col1
----
117
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT DISTINCT 15 - 37 * COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT 15 - 37 * COUNT ( * ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT DISTINCT - MAX( - - 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT - MAX ( - - 42 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT + COUNT( * ) * 42 * - 36 - + + 74
----
-1586

skipif mysql # not compatible
query I rowsort label-2801
SELECT + COUNT ( * ) * 42 * - 36 - + + 74
----
-1586

query I rowsort
SELECT DISTINCT 8 * - + 35 col2
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT + 70 * COUNT( * ) + - 43
----
27

skipif mysql # not compatible
query I rowsort label-2803
SELECT + 70 * COUNT ( * ) + - 43
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT - CASE 19 WHEN - 19 - + 3 + + COUNT( * ) THEN + 46 ELSE + - 54 - - 77 END
----
-23

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT - CASE 19 WHEN - 19 - + 3 + + COUNT ( * ) THEN + 46 ELSE + - 54 - - 77 END
----
-23

query I rowsort
SELECT 48 * - ( + + 90 )
----
-4320

query I rowsort
SELECT + - COALESCE ( - 17, + 18 + 26 )
----
17

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2808
SELECT ALL - 73 * - + 57 * + 55 col2, + MAX( DISTINCT - + COALESCE ( 1, - - 47 * - 28 + + 41 ) ) AS col0
----
228855
-1

skipif mysql # not compatible
query II rowsort label-2808
SELECT ALL - 73 * - + 57 * + 55 col2, + MAX ( DISTINCT - + COALESCE ( 1, - - 47 * - 28 + + 41 ) ) AS col0
----
228855
-1

query I rowsort
SELECT ALL - - 60
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2810
SELECT DISTINCT - - COUNT( * ) * - 98 DIV 71, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-2810
SELECT DISTINCT - - COUNT ( * ) * - 98 / 71, COUNT ( * ) AS col2
----
-1
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2812
SELECT ALL + - 66 * + ( + 85 ) + - 14 DIV + COUNT( 95 )
----
-5624

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL + - 66 * + ( + 85 ) + - 14 / + COUNT ( 95 )
----
-5624

query I rowsort
SELECT DISTINCT - COALESCE ( + - 38, + 24 ) col1
----
38

query II rowsort
SELECT 97 + - ( + 70 ) AS col1, - 11 * - 6
----
27
66

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

query I rowsort
SELECT 86 * ( 63 ) + - 71 AS col2
----
5347

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

query II rowsort
SELECT + 2 - + 39 + - 90 * - 70 * 30 col0, + 83 AS col2
----
188963
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2819
SELECT ALL - CASE - - 58 WHEN - 2 + 1 THEN - COALESCE ( - + 59, + 41, - 56 / + 42 + - CASE + 13 WHEN CASE ( + 63 ) WHEN + 76 * - 0 + 2 + + CAST( NULL AS DECIMAL ) * - 5 THEN 16 * 69 ELSE NULL END THEN NULL WHEN ( + + COUNT( * ) ) THEN NULL WHEN COUNT( * ) THEN 81 END ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL - CASE - - 58 WHEN - 2 + 1 THEN - COALESCE ( - + 59, + 41, - 56 / + 42 + - CASE + 13 WHEN CASE ( + 63 ) WHEN + 76 * - 0 + 2 + + CAST ( NULL AS REAL ) * - 5 THEN 16 * 69 ELSE NULL END THEN NULL WHEN ( + + COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) THEN 81 END ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT - - 91 + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-2820
SELECT - - 91 + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL + 85 + - COUNT( * ) * SUM( ALL - 49 )
----
134

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + 85 + - COUNT ( * ) * SUM ( ALL - 49 )
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2822
SELECT DISTINCT + - ( + COALESCE ( + 89, - 34 * 70 ) ) DIV + + COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT + - ( + COALESCE ( + 89, - 34 * 70 ) ) / + + COUNT ( * ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL 46 + - + 90 * + 55 * + COUNT( * ) AS col2
----
-4904

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL 46 + - + 90 * + 55 * + COUNT ( * ) AS col2
----
-4904

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2824
SELECT 56, 78 * + ( - 14 ) + - - CASE - 96 WHEN - + 57 * 58 + - + CAST( NULL AS SIGNED ) THEN 2 END col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-2824
SELECT 56, 78 * + ( - 14 ) + - - CASE - 96 WHEN - + 57 * 58 + - + CAST ( NULL AS INTEGER ) THEN 2 END col0
----
56
NULL

query I rowsort
SELECT ALL + 40 + 19 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT - COUNT( * ) + 25 + + + 66
----
90

skipif mysql # not compatible
query I rowsort label-2826
SELECT - COUNT ( * ) + 25 + + + 66
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-2827
SELECT - 87, 8 - - COUNT( * ) col1
----
-87
9

skipif mysql # not compatible
query II rowsort label-2827
SELECT - 87, 8 - - COUNT ( * ) col1
----
-87
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2828
SELECT - 98 + + + CAST( - 60 AS SIGNED ) + - - 73 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-2828
SELECT - 98 + + + CAST ( - 60 AS INTEGER ) + - - 73 AS col1
----
-85

query I rowsort
SELECT ALL 10 + + 73
----
83

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

skipif mysql # not compatible
query I rowsort label-2830
SELECT - COALESCE ( - + COUNT ( * ), + 84 )
----
1

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

skipif mysql # not compatible
query I rowsort label-2831
SELECT - SUM ( DISTINCT - - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT - NULLIF ( - + 38, - MAX( + ( - - COALESCE ( - 93, - 41 + 4, 88 ) ) ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2832
SELECT - NULLIF ( - + 38, - MAX ( + ( - - COALESCE ( - 93, - 41 + 4, 88 ) ) ) ) AS col0
----
38

query II rowsort
SELECT DISTINCT - 23 - - 65 + + - 50 AS col0, 82 col1
----
-8
82

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

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

query I rowsort
SELECT + 44 + + - 6
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL 72 * - + 67 - 5 + + - ( - - 9 ) * + COALESCE ( - + 46, - 40 * - COUNT( * ) * 74, 76 + - - 92 + - 26 ) AS col2
----
-4415

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL 72 * - + 67 - 5 + + - ( - - 9 ) * + COALESCE ( - + 46, - 40 * - COUNT ( * ) * 74, 76 + - - 92 + - 26 ) AS col2
----
-4415

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2838
SELECT + 66 * + 84 + + 71 + 22 + + COUNT( * ) * + AVG ( + 44 ) / - CAST( - - 95 AS SIGNED ) / 21 + 18 - 32 + - CAST( NULL AS SIGNED ) * ( + - 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT + 66 * + 84 + + 71 + 22 + + COUNT ( * ) * + AVG ( + 44 ) / - CAST ( - - 95 AS INTEGER ) / 21 + 18 - 32 + - CAST ( NULL AS INTEGER ) * ( + - 77 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2839
SELECT ALL - 35 * + - 16 * + CAST( NULL AS SIGNED ) - + + 78 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL - 35 * + - 16 * + CAST ( NULL AS INTEGER ) - + + 78 col2
----
NULL

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

query II rowsort
SELECT ALL + 41, + 16 AS col0
----
41
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT CASE - MIN( DISTINCT - + 87 ) WHEN + 15 * + - 74 + AVG ( ALL - - 47 ) THEN NULL ELSE - 40 * - 75 + NULLIF ( + 65, 34 ) + 45 * 2 - + - 15 END AS col1
----
3170

skipif mysql # not compatible
query I rowsort label-2842
SELECT CASE - MIN ( DISTINCT - + 87 ) WHEN + 15 * + - 74 + AVG ( ALL - - 47 ) THEN NULL ELSE - 40 * - 75 + NULLIF ( + 65, 34 ) + 45 * 2 - + - 15 END AS col1
----
3170

query I rowsort
SELECT + NULLIF ( - - 77, 54 + + + 64 ) AS col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT 33 DIV - 21 + - + 83 + 27 - 54 AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-2844
SELECT 33 / - 21 + - + 83 + 27 - 54 AS col2
----
-111

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2846
SELECT DISTINCT + 53, - 50 DIV + 30 AS col2
----
53
-1

skipif mysql # not compatible
query II rowsort label-2846
SELECT DISTINCT + 53, - 50 / + 30 AS col2
----
53
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT + ( - COUNT( * ) ) * + ( + CASE - + 40 WHEN 17 / + - 2 * AVG ( 89 ) THEN NULL ELSE - 82 END )
----
82

skipif mysql # not compatible
query I rowsort label-2847
SELECT + ( - COUNT ( * ) ) * + ( + CASE - + 40 WHEN 17 / + - 2 * AVG ( 89 ) THEN NULL ELSE - 82 END )
----
82

query I rowsort
SELECT - 8 * - 34
----
272

query I rowsort
SELECT - 66 + + - 87
----
-153

query I rowsort
SELECT + 48 * - + 69 + + 13 * + 57
----
-2571

query I rowsort
SELECT DISTINCT + + 26 col2
----
26

query II rowsort
SELECT ALL + 8 * - ( - + 49 ), - 28 * + + 69 AS col2
----
392
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT - ( + 80 ) * - MIN( - + ( - 68 ) ) + - 12 AS col2
----
5428

skipif mysql # not compatible
query I rowsort label-2853
SELECT - ( + 80 ) * - MIN ( - + ( - 68 ) ) + - 12 AS col2
----
5428

query II rowsort
SELECT DISTINCT + - 49 col1, - 3
----
-49
-3

query I rowsort
SELECT ALL + - 98 * 72 + - + COALESCE ( - 93, - 85 + - 72, - COALESCE ( - 59, + 30 ) ) + - 11 + + 61 + 73 + + - 94 * + + 87 AS col1
----
-15018

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

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

query I rowsort
SELECT DISTINCT + + 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2858
SELECT - 18 * + - COUNT( + 20 ) + + 52, 2 col2
----
70
2

skipif mysql # not compatible
query II rowsort label-2858
SELECT - 18 * + - COUNT ( + 20 ) + + 52, 2 col2
----
70
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2859
SELECT + CASE + ( 12 ) WHEN + 92 THEN + 69 WHEN - COUNT( * ) + 95 * MIN( ALL 63 ) THEN NULL END * + 6 * - + MAX( ALL + 49 ) + + 98 * COALESCE ( + - 49, + - MAX( ALL - 26 ) ) + - 60 + - COALESCE ( 24, + 3 ) AS col0, 12 + + - 19 - + NULLIF ( - 79, CAST( NULL AS DECIMAL ) / SUM( ALL 70 ) ) + - ( - 48 ) + - COALESCE ( + - 78, + 56 * + MIN( ALL 68 ) ) - - + COUNT( * ) / + + 32 * 36 * 93 / 27 / - 91 / - 19 + MIN( DISTINCT 27 ) * + 68 * + 24 * - CAST( NULL AS DECIMAL ) + - - 32 / 50
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2859
SELECT + CASE + ( 12 ) WHEN + 92 THEN + 69 WHEN - COUNT ( * ) + 95 * MIN ( ALL 63 ) THEN NULL END * + 6 * - + MAX ( ALL + 49 ) + + 98 * COALESCE ( + - 49, + - MAX ( ALL - 26 ) ) + - 60 + - COALESCE ( 24, + 3 ) AS col0, 12 + + - 19 - + NULLIF ( - 79, CAST ( NULL AS REAL ) / SUM ( ALL 70 ) ) + - ( - 48 ) + - COALESCE ( + - 78, + 56 * + MIN ( ALL 68 ) ) - - + COUNT ( * ) / + + 32 * 36 * 93 / 27 / - 91 / - 19 + MIN ( DISTINCT 27 ) * + 68 * + 24 * - CAST ( NULL AS REAL ) + - - 32 / 50
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT + 22 * - ( - - 54 ) * 76 - + COUNT( * ) * + - COUNT( * ) + - + COUNT( * ) * + + ( - 8 ) * - MAX( DISTINCT + ( + 21 ) ) * - 56
----
-80879

skipif mysql # not compatible
query I rowsort label-2860
SELECT + 22 * - ( - - 54 ) * 76 - + COUNT ( * ) * + - COUNT ( * ) + - + COUNT ( * ) * + + ( - 8 ) * - MAX ( DISTINCT + ( + 21 ) ) * - 56
----
-80879

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2861
SELECT ALL - + 68 * - + CAST( NULL AS SIGNED ) * + - 44 * - 64 + - + COUNT( * ) + + 93, - 29 col1
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-2861
SELECT ALL - + 68 * - + CAST ( NULL AS INTEGER ) * + - 44 * - 64 + - + COUNT ( * ) + + 93, - 29 col1
----
NULL
-29

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

skipif mysql # not compatible
query I rowsort label-2862
SELECT - - SUM ( + - 15 )
----
-15

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

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

query II rowsort
SELECT - 11 AS col1, - 17 + + 63
----
-11
46

query I rowsort
SELECT ALL + 40 + - 33 AS col0
----
7

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

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

query I rowsort
SELECT ALL NULLIF ( 11, + 65 )
----
11

query I rowsort
SELECT ALL + 36 - 76 AS col2
----
-40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT - NULLIF ( + - CAST( NULL AS SIGNED ), + - 41 + - - NULLIF ( 38, + 8 / 87 * + - 28 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2870
SELECT - NULLIF ( + - CAST ( NULL AS INTEGER ), + - 41 + - - NULLIF ( 38, + 8 / 87 * + - 28 ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT ALL + 9 DIV + 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL + 9 / + 76 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / 83 * ( + 13 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / 83 * ( + 13 ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2873
SELECT DISTINCT - 18 DIV - - 86
----
0

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - 18 / - - 86
----
0

query I rowsort
SELECT DISTINCT ( - + 13 ) col1
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-2875
SELECT ALL - 9 DIV + 6 AS col2, - 40 * - 27
----
-1
1080

skipif mysql # not compatible
query II rowsort label-2875
SELECT ALL - 9 / + 6 AS col2, - 40 * - 27
----
-1
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT - NULLIF ( + + 25, - + MAX( DISTINCT - 87 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-2876
SELECT - NULLIF ( + + 25, - + MAX ( DISTINCT - 87 ) )
----
-25

query I rowsort
SELECT + 14 * - - 1 * - 53
----
-742

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

query II rowsort
SELECT + ( - - 50 ) col2, - 34
----
50
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT DISTINCT + 29 * - 3 AS col2, - 51 * + MIN( + + 13 ) * - COUNT( * ) AS col1
----
-87
663

skipif mysql # not compatible
query II rowsort label-2880
SELECT DISTINCT + 29 * - 3 AS col2, - 51 * + MIN ( + + 13 ) * - COUNT ( * ) AS col1
----
-87
663

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT - COUNT( * ) * + 80 + + 61 * - COUNT( * ) - + - 22
----
-119

skipif mysql # not compatible
query I rowsort label-2881
SELECT - COUNT ( * ) * + 80 + + 61 * - COUNT ( * ) - + - 22
----
-119

query I rowsort
SELECT ALL + - 98 AS col1
----
-98

query I rowsort
SELECT + 68 * + - 84 AS col0
----
-5712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2884
SELECT ALL + MAX( 25 ) / - + 54 + CAST( NULL AS SIGNED ) AS col1, 87 + 86 AS col2
----
NULL
173

skipif mysql # not compatible
query II rowsort label-2884
SELECT ALL + MAX ( 25 ) / - + 54 + CAST ( NULL AS INTEGER ) AS col1, 87 + 86 AS col2
----
NULL
173

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2885
SELECT ALL - 52 / - - ( 46 ) + + 4 + + + COUNT( * ) + + + CAST( NULL AS DECIMAL ) * + ( - 4 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL - 52 / - - ( 46 ) + + 4 + + + COUNT ( * ) + + + CAST ( NULL AS REAL ) * + ( - 4 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2886
SELECT DISTINCT + 23 * - MIN( DISTINCT - + 6 ) + + COUNT( * ), + 26 AS col2
----
139
26

skipif mysql # not compatible
query II rowsort label-2886
SELECT DISTINCT + 23 * - MIN ( DISTINCT - + 6 ) + + COUNT ( * ), + 26 AS col2
----
139
26

query I rowsort
SELECT + - 85 + ( 89 ) * - 13
----
-1242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2888
SELECT + MAX( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2889
SELECT ALL - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + ( 32 ) * CAST( - AVG ( 62 ) AS SIGNED ) + - 35 + - 26 + 83 * NULLIF ( - 26, + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + ( 32 ) * CAST ( - AVG ( 62 ) AS INTEGER ) + - 35 + - 26 + 83 * NULLIF ( - 26, + 17 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2890
SELECT + MAX( ALL - 39 ) DIV - 60 + 15
----
15

skipif mysql # not compatible
query I rowsort label-2890
SELECT + MAX ( ALL - 39 ) / - 60 + 15
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2891
SELECT ALL + 72 * + 40 * + + CASE + - ( - - 39 ) WHEN + 56 THEN - - 73 ELSE - MAX( 91 ) * - - COUNT( * ) + + 65 * - 90 * - 63 + + CAST( NULL AS SIGNED ) / 95 * 80 / - 9 / - NULLIF ( + - 77, COUNT( * ) + 23 + + + 78 * - 53 ) END * + + 71 + + + 31 + + COALESCE ( 72, + 99 * 27 * 61, + + COUNT( ALL + COALESCE ( 64, 17 ) ) + - 27 ) + - 38 * 59 - - 48 + - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL + 72 * + 40 * + + CASE + - ( - - 39 ) WHEN + 56 THEN - - 73 ELSE - MAX ( 91 ) * - - COUNT ( * ) + + 65 * - 90 * - 63 + + CAST ( NULL AS INTEGER ) / 95 * 80 / - 9 / - NULLIF ( + - 77, COUNT ( * ) + 23 + + + 78 * - 53 ) END * + + 71 + + + 31 + + COALESCE ( 72, + 99 * 27 * 61, + + COUNT ( ALL + COALESCE ( 64, 17 ) ) + - 27 ) + - 38 * 59 - - 48 + - 8 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2892
SELECT DISTINCT - 2 * - NULLIF ( - 92, - COUNT( * ) * - 99 * - - MIN( - 17 ) + - CASE SUM( - 49 ) WHEN - - 92 THEN NULL ELSE + 79 - + COUNT( * ) + CASE + 12 WHEN 76 THEN NULL WHEN + COUNT( + 28 ) * CASE + 62 WHEN + 52 + - 75 THEN + CAST( NULL AS SIGNED ) + - 48 WHEN - 97 THEN + COALESCE ( + 95, ( - 27 ) + + - 67 + + 14 + MIN( + - 52 ) + + 7 * - 38 * - + 74 * ( - COUNT( * ) ) ) * + 63 END + + 76 - + COUNT( - 28 ) + 11 + + 78 - + 39 * + 30 * - ( + 96 ) + + 12 + 72 THEN NULL ELSE - MIN( + ( + 68 ) ) END - + 14 END + COUNT( * ) ) * 58 AS col1
----
-10672

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT - 2 * - NULLIF ( - 92, - COUNT ( * ) * - 99 * - - MIN ( - 17 ) + - CASE SUM ( - 49 ) WHEN - - 92 THEN NULL ELSE + 79 - + COUNT ( * ) + CASE + 12 WHEN 76 THEN NULL WHEN + COUNT ( + 28 ) * CASE + 62 WHEN + 52 + - 75 THEN + CAST ( NULL AS INTEGER ) + - 48 WHEN - 97 THEN + COALESCE ( + 95, ( - 27 ) + + - 67 + + 14 + MIN ( + - 52 ) + + 7 * - 38 * - + 74 * ( - COUNT ( * ) ) ) * + 63 END + + 76 - + COUNT ( - 28 ) + 11 + + 78 - + 39 * + 30 * - ( + 96 ) + + 12 + 72 THEN NULL ELSE - MIN ( + ( + 68 ) ) END - + 14 END + COUNT ( * ) ) * 58 AS col1
----
-10672

query I rowsort
SELECT ALL + 38 + + + 97 col0
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2894
SELECT ALL CAST( CASE - 14 WHEN + + COUNT( * ) * - 44 + + 22 THEN NULL WHEN COUNT( * ) THEN 57 * - 47 END AS SIGNED ) + + COUNT( * ) + + 63 * - 33 + - - 45 / + 22 + + ( 83 ) + - 56 * - 66 * - ( + 62 ) * NULLIF ( + + ( + 25 ), 16 + - 40 ) * + COUNT( * ) + - + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL CAST ( CASE - 14 WHEN + + COUNT ( * ) * - 44 + + 22 THEN NULL WHEN COUNT ( * ) THEN 57 * - 47 END AS INTEGER ) + + COUNT ( * ) + + 63 * - 33 + - - 45 / + 22 + + ( 83 ) + - 56 * - 66 * - ( + 62 ) * NULLIF ( + + ( + 25 ), 16 + - 40 ) * + COUNT ( * ) + - + 29 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 72 + 35
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2896
SELECT 83 + + 31 * - NULLIF ( - 64, + 17 ) * - + COUNT( DISTINCT NULLIF ( 48, + ( - CAST( NULL AS SIGNED ) ) ) ) * + 45
----
-89197

skipif mysql # not compatible
query I rowsort label-2896
SELECT 83 + + 31 * - NULLIF ( - 64, + 17 ) * - + COUNT ( DISTINCT NULLIF ( 48, + ( - CAST ( NULL AS INTEGER ) ) ) ) * + 45
----
-89197

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

skipif mysql # not compatible
query II rowsort label-2897
SELECT COUNT ( * ) * 13 AS col0, 69
----
13
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2898
SELECT + 64 + + - 37 AS col0, + 33 DIV - + COUNT( * ) AS col2
----
27
-33

skipif mysql # not compatible
query II rowsort label-2898
SELECT + 64 + + - 37 AS col0, + 33 / - + COUNT ( * ) AS col2
----
27
-33

query I rowsort
SELECT 3 * + 22
----
66

query I rowsort
SELECT ALL 74 - 20 - 55 AS col0
----
-1

query II rowsort
SELECT ALL 40, - 86 AS col1
----
40
-86

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

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

query I rowsort
SELECT 93 * + - 78 AS col0
----
-7254

query I rowsort
SELECT 5 * + - COALESCE ( 84, + 77 ) * + 50 + + ( + 91 ) + - - 89 + ( + + 55 ) - 91 * - 91
----
-12484

query I rowsort
SELECT 12 - - 42
----
54

query I rowsort
SELECT 83 * + 83
----
6889

query I rowsort
SELECT 86 + - - 96 AS col1
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2908
SELECT 21 - + - MAX( ALL ( - 96 ) ) DIV CAST( - 87 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-2908
SELECT 21 - + - MAX ( ALL ( - 96 ) ) / CAST ( - 87 AS INTEGER )
----
22

query I rowsort
SELECT 31 + - - 49
----
80

query I rowsort
SELECT ALL 14 col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT 37 / - CAST( NULL AS SIGNED ) * - 33 / + + ( 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT 37 / - CAST ( NULL AS INTEGER ) * - 33 / + + ( 13 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2912
SELECT ALL + COUNT( * ) + + 4 DIV + 20
----
1

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL + COUNT ( * ) + + 4 / + 20
----
1

query I rowsort
SELECT 11 + - 11 * - 28 AS col1
----
319

query I rowsort
SELECT 18 * + - NULLIF ( - 22, + 91 )
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT DISTINCT + COUNT( * ) + 5 col0
----
6

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT + COUNT ( * ) + 5 col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT 27 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-2916
SELECT 27 / 66
----
0

query I rowsort
SELECT ALL + 15 + - 98 AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2918
SELECT - 82 DIV 94 + ( - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-2918
SELECT - 82 / 94 + ( - 89 ) AS col1
----
-89

query I rowsort
SELECT 17 + + 19 AS col2
----
36

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

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT - MIN ( ( - 63 ) )
----
63

query I rowsort
SELECT ALL + 71 + 47
----
118

query I rowsort
SELECT ALL 59 + + ( - 27 )
----
32

query I rowsort
SELECT - ( + 25 ) * + COALESCE ( + 41 * + 59, + 12 ) + CASE + 21 WHEN + 4 THEN - ( + NULLIF ( 26, + 94 - 97 ) ) + 73 END
----
NULL

query I rowsort
SELECT 46 * 39
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT MAX( + 95 ) + - 45 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-2925
SELECT MAX ( + 95 ) + - 45 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL - CASE - ( 2 ) WHEN + COUNT( * ) + - ( 18 ) THEN + 94 ELSE - 49 * - 93 END
----
-4557

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL - CASE - ( 2 ) WHEN + COUNT ( * ) + - ( 18 ) THEN + 94 ELSE - 49 * - 93 END
----
-4557

query I rowsort
SELECT DISTINCT - 53 - + 68
----
-121

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

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

query I rowsort
SELECT 77 + - 12 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT DISTINCT 34 - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT 34 - COUNT ( * ) AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT DISTINCT 52 DIV 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT 52 / 69 AS col1
----
0

query I rowsort
SELECT ALL 87 * 31
----
2697

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT CASE - COUNT( - 74 ) WHEN 67 THEN COUNT( * ) * MAX( 77 ) + + 65 ELSE NULL END + + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT CASE - COUNT ( - 74 ) WHEN 67 THEN COUNT ( * ) * MAX ( 77 ) + + 65 ELSE NULL END + + 18 AS col1
----
NULL

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

query I rowsort
SELECT ALL 51 * 10 col2
----
510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2936
SELECT SUM( + 62 ) / ( CASE + 14 WHEN COALESCE ( - ( + 5 ), 80 ) THEN - 14 / 21 + + CAST( COUNT( * ) - - CAST( COUNT( * ) AS SIGNED ) AS DECIMAL ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT SUM ( + 62 ) / ( CASE + 14 WHEN COALESCE ( - ( + 5 ), 80 ) THEN - 14 / 21 + + CAST ( COUNT ( * ) - - CAST ( COUNT ( * ) AS INTEGER ) AS REAL ) END ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT 21 + COUNT( * ) * 18 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-2938
SELECT 21 + COUNT ( * ) * 18 AS col1
----
39

query I rowsort
SELECT 28 * 48 AS col2
----
1344

query I rowsort
SELECT DISTINCT 14 + - 75
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ALL MIN( - 52 ) + + 51 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL MIN ( - 52 ) + + 51 AS col0
----
-1

query I rowsort
SELECT ALL 43 + 11
----
54

query I rowsort
SELECT 18 + + 84 AS col0
----
102

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2944
SELECT DISTINCT 78 + + CAST( 6 + - CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT 78 + + CAST ( 6 + - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL COUNT ( * ) + - 20 col1
----
-19

query I rowsort
SELECT DISTINCT - 56 * 71 AS col0
----
-3976

query I rowsort
SELECT 30 * 38
----
1140

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2949
SELECT 25 DIV - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2949
SELECT 25 / - 57 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2950
SELECT + 94 - + MAX( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2950
SELECT + 94 - + MAX ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 15 + 26 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT DISTINCT + + 95 + - 44 * ( 46 * + COUNT( * ) ) AS col2
----
-1929

skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT + + 95 + - 44 * ( 46 * + COUNT ( * ) ) AS col2
----
-1929

query I rowsort
SELECT ALL - + 37 * - 31 + 47
----
1194

query I rowsort
SELECT - 49 * + 23 - 2
----
-1129

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

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

query I rowsort
SELECT + NULLIF ( - 76, - 98 ) col0
----
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL - 21 * - 62 - - COUNT( * ) * 54
----
1356

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL - 21 * - 62 - - COUNT ( * ) * 54
----
1356

query I rowsort
SELECT DISTINCT + + 82 * 51
----
4182

query I rowsort
SELECT ALL - 22 * 11
----
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL + MIN( 32 ) * 64
----
2048

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL + MIN ( 32 ) * 64
----
2048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT - + CAST( - 56 AS SIGNED ) * + 24
----
1344

skipif mysql # not compatible
query I rowsort label-2962
SELECT - + CAST ( - 56 AS INTEGER ) * + 24
----
1344

query I rowsort
SELECT ALL - - CASE + 3 WHEN - 89 + - 51 THEN ( 57 ) WHEN + 73 THEN NULL ELSE 70 END * 16 AS col1
----
1120

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT + - COALESCE ( - 16, + COUNT( * ), 75 * 45 + + 33 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-2966
SELECT + - COALESCE ( - 16, + COUNT ( * ), 75 * 45 + + 33 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT - 60 * NULLIF ( + 68, COUNT( * ) ) col1
----
-4080

skipif mysql # not compatible
query I rowsort label-2967
SELECT - 60 * NULLIF ( + 68, COUNT ( * ) ) col1
----
-4080

query I rowsort
SELECT ALL - 17 * - 17 AS col1
----
289

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

skipif mysql # not compatible
query I rowsort label-2969
SELECT + COALESCE ( ( - COUNT ( * ) ), - 85 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT COUNT( 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2971
SELECT COUNT ( 10 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT ALL 80 DIV - - 48
----
1

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL 80 / - - 48
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT + 91 * + NULLIF ( ( 99 ), 23 * COUNT( * ) )
----
9009

skipif mysql # not compatible
query I rowsort label-2973
SELECT + 91 * + NULLIF ( ( 99 ), 23 * COUNT ( * ) )
----
9009

query I rowsort
SELECT ALL 97 * - - 38
----
3686

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

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

query I rowsort
SELECT - NULLIF ( + 70, 91 + + 98 * 76 )
----
-70

query I rowsort
SELECT ALL 73 + 24 AS col2
----
97

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

skipif mysql # not compatible
query I rowsort label-2978
SELECT + 79 - - - 59 + 84 * ( - COUNT ( * ) + + COUNT ( * ) ) AS col2
----
20

query I rowsort
SELECT DISTINCT 4 AS col2
----
4

query I rowsort
SELECT DISTINCT - 33 + + 75 + 79
----
121

query I rowsort
SELECT ALL 26 + + 42 + + 8 * - 1 AS col2
----
60

query I rowsort
SELECT + 32 + - 71 + - 36 * 95 AS col2
----
-3459

query I rowsort
SELECT + 8 + - 98 * 26
----
-2540

query I rowsort
SELECT ALL 19 + 9 + ( - 86 ) * - 32 AS col1
----
2780

query I rowsort
SELECT + 25 * - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + 96 + - + 68 - + COUNT( * ) * - 54
----
82

skipif mysql # not compatible
query I rowsort label-2986
SELECT + 96 + - + 68 - + COUNT ( * ) * - 54
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT + 1 - + + 86 + SUM( DISTINCT + 66 )
----
-19

skipif mysql # not compatible
query I rowsort label-2987
SELECT + 1 - + + 86 + SUM ( DISTINCT + 66 )
----
-19

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

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

query I rowsort
SELECT ALL 31 + - 53 - 47
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2990
SELECT ALL CAST( NULL AS SIGNED ) - + - NULLIF ( + 27, 74 ) + - 88 * + 4 / ( - 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL CAST ( NULL AS INTEGER ) - + - NULLIF ( + 27, 74 ) + - 88 * + 4 / ( - 67 ) AS col0
----
NULL

query I rowsort
SELECT + - 28 * - - 48 + + 87
----
-1257

query I rowsort
SELECT DISTINCT 29 col0
----
29

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

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT 93 - + COUNT ( * ) AS col2
----
92

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2996
SELECT ALL - 67 DIV - - COUNT( * ) - 19 * + 28 AS col0
----
-599

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL - 67 / - - COUNT ( * ) - 19 * + 28 AS col0
----
-599

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL - - CASE - MIN( - 58 ) WHEN - 0 * NULLIF ( + SUM( ALL - 79 ), - 96 ) - COUNT( * ) THEN 17 + COUNT( * ) ELSE NULL END * 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL - - CASE - MIN ( - 58 ) WHEN - 0 * NULLIF ( + SUM ( ALL - 79 ), - 96 ) - COUNT ( * ) THEN 17 + COUNT ( * ) ELSE NULL END * 98 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL + 2 / + - ( COUNT ( * ) ) - + COUNT ( * )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3000
SELECT ALL + - COALESCE ( + 50, CAST( 8 AS SIGNED ), COUNT( * ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL + - COALESCE ( + 50, CAST ( 8 AS INTEGER ), COUNT ( * ) ) AS col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-3001
SELECT 76 DIV - 25 + - 95
----
-98

skipif mysql # not compatible
query I rowsort label-3001
SELECT 76 / - 25 + - 95
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3002
SELECT + 21 DIV - 21 + 27 DIV 57 + + 41 * 92
----
3771

skipif mysql # not compatible
query I rowsort label-3002
SELECT + 21 / - 21 + 27 / 57 + + 41 * 92
----
3771

query I rowsort
SELECT + 17 + 5
----
22

query I rowsort
SELECT + 69 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL + COALESCE ( + MIN( DISTINCT 86 ), - 41 )
----
86

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL + COALESCE ( + MIN ( DISTINCT 86 ), - 41 )
----
86

query I rowsort
SELECT + NULLIF ( - 32, + 92 + 88 )
----
-32

query I rowsort
SELECT + - 10 + - 26 - - 42 * 86 col1
----
3576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3008
SELECT - + 52 DIV + ( MIN( ALL + 23 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-3008
SELECT - + 52 / + ( MIN ( ALL + 23 ) )
----
-2

query I rowsort
SELECT + + 37 * + 80 * - 42 + + 57 AS col0
----
-124263

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT 60 DIV 11 + 26 col0
----
31

skipif mysql # not compatible
query I rowsort label-3010
SELECT 60 / 11 + 26 col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT ALL + 91 / + + CAST( NULL AS SIGNED ) * - 15 * - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL + 91 / + + CAST ( NULL AS INTEGER ) * - 15 * - 37 AS col2
----
NULL

query I rowsort
SELECT ALL + 46 * 49 AS col0
----
2254

query I rowsort
SELECT - 39 + 82 - 81 AS col2
----
-38

query I rowsort
SELECT - 15 + - - 56
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT COALESCE ( + 70, 65 + + 34, - COUNT( * ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3015
SELECT COALESCE ( + 70, 65 + + 34, - COUNT ( * ) ) AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3016
SELECT - CAST( 63 AS SIGNED ) * - ( ( + COUNT( * ) ) ) + - MIN( - 91 ) AS col2
----
154

skipif mysql # not compatible
query I rowsort label-3016
SELECT - CAST ( 63 AS INTEGER ) * - ( ( + COUNT ( * ) ) ) + - MIN ( - 91 ) AS col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL + COUNT( * ) * + 92 + - 31 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL + COUNT ( * ) * + 92 + - 31 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ALL - MAX( ALL - + 90 ) * + CASE 6 WHEN AVG ( COALESCE ( - 75, 79 ) ) + + 45 THEN NULL ELSE 3 END
----
270

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL - MAX ( ALL - + 90 ) * + CASE 6 WHEN AVG ( COALESCE ( - 75, 79 ) ) + + 45 THEN NULL ELSE 3 END
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT NULLIF ( + + 3, - 46 * - MIN( ALL 81 ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3019
SELECT NULLIF ( + + 3, - 46 * - MIN ( ALL 81 ) ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3020
SELECT + 68 + - - NULLIF ( + 92, + CASE + 26 WHEN CASE + 25 WHEN + 41 THEN - 5 * CAST( COUNT( * ) * + 95 AS SIGNED ) WHEN + 35 THEN 83 ELSE + 79 END THEN NULL WHEN 38 + - 36 THEN + 77 * + 80 END ) AS col2
----
160

skipif mysql # not compatible
query I rowsort label-3020
SELECT + 68 + - - NULLIF ( + 92, + CASE + 26 WHEN CASE + 25 WHEN + 41 THEN - 5 * CAST ( COUNT ( * ) * + 95 AS INTEGER ) WHEN + 35 THEN 83 ELSE + 79 END THEN NULL WHEN 38 + - 36 THEN + 77 * + 80 END ) AS col2
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT NULLIF ( + 27, 22 * COUNT( * ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3021
SELECT NULLIF ( + 27, 22 * COUNT ( * ) ) AS col0
----
27

query I rowsort
SELECT ALL + 38 * + 41 + + 78 - + 74 col0
----
1562

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT - 32 * COUNT( * ) / + - COUNT( * ) * + CASE 14 WHEN ( + 22 ) * 7 THEN + 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT - 32 * COUNT ( * ) / + - COUNT ( * ) * + CASE 14 WHEN ( + 22 ) * 7 THEN + 32 END
----
NULL

query I rowsort
SELECT ALL - 11 * 64 + 52 + 78
----
-574

query I rowsort
SELECT ALL - 22 * - CASE - 41 WHEN 76 THEN NULL WHEN - 91 THEN NULL ELSE 90 END + + 83 AS col2
----
2063

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT + COUNT( * ) + + 89 * + 92 AS col2
----
8189

skipif mysql # not compatible
query I rowsort label-3028
SELECT + COUNT ( * ) + + 89 * + 92 AS col2
----
8189

query I rowsort
SELECT ALL 84 - + 74 * 66 col0
----
-4800

onlyif mysql # aggregate syntax: 
query II rowsort label-3030
SELECT + COUNT( * ), + 58 * + ( 44 ) * + 25 AS col0
----
1
63800

skipif mysql # not compatible
query II rowsort label-3030
SELECT + COUNT ( * ), + 58 * + ( 44 ) * + 25 AS col0
----
1
63800

query I rowsort
SELECT + 98 * + + 30
----
2940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3032
SELECT ALL ( + + CAST( + - ( + 18 ) AS SIGNED ) ) * 65 AS col2
----
-1170

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL ( + + CAST ( + - ( + 18 ) AS INTEGER ) ) * 65 AS col2
----
-1170

query I rowsort
SELECT ALL + 88 * - + ( - - 60 )
----
-5280

query I rowsort
SELECT ALL 18 col1
----
18

query I rowsort
SELECT - CASE + + 29 WHEN - 51 - + 37 THEN 59 END AS col0
----
NULL

query I rowsort
SELECT ALL + - 73 - - 41 - - 65 - + 71 * 84
----
-5931

query II rowsort
SELECT ALL 80 col1, + 89 + + + 74 AS col2
----
80
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3038
SELECT COUNT( * ) * - 78 + - 35 + + CAST( CASE COUNT( * ) WHEN + 86 THEN + COUNT( - 14 ) WHEN 75 THEN + CAST( NULL AS SIGNED ) / 63 END AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT COUNT ( * ) * - 78 + - 35 + + CAST ( CASE COUNT ( * ) WHEN + 86 THEN + COUNT ( - 14 ) WHEN 75 THEN + CAST ( NULL AS INTEGER ) / 63 END AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3039
SELECT ALL 4 * - + NULLIF ( - - 2, - 22 * - COUNT( * ) + + COUNT( ALL - CAST( NULL AS SIGNED ) ) )
----
-8

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL 4 * - + NULLIF ( - - 2, - 22 * - COUNT ( * ) + + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3040
SELECT 26 - - 97 + + 35 + CAST( - 25 AS SIGNED ) * 47
----
-1017

skipif mysql # not compatible
query I rowsort label-3040
SELECT 26 - - 97 + + 35 + CAST ( - 25 AS INTEGER ) * 47
----
-1017

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT - COUNT( * ) * - 18 + - - ( - 50 ) + NULLIF ( 72, + 43 + - COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-3041
SELECT - COUNT ( * ) * - 18 + - - ( - 50 ) + NULLIF ( 72, + 43 + - COUNT ( * ) )
----
40

query I rowsort
SELECT ALL + 11 * - 87
----
-957

query II rowsort
SELECT 62 col0, - ( 17 ) AS col2
----
62
-17

query I rowsort
SELECT - ( - 39 ) + - 29
----
10

query I rowsort
SELECT 47 + - 26 AS col0
----
21

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

skipif mysql # not compatible
query II rowsort label-3046
SELECT - + 62 col2, + COUNT ( * )
----
-62
1

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

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

query I rowsort
SELECT DISTINCT + ( 16 ) * - 86 AS col1
----
-1376

query I rowsort
SELECT + 2 * - 25 + 54 - - 40 AS col0
----
44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3051
SELECT - CAST( COALESCE ( - 91, - 53 * COUNT( * ) ) AS SIGNED ) * - 43
----
-3913

skipif mysql # not compatible
query I rowsort label-3051
SELECT - CAST ( COALESCE ( - 91, - 53 * COUNT ( * ) ) AS INTEGER ) * - 43
----
-3913

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3053
SELECT + COALESCE ( + COUNT( * ), - + AVG ( ALL + 3 ) ) * + ( + 94 ) + - 44 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT + COALESCE ( + COUNT ( * ), - + AVG ( ALL + 3 ) ) * + ( + 94 ) + - 44 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL COUNT( * ) + - NULLIF ( + ( + 14 ), + NULLIF ( 98, - 97 + ( 51 - 14 ) / + CASE 40 * - 10 WHEN - 64 THEN + 71 / AVG ( ALL 15 ) END ) + ( - 50 + 71 ) ) * - COUNT( * ) col2
----
15

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL COUNT ( * ) + - NULLIF ( + ( + 14 ), + NULLIF ( 98, - 97 + ( 51 - 14 ) / + CASE 40 * - 10 WHEN - 64 THEN + 71 / AVG ( ALL 15 ) END ) + ( - 50 + 71 ) ) * - COUNT ( * ) col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT 12 * - ( + + COUNT( * ) ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-3055
SELECT 12 * - ( + + COUNT ( * ) ) col0
----
-12

query I rowsort
SELECT ALL 98 + + + 56 col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL - CASE - COUNT( 4 ) WHEN + 90 + - 29 THEN + 99 - 13 WHEN 94 * + 66 THEN - 27 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL - CASE - COUNT ( 4 ) WHEN + 90 + - 29 THEN + 99 - 13 WHEN 94 * + 66 THEN - 27 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3058
SELECT 31 / + - CAST( NULL AS SIGNED ) AS col1, 0 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3058
SELECT 31 / + - CAST ( NULL AS INTEGER ) AS col1, 0 AS col0
----
NULL
0

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

skipif mysql # not compatible
query I rowsort label-3059
SELECT CAST ( NULL AS INTEGER ) * - 91 * 89 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3060
SELECT DISTINCT - CASE - 51 WHEN - 1 THEN - 30 * - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT - CASE - 51 WHEN - 1 THEN - 30 * - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT DISTINCT + 33 + - + ( + - MIN( ALL + 46 ) )
----
79

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT + 33 + - + ( + - MIN ( ALL + 46 ) )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3062
SELECT 21 DIV COUNT( * ) * + 21
----
441

skipif mysql # not compatible
query I rowsort label-3062
SELECT 21 / COUNT ( * ) * + 21
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL - COUNT( * ) + + 65 * 48 AS col2
----
3119

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL - COUNT ( * ) + + 65 * 48 AS col2
----
3119

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT - 66 * - COALESCE ( - 5, + COUNT( * ) ) - ( - 23 - 66 ) AS col1
----
-241

skipif mysql # not compatible
query I rowsort label-3064
SELECT - 66 * - COALESCE ( - 5, + COUNT ( * ) ) - ( - 23 - 66 ) AS col1
----
-241

query I rowsort
SELECT 40 * + - 57 col2
----
-2280

onlyif mysql # DIV for integer division: 
query I rowsort label-3066
SELECT 11 + + 11 DIV 59
----
11

skipif mysql # not compatible
query I rowsort label-3066
SELECT 11 + + 11 / 59
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3067
SELECT 46 / SUM( DISTINCT - CAST( NULL AS SIGNED ) ) / - + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3067
SELECT 46 / SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - + 76 AS col1
----
NULL

query I rowsort
SELECT ALL - 16 * - 96 AS col2
----
1536

onlyif mysql # aggregate syntax: 
query II rowsort label-3069
SELECT 17 * - COUNT( * ) AS col2, 8 AS col1
----
-17
8

skipif mysql # not compatible
query II rowsort label-3069
SELECT 17 * - COUNT ( * ) AS col2, 8 AS col1
----
-17
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3070
SELECT 20 + - - 83 + NULLIF ( CAST( NULL AS SIGNED ), ( + ( + 10 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT 20 + - - 83 + NULLIF ( CAST ( NULL AS INTEGER ), ( + ( + 10 ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT ALL + CAST( 49 AS SIGNED ) - - - 53 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL + CAST ( 49 AS INTEGER ) - - - 53 AS col1
----
-4

query I rowsort
SELECT 27 * - - 98
----
2646

query I rowsort
SELECT 41 col2
----
41

query I rowsort
SELECT DISTINCT + 43 * - 71
----
-3053

query I rowsort
SELECT - 96 + 1
----
-95

query I rowsort
SELECT ALL + + 21 - - 96 AS col0
----
117

query I rowsort
SELECT 62 + + 82
----
144

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

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

query I rowsort
SELECT + 72 * - 23 * - 56 AS col2
----
92736

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT 41 + 65 + 73 + - + 62 + MAX( + 38 + 54 ) * + CASE SUM( ALL - 10 ) * + ( 57 * - 27 + 74 * - 16 ) WHEN - 87 THEN NULL ELSE - 29 END * - 10 * 11
----
293597

skipif mysql # not compatible
query I rowsort label-3080
SELECT 41 + 65 + 73 + - + 62 + MAX ( + 38 + 54 ) * + CASE SUM ( ALL - 10 ) * + ( 57 * - 27 + 74 * - 16 ) WHEN - 87 THEN NULL ELSE - 29 END * - 10 * 11
----
293597

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

skipif mysql # not compatible
query I rowsort label-3081
SELECT CAST ( NULL AS REAL ) + - 1 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3082
SELECT ALL + 90 DIV 3 + - - 78 * + 46 * 86
----
308598

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL + 90 / 3 + - - 78 * + 46 * 86
----
308598

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT 61 * + SUM( DISTINCT + - ( 72 ) )
----
-4392

skipif mysql # not compatible
query I rowsort label-3083
SELECT 61 * + SUM ( DISTINCT + - ( 72 ) )
----
-4392

query I rowsort
SELECT ALL 56 + + 69 AS col1
----
125

query I rowsort
SELECT 10 + + 28 + - + COALESCE ( - 9, 15 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3086
SELECT ALL - COALESCE ( + 93, - - CAST( + + 78 AS SIGNED ), CASE 42 WHEN - 51 THEN + 96 WHEN + COUNT( + 90 ) THEN NULL END * - 75 + 72 ) * + 3 col0
----
-279

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL - COALESCE ( + 93, - - CAST ( + + 78 AS INTEGER ), CASE 42 WHEN - 51 THEN + 96 WHEN + COUNT ( + 90 ) THEN NULL END * - 75 + 72 ) * + 3 col0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT - CASE - 91 WHEN - + 45 THEN - + 75 WHEN 93 THEN NULL ELSE - SUM( + 4 ) + - 95 END AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT - CASE - 91 WHEN - + 45 THEN - + 75 WHEN 93 THEN NULL ELSE - SUM ( + 4 ) + - 95 END AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3088
SELECT - COUNT( * ) + - 38 * + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3088
SELECT - COUNT ( * ) + - 38 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
37

query I rowsort
SELECT ALL 79 * - 4 + + 20
----
-296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3090
SELECT 89 * + CASE ( - CAST( - 46 AS SIGNED ) ) WHEN 62 + + MIN( 66 + - 34 ) THEN 9 ELSE NULL END * COUNT( * ) + + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT 89 * + CASE ( - CAST ( - 46 AS INTEGER ) ) WHEN 62 + + MIN ( 66 + - 34 ) THEN 9 ELSE NULL END * COUNT ( * ) + + 31 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT - 45 DIV - + 26 + 64 + - - 38 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-3091
SELECT - 45 / - + 26 + 64 + - - 38 AS col2
----
103

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3092
SELECT - CASE - - COUNT( * ) WHEN - 43 - 32 THEN NULL WHEN + 76 THEN NULL WHEN 49 THEN 57 * + CAST( NULL AS DECIMAL ) END * - AVG ( DISTINCT - 2 + NULLIF ( 90, 12 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3092
SELECT - CASE - - COUNT ( * ) WHEN - 43 - 32 THEN NULL WHEN + 76 THEN NULL WHEN 49 THEN 57 * + CAST ( NULL AS REAL ) END * - AVG ( DISTINCT - 2 + NULLIF ( 90, 12 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 29 * - 14 + - ( - + 13 )
----
-393

query I rowsort
SELECT ALL - 51 col0
----
-51

query I rowsort
SELECT ( ( 79 ) ) * + 30 AS col2
----
2370

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT MAX( - + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-3096
SELECT MAX ( - + 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL - MIN( ALL - 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL - MIN ( ALL - 62 ) AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT DISTINCT CAST( - 13 AS SIGNED ) * 25 + - CASE + + 37 WHEN - COALESCE ( 63, + 55 / NULLIF ( + AVG ( + CASE - 27 WHEN 33 THEN 82 / 32 + 78 WHEN + 43 / 96 THEN NULL ELSE - 0 END ), 39 ) ) THEN + 51 + - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT CAST ( - 13 AS INTEGER ) * 25 + - CASE + + 37 WHEN - COALESCE ( 63, + 55 / NULLIF ( + AVG ( + CASE - 27 WHEN 33 THEN 82 / 32 + 78 WHEN + 43 / 96 THEN NULL ELSE - 0 END ), 39 ) ) THEN + 51 + - 24 END
----
NULL

query I rowsort
SELECT DISTINCT - 53 col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT ALL COUNT( * ) + + 61 * - 54 AS col2
----
-3293

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL COUNT ( * ) + + 61 * - 54 AS col2
----
-3293

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT COUNT( + - NULLIF ( 33, - 41 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3101
SELECT COUNT ( + - NULLIF ( 33, - 41 ) ) AS col2
----
1

query I rowsort
SELECT ALL ( - 96 ) * + + 28 * 27 - - 88
----
-72488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT NULLIF ( + 78, + - 36 * 36 + - CAST( + 8 AS SIGNED ) ) * - 92 AS col0
----
-7176

skipif mysql # not compatible
query I rowsort label-3103
SELECT NULLIF ( + 78, + - 36 * 36 + - CAST ( + 8 AS INTEGER ) ) * - 92 AS col0
----
-7176

query I rowsort
SELECT ALL COALESCE ( - - 35, ( 77 ) ) - + + 93 * 99 AS col2
----
-9172

query I rowsort
SELECT ALL 67 * 93
----
6231

query I rowsort
SELECT + 90 * - + 32 * 77 AS col0
----
-221760

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT + MAX( + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-3107
SELECT + MAX ( + 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT - COUNT( + 15 ) + + 15 + - + COALESCE ( + 97, COUNT( * ) + - 51, ( 80 ) ) + 89 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3108
SELECT - COUNT ( + 15 ) + + 15 + - + COALESCE ( + 97, COUNT ( * ) + - 51, ( 80 ) ) + 89 AS col0
----
6

query I rowsort
SELECT - NULLIF ( - - 63, + 98 )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3110
SELECT ALL - 85 DIV - - 36
----
-2

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL - 85 / - - 36
----
-2

query I rowsort
SELECT DISTINCT - ( 8 ) AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3112
SELECT - CAST( NULL AS SIGNED ), 74 + - CASE + + CASE - - 80 WHEN - 5 * 43 - + 31 * 42 THEN + ( + 0 ) WHEN - ( 70 ) THEN NULL ELSE + 20 - 95 END WHEN + 40 THEN NULL WHEN + 61 THEN - COUNT( * ) END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3112
SELECT - CAST ( NULL AS INTEGER ), 74 + - CASE + + CASE - - 80 WHEN - 5 * 43 - + 31 * 42 THEN + ( + 0 ) WHEN - ( 70 ) THEN NULL ELSE + 20 - 95 END WHEN + 40 THEN NULL WHEN + 61 THEN - COUNT ( * ) END AS col1
----
NULL
NULL

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

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

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

query I rowsort
SELECT + 70 * + - 79
----
-5530

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

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

query I rowsort
SELECT - NULLIF ( - ( 48 ), - - 38 * + 68 - + 58 ) * COALESCE ( 9, + 34 + 61 )
----
432

query I rowsort
SELECT DISTINCT + + 44 * - + 28 AS col2
----
-1232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3119
SELECT DISTINCT - + 81 + - ( CASE - 12 WHEN - - ( 5 ) / CAST( NULL AS SIGNED ) - + 52 THEN - 66 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT - + 81 + - ( CASE - 12 WHEN - - ( 5 ) / CAST ( NULL AS INTEGER ) - + 52 THEN - 66 END ) AS col0
----
NULL

query I rowsort
SELECT ALL + 44 + 21 AS col2
----
65

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( + - ( - 59 ), - + COALESCE ( 78, + 27 ) )
----
59

query I rowsort
SELECT ALL - + 1 + 97 AS col0
----
96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT - - NULLIF ( + CAST( NULL AS SIGNED ), - - 61 - + - NULLIF ( 24, 85 * 13 ) ) + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT - - NULLIF ( + CAST ( NULL AS INTEGER ), - - 61 - + - NULLIF ( 24, 85 * 13 ) ) + 68
----
NULL

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

query I rowsort
SELECT - - 35 AS col0
----
35

query I rowsort
SELECT - - 94 AS col1
----
94

query I rowsort
SELECT ( 96 )
----
96

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT ALL - 60 DIV 19 * + - 18 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - 60 / 19 * + - 18 AS col0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3134
SELECT DISTINCT - 23 * + 17 * CAST( NULL AS SIGNED ) + - 78 * + + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT - 23 * + 17 * CAST ( NULL AS INTEGER ) + - 78 * + + 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT - 40 * ( - - ( + + NULLIF ( - + 15, 43 ) ) ) * + NULLIF ( 36, - 49 ) + + COUNT( * ) col1
----
21601

skipif mysql # not compatible
query I rowsort label-3135
SELECT - 40 * ( - - ( + + NULLIF ( - + 15, 43 ) ) ) * + NULLIF ( 36, - 49 ) + + COUNT ( * ) col1
----
21601

query II rowsort
SELECT ALL + 86, + 72 + + - 18 AS col2
----
86
54

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

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

query I rowsort
SELECT + 9 * + 25 * + 99
----
22275

query I rowsort
SELECT ( 45 )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3140
SELECT + 26 DIV - - 25 * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3140
SELECT + 26 / - - 25 * - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3141
SELECT DISTINCT + MAX( 46 ), + 42 AS col0
----
46
42

skipif mysql # not compatible
query II rowsort label-3141
SELECT DISTINCT + MAX ( 46 ), + 42 AS col0
----
46
42

query I rowsort
SELECT CASE - 63 WHEN 40 * + 24 THEN NULL WHEN + + 38 * - + 73 - - NULLIF ( - 57 + 6, - 2 ) THEN NULL ELSE + 38 * - 16 + - 36 * - 65 END AS col0
----
1732

query II rowsort
SELECT ALL + 85 AS col0, + 33 * - 95
----
85
-3135

query I rowsort
SELECT - 73 * - - 2
----
-146

query I rowsort
SELECT CASE - 22 WHEN - - 58 * - 45 THEN - 44 - - + 54 WHEN - 43 THEN NULL ELSE + 79 * + 47 - - 67 END AS col1
----
3780

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

onlyif mysql # aggregate syntax: 
query III rowsort label-3147
SELECT ALL + 1 AS col0, ( - + 12 ) - + + 42 AS col2, - + COUNT( * )
----
1
-54
-1

skipif mysql # not compatible
query III rowsort label-3147
SELECT ALL + 1 AS col0, ( - + 12 ) - + + 42 AS col2, - + COUNT ( * )
----
1
-54
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL + CASE - 26 WHEN + 51 THEN 55 / + COUNT( * ) ELSE + 81 END
----
81

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + CASE - 26 WHEN + 51 THEN 55 / + COUNT ( * ) ELSE + 81 END
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT + COALESCE ( + 51, + COUNT( * ), - COUNT( * ) * + 89 ) col1
----
51

skipif mysql # not compatible
query I rowsort label-3149
SELECT + COALESCE ( + 51, + COUNT ( * ), - COUNT ( * ) * + 89 ) col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3150
SELECT + 37 * - 92 DIV + 46 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-3150
SELECT + 37 * - 92 / + 46 AS col2
----
-74

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

query I rowsort
SELECT + - 29 * 39 * + + 50 - 12 AS col2
----
-56562

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT + - 45 * + + 99 * 4 + ( 36 ) * - SUM( 77 )
----
-20592

skipif mysql # not compatible
query I rowsort label-3153
SELECT + - 45 * + + 99 * 4 + ( 36 ) * - SUM ( 77 )
----
-20592

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

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

query II rowsort
SELECT ALL - 81 col0, COALESCE ( 46, - + 46 * - 31, 52 )
----
-81
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT + 58 + + 5 * ( + 37 ) / - 40 * - 61 - CASE COUNT( * ) WHEN ( 17 ) THEN 90 WHEN ( + 66 ) * - 80 THEN + 12 ELSE NULL END * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT + 58 + + 5 * ( + 37 ) / - 40 * - 61 - CASE COUNT ( * ) WHEN ( 17 ) THEN 90 WHEN ( + 66 ) * - 80 THEN + 12 ELSE NULL END * 47
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3158
SELECT + COUNT( DISTINCT + 53 ) DIV 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3158
SELECT + COUNT ( DISTINCT + 53 ) / 27 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT ALL - ( + COUNT( * ) ) * COUNT( * ) * 82 + 87
----
5

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL - ( + COUNT ( * ) ) * COUNT ( * ) * 82 + 87
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT - CASE - - COUNT( * ) WHEN - 28 * + 83 + - COUNT( * ) + - COALESCE ( 17, + 1, 97 + NULLIF ( + 37, + 41 ) ) THEN 4 + - 98 END * - 59 + - ( + ( 18 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT - CASE - - COUNT ( * ) WHEN - 28 * + 83 + - COUNT ( * ) + - COALESCE ( 17, + 1, 97 + NULLIF ( + 37, + 41 ) ) THEN 4 + - 98 END * - 59 + - ( + ( 18 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 63 * - - 26
----
1638

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

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT 55 + - + CAST ( NULL AS INTEGER ) + 89
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT - + 4 + + - SUM( DISTINCT + 87 )
----
-91

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT - + 4 + + - SUM ( DISTINCT + 87 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT + + 19 + - 76 DIV + NULLIF ( + 4, + 16 ) - + 14 col2
----
-14

skipif mysql # not compatible
query I rowsort label-3165
SELECT + + 19 + - 76 / + NULLIF ( + 4, + 16 ) - + 14 col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3166
SELECT DISTINCT + 96 AS col0, - 86 + + COUNT( * ) * 20 DIV + COUNT( * ) AS col0
----
96
-66

skipif mysql # not compatible
query II rowsort label-3166
SELECT DISTINCT + 96 AS col0, - 86 + + COUNT ( * ) * 20 / + COUNT ( * ) AS col0
----
96
-66

query II rowsort
SELECT - 89 AS col1, 19 AS col1
----
-89
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3168
SELECT + 74 DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-3168
SELECT + 74 / - 64
----
-1

query I rowsort
SELECT - 44 + - 89 * - ( + - 31 )
----
-2803

query I rowsort
SELECT + NULLIF ( - + 63, 30 ) AS col1
----
-63

query I rowsort
SELECT DISTINCT + + 61 + - 88 * + 60
----
-5219

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

query I rowsort
SELECT DISTINCT 4 * - 47
----
-188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT DISTINCT CAST( - 62 AS SIGNED ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT CAST ( - 62 AS INTEGER ) AS col1
----
-62

query I rowsort
SELECT ALL + ( 38 ) - - 63 * + 55 * + - 73 + 2 * + - 59 + - 52 col1
----
-253077

query I rowsort
SELECT - 36 * - 36 * + 16 + + 52 + - + 7 * + 15 * + ( 96 )
----
10708

query I rowsort
SELECT + 80 * - 25
----
-2000

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3179
SELECT DISTINCT - MAX( + 92 ) AS col0, - 55 * - + 14 * 67 + - 7 + 55
----
-92
51638

skipif mysql # not compatible
query II rowsort label-3179
SELECT DISTINCT - MAX ( + 92 ) AS col0, - 55 * - + 14 * 67 + - 7 + 55
----
-92
51638

query I rowsort
SELECT 30 * + - 35 AS col0
----
-1050

query II rowsort
SELECT ALL + 93 * + 37 AS col0, - 44 AS col0
----
3441
-44

query I rowsort
SELECT DISTINCT + 84 * + 56 * - 40
----
-188160

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

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - CAST ( 45 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 14 * + 77
----
1078

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3186
SELECT 71 + CASE + 82 WHEN - 87 THEN NULL WHEN - - 3 THEN + 27 * - 95 * - CAST( NULL AS SIGNED ) + - ( COALESCE ( - 35, - 13 / - 13 - - 95, CAST( 35 AS SIGNED ) * 70 ) + COUNT( * ) ) / - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3186
SELECT 71 + CASE + 82 WHEN - 87 THEN NULL WHEN - - 3 THEN + 27 * - 95 * - CAST ( NULL AS INTEGER ) + - ( COALESCE ( - 35, - 13 / - 13 - - 95, CAST ( 35 AS INTEGER ) * 70 ) + COUNT ( * ) ) / - COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT - 21 * + 43
----
-903

onlyif mysql # DIV for integer division: 
query I rowsort label-3188
SELECT - COALESCE ( - 66, + + COALESCE ( - 27, + + 4 ), 0 DIV - 79 * + 62 + - 54 * 27 ) * + 60 AS col1
----
3960

skipif mysql # not compatible
query I rowsort label-3188
SELECT - COALESCE ( - 66, + + COALESCE ( - 27, + + 4 ), 0 / - 79 * + 62 + - 54 * 27 ) * + 60 AS col1
----
3960

query I rowsort
SELECT ALL + ( 48 ) + - 4 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL - 3 + - + COUNT( * ) * + 85
----
-88

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL - 3 + - + COUNT ( * ) * + 85
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT DISTINCT - 95 + - - 79 + - COUNT( - - 86 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT - 95 + - - 79 + - COUNT ( - - 86 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT + COALESCE ( 88, - + NULLIF ( 49, - 14 + + 97 * + - COUNT( * ) ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT + COALESCE ( 88, - + NULLIF ( 49, - 14 + + 97 * + - COUNT ( * ) ) ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT 95 * COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3193
SELECT 95 * COUNT ( * ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3194
SELECT - 15 * - + 52 AS col1, + CASE SUM( 87 ) WHEN 53 THEN - 81 WHEN 79 THEN NULL END AS col0
----
780
NULL

skipif mysql # not compatible
query II rowsort label-3194
SELECT - 15 * - + 52 AS col1, + CASE SUM ( 87 ) WHEN 53 THEN - 81 WHEN 79 THEN NULL END AS col0
----
780
NULL

query I rowsort
SELECT ALL - ( + 43 ) * + + 7 + 63 AS col2
----
-238

query I rowsort
SELECT ALL - 98 col1
----
-98

query I rowsort
SELECT - + 41 col2
----
-41

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3199
SELECT + 42 DIV COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-3199
SELECT + 42 / COUNT ( * ) AS col0
----
42

query I rowsort
SELECT ALL - 1 - + 70 * - + 76
----
5319

query I rowsort
SELECT ALL + + COALESCE ( 87, - + 23 ) * 12 AS col1
----
1044

query I rowsort
SELECT DISTINCT - 57 * - + NULLIF ( + 52, + + 43 )
----
2964

query I rowsort
SELECT DISTINCT + 39 AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3204
SELECT ALL ( - 61 ) DIV 70 + + - CAST( - + 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL ( - 61 ) / 70 + + - CAST ( - + 4 AS INTEGER )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3205
SELECT DISTINCT + MIN( ( - 45 ) ) DIV - 38 + + 19
----
20

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT + MIN ( ( - 45 ) ) / - 38 + + 19
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3206
SELECT COALESCE ( + + CAST( - - 18 AS SIGNED ), - COUNT( * ) ) + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-3206
SELECT COALESCE ( + + CAST ( - - 18 AS INTEGER ), - COUNT ( * ) ) + COUNT ( * )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3207
SELECT 40 DIV - + 71
----
0

skipif mysql # not compatible
query I rowsort label-3207
SELECT 40 / - + 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3208
SELECT ALL ( NULLIF ( + 53, + + COUNT( * ) * + AVG ( DISTINCT + + 80 ) ) ) DIV + - 71 * + NULLIF ( - 78, - 27 )
----
0

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL ( NULLIF ( + 53, + + COUNT ( * ) * + AVG ( DISTINCT + + 80 ) ) ) / + - 71 * + NULLIF ( - 78, - 27 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3209
SELECT ( - CAST( - 88 AS SIGNED ) ) * + 40 * - - 43 * - - MAX( ALL CAST( - 21 AS DECIMAL ) ) + + CASE 35 + + 69 / 70 WHEN - ( + 44 ) THEN - 50 - ( - CAST( NULL AS DECIMAL ) + + 94 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT ( - CAST ( - 88 AS INTEGER ) ) * + 40 * - - 43 * - - MAX ( ALL CAST ( - 21 AS REAL ) ) + + CASE 35 + + 69 / 70 WHEN - ( + 44 ) THEN - 50 - ( - CAST ( NULL AS REAL ) + + 94 ) END AS col1
----
NULL

query I rowsort
SELECT 47 + - - 78 + 49 * + 35 * + 26
----
44715

query I rowsort
SELECT 56 + 38 + - ( + 26 ) * + 97
----
-2428

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL - 7 * - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL - 7 * - COUNT ( * )
----
7

query I rowsort
SELECT DISTINCT - ( + 20 ) AS col1
----
-20

query I rowsort
SELECT ALL - 98 * + 13
----
-1274

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT DISTINCT + 80 + - 47 * - COALESCE ( - COUNT( * ), - 47 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT + 80 + - 47 * - COALESCE ( - COUNT ( * ), - 47 ) AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3218
SELECT NULLIF ( + - CASE + + 25 WHEN - ( + COALESCE ( + ( - + CASE - 40 WHEN - COUNT( * ) + + 67 THEN NULL WHEN + MIN( DISTINCT - 82 ) + + 52 * - 87 THEN 2 / 13 ELSE + 75 * 35 END ), 60 * + NULLIF ( + 94 * + 91, + NULLIF ( 1, 8 * - 80 + 79 ) * - 48 ), 20 ) ) / + 29 THEN COUNT( * ) + CAST( NULL AS SIGNED ) ELSE ( - CASE - 13 WHEN + 59 * 19 THEN 18 ELSE NULL END ) / + 95 END, COALESCE ( 60, - COUNT( * ) ) ) * 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT NULLIF ( + - CASE + + 25 WHEN - ( + COALESCE ( + ( - + CASE - 40 WHEN - COUNT ( * ) + + 67 THEN NULL WHEN + MIN ( DISTINCT - 82 ) + + 52 * - 87 THEN 2 / 13 ELSE + 75 * 35 END ), 60 * + NULLIF ( + 94 * + 91, + NULLIF ( 1, 8 * - 80 + 79 ) * - 48 ), 20 ) ) / + 29 THEN COUNT ( * ) + CAST ( NULL AS INTEGER ) ELSE ( - CASE - 13 WHEN + 59 * 19 THEN 18 ELSE NULL END ) / + 95 END, COALESCE ( 60, - COUNT ( * ) ) ) * 23 AS col0
----
NULL

query II rowsort
SELECT 24, 31 AS col2
----
24
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT 55 DIV - 3 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3220
SELECT 55 / - 3 AS col2
----
-18

query I rowsort
SELECT 90 * + 92
----
8280

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3222
SELECT + - 92 * + CASE - + 26 WHEN - COALESCE ( - 96, - 25 ) - - + 76 * + + NULLIF ( + 57, + CASE COUNT( * ) WHEN 14 THEN - 63 END / NULLIF ( + 74, 67 ) ) THEN NULL WHEN + 90 THEN NULL WHEN 35 * 34 THEN 99 WHEN + NULLIF ( - 96, CAST( 78 AS DECIMAL ) * 41 ) THEN NULL ELSE NULL END * + 45 - ( 82 - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT + - 92 * + CASE - + 26 WHEN - COALESCE ( - 96, - 25 ) - - + 76 * + + NULLIF ( + 57, + CASE COUNT ( * ) WHEN 14 THEN - 63 END / NULLIF ( + 74, 67 ) ) THEN NULL WHEN + 90 THEN NULL WHEN 35 * 34 THEN 99 WHEN + NULLIF ( - 96, CAST ( 78 AS REAL ) * 41 ) THEN NULL ELSE NULL END * + 45 - ( 82 - 60 )
----
NULL

query I rowsort
SELECT - ( - - 88 )
----
-88

query I rowsort
SELECT ALL + 37 + - 45 AS col0
----
-8

query II rowsort
SELECT DISTINCT - - 89, + 71 * + + 20 AS col1
----
89
1420

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT 85 * + COUNT( DISTINCT + + 38 ) * 68 AS col1
----
5780

skipif mysql # not compatible
query I rowsort label-3226
SELECT 85 * + COUNT ( DISTINCT + + 38 ) * 68 AS col1
----
5780

query I rowsort
SELECT ALL + - 95 + - 65 AS col2
----
-160

query II rowsort
SELECT + 95, + 59 * 4 + - + 73 AS col1
----
95
163

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT ALL - 66 + - COALESCE ( + 56, + + 70 + ( - COUNT( * ) ) - - 73 ) * - - 33
----
-1914

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - 66 + - COALESCE ( + 56, + + 70 + ( - COUNT ( * ) ) - - 73 ) * - - 33
----
-1914

onlyif mysql # aggregate syntax: 
query II rowsort label-3230
SELECT - 28 col2, - COUNT( * ) AS col1
----
-28
-1

skipif mysql # not compatible
query II rowsort label-3230
SELECT - 28 col2, - COUNT ( * ) AS col1
----
-28
-1

query II rowsort
SELECT + + 77 AS col1, + 15
----
77
15

query I rowsort
SELECT ALL - NULLIF ( 84, 27 * + 42 + - 86 ) * 42 * + 17
----
-59976

query I rowsort
SELECT 10 + 26 AS col1
----
36

query I rowsort
SELECT 54 - 97 + - + 38 AS col2
----
-81

query I rowsort
SELECT + 36 * 75 + 26 AS col0
----
2726

onlyif mysql # DIV for integer division: 
query I rowsort label-3236
SELECT - 65 DIV + 63 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3236
SELECT - 65 / + 63 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3237
SELECT ALL + 61 * COALESCE ( 64, + 7 * - + 99 DIV - - CAST( - 2 AS SIGNED ), - 38 + 91 ) AS col1
----
3904

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL + 61 * COALESCE ( 64, + 7 * - + 99 / - - CAST ( - 2 AS INTEGER ), - 38 + 91 ) AS col1
----
3904

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT - COUNT( * ) * - 33 + - COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3238
SELECT - COUNT ( * ) * - 33 + - COUNT ( * ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT DISTINCT + ( - COALESCE ( - COUNT( ALL - ( 44 ) ), - COUNT( * ), 32 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT + ( - COALESCE ( - COUNT ( ALL - ( 44 ) ), - COUNT ( * ), 32 ) )
----
1

query I rowsort
SELECT ALL - 70 - - 45
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT COUNT( * ) * - ( 92 ) + - 84
----
-176

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT COUNT ( * ) * - ( 92 ) + - 84
----
-176

query I rowsort
SELECT - 6 + - 98 AS col1
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT ALL + 89 - - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL + 89 - - COUNT ( * )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3244
SELECT NULLIF ( - 65, - - CASE - - COUNT( * ) WHEN + - COUNT( * ) + + - CAST( - ( - 31 ) AS SIGNED ) THEN - 84 END / COUNT( * ) + 5 ) * + 11 AS col0
----
-715

skipif mysql # not compatible
query I rowsort label-3244
SELECT NULLIF ( - 65, - - CASE - - COUNT ( * ) WHEN + - COUNT ( * ) + + - CAST ( - ( - 31 ) AS INTEGER ) THEN - 84 END / COUNT ( * ) + 5 ) * + 11 AS col0
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT + MAX( DISTINCT + 79 ) + + 29
----
108

skipif mysql # not compatible
query I rowsort label-3245
SELECT + MAX ( DISTINCT + 79 ) + + 29
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT - 74 * - SUM( - 3 )
----
-222

skipif mysql # not compatible
query I rowsort label-3246
SELECT - 74 * - SUM ( - 3 )
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT + CASE + + MAX( ALL 70 ) WHEN - 2 THEN NULL ELSE - 83 * + COUNT( * ) - + + 36 * - 74 END * - + 70 + - 99
----
-180769

skipif mysql # not compatible
query I rowsort label-3247
SELECT + CASE + + MAX ( ALL 70 ) WHEN - 2 THEN NULL ELSE - 83 * + COUNT ( * ) - + + 36 * - 74 END * - + 70 + - 99
----
-180769

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT DISTINCT + 11 * + + 42 * - COUNT( * ) AS col1
----
-462

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT + 11 * + + 42 * - COUNT ( * ) AS col1
----
-462

onlyif mysql # aggregate syntax: 
query II rowsort label-3249
SELECT + NULLIF ( 86, + 69 ) * - 7 * - + COUNT( * ), + 82 AS col2
----
602
82

skipif mysql # not compatible
query II rowsort label-3249
SELECT + NULLIF ( 86, + 69 ) * - 7 * - + COUNT ( * ), + 82 AS col2
----
602
82

onlyif mysql # aggregate syntax: 
query II rowsort label-3250
SELECT DISTINCT 73 + + - COUNT( * ) AS col1, 10 AS col0
----
72
10

skipif mysql # not compatible
query II rowsort label-3250
SELECT DISTINCT 73 + + - COUNT ( * ) AS col1, 10 AS col0
----
72
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3251
SELECT ALL 32 + + - 5 DIV + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL 32 + + - 5 / + COUNT ( * ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT CASE 85 WHEN ( - 19 ) + - + 48 + + 33 + + 48 THEN + + 38 WHEN + COUNT( - 13 ) - 38 THEN NULL ELSE + 25 END AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3252
SELECT CASE 85 WHEN ( - 19 ) + - + 48 + + 33 + + 48 THEN + + 38 WHEN + COUNT ( - 13 ) - 38 THEN NULL ELSE + 25 END AS col1
----
25

query I rowsort
SELECT CASE 56 WHEN - 25 THEN NULL ELSE + - 92 - - - 29 END AS col0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3254
SELECT ALL 26 * - + 89 * + 37 + 67 - - COALESCE ( 52, - CAST( NULL AS SIGNED ) ) + + MIN( ALL + 30 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL 26 * - + 89 * + 37 + 67 - - COALESCE ( 52, - CAST ( NULL AS INTEGER ) ) + + MIN ( ALL + 30 ) * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 78 + - 26 * + 53
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT 88 * 45 + 74 * ( COUNT( + + 87 ) ) AS col1
----
4034

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT 88 * 45 + 74 * ( COUNT ( + + 87 ) ) AS col1
----
4034

query I rowsort
SELECT + 38 * + - 99 AS col1
----
-3762

query I rowsort
SELECT 81 * - 20 * + 59 + - 15 - - 50 * + + ( - - 98 ) + - 78 + 64
----
-90709

query I rowsort
SELECT ALL 21 * 57
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT - + ( - 84 ) + 83 + - 23 + COUNT( * ) * + COUNT( * ) + 73 - 18 AS col2
----
200

skipif mysql # not compatible
query I rowsort label-3260
SELECT - + ( - 84 ) + 83 + - 23 + COUNT ( * ) * + COUNT ( * ) + 73 - 18 AS col2
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3261
SELECT ALL - COALESCE ( - - 53, + CAST( NULL AS SIGNED ), - 14 + 27 DIV - + 59, - COUNT( * ) + - COUNT( * ) ) * 48 + + 28 AS col2
----
-2516

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL - COALESCE ( - - 53, + CAST ( NULL AS INTEGER ), - 14 + 27 / - + 59, - COUNT ( * ) + - COUNT ( * ) ) * 48 + + 28 AS col2
----
-2516

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT - + 89 * - + ( + + ( - COUNT( * ) ) ) * COUNT( * ) + 28 - - 63 + - 98
----
-96

skipif mysql # not compatible
query I rowsort label-3262
SELECT - + 89 * - + ( + + ( - COUNT ( * ) ) ) * COUNT ( * ) + 28 - - 63 + - 98
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3263
SELECT DISTINCT ( NULLIF ( 88, 99 ) ) * CAST( NULL AS SIGNED ) AS col1, NULLIF ( - COUNT( * ), - ( + 14 ) )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3263
SELECT DISTINCT ( NULLIF ( 88, 99 ) ) * CAST ( NULL AS INTEGER ) AS col1, NULLIF ( - COUNT ( * ), - ( + 14 ) )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT + + COUNT( ALL 58 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3264
SELECT + + COUNT ( ALL 58 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3265
SELECT DISTINCT + + COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT + + COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT + 36 * 48
----
1728

query I rowsort
SELECT ALL + - 80 col1
----
-80

query I rowsort
SELECT DISTINCT + + 28
----
28

query II rowsort
SELECT ALL - 68 * + - 38, + 90 AS col2
----
2584
90

query I rowsort
SELECT DISTINCT - - 42 * - 96 * + 17 * 17 + ( - + 53 ) AS col1
----
-1165301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3271
SELECT ALL COALESCE ( - - 9, + 86 * COUNT( * ) + 39 + 84 * + + 28 * - CAST( NULL AS SIGNED ) DIV 56 + - 86 DIV 66 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL COALESCE ( - - 9, + 86 * COUNT ( * ) + 39 + 84 * + + 28 * - CAST ( NULL AS INTEGER ) / 56 + - 86 / 66 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL - + 75 * - COUNT( ALL 75 ) + - NULLIF ( 84, + 85 )
----
-9

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL - + 75 * - COUNT ( ALL 75 ) + - NULLIF ( 84, + 85 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3273
SELECT ALL - CASE + - 72 WHEN - - 51 THEN NULL WHEN - CAST( 88 AS DECIMAL ) THEN + CASE - SUM( ALL 36 ) WHEN - ( 4 ) + + 94 THEN - CAST( NULL AS SIGNED ) END + 93 * 14 ELSE + 72 * - 5 + 8 * 51 END AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - CASE + - 72 WHEN - - 51 THEN NULL WHEN - CAST ( 88 AS REAL ) THEN + CASE - SUM ( ALL 36 ) WHEN - ( 4 ) + + 94 THEN - CAST ( NULL AS INTEGER ) END + 93 * 14 ELSE + 72 * - 5 + 8 * 51 END AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3274
SELECT - + 44 - COALESCE ( - 75, - + COUNT( * ) / - 57 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT - + 44 - COALESCE ( - 75, - + COUNT ( * ) / - 57 ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3275
SELECT ( - - CASE + CASE + + SUM( + 55 ) WHEN + - 69 THEN + 43 WHEN - 17 + - - 48 + + 60 THEN 39 + + COUNT( * ) ELSE 86 + - ( CAST( NULL AS SIGNED ) ) / + 6 END WHEN - CAST( NULL AS SIGNED ) THEN 49 * - 17 WHEN COUNT( + 48 ) * 4 + ( COUNT( * ) ) THEN NULL WHEN + 33 + - 41 THEN 73 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT ( - - CASE + CASE + + SUM ( + 55 ) WHEN + - 69 THEN + 43 WHEN - 17 + - - 48 + + 60 THEN 39 + + COUNT ( * ) ELSE 86 + - ( CAST ( NULL AS INTEGER ) ) / + 6 END WHEN - CAST ( NULL AS INTEGER ) THEN 49 * - 17 WHEN COUNT ( + 48 ) * 4 + ( COUNT ( * ) ) THEN NULL WHEN + 33 + - 41 THEN 73 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT - MIN( - - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-3276
SELECT - MIN ( - - 24 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT ALL CAST( - 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL CAST ( - 64 AS INTEGER )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3278
SELECT DISTINCT + COALESCE ( + COALESCE ( 40, - 17, + - 94 ), + 97 ) * + CAST( - COUNT( 42 ) AS SIGNED ) * 45 + - ( 60 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT + COALESCE ( + COALESCE ( 40, - 17, + - 94 ), + 97 ) * + CAST ( - COUNT ( 42 ) AS INTEGER ) * 45 + - ( 60 ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3279
SELECT DISTINCT 97 + 30 + 35 - - CAST( NULL AS SIGNED ) + - MAX( + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT 97 + 30 + 35 - - CAST ( NULL AS INTEGER ) + - MAX ( + 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT - MIN( 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-3280
SELECT - MIN ( 9 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT - NULLIF ( ( - 22 ), - 75 + + + 21 ) * - CAST( NULL AS SIGNED ) / 39 - 79 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT - NULLIF ( ( - 22 ), - 75 + + + 21 ) * - CAST ( NULL AS INTEGER ) / 39 - 79 col1
----
NULL

query I rowsort
SELECT DISTINCT 32 + + 3 AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3283
SELECT 54, ( - - CAST( NULL AS SIGNED ) ) AS col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3283
SELECT 54, ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
54
NULL

query I rowsort
SELECT ALL - 35 + + - 66
----
-101

onlyif mysql # DIV for integer division: 
query II rowsort label-3285
SELECT DISTINCT + 80 + - 28 + - 36 AS col2, + 1 DIV + 43 AS col2
----
16
0

skipif mysql # not compatible
query II rowsort label-3285
SELECT DISTINCT + 80 + - 28 + - 36 AS col2, + 1 / + 43 AS col2
----
16
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3286
SELECT - 67 + + - COALESCE ( - COUNT( * ), + - 30 ) * - + CAST( + 81 AS SIGNED ) AS col0
----
-148

skipif mysql # not compatible
query I rowsort label-3286
SELECT - 67 + + - COALESCE ( - COUNT ( * ), + - 30 ) * - + CAST ( + 81 AS INTEGER ) AS col0
----
-148

onlyif mysql # aggregate syntax: 
query II rowsort label-3287
SELECT 62, CASE 79 WHEN 98 THEN NULL WHEN - 90 THEN - COUNT( * ) ELSE NULL END col1
----
62
NULL

skipif mysql # not compatible
query II rowsort label-3287
SELECT 62, CASE 79 WHEN 98 THEN NULL WHEN - 90 THEN - COUNT ( * ) ELSE NULL END col1
----
62
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3288
SELECT + 90 + - - 20 * - CAST( NULL AS SIGNED ) * + - COALESCE ( - + 28, - COALESCE ( 44, 20 ) + + - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT + 90 + - - 20 * - CAST ( NULL AS INTEGER ) * + - COALESCE ( - + 28, - COALESCE ( 44, 20 ) + + - 60 )
----
NULL

query I rowsort
SELECT DISTINCT 96 + - 9 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT - MIN( DISTINCT - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-3290
SELECT - MIN ( DISTINCT - 29 )
----
29

query I rowsort
SELECT DISTINCT + 32 col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3292
SELECT DISTINCT 16 DIV + MIN( ALL - 63 ) + - - 91 * + NULLIF ( + 44, + 28 ) * - COALESCE ( - 72, 23 ) AS col0
----
288288

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT 16 / + MIN ( ALL - 63 ) + - - 91 * + NULLIF ( + 44, + 28 ) * - COALESCE ( - 72, 23 ) AS col0
----
288288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3293
SELECT CAST( - MIN( + - 77 ) AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-3293
SELECT CAST ( - MIN ( + - 77 ) AS INTEGER )
----
77

query I rowsort
SELECT DISTINCT + - 10 AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT ALL - - 97 DIV - 13 - - 68
----
61

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL - - 97 / - 13 - - 68
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3296
SELECT + - CASE + COUNT( * ) WHEN + + 85 * - - 41 + + 15 + - - 83 THEN 45 WHEN + - 9 + - 60 + 18 + - 68 THEN + 53 END * CASE + 56 WHEN + ( 92 ) THEN - 5 - + 39 WHEN 5 / 24 - 63 * - 24 THEN NULL ELSE - COALESCE ( CAST( NULL AS SIGNED ), MAX( 94 ) * + 80 + + SUM( ALL + 35 + - 27 ) * - COALESCE ( - CAST( - 32 AS DECIMAL ), 89 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3296
SELECT + - CASE + COUNT ( * ) WHEN + + 85 * - - 41 + + 15 + - - 83 THEN 45 WHEN + - 9 + - 60 + 18 + - 68 THEN + 53 END * CASE + 56 WHEN + ( 92 ) THEN - 5 - + 39 WHEN 5 / 24 - 63 * - 24 THEN NULL ELSE - COALESCE ( CAST ( NULL AS INTEGER ), MAX ( 94 ) * + 80 + + SUM ( ALL + 35 + - 27 ) * - COALESCE ( - CAST ( - 32 AS REAL ), 89 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3297
SELECT COUNT( * ), - 24 - - + 22 + - ( 93 ) col2
----
1
-95

skipif mysql # not compatible
query II rowsort label-3297
SELECT COUNT ( * ), - 24 - - + 22 + - ( 93 ) col2
----
1
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3298
SELECT ALL + + 78 DIV 81 - - + CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL + + 78 / 81 - - + CAST ( - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT + 38 * - 52
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT + + COUNT( * ) - + 51 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-3300
SELECT + + COUNT ( * ) - + 51 AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT ALL 36 * + + 26 + + 99 - 88 - 62 DIV - COUNT( - 90 ) AS col0
----
1009

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL 36 * + + 26 + + 99 - 88 - 62 / - COUNT ( - 90 ) AS col0
----
1009

query I rowsort
SELECT ALL - ( - 6 ) * - + 52 + + - 11
----
-323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3303
SELECT + 70 * + COUNT( * ) * 8 AS col2, CAST( NULL AS SIGNED ) AS col1
----
560
NULL

skipif mysql # not compatible
query II rowsort label-3303
SELECT + 70 * + COUNT ( * ) * 8 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
560
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT NULLIF ( - - 62, - 16 ) * + MIN( DISTINCT + 35 ) AS col0
----
2170

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT NULLIF ( - - 62, - 16 ) * + MIN ( DISTINCT + 35 ) AS col0
----
2170

query I rowsort
SELECT + - 17 * - 77 + - 71 * + 90 col0
----
-5081

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT - - 84 * - - SUM( + 2 ) AS col0
----
168

skipif mysql # not compatible
query I rowsort label-3306
SELECT - - 84 * - - SUM ( + 2 ) AS col0
----
168

query I rowsort
SELECT ALL 58 * + ( - 3 ) + 45
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3308
SELECT + COUNT( * ) + NULLIF ( NULLIF ( + + 65, - CASE + - 79 WHEN 30 + - + MIN( 50 ) + + 14 THEN NULL WHEN + 39 THEN - CAST( NULL AS SIGNED ) + 76 ELSE - COUNT( * ) END ), 17 ) - + MIN( - 62 ) * + 96 * 72 AS col2
----
428610

skipif mysql # not compatible
query I rowsort label-3308
SELECT + COUNT ( * ) + NULLIF ( NULLIF ( + + 65, - CASE + - 79 WHEN 30 + - + MIN ( 50 ) + + 14 THEN NULL WHEN + 39 THEN - CAST ( NULL AS INTEGER ) + 76 ELSE - COUNT ( * ) END ), 17 ) - + MIN ( - 62 ) * + 96 * 72 AS col2
----
428610

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT MIN( ALL 57 ) * + + 23 * + 89 * + - ( 77 ) * - + 61 - + 38 - - 90
----
548041315

skipif mysql # not compatible
query I rowsort label-3309
SELECT MIN ( ALL 57 ) * + + 23 * + 89 * + - ( 77 ) * - + 61 - + 38 - - 90
----
548041315

query I rowsort
SELECT + 36 * - + 12 AS col2
----
-432

onlyif mysql # aggregate syntax: 
query II rowsort label-3311
SELECT 42 + - - 50 * + COUNT( * ) * - - 83 * + 54 AS col0, 4 AS col0
----
224142
4

skipif mysql # not compatible
query II rowsort label-3311
SELECT 42 + - - 50 * + COUNT ( * ) * - - 83 * + 54 AS col0, 4 AS col0
----
224142
4

query I rowsort
SELECT ALL - 29 col2
----
-29

query I rowsort
SELECT 47 * + 49 + + + 65 - - 23 + 13 + - 44 * - + 23 AS col0
----
3416

query I rowsort
SELECT 59 * 38
----
2242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT ALL + 11 + CAST( + 31 AS SIGNED ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL + 11 + CAST ( + 31 AS INTEGER ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT 40 + - - COUNT( * ) + 49 * - - ( 38 ) * + + COUNT( * ) * COUNT( * ) AS col1
----
1903

skipif mysql # not compatible
query I rowsort label-3316
SELECT 40 + - - COUNT ( * ) + 49 * - - ( 38 ) * + + COUNT ( * ) * COUNT ( * ) AS col1
----
1903

query I rowsort
SELECT 49 + + 9
----
58

query I rowsort
SELECT ALL - 39 * + 69
----
-2691

query I rowsort
SELECT ALL - 66 + + 99 AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3320
SELECT - 89, + COUNT( DISTINCT - - 36 ) * - + ( 71 ) * - - COALESCE ( - 3, - - 14, + 73 DIV + 39 ) * - 19 * COALESCE ( NULLIF ( 87, - 66 ), 4 * COUNT( * ) ) - COUNT( * ) DIV 91 AS col0
----
-89
-352089

skipif mysql # not compatible
query II rowsort label-3320
SELECT - 89, + COUNT ( DISTINCT - - 36 ) * - + ( 71 ) * - - COALESCE ( - 3, - - 14, + 73 / + 39 ) * - 19 * COALESCE ( NULLIF ( 87, - 66 ), 4 * COUNT ( * ) ) - COUNT ( * ) / 91 AS col0
----
-89
-352089

onlyif mysql # aggregate syntax: 
query II rowsort label-3321
SELECT - 90 AS col0, 2 * - ( - + 45 ) * - - COUNT( * )
----
-90
90

skipif mysql # not compatible
query II rowsort label-3321
SELECT - 90 AS col0, 2 * - ( - + 45 ) * - - COUNT ( * )
----
-90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT COUNT( * ) * - - COUNT( * ) * 15
----
15

skipif mysql # not compatible
query I rowsort label-3322
SELECT COUNT ( * ) * - - COUNT ( * ) * 15
----
15

query I rowsort
SELECT 75 + + 87 * + 51
----
4512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3324
SELECT 81 DIV + + SUM( 55 )
----
1

skipif mysql # not compatible
query I rowsort label-3324
SELECT 81 / + + SUM ( 55 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT MIN( + 63 ) + - 46
----
17

skipif mysql # not compatible
query I rowsort label-3325
SELECT MIN ( + 63 ) + - 46
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3326
SELECT ALL 0, + MAX( + 59 ) AS col0
----
0
59

skipif mysql # not compatible
query II rowsort label-3326
SELECT ALL 0, + MAX ( + 59 ) AS col0
----
0
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3327
SELECT 10, - 84 + 17 - + 79 + - - 24 DIV COALESCE ( COUNT( - CAST( - + 57 AS SIGNED ) ), + - 96 - - 24 - - 64, - 71 * + 80 - 30 * NULLIF ( ( 2 ) * + 16, + 39 ) ) AS col0
----
10
-122

skipif mysql # not compatible
query II rowsort label-3327
SELECT 10, - 84 + 17 - + 79 + - - 24 / COALESCE ( COUNT ( - CAST ( - + 57 AS INTEGER ) ), + - 96 - - 24 - - 64, - 71 * + 80 - 30 * NULLIF ( ( 2 ) * + 16, + 39 ) ) AS col0
----
10
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3328
SELECT 45, - COALESCE ( + 4, + 54 * + 14 DIV - - 99, + NULLIF ( 16, 15 + - 57 * + - 87 DIV - NULLIF ( SUM( DISTINCT + 81 ) * - CASE - 13 * 97 WHEN - COUNT( * ) + 8 THEN + COUNT( 99 ) * ( MIN( DISTINCT 54 ) ) END, 51 ) ) ) AS col0
----
45
-4

skipif mysql # not compatible
query II rowsort label-3328
SELECT 45, - COALESCE ( + 4, + 54 * + 14 / - - 99, + NULLIF ( 16, 15 + - 57 * + - 87 / - NULLIF ( SUM ( DISTINCT + 81 ) * - CASE - 13 * 97 WHEN - COUNT ( * ) + 8 THEN + COUNT ( 99 ) * ( MIN ( DISTINCT 54 ) ) END, 51 ) ) ) AS col0
----
45
-4

query I rowsort
SELECT 94 + 74
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-3330
SELECT ALL + 4 DIV + + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL + 4 / + + 17 AS col1
----
0

query I rowsort
SELECT 71 + 18 * - 71
----
-1207

query I rowsort
SELECT DISTINCT + 31 - + - 26 AS col0
----
57

query I rowsort
SELECT 81 + - 76 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT DISTINCT 42 - - 10 + + COUNT( - + 73 ) + 89
----
142

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT 42 - - 10 + + COUNT ( - + 73 ) + 89
----
142

query II rowsort
SELECT ALL 66 AS col2, 97 AS col0
----
66
97

query I rowsort
SELECT 61 + + 21
----
82

query I rowsort
SELECT 39 * + 57 AS col0
----
2223

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT 73 * - COUNT( * ) - ( + 10 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3338
SELECT 73 * - COUNT ( * ) - ( + 10 ) AS col0
----
-83

query I rowsort
SELECT + 9 * + 1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT + ( + NULLIF ( + 58, ( - + 78 ) + + 16 - 81 ) ) + + 65 + - NULLIF ( 45, - - 65 / COUNT( * ) - MIN( - NULLIF ( 50, + 7 - 81 * 91 ) ) ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT + ( + NULLIF ( + 58, ( - + 78 ) + + 16 - 81 ) ) + + 65 + - NULLIF ( 45, - - 65 / COUNT ( * ) - MIN ( - NULLIF ( 50, + 7 - 81 * 91 ) ) ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3341
SELECT - 4 * + COUNT( * ) + 22 + 69 AS col2, - ( + CASE + 85 WHEN - 77 / - CAST( + CASE - + 51 WHEN 79 THEN + 95 + 13 * ( 60 * 77 ) END AS SIGNED ) + + 82 - COUNT( * ) * COUNT( * ) THEN NULL WHEN SUM( ALL 99 ) THEN COUNT( * ) ELSE COUNT( * ) * - ( COUNT( * ) ) END ) * 46 - 83
----
87
-37

skipif mysql # not compatible
query II rowsort label-3341
SELECT - 4 * + COUNT ( * ) + 22 + 69 AS col2, - ( + CASE + 85 WHEN - 77 / - CAST ( + CASE - + 51 WHEN 79 THEN + 95 + 13 * ( 60 * 77 ) END AS INTEGER ) + + 82 - COUNT ( * ) * COUNT ( * ) THEN NULL WHEN SUM ( ALL 99 ) THEN COUNT ( * ) ELSE COUNT ( * ) * - ( COUNT ( * ) ) END ) * 46 - 83
----
87
-37

query II rowsort
SELECT ALL - - 1, - 20 AS col1
----
1
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT ALL - 74 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL - 74 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 42, 12 * - 34 AS col2
----
-42
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT NULLIF ( - COUNT( * ), + + NULLIF ( - 37, - 48 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3345
SELECT NULLIF ( - COUNT ( * ), + + NULLIF ( - 37, - 48 ) ) AS col0
----
-1

query I rowsort
SELECT + + ( CASE + 28 WHEN - 46 THEN - 6 WHEN 42 + COALESCE ( 18, - 6 ) THEN - 36 END ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3347
SELECT CASE + COALESCE ( - 63, 95, 73 / ( + 41 ), + CAST( - 32 AS DECIMAL ) - + 63 ) WHEN + CAST( NULL AS SIGNED ) THEN + 8 * - 45 ELSE NULL END / COALESCE ( - 75 - + 27 * 66, - 46 * - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT CASE + COALESCE ( - 63, 95, 73 / ( + 41 ), + CAST ( - 32 AS REAL ) - + 63 ) WHEN + CAST ( NULL AS INTEGER ) THEN + 8 * - 45 ELSE NULL END / COALESCE ( - 75 - + 27 * 66, - 46 * - 25 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3348
SELECT DISTINCT - 89 + + 52 * - AVG ( DISTINCT - + 4 ) * CAST( NULL AS SIGNED ) - 32 / + + 68 * - ( 17 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT - 89 + + 52 * - AVG ( DISTINCT - + 4 ) * CAST ( NULL AS INTEGER ) - 32 / + + 68 * - ( 17 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 80 + - + 75
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3350
SELECT DISTINCT ( 97 ) * + - COALESCE ( - 84, + COUNT( * ) - CAST( NULL AS SIGNED ) ) * 49 + 55 - + 78
----
399229

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT ( 97 ) * + - COALESCE ( - 84, + COUNT ( * ) - CAST ( NULL AS INTEGER ) ) * 49 + 55 - + 78
----
399229

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT ( + 19 ) DIV + ( - - NULLIF ( 96, + 75 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3351
SELECT ( + 19 ) / + ( - - NULLIF ( 96, + 75 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3352
SELECT 59 * - COUNT( * ), 67 AS col1
----
-59
67

skipif mysql # not compatible
query II rowsort label-3352
SELECT 59 * - COUNT ( * ), 67 AS col1
----
-59
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL COUNT( - 9 ) + - COUNT( * ) - COUNT( * ) * + + 65 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL COUNT ( - 9 ) + - COUNT ( * ) - COUNT ( * ) * + + 65 AS col2
----
-65

query I rowsort
SELECT ( - - 93 ) - - - 80 + - NULLIF ( + - 79, - + 87 * + 19 )
----
92

query I rowsort
SELECT 1 col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3356
SELECT COUNT( * ) * + 26 AS col1, + 73
----
26
73

skipif mysql # not compatible
query II rowsort label-3356
SELECT COUNT ( * ) * + 26 AS col1, + 73
----
26
73

query I rowsort
SELECT DISTINCT CASE - 55 WHEN + - ( + 86 ) THEN NULL WHEN + 18 * + 80 THEN - - 88 * - - 86 * - 76 * 50 END - + CASE + 78 WHEN 51 THEN - 69 - 64 * 23 WHEN 60 * + 72 THEN - 30 * 51 + 99 END + 24
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT 71 + COUNT( + NULLIF ( + CAST( NULL AS SIGNED ), - 57 ) )
----
71

skipif mysql # not compatible
query I rowsort label-3358
SELECT 71 + COUNT ( + NULLIF ( + CAST ( NULL AS INTEGER ), - 57 ) )
----
71

query I rowsort
SELECT 84 - + 71 + + + 79
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT + COUNT( 60 ) * - 94 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT + COUNT ( 60 ) * - 94 AS col0
----
-94

query I rowsort
SELECT ALL 72 * + CASE - 28 WHEN 44 + + ( 87 ) THEN NULL WHEN - 37 THEN - 54 ELSE NULL END * 72 AS col1
----
NULL

query I rowsort
SELECT 87 col2
----
87

query I rowsort
SELECT 6 + - - 80
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT + 96 - 69 + COUNT( * ) + - 50
----
-22

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT + 96 - 69 + COUNT ( * ) + - 50
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT - - COUNT( - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-3365
SELECT - - COUNT ( - 40 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT COUNT( * ) - - + 10 * + + COUNT( * ) * + + COUNT( - ( + 68 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3366
SELECT COUNT ( * ) - - + 10 * + + COUNT ( * ) * + + COUNT ( - ( + 68 ) ) AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3367
SELECT CAST( NULL AS DECIMAL ) * - 42 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT CAST ( NULL AS REAL ) * - 42 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 66 * + 89 + 2 + + 83 AS col1
----
5959

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT - - COUNT( * ) + + + 85 + - 15
----
71

skipif mysql # not compatible
query I rowsort label-3369
SELECT - - COUNT ( * ) + + + 85 + - 15
----
71

query I rowsort
SELECT + + CASE + 97 WHEN - + 67 THEN 49 WHEN + - 3 * 57 * 6 * 20 THEN NULL WHEN - - 14 * - 72 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL + ( - + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL + ( - + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT - + 56 * + ( + CAST( + - ( 38 ) AS SIGNED ) ) - + 29 - 5
----
2094

skipif mysql # not compatible
query I rowsort label-3372
SELECT - + 56 * + ( + CAST ( + - ( 38 ) AS INTEGER ) ) - + 29 - 5
----
2094

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT + ( + - COUNT( + 64 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3373
SELECT + ( + - COUNT ( + 64 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3374
SELECT - 46 - - COUNT( * ) DIV 30 * + + SUM( ALL 69 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3374
SELECT - 46 - - COUNT ( * ) / 30 * + + SUM ( ALL 69 ) AS col2
----
-46

query I rowsort
SELECT ALL 55 * - 10 + + - 17
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT + MIN( DISTINCT + 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3376
SELECT + MIN ( DISTINCT + 97 ) AS col2
----
97

query I rowsort
SELECT ALL + 45 * + 18 + 98 AS col2
----
908

query I rowsort
SELECT + CASE WHEN NOT NULL IS NULL THEN 47 ELSE NULL END * 50 - + 8
----
NULL

query I rowsort
SELECT - 68 + - 15 AS col1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT COALESCE ( CASE + 80 WHEN - COUNT( * ) THEN NULL WHEN - 7 * + SUM( DISTINCT + 0 ) - 3 + 75 + - COUNT( + - ( - 94 ) ) * + CAST( - 52 AS SIGNED ) THEN + 99 ELSE NULL END, 3 * + 45, ( + 83 ) + + 68 ) * - 38 - 47
----
-5177

skipif mysql # not compatible
query I rowsort label-3380
SELECT COALESCE ( CASE + 80 WHEN - COUNT ( * ) THEN NULL WHEN - 7 * + SUM ( DISTINCT + 0 ) - 3 + 75 + - COUNT ( + - ( - 94 ) ) * + CAST ( - 52 AS INTEGER ) THEN + 99 ELSE NULL END, 3 * + 45, ( + 83 ) + + 68 ) * - 38 - 47
----
-5177

query I rowsort
SELECT ALL + 10 col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT - COUNT( * ) + - 10 * - 40 * 41 * 3 * + + NULLIF ( - - 91, - 63 ) * - 65 AS col0
----
-291018001

skipif mysql # not compatible
query I rowsort label-3382
SELECT - COUNT ( * ) + - 10 * - 40 * 41 * 3 * + + NULLIF ( - - 91, - 63 ) * - 65 AS col0
----
-291018001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3383
SELECT + CAST( - + 45 AS SIGNED ) - - + COALESCE ( + 46, COUNT( * ) + + NULLIF ( - COUNT( * ), 8 ) ) * - - 84
----
3819

skipif mysql # not compatible
query I rowsort label-3383
SELECT + CAST ( - + 45 AS INTEGER ) - - + COALESCE ( + 46, COUNT ( * ) + + NULLIF ( - COUNT ( * ), 8 ) ) * - - 84
----
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT COUNT( DISTINCT + + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-3384
SELECT COUNT ( DISTINCT + + 32 )
----
1

query I rowsort
SELECT ALL 32 - 51
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT + CAST( NULL AS SIGNED ) + + 64 / - 21 * - 80 / + CAST( NULL AS SIGNED ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT + CAST ( NULL AS INTEGER ) + + 64 / - 21 * - 80 / + CAST ( NULL AS INTEGER ) + - 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3387
SELECT ALL COALESCE ( + COUNT( * ), - 88 ) * + + MIN( - CAST( - 47 AS SIGNED ) ) + + - ( + - 57 ) - 85 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL COALESCE ( + COUNT ( * ), - 88 ) * + + MIN ( - CAST ( - 47 AS INTEGER ) ) + + - ( + - 57 ) - 85 * + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + 31 * - 72 AS col2
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT 37 * SUM( + + 7 ) * 21 AS col1
----
5439

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT 37 * SUM ( + + 7 ) * 21 AS col1
----
5439

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT ALL COUNT( * ) * 98
----
98

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL COUNT ( * ) * 98
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-3391
SELECT 78 AS col2, 79 DIV - 50 AS col0
----
78
-1

skipif mysql # not compatible
query II rowsort label-3391
SELECT 78 AS col2, 79 / - 50 AS col0
----
78
-1

query II rowsort
SELECT ALL 7, 67 AS col0
----
7
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT + 95 + - + 98 * - - 3 + - 99 * COUNT( * ) * + + 24 AS col0
----
-2575

skipif mysql # not compatible
query I rowsort label-3393
SELECT + 95 + - + 98 * - - 3 + - 99 * COUNT ( * ) * + + 24 AS col0
----
-2575

query II rowsort
SELECT + 60 + - 56 * - 19, + 90 AS col1
----
1124
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3395
SELECT - 47 col1, + 99 + + 35 + - 29 * 14 * + 83 - - 74 * - + COALESCE ( - 46, - COUNT( * ) - SUM( ALL - 75 ), - + 21 )
----
-47
-30160

skipif mysql # not compatible
query II rowsort label-3395
SELECT - 47 col1, + 99 + + 35 + - 29 * 14 * + 83 - - 74 * - + COALESCE ( - 46, - COUNT ( * ) - SUM ( ALL - 75 ), - + 21 )
----
-47
-30160

onlyif mysql # aggregate syntax: 
query II rowsort label-3396
SELECT ALL 9 AS col1, MIN( DISTINCT + + 21 ) + + + 49 AS col0
----
9
70

skipif mysql # not compatible
query II rowsort label-3396
SELECT ALL 9 AS col1, MIN ( DISTINCT + + 21 ) + + + 49 AS col0
----
9
70

query I rowsort
SELECT + - 96 + - 54 AS col0
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3398
SELECT DISTINCT + 50 col1, 11 * + CAST( NULL AS SIGNED ) + + + 13 AS col1
----
50
NULL

skipif mysql # not compatible
query II rowsort label-3398
SELECT DISTINCT + 50 col1, 11 * + CAST ( NULL AS INTEGER ) + + + 13 AS col1
----
50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT - - 46 * + - SUM( + + 4 ) AS col1
----
-184

skipif mysql # not compatible
query I rowsort label-3399
SELECT - - 46 * + - SUM ( + + 4 ) AS col1
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT + + COUNT( * ) + MIN( + 36 ) + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-3400
SELECT + + COUNT ( * ) + MIN ( + 36 ) + COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT - + SUM( DISTINCT + 69 ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-3401
SELECT - + SUM ( DISTINCT + 69 ) col0
----
-69

query I rowsort
SELECT - + ( - 73 )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT 60 / CAST( NULL AS SIGNED ) * - 38 + + 63 * 37 + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT 60 / CAST ( NULL AS INTEGER ) * - 38 + + 63 * 37 + 77 AS col1
----
NULL

query I rowsort
SELECT 55 * - 44 * - - 53 + + + 16
----
-128244

query I rowsort
SELECT ALL + 91 * + + 24
----
2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3406
SELECT + 94 DIV + - ( + COUNT( * ) ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-3406
SELECT + 94 / + - ( + COUNT ( * ) ) AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3407
SELECT + + AVG ( 48 ) / - 29 * - 90 * - + 84 * - CAST( NULL AS DECIMAL ) + + COUNT( * ) + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT + + AVG ( 48 ) / - 29 * - 90 * - + 84 * - CAST ( NULL AS REAL ) + + COUNT ( * ) + + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT - 16 + - COUNT( * ) * + 18 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-3408
SELECT - 16 + - COUNT ( * ) * + 18 AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3409
SELECT DISTINCT + ( - 12 ) * COUNT( * ) * + 62 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT + ( - 12 ) * COUNT ( * ) * + 62 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT ALL CASE - 30 WHEN 60 THEN - COUNT( * ) * MAX( + - 13 ) * + + NULLIF ( + - 59, + 16 * 33 ) END * 67 * + CASE WHEN NOT ( - COUNT( DISTINCT + 55 ) ) IS NULL THEN NULLIF ( - AVG ( 62 ), 33 ) * + 6 END * - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL CASE - 30 WHEN 60 THEN - COUNT ( * ) * MAX ( + - 13 ) * + + NULLIF ( + - 59, + 16 * 33 ) END * 67 * + CASE WHEN NOT ( - COUNT ( DISTINCT + 55 ) ) IS NULL THEN NULLIF ( - AVG ( 62 ), 33 ) * + 6 END * - 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3411
SELECT ALL - COUNT( * ) DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL - COUNT ( * ) / + 85 AS col2
----
0

query I rowsort
SELECT ALL + - 74 AS col0
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3413
SELECT - 70 DIV - 14 - - 66 + + COUNT( * ) * + - 42 + - 50 * + 32 * 40 col0
----
-63971

skipif mysql # not compatible
query I rowsort label-3413
SELECT - 70 / - 14 - - 66 + + COUNT ( * ) * + - 42 + - 50 * + 32 * 40 col0
----
-63971

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT + SUM( DISTINCT - - 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3414
SELECT + SUM ( DISTINCT - - 49 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT - 17 * ( - 28 ) + - 57 + - - COUNT( 19 ) - - 20 + - 31
----
409

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT - 17 * ( - 28 ) + - 57 + - - COUNT ( 19 ) - - 20 + - 31
----
409

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT + SUM( DISTINCT - + 77 ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-3416
SELECT + SUM ( DISTINCT - + 77 ) col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT - CASE + COALESCE ( + 4, - 47 ) WHEN + 91 THEN + + 12 WHEN - 9 + 56 THEN - - 26 ELSE + 16 + + ( + 29 ) - + 90 + - + COUNT( * ) * 68 END + 0
----
113

skipif mysql # not compatible
query I rowsort label-3417
SELECT - CASE + COALESCE ( + 4, - 47 ) WHEN + 91 THEN + + 12 WHEN - 9 + 56 THEN - - 26 ELSE + 16 + + ( + 29 ) - + 90 + - + COUNT ( * ) * 68 END + 0
----
113

query I rowsort
SELECT NULLIF ( - ( + 92 ), 66 ) col2
----
-92

query I rowsort
SELECT NULLIF ( - ( - 48 ), 38 / - 4 )
----
48

query I rowsort
SELECT + COALESCE ( 36, - - 14, 99 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3421
SELECT - COALESCE ( - 75, - + 15 DIV - 8, - 70 * 38 - - CAST( NULL AS SIGNED ) ) * - + MIN( - 74 ) col1, 61 + + - ( - - 1 ) + - + 53 * COUNT( * ) - 25 * + 34
----
5550
-843

skipif mysql # not compatible
query II rowsort label-3421
SELECT - COALESCE ( - 75, - + 15 / - 8, - 70 * 38 - - CAST ( NULL AS INTEGER ) ) * - + MIN ( - 74 ) col1, 61 + + - ( - - 1 ) + - + 53 * COUNT ( * ) - 25 * + 34
----
5550
-843

query I rowsort
SELECT ALL + 44 * - - 25
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT - COUNT( * ) + + 79
----
78

skipif mysql # not compatible
query I rowsort label-3423
SELECT - COUNT ( * ) + + 79
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT + COUNT( DISTINCT 54 )
----
1

skipif mysql # not compatible
query I rowsort label-3424
SELECT + COUNT ( DISTINCT 54 )
----
1

query I rowsort
SELECT ALL + 18 * - 59 * + 61
----
-64782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT ALL CAST( 84 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL CAST ( 84 AS INTEGER )
----
84

query I rowsort
SELECT - 72 * + 96 AS col1
----
-6912

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT + 78 + + + COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3428
SELECT + 78 + + + COUNT ( * ) AS col0
----
79

query I rowsort
SELECT ALL 19 * - 36
----
-684

query I rowsort
SELECT DISTINCT - ( ( 18 ) ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT DISTINCT + + COUNT( * ) + + SUM( - 80 ) + - 74 AS col0
----
-153

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT + + COUNT ( * ) + + SUM ( - 80 ) + - 74 AS col0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3432
SELECT + 89 - + CASE 98 WHEN + 38 THEN + 91 * + + 19 * + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT + 89 - + CASE 98 WHEN + 38 THEN + 91 * + + 19 * + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL + 44 + 86 * 54 AS col2
----
4688

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL + MAX( 1 ) * + 55 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL + MAX ( 1 ) * + 55 AS col1
----
55

query I rowsort
SELECT + 55 + + 6 AS col0
----
61

query I rowsort
SELECT 14 + - - 47 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT DISTINCT - 62 + + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT - 62 + + COUNT ( * )
----
-61

query I rowsort
SELECT ALL - 4 + 72 - + 96
----
-28

query II rowsort
SELECT ALL 61 * 29 AS col2, + CASE 48 WHEN + 80 THEN 82 END AS col1
----
1769
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ( - COUNT( * ) ) * + 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3440
SELECT ( - COUNT ( * ) ) * + 25 AS col0
----
-25

query I rowsort
SELECT DISTINCT 79 + + - 33
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3442
SELECT + CAST( + NULLIF ( + - 46, - CASE - 39 WHEN 47 THEN COUNT( * ) * 7 + + + 72 ELSE NULL END ) AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-3442
SELECT + CAST ( + NULLIF ( + - 46, - CASE - 39 WHEN 47 THEN COUNT ( * ) * 7 + + + 72 ELSE NULL END ) AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL - MAX( 48 ) + + + MAX( ALL + 27 )
----
-21

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL - MAX ( 48 ) + + + MAX ( ALL + 27 )
----
-21

query I rowsort
SELECT DISTINCT - 10 + + - 51 * + - 85
----
4325

onlyif mysql # DIV for integer division: 
query I rowsort label-3445
SELECT 19 + - 38 DIV - 3 col0
----
31

skipif mysql # not compatible
query I rowsort label-3445
SELECT 19 + - 38 / - 3 col0
----
31

query I rowsort
SELECT DISTINCT - - 20 AS col2
----
20

query I rowsort
SELECT ALL 24 * - 82 col0
----
-1968

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3448
SELECT 39 + + 81 * - + CAST( NULL AS SIGNED ) AS col1, CAST( + 75 AS SIGNED ) AS col0
----
NULL
75

skipif mysql # not compatible
query II rowsort label-3448
SELECT 39 + + 81 * - + CAST ( NULL AS INTEGER ) AS col1, CAST ( + 75 AS INTEGER ) AS col0
----
NULL
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3449
SELECT 75 DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3449
SELECT 75 / - 83 AS col1
----
0

query I rowsort
SELECT ALL + 49 - ( + 38 ) * + 84 AS col2
----
-3143

query II rowsort
SELECT DISTINCT - 91 col0, - 15
----
-91
-15

query II rowsort
SELECT 49 * + + 28 - - 76 AS col1, - 22 AS col2
----
1448
-22

query II rowsort
SELECT DISTINCT - 36 col2, 57
----
-36
57

query I rowsort
SELECT DISTINCT 62 * 20 AS col1
----
1240

onlyif mysql # DIV for integer division: 
query I rowsort label-3455
SELECT 84 + + 62 + + 92 DIV + 7 AS col0
----
159

skipif mysql # not compatible
query I rowsort label-3455
SELECT 84 + + 62 + + 92 / + 7 AS col0
----
159

query I rowsort
SELECT ALL - 19 col1
----
-19

query I rowsort
SELECT DISTINCT - COALESCE ( + 31, ( - 94 ) )
----
-31

query I rowsort
SELECT ALL - ( 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT 9 - COUNT( * ) * + 38
----
-29

skipif mysql # not compatible
query I rowsort label-3459
SELECT 9 - COUNT ( * ) * + 38
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT 59 * - COUNT( * ) + - 8
----
-67

skipif mysql # not compatible
query I rowsort label-3460
SELECT 59 * - COUNT ( * ) + - 8
----
-67

query I rowsort
SELECT 19 + + 79 AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3462
SELECT ALL - 87 * - 29 * - + 87 DIV + COUNT( * ) AS col2
----
-219501

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL - 87 * - 29 * - + 87 / + COUNT ( * ) AS col2
----
-219501

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL 13 + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL 13 + + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT - MIN( + 44 ) + - COUNT( * ) + + + 67 * + 17 * + - 48 + - - 9
----
-54708

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT - MIN ( + 44 ) + - COUNT ( * ) + + + 67 * + 17 * + - 48 + - - 9
----
-54708

query I rowsort
SELECT DISTINCT + 42 + - - 38 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3466
SELECT ALL + 15 + COALESCE ( NULLIF ( + COUNT( * ), + COUNT( * ) ), ( COUNT( * ) ) ) + + - CASE 68 WHEN + 83 / 57 THEN + COUNT( * ) * - + COUNT( * ) WHEN NULLIF ( + 41, - AVG ( + 70 ) / 76 ) THEN 74 ELSE + ( CAST( NULL AS SIGNED ) ) END * + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + 15 + COALESCE ( NULLIF ( + COUNT ( * ), + COUNT ( * ) ), ( COUNT ( * ) ) ) + + - CASE 68 WHEN + 83 / 57 THEN + COUNT ( * ) * - + COUNT ( * ) WHEN NULLIF ( + 41, - AVG ( + 70 ) / 76 ) THEN 74 ELSE + ( CAST ( NULL AS INTEGER ) ) END * + 14 AS col1
----
NULL

query I rowsort
SELECT - ( - 8 ) + + 89 AS col2
----
97

query I rowsort
SELECT 8 * 10 col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT 39 + - - MIN( DISTINCT + ( + 69 ) )
----
108

skipif mysql # not compatible
query I rowsort label-3469
SELECT 39 + - - MIN ( DISTINCT + ( + 69 ) )
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3470
SELECT + 18 * + 82 + + + CAST( NULL AS SIGNED ) + 39 + + CASE - 68 WHEN - - 57 THEN 77 WHEN ( - COUNT( ALL - 52 ) ) * 51 + - COUNT( * ) / - COUNT( * ) THEN NULL END + + 63 * - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3470
SELECT + 18 * + 82 + + + CAST ( NULL AS INTEGER ) + 39 + + CASE - 68 WHEN - - 57 THEN 77 WHEN ( - COUNT ( ALL - 52 ) ) * 51 + - COUNT ( * ) / - COUNT ( * ) THEN NULL END + + 63 * - 22 AS col0
----
NULL

query I rowsort
SELECT 98 + - NULLIF ( + 87, + - 29 )
----
11

query II rowsort
SELECT ALL + + 62 + + + 44 + - - 96 AS col2, 48 AS col0
----
202
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3473
SELECT ALL - 74 DIV + - 60 + + 99 + + MIN( - 18 ) * NULLIF ( - 20, + + 77 ) AS col1
----
460

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL - 74 / + - 60 + + 99 + + MIN ( - 18 ) * NULLIF ( - 20, + + 77 ) AS col1
----
460

query I rowsort
SELECT - NULLIF ( 68, - - 61 * - 73 )
----
-68

query I rowsort
SELECT - 67 col0
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3476
SELECT 8 + 80 + + ( - 74 ) DIV - COUNT( * ) AS col1
----
162

skipif mysql # not compatible
query I rowsort label-3476
SELECT 8 + 80 + + ( - 74 ) / - COUNT ( * ) AS col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL + SUM( ALL - + 10 ) - + 0 - + 21 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL + SUM ( ALL - + 10 ) - + 0 - + 21 AS col0
----
-31

query I rowsort
SELECT - 12 + + 82 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL COUNT( ALL - 77 ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL COUNT ( ALL - 77 ) - + COUNT ( * )
----
0

query I rowsort
SELECT - - 57 AS col2
----
57

query I rowsort
SELECT 87 + - + 35 AS col2
----
52

query I rowsort
SELECT + 34 + - + 29 AS col2
----
5

query I rowsort
SELECT ALL - - ( 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT DISTINCT 13 * - + SUM( ALL 90 )
----
-1170

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT 13 * - + SUM ( ALL 90 )
----
-1170

query I rowsort
SELECT - 53 * - + 32
----
1696

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT 55 + + COALESCE ( - 19, - 7, - 99 * + + CASE - COUNT( * ) WHEN + 1 THEN 73 END - CASE + 53 WHEN + 80 + - 56 THEN - 25 ELSE NULL END ) * - - 87 col0
----
-1598

skipif mysql # not compatible
query I rowsort label-3486
SELECT 55 + + COALESCE ( - 19, - 7, - 99 * + + CASE - COUNT ( * ) WHEN + 1 THEN 73 END - CASE + 53 WHEN + 80 + - 56 THEN - 25 ELSE NULL END ) * - - 87 col0
----
-1598

query I rowsort
SELECT ALL - ( + + 68 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3488
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + MIN( DISTINCT + + 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + MIN ( DISTINCT + + 78 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT 68 * + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-3489
SELECT 68 * + COUNT ( * )
----
68

query II rowsort
SELECT ALL - 39, - 90 AS col1
----
-39
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT COUNT( DISTINCT 37 )
----
1

skipif mysql # not compatible
query I rowsort label-3491
SELECT COUNT ( DISTINCT 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT + COUNT( 10 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3492
SELECT + COUNT ( 10 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3493
SELECT DISTINCT - 26, 34 DIV - + 10 AS col0
----
-26
-3

skipif mysql # not compatible
query II rowsort label-3493
SELECT DISTINCT - 26, 34 / - + 10 AS col0
----
-26
-3

query II rowsort
SELECT + 39 AS col1, + 35 col1
----
39
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT COUNT( * ) + + 98 col1
----
99

skipif mysql # not compatible
query I rowsort label-3495
SELECT COUNT ( * ) + + 98 col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT + SUM( DISTINCT 18 )
----
18

skipif mysql # not compatible
query I rowsort label-3496
SELECT + SUM ( DISTINCT 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT - MIN( DISTINCT - 64 ) * - + 91 * 78 + + - COUNT( DISTINCT + 24 ) AS col2
----
-454273

skipif mysql # not compatible
query I rowsort label-3497
SELECT - MIN ( DISTINCT - 64 ) * - + 91 * 78 + + - COUNT ( DISTINCT + 24 ) AS col2
----
-454273

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT MAX( + 18 ) * 51
----
918

skipif mysql # not compatible
query I rowsort label-3498
SELECT MAX ( + 18 ) * 51
----
918

query I rowsort
SELECT 91 * + 69 + - 77 AS col2
----
6202

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT MIN( ALL - + 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3500
SELECT MIN ( ALL - + 5 ) AS col0
----
-5

query I rowsort
SELECT ALL 55 * - 25 AS col1
----
-1375

query I rowsort
SELECT ALL 13 + 54
----
67

query I rowsort
SELECT ALL + ( - 2 ) + + 20 + - 57 * 42
----
-2376

query I rowsort
SELECT ( + - 58 ) * 84 col0
----
-4872

query II rowsort
SELECT ALL 7 + 30, - 86 AS col1
----
37
-86

query I rowsort
SELECT - - 74 AS col0
----
74

query I rowsort
SELECT ALL NULLIF ( + 26, 20 )
----
26

query I rowsort
SELECT - + 59 * - 76 * - 20
----
-89680

query I rowsort
SELECT ( 76 ) AS col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3510
SELECT - MIN( 18 ) * - 84 DIV + COALESCE ( COUNT( * ), + COUNT( * ), - 39 ) + + 6 + + COUNT( * ) + + 91
----
1610

skipif mysql # not compatible
query I rowsort label-3510
SELECT - MIN ( 18 ) * - 84 / + COALESCE ( COUNT ( * ), + COUNT ( * ), - 39 ) + + 6 + + COUNT ( * ) + + 91
----
1610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT - COALESCE ( - - CAST( NULL AS SIGNED ), - 89, 6, + - 55 ) col0
----
89

skipif mysql # not compatible
query I rowsort label-3511
SELECT - COALESCE ( - - CAST ( NULL AS INTEGER ), - 89, 6, + - 55 ) col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-3512
SELECT - - 67 + + + COALESCE ( + 21, - 75 ) col0, 83 * + - COUNT( * )
----
88
-83

skipif mysql # not compatible
query II rowsort label-3512
SELECT - - 67 + + + COALESCE ( + 21, - 75 ) col0, 83 * + - COUNT ( * )
----
88
-83

query I rowsort
SELECT ALL + + 59 + + 87 AS col2
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-3514
SELECT 90 AS col2, COUNT( * ) AS col1
----
90
1

skipif mysql # not compatible
query II rowsort label-3514
SELECT 90 AS col2, COUNT ( * ) AS col1
----
90
1

query I rowsort
SELECT DISTINCT 39 - 30 + + 41 col2
----
50

query II rowsort
SELECT 33 col0, 92 + 54 col0
----
33
146

query I rowsort
SELECT DISTINCT - - 30 - + 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT DISTINCT + 21 - + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT + 21 - + COUNT ( * )
----
20

query I rowsort
SELECT + 40 * + + 33
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT - COUNT( * ) * + - 93 + - 26
----
67

skipif mysql # not compatible
query I rowsort label-3520
SELECT - COUNT ( * ) * + - 93 + - 26
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL + - MAX( + - 86 ) * + - COUNT( * ) * - ( - + 70 ) - - ( - 26 ) col0
----
-6046

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL + - MAX ( + - 86 ) * + - COUNT ( * ) * - ( - + 70 ) - - ( - 26 ) col0
----
-6046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3522
SELECT CAST( - 70 AS SIGNED ), - ( - CASE + + COUNT( - 1 ) WHEN + 73 THEN - 30 ELSE NULL END ) + - 73 AS col2
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-3522
SELECT CAST ( - 70 AS INTEGER ), - ( - CASE + + COUNT ( - 1 ) WHEN + 73 THEN - 30 ELSE NULL END ) + - 73 AS col2
----
-70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT - ( + COUNT( ALL + + 75 ) ) + + 62 * + - 15 + + - COUNT( * )
----
-932

skipif mysql # not compatible
query I rowsort label-3523
SELECT - ( + COUNT ( ALL + + 75 ) ) + + 62 * + - 15 + + - COUNT ( * )
----
-932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3524
SELECT + NULLIF ( SUM( ALL + 21 ), 47 + - 82 * - 80 / - 27 - CAST( - 9 AS SIGNED ) + - 11 )
----
21

skipif mysql # not compatible
query I rowsort label-3524
SELECT + NULLIF ( SUM ( ALL + 21 ), 47 + - 82 * - 80 / - 27 - CAST ( - 9 AS INTEGER ) + - 11 )
----
21

query I rowsort
SELECT DISTINCT - + 42 - + 0 AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3526
SELECT + 91 AS col1, + 24 + - MAX( - COALESCE ( + + 79, 97 + - 64, - 28 * + CASE + 67 WHEN - - 22 THEN CAST( NULL AS SIGNED ) * + 49 + - 75 * - - 64 WHEN - CAST( NULL AS SIGNED ) / + 57 - 26 THEN NULL ELSE NULL END - 46 ) )
----
91
103

skipif mysql # not compatible
query II rowsort label-3526
SELECT + 91 AS col1, + 24 + - MAX ( - COALESCE ( + + 79, 97 + - 64, - 28 * + CASE + 67 WHEN - - 22 THEN CAST ( NULL AS INTEGER ) * + 49 + - 75 * - - 64 WHEN - CAST ( NULL AS INTEGER ) / + 57 - 26 THEN NULL ELSE NULL END - 46 ) )
----
91
103

query II rowsort
SELECT ALL 19 AS col2, 50
----
19
50

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3528
SELECT - CAST( NULL AS DECIMAL ), 26 AS col0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-3528
SELECT - CAST ( NULL AS REAL ), 26 AS col0
----
NULL
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT DISTINCT COUNT( ALL - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT COUNT ( ALL - 84 )
----
1

query I rowsort
SELECT DISTINCT NULLIF ( - - 1, - 21 * + + 85 )
----
1

query I rowsort
SELECT ALL 9 * - - 98 AS col1
----
882

query I rowsort
SELECT - NULLIF ( + 29, + 27 ) * + 64 AS col0
----
-1856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3533
SELECT 86 DIV + 74 + 95 + - COUNT( * ) + + 61 * 34 + COUNT( * ) AS col2, + 48 AS col0, + - CAST( NULL AS SIGNED ) + - 38 * + 63 + - 5 * - - 73 + - 97 + + 87 + - + 50 + + COUNT( * ) AS col1
----
2170
48
NULL

skipif mysql # not compatible
query III rowsort label-3533
SELECT 86 / + 74 + 95 + - COUNT ( * ) + + 61 * 34 + COUNT ( * ) AS col2, + 48 AS col0, + - CAST ( NULL AS INTEGER ) + - 38 * + 63 + - 5 * - - 73 + - 97 + + 87 + - + 50 + + COUNT ( * ) AS col1
----
2170
48
NULL

query II rowsort
SELECT ( + + 40 ) AS col2, 26 AS col1
----
40
26

query I rowsort
SELECT + 44 * 13 AS col1
----
572

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT SUM( DISTINCT 36 ) * + COUNT( * ) + + NULLIF ( COUNT( * ), - 85 + 99 + 74 * + + 37 * - NULLIF ( + 61, + - 15 / 94 + + + 40 / - - 16 + + + 88 ) )
----
37

skipif mysql # not compatible
query I rowsort label-3536
SELECT SUM ( DISTINCT 36 ) * + COUNT ( * ) + + NULLIF ( COUNT ( * ), - 85 + 99 + 74 * + + 37 * - NULLIF ( + 61, + - 15 / 94 + + + 40 / - - 16 + + + 88 ) )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3538
SELECT ALL 67 * - - NULLIF ( + COALESCE ( - ( - NULLIF ( + + 91, + COALESCE ( 19, + - 53 ) ) ), + 83, 84 * - + 36 * 72 + 63 + + 49 * + 83 + + 59 * - CASE 35 * 35 - - COUNT( * ) WHEN - COUNT( * ) THEN - 21 DIV COUNT( * ) END ), - MIN( ALL - 34 ) ) col1
----
6097

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL 67 * - - NULLIF ( + COALESCE ( - ( - NULLIF ( + + 91, + COALESCE ( 19, + - 53 ) ) ), + 83, 84 * - + 36 * 72 + 63 + + 49 * + 83 + + 59 * - CASE 35 * 35 - - COUNT ( * ) WHEN - COUNT ( * ) THEN - 21 / COUNT ( * ) END ), - MIN ( ALL - 34 ) ) col1
----
6097

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT + COUNT( 96 ) AS col0, 56
----
1
56

skipif mysql # not compatible
query II rowsort label-3539
SELECT + COUNT ( 96 ) AS col0, 56
----
1
56

query I rowsort
SELECT ALL 0 * - - 70 + + 45 col1
----
45

query I rowsort
SELECT ALL + 87 * + 35 AS col2
----
3045

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT ALL + 61 * + 6 + - 69 + + 81 + + 80 DIV ( + 45 )
----
379

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + 61 * + 6 + - 69 + + 81 + + 80 / ( + 45 )
----
379

query II rowsort
SELECT + 1 + + - 67, 53 AS col2
----
-66
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3544
SELECT ALL 43 * - 40 DIV + + COUNT( * ) + - 66
----
-1786

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL 43 * - 40 / + + COUNT ( * ) + - 66
----
-1786

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT DISTINCT - 16 * 6 + NULLIF ( + COUNT( * ), - ( 51 ) + - 7 ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT - 16 * 6 + NULLIF ( + COUNT ( * ), - ( 51 ) + - 7 ) col2
----
-95

query I rowsort
SELECT CASE + + 88 WHEN + 79 THEN NULL ELSE + + 97 END
----
97

query I rowsort
SELECT 33 * 51 + 51 col2
----
1734

query I rowsort
SELECT + 66 + - 85 * + - 57 AS col2
----
4911

query I rowsort
SELECT + ( 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT NULLIF ( - NULLIF ( 38, - 45 * 26 ), - ( + COUNT( * ) ) )
----
-38

skipif mysql # not compatible
query I rowsort label-3550
SELECT NULLIF ( - NULLIF ( 38, - 45 * 26 ), - ( + COUNT ( * ) ) )
----
-38

query I rowsort
SELECT + - 18 + 95 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3552
SELECT ALL + NULLIF ( - 76, + COUNT( * ) ) * + AVG ( DISTINCT - 52 ) + - 84 * - + CAST( NULL AS SIGNED ) * + 54 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL + NULLIF ( - 76, + COUNT ( * ) ) * + AVG ( DISTINCT - 52 ) + - 84 * - + CAST ( NULL AS INTEGER ) * + 54 * 82
----
NULL

query I rowsort
SELECT - - 38 + 62
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT DISTINCT - MIN( + 82 ) * + - COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT - MIN ( + 82 ) * + - COUNT ( * ) AS col2
----
82

query II rowsort
SELECT ALL + 63 * - 47, + 4 AS col2
----
-2961
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT DISTINCT + 88 * + MIN( DISTINCT - + ( - 95 ) ) - + 31 + COUNT( * ) * - 55 + + 76 AS col2
----
8350

skipif mysql # not compatible
query I rowsort label-3556
SELECT DISTINCT + 88 * + MIN ( DISTINCT - + ( - 95 ) ) - + 31 + COUNT ( * ) * - 55 + + 76 AS col2
----
8350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3557
SELECT ALL NULLIF ( - 95, - ( 55 ) DIV 67 * + 63 ) * 6 * + 24 + + MIN( 34 ) DIV - 38 * - 14 * - ( - 84 )
----
-13680

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL NULLIF ( - 95, - ( 55 ) / 67 * + 63 ) * 6 * + 24 + + MIN ( 34 ) / - 38 * - 14 * - ( - 84 )
----
-13680

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT + 71 + COUNT( DISTINCT + + 23 )
----
72

skipif mysql # not compatible
query I rowsort label-3558
SELECT + 71 + COUNT ( DISTINCT + + 23 )
----
72

query I rowsort
SELECT ALL 41 * - 83 * 94 * + 4
----
-1279528

query I rowsort
SELECT - ( ( - - 25 ) ) col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL MAX( DISTINCT 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL MAX ( DISTINCT 84 ) AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3562
SELECT + - 92 DIV 50 - 41 DIV + NULLIF ( + 95, - COUNT( * ) DIV + 26 DIV + - 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-3562
SELECT + - 92 / 50 - 41 / + NULLIF ( + 95, - COUNT ( * ) / + 26 / + - 10 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT - - MAX( 13 ) * - 9 AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-3563
SELECT - - MAX ( 13 ) * - 9 AS col1
----
-117

query I rowsort
SELECT + - 75 + - 39 - 9 * + 27 AS col1
----
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT - + 11 * CASE - - ( - + COUNT( * ) ) WHEN - 38 THEN NULL WHEN - + 10 * COUNT( * ) + - + 23 THEN + 6 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT - + 11 * CASE - - ( - + COUNT ( * ) ) WHEN - 38 THEN NULL WHEN - + 10 * COUNT ( * ) + - + 23 THEN + 6 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT + ( + COUNT( * ) ) + - + 81 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-3566
SELECT + ( + COUNT ( * ) ) + - + 81 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT - - 37 + - MIN( DISTINCT + NULLIF ( - - 13, ( 35 ) ) ) - - 37
----
61

skipif mysql # not compatible
query I rowsort label-3567
SELECT - - 37 + - MIN ( DISTINCT + NULLIF ( - - 13, ( 35 ) ) ) - - 37
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3568
SELECT + CASE + 8 WHEN CAST( + CASE + 13 WHEN - + 55 + 52 THEN + - 89 WHEN - - SUM( ALL - 29 ) * + + NULLIF ( + - COUNT( * ), + CAST( NULL AS SIGNED ) / - + COUNT( * ) ) + - ( - 83 ) * + 92 * ( - CASE - 12 WHEN 8 THEN + COALESCE ( 92, 16 + CAST( NULL AS DECIMAL ) ) * 23 END ) THEN NULL END AS SIGNED ) THEN 76 WHEN 27 THEN NULL ELSE NULL END * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT + CASE + 8 WHEN CAST ( + CASE + 13 WHEN - + 55 + 52 THEN + - 89 WHEN - - SUM ( ALL - 29 ) * + + NULLIF ( + - COUNT ( * ), + CAST ( NULL AS INTEGER ) / - + COUNT ( * ) ) + - ( - 83 ) * + 92 * ( - CASE - 12 WHEN 8 THEN + COALESCE ( 92, 16 + CAST ( NULL AS REAL ) ) * 23 END ) THEN NULL END AS INTEGER ) THEN 76 WHEN 27 THEN NULL ELSE NULL END * - 19
----
NULL

query I rowsort
SELECT ALL + 40 * 95
----
3800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3570
SELECT - - CAST( NULL AS SIGNED ) + 9, ( + ( 48 ) ) DIV 59 DIV 25 * 95 * + 49 * - 45 * + COUNT( * ) + + + 0 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3570
SELECT - - CAST ( NULL AS INTEGER ) + 9, ( + ( 48 ) ) / 59 / 25 * 95 * + 49 * - 45 * + COUNT ( * ) + + + 0 AS col0
----
NULL
0

query I rowsort
SELECT - + 9 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - + MAX( + - 43 ) + - + 17 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3572
SELECT - + MAX ( + - 43 ) + - + 17 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT ALL + 90 + 76 + - SUM( ALL - + 28 )
----
194

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL + 90 + 76 + - SUM ( ALL - + 28 )
----
194

query II rowsort
SELECT 90 AS col1, 75
----
90
75

query II rowsort
SELECT 27, + 89 AS col1
----
27
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT ALL - 27 + CAST( NULL AS SIGNED ) / - 95 * + ( + + 18 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL - 27 + CAST ( NULL AS INTEGER ) / - 95 * + ( + + 18 ) col2
----
NULL

query I rowsort
SELECT - 85 + 79 AS col0
----
-6

query I rowsort
SELECT - ( - 21 ) * - 97
----
-2037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3579
SELECT ALL COUNT( * ) DIV + - COALESCE ( 65, 5 DIV + CAST( 86 AS SIGNED ) * - + 29 ) + 42 + 16 * + ( - 5 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL COUNT ( * ) / + - COALESCE ( 65, 5 / + CAST ( 86 AS INTEGER ) * - + 29 ) + 42 + 16 * + ( - 5 ) AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3580
SELECT 27 DIV - 50 + - CAST( + 38 AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-3580
SELECT 27 / - 50 + - CAST ( + 38 AS INTEGER )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3581
SELECT DISTINCT ( + + 4 ) DIV - + COUNT( * ) + - 67 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT ( + + 4 ) / - + COUNT ( * ) + - 67 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT DISTINCT + SUM( DISTINCT + 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT + SUM ( DISTINCT + 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3583
SELECT ALL - 66 DIV + COUNT( ALL - 90 ) + + 32 col2
----
-34

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL - 66 / + COUNT ( ALL - 90 ) + + 32 col2
----
-34

query I rowsort
SELECT ALL + ( + 17 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3585
SELECT ALL + COUNT( * ) AS col0, 45 AS col1
----
1
45

skipif mysql # not compatible
query II rowsort label-3585
SELECT ALL + COUNT ( * ) AS col0, 45 AS col1
----
1
45

query I rowsort
SELECT 89 * + + 60 * - 65 * - 88 AS col2
----
30544800

query I rowsort
SELECT 25 * + + COALESCE ( 96, 15, - + 40 * 91 + + - 33 )
----
2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT ALL - CASE - 39 WHEN + 58 THEN 80 ELSE + - 62 * 49 * - + CAST( NULL AS SIGNED ) + + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL - CASE - 39 WHEN + 58 THEN 80 ELSE + - 62 * 49 * - + CAST ( NULL AS INTEGER ) + + 92 END
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3589
SELECT 99 * - SUM( 78 ) AS col1, 38 AS col2, 75 + ( - ( - MIN( - - 16 ) ) )
----
-7722
38
91

skipif mysql # not compatible
query III rowsort label-3589
SELECT 99 * - SUM ( 78 ) AS col1, 38 AS col2, 75 + ( - ( - MIN ( - - 16 ) ) )
----
-7722
38
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT 29 * + 26 + 16 + - + MIN( 5 ) - COUNT( * ) AS col0
----
764

skipif mysql # not compatible
query I rowsort label-3590
SELECT 29 * + 26 + 16 + - + MIN ( 5 ) - COUNT ( * ) AS col0
----
764

query II rowsort
SELECT + 15, - ( + - 26 ) AS col0
----
15
26

query I rowsort
SELECT ALL - - 72 AS col1
----
72

query I rowsort
SELECT ALL - + 95 AS col0
----
-95

query I rowsort
SELECT + 65 * + 23 AS col1
----
1495

query I rowsort
SELECT ALL - + 39
----
-39

query I rowsort
SELECT - + 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT 25 AS col0, MIN( ALL 62 ) + - 16
----
25
46

skipif mysql # not compatible
query II rowsort label-3597
SELECT 25 AS col0, MIN ( ALL 62 ) + - 16
----
25
46

query I rowsort
SELECT + 22 + - ( + 57 )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3599
SELECT 52 DIV - COALESCE ( - 70, - MAX( - 46 ) + + - 27, 81 ) + + 18
----
18

skipif mysql # not compatible
query I rowsort label-3599
SELECT 52 / - COALESCE ( - 70, - MAX ( - 46 ) + + - 27, 81 ) + + 18
----
18

query I rowsort
SELECT - 31 * 83 + 46 AS col0
----
-2527

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT 83 + + 39 - + COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-3601
SELECT 83 + + 39 - + COUNT ( * )
----
121

query II rowsort
SELECT ALL 81, - 15 + 89 AS col0
----
81
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT - COUNT( - 3 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3603
SELECT - COUNT ( - 3 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 58 * - 61
----
-3538

query I rowsort
SELECT DISTINCT 46 + 48 col0
----
94

query I rowsort
SELECT 24 - 54
----
-30

query I rowsort
SELECT ALL - NULLIF ( - 77, - 77 ) AS col1
----
NULL

query I rowsort
SELECT 55 * - 54 * + 89 AS col2
----
-264330

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT 68 + + + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-3609
SELECT 68 + + + COUNT ( * )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3610
SELECT 10 DIV + 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3610
SELECT 10 / + 26 AS col1
----
0

query I rowsort
SELECT 13 - 55 AS col2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT DISTINCT - COALESCE ( - 69, + 71 DIV - 99 ) + + 87 AS col0
----
156

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT - COALESCE ( - 69, + 71 / - 99 ) + + 87 AS col0
----
156

query I rowsort
SELECT DISTINCT 97 + - + 15
----
82

query I rowsort
SELECT ALL - 96 + 56 AS col0
----
-40

query I rowsort
SELECT 9 * 23
----
207

query I rowsort
SELECT ALL + 23 * 35
----
805

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT ALL 84 + + 16 - 68 + - + 86 + - 20 - - 31 * COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL 84 + + 16 - 68 + - + 86 + - 20 - - 31 * COUNT ( * )
----
-43

query I rowsort
SELECT 99 + + 65 * + 15
----
1074

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT - 28 * - + 97 * SUM( DISTINCT - - 96 ) + 11 + 53 + + ( 12 ) * - - 12 AS col1
----
260944

skipif mysql # not compatible
query I rowsort label-3619
SELECT - 28 * - + 97 * SUM ( DISTINCT - - 96 ) + 11 + 53 + + ( 12 ) * - - 12 AS col1
----
260944

query I rowsort
SELECT ALL 24 * - 18
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT SUM( - 60 ) - + NULLIF ( 68, + 34 * + 45 ) AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT SUM ( - 60 ) - + NULLIF ( 68, + 34 * + 45 ) AS col2
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL - COALESCE ( - COUNT( * ), + + COUNT( * ), + 61 + - + COUNT( * ), - - 80 * 64 * 7 )
----
1

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL - COALESCE ( - COUNT ( * ), + + COUNT ( * ), + 61 + - + COUNT ( * ), - - 80 * 64 * 7 )
----
1

query I rowsort
SELECT + NULLIF ( + 54, - + 77 ) + - - 24 * + 42
----
1062

query I rowsort
SELECT DISTINCT - - 5 AS col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT ALL - + 40 * - 64 - - 11 + + - COUNT( * ) AS col0, + 67 * - 91 * + 0 AS col2
----
2570
0

skipif mysql # not compatible
query II rowsort label-3625
SELECT ALL - + 40 * - 64 - - 11 + + - COUNT ( * ) AS col0, + 67 * - 91 * + 0 AS col2
----
2570
0

query I rowsort
SELECT DISTINCT - 97 * + + 63
----
-6111

query I rowsort
SELECT 77 + + 88
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3628
SELECT - CASE + 37 WHEN + 32 THEN NULL WHEN + 42 * 53 * - ( + 14 ) THEN + + 43 + - 16 + 16 / - COUNT( CAST( + - 10 AS SIGNED ) ) WHEN 66 THEN - 23 END * + 93 + - - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT - CASE + 37 WHEN + 32 THEN NULL WHEN + 42 * 53 * - ( + 14 ) THEN + + 43 + - 16 + 16 / - COUNT ( CAST ( + - 10 AS INTEGER ) ) WHEN 66 THEN - 23 END * + 93 + - - 78
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3629
SELECT ALL - + COUNT( * ) * - 73 AS col2, 99
----
73
99

skipif mysql # not compatible
query II rowsort label-3629
SELECT ALL - + COUNT ( * ) * - 73 AS col2, 99
----
73
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3630
SELECT ( + COALESCE ( 26, - 88 * + + 84 * - + 56 ) ) DIV + - 78 + + 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3630
SELECT ( + COALESCE ( 26, - 88 * + + 84 * - + 56 ) ) / + - 78 + + 5 AS col0
----
5

query I rowsort
SELECT + 29 * + + 55
----
1595

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT DISTINCT + - 19 * + + COUNT( * ) + - - COUNT( * ) - 8 * - - COALESCE ( - 68, - 75, MAX( ALL + 38 ) * 79 ) * - CASE + CASE 90 WHEN - 60 THEN - 79 END WHEN + 94 - + COUNT( * ) / + 28 * - 73 + COUNT( * ) THEN NULL ELSE - 27 END + 0 * - 17
----
14670

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT + - 19 * + + COUNT ( * ) + - - COUNT ( * ) - 8 * - - COALESCE ( - 68, - 75, MAX ( ALL + 38 ) * 79 ) * - CASE + CASE 90 WHEN - 60 THEN - 79 END WHEN + 94 - + COUNT ( * ) / + 28 * - 73 + COUNT ( * ) THEN NULL ELSE - 27 END + 0 * - 17
----
14670

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT ALL - + 69 * MAX( DISTINCT 10 ) * + + 35 + ( - MAX( ( - - 9 ) ) )
----
-24159

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL - + 69 * MAX ( DISTINCT 10 ) * + + 35 + ( - MAX ( ( - - 9 ) ) )
----
-24159

query I rowsort
SELECT DISTINCT - - 44 + - + 99 + 34 AS col1
----
-21

query I rowsort
SELECT DISTINCT - 90 + 86 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT ALL - + COUNT( - - 4 ) + - 52 * + 81 + - + ( 56 )
----
-4269

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL - + COUNT ( - - 4 ) + - 52 * + 81 + - + ( 56 )
----
-4269

query I rowsort
SELECT - + 69 col2
----
-69

query I rowsort
SELECT DISTINCT 92 + - - 96 * + 74 col0
----
7196

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT MIN( DISTINCT + 79 ) + - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-3639
SELECT MIN ( DISTINCT + 79 ) + - COUNT ( * )
----
78

query I rowsort
SELECT 13 + - 4 + 61 - + 21 + + - 18 * - 6 AS col1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL 44 + 48 + + NULLIF ( + + 83, + COUNT( * ) )
----
175

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL 44 + 48 + + NULLIF ( + + 83, + COUNT ( * ) )
----
175

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT DISTINCT - 55 DIV - 21
----
2

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT - 55 / - 21
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3643
SELECT ALL CASE MAX( ALL + + NULLIF ( + - 82, 43 ) ) WHEN + 25 THEN - - 10 + 88 - - 10 WHEN + COUNT( * ) / - COALESCE ( - MIN( - 74 ), - - CAST( + + ( + 85 ) AS DECIMAL ) * - 32 * 33 ) + + + 31 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL CASE MAX ( ALL + + NULLIF ( + - 82, 43 ) ) WHEN + 25 THEN - - 10 + 88 - - 10 WHEN + COUNT ( * ) / - COALESCE ( - MIN ( - 74 ), - - CAST ( + + ( + 85 ) AS REAL ) * - 32 * 33 ) + + + 31 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3644
SELECT NULLIF ( + 61, + CAST( + + 21 AS DECIMAL ) ) + - COALESCE ( - 22, 36, - 48 )
----
83

skipif mysql # not compatible
query I rowsort label-3644
SELECT NULLIF ( + 61, + CAST ( + + 21 AS REAL ) ) + - COALESCE ( - 22, 36, - 48 )
----
83

query II rowsort
SELECT + 2 + + 89 - - 53 AS col1, - 46
----
144
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3646
SELECT ALL 8 + - NULLIF ( + COUNT( * ), - CASE + - 96 WHEN - 72 + - + CAST( NULL AS DECIMAL ) + - 13 THEN NULL WHEN + COUNT( * ) + + 60 / + + 71 THEN 74 + + 27 + - 32 + + - CAST( + + 65 AS SIGNED ) ELSE + + COALESCE ( - + 97, + CAST( 43 AS SIGNED ) ) END ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL 8 + - NULLIF ( + COUNT ( * ), - CASE + - 96 WHEN - 72 + - + CAST ( NULL AS REAL ) + - 13 THEN NULL WHEN + COUNT ( * ) + + 60 / + + 71 THEN 74 + + 27 + - 32 + + - CAST ( + + 65 AS INTEGER ) ELSE + + COALESCE ( - + 97, + CAST ( 43 AS INTEGER ) ) END ) AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3647
SELECT ALL 87 AS col0, NULLIF ( 14, - CAST( NULL AS SIGNED ) )
----
87
14

skipif mysql # not compatible
query II rowsort label-3647
SELECT ALL 87 AS col0, NULLIF ( 14, - CAST ( NULL AS INTEGER ) )
----
87
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT + 79 + - MAX( - 29 ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-3648
SELECT + 79 + - MAX ( - 29 ) AS col0
----
108

query I rowsort
SELECT ALL 89 col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3650
SELECT + COUNT( * ) * - 17 * CASE 76 WHEN 59 * - 1 * + + 4 * - 61 + + - 51 * 30 THEN + 80 * + COUNT( * ) * + NULLIF ( - 58, - 2 ) + 82 + + + CAST( NULL AS SIGNED ) WHEN - - 62 THEN + - COALESCE ( - - 14, + 26 ) ELSE 2 END * 98
----
-3332

skipif mysql # not compatible
query I rowsort label-3650
SELECT + COUNT ( * ) * - 17 * CASE 76 WHEN 59 * - 1 * + + 4 * - 61 + + - 51 * 30 THEN + 80 * + COUNT ( * ) * + NULLIF ( - 58, - 2 ) + 82 + + + CAST ( NULL AS INTEGER ) WHEN - - 62 THEN + - COALESCE ( - - 14, + 26 ) ELSE 2 END * 98
----
-3332

query I rowsort
SELECT + 55 * - 86
----
-4730

query I rowsort
SELECT + 72 + + + 90 col0
----
162

query I rowsort
SELECT - CASE ( + 50 ) WHEN + - 2 THEN + 72 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3654
SELECT 65 DIV - - 72 + - 58 + - + 58 * + 94 + 44 + - 83 AS col2
----
-5549

skipif mysql # not compatible
query I rowsort label-3654
SELECT 65 / - - 72 + - 58 + - + 58 * + 94 + 44 + - 83 AS col2
----
-5549

query I rowsort
SELECT + 19 * 62 * + 46 AS col2
----
54188

query I rowsort
SELECT + 95 * + 32
----
3040

query I rowsort
SELECT ALL + - 94 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT + COALESCE ( - 99, + SUM( DISTINCT + 89 ) )
----
-99

skipif mysql # not compatible
query I rowsort label-3658
SELECT + COALESCE ( - 99, + SUM ( DISTINCT + 89 ) )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL COUNT( * ) * - + 80 * - + 38 + - 13
----
3027

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL COUNT ( * ) * - + 80 * - + 38 + - 13
----
3027

query I rowsort
SELECT - ( - + NULLIF ( 2, - - 30 ) ) * + 36 - + - 49 * + 29 AS col1
----
1493

query I rowsort
SELECT ALL + 68 * - 56
----
-3808

query II rowsort
SELECT + - 46 AS col0, NULLIF ( + + 62, + - 5 ) AS col1
----
-46
62

query I rowsort
SELECT + + CASE + 72 WHEN + 44 THEN - + 7 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT + + 29 * - 86 * + COUNT( * ) AS col2
----
-2494

skipif mysql # not compatible
query I rowsort label-3664
SELECT + + 29 * - 86 * + COUNT ( * ) AS col2
----
-2494

query I rowsort
SELECT DISTINCT + + 75
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT - 49 + + CAST( + NULLIF ( - MAX( + + NULLIF ( - 88, - 65 ) ), 64 * + CASE 98 WHEN NULLIF ( 82, + SUM( ALL - 31 ) ) THEN - 26 * + COUNT( * ) * 87 * + 62 + 36 - - 6 ELSE NULL END * NULLIF ( + 89, ( + 88 ) * 2 ) ) AS SIGNED ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3666
SELECT - 49 + + CAST ( + NULLIF ( - MAX ( + + NULLIF ( - 88, - 65 ) ), 64 * + CASE 98 WHEN NULLIF ( 82, + SUM ( ALL - 31 ) ) THEN - 26 * + COUNT ( * ) * 87 * + 62 + 36 - - 6 ELSE NULL END * NULLIF ( + 89, ( + 88 ) * 2 ) ) AS INTEGER ) AS col0
----
39

query I rowsort
SELECT DISTINCT - 88 * + 97 + 3 * + 12 + - 56 * + 18
----
-9508

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ALL 41 * - - 33 + + NULLIF ( + 12, ( - COALESCE ( 63, + 23, 84 / + ( + - 96 ) ) ) * 9 + COUNT( * ) ) AS col2
----
1365

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL 41 * - - 33 + + NULLIF ( + 12, ( - COALESCE ( 63, + 23, 84 / + ( + - 96 ) ) ) * 9 + COUNT ( * ) ) AS col2
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT + - SUM( ALL 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3669
SELECT + - SUM ( ALL 36 ) AS col1
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3670
SELECT - 67 DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3670
SELECT - 67 / - 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT ALL - 45 * 92 + - 11 + COUNT( * )
----
-4150

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL - 45 * 92 + - 11 + COUNT ( * )
----
-4150

query I rowsort
SELECT - 7 + - - 96
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT ALL + + COALESCE ( + 75, - + 96 * - 66 ) * CASE + CAST( NULL AS SIGNED ) WHEN + ( - 6 ) THEN + + 53 WHEN + 25 THEN + 58 END + + - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL + + COALESCE ( + 75, - + 96 * - 66 ) * CASE + CAST ( NULL AS INTEGER ) WHEN + ( - 6 ) THEN + + 53 WHEN + 25 THEN + 58 END + + - 29 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT - + 86 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT - + 86 / 90
----
0

query I rowsort
SELECT - 58 * - 59 + - 37
----
3385

onlyif mysql # aggregate syntax: 
query II rowsort label-3676
SELECT ALL - 17 * + 17 + - CASE - - 36 WHEN - ( - 12 ) THEN + COUNT( * ) * 20 * 62 + - 54 END col2, - 97 * + 70
----
NULL
-6790

skipif mysql # not compatible
query II rowsort label-3676
SELECT ALL - 17 * + 17 + - CASE - - 36 WHEN - ( - 12 ) THEN + COUNT ( * ) * 20 * 62 + - 54 END col2, - 97 * + 70
----
NULL
-6790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT - - SUM( ALL 71 ) + + - 80 + + 12 + - CASE + COUNT( * ) WHEN - - 18 THEN 9 ELSE CAST( NULL AS SIGNED ) * 30 END + + COUNT( DISTINCT - + 63 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3677
SELECT - - SUM ( ALL 71 ) + + - 80 + + 12 + - CASE + COUNT ( * ) WHEN - - 18 THEN 9 ELSE CAST ( NULL AS INTEGER ) * 30 END + + COUNT ( DISTINCT - + 63 ) col1
----
NULL

query I rowsort
SELECT + - 48 * - - 27 AS col0
----
-1296

query I rowsort
SELECT ALL + 95 + + 12
----
107

query I rowsort
SELECT ALL - 41 + 89 + - + 79 AS col0
----
-31

query I rowsort
SELECT ALL - 68 * 19
----
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT - 85 - - - COUNT( * ) + - - 76
----
-10

skipif mysql # not compatible
query I rowsort label-3682
SELECT - 85 - - - COUNT ( * ) + - - 76
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3683
SELECT ALL 77 col0, - NULLIF ( - 44, - COUNT( * ) ) + - 66
----
77
-22

skipif mysql # not compatible
query II rowsort label-3683
SELECT ALL 77 col0, - NULLIF ( - 44, - COUNT ( * ) ) + - 66
----
77
-22

query II rowsort
SELECT 43 AS col0, + 47 AS col1
----
43
47

query I rowsort
SELECT ALL + 96 - - 83 AS col0
----
179

query I rowsort
SELECT ALL ( 77 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3687
SELECT - COUNT( * ), - ( + 46 ) - - CASE + 84 WHEN 12 THEN + + 28 * + 96 WHEN - 43 * + + 93 THEN NULL ELSE NULL END col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3687
SELECT - COUNT ( * ), - ( + 46 ) - - CASE + 84 WHEN 12 THEN + + 28 * + 96 WHEN - 43 * + + 93 THEN NULL ELSE NULL END col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3688
SELECT 24 AS col1, 21 * + + COUNT( * ) * 64 col1
----
24
1344

skipif mysql # not compatible
query II rowsort label-3688
SELECT 24 AS col1, 21 * + + COUNT ( * ) * 64 col1
----
24
1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3689
SELECT + 31 * CAST( 67 AS SIGNED )
----
2077

skipif mysql # not compatible
query I rowsort label-3689
SELECT + 31 * CAST ( 67 AS INTEGER )
----
2077

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3690
SELECT ALL COUNT( * ) DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL COUNT ( * ) / 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3691
SELECT ALL COUNT( - CAST( NULL AS SIGNED ) ) * - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) * - 93 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3692
SELECT + 37 - - 9 + + CAST( - COUNT( * ) AS SIGNED ) DIV - 32
----
46

skipif mysql # not compatible
query I rowsort label-3692
SELECT + 37 - - 9 + + CAST ( - COUNT ( * ) AS INTEGER ) / - 32
----
46

query I rowsort
SELECT DISTINCT ( + + 86 )
----
86

query II rowsort
SELECT ALL + 79 AS col1, + 44 * 64
----
79
2816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3695
SELECT - 59 DIV COUNT( * ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-3695
SELECT - 59 / COUNT ( * ) col2
----
-59

query I rowsort
SELECT + + 33 + + 72 * - 70 * + + 16 + + 17
----
-80590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3697
SELECT + 77 DIV + CAST( COUNT( * ) AS SIGNED ) - - 56
----
133

skipif mysql # not compatible
query I rowsort label-3697
SELECT + 77 / + CAST ( COUNT ( * ) AS INTEGER ) - - 56
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT ALL - 64 DIV 71 DIV + 28 * 6
----
0

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL - 64 / 71 / + 28 * 6
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT - + ( 77 ) * 36 + + CAST( - 25 AS SIGNED ) AS col0
----
-2797

skipif mysql # not compatible
query I rowsort label-3699
SELECT - + ( 77 ) * 36 + + CAST ( - 25 AS INTEGER ) AS col0
----
-2797

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3700
SELECT ALL 28 DIV 9 * COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL 28 / 9 * COUNT ( * )
----
3

query I rowsort
SELECT COALESCE ( + - 3, - 75, + 13 )
----
-3

query I rowsort
SELECT DISTINCT + - 67
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT ALL - ( ( CASE + - 47 WHEN + 55 * - + CAST( - 26 AS SIGNED ) THEN - 4 - + 93 + + 45 + - + 48 END ) ) / - 45 + - + 44 - - - COALESCE ( 11, + 20 ) * - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL - ( ( CASE + - 47 WHEN + 55 * - + CAST ( - 26 AS INTEGER ) THEN - 4 - + 93 + + 45 + - + 48 END ) ) / - 45 + - + 44 - - - COALESCE ( 11, + 20 ) * - 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3704
SELECT 67 * + + ( 23 ) DIV - COUNT( ALL - 65 ) + - - 22 + - 22 * + 29 + - 4 AS col1
----
-2161

skipif mysql # not compatible
query I rowsort label-3704
SELECT 67 * + + ( 23 ) / - COUNT ( ALL - 65 ) + - - 22 + - 22 * + 29 + - 4 AS col1
----
-2161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3705
SELECT DISTINCT MIN( - 77 ) DIV 16 * - 59 + + + 57
----
293

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT MIN ( - 77 ) / 16 * - 59 + + + 57
----
293

query I rowsort
SELECT ALL + + ( 18 ) AS col0
----
18

query I rowsort
SELECT + 38 + + + 2 + + 23
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ALL - 98 * COUNT( ALL - 55 ) * + 33 + + 82
----
-3152

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL - 98 * COUNT ( ALL - 55 ) * + 33 + + 82
----
-3152

query I rowsort
SELECT + + ( 12 )
----
12

query I rowsort
SELECT ALL + + 30
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT ALL - 83 * - COUNT( * ) + - + CAST( NULL AS SIGNED ) + - ( MAX( DISTINCT + 50 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - 83 * - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + - ( MAX ( DISTINCT + 50 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT + - 57 * + COUNT( - + 78 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3712
SELECT + - 57 * + COUNT ( - + 78 ) AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3713
SELECT - + 69 * CAST( - 16 AS SIGNED ) * 15 + + 94 + 70 DIV + 3 col1, - 55 AS col2
----
16677
-55

skipif mysql # not compatible
query II rowsort label-3713
SELECT - + 69 * CAST ( - 16 AS INTEGER ) * 15 + + 94 + 70 / + 3 col1, - 55 AS col2
----
16677
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3714
SELECT DISTINCT + + 48 AS col1, + AVG ( + + 49 ) * - - CASE - + COUNT( * ) WHEN + ( - 30 ) THEN + NULLIF ( - 12, ( + 44 ) ) + + - 39 WHEN - 9 THEN + 56 - + CAST( NULL AS SIGNED ) / - + 32 END - - 20 AS col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-3714
SELECT DISTINCT + + 48 AS col1, + AVG ( + + 49 ) * - - CASE - + COUNT ( * ) WHEN + ( - 30 ) THEN + NULLIF ( - 12, ( + 44 ) ) + + - 39 WHEN - 9 THEN + 56 - + CAST ( NULL AS INTEGER ) / - + 32 END - - 20 AS col2
----
48
NULL

query II rowsort
SELECT ALL + 30 col2, NULLIF ( 95, + ( - 65 ) ) col1
----
30
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + ( COALESCE ( - 87, + - 16 * - - 93 * + 38 * 39, + + COUNT( * ) - - 50 ) ) * + NULLIF ( + 25, + 83 / + 45 ) * COUNT( * ) + + + 82 + - - 10 * - ( + + 42 )
----
-2513

skipif mysql # not compatible
query I rowsort label-3716
SELECT + ( COALESCE ( - 87, + - 16 * - - 93 * + 38 * 39, + + COUNT ( * ) - - 50 ) ) * + NULLIF ( + 25, + 83 / + 45 ) * COUNT ( * ) + + + 82 + - - 10 * - ( + + 42 )
----
-2513

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3717
SELECT ALL MAX( - + CAST( 1 AS SIGNED ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL MAX ( - + CAST ( 1 AS INTEGER ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT - 27 + + 34 + 32 * COUNT( * ) * + 21
----
679

skipif mysql # not compatible
query I rowsort label-3718
SELECT - 27 + + 34 + 32 * COUNT ( * ) * + 21
----
679

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT 74 * ( 24 ) * - COUNT( * ) * - COUNT( * ) - 1 - 96 AS col0
----
1679

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT 74 * ( 24 ) * - COUNT ( * ) * - COUNT ( * ) - 1 - 96 AS col0
----
1679

query I rowsort
SELECT 19 * - + 71 * + - 57 col0
----
76893

onlyif mysql # DIV for integer division: 
query I rowsort label-3721
SELECT DISTINCT + 92 DIV - 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT + 92 / - 47 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT 35 - 98 + + - NULLIF ( - + 97, - AVG ( 48 ) / + 44 - + COUNT( DISTINCT - 93 ) - 93 ) + - + 84 * + 23 * - + 36 * - - 42 AS col1
----
2921218

skipif mysql # not compatible
query I rowsort label-3722
SELECT 35 - 98 + + - NULLIF ( - + 97, - AVG ( 48 ) / + 44 - + COUNT ( DISTINCT - 93 ) - 93 ) + - + 84 * + 23 * - + 36 * - - 42 AS col1
----
2921218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3723
SELECT COUNT( * ) DIV COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3723
SELECT COUNT ( * ) / COUNT ( * ) AS col2
----
1

query I rowsort
SELECT 9 + 82 AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3725
SELECT ALL + CASE - COUNT( * ) WHEN + - 15 THEN NULL ELSE - CASE + 69 WHEN 66 * - COUNT( * ) - - COALESCE ( 98, - 6 ) / + COUNT( * ) THEN - COUNT( * ) ELSE - COUNT( * ) * + NULLIF ( CAST( - AVG ( ALL + - 27 ) AS SIGNED ), 94 + + - CASE 57 WHEN - 14 + - NULLIF ( 91, + COUNT( * ) ) THEN CAST( NULL AS SIGNED ) WHEN + 48 THEN 33 * 90 + 74 END - + 9 * 89 ) * + 28 END END * ( 43 )
----
32508

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL + CASE - COUNT ( * ) WHEN + - 15 THEN NULL ELSE - CASE + 69 WHEN 66 * - COUNT ( * ) - - COALESCE ( 98, - 6 ) / + COUNT ( * ) THEN - COUNT ( * ) ELSE - COUNT ( * ) * + NULLIF ( CAST ( - AVG ( ALL + - 27 ) AS INTEGER ), 94 + + - CASE 57 WHEN - 14 + - NULLIF ( 91, + COUNT ( * ) ) THEN CAST ( NULL AS INTEGER ) WHEN + 48 THEN 33 * 90 + 74 END - + 9 * 89 ) * + 28 END END * ( 43 )
----
32508

onlyif mysql # aggregate syntax: 
query II rowsort label-3726
SELECT 24 + - 33, - 63 * COALESCE ( + - 32, - - 47 / - 97 ) * + 6 * - 55 + + ( - 46 ) + 75 + - 29 - 38 / - 18 * - 42 / + CASE - + SUM( ALL + 20 ) WHEN - 69 THEN + SUM( ALL - ( - 42 ) ) ELSE NULL END col1
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-3726
SELECT 24 + - 33, - 63 * COALESCE ( + - 32, - - 47 / - 97 ) * + 6 * - 55 + + ( - 46 ) + 75 + - 29 - 38 / - 18 * - 42 / + CASE - + SUM ( ALL + 20 ) WHEN - 69 THEN + SUM ( ALL - ( - 42 ) ) ELSE NULL END col1
----
-9
NULL

query I rowsort
SELECT 53 + - + 46 * - 44
----
2077

query I rowsort
SELECT DISTINCT 11 AS col0
----
11

query I rowsort
SELECT 83 * + 55 AS col1
----
4565

onlyif mysql # aggregate syntax: 
query II rowsort label-3730
SELECT DISTINCT + - 4 + + 59 col2, COUNT( * ) col2
----
55
1

skipif mysql # not compatible
query II rowsort label-3730
SELECT DISTINCT + - 4 + + 59 col2, COUNT ( * ) col2
----
55
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3731
SELECT 75 DIV - + 74 + 40 - - 87 + COUNT( * ) * 82 * - 71 - + 9 - - 59
----
-5646

skipif mysql # not compatible
query I rowsort label-3731
SELECT 75 / - + 74 + 40 - - 87 + COUNT ( * ) * 82 * - 71 - + 9 - - 59
----
-5646

query I rowsort
SELECT DISTINCT - - NULLIF ( + 63, 96 / AVG ( 97 ) - - + 13 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT DISTINCT + MAX( - + 74 ) * 88
----
-6512

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT + MAX ( - + 74 ) * 88
----
-6512

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT DISTINCT + ( COUNT( * ) ) + + - 40
----
-39

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT + ( COUNT ( * ) ) + + - 40
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT ALL - MIN( DISTINCT + 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - MIN ( DISTINCT + 31 ) AS col2
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3736
SELECT + ( + + COUNT( * ) ) DIV - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3736
SELECT + ( + + COUNT ( * ) ) / - 51 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL + - MIN( ALL + 92 ) + - 12 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL + - MIN ( ALL + 92 ) + - 12 AS col0
----
-104

query I rowsort
SELECT DISTINCT 1 * + 51 AS col0
----
51

query I rowsort
SELECT ALL - ( - + 72 ) AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3740
SELECT 21 * + 61 AS col0, + CAST( NULL AS SIGNED )
----
1281
NULL

skipif mysql # not compatible
query II rowsort label-3740
SELECT 21 * + 61 AS col0, + CAST ( NULL AS INTEGER )
----
1281
NULL

query I rowsort
SELECT + + 8 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT - MAX( ALL - + 16 ) - + COUNT( * ) - - - 55 + - 40
----
-80

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT - MAX ( ALL - + 16 ) - + COUNT ( * ) - - - 55 + - 40
----
-80

query I rowsort
SELECT ALL 42 - - 82 col2
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3744
SELECT DISTINCT 46 DIV COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT 46 / COUNT ( * )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT 1 DIV MAX( ALL + 3 )
----
0

skipif mysql # not compatible
query I rowsort label-3745
SELECT 1 / MAX ( ALL + 3 )
----
0

query I rowsort
SELECT DISTINCT - - COALESCE ( - - 69, + 59 + + 73 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3747
SELECT DISTINCT - 77 AS col0, COUNT( * ) * + 25
----
-77
25

skipif mysql # not compatible
query II rowsort label-3747
SELECT DISTINCT - 77 AS col0, COUNT ( * ) * + 25
----
-77
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT DISTINCT + 96 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT + 96 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 54 AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT CAST( NULL AS SIGNED ) * + NULLIF ( + 94, 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT CAST ( NULL AS INTEGER ) * + NULLIF ( + 94, 42 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL NULLIF ( - 15, 47 ) * - 87 * 68 * ( - COUNT( * ) ) + 67 AS col0
----
-88673

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL NULLIF ( - 15, 47 ) * - 87 * 68 * ( - COUNT ( * ) ) + 67 AS col0
----
-88673

query I rowsort
SELECT 37 + - ( ( + ( - 14 ) ) ) AS col1
----
51

query I rowsort
SELECT 44 * - + ( 80 ) * - - 11 - + 33 AS col1
----
-38753

query I rowsort
SELECT DISTINCT + 34 * + 54
----
1836

onlyif mysql # DIV for integer division: 
query I rowsort label-3755
SELECT DISTINCT 13 DIV - - 14
----
0

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT 13 / - - 14
----
0

query I rowsort
SELECT 34 * - - 17
----
578

query I rowsort
SELECT 69 * + + 84 AS col1
----
5796

query I rowsort
SELECT 43 * 20 * 31
----
26660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3759
SELECT ALL + + 2 + + CASE WHEN + 15 IS NOT NULL THEN + SUM( + - 90 ) * + 31 * - - 16 WHEN NULL IS NULL THEN - 60 WHEN COUNT( * ) IS NULL THEN NULL ELSE + 34 DIV - 90 END - - 96 + + COUNT( * )
----
-44541

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL + + 2 + + CASE WHEN + 15 IS NOT NULL THEN + SUM ( + - 90 ) * + 31 * - - 16 WHEN NULL IS NULL THEN - 60 WHEN COUNT ( * ) IS NULL THEN NULL ELSE + 34 / - 90 END - - 96 + + COUNT ( * )
----
-44541

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT - MIN( ALL - - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-3760
SELECT - MIN ( ALL - - 3 )
----
-3

query I rowsort
SELECT ALL + + 26 + - + 19 AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT ALL + + COUNT( * ) + 13 + + - 9 * + COUNT( * ) + - + CAST( NULL AS SIGNED ) - + 81 / - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + + COUNT ( * ) + 13 + + - 9 * + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) - + 81 / - 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT DISTINCT 76 * - - 57 + + 58 * + + NULLIF ( 47, + + CASE + COUNT( * ) WHEN 69 THEN - + 59 + - - 6 ELSE + + 0 END + - 45 + 8 ) - - 84 * - COUNT( * ) AS col0
----
6974

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT 76 * - - 57 + + 58 * + + NULLIF ( 47, + + CASE + COUNT ( * ) WHEN 69 THEN - + 59 + - - 6 ELSE + + 0 END + - 45 + 8 ) - - 84 * - COUNT ( * ) AS col0
----
6974

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3764
SELECT 65 DIV + COUNT( * ) + + 74 + 97 + COUNT( * )
----
237

skipif mysql # not compatible
query I rowsort label-3764
SELECT 65 / + COUNT ( * ) + + 74 + 97 + COUNT ( * )
----
237

onlyif mysql # aggregate syntax: 
query II rowsort label-3765
SELECT + 56 AS col0, - CASE - - 21 WHEN + 46 * + 56 * - AVG ( - 85 ) * 78 + - COUNT( * ) + 99 * + 86 / + NULLIF ( + - 6, + 45 ) + - 29 - + 79 THEN NULL WHEN + 34 + 27 / + - 41 + 69 THEN + MIN( - 8 ) WHEN + 49 THEN - 49 ELSE NULL END * MAX( DISTINCT 36 ) AS col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-3765
SELECT + 56 AS col0, - CASE - - 21 WHEN + 46 * + 56 * - AVG ( - 85 ) * 78 + - COUNT ( * ) + 99 * + 86 / + NULLIF ( + - 6, + 45 ) + - 29 - + 79 THEN NULL WHEN + 34 + 27 / + - 41 + 69 THEN + MIN ( - 8 ) WHEN + 49 THEN - 49 ELSE NULL END * MAX ( DISTINCT 36 ) AS col1
----
56
NULL

query I rowsort
SELECT DISTINCT - - 85 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT 0 + + 99 * COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-3767
SELECT 0 + + 99 * COUNT ( * )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3768
SELECT - 29 * - - 56 + ( + 43 ) AS col2, + 38 * - + CAST( - 63 AS SIGNED )
----
-1581
2394

skipif mysql # not compatible
query II rowsort label-3768
SELECT - 29 * - - 56 + ( + 43 ) AS col2, + 38 * - + CAST ( - 63 AS INTEGER )
----
-1581
2394

query I rowsort
SELECT 46 + - 81 AS col2
----
-35

query I rowsort
SELECT ALL - + 12
----
-12

query I rowsort
SELECT + + 11 * + 49 * - 62 + - 24 AS col0
----
-33442

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL - 96 * - 26 - + + ( + COALESCE ( + - 65, - 58 - + - 21 * - COUNT( * ), - - COUNT( * ) ) ) AS col0
----
2561

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL - 96 * - 26 - + + ( + COALESCE ( + - 65, - 58 - + - 21 * - COUNT ( * ), - - COUNT ( * ) ) ) AS col0
----
2561

query I rowsort
SELECT + 96 * - 2 * - + 71 * 69
----
940608

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT ALL - SUM( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL - SUM ( - 0 )
----
0

query I rowsort
SELECT DISTINCT + 13 * 84
----
1092

onlyif mysql # aggregate syntax: 
query II rowsort label-3776
SELECT ALL - MIN( DISTINCT + - 84 ) * - 31, 15 * 5 - 5 * - 93 AS col1
----
-2604
540

skipif mysql # not compatible
query II rowsort label-3776
SELECT ALL - MIN ( DISTINCT + - 84 ) * - 31, 15 * 5 - 5 * - 93 AS col1
----
-2604
540

query I rowsort
SELECT - - 74 + + 96 AS col0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT - - 17 * + + 79 + + + MAX( 2 ) AS col2
----
1345

skipif mysql # not compatible
query I rowsort label-3778
SELECT - - 17 * + + 79 + + + MAX ( 2 ) AS col2
----
1345

query I rowsort
SELECT + - 49 AS col0
----
-49

query I rowsort
SELECT ALL + ( 77 )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3781
SELECT + 56 DIV 23
----
2

skipif mysql # not compatible
query I rowsort label-3781
SELECT + 56 / 23
----
2

query I rowsort
SELECT - 68 * - 35 AS col2
----
2380

query I rowsort
SELECT DISTINCT + 70 col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3784
SELECT + 20 DIV 3
----
6

skipif mysql # not compatible
query I rowsort label-3784
SELECT + 20 / 3
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT DISTINCT + MIN( ALL + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT + MIN ( ALL + 63 )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT ALL CAST( 86 AS SIGNED ) + - + 1 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL CAST ( 86 AS INTEGER ) + - + 1 AS col2
----
85

query I rowsort
SELECT + 37 - + 46 AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3788
SELECT - ( CASE + + NULLIF ( 68, + 72 * - ( + 70 ) ) WHEN COALESCE ( CAST( + 40 AS SIGNED ), 38 ) THEN + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT - ( CASE + + NULLIF ( 68, + 72 * - ( + 70 ) ) WHEN COALESCE ( CAST ( + 40 AS INTEGER ), 38 ) THEN + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) END )
----
NULL

query I rowsort
SELECT + 54 + - 70 * - 63 * 71
----
313164

query I rowsort
SELECT DISTINCT 66 + - 49 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL 24 * + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL 24 * + COUNT ( * ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - 36 + - 54 * + - 21 + + + MAX( - 86 )
----
1012

skipif mysql # not compatible
query I rowsort label-3792
SELECT - 36 + - 54 * + - 21 + + + MAX ( - 86 )
----
1012

query I rowsort
SELECT - CASE + + 5 WHEN + 55 * + 22 THEN + 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT + MIN( ALL + - 77 ) + ( 43 )
----
-34

skipif mysql # not compatible
query I rowsort label-3794
SELECT + MIN ( ALL + - 77 ) + ( 43 )
----
-34

query I rowsort
SELECT + 77 + + 56 * + 31
----
1813

query I rowsort
SELECT ALL 47 + + CASE 85 WHEN + 69 THEN 96 - + 60 * + 26 END * + 66
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + + 16, 4 * - 9 ) AS col0
----
16

query I rowsort
SELECT DISTINCT 73 AS col1
----
73

query I rowsort
SELECT + 35 * 18
----
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3800
SELECT ALL 74 DIV - COUNT( * ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL 74 / - COUNT ( * ) AS col1
----
-74

query I rowsort
SELECT - + 14 + - - 55 AS col0
----
41

query II rowsort
SELECT ALL - 75 * 5, - 16 AS col1
----
-375
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT - SUM( DISTINCT - 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3803
SELECT - SUM ( DISTINCT - 35 ) AS col1
----
35

query I rowsort
SELECT + + 7 AS col1
----
7

query I rowsort
SELECT ALL + + 54 AS col2
----
54

query I rowsort
SELECT ALL + 84 * + 92
----
7728

query I rowsort
SELECT - 93 * + 20 + 51 AS col1
----
-1809

query I rowsort
SELECT ALL + 82 col0
----
82

query I rowsort
SELECT + 60 * + 62
----
3720

query I rowsort
SELECT DISTINCT + CASE + + 63 WHEN - 10 THEN NULL ELSE - 48 END
----
-48

query I rowsort
SELECT - 44 * - 85 * 87 / + 98 / - + CASE 62 WHEN - 22 THEN - + 45 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3812
SELECT COALESCE ( - 97, - - CASE + 12 WHEN 60 + + COUNT( * ) - NULLIF ( + + 95, - CASE - - 60 WHEN + 73 * + 27 THEN + SUM( ALL + - 57 ) * 42 * + 44 END ) - - - 9 / + - MIN( DISTINCT + 64 ) - - 63 THEN NULL WHEN + + 1 THEN - + 41 + + 20 WHEN - CAST( NULL AS DECIMAL ) * - ( COUNT( * ) ) + COUNT( * ) THEN NULL ELSE 80 END, 75 * + 95 + - 8 * + 79 )
----
-97

skipif mysql # not compatible
query I rowsort label-3812
SELECT COALESCE ( - 97, - - CASE + 12 WHEN 60 + + COUNT ( * ) - NULLIF ( + + 95, - CASE - - 60 WHEN + 73 * + 27 THEN + SUM ( ALL + - 57 ) * 42 * + 44 END ) - - - 9 / + - MIN ( DISTINCT + 64 ) - - 63 THEN NULL WHEN + + 1 THEN - + 41 + + 20 WHEN - CAST ( NULL AS REAL ) * - ( COUNT ( * ) ) + COUNT ( * ) THEN NULL ELSE 80 END, 75 * + 95 + - 8 * + 79 )
----
-97

query I rowsort
SELECT - 14 + + 92 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT - COUNT( * ) * 85 - - ( 46 )
----
-39

skipif mysql # not compatible
query I rowsort label-3814
SELECT - COUNT ( * ) * 85 - - ( 46 )
----
-39

query I rowsort
SELECT ALL + ( 44 )
----
44

query II rowsort
SELECT ALL + 8 AS col1, 66 col2
----
8
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT + MIN( ALL 84 )
----
84

skipif mysql # not compatible
query I rowsort label-3817
SELECT + MIN ( ALL 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT + COALESCE ( - + 67, + - ( 64 ) * 17 + + 8 + - COUNT( * ) )
----
-67

skipif mysql # not compatible
query I rowsort label-3818
SELECT + COALESCE ( - + 67, + - ( 64 ) * 17 + + 8 + - COUNT ( * ) )
----
-67

query I rowsort
SELECT - 37 + + 49
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3820
SELECT DISTINCT NULLIF ( - CAST( 50 AS SIGNED ), - 31 - - 5 - - 41 * + - 28 ) * + + COUNT( ALL - CAST( NULL AS SIGNED ) ) * - NULLIF ( - 46, - + 23 ) * - 50 * COUNT( * ) * - 40 + + + ( 93 ) + + 47
----
140

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT NULLIF ( - CAST ( 50 AS INTEGER ), - 31 - - 5 - - 41 * + - 28 ) * + + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * - NULLIF ( - 46, - + 23 ) * - 50 * COUNT ( * ) * - 40 + + + ( 93 ) + + 47
----
140

query I rowsort
SELECT ALL + ( 39 ) * 33 + - 16
----
1271

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3822
SELECT DISTINCT 60 DIV + 6 * - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT 60 / + 6 * - COUNT ( * )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3823
SELECT ALL 22 * 36 + + 13 - + 35 + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL 22 * 36 + + 13 - + 35 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 24 * - 84 AS col0
----
-2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3825
SELECT + 66 + - - ( + 2 ) + - 9 + ( 54 ) * NULLIF ( - 89, - + 47 * + - 14 - - COALESCE ( + + SUM( ALL 83 ), 19, + - ( 56 ) ) + - 34 * + 34 DIV + 39 ) DIV 61 - 31 * + - 50 * + + 73
----
113131

skipif mysql # not compatible
query I rowsort label-3825
SELECT + 66 + - - ( + 2 ) + - 9 + ( 54 ) * NULLIF ( - 89, - + 47 * + - 14 - - COALESCE ( + + SUM ( ALL 83 ), 19, + - ( 56 ) ) + - 34 * + 34 / + 39 ) / 61 - 31 * + - 50 * + + 73
----
113131

onlyif mysql # aggregate syntax: 
query II rowsort label-3826
SELECT ALL 5 * 16 + + + 3, 33 * - + 90 * + 58 - + 13 + COUNT( * ) AS col2
----
83
-172272

skipif mysql # not compatible
query II rowsort label-3826
SELECT ALL 5 * 16 + + + 3, 33 * - + 90 * + 58 - + 13 + COUNT ( * ) AS col2
----
83
-172272

query I rowsort
SELECT - + 23 - - 61 AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3828
SELECT - 32 * + + 82 * NULLIF ( + + 23, - COUNT( * ) + - + 35 ) + - 25 * + COUNT( * ) DIV - 92 + 99
----
-60253

skipif mysql # not compatible
query I rowsort label-3828
SELECT - 32 * + + 82 * NULLIF ( + + 23, - COUNT ( * ) + - + 35 ) + - 25 * + COUNT ( * ) / - 92 + 99
----
-60253

onlyif mysql # aggregate syntax: 
query II rowsort label-3829
SELECT + + MIN( + 50 ) + + 5 AS col1, + COUNT( * ) * + 39 + COUNT( * ) AS col0
----
55
40

skipif mysql # not compatible
query II rowsort label-3829
SELECT + + MIN ( + 50 ) + + 5 AS col1, + COUNT ( * ) * + 39 + COUNT ( * ) AS col0
----
55
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3830
SELECT ALL CASE + - ( - 75 ) WHEN + COUNT( * ) THEN NULL WHEN + AVG ( - 61 ) THEN NULL ELSE + 34 * 6 * + NULLIF ( + 53, - 50 ) END - - NULLIF ( - MAX( ALL + 71 ), - + 27 ), - 47 AS col0
----
10741
-47

skipif mysql # not compatible
query II rowsort label-3830
SELECT ALL CASE + - ( - 75 ) WHEN + COUNT ( * ) THEN NULL WHEN + AVG ( - 61 ) THEN NULL ELSE + 34 * 6 * + NULLIF ( + 53, - 50 ) END - - NULLIF ( - MAX ( ALL + 71 ), - + 27 ), - 47 AS col0
----
10741
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT ALL COUNT( ALL 29 )
----
1

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL COUNT ( ALL 29 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT DISTINCT - 35 - - 1 + + + 71 * + + 92 + + 75 DIV - 38
----
6497

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT - 35 - - 1 + + + 71 * + + 92 + + 75 / - 38
----
6497

query I rowsort
SELECT + + COALESCE ( - ( - + NULLIF ( + + 28, + - 88 ) ), + 90, + 61 + - 78, + + 38 ) * 88 + - 2
----
2462

query I rowsort
SELECT DISTINCT + ( - - 4 ) AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3835
SELECT DISTINCT + 55 - + 56 - - 80, - COUNT( * ) DIV - - 53 AS col2
----
79
0

skipif mysql # not compatible
query II rowsort label-3835
SELECT DISTINCT + 55 - + 56 - - 80, - COUNT ( * ) / - - 53 AS col2
----
79
0

query I rowsort
SELECT - 91 - + 45 + - + 8
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT ALL - + 92 / - 15 * - CAST( NULL AS SIGNED ) + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL - + 92 / - 15 * - CAST ( NULL AS INTEGER ) + 12 AS col1
----
NULL

query I rowsort
SELECT ALL - + 74 AS col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3839
SELECT 30 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-3839
SELECT 30 / + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT + 58 + - ( COUNT( * ) ) * 68
----
-10

skipif mysql # not compatible
query I rowsort label-3840
SELECT + 58 + - ( COUNT ( * ) ) * 68
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT + - ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3841
SELECT + - ( + - COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3842
SELECT + 41 - + - CAST( + 32 AS SIGNED ) + - COUNT( * ) DIV - + 66
----
73

skipif mysql # not compatible
query I rowsort label-3842
SELECT + 41 - + - CAST ( + 32 AS INTEGER ) + - COUNT ( * ) / - + 66
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL 10 * + NULLIF ( - 23, 58 * + 48 ) + + COUNT( - - 45 ) col1
----
-229

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL 10 * + NULLIF ( - 23, 58 * + 48 ) + + COUNT ( - - 45 ) col1
----
-229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3844
SELECT 56 * + + 39 + + 8 * + COUNT( 71 ) - + - COUNT( * ) * - 68 DIV NULLIF ( 78, + + 52 - + + 33 - - + 66 ) AS col1
----
2192

skipif mysql # not compatible
query I rowsort label-3844
SELECT 56 * + + 39 + + 8 * + COUNT ( 71 ) - + - COUNT ( * ) * - 68 / NULLIF ( 78, + + 52 - + + 33 - - + 66 ) AS col1
----
2192

query I rowsort
SELECT ALL 9 + + + 39 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT - MIN( - 89 ) + + + 99
----
188

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - MIN ( - 89 ) + + + 99
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT DISTINCT 61 + + MAX( DISTINCT - 24 ) + + - 13 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT 61 + + MAX ( DISTINCT - 24 ) + + - 13 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT 37 + - COUNT( * ) + COUNT( * ) + - 70 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3848
SELECT 37 + - COUNT ( * ) + COUNT ( * ) + - 70 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT - MAX( + 43 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT - MAX ( + 43 ) col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT + 93 + + COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT + 93 + + COUNT ( * ) AS col1
----
94

query I rowsort
SELECT - 44 * + 98 + 32
----
-4280

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT ALL + COALESCE ( 30, - - 89 ) + + 17 + - 61 + + 96 + 92 * + - 5 * - 68 * + COUNT( * )
----
31362

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL + COALESCE ( 30, - - 89 ) + + 17 + - 61 + + 96 + 92 * + - 5 * - 68 * + COUNT ( * )
----
31362

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3853
SELECT ALL - SUM( - 57 ) + - 10 DIV 86
----
57

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL - SUM ( - 57 ) + - 10 / 86
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT COUNT( * ) * + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3854
SELECT COUNT ( * ) * + 32 AS col2
----
32

query II rowsort
SELECT 3 AS col1, + 72
----
3
72

query I rowsort
SELECT ALL - ( - + 21 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT DISTINCT - COUNT( * ) AS col0, 75 * + 87
----
-1
6525

skipif mysql # not compatible
query II rowsort label-3857
SELECT DISTINCT - COUNT ( * ) AS col0, 75 * + 87
----
-1
6525

query I rowsort
SELECT DISTINCT + 75 + - ( + 19 ) - 86 col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT ALL - 12 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - 12 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 57 - + - 41
----
-16

query I rowsort
SELECT DISTINCT + 3 * - - 62
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT DISTINCT + 30 DIV + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT + 30 / + 77 AS col0
----
0

query I rowsort
SELECT 72 * + - 67
----
-4824

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3864
SELECT 38 col1, - 36 * + CAST( 93 AS SIGNED ) AS col1
----
38
-3348

skipif mysql # not compatible
query II rowsort label-3864
SELECT 38 col1, - 36 * + CAST ( 93 AS INTEGER ) AS col1
----
38
-3348

query I rowsort
SELECT ALL + 12 * - 57 AS col0
----
-684

query II rowsort
SELECT - 29 AS col0, - 54 col2
----
-29
-54

query I rowsort
SELECT + ( + + 88 ) AS col1
----
88

query I rowsort
SELECT 6 + 20 AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3869
SELECT CAST( + - ( 5 ) AS SIGNED ) * - - 16 * - - 8 + + COUNT( * ), - ( NULLIF ( - 86, 17 ) ) AS col2
----
-639
86

skipif mysql # not compatible
query II rowsort label-3869
SELECT CAST ( + - ( 5 ) AS INTEGER ) * - - 16 * - - 8 + + COUNT ( * ), - ( NULLIF ( - 86, 17 ) ) AS col2
----
-639
86

query II rowsort
SELECT - 63 AS col0, 73 AS col0
----
-63
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3871
SELECT ALL 92 DIV + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL 92 / + COUNT ( * ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT SUM( - + 99 ) + - + 53
----
-152

skipif mysql # not compatible
query I rowsort label-3872
SELECT SUM ( - + 99 ) + - + 53
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ALL CASE COUNT( ( - 74 ) ) WHEN + ( + 17 ) THEN + - COUNT( * ) ELSE - 22 END AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL CASE COUNT ( ( - 74 ) ) WHEN + ( + 17 ) THEN + - COUNT ( * ) ELSE - 22 END AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL - 92 * - - MAX( - - 71 ) * + COUNT( * ) AS col1
----
-6532

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL - 92 * - - MAX ( - - 71 ) * + COUNT ( * ) AS col1
----
-6532

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT + COUNT( + - 78 ) + + - 42 + + 63
----
22

skipif mysql # not compatible
query I rowsort label-3875
SELECT + COUNT ( + - 78 ) + + - 42 + + 63
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL + COALESCE ( - COUNT( * ), + - 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + COALESCE ( - COUNT ( * ), + - 60 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT DISTINCT CASE + COUNT( * ) WHEN + 7 THEN NULL ELSE - COALESCE ( + + 23, + - 3 + 92 ) END
----
-23

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT CASE + COUNT ( * ) WHEN + 7 THEN NULL ELSE - COALESCE ( + + 23, + - 3 + 92 ) END
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3878
SELECT CAST( NULL AS SIGNED ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT 26 AS col2, + 67
----
26
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL + 32 + + COUNT( * ) * - 41 + 50
----
41

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL + 32 + + COUNT ( * ) * - 41 + 50
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT - CAST( NULL AS SIGNED ) + - + 53 * 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT - CAST ( NULL AS INTEGER ) + - + 53 * 37 AS col1
----
NULL

query I rowsort
SELECT 93 * + 8 AS col1
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT ALL COUNT( * ) + + 44 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL COUNT ( * ) + + 44 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL 91 + - 2 + 98 + + MIN( ALL - 75 ) - + 25 * 56 AS col1
----
-1288

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL 91 + - 2 + 98 + + MIN ( ALL - 75 ) - + 25 * 56 AS col1
----
-1288

query II rowsort
SELECT DISTINCT 20 + 1 AS col2, NULLIF ( + 65, 82 + - - 7 ) AS col1
----
21
65

query I rowsort
SELECT DISTINCT ( + + 64 ) + + + 86 AS col2
----
150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3887
SELECT ALL 55 + - CAST( NULL AS DECIMAL ) + - 5 / 5 + - 66 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL 55 + - CAST ( NULL AS REAL ) + - 5 / 5 + - 66 * + COUNT ( * )
----
NULL

query I rowsort
SELECT 18 - - 11
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT SUM( ALL 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3889
SELECT SUM ( ALL 21 ) AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT - COUNT( * ) * + - COALESCE ( 18, + COUNT( * ) DIV + + 69 + 54 ) - + 33 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-3890
SELECT - COUNT ( * ) * + - COALESCE ( 18, + COUNT ( * ) / + + 69 + 54 ) - + 33 AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3891
SELECT CAST( - 95 AS SIGNED ) * 21 AS col0
----
-1995

skipif mysql # not compatible
query I rowsort label-3891
SELECT CAST ( - 95 AS INTEGER ) * 21 AS col0
----
-1995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3892
SELECT ALL CAST( NULL AS SIGNED ) / - SUM( - + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL CAST ( NULL AS INTEGER ) / - SUM ( - + 76 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3893
SELECT 25 DIV - 19 * COUNT( * ) - 33 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-3893
SELECT 25 / - 19 * COUNT ( * ) - 33 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT DISTINCT 84 * - MAX( ALL - + 16 ) AS col2
----
1344

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT 84 * - MAX ( ALL - + 16 ) AS col2
----
1344

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3895
SELECT COUNT( + + CAST( + 96 AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-3895
SELECT COUNT ( + + CAST ( + 96 AS REAL ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3896
SELECT CAST( SUM( + 4 ) AS SIGNED ) * - 39 + + 65 * - 43 AS col0
----
-2951

skipif mysql # not compatible
query I rowsort label-3896
SELECT CAST ( SUM ( + 4 ) AS INTEGER ) * - 39 + + 65 * - 43 AS col0
----
-2951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT ALL CAST( NULL AS SIGNED ) / COALESCE ( + 91, 83 * ( - - ( - - 50 ) ) ) * - ( - 46 ) * + ( - 70 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL CAST ( NULL AS INTEGER ) / COALESCE ( + 91, 83 * ( - - ( - - 50 ) ) ) * - ( - 46 ) * + ( - 70 ) col0
----
NULL

query II rowsort
SELECT DISTINCT 48 * - 11 AS col1, 61 + + + 55 + - 62
----
-528
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT 78 * - + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-3899
SELECT 78 * - + COUNT ( * )
----
-78

query I rowsort
SELECT ALL - 14 AS col1
----
-14

query I rowsort
SELECT ALL 42 - - 20 col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT 90 + + MIN( DISTINCT + - 47 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-3902
SELECT 90 + + MIN ( DISTINCT + - 47 ) AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT DISTINCT + CAST( 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT + CAST ( 21 AS INTEGER )
----
21

query I rowsort
SELECT ALL ( + CASE 2 WHEN + - ( - + 40 ) THEN + 92 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT + CASE MIN( + 25 ) WHEN + 2 THEN ( - - 65 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT + CASE MIN ( + 25 ) WHEN + 2 THEN ( - - 65 ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3906
SELECT ALL + - 83 DIV - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL + - 83 / - 93 AS col1
----
0

query I rowsort
SELECT - + 36 AS col0
----
-36

query I rowsort
SELECT - 13 - - + 53
----
40

query I rowsort
SELECT DISTINCT - 10 col2
----
-10

query I rowsort
SELECT - 40 + - 26 col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT ALL - ( MIN( + 92 ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL - ( MIN ( + 92 ) ) AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) + + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) + + 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT + COUNT( DISTINCT + 63 ) + 17
----
18

skipif mysql # not compatible
query I rowsort label-3913
SELECT + COUNT ( DISTINCT + 63 ) + 17
----
18

query I rowsort
SELECT DISTINCT + ( - 55 )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3915
SELECT 20 DIV ( COUNT( * ) ) - 21 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3915
SELECT 20 / ( COUNT ( * ) ) - 21 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3916
SELECT + ( - 12 ) - COUNT( * ) AS col2, + 10 + - + COUNT( * )
----
-13
9

skipif mysql # not compatible
query II rowsort label-3916
SELECT + ( - 12 ) - COUNT ( * ) AS col2, + 10 + - + COUNT ( * )
----
-13
9

query I rowsort
SELECT ( - - 12 ) AS col2
----
12

query I rowsort
SELECT ALL 67 * - - 79 - 83 AS col0
----
5210

onlyif mysql # aggregate syntax: 
query II rowsort label-3919
SELECT + COUNT( * ) AS col2, 21
----
1
21

skipif mysql # not compatible
query II rowsort label-3919
SELECT + COUNT ( * ) AS col2, 21
----
1
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3920
SELECT ALL + ( - COUNT( DISTINCT + + 80 ) ) * - + 7 + + ( + COALESCE ( 78, - 55 DIV 60 + 14 ) ) * + 58 + + COUNT( * )
----
4532

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL + ( - COUNT ( DISTINCT + + 80 ) ) * - + 7 + + ( + COALESCE ( 78, - 55 / 60 + 14 ) ) * + 58 + + COUNT ( * )
----
4532

query I rowsort
SELECT DISTINCT 7 * - 90 AS col2
----
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3922
SELECT + 97 * 63 * 86 + 71 + + - CASE - SUM( ALL 5 ) WHEN + 9 + - 13 + + COALESCE ( - 53, 79 * + 33 + - + 0 + + 51, 40 ) THEN - 16 - - 43 ELSE + - 57 + - CASE - - COUNT( * ) WHEN - 99 * + MIN( - + 53 ) * + + ( - - 68 ) + + COALESCE ( - + 82, 52 * ( + 57 ) + 93 ) THEN 50 WHEN + 17 + 84 THEN - 19 ELSE - NULLIF ( CAST( + 34 AS SIGNED ), - NULLIF ( COUNT( * ), 91 ) + - 73 ) END END AS col0
----
525640

skipif mysql # not compatible
query I rowsort label-3922
SELECT + 97 * 63 * 86 + 71 + + - CASE - SUM ( ALL 5 ) WHEN + 9 + - 13 + + COALESCE ( - 53, 79 * + 33 + - + 0 + + 51, 40 ) THEN - 16 - - 43 ELSE + - 57 + - CASE - - COUNT ( * ) WHEN - 99 * + MIN ( - + 53 ) * + + ( - - 68 ) + + COALESCE ( - + 82, 52 * ( + 57 ) + 93 ) THEN 50 WHEN + 17 + 84 THEN - 19 ELSE - NULLIF ( CAST ( + 34 AS INTEGER ), - NULLIF ( COUNT ( * ), 91 ) + - 73 ) END END AS col0
----
525640

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT + 54 * COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-3923
SELECT + 54 * COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT COUNT( * ) * + + COUNT( * ) + + CASE - 58 WHEN + ( + 19 ) THEN - COUNT( CASE + 9 WHEN + 45 THEN NULL ELSE + 35 END ) + - 61 END + 31 + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT COUNT ( * ) * + + COUNT ( * ) + + CASE - 58 WHEN + ( + 19 ) THEN - COUNT ( CASE + 9 WHEN + 45 THEN NULL ELSE + 35 END ) + - 61 END + 31 + 86 AS col0
----
NULL

query I rowsort
SELECT + ( - 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT + COUNT( * ) + + SUM( + + 75 ) * - 53 AS col0
----
-3974

skipif mysql # not compatible
query I rowsort label-3926
SELECT + COUNT ( * ) + + SUM ( + + 75 ) * - 53 AS col0
----
-3974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3927
SELECT + CAST( - NULLIF ( - COUNT( * ), - 68 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3927
SELECT + CAST ( - NULLIF ( - COUNT ( * ), - 68 ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 39 AS col1
----
39

query I rowsort
SELECT DISTINCT + 64 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL + 75 * SUM( DISTINCT - - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL + 75 * SUM ( DISTINCT - - 0 )
----
0

query I rowsort
SELECT + - 11 * - 90 - - 13 AS col1
----
1003

onlyif mysql # aggregate syntax: 
query II rowsort label-3932
SELECT ALL + COUNT( * ) AS col2, - 47
----
1
-47

skipif mysql # not compatible
query II rowsort label-3932
SELECT ALL + COUNT ( * ) AS col2, - 47
----
1
-47

query II rowsort
SELECT + + ( - ( - NULLIF ( + 1, 58 * - ( 17 ) * 26 ) ) ) AS col2, + ( - 61 )
----
1
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3934
SELECT 20 * + + COUNT( * ) + - CAST( NULL AS SIGNED ) + - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT 20 * + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 52 AS col2
----
NULL

query I rowsort
SELECT ALL 44 * + + 24 + 3 AS col0
----
1059

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL 18 * + 56 + - COUNT( * ) + COUNT( * ) * ( + + 85 )
----
1092

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL 18 * + 56 + - COUNT ( * ) + COUNT ( * ) * ( + + 85 )
----
1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT - 57 + 74 + - 75 + + 88 * CAST( - 93 AS SIGNED )
----
-8242

skipif mysql # not compatible
query I rowsort label-3937
SELECT - 57 + 74 + - 75 + + 88 * CAST ( - 93 AS INTEGER )
----
-8242

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * 65 * + 56 AS col2
----
3640

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * 65 * + 56 AS col2
----
3640

query I rowsort
SELECT ALL 41 + + + 51 * + + 0 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT - - ( COUNT( * ) ) + + 36
----
37

skipif mysql # not compatible
query I rowsort label-3940
SELECT - - ( COUNT ( * ) ) + + 36
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT - COUNT( DISTINCT + + 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-3941
SELECT - COUNT ( DISTINCT + + 85 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT ALL MIN( DISTINCT - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL MIN ( DISTINCT - 11 ) AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3943
SELECT - + 79 + - COUNT( * ) + + 52 + + CASE - COUNT( * ) WHEN + 92 + - - SUM( ALL - CAST( + 95 AS DECIMAL ) ) * + 91 * - 32 THEN 27 + 88 END * COUNT( * ) - - CASE - CASE - + 58 WHEN + + 63 + - 49 - - COUNT( * ) * + - COUNT( * ) THEN + NULLIF ( + COUNT( + 64 ), + 23 ) ELSE - 54 END WHEN + - COUNT( * ) THEN + 80 ELSE - 12 * + NULLIF ( - COUNT( * ), ( 7 ) * - 11 ) - 84 END * 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT - + 79 + - COUNT ( * ) + + 52 + + CASE - COUNT ( * ) WHEN + 92 + - - SUM ( ALL - CAST ( + 95 AS REAL ) ) * + 91 * - 32 THEN 27 + 88 END * COUNT ( * ) - - CASE - CASE - + 58 WHEN + + 63 + - 49 - - COUNT ( * ) * + - COUNT ( * ) THEN + NULLIF ( + COUNT ( + 64 ), + 23 ) ELSE - 54 END WHEN + - COUNT ( * ) THEN + 80 ELSE - 12 * + NULLIF ( - COUNT ( * ), ( 7 ) * - 11 ) - 84 END * 24 AS col0
----
NULL

query I rowsort
SELECT ALL + CASE NULLIF ( - 78, - 35 / + ( - + 82 ) * - + 88 + - + 52 ) WHEN 17 THEN - + 80 * + - 24 * + 76 ELSE NULL END + - 51 * + + 5
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3945
SELECT ALL - - CAST( + 94 AS SIGNED ) + + 93 AS col1, 13
----
187
13

skipif mysql # not compatible
query II rowsort label-3945
SELECT ALL - - CAST ( + 94 AS INTEGER ) + + 93 AS col1, 13
----
187
13

query I rowsort
SELECT - + ( - 13 ) AS col0
----
13

query II rowsort
SELECT DISTINCT - 71 + - 14 + - + 96 AS col0, + 78
----
-181
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - MIN( ALL + 29 ) + 85 + 11 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-3948
SELECT - MIN ( ALL + 29 ) + 85 + 11 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL - - COUNT( * ) * - 77 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL - - COUNT ( * ) * - 77 AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3950
SELECT + 62 * + - CAST( - COUNT( * ) AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-3950
SELECT + 62 * + - CAST ( - COUNT ( * ) AS INTEGER )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3951
SELECT - 68 * + - 58 * + - CAST( NULL AS SIGNED ) / COUNT( * ) * - - 93 * + 8 * + ( 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT - 68 * + - 58 * + - CAST ( NULL AS INTEGER ) / COUNT ( * ) * - - 93 * + 8 * + ( 12 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3952
SELECT DISTINCT - ( - 8 ) * + MAX( DISTINCT - + 50 ), 92 DIV + 96 AS col1
----
-400
0

skipif mysql # not compatible
query II rowsort label-3952
SELECT DISTINCT - ( - 8 ) * + MAX ( DISTINCT - + 50 ), 92 / + 96 AS col1
----
-400
0

query I rowsort
SELECT ALL ( + 60 )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3954
SELECT - COALESCE ( - 43, - 27 + - - 13 ) + + 11 + + COUNT( * ) - + 32 * 35 - 96, + 99 AS col1
----
-1161
99

skipif mysql # not compatible
query II rowsort label-3954
SELECT - COALESCE ( - 43, - 27 + - - 13 ) + + 11 + + COUNT ( * ) - + 32 * 35 - 96, + 99 AS col1
----
-1161
99

query I rowsort
SELECT ALL ( 32 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT DISTINCT CAST( + 77 AS SIGNED ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT CAST ( + 77 AS INTEGER ) AS col0
----
77

query I rowsort
SELECT ALL - 89 - + + 38 + + ( + 34 ) * - 13
----
-569

query I rowsort
SELECT ALL + 25 - - 43 AS col1
----
68

query I rowsort
SELECT ALL + 91 col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3960
SELECT ALL 96 DIV - + 83
----
-1

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL 96 / - + 83
----
-1

query I rowsort
SELECT ALL + ( + - 23 ) AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3962
SELECT - COUNT( + ( + COALESCE ( - - 13, - - COALESCE ( - 13, 80 * 72 + - 76 ) / + + CAST( - 33 AS SIGNED ) ) ) ) * - + 86 * - - 93 * + ( - 49 )
----
-391902

skipif mysql # not compatible
query I rowsort label-3962
SELECT - COUNT ( + ( + COALESCE ( - - 13, - - COALESCE ( - 13, 80 * 72 + - 76 ) / + + CAST ( - 33 AS INTEGER ) ) ) ) * - + 86 * - - 93 * + ( - 49 )
----
-391902

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT - COUNT( * ) * - ( + MIN( + ( + 90 ) ) )
----
90

skipif mysql # not compatible
query I rowsort label-3963
SELECT - COUNT ( * ) * - ( + MIN ( + ( + 90 ) ) )
----
90

query I rowsort
SELECT 26 * + + 26 - + 99
----
577

query I rowsort
SELECT + 56 * + 79 - 31
----
4393

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT - COUNT( * ) + - COUNT( * ) * - CASE - + 56 WHEN + 61 THEN 23 / + 88 + + - COUNT( * ) * - 19 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT - COUNT ( * ) + - COUNT ( * ) * - CASE - + 56 WHEN + 61 THEN 23 / + 88 + + - COUNT ( * ) * - 19 END AS col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 25, + ( 98 ) * - + 94 * 8 ) AS col2
----
-25

query I rowsort
SELECT ALL 88 * + 88 col1
----
7744

query I rowsort
SELECT DISTINCT - NULLIF ( - - 27, + + 58 * 92 + - 27 )
----
-27

query I rowsort
SELECT ALL 45 + - 56 + - - 7
----
-4

query II rowsort
SELECT DISTINCT - 18 * + + 81 col2, 72
----
-1458
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT ALL - - CASE + 65 WHEN + 99 THEN 65 + COUNT( * ) ELSE NULL END col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3972
SELECT ALL - - CASE + 65 WHEN + 99 THEN 65 + COUNT ( * ) ELSE NULL END col2, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT COALESCE ( + + 51, + NULLIF ( 98, - COUNT( * ) ), + - 58 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3973
SELECT COALESCE ( + + 51, + NULLIF ( 98, - COUNT ( * ) ), + - 58 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT - SUM( - 3 ) * - 2 - - + 61
----
55

skipif mysql # not compatible
query I rowsort label-3974
SELECT - SUM ( - 3 ) * - 2 - - + 61
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL + 94 + - 88 + - + NULLIF ( COUNT( * ), - NULLIF ( - 70, - 90 ) ) * - + 75 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL + 94 + - 88 + - + NULLIF ( COUNT ( * ), - NULLIF ( - 70, - 90 ) ) * - + 75 AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3976
SELECT + CASE - 79 WHEN + 80 * + CAST( NULL AS DECIMAL ) THEN - - 11 * + + 88 + 92 + - 33 + + COUNT( * ) ELSE - 3 * COUNT( * ) + + - 44 END
----
-47

skipif mysql # not compatible
query I rowsort label-3976
SELECT + CASE - 79 WHEN + 80 * + CAST ( NULL AS REAL ) THEN - - 11 * + + 88 + 92 + - 33 + + COUNT ( * ) ELSE - 3 * COUNT ( * ) + + - 44 END
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT 30 * - - 42 + + - MAX( - 42 ) AS col0
----
1302

skipif mysql # not compatible
query I rowsort label-3977
SELECT 30 * - - 42 + + - MAX ( - 42 ) AS col0
----
1302

onlyif mysql # DIV for integer division: 
query I rowsort label-3978
SELECT + 8 DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3978
SELECT + 8 / + 81 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3979
SELECT - CASE - 26 WHEN - COUNT( * ) THEN NULL ELSE + COUNT( * ) END * + 63 AS col1, 99 * - COUNT( * ) AS col0
----
-63
-99

skipif mysql # not compatible
query II rowsort label-3979
SELECT - CASE - 26 WHEN - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END * + 63 AS col1, 99 * - COUNT ( * ) AS col0
----
-63
-99

query I rowsort
SELECT DISTINCT 47 + + 67
----
114

query I rowsort
SELECT ALL + ( - 84 )
----
-84

query II rowsort
SELECT ALL - 70 * - ( + 65 ) + + 5 AS col1, - 63
----
4555
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT ALL 75 + CAST( - 85 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL 75 + CAST ( - 85 AS INTEGER )
----
-10

query I rowsort
SELECT ALL - 78 AS col0
----
-78

query I rowsort
SELECT ( + ( 37 ) ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3986
SELECT COUNT( * ) - 30 + - - 79 * - 21 * + 89 AS col2, 86 col2
----
-147680
86

skipif mysql # not compatible
query II rowsort label-3986
SELECT COUNT ( * ) - 30 + - - 79 * - 21 * + 89 AS col2, 86 col2
----
-147680
86

query I rowsort
SELECT 99 * + 8
----
792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3988
SELECT 27 + CASE + NULLIF ( + - 76, + COUNT( * ) ) WHEN - 97 THEN NULL WHEN - COUNT( ALL + + 64 ) THEN NULL WHEN + CAST( - 1 AS SIGNED ) * + 2 + + + 59 THEN + 82 END * ( COUNT( * ) ) + COALESCE ( CAST( NULL AS SIGNED ), - ( + 78 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT 27 + CASE + NULLIF ( + - 76, + COUNT ( * ) ) WHEN - 97 THEN NULL WHEN - COUNT ( ALL + + 64 ) THEN NULL WHEN + CAST ( - 1 AS INTEGER ) * + 2 + + + 59 THEN + 82 END * ( COUNT ( * ) ) + COALESCE ( CAST ( NULL AS INTEGER ), - ( + 78 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT 63 * - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-3989
SELECT 63 * - COUNT ( * )
----
-63

query I rowsort
SELECT ALL + 57 - 17
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3991
SELECT 62 - + MAX( 75 ) + + 72 DIV - MIN( DISTINCT 77 )
----
-13

skipif mysql # not compatible
query I rowsort label-3991
SELECT 62 - + MAX ( 75 ) + + 72 / - MIN ( DISTINCT 77 )
----
-13

query I rowsort
SELECT ALL - 67 * + 69 AS col1
----
-4623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3993
SELECT 72 + - CAST( + COUNT( * ) AS SIGNED ), CASE WHEN - 74 BETWEEN + 85 AND 54 / - 81 + 33 * 91 + + + MIN( DISTINCT + 79 ) THEN - 94 / + CASE 5 WHEN + 8 * 17 THEN 82 END + + - 55 ELSE NULL END AS col2
----
71
NULL

skipif mysql # not compatible
query II rowsort label-3993
SELECT 72 + - CAST ( + COUNT ( * ) AS INTEGER ), CASE WHEN - 74 BETWEEN + 85 AND 54 / - 81 + 33 * 91 + + + MIN ( DISTINCT + 79 ) THEN - 94 / + CASE 5 WHEN + 8 * 17 THEN 82 END + + - 55 ELSE NULL END AS col2
----
71
NULL

query I rowsort
SELECT 43 * + + 16 AS col0
----
688

query II rowsort
SELECT + 88 AS col2, + 58 + - - 54 AS col1
----
88
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3996
SELECT MAX( - - 56 ) + - 77 + AVG ( - + 92 ) * - 91 * - CASE + - 24 WHEN - CAST( NULL AS SIGNED ) * - - 69 THEN NULL WHEN + + 1 THEN + 61 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT MAX ( - - 56 ) + - 77 + AVG ( - + 92 ) * - 91 * - CASE + - 24 WHEN - CAST ( NULL AS INTEGER ) * - - 69 THEN NULL WHEN + + 1 THEN + 61 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3997
SELECT COUNT( + + 75 ) DIV + - ( + 82 ) - 45 + 45 AS col1, 80 AS col1
----
0
80

skipif mysql # not compatible
query II rowsort label-3997
SELECT COUNT ( + + 75 ) / + - ( + 82 ) - 45 + 45 AS col1, 80 AS col1
----
0
80

query I rowsort
SELECT 68 * - 42
----
-2856

query I rowsort
SELECT + 89 * - - 62 + + 78 * 60 AS col2
----
10198

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT COUNT( * ) - + 23 + 56
----
34

skipif mysql # not compatible
query I rowsort label-4000
SELECT COUNT ( * ) - + 23 + 56
----
34

query I rowsort
SELECT ALL 83 + ( - 79 ) AS col1
----
4

query I rowsort
SELECT + 54 col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL - MAX( ALL - 44 ) + + 29 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL - MAX ( ALL - 44 ) + + 29 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT 96 * COUNT( * ) + 74 AS col0
----
170

skipif mysql # not compatible
query I rowsort label-4004
SELECT 96 * COUNT ( * ) + 74 AS col0
----
170

query I rowsort
SELECT - 17 + - 41 AS col0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4006
SELECT ALL - - 9, - 26 DIV + COUNT( + - 24 ) AS col0
----
9
-26

skipif mysql # not compatible
query II rowsort label-4006
SELECT ALL - - 9, - 26 / + COUNT ( + - 24 ) AS col0
----
9
-26

query I rowsort
SELECT - 92 + + 55 * + 78 * + 72
----
308788

query I rowsort
SELECT ALL - 74 * - 0
----
0

query II rowsort
SELECT ALL - - 76 AS col2, 64 AS col0
----
76
64

query I rowsort
SELECT DISTINCT + - 35 + + - 23 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT DISTINCT - COALESCE ( + 27, - CASE COALESCE ( 80, + + 32 ) WHEN MAX( 28 ) * - - ( + 81 ) + 72 + 26 * - - 70 + + 20 THEN - 79 + 50 WHEN - COUNT( * ) THEN NULL WHEN - COUNT( * ) - - CASE + 45 WHEN - + 42 THEN - - 87 ELSE + ( + - SUM( ALL - 14 ) ) END THEN + - 12 WHEN + 57 + - ( - - ( - + 92 ) ) - + MIN( - ( 20 ) ) / 90 THEN + 7 - 40 ELSE 66 * 83 END ) * + 12
----
-324

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT - COALESCE ( + 27, - CASE COALESCE ( 80, + + 32 ) WHEN MAX ( 28 ) * - - ( + 81 ) + 72 + 26 * - - 70 + + 20 THEN - 79 + 50 WHEN - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) - - CASE + 45 WHEN - + 42 THEN - - 87 ELSE + ( + - SUM ( ALL - 14 ) ) END THEN + - 12 WHEN + 57 + - ( - - ( - + 92 ) ) - + MIN ( - ( 20 ) ) / 90 THEN + 7 - 40 ELSE 66 * 83 END ) * + 12
----
-324

query I rowsort
SELECT ALL - + 59 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL - - 22 * - COUNT( * ) + + 24 * - 54 + - SUM( NULLIF ( - 17, - - 8 ) ) AS col2
----
-1301

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL - - 22 * - COUNT ( * ) + + 24 * - 54 + - SUM ( NULLIF ( - 17, - - 8 ) ) AS col2
----
-1301

query II rowsort
SELECT - 18 AS col0, 46 * 69
----
-18
3174

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT ALL + MAX( 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL + MAX ( 1 ) AS col2
----
1

query I rowsort
SELECT + 99 * - 15 + - 27
----
-1512

query I rowsort
SELECT ( - - 14 ) * - - 69 + + 68 AS col1
----
1034

query II rowsort
SELECT DISTINCT - 42, - 64 AS col2
----
-42
-64

query I rowsort
SELECT 73 + 20 + 72
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT COUNT( * ) * - - MAX( ALL + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-4020
SELECT COUNT ( * ) * - - MAX ( ALL + 18 )
----
18

query I rowsort
SELECT DISTINCT 20 * + + ( - - 98 ) * + NULLIF ( + 66, - 20 ) AS col0
----
129360

query I rowsort
SELECT ALL 79 * + 88 AS col0
----
6952

query I rowsort
SELECT 62 + 26 * - 8 AS col0
----
-146

query II rowsort
SELECT ALL 21 AS col2, 78
----
21
78

query I rowsort
SELECT ALL 49 * - - 29 AS col1
----
1421

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT ( + + ( - ( + 73 ) ) ) + - ( - 88 ) + - 48 DIV 15 * 17
----
-36

skipif mysql # not compatible
query I rowsort label-4026
SELECT ( + + ( - ( + 73 ) ) ) + - ( - 88 ) + - 48 / 15 * 17
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-4027
SELECT 49 AS col0, - 63 DIV + ( + + 60 )
----
49
-1

skipif mysql # not compatible
query II rowsort label-4027
SELECT 49 AS col0, - 63 / + ( + + 60 )
----
49
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4028
SELECT 87, COALESCE ( + + COUNT( * ), ( - 88 ) DIV + + ( 82 ) + + + 75 - + - MIN( DISTINCT 8 ) * - 57 * + CAST( NULL AS SIGNED ) + + 11 ) * + 61 + - 34 AS col0
----
87
27

skipif mysql # not compatible
query II rowsort label-4028
SELECT 87, COALESCE ( + + COUNT ( * ), ( - 88 ) / + + ( 82 ) + + + 75 - + - MIN ( DISTINCT 8 ) * - 57 * + CAST ( NULL AS INTEGER ) + + 11 ) * + 61 + - 34 AS col0
----
87
27

query I rowsort
SELECT ALL 43 * + 31
----
1333

query II rowsort
SELECT 92, 66 AS col1
----
92
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4031
SELECT CAST( + + 65 AS SIGNED ) DIV + + 13
----
5

skipif mysql # not compatible
query I rowsort label-4031
SELECT CAST ( + + 65 AS INTEGER ) / + + 13
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4032
SELECT + COUNT( * ) * + NULLIF ( - 90, + + COALESCE ( + + SUM( 42 ), MAX( CAST( ( - - ( 26 ) ) AS SIGNED ) ) * + 51 * - 4 * - COALESCE ( + 5, - - 30 / - + 59 + + - 28, - - COUNT( * ) ) ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-4032
SELECT + COUNT ( * ) * + NULLIF ( - 90, + + COALESCE ( + + SUM ( 42 ), MAX ( CAST ( ( - - ( 26 ) ) AS INTEGER ) ) * + 51 * - 4 * - COALESCE ( + 5, - - 30 / - + 59 + + - 28, - - COUNT ( * ) ) ) ) AS col0
----
-90

query I rowsort
SELECT DISTINCT 42 + - 41 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT ALL + 32 * - 96 + COALESCE ( 60, - CAST( NULL AS SIGNED ) * - - 1 + + 32 + - 65 )
----
-3012

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL + 32 * - 96 + COALESCE ( 60, - CAST ( NULL AS INTEGER ) * - - 1 + + 32 + - 65 )
----
-3012

onlyif mysql # DIV for integer division: 
query II rowsort label-4035
SELECT ALL + 32 col1, - ( + 14 ) DIV - COALESCE ( + 70, + 57, 56 )
----
32
0

skipif mysql # not compatible
query II rowsort label-4035
SELECT ALL + 32 col1, - ( + 14 ) / - COALESCE ( + 70, + 57, 56 )
----
32
0

query I rowsort
SELECT + ( - 47 )
----
-47

query II rowsort
SELECT 15 AS col1, 83 col2
----
15
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT + 63 DIV + 61 col2
----
1

skipif mysql # not compatible
query I rowsort label-4038
SELECT + 63 / + 61 col2
----
1

query II rowsort
SELECT ALL + - 7 AS col0, 68
----
-7
68

query I rowsort
SELECT - + 66 + + COALESCE ( - 7, - 33, + - 41 ) * + 2 + - - NULLIF ( - ( 66 ), + 79 )
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL + MAX( + + 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL + MAX ( + + 17 ) AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4042
SELECT ALL + - NULLIF ( - ( + 56 ), + COUNT( * ) * - 79 * + MAX( 7 ) + - 19 + + COUNT( * ) - - COALESCE ( - 1, + COUNT( * ) ) * + + 44 ) * - 38 - + CAST( 53 AS SIGNED ) AS col1
----
-2181

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL + - NULLIF ( - ( + 56 ), + COUNT ( * ) * - 79 * + MAX ( 7 ) + - 19 + + COUNT ( * ) - - COALESCE ( - 1, + COUNT ( * ) ) * + + 44 ) * - 38 - + CAST ( 53 AS INTEGER ) AS col1
----
-2181

query II rowsort
SELECT ALL + ( - 30 ) AS col1, - 18 AS col1
----
-30
-18

query I rowsort
SELECT - 91 * 81 - 98 AS col0
----
-7469

query II rowsort
SELECT + + 5, - 0 AS col2
----
5
0

query I rowsort
SELECT ( - + 23 )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4047
SELECT - 84 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT - 84 / + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 53 * + 35 + 61
----
-1794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4049
SELECT DISTINCT + COUNT( * ) * 73 * + - CASE 34 WHEN + - 9 THEN 66 END - - CAST( - - 92 AS SIGNED ) * + 58 * - 42 + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT + COUNT ( * ) * 73 * + - CASE 34 WHEN + - 9 THEN 66 END - - CAST ( - - 92 AS INTEGER ) * + 58 * - 42 + 49
----
NULL

query II rowsort
SELECT ALL - 87 AS col2, + 26 AS col2
----
-87
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT + - COUNT( * ) * 13
----
-13

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT + - COUNT ( * ) * 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT ALL NULLIF ( 22, - 12 + 24 / + 59 - + + COUNT( * ) - - ( COUNT( * ) ) )
----
22

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL NULLIF ( 22, - 12 + 24 / + 59 - + + COUNT ( * ) - - ( COUNT ( * ) ) )
----
22

query I rowsort
SELECT DISTINCT + 85 * - 14
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT - COUNT( * ) * - MAX( - - 75 ) col2
----
75

skipif mysql # not compatible
query I rowsort label-4054
SELECT - COUNT ( * ) * - MAX ( - - 75 ) col2
----
75

query I rowsort
SELECT + ( + - 14 ) * + 46 * + - 82
----
52808

query II rowsort
SELECT ALL + 67 + 34 AS col0, 27 AS col0
----
101
27

query I rowsort
SELECT - 25 + 10 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT - COALESCE ( + ( ( + - COUNT( * ) ) ), + 33 * 78 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4058
SELECT - COALESCE ( + ( ( + - COUNT ( * ) ) ), + 33 * 78 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT - ( + COUNT( * ) ) + + 57 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4059
SELECT - ( + COUNT ( * ) ) + + 57 AS col0
----
56

query I rowsort
SELECT ALL + 67 + 25 * + 69
----
1792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT ALL 89 + - CAST( NULL AS SIGNED ) * + + 77 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL 89 + - CAST ( NULL AS INTEGER ) * + + 77 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT + MAX( ALL + + 18 ) + + - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-4062
SELECT + MAX ( ALL + + 18 ) + + - COUNT ( * )
----
17

query I rowsort
SELECT ALL ( - + 8 ) col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT - SUM( ALL 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-4064
SELECT - SUM ( ALL 54 ) AS col0
----
-54

query I rowsort
SELECT + 24 + 70 - + 51 + - 22 * NULLIF ( + + 16, - 15 ) + + + 88 + 75 AS col0
----
-146

query I rowsort
SELECT ALL 30 + ( - 39 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT + 35 + + COUNT( ALL + - ( + + COALESCE ( 16, + COALESCE ( + + 62, + 81 ) ) ) )
----
36

skipif mysql # not compatible
query I rowsort label-4067
SELECT + 35 + + COUNT ( ALL + - ( + + COALESCE ( 16, + COALESCE ( + + 62, + 81 ) ) ) )
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4068
SELECT - - 15 DIV - 24 - + 3 * - + 99
----
297

skipif mysql # not compatible
query I rowsort label-4068
SELECT - - 15 / - 24 - + 3 * - + 99
----
297

query I rowsort
SELECT ALL + ( + - 99 ) AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4070
SELECT COALESCE ( + COUNT( * ), - 80 + COUNT( * ) * + - 76 ) * + ( + - 70 ) * + 64 * + + COUNT( + 51 ) * - + 69 + 99 + CAST( - 6 AS SIGNED ) + - - 49 * COUNT( * ) + + COUNT( * ) * + CASE - 71 WHEN CAST( - 1 AS SIGNED ) - COUNT( + CAST( NULL AS SIGNED ) ) + - + ( + - 82 ) THEN - - ( + 83 ) END + + NULLIF ( 92, - - 17 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT COALESCE ( + COUNT ( * ), - 80 + COUNT ( * ) * + - 76 ) * + ( + - 70 ) * + 64 * + + COUNT ( + 51 ) * - + 69 + 99 + CAST ( - 6 AS INTEGER ) + - - 49 * COUNT ( * ) + + COUNT ( * ) * + CASE - 71 WHEN CAST ( - 1 AS INTEGER ) - COUNT ( + CAST ( NULL AS INTEGER ) ) + - + ( + - 82 ) THEN - - ( + 83 ) END + + NULLIF ( 92, - - 17 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4071
SELECT ALL 43 / 30 * - + CAST( NULL AS SIGNED ) - - AVG ( - - 94 ) + - + 33 * 48 + - 89 + + 17 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL 43 / 30 * - + CAST ( NULL AS INTEGER ) - - AVG ( - - 94 ) + - + 33 * 48 + - 89 + + 17 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4073
SELECT DISTINCT + ( - + COUNT( * ) ), + 62 AS col2
----
-1
62

skipif mysql # not compatible
query II rowsort label-4073
SELECT DISTINCT + ( - + COUNT ( * ) ), + 62 AS col2
----
-1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT - 63 * - 33 + + 79 * COUNT( * )
----
2158

skipif mysql # not compatible
query I rowsort label-4074
SELECT - 63 * - 33 + + 79 * COUNT ( * )
----
2158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4075
SELECT - COUNT( * ) * - 88 * CASE - + 51 WHEN ( 39 ) THEN + 70 WHEN - 82 THEN NULL WHEN - MIN( + 24 ) THEN NULL END, - ( + CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4075
SELECT - COUNT ( * ) * - 88 * CASE - + 51 WHEN ( 39 ) THEN + 70 WHEN - 82 THEN NULL WHEN - MIN ( + 24 ) THEN NULL END, - ( + CAST ( NULL AS INTEGER ) )
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 63 * 28 + + 22
----
1786

query I rowsort
SELECT 99 * ( + 49 ) - + 36 + + - 36 AS col0
----
4779

onlyif mysql # DIV for integer division: 
query I rowsort label-4078
SELECT - 51 DIV - 53 + 82 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4078
SELECT - 51 / - 53 + 82 AS col1
----
82

query I rowsort
SELECT ALL + - 55 * 30
----
-1650

query I rowsort
SELECT ALL + ( - 85 ) * + - 48
----
4080

query I rowsort
SELECT DISTINCT + - 39 AS col1
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-4082
SELECT - + 75 DIV + + 88 AS col2, + 33
----
0
33

skipif mysql # not compatible
query II rowsort label-4082
SELECT - + 75 / + + 88 AS col2, + 33
----
0
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4083
SELECT COALESCE ( - ( - 92 ), - CAST( NULL AS SIGNED ) * + 82, + 48 * 60 )
----
92

skipif mysql # not compatible
query I rowsort label-4083
SELECT COALESCE ( - ( - 92 ), - CAST ( NULL AS INTEGER ) * + 82, + 48 * 60 )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4084
SELECT ALL + COALESCE ( + - 59, 28 + - - 69 * COUNT( * ) * - CASE - ( - 80 ) WHEN - 72 + - 25 THEN ( 17 ) DIV - 11 WHEN + 18 - CASE 2 WHEN + 71 THEN + 26 WHEN + COUNT( * ) + - - 84 THEN - 16 * 41 + + 95 ELSE - SUM( DISTINCT + 77 ) END * + COUNT( * ) DIV + - 56 THEN NULL ELSE - - 65 END, + 99 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL + COALESCE ( + - 59, 28 + - - 69 * COUNT ( * ) * - CASE - ( - 80 ) WHEN - 72 + - 25 THEN ( 17 ) / - 11 WHEN + 18 - CASE 2 WHEN + 71 THEN + 26 WHEN + COUNT ( * ) + - - 84 THEN - 16 * 41 + + 95 ELSE - SUM ( DISTINCT + 77 ) END * + COUNT ( * ) / + - 56 THEN NULL ELSE - - 65 END, + 99 ) AS col0
----
-59

query I rowsort
SELECT ALL ( - + 11 ) * 64 + - 49 + + - 2 + ( 82 ) * - 15
----
-1985

query I rowsort
SELECT CASE + 78 WHEN - 15 + + 97 - + 56 + - 3 THEN + 46 ELSE NULL END
----
NULL

query I rowsort
SELECT - 38 + + - 82 AS col0
----
-120

query I rowsort
SELECT - 55 + + + 64 + + + 19 - - + 68 * + 32 AS col1
----
2204

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT DISTINCT - 26 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT - 26 / - 75
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4090
SELECT - CAST( NULL AS DECIMAL ) + + 36 * - 61 AS col2, - 99 + + + 69 AS col1
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-4090
SELECT - CAST ( NULL AS REAL ) + + 36 * - 61 AS col2, - 99 + + + 69 AS col1
----
NULL
-30

query I rowsort
SELECT DISTINCT + 54 + + 55 + + 66 * - 19 col0
----
-1145

query II rowsort
SELECT 20 col0, 27 * - - 7 - - 4
----
20
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4093
SELECT ALL + NULLIF ( COALESCE ( + 49, - COALESCE ( - - 85, - 49, + 96 DIV - 54 * COUNT( * ) + - - 40, - 91 * + COUNT( * ) * 35 + - + 13 + 24 * + - ( + 87 ) + - 0 * + 32 - - - 9 + 36 ) + - 14 ), - 16 ) + - 11 + + 11 * + 68 + NULLIF ( + 38, + + 89 ) * 15
----
1356

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL + NULLIF ( COALESCE ( + 49, - COALESCE ( - - 85, - 49, + 96 / - 54 * COUNT ( * ) + - - 40, - 91 * + COUNT ( * ) * 35 + - + 13 + 24 * + - ( + 87 ) + - 0 * + 32 - - - 9 + 36 ) + - 14 ), - 16 ) + - 11 + + 11 * + 68 + NULLIF ( + 38, + + 89 ) * 15
----
1356

query I rowsort
SELECT ALL + 63 * - 91 AS col0
----
-5733

query II rowsort
SELECT ALL 41 col1, 0
----
41
0

query II rowsort
SELECT ALL 92 AS col0, 86
----
92
86

query I rowsort
SELECT ALL + 36 + - 20
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT 77 * - + COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4098
SELECT 77 * - + COUNT ( * ) AS col1
----
-77

query II rowsort
SELECT - 50 AS col1, + 68 AS col0
----
-50
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4100
SELECT 55 AS col0, - COUNT( ALL - 7 ) * + + 88 * + 15 + + 36
----
55
-1284

skipif mysql # not compatible
query II rowsort label-4100
SELECT 55 AS col0, - COUNT ( ALL - 7 ) * + + 88 * + 15 + + 36
----
55
-1284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT 32 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT 32 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4102
SELECT DISTINCT 85 DIV 2
----
42

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT 85 / 2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT MAX( DISTINCT - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-4103
SELECT MAX ( DISTINCT - 39 )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4104
SELECT ALL COUNT( * ) - + - 23 + - - 57 + + + 94 + 70 * - 42 * COUNT( * ) + + 60 + - 44 DIV - + 60 AS col2
----
-2705

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL COUNT ( * ) - + - 23 + - - 57 + + + 94 + 70 * - 42 * COUNT ( * ) + + 60 + - 44 / - + 60 AS col2
----
-2705

query I rowsort
SELECT 19 * + 73 AS col2
----
1387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL - + SUM( DISTINCT - 67 ) / ( - 66 ) * - AVG ( ALL - 50 ) / + + 59 - + 39 * + NULLIF ( + 72, 93 * NULLIF ( + COUNT( ALL 48 ), - + 28 ) + 49 + + + CAST( 20 AS SIGNED ) - 75 + 91 * + + COUNT( * ) * - + 14 + + - 46 - + 68 ) * + + 41 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL - + SUM ( DISTINCT - 67 ) / ( - 66 ) * - AVG ( ALL - 50 ) / + + 59 - + 39 * + NULLIF ( + 72, 93 * NULLIF ( + COUNT ( ALL 48 ), - + 28 ) + 49 + + + CAST ( 20 AS INTEGER ) - 75 + 91 * + + COUNT ( * ) * - + 14 + + - 46 - + 68 ) * + + 41 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 53 - 49 + + 34 + ( 21 )
----
-47

query I rowsort
SELECT ALL 25 * + + 5 * - 60 AS col0
----
-7500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4109
SELECT - + CAST( MAX( - 84 ) AS SIGNED ) * 15 * MIN( ALL + + ( + - 12 ) ) / + 31 - + 44 + - - 12 + 7 + + 99 * - - CAST( NULL AS SIGNED ) * 70 * 12 * 1 / - - 36 * - AVG ( 3 ) + + 48 + - COUNT( * ) AS col1, - 51 * - 30 AS col2
----
NULL
1530

skipif mysql # not compatible
query II rowsort label-4109
SELECT - + CAST ( MAX ( - 84 ) AS INTEGER ) * 15 * MIN ( ALL + + ( + - 12 ) ) / + 31 - + 44 + - - 12 + 7 + + 99 * - - CAST ( NULL AS INTEGER ) * 70 * 12 * 1 / - - 36 * - AVG ( 3 ) + + 48 + - COUNT ( * ) AS col1, - 51 * - 30 AS col2
----
NULL
1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4110
SELECT ALL MAX( - - CAST( NULL AS SIGNED ) ) * - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL MAX ( - - CAST ( NULL AS INTEGER ) ) * - 62 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4111
SELECT CASE 26 WHEN + 92 * CAST( NULL AS DECIMAL ) * + AVG ( - 29 ) + ( 80 ) * CASE ( 25 ) WHEN + 40 * 56 + + 22 THEN - 54 END * + 41 THEN - 44 WHEN - 81 THEN NULL END / + 36 / - - ( + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT CASE 26 WHEN + 92 * CAST ( NULL AS REAL ) * + AVG ( - 29 ) + ( 80 ) * CASE ( 25 ) WHEN + 40 * 56 + + 22 THEN - 54 END * + 41 THEN - 44 WHEN - 81 THEN NULL END / + 36 / - - ( + 25 )
----
NULL

query I rowsort
SELECT ( + 69 ) * 31 * + 65 col2
----
139035

query I rowsort
SELECT - 19 * - NULLIF ( + + 78, + - 87 ) - + + 96 * 30 AS col0
----
-1398

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT - CASE - + COUNT( * ) WHEN - 23 * + + 13 - - 60 + - 75 + + 20 + 87 * + + 22 THEN 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT - CASE - + COUNT ( * ) WHEN - 23 * + + 13 - - 60 + - 75 + + 20 + 87 * + + 22 THEN 32 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4115
SELECT 22 DIV + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4115
SELECT 22 / + 34 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4116
SELECT 37 + 86 DIV 37 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4116
SELECT 37 + 86 / 37 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4117
SELECT ALL + MAX( - CAST( NULL AS SIGNED ) ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL + MAX ( - CAST ( NULL AS INTEGER ) ) * + 57
----
NULL

query I rowsort
SELECT DISTINCT - + ( - + 97 )
----
97

query I rowsort
SELECT DISTINCT - + 37 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT - COALESCE ( + COUNT( * ), 74 ) + 98 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT - COALESCE ( + COUNT ( * ), 74 ) + 98 AS col0
----
97

query I rowsort
SELECT + 44 * - - 20 + 61 - + 38
----
903

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL - - 27 * + + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - - 27 * + + COUNT ( * ) AS col2
----
27

query II rowsort
SELECT 91 * + ( + + 94 ) AS col2, + 37 * 81
----
8554
2997

onlyif mysql # aggregate syntax: 
query II rowsort label-4124
SELECT 62 * + 66, + COUNT( * ) - - COUNT( * ) + + + 49 AS col0
----
4092
51

skipif mysql # not compatible
query II rowsort label-4124
SELECT 62 * + 66, + COUNT ( * ) - - COUNT ( * ) + + + 49 AS col0
----
4092
51

query I rowsort
SELECT 98 * - 55
----
-5390

query I rowsort
SELECT ALL + 67 + 47
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL - NULLIF ( - 32, + COUNT( * ) * - + 49 ) + + 23 - MAX( - 97 ) * - - 16 + + + 25 * + 86 * + NULLIF ( + 13, 35 * - 89 )
----
29557

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - NULLIF ( - 32, + COUNT ( * ) * - + 49 ) + + 23 - MAX ( - 97 ) * - - 16 + + + 25 * + 86 * + NULLIF ( + 13, 35 * - 89 )
----
29557

query I rowsort
SELECT DISTINCT 30 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4129
SELECT DISTINCT 19 + + 2, - COUNT( * ) DIV + 53 * - NULLIF ( - 56, - SUM( 22 ) ) AS col0
----
21
0

skipif mysql # not compatible
query II rowsort label-4129
SELECT DISTINCT 19 + + 2, - COUNT ( * ) / + 53 * - NULLIF ( - 56, - SUM ( 22 ) ) AS col0
----
21
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT 71 + + CASE - 22 WHEN + 25 * + - 59 THEN + - COUNT( * ) / + + 93 + - MIN( ALL - 59 ) / - MAX( - 87 ) / - 38 * - MAX( + 74 ) * + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT 71 + + CASE - 22 WHEN + 25 * + - 59 THEN + - COUNT ( * ) / + + 93 + - MIN ( ALL - 59 ) / - MAX ( - 87 ) / - 38 * - MAX ( + 74 ) * + 36 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4131
SELECT ALL 54 - - 5 col1, + COUNT( * ) * + ( - 9 )
----
59
-9

skipif mysql # not compatible
query II rowsort label-4131
SELECT ALL 54 - - 5 col1, + COUNT ( * ) * + ( - 9 )
----
59
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT SUM( DISTINCT - 52 ) + + 22 - - 28
----
-2

skipif mysql # not compatible
query I rowsort label-4132
SELECT SUM ( DISTINCT - 52 ) + + 22 - - 28
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT CAST( + 77 AS SIGNED ) + + 12 + 20 - COALESCE ( - + 70, 39 ) AS col0
----
179

skipif mysql # not compatible
query I rowsort label-4133
SELECT CAST ( + 77 AS INTEGER ) + + 12 + 20 - COALESCE ( - + 70, 39 ) AS col0
----
179

query I rowsort
SELECT 26 * + 92 * 64 col0
----
153088

query I rowsort
SELECT CASE + - 17 WHEN - + 91 THEN NULL ELSE 42 END + COALESCE ( 19, - - 69 ) AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT 6 + 63 DIV + 23 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4136
SELECT 6 + 63 / + 23 AS col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT ALL - 5 - + + 65 + + - COUNT( * ) * + 77 AS col0, + 33
----
-147
33

skipif mysql # not compatible
query II rowsort label-4137
SELECT ALL - 5 - + + 65 + + - COUNT ( * ) * + 77 AS col0, + 33
----
-147
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT 12 * COUNT( + - 7 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4138
SELECT 12 * COUNT ( + - 7 ) AS col1
----
12

query I rowsort
SELECT 57 + + 88 AS col2
----
145

query I rowsort
SELECT 88 + + 75
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL - 46 * + - CASE - COUNT( * ) WHEN + 63 THEN + 75 WHEN + + 53 / + MAX( ALL + ( 10 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL - 46 * + - CASE - COUNT ( * ) WHEN + 63 THEN + 75 WHEN + + 53 / + MAX ( ALL + ( 10 ) ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL + ( - 40 )
----
-40

query I rowsort
SELECT + 84 + - 8 * + 55
----
-356

query I rowsort
SELECT DISTINCT - 96 * - 58
----
5568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4145
SELECT COUNT( * ) + - - COUNT( * ) + - 17 + + 84 * 76 DIV + + MIN( DISTINCT + 66 )
----
81

skipif mysql # not compatible
query I rowsort label-4145
SELECT COUNT ( * ) + - - COUNT ( * ) + - 17 + + 84 * 76 / + + MIN ( DISTINCT + 66 )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4146
SELECT 57 DIV - 3 + 89 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4146
SELECT 57 / - 3 + 89 AS col2
----
70

query I rowsort
SELECT ALL - - 76 AS col1
----
76

query I rowsort
SELECT 44 * - NULLIF ( + 11, + + ( - - 54 ) + + 37 + + - 74 * NULLIF ( - 21, + 95 ) )
----
-484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4149
SELECT ALL 3 / 94 * + - CASE - CAST( NULL AS SIGNED ) WHEN + - 6 THEN - 15 + - - MIN( ALL + 50 ) - + 67 * - + 2 * - + 18 - - 28 * 87 + + ( - + 55 ) ELSE NULL END * - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL 3 / 94 * + - CASE - CAST ( NULL AS INTEGER ) WHEN + - 6 THEN - 15 + - - MIN ( ALL + 50 ) - + 67 * - + 2 * - + 18 - - 28 * 87 + + ( - + 55 ) ELSE NULL END * - 49 AS col2
----
NULL

query I rowsort
SELECT + - 37 AS col1
----
-37

query I rowsort
SELECT ALL 0 * ( + 96 ) + + ( - 62 ) AS col2
----
-62

query I rowsort
SELECT ALL - 34 * - 56 + + 5
----
1909

query I rowsort
SELECT + - 13 AS col2
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4154
SELECT + COUNT( * ) DIV ( + + 12 ) * + 13 * 12 DIV + 58 + - 40
----
-40

skipif mysql # not compatible
query I rowsort label-4154
SELECT + COUNT ( * ) / ( + + 12 ) * + 13 * 12 / + 58 + - 40
----
-40

query II rowsort
SELECT + 16 * 64 + - + 31 + + 63 AS col1, 12 AS col1
----
1056
12

query I rowsort
SELECT 56 * + 21
----
1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4157
SELECT + 20 * - + 26 * - - MAX( 81 ) * + - 16 + - MAX( DISTINCT CAST( - 74 AS SIGNED ) ) AS col2, + CAST( + + 13 AS SIGNED ) * - 57 + + - 45 + + - 21
----
673994
-807

skipif mysql # not compatible
query II rowsort label-4157
SELECT + 20 * - + 26 * - - MAX ( 81 ) * + - 16 + - MAX ( DISTINCT CAST ( - 74 AS INTEGER ) ) AS col2, + CAST ( + + 13 AS INTEGER ) * - 57 + + - 45 + + - 21
----
673994
-807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4158
SELECT + 32 * + ( MIN( 78 ) ) * + + 19 - - + 87 / - 96 + + MAX( DISTINCT 5 ) * + NULLIF ( - MAX( - 99 ), CASE - 21 WHEN + 96 THEN NULL WHEN - 24 THEN - + 54 END ) + + 42 + + 30 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT + 32 * + ( MIN ( 78 ) ) * + + 19 - - + 87 / - 96 + + MAX ( DISTINCT 5 ) * + NULLIF ( - MAX ( - 99 ), CASE - 21 WHEN + 96 THEN NULL WHEN - 24 THEN - + 54 END ) + + 42 + + 30 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 14 + + + 2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4160
SELECT DISTINCT - 63 * + + 71 * + + 95 AS col0, + COUNT( * ) + + 73 AS col2
----
-424935
74

skipif mysql # not compatible
query II rowsort label-4160
SELECT DISTINCT - 63 * + + 71 * + + 95 AS col0, + COUNT ( * ) + + 73 AS col2
----
-424935
74

query I rowsort
SELECT ALL + ( + + 58 )
----
58

query I rowsort
SELECT + ( 38 ) + 47 AS col2
----
85

query II rowsort
SELECT DISTINCT + 58, 4 AS col2
----
58
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ( 66 ) * COUNT( * ) + + 73 * + + 26 + COUNT( * )
----
1965

skipif mysql # not compatible
query I rowsort label-4164
SELECT ( 66 ) * COUNT ( * ) + + 73 * + + 26 + COUNT ( * )
----
1965

query I rowsort
SELECT + 49 + 12
----
61

query I rowsort
SELECT - CASE - 75 WHEN + AVG ( 14 ) * + 18 * - + 82 THEN 42 * - 81 / - NULLIF ( + 76, + 95 + + 1 / + - 10 ) + + AVG ( + ( - 80 ) ) ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT - COUNT( 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-4167
SELECT - COUNT ( 95 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4168
SELECT - 77 * SUM( + COALESCE ( + 89, - + 4 + + 70 * 54, - 71 ) ) DIV MIN( - 24 ) AS col1
----
285

skipif mysql # not compatible
query I rowsort label-4168
SELECT - 77 * SUM ( + COALESCE ( + 89, - + 4 + + 70 * 54, - 71 ) ) / MIN ( - 24 ) AS col1
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL COUNT( * ) * - 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL COUNT ( * ) * - 15 AS col0
----
-15

query I rowsort
SELECT + 6 * 9 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT DISTINCT + MAX( ALL 32 ) - + COUNT( ALL + + 57 )
----
31

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT + MAX ( ALL 32 ) - + COUNT ( ALL + + 57 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT + COUNT( * ) - + - 80 col1
----
81

skipif mysql # not compatible
query I rowsort label-4172
SELECT + COUNT ( * ) - + - 80 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT - 77 * - + 37 * + + SUM( - 98 ) AS col1
----
-279202

skipif mysql # not compatible
query I rowsort label-4173
SELECT - 77 * - + 37 * + + SUM ( - 98 ) AS col1
----
-279202

onlyif mysql # aggregate syntax: 
query II rowsort label-4174
SELECT - 48 AS col1, + MAX( 94 )
----
-48
94

skipif mysql # not compatible
query II rowsort label-4174
SELECT - 48 AS col1, + MAX ( 94 )
----
-48
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL - + 61 + + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL - + 61 + + COUNT ( * )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4176
SELECT DISTINCT - 65 DIV + + COUNT( ALL + CAST( - 48 AS SIGNED ) )
----
-65

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT - 65 / + + COUNT ( ALL + CAST ( - 48 AS INTEGER ) )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT ALL + + COUNT( * ) * + - 73 + + + COUNT( * ) * + 32 * 81
----
2519

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL + + COUNT ( * ) * + - 73 + + + COUNT ( * ) * + 32 * 81
----
2519

query I rowsort
SELECT ALL 31 + - 7 * - 40
----
311

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT - - MIN( DISTINCT 1 ) - + - 88 * COUNT( * ) - + + 64
----
25

skipif mysql # not compatible
query I rowsort label-4179
SELECT - - MIN ( DISTINCT 1 ) - + - 88 * COUNT ( * ) - + + 64
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4180
SELECT ALL - ( - 5 ) DIV + + 32 + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL - ( - 5 ) / + + 32 + - 1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4181
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 72 AS col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-4181
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 72 AS col0
----
NULL
72

query I rowsort
SELECT + - 28 AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4183
SELECT - - COALESCE ( + + SUM( CASE 41 WHEN - - 44 THEN NULL WHEN - 72 + - 13 + - CAST( 27 AS DECIMAL ) * + + 25 THEN NULL WHEN + 52 THEN - 92 ELSE - 53 END ), - COUNT( * ) * + 98, + 8 ) * - 90 + - 53 AS col1
----
4717

skipif mysql # not compatible
query I rowsort label-4183
SELECT - - COALESCE ( + + SUM ( CASE 41 WHEN - - 44 THEN NULL WHEN - 72 + - 13 + - CAST ( 27 AS REAL ) * + + 25 THEN NULL WHEN + 52 THEN - 92 ELSE - 53 END ), - COUNT ( * ) * + 98, + 8 ) * - 90 + - 53 AS col1
----
4717

query I rowsort
SELECT DISTINCT + + 72
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL - - ( - 1 ) * + + 78 - + - 72 + + - COUNT( * ) * - 46 * + + 2
----
86

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL - - ( - 1 ) * + + 78 - + - 72 + + - COUNT ( * ) * - 46 * + + 2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4186
SELECT COUNT( * ) * + 3 DIV 53 + - 31 + - + COUNT( * ) DIV + + ( + - 7 )
----
-31

skipif mysql # not compatible
query I rowsort label-4186
SELECT COUNT ( * ) * + 3 / 53 + - 31 + - + COUNT ( * ) / + + ( + - 7 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT DISTINCT + COALESCE ( - + 57, COUNT( * ) + - MIN( 9 ) * - 34 + - 58, + 31 ) * + 2 + + + 43
----
-71

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT + COALESCE ( - + 57, COUNT ( * ) + - MIN ( 9 ) * - 34 + - 58, + 31 ) * + 2 + + + 43
----
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4188
SELECT + 91 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT + 91 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4189
SELECT DISTINCT + 4 col2, - 9 + + COUNT( * ) AS col2
----
4
-8

skipif mysql # not compatible
query II rowsort label-4189
SELECT DISTINCT + 4 col2, - 9 + + COUNT ( * ) AS col2
----
4
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT - ( 93 ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT - ( 93 ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - 76, - - ( + 61 ) + + ( - - ( - 44 ) ) )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4192
SELECT DISTINCT 15 * COALESCE ( MIN( ALL - - 57 ), COUNT( * ) + 96 * + MIN( + 8 ) + + 44 ) - CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT 15 * COALESCE ( MIN ( ALL - - 57 ), COUNT ( * ) + 96 * + MIN ( + 8 ) + + 44 ) - CAST ( NULL AS REAL ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4193
SELECT + 23 AS col2, + 67 + - CAST( - 62 AS SIGNED ) AS col0
----
23
129

skipif mysql # not compatible
query II rowsort label-4193
SELECT + 23 AS col2, + 67 + - CAST ( - 62 AS INTEGER ) AS col0
----
23
129

query I rowsort
SELECT - ( - + 5 ) * 89 * - 55
----
-24475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4195
SELECT + 25 * ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT + 25 * ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL + 77 * - ( MAX( ALL + 60 ) )
----
-4620

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + 77 * - ( MAX ( ALL + 60 ) )
----
-4620

query I rowsort
SELECT NULLIF ( + 21, - + 78 )
----
21

query I rowsort
SELECT DISTINCT - 32 * - 54
----
1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4199
SELECT - 7 DIV COALESCE ( - - COUNT( * ), 13 * - + COUNT( 51 ) * + COUNT( + 74 ) - - + COUNT( * ) - - COUNT( * ) * - 41, - 86 * 51 - - 3 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-4199
SELECT - 7 / COALESCE ( - - COUNT ( * ), 13 * - + COUNT ( 51 ) * + COUNT ( + 74 ) - - + COUNT ( * ) - - COUNT ( * ) * - 41, - 86 * 51 - - 3 ) AS col0
----
-7

query I rowsort
SELECT + 65 * + 62
----
4030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4201
SELECT ALL - COUNT( * ) * - 31 DIV - + 98 * 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL - COUNT ( * ) * - 31 / - + 98 * 55 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT DISTINCT CAST( + 23 AS SIGNED ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT CAST ( + 23 AS INTEGER ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - - ( + 58 ) * NULLIF ( - + 75, + 76 ) * - 49 + + COUNT( * ) + + + 36 col1
----
213187

skipif mysql # not compatible
query I rowsort label-4203
SELECT - - ( + 58 ) * NULLIF ( - + 75, + 76 ) * - 49 + + COUNT ( * ) + + + 36 col1
----
213187

query I rowsort
SELECT - 91 + 76
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4205
SELECT 45 AS col0, ( - - CASE - 66 WHEN + + 94 + + 68 THEN 24 WHEN - + 24 THEN - CAST( NULL AS SIGNED ) ELSE NULL END ) * - 23 AS col1
----
45
NULL

skipif mysql # not compatible
query II rowsort label-4205
SELECT 45 AS col0, ( - - CASE - 66 WHEN + + 94 + + 68 THEN 24 WHEN - + 24 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) * - 23 AS col1
----
45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT + CASE 18 WHEN - COUNT( * ) * - - 51 / + + 39 THEN + - 82 * 71 + 0 WHEN + 14 + 1 + NULLIF ( + - 1, - COUNT( * ) / NULLIF ( + 47, - + MIN( DISTINCT + 60 ) / + + ( - 88 ) + 56 * - - 28 ) ) THEN NULL WHEN - - 31 - + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT + CASE 18 WHEN - COUNT ( * ) * - - 51 / + + 39 THEN + - 82 * 71 + 0 WHEN + 14 + 1 + NULLIF ( + - 1, - COUNT ( * ) / NULLIF ( + 47, - + MIN ( DISTINCT + 60 ) / + + ( - 88 ) + 56 * - - 28 ) ) THEN NULL WHEN - - 31 - + COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL 35 + - 56 + 35
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT + - ( - ( - + SUM( + 46 ) ) ) - - 54 + + 78 * + + 74
----
5780

skipif mysql # not compatible
query I rowsort label-4208
SELECT + - ( - ( - + SUM ( + 46 ) ) ) - - 54 + + 78 * + + 74
----
5780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4209
SELECT + COALESCE ( 61, COUNT( * ), + SUM( - CAST( + 40 AS SIGNED ) ), 42 * + - 28 DIV + ( - - COUNT( * ) ) - - 70 ) + - + 84 + - 78 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-4209
SELECT + COALESCE ( 61, COUNT ( * ), + SUM ( - CAST ( + 40 AS INTEGER ) ), 42 * + - 28 / + ( - - COUNT ( * ) ) - - 70 ) + - + 84 + - 78 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT DISTINCT + ( - NULLIF ( 98, - - COALESCE ( 87, + CASE + - 0 WHEN 4 / - 81 + + + ( 2 ) * + MIN( DISTINCT - + 14 ) THEN - COUNT( * ) + - 58 * + - 43 * + ( + 71 ) END / + 80 - 98 ) ) ) + 98 - + 39
----
-39

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT + ( - NULLIF ( 98, - - COALESCE ( 87, + CASE + - 0 WHEN 4 / - 81 + + + ( 2 ) * + MIN ( DISTINCT - + 14 ) THEN - COUNT ( * ) + - 58 * + - 43 * + ( + 71 ) END / + 80 - 98 ) ) ) + 98 - + 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT - - MIN( ALL 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4211
SELECT - - MIN ( ALL 67 )
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4212
SELECT + + COUNT( * ) DIV 94 AS col0, 96
----
0
96

skipif mysql # not compatible
query II rowsort label-4212
SELECT + + COUNT ( * ) / 94 AS col0, 96
----
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT DISTINCT COUNT( * ) + 33 + - 36 + - - ( ( 2 ) ) * COALESCE ( - 85, - 49 + - 58 )
----
-172

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT COUNT ( * ) + 33 + - 36 + - - ( ( 2 ) ) * COALESCE ( - 85, - 49 + - 58 )
----
-172

query I rowsort
SELECT ALL - 22 + + 61
----
39

query I rowsort
SELECT + 68 + + 12
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL 38 + + + COUNT( * ) - - NULLIF ( - 22, - 44 ) + + MIN( - - 7 ) * + 42 + + 4 AS col2
----
315

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL 38 + + + COUNT ( * ) - - NULLIF ( - 22, - 44 ) + + MIN ( - - 7 ) * + 42 + + 4 AS col2
----
315

query II rowsort
SELECT + 72 AS col0, 52 * - 62 + - - 17 * 73 AS col2
----
72
-1983

query I rowsort
SELECT + 82 + - 94
----
-12

query I rowsort
SELECT + 21 * + 64 * + 66 AS col1
----
88704

query I rowsort
SELECT ALL 65 + + 62 AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT - COUNT( 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-4221
SELECT - COUNT ( 35 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4222
SELECT - 48 DIV - 30 + 91 + 22 + - 34 - + 69 * - 98 DIV + COUNT( ALL 42 )
----
6842

skipif mysql # not compatible
query I rowsort label-4222
SELECT - 48 / - 30 + 91 + 22 + - 34 - + 69 * - 98 / + COUNT ( ALL 42 )
----
6842

query I rowsort
SELECT 35 + + 95
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-4224
SELECT - COUNT( * ), ( + ( + + COUNT( DISTINCT 36 ) ) ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-4224
SELECT - COUNT ( * ), ( + ( + + COUNT ( DISTINCT 36 ) ) ) AS col2
----
-1
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4225
SELECT ALL + 59 DIV CAST( + 47 AS SIGNED ) * - 14 * + 97
----
-1358

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + 59 / CAST ( + 47 AS INTEGER ) * - 14 * + 97
----
-1358

query I rowsort
SELECT + 56 col2
----
56

query I rowsort
SELECT DISTINCT 3 - + 9
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4228
SELECT 0 * - COUNT( * ) * 69 AS col2, 9 AS col1
----
0
9

skipif mysql # not compatible
query II rowsort label-4228
SELECT 0 * - COUNT ( * ) * 69 AS col2, 9 AS col1
----
0
9

query I rowsort
SELECT DISTINCT - 39 col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT COUNT( * ) * - 39 + + - 15
----
-54

skipif mysql # not compatible
query I rowsort label-4230
SELECT COUNT ( * ) * - 39 + + - 15
----
-54

query I rowsort
SELECT 90 * + + 31
----
2790

query II rowsort
SELECT 26 * NULLIF ( - CASE + 25 WHEN + ( - 79 ) THEN 88 ELSE 28 END, 65 + + 73 ) col2, + 78
----
-728
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT 97 + + 85 + - COUNT( * )
----
181

skipif mysql # not compatible
query I rowsort label-4233
SELECT 97 + + 85 + - COUNT ( * )
----
181

query I rowsort
SELECT - 86 * - - 46 - - 14
----
-3942

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT DISTINCT COUNT( * ) * 42
----
42

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT COUNT ( * ) * 42
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4236
SELECT 16 * - ( + COALESCE ( - - 32, + + 22, CASE - + 38 WHEN 3 * - + COUNT( * ) THEN - 71 ELSE + - 88 END DIV + CAST( - 40 AS SIGNED ) + - CAST( - SUM( ALL + ( - 96 ) ) AS SIGNED ) ) )
----
-512

skipif mysql # not compatible
query I rowsort label-4236
SELECT 16 * - ( + COALESCE ( - - 32, + + 22, CASE - + 38 WHEN 3 * - + COUNT ( * ) THEN - 71 ELSE + - 88 END / + CAST ( - 40 AS INTEGER ) + - CAST ( - SUM ( ALL + ( - 96 ) ) AS INTEGER ) ) )
----
-512

query I rowsort
SELECT 22 + - 17 - 24 AS col2
----
-19

query I rowsort
SELECT DISTINCT - ( 27 ) AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-4239
SELECT 46 * - 70 + + 36 DIV 34
----
-3219

skipif mysql # not compatible
query I rowsort label-4239
SELECT 46 * - 70 + + 36 / 34
----
-3219

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT 41 + + 66 - COUNT( * )
----
106

skipif mysql # not compatible
query I rowsort label-4240
SELECT 41 + + 66 - COUNT ( * )
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT - + SUM( DISTINCT 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-4241
SELECT - + SUM ( DISTINCT 33 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4242
SELECT + 3 * + + 62 DIV + - 28
----
-6

skipif mysql # not compatible
query I rowsort label-4242
SELECT + 3 * + + 62 / + - 28
----
-6

query I rowsort
SELECT 9 + NULLIF ( + 52, - + 39 ) * + CASE - - ( + 46 ) WHEN + 96 - ( 28 ) THEN 29 - + 61 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4244
SELECT ALL - 76 + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - 76 + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4245
SELECT ALL + + 77 + - COUNT( * ) + + 20, - CAST( - 14 AS SIGNED ) AS col0
----
96
14

skipif mysql # not compatible
query II rowsort label-4245
SELECT ALL + + 77 + - COUNT ( * ) + + 20, - CAST ( - 14 AS INTEGER ) AS col0
----
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ALL 69 + COUNT( * ) col0
----
70

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL 69 + COUNT ( * ) col0
----
70

query I rowsort
SELECT DISTINCT 22 AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4248
SELECT + 19 - + ( - 96 ) DIV - MAX( DISTINCT + 59 )
----
18

skipif mysql # not compatible
query I rowsort label-4248
SELECT + 19 - + ( - 96 ) / - MAX ( DISTINCT + 59 )
----
18

query I rowsort
SELECT 58 * + - 67 - - + 48
----
-3838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4250
SELECT DISTINCT - NULLIF ( 4, - COUNT( DISTINCT - 60 ) / + + CASE + 69 WHEN - 69 THEN + 92 * + 9 WHEN - + COUNT( * ) * - 15 * + - 81 + + - MAX( DISTINCT 46 ) / - + 76 * - + ( - + 68 ) * + ( + 87 ) + - 13 * + - NULLIF ( - 7, 21 - - - 78 + - 77 * - - MAX( ALL + 66 ) ) - + 91 * - - 32 * + COUNT( * ) THEN - - COALESCE ( + ( + 74 ), 56 ) * + 95 - - 24 END + - 43 * + 77 + + COALESCE ( CAST( NULL AS SIGNED ), 89 * - ( - MIN( + 85 ) / 34 ), - 1 / + 3, AVG ( 47 ) ) ) * 73
----
-292

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT - NULLIF ( 4, - COUNT ( DISTINCT - 60 ) / + + CASE + 69 WHEN - 69 THEN + 92 * + 9 WHEN - + COUNT ( * ) * - 15 * + - 81 + + - MAX ( DISTINCT 46 ) / - + 76 * - + ( - + 68 ) * + ( + 87 ) + - 13 * + - NULLIF ( - 7, 21 - - - 78 + - 77 * - - MAX ( ALL + 66 ) ) - + 91 * - - 32 * + COUNT ( * ) THEN - - COALESCE ( + ( + 74 ), 56 ) * + 95 - - 24 END + - 43 * + 77 + + COALESCE ( CAST ( NULL AS INTEGER ), 89 * - ( - MIN ( + 85 ) / 34 ), - 1 / + 3, AVG ( 47 ) ) ) * 73
----
-292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4251
SELECT + NULLIF ( - NULLIF ( + MAX( 53 ), - - 40 ), + CAST( + 89 AS SIGNED ) )
----
-53

skipif mysql # not compatible
query I rowsort label-4251
SELECT + NULLIF ( - NULLIF ( + MAX ( 53 ), - - 40 ), + CAST ( + 89 AS INTEGER ) )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4252
SELECT ALL + 30 * - 48 + + ( + 9 ) * - + 68, CASE - AVG ( + 88 ) WHEN - 73 * NULLIF ( + ( - 40 ), + 24 ) + 67 + 23 + + 4 - 47 / - - ( - 28 ) + + - 10 THEN 69 * - ( + + 91 ) + CAST( NULL AS SIGNED ) * + - 94 + - + 57 * - + 36 WHEN + 25 THEN - 28 WHEN MAX( DISTINCT - 3 ) * + + ( + 84 ) - + 82 THEN + - 39 END * COUNT( * ) / - - 1 + + 52 AS col0
----
-2052
NULL

skipif mysql # not compatible
query II rowsort label-4252
SELECT ALL + 30 * - 48 + + ( + 9 ) * - + 68, CASE - AVG ( + 88 ) WHEN - 73 * NULLIF ( + ( - 40 ), + 24 ) + 67 + 23 + + 4 - 47 / - - ( - 28 ) + + - 10 THEN 69 * - ( + + 91 ) + CAST ( NULL AS INTEGER ) * + - 94 + - + 57 * - + 36 WHEN + 25 THEN - 28 WHEN MAX ( DISTINCT - 3 ) * + + ( + 84 ) - + 82 THEN + - 39 END * COUNT ( * ) / - - 1 + + 52 AS col0
----
-2052
NULL

query I rowsort
SELECT 37 * - 25 + + - ( - 61 ) + - 5
----
-869

query I rowsort
SELECT DISTINCT + 97 - 43 AS col0
----
54

query I rowsort
SELECT 71 * 34
----
2414

onlyif mysql # aggregate syntax: 
query II rowsort label-4256
SELECT 7 * + 84 * 81, 28 + MIN( DISTINCT + 96 ) + - + 45 AS col2
----
47628
79

skipif mysql # not compatible
query II rowsort label-4256
SELECT 7 * + 84 * 81, 28 + MIN ( DISTINCT + 96 ) + - + 45 AS col2
----
47628
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT SUM( ALL - + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-4257
SELECT SUM ( ALL - + 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT SUM( ALL + + 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4258
SELECT SUM ( ALL + + 11 ) AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4259
SELECT 26 DIV 77 * - + 18
----
0

skipif mysql # not compatible
query I rowsort label-4259
SELECT 26 / 77 * - + 18
----
0

query I rowsort
SELECT 97 * + 9
----
873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT 32 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT 32 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT ALL 54 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL 54 / + 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4263
SELECT COUNT( * ) DIV + 11
----
0

skipif mysql # not compatible
query I rowsort label-4263
SELECT COUNT ( * ) / + 11
----
0

query II rowsort
SELECT ALL - ( 37 ) * 2 AS col0, 62
----
-74
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT ALL - MIN( ALL - + ( + 95 ) )
----
95

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL - MIN ( ALL - + ( + 95 ) )
----
95

query II rowsort
SELECT 4 AS col0, + 21 * + - 14 * 85 * + 16 AS col0
----
4
-399840

query I rowsort
SELECT 60 * - 55 + - 98 AS col1
----
-3398

query I rowsort
SELECT DISTINCT ( - + 80 ) * 99
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL COUNT( * ) + + - 7 + 71
----
65

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL COUNT ( * ) + + - 7 + 71
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT 79 * + COUNT( * ) - 32
----
47

skipif mysql # not compatible
query I rowsort label-4270
SELECT 79 * + COUNT ( * ) - 32
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-4271
SELECT 85 AS col0, - 53 DIV 65 * 9 * 39
----
85
0

skipif mysql # not compatible
query II rowsort label-4271
SELECT 85 AS col0, - 53 / 65 * 9 * 39
----
85
0

query I rowsort
SELECT 51 * 40 AS col2
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT + MAX( DISTINCT + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-4273
SELECT + MAX ( DISTINCT + 33 )
----
33

query I rowsort
SELECT 28 col0
----
28

query I rowsort
SELECT DISTINCT + 88 + + 81
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT DISTINCT - SUM( + 85 ) + COUNT( 97 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT - SUM ( + 85 ) + COUNT ( 97 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL + - COUNT( * ) + 45 * - + 38 + - + 2
----
-1713

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL + - COUNT ( * ) + 45 * - + 38 + - + 2
----
-1713

query I rowsort
SELECT 57 - 10 col0
----
47

query II rowsort
SELECT - 17 AS col2, - 24
----
-17
-24

query II rowsort
SELECT ALL 28, + 73 * 83 AS col0
----
28
6059

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT + ( 0 ) * - 53 * - + 66 * + + MAX( - + 36 ) + 13 + + ( 14 )
----
27

skipif mysql # not compatible
query I rowsort label-4281
SELECT + ( 0 ) * - 53 * - + 66 * + + MAX ( - + 36 ) + 13 + + ( 14 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT - NULLIF ( - ( + + 81 ), 51 + + COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-4282
SELECT - NULLIF ( - ( + + 81 ), 51 + + COUNT ( * ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT ALL + 95 + + COUNT( ALL - 64 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL + 95 + + COUNT ( ALL - 64 ) AS col1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4284
SELECT - - MIN( - 32 ) + - COUNT( * ) AS col2, + 74 * - 0 DIV - 55 - ( - 11 ) AS col1
----
-33
11

skipif mysql # not compatible
query II rowsort label-4284
SELECT - - MIN ( - 32 ) + - COUNT ( * ) AS col2, + 74 * - 0 / - 55 - ( - 11 ) AS col1
----
-33
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4285
SELECT - CAST( NULL AS SIGNED ) AS col0, - 88 AS col2
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-4285
SELECT - CAST ( NULL AS INTEGER ) AS col0, - 88 AS col2
----
NULL
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT - - SUM( ( - + 19 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-4286
SELECT - - SUM ( ( - + 19 ) )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4287
SELECT - + 14 + - - CAST( + 21 AS SIGNED ) + COUNT( * ) * + - ( 47 ) / + 89 + + - 83 * + + 95 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT - + 14 + - - CAST ( + 21 AS INTEGER ) + COUNT ( * ) * + - ( 47 ) / + 89 + + - 83 * + + 95 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 73 - 97
----
-24

query I rowsort
SELECT ALL - + 37 * + 87
----
-3219

query I rowsort
SELECT - - 40 + 67 * - 86 + - 90 AS col2
----
-5812

query I rowsort
SELECT DISTINCT + 1 - 95
----
-94

query II rowsort
SELECT ALL + 8 col1, + ( - 3 ) * 76 * - 51 AS col0
----
8
11628

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT - SUM( ALL + COALESCE ( - 36, 13 ) ) + - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4293
SELECT - SUM ( ALL + COALESCE ( - 36, 13 ) ) + - COUNT ( * ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL - MAX( DISTINCT + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - MAX ( DISTINCT + 42 )
----
-42

query III rowsort
SELECT + - ( - 42 ) + + 68 AS col2, + 23 AS col2, 77 AS col1
----
110
23
77

query I rowsort
SELECT DISTINCT CASE - 52 WHEN - 97 THEN - 23 * + ( - 51 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL NULLIF ( ( - 29 ), - MIN( DISTINCT - + 7 ) / - COUNT( * ) ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL NULLIF ( ( - 29 ), - MIN ( DISTINCT - + 7 ) / - COUNT ( * ) ) AS col0
----
-29

query I rowsort
SELECT - 20 * + + COALESCE ( 89, + 83 - 20 + + 80 ) AS col2
----
-1780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4299
SELECT + 26 * 59 DIV - + MIN( - - 13 ) col1
----
-118

skipif mysql # not compatible
query I rowsort label-4299
SELECT + 26 * 59 / - + MIN ( - - 13 ) col1
----
-118

query I rowsort
SELECT DISTINCT + NULLIF ( 50, + 50 * + 0 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT 2 * - 79 * NULLIF ( + COALESCE ( - NULLIF ( COUNT( * ), - + 92 ), + 19, 94, + ( - - 6 ) ), + + 22 + - NULLIF ( 83, - ( - - 95 ) / - + 52 ) + + 90 + - 84 * 80 ) AS col0
----
158

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT 2 * - 79 * NULLIF ( + COALESCE ( - NULLIF ( COUNT ( * ), - + 92 ), + 19, 94, + ( - - 6 ) ), + + 22 + - NULLIF ( 83, - ( - - 95 ) / - + 52 ) + + 90 + - 84 * 80 ) AS col0
----
158

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4302
SELECT DISTINCT - 73 * + + 80, 50 + - 88 + 7 * NULLIF ( + CAST( NULL AS DECIMAL ), + 4 * + + 30 ) AS col2
----
-5840
NULL

skipif mysql # not compatible
query II rowsort label-4302
SELECT DISTINCT - 73 * + + 80, 50 + - 88 + 7 * NULLIF ( + CAST ( NULL AS REAL ), + 4 * + + 30 ) AS col2
----
-5840
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL 48 * + ( SUM( ALL + - 84 ) ) * - 29
----
116928

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL 48 * + ( SUM ( ALL + - 84 ) ) * - 29
----
116928

query I rowsort
SELECT CASE 94 WHEN + - 7 THEN + 59 + - - 37 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL - 10 * + COUNT( * ) * 88 + 72 AS col1
----
-808

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL - 10 * + COUNT ( * ) * 88 + 72 AS col1
----
-808

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL - 27 * + + SUM( + ( + + 20 ) ) + 49
----
-491

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL - 27 * + + SUM ( + ( + + 20 ) ) + 49
----
-491

query I rowsort
SELECT + ( - 90 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT + 83 - + - 67 + - - 44 - + + COUNT( * )
----
193

skipif mysql # not compatible
query I rowsort label-4308
SELECT + 83 - + - 67 + - - 44 - + + COUNT ( * )
----
193

query II rowsort
SELECT + ( - 42 ), 11 AS col1
----
-42
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL + COUNT( ALL 82 )
----
1

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL + COUNT ( ALL 82 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT + COUNT( * ) + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4311
SELECT + COUNT ( * ) + + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT ALL - COUNT( * ) * - NULLIF ( - - MAX( ALL - + 94 ), 72 ) + 43 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL - COUNT ( * ) * - NULLIF ( - - MAX ( ALL - + 94 ), 72 ) + 43 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL 89 * MAX( ( - 38 ) ) + - - 22 * - ( - 14 ) + + + 91 AS col0
----
-2983

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL 89 * MAX ( ( - 38 ) ) + - - 22 * - ( - 14 ) + + + 91 AS col0
----
-2983

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT + - CAST( - 24 AS SIGNED ) + 39 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4314
SELECT + - CAST ( - 24 AS INTEGER ) + 39 AS col2
----
63

query I rowsort
SELECT ALL + + 68 AS col2
----
68

query I rowsort
SELECT ALL + ( - 53 ) * + 44 AS col0
----
-2332

onlyif mysql # aggregate syntax: 
query II rowsort label-4317
SELECT ALL COUNT( * ) * 45, + 32 AS col1
----
45
32

skipif mysql # not compatible
query II rowsort label-4317
SELECT ALL COUNT ( * ) * 45, + 32 AS col1
----
45
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4318
SELECT + 74 * + COALESCE ( + 15, - 33 DIV + 41 ) AS col2
----
1110

skipif mysql # not compatible
query I rowsort label-4318
SELECT + 74 * + COALESCE ( + 15, - 33 / + 41 ) AS col2
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT - MAX( 88 ) + 28 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4319
SELECT - MAX ( 88 ) + 28 AS col2
----
-60

query I rowsort
SELECT - 62 * - ( + 40 ) * 19 AS col0
----
47120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4321
SELECT ALL SUM( - 31 ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL SUM ( - 31 ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4322
SELECT + - 52 * + COUNT( * ) AS col2, + 91
----
-52
91

skipif mysql # not compatible
query II rowsort label-4322
SELECT + - 52 * + COUNT ( * ) AS col2, + 91
----
-52
91

onlyif mysql # DIV for integer division: 
query II rowsort label-4323
SELECT DISTINCT ( 85 ) AS col2, - 12 DIV - + 37
----
85
0

skipif mysql # not compatible
query II rowsort label-4323
SELECT DISTINCT ( 85 ) AS col2, - 12 / - + 37
----
85
0

query I rowsort
SELECT DISTINCT 89 - 52 + 52 AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4325
SELECT ALL - ( + - NULLIF ( + CAST( 43 AS SIGNED ), CAST( NULL AS DECIMAL ) ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL - ( + - NULLIF ( + CAST ( 43 AS INTEGER ), CAST ( NULL AS REAL ) ) ) AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT DISTINCT + ( - - 88 ) - - 46 + - 22 DIV + + 64 col0
----
134

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT + ( - - 88 ) - - 46 + - 22 / + + 64 col0
----
134

query I rowsort
SELECT ALL - 92 * + 46
----
-4232

query I rowsort
SELECT - + 97 AS col2
----
-97

query I rowsort
SELECT - 97 - - + 94
----
-3

query I rowsort
SELECT ALL ( + 28 )
----
28

query I rowsort
SELECT - 73 * - - ( + 76 ) AS col0
----
-5548

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL + 59 * - COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL + 59 * - COUNT ( * ) AS col0
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4333
SELECT DISTINCT + 14 + - + CAST( NULL AS DECIMAL ) / - 48 + - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT + 14 + - + CAST ( NULL AS REAL ) / - 48 + - - 14
----
NULL

query I rowsort
SELECT DISTINCT + 41 * 42
----
1722

query I rowsort
SELECT - 43 - - + 14 * - 33 + + + 59
----
-446

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4336
SELECT ALL CAST( 12 AS SIGNED ) DIV 71 + + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL CAST ( 12 AS INTEGER ) / 71 + + 24 AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT - 60 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-4337
SELECT - 60 / - 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT DISTINCT + SUM( 24 )
----
24

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT + SUM ( 24 )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4339
SELECT 97 * 44 * - 16 + 72 DIV + 43 + - 89 + + 71 DIV - 8 * + - COUNT( * )
----
-68368

skipif mysql # not compatible
query I rowsort label-4339
SELECT 97 * 44 * - 16 + 72 / + 43 + - 89 + + 71 / - 8 * + - COUNT ( * )
----
-68368

query I rowsort
SELECT ALL + 96 AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT DISTINCT + 83 DIV + 59 + + ( + 72 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT + 83 / + 59 + + ( + 72 ) AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4342
SELECT DISTINCT + MAX( NULLIF ( - CAST( + + 40 AS SIGNED ), + 59 ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT + MAX ( NULLIF ( - CAST ( + + 40 AS INTEGER ), + 59 ) ) AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT ALL + COALESCE ( 93, + + COALESCE ( + CAST( NULL AS SIGNED ), - - 83 + + + 54 ) ) * + 91 col1
----
8463

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL + COALESCE ( 93, + + COALESCE ( + CAST ( NULL AS INTEGER ), - - 83 + + + 54 ) ) * + 91 col1
----
8463

query I rowsort
SELECT DISTINCT + - 57 AS col0
----
-57

query I rowsort
SELECT + ( - 97 ) AS col2
----
-97

query II rowsort
SELECT + 51 AS col2, - 60 * 71 AS col2
----
51
-4260

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT ALL + 59 DIV - 64 * 48 - 25 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL + 59 / - 64 * 48 - 25 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT - 49 * + - COUNT( * ) + - + 51
----
-2

skipif mysql # not compatible
query I rowsort label-4348
SELECT - 49 * + - COUNT ( * ) + - + 51
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - + MIN( ALL - 15 ) * - 0 - + 79 - + + 53 * 66 - 86
----
-3663

skipif mysql # not compatible
query I rowsort label-4349
SELECT - + MIN ( ALL - 15 ) * - 0 - + 79 - + + 53 * 66 - 86
----
-3663

query II rowsort
SELECT + 51 col2, - 8
----
51
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4351
SELECT - 72 + - + 84 * + + ( - 61 ) / - CASE CAST( NULL AS SIGNED ) WHEN - + 3 + - 43 + - 97 * - 25 THEN COUNT( * ) * + + 17 WHEN + 79 + + 97 THEN - 77 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT - 72 + - + 84 * + + ( - 61 ) / - CASE CAST ( NULL AS INTEGER ) WHEN - + 3 + - 43 + - 97 * - 25 THEN COUNT ( * ) * + + 17 WHEN + 79 + + 97 THEN - 77 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4352
SELECT + - 66 col2, 9 * - - 0 + - COUNT( * ) AS col0
----
-66
-1

skipif mysql # not compatible
query II rowsort label-4352
SELECT + - 66 col2, 9 * - - 0 + - COUNT ( * ) AS col0
----
-66
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4353
SELECT DISTINCT - - SUM( DISTINCT - CASE - 61 WHEN - 57 THEN - 99 END ) AS col2, - 14 AS col1
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-4353
SELECT DISTINCT - - SUM ( DISTINCT - CASE - 61 WHEN - 57 THEN - 99 END ) AS col2, - 14 AS col1
----
NULL
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT 7 * - ( 78 ) - + COUNT( - ( ( + + 22 ) ) )
----
-547

skipif mysql # not compatible
query I rowsort label-4354
SELECT 7 * - ( 78 ) - + COUNT ( - ( ( + + 22 ) ) )
----
-547

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT + 12 DIV 92 * - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4355
SELECT + 12 / 92 * - 75 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4356
SELECT ALL - 43 DIV + 21
----
-2

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL - 43 / + 21
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4357
SELECT DISTINCT 64, ( ( 94 ) ) * - 18 + - - COALESCE ( + ( + - COUNT( * ) ), + 39 + + 61 + - + ( - 83 ) * - CAST( COUNT( * ) AS SIGNED ), - - COUNT( * ), - 51 * - + 56 + - 32 ) AS col2
----
64
-1693

skipif mysql # not compatible
query II rowsort label-4357
SELECT DISTINCT 64, ( ( 94 ) ) * - 18 + - - COALESCE ( + ( + - COUNT ( * ) ), + 39 + + 61 + - + ( - 83 ) * - CAST ( COUNT ( * ) AS INTEGER ), - - COUNT ( * ), - 51 * - + 56 + - 32 ) AS col2
----
64
-1693

query I rowsort
SELECT DISTINCT + + 69 * - + 86
----
-5934

query I rowsort
SELECT 35 + + - 73 AS col0
----
-38

query II rowsort
SELECT - 59, 11 AS col2
----
-59
11

query I rowsort
SELECT 27 * - 19
----
-513

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT 15 + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4362
SELECT 15 + COUNT ( * ) AS col2
----
16

query I rowsort
SELECT ALL - NULLIF ( - 6, 49 - - - 73 ) + - + 77 AS col2
----
-71

query II rowsort
SELECT ALL 79 + - 82 AS col2, + 11 AS col0
----
-3
11

query I rowsort
SELECT DISTINCT 38 * - 33 * - + 30
----
37620

query I rowsort
SELECT ALL 96 + 1 AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4367
SELECT ALL + COALESCE ( 98, 33, + 9 ) + - + 75 - - + CAST( NULL AS SIGNED ) * - 34 * - 61 * + 80 * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + COALESCE ( 98, 33, + 9 ) + - + 75 - - + CAST ( NULL AS INTEGER ) * - 34 * - 61 * + 80 * + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4368
SELECT - 62, + COUNT( * ) AS col0
----
-62
1

skipif mysql # not compatible
query II rowsort label-4368
SELECT - 62, + COUNT ( * ) AS col0
----
-62
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4369
SELECT ALL 63 AS col0, - CASE - - NULLIF ( 63, 85 ) WHEN - - ( 12 ) + - 89 THEN NULL ELSE ( + - 41 ) * + ( - COUNT( * ) ) + + 36 * 81 + - - 18 END
----
63
-2975

skipif mysql # not compatible
query II rowsort label-4369
SELECT ALL 63 AS col0, - CASE - - NULLIF ( 63, 85 ) WHEN - - ( 12 ) + - 89 THEN NULL ELSE ( + - 41 ) * + ( - COUNT ( * ) ) + + 36 * 81 + - - 18 END
----
63
-2975

query I rowsort
SELECT ALL 31 + - 88
----
-57

query I rowsort
SELECT 35 + CASE 57 WHEN ( 86 ) THEN NULL ELSE + 41 END
----
76

query I rowsort
SELECT ALL + 28 + - 99
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4373
SELECT ALL 29 AS col1, COALESCE ( 72, - 11, + + 52 - CASE + 9 WHEN ( CAST( NULL AS SIGNED ) ) THEN + + COUNT( * ) WHEN + + 30 DIV + - 8 * ( + COUNT( * ) ) DIV + ( + 96 ) THEN NULL ELSE NULL END DIV + + 66 + - + 24 - COUNT( - 93 ) * - 66 ) AS col2
----
29
72

skipif mysql # not compatible
query II rowsort label-4373
SELECT ALL 29 AS col1, COALESCE ( 72, - 11, + + 52 - CASE + 9 WHEN ( CAST ( NULL AS INTEGER ) ) THEN + + COUNT ( * ) WHEN + + 30 / + - 8 * ( + COUNT ( * ) ) / + ( + 96 ) THEN NULL ELSE NULL END / + + 66 + - + 24 - COUNT ( - 93 ) * - 66 ) AS col2
----
29
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT COUNT( * ) + + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-4374
SELECT COUNT ( * ) + + - 96
----
-95

query I rowsort
SELECT 25 * + 62
----
1550

query II rowsort
SELECT 31 + - - 49 AS col2, 19
----
80
19

query I rowsort
SELECT DISTINCT + 83 + 72 - - + 9 AS col0
----
164

query I rowsort
SELECT DISTINCT ( + 21 ) * - + 23
----
-483

query I rowsort
SELECT ALL - 76 AS col2
----
-76

query I rowsort
SELECT 50 * - - 15
----
750

query I rowsort
SELECT DISTINCT - 38 * + - 54 * + 86 col2
----
176472

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT + 37 DIV - 8 + + + 83 DIV - + 15 - 28 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-4382
SELECT + 37 / - 8 + + + 83 / - + 15 - 28 AS col2
----
-37

query II rowsort
SELECT ALL - 53 AS col0, - 21
----
-53
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL - - COUNT( DISTINCT - - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL - - COUNT ( DISTINCT - - 99 )
----
1

query II rowsort
SELECT + 57, 74 AS col2
----
57
74

query I rowsort
SELECT - 47 * 71
----
-3337

query I rowsort
SELECT 1 * 47 AS col1
----
47

query I rowsort
SELECT + + 33 * + - 59 + + 75 AS col1
----
-1872

query I rowsort
SELECT DISTINCT + - 92 * + ( - - 63 )
----
-5796

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT + ( - MAX( 98 ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4390
SELECT + ( - MAX ( 98 ) ) AS col0
----
-98

query II rowsort
SELECT ALL - 70 AS col1, + 28 col0
----
-70
28

query I rowsort
SELECT DISTINCT + ( 91 ) * - 8 col0
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT - 59 * + 32 + - ( - 16 ) + + MIN( + 0 ) AS col2
----
-1872

skipif mysql # not compatible
query I rowsort label-4393
SELECT - 59 * + 32 + - ( - 16 ) + + MIN ( + 0 ) AS col2
----
-1872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4394
SELECT ALL + - CAST( - 91 AS DECIMAL ) * - + 81 / + CASE - - 10 WHEN + MAX( ALL + 43 ) / - 45 + + CAST( NULL AS SIGNED ) THEN 86 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + - CAST ( - 91 AS REAL ) * - + 81 / + CASE - - 10 WHEN + MAX ( ALL + 43 ) / - 45 + + CAST ( NULL AS INTEGER ) THEN 86 END col0
----
NULL

query II rowsort
SELECT ALL - 63 AS col1, 30
----
-63
30

query I rowsort
SELECT 50 + - - 19 + + 12 + - - 47 AS col1
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4397
SELECT DISTINCT CAST( 31 AS SIGNED ) AS col0, - ( + 72 )
----
31
-72

skipif mysql # not compatible
query II rowsort label-4397
SELECT DISTINCT CAST ( 31 AS INTEGER ) AS col0, - ( + 72 )
----
31
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4398
SELECT + CAST( - 61 AS SIGNED ) * - 38 * - COUNT( * ) / CASE - 33 WHEN - 48 - 87 / - 54 THEN - 92 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4398
SELECT + CAST ( - 61 AS INTEGER ) * - 38 * - COUNT ( * ) / CASE - 33 WHEN - 48 - 87 / - 54 THEN - 92 END AS col1
----
NULL

query I rowsort
SELECT ALL 38 + - 96 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT MIN( DISTINCT - 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT MIN ( DISTINCT - 67 ) AS col2
----
-67

query I rowsort
SELECT ALL - 32 + - 56 + + + 79 + 58 * 73 AS col0
----
4225

query I rowsort
SELECT 16 * + + 33
----
528

query I rowsort
SELECT DISTINCT 79 * - - NULLIF ( - 62, + 97 ) AS col1
----
-4898

query I rowsort
SELECT DISTINCT 90 + + - 97
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4405
SELECT 99 DIV - 15 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4405
SELECT 99 / - 15 AS col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4406
SELECT 35 DIV 2
----
17

skipif mysql # not compatible
query I rowsort label-4406
SELECT 35 / 2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT 25 - + + SUM( + 28 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4407
SELECT 25 - + + SUM ( + 28 ) AS col2
----
-3

query I rowsort
SELECT ( + 47 ) + - 87 + - - 49 + - 21 + + + 50 + 80
----
118

query I rowsort
SELECT ALL ( + 65 ) * 38 - 81 AS col0
----
2389

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT DISTINCT MIN( ALL + 74 ) - - ( - - 87 ) AS col1
----
161

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT MIN ( ALL + 74 ) - - ( - - 87 ) AS col1
----
161

query I rowsort
SELECT ( 11 ) * + COALESCE ( + + 55, 83 + 71 )
----
605

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4412
SELECT 71 DIV COUNT( * ) - 57 * + + 39
----
-2152

skipif mysql # not compatible
query I rowsort label-4412
SELECT 71 / COUNT ( * ) - 57 * + + 39
----
-2152

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL 45 * COUNT( * ) - - 85
----
130

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL 45 * COUNT ( * ) - - 85
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT + + 47 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-4414
SELECT + + 47 / 63
----
0

query I rowsort
SELECT - + 42 * 81 AS col2
----
-3402

query II rowsort
SELECT ALL - - 3 * + 73 col0, 93
----
219
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4417
SELECT + - 43 DIV - 86 + + CAST( + 52 AS SIGNED ) + + 59 + - 45 * + 15 AS col1
----
-564

skipif mysql # not compatible
query I rowsort label-4417
SELECT + - 43 / - 86 + + CAST ( + 52 AS INTEGER ) + + 59 + - 45 * + 15 AS col1
----
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT DISTINCT - 9 / + - CASE 24 WHEN - - 5 THEN - - 42 * ( - + COUNT( ALL - + 75 ) ) * SUM( DISTINCT - 78 ) - + 0 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT - 9 / + - CASE 24 WHEN - - 5 THEN - - 42 * ( - + COUNT ( ALL - + 75 ) ) * SUM ( DISTINCT - 78 ) - + 0 END AS col1
----
NULL

query I rowsort
SELECT ALL 37 * - 1
----
-37

query I rowsort
SELECT + + 80 col2
----
80

query I rowsort
SELECT ALL + - ( - ( 67 ) ) col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4422
SELECT ALL + + CASE 11 WHEN + + 89 THEN NULL ELSE - 22 - 71 END * + 86 * MIN( - 26 ) + - - NULLIF ( - 48, CAST( NULL AS SIGNED ) )
----
207900

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL + + CASE 11 WHEN + + 89 THEN NULL ELSE - 22 - 71 END * + 86 * MIN ( - 26 ) + - - NULLIF ( - 48, CAST ( NULL AS INTEGER ) )
----
207900

onlyif mysql # DIV for integer division: 
query I rowsort label-4423
SELECT + - 21 DIV CASE + 24 WHEN 3 THEN + 45 WHEN + 0 * - + 18 THEN NULL ELSE + + 51 END
----
0

skipif mysql # not compatible
query I rowsort label-4423
SELECT + - 21 / CASE + 24 WHEN 3 THEN + 45 WHEN + 0 * - + 18 THEN NULL ELSE + + 51 END
----
0

query I rowsort
SELECT - - 15 * 44 + + + CASE + AVG ( + - 97 ) WHEN 98 THEN 29 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT + 2 * + - 61 - - + CAST( NULL AS SIGNED ) * + 30 * + COUNT( ALL + - 62 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT + 2 * + - 61 - - + CAST ( NULL AS INTEGER ) * + 30 * + COUNT ( ALL + - 62 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4426
SELECT - + COUNT( * ) * - MIN( ALL - 23 ) AS col0, - 91 AS col1
----
-23
-91

skipif mysql # not compatible
query II rowsort label-4426
SELECT - + COUNT ( * ) * - MIN ( ALL - 23 ) AS col0, - 91 AS col1
----
-23
-91

query I rowsort
SELECT + + 21 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT MAX( ALL 32 )
----
32

skipif mysql # not compatible
query I rowsort label-4428
SELECT MAX ( ALL 32 )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4429
SELECT ALL + 6 * - - 40 + 53 - - 71 + - MIN( DISTINCT 7 ) + 19 * - NULLIF ( + 44, 79 ) * - - 97 DIV + - COUNT( * ) + - + 72
----
81377

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + 6 * - - 40 + 53 - - 71 + - MIN ( DISTINCT 7 ) + 19 * - NULLIF ( + 44, 79 ) * - - 97 / + - COUNT ( * ) + - + 72
----
81377

query I rowsort
SELECT ALL + + 44 AS col2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4431
SELECT DISTINCT 94 * + 81 * + 77 + + CASE + - ( 71 ) WHEN - - 37 THEN NULL WHEN - 61 THEN + - CAST( + + ( 67 ) AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT 94 * + 81 * + 77 + + CASE + - ( 71 ) WHEN - - 37 THEN NULL WHEN - 61 THEN + - CAST ( + + ( 67 ) AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT + + 29 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT DISTINCT + + MIN( 40 )
----
40

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT + + MIN ( 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT DISTINCT + - MIN( DISTINCT + 6 ) + - 13
----
-19

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT + - MIN ( DISTINCT + 6 ) + - 13
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT - 44 - 91 * CAST( NULL AS SIGNED ) * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT - 44 - 91 * CAST ( NULL AS INTEGER ) * + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL - COUNT( * ) + + COUNT( * ) * + 76
----
75

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL - COUNT ( * ) + + COUNT ( * ) * + 76
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4437
SELECT COUNT( * ), 50 AS col2
----
1
50

skipif mysql # not compatible
query II rowsort label-4437
SELECT COUNT ( * ), 50 AS col2
----
1
50

query I rowsort
SELECT + 20 + + 47 col2
----
67

query I rowsort
SELECT DISTINCT - ( + - 93 ) * + - 29
----
-2697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT + 13 * 95
----
1235

query II rowsort
SELECT 69 AS col2, - 32 - + 97 AS col0
----
69
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4443
SELECT - 84 + - 65 + 90 / + CASE - 40 WHEN + AVG ( ALL + 34 ) + COUNT( + 30 ) THEN + + 89 * - + COUNT( * ) + - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT - 84 + - 65 + 90 / + CASE - 40 WHEN + AVG ( ALL + 34 ) + COUNT ( + 30 ) THEN + + 89 * - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT - COUNT( * ) * - 63
----
63

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT - COUNT ( * ) * - 63
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT ( - - SUM( ALL + 81 ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT ( - - SUM ( ALL + 81 ) ) AS col0
----
81

query I rowsort
SELECT ALL ( + 8 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT DISTINCT - 84 - - COUNT( * ) * + 8 * 33 AS col1
----
180

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT - 84 - - COUNT ( * ) * + 8 * 33 AS col1
----
180

query I rowsort
SELECT ALL 24 * + 12 * + - 44 AS col2
----
-12672

query I rowsort
SELECT + 30 + - + 43
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT ALL COUNT( * ) DIV + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL COUNT ( * ) / + + COUNT ( * )
----
1

query I rowsort
SELECT - 42 * 56
----
-2352

query I rowsort
SELECT + 47 * + 78 AS col2
----
3666

onlyif mysql # DIV for integer division: 
query I rowsort label-4453
SELECT + ( + + 75 ) + + 85 + + 5 DIV 68 * + - 1 * + - 38 AS col0
----
160

skipif mysql # not compatible
query I rowsort label-4453
SELECT + ( + + 75 ) + + 85 + + 5 / 68 * + - 1 * + - 38 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - COUNT( * ) * + - 29 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4454
SELECT - COUNT ( * ) * + - 29 AS col0
----
29

query II rowsort
SELECT 83 AS col0, + 51
----
83
51

query I rowsort
SELECT ALL 29 * - + 89 AS col1
----
-2581

query I rowsort
SELECT + 11 + - 20 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + MIN( 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4458
SELECT + MIN ( 74 ) AS col0
----
74

query I rowsort
SELECT ALL 8 * + - 34 AS col1
----
-272

query I rowsort
SELECT + + 18 AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4461
SELECT ALL + 88 DIV 89 * - + COUNT( * ) + - 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + 88 / 89 * - + COUNT ( * ) + - 79 AS col0
----
-79

query I rowsort
SELECT ( + + ( + 17 ) ) * - + COALESCE ( 66, - + 10 ) - 2 + + + ( - + 65 )
----
-1189

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT + + COUNT( * ) + - 81 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-4463
SELECT + + COUNT ( * ) + - 81 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT + 75 * 70 * - + COALESCE ( + - 64, - COUNT( * ), - + 89 + + 53 - - ( 47 ) * + + 93 + - 13 - + - 50 ) + 72 + 7 + - + NULLIF ( 35, + + 27 * + ( - 79 ) )
----
336044

skipif mysql # not compatible
query I rowsort label-4464
SELECT + 75 * 70 * - + COALESCE ( + - 64, - COUNT ( * ), - + 89 + + 53 - - ( 47 ) * + + 93 + - 13 - + - 50 ) + 72 + 7 + - + NULLIF ( 35, + + 27 * + ( - 79 ) )
----
336044

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT - - ( + 91 ) * + 12 - - COUNT( * ) + 3 + - 76
----
1020

skipif mysql # not compatible
query I rowsort label-4465
SELECT - - ( + 91 ) * + 12 - - COUNT ( * ) + 3 + - 76
----
1020

query I rowsort
SELECT DISTINCT + + 93 col1
----
93

query I rowsort
SELECT DISTINCT + + COALESCE ( - 70, 37, + 78 )
----
-70

query II rowsort
SELECT + - 13 AS col2, 59 + + 14 col1
----
-13
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ALL + 23 * + + COUNT( * ) * + 6 + + - 23 * + 26
----
-460

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL + 23 * + + COUNT ( * ) * + 6 + + - 23 * + 26
----
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT + 99 * ( 63 ) * 84 * + 16 + + + 36 + - 36 + - MAX( DISTINCT + 25 )
----
8382503

skipif mysql # not compatible
query I rowsort label-4470
SELECT + 99 * ( 63 ) * 84 * + 16 + + + 36 + - 36 + - MAX ( DISTINCT + 25 )
----
8382503

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL + - COUNT( * ) * - 69 + 85 - ( - 21 ) * + 49 col0
----
1183

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL + - COUNT ( * ) * - 69 + 85 - ( - 21 ) * + 49 col0
----
1183

query I rowsort
SELECT - 20 + + 54 * + 1 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT CASE + + 56 WHEN 38 THEN NULL WHEN + ( ( 86 ) ) THEN - COUNT( * ) WHEN + + SUM( 6 ) THEN - 74 / - + 28 - + 78 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT CASE + + 56 WHEN 38 THEN NULL WHEN + ( ( 86 ) ) THEN - COUNT ( * ) WHEN + + SUM ( 6 ) THEN - 74 / - + 28 - + 78 END AS col1
----
NULL

query I rowsort
SELECT + 90 * - 34 AS col2
----
-3060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4475
SELECT COALESCE ( - 4, 19, - CAST( + + 99 AS SIGNED ) - + COUNT( * ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4475
SELECT COALESCE ( - 4, 19, - CAST ( + + 99 AS INTEGER ) - + COUNT ( * ) ) AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT ALL + 69 DIV 69
----
1

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + 69 / 69
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT DISTINCT + 23 * COUNT( * ) * COUNT( * ) - 85 * + ( + + 73 ) col0
----
-6182

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT + 23 * COUNT ( * ) * COUNT ( * ) - 85 * + ( + + 73 ) col0
----
-6182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4478
SELECT DISTINCT CASE - 67 WHEN - COUNT( * ) * - + ( COALESCE ( - 66, + + 84, - 30 - - ( - + 13 ) ) ) * 11 * - 48 + + - 66 + - 84 * - + 14 * 84 * + + 42 + - 28 * - - 56 / + - 15 THEN + NULLIF ( - CAST( NULL AS SIGNED ), + 67 / CASE - 5 WHEN + 83 THEN + 76 END * + 91 * 81 ) WHEN + + 43 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT CASE - 67 WHEN - COUNT ( * ) * - + ( COALESCE ( - 66, + + 84, - 30 - - ( - + 13 ) ) ) * 11 * - 48 + + - 66 + - 84 * - + 14 * 84 * + + 42 + - 28 * - - 56 / + - 15 THEN + NULLIF ( - CAST ( NULL AS INTEGER ), + 67 / CASE - 5 WHEN + 83 THEN + 76 END * + 91 * 81 ) WHEN + + 43 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT DISTINCT - 79 * - SUM( ALL - 87 ) AS col0
----
-6873

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT - 79 * - SUM ( ALL - 87 ) AS col0
----
-6873

query I rowsort
SELECT DISTINCT ( + - 2 ) AS col0
----
-2

query I rowsort
SELECT ALL ( 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT - SUM( - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-4482
SELECT - SUM ( - 23 )
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-4483
SELECT 40 DIV + 80 AS col0, ( - + 35 ) AS col1
----
0
-35

skipif mysql # not compatible
query II rowsort label-4483
SELECT 40 / + 80 AS col0, ( - + 35 ) AS col1
----
0
-35

query I rowsort
SELECT 76 * + 69 AS col1
----
5244

query I rowsort
SELECT ALL - 62 * 28 AS col1
----
-1736

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT 50 - - - 44 DIV + 22 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4486
SELECT 50 - - - 44 / + 22 AS col0
----
48

query I rowsort
SELECT 59 - - 90 AS col0
----
149

query II rowsort
SELECT 66 * + 49, - 47 + + 74 AS col0
----
3234
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT ALL - 62 + CAST( NULL AS SIGNED ) * + 63 * 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL - 62 + CAST ( NULL AS INTEGER ) * + 63 * 99 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT DISTINCT 71 DIV + 36 - - 67
----
68

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT 71 / + 36 - - 67
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT ALL SUM( + + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL SUM ( + + 86 )
----
86

query I rowsort
SELECT 79 - - 44 * + - 45
----
-1901

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL ( - - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL ( - - COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL 55 + - - 40 - 46 + - 63 * + - 63 AS col1
----
4018

query I rowsort
SELECT DISTINCT - + 64 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT MAX( 69 ) * + 17 - 2 - 88
----
1083

skipif mysql # not compatible
query I rowsort label-4496
SELECT MAX ( 69 ) * + 17 - 2 - 88
----
1083

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT + 8 * + COUNT( * ) * - + MAX( ALL - 16 ) + + + 32 - + + 79
----
81

skipif mysql # not compatible
query I rowsort label-4497
SELECT + 8 * + COUNT ( * ) * - + MAX ( ALL - 16 ) + + + 32 - + + 79
----
81

query I rowsort
SELECT DISTINCT + ( 18 ) + + + 68 + 83 AS col2
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4499
SELECT ALL COUNT( * ) + - 59 DIV + 89 * - + 94 - + 41
----
-40

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL COUNT ( * ) + - 59 / + 89 * - + 94 - + 41
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT SUM( DISTINCT 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-4500
SELECT SUM ( DISTINCT 75 ) AS col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4501
SELECT ALL + 52 + - + CAST( NULL AS SIGNED ) + + 50 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + 52 + - + CAST ( NULL AS INTEGER ) + + 50 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4502
SELECT - 74 * CAST( + COUNT( * ) AS SIGNED ) * 5 AS col2, + MIN( + NULLIF ( + 76, - 46 ) ) col1
----
-370
76

skipif mysql # not compatible
query II rowsort label-4502
SELECT - 74 * CAST ( + COUNT ( * ) AS INTEGER ) * 5 AS col2, + MIN ( + NULLIF ( + 76, - 46 ) ) col1
----
-370
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4503
SELECT + 80 DIV + - 82 + + COALESCE ( + - 26, - SUM( ALL + 72 ) - + 8 * + + 69 )
----
-26

skipif mysql # not compatible
query I rowsort label-4503
SELECT + 80 / + - 82 + + COALESCE ( + - 26, - SUM ( ALL + 72 ) - + 8 * + + 69 )
----
-26

query I rowsort
SELECT ALL 71 - + 82 * + 10 * + + 62
----
-50769

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT MIN( + + 18 ) * - 61 + - 15 + - - 70
----
-1043

skipif mysql # not compatible
query I rowsort label-4505
SELECT MIN ( + + 18 ) * - 61 + - 15 + - - 70
----
-1043

query III rowsort
SELECT + 0, ( 55 ) AS col0, - + 29 * + 57 + + - ( 27 ) * - 72 * - - 63 + + + 53 AS col2
----
0
55
120872

query I rowsort
SELECT 16 + - 33
----
-17

query I rowsort
SELECT 54 * - 74 AS col1
----
-3996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4509
SELECT DISTINCT COUNT( * ) DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT COUNT ( * ) / - 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT DISTINCT COALESCE ( + SUM( ALL - 65 ), + 4, + NULLIF ( - 77, 81 ) * - - 72 ) - - 1 + - + 38
----
-102

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT COALESCE ( + SUM ( ALL - 65 ), + 4, + NULLIF ( - 77, 81 ) * - - 72 ) - - 1 + - + 38
----
-102

query I rowsort
SELECT ( + ( - 36 ) ) * + 78 + - - 67
----
-2741

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4512
SELECT + 3 * - 66 - - ( + CAST( 34 AS SIGNED ) ) DIV + 41 AS col1
----
-198

skipif mysql # not compatible
query I rowsort label-4512
SELECT + 3 * - 66 - - ( + CAST ( 34 AS INTEGER ) ) / + 41 AS col1
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4513
SELECT ALL ( + COUNT( + - 90 ) ) * + 49 * 39 + NULLIF ( ( - 95 ), + - 98 DIV + 66 ) DIV - 12 + - 43 col0
----
1875

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL ( + COUNT ( + - 90 ) ) * + 49 * 39 + NULLIF ( ( - 95 ), + - 98 / + 66 ) / - 12 + - 43 col0
----
1875

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4514
SELECT ALL 21 AS col2, 43 * NULLIF ( - + COUNT( * ), + 88 ) DIV NULLIF ( 90, 8 ), + 91 AS col1
----
21
0
91

skipif mysql # not compatible
query III rowsort label-4514
SELECT ALL 21 AS col2, 43 * NULLIF ( - + COUNT ( * ), + 88 ) / NULLIF ( 90, 8 ), + 91 AS col1
----
21
0
91

query I rowsort
SELECT 60 + - 65
----
-5

query I rowsort
SELECT 31 * + 1 AS col2
----
31

query I rowsort
SELECT 69 + 71 + + + 63 * + 89
----
5747

onlyif mysql # DIV for integer division: 
query I rowsort label-4518
SELECT 76 DIV 38 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4518
SELECT 76 / 38 AS col2
----
2

query I rowsort
SELECT ( 53 ) * 6 + - 36 AS col1
----
282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4520
SELECT COUNT( 56 ) + - CAST( - MIN( DISTINCT - 38 ) AS SIGNED ) + + 23
----
-14

skipif mysql # not compatible
query I rowsort label-4520
SELECT COUNT ( 56 ) + - CAST ( - MIN ( DISTINCT - 38 ) AS INTEGER ) + + 23
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT 59 + + + 62 * - COUNT( DISTINCT - + 64 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4521
SELECT 59 + + + 62 * - COUNT ( DISTINCT - + 64 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL 53 + + - 39 * - MAX( DISTINCT - 10 )
----
-337

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL 53 + + - 39 * - MAX ( DISTINCT - 10 )
----
-337

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + + 60 + - 69 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4523
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + + 60 + - 69 AS col2
----
-9

query I rowsort
SELECT ALL + 76 + + 87
----
163

query I rowsort
SELECT DISTINCT + 30 + + 65 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT - COUNT( * ) + + 94 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4526
SELECT - COUNT ( * ) + + 94 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4527
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 97 + 45 * + 69 * 41 + 57 + - - 28 - - + 14
----
127501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4529
SELECT ALL - 39 + + - 84 + + 53 + - - COUNT( * ) * + CAST( NULL AS SIGNED ) + + 97 * - - 28 * + COALESCE ( 49, - + CAST( NULL AS SIGNED ) ) * - + NULLIF ( + + 84, - - 15 * - 28 - - + 85 / + 59 + - + 19 * + NULLIF ( - - CAST( COUNT( DISTINCT + 56 ) AS SIGNED ), + + 1 * - 15 - 21 ) ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - 39 + + - 84 + + 53 + - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 97 * - - 28 * + COALESCE ( 49, - + CAST ( NULL AS INTEGER ) ) * - + NULLIF ( + + 84, - - 15 * - 28 - - + 85 / + 59 + - + 19 * + NULLIF ( - - CAST ( COUNT ( DISTINCT + 56 ) AS INTEGER ), + + 1 * - 15 - 21 ) ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL + + COUNT( * ) + - 95
----
-94

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL + + COUNT ( * ) + - 95
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT - 13 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT - 13 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 70 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT + 23 + - + MAX( 10 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4533
SELECT + 23 + - + MAX ( 10 ) AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT ALL - CASE + 35 WHEN + 20 THEN CAST( - + 26 AS SIGNED ) ELSE + 19 * - 37 + + - ( 26 ) END col1
----
729

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL - CASE + 35 WHEN + 20 THEN CAST ( - + 26 AS INTEGER ) ELSE + 19 * - 37 + + - ( 26 ) END col1
----
729

query I rowsort
SELECT DISTINCT - - 15
----
15

query I rowsort
SELECT ALL - - 37 * + 80 - + 8 + + 3
----
2955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4537
SELECT 42 DIV - 2 * + CAST( NULL AS SIGNED ) + - 90 + + 80 * + COALESCE ( + 46, - 42 * - + 8 ) DIV - 52 * - 23 * NULLIF ( - COUNT( * ), + 45 DIV + - 45 ) AS col2, 64 * - CASE + + ( + COUNT( * ) ) WHEN 1 + - - 75 THEN NULL WHEN + 62 THEN COUNT( * ) ELSE - - COUNT( * ) + 59 DIV - - 88 END
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-4537
SELECT 42 / - 2 * + CAST ( NULL AS INTEGER ) + - 90 + + 80 * + COALESCE ( + 46, - 42 * - + 8 ) / - 52 * - 23 * NULLIF ( - COUNT ( * ), + 45 / + - 45 ) AS col2, 64 * - CASE + + ( + COUNT ( * ) ) WHEN 1 + - - 75 THEN NULL WHEN + 62 THEN COUNT ( * ) ELSE - - COUNT ( * ) + 59 / - - 88 END
----
NULL
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4538
SELECT ALL + - 24 DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL + - 24 / 73 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4539
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4540
SELECT ALL - COALESCE ( + COUNT( ALL + - 34 ), + - 81 DIV + 34, + MIN( ALL + 45 ) + + 14 * - 49 * 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL - COALESCE ( + COUNT ( ALL + - 34 ), + - 81 / + 34, + MIN ( ALL + 45 ) + + 14 * - 49 * 7 )
----
-1

query I rowsort
SELECT ALL - 61 col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT MIN( + - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-4542
SELECT MIN ( + - 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT ALL + COALESCE ( + ( - 77 ), + 39 + - 86, - 96 * + 86 ) * - MAX( - 60 ) AS col0
----
-4620

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL + COALESCE ( + ( - 77 ), + 39 + - 86, - 96 * + 86 ) * - MAX ( - 60 ) AS col0
----
-4620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4544
SELECT DISTINCT + ( - COALESCE ( + COUNT( * ), - 37 * 50 * + - CAST( + COUNT( * ) AS SIGNED ) ) ) * 12 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT + ( - COALESCE ( + COUNT ( * ), - 37 * 50 * + - CAST ( + COUNT ( * ) AS INTEGER ) ) ) * 12 AS col0
----
-12

query I rowsort
SELECT 50 + + + 12 + + CASE - - 13 WHEN 34 THEN AVG ( - 13 ) END * - 2
----
NULL

query I rowsort
SELECT ALL ( - - 48 ) * + 94
----
4512

query I rowsort
SELECT - 42 * 24
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT MAX( 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4548
SELECT MAX ( 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT MAX( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4549
SELECT MAX ( - 0 )
----
0

query I rowsort
SELECT + COALESCE ( 92, 7 * ( + 54 ) )
----
92

query I rowsort
SELECT + ( 83 ) * - 47
----
-3901

query II rowsort
SELECT 99 AS col2, 66 AS col0
----
99
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4553
SELECT ALL 7 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL 7 / - 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4554
SELECT - COALESCE ( + + ( - 30 ), - COUNT( * ) DIV + + 33 + - MIN( DISTINCT - 16 ), ( - 85 ) )
----
30

skipif mysql # not compatible
query I rowsort label-4554
SELECT - COALESCE ( + + ( - 30 ), - COUNT ( * ) / + + 33 + - MIN ( DISTINCT - 16 ), ( - 85 ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT + ( - - CASE - 37 WHEN + NULLIF ( 29, + + 11 * - 91 * - 67 + - - 35 - 39 ) THEN 40 WHEN 82 THEN + COUNT( * ) + + MIN( + 7 ) ELSE - 58 * 92 * + 35 END ) * - 59 - 6 * - 79 AS col2
----
11019314

skipif mysql # not compatible
query I rowsort label-4555
SELECT + ( - - CASE - 37 WHEN + NULLIF ( 29, + + 11 * - 91 * - 67 + - - 35 - 39 ) THEN 40 WHEN 82 THEN + COUNT ( * ) + + MIN ( + 7 ) ELSE - 58 * 92 * + 35 END ) * - 59 - 6 * - 79 AS col2
----
11019314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4556
SELECT ALL 53 + - 1 + + 94 - - CAST( + 20 AS SIGNED ) - + - ( - MAX( ALL ( + - ( + 5 ) ) ) ) + - 72 DIV CAST( + - MIN( ALL + 96 ) AS SIGNED ) * + 22
----
171

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL 53 + - 1 + + 94 - - CAST ( + 20 AS INTEGER ) - + - ( - MAX ( ALL ( + - ( + 5 ) ) ) ) + - 72 / CAST ( + - MIN ( ALL + 96 ) AS INTEGER ) * + 22
----
171

query I rowsort
SELECT ALL 71 * + 34 * + - 66 AS col0
----
-159324

query I rowsort
SELECT ALL - 44 + 86 col0
----
42

query II rowsort
SELECT ALL 45, + 87 AS col2
----
45
87

query I rowsort
SELECT ALL 6 + - - 34 + + 53 * - 73
----
-3829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT - NULLIF ( CAST( NULL AS SIGNED ), 69 + - 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), 69 + - 10 ) AS col2
----
NULL

query I rowsort
SELECT + 75 + - 27 AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4563
SELECT - COALESCE ( + 57, COUNT( * ) ) * + 48, + COUNT( * ) * - 5 - CASE + + 20 WHEN 99 * - 21 THEN + - CAST( + ( - + 37 ) AS DECIMAL ) WHEN + 53 + 36 THEN NULL END * 67 AS col2
----
-2736
NULL

skipif mysql # not compatible
query II rowsort label-4563
SELECT - COALESCE ( + 57, COUNT ( * ) ) * + 48, + COUNT ( * ) * - 5 - CASE + + 20 WHEN 99 * - 21 THEN + - CAST ( + ( - + 37 ) AS REAL ) WHEN + 53 + 36 THEN NULL END * 67 AS col2
----
-2736
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4564
SELECT ALL + 68 + CAST( NULL AS SIGNED ) * - 83 - ( + 89 ) + - + 65 * + - 96 / - 40 * - COUNT( * ) + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL + 68 + CAST ( NULL AS INTEGER ) * - 83 - ( + 89 ) + - + 65 * + - 96 / - 40 * - COUNT ( * ) + + 42
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4565
SELECT - 94, + 42 * + 62 * - COUNT( * ) AS col1
----
-94
-2604

skipif mysql # not compatible
query II rowsort label-4565
SELECT - 94, + 42 * + 62 * - COUNT ( * ) AS col1
----
-94
-2604

query I rowsort
SELECT - + 82 * - + COALESCE ( + 98, 1 * - 49 ) + + 99
----
8135

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT DISTINCT ( + - COUNT( * ) ) + + 30 + 9 * + - COUNT( * ) * - 57
----
542

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT ( + - COUNT ( * ) ) + + 30 + 9 * + - COUNT ( * ) * - 57
----
542

query I rowsort
SELECT ALL - ( + 21 ) + - + 71 AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4569
SELECT DISTINCT + + CASE + 22 WHEN + + 79 THEN - - CAST( COUNT( * ) AS SIGNED ) * - 12 WHEN + 94 * - 18 THEN NULL ELSE NULL END - - NULLIF ( + 64, + + 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT + + CASE + 22 WHEN + + 79 THEN - - CAST ( COUNT ( * ) AS INTEGER ) * - 12 WHEN + 94 * - 18 THEN NULL ELSE NULL END - - NULLIF ( + 64, + + 54 )
----
NULL

query I rowsort
SELECT ALL + 52 - + - ( + - 50 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT - 47 * - ( + COALESCE ( + + MIN( + - 44 ), + 72 * + 67 ) )
----
-2068

skipif mysql # not compatible
query I rowsort label-4571
SELECT - 47 * - ( + COALESCE ( + + MIN ( + - 44 ), + 72 * + 67 ) )
----
-2068

query II rowsort
SELECT DISTINCT + - 72 - - - 0 AS col0, - 86 AS col2
----
-72
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT - NULLIF ( 7, COUNT( * ) )
----
-7

skipif mysql # not compatible
query I rowsort label-4573
SELECT - NULLIF ( 7, COUNT ( * ) )
----
-7

query II rowsort
SELECT ALL + 85, + 64 * - - 89 AS col0
----
85
5696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4575
SELECT ALL + 39 DIV COUNT( * ) - + 96
----
-57

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL + 39 / COUNT ( * ) - + 96
----
-57

query I rowsort
SELECT - + 86 * 76 AS col0
----
-6536

query I rowsort
SELECT 11 * - 68 + + 76 * 78
----
5180

query I rowsort
SELECT DISTINCT - 47 * + - 98 col2
----
4606

query I rowsort
SELECT ALL + + 30 * 77 AS col1
----
2310

query I rowsort
SELECT - ( + 4 ) * + 91
----
-364

query I rowsort
SELECT ( + ( 88 ) )
----
88

query I rowsort
SELECT 11 * - + 23 + + 95 + + 94 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT - 31 * + + 98 * COUNT( * )
----
-3038

skipif mysql # not compatible
query I rowsort label-4583
SELECT - 31 * + + 98 * COUNT ( * )
----
-3038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4584
SELECT ALL - COUNT( * ) DIV - + COALESCE ( - 95, + 38 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL - COUNT ( * ) / - + COALESCE ( - 95, + 38 ) AS col2
----
0

query II rowsort
SELECT - 2 + + - 12 AS col1, - ( 86 ) col1
----
-14
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL 82 * + + NULLIF ( + 4, ( + 15 ) * - COUNT( * ) ) + COUNT( ALL + 79 ) col2
----
329

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL 82 * + + NULLIF ( + 4, ( + 15 ) * - COUNT ( * ) ) + COUNT ( ALL + 79 ) col2
----
329

query I rowsort
SELECT - 94 * - 77 + - ( + + 42 ) * 75 AS col1
----
4088

query I rowsort
SELECT NULLIF ( - 86, + - 92 )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT + 84 DIV COUNT( + 28 )
----
84

skipif mysql # not compatible
query I rowsort label-4589
SELECT + 84 / COUNT ( + 28 )
----
84

query I rowsort
SELECT - 95 + 69 + 35 + - 62 * - 71
----
4411

query I rowsort
SELECT DISTINCT 7 * - 31 * + 16
----
-3472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4592
SELECT ALL + 4 * - CAST( NULL AS SIGNED ) + - 66 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL + 4 * - CAST ( NULL AS INTEGER ) + - 66 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT COUNT( * ) * - 18 * + 95 + - ( SUM( ALL 52 ) ) AS col1
----
-1762

skipif mysql # not compatible
query I rowsort label-4593
SELECT COUNT ( * ) * - 18 * + 95 + - ( SUM ( ALL 52 ) ) AS col1
----
-1762

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT + COALESCE ( - 11, COUNT( * ) * + COUNT( ALL 88 ), + - 59 )
----
-11

skipif mysql # not compatible
query I rowsort label-4594
SELECT + COALESCE ( - 11, COUNT ( * ) * + COUNT ( ALL 88 ), + - 59 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL 31 * 62 + - - COUNT( * ) * + 45
----
1967

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL 31 * 62 + - - COUNT ( * ) * + 45
----
1967

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4596
SELECT + CAST( NULL AS SIGNED ) + 75 AS col2, 55 * - 80 col1
----
NULL
-4400

skipif mysql # not compatible
query II rowsort label-4596
SELECT + CAST ( NULL AS INTEGER ) + 75 AS col2, 55 * - 80 col1
----
NULL
-4400

query I rowsort
SELECT DISTINCT 89 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT DISTINCT 6 * - - COUNT( * ) + - + 21 - - - COUNT( * ) + + 61 - COALESCE ( + 79, - + 51 + - NULLIF ( + 9, - + COUNT( * ) - AVG ( ALL + 99 ) ) ) * - COUNT( * ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT 6 * - - COUNT ( * ) + - + 21 - - - COUNT ( * ) + + 61 - COALESCE ( + 79, - + 51 + - NULLIF ( + 9, - + COUNT ( * ) - AVG ( ALL + 99 ) ) ) * - COUNT ( * ) AS col0
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4599
SELECT MIN( + 4 ) AS col0, CAST( 37 AS SIGNED )
----
4
37

skipif mysql # not compatible
query II rowsort label-4599
SELECT MIN ( + 4 ) AS col0, CAST ( 37 AS INTEGER )
----
4
37

query I rowsort
SELECT + 94 + + 90 * + NULLIF ( 91, - + 63 * - 94 ) AS col0
----
8284

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4601
SELECT + - COALESCE ( + 22, CASE + 26 WHEN + + 3 THEN MIN( ALL - - 25 ) DIV - + 88 END ) + + + 30 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4601
SELECT + - COALESCE ( + 22, CASE + 26 WHEN + + 3 THEN MIN ( ALL - - 25 ) / - + 88 END ) + + + 30 AS col1
----
8

query I rowsort
SELECT - + 8 AS col2
----
-8

query I rowsort
SELECT ALL - 47 * - 82 AS col2
----
3854

query II rowsort
SELECT + 96 + + 82 AS col2, - 53
----
178
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4605
SELECT ALL MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 14 * 77 AS col2
----
-1078

onlyif mysql # aggregate syntax: 
query II rowsort label-4607
SELECT + - 65 * 42, 13 * 6 * COUNT( * ) * 88 + + - COUNT( DISTINCT + 33 ) AS col2
----
-2730
6863

skipif mysql # not compatible
query II rowsort label-4607
SELECT + - 65 * 42, 13 * 6 * COUNT ( * ) * 88 + + - COUNT ( DISTINCT + 33 ) AS col2
----
-2730
6863

query I rowsort
SELECT - ( 98 ) AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4609
SELECT ALL + CAST( + + 88 AS SIGNED ) AS col2, + 56 * 60 * ( - 94 )
----
88
-315840

skipif mysql # not compatible
query II rowsort label-4609
SELECT ALL + CAST ( + + 88 AS INTEGER ) AS col2, + 56 * 60 * ( - 94 )
----
88
-315840

onlyif mysql # DIV for integer division: 
query I rowsort label-4610
SELECT + - 15 DIV - - 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4610
SELECT + - 15 / - - 38 AS col2
----
0

query I rowsort
SELECT - 68 * - 23 + + - NULLIF ( - 61, - + 47 / + + 50 )
----
1625

query I rowsort
SELECT - 81 * 88 + 92 AS col0
----
-7036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4613
SELECT + CAST( NULL AS SIGNED ) + + - 44 + COUNT( * ) AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4613
SELECT + CAST ( NULL AS INTEGER ) + + - 44 + COUNT ( * ) AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL 90 * CASE - 44 WHEN + + 59 * 94 + + 90 * 24 * - 95 - + - 95 THEN + 86 / 65 WHEN 66 THEN NULL ELSE NULL END + MIN( - 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL 90 * CASE - 44 WHEN + + 59 * 94 + + 90 * 24 * - 95 - + - 95 THEN + 86 / 65 WHEN 66 THEN NULL ELSE NULL END + MIN ( - 69 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 77 AS col1
----
77

query I rowsort
SELECT NULLIF ( 58, + 14 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL + COALESCE ( - MIN( DISTINCT + - 16 ), - 26 * 87 )
----
16

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL + COALESCE ( - MIN ( DISTINCT + - 16 ), - 26 * 87 )
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4618
SELECT - CAST( NULL AS DECIMAL ) * 81 * - 28 * 71 * - - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT - CAST ( NULL AS REAL ) * 81 * - 28 * 71 * - - 39 AS col1
----
NULL

query I rowsort
SELECT ALL + + 17 col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT + 85 * + ( + 56 ) * COUNT( * ) + COALESCE ( 14, + 37 + - COUNT( * ) ) * 12 col0
----
4928

skipif mysql # not compatible
query I rowsort label-4620
SELECT + 85 * + ( + 56 ) * COUNT ( * ) + COALESCE ( 14, + 37 + - COUNT ( * ) ) * 12 col0
----
4928

onlyif mysql # aggregate syntax: 
query II rowsort label-4621
SELECT 18, 78 - 70 - + - ( - COUNT( * ) ) - - MIN( ALL - + 99 ) * + 62 * + 6 * + 27 col1
----
18
-994349

skipif mysql # not compatible
query II rowsort label-4621
SELECT 18, 78 - 70 - + - ( - COUNT ( * ) ) - - MIN ( ALL - + 99 ) * + 62 * + 6 * + 27 col1
----
18
-994349

query I rowsort
SELECT 34 * 5
----
170

query I rowsort
SELECT 70 + - ( + - 30 )
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-4624
SELECT ALL - COUNT( * ) col1, ( + 46 )
----
-1
46

skipif mysql # not compatible
query II rowsort label-4624
SELECT ALL - COUNT ( * ) col1, ( + 46 )
----
-1
46

query II rowsort
SELECT + 62, - 31 AS col0
----
62
-31

query I rowsort
SELECT ALL + 80 + + 72 AS col0
----
152

query II rowsort
SELECT + 65 AS col0, - 48 AS col0
----
65
-48

query I rowsort
SELECT ALL 78 + - + ( 70 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query III rowsort label-4629
SELECT ALL - 7 + 84 * - + 38 AS col1, + 90 AS col0, 11 * SUM( ALL 81 )
----
-3199
90
891

skipif mysql # not compatible
query III rowsort label-4629
SELECT ALL - 7 + 84 * - + 38 AS col1, + 90 AS col0, 11 * SUM ( ALL 81 )
----
-3199
90
891

query II rowsort
SELECT DISTINCT - 35 * + - ( - 80 ), - 23 AS col0
----
-2800
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL + 44 + + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL + 44 + + COUNT ( * )
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-4632
SELECT DISTINCT - COALESCE ( + 86, 82 ), 18 DIV + 56 AS col2
----
-86
0

skipif mysql # not compatible
query II rowsort label-4632
SELECT DISTINCT - COALESCE ( + 86, 82 ), 18 / + 56 AS col2
----
-86
0

query I rowsort
SELECT DISTINCT + 62 + + 9 AS col2
----
71

query II rowsort
SELECT DISTINCT - 99 + + + 39 + + 91 AS col0, 69 col1
----
31
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL + 44 + + - COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL + 44 + + - COUNT ( * ) AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT DISTINCT - 90 DIV + ( 43 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT - 90 / + ( 43 ) AS col0
----
-2

query II rowsort
SELECT + 39 AS col2, 55 * - + 13 AS col2
----
39
-715

query I rowsort
SELECT 75 - 67
----
8

query I rowsort
SELECT 10 * 46
----
460

query I rowsort
SELECT DISTINCT - 72 * + 3 AS col2
----
-216

query I rowsort
SELECT 84 * + 24 AS col2
----
2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT ALL + - 35 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL + - 35 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 18 - - + 73 + + 57
----
112

query I rowsort
SELECT DISTINCT + CASE - 17 WHEN - + 2 * 28 + ( + - 89 ) + - 54 THEN 1 WHEN + 36 THEN NULL ELSE - 67 END
----
-67

query I rowsort
SELECT ALL + 85 - 70
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4646
SELECT ALL - CAST( + COUNT( + - ( - 67 ) ) AS DECIMAL ) * + NULLIF ( + CAST( NULL AS SIGNED ), 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL - CAST ( + COUNT ( + - ( - 67 ) ) AS REAL ) * + NULLIF ( + CAST ( NULL AS INTEGER ), 97 ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 43, + 6 AS col2
----
43
6

query I rowsort
SELECT DISTINCT - 58 * + - 95
----
5510

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4649
SELECT - 63 col0, CAST( NULL AS DECIMAL ) * 16 col1
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-4649
SELECT - 63 col0, CAST ( NULL AS REAL ) * 16 col1
----
-63
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4650
SELECT 35 * - COALESCE ( - - 33, MIN( + 98 ) * 30 + - - 5 - 80 - + - 21 * + 12 DIV + 86 )
----
-1155

skipif mysql # not compatible
query I rowsort label-4650
SELECT 35 * - COALESCE ( - - 33, MIN ( + 98 ) * 30 + - - 5 - 80 - + - 21 * + 12 / + 86 )
----
-1155

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT 79 * + COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4651
SELECT 79 * + COUNT ( * ) AS col2
----
79

query II rowsort
SELECT ALL + 84, COALESCE ( - 49, 68 * - 64, + 29 ) + + 79 AS col2
----
84
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT - 66 DIV - + 79
----
0

skipif mysql # not compatible
query I rowsort label-4653
SELECT - 66 / - + 79
----
0

query I rowsort
SELECT - - ( + 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4655
SELECT ALL + 98 DIV - COUNT( * ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL + 98 / - COUNT ( * ) AS col2
----
-98

query I rowsort
SELECT ALL 71 + - + 29 col1
----
42

query I rowsort
SELECT DISTINCT 11 * - - 15
----
165

query I rowsort
SELECT DISTINCT 55 + 70 * + 28 + + - 90
----
1925

onlyif mysql # DIV for integer division: 
query I rowsort label-4659
SELECT - 49 DIV + ( - 3 ) - + + 83 * - 20 * + 18 * 24
----
717136

skipif mysql # not compatible
query I rowsort label-4659
SELECT - 49 / + ( - 3 ) - + + 83 * - 20 * + 18 * 24
----
717136

query I rowsort
SELECT ALL 90 + 27
----
117

query I rowsort
SELECT DISTINCT 49 + + 95 + + 51 * + 61 + + 27 * - + 71 + + 34 - + 45
----
1327

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4662
SELECT CASE + + COUNT( * ) WHEN - CAST( + 19 AS SIGNED ) THEN - COUNT( * ) + + - 26 WHEN - + 6 THEN + + 63 END / - + COUNT( * ) + SUM( + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT CASE + + COUNT ( * ) WHEN - CAST ( + 19 AS INTEGER ) THEN - COUNT ( * ) + + - 26 WHEN - + 6 THEN + + 63 END / - + COUNT ( * ) + SUM ( + 15 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4663
SELECT ALL + 75 + CAST( NULL AS SIGNED ) + 23 + ( + 49 ), - 23 - - 44 + ( ( 42 ) ) * MIN( + - 78 ) * + 77 + 94 DIV + - SUM( CAST( + - 91 AS SIGNED ) ) AS col2
----
NULL
-252230

skipif mysql # not compatible
query II rowsort label-4663
SELECT ALL + 75 + CAST ( NULL AS INTEGER ) + 23 + ( + 49 ), - 23 - - 44 + ( ( 42 ) ) * MIN ( + - 78 ) * + 77 + 94 / + - SUM ( CAST ( + - 91 AS INTEGER ) ) AS col2
----
NULL
-252230

query I rowsort
SELECT ALL + 49 + - ( - 31 ) AS col0
----
80

query I rowsort
SELECT 65 * 57
----
3705

query I rowsort
SELECT DISTINCT - 4 * - 8 AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4667
SELECT + 48 DIV + 1 + - + 58 * - 46
----
2716

skipif mysql # not compatible
query I rowsort label-4667
SELECT + 48 / + 1 + - + 58 * - 46
----
2716

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT COUNT( - 13 ) + - 38 - + + NULLIF ( 46, + 86 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4668
SELECT COUNT ( - 13 ) + - 38 - + + NULLIF ( 46, + 86 ) AS col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4669
SELECT 13 * - 9 * 87 - - - 30 * + COUNT( * ) DIV - 66
----
-10179

skipif mysql # not compatible
query I rowsort label-4669
SELECT 13 * - 9 * 87 - - - 30 * + COUNT ( * ) / - 66
----
-10179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT ALL - CAST( + 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL - CAST ( + 23 AS INTEGER )
----
-23

query I rowsort
SELECT ALL - + 8
----
-8

query II rowsort
SELECT ALL - 20 * + + 20, 67 AS col1
----
-400
67

query II rowsort
SELECT ALL - ( 3 ), 91 * + 97 AS col0
----
-3
8827

query I rowsort
SELECT 73 * - NULLIF ( 56, - 52 )
----
-4088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4675
SELECT 4 DIV - COUNT( ALL + 77 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4675
SELECT 4 / - COUNT ( ALL + 77 ) AS col2
----
-4

query I rowsort
SELECT - + 50 col0
----
-50

query I rowsort
SELECT ALL NULLIF ( 74, 49 ) AS col0
----
74

query I rowsort
SELECT ALL + + 15 * - - 9 AS col2
----
135

query I rowsort
SELECT ( - COALESCE ( - 92, + + 6 - + CASE 46 WHEN 57 THEN + 76 ELSE NULL END, - 45 ) )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4680
SELECT DISTINCT MIN( ALL 95 ), 67 + - 35 * ( - 3 ) AS col2
----
95
172

skipif mysql # not compatible
query II rowsort label-4680
SELECT DISTINCT MIN ( ALL 95 ), 67 + - 35 * ( - 3 ) AS col2
----
95
172

query I rowsort
SELECT DISTINCT + 71 * - 87
----
-6177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4682
SELECT ALL - 13 * ( + CAST( NULL AS SIGNED ) ) - + 13 - - 51 AS col2, - SUM( ALL - 38 ) AS col2
----
NULL
38

skipif mysql # not compatible
query II rowsort label-4682
SELECT ALL - 13 * ( + CAST ( NULL AS INTEGER ) ) - + 13 - - 51 AS col2, - SUM ( ALL - 38 ) AS col2
----
NULL
38

query I rowsort
SELECT ALL - - 86 + 47 * 35 + - 0 * 93
----
1731

onlyif mysql # aggregate syntax: 
query II rowsort label-4684
SELECT ALL + - COUNT( * ) + - 23 * SUM( DISTINCT - 20 ) AS col1, 80
----
459
80

skipif mysql # not compatible
query II rowsort label-4684
SELECT ALL + - COUNT ( * ) + - 23 * SUM ( DISTINCT - 20 ) AS col1, 80
----
459
80

query I rowsort
SELECT ALL 56 + - 81 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT - COUNT( * ) + 70 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4686
SELECT - COUNT ( * ) + 70 AS col2
----
69

query I rowsort
SELECT + 43 + - 77 AS col1
----
-34

query I rowsort
SELECT - 27 col0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4689
SELECT ALL + 61 + - ( 43 ) DIV ( + 76 ) DIV - - MIN( ALL + 91 ) * 43 DIV 82
----
61

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL + 61 + - ( 43 ) / ( + 76 ) / - - MIN ( ALL + 91 ) * 43 / 82
----
61

query II rowsort
SELECT - 49, 55 * - - 64 * + 33 * - - 28 * 14 + + 76 + - - 99 AS col1
----
-49
45534895

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - SUM( DISTINCT 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-4691
SELECT - SUM ( DISTINCT 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - 96 + - 91 * - 92 * - NULLIF ( + + 17, + 19 / - MAX( DISTINCT + 59 ) + - + 39 + 23 ) + - + 26 * - + 12
----
-142108

skipif mysql # not compatible
query I rowsort label-4692
SELECT - 96 + - 91 * - 92 * - NULLIF ( + + 17, + 19 / - MAX ( DISTINCT + 59 ) + - + 39 + 23 ) + - + 26 * - + 12
----
-142108

query I rowsort
SELECT ALL COALESCE ( - + 56, - 78 )
----
-56

query I rowsort
SELECT DISTINCT 84 + - + 29 + + 49 AS col1
----
104

query I rowsort
SELECT ALL 43 * + 7 AS col2
----
301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4696
SELECT ALL CASE COUNT( * ) WHEN - + 7 THEN - + 80 WHEN - CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL CASE COUNT ( * ) WHEN - + 7 THEN - + 80 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4697
SELECT DISTINCT + ( - 30 ) * CASE + 68 WHEN - + 80 / - 87 * COALESCE ( - 61, - 45 + + 22 + 50 + + 40 * 47 * + + CAST( NULL AS DECIMAL ) ) + - - 4 * 29 * - + 98 - - + 61 - + 57 * 93 * + + COUNT( * ) THEN - - 64 + 41 WHEN 45 + + 54 - + 85 * - + 15 + + 8 THEN - + 96 ELSE NULL END * - + 42 - + 65 + + - 50 * - CASE + 90 WHEN - + 91 + + + CASE - 80 WHEN ( + - ( + CAST( NULL AS SIGNED ) ) ) / + 67 THEN NULL WHEN + 56 + + 26 THEN - ( AVG ( - - 98 ) ) END THEN COUNT( * ) WHEN - COALESCE ( 53, - + 14 + 23 ) * + 33 - 89 * - ( 69 ) THEN NULL ELSE + 75 / 79 END * CAST( NULL AS DECIMAL ) - 81 / - 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT + ( - 30 ) * CASE + 68 WHEN - + 80 / - 87 * COALESCE ( - 61, - 45 + + 22 + 50 + + 40 * 47 * + + CAST ( NULL AS REAL ) ) + - - 4 * 29 * - + 98 - - + 61 - + 57 * 93 * + + COUNT ( * ) THEN - - 64 + 41 WHEN 45 + + 54 - + 85 * - + 15 + + 8 THEN - + 96 ELSE NULL END * - + 42 - + 65 + + - 50 * - CASE + 90 WHEN - + 91 + + + CASE - 80 WHEN ( + - ( + CAST ( NULL AS INTEGER ) ) ) / + 67 THEN NULL WHEN + 56 + + 26 THEN - ( AVG ( - - 98 ) ) END THEN COUNT ( * ) WHEN - COALESCE ( 53, - + 14 + 23 ) * + 33 - 89 * - ( 69 ) THEN NULL ELSE + 75 / 79 END * CAST ( NULL AS REAL ) - 81 / - 70 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT + ( + - 40 ) * - COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4698
SELECT + ( + - 40 ) * - COUNT ( * ) AS col0
----
40

query I rowsort
SELECT ALL 7 * - 50
----
-350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT COALESCE ( 50, - 86 + 96 + + ( - ( + - ( - 40 ) ) ) * + CASE - 90 WHEN + - CASE - - 25 WHEN + + CAST( 54 AS SIGNED ) THEN 70 ELSE NULL END + - 46 + + + COUNT( * ) THEN - 10 ELSE NULL END + + 6, 81 )
----
50

skipif mysql # not compatible
query I rowsort label-4700
SELECT COALESCE ( 50, - 86 + 96 + + ( - ( + - ( - 40 ) ) ) * + CASE - 90 WHEN + - CASE - - 25 WHEN + + CAST ( 54 AS INTEGER ) THEN 70 ELSE NULL END + - 46 + + + COUNT ( * ) THEN - 10 ELSE NULL END + + 6, 81 )
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4701
SELECT + COUNT( * ) col1, 39 AS col0
----
1
39

skipif mysql # not compatible
query II rowsort label-4701
SELECT + COUNT ( * ) col1, 39 AS col0
----
1
39

query I rowsort
SELECT + 6 * + ( 36 ) col1
----
216

onlyif mysql # aggregate syntax: 
query II rowsort label-4703
SELECT + ( 29 ) * - 78 AS col2, + 85 * + - MIN( DISTINCT + 77 ) - - 5
----
-2262
-6540

skipif mysql # not compatible
query II rowsort label-4703
SELECT + ( 29 ) * - 78 AS col2, + 85 * + - MIN ( DISTINCT + 77 ) - - 5
----
-2262
-6540

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4704
SELECT + 71 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT + 71 * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT + COUNT( - 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT + COUNT ( - 63 ) AS col2
----
1

query I rowsort
SELECT CASE 86 WHEN + 22 - 54 THEN NULL ELSE - 63 + - 39 END AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL + 41 * COUNT( * ) - + 83
----
-42

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL + 41 * COUNT ( * ) - + 83
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT + 35 * + - CASE WHEN NOT 34 > NULL THEN 54 * + 72 + + - 1 + - - 5 + + SUM( ALL 67 ) END * + - 88 / + + SUM( ALL 69 ) + + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT + 35 * + - CASE WHEN NOT 34 > NULL THEN 54 * + 72 + + - 1 + - - 5 + + SUM ( ALL 67 ) END * + - 88 / + + SUM ( ALL 69 ) + + - 28
----
NULL

query I rowsort
SELECT + 11 * 8 col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT ALL + MAX( ALL + 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL + MAX ( ALL + 15 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT + ( - COALESCE ( COUNT( * ), 53 + + 16 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4711
SELECT + ( - COALESCE ( COUNT ( * ), 53 + + 16 ) )
----
-1

query I rowsort
SELECT CASE ( AVG ( 10 ) ) WHEN - 60 * - ( 34 ) THEN + 0 + - 84 * - 41 END AS col1
----
NULL

query I rowsort
SELECT + 75 * 88
----
6600

query I rowsort
SELECT - 81 * - 11
----
891

query I rowsort
SELECT + 93 - - 55 AS col2
----
148

query I rowsort
SELECT ALL + ( 41 ) * - 4 + + ( + 38 ) AS col2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT + ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4717
SELECT + ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT DISTINCT COUNT( * ) * + 39 col1
----
39

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT COUNT ( * ) * + 39 col1
----
39

query I rowsort
SELECT DISTINCT + 71 * 33 + + 52 AS col0
----
2395

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT DISTINCT NULLIF ( 0, - COUNT( - 52 ) * 82 )
----
0

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT NULLIF ( 0, - COUNT ( - 52 ) * 82 )
----
0

query I rowsort
SELECT DISTINCT + 10 + 38 AS col0
----
48

query I rowsort
SELECT DISTINCT ( - 47 ) + + 6 * 27 AS col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL - 47 + + COUNT( * ) * + 39
----
-8

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL - 47 + + COUNT ( * ) * + 39
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT ALL + 93 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + 93 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL COUNT( + 68 )
----
1

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL COUNT ( + 68 )
----
1

query I rowsort
SELECT - ( 76 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT - NULLIF ( + 7, 62 * + 48 + ( + AVG ( DISTINCT 58 ) + COUNT( * ) ) ) + + 34
----
27

skipif mysql # not compatible
query I rowsort label-4727
SELECT - NULLIF ( + 7, 62 * + 48 + ( + AVG ( DISTINCT 58 ) + COUNT ( * ) ) ) + + 34
----
27

query I rowsort
SELECT - 36 col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4729
SELECT DISTINCT + 2 DIV COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT + 2 / COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ALL - 48 + - COALESCE ( COUNT( * ), + 24 * - 54, - 79 )
----
-49

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL - 48 + - COALESCE ( COUNT ( * ), + 24 * - 54, - 79 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT - MIN( ALL - 41 ) * + COALESCE ( + 68, + 12 * + 43 - 95, + 11 )
----
2788

skipif mysql # not compatible
query I rowsort label-4731
SELECT - MIN ( ALL - 41 ) * + COALESCE ( + 68, + 12 * + 43 - 95, + 11 )
----
2788

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT - CASE - 42 WHEN 36 / 13 THEN 25 * ( COUNT( 33 ) ) ELSE NULL END / - ( 63 - - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT - CASE - 42 WHEN 36 / 13 THEN 25 * ( COUNT ( 33 ) ) ELSE NULL END / - ( 63 - - 94 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4733
SELECT - 55 + + 74 DIV COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-4733
SELECT - 55 + + 74 / COUNT ( * )
----
19

query I rowsort
SELECT ALL ( 40 ) AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4735
SELECT ALL - 57 * COALESCE ( 0 DIV 66, + ( 5 ) * + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL - 57 * COALESCE ( 0 / 66, + ( 5 ) * + 76 )
----
0

query I rowsort
SELECT - 49 * 36
----
-1764

query I rowsort
SELECT ALL - 48 - 20 * + NULLIF ( 74, 50 )
----
-1528

query I rowsort
SELECT DISTINCT NULLIF ( - 99, - 5 )
----
-99

query I rowsort
SELECT ALL 95 - + 20 col1
----
75

query I rowsort
SELECT ALL ( + 3 ) AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT DISTINCT + 3 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT + 3 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT + ( - 45 ) + COUNT( * ) * 48 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4742
SELECT + ( - 45 ) + COUNT ( * ) * 48 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4743
SELECT - CASE 24 WHEN - CASE - COUNT( * ) WHEN 88 THEN AVG ( DISTINCT 94 ) + + 72 ELSE - 22 + + COUNT( * ) END THEN + 34 DIV 68 ELSE + 6 END * CAST( 4 AS SIGNED ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4743
SELECT - CASE 24 WHEN - CASE - COUNT ( * ) WHEN 88 THEN AVG ( DISTINCT 94 ) + + 72 ELSE - 22 + + COUNT ( * ) END THEN + 34 / 68 ELSE + 6 END * CAST ( 4 AS INTEGER ) AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4744
SELECT - CASE COALESCE ( + CASE 74 WHEN - 8 + - 32 THEN 83 + 27 * 68 END, 73 + COUNT( * ) ) WHEN 18 THEN + 72 WHEN + 58 - CAST( NULL AS SIGNED ) * - ( + ( - 97 ) + + COALESCE ( + NULLIF ( 14, - 2 + 45 ), + 63 * - 90 - 92 * - 77 ) ) THEN + 83 + - 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4744
SELECT - CASE COALESCE ( + CASE 74 WHEN - 8 + - 32 THEN 83 + 27 * 68 END, 73 + COUNT ( * ) ) WHEN 18 THEN + 72 WHEN + 58 - CAST ( NULL AS INTEGER ) * - ( + ( - 97 ) + + COALESCE ( + NULLIF ( 14, - 2 + 45 ), + 63 * - 90 - 92 * - 77 ) ) THEN + 83 + - 3 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4745
SELECT ALL CAST( 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL CAST ( 91 AS INTEGER )
----
91

query I rowsort
SELECT - NULLIF ( - 14, - ( 76 ) ) - 72
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4747
SELECT + 77 DIV 75 + 10 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4747
SELECT + 77 / 75 + 10 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT + COUNT( ALL 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4748
SELECT + COUNT ( ALL 10 ) AS col2
----
1

query I rowsort
SELECT ALL + ( 99 ) col0
----
99

query I rowsort
SELECT + NULLIF ( 19, + 24 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4751
SELECT 50 DIV + COUNT( 61 ) - - 48 * 7
----
386

skipif mysql # not compatible
query I rowsort label-4751
SELECT 50 / + COUNT ( 61 ) - - 48 * 7
----
386

query I rowsort
SELECT + 11 * - ( 99 )
----
-1089

query I rowsort
SELECT + 29 - + 63 * 82 AS col1
----
-5137

query I rowsort
SELECT ALL + 50 * - 87 AS col2
----
-4350

query I rowsort
SELECT 23 * ( + 26 ) + + 75 AS col0
----
673

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4756
SELECT + CASE + CAST( NULL AS DECIMAL ) WHEN + 2 * - ( COUNT( * ) * + 17 ) THEN NULL WHEN - 93 * + 5 THEN NULL WHEN + 17 * + 40 + - 22 THEN NULL ELSE 31 - ( 58 + + 42 ) END
----
-69

skipif mysql # not compatible
query I rowsort label-4756
SELECT + CASE + CAST ( NULL AS REAL ) WHEN + 2 * - ( COUNT ( * ) * + 17 ) THEN NULL WHEN - 93 * + 5 THEN NULL WHEN + 17 * + 40 + - 22 THEN NULL ELSE 31 - ( 58 + + 42 ) END
----
-69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4757
SELECT - + 48 DIV ( 48 * - CAST( ( ( + 77 ) ) AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4757
SELECT - + 48 / ( 48 * - CAST ( ( ( + 77 ) ) AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT + - 43 * 27
----
-1161

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT ALL + - 54 DIV - 27 + + 0 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL + - 54 / - 27 + + 0 AS col1
----
2

query I rowsort
SELECT + 35 + 76
----
111

query I rowsort
SELECT + + 68 * 31
----
2108

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT + 49 + SUM( ( 64 ) ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-4762
SELECT + 49 + SUM ( ( 64 ) ) AS col0
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT ALL - + 56 * 41 + - 50 * + CAST( + 36 AS SIGNED ) AS col1
----
-4096

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - + 56 * 41 + - 50 * + CAST ( + 36 AS INTEGER ) AS col1
----
-4096

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT CASE + 41 WHEN + 55 * 5 THEN 7 END * COUNT( ALL - 62 * + ( - 61 * + 77 ) ) + - MAX( DISTINCT 87 ) / - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT CASE + 41 WHEN + 55 * 5 THEN 7 END * COUNT ( ALL - 62 * + ( - 61 * + 77 ) ) + - MAX ( DISTINCT 87 ) / - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT ALL + 39 * COUNT( * ) + 43 * 98 AS col1
----
4253

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL + 39 * COUNT ( * ) + 43 * 98 AS col1
----
4253

query I rowsort
SELECT - 52 * - 82 + + 98
----
4362

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT ALL 15 + CAST( 77 AS SIGNED ) * + 39 AS col0
----
3018

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL 15 + CAST ( 77 AS INTEGER ) * + 39 AS col0
----
3018

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT + COALESCE ( - NULLIF ( 56, + CASE 87 WHEN 2 THEN - 44 + + SUM( ALL 89 ) END ), 48 )
----
-56

skipif mysql # not compatible
query I rowsort label-4768
SELECT + COALESCE ( - NULLIF ( 56, + CASE 87 WHEN 2 THEN - 44 + + SUM ( ALL 89 ) END ), 48 )
----
-56

query I rowsort
SELECT ALL - + 48 + 73
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT COUNT( * ) + 79
----
80

skipif mysql # not compatible
query I rowsort label-4770
SELECT COUNT ( * ) + 79
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT - SUM( DISTINCT + CASE ( 49 ) WHEN 39 + + 54 THEN - 95 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - SUM ( DISTINCT + CASE ( 49 ) WHEN 39 + + 54 THEN - 95 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT + 42 * COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-4772
SELECT + 42 * COUNT ( * )
----
42

query I rowsort
SELECT + 12 + 92 AS col2
----
104

query I rowsort
SELECT DISTINCT 91 * 73 AS col1
----
6643

query I rowsort
SELECT 0 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT - 78 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT - 78 * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT DISTINCT MAX( - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT MAX ( - 63 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4778
SELECT ALL COALESCE ( - 62, - CAST( NULL AS SIGNED ) + - 92 * SUM( DISTINCT ( + 91 ) * 83 + 28 * - ( + 20 ) ), - 35, + 91 * - ( 43 ) ) - + 18 * - NULLIF ( 4, CAST( 25 AS SIGNED ) / 98 )
----
10

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL COALESCE ( - 62, - CAST ( NULL AS INTEGER ) + - 92 * SUM ( DISTINCT ( + 91 ) * 83 + 28 * - ( + 20 ) ), - 35, + 91 * - ( 43 ) ) - + 18 * - NULLIF ( 4, CAST ( 25 AS INTEGER ) / 98 )
----
10

query I rowsort
SELECT ALL - 62 - + 50 AS col0
----
-112

query I rowsort
SELECT 79 * + 84 * 19
----
126084

query I rowsort
SELECT ALL 31 * + - 14
----
-434

query I rowsort
SELECT 69 * - + 78
----
-5382

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT 4 * + 44 * COUNT( * )
----
176

skipif mysql # not compatible
query I rowsort label-4783
SELECT 4 * + 44 * COUNT ( * )
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT ALL - 54 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL - 54 / - 74
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4785
SELECT DISTINCT - 45 DIV + + 11 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT - 45 / + + 11 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT ALL - COUNT( * ) * 14 * - 73 AS col2
----
1022

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL - COUNT ( * ) * 14 * - 73 AS col2
----
1022

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT 94 + - 40 + 69 * + COUNT( * ) * + 92
----
6402

skipif mysql # not compatible
query I rowsort label-4787
SELECT 94 + - 40 + 69 * + COUNT ( * ) * + 92
----
6402

query I rowsort
SELECT DISTINCT - COALESCE ( - - 64, - 69 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT 94 * + MAX( DISTINCT + 47 )
----
4418

skipif mysql # not compatible
query I rowsort label-4789
SELECT 94 * + MAX ( DISTINCT + 47 )
----
4418

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT COUNT( * ) + - + 74
----
-73

skipif mysql # not compatible
query I rowsort label-4790
SELECT COUNT ( * ) + - + 74
----
-73

query I rowsort
SELECT ALL + 55 + - + ( - 59 ) AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT 68 + - COUNT( * ) * COALESCE ( - 42, - 91 + + 12 ) AS col2
----
110

skipif mysql # not compatible
query I rowsort label-4792
SELECT 68 + - COUNT ( * ) * COALESCE ( - 42, - 91 + + 12 ) AS col2
----
110

query I rowsort
SELECT DISTINCT - + 59 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL - SUM( DISTINCT + 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL - SUM ( DISTINCT + 16 ) AS col2
----
-16

query I rowsort
SELECT DISTINCT + 58 + - 54 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4796
SELECT ALL + CAST( NULL AS SIGNED ) + - MIN( 50 ) * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL + CAST ( NULL AS INTEGER ) + - MIN ( 50 ) * 26
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT ALL - CAST( + 57 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL - CAST ( + 57 AS INTEGER )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT ( - 66 ) DIV 3
----
-22

skipif mysql # not compatible
query I rowsort label-4798
SELECT ( - 66 ) / 3
----
-22

query I rowsort
SELECT ALL CASE 31 WHEN - 38 THEN + 28 ELSE 21 END + - 7 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4800
SELECT - 35 * + CASE 60 WHEN - 94 THEN NULL WHEN 22 / - 6 + 67 * CAST( NULL AS SIGNED ) THEN COALESCE ( ( 73 ), COUNT( * ) * 58 + + 17 ) + 74 ELSE NULL END * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT - 35 * + CASE 60 WHEN - 94 THEN NULL WHEN 22 / - 6 + 67 * CAST ( NULL AS INTEGER ) THEN COALESCE ( ( 73 ), COUNT ( * ) * 58 + + 17 ) + 74 ELSE NULL END * - 59
----
NULL

query I rowsort
SELECT ALL 79 + - - 29
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT - 49 - + COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4802
SELECT - 49 - + COUNT ( * ) AS col0
----
-50

query I rowsort
SELECT DISTINCT - ( + ( 37 ) )
----
-37

query I rowsort
SELECT ALL - + 2 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT 27 * + 31 + + 57 * + CASE + CASE + 74 WHEN COUNT( * ) THEN 55 WHEN - COUNT( * ) / - ( COUNT( * ) ) + 50 THEN 11 * - MAX( - 22 ) - + 78 ELSE + 84 * + 21 END WHEN - 81 + - 23 THEN 20 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT 27 * + 31 + + 57 * + CASE + CASE + 74 WHEN COUNT ( * ) THEN 55 WHEN - COUNT ( * ) / - ( COUNT ( * ) ) + 50 THEN 11 * - MAX ( - 22 ) - + 78 ELSE + 84 * + 21 END WHEN - 81 + - 23 THEN 20 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT DISTINCT - NULLIF ( - COUNT( * ), 99 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT - NULLIF ( - COUNT ( * ), 99 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 2 AS col0
----
2

query I rowsort
SELECT ALL - 49 - 53
----
-102

query I rowsort
SELECT 53 + 57 * + - 66
----
-3709

query I rowsort
SELECT 88 - + 59 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT - COUNT( DISTINCT 15 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4811
SELECT - COUNT ( DISTINCT 15 ) AS col2
----
-1

query I rowsort
SELECT ALL 84 - + 88 + - + 54 - + 58 col0
----
-116

query I rowsort
SELECT 14 * + 20 * + + 1
----
280

query II rowsort
SELECT DISTINCT 15, - 66 AS col0
----
15
-66

query II rowsort
SELECT ALL 68 col1, NULLIF ( - 75, + 44 ) * 37 AS col2
----
68
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - COUNT( DISTINCT 71 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4816
SELECT - COUNT ( DISTINCT 71 ) col0
----
-1

query I rowsort
SELECT DISTINCT 71 col2
----
71

query I rowsort
SELECT 4 * 11
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL - COUNT( * ) + + 74
----
73

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - COUNT ( * ) + + 74
----
73

query II rowsort
SELECT ALL 77 AS col2, - 74 + - 70 col0
----
77
-144

query II rowsort
SELECT 97 AS col0, 36 + + - 86 AS col1
----
97
-50

query I rowsort
SELECT 23 + - - 1 + + 60 + 74 * - 66 AS col1
----
-4800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4823
SELECT 94 DIV + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-4823
SELECT 94 / + COUNT ( * )
----
94

query I rowsort
SELECT 29 * 80 * + 22 * - 92 AS col1
----
-4695680

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL 11 + - - COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL 11 + - - COUNT ( * ) AS col2
----
12

query II rowsort
SELECT ALL 88 AS col0, 69
----
88
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT CAST( NULL AS SIGNED ) - - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT CAST ( NULL AS INTEGER ) - - 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT + NULLIF ( MIN( 67 ), 96 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4828
SELECT + NULLIF ( MIN ( 67 ), 96 ) AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4829
SELECT NULLIF ( + + 78, - CAST( NULL AS SIGNED ) * - COUNT( * ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4829
SELECT NULLIF ( + + 78, - CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) AS col1
----
78

query I rowsort
SELECT + 48 * + 77 * - 12 + 14 * 58 AS col0
----
-43540

query I rowsort
SELECT ALL + - 79 * + + 24 * - 62 + 66 AS col0
----
117618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT ALL 43 * + 22 * + + AVG ( - CAST( NULL AS SIGNED ) ) + 19 + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL 43 * + 22 * + + AVG ( - CAST ( NULL AS INTEGER ) ) + 19 + + 71
----
NULL

query II rowsort
SELECT 74 AS col1, ( - 19 )
----
74
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ALL + SUM( DISTINCT - - 8 ) * + 83 + 77
----
741

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL + SUM ( DISTINCT - - 8 ) * + 83 + 77
----
741

query I rowsort
SELECT ( + - 80 )
----
-80

query I rowsort
SELECT ALL - + 77 * 78 AS col1
----
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT - SUM( ALL + 40 ) - - 38
----
-2

skipif mysql # not compatible
query I rowsort label-4837
SELECT - SUM ( ALL + 40 ) - - 38
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT - - 1 * 92 * COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT - - 1 * 92 * COUNT ( * ) AS col1
----
92

query I rowsort
SELECT + - 32 AS col2
----
-32

query I rowsort
SELECT - - 14 + + 37 * - ( 79 ) AS col0
----
-2909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT - - 8 * - + CAST( + - 83 AS SIGNED )
----
664

skipif mysql # not compatible
query I rowsort label-4841
SELECT - - 8 * - + CAST ( + - 83 AS INTEGER )
----
664

query II rowsort
SELECT - 29 AS col2, + 17
----
-29
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT DISTINCT - 92 * - COUNT( * ) * - 6 * + ( - COUNT( * ) * - COUNT( DISTINCT 42 ) ) + 78 * 30
----
1788

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT - 92 * - COUNT ( * ) * - 6 * + ( - COUNT ( * ) * - COUNT ( DISTINCT 42 ) ) + 78 * 30
----
1788

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL + + ( CASE - 16 WHEN - 43 + - 39 THEN NULL WHEN + 87 * 74 THEN COUNT( * ) END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL + + ( CASE - 16 WHEN - 43 + - 39 THEN NULL WHEN + 87 * 74 THEN COUNT ( * ) END ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT 64 * + 65 * + + 95 + 42 DIV + ( 56 ) + 64
----
395264

skipif mysql # not compatible
query I rowsort label-4845
SELECT 64 * + 65 * + + 95 + 42 / + ( 56 ) + 64
----
395264

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL - COUNT( * ) * ( + 31 ) - - 72 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL - COUNT ( * ) * ( + 31 ) - - 72 AS col2
----
41

query I rowsort
SELECT + 85 col2
----
85

query I rowsort
SELECT ALL + - 22 AS col2
----
-22

query II rowsort
SELECT DISTINCT + 62 AS col1, + 21 - 61 AS col2
----
62
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4850
SELECT + COALESCE ( - - 11, COALESCE ( + 59, 67 ) DIV - CASE 54 WHEN - 90 + - 69 THEN NULL WHEN - CAST( CASE - COALESCE ( + 93, AVG ( + COALESCE ( 72, + 11, 0 ) ) ) WHEN - 14 THEN COUNT( * ) WHEN 85 DIV 17 THEN NULL ELSE NULL END AS SIGNED ) - ( - 88 ) THEN 70 ELSE NULL END + + CASE 47 WHEN + 49 - 35 THEN - 9 * COUNT( * ) WHEN 43 - 33 THEN NULL ELSE 91 END, 92 + COUNT( * ) ) * - 63 AS col0
----
-693

skipif mysql # not compatible
query I rowsort label-4850
SELECT + COALESCE ( - - 11, COALESCE ( + 59, 67 ) / - CASE 54 WHEN - 90 + - 69 THEN NULL WHEN - CAST ( CASE - COALESCE ( + 93, AVG ( + COALESCE ( 72, + 11, 0 ) ) ) WHEN - 14 THEN COUNT ( * ) WHEN 85 / 17 THEN NULL ELSE NULL END AS INTEGER ) - ( - 88 ) THEN 70 ELSE NULL END + + CASE 47 WHEN + 49 - 35 THEN - 9 * COUNT ( * ) WHEN 43 - 33 THEN NULL ELSE 91 END, 92 + COUNT ( * ) ) * - 63 AS col0
----
-693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4851
SELECT DISTINCT - 53 * + + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - 53 * + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 24 AS col0
----
NULL

query I rowsort
SELECT ALL ( - NULLIF ( + 94, - 90 ) ) AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4853
SELECT DISTINCT + 44 * MIN( + 96 ) * 32 DIV 86 AS col0
----
1571

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT + 44 * MIN ( + 96 ) * 32 / 86 AS col0
----
1571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4854
SELECT - COUNT( * ) * - 65 + ( 4 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT - COUNT ( * ) * - 65 + ( 4 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT + 72 DIV + + 10 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4855
SELECT + 72 / + + 10 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4856
SELECT + CAST( + 46 AS SIGNED ) * - COUNT( * ) + + + ( SUM( ALL 96 ) ) + 89
----
139

skipif mysql # not compatible
query I rowsort label-4856
SELECT + CAST ( + 46 AS INTEGER ) * - COUNT ( * ) + + + ( SUM ( ALL 96 ) ) + 89
----
139

query I rowsort
SELECT DISTINCT + 54 * - 1 AS col1
----
-54

query I rowsort
SELECT ALL NULLIF ( 20, + 83 + - - 81 )
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4859
SELECT ALL NULLIF ( + ( 21 ), - CAST( NULL AS SIGNED ) * + 44 ) DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL NULLIF ( + ( 21 ), - CAST ( NULL AS INTEGER ) * + 44 ) / + 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4860
SELECT + 36 DIV - - COUNT( * ) DIV COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4860
SELECT + 36 / - - COUNT ( * ) / COUNT ( * ) AS col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4861
SELECT ALL + 27 + + + 60 + + - 39 DIV - + COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + 27 + + + 60 + + - 39 / - + COUNT ( * )
----
126

query I rowsort
SELECT - NULLIF ( - 83, - 54 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT - 24 * MAX( 76 ) * ( 47 )
----
-85728

skipif mysql # not compatible
query I rowsort label-4863
SELECT - 24 * MAX ( 76 ) * ( 47 )
----
-85728

query I rowsort
SELECT DISTINCT 36 + + 81 - 51
----
66

query I rowsort
SELECT + 6 + - 80
----
-74

query I rowsort
SELECT ALL 71 + - - 0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT + 94 + - 18 + - 29 DIV + + 21 col0
----
75

skipif mysql # not compatible
query I rowsort label-4867
SELECT + 94 + - 18 + - 29 / + + 21 col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT COUNT( * ) * 90
----
90

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT COUNT ( * ) * 90
----
90

query I rowsort
SELECT + 70 + - 86
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4870
SELECT ALL CASE - 52 WHEN - 97 * + - 19 * 29 THEN - 84 WHEN + COUNT( * ) + 3 THEN 70 DIV - COUNT( * ) ELSE - ( + 91 ) END + MIN( - ( 95 ) ) AS col2
----
-186

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL CASE - 52 WHEN - 97 * + - 19 * 29 THEN - 84 WHEN + COUNT ( * ) + 3 THEN 70 / - COUNT ( * ) ELSE - ( + 91 ) END + MIN ( - ( 95 ) ) AS col2
----
-186

query I rowsort
SELECT ALL 54 + 58 + - 85
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT DISTINCT 94 * 95 * + + COUNT( * )
----
8930

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT 94 * 95 * + + COUNT ( * )
----
8930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4873
SELECT + COUNT( * ) * + 2 * + - CASE + SUM( DISTINCT 32 ) WHEN - 72 / 70 THEN NULL WHEN 42 + + 12 * - CAST( + CASE COUNT( * ) WHEN - CASE 12 WHEN 55 THEN - COUNT( * ) - 79 / 16 WHEN - 45 THEN + 79 END THEN NULL WHEN ( - 59 ) THEN NULL ELSE - 96 * + MAX( + ( CAST( 17 AS DECIMAL ) ) ) END + + 1 AS SIGNED ) THEN 28 END + - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT + COUNT ( * ) * + 2 * + - CASE + SUM ( DISTINCT 32 ) WHEN - 72 / 70 THEN NULL WHEN 42 + + 12 * - CAST ( + CASE COUNT ( * ) WHEN - CASE 12 WHEN 55 THEN - COUNT ( * ) - 79 / 16 WHEN - 45 THEN + 79 END THEN NULL WHEN ( - 59 ) THEN NULL ELSE - 96 * + MAX ( + ( CAST ( 17 AS REAL ) ) ) END + + 1 AS INTEGER ) THEN 28 END + - 63 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 49 col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT + 20 DIV 28 * + - 79 + + + 28 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4875
SELECT + 20 / 28 * + - 79 + + + 28 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT - + COUNT( * ) + - - 90 + + COUNT( ALL 36 ) - 54
----
36

skipif mysql # not compatible
query I rowsort label-4876
SELECT - + COUNT ( * ) + - - 90 + + COUNT ( ALL 36 ) - 54
----
36

query I rowsort
SELECT DISTINCT + - 39 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT + 8 * + COUNT( DISTINCT - 48 ) - - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-4878
SELECT + 8 * + COUNT ( DISTINCT - 48 ) - - COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT + COUNT( * ) * + ( - 88 ) + + 40
----
-48

skipif mysql # not compatible
query I rowsort label-4879
SELECT + COUNT ( * ) * + ( - 88 ) + + 40
----
-48

query I rowsort
SELECT - + 37 * + 75 AS col1
----
-2775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT ALL + CAST( + - 45 AS SIGNED ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + CAST ( + - 45 AS INTEGER ) AS col0
----
-45

query I rowsort
SELECT DISTINCT + 15 * - 91
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT + + MIN( ALL + + 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT + + MIN ( ALL + + 53 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT DISTINCT + NULLIF ( 19, - COUNT( * ) + + 64 + - 88 )
----
19

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT + NULLIF ( 19, - COUNT ( * ) + + 64 + - 88 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT + NULLIF ( - - 98, - ( - SUM( 13 ) ) ) * COUNT( * ) col0
----
98

skipif mysql # not compatible
query I rowsort label-4885
SELECT + NULLIF ( - - 98, - ( - SUM ( 13 ) ) ) * COUNT ( * ) col0
----
98

query I rowsort
SELECT ALL + 21 * - 84 AS col2
----
-1764

query I rowsort
SELECT - ( + 61 ) col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT CASE 73 WHEN - 72 THEN NULL WHEN + SUM( DISTINCT - 81 ) THEN NULL ELSE - 63 * COUNT( * ) END AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-4888
SELECT CASE 73 WHEN - 72 THEN NULL WHEN + SUM ( DISTINCT - 81 ) THEN NULL ELSE - 63 * COUNT ( * ) END AS col2
----
-63

query I rowsort
SELECT - 96 * + 81
----
-7776

onlyif mysql # aggregate syntax: 
query II rowsort label-4890
SELECT DISTINCT + COUNT( * ), - 95 AS col0
----
1
-95

skipif mysql # not compatible
query II rowsort label-4890
SELECT DISTINCT + COUNT ( * ), - 95 AS col0
----
1
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT + CASE + 42 WHEN + NULLIF ( + + 76, MAX( 37 ) * 71 ) - 7 THEN NULL WHEN + 66 THEN 21 END * ( - 10 ) - + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT + CASE + 42 WHEN + NULLIF ( + + 76, MAX ( 37 ) * 71 ) - 7 THEN NULL WHEN + 66 THEN 21 END * ( - 10 ) - + 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT NULLIF ( 70, MAX( ALL + 59 ) )
----
70

skipif mysql # not compatible
query I rowsort label-4892
SELECT NULLIF ( 70, MAX ( ALL + 59 ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL - COUNT( DISTINCT 87 ) * - COALESCE ( + 93, + 12 * - 64 ) - COUNT( * ) + 74
----
166

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL - COUNT ( DISTINCT 87 ) * - COALESCE ( + 93, + 12 * - 64 ) - COUNT ( * ) + 74
----
166

query I rowsort
SELECT ALL 49 * + - 86
----
-4214

query I rowsort
SELECT NULLIF ( - 80, - 3 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4896
SELECT - ( + 90 ) / 82 + + 30 * + + 56 / + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT - ( + 90 ) / 82 + + 30 * + + 56 / + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - 89 - + 81
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4898
SELECT - NULLIF ( CAST( NULL AS SIGNED ), - - 25 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), - - 25 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT + 65 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT + 65 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( + 36 ) + 13 AS col2
----
49

query I rowsort
SELECT - 53 + + 69 - + 71
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4902
SELECT ALL 32 AS col0, 15 / - CASE COUNT( * ) WHEN - 84 * 95 THEN + CAST( NULL AS SIGNED ) + - ( + 86 ) / 28 END + 56
----
32
NULL

skipif mysql # not compatible
query II rowsort label-4902
SELECT ALL 32 AS col0, 15 / - CASE COUNT ( * ) WHEN - 84 * 95 THEN + CAST ( NULL AS INTEGER ) + - ( + 86 ) / 28 END + 56
----
32
NULL

query II rowsort
SELECT - 70 * - 89 * - 22 AS col2, 56 AS col1
----
-137060
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT - 29 + - COUNT( * ) * + 4 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4904
SELECT - 29 + - COUNT ( * ) * + 4 AS col1
----
-33

query I rowsort
SELECT ALL + 5 * - + 40
----
-200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4906
SELECT DISTINCT + CASE - CASE + 3 WHEN - 95 THEN 5 ELSE NULL END WHEN - CASE WHEN 16 NOT BETWEEN 23 * + CAST( NULL AS DECIMAL ) AND CASE - 93 WHEN NULLIF ( + COUNT( * ), 98 - + 96 ) + 82 * 37 THEN + 97 + - COUNT( * ) WHEN 97 * - COUNT( * ) THEN NULL END / 24 THEN - 13 + + 15 * + 52 WHEN ( + 64 ) >= 33 + 59 THEN 42 + 82 END * - 0 + - 60 THEN COUNT( * ) ELSE + MIN( ALL + 58 ) * 67 + + COUNT( * ) END - SUM( ALL CAST( - 56 AS SIGNED ) ) AS col0
----
3943

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT + CASE - CASE + 3 WHEN - 95 THEN 5 ELSE NULL END WHEN - CASE WHEN 16 NOT BETWEEN 23 * + CAST ( NULL AS REAL ) AND CASE - 93 WHEN NULLIF ( + COUNT ( * ), 98 - + 96 ) + 82 * 37 THEN + 97 + - COUNT ( * ) WHEN 97 * - COUNT ( * ) THEN NULL END / 24 THEN - 13 + + 15 * + 52 WHEN ( + 64 ) >= 33 + 59 THEN 42 + 82 END * - 0 + - 60 THEN COUNT ( * ) ELSE + MIN ( ALL + 58 ) * 67 + + COUNT ( * ) END - SUM ( ALL CAST ( - 56 AS INTEGER ) ) AS col0
----
3943

query I rowsort
SELECT 46 * + 22 AS col2
----
1012

query I rowsort
SELECT - ( - - 62 )
----
-62

query I rowsort
SELECT ALL - 27 - + - 32 + - - 12 + 45 * + 92 AS col2
----
4157

query I rowsort
SELECT - + 79 AS col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4911
SELECT - 2 - 10 + 13 * - CAST( + COUNT( * ) AS SIGNED ) * - 80 AS col0
----
1028

skipif mysql # not compatible
query I rowsort label-4911
SELECT - 2 - 10 + 13 * - CAST ( + COUNT ( * ) AS INTEGER ) * - 80 AS col0
----
1028

query I rowsort
SELECT + + 0 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4913
SELECT ALL COUNT( * ) * - 38 DIV 85 AS col0, 25 + + COUNT( * ) - 56 * + 22
----
0
-1206

skipif mysql # not compatible
query II rowsort label-4913
SELECT ALL COUNT ( * ) * - 38 / 85 AS col0, 25 + + COUNT ( * ) - 56 * + 22
----
0
-1206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4914
SELECT ALL CAST( + 57 AS SIGNED ) * 30 AS col0
----
1710

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL CAST ( + 57 AS INTEGER ) * 30 AS col0
----
1710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4915
SELECT DISTINCT - CAST( - 64 AS SIGNED ) * + COUNT( * ) * 61
----
3904

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT - CAST ( - 64 AS INTEGER ) * + COUNT ( * ) * 61
----
3904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT 95 * SUM( ALL + + 33 ) * + + NULLIF ( CAST( COUNT( * ) AS SIGNED ), 25 - - 5 * + 65 ) AS col2
----
3135

skipif mysql # not compatible
query I rowsort label-4916
SELECT 95 * SUM ( ALL + + 33 ) * + + NULLIF ( CAST ( COUNT ( * ) AS INTEGER ), 25 - - 5 * + 65 ) AS col2
----
3135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4917
SELECT + 1 / + COUNT( * ) - + - 46 + 66 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT + 1 / + COUNT ( * ) - + - 46 + 66 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT 62 * + 17 + - + NULLIF ( - + MAX( ALL - + 41 ), 10 ) col0
----
1013

skipif mysql # not compatible
query I rowsort label-4918
SELECT 62 * + 17 + - + NULLIF ( - + MAX ( ALL - + 41 ), 10 ) col0
----
1013

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT SUM( ALL + 72 ) - + + COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4919
SELECT SUM ( ALL + 72 ) - + + COUNT ( * ) AS col0
----
71

query I rowsort
SELECT + ( - 96 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT + ( ( + 86 ) ) * - 43 + + MAX( DISTINCT 20 ) AS col1
----
-3678

skipif mysql # not compatible
query I rowsort label-4921
SELECT + ( ( + 86 ) ) * - 43 + + MAX ( DISTINCT 20 ) AS col1
----
-3678

onlyif mysql # DIV for integer division: 
query I rowsort label-4922
SELECT - 87 DIV - 62
----
1

skipif mysql # not compatible
query I rowsort label-4922
SELECT - 87 / - 62
----
1

query I rowsort
SELECT DISTINCT - 92 col0
----
-92

query I rowsort
SELECT ALL + 1 + 76 AS col1
----
77

query I rowsort
SELECT 51 + - 65 AS col1
----
-14

query I rowsort
SELECT ALL NULLIF ( 91, 48 + + - 14 ) + - - 18
----
109

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4927
SELECT CAST( 86 AS SIGNED ) + - CAST( + CAST( - 86 AS DECIMAL ) AS SIGNED )
----
172

skipif mysql # not compatible
query I rowsort label-4927
SELECT CAST ( 86 AS INTEGER ) + - CAST ( + CAST ( - 86 AS REAL ) AS INTEGER )
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT ALL + MAX( - 32 ) * + - 42
----
1344

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL + MAX ( - 32 ) * + - 42
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL + 36 + + 28 * + COUNT( * ) * COUNT( * ) * COUNT( * ) * - 40 col0
----
-1084

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL + 36 + + 28 * + COUNT ( * ) * COUNT ( * ) * COUNT ( * ) * - 40 col0
----
-1084

query II rowsort
SELECT DISTINCT - ( + 56 ) * - ( - 80 ) AS col0, 94
----
-4480
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4931
SELECT 7 DIV - 17 * 42
----
0

skipif mysql # not compatible
query I rowsort label-4931
SELECT 7 / - 17 * 42
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT ALL 1 + - COUNT( * ) AS col1, 72 AS col1
----
0
72

skipif mysql # not compatible
query II rowsort label-4932
SELECT ALL 1 + - COUNT ( * ) AS col1, 72 AS col1
----
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT 84 + + MAX( - 76 )
----
8

skipif mysql # not compatible
query I rowsort label-4933
SELECT 84 + + MAX ( - 76 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT CASE + COUNT( * ) WHEN + + COUNT( * ) * 60 / 40 - 62 - 79 THEN - COUNT( * ) + 85 WHEN - 31 * 51 THEN - 55 END * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT CASE + COUNT ( * ) WHEN + + COUNT ( * ) * 60 / 40 - 62 - 79 THEN - COUNT ( * ) + 85 WHEN - 31 * 51 THEN - 55 END * - 21
----
NULL

query I rowsort
SELECT 23 + + + 75 + + 66 * - 15 AS col0
----
-892

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL MAX( ALL + 66 ) * 18
----
1188

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL MAX ( ALL + 66 ) * 18
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT - MIN( + ( + + 10 ) ) * - COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT - MIN ( + ( + + 10 ) ) * - COUNT ( * ) AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4938
SELECT - 17 AS col1, CAST( NULL AS SIGNED ) + - - 24
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-4938
SELECT - 17 AS col1, CAST ( NULL AS INTEGER ) + - - 24
----
-17
NULL

query I rowsort
SELECT 32 + + 78
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-4940
SELECT 26, - 50 + + + COUNT( * ) * + + MAX( DISTINCT + 13 ) + + COUNT( * ) + + MIN( + 1 ) * + SUM( 97 ) AS col1
----
26
61

skipif mysql # not compatible
query II rowsort label-4940
SELECT 26, - 50 + + + COUNT ( * ) * + + MAX ( DISTINCT + 13 ) + + COUNT ( * ) + + MIN ( + 1 ) * + SUM ( 97 ) AS col1
----
26
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4941
SELECT ALL + COUNT( * ) + CAST( - 88 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL + COUNT ( * ) + CAST ( - 88 AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL MAX( 23 ) * + 77 + 63 * + - COUNT( * ) * - COUNT( * ) + 97 * + COUNT( * )
----
1931

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL MAX ( 23 ) * + 77 + 63 * + - COUNT ( * ) * - COUNT ( * ) + 97 * + COUNT ( * )
----
1931

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT 19 + + - COALESCE ( - - 11, + 4 * - - 69 ) * + CASE + COUNT( ALL - 16 ) WHEN 14 * 14 + 5 * - 23 THEN 93 * 33 WHEN - 23 THEN NULL ELSE 49 + COUNT( * ) * 84 END
----
-1444

skipif mysql # not compatible
query I rowsort label-4943
SELECT 19 + + - COALESCE ( - - 11, + 4 * - - 69 ) * + CASE + COUNT ( ALL - 16 ) WHEN 14 * 14 + 5 * - 23 THEN 93 * 33 WHEN - 23 THEN NULL ELSE 49 + COUNT ( * ) * 84 END
----
-1444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4944
SELECT DISTINCT + CAST( + 39 AS SIGNED ) + - + 13 * + CASE - 93 WHEN + COUNT( * ) * COUNT( * ) THEN NULL ELSE + 42 END col0
----
-507

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT + CAST ( + 39 AS INTEGER ) + - + 13 * + CASE - 93 WHEN + COUNT ( * ) * COUNT ( * ) THEN NULL ELSE + 42 END col0
----
-507

query I rowsort
SELECT ALL + 65 * + 44 AS col2
----
2860

onlyif mysql # aggregate syntax: 
query II rowsort label-4946
SELECT + 20 + + 40 AS col0, - COUNT( * ) + + - NULLIF ( SUM( DISTINCT - + 18 ), + 38 ) * - 55
----
60
-991

skipif mysql # not compatible
query II rowsort label-4946
SELECT + 20 + + 40 AS col0, - COUNT ( * ) + + - NULLIF ( SUM ( DISTINCT - + 18 ), + 38 ) * - 55
----
60
-991

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4947
SELECT CAST( NULL AS DECIMAL ) * + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT CAST ( NULL AS REAL ) * + + 38
----
NULL

query I rowsort
SELECT 91 + - 90
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT - + SUM( - - 59 ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-4949
SELECT - + SUM ( - - 59 ) col2
----
-59

query I rowsort
SELECT - 86 + 29 AS col1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4951
SELECT 40 DIV - 22 + - - 55
----
54

skipif mysql # not compatible
query I rowsort label-4951
SELECT 40 / - 22 + - - 55
----
54

query I rowsort
SELECT ALL - + 78 * - 88
----
6864

query I rowsort
SELECT 71 + - + 58
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT DISTINCT - - 28 * + ( + COUNT( * ) ) - - + 24 * + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT - - 28 * + ( + COUNT ( * ) ) - - + 24 * + COUNT ( * ) AS col1
----
52

query II rowsort
SELECT ALL 8, + 38 AS col0
----
8
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT + 27 DIV + 19 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4956
SELECT + 27 / + 19 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4957
SELECT + COUNT( DISTINCT - + CAST( - 94 AS SIGNED ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4957
SELECT + COUNT ( DISTINCT - + CAST ( - 94 AS INTEGER ) ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT ALL - 21 DIV 2 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL - 21 / 2 AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4959
SELECT + 93 DIV 89 + + MAX( ALL - + 8 ) + + 53 * 61 * 65 AS col0
----
210138

skipif mysql # not compatible
query I rowsort label-4959
SELECT + 93 / 89 + + MAX ( ALL - + 8 ) + + 53 * 61 * 65 AS col0
----
210138

query I rowsort
SELECT 86 + - + 44
----
42

query II rowsort
SELECT + 76 AS col2, - 23 AS col1
----
76
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4962
SELECT ALL - 38 * - 89 + - MIN( ALL 76 ) DIV - - NULLIF ( - COUNT( * ), - 44 * - NULLIF ( 97, 13 ) ) * + 1 - + 12 DIV 8
----
3457

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - 38 * - 89 + - MIN ( ALL 76 ) / - - NULLIF ( - COUNT ( * ), - 44 * - NULLIF ( 97, 13 ) ) * + 1 - + 12 / 8
----
3457

query I rowsort
SELECT DISTINCT + 2 * + 25 + - 45 * CASE + AVG ( DISTINCT + 64 ) WHEN 8 * + 43 THEN 3 + + 59 WHEN 57 * 98 - + ( - CASE 69 WHEN AVG ( + 17 ) * 29 THEN 75 WHEN 26 THEN 2 END ) THEN NULL END col2
----
NULL

query II rowsort
SELECT ALL - 78 AS col2, 67 AS col1
----
-78
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT - 77 AS col2, MIN( + 90 )
----
-77
90

skipif mysql # not compatible
query II rowsort label-4965
SELECT - 77 AS col2, MIN ( + 90 )
----
-77
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL - + CASE - - 47 WHEN + - 67 THEN + - COUNT( * ) WHEN - ( + 36 ) * 97 THEN NULL WHEN NULLIF ( - 38, ( 18 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL - + CASE - - 47 WHEN + - 67 THEN + - COUNT ( * ) WHEN - ( + 36 ) * 97 THEN NULL WHEN NULLIF ( - 38, ( 18 ) ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4967
SELECT ALL 60 * MIN( - - 54 ) / - 90 + - 90 - - 41 + - + CAST( NULL AS SIGNED ) * + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL 60 * MIN ( - - 54 ) / - 90 + - 90 - - 41 + - + CAST ( NULL AS INTEGER ) * + 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4968
SELECT COUNT( + 96 ) AS col0, 4 AS col1
----
1
4

skipif mysql # not compatible
query II rowsort label-4968
SELECT COUNT ( + 96 ) AS col0, 4 AS col1
----
1
4

query I rowsort
SELECT DISTINCT 49 + - + 14 + - 73 * + 30 AS col2
----
-2155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4970
SELECT ALL COUNT( * ) + - - 41 - + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL COUNT ( * ) + - - 41 - + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 23 * - 33 col1
----
-759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4972
SELECT 32 * ( - 77 ) / + 81 + - - 67 * 29 * + + 11 + CASE 85 WHEN 67 * + 22 THEN - 64 WHEN 43 * + COALESCE ( + 12, 53 + CAST( ( - 9 ) AS SIGNED ) * CAST( 56 * CAST( - COUNT( * ) * + 36 AS SIGNED ) AS DECIMAL ) ) THEN COUNT( * ) * 18 - - 72 * + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT 32 * ( - 77 ) / + 81 + - - 67 * 29 * + + 11 + CASE 85 WHEN 67 * + 22 THEN - 64 WHEN 43 * + COALESCE ( + 12, 53 + CAST ( ( - 9 ) AS INTEGER ) * CAST ( 56 * CAST ( - COUNT ( * ) * + 36 AS INTEGER ) AS REAL ) ) THEN COUNT ( * ) * 18 - - 72 * + 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4973
SELECT SUM( - - 25 ), - ( 60 ) AS col1
----
25
-60

skipif mysql # not compatible
query II rowsort label-4973
SELECT SUM ( - - 25 ), - ( 60 ) AS col1
----
25
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT SUM( 53 )
----
53

skipif mysql # not compatible
query I rowsort label-4974
SELECT SUM ( 53 )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4975
SELECT SUM( + 49 ) AS col0, 46 + - - 83
----
49
129

skipif mysql # not compatible
query II rowsort label-4975
SELECT SUM ( + 49 ) AS col0, 46 + - - 83
----
49
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT ALL 48 + + + COUNT( * ) + 1 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL 48 + + + COUNT ( * ) + 1 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT 41 * 34 - 60 + - CASE + COUNT( * ) WHEN ( - - 15 ) + 19 * COUNT( * ) THEN NULL ELSE + 71 * 14 END * - NULLIF ( + 26, - 84 )
----
27178

skipif mysql # not compatible
query I rowsort label-4977
SELECT 41 * 34 - 60 + - CASE + COUNT ( * ) WHEN ( - - 15 ) + 19 * COUNT ( * ) THEN NULL ELSE + 71 * 14 END * - NULLIF ( + 26, - 84 )
----
27178

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT + 30 - NULLIF ( - + 24, 28 ) + + MAX( ALL - 51 )
----
3

skipif mysql # not compatible
query I rowsort label-4978
SELECT + 30 - NULLIF ( - + 24, 28 ) + + MAX ( ALL - 51 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4979
SELECT ALL + MIN( 63 ), 74 AS col0
----
63
74

skipif mysql # not compatible
query II rowsort label-4979
SELECT ALL + MIN ( 63 ), 74 AS col0
----
63
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4980
SELECT + MAX( - 81 ) AS col2, - 75 AS col0
----
-81
-75

skipif mysql # not compatible
query II rowsort label-4980
SELECT + MAX ( - 81 ) AS col2, - 75 AS col0
----
-81
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4981
SELECT ALL 12 - 37 * MAX( - - CAST( - 97 AS SIGNED ) )
----
3601

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL 12 - 37 * MAX ( - - CAST ( - 97 AS INTEGER ) )
----
3601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4982
SELECT + 23 * - COALESCE ( + COUNT( * ), CASE + 46 WHEN - 51 - - COALESCE ( 34, 93 * + NULLIF ( - ( - 78 ), 68 * + CAST( 1 AS SIGNED ) + 39 * + 69 ) + + CASE 94 WHEN 0 - ( 39 ) * 37 THEN CASE - 50 WHEN + 39 + + 33 THEN NULL WHEN 45 + + 87 * COALESCE ( + 17 * 80 + - COUNT( * ), CAST( NULL AS SIGNED ) + - 98 * 18 ) THEN NULL WHEN + 12 THEN AVG ( ALL - 68 ) END ELSE - 2 END ) THEN NULL ELSE + 5 * - 58 END * ( 78 ) + ( 48 ) * CASE - COUNT( * ) WHEN 21 THEN + COUNT( * ) END, 92 DIV - ( - ( - 35 ) ), + 45 ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-4982
SELECT + 23 * - COALESCE ( + COUNT ( * ), CASE + 46 WHEN - 51 - - COALESCE ( 34, 93 * + NULLIF ( - ( - 78 ), 68 * + CAST ( 1 AS INTEGER ) + 39 * + 69 ) + + CASE 94 WHEN 0 - ( 39 ) * 37 THEN CASE - 50 WHEN + 39 + + 33 THEN NULL WHEN 45 + + 87 * COALESCE ( + 17 * 80 + - COUNT ( * ), CAST ( NULL AS INTEGER ) + - 98 * 18 ) THEN NULL WHEN + 12 THEN AVG ( ALL - 68 ) END ELSE - 2 END ) THEN NULL ELSE + 5 * - 58 END * ( 78 ) + ( 48 ) * CASE - COUNT ( * ) WHEN 21 THEN + COUNT ( * ) END, 92 / - ( - ( - 35 ) ), + 45 ) col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT ALL + 78 - COUNT( * ) * 93
----
-15

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + 78 - COUNT ( * ) * 93
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4984
SELECT + COUNT( * ) * + MAX( + 42 ) DIV - - 21 - - 53 DIV + 81 * + - MAX( CAST( CAST( 81 AS SIGNED ) AS SIGNED ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4984
SELECT + COUNT ( * ) * + MAX ( + 42 ) / - - 21 - - 53 / + 81 * + - MAX ( CAST ( CAST ( 81 AS INTEGER ) AS INTEGER ) ) AS col1
----
2

query I rowsort
SELECT + 70 + - 73 + 56 AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT - 76 - - 98 DIV - 26 col2
----
-79

skipif mysql # not compatible
query I rowsort label-4986
SELECT - 76 - - 98 / - 26 col2
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4987
SELECT + 87 * 63 AS col0, COUNT( * ) + 61 + - - 56 + - + 40
----
5481
78

skipif mysql # not compatible
query II rowsort label-4987
SELECT + 87 * 63 AS col0, COUNT ( * ) + 61 + - - 56 + - + 40
----
5481
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT + ( + NULLIF ( 96, - SUM( ALL + - 42 ) ) ) * - 62
----
-5952

skipif mysql # not compatible
query I rowsort label-4988
SELECT + ( + NULLIF ( 96, - SUM ( ALL + - 42 ) ) ) * - 62
----
-5952

onlyif mysql # aggregate syntax: 
query II rowsort label-4989
SELECT - 31 * COUNT( * ) AS col1, 92 AS col1
----
-31
92

skipif mysql # not compatible
query II rowsort label-4989
SELECT - 31 * COUNT ( * ) AS col1, 92 AS col1
----
-31
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT + 75 + + COUNT( * ) * - 24 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4990
SELECT + 75 + + COUNT ( * ) * - 24 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT NULLIF ( - + COUNT( * ), 65 + - 94 ) * + + COUNT( + 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT NULLIF ( - + COUNT ( * ), 65 + - 94 ) * + + COUNT ( + 51 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT - - CAST( - - 52 AS SIGNED ) * + - CASE - 29 WHEN + MIN( DISTINCT + + 35 ) THEN NULL ELSE 76 END + + 18
----
-3934

skipif mysql # not compatible
query I rowsort label-4992
SELECT - - CAST ( - - 52 AS INTEGER ) * + - CASE - 29 WHEN + MIN ( DISTINCT + + 35 ) THEN NULL ELSE 76 END + + 18
----
-3934

query I rowsort
SELECT ALL ( - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT - MAX( + 73 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-4994
SELECT - MAX ( + 73 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL + - NULLIF ( 95, + 31 * + 25 - + - CASE - - 75 WHEN - NULLIF ( 54, - NULLIF ( 45, 76 / - 30 ) ) + + 81 THEN - 49 * + 66 WHEN + CASE COUNT( * ) WHEN 17 THEN 92 END * 57 + 91 THEN - 40 * + 76 END * 77 ) + + 59 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL + - NULLIF ( 95, + 31 * + 25 - + - CASE - - 75 WHEN - NULLIF ( 54, - NULLIF ( 45, 76 / - 30 ) ) + + 81 THEN - 49 * + 66 WHEN + CASE COUNT ( * ) WHEN 17 THEN 92 END * 57 + 91 THEN - 40 * + 76 END * 77 ) + + 59 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT + MAX( - 71 ) + - + MIN( + 87 ) * + - COUNT( * ) * 27 - COUNT( * ) + NULLIF ( + 13 + 42 * 27, - AVG ( DISTINCT 13 ) / + 65 )
----
3424

skipif mysql # not compatible
query I rowsort label-4996
SELECT + MAX ( - 71 ) + - + MIN ( + 87 ) * + - COUNT ( * ) * 27 - COUNT ( * ) + NULLIF ( + 13 + 42 * 27, - AVG ( DISTINCT 13 ) / + 65 )
----
3424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4997
SELECT - 33 * CASE + + AVG ( + 58 ) WHEN - + ( + 21 ) THEN NULL ELSE + COUNT( * ) DIV 54 - - ( - 78 ) * - COUNT( * ) END AS col1
----
-2574

skipif mysql # not compatible
query I rowsort label-4997
SELECT - 33 * CASE + + AVG ( + 58 ) WHEN - + ( + 21 ) THEN NULL ELSE + COUNT ( * ) / 54 - - ( - 78 ) * - COUNT ( * ) END AS col1
----
-2574

query II rowsort
SELECT - + 56 + - 89 AS col2, + 41
----
-145
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT DISTINCT - 92 + + - COUNT( 15 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT - 92 + + - COUNT ( 15 ) AS col2
----
-93

query II rowsort
SELECT ALL + 34 + 26 * + + 22 AS col1, 35 AS col2
----
606
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT - 60 DIV + - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5001
SELECT - 60 / + - 90 AS col1
----
0

query I rowsort
SELECT - + 54 + + - 21
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT ALL + + 63 * + + 71 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + + 63 * + + 71 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT + 66 / + NULLIF ( COUNT( * ), + + COUNT( * ) ) / 65 + 33 + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT + 66 / + NULLIF ( COUNT ( * ), + + COUNT ( * ) ) / 65 + 33 + - 53
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT ALL - 55 * - CAST( + 82 AS SIGNED ) * + 12 * - 29 + 43 + - - 43 + - 84 AS col2
----
-1569478

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL - 55 * - CAST ( + 82 AS INTEGER ) * + 12 * - 29 + 43 + - - 43 + - 84 AS col2
----
-1569478

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT - 13 - + + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-5007
SELECT - 13 - + + COUNT ( * )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT CAST( NULL AS SIGNED ) * + + 28 * 56 * NULLIF ( 17, - 86 ) + + MIN( + 97 ) * 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT CAST ( NULL AS INTEGER ) * + + 28 * 56 * NULLIF ( 17, - 86 ) + + MIN ( + 97 ) * 22 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT + 90 + COUNT( + 24 )
----
91

skipif mysql # not compatible
query I rowsort label-5009
SELECT + 90 + COUNT ( + 24 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT - NULLIF ( - 15, - + COUNT( * ) ) * + 89 - + - 80 AS col0
----
1415

skipif mysql # not compatible
query I rowsort label-5010
SELECT - NULLIF ( - 15, - + COUNT ( * ) ) * + 89 - + - 80 AS col0
----
1415

query I rowsort
SELECT ( + 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT 46 * + 94 * - 19 + + COUNT( * ) + 72 AS col0
----
-82083

skipif mysql # not compatible
query I rowsort label-5012
SELECT 46 * + 94 * - 19 + + COUNT ( * ) + 72 AS col0
----
-82083

onlyif mysql # aggregate syntax: 
query II rowsort label-5013
SELECT ALL + 78 * - MIN( DISTINCT - 39 ) - + 46 AS col1, 11
----
2996
11

skipif mysql # not compatible
query II rowsort label-5013
SELECT ALL + 78 * - MIN ( DISTINCT - 39 ) - + 46 AS col1, 11
----
2996
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5014
SELECT 73 DIV + 18 + + + 5 - - + COUNT( * ) + + 50 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5014
SELECT 73 / + 18 + + + 5 - - + COUNT ( * ) + + 50 AS col2
----
60

onlyif mysql # aggregate syntax: 
query IIII rowsort label-5015
SELECT + NULLIF ( - COUNT( * ), + 10 ), 87 AS col0, + ( - 65 ) AS col1, - 67 AS col0
----
-1
87
-65
-67

skipif mysql # not compatible
query IIII rowsort label-5015
SELECT + NULLIF ( - COUNT ( * ), + 10 ), 87 AS col0, + ( - 65 ) AS col1, - 67 AS col0
----
-1
87
-65
-67

query I rowsort
SELECT - 54 + - 96 AS col2
----
-150

query II rowsort
SELECT ALL + 84 AS col1, - 34
----
84
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - 73 * - 1 + - CASE + - 83 WHEN 95 * + 2 * + MIN( ALL 15 ) + 61 * - 41 THEN 84 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT - 73 * - 1 + - CASE + - 83 WHEN 95 * + 2 * + MIN ( ALL 15 ) + 61 * - 41 THEN 84 END col2
----
NULL

query I rowsort
SELECT ALL + ( 1 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5020
SELECT DISTINCT - CASE + + 29 WHEN 38 THEN - - AVG ( 41 ) * + 72 WHEN - 18 * - CAST( 89 AS SIGNED ) * - 62 THEN - COUNT( * ) ELSE NULL END * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT - CASE + + 29 WHEN 38 THEN - - AVG ( 41 ) * + 72 WHEN - 18 * - CAST ( 89 AS INTEGER ) * - 62 THEN - COUNT ( * ) ELSE NULL END * - 37
----
NULL

query I rowsort
SELECT NULLIF ( 54, COALESCE ( - + 95, - 18 * 70 ) + - 49 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT + 0 + 97 + + + CAST( NULL AS SIGNED ) / - 0 / - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT + 0 + 97 + + + CAST ( NULL AS INTEGER ) / - 0 / - 65
----
NULL

query I rowsort
SELECT - 11 + + 56
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT + MAX( DISTINCT 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5024
SELECT + MAX ( DISTINCT 41 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT COUNT( DISTINCT 29 )
----
1

skipif mysql # not compatible
query I rowsort label-5025
SELECT COUNT ( DISTINCT 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT MAX( 21 ) * - ( + 14 ) * + CASE - + 36 WHEN + CASE WHEN NOT ( 63 ) IS NOT NULL THEN 12 - + CASE + 99 WHEN - 26 / - ( - 91 ) THEN 70 WHEN + CASE + COALESCE ( 40, 46, - 5 ) WHEN COUNT( * ) + ( 92 ) THEN 18 WHEN 99 + CASE - 50 WHEN - 54 * + 80 THEN NULL ELSE - COUNT( * ) + 96 * - 57 END THEN + 42 + 55 END * + 6 THEN NULL WHEN 39 THEN 9 * + 9 END ELSE - 7 - - COUNT( 84 ) END THEN 57 END + - 85 + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT MAX ( 21 ) * - ( + 14 ) * + CASE - + 36 WHEN + CASE WHEN NOT ( 63 ) IS NOT NULL THEN 12 - + CASE + 99 WHEN - 26 / - ( - 91 ) THEN 70 WHEN + CASE + COALESCE ( 40, 46, - 5 ) WHEN COUNT ( * ) + ( 92 ) THEN 18 WHEN 99 + CASE - 50 WHEN - 54 * + 80 THEN NULL ELSE - COUNT ( * ) + 96 * - 57 END THEN + 42 + 55 END * + 6 THEN NULL WHEN 39 THEN 9 * + 9 END ELSE - 7 - - COUNT ( 84 ) END THEN 57 END + - 85 + 8 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5027
SELECT + 64 DIV + ( - - ( + 12 ) ) AS col0, - 73 AS col0
----
5
-73

skipif mysql # not compatible
query II rowsort label-5027
SELECT + 64 / + ( - - ( + 12 ) ) AS col0, - 73 AS col0
----
5
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT + - 84 + - CAST( - - 4 AS SIGNED ) / CASE + CAST( NULL AS SIGNED ) WHEN ( ( + ( - 13 ) ) ) * 51 THEN NULL WHEN - MIN( - 23 ) / - 11 THEN - 58 END / + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT + - 84 + - CAST ( - - 4 AS INTEGER ) / CASE + CAST ( NULL AS INTEGER ) WHEN ( ( + ( - 13 ) ) ) * 51 THEN NULL WHEN - MIN ( - 23 ) / - 11 THEN - 58 END / + 93 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 21 * + - 30 AS col0
----
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-5030
SELECT DISTINCT - 88 DIV + + 92 * + 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT - 88 / + + 92 * + 16 AS col0
----
0

query I rowsort
SELECT ALL - + 90 + 25 AS col2
----
-65

query I rowsort
SELECT + 4 + + 49 col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT + 48 DIV + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5033
SELECT + 48 / + 99 AS col1
----
0

query I rowsort
SELECT + - 43 + - 88 AS col1
----
-131

query II rowsort
SELECT + 32 AS col0, 20
----
32
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5036
SELECT - + 69 + 44 - - 98 + + + CAST( - 60 AS SIGNED ) + - - 73 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5036
SELECT - + 69 + 44 - - 98 + + + CAST ( - 60 AS INTEGER ) + - - 73 AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5037
SELECT ALL + 63 + CASE + 68 WHEN ( - MAX( DISTINCT + 65 ) ) THEN - 97 WHEN + ( - 32 ) * CAST( NULL AS SIGNED ) THEN NULL END * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL + 63 + CASE + 68 WHEN ( - MAX ( DISTINCT + 65 ) ) THEN - 97 WHEN + ( - 32 ) * CAST ( NULL AS INTEGER ) THEN NULL END * 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5038
SELECT + - CASE 64 WHEN 59 THEN + + 74 WHEN + CAST( NULL AS DECIMAL ) * - 50 + - COUNT( * ) - + 31 + 67 * + 52 THEN NULL END + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5038
SELECT + - CASE 64 WHEN 59 THEN + + 74 WHEN + CAST ( NULL AS REAL ) * - 50 + - COUNT ( * ) - + 31 + 67 * + 52 THEN NULL END + 98
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5039
SELECT - CASE WHEN NOT + 74 NOT IN ( + 91 / 76 * + COUNT( DISTINCT - 24 ) * + + 0 / 66 ) THEN NULL WHEN ( + 61 + CAST( NULL AS SIGNED ) ) = + MAX( 96 ) THEN + 77 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT - CASE WHEN NOT + 74 NOT IN ( + 91 / 76 * + COUNT ( DISTINCT - 24 ) * + + 0 / 66 ) THEN NULL WHEN ( + 61 + CAST ( NULL AS INTEGER ) ) = + MAX ( 96 ) THEN + 77 END AS col2
----
NULL

query I rowsort
SELECT ALL 67 + 49
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT ALL + - 10 + + 54 * + 6 * - + 14 * - + COUNT( * )
----
4526

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL + - 10 + + 54 * + 6 * - + 14 * - + COUNT ( * )
----
4526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-5042
SELECT - ( CAST( - 32 AS SIGNED ) ) + - 37 DIV - ( CAST( NULL AS DECIMAL ) ), ( + 91 ) DIV COALESCE ( - 6 * 33 + - 37, - 95 + COUNT( * ) ) AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5042
SELECT - ( CAST ( - 32 AS INTEGER ) ) + - 37 / - ( CAST ( NULL AS REAL ) ), ( + 91 ) / COALESCE ( - 6 * 33 + - 37, - 95 + COUNT ( * ) ) AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT DISTINCT MAX( ALL + + CASE 87 WHEN - - 76 THEN - 71 WHEN 28 THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT MAX ( ALL + + CASE 87 WHEN - - 76 THEN - 71 WHEN 28 THEN NULL ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 10, 71 * - + 66 + 59 + - 56 ) + - 98
----
-108

query I rowsort
SELECT - 34 + + + 26 + + 66
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT - ( + 49 ) DIV - COALESCE ( - 50, 26 * 44 ) + - 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5046
SELECT - ( + 49 ) / - COALESCE ( - 50, 26 * 44 ) + - 35 AS col0
----
-35

query I rowsort
SELECT - 66 + + 45 col0
----
-21

query I rowsort
SELECT - 84 * - 47 * - 44
----
-173712

query II rowsort
SELECT ALL + 51 * - + 51 AS col0, + 84 AS col2
----
-2601
84

query II rowsort
SELECT 29 * 63, 11 AS col1
----
1827
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT - 32 DIV + 57 + + 36
----
36

skipif mysql # not compatible
query I rowsort label-5051
SELECT - 32 / + 57 + + 36
----
36

query I rowsort
SELECT 19 * 34
----
646

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT 22 + COUNT( * ) * + - 0 + + + 35 + 76 + - + 98
----
35

skipif mysql # not compatible
query I rowsort label-5053
SELECT 22 + COUNT ( * ) * + - 0 + + + 35 + 76 + - + 98
----
35

query I rowsort
SELECT 28 * - - 44 AS col1
----
1232

query I rowsort
SELECT 32 * + 81 * - + 82
----
-212544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5056
SELECT ALL + 15 DIV + - SUM( DISTINCT - + 1 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL + 15 / + - SUM ( DISTINCT - + 1 ) AS col0
----
15

query I rowsort
SELECT 16 * + 56 - + 36
----
860

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5058
SELECT DISTINCT + 28 + + 65 + + 61 + - 79 AS col1, + ( - MAX( + - 98 ) ) + + 4 - - 13 DIV - 1
----
75
89

skipif mysql # not compatible
query II rowsort label-5058
SELECT DISTINCT + 28 + + 65 + + 61 + - 79 AS col1, + ( - MAX ( + - 98 ) ) + + 4 - - 13 / - 1
----
75
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL 10 * + + 88 - 82 + COUNT( ALL - - ( - 61 ) ) * + 2 - 49 col2
----
751

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL 10 * + + 88 - 82 + COUNT ( ALL - - ( - 61 ) ) * + 2 - 49 col2
----
751

query I rowsort
SELECT + ( + 64 ) AS col0
----
64

query I rowsort
SELECT ALL - COALESCE ( 51, + + 60 * + 12 ) + + 5
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT DISTINCT SUM( DISTINCT + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT SUM ( DISTINCT + 70 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5063
SELECT DISTINCT + + 16 + + 95 DIV 98 - - + 44 + - + 77 * - + 59 - + 92 + - 82 DIV 99 DIV NULLIF ( - COUNT( + 65 ) + - 66 * + 97, 12 DIV - COUNT( * ) - COUNT( ALL 69 ) ) AS col1
----
4511

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT + + 16 + + 95 / 98 - - + 44 + - + 77 * - + 59 - + 92 + - 82 / 99 / NULLIF ( - COUNT ( + 65 ) + - 66 * + 97, 12 / - COUNT ( * ) - COUNT ( ALL 69 ) ) AS col1
----
4511

query I rowsort
SELECT + 73 + + + 85
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5065
SELECT DISTINCT + 84 + - 55 + - 42 * - 33 * CASE - + 16 WHEN 34 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - 98 THEN 48 * - NULLIF ( + 34, 52 * 47 + - 37 ) + 96 WHEN + 28 THEN NULL END + + COUNT( * ) / + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT + 84 + - 55 + - 42 * - 33 * CASE - + 16 WHEN 34 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 98 THEN 48 * - NULLIF ( + 34, 52 * 47 + - 37 ) + 96 WHEN + 28 THEN NULL END + + COUNT ( * ) / + 26
----
NULL

query I rowsort
SELECT ALL 39 * - 79
----
-3081

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT 64 * CASE + 98 WHEN 72 THEN NULL WHEN - 35 THEN NULL WHEN + - ( - COUNT( * ) ) + 85 THEN + - SUM( 59 ) END - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT 64 * CASE + 98 WHEN 72 THEN NULL WHEN - 35 THEN NULL WHEN + - ( - COUNT ( * ) ) + 85 THEN + - SUM ( 59 ) END - 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5068
SELECT ALL 79 DIV + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL 79 / + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5069
SELECT ( COUNT( * ) ) DIV 40 + 35 AS col2, ( - 16 )
----
35
-16

skipif mysql # not compatible
query II rowsort label-5069
SELECT ( COUNT ( * ) ) / 40 + 35 AS col2, ( - 16 )
----
35
-16

query I rowsort
SELECT + 62 + - - 89
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5071
SELECT ALL - 91 - + - 77 * - - 84 * + - 16 AS col0, + SUM( + - 98 ) + + + 31 AS col0, 43 * 75 + - COUNT( * ) DIV - 31
----
-103579
-67
3225

skipif mysql # not compatible
query III rowsort label-5071
SELECT ALL - 91 - + - 77 * - - 84 * + - 16 AS col0, + SUM ( + - 98 ) + + + 31 AS col0, 43 * 75 + - COUNT ( * ) / - 31
----
-103579
-67
3225

query II rowsort
SELECT - 92, 22 + 32 + - 59 AS col0
----
-92
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5073
SELECT COUNT( * ) + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT COUNT ( * ) + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 82 * ( 9 ) + - - 52 + + + 31
----
821

query I rowsort
SELECT ( + 50 ) * + 18 AS col2
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT 48 - - - 11 + - 71 * + NULLIF ( - + 52, - COUNT( * ) * + 4 + - 93 ) * - 53 - + + 5 * MAX( DISTINCT + 5 ) col2
----
-195664

skipif mysql # not compatible
query I rowsort label-5076
SELECT 48 - - - 11 + - 71 * + NULLIF ( - + 52, - COUNT ( * ) * + 4 + - 93 ) * - 53 - + + 5 * MAX ( DISTINCT + 5 ) col2
----
-195664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5077
SELECT COALESCE ( - 3, + 17 * COUNT( * ) DIV - 10 ) * - 14 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5077
SELECT COALESCE ( - 3, + 17 * COUNT ( * ) / - 10 ) * - 14 AS col2
----
42

query II rowsort
SELECT + ( ( + + 73 ) ) * + + 5 + + + 94 AS col0, - 87 AS col1
----
459
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT 64 * + 6 * 31 * - COUNT( * )
----
-11904

skipif mysql # not compatible
query I rowsort label-5079
SELECT 64 * + 6 * 31 * - COUNT ( * )
----
-11904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT 77 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT 77 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5081
SELECT DISTINCT 88 + + 77 + + 59 AS col1, - ( + - SUM( 21 ) )
----
224
21

skipif mysql # not compatible
query II rowsort label-5081
SELECT DISTINCT 88 + + 77 + + 59 AS col1, - ( + - SUM ( 21 ) )
----
224
21

query I rowsort
SELECT 54 * + 1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT 20 * 72 * SUM( - COALESCE ( 35, + 39, - 7 * - 53 ) ) + - 8 AS col0
----
-50408

skipif mysql # not compatible
query I rowsort label-5083
SELECT 20 * 72 * SUM ( - COALESCE ( 35, + 39, - 7 * - 53 ) ) + - 8 AS col0
----
-50408

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT ALL COUNT( * ) + - 73
----
-72

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL COUNT ( * ) + - 73
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT DISTINCT CAST( - 51 AS SIGNED ) * + CAST( NULL AS SIGNED ) * - ( 60 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT CAST ( - 51 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - ( 60 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5086
SELECT + COUNT( * ), 35 col2
----
1
35

skipif mysql # not compatible
query II rowsort label-5086
SELECT + COUNT ( * ), 35 col2
----
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL + + COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + + COUNT ( * ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT + - NULLIF ( + - COUNT( 47 ), + 68 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5088
SELECT + - NULLIF ( + - COUNT ( 47 ), + 68 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5089
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 29 AS col1
----
NULL

query I rowsort
SELECT - 86 * + 2 * - 33
----
5676

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL - + MAX( 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL - + MAX ( 80 )
----
-80

query II rowsort
SELECT + 77 AS col0, + ( - 76 ) AS col0
----
77
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5093
SELECT - - CASE - NULLIF ( + 2, 56 / - 66 * + ( - + CAST( + + 25 AS SIGNED ) ) ) WHEN 69 * - 85 + COUNT( * ) THEN - 85 WHEN 72 THEN NULL END * + 23 + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT - - CASE - NULLIF ( + 2, 56 / - 66 * + ( - + CAST ( + + 25 AS INTEGER ) ) ) WHEN 69 * - 85 + COUNT ( * ) THEN - 85 WHEN 72 THEN NULL END * + 23 + 22
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5094
SELECT DISTINCT - 5 DIV + - COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT - 5 / + - COUNT ( * ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + + 64 * + - COUNT( * ) + 40
----
-24

skipif mysql # not compatible
query I rowsort label-5095
SELECT + + 64 * + - COUNT ( * ) + 40
----
-24

query I rowsort
SELECT DISTINCT + - 14 + - 0 - - + 68 + + 88 + - - 90
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT DISTINCT 28 * - + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT 28 * - + COUNT ( * )
----
-28

query I rowsort
SELECT DISTINCT + ( + + 88 ) * + + 44 AS col0
----
3872

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT 9 + - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-5099
SELECT 9 + - COUNT ( * )
----
8

query I rowsort
SELECT ALL - 68 AS col2
----
-68

query I rowsort
SELECT - 29 + - 5 AS col0
----
-34

query I rowsort
SELECT - + 42 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT + 43 * + COUNT( * ) col1
----
43

skipif mysql # not compatible
query I rowsort label-5103
SELECT + 43 * + COUNT ( * ) col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL + MIN( - + 72 ) * - + 34
----
2448

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL + MIN ( - + 72 ) * - + 34
----
2448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5105
SELECT DISTINCT CASE WHEN 20 NOT BETWEEN + + COALESCE ( + + 51, 2, - 19 + - + 29 + COUNT( * ) / + COALESCE ( - + AVG ( 15 ), + CAST( 56 AS SIGNED ) * - CAST( 44 * + 52 + 62 AS SIGNED ) - 75 * - 43 ) ) * ( 59 - 94 ) AND + CASE + COUNT( * ) WHEN - 2 THEN + 57 WHEN COUNT( * ) THEN + 10 ELSE - 69 * - NULLIF ( + 21 / 87, 66 + - 50 ) END THEN 69 * - ( CAST( NULL AS SIGNED ) ) + 21 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT CASE WHEN 20 NOT BETWEEN + + COALESCE ( + + 51, 2, - 19 + - + 29 + COUNT ( * ) / + COALESCE ( - + AVG ( 15 ), + CAST ( 56 AS INTEGER ) * - CAST ( 44 * + 52 + 62 AS INTEGER ) - 75 * - 43 ) ) * ( 59 - 94 ) AND + CASE + COUNT ( * ) WHEN - 2 THEN + 57 WHEN COUNT ( * ) THEN + 10 ELSE - 69 * - NULLIF ( + 21 / 87, 66 + - 50 ) END THEN 69 * - ( CAST ( NULL AS INTEGER ) ) + 21 END AS col2
----
NULL

query II rowsort
SELECT DISTINCT 55, - 71 + + COALESCE ( - 75, - + 91 ) * + 82 AS col0
----
55
-6221

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT - MIN( ALL - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-5107
SELECT - MIN ( ALL - 92 )
----
92

query II rowsort
SELECT ALL 57 col2, 83 * + 99 + + - 69
----
57
8148

onlyif mysql # DIV for integer division: 
query II rowsort label-5109
SELECT 40 AS col1, - 50 DIV - + COALESCE ( COALESCE ( - 1, + - 17 ), - 20, + AVG ( 97 ) )
----
40
-50

skipif mysql # not compatible
query II rowsort label-5109
SELECT 40 AS col1, - 50 / - + COALESCE ( COALESCE ( - 1, + - 17 ), - 20, + AVG ( 97 ) )
----
40
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT + COUNT( * ) + + + 89 col1
----
90

skipif mysql # not compatible
query I rowsort label-5110
SELECT + COUNT ( * ) + + + 89 col1
----
90

query I rowsort
SELECT - 71 * + + 2 * 88 AS col1
----
-12496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5112
SELECT CASE - - ( + COUNT( - CAST( NULL AS SIGNED ) ) ) WHEN AVG ( 20 ) - 38 + + COUNT( * ) THEN + 12 * + - 66 WHEN 59 - - 62 THEN 63 WHEN 7 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT CASE - - ( + COUNT ( - CAST ( NULL AS INTEGER ) ) ) WHEN AVG ( 20 ) - 38 + + COUNT ( * ) THEN + 12 * + - 66 WHEN 59 - - 62 THEN 63 WHEN 7 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5113
SELECT + 47 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT + 47 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5114
SELECT CASE + + COUNT( * ) WHEN AVG ( 57 ) THEN - - 42 + + CAST( NULL AS SIGNED ) + - - 62 * 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT CASE + + COUNT ( * ) WHEN AVG ( 57 ) THEN - - 42 + + CAST ( NULL AS INTEGER ) + - - 62 * 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5115
SELECT DISTINCT 76 * + COUNT( * ), - 19 + 65 AS col1
----
76
46

skipif mysql # not compatible
query II rowsort label-5115
SELECT DISTINCT 76 * + COUNT ( * ), - 19 + 65 AS col1
----
76
46

query I rowsort
SELECT + 41 * - - 37
----
1517

query I rowsort
SELECT ALL 47 * + 76 AS col0
----
3572

query I rowsort
SELECT + COALESCE ( - 59, - 76 + NULLIF ( 29, - 33 ), + 3, + 4 ) * 51 + CASE + 75 WHEN + 1 * - 39 THEN 4 + + 49 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5119
SELECT DISTINCT - CASE - COUNT( * ) WHEN + - 86 THEN NULL WHEN + 41 THEN - AVG ( + 66 ) WHEN + CAST( - - CAST( CAST( - + 9 AS SIGNED ) AS SIGNED ) AS SIGNED ) THEN NULL END * + 52 + + 29 * + COUNT( * ) + COALESCE ( 48, 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + - 86 THEN NULL WHEN + 41 THEN - AVG ( + 66 ) WHEN + CAST ( - - CAST ( CAST ( - + 9 AS INTEGER ) AS INTEGER ) AS INTEGER ) THEN NULL END * + 52 + + 29 * + COUNT ( * ) + COALESCE ( 48, 8 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5120
SELECT + - COUNT( * ) * - 7 AS col2, - 89 - - ( CAST( NULL AS SIGNED ) )
----
7
NULL

skipif mysql # not compatible
query II rowsort label-5120
SELECT + - COUNT ( * ) * - 7 AS col2, - 89 - - ( CAST ( NULL AS INTEGER ) )
----
7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL COUNT( * ) * - COUNT( * ) * + ( + 98 ) + - 81 * + COUNT( * ) AS col2
----
-179

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + ( + 98 ) + - 81 * + COUNT ( * ) AS col2
----
-179

onlyif mysql # DIV for integer division: 
query II rowsort label-5122
SELECT + + 29 AS col0, 94 - + 33 DIV - 90 AS col0
----
29
94

skipif mysql # not compatible
query II rowsort label-5122
SELECT + + 29 AS col0, 94 - + 33 / - 90 AS col0
----
29
94

query I rowsort
SELECT - 89 * - + 68
----
6052

query I rowsort
SELECT + 28 * - - 26
----
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT ALL 29 * 78 + + NULLIF ( + CAST( NULL AS SIGNED ), + 21 ) + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL 29 * 78 + + NULLIF ( + CAST ( NULL AS INTEGER ), + 21 ) + - 74
----
NULL

query I rowsort
SELECT ALL + + 11
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT - 55 + - + NULLIF ( - 99, + - SUM( DISTINCT - - CASE - + CAST( NULL AS SIGNED ) WHEN ( - 22 ) THEN - 85 ELSE 24 END ) - + + 91 ) + 58 * - MIN( DISTINCT + 16 + + 13 ) AS col0
----
-1638

skipif mysql # not compatible
query I rowsort label-5127
SELECT - 55 + - + NULLIF ( - 99, + - SUM ( DISTINCT - - CASE - + CAST ( NULL AS INTEGER ) WHEN ( - 22 ) THEN - 85 ELSE 24 END ) - + + 91 ) + 58 * - MIN ( DISTINCT + 16 + + 13 ) AS col0
----
-1638

query II rowsort
SELECT - 79 AS col0, NULLIF ( 25, - 79 * 81 - + - 45 )
----
-79
25

query I rowsort
SELECT + + 77 + - 87 AS col1
----
-10

query I rowsort
SELECT + 30 * - + ( - 76 ) + + ( - 22 ) AS col2
----
2258

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5131
SELECT ALL + 37 AS col0, - CASE 94 WHEN + 26 THEN + + CAST( NULL AS SIGNED ) * - 54 + + ( 72 ) ELSE NULL END
----
37
NULL

skipif mysql # not compatible
query II rowsort label-5131
SELECT ALL + 37 AS col0, - CASE 94 WHEN + 26 THEN + + CAST ( NULL AS INTEGER ) * - 54 + + ( 72 ) ELSE NULL END
----
37
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5132
SELECT - 57 DIV - 43 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5132
SELECT - 57 / - 43 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT CASE - AVG ( ALL + - 31 ) WHEN + 79 THEN NULL WHEN 76 + - ( + COALESCE ( 27, 72 + + - COUNT( * ) * - 47 + + 6 ) ) * 17 THEN NULL WHEN + 80 THEN + 69 * - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT CASE - AVG ( ALL + - 31 ) WHEN + 79 THEN NULL WHEN 76 + - ( + COALESCE ( 27, 72 + + - COUNT ( * ) * - 47 + + 6 ) ) * 17 THEN NULL WHEN + 80 THEN + 69 * - 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL - ( - CASE 36 WHEN 3 * + MIN( ALL - 58 ) * + 41 * 57 + 36 - 94 THEN 80 WHEN + 39 THEN ( COALESCE ( 50, 23 / 54, - 74 * 88, 85 ) ) WHEN MIN( DISTINCT - 69 ) THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL - ( - CASE 36 WHEN 3 * + MIN ( ALL - 58 ) * + 41 * 57 + 36 - 94 THEN 80 WHEN + 39 THEN ( COALESCE ( 50, 23 / 54, - 74 * 88, 85 ) ) WHEN MIN ( DISTINCT - 69 ) THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT - 25 - + - 78 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT - 71 + - - MAX( DISTINCT - 54 ) + + 18
----
-107

skipif mysql # not compatible
query I rowsort label-5136
SELECT - 71 + - - MAX ( DISTINCT - 54 ) + + 18
----
-107

query I rowsort
SELECT - CASE - 83 WHEN + 63 THEN + 93 * 40 * 44 END
----
NULL

query I rowsort
SELECT - 48 * - - 52 AS col1
----
-2496

query I rowsort
SELECT + 53 * - + 82 AS col1
----
-4346

query I rowsort
SELECT ALL 35 + 97
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-5141
SELECT - COUNT( * ) + - 55 + + 39 + 48 * + 24 * COUNT( - 89 ), - 5 AS col1
----
1135
-5

skipif mysql # not compatible
query II rowsort label-5141
SELECT - COUNT ( * ) + - 55 + + 39 + 48 * + 24 * COUNT ( - 89 ), - 5 AS col1
----
1135
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT ALL - 29 * - + MAX( ALL + 35 ) * + 30 + + + 56 + 75 AS col1
----
30581

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL - 29 * - + MAX ( ALL + 35 ) * + 30 + + + 56 + 75 AS col1
----
30581

query II rowsort
SELECT + CASE - 4 WHEN - + ( + 89 ) THEN NULL ELSE + 0 * 56 + - 3 END, + 87 AS col0
----
-3
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT CAST( + + ( - 96 ) AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-5144
SELECT CAST ( + + ( - 96 ) AS INTEGER )
----
-96

query I rowsort
SELECT + 87 + + 84
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT ALL 93 DIV - + 3 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL 93 / - + 3 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT + MIN( DISTINCT - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-5147
SELECT + MIN ( DISTINCT - 50 )
----
-50

query I rowsort
SELECT + - 16 + + 81
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL - COUNT( * ) * + 47
----
-47

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL - COUNT ( * ) * + 47
----
-47

query I rowsort
SELECT ALL + 47 * + + 8 + - 80 + 15
----
311

query I rowsort
SELECT + + 41 + - 92 + 6 * 64 AS col1
----
333

query II rowsort
SELECT DISTINCT 0 * - - 21, 38 col0
----
0
38

query I rowsort
SELECT DISTINCT 4 * - 75 + - 12 + + - 50
----
-362

query II rowsort
SELECT ALL + CASE - 59 WHEN + 15 THEN NULL ELSE + ( + 87 ) END AS col2, - 50 AS col1
----
87
-50

query I rowsort
SELECT DISTINCT + + ( - 81 )
----
-81

query I rowsort
SELECT + 62 * + + 46 AS col2
----
2852

query I rowsort
SELECT + 1 + - 31 * + - 69 AS col1
----
2140

query I rowsort
SELECT DISTINCT + + 40 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT CASE - NULLIF ( - 51, - + 20 / + 78 ) WHEN - + 29 * 95 THEN 38 WHEN - + 71 - - + 70 + 72 * + 43 * 13 THEN NULL WHEN + ( + ( 71 ) ) THEN + COUNT( * ) * - ( - 75 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT CASE - NULLIF ( - 51, - + 20 / + 78 ) WHEN - + 29 * 95 THEN 38 WHEN - + 71 - - + 70 + 72 * + 43 * 13 THEN NULL WHEN + ( + ( 71 ) ) THEN + COUNT ( * ) * - ( - 75 ) END AS col0
----
NULL

query II rowsort
SELECT - 89 + 7, 66 AS col1
----
-82
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT + - 14 * - + 66 * + + NULLIF ( - COUNT( * ), + 82 ) - + CASE ( - - COUNT( * ) ) WHEN - + 9 THEN - 82 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT + - 14 * - + 66 * + + NULLIF ( - COUNT ( * ), + 82 ) - + CASE ( - - COUNT ( * ) ) WHEN - + 9 THEN - 82 END col2
----
NULL

query I rowsort
SELECT - 76 * 33 + 23 AS col2
----
-2485

query I rowsort
SELECT DISTINCT + 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT - CASE + 76 WHEN + 30 / - 13 / 7 THEN 28 * + + ( - - COUNT( * ) ) WHEN - - COUNT( * ) THEN + 35 + + COUNT( DISTINCT + + 79 ) + 20 * 39 ELSE NULL END + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT - CASE + 76 WHEN + 30 / - 13 / 7 THEN 28 * + + ( - - COUNT ( * ) ) WHEN - - COUNT ( * ) THEN + 35 + + COUNT ( DISTINCT + + 79 ) + 20 * 39 ELSE NULL END + 67
----
NULL

query I rowsort
SELECT ALL ( + 75 ) + - 15 + - - 9 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT DISTINCT MAX( ALL + 81 ) * + COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT MAX ( ALL + 81 ) * + COUNT ( * ) AS col0
----
81

query I rowsort
SELECT 48 + - 2 AS col0
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-5168
SELECT 58 + 22 DIV - + 93 col0, - 34 col2
----
58
-34

skipif mysql # not compatible
query II rowsort label-5168
SELECT 58 + 22 / - + 93 col0, - 34 col2
----
58
-34

query I rowsort
SELECT ALL + 88 + 75
----
163

query I rowsort
SELECT 48 * - 2 AS col1
----
-96

query I rowsort
SELECT DISTINCT 15 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT ALL + 88 + CAST( + 71 AS SIGNED ) + + - 29
----
130

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL + 88 + CAST ( + 71 AS INTEGER ) + + - 29
----
130

query I rowsort
SELECT ALL - 98 * + 58
----
-5684

query I rowsort
SELECT ALL - 25 + + 71 col2
----
46

query I rowsort
SELECT DISTINCT + 70 + + 63
----
133

query II rowsort
SELECT - 77 col1, + 52 * + - 40
----
-77
-2080

onlyif mysql # aggregate syntax: 
query II rowsort label-5177
SELECT ALL 78, COUNT( - 16 ) AS col2
----
78
1

skipif mysql # not compatible
query II rowsort label-5177
SELECT ALL 78, COUNT ( - 16 ) AS col2
----
78
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5178
SELECT ALL - 98 * - CASE 88 WHEN - 23 - 56 + 61 * + - 39 * + 41 * - 59 + + 9 THEN NULL ELSE - NULLIF ( + + ( - 4 ), - SUM( DISTINCT CAST( 51 AS SIGNED ) ) * 94 ) * 87 END
----
34104

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL - 98 * - CASE 88 WHEN - 23 - 56 + 61 * + - 39 * + 41 * - 59 + + 9 THEN NULL ELSE - NULLIF ( + + ( - 4 ), - SUM ( DISTINCT CAST ( 51 AS INTEGER ) ) * 94 ) * 87 END
----
34104

query II rowsort
SELECT 11, NULLIF ( - + 7, 85 ) col1
----
11
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT 92 * - COUNT( 19 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-5180
SELECT 92 * - COUNT ( 19 ) AS col1
----
-92

query I rowsort
SELECT 63 * + 52
----
3276

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT ALL + 26 - - + 80 * NULLIF ( + 57, 45 * 84 ) DIV - 45 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL + 26 - - + 80 * NULLIF ( + 57, 45 * 84 ) / - 45 AS col2
----
-75

query II rowsort
SELECT + 88 AS col2, + 19
----
88
19

query I rowsort
SELECT ALL - - 49 AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5185
SELECT DISTINCT - - CAST( 75 AS SIGNED ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT - - CAST ( 75 AS INTEGER ) AS col1
----
75

query II rowsort
SELECT ALL - 5 AS col0, 4 + 25 AS col1
----
-5
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT DISTINCT - + 95 - 35 * NULLIF ( - COUNT( * ), CASE 24 WHEN + NULLIF ( 77, + 22 ) / + - 71 * + 89 THEN - + 88 WHEN - 64 THEN NULL END + + 76 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT - + 95 - 35 * NULLIF ( - COUNT ( * ), CASE 24 WHEN + NULLIF ( 77, + 22 ) / + - 71 * + 89 THEN - + 88 WHEN - 64 THEN NULL END + + 76 ) AS col1
----
-60

query I rowsort
SELECT + - 84 AS col2
----
-84

query I rowsort
SELECT ALL - + 29
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT + + COUNT( 78 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5190
SELECT + + COUNT ( 78 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT SUM( + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5191
SELECT SUM ( + 15 ) AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT + 12 DIV + 22 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5192
SELECT + 12 / + 22 AS col0
----
0

query I rowsort
SELECT ALL 52 * 5 AS col1
----
260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT ALL - 74 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL - 74 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT 69 * - - 8 - COUNT( * ) AS col2
----
551

skipif mysql # not compatible
query I rowsort label-5195
SELECT 69 * - - 8 - COUNT ( * ) AS col2
----
551

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5196
SELECT ALL - - 96 AS col2, - 5 * - COUNT( * ) DIV 53 * + - 7
----
96
0

skipif mysql # not compatible
query II rowsort label-5196
SELECT ALL - - 96 AS col2, - 5 * - COUNT ( * ) / 53 * + - 7
----
96
0

query I rowsort
SELECT DISTINCT + - 90 * - - 85 + + 40
----
-7610

onlyif mysql # aggregate syntax: 
query II rowsort label-5198
SELECT - ( - - 8 ) * - - COUNT( * ) * + + ( COUNT( * ) ) * - 17 + - 44 - - 12 + + + NULLIF ( 36, + 14 ) AS col1, 3 AS col2
----
140
3

skipif mysql # not compatible
query II rowsort label-5198
SELECT - ( - - 8 ) * - - COUNT ( * ) * + + ( COUNT ( * ) ) * - 17 + - 44 - - 12 + + + NULLIF ( 36, + 14 ) AS col1, 3 AS col2
----
140
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT ALL + 91 + - - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL + 91 + - - COUNT ( * ) AS col1
----
92

query I rowsort
SELECT 16 + - 57
----
-41

query I rowsort
SELECT 22 * + 55
----
1210

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT SUM( DISTINCT - 49 ) * 40
----
-1960

skipif mysql # not compatible
query I rowsort label-5202
SELECT SUM ( DISTINCT - 49 ) * 40
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT - SUM( DISTINCT + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-5203
SELECT - SUM ( DISTINCT + 14 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT ALL 60 + + + CAST( NULL AS SIGNED ) + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL 60 + + + CAST ( NULL AS INTEGER ) + + 75
----
NULL

query I rowsort
SELECT 38 - 79 + + + 70
----
29

query I rowsort
SELECT DISTINCT 72 + + 79
----
151

query I rowsort
SELECT 51 + + 3 AS col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5208
SELECT DISTINCT CASE + 24 WHEN + 3 - 55 THEN NULL ELSE - - 24 END DIV + 26 + COUNT( 55 )
----
1

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT CASE + 24 WHEN + 3 - 55 THEN NULL ELSE - - 24 END / + 26 + COUNT ( 55 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5209
SELECT ALL 24 + + CASE COUNT( * ) WHEN + 11 THEN NULL ELSE - 21 END + - 55 + + 92 - - + ( + CAST( NULL AS SIGNED ) ) / + + 51 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL 24 + + CASE COUNT ( * ) WHEN + 11 THEN NULL ELSE - 21 END + - 55 + + 92 - - + ( + CAST ( NULL AS INTEGER ) ) / + + 51 * + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL ( - 41 ) + + 97 * - 65 - + 13 AS col2
----
-6359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5211
SELECT ALL + 57 + COUNT( * ) * - CAST( NULL AS SIGNED ) * - - 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL + 57 + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - - 43 AS col0
----
NULL

query I rowsort
SELECT ( + 57 ) - - 43 * + - 9
----
-330

query I rowsort
SELECT DISTINCT 18 * + + 99
----
1782

onlyif mysql # DIV for integer division: 
query I rowsort label-5214
SELECT 47 + 90 DIV + + 75
----
48

skipif mysql # not compatible
query I rowsort label-5214
SELECT 47 + 90 / + + 75
----
48

query I rowsort
SELECT - 76 col2
----
-76

query I rowsort
SELECT ( + + 32 ) * - - 51 * 99
----
161568

onlyif mysql # DIV for integer division: 
query I rowsort label-5217
SELECT ALL + 21 DIV + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL + 21 / + 30 AS col2
----
0

query I rowsort
SELECT DISTINCT - - 95 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT + COUNT( * ) + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-5219
SELECT + COUNT ( * ) + - 8
----
-7

query I rowsort
SELECT 40 * - - 71 AS col2
----
2840

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT + COALESCE ( + - COUNT( * ), + 55 + - NULLIF ( - 2, + 43 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5221
SELECT + COALESCE ( + - COUNT ( * ), + 55 + - NULLIF ( - 2, + 43 ) ) AS col2
----
-1

query I rowsort
SELECT + + 86 AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5223
SELECT - 38 DIV 70 + + 87 * + COUNT( * ) + + 36 * - NULLIF ( - 76, - - 48 )
----
2823

skipif mysql # not compatible
query I rowsort label-5223
SELECT - 38 / 70 + + 87 * + COUNT ( * ) + + 36 * - NULLIF ( - 76, - - 48 )
----
2823

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL + + 30 * - 81 * 90 + - - 98 * + 70 + - 93 * - SUM( + 49 ) * - - 56 AS col1
----
43352

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL + + 30 * - 81 * 90 + - - 98 * + 70 + - 93 * - SUM ( + 49 ) * - - 56 AS col1
----
43352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5225
SELECT DISTINCT + + 41 * + 10 + - - COUNT( * ) + + 11 DIV + ( + 99 )
----
411

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT + + 41 * + 10 + - - COUNT ( * ) + + 11 / + ( + 99 )
----
411

query I rowsort
SELECT - 37 * 89 + - 69 AS col0
----
-3362

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT ALL + 17 * 94 + - 90 + + MAX( DISTINCT 3 ) + NULLIF ( - CASE + + 48 WHEN + 47 THEN NULL WHEN 69 + - + 17 THEN NULL WHEN + SUM( ALL - 65 ) THEN + - CASE - 85 WHEN + 75 THEN NULL ELSE + 82 END ELSE - 13 * COUNT( * ) END, 65 * 56 ) * + COUNT( * )
----
1524

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL + 17 * 94 + - 90 + + MAX ( DISTINCT 3 ) + NULLIF ( - CASE + + 48 WHEN + 47 THEN NULL WHEN 69 + - + 17 THEN NULL WHEN + SUM ( ALL - 65 ) THEN + - CASE - 85 WHEN + 75 THEN NULL ELSE + 82 END ELSE - 13 * COUNT ( * ) END, 65 * 56 ) * + COUNT ( * )
----
1524

query I rowsort
SELECT DISTINCT + - 11 col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT 4 * + COUNT( * ) + COUNT( * ) * - + 19 + 98 col1
----
83

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT 4 * + COUNT ( * ) + COUNT ( * ) * - + 19 + 98 col1
----
83

query I rowsort
SELECT DISTINCT - 74 * - 85 + + 38 AS col1
----
6328

query I rowsort
SELECT - - 88 * - + 44
----
-3872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5232
SELECT + - MIN( ALL + CAST( NULL AS SIGNED ) ) + + + AVG ( DISTINCT - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) + + + AVG ( DISTINCT - 74 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5233
SELECT DISTINCT + CAST( ( 85 ) AS SIGNED ) + + - COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT + CAST ( ( 85 ) AS INTEGER ) + + - COUNT ( * ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT MIN( DISTINCT - + 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5234
SELECT MIN ( DISTINCT - + 5 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT - COUNT( * ) * MAX( + - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-5235
SELECT - COUNT ( * ) * MAX ( + - 47 )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5236
SELECT ALL + 97 DIV 87
----
1

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL + 97 / 87
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL + SUM( + 25 ) + 92 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL + SUM ( + 25 ) + 92 AS col2
----
117

query I rowsort
SELECT ALL + 25 + 12 * + 88
----
1081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT ALL - CAST( + 47 AS SIGNED ) + - ( + 35 )
----
-82

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL - CAST ( + 47 AS INTEGER ) + - ( + 35 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT + COUNT( * ) * 96
----
96

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT + COUNT ( * ) * 96
----
96

query I rowsort
SELECT ALL 6 - - 40 col1
----
46

query I rowsort
SELECT + 12 + 21 - - - 83
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-5243
SELECT 41 AS col1, - COUNT( * ) + MAX( DISTINCT - 18 ) AS col0
----
41
-19

skipif mysql # not compatible
query II rowsort label-5243
SELECT 41 AS col1, - COUNT ( * ) + MAX ( DISTINCT - 18 ) AS col0
----
41
-19

query I rowsort
SELECT + 65 + - 46 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT + NULLIF ( - + 3, 33 + + + 44 + + COUNT( * ) ) * 91 + - 64
----
-337

skipif mysql # not compatible
query I rowsort label-5245
SELECT + NULLIF ( - + 3, 33 + + + 44 + + COUNT ( * ) ) * 91 + - 64
----
-337

query I rowsort
SELECT + 41 + - 98
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5247
SELECT - CASE + COUNT( DISTINCT 74 ) WHEN 45 * - 56 + COALESCE ( 23, 53, + CAST( NULL AS SIGNED ) ) + - 20 * - + 47 THEN NULL WHEN - - 36 THEN 89 * - 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT - CASE + COUNT ( DISTINCT 74 ) WHEN 45 * - 56 + COALESCE ( 23, 53, + CAST ( NULL AS INTEGER ) ) + - 20 * - + 47 THEN NULL WHEN - - 36 THEN 89 * - 93 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5248
SELECT DISTINCT MIN( ALL - 98 ) * 62 AS col1, 86 AS col2
----
-6076
86

skipif mysql # not compatible
query II rowsort label-5248
SELECT DISTINCT MIN ( ALL - 98 ) * 62 AS col1, 86 AS col2
----
-6076
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5249
SELECT DISTINCT 80, 10 + NULLIF ( - 44, - SUM( + 5 ) - + 2 + + 26 ) col0
----
80
-34

skipif mysql # not compatible
query II rowsort label-5249
SELECT DISTINCT 80, 10 + NULLIF ( - 44, - SUM ( + 5 ) - + 2 + + 26 ) col0
----
80
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-5250
SELECT DISTINCT 69 - + COUNT( ALL - - 63 ) + 62 + COUNT( * ), - 4 + + MAX( DISTINCT - 63 ) col0
----
131
-67

skipif mysql # not compatible
query II rowsort label-5250
SELECT DISTINCT 69 - + COUNT ( ALL - - 63 ) + 62 + COUNT ( * ), - 4 + + MAX ( DISTINCT - 63 ) col0
----
131
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT DISTINCT MAX( + 37 ) * 61
----
2257

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT MAX ( + 37 ) * 61
----
2257

query I rowsort
SELECT - + ( - + 85 )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5253
SELECT - - CAST( - CASE 36 WHEN 41 / + + 15 THEN 32 * + 20 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT - - CAST ( - CASE 36 WHEN 41 / + + 15 THEN 32 * + 20 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT + + 4 * - + 88
----
-352

query II rowsort
SELECT - + 21, + 81 AS col0
----
-21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5256
SELECT + 67 DIV + 2 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-5256
SELECT + 67 / + 2 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT - MAX( ALL + 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-5257
SELECT - MAX ( ALL + 85 ) AS col0
----
-85

query I rowsort
SELECT - 82 * 20 - + + 21
----
-1661

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT ALL - + 65 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL - + 65 / 78
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5260
SELECT DISTINCT + 6 DIV 19 + 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT + 6 / 19 + 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5261
SELECT ALL + + 78, NULLIF ( 33, 80 + + - 62 ) + - COUNT( ALL ( + 69 ) ) AS col2
----
78
32

skipif mysql # not compatible
query II rowsort label-5261
SELECT ALL + + 78, NULLIF ( 33, 80 + + - 62 ) + - COUNT ( ALL ( + 69 ) ) AS col2
----
78
32

query I rowsort
SELECT - - 36 * + + 16 AS col2
----
576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5263
SELECT - + 77 DIV COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-5263
SELECT - + 77 / COUNT ( * ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT DISTINCT + COUNT( - 24 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT + COUNT ( - 24 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5265
SELECT ALL ( CAST( NULL AS DECIMAL ) ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL ( CAST ( NULL AS REAL ) ) / COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5266
SELECT CASE + CAST( + - 36 AS SIGNED ) WHEN COUNT( * ) * - + 54 * - + 59 - 6 THEN - + 16 WHEN - 85 * 35 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT CASE + CAST ( + - 36 AS INTEGER ) WHEN COUNT ( * ) * - + 54 * - + 59 - 6 THEN - + 16 WHEN - 85 * 35 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5267
SELECT ALL + 14, + COUNT( * ) * + + 14
----
14
14

skipif mysql # not compatible
query II rowsort label-5267
SELECT ALL + 14, + COUNT ( * ) * + + 14
----
14
14

query II rowsort
SELECT + + 57 col0, - 12 col2
----
57
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT + + ( COUNT( * ) ) + - + COUNT( * ) + - + 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5269
SELECT + + ( COUNT ( * ) ) + - + COUNT ( * ) + - + 38 AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5270
SELECT DISTINCT + ( ( - 65 ) ) * 90 + - COUNT( * ) + + - 20 * + ( + 95 ) DIV + COUNT( * )
----
-7751

skipif mysql # not compatible
query I rowsort label-5270
SELECT DISTINCT + ( ( - 65 ) ) * 90 + - COUNT ( * ) + + - 20 * + ( + 95 ) / + COUNT ( * )
----
-7751

query I rowsort
SELECT ALL - 70 * 32 + - 68
----
-2308

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT + - COUNT( + + 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-5272
SELECT + - COUNT ( + + 3 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT 1 * 98 + - + 6 * - ( + MAX( - 58 ) )
----
-250

skipif mysql # not compatible
query I rowsort label-5273
SELECT 1 * 98 + - + 6 * - ( + MAX ( - 58 ) )
----
-250

query I rowsort
SELECT ALL + 2 * + ( + + 68 )
----
136

query II rowsort
SELECT + 96 AS col2, + 90
----
96
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5276
SELECT DISTINCT 10 * COUNT( * ) * - 6 - - + COALESCE ( - + 96, + - 32 * + - CAST( AVG ( + 74 ) AS SIGNED ) )
----
-156

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT 10 * COUNT ( * ) * - 6 - - + COALESCE ( - + 96, + - 32 * + - CAST ( AVG ( + 74 ) AS INTEGER ) )
----
-156

query I rowsort
SELECT COALESCE ( - 24, + 41 ) col2
----
-24

query I rowsort
SELECT - 65 * 84
----
-5460

query I rowsort
SELECT - 71 * 44 * + 88 AS col0
----
-274912

query I rowsort
SELECT ALL ( + ( + 8 ) ) AS col0
----
8

query II rowsort
SELECT - 7, + 95 AS col1
----
-7
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT DISTINCT NULLIF ( - COUNT( * ), - 75 ) * + 74 - 68 * + - 41 * - MIN( ALL + - 79 ) * + COUNT( * ) + + ( + COUNT( * ) )
----
220179

skipif mysql # not compatible
query I rowsort label