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-5282
SELECT DISTINCT NULLIF ( - COUNT ( * ), - 75 ) * + 74 - 68 * + - 41 * - MIN ( ALL + - 79 ) * + COUNT ( * ) + + ( + COUNT ( * ) )
----
220179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT - CASE WHEN NOT NULL NOT BETWEEN + 61 AND + 78 * - 57 + + CASE + 77 WHEN - 49 THEN NULL WHEN - 60 THEN + 16 WHEN 73 + + 89 + - 57 THEN + - 70 * - + 16 END THEN - + ( ( - AVG ( ALL 49 ) ) ) * + 48 - - 79 * - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5283
SELECT - CASE WHEN NOT NULL NOT BETWEEN + 61 AND + 78 * - 57 + + CASE + 77 WHEN - 49 THEN NULL WHEN - 60 THEN + 16 WHEN 73 + + 89 + - 57 THEN + - 70 * - + 16 END THEN - + ( ( - AVG ( ALL 49 ) ) ) * + 48 - - 79 * - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5284
SELECT ALL CAST( + + NULLIF ( + CAST( + CASE - - CAST( - ( - - NULLIF ( + 69, - 49 + 17 + 31 + + 83 + - 52 / 80 ) ) AS SIGNED ) WHEN - + 5 THEN + CAST( - 17 AS SIGNED ) * + 68 WHEN ( + 10 ) THEN - 15 ELSE 68 + - 62 END AS SIGNED ), 63 * + COUNT( * ) + 41 ) AS SIGNED ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL CAST ( + + NULLIF ( + CAST ( + CASE - - CAST ( - ( - - NULLIF ( + 69, - 49 + 17 + 31 + + 83 + - 52 / 80 ) ) AS INTEGER ) WHEN - + 5 THEN + CAST ( - 17 AS INTEGER ) * + 68 WHEN ( + 10 ) THEN - 15 ELSE 68 + - 62 END AS INTEGER ), 63 * + COUNT ( * ) + 41 ) AS INTEGER ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT - 35 * MIN( ALL 42 ) col0
----
-1470

skipif mysql # not compatible
query I rowsort label-5285
SELECT - 35 * MIN ( ALL 42 ) col0
----
-1470

query I rowsort
SELECT + 41 * - 22
----
-902

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ALL COUNT( * ) * + 54 * - 34 AS col0
----
-1836

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL COUNT ( * ) * + 54 * - 34 AS col0
----
-1836

query I rowsort
SELECT ALL - 40 * - 57 * - 88 AS col1
----
-200640

query I rowsort
SELECT - 5 * + 7 * - 94
----
3290

query II rowsort
SELECT ALL 30 AS col0, - 13
----
30
-13

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

skipif mysql # not compatible
query I rowsort label-5292
SELECT + 99 - - 60 + - - COUNT ( * ) AS col0
----
160

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5294
SELECT ALL + COALESCE ( COALESCE ( 97, - - CAST( + 58 AS SIGNED ) DIV + - ( - 27 ) ), + + 47 + 9 * + 49, - + 94 - + CAST( NULL AS SIGNED ) ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL + COALESCE ( COALESCE ( 97, - - CAST ( + 58 AS INTEGER ) / + - ( - 27 ) ), + + 47 + 9 * + 49, - + 94 - + CAST ( NULL AS INTEGER ) ) AS col1
----
97

query I rowsort
SELECT + 65 + + 31
----
96

query II rowsort
SELECT 32 AS col2, 71 AS col1
----
32
71

query II rowsort
SELECT - 87 AS col1, - 30
----
-87
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT DISTINCT - COALESCE ( - 72, + - 45 ) + - ( - COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT - COALESCE ( - 72, + - 45 ) + - ( - COUNT ( * ) )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5299
SELECT DISTINCT + CASE 57 WHEN 21 * - CAST( 91 AS SIGNED ) THEN + 57 WHEN + 67 / 7 + ( - MAX( DISTINCT + 84 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT + CASE 57 WHEN 21 * - CAST ( 91 AS INTEGER ) THEN + 57 WHEN + 67 / 7 + ( - MAX ( DISTINCT + 84 ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5300
SELECT - - 66 DIV - + CASE - 80 WHEN + AVG ( DISTINCT - 19 ) THEN COUNT( * ) WHEN COALESCE ( 92, + 81 ) THEN + - COUNT( * ) ELSE - 41 END + - 94 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-5300
SELECT - - 66 / - + CASE - 80 WHEN + AVG ( DISTINCT - 19 ) THEN COUNT ( * ) WHEN COALESCE ( 92, + 81 ) THEN + - COUNT ( * ) ELSE - 41 END + - 94 AS col2
----
-93

query II rowsort
SELECT + 44 AS col1, - 17
----
44
-17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT ALL MAX( ALL + - 69 ) + - COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL MAX ( ALL + - 69 ) + - COUNT ( * ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-5304
SELECT 39 + + - 17, - CASE - 86 WHEN 68 * + 96 * + 7 * - 42 THEN NULL WHEN 38 THEN + 43 WHEN 82 * - AVG ( + + 35 ) / - 5 THEN - ( - 49 ) WHEN + COUNT( * ) THEN 72 * 6 ELSE + 83 END + 35 AS col2
----
22
-48

skipif mysql # not compatible
query II rowsort label-5304
SELECT 39 + + - 17, - CASE - 86 WHEN 68 * + 96 * + 7 * - 42 THEN NULL WHEN 38 THEN + 43 WHEN 82 * - AVG ( + + 35 ) / - 5 THEN - ( - 49 ) WHEN + COUNT ( * ) THEN 72 * 6 ELSE + 83 END + 35 AS col2
----
22
-48

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5306
SELECT + - 41 AS col1, + 46 * + + 61 * - COUNT( * )
----
-41
-2806

skipif mysql # not compatible
query II rowsort label-5306
SELECT + - 41 AS col1, + 46 * + + 61 * - COUNT ( * )
----
-41
-2806

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT - COUNT( * ) + - 0
----
-1

skipif mysql # not compatible
query I rowsort label-5307
SELECT - COUNT ( * ) + - 0
----
-1

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

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

query I rowsort
SELECT ALL - 60 + + 2 AS col0
----
-58

query I rowsort
SELECT 18 * + - 52 + + ( - 89 ) + + 74 * + + ( - - 92 ) * + COALESCE ( 42, + 70 ) + + - ( + 51 ) - + 10 + - 76 * + 26
----
282874

query I rowsort
SELECT + + 62 AS col0
----
62

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

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

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

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL - COUNT ( * ) / - COUNT ( * ) * SUM ( + - 57 ) * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL COUNT ( * ) - + + COUNT ( * ) - - 3 * + - 26 AS col0
----
-78

query II rowsort
SELECT ALL - ( 44 ), 31 + + 94 AS col1
----
-44
125

query I rowsort
SELECT - 43 * + 46 + 72
----
-1906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5317
SELECT 86 * + CASE ( - 29 ) WHEN CAST( - 15 AS SIGNED ) * - COALESCE ( - 52, - + 91 + 25 * - 54, ( AVG ( DISTINCT + 62 ) ) * + 69, 55 ) * - 31 + SUM( DISTINCT - ( 39 ) ) + + 87 THEN + 58 * 0 WHEN 90 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5317
SELECT 86 * + CASE ( - 29 ) WHEN CAST ( - 15 AS INTEGER ) * - COALESCE ( - 52, - + 91 + 25 * - 54, ( AVG ( DISTINCT + 62 ) ) * + 69, 55 ) * - 31 + SUM ( DISTINCT - ( 39 ) ) + + 87 THEN + 58 * 0 WHEN 90 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5318
SELECT ALL - 71 * + CASE 39 WHEN - 72 DIV 60 + - + NULLIF ( + + 49, 72 DIV + 16 * + CAST( NULL AS DECIMAL ) ) THEN NULL WHEN - 38 THEN + 81 ELSE + 40 DIV - + 95 * 36 + - + ( - - 93 ) END
----
6603

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL - 71 * + CASE 39 WHEN - 72 / 60 + - + NULLIF ( + + 49, 72 / + 16 * + CAST ( NULL AS REAL ) ) THEN NULL WHEN - 38 THEN + 81 ELSE + 40 / - + 95 * 36 + - + ( - - 93 ) END
----
6603

query I rowsort
SELECT 57 * - + 29 AS col0
----
-1653

query I rowsort
SELECT ALL + 7 - + - 68 col0
----
75

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

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

query I rowsort
SELECT 82 + 58 + - 62 col1
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-5323
SELECT ALL 35 * - + 71 AS col1, - 20 DIV 30 col2
----
-2485
0

skipif mysql # not compatible
query II rowsort label-5323
SELECT ALL 35 * - + 71 AS col1, - 20 / 30 col2
----
-2485
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT DISTINCT - 53 * - 61 AS col2, - ( COUNT( * ) )
----
3233
-1

skipif mysql # not compatible
query II rowsort label-5324
SELECT DISTINCT - 53 * - 61 AS col2, - ( COUNT ( * ) )
----
3233
-1

query I rowsort
SELECT 1 * + 11 * - - 60
----
660

query II rowsort
SELECT 72 * + 25 AS col1, + 70 + + + 61
----
1800
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT 8 + 64 * AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT 8 + 64 * AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5328
SELECT ALL - 9 DIV 68 * 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL - 9 / 68 * 44 AS col1
----
0

query I rowsort
SELECT ( 96 ) + - 64 + + - ( + ( 62 ) )
----
-30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT DISTINCT - ( + CASE - 7 WHEN COUNT( * ) * - 95 THEN + 35 WHEN + 77 * - COALESCE ( - + COUNT( * ), + 76, - - NULLIF ( 61, - - COUNT( * ) ) + - COUNT( * ) ) + + 24 * - + 70 + COUNT( * ) + + MAX( 81 ) THEN NULL END ) * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT DISTINCT - ( + CASE - 7 WHEN COUNT ( * ) * - 95 THEN + 35 WHEN + 77 * - COALESCE ( - + COUNT ( * ), + 76, - - NULLIF ( 61, - - COUNT ( * ) ) + - COUNT ( * ) ) + + 24 * - + 70 + COUNT ( * ) + + MAX ( 81 ) THEN NULL END ) * 36 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 56 + + 70 AS col0
----
14

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

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

query I rowsort
SELECT ALL - 16 + + 26
----
10

query I rowsort
SELECT ALL + 5 + + 40
----
45

query I rowsort
SELECT ALL 29 + + 84
----
113

query I rowsort
SELECT DISTINCT - 14 * + + 30 + + - 83 + + 86 AS col1
----
-417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5338
SELECT ALL + 55 + + + CASE - CAST( NULL AS SIGNED ) WHEN - - 29 THEN NULL ELSE CAST( 79 AS SIGNED ) * MIN( + 35 ) + + 87 DIV - 4 + 51 * + 44 * + 19 END AS col1
----
45435

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL + 55 + + + CASE - CAST ( NULL AS INTEGER ) WHEN - - 29 THEN NULL ELSE CAST ( 79 AS INTEGER ) * MIN ( + 35 ) + + 87 / - 4 + 51 * + 44 * + 19 END AS col1
----
45435

query II rowsort
SELECT 64 - - 9 - 41, - 55 - + 62 - 37 AS col2
----
32
-154

query II rowsort
SELECT 53 * 26 AS col1, - 5 AS col2
----
1378
-5

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

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT - - NULLIF ( COUNT ( * ), - 63 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT ALL - NULLIF ( + COUNT( ALL + 74 ), + 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL - NULLIF ( + COUNT ( ALL + 74 ), + 60 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5343
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 51 - - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 51 - - 26 AS col1
----
NULL

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

query I rowsort
SELECT ALL 90 - - 47 AS col1
----
137

query I rowsort
SELECT 67 * - 18 AS col0
----
-1206

query I rowsort
SELECT ALL 1 * + 48 * - + 86 col1
----
-4128

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT + SUM( ALL 17 ) col2
----
17

skipif mysql # not compatible
query I rowsort label-5348
SELECT + SUM ( ALL 17 ) col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5349
SELECT + 95, 53 / COUNT( * ) * + 36 / - - CAST( NULL AS SIGNED ) - 29 AS col1, 90 col2
----
95
NULL
90

skipif mysql # not compatible
query III rowsort label-5349
SELECT + 95, 53 / COUNT ( * ) * + 36 / - - CAST ( NULL AS INTEGER ) - 29 AS col1, 90 col2
----
95
NULL
90

query I rowsort
SELECT 50 + + 80 AS col2
----
130

query I rowsort
SELECT ALL 54 * + 40
----
2160

query I rowsort
SELECT 85 + + 26
----
111

query I rowsort
SELECT 92 * 88 AS col0
----
8096

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL 12 + - 67 * + + 77 * COUNT( * ) * 54 AS col2
----
-278574

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL 12 + - 67 * + + 77 * COUNT ( * ) * 54 AS col2
----
-278574

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL 88 + COALESCE ( + 62, 10, - + COUNT( * ) ) AS col1
----
150

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL 88 + COALESCE ( + 62, 10, - + COUNT ( * ) ) AS col1
----
150

query I rowsort
SELECT 8 * - 92 * + 36 * ( 58 )
----
-1536768

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT + 70 * + MIN( 51 ) AS col0
----
3570

skipif mysql # not compatible
query I rowsort label-5358
SELECT + 70 * + MIN ( 51 ) AS col0
----
3570

query I rowsort
SELECT DISTINCT 99 + + 22 AS col2
----
121

query I rowsort
SELECT + 18 * + 45 * - - 55 - - - 77
----
44473

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT SUM( DISTINCT + 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT SUM ( DISTINCT + 71 ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5362
SELECT ALL - COALESCE ( - 13, + - 58 - - + 26 + + 82 * 50 + + ( - 30 ) + - + ( CASE - 55 WHEN 45 THEN 27 END ) + + 75 + - 29 * - COUNT( * ) * - - 22 ) + - COUNT( * ) + 49 DIV COUNT( * ) DIV COALESCE ( - 86, 68 )
----
12

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL - COALESCE ( - 13, + - 58 - - + 26 + + 82 * 50 + + ( - 30 ) + - + ( CASE - 55 WHEN 45 THEN 27 END ) + + 75 + - 29 * - COUNT ( * ) * - - 22 ) + - COUNT ( * ) + 49 / COUNT ( * ) / COALESCE ( - 86, 68 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT + 47 - - CASE + 11 WHEN - + 15 THEN + ( - 19 ) WHEN + 72 * - + COUNT( * ) * 84 + - 80 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT + 47 - - CASE + 11 WHEN - + 15 THEN + ( - 19 ) WHEN + 72 * - + COUNT ( * ) * 84 + - 80 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 17 + - 69 AS col1
----
-52

query II rowsort
SELECT ALL 49 AS col2, 68 + 57
----
49
125

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

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

query I rowsort
SELECT DISTINCT NULLIF ( 45, + 96 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT COALESCE ( - 30, - - 1, + 30 * - SUM( ALL + + 55 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-5368
SELECT COALESCE ( - 30, - - 1, + 30 * - SUM ( ALL + + 55 ) )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5369
SELECT ALL - CASE + - 7 WHEN - 99 + + CAST( NULL AS SIGNED ) - 16 THEN ( - - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL - CASE + - 7 WHEN - 99 + + CAST ( NULL AS INTEGER ) - 16 THEN ( - - COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT + + 79 + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-5370
SELECT + + 79 + COUNT ( * )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5371
SELECT - - CAST( - 44 AS SIGNED ) - - - MIN( - + 99 ) + - + 13 * 17 + + - 82 AS col0
----
-248

skipif mysql # not compatible
query I rowsort label-5371
SELECT - - CAST ( - 44 AS INTEGER ) - - - MIN ( - + 99 ) + - + 13 * 17 + + - 82 AS col0
----
-248

query II rowsort
SELECT ALL - 19 AS col0, + 44 * - 50 + + ( - 50 )
----
-19
-2250

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

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

query I rowsort
SELECT - + 99 - 0 + 15 * - - 75 * + 41 AS col0
----
46026

onlyif mysql # aggregate syntax: 
query II rowsort label-5375
SELECT - 50 * + + 21 + - COUNT( * ) AS col2, 5 col2
----
-1051
5

skipif mysql # not compatible
query II rowsort label-5375
SELECT - 50 * + + 21 + - COUNT ( * ) AS col2, 5 col2
----
-1051
5

query I rowsort
SELECT - 63 + + 23
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT - - CASE + 79 WHEN + - 80 THEN NULL WHEN - COALESCE ( - 8, - - 46 ) - - + 26 * 39 * + 19 THEN + 99 * + + COUNT( * ) ELSE NULL END * - COUNT( + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT - - CASE + 79 WHEN + - 80 THEN NULL WHEN - COALESCE ( - 8, - - 46 ) - - + 26 * 39 * + 19 THEN + 99 * + + COUNT ( * ) ELSE NULL END * - COUNT ( + 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT - 77 + 34 * + 54 * COUNT( - + 83 ) AS col1
----
1759

skipif mysql # not compatible
query I rowsort label-5378
SELECT - 77 + 34 * + 54 * COUNT ( - + 83 ) AS col1
----
1759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5379
SELECT ALL + - 87 DIV + COUNT( - - COALESCE ( + 44, 77 * - - 0 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL + - 87 / + COUNT ( - - COALESCE ( + 44, 77 * - - 0 ) )
----
-87

query I rowsort
SELECT - 90 + 2 AS col2
----
-88

query I rowsort
SELECT ALL - - 91 * + 20 * 22 + - - COALESCE ( + 96, 13 )
----
40136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5382
SELECT + - 28 DIV - ( COUNT( * ) ) + 97 * + COUNT( - 73 ) * + + ( - 24 )
----
-2300

skipif mysql # not compatible
query I rowsort label-5382
SELECT + - 28 / - ( COUNT ( * ) ) + 97 * + COUNT ( - 73 ) * + + ( - 24 )
----
-2300

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT - - 72 DIV + + NULLIF ( + 76, + + 52 * 30 + + 63 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5383
SELECT - - 72 / + + NULLIF ( + 76, + + 52 * 30 + + 63 ) AS col0
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-5385
SELECT MIN ( + 90 )
----
90

query I rowsort
SELECT - 72 + + 3 AS col1
----
-69

query I rowsort
SELECT + 85 * 1 + - - 3 col0
----
88

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

query I rowsort
SELECT NULLIF ( - - 67, ( 44 ) * - 45 * 86 )
----
67

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

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

query I rowsort
SELECT + COALESCE ( 69, - - 46, 73 ) * - - 56
----
3864

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT ALL ( - 40 ) * - - 39 + + SUM( + ( + + ( - - CASE + 24 WHEN + + 71 * 1 + - 53 / + 37 THEN NULL WHEN 52 * - 35 * + 87 * + 9 THEN NULL WHEN + 52 / + - 74 THEN - 74 END ) ) ) / + MIN( 95 ) + - NULLIF ( - ( 43 ), 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL ( - 40 ) * - - 39 + + SUM ( + ( + + ( - - CASE + 24 WHEN + + 71 * 1 + - 53 / + 37 THEN NULL WHEN 52 * - 35 * + 87 * + 9 THEN NULL WHEN + 52 / + - 74 THEN - 74 END ) ) ) / + MIN ( 95 ) + - NULLIF ( - ( 43 ), 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT + NULLIF ( ( + 31 ), MIN( ALL + 27 ) + - 92 * + - 46 / + 16 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5393
SELECT + NULLIF ( ( + 31 ), MIN ( ALL + 27 ) + - 92 * + - 46 / + 16 ) AS col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5394
SELECT - 94 + + + 88 * - - COUNT( * ) + + 95 DIV - 67 + - - SUM( + 46 ) * - 42 + - 74 + 62 + - COUNT( DISTINCT + NULLIF ( - 6, - 4 ) )
----
-1952

skipif mysql # not compatible
query I rowsort label-5394
SELECT - 94 + + + 88 * - - COUNT ( * ) + + 95 / - 67 + - - SUM ( + 46 ) * - 42 + - 74 + 62 + - COUNT ( DISTINCT + NULLIF ( - 6, - 4 ) )
----
-1952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5395
SELECT CASE - + CAST( NULL AS SIGNED ) WHEN ( + 60 ) THEN 10 * + COUNT( * ) + - COUNT( * ) - + COUNT( - - CASE - - 96 WHEN 20 THEN 77 END ) WHEN + 46 THEN + - 3 * 91 WHEN 87 THEN + + 20 ELSE + COALESCE ( - COALESCE ( - NULLIF ( 24, + 39 DIV 38 + 49 DIV - 9 ), 19, - COALESCE ( 58, 96 * 87 ) + + 50 ), CAST( + 91 AS SIGNED ) ) DIV - 37 END
----
0

skipif mysql # not compatible
query I rowsort label-5395
SELECT CASE - + CAST ( NULL AS INTEGER ) WHEN ( + 60 ) THEN 10 * + COUNT ( * ) + - COUNT ( * ) - + COUNT ( - - CASE - - 96 WHEN 20 THEN 77 END ) WHEN + 46 THEN + - 3 * 91 WHEN 87 THEN + + 20 ELSE + COALESCE ( - COALESCE ( - NULLIF ( 24, + 39 / 38 + 49 / - 9 ), 19, - COALESCE ( 58, 96 * 87 ) + + 50 ), CAST ( + 91 AS INTEGER ) ) / - 37 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT ALL - MAX( ALL ( + 91 ) ) * - - ( COUNT( * ) ) + 15 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL - MAX ( ALL ( + 91 ) ) * - - ( COUNT ( * ) ) + 15 AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5397
SELECT - 52 * + COALESCE ( - + ( 53 ), + 11 + - - CAST( NULL AS SIGNED ) * + COUNT( * ), - 16 ) + + 72 * - + 60 * + ( - 86 )
----
374276

skipif mysql # not compatible
query I rowsort label-5397
SELECT - 52 * + COALESCE ( - + ( 53 ), + 11 + - - CAST ( NULL AS INTEGER ) * + COUNT ( * ), - 16 ) + + 72 * - + 60 * + ( - 86 )
----
374276

query I rowsort
SELECT DISTINCT 64 * - 29 + 38
----
-1818

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT ALL + ( CASE COUNT( * ) WHEN - + MAX( - + 74 ) + + 70 + + 82 THEN - ( 46 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL + ( CASE COUNT ( * ) WHEN - + MAX ( - + 74 ) + + 70 + + 82 THEN - ( 46 ) END ) AS col0
----
NULL

query I rowsort
SELECT - - 14 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5401
SELECT + 81 + - 22, + COUNT( * ) - + + 83 + - - 46 AS col1
----
59
-36

skipif mysql # not compatible
query II rowsort label-5401
SELECT + 81 + - 22, + COUNT ( * ) - + + 83 + - - 46 AS col1
----
59
-36

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

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

query I rowsort
SELECT - 95 + + ( + 36 )
----
-59

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

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT - SUM ( ( - 73 ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT + COUNT( * ) - ( + 41 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + COUNT ( * ) - ( + 41 ) AS col0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT ALL 35 * 61 DIV 65 * 64 - + 23 DIV - 63
----
2048

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL 35 * 61 / 65 * 64 - + 23 / - 63
----
2048

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT - - MIN( - 14 ) * + - ( + 85 ) * + 98 AS col0
----
116620

skipif mysql # not compatible
query I rowsort label-5407
SELECT - - MIN ( - 14 ) * + - ( + 85 ) * + 98 AS col0
----
116620

query I rowsort
SELECT DISTINCT 53 * - 63 * 44
----
-146916

query I rowsort
SELECT DISTINCT 62 * - + 73 * + 86
----
-389236

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

query I rowsort
SELECT + 50 * - 13 + + 5 AS col0
----
-645

query I rowsort
SELECT DISTINCT ( - + 58 ) AS col1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT ALL + 12 DIV - 7
----
-1

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL + 12 / - 7
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5414
SELECT ALL 37 DIV - - ( + 73 ) + + + 8 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL 37 / - - ( + 73 ) + + + 8 AS col1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5415
SELECT 12 DIV 65 DIV - COUNT( * ) * - 45 - - - 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5415
SELECT 12 / 65 / - COUNT ( * ) * - 45 - - - 35 AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-5416
SELECT DISTINCT + 21 DIV NULLIF ( + + 40, 75 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT + 21 / NULLIF ( + + 40, 75 ) AS col0
----
0

query I rowsort
SELECT ALL - 76 * + 67
----
-5092

query I rowsort
SELECT 75 + + 22 + 70 col0
----
167

query I rowsort
SELECT DISTINCT + 22 + - + 89
----
-67

query I rowsort
SELECT 85 + - 23 AS col0
----
62

query I rowsort
SELECT DISTINCT - 59 col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL + COUNT( * ) + + - 67 * - + 65
----
4356

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL + COUNT ( * ) + + - 67 * - + 65
----
4356

query I rowsort
SELECT ALL - 50 + - + 22
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT ALL ( - + NULLIF ( + 59, + COUNT( * ) ) ) + - + COUNT( + 14 )
----
-60

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL ( - + NULLIF ( + 59, + COUNT ( * ) ) ) + - + COUNT ( + 14 )
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5425
SELECT ALL - NULLIF ( CAST( NULL AS DECIMAL ), + ( - ( - 69 ) ) + + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL - NULLIF ( CAST ( NULL AS REAL ), + ( - ( - 69 ) ) + + 92 )
----
NULL

query II rowsort
SELECT ALL - 91 AS col0, 68
----
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 2 * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 2 * - 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5428
SELECT ALL + + 37 - - - COUNT( * ) * - + NULLIF ( 87, + - CAST( NULL AS DECIMAL ) ) AS col2
----
124

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL + + 37 - - - COUNT ( * ) * - + NULLIF ( 87, + - CAST ( NULL AS REAL ) ) AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT + MIN( + + 1 ) * - + 69 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-5429
SELECT + MIN ( + + 1 ) * - + 69 AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5430
SELECT CAST( - 64 AS SIGNED ) * 86 col0, 43 col1
----
-5504
43

skipif mysql # not compatible
query II rowsort label-5430
SELECT CAST ( - 64 AS INTEGER ) * 86 col0, 43 col1
----
-5504
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5431
SELECT 13 DIV - 5 - 64 * - + ( - 86 ) + - NULLIF ( + 38, NULLIF ( + CASE - 65 WHEN - CAST( NULL AS SIGNED ) * - + 35 * + + COALESCE ( - 97, - 39 ) THEN + 82 ELSE - + COUNT( * ) * COUNT( * ) DIV + + 50 * - 58 END, 59 ) * 11 ) * - COUNT( * )
----
-5468

skipif mysql # not compatible
query I rowsort label-5431
SELECT 13 / - 5 - 64 * - + ( - 86 ) + - NULLIF ( + 38, NULLIF ( + CASE - 65 WHEN - CAST ( NULL AS INTEGER ) * - + 35 * + + COALESCE ( - 97, - 39 ) THEN + 82 ELSE - + COUNT ( * ) * COUNT ( * ) / + + 50 * - 58 END, 59 ) * 11 ) * - COUNT ( * )
----
-5468

query I rowsort
SELECT DISTINCT + 26 - - 26 AS col1
----
52

query I rowsort
SELECT - + 16
----
-16

query I rowsort
SELECT - - 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5435
SELECT 62 * + SUM( 17 ) AS col0, 98
----
1054
98

skipif mysql # not compatible
query II rowsort label-5435
SELECT 62 * + SUM ( 17 ) AS col0, 98
----
1054
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT MAX( ALL + 75 ) - - 20 + - + 12 + + 46
----
129

skipif mysql # not compatible
query I rowsort label-5437
SELECT MAX ( ALL + 75 ) - - 20 + - + 12 + + 46
----
129

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5439
SELECT DISTINCT + 13, ( + 43 ) DIV + 74 + + + COUNT( * ) col1
----
13
1

skipif mysql # not compatible
query II rowsort label-5439
SELECT DISTINCT + 13, ( + 43 ) / + 74 + + + COUNT ( * ) col1
----
13
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5441
SELECT DISTINCT 7 DIV + ( - 39 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT 7 / + ( - 39 ) col0
----
0

query I rowsort
SELECT - - 62 AS col1
----
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT 8 - - 93 * + COUNT( * )
----
101

skipif mysql # not compatible
query I rowsort label-5444
SELECT 8 - - 93 * + COUNT ( * )
----
101

query I rowsort
SELECT ALL 3 col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5446
SELECT 10 + - + COUNT( * ) * NULLIF ( + COUNT( * ), + 73 * + CAST( 81 AS SIGNED ) + 63 )
----
9

skipif mysql # not compatible
query I rowsort label-5446
SELECT 10 + - + COUNT ( * ) * NULLIF ( + COUNT ( * ), + 73 * + CAST ( 81 AS INTEGER ) + 63 )
----
9

query I rowsort
SELECT - 9 + - 61 AS col2
----
-70

query I rowsort
SELECT DISTINCT + 58 + 1
----
59

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

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL + COUNT ( * ) + + - 33 AS col2
----
-32

query I rowsort
SELECT ALL 1 + 52 AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5451
SELECT CAST( - 83 AS SIGNED ) + 80
----
-3

skipif mysql # not compatible
query I rowsort label-5451
SELECT CAST ( - 83 AS INTEGER ) + 80
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL - SUM( ALL + + 13 ) + - 80 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL - SUM ( ALL + + 13 ) + - 80 AS col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT 66 * + + MIN( ALL CAST( 9 AS SIGNED ) )
----
594

skipif mysql # not compatible
query I rowsort label-5453
SELECT 66 * + + MIN ( ALL CAST ( 9 AS INTEGER ) )
----
594

query II rowsort
SELECT + 1, 73 col0
----
1
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT 11 + COUNT( * ) * 1 + 51 - - COALESCE ( + 75, - 99 * - 18 ) - 32 col0
----
106

skipif mysql # not compatible
query I rowsort label-5455
SELECT 11 + COUNT ( * ) * 1 + 51 - - COALESCE ( + 75, - 99 * - 18 ) - 32 col0
----
106

query II rowsort
SELECT ALL - 46 AS col1, 14 col0
----
-46
14

query II rowsort
SELECT 81 col0, - 85
----
81
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5458
SELECT 85 * - CASE + - 59 WHEN - NULLIF ( ( CAST( - 84 AS DECIMAL ) ), + - 56 ) THEN + + 97 + + - CASE + 46 WHEN + 36 + - - 83 + + + 75 THEN - CAST( NULL AS SIGNED ) * - 44 + - SUM( ALL - 32 ) WHEN COUNT( * ) THEN NULL WHEN - - CASE - COUNT( * ) WHEN 45 + - ( - 8 + + 30 ) THEN 93 * 56 + - ( - 59 ) WHEN AVG ( ALL + 92 ) THEN - 64 ELSE NULL END * 71 THEN NULL ELSE + 11 END + 15 ELSE 46 + 57 DIV CAST( - 36 AS SIGNED ) END
----
-3825

skipif mysql # not compatible
query I rowsort label-5458
SELECT 85 * - CASE + - 59 WHEN - NULLIF ( ( CAST ( - 84 AS REAL ) ), + - 56 ) THEN + + 97 + + - CASE + 46 WHEN + 36 + - - 83 + + + 75 THEN - CAST ( NULL AS INTEGER ) * - 44 + - SUM ( ALL - 32 ) WHEN COUNT ( * ) THEN NULL WHEN - - CASE - COUNT ( * ) WHEN 45 + - ( - 8 + + 30 ) THEN 93 * 56 + - ( - 59 ) WHEN AVG ( ALL + 92 ) THEN - 64 ELSE NULL END * 71 THEN NULL ELSE + 11 END + 15 ELSE 46 + 57 / CAST ( - 36 AS INTEGER ) END
----
-3825

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5459
SELECT 17 * - 43 + + - COUNT( * ) + - 2, COUNT( * ) DIV + 74 AS col2
----
-734
0

skipif mysql # not compatible
query II rowsort label-5459
SELECT 17 * - 43 + + - COUNT ( * ) + - 2, COUNT ( * ) / + 74 AS col2
----
-734
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5460
SELECT DISTINCT - COUNT( - + 34 ) DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT - COUNT ( - + 34 ) / 22
----
0

query I rowsort
SELECT ALL + 18 + 32 col1
----
50

onlyif mysql # aggregate syntax: 
query III rowsort label-5462
SELECT 97 AS col2, COUNT( * ), 86 AS col0
----
97
1
86

skipif mysql # not compatible
query III rowsort label-5462
SELECT 97 AS col2, COUNT ( * ), 86 AS col0
----
97
1
86

query II rowsort
SELECT ALL - 36, 33 AS col0
----
-36
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT 10 * - ( + - COUNT( NULLIF ( + + 89, + - 17 ) ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5464
SELECT 10 * - ( + - COUNT ( NULLIF ( + + 89, + - 17 ) ) ) AS col1
----
10

query I rowsort
SELECT ALL - 45 * + COALESCE ( - + 6, + - 18 ) AS col2
----
270

query I rowsort
SELECT 17 + - 64 AS col1
----
-47

query II rowsort
SELECT + 78, 50 * - 44 AS col0
----
78
-2200

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT COUNT( * ) - - 5 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5468
SELECT COUNT ( * ) - - 5 AS col2
----
6

query I rowsort
SELECT ALL - NULLIF ( + 23, COALESCE ( 27, + 22 ) - - 91 - - + 82 ) * + 23
----
-529

query II rowsort
SELECT 50 AS col2, 69 - 36 + 32 + 82 * 97 * + 2 AS col0
----
50
15973

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT 97 * - - CAST( NULL AS SIGNED ) - + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT 97 * - - CAST ( NULL AS INTEGER ) - + 61 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5472
SELECT ALL + 97 * - 96 - - COALESCE ( + COALESCE ( + - COUNT( * ), + + 76 ), + - 66 ) * - 16 * CAST( - 2 AS SIGNED ) AS col1
----
-9344

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL + 97 * - 96 - - COALESCE ( + COALESCE ( + - COUNT ( * ), + + 76 ), + - 66 ) * - 16 * CAST ( - 2 AS INTEGER ) AS col1
----
-9344

onlyif mysql # aggregate syntax: 
query II rowsort label-5473
SELECT 28 + - ( + + 48 ) * - 19 + + - ( - 59 ) - MIN( - 41 ) * + + 87 col1, 40 AS col1
----
4566
40

skipif mysql # not compatible
query II rowsort label-5473
SELECT 28 + - ( + + 48 ) * - 19 + + - ( - 59 ) - MIN ( - 41 ) * + + 87 col1, 40 AS col1
----
4566
40

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5476
SELECT + 64 * - 39 * + COALESCE ( 92, 2, - + 61 DIV - 35 ) + - - 76 * + 72 + + 37 - + 6 + + 39 DIV 77
----
-224129

skipif mysql # not compatible
query I rowsort label-5476
SELECT + 64 * - 39 * + COALESCE ( 92, 2, - + 61 / - 35 ) + - - 76 * + 72 + + 37 - + 6 + + 39 / 77
----
-224129

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

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

query I rowsort
SELECT ALL + 36 * + 23 * + 19 AS col1
----
15732

query II rowsort
SELECT DISTINCT - 35 AS col1, + 89
----
-35
89

query I rowsort
SELECT + 34 - + 54 + - + 39
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT DISTINCT + CASE + - 76 WHEN - 87 * - 95 THEN NULL ELSE - COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT + CASE + - 76 WHEN - 87 * - 95 THEN NULL ELSE - COUNT ( * ) END AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT - - COUNT( DISTINCT + 60 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5482
SELECT - - COUNT ( DISTINCT + 60 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT + 66 + - COUNT( * ) + - 50 * 2 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-5483
SELECT + 66 + - COUNT ( * ) + - 50 * 2 AS col2
----
-35

query II rowsort
SELECT DISTINCT 92 AS col2, + 27 * + 97 AS col0
----
92
2619

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + ( + MIN( DISTINCT + - 10 ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5487
SELECT + ( + MIN ( DISTINCT + - 10 ) ) AS col1
----
-10

query I rowsort
SELECT + 6 + - + 29 + + 11 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL - 29 + ( - ( - ( + COUNT( * ) ) ) ) + - 64 + + + 21 * COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL - 29 + ( - ( - ( + COUNT ( * ) ) ) ) + - 64 + + + 21 * COUNT ( * )
----
-71

query II rowsort
SELECT - 54 AS col2, + 38 * + 61 * + 22
----
-54
50996

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT + SUM( DISTINCT - - 63 ) col2
----
63

skipif mysql # not compatible
query I rowsort label-5491
SELECT + SUM ( DISTINCT - - 63 ) col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5492
SELECT ALL - - 25 + - MIN( + 3 ) + 68 * COALESCE ( 87, + ( + 2 ) * 8 + - + CAST( NULL AS SIGNED ) ) AS col0
----
5938

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - - 25 + - MIN ( + 3 ) + 68 * COALESCE ( 87, + ( + 2 ) * 8 + - + CAST ( NULL AS INTEGER ) ) AS col0
----
5938

query I rowsort
SELECT DISTINCT + - 63 + - + 81 AS col0
----
-144

query I rowsort
SELECT DISTINCT 42 + + 63 * 48 + + + 26 AS col2
----
3092

query I rowsort
SELECT DISTINCT NULLIF ( 31, 1 )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5496
SELECT 66 - - - ( 76 ) * + MAX( DISTINCT + 39 ) AS col2, + 34
----
-2898
34

skipif mysql # not compatible
query II rowsort label-5496
SELECT 66 - - - ( 76 ) * + MAX ( DISTINCT + 39 ) AS col2, + 34
----
-2898
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5497
SELECT + 83 * - COUNT( * ) AS col1, COALESCE ( + 60, COUNT( * ) * 77 * 86, COUNT( * ) ) + + 22
----
-83
82

skipif mysql # not compatible
query II rowsort label-5497
SELECT + 83 * - COUNT ( * ) AS col1, COALESCE ( + 60, COUNT ( * ) * 77 * 86, COUNT ( * ) ) + + 22
----
-83
82

query I rowsort
SELECT - 1 col2
----
-1

query I rowsort
SELECT DISTINCT 83 + 54 + + + 59 + + - 20
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ALL COUNT( * ) + - + COUNT( * ) * - CASE + 32 WHEN - 88 THEN NULL WHEN + 97 THEN 12 + COUNT( * ) + - 66 + + 6 * + 76 ELSE NULL END / + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL COUNT ( * ) + - + COUNT ( * ) * - CASE + 32 WHEN - 88 THEN NULL WHEN + 97 THEN 12 + COUNT ( * ) + - 66 + + 6 * + 76 ELSE NULL END / + + 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5501
SELECT + NULLIF ( - 91, + + CAST( NULL AS SIGNED ) / - + 85 + - COUNT( * ) + + 40 ) * 41 AS col2, 52
----
-3731
52

skipif mysql # not compatible
query II rowsort label-5501
SELECT + NULLIF ( - 91, + + CAST ( NULL AS INTEGER ) / - + 85 + - COUNT ( * ) + + 40 ) * 41 AS col2, 52
----
-3731
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5502
SELECT CASE - 13 WHEN - 40 THEN NULL WHEN - - COUNT( * ) THEN NULL WHEN - + COUNT( * ) THEN + + CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT CASE - 13 WHEN - 40 THEN NULL WHEN - - COUNT ( * ) THEN NULL WHEN - + COUNT ( * ) THEN + + CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5503
SELECT ALL - CAST( NULL AS SIGNED ) * - 10 - - 44 * COALESCE ( 2, 31, - + 66 + - COUNT( * ) + 2 / - CAST( 70 AS SIGNED ) ) + NULLIF ( + - 52, + 93 ) * 96 + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL - CAST ( NULL AS INTEGER ) * - 10 - - 44 * COALESCE ( 2, 31, - + 66 + - COUNT ( * ) + 2 / - CAST ( 70 AS INTEGER ) ) + NULLIF ( + - 52, + 93 ) * 96 + + 71
----
NULL

query I rowsort
SELECT ALL 35 * - 20
----
-700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5505
SELECT DISTINCT 46 * - - 1 DIV - COUNT( * ) - 44 + + ( + 18 ) + - + 51 * - + 97
----
4875

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT 46 * - - 1 / - COUNT ( * ) - 44 + + ( + 18 ) + - + 51 * - + 97
----
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT + 76 + MIN( ( + 68 ) ) col1
----
144

skipif mysql # not compatible
query I rowsort label-5506
SELECT + 76 + MIN ( ( + 68 ) ) col1
----
144

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5508
SELECT + 40 + - COUNT( * ), 67 DIV 20 * - 65 AS col0
----
39
-195

skipif mysql # not compatible
query II rowsort label-5508
SELECT + 40 + - COUNT ( * ), 67 / 20 * - 65 AS col0
----
39
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-5509
SELECT + 57 * MIN( ALL - 5 ) * + + SUM( + 18 ) AS col0, 40 AS col2
----
-5130
40

skipif mysql # not compatible
query II rowsort label-5509
SELECT + 57 * MIN ( ALL - 5 ) * + + SUM ( + 18 ) AS col0, 40 AS col2
----
-5130
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5510
SELECT - + 57 - ( - NULLIF ( + 36, - ( - 96 ) / - + CAST( + 55 AS SIGNED ) + + COUNT( * ) + - 29 / - - 57 ) ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5510
SELECT - + 57 - ( - NULLIF ( + 36, - ( - 96 ) / - + CAST ( + 55 AS INTEGER ) + + COUNT ( * ) + - 29 / - - 57 ) ) AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5511
SELECT ALL + - CAST( + + 56 AS SIGNED ) AS col0, - MIN( DISTINCT + + 43 )
----
-56
-43

skipif mysql # not compatible
query II rowsort label-5511
SELECT ALL + - CAST ( + + 56 AS INTEGER ) AS col0, - MIN ( DISTINCT + + 43 )
----
-56
-43

query I rowsort
SELECT + 14 * - - 87
----
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL + - COUNT( DISTINCT - 26 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + - COUNT ( DISTINCT - 26 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5514
SELECT DISTINCT - + 94 * - MAX( CAST( NULL AS SIGNED ) ) * + - 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT - + 94 * - MAX ( CAST ( NULL AS INTEGER ) ) * + - 55 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5515
SELECT + - CASE + - 79 WHEN + 52 * - 91 + COALESCE ( - COUNT( * ), MIN( DISTINCT - CAST( - ( 11 ) AS SIGNED ) ) * + 18 ) + - 26 / COUNT( * ) + + 92 * - 10 + - + 25 THEN NULL WHEN + COUNT( * ) / - 83 + - NULLIF ( - + 50, CAST( + + NULLIF ( + 4, - COUNT( * ) ) AS DECIMAL ) * 69 ) THEN - 97 END + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT + - CASE + - 79 WHEN + 52 * - 91 + COALESCE ( - COUNT ( * ), MIN ( DISTINCT - CAST ( - ( 11 ) AS INTEGER ) ) * + 18 ) + - 26 / COUNT ( * ) + + 92 * - 10 + - + 25 THEN NULL WHEN + COUNT ( * ) / - 83 + - NULLIF ( - + 50, CAST ( + + NULLIF ( + 4, - COUNT ( * ) ) AS REAL ) * 69 ) THEN - 97 END + 5 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 83 * - 64 AS col2
----
-5312

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5517
SELECT + + 19 + + 46 * - - COUNT( * ) * NULLIF ( + 99, - COUNT( * ) + + CAST( NULL AS DECIMAL ) ) AS col1
----
4573

skipif mysql # not compatible
query I rowsort label-5517
SELECT + + 19 + + 46 * - - COUNT ( * ) * NULLIF ( + 99, - COUNT ( * ) + + CAST ( NULL AS REAL ) ) AS col1
----
4573

query I rowsort
SELECT + 69 * - 46 + - 85 AS col2
----
-3259

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

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL + 33 + + 94 * + CAST ( NULL AS INTEGER ) + COUNT ( 64 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT - SUM( ALL - - 78 ) * 78
----
-6084

skipif mysql # not compatible
query I rowsort label-5520
SELECT - SUM ( ALL - - 78 ) * 78
----
-6084

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5521
SELECT - 57 + - - COALESCE ( - - 67, - 90 * - NULLIF ( + CAST( NULL AS SIGNED ), + COALESCE ( + 80, - 84, - 80 ) ) ) col1, - ( - - 84 ) AS col2
----
10
-84

skipif mysql # not compatible
query II rowsort label-5521
SELECT - 57 + - - COALESCE ( - - 67, - 90 * - NULLIF ( + CAST ( NULL AS INTEGER ), + COALESCE ( + 80, - 84, - 80 ) ) ) col1, - ( - - 84 ) AS col2
----
10
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-5522
SELECT ALL - 98 + + 58 AS col1, + COUNT( * ) + - 45 + + - 49
----
-40
-93

skipif mysql # not compatible
query II rowsort label-5522
SELECT ALL - 98 + + 58 AS col1, + COUNT ( * ) + - 45 + + - 49
----
-40
-93

query I rowsort
SELECT ALL - 92 + - 60 * - + 90 AS col2
----
5308

query I rowsort
SELECT DISTINCT NULLIF ( + 56, + 43 ) AS col2
----
56

query I rowsort
SELECT - 83 - - + 75 * + - 92 + + + ( 93 )
----
-6890

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5526
SELECT ALL ( + CAST( + 2 AS SIGNED ) ) AS col1, + 35 AS col0
----
2
35

skipif mysql # not compatible
query II rowsort label-5526
SELECT ALL ( + CAST ( + 2 AS INTEGER ) ) AS col1, + 35 AS col0
----
2
35

query I rowsort
SELECT ALL ( 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT - MIN( ALL + 28 ) + + 73 * - - 69 * + 5 AS col2
----
25157

skipif mysql # not compatible
query I rowsort label-5528
SELECT - MIN ( ALL + 28 ) + + 73 * - - 69 * + 5 AS col2
----
25157

query I rowsort
SELECT + 60 - 74 + - 68 + - 41
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-5530
SELECT - 96 AS col2, + 67 * - COUNT( * )
----
-96
-67

skipif mysql # not compatible
query II rowsort label-5530
SELECT - 96 AS col2, + 67 * - COUNT ( * )
----
-96
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5531
SELECT ALL + 17 - + 58 + COUNT( * ) col2, + 0 DIV + - COUNT( * ) * + + 19 + COUNT( * )
----
-40
1

skipif mysql # not compatible
query II rowsort label-5531
SELECT ALL + 17 - + 58 + COUNT ( * ) col2, + 0 / + - COUNT ( * ) * + + 19 + COUNT ( * )
----
-40
1

query I rowsort
SELECT DISTINCT - 63 * - 49
----
3087

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5533
SELECT - 24 + - - 59 + - NULLIF ( - 51, - 86 ) + - ( MIN( ALL - COALESCE ( + + 79, + 44 DIV - 74 * 3 ) ) )
----
165

skipif mysql # not compatible
query I rowsort label-5533
SELECT - 24 + - - 59 + - NULLIF ( - 51, - 86 ) + - ( MIN ( ALL - COALESCE ( + + 79, + 44 / - 74 * 3 ) ) )
----
165

query I rowsort
SELECT DISTINCT + 72 * - 90
----
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT ALL - 18 - + 60 + + 64 + - 22 * + 85 * + 19 * + COUNT( * )
----
-35544

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL - 18 - + 60 + + 64 + - 22 * + 85 * + 19 * + COUNT ( * )
----
-35544

query II rowsort
SELECT ALL 61 AS col0, 15
----
61
15

query I rowsort
SELECT + 76 + - + 94
----
-18

query I rowsort
SELECT + 94 * + + 30
----
2820

query I rowsort
SELECT + 52 + + 96 AS col0
----
148

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

query I rowsort
SELECT - 81 + + 99 AS col1
----
18

query I rowsort
SELECT - 58 * - + 61 AS col2
----
3538

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

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

query II rowsort
SELECT + 34 * - 4 * 73 AS col0, 81 / - - 35 * ( - 86 ) * - 66 + CASE - 95 WHEN 63 THEN - 25 + + 25 WHEN + 24 THEN 3 END col1
----
-9928
NULL

query I rowsort
SELECT + 40 * - 88 AS col1
----
-3520

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5547
SELECT DISTINCT - 47 * + + 74 + + 69 + - - 48 - + + 43 + COUNT( * ) AS col2, - CAST( - + ( - 31 ) AS SIGNED )
----
-3403
-31

skipif mysql # not compatible
query II rowsort label-5547
SELECT DISTINCT - 47 * + + 74 + + 69 + - - 48 - + + 43 + COUNT ( * ) AS col2, - CAST ( - + ( - 31 ) AS INTEGER )
----
-3403
-31

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

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

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

query I rowsort
SELECT + - 9 + - + 32 AS col2
----
-41

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5552
SELECT ALL + + CASE + COUNT( - 7 ) WHEN + COUNT( * ) THEN - + 29 DIV - - 90 + + 56 ELSE NULL END
----
56

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL + + CASE + COUNT ( - 7 ) WHEN + COUNT ( * ) THEN - + 29 / - - 90 + + 56 ELSE NULL END
----
56

query I rowsort
SELECT ALL + - 76 * + 27 + - - NULLIF ( - - 8, 1 )
----
-2044

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT + + 65 - + COUNT( COALESCE ( 82, - 83 ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5554
SELECT + + 65 - + COUNT ( COALESCE ( 82, - 83 ) ) AS col2
----
64

query I rowsort
SELECT + 78 * 78 * - 33
----
-200772

onlyif mysql # aggregate syntax: 
query III rowsort label-5556
SELECT + 9 * + 84 + + MAX( ALL 63 ) AS col1, 64 + - 63 col2, + 95 col0
----
819
1
95

skipif mysql # not compatible
query III rowsort label-5556
SELECT + 9 * + 84 + + MAX ( ALL 63 ) AS col1, 64 + - 63 col2, + 95 col0
----
819
1
95

query I rowsort
SELECT DISTINCT - 22 * - 53 + + + 4 AS col0
----
1170

onlyif mysql # aggregate syntax: 
query II rowsort label-5558
SELECT - 82, + COUNT( * ) + - - 64 + + 25 AS col0
----
-82
90

skipif mysql # not compatible
query II rowsort label-5558
SELECT - 82, + COUNT ( * ) + - - 64 + + 25 AS col0
----
-82
90

query I rowsort
SELECT ALL 13 * 59 * 84 * ( - COALESCE ( - 21, 75 ) ) + 47 AS col0
----
1353035

query II rowsort
SELECT ALL + - 36, 94 AS col2
----
-36
94

query II rowsort
SELECT DISTINCT + 34, + 30 AS col0
----
34
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT DISTINCT + - 91 * + COUNT( 63 ) + - + 58 + - 38 * - 90
----
3271

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT + - 91 * + COUNT ( 63 ) + - + 58 + - 38 * - 90
----
3271

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

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT + + COUNT ( * ) / - MAX ( - 73 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5564
SELECT ALL + 85 * CAST( NULL AS SIGNED ) / + 81 + - + ( NULLIF ( + - ( - 71 ), - 88 ) ) + - COUNT( * ) * 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL + 85 * CAST ( NULL AS INTEGER ) / + 81 + - + ( NULLIF ( + - ( - 71 ), - 88 ) ) + - COUNT ( * ) * 17 AS col0
----
NULL

query I rowsort
SELECT ALL - - 16 * 49 + - + 79 AS col0
----
705

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

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

query I rowsort
SELECT 62 + + 55
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT 5 * - COUNT( * ) * - 38
----
190

skipif mysql # not compatible
query I rowsort label-5568
SELECT 5 * - COUNT ( * ) * - 38
----
190

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

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

query I rowsort
SELECT DISTINCT - 3 - + 79 * + 36 AS col2
----
-2847

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

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

query I rowsort
SELECT 21 + - 15 AS col2
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5573
SELECT ALL - 86 - + + CAST( NULL AS DECIMAL ) + + + 99 * + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - 86 - + + CAST ( NULL AS REAL ) + + + 99 * + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT 95 * + 70 * + MIN( + - 19 ) AS col2
----
-126350

skipif mysql # not compatible
query I rowsort label-5574
SELECT 95 * + 70 * + MIN ( + - 19 ) AS col2
----
-126350

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL COUNT( * ) * - - 0
----
0

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL COUNT ( * ) * - - 0
----
0

query I rowsort
SELECT DISTINCT 71 * - COALESCE ( + 29, - 65 ) AS col0
----
-2059

query I rowsort
SELECT DISTINCT 56 AS col0
----
56

query I rowsort
SELECT DISTINCT + COALESCE ( - 3, + 53 * - + 47 ) * - 76 + - - 77
----
305

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5579
SELECT 0 - + + ( + - CAST( - 48 AS SIGNED ) ) col2, 88
----
-48
88

skipif mysql # not compatible
query II rowsort label-5579
SELECT 0 - + + ( + - CAST ( - 48 AS INTEGER ) ) col2, 88
----
-48
88

query I rowsort
SELECT 10 + + ( + CASE 67 WHEN 41 THEN 59 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT 20 + + ( 8 ) AS col0
----
28

query I rowsort
SELECT ALL + 23 * + 7
----
161

query I rowsort
SELECT DISTINCT 25 col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5584
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ), - 42 - - 99 + 53 AS col0
----
1
110

skipif mysql # not compatible
query II rowsort label-5584
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ), - 42 - - 99 + 53 AS col0
----
1
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT ALL 81 + 74 * - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL 81 + 74 * - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT - CASE + - MIN( ALL + 55 ) WHEN - + 80 * 16 + - NULLIF ( 28, - COUNT( * ) ) + 20 + - - 5 + - - 76 * + 70 THEN + 1 - - COUNT( * ) + - - 85 * - COUNT( * ) * 68 * - + 58 + - ( - NULLIF ( + COALESCE ( - + 40, + 32 + + 88 ), - 60 ) ) ELSE NULL END / - COUNT( * ) - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT - CASE + - MIN ( ALL + 55 ) WHEN - + 80 * 16 + - NULLIF ( 28, - COUNT ( * ) ) + 20 + - - 5 + - - 76 * + 70 THEN + 1 - - COUNT ( * ) + - - 85 * - COUNT ( * ) * 68 * - + 58 + - ( - NULLIF ( + COALESCE ( - + 40, + 32 + + 88 ), - 60 ) ) ELSE NULL END / - COUNT ( * ) - + 79
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT DISTINCT - - CASE - 49 WHEN + + 98 THEN NULL ELSE - CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT - - CASE - 49 WHEN + + 98 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT + ( 82 ) + 13 AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5590
SELECT DISTINCT - COUNT( * ) DIV 5 AS col2, 51
----
0
51

skipif mysql # not compatible
query II rowsort label-5590
SELECT DISTINCT - COUNT ( * ) / 5 AS col2, 51
----
0
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5591
SELECT - COALESCE ( + 59, - + COUNT( * ) + 51 ) DIV + 80 + + 0 + + SUM( - + 50 ) * + - ( + - MIN( ALL 41 ) ) * + + 50 * - + COUNT( * ) + + 55 AS col2
----
102555

skipif mysql # not compatible
query I rowsort label-5591
SELECT - COALESCE ( + 59, - + COUNT ( * ) + 51 ) / + 80 + + 0 + + SUM ( - + 50 ) * + - ( + - MIN ( ALL 41 ) ) * + + 50 * - + COUNT ( * ) + + 55 AS col2
----
102555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5592
SELECT - SUM( DISTINCT - 43 ) DIV COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5592
SELECT - SUM ( DISTINCT - 43 ) / COUNT ( * ) AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5593
SELECT CASE 11 WHEN - 49 THEN NULL WHEN - - CAST( 83 AS SIGNED ) THEN NULL WHEN + 16 * - 80 THEN + 51 * COUNT( * ) + MAX( ALL - CAST( CASE - - 86 WHEN 98 THEN + 7 WHEN 57 THEN + - 9 + 38 END AS SIGNED ) ) END * - 5 AS col0, - ( + + 95 ) * + + 16 * MAX( ALL + + 27 ) AS col1
----
NULL
-41040

skipif mysql # not compatible
query II rowsort label-5593
SELECT CASE 11 WHEN - 49 THEN NULL WHEN - - CAST ( 83 AS INTEGER ) THEN NULL WHEN + 16 * - 80 THEN + 51 * COUNT ( * ) + MAX ( ALL - CAST ( CASE - - 86 WHEN 98 THEN + 7 WHEN 57 THEN + - 9 + 38 END AS INTEGER ) ) END * - 5 AS col0, - ( + + 95 ) * + + 16 * MAX ( ALL + + 27 ) AS col1
----
NULL
-41040

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT + 66 + - ( + 38 ) * - COUNT( ALL + - 68 ) + - + 23 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT + 66 + - ( + 38 ) * - COUNT ( ALL + - 68 ) + - + 23 AS col2
----
81

query I rowsort
SELECT - 46 * + - 79
----
3634

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT - MAX( - 94 ) - - + 6 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-5596
SELECT - MAX ( - 94 ) - - + 6 AS col0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-5597
SELECT ALL ( + 14 ) DIV - - 7 + - 92 + 71 * + 99
----
6939

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL ( + 14 ) / - - 7 + - 92 + 71 * + 99
----
6939

query I rowsort
SELECT ALL - 17 + - - 85 * 84 AS col2
----
7123

onlyif mysql # DIV for integer division: 
query I rowsort label-5599
SELECT 62 DIV - 17 - 47 col2
----
-50

skipif mysql # not compatible
query I rowsort label-5599
SELECT 62 / - 17 - 47 col2
----
-50

query I rowsort
SELECT DISTINCT - 6 + + 14 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT ALL + 42 * - + 26 - - 21 * - MAX( - + 12 ) * 92 + - 52
----
22040

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL + 42 * - + 26 - - 21 * - MAX ( - + 12 ) * 92 + - 52
----
22040

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5603
SELECT ALL 65 + MAX( + + 98 ) * - + NULLIF ( - - COUNT( * ), + COUNT( ALL - 99 ) ) * 94 * - - 36 + + + 49 + + 36 / NULLIF ( + - 6, + 76 * - + 87 + - 46 + 73 ) AS col2, + 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-5603
SELECT ALL 65 + MAX ( + + 98 ) * - + NULLIF ( - - COUNT ( * ), + COUNT ( ALL - 99 ) ) * 94 * - - 36 + + + 49 + + 36 / NULLIF ( + - 6, + 76 * - + 87 + - 46 + 73 ) AS col2, + 45
----
NULL
45

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5605
SELECT - CAST( ( + + 50 ) AS SIGNED ) + + COUNT( DISTINCT 28 )
----
-49

skipif mysql # not compatible
query I rowsort label-5605
SELECT - CAST ( ( + + 50 ) AS INTEGER ) + + COUNT ( DISTINCT 28 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT COUNT( * ) * 1 + - 86 * 71
----
-6105

skipif mysql # not compatible
query I rowsort label-5606
SELECT COUNT ( * ) * 1 + - 86 * 71
----
-6105

onlyif mysql # DIV for integer division: 
query I rowsort label-5607
SELECT + 72 * - 92 + + 82 DIV + - 39 AS col0
----
-6626

skipif mysql # not compatible
query I rowsort label-5607
SELECT + 72 * - 92 + + 82 / + - 39 AS col0
----
-6626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5608
SELECT DISTINCT 88 AS col2, 23 + + COUNT( * ) * + CAST( NULL AS SIGNED ) * - + 78
----
88
NULL

skipif mysql # not compatible
query II rowsort label-5608
SELECT DISTINCT 88 AS col2, 23 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - + 78
----
88
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5609
SELECT CAST( NULL AS DECIMAL ) * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT CAST ( NULL AS REAL ) * 22
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5610
SELECT ALL CAST( - + ( 69 ) AS SIGNED ) DIV + - 40
----
1

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL CAST ( - + ( 69 ) AS INTEGER ) / + - 40
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT - MAX( ALL - 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5612
SELECT - MAX ( ALL - 94 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL 59 * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL 59 * COUNT ( * )
----
59

query I rowsort
SELECT 1 + - + 64 * 45 * + 27 + 25
----
-77734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT ALL CASE 84 WHEN + 36 / - 39 + - 64 + + 48 * + ( - 90 ) * - CAST( - 50 AS SIGNED ) THEN - 82 ELSE NULL END * + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL CASE 84 WHEN + 36 / - 39 + - 64 + + 48 * + ( - 90 ) * - CAST ( - 50 AS INTEGER ) THEN - 82 ELSE NULL END * + 3 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5616
SELECT 20 * - ( 14 ) * + COUNT( * ) / + ( - 61 ) / + 59 + + CASE 99 WHEN + CASE + 39 WHEN COUNT( * ) * + 4 THEN - 53 ELSE NULL END THEN - 40 ELSE NULL END / + ( - 35 ) * - MIN( ALL CAST( + 85 AS SIGNED ) ) + 17 - + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT 20 * - ( 14 ) * + COUNT ( * ) / + ( - 61 ) / + 59 + + CASE 99 WHEN + CASE + 39 WHEN COUNT ( * ) * + 4 THEN - 53 ELSE NULL END THEN - 40 ELSE NULL END / + ( - 35 ) * - MIN ( ALL CAST ( + 85 AS INTEGER ) ) + 17 - + + 37
----
NULL

query I rowsort
SELECT ALL + 28 + + ( 83 ) + - - 46 AS col2
----
157

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5619
SELECT ALL COALESCE ( + 3, + + NULLIF ( - 88, - 26 ) * 53 DIV 76 + - 39 ) * ( - COUNT( * ) ) AS col2, 37 * 4 * - + 94 AS col1
----
-3
-13912

skipif mysql # not compatible
query II rowsort label-5619
SELECT ALL COALESCE ( + 3, + + NULLIF ( - 88, - 26 ) * 53 / 76 + - 39 ) * ( - COUNT ( * ) ) AS col2, 37 * 4 * - + 94 AS col1
----
-3
-13912

query II rowsort
SELECT ALL - 65 + + + 53 + - 95 * - + 35 * 99 col1, - 80 AS col1
----
329163
-80

query I rowsort
SELECT DISTINCT 10 + - 74 + - - 25 * 7 + 64
----
175

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

query I rowsort
SELECT ALL - - 71 + + 42 col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5624
SELECT DISTINCT NULLIF ( 92, + 71 ) * + ( 95 ) + SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) * 54 + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT NULLIF ( 92, + 71 ) * + ( 95 ) + SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * 54 + + 70
----
NULL

query I rowsort
SELECT 7 + 46 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT - 51 * 54 - - COUNT( * ) * - + COUNT( * ) * + COUNT( * ) - MIN( 11 )
----
-2766

skipif mysql # not compatible
query I rowsort label-5626
SELECT - 51 * 54 - - COUNT ( * ) * - + COUNT ( * ) * + COUNT ( * ) - MIN ( 11 )
----
-2766

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

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

query I rowsort
SELECT DISTINCT - + 8 * ( + - 89 ) + 54 AS col0
----
766

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5630
SELECT 76 + - + 40 + - + CASE - CASE 40 WHEN + + CASE + COUNT( * ) WHEN 97 * + COUNT( * ) THEN NULL WHEN - CASE 54 WHEN 3 THEN NULL ELSE 45 END THEN 91 + + ( 44 ) END THEN NULL WHEN + + 27 THEN 20 END WHEN + 90 * + + 32 + 33 + + 51 THEN 66 ELSE + + 29 DIV COUNT( * ) * 42 END * 94 * 46
----
-5266596

skipif mysql # not compatible
query I rowsort label-5630
SELECT 76 + - + 40 + - + CASE - CASE 40 WHEN + + CASE + COUNT ( * ) WHEN 97 * + COUNT ( * ) THEN NULL WHEN - CASE 54 WHEN 3 THEN NULL ELSE 45 END THEN 91 + + ( 44 ) END THEN NULL WHEN + + 27 THEN 20 END WHEN + 90 * + + 32 + 33 + + 51 THEN 66 ELSE + + 29 / COUNT ( * ) * 42 END * 94 * 46
----
-5266596

query I rowsort
SELECT + COALESCE ( + 23, - 30 + ( + - ( 74 ) ), 87 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT - 10 + COUNT( * ) * 90 - - 72 + - 27 * - 8
----
368

skipif mysql # not compatible
query I rowsort label-5632
SELECT - 10 + COUNT ( * ) * 90 - - 72 + - 27 * - 8
----
368

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL + SUM( DISTINCT + + 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL + SUM ( DISTINCT + + 99 ) AS col0
----
99

query II rowsort
SELECT ALL + 25 AS col2, + 40
----
25
40

query II rowsort
SELECT + - 56 AS col0, 32 col1
----
-56
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5636
SELECT - CASE - 22 WHEN - + 53 * + 10 * + - COUNT( * ) + - 1 + - - 33 + + 9 + - 36 * + 41 + + - COUNT( * ) + - COUNT( * ) * - + 96 THEN NULL WHEN + CAST( NULL AS SIGNED ) - + - CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) THEN + 2 END - - NULLIF ( CASE - ( - + 65 ) WHEN COUNT( * ) THEN COALESCE ( + - 88, + - 34 * NULLIF ( 65 + 87, + ( ( + COUNT( * ) ) ) ) ) - + CASE - COUNT( * ) WHEN 83 THEN 99 END WHEN + 39 * 75 THEN NULL ELSE NULL END, - 73 / 96 + COUNT( * ) * 43 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5636
SELECT - CASE - 22 WHEN - + 53 * + 10 * + - COUNT ( * ) + - 1 + - - 33 + + 9 + - 36 * + 41 + + - COUNT ( * ) + - COUNT ( * ) * - + 96 THEN NULL WHEN + CAST ( NULL AS INTEGER ) - + - CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) THEN + 2 END - - NULLIF ( CASE - ( - + 65 ) WHEN COUNT ( * ) THEN COALESCE ( + - 88, + - 34 * NULLIF ( 65 + 87, + ( ( + COUNT ( * ) ) ) ) ) - + CASE - COUNT ( * ) WHEN 83 THEN 99 END WHEN + 39 * 75 THEN NULL ELSE NULL END, - 73 / 96 + COUNT ( * ) * 43 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT DISTINCT - 83 * MIN( DISTINCT + + ( - 52 ) ) - - + 56 AS col2
----
4372

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT - 83 * MIN ( DISTINCT + + ( - 52 ) ) - - + 56 AS col2
----
4372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5638
SELECT ALL - 61 DIV - COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL - 61 / - COUNT ( * ) AS col2
----
61

query II rowsort
SELECT + 2 AS col2, + 23
----
2
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5640
SELECT ALL + 66, MAX( + 16 ) * ( + COUNT( * ) ) * 13 AS col1
----
66
208

skipif mysql # not compatible
query II rowsort label-5640
SELECT ALL + 66, MAX ( + 16 ) * ( + COUNT ( * ) ) * 13 AS col1
----
66
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5641
SELECT - 83 DIV + NULLIF ( COUNT( * ), + NULLIF ( + 76, + + 30 * + COALESCE ( COUNT( * ), - COALESCE ( + 43, COALESCE ( 18, 94 ) ), + COUNT( * ), - - COALESCE ( - + COUNT( * ), - 61 + - + NULLIF ( 68, - + CAST( NULL AS SIGNED ) ) ) * - COUNT( * ) + + 29 + 25 ) ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-5641
SELECT - 83 / + NULLIF ( COUNT ( * ), + NULLIF ( + 76, + + 30 * + COALESCE ( COUNT ( * ), - COALESCE ( + 43, COALESCE ( 18, 94 ) ), + COUNT ( * ), - - COALESCE ( - + COUNT ( * ), - 61 + - + NULLIF ( 68, - + CAST ( NULL AS INTEGER ) ) ) * - COUNT ( * ) + + 29 + 25 ) ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5642
SELECT ALL - COUNT( * ) DIV + COUNT( ALL - + 52 ) AS col2
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT MAX( 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5643
SELECT MAX ( 11 ) AS col2
----
11

query I rowsort
SELECT ALL 49 col1
----
49

query I rowsort
SELECT - 41 * + 49
----
-2009

query I rowsort
SELECT - NULLIF ( - + 36, - 54 )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5647
SELECT ALL 6 AS col2, - SUM( - 72 ) + + + COUNT( * ) AS col2
----
6
73

skipif mysql # not compatible
query II rowsort label-5647
SELECT ALL 6 AS col2, - SUM ( - 72 ) + + + COUNT ( * ) AS col2
----
6
73

query II rowsort
SELECT ALL 58 AS col1, - 82 AS col2
----
58
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT - MAX( - 0 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5649
SELECT - MAX ( - 0 ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5650
SELECT + 93 DIV + 57
----
1

skipif mysql # not compatible
query I rowsort label-5650
SELECT + 93 / + 57
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT 40 + + + 57 + 18 * - - COUNT( * ) - + + 37 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT 40 + + + 57 + 18 * - - COUNT ( * ) - + + 37 AS col0
----
78

query I rowsort
SELECT DISTINCT ( 7 ) + + - 99
----
-92

query I rowsort
SELECT ALL 69 + 3 AS col0
----
72

query I rowsort
SELECT ALL 45 + - - 73 AS col1
----
118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5655
SELECT + COUNT( 65 ) + - + CAST( NULL AS DECIMAL ) + + 69 * - + CASE - 35 WHEN - 97 * 61 THEN - - 80 * + COALESCE ( + + 27, + 24 ) + - - MAX( DISTINCT - COALESCE ( + 52, + 17 ) ) WHEN + 2 / - 75 THEN - COUNT( * ) END + + 33 * + 54 AS col2, COALESCE ( - 31, - COUNT( * ), - + 6 * 79 - COUNT( * ) + 55 ) AS col1
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-5655
SELECT + COUNT ( 65 ) + - + CAST ( NULL AS REAL ) + + 69 * - + CASE - 35 WHEN - 97 * 61 THEN - - 80 * + COALESCE ( + + 27, + 24 ) + - - MAX ( DISTINCT - COALESCE ( + 52, + 17 ) ) WHEN + 2 / - 75 THEN - COUNT ( * ) END + + 33 * + 54 AS col2, COALESCE ( - 31, - COUNT ( * ), - + 6 * 79 - COUNT ( * ) + 55 ) AS col1
----
NULL
-31

query II rowsort
SELECT ALL - ( + 85 ) AS col0, + 14 + + - 34
----
-85
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5657
SELECT + - MAX( - - 36 ) + CAST( NULL AS SIGNED ) * - 67 / - - COALESCE ( - 34, SUM( DISTINCT + ( NULLIF ( 77, - + 62 ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT + - MAX ( - - 36 ) + CAST ( NULL AS INTEGER ) * - 67 / - - COALESCE ( - 34, SUM ( DISTINCT + ( NULLIF ( 77, - + 62 ) ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5658
SELECT ALL - ( + CAST( + + CAST( - 80 AS DECIMAL ) AS SIGNED ) ) * + - 47 AS col0
----
-3760

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL - ( + CAST ( + + CAST ( - 80 AS REAL ) AS INTEGER ) ) * + - 47 AS col0
----
-3760

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5660
SELECT ALL - 9 DIV + 90 * - CAST( + + 74 AS SIGNED ) - - 34 col1
----
34

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL - 9 / + 90 * - CAST ( + + 74 AS INTEGER ) - - 34 col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5661
SELECT - 35 / - + COUNT( + + 5 ) * ( + 34 ) * + CAST( NULL AS SIGNED ) - NULLIF ( + - 80, - 71 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT - 35 / - + COUNT ( + + 5 ) * ( + 34 ) * + CAST ( NULL AS INTEGER ) - NULLIF ( + - 80, - 71 ) col2
----
NULL

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

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

query I rowsort
SELECT - 85 + 74
----
-11

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5665
SELECT - 99 + + 36 * 2 * + 8 DIV COUNT( * ) col0
----
477

skipif mysql # not compatible
query I rowsort label-5665
SELECT - 99 + + 36 * 2 * + 8 / COUNT ( * ) col0
----
477

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

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

query II rowsort
SELECT + ( + + 58 ) AS col2, 86
----
58
86

query I rowsort
SELECT - - 70 * 26
----
1820

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5670
SELECT - NULLIF ( + - SUM( 23 ), COALESCE ( + 54, + + COALESCE ( - - 19, - 39 * + 93 * + 9 - CAST( NULL AS SIGNED ) + + 77, 65 + - 2 ) * CASE 76 WHEN + 42 THEN + 7 END * + + 98 + + 13 + + - ( COALESCE ( 66, NULLIF ( - 79, 88 / 95 + - 96 / + 90 ) - + 73 * 61, - COUNT( * ) + 38 ) ) ) ) col1
----
23

skipif mysql # not compatible
query I rowsort label-5670
SELECT - NULLIF ( + - SUM ( 23 ), COALESCE ( + 54, + + COALESCE ( - - 19, - 39 * + 93 * + 9 - CAST ( NULL AS INTEGER ) + + 77, 65 + - 2 ) * CASE 76 WHEN + 42 THEN + 7 END * + + 98 + + 13 + + - ( COALESCE ( 66, NULLIF ( - 79, 88 / 95 + - 96 / + 90 ) - + 73 * 61, - COUNT ( * ) + 38 ) ) ) ) col1
----
23

query II rowsort
SELECT + 19 AS col1, + 88 AS col0
----
19
88

query I rowsort
SELECT ALL + - 13 AS col1
----
-13

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

query I rowsort
SELECT ALL - + 38 * 99 col1
----
-3762

query I rowsort
SELECT 33 col2
----
33

query I rowsort
SELECT + - 9
----
-9

query I rowsort
SELECT - 60 + + + 66 AS col1
----
6

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

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

query I rowsort
SELECT - 77 * - - COALESCE ( - + 70, + 5 )
----
5390

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5681
SELECT - COUNT( DISTINCT NULLIF ( + 49, - - 35 ) ) - - - 42 + + ( - CAST( NULL AS SIGNED ) ) * 65 + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT - COUNT ( DISTINCT NULLIF ( + 49, - - 35 ) ) - - - 42 + + ( - CAST ( NULL AS INTEGER ) ) * 65 + 6 AS col0
----
NULL

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

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

query II rowsort
SELECT + 47 * + 95 col1, 50
----
4465
50

query II rowsort
SELECT - 18 + - 14 AS col2, 48
----
-32
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5685
SELECT - COALESCE ( - 24, + 80, 61 DIV - - 82 * 18 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5685
SELECT - COALESCE ( - 24, + 80, 61 / - - 82 * 18 ) AS col1
----
24

query I rowsort
SELECT ALL - 87 * - + 48 + - - 29
----
4205

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5688
SELECT ALL 19 * - CASE + - COUNT( * ) WHEN 40 THEN NULL WHEN - - CAST( NULL AS SIGNED ) * + - 1 THEN + 39 ELSE 27 + - MIN( DISTINCT 13 ) END + 36 + 70 - - 69 * + COUNT( * ) * 20 + + 83 AS col0
----
1303

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL 19 * - CASE + - COUNT ( * ) WHEN 40 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) * + - 1 THEN + 39 ELSE 27 + - MIN ( DISTINCT 13 ) END + 36 + 70 - - 69 * + COUNT ( * ) * 20 + + 83 AS col0
----
1303

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5689
SELECT - 11 + 93 AS col2, 96 * - 65 + - - ( CAST( NULL AS SIGNED ) ) + + 15 / - 75 + + 77 + - + 44
----
82
NULL

skipif mysql # not compatible
query II rowsort label-5689
SELECT - 11 + 93 AS col2, 96 * - 65 + - - ( CAST ( NULL AS INTEGER ) ) + + 15 / - 75 + + 77 + - + 44
----
82
NULL

query I rowsort
SELECT DISTINCT 23 * + 73 col2
----
1679

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5692
SELECT ALL 99 * + - ( - - CASE - - MIN( + 34 ) WHEN - 10 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN 95 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL 99 * + - ( - - CASE - - MIN ( + 34 ) WHEN - 10 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN 95 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT ALL + ( + + COUNT( * ) ) + 35 - + 44
----
-8

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL + ( + + COUNT ( * ) ) + 35 - + 44
----
-8

query II rowsort
SELECT DISTINCT - 10 * 14 AS col1, + 2 * + 11 + - - 1 + 60
----
-140
83

query I rowsort
SELECT + 40 + 49
----
89

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

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

query I rowsort
SELECT ALL 63 * - + 69
----
-4347

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

skipif mysql # not compatible
query I rowsort label-5698
SELECT - MIN ( + 35 )
----
-35

query I rowsort
SELECT + ( - 45 ) + - + 0 * + - 95
----
-45

query I rowsort
SELECT - 6 AS col2
----
-6

query I rowsort
SELECT + 3 + 75 + - 60 * 3
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT + 42 * COUNT( * ) * 41
----
1722

skipif mysql # not compatible
query I rowsort label-5702
SELECT + 42 * COUNT ( * ) * 41
----
1722

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT ALL - + 75 * + MIN( 1 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL - + 75 * + MIN ( 1 ) AS col1
----
-75

query I rowsort
SELECT ALL COALESCE ( - 5, - + 24, + 55 * + 36 + + + 98 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5705
SELECT + 69 + + - COALESCE ( + 96, - - ( + - 69 ) + - 0 - - 55, - - 45 DIV - + 41 + + 62 + 58 + + SUM( ALL - + 22 ) * + 78 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-5705
SELECT + 69 + + - COALESCE ( + 96, - - ( + - 69 ) + - 0 - - 55, - - 45 / - + 41 + + 62 + 58 + + SUM ( ALL - + 22 ) * + 78 ) AS col1
----
-27

query I rowsort
SELECT ALL + 54 * + 23
----
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT DISTINCT - 38 * - 86 * COALESCE ( + NULLIF ( - MIN( DISTINCT - + 56 ), 64 ), - ( - - COALESCE ( + 6, + + 86 + - COUNT( * ) ) ) + 46 - - - 62 ) col2
----
183008

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT - 38 * - 86 * COALESCE ( + NULLIF ( - MIN ( DISTINCT - + 56 ), 64 ), - ( - - COALESCE ( + 6, + + 86 + - COUNT ( * ) ) ) + 46 - - - 62 ) col2
----
183008

query I rowsort
SELECT + COALESCE ( - 79, - 37 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT DISTINCT + CASE 72 WHEN - ( + 71 ) THEN - - 70 * - COALESCE ( + 43, - - COUNT( * ) * - 20 ) + 58 ELSE NULL END * 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT + CASE 72 WHEN - ( + 71 ) THEN - - 70 * - COALESCE ( + 43, - - COUNT ( * ) * - 20 ) + 58 ELSE NULL END * 16 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 37 AS col2
----
-37

query II rowsort
SELECT ALL 42 * + 77 AS col2, NULLIF ( - - 47, + ( - 4 ) ) + - 77
----
3234
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT - + 3 DIV + 83 + + - 91 * + 77
----
-7007

skipif mysql # not compatible
query I rowsort label-5712
SELECT - + 3 / + 83 + + - 91 * + 77
----
-7007

query I rowsort
SELECT + 94 + + + 89 AS col0
----
183

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

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

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

query I rowsort
SELECT - - 89 * + + 48 * - + 17 + + - 91 + 46 + + 53 + + 9 * - - 4 col2
----
-72580

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

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

query I rowsort
SELECT 30 * + - ( + ( 49 ) ) AS col2
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT COUNT( * ) * + + 12 * MIN( - + 89 )
----
-1068

skipif mysql # not compatible
query I rowsort label-5719
SELECT COUNT ( * ) * + + 12 * MIN ( - + 89 )
----
-1068

query I rowsort
SELECT 59 * 70 + + - 57 AS col0
----
4073

onlyif mysql # aggregate syntax: 
query II rowsort label-5721
SELECT 15 AS col0, + 42 * + COALESCE ( + COUNT( * ), + + 13, + 13 ) AS col1
----
15
42

skipif mysql # not compatible
query II rowsort label-5721
SELECT 15 AS col0, + 42 * + COALESCE ( + COUNT ( * ), + + 13, + 13 ) AS col1
----
15
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5722
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - CAST ( NULL AS REAL ) + + 89 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( + + 45 ) + + 65
----
110

query I rowsort
SELECT ALL - 96 + - 80
----
-176

query I rowsort
SELECT DISTINCT + 78 + 52 + - 5
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT ALL + 69 * - - 26 * + 40 AS col1, COUNT( * ) * - + 72 + + 20 * + 24 AS col1
----
71760
408

skipif mysql # not compatible
query II rowsort label-5726
SELECT ALL + 69 * - - 26 * + 40 AS col1, COUNT ( * ) * - + 72 + + 20 * + 24 AS col1
----
71760
408

query I rowsort
SELECT 45 * - - 20 AS col1
----
900

onlyif mysql # aggregate syntax: 
query II rowsort label-5728
SELECT 23, 76 * - MIN( ( - 36 ) ) AS col1
----
23
2736

skipif mysql # not compatible
query II rowsort label-5728
SELECT 23, 76 * - MIN ( ( - 36 ) ) AS col1
----
23
2736

onlyif mysql # DIV for integer division: 
query I rowsort label-5729
SELECT 26 - ( - 32 ) + - 19 DIV 61 - 25 + + 45
----
78

skipif mysql # not compatible
query I rowsort label-5729
SELECT 26 - ( - 32 ) + - 19 / 61 - 25 + + 45
----
78

query II rowsort
SELECT - 67 AS col2, 70
----
-67
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5731
SELECT 35 DIV - 99 DIV NULLIF ( 79, + - COUNT( * ) ) * + 98 + + COUNT( * ) * 24 col1
----
24

skipif mysql # not compatible
query I rowsort label-5731
SELECT 35 / - 99 / NULLIF ( 79, + - COUNT ( * ) ) * + 98 + + COUNT ( * ) * 24 col1
----
24

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

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

query I rowsort
SELECT DISTINCT + 52 - - 66
----
118

query II rowsort
SELECT - 77 AS col0, - 48
----
-77
-48

query I rowsort
SELECT ALL + 34 - + 32 col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5736
SELECT ALL CASE COUNT( * ) WHEN + COALESCE ( COUNT( * ), + ( + ( - - 44 ) ) + + 35 * - CAST( CAST( - 88 AS DECIMAL ) AS SIGNED ), + 20 ) THEN + 3 WHEN + 33 + + CASE + - 3 WHEN + CAST( + - 10 AS DECIMAL ) + - 75 THEN - - CAST( + 40 AS SIGNED ) * - 27 / + 50 * + - CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) * + 3 WHEN - - 46 THEN ( CASE - ( COUNT( * ) ) WHEN 65 THEN + 65 * + 12 - + CASE 29 WHEN + 83 THEN 52 * NULLIF ( 80 / + 83, - SUM( ALL 14 ) * - 38 ) WHEN CASE - 43 WHEN - 85 * 79 THEN COUNT( * ) * 64 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE 88 END / + 49 THEN NULL ELSE NULL END * 19 ELSE NULL END ) - - COUNT( * ) / 97 ELSE 93 END / - 17 THEN NULL ELSE 12 END AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL CASE COUNT ( * ) WHEN + COALESCE ( COUNT ( * ), + ( + ( - - 44 ) ) + + 35 * - CAST ( CAST ( - 88 AS REAL ) AS INTEGER ), + 20 ) THEN + 3 WHEN + 33 + + CASE + - 3 WHEN + CAST ( + - 10 AS REAL ) + - 75 THEN - - CAST ( + 40 AS INTEGER ) * - 27 / + 50 * + - CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) * + 3 WHEN - - 46 THEN ( CASE - ( COUNT ( * ) ) WHEN 65 THEN + 65 * + 12 - + CASE 29 WHEN + 83 THEN 52 * NULLIF ( 80 / + 83, - SUM ( ALL 14 ) * - 38 ) WHEN CASE - 43 WHEN - 85 * 79 THEN COUNT ( * ) * 64 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE 88 END / + 49 THEN NULL ELSE NULL END * 19 ELSE NULL END ) - - COUNT ( * ) / 97 ELSE 93 END / - 17 THEN NULL ELSE 12 END AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5737
SELECT ALL - COALESCE ( - - 83, 4 - - + CAST( + - 66 AS SIGNED ) * + 14, + 49 ) * COALESCE ( + 31, - 80 )
----
-2573

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL - COALESCE ( - - 83, 4 - - + CAST ( + - 66 AS INTEGER ) * + 14, + 49 ) * COALESCE ( + 31, - 80 )
----
-2573

query I rowsort
SELECT - 63 * - 60 + + ( 44 ) AS col2
----
3824

query I rowsort
SELECT ALL - 98 * + 53
----
-5194

query I rowsort
SELECT - 20 + 76
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5741
SELECT 20 - + - 1 + - - 78, - ( - 16 ) * - + 55 + - + COUNT( * ) DIV + 28 * - + 9 AS col0
----
99
-880

skipif mysql # not compatible
query II rowsort label-5741
SELECT 20 - + - 1 + - - 78, - ( - 16 ) * - + 55 + - + COUNT ( * ) / + 28 * - + 9 AS col0
----
99
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT DISTINCT + + MIN( DISTINCT + 44 ) * - 95 + - 27 * + - 96 + - - 27 col1
----
-1561

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT + + MIN ( DISTINCT + 44 ) * - 95 + - 27 * + - 96 + - - 27 col1
----
-1561

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

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

query I rowsort
SELECT - 43 * 33
----
-1419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5745
SELECT + COUNT( * ) * 72 + - + CAST( 29 AS SIGNED ) * MAX( ALL - CAST( + 79 AS SIGNED ) ) + - 81 + - ( - COALESCE ( + 19, + 16 * + CAST( + COUNT( * ) AS SIGNED ) * - CASE AVG ( ( + 67 ) ) WHEN - - CAST( - - 91 AS DECIMAL ) - - + 66 THEN + COALESCE ( + - 79, + 93, + 88 ) END * COUNT( * ) + ( 86 ) * - COALESCE ( ( + 39 ), 83 * - 27 ), COUNT( DISTINCT 64 ) * 58 ) )
----
2301

skipif mysql # not compatible
query I rowsort label-5745
SELECT + COUNT ( * ) * 72 + - + CAST ( 29 AS INTEGER ) * MAX ( ALL - CAST ( + 79 AS INTEGER ) ) + - 81 + - ( - COALESCE ( + 19, + 16 * + CAST ( + COUNT ( * ) AS INTEGER ) * - CASE AVG ( ( + 67 ) ) WHEN - - CAST ( - - 91 AS REAL ) - - + 66 THEN + COALESCE ( + - 79, + 93, + 88 ) END * COUNT ( * ) + ( 86 ) * - COALESCE ( ( + 39 ), 83 * - 27 ), COUNT ( DISTINCT 64 ) * 58 ) )
----
2301

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5746
SELECT ALL 58 col2, 25 DIV - - 55 * 60 DIV NULLIF ( - 39, + 29 ) + + COUNT( - + 77 ) - + 59 DIV + COUNT( * )
----
58
-58

skipif mysql # not compatible
query II rowsort label-5746
SELECT ALL 58 col2, 25 / - - 55 * 60 / NULLIF ( - 39, + 29 ) + + COUNT ( - + 77 ) - + 59 / + COUNT ( * )
----
58
-58

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

skipif mysql # not compatible
query II rowsort label-5747
SELECT - 70, CAST ( NULL AS INTEGER ) AS col2
----
-70
NULL

query I rowsort
SELECT DISTINCT + + 5 * - 74
----
-370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5749
SELECT - ( SUM( DISTINCT COALESCE ( 87, - 57 ) ) ) DIV ( 84 ) + + 94 + + + 18 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-5749
SELECT - ( SUM ( DISTINCT COALESCE ( 87, - 57 ) ) ) / ( 84 ) + + 94 + + + 18 AS col2
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5750
SELECT DISTINCT + - COUNT( ALL 94 ) + - + 45 * + 40 - - CAST( NULL AS SIGNED ) + CASE - ( - 27 ) WHEN + CAST( NULL AS SIGNED ) + + 55 THEN NULL WHEN 82 + 76 + - - 41 THEN + - MIN( + - 95 ) ELSE NULL END + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT + - COUNT ( ALL 94 ) + - + 45 * + 40 - - CAST ( NULL AS INTEGER ) + CASE - ( - 27 ) WHEN + CAST ( NULL AS INTEGER ) + + 55 THEN NULL WHEN 82 + 76 + - - 41 THEN + - MIN ( + - 95 ) ELSE NULL END + + 38
----
NULL

query I rowsort
SELECT DISTINCT - 49 + 44 + + 73
----
68

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5753
SELECT ALL 75 + + - COUNT( ALL - CAST( 50 AS DECIMAL ) )
----
74

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL 75 + + - COUNT ( ALL - CAST ( 50 AS REAL ) )
----
74

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5755
SELECT 9 DIV 82 + + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5755
SELECT 9 / 82 + + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT DISTINCT ( + - 20 ) + - 70 + COUNT( * ) * + - COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT ( + - 20 ) + - 70 + COUNT ( * ) * + - COUNT ( * ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT DISTINCT MAX( ALL - CASE - 98 WHEN + - 73 THEN - + ( - 24 ) WHEN + 66 THEN NULL END ) + - + AVG ( DISTINCT 50 ) * + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT MAX ( ALL - CASE - 98 WHEN + - 73 THEN - + ( - 24 ) WHEN + 66 THEN NULL END ) + - + AVG ( DISTINCT 50 ) * + - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT COUNT( + - 93 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5758
SELECT COUNT ( + - 93 ) col2
----
1

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

skipif mysql # not compatible
query I rowsort label-5759
SELECT MIN ( + + CAST ( 78 AS INTEGER ) )
----
78

query I rowsort
SELECT DISTINCT ( - 86 ) + + 68
----
-18

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5762
SELECT 45 DIV - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5762
SELECT 45 / - 55 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT - 36 * + COUNT( + + 95 ) + + - 30 + + - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5764
SELECT - 36 * + COUNT ( + + 95 ) + + - 30 + + - COUNT ( * ) AS col2
----
-67

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

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

query I rowsort
SELECT 70 + - - 92
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT ALL + COALESCE ( - - 89, - MAX( DISTINCT + 94 ) + - 31 * 76 * - + 71 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL + COALESCE ( - - 89, - MAX ( DISTINCT + 94 ) + - 31 * 76 * - + 71 ) AS col0
----
89

query I rowsort
SELECT - + 24 + + 70
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5770
SELECT DISTINCT + 60 * + COUNT( - ( - CAST( + 16 AS SIGNED ) ) ) * - - 61 AS col1
----
3660

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT + 60 * + COUNT ( - ( - CAST ( + 16 AS INTEGER ) ) ) * - - 61 AS col1
----
3660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5771
SELECT - 60 / - 78 * COUNT( * ) / + CAST( NULL AS SIGNED ), + 76 * - 23 + - NULLIF ( 8, - 11 ) AS col2
----
NULL
-1756

skipif mysql # not compatible
query II rowsort label-5771
SELECT - 60 / - 78 * COUNT ( * ) / + CAST ( NULL AS INTEGER ), + 76 * - 23 + - NULLIF ( 8, - 11 ) AS col2
----
NULL
-1756

query I rowsort
SELECT ALL + + 7 * 45 AS col2
----
315

onlyif mysql # DIV for integer division: 
query I rowsort label-5773
SELECT - + 72 DIV - 74 + 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5773
SELECT - + 72 / - 74 + 49 AS col2
----
49

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

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

query I rowsort
SELECT DISTINCT + - 3 + - 50
----
-53

query I rowsort
SELECT ALL - - 32 * 54
----
1728

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5778
SELECT - + 73 DIV - 57
----
1

skipif mysql # not compatible
query I rowsort label-5778
SELECT - + 73 / - 57
----
1

query I rowsort
SELECT - - 38 AS col2
----
38

query I rowsort
SELECT - - 45 + + 85
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT COUNT( ALL + 82 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5781
SELECT COUNT ( ALL + 82 ) AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT DISTINCT + COUNT( * ) * - 52 * - + 35 + + 2
----
1822

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT + COUNT ( * ) * - 52 * - + 35 + + 2
----
1822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5784
SELECT DISTINCT - 28 * - CAST( NULL AS SIGNED ) + - - 59 * + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT - 28 * - CAST ( NULL AS INTEGER ) + - - 59 * + + 4
----
NULL

query I rowsort
SELECT + 88 + - + 18 AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5786
SELECT + NULLIF ( - COUNT( * ), 73 ) * + + CAST( + + 60 AS SIGNED ) DIV + 24 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5786
SELECT + NULLIF ( - COUNT ( * ), 73 ) * + + CAST ( + + 60 AS INTEGER ) / + 24 AS col1
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT NULLIF ( + ( 53 ), - + COUNT( * ) - 15 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5788
SELECT NULLIF ( + ( 53 ), - + COUNT ( * ) - 15 ) AS col1
----
53

query I rowsort
SELECT + 34 + - 40 + + + 41 * - ( - 97 ) * 67
----
266453

query I rowsort
SELECT ALL 88 * + 89 - ( 46 ) * + 99 + + 76 AS col2
----
3354

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT + MIN( - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5791
SELECT + MIN ( - 10 ) AS col1
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT + COUNT( * ) * 41 * + 41 * - + COUNT( * )
----
-1681

skipif mysql # not compatible
query I rowsort label-5793
SELECT + COUNT ( * ) * 41 * + 41 * - + COUNT ( * )
----
-1681

query I rowsort
SELECT + 81 * + 31
----
2511

query I rowsort
SELECT ALL 25 * - + 66 * + + ( + - NULLIF ( - + 93, 24 ) ) - 66 * + + ( - 76 ) * + ( - 27 )
----
-288882

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL + COUNT( - + ( 15 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL + COUNT ( - + ( 15 ) ) AS col0
----
1

query II rowsort
SELECT DISTINCT + + 1, 32 AS col2
----
1
32

query I rowsort
SELECT + 49 * + 95
----
4655

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT ALL + NULLIF ( + 12, 36 ) + - COALESCE ( - MAX( DISTINCT 76 ), - + 85 ) + - 69 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL + NULLIF ( + 12, 36 ) + - COALESCE ( - MAX ( DISTINCT 76 ), - + 85 ) + - 69 AS col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-5801
SELECT + COUNT( * ) - - 44 - - - 13 AS col0, 1 col2
----
32
1

skipif mysql # not compatible
query II rowsort label-5801
SELECT + COUNT ( * ) - - 44 - - - 13 AS col0, 1 col2
----
32
1

query II rowsort
SELECT DISTINCT - 15 * + + 60 * - 66 AS col1, + 10 - + 58 col2
----
59400
-48

query I rowsort
SELECT ALL + 57 + - 64
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5804
SELECT + 38 - 21 - 10 + - - COUNT( * ) * - 6 * - - 17 AS col0, 40 - - 66
----
-95
106

skipif mysql # not compatible
query II rowsort label-5804
SELECT + 38 - 21 - 10 + - - COUNT ( * ) * - 6 * - - 17 AS col0, 40 - - 66
----
-95
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL - + ( + - COUNT( * ) ) + + 93 + - 26 * ( - MAX( DISTINCT + + 73 ) ) AS col2
----
1992

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL - + ( + - COUNT ( * ) ) + + 93 + - 26 * ( - MAX ( DISTINCT + + 73 ) ) AS col2
----
1992

query I rowsort
SELECT DISTINCT COALESCE ( + - 11, - + 58 + - 81 * + + 9 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT + COUNT( * ) + + 49
----
50

skipif mysql # not compatible
query I rowsort label-5807
SELECT + COUNT ( * ) + + 49
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT SUM( - 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-5808
SELECT SUM ( - 29 ) AS col2
----
-29

query I rowsort
SELECT ALL - + 38 + + - 50
----
-88

query I rowsort
SELECT + - 16 + - 54
----
-70

query II rowsort
SELECT - - NULLIF ( - 33, - 55 * + 27 + - 81 + 62 * 60 ) - - 85, 75 AS col0
----
52
75

query I rowsort
SELECT + + 41 + - 61 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT - COUNT( - 98 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5813
SELECT - COUNT ( - 98 ) AS col1
----
-1

query I rowsort
SELECT - 95 * - 49 AS col2
----
4655

onlyif mysql # DIV for integer division: 
query I rowsort label-5815
SELECT ALL - 37 DIV 79 * - 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL - 37 / 79 * - 18 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT ALL + 83 - + 1 DIV + + 72 - - - 36 col2
----
47

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL + 83 - + 1 / + + 72 - - - 36 col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-5817
SELECT - COUNT( * ) DIV + 30 + + 48 + - - 30 + - + 90 * NULLIF ( + 86, 81 ) + + + 9 + + 27 * - NULLIF ( 39, + CAST( + + 89 AS DECIMAL ) ) AS col0, + CAST( NULL AS SIGNED ) col0
----
-8706
NULL

skipif mysql # not compatible
query II rowsort label-5817
SELECT - COUNT ( * ) / + 30 + + 48 + - - 30 + - + 90 * NULLIF ( + 86, 81 ) + + + 9 + + 27 * - NULLIF ( 39, + CAST ( + + 89 AS REAL ) ) AS col0, + CAST ( NULL AS INTEGER ) col0
----
-8706
NULL

query I rowsort
SELECT - 47 + - 83 AS col2
----
-130

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

query I rowsort
SELECT ALL - ( - - 12 ) * + - 74 AS col1
----
888

query I rowsort
SELECT - 35 * 13 AS col2
----
-455

query I rowsort
SELECT + CASE + 22 WHEN - - 30 + - 32 THEN NULL WHEN + + 91 + 33 + 26 THEN + - ( 33 ) ELSE + - 54 END AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL - 47 * - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL - 47 * - COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT - 5 * + 43 * 98 / - 41 * + CASE - MAX( + 25 ) WHEN - COUNT( * ) THEN - + 89 WHEN - COALESCE ( ( + 62 ), - 10, 35 ) + - - ( 82 ) * + 49 * + 60 THEN 98 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT - 5 * + 43 * 98 / - 41 * + CASE - MAX ( + 25 ) WHEN - COUNT ( * ) THEN - + 89 WHEN - COALESCE ( ( + 62 ), - 10, 35 ) + - - ( 82 ) * + 49 * + 60 THEN 98 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 75 * 73 AS col1
----
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT DISTINCT + SUM( + - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT + SUM ( + - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT + SUM( ALL + + 73 ) col2
----
73

skipif mysql # not compatible
query I rowsort label-5827
SELECT + SUM ( ALL + + 73 ) col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5828
SELECT 70 - + 59 * 60 * + AVG ( - 41 ) + 39 * + CAST( NULL AS SIGNED ) / - COALESCE ( - - 85, - 36 + + MAX( - + 27 ) ) * - 34 + + 27 + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT 70 - + 59 * 60 * + AVG ( - 41 ) + 39 * + CAST ( NULL AS INTEGER ) / - COALESCE ( - - 85, - 36 + + MAX ( - + 27 ) ) * - 34 + + 27 + - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ALL - NULLIF ( - - ( - 67 ), - 99 * COUNT( * ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL - NULLIF ( - - ( - 67 ), - 99 * COUNT ( * ) ) AS col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5830
SELECT ALL 87 DIV - MIN( DISTINCT - NULLIF ( - 51, 99 ) ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL 87 / - MIN ( DISTINCT - NULLIF ( - 51, 99 ) ) * COUNT ( * ) AS col0
----
-1

query II rowsort
SELECT DISTINCT - 21 AS col0, + 47 AS col2
----
-21
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5832
SELECT ALL - ( + - 89 ) AS col0, + 3 - - ( + CAST( NULL AS DECIMAL ) ) AS col2
----
89
NULL

skipif mysql # not compatible
query II rowsort label-5832
SELECT ALL - ( + - 89 ) AS col0, + 3 - - ( + CAST ( NULL AS REAL ) ) AS col2
----
89
NULL

query I rowsort
SELECT 60 + + - 4
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5834
SELECT 26 - + CAST( + 22 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-5834
SELECT 26 - + CAST ( + 22 AS INTEGER )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5835
SELECT ALL 12 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL 12 / + 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT 75 DIV + 11 + + COALESCE ( 89, - 10 * + 96 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5836
SELECT 75 / + 11 + + COALESCE ( 89, - 10 * + 96 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL - 66 + MIN( - + 74 ) * + 27 + COUNT( * )
----
-2063

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL - 66 + MIN ( - + 74 ) * + 27 + COUNT ( * )
----
-2063

query I rowsort
SELECT DISTINCT + 8 + - - 16
----
24

query I rowsort
SELECT ALL + + ( 95 ) + - 31
----
64

query I rowsort
SELECT ALL 97 * - 62 + - - 17 + 27
----
-5970

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5842
SELECT ALL + ( 61 ) DIV - + 46 - - 83 * COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL + ( 61 ) / - + 46 - - 83 * COUNT ( * ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5843
SELECT + COUNT( * ) + - 14 AS col0, - 43 * + - COUNT( * ) + 75 AS col1
----
-13
118

skipif mysql # not compatible
query II rowsort label-5843
SELECT + COUNT ( * ) + - 14 AS col0, - 43 * + - COUNT ( * ) + 75 AS col1
----
-13
118

query II rowsort
SELECT - - 75 AS col1, - 69
----
75
-69

query II rowsort
SELECT 57, - 20 AS col2
----
57
-20

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

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT COUNT ( * ) + - 10 col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5847
SELECT 19 AS col0, MIN( ALL + + NULLIF ( + 7, + CAST( NULL AS DECIMAL ) ) ) + + ( 29 )
----
19
36

skipif mysql # not compatible
query II rowsort label-5847
SELECT 19 AS col0, MIN ( ALL + + NULLIF ( + 7, + CAST ( NULL AS REAL ) ) ) + + ( 29 )
----
19
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT - NULLIF ( MAX( - 48 ), 77 * + 16 )
----
48

skipif mysql # not compatible
query I rowsort label-5848
SELECT - NULLIF ( MAX ( - 48 ), 77 * + 16 )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5849
SELECT 67 + + MAX( + 58 ) * 43 DIV - 74 + + - 20 + + 79 col0
----
93

skipif mysql # not compatible
query I rowsort label-5849
SELECT 67 + + MAX ( + 58 ) * 43 / - 74 + + - 20 + + 79 col0
----
93

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5852
SELECT DISTINCT + 32 - - CAST( - ( + 59 ) AS SIGNED ) - + COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT + 32 - - CAST ( - ( + 59 ) AS INTEGER ) - + COUNT ( * ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL - 51 * CASE - ( 33 ) WHEN - 8 THEN - 25 + - + 67 WHEN + 96 / + - MIN( DISTINCT + 14 ) THEN + - 90 + 51 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL - 51 * CASE - ( 33 ) WHEN - 8 THEN - 25 + - + 67 WHEN + 96 / + - MIN ( DISTINCT + 14 ) THEN + - 90 + 51 END AS col1
----
NULL

query I rowsort
SELECT 39 * - 56
----
-2184

query I rowsort
SELECT ALL 30 col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5856
SELECT COUNT( * ) - + - NULLIF ( - 63, + 59 * 52 / - AVG ( DISTINCT + 8 ) + + 81 + 53 + COUNT( * ) + 51 + - 28 ) AS col0, 8
----
-62
8

skipif mysql # not compatible
query II rowsort label-5856
SELECT COUNT ( * ) - + - NULLIF ( - 63, + 59 * 52 / - AVG ( DISTINCT + 8 ) + + 81 + 53 + COUNT ( * ) + 51 + - 28 ) AS col0, 8
----
-62
8

query I rowsort
SELECT 64 * 42 * + 48 AS col0
----
129024

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

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

query I rowsort
SELECT ALL - NULLIF ( - - ( - 45 ), - 71 * - 73 )
----
45

query I rowsort
SELECT DISTINCT - 93 AS col0
----
-93

query I rowsort
SELECT 64 * - - 99 * + 15 AS col0
----
95040

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5863
SELECT 80 + - + CASE + 97 WHEN + CASE + 97 WHEN - 98 - 93 THEN + 48 END THEN - + 30 WHEN + SUM( - 54 ) * + - 2 / + - CAST( NULL AS DECIMAL ) THEN + 71 + 26 WHEN + 24 THEN NULL ELSE NULL END + + - COALESCE ( + - 86, 30 * - 66 ) * + 54 * + 5 * COALESCE ( + COALESCE ( - + 23, - ( - 29 ) + + - COUNT( * ) ), + ( 15 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5863
SELECT 80 + - + CASE + 97 WHEN + CASE + 97 WHEN - 98 - 93 THEN + 48 END THEN - + 30 WHEN + SUM ( - 54 ) * + - 2 / + - CAST ( NULL AS REAL ) THEN + 71 + 26 WHEN + 24 THEN NULL ELSE NULL END + + - COALESCE ( + - 86, 30 * - 66 ) * + 54 * + 5 * COALESCE ( + COALESCE ( - + 23, - ( - 29 ) + + - COUNT ( * ) ), + ( 15 ) )
----
NULL

query I rowsort
SELECT 89 * + 76 AS col2
----
6764

onlyif mysql # DIV for integer division: 
query I rowsort label-5865
SELECT ALL - 44 + 47 DIV - 88 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL - 44 + 47 / - 88 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT DISTINCT + 89 * - - 33 * CASE + 26 WHEN - 56 THEN NULL WHEN + 90 THEN NULL ELSE COUNT( * ) * - 41 END * 50
----
-6020850

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT + 89 * - - 33 * CASE + 26 WHEN - 56 THEN NULL WHEN + 90 THEN NULL ELSE COUNT ( * ) * - 41 END * 50
----
-6020850

query I rowsort
SELECT - 23 * + 60 + 43 + - 11 AS col0
----
-1348

query I rowsort
SELECT - 71 * - + 6 + - + 75 AS col2
----
351

query I rowsort
SELECT 41 + 94 AS col2
----
135

query II rowsort
SELECT DISTINCT - - 88 + + + 96, - 11 * + - ( - 67 ) AS col2
----
184
-737

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

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

skipif mysql # not compatible
query II rowsort label-5872
SELECT COUNT ( * ) * + 84 col2, + ( - COUNT ( * ) )
----
84
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5874
SELECT DISTINCT - + CAST( 54 AS SIGNED ) + 93 + 54 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT - + CAST ( 54 AS INTEGER ) + 93 + 54 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT ALL - COUNT( * ) + - 10 col2
----
-11

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL - COUNT ( * ) + - 10 col2
----
-11

query I rowsort
SELECT ALL + + 46 + + 66 AS col0
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5877
SELECT + COUNT( * ) * - COUNT( * ) * + 92 * + - 12 - - 26 + - 92 - + 8 + + 78 * - 56 * + - 44 * + 70 * + 11 - + ( - 86 ) - 49 DIV + + 95
----
147988956

skipif mysql # not compatible
query I rowsort label-5877
SELECT + COUNT ( * ) * - COUNT ( * ) * + 92 * + - 12 - - 26 + - 92 - + 8 + + 78 * - 56 * + - 44 * + 70 * + 11 - + ( - 86 ) - 49 / + + 95
----
147988956

query I rowsort
SELECT 43 * - 77
----
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT 23 * COUNT( * ) * + 19 * 89
----
38893

skipif mysql # not compatible
query I rowsort label-5879
SELECT 23 * COUNT ( * ) * + 19 * 89
----
38893

query I rowsort
SELECT DISTINCT - 72 * + 14 + + 7 * - 39
----
-1281

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

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

query I rowsort
SELECT + 36 - + + 13
----
23

query I rowsort
SELECT - 45 * 85 + - 71 * + 61 col0
----
-8156

query I rowsort
SELECT DISTINCT + 11 * + 41 * - - 33 * 68 AS col2
----
1012044

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5885
SELECT 69, CAST( - 35 AS SIGNED ) * - ( CAST( NULL AS SIGNED ) ) - 41 * + 74 AS col0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-5885
SELECT 69, CAST ( - 35 AS INTEGER ) * - ( CAST ( NULL AS INTEGER ) ) - 41 * + 74 AS col0
----
69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT ( - 75 ) * - + SUM( ALL + + 91 ) + COALESCE ( - COUNT( * ), + 23 * COUNT( 67 ) ) * - + COUNT( * )
----
6826

skipif mysql # not compatible
query I rowsort label-5886
SELECT ( - 75 ) * - + SUM ( ALL + + 91 ) + COALESCE ( - COUNT ( * ), + 23 * COUNT ( 67 ) ) * - + COUNT ( * )
----
6826

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT 38 + - COUNT( * ) col1
----
37

skipif mysql # not compatible
query I rowsort label-5888
SELECT 38 + - COUNT ( * ) col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT 45 * CASE + + 53 WHEN - 22 + 25 + + - 75 + - 46 THEN NULL WHEN + 28 * 3 * + COUNT( * ) THEN NULL WHEN - - 33 THEN - COUNT( * ) + + 51 - COUNT( * ) - + 36 ELSE 29 * - 87 END AS col1
----
-113535

skipif mysql # not compatible
query I rowsort label-5889
SELECT 45 * CASE + + 53 WHEN - 22 + 25 + + - 75 + - 46 THEN NULL WHEN + 28 * 3 * + COUNT ( * ) THEN NULL WHEN - - 33 THEN - COUNT ( * ) + + 51 - COUNT ( * ) - + 36 ELSE 29 * - 87 END AS col1
----
-113535

query I rowsort
SELECT ALL 76 * 40 AS col1
----
3040

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5892
SELECT 77 col2, NULLIF ( + CAST( NULL AS SIGNED ), + CASE - + 64 WHEN COUNT( * ) * COUNT( * ) THEN - + 47 END ) / 4 * + - 38 + - - CAST( - 78 AS DECIMAL ) - + - ( - + 70 )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-5892
SELECT 77 col2, NULLIF ( + CAST ( NULL AS INTEGER ), + CASE - + 64 WHEN COUNT ( * ) * COUNT ( * ) THEN - + 47 END ) / 4 * + - 38 + - - CAST ( - 78 AS REAL ) - + - ( - + 70 )
----
77
NULL

query I rowsort
SELECT DISTINCT 23 * - 39
----
-897

query I rowsort
SELECT CASE 74 WHEN 50 + - 19 THEN - 66 * 75 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT + COALESCE ( - 28, - - COUNT( * ) - 59 - + 19 - + - 84 ) * - + COUNT( * ) + - 75 * + + 36 + - 53 + + 4 AS col1
----
-2721

skipif mysql # not compatible
query I rowsort label-5895
SELECT + COALESCE ( - 28, - - COUNT ( * ) - 59 - + 19 - + - 84 ) * - + COUNT ( * ) + - 75 * + + 36 + - 53 + + 4 AS col1
----
-2721

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT NULLIF ( - - ( + CAST( - - 40 AS SIGNED ) ), + CAST( NULL AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-5897
SELECT NULLIF ( - - ( + CAST ( - - 40 AS INTEGER ) ), + CAST ( NULL AS INTEGER ) )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5898
SELECT + ( - - 6 ) DIV 60 + + 12 + - - 74 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-5898
SELECT + ( - - 6 ) / 60 + + 12 + - - 74 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT CASE - + 89 WHEN + 1 / - - 53 + + 33 THEN + 28 WHEN - 27 / - COALESCE ( + - 29, 58 ) + + MIN( 80 ) * - - 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT CASE - + 89 WHEN + 1 / - - 53 + + 33 THEN + 28 WHEN - 27 / - COALESCE ( + - 29, 58 ) + + MIN ( 80 ) * - - 63 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5900
SELECT ALL + + 52 AS col2, + 97 - 57 + - + CASE + COUNT( * ) WHEN 90 THEN - 62 END / - 64 * - 79 * - 3 - + CAST( + - 98 AS SIGNED ) + COUNT( * ) - + + 55 * + 91 AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-5900
SELECT ALL + + 52 AS col2, + 97 - 57 + - + CASE + COUNT ( * ) WHEN 90 THEN - 62 END / - 64 * - 79 * - 3 - + CAST ( + - 98 AS INTEGER ) + COUNT ( * ) - + + 55 * + 91 AS col1
----
52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT - + COUNT( * ) * 19 + + COUNT( DISTINCT - + 1 )
----
-18

skipif mysql # not compatible
query I rowsort label-5901
SELECT - + COUNT ( * ) * 19 + + COUNT ( DISTINCT - + 1 )
----
-18

query I rowsort
SELECT DISTINCT + 28 * - + 90
----
-2520

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5903
SELECT DISTINCT 70 DIV - SUM( DISTINCT 9 ), 21 + 3 AS col2
----
-7
24

skipif mysql # not compatible
query II rowsort label-5903
SELECT DISTINCT 70 / - SUM ( DISTINCT 9 ), 21 + 3 AS col2
----
-7
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5904
SELECT ALL + + CAST( NULL AS SIGNED ) * + NULLIF ( + + 41, 4 * - CAST( NULL AS SIGNED ) ) * + 83 * - 27 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + + CAST ( NULL AS INTEGER ) * + NULLIF ( + + 41, 4 * - CAST ( NULL AS INTEGER ) ) * + 83 * - 27 + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5905
SELECT + 57 + + + 87 DIV - 9 + - 50
----
-2

skipif mysql # not compatible
query I rowsort label-5905
SELECT + 57 + + + 87 / - 9 + - 50
----
-2

query I rowsort
SELECT - 89 * - 40 - - ( + 55 )
----
3615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5907
SELECT DISTINCT + CASE + + 23 WHEN 96 THEN + - COALESCE ( 27, 52 ) END * - - ( + 98 ) * + CAST( 20 AS SIGNED ) * + 34 * + + 67 + + + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT + CASE + + 23 WHEN 96 THEN + - COALESCE ( 27, 52 ) END * - - ( + 98 ) * + CAST ( 20 AS INTEGER ) * + 34 * + + 67 + + + 11 AS col2
----
NULL

query I rowsort
SELECT - 10 * 57 * + 32 + - - 93 * + ( - ( - 24 ) ) + + + ( + 41 )
----
-15967

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT NULLIF ( - - COUNT( * ), MIN( + 42 ) + + + 17 ) * 21 + 80 - - + COUNT( * ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-5909
SELECT NULLIF ( - - COUNT ( * ), MIN ( + 42 ) + + + 17 ) * 21 + 80 - - + COUNT ( * ) AS col1
----
102

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

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

query I rowsort
SELECT - - 37 + - 41 AS col0
----
-4

query I rowsort
SELECT - + 62 + 40
----
-22

query I rowsort
SELECT ALL 96 col1
----
96

query I rowsort
SELECT - - 87 + + 54 AS col2
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5916
SELECT - 43 * - + COALESCE ( + - 51, 70 + 74 ) / - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5916
SELECT - 43 * - + COALESCE ( + - 51, 70 + 74 ) / - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT - NULLIF ( COUNT( * ), + 97 * 87 * - 76 * - 12 ) + + 35
----
34

skipif mysql # not compatible
query I rowsort label-5917
SELECT - NULLIF ( COUNT ( * ), + 97 * 87 * - 76 * - 12 ) + + 35
----
34

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

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

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

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

query I rowsort
SELECT DISTINCT + 6 * + - ( + + 65 )
----
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT CASE + 24 WHEN + 0 * - 48 * - COUNT( * ) - - 42 THEN - MIN( 59 ) * - 31 * - + 85 + + + COUNT( * ) + 50 * - 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT CASE + 24 WHEN + 0 * - 48 * - COUNT ( * ) - - 42 THEN - MIN ( 59 ) * - 31 * - + 85 + + + COUNT ( * ) + 50 * - 17 END
----
NULL

query I rowsort
SELECT ALL 76 * + + 6 * 13
----
5928

query I rowsort
SELECT ALL + 43 + - 85
----
-42

query I rowsort
SELECT ALL - 89 + - 77 AS col0
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT - COALESCE ( + - COUNT( * ), + 53 * + 73 + - 94 )
----
1

skipif mysql # not compatible
query I rowsort label-5925
SELECT - COALESCE ( + - COUNT ( * ), + 53 * + 73 + - 94 )
----
1

query II rowsort
SELECT - 64 + - 12, - ( 62 ) + + - 43 AS col2
----
-76
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT - COUNT( * ) - - 63
----
62

skipif mysql # not compatible
query I rowsort label-5927
SELECT - COUNT ( * ) - - 63
----
62

query I rowsort
SELECT + 5 * - + 29
----
-145

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

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

query I rowsort
SELECT DISTINCT + + NULLIF ( + + 78, + 91 )
----
78

query I rowsort
SELECT ALL ( 8 ) * 26
----
208

query I rowsort
SELECT + + NULLIF ( - + 13, + 87 )
----
-13

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

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

query I rowsort
SELECT + 16 * 94 + - 59 AS col1
----
1445

query I rowsort
SELECT - 62 * - + NULLIF ( 35, - + 61 ) + 23 AS col1
----
2193

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT + MAX( DISTINCT + 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5936
SELECT + MAX ( DISTINCT + 26 ) AS col0
----
26

query I rowsort
SELECT - + 52 + - 42 * 45 AS col0
----
-1942

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL - COUNT( * ) * NULLIF ( + 29, 43 + + 96 - + 50 + + 32 * - + ( SUM( - 50 ) ) ) - - 44 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL - COUNT ( * ) * NULLIF ( + 29, 43 + + 96 - + 50 + + 32 * - + ( SUM ( - 50 ) ) ) - - 44 AS col0
----
15

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

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

query I rowsort
SELECT ALL - + 3 * 31 * - 31
----
2883

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5943
SELECT + + COALESCE ( + 34, + 64 * - CAST( 92 AS SIGNED ) + 37 + + + 0 DIV - 2 + 87 ) - + - 6 col1
----
40

skipif mysql # not compatible
query I rowsort label-5943
SELECT + + COALESCE ( + 34, + 64 * - CAST ( 92 AS INTEGER ) + 37 + + + 0 / - 2 + 87 ) - + - 6 col1
----
40

query I rowsort
SELECT - 91 * 0 - + - 76
----
76

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5946
SELECT ALL - - 11 * - - COUNT( * ) + - 16 + + COUNT( * ) + 26 + + + COUNT( * ) + + + 8 + + 24 * 75 + + COALESCE ( + 35, - + 53 ), + 71 AS col0
----
1866
71

skipif mysql # not compatible
query II rowsort label-5946
SELECT ALL - - 11 * - - COUNT ( * ) + - 16 + + COUNT ( * ) + 26 + + + COUNT ( * ) + + + 8 + + 24 * 75 + + COALESCE ( + 35, - + 53 ), + 71 AS col0
----
1866
71

query I rowsort
SELECT + + ( + 28 ) + + 53 * + ( 47 ) + - 6 AS col1
----
2513

query I rowsort
SELECT 64 - 23 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5949
SELECT DISTINCT 47 + - COALESCE ( + 83, - 11 ) + - + 51 * COALESCE ( + 58, - - 62 * - + 69 + - + 85, - + CAST( - + COUNT( * ) AS SIGNED ) ) AS col2
----
-2994

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT 47 + - COALESCE ( + 83, - 11 ) + - + 51 * COALESCE ( + 58, - - 62 * - + 69 + - + 85, - + CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col2
----
-2994

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT 80 * - - 61 * - 5 * + COUNT( ALL 46 ) * COUNT( * ) + + 62
----
-24338

skipif mysql # not compatible
query I rowsort label-5950
SELECT 80 * - - 61 * - 5 * + COUNT ( ALL 46 ) * COUNT ( * ) + + 62
----
-24338

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT 63 + + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5951
SELECT 63 + + COUNT ( * ) AS col0
----
64

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

skipif mysql # not compatible
query I rowsort label-5952
SELECT 70 / COUNT ( * )
----
70

query I rowsort
SELECT 8 - + 19
----
-11

query II rowsort
SELECT 18 AS col2, + 64 col0
----
18
64

query I rowsort
SELECT DISTINCT + 12 + + 5 + + 58 AS col2
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5956
SELECT ALL - CASE 67 WHEN + 57 THEN - 23 END + 48 + 86 * - COALESCE ( + + 4, 10 ) + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL - CASE 67 WHEN + 57 THEN - 23 END + 48 + 86 * - COALESCE ( + + 4, 10 ) + + CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT 26, 80 AS col0
----
26
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5958
SELECT - 69 AS col0, - ( - CAST( - - 67 AS SIGNED ) )
----
-69
67

skipif mysql # not compatible
query II rowsort label-5958
SELECT - 69 AS col0, - ( - CAST ( - - 67 AS INTEGER ) )
----
-69
67

query I rowsort
SELECT ALL 71 col1
----
71

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL + - 52 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 0 * + 27 * + - 77 AS col1
----
0

query I rowsort
SELECT + 18 * 63 + + + 64 AS col1
----
1198

onlyif mysql # DIV for integer division: 
query I rowsort label-5965
SELECT + 30 DIV + - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5965
SELECT + 30 / + - 56 AS col1
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5968
SELECT + 31 * + + 26 + - CAST( NULL AS SIGNED ), 60 AS col2
----
NULL
60

skipif mysql # not compatible
query II rowsort label-5968
SELECT + 31 * + + 26 + - CAST ( NULL AS INTEGER ), 60 AS col2
----
NULL
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5969
SELECT + 14 * + ( CAST( 69 AS SIGNED ) )
----
966

skipif mysql # not compatible
query I rowsort label-5969
SELECT + 14 * + ( CAST ( 69 AS INTEGER ) )
----
966

query III rowsort
SELECT 97, 90 - - 99 AS col0, + 8 * - - 18 col2
----
97
189
144

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

query I rowsort
SELECT COALESCE ( - 39, - + 27, + + 51 + 18, + 97 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT - MAX( DISTINCT - 77 ) * 45
----
3465

skipif mysql # not compatible
query I rowsort label-5973
SELECT - MAX ( DISTINCT - 77 ) * 45
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT ALL NULLIF ( 97, + + COUNT( * ) + ( - 67 ) ) * 87 AS col0
----
8439

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL NULLIF ( 97, + + COUNT ( * ) + ( - 67 ) ) * 87 AS col0
----
8439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT ALL - + CASE + ( - 36 ) WHEN - 85 + 47 THEN + COALESCE ( + CAST( NULL AS SIGNED ), + 42, - COALESCE ( - ( 45 ), + 17 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL - + CASE + ( - 36 ) WHEN - 85 + 47 THEN + COALESCE ( + CAST ( NULL AS INTEGER ), + 42, - COALESCE ( - ( 45 ), + 17 ) ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - - 97 * 19 * + + 74 + + - 15 * + 40 + + 41
----
135823

query I rowsort
SELECT + 42 + - 29 + - 47 AS col0
----
-34

query I rowsort
SELECT DISTINCT - - 81
----
81

query I rowsort
SELECT + 55 + - ( + 27 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT + 25 - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-5980
SELECT + 25 - COUNT ( * )
----
24

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

query I rowsort
SELECT ALL - + 99 AS col1
----
-99

query II rowsort
SELECT + 76 col1, + 40 AS col0
----
76
40

query I rowsort
SELECT ALL 22 + + 38 + + - ( + + 48 ) * + 63
----
-2964

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5986
SELECT ALL CAST( 11 AS SIGNED ) + + 81
----
92

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL CAST ( 11 AS INTEGER ) + + 81
----
92

query I rowsort
SELECT ALL 65 + - + 78 * - 1 AS col2
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5988
SELECT + 51 * + 80 * CAST( - COUNT( * ) AS SIGNED ) * COUNT( 30 ) * - + 50 + - COALESCE ( - CAST( + SUM( DISTINCT + 98 ) AS SIGNED ), - 21 ) * + CAST( NULL AS SIGNED ) + + 53 + - + 3 * + 58 + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT + 51 * + 80 * CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( 30 ) * - + 50 + - COALESCE ( - CAST ( + SUM ( DISTINCT + 98 ) AS INTEGER ), - 21 ) * + CAST ( NULL AS INTEGER ) + + 53 + - + 3 * + 58 + 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5989
SELECT 66 AS col2, 79 + + COALESCE ( + 71, + ( - + COUNT( * ) ) - - 46 ) + 51 AS col2
----
66
201

skipif mysql # not compatible
query II rowsort label-5989
SELECT 66 AS col2, 79 + + COALESCE ( + 71, + ( - + COUNT ( * ) ) - - 46 ) + 51 AS col2
----
66
201

query I rowsort
SELECT 93 + - - 68
----
161

query I rowsort
SELECT 99 * + ( - 91 )
----
-9009

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT 73 * + MAX( - 52 ) * + 42 col0
----
-159432

skipif mysql # not compatible
query I rowsort label-5993
SELECT 73 * + MAX ( - 52 ) * + 42 col0
----
-159432

query II rowsort
SELECT 90 col2, + ( + 94 ) AS col2
----
90
94

query I rowsort
SELECT ALL 58 * - - 24 * - ( + 44 )
----
-61248

query II rowsort
SELECT ALL 15 AS col1, 91
----
15
91

query I rowsort
SELECT 5 + + - 15 + 52
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT 14 + 82 * COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5998
SELECT 14 + 82 * COUNT ( * ) AS col0
----
96

query I rowsort
SELECT 88 * 23
----
2024

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

query I rowsort
SELECT + 15 - + 88 AS col0
----
-73

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

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT - MIN ( - 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6003
SELECT NULLIF ( ( + + COUNT( DISTINCT + 51 ) ), 87 * 11 + + COALESCE ( - - COUNT( * ), CAST( NULL AS DECIMAL ) - - 8 ) + - 60 + 0 * - + 94 * CAST( + 85 AS DECIMAL ) ) - ( - 60 ) col1
----
61

skipif mysql # not compatible
query I rowsort label-6003
SELECT NULLIF ( ( + + COUNT ( DISTINCT + 51 ) ), 87 * 11 + + COALESCE ( - - COUNT ( * ), CAST ( NULL AS REAL ) - - 8 ) + - 60 + 0 * - + 94 * CAST ( + 85 AS REAL ) ) - ( - 60 ) col1
----
61

query I rowsort
SELECT - 7 + + 62 + + 52 + + - 85
----
22

query I rowsort
SELECT ALL - - 81
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT DISTINCT - + 45 DIV + 21 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT - + 45 / + 21 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6007
SELECT DISTINCT - + CAST( NULL AS SIGNED ), + 4 + + COUNT( * ) + 10 AS col0, + 72 col1
----
NULL
15
72

skipif mysql # not compatible
query III rowsort label-6007
SELECT DISTINCT - + CAST ( NULL AS INTEGER ), + 4 + + COUNT ( * ) + 10 AS col0, + 72 col1
----
NULL
15
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT + 73 + + - MIN( 54 )
----
19

skipif mysql # not compatible
query I rowsort label-6008
SELECT + 73 + + - MIN ( 54 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT ALL - 44 * + COUNT( * ) + + + 38 col1
----
-6

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL - 44 * + COUNT ( * ) + + + 38 col1
----
-6

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

query II rowsort
SELECT + - 23, 99 AS col0
----
-23
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT DISTINCT - 53 * - + COUNT( DISTINCT - 65 )
----
53

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT - 53 * - + COUNT ( DISTINCT - 65 )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-6013
SELECT - COUNT( * ) * - + 82 AS col1, 49
----
82
49

skipif mysql # not compatible
query II rowsort label-6013
SELECT - COUNT ( * ) * - + 82 AS col1, 49
----
82
49

query I rowsort
SELECT + 3 * - - 34 + + - 35
----
67

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6016
SELECT 61 DIV - ( - 89 ) * + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6016
SELECT 61 / - ( - 89 ) * + 78 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6017
SELECT ALL + 50 * - 56 * ( + 65 ) * 2 * ( + 18 ) + - 84 + - 32 DIV 53
----
-6552084

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL + 50 * - 56 * ( + 65 ) * 2 * ( + 18 ) + - 84 + - 32 / 53
----
-6552084

onlyif mysql # aggregate syntax: 
query II rowsort label-6018
SELECT + + COUNT( * ) AS col0, 20 + 96 + 50 + - 60 * - 96 + + ( - + ( + + 85 ) ) * - COUNT( * ) * - 89
----
1
-1639

skipif mysql # not compatible
query II rowsort label-6018
SELECT + + COUNT ( * ) AS col0, 20 + 96 + 50 + - 60 * - 96 + + ( - + ( + + 85 ) ) * - COUNT ( * ) * - 89
----
1
-1639

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ALL MAX( DISTINCT + NULLIF ( ( ( 19 ) ), + - 32 + - 73 ) ) + - 52 + + + ( - 91 )
----
-124

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL MAX ( DISTINCT + NULLIF ( ( ( 19 ) ), + - 32 + - 73 ) ) + - 52 + + + ( - 91 )
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6020
SELECT SUM( DISTINCT - - CAST( 23 AS SIGNED ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6020
SELECT SUM ( DISTINCT - - CAST ( 23 AS INTEGER ) ) AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT ALL + 57 + - + 20 DIV - 17 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL + 57 + - + 20 / - 17 AS col0
----
58

query I rowsort
SELECT + 36 * - 88
----
-3168

query I rowsort
SELECT 57 * 19 * - 89 - + + 37 + - 48 + 28
----
-96444

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT MAX( DISTINCT - 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-6024
SELECT MAX ( DISTINCT - 28 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT ALL 18 + - MIN( + 79 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL 18 + - MIN ( + 79 ) AS col1
----
-61

query I rowsort
SELECT + 10 * - 72 - - + 72 AS col2
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT + COUNT( * ) + - 24 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6027
SELECT + COUNT ( * ) + - 24 AS col2
----
-23

query I rowsort
SELECT + 5 * - 98
----
-490

query I rowsort
SELECT ALL 11 * - ( 86 )
----
-946

query II rowsort
SELECT ALL - 30 - + - ( - 83 ) + ( + 21 ) * 14 + - + 5 AS col2, 75 AS col0
----
176
75

query I rowsort
SELECT DISTINCT 17 - + 81 AS col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6032
SELECT ALL 51 - - CAST( NULL AS SIGNED ) + - + 82 / 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL 51 - - CAST ( NULL AS INTEGER ) + - + 82 / 10
----
NULL

query II rowsort
SELECT - NULLIF ( 68, + 13 ) AS col1, - 14
----
-68
-14

query I rowsort
SELECT + 22 + 59 * + 17 AS col1
----
1025

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT + ( - - CASE + + COUNT( * ) WHEN + - 60 THEN - 80 + 80 WHEN + - ( + 76 ) THEN NULL WHEN 97 + 46 * + COUNT( * ) THEN NULL ELSE NULL END ) / + - COUNT( + + 31 ) + 69 * + - 65 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT + ( - - CASE + + COUNT ( * ) WHEN + - 60 THEN - 80 + 80 WHEN + - ( + 76 ) THEN NULL WHEN 97 + 46 * + COUNT ( * ) THEN NULL ELSE NULL END ) / + - COUNT ( + + 31 ) + 69 * + - 65 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6036
SELECT + 39 * - - 91, 96 * + - COUNT( * ) AS col1
----
3549
-96

skipif mysql # not compatible
query II rowsort label-6036
SELECT + 39 * - - 91, 96 * + - COUNT ( * ) AS col1
----
3549
-96

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

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL COUNT ( * ) / 31
----
0

query I rowsort
SELECT - 16 * - - 76 AS col2
----
-1216

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT - NULLIF ( - COUNT( * ), + 15 / + 28 + - + 91 * ( - 70 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6039
SELECT - NULLIF ( - COUNT ( * ), + 15 / + 28 + - + 91 * ( - 70 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT - 82 - + + CASE COUNT( * ) WHEN + 62 THEN NULL ELSE - ( - 10 ) + - 57 END + + COALESCE ( - - 85, - COALESCE ( + + 88, + + 35 * + + 78 + - 83 + 63 * - 78, - 19 * 13 + + + 39 ), - 80 ) * - - 92 AS col2
----
7785

skipif mysql # not compatible
query I rowsort label-6040
SELECT - 82 - + + CASE COUNT ( * ) WHEN + 62 THEN NULL ELSE - ( - 10 ) + - 57 END + + COALESCE ( - - 85, - COALESCE ( + + 88, + + 35 * + + 78 + - 83 + 63 * - 78, - 19 * 13 + + + 39 ), - 80 ) * - - 92 AS col2
----
7785

onlyif mysql # DIV for integer division: 
query II rowsort label-6041
SELECT + - 45 DIV + 6 AS col1, 37 AS col1
----
-7
37

skipif mysql # not compatible
query II rowsort label-6041
SELECT + - 45 / + 6 AS col1, 37 AS col1
----
-7
37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT + + SUM( ALL + 83 ) * CASE 48 WHEN - + 44 THEN + 95 + - 11 + 69 + - - MAX( + 56 ) * - - 87 - + MIN( 15 ) WHEN 57 / - + 25 * + + 92 * + - 46 THEN NULL ELSE NULL END * - + MIN( + 19 ) * + 85 / + 97 + 3 + 43 - - - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT + + SUM ( ALL + 83 ) * CASE 48 WHEN - + 44 THEN + 95 + - 11 + 69 + - - MAX ( + 56 ) * - - 87 - + MIN ( 15 ) WHEN 57 / - + 25 * + + 92 * + - 46 THEN NULL ELSE NULL END * - + MIN ( + 19 ) * + 85 / + 97 + 3 + 43 - - - 47
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6044
SELECT CAST( + SUM( DISTINCT ( 10 ) ) AS SIGNED )
----
10

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

query I rowsort
SELECT ALL - 15 * - + ( - - 66 ) AS col2
----
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6046
SELECT ALL - - 83 / + 61 + + CAST( NULL AS SIGNED ) * 2 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL - - 83 / + 61 + + CAST ( NULL AS INTEGER ) * 2 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6047
SELECT - COALESCE ( - 77, + + CAST( - - 80 AS SIGNED ) + - - 5 + - 36 DIV + 59 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6047
SELECT - COALESCE ( - 77, + + CAST ( - - 80 AS INTEGER ) + - - 5 + - 36 / + 59 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6048
SELECT ALL + 46 * + - 72 + - 23, - COUNT( * ) AS col2
----
-3335
-1

skipif mysql # not compatible
query II rowsort label-6048
SELECT ALL + 46 * + - 72 + - 23, - COUNT ( * ) AS col2
----
-3335
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6049
SELECT ALL + COUNT( ALL - 51 ) AS col1, - 39 * COUNT( * )
----
1
-39

skipif mysql # not compatible
query II rowsort label-6049
SELECT ALL + COUNT ( ALL - 51 ) AS col1, - 39 * COUNT ( * )
----
1
-39

query I rowsort
SELECT - - 69 + + - 85 * 7 col0
----
-526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT ALL - CAST( NULL AS SIGNED ) * - 47 + - - 68 * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL - CAST ( NULL AS INTEGER ) * - 47 + - - 68 * + 85
----
NULL

query I rowsort
SELECT ALL + 70 * + + 20
----
1400

query I rowsort
SELECT DISTINCT + 15 AS col2
----
15

query I rowsort
SELECT ALL 19 * 60 + 96 AS col1
----
1236

query I rowsort
SELECT - NULLIF ( - - 55, 98 ) + + 87 AS col2
----
32

query I rowsort
SELECT NULLIF ( 73, 17 + - 31 ) col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT ALL - 98 * 74 * NULLIF ( + - 38, - 33 * - 39 - + 61 + + 22 ) * COUNT( * ) + - - 41 * + 92 * + COUNT( DISTINCT - 16 ) * 8 AS col0
----
305752

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL - 98 * 74 * NULLIF ( + - 38, - 33 * - 39 - + 61 + + 22 ) * COUNT ( * ) + - - 41 * + 92 * + COUNT ( DISTINCT - 16 ) * 8 AS col0
----
305752

query I rowsort
SELECT - 24 + - 75 AS col0
----
-99

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

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

query I rowsort
SELECT + 88 * - 74
----
-6512

query II rowsort
SELECT + 43 * 60 + - - 14 AS col0, 79
----
2594
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6062
SELECT + 6 + + 89 * - 69 AS col2, CAST( NULL AS SIGNED ) + + 67 + + 2 * COUNT( * )
----
-6135
NULL

skipif mysql # not compatible
query II rowsort label-6062
SELECT + 6 + + 89 * - 69 AS col2, CAST ( NULL AS INTEGER ) + + 67 + + 2 * COUNT ( * )
----
-6135
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL 68 * 20 - MAX( + COALESCE ( - - 54, + ( 57 ), - 2 ) ) AS col1
----
1306

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL 68 * 20 - MAX ( + COALESCE ( - - 54, + ( 57 ), - 2 ) ) AS col1
----
1306

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6064
SELECT - CAST( NULL AS DECIMAL ) * 25 * MIN( DISTINCT + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT - CAST ( NULL AS REAL ) * 25 * MIN ( DISTINCT + 1 )
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 62 ) col2
----
-62

query I rowsort
SELECT ALL - 98 * + - ( - 51 )
----
-4998

query I rowsort
SELECT DISTINCT 30 * + + 69 - - ( + ( - 20 ) ) AS col2
----
2050

onlyif mysql # aggregate syntax: 
query II rowsort label-6068
SELECT DISTINCT ( + MAX( DISTINCT - 26 ) ), 61 * 77 AS col0
----
-26
4697

skipif mysql # not compatible
query II rowsort label-6068
SELECT DISTINCT ( + MAX ( DISTINCT - 26 ) ), 61 * 77 AS col0
----
-26
4697

onlyif mysql # DIV for integer division: 
query I rowsort label-6069
SELECT + 46 + 48 DIV 9
----
51

skipif mysql # not compatible
query I rowsort label-6069
SELECT + 46 + 48 / 9
----
51

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT - ( - - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6072
SELECT - ( - - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT ALL COUNT( * ) * - ( - - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL COUNT ( * ) * - ( - - 37 )
----
-37

query I rowsort
SELECT DISTINCT 16 col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6075
SELECT - 27 + - 59 DIV - 94
----
-27

skipif mysql # not compatible
query I rowsort label-6075
SELECT - 27 + - 59 / - 94
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT + 92 + - - COUNT( * ) + - 52
----
41

skipif mysql # not compatible
query I rowsort label-6076
SELECT + 92 + - - COUNT ( * ) + - 52
----
41

query II rowsort
SELECT ALL 22 col2, - 29 AS col2
----
22
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6078
SELECT ALL CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6078
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT + 42 + 46
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6080
SELECT ALL 86 DIV 97 + + 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL 86 / 97 + + 47 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT + ( + 92 ) + - ( + 17 ) * + 55 * - + COUNT( ALL - 81 ) * - 33
----
-30763

skipif mysql # not compatible
query I rowsort label-6081
SELECT + ( + 92 ) + - ( + 17 ) * + 55 * - + COUNT ( ALL - 81 ) * - 33
----
-30763

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT ALL 25 + - + 53 + - COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL 25 + - + 53 + - COUNT ( * ) AS col1
----
-29

query II rowsort
SELECT 28, + 78 col1
----
28
78

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

skipif mysql # not compatible
query I rowsort label-6084
SELECT SUM ( + 95 )
----
95

query I rowsort
SELECT + 13 - + ( + - 12 ) * + 57 col1
----
697

query I rowsort
SELECT - 88 col1
----
-88

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

skipif mysql # not compatible
query I rowsort label-6087
SELECT + - 72 / 51
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT ALL - SUM( + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL - SUM ( + 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT + + CASE - + 26 WHEN + 75 THEN + - COUNT( + 23 ) WHEN + 65 + 44 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT + + CASE - + 26 WHEN + 75 THEN + - COUNT ( + 23 ) WHEN + 65 + 44 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 92 + + + 77
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT DISTINCT + 34 + COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT + 34 + COUNT ( * ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL - COUNT( * ) + + ( + - 3 ) * COUNT( ALL + 10 ) * + - 24 + + + CASE WHEN NOT 58 IS NULL THEN - 60 + 49 ELSE NULL END
----
60

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL - COUNT ( * ) + + ( + - 3 ) * COUNT ( ALL + 10 ) * + - 24 + + + CASE WHEN NOT 58 IS NULL THEN - 60 + 49 ELSE NULL END
----
60

query I rowsort
SELECT DISTINCT 28 + + + 93 col1
----
121

query I rowsort
SELECT ALL 32 * + 16
----
512

query I rowsort
SELECT DISTINCT - ( 95 ) AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6096
SELECT + 77 * + CAST( NULLIF ( - 3, + 89 * + COUNT( * ) + - 27 ) AS SIGNED ) * - 2 * 85 * + + ( + - 88 ) + + + CAST( + ( + 79 ) AS SIGNED ) AS col2
----
-3455681

skipif mysql # not compatible
query I rowsort label-6096
SELECT + 77 * + CAST ( NULLIF ( - 3, + 89 * + COUNT ( * ) + - 27 ) AS INTEGER ) * - 2 * 85 * + + ( + - 88 ) + + + CAST ( + ( + 79 ) AS INTEGER ) AS col2
----
-3455681

query I rowsort
SELECT ALL - COALESCE ( 57, - 25 * - 68 + - - 17 * 36, - 94 - + + 18 - + NULLIF ( CASE - 55 WHEN + ( 87 ) / + - 10 THEN - 48 END, - + NULLIF ( + 49, 38 ) ) )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6098
SELECT DISTINCT 41 - + COUNT( * ), 57 AS col1
----
40
57

skipif mysql # not compatible
query II rowsort label-6098
SELECT DISTINCT 41 - + COUNT ( * ), 57 AS col1
----
40
57

query I rowsort
SELECT DISTINCT + 12 - - ( - 52 )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6100
SELECT ALL COUNT( * ) DIV - MAX( DISTINCT 90 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL COUNT ( * ) / - MAX ( DISTINCT 90 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6101
SELECT DISTINCT - COUNT( * ) * + + 91 AS col0, 60 * - 28 col2
----
-91
-1680

skipif mysql # not compatible
query II rowsort label-6101
SELECT DISTINCT - COUNT ( * ) * + + 91 AS col0, 60 * - 28 col2
----
-91
-1680

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

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL - MAX ( ALL 12 )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6103
SELECT + 57 * 9 * + 55 - - 32 DIV - 8 AS col0
----
28211

skipif mysql # not compatible
query I rowsort label-6103
SELECT + 57 * 9 * + 55 - - 32 / - 8 AS col0
----
28211

query II rowsort
SELECT 4 * + ( ( - 64 ) ) AS col0, + 62
----
-256
62

query I rowsort
SELECT 8 + - 57 + 56 - 52
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT 14 * + COUNT( * ) * - - 45 AS col1
----
630

skipif mysql # not compatible
query I rowsort label-6106
SELECT 14 * + COUNT ( * ) * - - 45 AS col1
----
630

query I rowsort
SELECT 17 + + + 63 - - 21
----
101

query I rowsort
SELECT ALL 47 + 26 - - 57 - 5 * 82 AS col0
----
-280

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6109
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + ( + - 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT - - CAST ( NULL AS REAL ) + ( + - 85 ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - + 88 + - 26 AS col2
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6112
SELECT ALL + - 25 + + + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL + - 25 + + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * - 12
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-6114
SELECT + 93 * + - COUNT ( ALL - + 43 ) col0
----
-93

query I rowsort
SELECT 90 + 27 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT - NULLIF ( - + ( - 68 ), NULLIF ( 49, - 55 ) + + - 69 * + - 22 * - COUNT( * ) * + + ( 59 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-6116
SELECT - NULLIF ( - + ( - 68 ), NULLIF ( 49, - 55 ) + + - 69 * + - 22 * - COUNT ( * ) * + + ( 59 ) )
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-6117
SELECT ALL SUM( 0 ), 6 * 63 AS col2
----
0
378

skipif mysql # not compatible
query II rowsort label-6117
SELECT ALL SUM ( 0 ), 6 * 63 AS col2
----
0
378

query I rowsort
SELECT - 77 col2
----
-77

query I rowsort
SELECT ALL 59 + 7 + + 48 col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT DISTINCT - - 83 * COUNT( * ) + - 2 + - + 30
----
51

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT - - 83 * COUNT ( * ) + - 2 + - + 30
----
51

query I rowsort
SELECT ALL 77 + - 57 + - + 65 * 91 * + ( - 7 ) * + 52
----
2153080

query I rowsort
SELECT 59 + - 6 * + + ( - + 66 ) + 72 + - - 97
----
624

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

query I rowsort
SELECT ALL + 55 - + - 19 + + 78 AS col0
----
152

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

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

skipif mysql # not compatible
query I rowsort label-6126
SELECT + 9 + 97 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6127
SELECT 39 * + 46, ( 33 ) * + COALESCE ( - + MIN( + 63 ), + + 6 DIV + - 40 ) * - 28 AS col1
----
1794
58212

skipif mysql # not compatible
query II rowsort label-6127
SELECT 39 * + 46, ( 33 ) * + COALESCE ( - + MIN ( + 63 ), + + 6 / + - 40 ) * - 28 AS col1
----
1794
58212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6128
SELECT - 92 / - CASE CASE CAST( - 84 AS SIGNED ) WHEN - 75 THEN NULL ELSE - - 70 END WHEN + COUNT( * ) THEN NULL WHEN 44 / - ( COUNT( * ) ) + 97 THEN + 46 * - 30 + - COUNT( ALL + 80 ) + 82 * 47 END * + 20 + - 71 / 73 * - + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT - 92 / - CASE CASE CAST ( - 84 AS INTEGER ) WHEN - 75 THEN NULL ELSE - - 70 END WHEN + COUNT ( * ) THEN NULL WHEN 44 / - ( COUNT ( * ) ) + 97 THEN + 46 * - 30 + - COUNT ( ALL + 80 ) + 82 * 47 END * + 20 + - 71 / 73 * - + 52
----
NULL

query I rowsort
SELECT DISTINCT CASE 70 WHEN - 56 * - 18 THEN + 44 + - 96 - - 64 + - 99 + + 31 * + 48 * + 63 + + 50 END / 98 * 70 + - 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT 83 + - - COUNT( * ) * - + ( 87 )
----
-4

skipif mysql # not compatible
query I rowsort label-6130
SELECT 83 + - - COUNT ( * ) * - + ( 87 )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6131
SELECT ALL 88 * - - CAST( + + 67 AS SIGNED ) * 23
----
135608

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL 88 * - - CAST ( + + 67 AS INTEGER ) * 23
----
135608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6132
SELECT 89 + + - 13 * 76 DIV - + CASE + 26 WHEN + - SUM( + + 70 ) THEN NULL ELSE 84 + 79 END col1
----
95

skipif mysql # not compatible
query I rowsort label-6132
SELECT 89 + + - 13 * 76 / - + CASE + 26 WHEN + - SUM ( + + 70 ) THEN NULL ELSE 84 + 79 END col1
----
95

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

skipif mysql # not compatible
query I rowsort label-6133
SELECT DISTINCT 0 / 29
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6134
SELECT CAST( + 73 AS SIGNED ) + + + 99
----
172

skipif mysql # not compatible
query I rowsort label-6134
SELECT CAST ( + 73 AS INTEGER ) + + + 99
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT DISTINCT - CASE 24 WHEN COUNT( ALL + - 92 ) * - + 15 * + 93 THEN NULL ELSE + 6 + - 27 END
----
21

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT - CASE 24 WHEN COUNT ( ALL + - 92 ) * - + 15 * + 93 THEN NULL ELSE + 6 + - 27 END
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT DISTINCT MIN( ALL - - 3 ) * 85 AS col1
----
255

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT MIN ( ALL - - 3 ) * 85 AS col1
----
255

query I rowsort
SELECT ALL - 44 col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-6138
SELECT ( - 89 ) * - 82 * - 15 + COUNT( * ), - 34 AS col1
----
-109469
-34

skipif mysql # not compatible
query II rowsort label-6138
SELECT ( - 89 ) * - 82 * - 15 + COUNT ( * ), - 34 AS col1
----
-109469
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT ALL NULLIF ( + 3, - ( 20 ) * + 80 * COUNT( * ) * - COUNT( * ) + 24 + - 65 * - 87 - + - 70 / + 70 ) * - COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL NULLIF ( + 3, - ( 20 ) * + 80 * COUNT ( * ) * - COUNT ( * ) + 24 + - 65 * - 87 - + - 70 / + 70 ) * - COUNT ( * ) AS col1
----
-3

query I rowsort
SELECT 34 + 90
----
124

query II rowsort
SELECT ALL - 72 AS col2, 26 * - 90
----
-72
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT 8 * + ( + - MIN( - 49 ) ) AS col0
----
392

skipif mysql # not compatible
query I rowsort label-6142
SELECT 8 * + ( + - MIN ( - 49 ) ) AS col0
----
392

query I rowsort
SELECT 43 + - - CASE + - 33 WHEN + ( + - 5 ) THEN - 53 END * + ( + 43 ) * + 25 * 9
----
NULL

query I rowsort
SELECT DISTINCT - 46 col0
----
-46

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

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT - 91 + + COUNT ( * ) AS col1
----
-90

query I rowsort
SELECT ALL + ( + 73 ) + - 32 AS col0
----
41

query II rowsort
SELECT ALL 45 + - 5 + - 56 AS col2, 6 * 4 col0
----
-16
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6148
SELECT 33 + - MIN( DISTINCT + - 95 ), COUNT( * ) AS col2
----
128
1

skipif mysql # not compatible
query II rowsort label-6148
SELECT 33 + - MIN ( DISTINCT + - 95 ), COUNT ( * ) AS col2
----
128
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6149
SELECT ALL - 64 * - - NULLIF ( + + 61, + 28 * CAST( - - 92 AS SIGNED ) * + 22 ) * + 68 AS col1
----
-265472

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL - 64 * - - NULLIF ( + + 61, + 28 * CAST ( - - 92 AS INTEGER ) * + 22 ) * + 68 AS col1
----
-265472

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

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

query II rowsort
SELECT - 88 col1, 35 * - 41
----
-88
-1435

query I rowsort
SELECT 26 + + 30 + - 20 col1
----
36

query I rowsort
SELECT ALL - ( + + 79 ) + 91 + + ( - - 36 ) + 1 * 23 - 72
----
-1

query I rowsort
SELECT ALL - - 61 * + - 58
----
-3538

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

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

query I rowsort
SELECT - 60 * 80
----
-4800

query I rowsort
SELECT - 64 + + - 24 * 95 AS col0
----
-2344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6158
SELECT DISTINCT + NULLIF ( 36, - 72 DIV + 57 - 93 + 43 ) * + 68 + - - COUNT( * ) DIV - + ( + 19 ) AS col0
----
2448

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT + NULLIF ( 36, - 72 / + 57 - 93 + 43 ) * + 68 + - - COUNT ( * ) / - + ( + 19 ) AS col0
----
2448

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

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

query I rowsort
SELECT ALL + 87 + + 80 * - 20 AS col1
----
-1513

query I rowsort
SELECT - + 65 + 25
----
-40

query II rowsort
SELECT DISTINCT 0 AS col0, + 15 AS col1
----
0
15

query II rowsort
SELECT ALL - 2, + 3 * - 96 AS col2
----
-2
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6164
SELECT ALL - 26 - NULLIF ( + 92, + + CAST( NULL AS SIGNED ) )
----
-118

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL - 26 - NULLIF ( + 92, + + CAST ( NULL AS INTEGER ) )
----
-118

query II rowsort
SELECT - 79 AS col2, + 59 AS col1
----
-79
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT ALL - - COUNT( * ) * - 40 col2
----
-40

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL - - COUNT ( * ) * - 40 col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL + MAX( ALL - 71 ) - - 34 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL + MAX ( ALL - 71 ) - - 34 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT - ( - + 37 ) * + COALESCE ( - 92, - 26, - COUNT( * ) )
----
-3404

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT - ( - + 37 ) * + COALESCE ( - 92, - 26, - COUNT ( * ) )
----
-3404

query II rowsort
SELECT + 76 AS col2, + 63 - + 51 AS col2
----
76
12

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6172
SELECT + 23 * + COUNT( * ) DIV 50 col0
----
0

skipif mysql # not compatible
query I rowsort label-6172
SELECT + 23 * + COUNT ( * ) / 50 col0
----
0

query II rowsort
SELECT + 42 AS col0, 23 * + 59
----
42
1357

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT CASE - - 38 WHEN CASE + - 85 WHEN + 69 * - 16 THEN - MIN( ALL + 49 ) / + - 81 - - AVG ( ALL + + 4 ) + - + 5 WHEN 56 THEN - - 83 ELSE - + 93 END * - + 23 - - 65 THEN 22 * + + 86 WHEN COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT CASE - - 38 WHEN CASE + - 85 WHEN + 69 * - 16 THEN - MIN ( ALL + 49 ) / + - 81 - - AVG ( ALL + + 4 ) + - + 5 WHEN 56 THEN - - 83 ELSE - + 93 END * - + 23 - - 65 THEN 22 * + + 86 WHEN COUNT ( * ) THEN NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 60, + 56 * + + 66 AS col1
----
60
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL - 75 * + 50 + + COUNT( * )
----
-3749

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - 75 * + 50 + + COUNT ( * )
----
-3749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6177
SELECT COALESCE ( 1, 15 * + CASE 62 WHEN + 99 + - + 60 THEN NULL WHEN + - 33 THEN NULL ELSE - NULLIF ( + CAST( - 57 AS SIGNED ), - + 54 ) END * - 85 * - 38 + + 66 * - COUNT( * ) + + + ( 74 ) * - 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6177
SELECT COALESCE ( 1, 15 * + CASE 62 WHEN + 99 + - + 60 THEN NULL WHEN + - 33 THEN NULL ELSE - NULLIF ( + CAST ( - 57 AS INTEGER ), - + 54 ) END * - 85 * - 38 + + 66 * - COUNT ( * ) + + + ( 74 ) * - 6 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT + 93 * - MAX( ALL - + 84 ) AS col2
----
7812

skipif mysql # not compatible
query I rowsort label-6178
SELECT + 93 * - MAX ( ALL - + 84 ) AS col2
----
7812

query I rowsort
SELECT ALL + 9 * 7 + + 55
----
118

query I rowsort
SELECT + NULLIF ( + - 22, - 8 + - 26 )
----
-22

query I rowsort
SELECT + 33 * 39 * 94 AS col0
----
120978

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT MAX( 74 )
----
74

skipif mysql # not compatible
query I rowsort label-6182
SELECT MAX ( 74 )
----
74

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

query II rowsort
SELECT ALL + 68 AS col0, + 2 col1
----
68
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6185
SELECT ALL + + COALESCE ( 57, - 86, - 35 + 31 * - COALESCE ( + - 28, - + SUM( 8 ) ) ) * + 22 + + 92 + - - 82 + + - 28 - - - 32 - + CAST( - 10 AS SIGNED ) + + CAST( 80 AS SIGNED ) + + 97 * 63
----
7569

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL + + COALESCE ( 57, - 86, - 35 + 31 * - COALESCE ( + - 28, - + SUM ( 8 ) ) ) * + 22 + + 92 + - - 82 + + - 28 - - - 32 - + CAST ( - 10 AS INTEGER ) + + CAST ( 80 AS INTEGER ) + + 97 * 63
----
7569

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

skipif mysql # not compatible
query I rowsort label-6186
SELECT + 66 + + CAST ( NULL AS INTEGER ) * + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT - COUNT( * ) * - - NULLIF ( 67, + 20 ) + - 28
----
-95

skipif mysql # not compatible
query I rowsort label-6187
SELECT - COUNT ( * ) * - - NULLIF ( 67, + 20 ) + - 28
----
-95

query II rowsort
SELECT - 78 AS col0, 61 AS col1
----
-78
61

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

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

query II rowsort
SELECT + 6, - 32 * - 64 col1
----
6
2048

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6191
SELECT ALL - - 58 - 16 / + - CAST( NULL AS DECIMAL ) * 33 * + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL - - 58 - 16 / + - CAST ( NULL AS REAL ) * 33 * + + 24
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT DISTINCT - + SUM( ALL - 33 ) * + + 7 AS col1
----
231

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT - + SUM ( ALL - 33 ) * + + 7 AS col1
----
231

query I rowsort
SELECT + 68 * + 10 AS col0
----
680

query I rowsort
SELECT - 38 * - 28
----
1064

query II rowsort
SELECT - 85, 67 AS col1
----
-85
67

query I rowsort
SELECT + - 83 * - + 61 AS col2
----
5063

query I rowsort
SELECT - 46 col1
----
-46

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6201
SELECT ALL + 39 DIV + + ( + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL + 39 / + + ( + 61 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6202
SELECT - - 34 DIV + - 98 * COUNT( * ) AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT ALL CASE 39 WHEN - 19 * + COALESCE ( - SUM( + 76 ), - 37 ) THEN - 75 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL CASE 39 WHEN - 19 * + COALESCE ( - SUM ( + 76 ), - 37 ) THEN - 75 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6204
SELECT DISTINCT CASE COUNT( * ) WHEN + 50 THEN + - 32 ELSE - - COUNT( * ) END AS col2, + 25 col2
----
1
25

skipif mysql # not compatible
query II rowsort label-6204
SELECT DISTINCT CASE COUNT ( * ) WHEN + 50 THEN + - 32 ELSE - - COUNT ( * ) END AS col2, + 25 col2
----
1
25

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6206
SELECT - CAST( NULL AS SIGNED ) + + - 13 + 70 * - MIN( 83 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6206
SELECT - CAST ( NULL AS INTEGER ) + + - 13 + 70 * - MIN ( 83 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 0 * + 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT + CASE 28 WHEN - + COUNT( * ) + + 74 THEN NULL ELSE + 44 + - - 7 END AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6208
SELECT + CASE 28 WHEN - + COUNT ( * ) + + 74 THEN NULL ELSE + 44 + - - 7 END AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT - 51 / - + COUNT( * ) / + CASE 27 WHEN 90 THEN + + 60 ELSE NULL END * + 73 * + + 19 + - COALESCE ( + + 64, - SUM( - - 72 ), + CASE COUNT( * ) WHEN - + 86 + 64 THEN - COALESCE ( + - 46, + 49 + + - 93 - + 70, 21 ) / 58 WHEN 59 THEN NULL ELSE NULL END ) * - 69 * + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6209
SELECT - 51 / - + COUNT ( * ) / + CASE 27 WHEN 90 THEN + + 60 ELSE NULL END * + 73 * + + 19 + - COALESCE ( + + 64, - SUM ( - - 72 ), + CASE COUNT ( * ) WHEN - + 86 + 64 THEN - COALESCE ( + - 46, + 49 + + - 93 - + 70, 21 ) / 58 WHEN 59 THEN NULL ELSE NULL END ) * - 69 * + 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6210
SELECT ALL + 15 DIV COUNT( * ) * - - 85 + 81 AS col0
----
1356

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL + 15 / COUNT ( * ) * - - 85 + 81 AS col0
----
1356

query I rowsort
SELECT - 81 + - - 53 * + 58
----
2993

onlyif mysql # DIV for integer division: 
query I rowsort label-6212
SELECT ALL - 88 DIV + + 54 + - 64
----
-65

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL - 88 / + + 54 + - 64
----
-65

query II rowsort
SELECT - 45 * + 31 AS col2, 67
----
-1395
67

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

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

query I rowsort
SELECT + 19 + - 5 AS col0
----
14

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6218
SELECT ALL + 20 - + COALESCE ( + 80, + 31, 39 * CASE + COALESCE ( 78, 33 * + 69, - 76 * - 13 ) WHEN - + 83 THEN - 18 * CAST( - 30 AS SIGNED ) * 98 * - 15 - - - 80 END )
----
-60

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL + 20 - + COALESCE ( + 80, + 31, 39 * CASE + COALESCE ( 78, 33 * + 69, - 76 * - 13 ) WHEN - + 83 THEN - 18 * CAST ( - 30 AS INTEGER ) * 98 * - 15 - - - 80 END )
----
-60

query I rowsort
SELECT + COALESCE ( + 37, - 10 ) col2
----
37

query I rowsort
SELECT ALL 25 * - 10 + - 11 AS col0
----
-261

onlyif mysql # aggregate syntax: 
query II rowsort label-6221
SELECT + 35 * + 36 + + + 77 * + 52 + - + 0 - + 87 + - 60 AS col2, COUNT( * ) col2
----
5117
1

skipif mysql # not compatible
query II rowsort label-6221
SELECT + 35 * + 36 + + + 77 * + 52 + - + 0 - + 87 + - 60 AS col2, COUNT ( * ) col2
----
5117
1

query I rowsort
SELECT ALL 83 - - 90 AS col2
----
173

query I rowsort
SELECT DISTINCT + ( - 51 ) * 4
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT SUM( ALL + + 51 ) + + - MAX( - 72 ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-6224
SELECT SUM ( ALL + + 51 ) + + - MAX ( - 72 ) AS col0
----
123

query I rowsort
SELECT - - 91 AS col0
----
91

query I rowsort
SELECT DISTINCT 36 col2
----
36

query I rowsort
SELECT ALL - COALESCE ( NULLIF ( + + 72, + 57 ), - + 82 )
----
-72

query I rowsort
SELECT DISTINCT + + 88 * + - 81 * + 99 col0
----
-705672

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6230
SELECT ( - 67 ) + + - COALESCE ( + + 77, 82 + 84 ), + 98 * + COUNT( * ) AS col1
----
-144
98

skipif mysql # not compatible
query II rowsort label-6230
SELECT ( - 67 ) + + - COALESCE ( + + 77, 82 + 84 ), + 98 * + COUNT ( * ) AS col1
----
-144
98

query I rowsort
SELECT ALL 30 + 73 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT ( - + 74 ) * + MIN( DISTINCT + + 69 ) AS col1
----
-5106

skipif mysql # not compatible
query I rowsort label-6232
SELECT ( - + 74 ) * + MIN ( DISTINCT + + 69 ) AS col1
----
-5106

query I rowsort
SELECT 34 + - + 7 col0
----
27

query I rowsort
SELECT DISTINCT + 68 + - - 23
----
91

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

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL - CAST ( NULL AS INTEGER ) + 83 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 42 AS col0, + 20 AS col1
----
42
20

query I rowsort
SELECT DISTINCT 29 + 84 AS col2
----
113

query I rowsort
SELECT 33 * - + 71
----
-2343

onlyif mysql # DIV for integer division: 
query I rowsort label-6239
SELECT 43 DIV + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6239
SELECT 43 / + 62 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT 42 * - COUNT( DISTINCT - 86 )
----
-42

skipif mysql # not compatible
query I rowsort label-6241
SELECT 42 * - COUNT ( DISTINCT - 86 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6242
SELECT DISTINCT + + 50 * - ( - 62 ) + - - CAST( NULL AS SIGNED ) * + NULLIF ( 99, + 37 * + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT + + 50 * - ( - 62 ) + - - CAST ( NULL AS INTEGER ) * + NULLIF ( 99, + 37 * + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT DISTINCT + - 24 - - - COUNT( * ) - COUNT( * ) * - 89 * + 14 * + 84 AS col1
----
104639

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT + - 24 - - - COUNT ( * ) - COUNT ( * ) * - 89 * + 14 * + 84 AS col1
----
104639

onlyif mysql # aggregate syntax: 
query II rowsort label-6244
SELECT DISTINCT - - 10 AS col2, - NULLIF ( + - 55, + COALESCE ( - + ( COUNT( * ) ), - + 40 / + - 39 + 28 / + 32, 25, + + 7 ) + - 61 * - 73 ) AS col0
----
10
55

skipif mysql # not compatible
query II rowsort label-6244
SELECT DISTINCT - - 10 AS col2, - NULLIF ( + - 55, + COALESCE ( - + ( COUNT ( * ) ), - + 40 / + - 39 + 28 / + 32, 25, + + 7 ) + - 61 * - 73 ) AS col0
----
10
55

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

query I rowsort
SELECT DISTINCT - + 76 AS col2
----
-76

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6248
SELECT 59 + + MIN( + - 48 ) * - - 36 + - 62 + - 84, 23 col2
----
-1815
23

skipif mysql # not compatible
query II rowsort label-6248
SELECT 59 + + MIN ( + - 48 ) * - - 36 + - 62 + - 84, 23 col2
----
-1815
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6250
SELECT ALL - CASE + - 56 WHEN - 14 THEN 42 + - NULLIF ( + 95, + COUNT( * ) ) WHEN 51 THEN 53 * + + 44 + 48 - + 87 ELSE NULL END / + CAST( 24 AS SIGNED ) * + COUNT( - 90 ) + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL - CASE + - 56 WHEN - 14 THEN 42 + - NULLIF ( + 95, + COUNT ( * ) ) WHEN 51 THEN 53 * + + 44 + 48 - + 87 ELSE NULL END / + CAST ( 24 AS INTEGER ) * + COUNT ( - 90 ) + - 68
----
NULL

query I rowsort
SELECT ALL 26 * + 84 + + 14 * 72 * + + 72
----
74760

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

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT - 45 / + COUNT ( * ) col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6253
SELECT ALL COALESCE ( + + 96, + - 48, - - 83 * + CAST( + 14 AS SIGNED ) DIV + 64 - - - 11 ) * 80 + + + COUNT( * )
----
7681

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL COALESCE ( + + 96, + - 48, - - 83 * + CAST ( + 14 AS INTEGER ) / + 64 - - - 11 ) * 80 + + + COUNT ( * )
----
7681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT - + NULLIF ( + - CAST( + ( + + 27 ) AS SIGNED ), + - 96 )
----
27

skipif mysql # not compatible
query I rowsort label-6254
SELECT - + NULLIF ( + - CAST ( + ( + + 27 ) AS INTEGER ), + - 96 )
----
27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6256
SELECT DISTINCT - 87 AS col2, COUNT( * ) DIV - CAST( + + 99 AS SIGNED ) AS col0
----
-87
0

skipif mysql # not compatible
query II rowsort label-6256
SELECT DISTINCT - 87 AS col2, COUNT ( * ) / - CAST ( + + 99 AS INTEGER ) AS col0
----
-87
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT - CASE 41 WHEN + - 66 + - 80 THEN - - 94 + 80 + + 54 + + COUNT( * ) WHEN - - 12 THEN NULL WHEN - 54 THEN - 76 + 60 ELSE 24 END col2
----
-24

skipif mysql # not compatible
query I rowsort label-6257
SELECT - CASE 41 WHEN + - 66 + - 80 THEN - - 94 + 80 + + 54 + + COUNT ( * ) WHEN - - 12 THEN NULL WHEN - 54 THEN - 76 + 60 ELSE 24 END col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6258
SELECT MAX( DISTINCT - - CAST( 74 AS SIGNED ) ) - - 31 * SUM( + + 15 ) AS col2
----
539

skipif mysql # not compatible
query I rowsort label-6258
SELECT MAX ( DISTINCT - - CAST ( 74 AS INTEGER ) ) - - 31 * SUM ( + + 15 ) AS col2
----
539

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT COALESCE ( - + 71, + 66 ) + - SUM( - - 1 ) - + 43
----
-115

skipif mysql # not compatible
query I rowsort label-6260
SELECT COALESCE ( - + 71, + 66 ) + - SUM ( - - 1 ) - + 43
----
-115

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

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

query I rowsort
SELECT ALL 80 col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ALL + COUNT( * ) + + 96 + 92 col1
----
189

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL + COUNT ( * ) + + 96 + 92 col1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT - MAX( 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-6264
SELECT - MAX ( 12 )
----
-12

query I rowsort
SELECT - NULLIF ( - 45, + 65 + - 17 - + 11 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT COUNT( * ) + + 5 * - + 36
----
-179

skipif mysql # not compatible
query I rowsort label-6266
SELECT COUNT ( * ) + + 5 * - + 36
----
-179

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6267
SELECT 17 * + 97 AS col2, 39 DIV + COUNT( * ) AS col2
----
1649
39

skipif mysql # not compatible
query II rowsort label-6267
SELECT 17 * + 97 AS col2, 39 / + COUNT ( * ) AS col2
----
1649
39

query I rowsort
SELECT ALL 16 * 75
----
1200

query I rowsort
SELECT - 28 - - + ( - 15 )
----
-43

query I rowsort
SELECT COALESCE ( + 32, + 53 ) AS col2
----
32

query I rowsort
SELECT - 63 * + + ( 69 ) AS col2
----
-4347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6272
SELECT ALL - 19 * + CAST( + + COUNT( * ) AS SIGNED ) * + 62 * + + CAST( - - 3 AS SIGNED )
----
-3534

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL - 19 * + CAST ( + + COUNT ( * ) AS INTEGER ) * + 62 * + + CAST ( - - 3 AS INTEGER )
----
-3534

query I rowsort
SELECT + 74 + + - 28 col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6274
SELECT + 92 DIV - 2
----
-46

skipif mysql # not compatible
query I rowsort label-6274
SELECT + 92 / - 2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6275
SELECT ALL ( - 58 ) * + CASE 80 WHEN COUNT( * ) DIV + 93 THEN + - COUNT( * ) + ( - 59 ) DIV + 87 - 74 WHEN - COUNT( DISTINCT - - 28 ) THEN NULL ELSE - 73 + 2 * - MIN( DISTINCT + - 76 ) END AS col0, - 93 + 8 col2
----
-4582
-85

skipif mysql # not compatible
query II rowsort label-6275
SELECT ALL ( - 58 ) * + CASE 80 WHEN COUNT ( * ) / + 93 THEN + - COUNT ( * ) + ( - 59 ) / + 87 - 74 WHEN - COUNT ( DISTINCT - - 28 ) THEN NULL ELSE - 73 + 2 * - MIN ( DISTINCT + - 76 ) END AS col0, - 93 + 8 col2
----
-4582
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6276
SELECT - CASE + - CASE 58 WHEN + 98 THEN + 28 + + COUNT( * ) + + 31 WHEN + + COUNT( * ) + NULLIF ( - 72, - 1 ) THEN NULL WHEN + 85 THEN NULL ELSE + 28 + 27 * - COUNT( * ) * + - 46 + + - COALESCE ( + 31, 98 * + ( 43 ) ) / - - 17 END WHEN - 21 * - 2 / - COUNT( * ) THEN + CAST( NULL AS SIGNED ) * + 70 ELSE NULL END * + 16 * + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6276
SELECT - CASE + - CASE 58 WHEN + 98 THEN + 28 + + COUNT ( * ) + + 31 WHEN + + COUNT ( * ) + NULLIF ( - 72, - 1 ) THEN NULL WHEN + 85 THEN NULL ELSE + 28 + 27 * - COUNT ( * ) * + - 46 + + - COALESCE ( + 31, 98 * + ( 43 ) ) / - - 17 END WHEN - 21 * - 2 / - COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) * + 70 ELSE NULL END * + 16 * + 99 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL - + 51 / - 93 * + ( + COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6278
SELECT - 43 * - CAST( NULL AS DECIMAL ) * + 56 + + MAX( DISTINCT + - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6278
SELECT - 43 * - CAST ( NULL AS REAL ) * + 56 + + MAX ( DISTINCT + - 3 )
----
NULL

query I rowsort
SELECT ALL + - 42 AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6280
SELECT + MIN( - - ( + 59 ) ) * + CAST( NULL AS SIGNED ) + - - CASE + + NULLIF ( + - ( + 31 ), 70 + - ( CAST( NULL AS SIGNED ) ) ) WHEN + 4 THEN COUNT( - + 96 ) / + - 28 END - - + 60 + - - 74 + + 28 * - + 94 + + 87 / + ( COUNT( * ) ) + + + 56 / - + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT + MIN ( - - ( + 59 ) ) * + CAST ( NULL AS INTEGER ) + - - CASE + + NULLIF ( + - ( + 31 ), 70 + - ( CAST ( NULL AS INTEGER ) ) ) WHEN + 4 THEN COUNT ( - + 96 ) / + - 28 END - - + 60 + - - 74 + + 28 * - + 94 + + 87 / + ( COUNT ( * ) ) + + + 56 / - + 4 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + + 65 col0
----
65

query II rowsort
SELECT + + ( + 11 ) col0, COALESCE ( 13, - + 79 )
----
11
13

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6285
SELECT - 57 * - NULLIF ( + 9, - 63 * + 27 + - 15 ) * 52 * 41 * + 4 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6285
SELECT - 57 * - NULLIF ( + 9, - 63 * + 27 + - 15 ) * 52 * 41 * + 4 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT DISTINCT + COUNT( * ) * + 78 * COUNT( * ) + 12
----
90

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT + COUNT ( * ) * + 78 * COUNT ( * ) + 12
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6288
SELECT ALL + 52 + 56 DIV - 2
----
24

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL + 52 + 56 / - 2
----
24

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

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

query I rowsort
SELECT DISTINCT - + ( + - 5 ) * - 77 AS col0
----
-385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6291
SELECT DISTINCT + + 42 + COALESCE ( - 52, - + COUNT( ( + 3 ) ) DIV + 15 ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT + + 42 + COALESCE ( - 52, - + COUNT ( ( + 3 ) ) / + 15 ) col1
----
-10

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

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

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

query I rowsort
SELECT ALL + 22 + + 93 AS col0
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6295
SELECT ALL CAST( 58 AS SIGNED ) + - 90 AS col1, 88 col0
----
-32
88

skipif mysql # not compatible
query II rowsort label-6295
SELECT ALL CAST ( 58 AS INTEGER ) + - 90 AS col1, 88 col0
----
-32
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6296
SELECT ALL COUNT( * ) + - + ( - - 3 ) AS col1, + 6 * + 82 * + 29 - - 37
----
-2
14305

skipif mysql # not compatible
query II rowsort label-6296
SELECT ALL COUNT ( * ) + - + ( - - 3 ) AS col1, + 6 * + 82 * + 29 - - 37
----
-2
14305

query I rowsort
SELECT - 41 * - - 25 col2
----
-1025

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT + 58 + 72 * + COUNT( + - 87 )
----
130

skipif mysql # not compatible
query I rowsort label-6298
SELECT + 58 + 72 * + COUNT ( + - 87 )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT - MAX( - 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6299
SELECT - MAX ( - 55 ) AS col0
----
55

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6302
SELECT - 5 * + SUM( - 46 ) / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT - 5 * + SUM ( - 46 ) / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6303
SELECT - 81 * - COUNT ( * ) / - MAX ( ALL + 82 )
----
0

query II rowsort
SELECT 76, 39 AS col0
----
76
39

query I rowsort
SELECT DISTINCT 10 - + - 49 + 37 * 54 - ( + 55 ) + - 41 AS col2
----
1961

query II rowsort
SELECT ALL 56, 86 AS col2
----
56
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6307
SELECT + 51 * - CAST( + + 27 AS SIGNED )
----
-1377

skipif mysql # not compatible
query I rowsort label-6307
SELECT + 51 * - CAST ( + + 27 AS INTEGER )
----
-1377

query II rowsort
SELECT ALL + 23 AS col2, 61 + - 73
----
23
-12

query I rowsort
SELECT + COALESCE ( + 64, + 66, + + 99 )
----
64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6310
SELECT CAST( + CAST( + NULLIF ( + COALESCE ( 80, + 49 ), - 67 ) AS DECIMAL ) AS SIGNED ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6310
SELECT CAST ( + CAST ( + NULLIF ( + COALESCE ( 80, + 49 ), - 67 ) AS REAL ) AS INTEGER ) AS col2
----
80

query II rowsort
SELECT ALL + 97, + 2 col1
----
97
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6312
SELECT CAST( + + ( - 81 ) AS SIGNED ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-6312
SELECT CAST ( + + ( - 81 ) AS INTEGER ) AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6313
SELECT - + CAST( 88 AS SIGNED ) * - 8 AS col1
----
704

skipif mysql # not compatible
query I rowsort label-6313
SELECT - + CAST ( 88 AS INTEGER ) * - 8 AS col1
----
704

query I rowsort
SELECT + - 77 * 15 * - + 36 + - + 88
----
41492

onlyif mysql # aggregate syntax: 
query II rowsort label-6315
SELECT 66 * + 65 - - 41 + - COUNT( * ) * - COUNT( * ) AS col0, 28 * + + COUNT( * ) AS col1
----
4332
28

skipif mysql # not compatible
query II rowsort label-6315
SELECT 66 * + 65 - - 41 + - COUNT ( * ) * - COUNT ( * ) AS col0, 28 * + + COUNT ( * ) AS col1
----
4332
28

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6317
SELECT + - 76 DIV 18 DIV + 43 * 7 - - + 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-6317
SELECT + - 76 / 18 / + 43 * 7 - - + 69 AS col0
----
69

query I rowsort
SELECT + 86 col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6319
SELECT + 32 * - MAX( ( ( + 53 ) ) ) AS col0, - COUNT( * ) + + - 81 * - - MIN( - + 50 ) AS col2
----
-1696
4049

skipif mysql # not compatible
query II rowsort label-6319
SELECT + 32 * - MAX ( ( ( + 53 ) ) ) AS col0, - COUNT ( * ) + + - 81 * - - MIN ( - + 50 ) AS col2
----
-1696
4049

onlyif mysql # DIV for integer division: 
query I rowsort label-6320
SELECT + + 0 DIV + - 30 * - 34 col1
----
0

skipif mysql # not compatible
query I rowsort label-6320
SELECT + + 0 / + - 30 * - 34 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6321
SELECT DISTINCT CAST( + 27 AS SIGNED ) * - 64 * - COUNT( ALL 60 ) + - - 21 AS col1
----
1749

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT CAST ( + 27 AS INTEGER ) * - 64 * - COUNT ( ALL 60 ) + - - 21 AS col1
----
1749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6322
SELECT + 59 / - - CASE - + 86 WHEN - 41 THEN 73 + - + 45 + - 4 * + 71 * 34 * 87 / + + 58 / + 62 * 48 WHEN CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT + 59 / - - CASE - + 86 WHEN - 41 THEN 73 + - + 45 + - 4 * + 71 * 34 * 87 / + + 58 / + 62 * 48 WHEN CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT - COUNT( * ) * - 67 - - 69
----
136

skipif mysql # not compatible
query I rowsort label-6323
SELECT - COUNT ( * ) * - 67 - - 69
----
136

query I rowsort
SELECT ALL + 45 * + 3 AS col2
----
135

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

query II rowsort
SELECT ALL + - 21 AS col2, 10 AS col1
----
-21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6327
SELECT - + 1 DIV + NULLIF ( 99, 37 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6327
SELECT - + 1 / + NULLIF ( 99, 37 ) AS col1
----
0

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

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

query I rowsort
SELECT - - 26 * + 15
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT ALL + - 2 * - NULLIF ( 33, + - 41 ) * + 7 + + COUNT( * ) AS col1
----
463

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL + - 2 * - NULLIF ( 33, + - 41 ) * + 7 + + COUNT ( * ) AS col1
----
463

query II rowsort
SELECT 15 * - ( - + 47 ) + 5 + 64 col2, + 25
----
774
25

query II rowsort
SELECT + 44 AS col1, 89 AS col0
----
44
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL NULLIF ( + + 63, + 15 * - MIN( 57 ) ) * - 0 * 16 + - COALESCE ( - - 52, + - 32 )
----
-52

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL NULLIF ( + + 63, + 15 * - MIN ( 57 ) ) * - 0 * 16 + - COALESCE ( - - 52, + - 32 )
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-6335
SELECT DISTINCT MIN( + 12 ) AS col0, + 24 AS col2
----
12
24

skipif mysql # not compatible
query II rowsort label-6335
SELECT DISTINCT MIN ( + 12 ) AS col0, + 24 AS col2
----
12
24

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

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

query I rowsort
SELECT + 29 * + 43 AS col1
----
1247

onlyif mysql # aggregate syntax: 
query II rowsort label-6338
SELECT - COUNT( * ), 10 * - - 39 AS col0
----
-1
390

skipif mysql # not compatible
query II rowsort label-6338
SELECT - COUNT ( * ), 10 * - - 39 AS col0
----
-1
390

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

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - COUNT ( * ) * 28 / + + COUNT ( ALL - + 5 ) AS col1
----
-28

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

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) - + + 38 - 69
----
NULL

query I rowsort
SELECT 23 + 49
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6342
SELECT 26 DIV + 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6342
SELECT 26 / + 43 AS col2
----
0

query II rowsort
SELECT 23, - 7 col0
----
23
-7

query I rowsort
SELECT DISTINCT 4 col0
----
4

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

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

query I rowsort
SELECT DISTINCT 80 * - 98
----
-7840

onlyif mysql # DIV for integer division: 
query I rowsort label-6347
SELECT DISTINCT + 1 DIV - 3
----
0

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT + 1 / - 3
----
0

query I rowsort
SELECT DISTINCT 57 * - 2
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-6349
SELECT 42 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-6349
SELECT 42 / - 93
----
0

query I rowsort
SELECT ALL + 84 * + 83
----
6972

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT 48 + - 84 + + 23 + + + NULLIF ( + 48, 93 ) * + - 5 * - 10 + - + COUNT( * ) AS col2
----
2386

skipif mysql # not compatible
query I rowsort label-6351
SELECT 48 + - 84 + + 23 + + + NULLIF ( + 48, 93 ) * + - 5 * - 10 + - + COUNT ( * ) AS col2
----
2386

query I rowsort
SELECT 63 - + + 53 + - 50 col2
----
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT + 30 + ( + - CASE - - ( NULLIF ( - COUNT( DISTINCT 35 ), - 36 ) ) WHEN - 44 THEN NULL WHEN + + 41 THEN 12 END ) / - 68 * 34 / + 71 + 62 + + + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6354
SELECT + 30 + ( + - CASE - - ( NULLIF ( - COUNT ( DISTINCT 35 ), - 36 ) ) WHEN - 44 THEN NULL WHEN + + 41 THEN 12 END ) / - 68 * 34 / + 71 + 62 + + + 33 AS col2
----
NULL

query I rowsort
SELECT ALL + ( - 74 ) + - 69
----
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-6356
SELECT + - ( COALESCE ( 26, + + 67 ) ) AS col2, + CASE - + COUNT( * ) WHEN - - 71 + + - 18 THEN NULL WHEN + 90 THEN + 67 END AS col0
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-6356
SELECT + - ( COALESCE ( 26, + + 67 ) ) AS col2, + CASE - + COUNT ( * ) WHEN - - 71 + + - 18 THEN NULL WHEN + 90 THEN + 67 END AS col0
----
-26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT ALL - COUNT( ALL 64 ) + 80 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL - COUNT ( ALL 64 ) + 80 AS col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6358
SELECT - 53 + 63 DIV - 7
----
-62

skipif mysql # not compatible
query I rowsort label-6358
SELECT - 53 + 63 / - 7
----
-62

query II rowsort
SELECT DISTINCT + 57 + + ( 21 ) + 40 AS col1, 17 + 50
----
118
67

query I rowsort
SELECT ALL 49 + - + 49 + - - 78 AS col2
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6361
SELECT DISTINCT - 66 DIV SUM( ALL - 21 ) * + 36
----
108

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT - 66 / SUM ( ALL - 21 ) * + 36
----
108

query I rowsort
SELECT - 93 + + 50 AS col2
----
-43

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

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

query I rowsort
SELECT + 2 * + COALESCE ( - 98, - - 4 - - 57 ) + - 65 + + - 48 AS col0
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL - 33 * + COALESCE ( - - COUNT( * ), - 85 * + - 7 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL - 33 * + COALESCE ( - - COUNT ( * ), - 85 * + - 7 ) AS col2
----
-33

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

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

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

query I rowsort
SELECT + 69 * - 52
----
-3588

query I rowsort
SELECT ALL 38 * + + 37 + + 13 + + 51 - - 35 AS col2
----
1505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6370
SELECT ALL - COUNT( ALL 29 ) - + 56 DIV - 94 + + 83 * 47 AS col0
----
3900

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL - COUNT ( ALL 29 ) - + 56 / - 94 + + 83 * 47 AS col0
----
3900

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

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

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

skipif mysql # not compatible
query I rowsort label-6372
SELECT ( + 91 ) / - COUNT ( * ) AS col2
----
-91

query I rowsort
SELECT NULLIF ( - 54, - 77 ) * - 54 + - 76 * 54 AS col1
----
-1188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6374
SELECT CAST( NULL AS SIGNED ) * 89 AS col0, - 36
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-6374
SELECT CAST ( NULL AS INTEGER ) * 89 AS col0, - 36
----
NULL
-36

query I rowsort
SELECT ALL 0 - - 29 + + CASE - 12 WHEN 47 THEN + - 77 * + - 16 ELSE NULL END - - 95 * + 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT 17 * NULLIF ( - - 3, - - SUM( + 4 ) + ( + + 65 ) ) * - 34 * + 71
----
-123114

skipif mysql # not compatible
query I rowsort label-6376
SELECT 17 * NULLIF ( - - 3, - - SUM ( + 4 ) + ( + + 65 ) ) * - 34 * + 71
----
-123114

query I rowsort
SELECT 23 + - 70 + - 87 AS col0
----
-134

query I rowsort
SELECT ALL - 15 * 70 AS col2
----
-1050

query II rowsort
SELECT 58 + 41 AS col2, 70 AS col1
----
99
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT ALL NULLIF ( - MAX( DISTINCT - - 72 ), + - 70 ) * 4 + + 64 AS col0
----
-224

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL NULLIF ( - MAX ( DISTINCT - - 72 ), + - 70 ) * 4 + + 64 AS col0
----
-224

query I rowsort
SELECT 68 + 45 AS col1
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT ALL 51 * 88 * - CAST( + + 4 AS SIGNED )
----
-17952

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL 51 * 88 * - CAST ( + + 4 AS INTEGER )
----
-17952

query I rowsort
SELECT 77 + 49
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ALL - 52 + - MAX( ALL - NULLIF ( - ( + 29 ), + 52 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL - 52 + - MAX ( ALL - NULLIF ( - ( + 29 ), + 52 ) )
----
-81

query I rowsort
SELECT ALL + 97 * + 68
----
6596

query I rowsort
SELECT 87 * - - 53
----
4611

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT ALL - MIN( + 70 ) + - 77 AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL - MIN ( + 70 ) + - 77 AS col1
----
-147

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT + SUM( + + COALESCE ( + 12, + 85 ) ) + - + 16
----
-4

skipif mysql # not compatible
query I rowsort label-6389
SELECT + SUM ( + + COALESCE ( + 12, + 85 ) ) + - + 16
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6390
SELECT ALL + SUM( 43 ) AS col1, 61
----
43
61

skipif mysql # not compatible
query II rowsort label-6390
SELECT ALL + SUM ( 43 ) AS col1, 61
----
43
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT ALL + MIN( + 80 ) + + + 1 * + COUNT( ALL + - ( + 22 ) )
----
81

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL + MIN ( + 80 ) + + + 1 * + COUNT ( ALL + - ( + 22 ) )
----
81

query I rowsort
SELECT 11 * 97 * + 65
----
69355

query I rowsort
SELECT - NULLIF ( - + 90, - 70 ) AS col2
----
90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT - 50 DIV 37 + 62
----
61

skipif mysql # not compatible
query I rowsort label-6395
SELECT - 50 / 37 + 62
----
61

query I rowsort
SELECT ALL 48 * + 52 + + 15 + - + 8
----
2503

query I rowsort
SELECT 90 * - - 99 AS col1
----
8910

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL - COUNT( * ) * SUM( - + 92 ) + - 78 + 88
----
102

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL - COUNT ( * ) * SUM ( - + 92 ) + - 78 + 88
----
102

query II rowsort
SELECT - 8 * + 9 AS col0, 18 + 32 * - - 20 AS col0
----
-72
658

query I rowsort
SELECT + + 95 col1
----
95

query I rowsort
SELECT + 86 * + 82 AS col1
----
7052

query I rowsort
SELECT ALL - ( 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT ALL + + 85 * - COUNT( * ) * 29 col2
----
-2465

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL + + 85 * - COUNT ( * ) * 29 col2
----
-2465

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT DISTINCT - - 82 * - 75 - - MIN( + 67 )
----
-6083

skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT - - 82 * - 75 - - MIN ( + 67 )
----
-6083

query I rowsort
SELECT + COALESCE ( - 8, - 95 ) AS col0
----
-8

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

query I rowsort
SELECT ALL + 43 * + + 88
----
3784

query I rowsort
SELECT - + 45 * + 7 + 89 - + 14
----
-240

query I rowsort
SELECT DISTINCT - ( - 48 ) AS col0
----
48

query I rowsort
SELECT ALL - 91 - + ( - 88 ) - 18 * + - 38
----
681

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

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

query I rowsort
SELECT - 6 * + - 27 AS col2
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6413
SELECT ALL ( + + COALESCE ( + COALESCE ( COUNT( * ), 98, + 52, 48, 56 ), - COALESCE ( - - 92, 66 ) ) ) DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL ( + + COALESCE ( + COALESCE ( COUNT ( * ), 98, + 52, 48, 56 ), - COALESCE ( - - 92, 66 ) ) ) / - 96
----
0

query I rowsort
SELECT - 82 + 26 + + + ( - + ( + - 52 ) ) - - NULLIF ( 31, 52 - 39 ) * + ( - 84 ) col2
----
-2608

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT + COALESCE ( - SUM( + 84 ), + 93 ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-6415
SELECT + COALESCE ( - SUM ( + 84 ), + 93 ) col2
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-6416
SELECT ALL + 97 col0, COUNT( * ) + - - 26
----
97
27

skipif mysql # not compatible
query II rowsort label-6416
SELECT ALL + 97 col0, COUNT ( * ) + - - 26
----
97
27

query I rowsort
SELECT DISTINCT 87 * - - 48 AS col0
----
4176

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6419
SELECT DISTINCT 93 + CAST( - - 35 AS SIGNED ) AS col0, ( 84 ) + + 19 + 1 * - + COUNT( * ) * - 6 + COUNT( ALL 74 )
----
128
110

skipif mysql # not compatible
query II rowsort label-6419
SELECT DISTINCT 93 + CAST ( - - 35 AS INTEGER ) AS col0, ( 84 ) + + 19 + 1 * - + COUNT ( * ) * - 6 + COUNT ( ALL 74 )
----
128
110

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT DISTINCT + COUNT( * ) + 60 + + 53 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT + COUNT ( * ) + 60 + + 53 AS col2
----
114

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT ALL 86 + - - COUNT( * ) * COUNT( * ) * - - ( + 6 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL 86 + - - COUNT ( * ) * COUNT ( * ) * - - ( + 6 ) AS col0
----
92

query I rowsort
SELECT ALL 4 + - 42 * + - 34 - + + 36 + + 99 AS col0
----
1495

query I rowsort
SELECT + 10 + + 66 + - 11 + + 52 * - 92
----
-4719

query II rowsort
SELECT ALL 64, - 57 AS col2
----
64
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT - 92 * + COALESCE ( + 7, + 78 * - 76 * COUNT( * ) )
----
-644

skipif mysql # not compatible
query I rowsort label-6427
SELECT - 92 * + COALESCE ( + 7, + 78 * - 76 * COUNT ( * ) )
----
-644

query I rowsort
SELECT DISTINCT 97 + + 58 AS col1
----
155

query II rowsort
SELECT DISTINCT 38 col2, ( - 56 ) AS col1
----
38
-56

query I rowsort
SELECT ALL + + 38 * 32
----
1216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6431
SELECT DISTINCT - CAST( - 13 AS SIGNED ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT - CAST ( - 13 AS INTEGER ) AS col2
----
13

query I rowsort
SELECT DISTINCT 86 + 53 * + NULLIF ( - - 50, + + 34 - 4 ) AS col1
----
2736

query I rowsort
SELECT DISTINCT + - 88 * 46 * + + 6 AS col0
----
-24288

query I rowsort
SELECT - + 63 + + - 70 AS col0
----
-133

query I rowsort
SELECT ALL + 57 + + 95 AS col1
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6436
SELECT 2 * CASE - + 29 WHEN - CAST( 29 AS SIGNED ) + + COUNT( * ) THEN + 7 END + CASE CAST( NULL AS SIGNED ) WHEN 81 * - + 1 THEN + + 51 END + + + 46 * + 68 + CAST( NULL AS SIGNED ) + - 21 + - + CAST( + MAX( + + 44 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6436
SELECT 2 * CASE - + 29 WHEN - CAST ( 29 AS INTEGER ) + + COUNT ( * ) THEN + 7 END + CASE CAST ( NULL AS INTEGER ) WHEN 81 * - + 1 THEN + + 51 END + + + 46 * + 68 + CAST ( NULL AS INTEGER ) + - 21 + - + CAST ( + MAX ( + + 44 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6437
SELECT - - 39 * + 56 * 29 * + 43 - + SUM( DISTINCT + - ( - 94 ) ) DIV - 14
----
2723454

skipif mysql # not compatible
query I rowsort label-6437
SELECT - - 39 * + 56 * 29 * + 43 - + SUM ( DISTINCT + - ( - 94 ) ) / - 14
----
2723454

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT ALL + MIN( + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL + MIN ( + 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL + - 39 * + - COALESCE ( - COUNT( * ), - 92 + 43 ) - + 70 - 67 * + - 90 + - 47
----
5874

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL + - 39 * + - COALESCE ( - COUNT ( * ), - 92 + 43 ) - + 70 - 67 * + - 90 + - 47
----
5874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT - 24 * CAST( 12 AS SIGNED )
----
-288

skipif mysql # not compatible
query I rowsort label-6440
SELECT - 24 * CAST ( 12 AS INTEGER )
----
-288

onlyif mysql # aggregate syntax: 
query II rowsort label-6441
SELECT DISTINCT + + COUNT( * ), - MIN( ALL + + 53 ) AS col0
----
1
-53

skipif mysql # not compatible
query II rowsort label-6441
SELECT DISTINCT + + COUNT ( * ), - MIN ( ALL + + 53 ) AS col0
----
1
-53

query I rowsort
SELECT ALL - 50 * 63 * + + 48 AS col1
----
-151200

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

query I rowsort
SELECT - + 76 * 16
----
-1216

query I rowsort
SELECT NULLIF ( - - 69, - + 75 ) AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT - 12 DIV 47 * + 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6446
SELECT - 12 / 47 * + 38 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6447
SELECT ALL - 87 * - ( + - 84 ) * + + 15 AS col1, + 24 * - + COUNT( * ) AS col1
----
-109620
-24

skipif mysql # not compatible
query II rowsort label-6447
SELECT ALL - 87 * - ( + - 84 ) * + + 15 AS col1, + 24 * - + COUNT ( * ) AS col1
----
-109620
-24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6449
SELECT CASE - 53 WHEN + 74 THEN - - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN NULL END col0, - 15
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-6449
SELECT CASE - 53 WHEN + 74 THEN - - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN NULL END col0, - 15
----
NULL
-15

query I rowsort
SELECT - 58 * 88 * + - 47 * 27
----
6476976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6451
SELECT DISTINCT + 42 * - - 0 DIV CAST( - COUNT( * ) AS SIGNED ) DIV 4 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT + 42 * - - 0 / CAST ( - COUNT ( * ) AS INTEGER ) / 4 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6452
SELECT - COUNT( * ) * - ( - + ( + 96 ) ) * - - 58 * - + COUNT( * ) + + 24 AS col0, - 87
----
5592
-87

skipif mysql # not compatible
query II rowsort label-6452
SELECT - COUNT ( * ) * - ( - + ( + 96 ) ) * - - 58 * - + COUNT ( * ) + + 24 AS col0, - 87
----
5592
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT COALESCE ( + + 22, - - CASE - COALESCE ( + + 11, + 24 ) WHEN + - 48 THEN + + ( + 88 ) + CASE + + NULLIF ( - 14, + + ( + 98 ) * + 57 * - 39 + + + COUNT( * ) + 11 ) WHEN - 0 THEN + 80 END WHEN + 87 THEN 59 ELSE NULL END ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-6453
SELECT COALESCE ( + + 22, - - CASE - COALESCE ( + + 11, + 24 ) WHEN + - 48 THEN + + ( + 88 ) + CASE + + NULLIF ( - 14, + + ( + 98 ) * + 57 * - 39 + + + COUNT ( * ) + 11 ) WHEN - 0 THEN + 80 END WHEN + 87 THEN 59 ELSE NULL END ) AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6454
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col2, 1 * + 1
----
1
1

skipif mysql # not compatible
query II rowsort label-6454
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2, 1 * + 1
----
1
1

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 98 + + 61
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-6460
SELECT DISTINCT - 80 DIV + 75 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT - 80 / + 75 col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6461
SELECT ALL CAST( + 60 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL CAST ( + 60 AS INTEGER )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT ALL 33 + - CAST( 97 AS SIGNED ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL 33 + - CAST ( 97 AS INTEGER ) AS col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6463
SELECT ALL - CASE + 59 WHEN 90 THEN NULL ELSE + 24 END AS col1, + 10 + 54 * + CAST( - 0 AS SIGNED )
----
-24
10

skipif mysql # not compatible
query II rowsort label-6463
SELECT ALL - CASE + 59 WHEN 90 THEN NULL ELSE + 24 END AS col1, + 10 + 54 * + CAST ( - 0 AS INTEGER )
----
-24
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT + + 67 + - 76 + - + ( + 37 ) * - 17 + COUNT( * ) col2
----
621

skipif mysql # not compatible
query I rowsort label-6464
SELECT + + 67 + - 76 + - + ( + 37 ) * - 17 + COUNT ( * ) col2
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT DISTINCT + MIN( 59 ) + - 9 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT + MIN ( 59 ) + - 9 AS col2
----
50

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

skipif mysql # not compatible
query I rowsort label-6466
SELECT + - 92 + ( - COUNT ( DISTINCT + 49 ) ) * + COUNT ( * ) + + 1 AS col0
----
-92

query I rowsort
SELECT + + 23 * - + 75 * + 65 AS col2
----
-112125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6468
SELECT - ( - - 79 ) col0, 32 DIV - ( + 77 ) * + + MIN( - - ( - 42 ) ) AS col2
----
-79
0

skipif mysql # not compatible
query II rowsort label-6468
SELECT - ( - - 79 ) col0, 32 / - ( + 77 ) * + + MIN ( - - ( - 42 ) ) AS col2
----
-79
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6469
SELECT + 72 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-6469
SELECT + 72 / 45
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT DISTINCT + 79 - NULLIF ( + 18, + 34 ) + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT + 79 - NULLIF ( + 18, + 34 ) + COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT NULLIF ( - 5, - 56 * COUNT( * ) * - 7 ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-6472
SELECT NULLIF ( - 5, - 56 * COUNT ( * ) * - 7 ) col2
----
-5

query II rowsort
SELECT ALL - 46 - - - NULLIF ( - ( 29 ), + 96 * 61 ) + - - 70 * 3 + - 31, - 94 + - 71 * 13 * - 38 AS col1
----
162
34980

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT DISTINCT - 54 * - - COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT - 54 * - - COUNT ( * ) AS col1
----
-54

query I rowsort
SELECT ALL NULLIF ( - 64, - 95 + + + 75 / + 36 ) AS col1
----
-64

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

query I rowsort
SELECT ALL - + 18 * + + 39 AS col1
----
-702

query I rowsort
SELECT - 88 * 67
----
-5896

query I rowsort
SELECT - 15 - + 46
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL - COALESCE ( - + COUNT( * ), - NULLIF ( 72, - COALESCE ( 43, + 24 * 66, - 38 + 21 ) * - 48 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL - COALESCE ( - + COUNT ( * ), - NULLIF ( 72, - COALESCE ( 43, + 24 * 66, - 38 + 21 ) * - 48 ) )
----
1

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

query I rowsort
SELECT 46 * 85
----
3910

query I rowsort
SELECT ALL 41 + 94
----
135

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

query I rowsort
SELECT DISTINCT - 56 + 29 - - + 19 * + + 53 * 28 AS col0
----
28169

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL + 1 + 15 * + + 45 + + COUNT( * ) col1
----
677

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL + 1 + 15 * + + 45 + + COUNT ( * ) col1
----
677

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT + 81 * + COUNT( * ) - 61 + + 76 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6487
SELECT + 81 * + COUNT ( * ) - 61 + + 76 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT ALL - CASE 32 WHEN - COUNT( * ) THEN - + 61 ELSE - 9 END AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL - CASE 32 WHEN - COUNT ( * ) THEN - + 61 ELSE - 9 END AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT COUNT( * ) * - - 55 + 44 * - - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-6489
SELECT COUNT ( * ) * - - 55 + 44 * - - COUNT ( * )
----
99

query I rowsort
SELECT 71 - - - 55
----
16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT + ( 15 ) * 61 + + - COUNT( * ) + + 31 + - + 70 AS col2
----
875

skipif mysql # not compatible
query I rowsort label-6492
SELECT + ( 15 ) * 61 + + - COUNT ( * ) + + 31 + - + 70 AS col2
----
875

query II rowsort
SELECT 58 * 23 * - 7 col2, + 29 * - + COALESCE ( 82, - - 80 * 98 + + 56 ) AS col0
----
-9338
-2378

query I rowsort
SELECT 61 + + 55 AS col2
----
116

query I rowsort
SELECT 96 * + - 92 AS col2
----
-8832

query I rowsort
SELECT + 52 col1
----
52

query I rowsort
SELECT 71 + + 40
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT ALL - 93 * + CASE 18 WHEN + + 7 / - 44 + - - 45 + 0 THEN 73 * MAX( - + 92 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL - 93 * + CASE 18 WHEN + + 7 / - 44 + - - 45 + 0 THEN 73 * MAX ( - + 92 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT ALL + 39 + 85 + - 74 + - + 15 + - 28 + + 16 + - 68 - - 66 * MIN( DISTINCT + + 84 ) * + - ( + 86 ) AS col1
----
-476829

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL + 39 + 85 + - 74 + - + 15 + - 28 + + 16 + - 68 - - 66 * MIN ( DISTINCT + + 84 ) * + - ( + 86 ) AS col1
----
-476829

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT COUNT( * ) + 75 * + COUNT( DISTINCT 26 ) col2
----
76

skipif mysql # not compatible
query I rowsort label-6500
SELECT COUNT ( * ) + 75 * + COUNT ( DISTINCT 26 ) col2
----
76

query I rowsort
SELECT 83 + 56
----
139

query I rowsort
SELECT 86 * - 57 col1
----
-4902

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6504
SELECT 92 + + 76 DIV 28 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-6504
SELECT 92 + + 76 / 28 AS col0
----
94

query I rowsort
SELECT DISTINCT 8 * 75
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT COUNT( * ) + + MIN( ALL 40 )
----
41

skipif mysql # not compatible
query I rowsort label-6506
SELECT COUNT ( * ) + + MIN ( ALL 40 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT ALL COUNT( * ) * 37
----
37

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL COUNT ( * ) * 37
----
37

query I rowsort
SELECT 11 * COALESCE ( + 83, 4 + 6, + 11 * - NULLIF ( - 85, - 80 ), + 42 ) AS col0
----
913

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT ALL - 31 DIV - 6 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL - 31 / - 6 AS col1
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6510
SELECT 18 - 45 * + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6510
SELECT 18 - 45 * + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT DISTINCT 43 col0
----
43

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

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL COUNT ( * ) * 16 AS col2
----
16

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

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

query I rowsort
SELECT 17 + 86 AS col1
----
103

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6515
SELECT CASE + 23 WHEN - 28 THEN NULL WHEN 83 * + CAST( NULL AS DECIMAL ) + + 53 THEN NULL ELSE - 84 END DIV - 78
----
1

skipif mysql # not compatible
query I rowsort label-6515
SELECT CASE + 23 WHEN - 28 THEN NULL WHEN 83 * + CAST ( NULL AS REAL ) + + 53 THEN NULL ELSE - 84 END / - 78
----
1

query I rowsort
SELECT DISTINCT + 87 + + 17
----
104

query I rowsort
SELECT ALL - 7 col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT ALL 29 * COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL 29 * COUNT ( * ) AS col2
----
29

query I rowsort
SELECT DISTINCT 0 + - 32
----
-32

query I rowsort
SELECT ALL - 69 + 38 * + 73
----
2705

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

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

query I rowsort
SELECT + 14 * ( ( 87 ) ) + 32 * 26 col0
----
2050

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT + SUM( + ( + 73 ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-6523
SELECT + SUM ( + ( + 73 ) ) AS col1
----
73

query I rowsort
SELECT 81 + 76 AS col0
----
157

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

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

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

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

query I rowsort
SELECT ALL 63 + 13
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT + SUM( DISTINCT 3 )
----
3

skipif mysql # not compatible
query I rowsort label-6528
SELECT + SUM ( DISTINCT 3 )
----
3

query I rowsort
SELECT 96 + - 2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6530
SELECT ALL - COALESCE ( + 38, - CAST( NULL AS SIGNED ) * + 99 + 27 )
----
-38

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL - COALESCE ( + 38, - CAST ( NULL AS INTEGER ) * + 99 + 27 )
----
-38

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6532
SELECT MIN( 7 ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-6532
SELECT MIN ( 7 ) / 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT + SUM( DISTINCT - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-6533
SELECT + SUM ( DISTINCT - 21 )
----
-21

query I rowsort
SELECT ALL 27 - 53
----
-26

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

query I rowsort
SELECT 96 * 12
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT 2 + MIN( DISTINCT + 41 )
----
43

skipif mysql # not compatible
query I rowsort label-6537
SELECT 2 + MIN ( DISTINCT + 41 )
----
43

query I rowsort
SELECT 12 + + 76
----
88

query I rowsort
SELECT ALL + ( - 14 ) * 7
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6540
SELECT - 45 DIV MIN( 9 )
----
-5

skipif mysql # not compatible
query I rowsort label-6540
SELECT - 45 / MIN ( 9 )
----
-5

query I rowsort
SELECT 70 * 36
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT CASE - 15 WHEN COALESCE ( 30, + 37, 68 * - COUNT( * ), + SUM( DISTINCT + 31 ) + + 12 * 64 ) + + 30 THEN NULL WHEN 81 THEN 6 END - MAX( DISTINCT + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6542
SELECT CASE - 15 WHEN COALESCE ( 30, + 37, 68 * - COUNT ( * ), + SUM ( DISTINCT + 31 ) + + 12 * 64 ) + + 30 THEN NULL WHEN 81 THEN 6 END - MAX ( DISTINCT + 13 )
----
NULL

query I rowsort
SELECT + 28 * 50
----
1400

query I rowsort
SELECT ALL - ( + 51 ) * + 57 AS col1
----
-2907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6545
SELECT CAST( 97 AS SIGNED ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6545
SELECT CAST ( 97 AS INTEGER ) AS col2
----
97

query I rowsort
SELECT ALL ( - 36 )
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6547
SELECT ( ( + 50 ) ) DIV COALESCE ( 18, - 78, - 92 DIV 26 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6547
SELECT ( ( + 50 ) ) / COALESCE ( 18, - 78, - 92 / 26 ) AS col2
----
2

query I rowsort
SELECT + 94 * - 73 AS col0
----
-6862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6549
SELECT - 3 + CAST( + 44 AS SIGNED ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6549
SELECT - 3 + CAST ( + 44 AS INTEGER ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT DISTINCT + NULLIF ( NULLIF ( + MIN( DISTINCT + 58 ), - 53 + + 47 ), ( + 13 ) )
----
58

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT + NULLIF ( NULLIF ( + MIN ( DISTINCT + 58 ), - 53 + + 47 ), ( + 13 ) )
----
58

query I rowsort
SELECT - 30 * - 83
----
2490

query I rowsort
SELECT ALL - + 34 + - 40 * 71 AS col0
----
-2874

query I rowsort
SELECT DISTINCT + 61 + 99
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6554
SELECT ALL + + 59 * NULLIF ( CAST( + 88 AS SIGNED ), - 14 * 42 )
----
5192

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL + + 59 * NULLIF ( CAST ( + 88 AS INTEGER ), - 14 * 42 )
----
5192

query I rowsort
SELECT ALL + - 42 + + 87 col1
----
45

query I rowsort
SELECT DISTINCT 45 + - 4 AS col2
----
41

query I rowsort
SELECT ALL 50 + + 55 col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ALL COALESCE ( - + 11, - 73, + CASE CASE COUNT( * ) WHEN ( 19 ) THEN 61 / - ( 61 ) + - 37 * + COUNT( * ) WHEN + 29 * - 17 + + ( + 72 ) THEN 7 END WHEN ( 46 ) THEN + COUNT( * ) * COUNT( * ) END + COALESCE ( + 49, + MIN( ALL + 97 ) + 27 ) * 59 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL COALESCE ( - + 11, - 73, + CASE CASE COUNT ( * ) WHEN ( 19 ) THEN 61 / - ( 61 ) + - 37 * + COUNT ( * ) WHEN + 29 * - 17 + + ( + 72 ) THEN 7 END WHEN ( 46 ) THEN + COUNT ( * ) * COUNT ( * ) END + COALESCE ( + 49, + MIN ( ALL + 97 ) + 27 ) * 59 ) AS col2
----
-11

query I rowsort
SELECT ALL 23 + + - 57 + 33
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6560
SELECT + NULLIF ( + + ( 5 ), 11 * + CAST( COUNT( * ) AS SIGNED ) ) * + 99
----
495

skipif mysql # not compatible
query I rowsort label-6560
SELECT + NULLIF ( + + ( 5 ), 11 * + CAST ( COUNT ( * ) AS INTEGER ) ) * + 99
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT CASE + + COUNT( * ) WHEN - 81 THEN NULL ELSE - 22 * 20 + 55 END
----
-385

skipif mysql # not compatible
query I rowsort label-6561
SELECT CASE + + COUNT ( * ) WHEN - 81 THEN NULL ELSE - 22 * 20 + 55 END
----
-385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6562
SELECT + 72 DIV - COUNT( * ) - + 78
----
-150

skipif mysql # not compatible
query I rowsort label-6562
SELECT + 72 / - COUNT ( * ) - + 78
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6563
SELECT + COALESCE ( - + 23, + CAST( + 96 AS SIGNED ) * 45 + 4 )
----
-23

skipif mysql # not compatible
query I rowsort label-6563
SELECT + COALESCE ( - + 23, + CAST ( + 96 AS INTEGER ) * 45 + 4 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT + 69 + - MAX( DISTINCT 82 )
----
-13

skipif mysql # not compatible
query I rowsort label-6564
SELECT + 69 + - MAX ( DISTINCT 82 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT + COALESCE ( - + 78, COUNT( * ) + + 43 * 30 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6565
SELECT + COALESCE ( - + 78, COUNT ( * ) + + 43 * 30 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT CASE - 57 WHEN 90 - AVG ( DISTINCT - 54 ) * 35 THEN NULL ELSE ( COUNT( * ) ) END col2
----
1

skipif mysql # not compatible
query I rowsort label-6566
SELECT CASE - 57 WHEN 90 - AVG ( DISTINCT - 54 ) * 35 THEN NULL ELSE ( COUNT ( * ) ) END col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT + MAX( ALL - 31 ) * + 3 + - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-6567
SELECT + MAX ( ALL - 31 ) * + 3 + - COUNT ( * )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6568
SELECT ALL 97 * + 68 * + 61 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL 97 * + 68 * + 61 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6569
SELECT + CAST( 17 AS SIGNED ) * + 34
----
578

skipif mysql # not compatible
query I rowsort label-6569
SELECT + CAST ( 17 AS INTEGER ) * + 34
----
578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6570
SELECT + COALESCE ( - ( COALESCE ( - COUNT( * ), - SUM( 54 ) ) ), COUNT( * ) + 81, - CAST( + 0 AS SIGNED ) + + 27 )
----
1

skipif mysql # not compatible
query I rowsort label-6570
SELECT + COALESCE ( - ( COALESCE ( - COUNT ( * ), - SUM ( 54 ) ) ), COUNT ( * ) + 81, - CAST ( + 0 AS INTEGER ) + + 27 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6571
SELECT ALL - 6 * 73 - + SUM( ALL ( + 67 ) + - ( ( CAST( NULL AS DECIMAL ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL - 6 * 73 - + SUM ( ALL ( + 67 ) + - ( ( CAST ( NULL AS REAL ) ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6572
SELECT 39 / CAST( NULL AS SIGNED ) * - 51 - + MIN( ALL - 89 - - 65 * + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6572
SELECT 39 / CAST ( NULL AS INTEGER ) * - 51 - + MIN ( ALL - 89 - - 65 * + 19 )
----
NULL

query I rowsort
SELECT CASE 61 WHEN - 32 THEN 56 ELSE - 74 + NULLIF ( 34, 56 + + 17 ) END
----
-40

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

query I rowsort
SELECT + 92 - + 97 + 50 * 30
----
1495

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT + NULLIF ( - COUNT( * ), COUNT( * ) ) * ( + 73 * NULLIF ( - ( - 24 ), + 30 + 41 ) ) AS col0
----
-1752

skipif mysql # not compatible
query I rowsort label-6576
SELECT + NULLIF ( - COUNT ( * ), COUNT ( * ) ) * ( + 73 * NULLIF ( - ( - 24 ), + 30 + 41 ) ) AS col0
----
-1752

query I rowsort
SELECT + 9 * + + 57 col2
----
513

query I rowsort
SELECT 12 * 31 * + 6 + + 87 AS col2
----
2319

query I rowsort
SELECT ( 5 ) * - 41 + + 31 * - 41
----
-1476

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT + - 61 + - - 42 - COALESCE ( ( + 84 ) + COUNT( 96 ), + 89, 51, - 87 * 91 + + 99 ) AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-6580
SELECT + - 61 + - - 42 - COALESCE ( ( + 84 ) + COUNT ( 96 ), + 89, 51, - 87 * 91 + + 99 ) AS col1
----
-104

query I rowsort
SELECT - + 55 * + ( + 59 ) AS col0
----
-3245

query I rowsort
SELECT ALL 21 * 63
----
1323

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

query I rowsort
SELECT DISTINCT ( + + 93 ) AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6585
SELECT - - CAST( + + 21 AS SIGNED ) * - 33
----
-693

skipif mysql # not compatible
query I rowsort label-6585
SELECT - - CAST ( + + 21 AS INTEGER ) * - 33
----
-693

query I rowsort
SELECT 20 * 48 + 49
----
1009

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL + ( - 43 ) + + 66 / - CASE WHEN NOT ( - SUM( + 60 ) * - 24 ) NOT BETWEEN NULL AND + MIN( DISTINCT - 98 ) THEN NULL WHEN NOT NULL IS NULL THEN 6 + - 45 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL + ( - 43 ) + + 66 / - CASE WHEN NOT ( - SUM ( + 60 ) * - 24 ) NOT BETWEEN NULL AND + MIN ( DISTINCT - 98 ) THEN NULL WHEN NOT NULL IS NULL THEN 6 + - 45 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 54 + - 69
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6590
SELECT - + MIN( ALL + CAST( + 47 AS SIGNED ) )
----
-47

skipif mysql # not compatible
query I rowsort label-6590
SELECT - + MIN ( ALL + CAST ( + 47 AS INTEGER ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT + MAX( + 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6591
SELECT + MAX ( + 78 ) AS col0
----
78

query I rowsort
SELECT + 68 + - 24 + 15 * - 19 AS col2
----
-241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6593
SELECT ALL - 73 * CASE - CAST( + 29 AS SIGNED ) WHEN - 39 THEN 45 WHEN - 71 * ( - 1 ) THEN 63 WHEN + COUNT( * ) * + COUNT( * ) THEN NULL WHEN - 82 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL - 73 * CASE - CAST ( + 29 AS INTEGER ) WHEN - 39 THEN 45 WHEN - 71 * ( - 1 ) THEN 63 WHEN + COUNT ( * ) * + COUNT ( * ) THEN NULL WHEN - 82 THEN NULL END
----
NULL

query I rowsort
SELECT - 81 + 21
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6595
SELECT ALL 51 + + - 18 + + 48 DIV - 27 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL 51 + + - 18 + + 48 / - 27 AS col2
----
32

query I rowsort
SELECT DISTINCT + 4 + 86 + 74
----
164

query I rowsort
SELECT DISTINCT - ( CASE - 8 WHEN - 4 * 37 + + 26 THEN 18 END ) AS col0
----
NULL

query I rowsort
SELECT - - 76 + 75 + - 2 * - 72
----
295

query I rowsort
SELECT DISTINCT + ( + + 88 ) * 44 AS col0
----
3872

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT - + 2 + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-6600
SELECT - + 2 + - COUNT ( * )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6601
SELECT DISTINCT NULLIF ( + 11, - CAST( NULL AS SIGNED ) / - COUNT( * ) - 56 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT NULLIF ( + 11, - CAST ( NULL AS INTEGER ) / - COUNT ( * ) - 56 ) AS col2
----
11

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

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

query I rowsort
SELECT - 82 + + - 0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT - 94 + + 82 + - MAX( DISTINCT + 80 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-6604
SELECT - 94 + + 82 + - MAX ( DISTINCT + 80 ) AS col2
----
-92

query II rowsort
SELECT 46, 24 AS col0
----
46
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT + CAST( - + 98 AS SIGNED ) - - 6 + - 34
----
-126

skipif mysql # not compatible
query I rowsort label-6606
SELECT + CAST ( - + 98 AS INTEGER ) - - 6 + - 34
----
-126

query I rowsort
SELECT - 46 + + + 71
----
25

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

query II rowsort
SELECT DISTINCT + 48 AS col1, 64 AS col0
----
48
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ALL NULLIF ( + 88, + ( ( 69 ) ) + ( - 54 - COUNT( * ) ) ) * - 50
----
-4400

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL NULLIF ( + 88, + ( ( 69 ) ) + ( - 54 - COUNT ( * ) ) ) * - 50
----
-4400

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

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

query I rowsort
SELECT ALL + 34 * + - 77 AS col1
----
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT 7 * - 72 + + - ( + MIN( ( 27 ) ) ) - - COUNT( * )
----
-530

skipif mysql # not compatible
query I rowsort label-6613
SELECT 7 * - 72 + + - ( + MIN ( ( 27 ) ) ) - - COUNT ( * )
----
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT - 86 * + 81 * COALESCE ( - 32, + COALESCE ( 74, 11 * 8 + COALESCE ( 87 - - SUM( DISTINCT - 34 ), - ( 58 ) - 5 ) ) ) * 39 AS col1
----
8693568

skipif mysql # not compatible
query I rowsort label-6614
SELECT - 86 * + 81 * COALESCE ( - 32, + COALESCE ( 74, 11 * 8 + COALESCE ( 87 - - SUM ( DISTINCT - 34 ), - ( 58 ) - 5 ) ) ) * 39 AS col1
----
8693568

query I rowsort
SELECT 44 * + 57 + + 41 * - 58 AS col2
----
130

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

skipif mysql # not compatible
query I rowsort label-6616
SELECT - 4 / + 12
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6617
SELECT + 10 * CAST( NULL AS DECIMAL ) * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-6617
SELECT + 10 * CAST ( NULL AS REAL ) * - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT + 68 + + - COUNT( * ) - - - 21 * 90 AS col0
----
-1823

skipif mysql # not compatible
query I rowsort label-6618
SELECT + 68 + + - COUNT ( * ) - - - 21 * 90 AS col0
----
-1823

query II rowsort
SELECT DISTINCT + 54, + ( 20 ) AS col2
----
54
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT - CASE - 66 WHEN + AVG ( + 10 ) THEN - COUNT( * ) END + - ( 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6620
SELECT - CASE - 66 WHEN + AVG ( + 10 ) THEN - COUNT ( * ) END + - ( 78 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT + 62 + - 47 + - - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-6621
SELECT + 62 + - 47 + - - COUNT ( * )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6622
SELECT - 74 DIV - 22 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6622
SELECT - 74 / - 22 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6623
SELECT DISTINCT + 62 DIV 96 * + 52 + + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT + 62 / 96 * + 52 + + 32 AS col2
----
32

query II rowsort
SELECT DISTINCT + + 15 AS col0, - 44 AS col1
----
15
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6625
SELECT ALL 93 * CAST( NULL AS SIGNED ) + + 7 + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL 93 * CAST ( NULL AS INTEGER ) + + 7 + + 19
----
NULL

query I rowsort
SELECT DISTINCT 98 * - 5
----
-490

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

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

query II rowsort
SELECT 60 col1, + 35 * 86 AS col1
----
60
3010

query I rowsort
SELECT 9 + - 13 AS col2
----
-4

query I rowsort
SELECT ALL 55 + - + 90 col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT ALL - SUM( DISTINCT + 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL - SUM ( DISTINCT + 97 ) AS col0
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-6632
SELECT - - 1, 85 DIV - 69 + ( 40 ) AS col0
----
1
39

skipif mysql # not compatible
query II rowsort label-6632
SELECT - - 1, 85 / - 69 + ( 40 ) AS col0
----
1
39

query I rowsort
SELECT ALL 82 * + - 3
----
-246

query I rowsort
SELECT + 50 * + 63 * - - 28 + 47 col2
----
88247

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT - + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6635
SELECT - + COUNT ( * ) col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL - + 67 + COUNT ( * ) + COUNT ( * ) AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6637
SELECT ( + + 54 ) * CASE + 41 WHEN - CASE MAX( - 86 ) WHEN - CAST( NULL AS SIGNED ) THEN - 3 - 28 END THEN - 38 WHEN 19 THEN NULL WHEN + 69 THEN NULL ELSE 59 END * NULLIF ( + 38, - 3 ) AS col1
----
121068

skipif mysql # not compatible
query I rowsort label-6637
SELECT ( + + 54 ) * CASE + 41 WHEN - CASE MAX ( - 86 ) WHEN - CAST ( NULL AS INTEGER ) THEN - 3 - 28 END THEN - 38 WHEN 19 THEN NULL WHEN + 69 THEN NULL ELSE 59 END * NULLIF ( + 38, - 3 ) AS col1
----
121068

query I rowsort
SELECT DISTINCT 67 + + 47 col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT + COUNT( * ) - - - 53 - COALESCE ( - 35, + CASE - 72 WHEN - 56 * - COUNT( * ) THEN NULL ELSE - 93 + - ( COUNT( * ) ) END )
----
-17

skipif mysql # not compatible
query I rowsort label-6639
SELECT + COUNT ( * ) - - - 53 - COALESCE ( - 35, + CASE - 72 WHEN - 56 * - COUNT ( * ) THEN NULL ELSE - 93 + - ( COUNT ( * ) ) END )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6640
SELECT - CAST( + MAX( - 0 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6640
SELECT - CAST ( + MAX ( - 0 ) AS INTEGER )
----
0

query I rowsort
SELECT 87 + - 46 + 31 * + 52 AS col2
----
1653

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT 90 * - + 72 * - NULLIF ( SUM( 84 ), + ( + 15 ) * + ( 54 ) )
----
544320

skipif mysql # not compatible
query I rowsort label-6642
SELECT 90 * - + 72 * - NULLIF ( SUM ( 84 ), + ( + 15 ) * + ( 54 ) )
----
544320

query I rowsort
SELECT ALL - 11 * 71 col2
----
-781

query II rowsort
SELECT 97 + + 47 AS col1, + 76 AS col0
----
144
76

query I rowsort
SELECT 77 * - ( 5 )
----
-385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6646
SELECT 80 * COUNT( * ) DIV + + ( COUNT( * ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6646
SELECT 80 * COUNT ( * ) / + + ( COUNT ( * ) ) AS col2
----
80

query I rowsort
SELECT 90 * + - 50 AS col2
----
-4500

query I rowsort
SELECT ALL 5 * + 31 * + 89
----
13795

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

skipif mysql # not compatible
query I rowsort label-6649
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + 4 AS col0
----
-4

query II rowsort
SELECT DISTINCT - ( - 93 ), + 53 AS col2
----
93
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT ( - 25 ) DIV + 30 - - - 44
----
-44

skipif mysql # not compatible
query I rowsort label-6651
SELECT ( - 25 ) / + 30 - - - 44
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6652
SELECT 96 + CAST( + 14 AS SIGNED ) + + - MIN( DISTINCT + 80 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6652
SELECT 96 + CAST ( + 14 AS INTEGER ) + + - MIN ( DISTINCT + 80 ) AS col2
----
30

query I rowsort
SELECT 49 * 2 + - - 85 + - 82 * + 65
----
-5147

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6654
SELECT DISTINCT + 31 + + NULLIF ( - CAST( NULL AS DECIMAL ), - + 93 + - 22 / CASE COUNT( * ) WHEN - NULLIF ( + 11, - 22 * 52 + 20 / + COALESCE ( - COALESCE ( 0, - 31 / 65 ), - 8 ) ) THEN - COUNT( * ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT + 31 + + NULLIF ( - CAST ( NULL AS REAL ), - + 93 + - 22 / CASE COUNT ( * ) WHEN - NULLIF ( + 11, - 22 * 52 + 20 / + COALESCE ( - COALESCE ( 0, - 31 / 65 ), - 8 ) ) THEN - COUNT ( * ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6655
SELECT 78 DIV + 7 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6655
SELECT 78 / + 7 AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6656
SELECT + CAST( - 11 AS SIGNED ) + - 96 AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-6656
SELECT + CAST ( - 11 AS INTEGER ) + - 96 AS col1
----
-107

query I rowsort
SELECT DISTINCT - + 48
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT ( + 94 ) DIV - - 94 - + 33
----
-32

skipif mysql # not compatible
query I rowsort label-6658
SELECT ( + 94 ) / - - 94 - + 33
----
-32

query I rowsort
SELECT - 41 + + + 29
----
-12

query I rowsort
SELECT ALL + 37 + - 86 AS col0
----
-49

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6662
SELECT ALL + 57 DIV + 70 * + MAX( ALL - + 88 ) + 9 * - 79
----
-711

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL + 57 / + 70 * + MAX ( ALL - + 88 ) + 9 * - 79
----
-711

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

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

query I rowsort
SELECT ALL - 82 + - + 53 * - 84 * + 56
----
249230

query I rowsort
SELECT - 44 col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT ALL COALESCE ( 9, 78 - NULLIF ( COALESCE ( - 72, COUNT( ALL + 48 ) + 73 ), 2 ) + + CASE 32 WHEN 71 THEN ( - 42 ) END * 92, 62 ) * - 15
----
-135

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL COALESCE ( 9, 78 - NULLIF ( COALESCE ( - 72, COUNT ( ALL + 48 ) + 73 ), 2 ) + + CASE 32 WHEN 71 THEN ( - 42 ) END * 92, 62 ) * - 15
----
-135

query I rowsort
SELECT 26 * + - 68 AS col2
----
-1768

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT - COUNT( ALL - 94 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6670
SELECT - COUNT ( ALL - 94 ) AS col2
----
-1

query I rowsort
SELECT ALL - 52 * - 32
----
1664

query I rowsort
SELECT 71 + + 98 * 45 AS col0
----
4481

query I rowsort
SELECT 77 * + 69
----
5313

query I rowsort
SELECT DISTINCT 70 * + 30 * + 79 AS col1
----
165900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6675
SELECT 67 DIV + COALESCE ( 22, + 0 + 51, 57 + COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-6675
SELECT 67 / + COALESCE ( 22, + 0 + 51, 57 + COUNT ( * ) )
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6677
SELECT DISTINCT 57 DIV - 3 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT 57 / - 3 AS col2
----
-19

query I rowsort
SELECT 15 + + 23
----
38

query II rowsort
SELECT ALL - 31 AS col0, + 97 * 21 AS col1
----
-31
2037

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6681
SELECT ALL - 20 * + + 70 * - 0 + 26 * - CAST( NULL AS SIGNED ) - CAST( COUNT( * ) AS DECIMAL ) * ( - 89 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6681
SELECT ALL - 20 * + + 70 * - 0 + 26 * - CAST ( NULL AS INTEGER ) - CAST ( COUNT ( * ) AS REAL ) * ( - 89 ) AS col2
----
NULL

query I rowsort
SELECT - 27 + - 0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT - 96 * - 93 * - - 28 * + + NULLIF ( - COUNT( * ), 5 ) + - 43 AS col1
----
-250027

skipif mysql # not compatible
query I rowsort label-6683
SELECT - 96 * - 93 * - - 28 * + + NULLIF ( - COUNT ( * ), 5 ) + - 43 AS col1
----
-250027

query II rowsort
SELECT + 15, + 9 * - + 27 AS col2
----
15
-243

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT + - CASE 23 WHEN 97 THEN - + 90 WHEN AVG ( 16 ) - 54 THEN 31 / - SUM( ALL - 74 ) WHEN - 83 + + 45 * + NULLIF ( - COUNT( * ), 97 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT + - CASE 23 WHEN 97 THEN - + 90 WHEN AVG ( 16 ) - 54 THEN 31 / - SUM ( ALL - 74 ) WHEN - 83 + + 45 * + NULLIF ( - COUNT ( * ), 97 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT CASE 57 WHEN - 91 / 39 THEN COALESCE ( 68, 62 ) / SUM( + 1 + - 2 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT CASE 57 WHEN - 91 / 39 THEN COALESCE ( 68, 62 ) / SUM ( + 1 + - 2 ) END AS col0
----
NULL

query I rowsort
SELECT - - 30 + 8 * + 84 - + 67 AS col2
----
635

query I rowsort
SELECT - + 72 * 24
----
-1728

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT ALL - + 93 * - COUNT( * ) * + 29 + + NULLIF ( - 75, + 34 ) + - CASE - 53 + - 6 WHEN COUNT( * ) * + COUNT( 50 ) THEN - COUNT( * ) * - CASE 33 WHEN 42 THEN + 4 * NULLIF ( - 7, + COUNT( * ) - 51 ) + + 23 END WHEN 70 THEN + 23 + 34 END * - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL - + 93 * - COUNT ( * ) * + 29 + + NULLIF ( - 75, + 34 ) + - CASE - 53 + - 6 WHEN COUNT ( * ) * + COUNT ( 50 ) THEN - COUNT ( * ) * - CASE 33 WHEN 42 THEN + 4 * NULLIF ( - 7, + COUNT ( * ) - 51 ) + + 23 END WHEN 70 THEN + 23 + 34 END * - 34 AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT - + 50 * - 36 + + 54 AS col0
----
1854

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

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL - + 33 / + - COUNT ( * ) AS col1
----
33

query I rowsort
SELECT - 61 * - 5 * + 35 AS col0
----
10675

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6695
SELECT ALL - 94 * + 61 * - - 6 AS col2, CAST( NULL AS DECIMAL ) + - + AVG ( ALL - 97 ) AS col1
----
-34404
NULL

skipif mysql # not compatible
query II rowsort label-6695
SELECT ALL - 94 * + 61 * - - 6 AS col2, CAST ( NULL AS REAL ) + - + AVG ( ALL - 97 ) AS col1
----
-34404
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT - COUNT( DISTINCT + ( - + 99 ) ) + + NULLIF ( + 44, 89 * 22 + 17 ) * - 5 col0
----
-221

skipif mysql # not compatible
query I rowsort label-6696
SELECT - COUNT ( DISTINCT + ( - + 99 ) ) + + NULLIF ( + 44, 89 * 22 + 17 ) * - 5 col0
----
-221

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT - + COUNT( * ) + 81 + - 60
----
20

skipif mysql # not compatible
query I rowsort label-6697
SELECT - + COUNT ( * ) + 81 + - 60
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT - 27 * MIN( DISTINCT + 98 ) * + + 51 AS col0
----
-134946

skipif mysql # not compatible
query I rowsort label-6698
SELECT - 27 * MIN ( DISTINCT + 98 ) * + + 51 AS col0
----
-134946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6699
SELECT - - CAST( NULL AS SIGNED ) * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6699
SELECT - - CAST ( NULL AS INTEGER ) * 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT - + MAX( 10 ) - 91
----
-101

skipif mysql # not compatible
query I rowsort label-6700
SELECT - + MAX ( 10 ) - 91
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT + CASE - 28 WHEN COUNT( * ) THEN - 79 / + 91 - - ( + 10 ) * ( AVG ( DISTINCT 13 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6701
SELECT + CASE - 28 WHEN COUNT ( * ) THEN - 79 / + 91 - - ( + 10 ) * ( AVG ( DISTINCT 13 ) ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 42 - - 65 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT DISTINCT NULLIF ( - 12, - SUM( - 97 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT NULLIF ( - 12, - SUM ( - 97 ) )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6704
SELECT DISTINCT + 93 DIV - MAX( ALL - 26 )
----
3

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT + 93 / - MAX ( ALL - 26 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT + ( - - 30 ) DIV - + 21
----
-1

skipif mysql # not compatible
query I rowsort label-6705
SELECT + ( - - 30 ) / - + 21
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ALL NULLIF ( 67, 25 * + CASE + - MAX( + - ( 30 ) ) WHEN 30 THEN + COUNT( * ) END - ( 20 ) ) * 80
----
5360

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL NULLIF ( 67, 25 * + CASE + - MAX ( + - ( 30 ) ) WHEN 30 THEN + COUNT ( * ) END - ( 20 ) ) * 80
----
5360

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT ALL ( + COALESCE ( + 88, + + COUNT( * ) + - ( + - ( - 13 ) ) + - 21 * + 16 ) )
----
88

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL ( + COALESCE ( + 88, + + COUNT ( * ) + - ( + - ( - 13 ) ) + - 21 * + 16 ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL ( - CASE - - 5 WHEN - NULLIF ( - 49, NULLIF ( SUM( ALL + 10 ), 54 ) / - 85 ) THEN + 37 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL ( - CASE - - 5 WHEN - NULLIF ( - 49, NULLIF ( SUM ( ALL + 10 ), 54 ) / - 85 ) THEN + 37 ELSE NULL END )
----
NULL

query I rowsort
SELECT - 87 * - 45 AS col0
----
3915

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT - 5 - - + ( - 49 ) * 65 + - ( + COUNT( * ) ) AS col1
----
-3191

skipif mysql # not compatible
query I rowsort label-6711
SELECT - 5 - - + ( - 49 ) * 65 + - ( + COUNT ( * ) ) AS col1
----
-3191

query II rowsort
SELECT 38 col0, - 97 * + 20 + + + ( 48 ) col1
----
38
-1892

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT ALL CASE + COUNT( * ) WHEN + 82 THEN - + COALESCE ( 39, + COUNT( 82 ) * - 54 ) END + + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL CASE + COUNT ( * ) WHEN + 82 THEN - + COALESCE ( 39, + COUNT ( 82 ) * - 54 ) END + + 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT - COUNT( ALL 87 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6714
SELECT - COUNT ( ALL 87 ) AS col1
----
-1

query I rowsort
SELECT - CASE 61 WHEN + + ( - - 20 ) * - 23 / + 65 THEN + 1 * 17 WHEN + 49 THEN + 51 + + 98 END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6717
SELECT + MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) * 39 / - 47 + + 5 + + 36 / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT + MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * 39 / - 47 + + 5 + + 36 / 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL SUM( - 69 ) * + - 42
----
2898

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL SUM ( - 69 ) * + - 42
----
2898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6719
SELECT DISTINCT - COUNT( * ) + + CAST( - MIN( ALL - NULLIF ( - ( 46 ), + 45 ) ) AS SIGNED ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT - COUNT ( * ) + + CAST ( - MIN ( ALL - NULLIF ( - ( 46 ), + 45 ) ) AS INTEGER ) AS col0
----
-47

query II rowsort
SELECT DISTINCT 51 AS col2, 3 + - 65 - ( + 31 ) AS col0
----
51
-93

query I rowsort
SELECT ALL 15 + + - 49
----
-34

query II rowsort
SELECT DISTINCT 74 + + + 80 + - 7 * 32 AS col2, 20 + - 66
----
-70
-46

query I rowsort
SELECT ALL 97 + + 55 AS col2
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT ALL - 60 DIV 56 + - ( - + 17 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL - 60 / 56 + - ( - + 17 ) AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6725
SELECT - 36 DIV + - COALESCE ( - CAST( CAST( - + 81 AS SIGNED ) AS SIGNED ), + MIN( - 59 ), - 40 * COUNT( * ), 38 + CAST( NULL AS SIGNED ) ) * 79 + + 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6725
SELECT - 36 / + - COALESCE ( - CAST ( CAST ( - + 81 AS INTEGER ) AS INTEGER ), + MIN ( - 59 ), - 40 * COUNT ( * ), 38 + CAST ( NULL AS INTEGER ) ) * 79 + + 93 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT + - 50 * - COALESCE ( 40, ( + 65 ) - + COUNT( * ), 91 + - 11 ) AS col2
----
2000

skipif mysql # not compatible
query I rowsort label-6726
SELECT + - 50 * - COALESCE ( 40, ( + 65 ) - + COUNT ( * ), 91 + - 11 ) AS col2
----
2000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6727
SELECT CAST( 67 AS SIGNED ), 58 AS col2
----
67
58

skipif mysql # not compatible
query II rowsort label-6727
SELECT CAST ( 67 AS INTEGER ), 58 AS col2
----
67
58

onlyif mysql # DIV for integer division: 
query II rowsort label-6728
SELECT DISTINCT - 39 DIV 27 AS col1, + 17 AS col2
----
-1
17

skipif mysql # not compatible
query II rowsort label-6728
SELECT DISTINCT - 39 / 27 AS col1, + 17 AS col2
----
-1
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6729
SELECT ALL + ( + 46 ) DIV - 90 * + 57 + - - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL + ( + 46 ) / - 90 * + 57 + - - COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6730
SELECT + CAST( - 29 AS SIGNED ) DIV + 45 * 44 + + 85
----
85

skipif mysql # not compatible
query I rowsort label-6730
SELECT + CAST ( - 29 AS INTEGER ) / + 45 * 44 + + 85
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6731
SELECT + - CAST( NULL AS SIGNED ) AS col2, 42 + + 29 + SUM( + 97 ) + + 42 AS col0
----
NULL
210

skipif mysql # not compatible
query II rowsort label-6731
SELECT + - CAST ( NULL AS INTEGER ) AS col2, 42 + + 29 + SUM ( + 97 ) + + 42 AS col0
----
NULL
210

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT ALL COALESCE ( - 11, - + COUNT( * ) * 10 + + 78 * + 96 + 95 * 28 + - 46, + 17 * - 81 ) * 51 col2
----
-561

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL COALESCE ( - 11, - + COUNT ( * ) * 10 + + 78 * + 96 + 95 * 28 + - 46, + 17 * - 81 ) * 51 col2
----
-561

query II rowsort
SELECT 29, - 67 AS col1
----
29
-67

query II rowsort
SELECT ALL + 74 AS col2, 98 + COALESCE ( 79, - 65, 40 * 10 )
----
74
177

query I rowsort
SELECT DISTINCT + 78 * + + 41 - + + 75 AS col2
----
3123

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6736
SELECT + SUM( ALL + 74 ) col0, 34 + 25 DIV - - 9
----
74
36

skipif mysql # not compatible
query II rowsort label-6736
SELECT + SUM ( ALL + 74 ) col0, 34 + 25 / - - 9
----
74
36

query I rowsort
SELECT ALL - 54 * - + 91 - + + 18 col0
----
4896

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-6740
SELECT + - 43, 31 AS col0, MIN( - - 74 ) * + 58 col0
----
-43
31
4292

skipif mysql # not compatible
query III rowsort label-6740
SELECT + - 43, 31 AS col0, MIN ( - - 74 ) * + 58 col0
----
-43
31
4292

query I rowsort
SELECT ALL + 79 * + - 88
----
-6952

onlyif mysql # DIV for integer division: 
query I rowsort label-6742
SELECT DISTINCT + 7 DIV - 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT + 7 / - 78 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6743
SELECT - CAST( - - 56 AS SIGNED ) + + 20 col0, - 67 * - - 98
----
-36
-6566

skipif mysql # not compatible
query II rowsort label-6743
SELECT - CAST ( - - 56 AS INTEGER ) + + 20 col0, - 67 * - - 98
----
-36
-6566

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT + CASE + 14 WHEN 18 THEN NULL WHEN 27 - - 27 + + 39 * + 11 * - 67 + + 40 THEN - COALESCE ( + AVG ( 47 ), 74 ) ELSE + 15 END DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-6744
SELECT + CASE + 14 WHEN 18 THEN NULL WHEN 27 - - 27 + + 39 * + 11 * - 67 + + 40 THEN - COALESCE ( + AVG ( 47 ), 74 ) ELSE + 15 END / 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL + 59 * + - COUNT( DISTINCT + 77 ) + 66 - - - COUNT( * ) - 54 * + ( MAX( DISTINCT + 40 ) ) AS col1
----
-2154

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL + 59 * + - COUNT ( DISTINCT + 77 ) + 66 - - - COUNT ( * ) - 54 * + ( MAX ( DISTINCT + 40 ) ) AS col1
----
-2154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6746
SELECT - 81 + - - 17 + - 36 * - - CASE - - ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) WHEN + 96 * - CAST( NULL AS SIGNED ) THEN - COALESCE ( 82, ( COUNT( * ) ) * + 66 ) - - 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6746
SELECT - 81 + - - 17 + - 36 * - - CASE - - ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) WHEN + 96 * - CAST ( NULL AS INTEGER ) THEN - COALESCE ( 82, ( COUNT ( * ) ) * + 66 ) - - 74 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 20, + + 33 / 51 ) + - 41
----
-21

query II rowsort
SELECT - 34 + - - 77, 64 AS col0
----
43
64

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6751
SELECT ALL + 45 / + 96 * - CAST( NULL AS SIGNED ) * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL + 45 / + 96 * - CAST ( NULL AS INTEGER ) * - 0
----
NULL

query II rowsort
SELECT 95 * + - 80 AS col2, - 71
----
-7600
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6753
SELECT ALL - COALESCE ( + 50, + + 85 ) DIV 4 + ( + - 78 )
----
-90

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL - COALESCE ( + 50, + + 85 ) / 4 + ( + - 78 )
----
-90

query I rowsort
SELECT 40 + - + 67 * + 36 col1
----
-2372

query I rowsort
SELECT 32 * - + 72 * + 98 AS col0
----
-225792

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT - COUNT( - 4 ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6756
SELECT - COUNT ( - 4 ) * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6757
SELECT DISTINCT - ( - - 51 ) col2, + MIN( DISTINCT + 87 ) AS col0
----
-51
87

skipif mysql # not compatible
query II rowsort label-6757
SELECT DISTINCT - ( - - 51 ) col2, + MIN ( DISTINCT + 87 ) AS col0
----
-51
87

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT + COUNT( * ) * - 9 * + NULLIF ( + 36, + ( 1 ) + 2 * 81 ) + 73
----
-251

skipif mysql # not compatible
query I rowsort label-6761
SELECT + COUNT ( * ) * - 9 * + NULLIF ( + 36, + ( 1 ) + 2 * 81 ) + 73
----
-251

onlyif mysql # aggregate syntax: 
query II rowsort label-6762
SELECT + SUM( - 41 ) * COUNT( * ) AS col0, - 46 col0
----
-41
-46

skipif mysql # not compatible
query II rowsort label-6762
SELECT + SUM ( - 41 ) * COUNT ( * ) AS col0, - 46 col0
----
-41
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT 78 * + MIN( + NULLIF ( + 8, - 96 / + 64 + + - 50 ) )
----
624

skipif mysql # not compatible
query I rowsort label-6763
SELECT 78 * + MIN ( + NULLIF ( + 8, - 96 / + 64 + + - 50 ) )
----
624

query I rowsort
SELECT + + 94 AS col0
----
94

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6766
SELECT ALL + COUNT( * ) DIV + - 91 * - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL + COUNT ( * ) / + - 91 * - 82 AS col0
----
0

query I rowsort
SELECT 58 + - 25
----
33

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

query I rowsort
SELECT ALL - NULLIF ( - 40, 25 )
----
40

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

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL ( - 81 ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6771
SELECT 50 DIV + 87 + - 12 + 61 + 8 DIV + - 68
----
49

skipif mysql # not compatible
query I rowsort label-6771
SELECT 50 / + 87 + - 12 + 61 + 8 / + - 68
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-6772
SELECT ALL - - COUNT( DISTINCT + - 11 ) AS col2, + 78 - + 89
----
1
-11

skipif mysql # not compatible
query II rowsort label-6772
SELECT ALL - - COUNT ( DISTINCT + - 11 ) AS col2, + 78 - + 89
----
1
-11

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

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

query II rowsort
SELECT ( 44 ) + + 31 AS col2, - 94 * - - 1
----
75
-94

query I rowsort
SELECT 99 * + 73 AS col0
----
7227

query I rowsort
SELECT DISTINCT 41 * 95
----
3895

query II rowsort
SELECT 76 col1, 93 * - - 78 * - 7 AS col1
----
76
-50778

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ( 50 ) * + 37 + - + SUM( DISTINCT + + 4 )
----
1846

skipif mysql # not compatible
query I rowsort label-6778
SELECT ( 50 ) * + 37 + - + SUM ( DISTINCT + + 4 )
----
1846

query I rowsort
SELECT 89 - - 84 * NULLIF ( - - 37, 26 * - + 84 ) + + 26 AS col2
----
3223

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT DISTINCT 5 + + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT 5 + + + COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT ALL 63 + + NULLIF ( - + 37, + COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL 63 + + NULLIF ( - + 37, + COUNT ( * ) )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6782
SELECT DISTINCT - ( - 22 ) + - + 91 DIV + + 86 * - + COUNT( * ) + + 32 DIV - 96
----
23

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT - ( - 22 ) + - + 91 / + + 86 * - + COUNT ( * ) + + 32 / - 96
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6783
SELECT DISTINCT 98 + + - CAST( + 97 AS SIGNED ) + - COALESCE ( 80, - 55 * + + 12 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT 98 + + - CAST ( + 97 AS INTEGER ) + - COALESCE ( 80, - 55 * + + 12 ) AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6784
SELECT ALL - 85 + + COUNT( * ) DIV - - 84 + - ( - SUM( - - 17 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL - 85 + + COUNT ( * ) / - - 84 + - ( - SUM ( - - 17 ) )
----
-68

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

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6786
SELECT - 95 AS col2, CASE + - 43 WHEN + - 99 THEN NULL WHEN 43 * 12 * + - 28 THEN - - COALESCE ( 81, + 7 * ( CASE 27 WHEN COUNT( DISTINCT 41 ) - 50 THEN NULL WHEN + 22 THEN + 60 ELSE NULL END ) + - COALESCE ( - 5, 95, + 72 ) ) * + 49 + 10 * - 55 WHEN + 22 + - 58 * 79 THEN 24 END * 70 + 85 * - 87 col0
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-6786
SELECT - 95 AS col2, CASE + - 43 WHEN + - 99 THEN NULL WHEN 43 * 12 * + - 28 THEN - - COALESCE ( 81, + 7 * ( CASE 27 WHEN COUNT ( DISTINCT 41 ) - 50 THEN NULL WHEN + 22 THEN + 60 ELSE NULL END ) + - COALESCE ( - 5, 95, + 72 ) ) * + 49 + 10 * - 55 WHEN + 22 + - 58 * 79 THEN 24 END * 70 + 85 * - 87 col0
----
-95
NULL

query I rowsort
SELECT 31 * + 91
----
2821

query II rowsort
SELECT - 50, - 13 AS col1
----
-50
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-6789
SELECT ALL + ( 49 ) + + COUNT( * ) + + ( - ( - 43 ) ) AS col2, 27 * - - 41
----
93
1107

skipif mysql # not compatible
query II rowsort label-6789
SELECT ALL + ( 49 ) + + COUNT ( * ) + + ( - ( - 43 ) ) AS col2, 27 * - - 41
----
93
1107

query I rowsort
SELECT COALESCE ( 73, + 59 + - 0 + - + 22 + - 81 ) - - 38
----
111

query I rowsort
SELECT 56 * + 61
----
3416

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

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

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

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

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

query I rowsort
SELECT + COALESCE ( 70, + 14, - + 63 ) - 66 AS col2
----
4

query II rowsort
SELECT ALL 79, 59 AS col1
----
79
59

query I rowsort
SELECT + 58 + - 8
----
50

query I rowsort
SELECT - 67 / CASE - - 32 WHEN - - 3 THEN NULL WHEN 84 THEN - 52 * - 4 WHEN - 60 THEN NULL END + - ( 83 )
----
NULL

query I rowsort
SELECT 47 * - 19 AS col0
----
-893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6800
SELECT DISTINCT - + 76 / - + 99 * - CAST( NULL AS SIGNED ) * + + 47 + - 54 * + + 57 + - 23 + - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT - + 76 / - + 99 * - CAST ( NULL AS INTEGER ) * + + 47 + - 54 * + + 57 + - 23 + - + 50
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT - 5 DIV - - 77 + - 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6801
SELECT - 5 / - - 77 + - 33 AS col1
----
-33

query I rowsort
SELECT - 50 * 79 AS col1
----
-3950

onlyif mysql # aggregate syntax: 
query II rowsort label-6803
SELECT + 19, + 78 * - COUNT( * ) + - - 98 - + 98 AS col0
----
19
-78

skipif mysql # not compatible
query II rowsort label-6803
SELECT + 19, + 78 * - COUNT ( * ) + - - 98 - + 98 AS col0
----
19
-78

query II rowsort
SELECT 96 + 28 * - + 68 col2, 62 + - 77 col1
----
-1808
-15

query I rowsort
SELECT ALL - + NULLIF ( - - 50, - 30 + - 34 )
----
-50

query I rowsort
SELECT + - NULLIF ( + + 40, - ( + - 41 ) )
----
-40

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6808
SELECT ALL + ( - - 72 ) * - 51 / ( + CAST( NULL AS SIGNED ) ) + - - MIN( DISTINCT 64 ) / - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL + ( - - 72 ) * - 51 / ( + CAST ( NULL AS INTEGER ) ) + - - MIN ( DISTINCT 64 ) / - 16 AS col0
----
NULL

query I rowsort
SELECT + 16 * - ( 67 ) - + 24 AS col1
----
-1096

onlyif mysql # aggregate syntax: 
query II rowsort label-6810
SELECT 8 * - COUNT( DISTINCT 0 ) + + 88 AS col2, 52 AS col1
----
80
52

skipif mysql # not compatible
query II rowsort label-6810
SELECT 8 * - COUNT ( DISTINCT 0 ) + + 88 AS col2, 52 AS col1
----
80
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT DISTINCT - - MIN( - 97 ) * - 47 * - - COUNT( * ) AS col1
----
4559

skipif mysql # not compatible
query I rowsort label-6812
SELECT DISTINCT - - MIN ( - 97 ) * - 47 * - - COUNT ( * ) AS col1
----
4559

query I rowsort
SELECT ALL + - 5 * + 3 + + COALESCE ( ( + - 38 ), - - 66 )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-6814
SELECT - 83 * 16 * + 74 * + + 91, NULLIF ( COUNT( * ), - 27 + + 41 + + 77 ) AS col0
----
-8942752
1

skipif mysql # not compatible
query II rowsort label-6814
SELECT - 83 * 16 * + 74 * + + 91, NULLIF ( COUNT ( * ), - 27 + + 41 + + 77 ) AS col0
----
-8942752
1

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

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

query I rowsort
SELECT + 57 + + 14 col2
----
71

query I rowsort
SELECT ALL 0 + 30 AS col2
----
30

query I rowsort
SELECT ALL 58 + + 50
----
108

query I rowsort
SELECT 86 * - 42 AS col1
----
-3612

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT MIN( ALL 58 ) + + 99
----
157

skipif mysql # not compatible
query I rowsort label-6820
SELECT MIN ( ALL 58 ) + + 99
----
157

query I rowsort
SELECT ALL - 60 col0
----
-60

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6823
SELECT ALL - 62 + - + CASE 52 WHEN + + 82 THEN + - COUNT( ALL + - 58 ) WHEN - 47 THEN NULL END, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6823
SELECT ALL - 62 + - + CASE 52 WHEN + + 82 THEN + - COUNT ( ALL + - 58 ) WHEN - 47 THEN NULL END, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6824
SELECT ALL 46 + COALESCE ( - 39, - 50 ) + - SUM( ALL + 35 ) + - 20 + - - 17 DIV 59 col0
----
-48

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL 46 + COALESCE ( - 39, - 50 ) + - SUM ( ALL + 35 ) + - 20 + - - 17 / 59 col0
----
-48

query I rowsort
SELECT DISTINCT 57 * - 65
----
-3705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6826
SELECT + 28 - - - COUNT( 12 ) - + 15 DIV + 55 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6826
SELECT + 28 - - - COUNT ( 12 ) - + 15 / + 55 AS col0
----
27

query II rowsort
SELECT + 87 * + - 86 AS col0, 9 AS col1
----
-7482
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT + COUNT( + 22 ) + 5 col2
----
6

skipif mysql # not compatible
query I rowsort label-6829
SELECT + COUNT ( + 22 ) + 5 col2
----
6

query I rowsort
SELECT + 92 + - - 33
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6831
SELECT + 68 + 8 * + ( + 86 ) * - + 19 + + 76 + - 14 * + 5 + + - 79 DIV - COUNT( * )
----
-12919

skipif mysql # not compatible
query I rowsort label-6831
SELECT + 68 + 8 * + ( + 86 ) * - + 19 + + 76 + - 14 * + 5 + + - 79 / - COUNT ( * )
----
-12919

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT + + 39 * - COUNT( * ) + - 11
----
-50

skipif mysql # not compatible
query I rowsort label-6833
SELECT + + 39 * - COUNT ( * ) + - 11
----
-50

query I rowsort
SELECT DISTINCT + 0 * 41
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6835
SELECT ALL - CAST( + 19 AS SIGNED ) * - CASE 55 WHEN 7 / - MAX( ALL 7 ) THEN + 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL - CAST ( + 19 AS INTEGER ) * - CASE 55 WHEN 7 / - MAX ( ALL 7 ) THEN + 20 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6836
SELECT - + 56 DIV + SUM( DISTINCT + 8 )
----
-7

skipif mysql # not compatible
query I rowsort label-6836
SELECT - + 56 / + SUM ( DISTINCT + 8 )
----
-7

query I rowsort
SELECT - ( - + 97 ) + - 86
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT DISTINCT 57 + - 85 - - 94 - + MIN( - 62 ) + - 15 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT 57 + - 85 - - 94 - + MIN ( - 62 ) + - 15 AS col2
----
113

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT - CASE - 8 WHEN + 34 + + 58 THEN NULL WHEN + 57 * 3 THEN + COUNT( + 77 ) * + 31 * - 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT - CASE - 8 WHEN + 34 + + 58 THEN NULL WHEN + 57 * 3 THEN + COUNT ( + 77 ) * + 31 * - 7 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + + 79 AS col2
----
79

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

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

query I rowsort
SELECT DISTINCT - 14 * 27 * + - 86 + + + 38 + + COALESCE ( - - 26, 49 * 24 * - 70 * + NULLIF ( 38, + 88 ), 23 ) * 76 AS col1
----
34522

query I rowsort
SELECT - 72 * - - 57 * - 67
----
274968

query I rowsort
SELECT + + 67 col2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6846
SELECT - 55 DIV - - 11
----
-5

skipif mysql # not compatible
query I rowsort label-6846
SELECT - 55 / - - 11
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL - 35 * 20 * - CASE + CASE + - 77 WHEN + 25 THEN NULL WHEN 63 * + 2 + 20 * 63 THEN - 17 ELSE 1 END WHEN + 51 * + 72 THEN 68 * 39 WHEN + COUNT( * ) - - 26 THEN NULL ELSE - 85 + - MIN( DISTINCT 49 ) END + - ( 13 )
----
-93813

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL - 35 * 20 * - CASE + CASE + - 77 WHEN + 25 THEN NULL WHEN 63 * + 2 + 20 * 63 THEN - 17 ELSE 1 END WHEN + 51 * + 72 THEN 68 * 39 WHEN + COUNT ( * ) - - 26 THEN NULL ELSE - 85 + - MIN ( DISTINCT 49 ) END + - ( 13 )
----
-93813

query I rowsort
SELECT + NULLIF ( - - 58, + NULLIF ( + 74, + ( - + 22 ) ) * + 14 * + 59 )
----
58

query I rowsort
SELECT + + 56 col0
----
56

query I rowsort
SELECT - 41 * 99 AS col0
----
-4059

query I rowsort
SELECT NULLIF ( - - 27, - - 12 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT ALL 77 * COUNT( * ) + NULLIF ( + SUM( - 80 ), + 45 )
----
-3

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL 77 * COUNT ( * ) + NULLIF ( + SUM ( - 80 ), + 45 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL - 61 * + COUNT( * ) * + 4 + - SUM( ALL 33 ) * - ( COUNT( * ) ) * - 61 * + - 99 * - - 54 + + 76
----
10761330

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL - 61 * + COUNT ( * ) * + 4 + - SUM ( ALL 33 ) * - ( COUNT ( * ) ) * - 61 * + - 99 * - - 54 + + 76
----
10761330

query I rowsort
SELECT NULLIF ( - + 47, - 96 )
----
-47

query I rowsort
SELECT ALL - 58 * 44
----
-2552

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

query I rowsort
SELECT CASE + + 40 WHEN 29 THEN 46 / + + 94 * + 93 + + 65 * - ( 78 ) + - - 95 + 60 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 83 col1
----
83

query II rowsort
SELECT + 4 + + + 95 + 4 AS col0, 93 AS col2
----
103
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT ALL - CASE + 56 WHEN 92 THEN NULL WHEN + NULLIF ( + 45, 87 + 18 + 74 + COUNT( * ) ) THEN + 63 * 87 ELSE NULL END * - ( + COUNT( * ) * - ( 36 ) + 11 ) - - 40 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL - CASE + 56 WHEN 92 THEN NULL WHEN + NULLIF ( + 45, 87 + 18 + 74 + COUNT ( * ) ) THEN + 63 * 87 ELSE NULL END * - ( + COUNT ( * ) * - ( 36 ) + 11 ) - - 40 / COUNT ( * )
----
NULL

query I rowsort
SELECT - 75 * - 19
----
1425

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT - 92 DIV + + 12
----
-7

skipif mysql # not compatible
query I rowsort label-6862
SELECT - 92 / + + 12
----
-7

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

skipif mysql # not compatible
query I rowsort label-6863
SELECT + ( + MIN ( - 93 ) )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6864
SELECT COUNT( * ) AS col0, CAST( COUNT( 74 ) AS SIGNED )
----
1
1

skipif mysql # not compatible
query II rowsort label-6864
SELECT COUNT ( * ) AS col0, CAST ( COUNT ( 74 ) AS INTEGER )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6865
SELECT ALL COALESCE ( CAST( 26 AS SIGNED ), - 38 ) * 24
----
624

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL COALESCE ( CAST ( 26 AS INTEGER ), - 38 ) * 24
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT MIN( 46 )
----
46

skipif mysql # not compatible
query I rowsort label-6866
SELECT MIN ( 46 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT ALL CAST( 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL CAST ( 26 AS INTEGER ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6868
SELECT DISTINCT + NULLIF ( - COUNT( * ), 31 ) / - - CAST( NULL AS SIGNED ) + + 93 * - 56 + - - 38 + - - 64 / COUNT( * ) * - + 64 + - COALESCE ( + CAST( NULL AS DECIMAL ), + 67 * 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT + NULLIF ( - COUNT ( * ), 31 ) / - - CAST ( NULL AS INTEGER ) + + 93 * - 56 + - - 38 + - - 64 / COUNT ( * ) * - + 64 + - COALESCE ( + CAST ( NULL AS REAL ), + 67 * 22 ) AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( - + 16, + 74 ) col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6870
SELECT ALL COALESCE ( MIN( + 3 ), - CAST( - 21 AS SIGNED ) ) * + 47 + COUNT( * ) + 41
----
183

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL COALESCE ( MIN ( + 3 ), - CAST ( - 21 AS INTEGER ) ) * + 47 + COUNT ( * ) + 41
----
183

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

query I rowsort
SELECT + 87 * + + 6
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT DISTINCT - COALESCE ( 30, - + COALESCE ( - MIN( DISTINCT + 23 ), 53 ) * - 48 * + + 88 + 74 + ( + 13 ), + MAX( DISTINCT 11 ) ) * + 18 col0
----
-540

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT - COALESCE ( 30, - + COALESCE ( - MIN ( DISTINCT + 23 ), 53 ) * - 48 * + + 88 + 74 + ( + 13 ), + MAX ( DISTINCT 11 ) ) * + 18 col0
----
-540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6874
SELECT ALL - ( + CAST( - 25 AS SIGNED ) ) * - 68
----
-1700

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL - ( + CAST ( - 25 AS INTEGER ) ) * - 68
----
-1700

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

query II rowsort
SELECT + + 2 * NULLIF ( + 94, 67 ) + + ( + 23 ), 77 col1
----
211
77

query I rowsort
SELECT + - 32 * - 81 * - - 59
----
152928

query I rowsort
SELECT + - 27 * + 38 + + 89 + 88
----
-849

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

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL + 46 + + 88 * COUNT ( * ) AS col1
----
134

query II rowsort
SELECT DISTINCT - 38 col1, + 62 AS col0
----
-38
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT DISTINCT 55 + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT 55 + COUNT ( * )
----
56

query I rowsort
SELECT ALL - - 46 + NULLIF ( + 22, ( 16 ) * - 5 + + - 79 ) - - 12 AS col1
----
80

query I rowsort
SELECT ALL 73 + - - 0 * + 22
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT DISTINCT - 28 + + + COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT - 28 + + + COUNT ( * ) AS col1
----
-27

query I rowsort
SELECT - ( - 72 ) col0
----
72

query I rowsort
SELECT + 56 + 92 AS col1
----
148

query I rowsort
SELECT - NULLIF ( - 38, - - 68 ) * - 71 AS col0
----
-2698

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6890
SELECT + 59 / CASE + - ( + CAST( 76 AS SIGNED ) ) WHEN - 46 * 89 * - COUNT( * ) + - + COUNT( * ) + + 68 THEN + 83 END + + 86 / - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6890
SELECT + 59 / CASE + - ( + CAST ( 76 AS INTEGER ) ) WHEN - 46 * 89 * - COUNT ( * ) + - + COUNT ( * ) + + 68 THEN + 83 END + + 86 / - 41
----
NULL

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

query I rowsort
SELECT + - 39 + 20 AS col2
----
-19

query II rowsort
SELECT DISTINCT + + 36 col1, 20
----
36
20

query I rowsort
SELECT 35 * + 50 * + 26 + - 96 * + - 31 col0
----
48476

query II rowsort
SELECT ALL 23 + - 96 + 77 * - - 94 AS col1, + ( 60 ) + - 26 AS col1
----
7165
34

query I rowsort
SELECT DISTINCT 82 * 45
----
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL + 99 - - SUM( ALL + 40 ) + - 51
----
88

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + 99 - - SUM ( ALL + 40 ) + - 51
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6898
SELECT ALL + CASE - + 22 WHEN - 61 THEN ( - + 69 ) WHEN + 95 THEN NULL END / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL + CASE - + 22 WHEN - 61 THEN ( - + 69 ) WHEN + 95 THEN NULL END / - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 5 * + 71 AS col2, 8 * + 98 AS col2
----
355
784

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

skipif mysql # not compatible
query I rowsort label-6900
SELECT COUNT ( * ) * - COUNT ( * ) * - 77
----
77

query II rowsort
SELECT 43, - COALESCE ( - 12, 0 ) AS col0
----
43
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT ALL - SUM( + + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL - SUM ( + + 28 )
----
-28

query I rowsort
SELECT 91 * - 88 + 85 AS col0
----
-7923

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT DISTINCT - ( + SUM( DISTINCT + 21 ) ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT - ( + SUM ( DISTINCT + 21 ) ) col2
----
-21

query I rowsort
SELECT ALL - 28 * + 88 AS col0
----
-2464

query I rowsort
SELECT DISTINCT - 17 col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6907
SELECT DISTINCT + NULLIF ( 39, 92 + CAST( - SUM( + 29 ) AS SIGNED ) ) * - - 70 - + ( - COALESCE ( - ( + - 47 ), + CAST( NULL AS SIGNED ), + 87 ) )
----
2777

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT + NULLIF ( 39, 92 + CAST ( - SUM ( + 29 ) AS INTEGER ) ) * - - 70 - + ( - COALESCE ( - ( + - 47 ), + CAST ( NULL AS INTEGER ), + 87 ) )
----
2777

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

skipif mysql # not compatible
query II rowsort label-6908
SELECT - 56 AS col1, COUNT ( * ) AS col2
----
-56
1

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT - SUM( - - 72 ) + - MAX( - 95 ) + ( 35 ) * 35 AS col1
----
1248

skipif mysql # not compatible
query I rowsort label-6913
SELECT - SUM ( - - 72 ) + - MAX ( - 95 ) + ( 35 ) * 35 AS col1
----
1248

onlyif mysql # aggregate syntax: 
query II rowsort label-6914
SELECT - SUM( DISTINCT + 54 ) col0, + 73 AS col1
----
-54
73

skipif mysql # not compatible
query II rowsort label-6914
SELECT - SUM ( DISTINCT + 54 ) col0, + 73 AS col1
----
-54
73

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

skipif mysql # not compatible
query II rowsort label-6915
SELECT - - 40 AS col2, - COUNT ( * ) AS col2
----
40
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT ALL - + 28 + + MAX( 40 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL - + 28 + + MAX ( 40 ) AS col2
----
12

query I rowsort
SELECT - COALESCE ( + 7, + ( - ( 48 ) ) ) AS col0
----
-7

query I rowsort
SELECT + 10 + + 77 + - 16
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT DISTINCT + + 60 * + MAX( - 45 ) * 48 + - COUNT( 3 ) * - ( - - 97 ) col0
----
-129503

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT + + 60 * + MAX ( - 45 ) * 48 + - COUNT ( 3 ) * - ( - - 97 ) col0
----
-129503

query II rowsort
SELECT DISTINCT - 1 AS col1, - 49
----
-1
-49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT DISTINCT + NULLIF ( + 18, - - 54 ) * - - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT + NULLIF ( + 18, - - 54 ) * - - COUNT ( * )
----
18

query I rowsort
SELECT ALL 70 - 81 * 66 col2
----
-5276

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT DISTINCT NULLIF ( + + 53, + MAX( 8 ) * - - COUNT( * ) ) * - - 25
----
1325

skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT NULLIF ( + + 53, + MAX ( 8 ) * - - COUNT ( * ) ) * - - 25
----
1325

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

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL ( COUNT ( * ) ) * + SUM ( + 15 ) AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6926
SELECT ( - + CAST( 54 AS SIGNED ) ) + + 69 * 16 * - 42
----
-46422

skipif mysql # not compatible
query I rowsort label-6926
SELECT ( - + CAST ( 54 AS INTEGER ) ) + + 69 * 16 * - 42
----
-46422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6927
SELECT 4 * - CAST( - 29 AS SIGNED ) - + - 15
----
131

skipif mysql # not compatible
query I rowsort label-6927
SELECT 4 * - CAST ( - 29 AS INTEGER ) - + - 15
----
131

query I rowsort
SELECT ALL - ( - 87 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT ALL ( + + 41 ) * + + 13 + 27 + + 31 * + COUNT( * )
----
591

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL ( + + 41 ) * + + 13 + 27 + + 31 * + COUNT ( * )
----
591

query I rowsort
SELECT ALL - 94 col0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6931
SELECT 30 DIV - 79 * - 95
----
0

skipif mysql # not compatible
query I rowsort label-6931
SELECT 30 / - 79 * - 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT DISTINCT - 51 DIV + ( + + 57 )
----
0

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT - 51 / + ( + + 57 )
----
0

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

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

query I rowsort
SELECT + 43 col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6935
SELECT - COALESCE ( + 46, ( - - 29 ) + + - 41 ) DIV + COUNT( * ) - + 52
----
-98

skipif mysql # not compatible
query I rowsort label-6935
SELECT - COALESCE ( + 46, ( - - 29 ) + + - 41 ) / + COUNT ( * ) - + 52
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT ALL + 68 + + + MAX( + - 18 ) * - + 6
----
176

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL + 68 + + + MAX ( + - 18 ) * - + 6
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL + 88 + + 36 + - - MAX( 24 )
----
148

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL + 88 + + 36 + - - MAX ( 24 )
----
148

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

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

query I rowsort
SELECT ALL - - 75 + 91
----
166

query I rowsort
SELECT DISTINCT + - 13 + + 76 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6941
SELECT ALL - 39 + + CAST( 96 AS SIGNED ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL - 39 + + CAST ( 96 AS INTEGER ) AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6942
SELECT ALL + + 63 + - - COUNT( * ) * + + 46 * + + 99 - - + MIN( NULLIF ( 81, - 79 ) ) DIV - + 7
----
4606

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL + + 63 + - - COUNT ( * ) * + + 46 * + + 99 - - + MIN ( NULLIF ( 81, - 79 ) ) / - + 7
----
4606

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT ALL - ( CASE - + AVG ( - + 12 ) WHEN - - COUNT( * ) * 94 * + 68 + - 15 THEN - + 70 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL - ( CASE - + AVG ( - + 12 ) WHEN - - COUNT ( * ) * 94 * + 68 + - 15 THEN - + 70 END )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6945
SELECT DISTINCT COALESCE ( 45, - - COUNT( * ) * - NULLIF ( + 95, + 93 * + - 49 ) ), COUNT( * ) AS col2
----
45
1

skipif mysql # not compatible
query II rowsort label-6945
SELECT DISTINCT COALESCE ( 45, - - COUNT ( * ) * - NULLIF ( + 95, + 93 * + - 49 ) ), COUNT ( * ) AS col2
----
45
1

query I rowsort
SELECT - COALESCE ( + - 28, - 88 ) * - 69
----
-1932

query I rowsort
SELECT ALL - 92 - + 22 * - + 21 AS col2
----
370

query II rowsort
SELECT DISTINCT + ( 30 ) AS col2, + 3
----
30
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6949
SELECT ALL + 12 - + 63 - + 48 DIV + - 16
----
-48

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL + 12 - + 63 - + 48 / + - 16
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT ALL NULLIF ( - 76, 82 + - 95 * COUNT( * ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL NULLIF ( - 76, 82 + - 95 * COUNT ( * ) ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6951
SELECT ALL - CASE COUNT( DISTINCT + 2 ) WHEN + 13 THEN - 79 * - 91 * - 73 * 67 * 94 + - + CAST( NULL AS SIGNED ) ELSE NULL END * - - 69 + + 39 + - COUNT( DISTINCT 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL - CASE COUNT ( DISTINCT + 2 ) WHEN + 13 THEN - 79 * - 91 * - 73 * 67 * 94 + - + CAST ( NULL AS INTEGER ) ELSE NULL END * - - 69 + + 39 + - COUNT ( DISTINCT 8 )
----
NULL

query I rowsort
SELECT - 99 * - - 8 AS col2
----
-792

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6954
SELECT + 58 DIV - 26
----
-2

skipif mysql # not compatible
query I rowsort label-6954
SELECT + 58 / - 26
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT + 28 + + COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-6955
SELECT + 28 + + COUNT ( * ) AS col1
----
29

query I rowsort
SELECT ALL + 36 * + 94
----
3384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6957
SELECT CASE - 42 WHEN - 9 THEN - - 43 WHEN 6 - - 44 - - + 73 * - 82 * - 10 / + COUNT( * ) THEN NULL WHEN 4 * COALESCE ( 58, CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) + 49 * + COUNT( ALL + 45 ) THEN 78 * 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT CASE - 42 WHEN - 9 THEN - - 43 WHEN 6 - - 44 - - + 73 * - 82 * - 10 / + COUNT ( * ) THEN NULL WHEN 4 * COALESCE ( 58, CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) + 49 * + COUNT ( ALL + 45 ) THEN 78 * 67 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT ALL 14 * + 41 + + COUNT( - + 47 ) AS col1
----
575

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL 14 * + 41 + + COUNT ( - + 47 ) AS col1
----
575

query I rowsort
SELECT CASE + + 55 WHEN - 27 THEN + + 14 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6961
SELECT + COALESCE ( - COUNT ( * ), 52 )
----
-1

query I rowsort
SELECT + 68 * - 82 AS col2
----
-5576

query I rowsort
SELECT + 79 + + 47
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT + CASE COUNT( * ) WHEN + 9 * 59 THEN NULL ELSE + 28 + - + 82 + - 18 + - COUNT( * ) + - ( 70 ) * + 52 END AS col1
----
-3713

skipif mysql # not compatible
query I rowsort label-6964
SELECT + CASE COUNT ( * ) WHEN + 9 * 59 THEN NULL ELSE + 28 + - + 82 + - 18 + - COUNT ( * ) + - ( 70 ) * + 52 END AS col1
----
-3713

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT + MAX( + 57 ) * 64 + - SUM( 86 )
----
3562

skipif mysql # not compatible
query I rowsort label-6965
SELECT + MAX ( + 57 ) * 64 + - SUM ( 86 )
----
3562

query I rowsort
SELECT + 14 * 71
----
994

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6967
SELECT DISTINCT + 13 col1, CAST( - 61 AS SIGNED ) AS col2
----
13
-61

skipif mysql # not compatible
query II rowsort label-6967
SELECT DISTINCT + 13 col1, CAST ( - 61 AS INTEGER ) AS col2
----
13
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6968
SELECT ALL 23 * + CAST( - 27 AS SIGNED ) + - 71 + + + NULLIF ( - 8, - CASE - 81 WHEN + + 93 THEN NULL WHEN 24 + 95 - - - COUNT( * ) THEN NULL WHEN 98 THEN + 68 * 72 ELSE NULL END / + 48 )
----
-700

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL 23 * + CAST ( - 27 AS INTEGER ) + - 71 + + + NULLIF ( - 8, - CASE - 81 WHEN + + 93 THEN NULL WHEN 24 + 95 - - - COUNT ( * ) THEN NULL WHEN 98 THEN + 68 * 72 ELSE NULL END / + 48 )
----
-700

query II rowsort
SELECT ALL + + 72 AS col1, 32
----
72
32

query II rowsort
SELECT DISTINCT + 3 AS col2, - 94 - + ( - 10 )
----
3
-84

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

query I rowsort
SELECT - 65 + - + 45
----
-110

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6974
SELECT + NULLIF ( - 39, 74 * + + COUNT( * ) * + 95 ) * + + 60 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6974
SELECT + NULLIF ( - 39, 74 * + + COUNT ( * ) * + 95 ) * + + 60 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6975
SELECT ALL - 7 DIV - 5 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL - 7 / - 5 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT + - 2 + + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-6976
SELECT + - 2 + + - COUNT ( * )
----
-3

query I rowsort
SELECT - + 27 + + - 20 AS col0
----
-47

query I rowsort
SELECT - - CASE 87 WHEN 88 THEN - - 4 * + 9 * + - 37 * 86 / + + 53 + + + 28 ELSE NULL END + + 90 / - 18
----
NULL

query I rowsort
SELECT DISTINCT + + 85 * - - 34 AS col2
----
2890

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT ALL + + COUNT( DISTINCT - 89 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL + + COUNT ( DISTINCT - 89 ) * - COUNT ( * )
----
-1

query II rowsort
SELECT - 81 + + - 69 + - 23 - 8 + 25 + + - 59 col0, - 62
----
-215
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT - 94 + - - 89 + 60 + + - 19 * + - 63 * - + 99 * + ( + - CAST( NULL AS SIGNED ) ) * - + 9 * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT - 94 + - - 89 + 60 + + - 19 * + - 63 * - + 99 * + ( + - CAST ( NULL AS INTEGER ) ) * - + 9 * 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT DISTINCT COALESCE ( + + COUNT( * ), + + 68 )
----
1

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT COALESCE ( + + COUNT ( * ), + + 68 )
----
1

query I rowsort
SELECT - 76 * + - 83
----
6308

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

query II rowsort
SELECT - 40 + + - 22 AS col2, - 96
----
-62
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ALL ( - + COUNT( - 99 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL ( - + COUNT ( - 99 ) ) AS col0
----
-1

query II rowsort
SELECT DISTINCT ( + + 74 ) AS col0, 12 AS col1
----
74
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT - 46 * - 37 * - ( + CASE COUNT( 40 ) WHEN - 67 + + 54 THEN NULL WHEN 46 THEN + 48 WHEN 60 * + + NULLIF ( + 11, - 41 * 83 ) * 28 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT - 46 * - 37 * - ( + CASE COUNT ( 40 ) WHEN - 67 + + 54 THEN NULL WHEN 46 THEN + 48 WHEN 60 * + + NULLIF ( + 11, - 41 * 83 ) * 28 THEN NULL ELSE NULL END )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6991
SELECT - MIN( + + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT - MIN ( + + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT ALL - 69 DIV 43 * 97 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL - 69 / 43 * 97 AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6993
SELECT + CASE 19 WHEN + 28 * - CASE + - CASE + + CAST( NULL AS SIGNED ) WHEN - MIN( DISTINCT - 11 ) + - 22 * - - ( COUNT( 75 ) ) THEN + 75 * 16 + CAST( NULL AS SIGNED ) END WHEN - 72 + 82 * MIN( + 32 / 56 ) THEN NULL WHEN + 21 THEN CAST( NULL AS DECIMAL ) ELSE 7 END * 77 + - SUM( DISTINCT ( + 1 ) + + CAST( - 72 - + 49 AS SIGNED ) ) THEN - NULLIF ( - 92, 26 + - ( 4 + COALESCE ( + 62, 53 ) ) / + CAST( NULL AS SIGNED ) ) WHEN - 18 THEN NULL ELSE - 1 + - COUNT( * ) * - 62 END AS col1
----
61

skipif mysql # not compatible
query I rowsort label-6993
SELECT + CASE 19 WHEN + 28 * - CASE + - CASE + + CAST ( NULL AS INTEGER ) WHEN - MIN ( DISTINCT - 11 ) + - 22 * - - ( COUNT ( 75 ) ) THEN + 75 * 16 + CAST ( NULL AS INTEGER ) END WHEN - 72 + 82 * MIN ( + 32 / 56 ) THEN NULL WHEN + 21 THEN CAST ( NULL AS REAL ) ELSE 7 END * 77 + - SUM ( DISTINCT ( + 1 ) + + CAST ( - 72 - + 49 AS INTEGER ) ) THEN - NULLIF ( - 92, 26 + - ( 4 + COALESCE ( + 62, 53 ) ) / + CAST ( NULL AS INTEGER ) ) WHEN - 18 THEN NULL ELSE - 1 + - COUNT ( * ) * - 62 END AS col1
----
61

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6995
SELECT DISTINCT - 48 DIV + 77 + + + 69 + - 6 + + 27 col1, CAST( NULL AS SIGNED ) AS col0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-6995
SELECT DISTINCT - 48 / + 77 + + + 69 + - 6 + + 27 col1, CAST ( NULL AS INTEGER ) AS col0
----
90
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6996
SELECT + ( + COALESCE ( - - NULLIF ( + - 84, + - CAST( + - 37 AS DECIMAL ) * - 84 ), - 34 * + 0 ) ) col0
----
-84

skipif mysql # not compatible
query I rowsort label-6996
SELECT + ( + COALESCE ( - - NULLIF ( + - 84, + - CAST ( + - 37 AS REAL ) * - 84 ), - 34 * + 0 ) ) col0
----
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-6997
SELECT ALL 78 DIV + 50 + - 45 * 57, 80 * - 62 AS col0
----
-2564
-4960

skipif mysql # not compatible
query II rowsort label-6997
SELECT ALL 78 / + 50 + - 45 * 57, 80 * - 62 AS col0
----
-2564
-4960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6998
SELECT ALL 47 DIV - 1 + + COUNT( * ) + COUNT( * ) + + SUM( ALL - + 80 )
----
-125

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL 47 / - 1 + + COUNT ( * ) + COUNT ( * ) + + SUM ( ALL - + 80 )
----
-125

query I rowsort
SELECT + 65 * - - 70 - + - 69
----
4619

onlyif mysql # DIV for integer division: 
query I rowsort label-7000
SELECT ALL 26 DIV - ( - - ( + 32 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL 26 / - ( - - ( + 32 ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7001
SELECT + CASE + + 58 WHEN - + ( 17 ) THEN + 11 * - + 98 + + + 36 * - ( - + MAX( + - 78 ) ) * + - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7001
SELECT + CASE + + 58 WHEN - + ( 17 ) THEN + 11 * - + 98 + + + 36 * - ( - + MAX ( + - 78 ) ) * + - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7002
SELECT ALL 15 DIV - 45 * - 82 * 60 + + + 37 + + COUNT( * ) * CASE 37 WHEN - 28 * 62 * + + NULLIF ( - COUNT( * ), - 85 ) THEN + 27 ELSE CAST( 26 AS SIGNED ) DIV - 70 END AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL 15 / - 45 * - 82 * 60 + + + 37 + + COUNT ( * ) * CASE 37 WHEN - 28 * 62 * + + NULLIF ( - COUNT ( * ), - 85 ) THEN + 27 ELSE CAST ( 26 AS INTEGER ) / - 70 END AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7003
SELECT ALL CAST( 81 AS SIGNED ) DIV + 75 + 39, 88 - 14 * + + ( + + CASE + CAST( NULL AS SIGNED ) WHEN + + 79 THEN + + 46 * + - CASE 63 WHEN + COUNT( * ) + 84 THEN NULL WHEN NULLIF ( 30, + 53 DIV COALESCE ( + 34 * + COUNT( * ), - 51 + + 30 ) ) + 32 * 41 THEN NULL WHEN 27 THEN - COUNT( * ) WHEN + 49 THEN COUNT( * ) END END ) + + CAST( - 66 AS SIGNED ) col1
----
40
NULL

skipif mysql # not compatible
query II rowsort label-7003
SELECT ALL CAST ( 81 AS INTEGER ) / + 75 + 39, 88 - 14 * + + ( + + CASE + CAST ( NULL AS INTEGER ) WHEN + + 79 THEN + + 46 * + - CASE 63 WHEN + COUNT ( * ) + 84 THEN NULL WHEN NULLIF ( 30, + 53 / COALESCE ( + 34 * + COUNT ( * ), - 51 + + 30 ) ) + 32 * 41 THEN NULL WHEN 27 THEN - COUNT ( * ) WHEN + 49 THEN COUNT ( * ) END END ) + + CAST ( - 66 AS INTEGER ) col1
----
40
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT ALL + ( CASE + MAX( - 18 ) WHEN 20 THEN + NULLIF ( - COUNT( * ), + 97 * 48 / - COALESCE ( 34, + 50, - 40 * + 73 ) * 80 + 41 ) WHEN - 47 * COUNT( * ) THEN NULL ELSE - ( ( COUNT( * ) ) ) * - ( + 61 ) + SUM( ALL - 5 ) END ) * 52 + 74 * 3
----
3134

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL + ( CASE + MAX ( - 18 ) WHEN 20 THEN + NULLIF ( - COUNT ( * ), + 97 * 48 / - COALESCE ( 34, + 50, - 40 * + 73 ) * 80 + 41 ) WHEN - 47 * COUNT ( * ) THEN NULL ELSE - ( ( COUNT ( * ) ) ) * - ( + 61 ) + SUM ( ALL - 5 ) END ) * 52 + 74 * 3
----
3134

query I rowsort
SELECT DISTINCT + + 5 col0
----
5

query I rowsort
SELECT + 29 * - 70 - COALESCE ( + ( + + 30 ), - NULLIF ( + CASE + - 82 WHEN + 99 + + + 2 THEN - 17 WHEN 42 THEN NULL ELSE - + CASE WHEN ( 64 ) IS NULL THEN NULL ELSE - 4 END END, 14 * 95 ) )
----
-2060

query I rowsort
SELECT DISTINCT + - 28 AS col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7009
SELECT ALL - 72 * 65 - 74 DIV - 30 - 27 AS col2
----
-4705

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL - 72 * 65 - 74 / - 30 - 27 AS col2
----
-4705

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT + - SUM( - - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-7010
SELECT + - SUM ( - - 59 ) AS col1
----
-59

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ALL CASE + + COUNT( * ) WHEN - 18 / + 37 + 35 / - 69 THEN - 52 WHEN + - 11 + AVG ( DISTINCT + 62 ) THEN - 5 * + 99 END * 21 * + CASE 0 WHEN - 22 - + 41 * 11 THEN + COUNT( + 60 ) - 83 * + 67 ELSE 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL CASE + + COUNT ( * ) WHEN - 18 / + 37 + 35 / - 69 THEN - 52 WHEN + - 11 + AVG ( DISTINCT + 62 ) THEN - 5 * + 99 END * 21 * + CASE 0 WHEN - 22 - + 41 * 11 THEN + COUNT ( + 60 ) - 83 * + 67 ELSE 78 END
----
NULL

query I rowsort
SELECT DISTINCT - 17 - 56
----
-73

query II rowsort
SELECT DISTINCT + CASE - 63 WHEN + 15 THEN - 14 ELSE NULL END, 49 AS col0
----
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT COUNT( * ) * - NULLIF ( - + 0, - 12 ) + 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-7016
SELECT COUNT ( * ) * - NULLIF ( - + 0, - 12 ) + 76 AS col1
----
76

query II rowsort
SELECT - 11 AS col0, + 84 * - + 22 * + 1 AS col0
----
-11
-1848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7018
SELECT 53 DIV CASE WHEN NOT - 21 IS NULL THEN + CASE CASE + 1 WHEN + 55 THEN - - 30 ELSE + 41 * 16 END WHEN - 90 * + + ( + 42 ) DIV - 60 THEN NULL WHEN - ( + 85 ) + 83 DIV + 6 THEN CASE COUNT( * ) WHEN 34 + - 20 THEN 36 * 89 + + 25 * + ( 65 * 27 ) WHEN COUNT( * ) + - 83 THEN + SUM( + 23 ) ELSE 14 END ELSE + 89 * 49 END * + 75 ELSE - 32 * 92 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7018
SELECT 53 / CASE WHEN NOT - 21 IS NULL THEN + CASE CASE + 1 WHEN + 55 THEN - - 30 ELSE + 41 * 16 END WHEN - 90 * + + ( + 42 ) / - 60 THEN NULL WHEN - ( + 85 ) + 83 / + 6 THEN CASE COUNT ( * ) WHEN 34 + - 20 THEN 36 * 89 + + 25 * + ( 65 * 27 ) WHEN COUNT ( * ) + - 83 THEN + SUM ( + 23 ) ELSE 14 END ELSE + 89 * 49 END * + 75 ELSE - 32 * 92 END AS col2
----
0

query I rowsort
SELECT DISTINCT 76 + - ( 1 ) AS col2
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-7020
SELECT ( 40 ) DIV + 25, 86 AS col1
----
1
86

skipif mysql # not compatible
query II rowsort label-7020
SELECT ( 40 ) / + 25, 86 AS col1
----
1
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7021
SELECT DISTINCT CASE 50 WHEN + - 47 THEN 64 * + 80 DIV + + 83 * 73 * - 97 + + 86 + 2 WHEN + 33 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE - 61 * - + MAX( 33 ) + + COUNT( DISTINCT 81 ) END + 61 AS col2
----
2075

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT CASE 50 WHEN + - 47 THEN 64 * + 80 / + + 83 * 73 * - 97 + + 86 + 2 WHEN + 33 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE - 61 * - + MAX ( 33 ) + + COUNT ( DISTINCT 81 ) END + 61 AS col2
----
2075

onlyif mysql # aggregate syntax: 
query II rowsort label-7022
SELECT - 73, 43 * - 53 - + COUNT( DISTINCT - + 15 ) AS col2
----
-73
-2280

skipif mysql # not compatible
query II rowsort label-7022
SELECT - 73, 43 * - 53 - + COUNT ( DISTINCT - + 15 ) AS col2
----
-73
-2280

query I rowsort
SELECT ALL + 9 + - + 93 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT ALL - CASE + 12 WHEN COUNT( * ) + - 28 THEN + 99 ELSE NULL END + - 83 + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL - CASE + 12 WHEN COUNT ( * ) + - 28 THEN + 99 ELSE NULL END + - 83 + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT 24 + - COUNT( - 83 )
----
23

skipif mysql # not compatible
query I rowsort label-7025
SELECT 24 + - COUNT ( - 83 )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7026
SELECT 59 - + - COUNT( DISTINCT 39 ) AS col2, - 37 + - + 26 AS col2
----
60
-63

skipif mysql # not compatible
query II rowsort label-7026
SELECT 59 - + - COUNT ( DISTINCT 39 ) AS col2, - 37 + - + 26 AS col2
----
60
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7027
SELECT CAST( NULL AS SIGNED ) + + - 14 + - 39 * - ( + 89 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7027
SELECT CAST ( NULL AS INTEGER ) + + - 14 + - 39 * - ( + 89 ) AS col1
----
NULL

query I rowsort
SELECT 69 - - - 50 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT ALL + 10 + + - CASE - 64 WHEN - 81 * + 1 THEN - 15 + + 54 WHEN + + COUNT( * ) THEN NULL ELSE - COUNT( + + 43 ) * + 1 END + 66
----
77

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL + 10 + + - CASE - 64 WHEN - 81 * + 1 THEN - 15 + + 54 WHEN + + COUNT ( * ) THEN NULL ELSE - COUNT ( + + 43 ) * + 1 END + 66
----
77

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

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

query I rowsort
SELECT 78 * + 61 * - 40
----
-190320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7032
SELECT 10 DIV + - 46 * + + 60 + + MAX( ALL + + 88 ) * + MAX( + - 26 )
----
-2288

skipif mysql # not compatible
query I rowsort label-7032
SELECT 10 / + - 46 * + + 60 + + MAX ( ALL + + 88 ) * + MAX ( + - 26 )
----
-2288

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT DISTINCT - 20 DIV + 47 * + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT - 20 / + 47 * + 51 AS col0
----
0

query I rowsort
SELECT ALL + 47 + + - 90 col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7035
SELECT DISTINCT - 7 col0, + CAST( + 52 AS SIGNED ) AS col2
----
-7
52

skipif mysql # not compatible
query II rowsort label-7035
SELECT DISTINCT - 7 col0, + CAST ( + 52 AS INTEGER ) AS col2
----
-7
52

query I rowsort
SELECT ALL 20 * 63
----
1260

query I rowsort
SELECT ALL 79 - + - 5 col1
----
84

query II rowsort
SELECT ALL - 19 AS col2, 8 - + + 9 AS col2
----
-19
-1

query I rowsort
SELECT 1 + - - 93 col2
----
94

query I rowsort
SELECT 60 + - + 58 - 69
----
-67

query I rowsort
SELECT + 77 * + 3
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7042
SELECT + - ( + COALESCE ( + 91, 81 DIV - 75 + + 79 + - CAST( NULL AS SIGNED ) + - 50 + 14 - - 52 * + MIN( + - 40 ) * + 75 DIV MAX( DISTINCT + 4 ) * NULLIF ( - ( ( 0 ) ), - COUNT( * ) ) + 66 + - 78 * 69 + + 2 * ( 33 * + MIN( + 39 ) ) ) ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-7042
SELECT + - ( + COALESCE ( + 91, 81 / - 75 + + 79 + - CAST ( NULL AS INTEGER ) + - 50 + 14 - - 52 * + MIN ( + - 40 ) * + 75 / MAX ( DISTINCT + 4 ) * NULLIF ( - ( ( 0 ) ), - COUNT ( * ) ) + 66 + - 78 * 69 + + 2 * ( 33 * + MIN ( + 39 ) ) ) ) AS col0
----
-91

query I rowsort
SELECT ALL + - 56 * + 45 AS col2
----
-2520

query I rowsort
SELECT ALL - + 93 - + 98 * + 20 AS col1
----
-2053

query I rowsort
SELECT ( - - 57 ) * + 36 * - 45
----
-92340

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

query I rowsort
SELECT ALL + 79 * + - 81
----
-6399

query I rowsort
SELECT - 27 + + 78 AS col1
----
51

query I rowsort
SELECT ALL - + 76 * - - 10 col1
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT DISTINCT - - NULLIF ( - 92, MIN( DISTINCT - - 48 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT - - NULLIF ( - 92, MIN ( DISTINCT - - 48 ) ) AS col0
----
-92

query I rowsort
SELECT DISTINCT - ( - + 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT 94 - + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-7052
SELECT 94 - + COUNT ( * )
----
93

query I rowsort
SELECT DISTINCT - + 19
----
-19

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

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

query I rowsort
SELECT ( - 37 ) + 67 + 98 * + 40 * + - 95
----
-372370

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT 73 + - SUM( DISTINCT + 74 ) - - 11 * - 2 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7056
SELECT 73 + - SUM ( DISTINCT + 74 ) - - 11 * - 2 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT CASE + - 39 WHEN + COUNT( * ) THEN - 14 / - ( 78 ) * 14 + + 66 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT CASE + - 39 WHEN + COUNT ( * ) THEN - 14 / - ( 78 ) * 14 + + 66 END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7058
SELECT 63 - + 8 - ( - 65 ) * - + 23 / + CAST( NULL AS SIGNED ) * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT 63 - + 8 - ( - 65 ) * - + 23 / + CAST ( NULL AS INTEGER ) * - 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT DISTINCT 69 * + + NULLIF ( - COUNT( * ), 74 )
----
-69

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT 69 * + + NULLIF ( - COUNT ( * ), 74 )
----
-69

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

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

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

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

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

query I rowsort
SELECT ALL ( - + 73 ) * - + 56 AS col1
----
4088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7064
SELECT NULLIF ( 42, + 28 ) + + CASE + 36 WHEN COALESCE ( - 77, 99 + - 3 ) THEN NULL ELSE + CASE + 34 WHEN - - CASE - COALESCE ( + NULLIF ( + MAX( ALL + - 2 ), 79 * 79 - 48 ), + MAX( DISTINCT 19 ) ) WHEN CASE + 29 WHEN - 76 THEN 28 + + 97 ELSE COUNT( * ) + ( - COUNT( * ) + + 62 ) END * 22 - - CAST( + COUNT( * ) AS SIGNED ) THEN + 55 * + 99 ELSE - ( - ( 17 ) ) END THEN COUNT( DISTINCT - 13 ) WHEN 27 * + 96 THEN NULL ELSE NULL END + NULLIF ( + 28, + CASE + COUNT( DISTINCT 88 ) WHEN - 20 * + COUNT( * ) THEN 73 - 6 END ) * 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7064
SELECT NULLIF ( 42, + 28 ) + + CASE + 36 WHEN COALESCE ( - 77, 99 + - 3 ) THEN NULL ELSE + CASE + 34 WHEN - - CASE - COALESCE ( + NULLIF ( + MAX ( ALL + - 2 ), 79 * 79 - 48 ), + MAX ( DISTINCT 19 ) ) WHEN CASE + 29 WHEN - 76 THEN 28 + + 97 ELSE COUNT ( * ) + ( - COUNT ( * ) + + 62 ) END * 22 - - CAST ( + COUNT ( * ) AS INTEGER ) THEN + 55 * + 99 ELSE - ( - ( 17 ) ) END THEN COUNT ( DISTINCT - 13 ) WHEN 27 * + 96 THEN NULL ELSE NULL END + NULLIF ( + 28, + CASE + COUNT ( DISTINCT 88 ) WHEN - 20 * + COUNT ( * ) THEN 73 - 6 END ) * 85 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 70 + 45
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL 93 + COUNT( * ) * - - 42 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL 93 + COUNT ( * ) * - - 42 AS col0
----
135

query II rowsort
SELECT ALL 21 AS col2, NULLIF ( + 22, + + 47 ) - - - 19 + 36
----
21
39

query I rowsort
SELECT ( - 52 ) + - 37
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-7069
SELECT DISTINCT 98 + - 3 AS col2, COUNT( * ) + COALESCE ( + - 61, 67, 35 ) AS col0
----
95
-60

skipif mysql # not compatible
query II rowsort label-7069
SELECT DISTINCT 98 + - 3 AS col2, COUNT ( * ) + COALESCE ( + - 61, 67, 35 ) AS col0
----
95
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7070
SELECT ALL 57 + + + 12 DIV + 9 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL 57 + + + 12 / + 9 AS col1
----
58

query I rowsort
SELECT 78 + - 51
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ( 7 ) * + COUNT( + + 98 ) * 7 + + 2 + - 93 * + 93
----
-8598

skipif mysql # not compatible
query I rowsort label-7072
SELECT ( 7 ) * + COUNT ( + + 98 ) * 7 + + 2 + - 93 * + 93
----
-8598

query I rowsort
SELECT 85 * 22 * 20 AS col2
----
37400

onlyif mysql # DIV for integer division: 
query I rowsort label-7074
SELECT ALL 51 DIV - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL 51 / - 89 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL COUNT ( * ) + 27 col0
----
28

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

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

query I rowsort
SELECT 95 col1
----
95

query I rowsort
SELECT ALL 97 - + 12
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT DISTINCT 46, - 57 * - 47 * - + 80 + - + COUNT( * ) AS col1
----
46
-214321

skipif mysql # not compatible
query II rowsort label-7079
SELECT DISTINCT 46, - 57 * - 47 * - + 80 + - + COUNT ( * ) AS col1
----
46
-214321

query I rowsort
SELECT ALL 57 * - 66 - + 5
----
-3767

query I rowsort
SELECT 84 * + - 68 AS col1
----
-5712

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT ALL 91 * - COUNT( * ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL 91 * - COUNT ( * ) col2
----
-91

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

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

query I rowsort
SELECT 90 + 70
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT DISTINCT 8 * + SUM( DISTINCT - 35 ) * + 79
----
-22120

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT 8 * + SUM ( DISTINCT - 35 ) * + 79
----
-22120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7086
SELECT 75 * CAST( + + MAX( 74 ) AS SIGNED ) + - - 21 AS col1
----
5571

skipif mysql # not compatible
query I rowsort label-7086
SELECT 75 * CAST ( + + MAX ( 74 ) AS INTEGER ) + - - 21 AS col1
----
5571

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7087
SELECT ALL - - 1 AS col2, + COUNT( * ) DIV - 14 * + 47
----
1
0

skipif mysql # not compatible
query II rowsort label-7087
SELECT ALL - - 1 AS col2, + COUNT ( * ) / - 14 * + 47
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT ALL 54 * + 80 * MAX( ALL 6 ) - 33
----
25887

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL 54 * + 80 * MAX ( ALL 6 ) - 33
----
25887

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

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

query I rowsort
SELECT 31 * + + 76 - + 54
----
2302

onlyif mysql # aggregate syntax: 
query II rowsort label-7091
SELECT DISTINCT - COUNT( ALL + 52 ) * 74 * 4 * + + 90 * + 85 * + 55 AS col1, - 18 col0
----
-124542000
-18

skipif mysql # not compatible
query II rowsort label-7091
SELECT DISTINCT - COUNT ( ALL + 52 ) * 74 * 4 * + + 90 * + 85 * + 55 AS col1, - 18 col0
----
-124542000
-18

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

query II rowsort
SELECT ALL + 98 AS col2, CASE 79 WHEN - 35 THEN - 40 END
----
98
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7094
SELECT - + 39 * 13 + + - COUNT( * ) DIV - 17
----
-507

skipif mysql # not compatible
query I rowsort label-7094
SELECT - + 39 * 13 + + - COUNT ( * ) / - 17
----
-507

query I rowsort
SELECT DISTINCT + - 90
----
-90

query II rowsort
SELECT 68 AS col2, 1 AS col0
----
68
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7097
SELECT ALL + 84 DIV - SUM( DISTINCT - 51 ) + 96 + 1 * - + 99 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL + 84 / - SUM ( DISTINCT - 51 ) + 96 + 1 * - + 99 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7098
SELECT - 47 + - 85 * CAST( NULL AS DECIMAL ) + 11 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT - 47 + - 85 * CAST ( NULL AS REAL ) + 11 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL + 68 * COUNT( * ) * 62
----
4216

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL + 68 * COUNT ( * ) * 62
----
4216

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7101
SELECT COUNT( * ) AS col2, - 33 * MIN( 66 ) + - + 92 * + + 9 AS col1
----
1
-3006

skipif mysql # not compatible
query II rowsort label-7101
SELECT COUNT ( * ) AS col2, - 33 * MIN ( 66 ) + - + 92 * + + 9 AS col1
----
1
-3006

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7102
SELECT + + 42, + CAST( + 44 AS SIGNED ) + + 3 * - ( - 22 ) AS col2
----
42
110

skipif mysql # not compatible
query II rowsort label-7102
SELECT + + 42, + CAST ( + 44 AS INTEGER ) + + 3 * - ( - 22 ) AS col2
----
42
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7103
SELECT + 45 * + MIN( + 0 ) + 93 - COUNT( * ) * - - ( - 78 ) + + 2 DIV + 58 DIV - 3
----
171

skipif mysql # not compatible
query I rowsort label-7103
SELECT + 45 * + MIN ( + 0 ) + 93 - COUNT ( * ) * - - ( - 78 ) + + 2 / + 58 / - 3
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT DISTINCT 62 + + COUNT( - 1 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT 62 + + COUNT ( - 1 ) AS col2
----
63

query I rowsort
SELECT ALL - 74 * + - ( - + 77 ) * NULLIF ( - 37, NULLIF ( + 47, - - AVG ( DISTINCT - + 10 ) / + 43 ) ) AS col1
----
210826

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7106
SELECT - + SUM( ALL - 91 ) DIV - 52
----
-1

skipif mysql # not compatible
query I rowsort label-7106
SELECT - + SUM ( ALL - 91 ) / - 52
----
-1

query I rowsort
SELECT - 23 * + + ( + + 36 )
----
-828

query I rowsort
SELECT DISTINCT COALESCE ( - 97, + ( 26 ) * + 0, 10 - 24 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT - MIN( ALL + 65 ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-7109
SELECT - MIN ( ALL + 65 ) col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7110
SELECT ALL ( - 2 ) AS col2, 11 * - SUM( ALL + 76 ) + - 95 + 55 + - - ( - COUNT( * ) ) * COALESCE ( COUNT( * ), + 77 * - 30 )
----
-2
-877

skipif mysql # not compatible
query II rowsort label-7110
SELECT ALL ( - 2 ) AS col2, 11 * - SUM ( ALL + 76 ) + - 95 + 55 + - - ( - COUNT ( * ) ) * COALESCE ( COUNT ( * ), + 77 * - 30 )
----
-2
-877

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7111
SELECT - 70 + 55 DIV - + SUM( DISTINCT + - ( - + 13 ) ) col1
----
-74

skipif mysql # not compatible
query I rowsort label-7111
SELECT - 70 + 55 / - + SUM ( DISTINCT + - ( - + 13 ) ) col1
----
-74

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

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL - CAST ( NULL AS INTEGER ) + + 60 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7113
SELECT ALL 57 + + + CASE + 79 WHEN 11 THEN 80 WHEN 26 - 78 THEN + CAST( + NULLIF ( + 15, 17 * - + 24 * + 57 * + 34 + - 68 ) AS SIGNED ) * ( - 81 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL 57 + + + CASE + 79 WHEN 11 THEN 80 WHEN 26 - 78 THEN + CAST ( + NULLIF ( + 15, 17 * - + 24 * + 57 * + 34 + - 68 ) AS INTEGER ) * ( - 81 ) END
----
NULL

query II rowsort
SELECT DISTINCT 75 * 38 AS col1, 16
----
2850
16

query I rowsort
SELECT - 39 - 87 + + - 3
----
-129

query I rowsort
SELECT + COALESCE ( - - 73, + 41 ) + 64 * + 28 * + 94 * - 51 * - 39 AS col2
----
335043145

onlyif mysql # aggregate syntax: 
query II rowsort label-7117
SELECT + 92 + 36 + 54 AS col1, - COUNT( * )
----
182
-1

skipif mysql # not compatible
query II rowsort label-7117
SELECT + 92 + 36 + 54 AS col1, - COUNT ( * )
----
182
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT ALL 3 - 45 - COUNT( * ) * + 49
----
-91

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL 3 - 45 - COUNT ( * ) * + 49
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT - COALESCE ( + - 63, - 74 + + 25, + 86 * - 48 + + + MAX( 30 ) )
----
63

skipif mysql # not compatible
query I rowsort label-7119
SELECT - COALESCE ( + - 63, - 74 + + 25, + 86 * - 48 + + + MAX ( 30 ) )
----
63

query I rowsort
SELECT ALL 74 * + 68 * + 63
----
317016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7121
SELECT + CAST( + + 93 AS SIGNED ) - 40
----
53

skipif mysql # not compatible
query I rowsort label-7121
SELECT + CAST ( + + 93 AS INTEGER ) - 40
----
53

query I rowsort
SELECT + 38 + - 74
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7123
SELECT + 50 DIV 12 col1, + 42 * COUNT( * ) AS col0
----
4
42

skipif mysql # not compatible
query II rowsort label-7123
SELECT + 50 / 12 col1, + 42 * COUNT ( * ) AS col0
----
4
42

query I rowsort
SELECT + 55 * ( ( - 61 ) )
----
-3355

onlyif mysql # DIV for integer division: 
query I rowsort label-7125
SELECT ALL - 24 DIV - - ( + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL - 24 / - - ( + 53 )
----
0

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

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

query I rowsort
SELECT DISTINCT + 51 AS col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7128
SELECT + + CASE + - 34 WHEN + COUNT( * ) + + + 82 THEN + 12 ELSE COUNT( * ) END DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-7128
SELECT + + CASE + - 34 WHEN + COUNT ( * ) + + + 82 THEN + 12 ELSE COUNT ( * ) END / - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT ALL + + COUNT( * ) * + MIN( ALL 5 ) + 92
----
97

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL + + COUNT ( * ) * + MIN ( ALL 5 ) + 92
----
97

query I rowsort
SELECT + - 94 * 50
----
-4700

query I rowsort
SELECT + + NULLIF ( 87, - - 40 )
----
87

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

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

query I rowsort
SELECT ALL 6 * + 81 * + 48 col2
----
23328

query I rowsort
SELECT + 75 * - 51 AS col2
----
-3825

query I rowsort
SELECT - 45 * - 69 AS col2
----
3105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7136
SELECT ALL - COUNT( * ) * + 5 + - + CAST( - COUNT( * ) AS SIGNED ) + + - COUNT( * ), + 91 AS col1
----
-5
91

skipif mysql # not compatible
query II rowsort label-7136
SELECT ALL - COUNT ( * ) * + 5 + - + CAST ( - COUNT ( * ) AS INTEGER ) + + - COUNT ( * ), + 91 AS col1
----
-5
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT NULLIF ( - 72, - ( + 60 ) ) * 45 * COUNT( * ) + 19 * 44 AS col0
----
-2404

skipif mysql # not compatible
query I rowsort label-7137
SELECT NULLIF ( - 72, - ( + 60 ) ) * 45 * COUNT ( * ) + 19 * 44 AS col0
----
-2404

query I rowsort
SELECT - 26 * + 87 + 85 + - 24 * + 60 - + + 54
----
-3671

query I rowsort
SELECT - - 92 + + ( + 43 )
----
135

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7141
SELECT CASE - 26 WHEN 72 + + + NULLIF ( 31, - 51 / COUNT( * ) ) THEN NULL WHEN - CAST( + + 85 AS SIGNED ) THEN + 20 + - + MAX( ALL + 75 ) WHEN - COUNT( + 10 ) * 20 + - COALESCE ( + + COUNT( * ), COUNT( * ) * 13 + 41 * + CAST( + 49 * - 24 + + 7 / - 90 AS SIGNED ) ) THEN - 68 * + 32 + 61 ELSE + 44 * 38 END
----
1672

skipif mysql # not compatible
query I rowsort label-7141
SELECT CASE - 26 WHEN 72 + + + NULLIF ( 31, - 51 / COUNT ( * ) ) THEN NULL WHEN - CAST ( + + 85 AS INTEGER ) THEN + 20 + - + MAX ( ALL + 75 ) WHEN - COUNT ( + 10 ) * 20 + - COALESCE ( + + COUNT ( * ), COUNT ( * ) * 13 + 41 * + CAST ( + 49 * - 24 + + 7 / - 90 AS INTEGER ) ) THEN - 68 * + 32 + 61 ELSE + 44 * 38 END
----
1672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7142
SELECT NULLIF ( - 93, - CAST( NULL AS SIGNED ) * - + 20 * + 65 * - 14 + + 57 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7142
SELECT NULLIF ( - 93, - CAST ( NULL AS INTEGER ) * - + 20 * + 65 * - 14 + + 57 ) AS col0
----
-93

query I rowsort
SELECT - 63 + 76 * + - 4 * 78
----
-23775

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT DISTINCT - 5 * - + COUNT( + 24 )
----
5

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT - 5 * - + COUNT ( + 24 )
----
5

query I rowsort
SELECT ALL + 51 * + 89 * + - 66 * + 63
----
-18873162

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7147
SELECT ALL CAST( NULL AS SIGNED ) AS col1, 2 * - + 78 + 98 + - + 76 * - - 50 AS col0
----
NULL
-3858

skipif mysql # not compatible
query II rowsort label-7147
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, 2 * - + 78 + 98 + - + 76 * - - 50 AS col0
----
NULL
-3858

query I rowsort
SELECT ALL - 29 * + 86 - + 97
----
-2591

query I rowsort
SELECT DISTINCT - 6 * 85 AS col2
----
-510

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

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL COUNT ( * ) - - + 21 col1
----
22

query I rowsort
SELECT - ( + - 94 ) * - 64
----
-6016

query I rowsort
SELECT ALL + 42 * 89 AS col1
----
3738

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

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

query I rowsort
SELECT - ( + 81 ) * - - 49 + - + 18 * - 63 AS col0
----
-2835

query I rowsort
SELECT + 79 * 23
----
1817

query I rowsort
SELECT + 38 + - - 6 AS col2
----
44

query II rowsort
SELECT 33, + 69 AS col2
----
33
69

query I rowsort
SELECT 13 * 70 AS col0
----
910

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT ALL CASE + 27 WHEN - COUNT( * ) THEN - ( 44 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL CASE + 27 WHEN - COUNT ( * ) THEN - ( 44 ) END
----
NULL

query I rowsort
SELECT DISTINCT - 50 * 89 AS col2
----
-4450

query I rowsort
SELECT 38 * - 20
----
-760

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

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

query I rowsort
SELECT 46 + + 40 + - - 36
----
122

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7166
SELECT + - COALESCE ( - 85, + 6 + 65, + + 56 DIV - - ( MAX( ALL + + 6 ) ) * + 48 )
----
85

skipif mysql # not compatible
query I rowsort label-7166
SELECT + - COALESCE ( - 85, + 6 + 65, + + 56 / - - ( MAX ( ALL + + 6 ) ) * + 48 )
----
85

query I rowsort
SELECT + 78 * + + 77 - + 60 + 83 + - + 85 * - - 63
----
674

query II rowsort
SELECT 60, + 32 AS col1
----
60
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7169
SELECT + 43, + COUNT( * ) - - + 73 * - ( COUNT( * ) ) + 73 + - + 31 - - 14 + - COUNT( * ) * + - 5 AS col1
----
43
-11

skipif mysql # not compatible
query II rowsort label-7169
SELECT + 43, + COUNT ( * ) - - + 73 * - ( COUNT ( * ) ) + 73 + - + 31 - - 14 + - COUNT ( * ) * + - 5 AS col1
----
43
-11

query I rowsort
SELECT ALL + 76 + + - 94 - ( - 44 ) * 43 AS col1
----
1874

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7171
SELECT 97 AS col2, 25 * CAST( NULL AS SIGNED )
----
97
NULL

skipif mysql # not compatible
query II rowsort label-7171
SELECT 97 AS col2, 25 * CAST ( NULL AS INTEGER )
----
97
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7172
SELECT ALL - + CAST( AVG ( - CAST( - + 14 AS DECIMAL ) ) AS SIGNED ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL - + CAST ( AVG ( - CAST ( - + 14 AS REAL ) ) AS INTEGER ) col1
----
-14

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

skipif mysql # not compatible
query I rowsort label-7173
SELECT - 96 / + - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT DISTINCT 35 + + + 72 * - COUNT( * ) + 16
----
-21

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT 35 + + + 72 * - COUNT ( * ) + 16
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7175
SELECT ALL CASE - 98 WHEN + 37 + 77 * - - COUNT( * ) THEN 61 * - 43 * + 25 DIV 7 * - - 68 + - + 65 WHEN + 3 + 6 + 32 THEN + + 78 + - 3 + - 63 ELSE 7 END + 73 col1
----
80

skipif mysql # not compatible
query I rowsort label-7175
SELECT ALL CASE - 98 WHEN + 37 + 77 * - - COUNT ( * ) THEN 61 * - 43 * + 25 / 7 * - - 68 + - + 65 WHEN + 3 + 6 + 32 THEN + + 78 + - 3 + - 63 ELSE 7 END + 73 col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7176
SELECT ALL - 52 * - 29 + - COUNT( * ) + + 5 + + + 74 DIV - - 4 AS col1
----
1530

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - 52 * - 29 + - COUNT ( * ) + + 5 + + + 74 / - - 4 AS col1
----
1530

query I rowsort
SELECT - 23 * + ( 5 ) col0
----
-115

query I rowsort
SELECT ALL 92 * 99 col1
----
9108

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

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

query I rowsort
SELECT DISTINCT + 24 + - 14
----
10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7182
SELECT + NULLIF ( 63, + COUNT( * ) + - + 40 + - CASE - 63 WHEN - ( - CASE 56 WHEN 78 + + + 31 THEN 23 * - - CAST( NULL AS SIGNED ) - + CASE - 73 WHEN - 96 THEN NULL ELSE + 2 END ELSE - 96 END ) THEN + 1 + - 82 WHEN 35 THEN NULL END * 35 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7182
SELECT + NULLIF ( 63, + COUNT ( * ) + - + 40 + - CASE - 63 WHEN - ( - CASE 56 WHEN 78 + + + 31 THEN 23 * - - CAST ( NULL AS INTEGER ) - + CASE - 73 WHEN - 96 THEN NULL ELSE + 2 END ELSE - 96 END ) THEN + 1 + - 82 WHEN 35 THEN NULL END * 35 ) AS col1
----
63

query I rowsort
SELECT ALL - 50 - 10
----
-60

query I rowsort
SELECT DISTINCT 99 * 82
----
8118

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT 43 * 87 DIV - 90 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-7185
SELECT 43 * 87 / - 90 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT DISTINCT + 65 - - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT + 65 - - COUNT ( * )
----
66

query I rowsort
SELECT ALL + 47 - + 11 AS col0
----
36

query I rowsort
SELECT - 25 col0
----
-25

query I rowsort
SELECT DISTINCT - 74 * + 3
----
-222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7190
SELECT ALL - 84 DIV + + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL - 84 / + + COUNT ( * ) AS col2
----
-84

query I rowsort
SELECT 13 * 15 AS col0
----
195

query I rowsort
SELECT ALL - 57 * + + 33
----
-1881

onlyif mysql # aggregate syntax: 
query II rowsort label-7193
SELECT 84 + + COUNT( * ), 34 AS col1
----
85
34

skipif mysql # not compatible
query II rowsort label-7193
SELECT 84 + + COUNT ( * ), 34 AS col1
----
85
34

query I rowsort
SELECT ALL 32 * - 17 AS col2
----
-544

onlyif mysql # DIV for integer division: 
query I rowsort label-7195
SELECT 90 DIV - 26 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7195
SELECT 90 / - 26 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7196
SELECT 93 + + COUNT( * ) AS col2, + 48 * + + 51 + - + 6 AS col0
----
94
2442

skipif mysql # not compatible
query II rowsort label-7196
SELECT 93 + + COUNT ( * ) AS col2, + 48 * + + 51 + - + 6 AS col0
----
94
2442

query I rowsort
SELECT DISTINCT + 66 * + 93 * CASE - 21 WHEN 52 THEN - 86 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + + 55 + + 36
----
91

query I rowsort
SELECT - 21 + + + 82 * 44 AS col1
----
3587

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT COUNT( DISTINCT - 85 ) - + 38
----
-37

skipif mysql # not compatible
query I rowsort label-7200
SELECT COUNT ( DISTINCT - 85 ) - + 38
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7201
SELECT ALL + COALESCE ( COUNT( * ), + 87 - + CAST( - COUNT( * ) AS SIGNED ) + + 38 - - 71 + + 96 * - 34 * + CAST( NULL AS SIGNED ) * + - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL + COALESCE ( COUNT ( * ), + 87 - + CAST ( - COUNT ( * ) AS INTEGER ) + + 38 - - 71 + + 96 * - 34 * + CAST ( NULL AS INTEGER ) * + - 86 )
----
1

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

query I rowsort
SELECT ALL + - ( 5 ) + - 20
----
-25

query II rowsort
SELECT 94 * - 53 AS col0, + 22
----
-4982
22

query I rowsort
SELECT + 71 + - 2
----
69

query I rowsort
SELECT DISTINCT - + COALESCE ( 28, - 66, 92 - - 15 )
----
-28

query I rowsort
SELECT ALL - + 46 AS col1
----
-46

query I rowsort
SELECT - 51 * + 20 * + - 50
----
51000

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

skipif mysql # not compatible
query I rowsort label-7209
SELECT - 20 * CAST ( NULL AS INTEGER ) + - 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7210
SELECT ALL - 95 * - + CAST( NULL AS SIGNED ) + - + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL - 95 * - + CAST ( NULL AS INTEGER ) + - + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT + + NULLIF ( ( - + MAX( + 53 ) ), - ( - 53 ) * + + 11 * + - ( - - ( 7 ) ) * - - 61 / - + 55 * - ( 48 ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-7211
SELECT + + NULLIF ( ( - + MAX ( + 53 ) ), - ( - 53 ) * + + 11 * + - ( - - ( 7 ) ) * - - 61 / - + 55 * - ( 48 ) ) AS col1
----
-53

query II rowsort
SELECT + 34 + + + 33 col0, 66
----
67
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT - 23 * + - 36 * - 68 + + COUNT( * ) - - 37 - + 11 * - 10
----
-56156

skipif mysql # not compatible
query I rowsort label-7214
SELECT - 23 * + - 36 * - 68 + + COUNT ( * ) - - 37 - + 11 * - 10
----
-56156

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

query I rowsort
SELECT ALL 28 - - 72 AS col2
----
100

query I rowsort
SELECT ALL 87 * - 23 * - + 27 * 77
----
4160079

query I rowsort
SELECT 78 * + - 79
----
-6162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7219
SELECT 84 + - + COUNT( + + 48 ) + - COUNT( * ) * + 19 DIV 46 col1
----
83

skipif mysql # not compatible
query I rowsort label-7219
SELECT 84 + - + COUNT ( + + 48 ) + - COUNT ( * ) * + 19 / 46 col1
----
83

query I rowsort
SELECT DISTINCT 27 * + 54
----
1458

query I rowsort
SELECT 68 * 26
----
1768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7222
SELECT - 39 + + CAST( COUNT( * ) AS SIGNED ) AS col0, 19 AS col1
----
-38
19

skipif mysql # not compatible
query II rowsort label-7222
SELECT - 39 + + CAST ( COUNT ( * ) AS INTEGER ) AS col0, 19 AS col1
----
-38
19

query I rowsort
SELECT ALL 45 * - - COALESCE ( + 91, 99 + 69 ) AS col2
----
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT - 15 + + - 86 * - 57 * - 51 * + COUNT( + 36 ) AS col0
----
-250017

skipif mysql # not compatible
query I rowsort label-7224
SELECT - 15 + + - 86 * - 57 * - 51 * + COUNT ( + 36 ) AS col0
----
-250017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7225
SELECT + CAST( NULL AS SIGNED ) + 22 + 21 + + SUM( - + 75 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT + CAST ( NULL AS INTEGER ) + 22 + 21 + + SUM ( - + 75 ) col2
----
NULL

query I rowsort
SELECT DISTINCT 91 * - 97 col0
----
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT - NULLIF ( 87, + + MIN( - 53 ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7227
SELECT - NULLIF ( 87, + + MIN ( - 53 ) ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT DISTINCT 26 + - ( + 62 ) + + + 61 + - - 58 * 53 - - + 38 * + 29 * + 17 + + + 87 * + NULLIF ( - COUNT( - + 87 ), 20 * + 23 ) AS col2
----
21746

skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT 26 + - ( + 62 ) + + + 61 + - - 58 * 53 - - + 38 * + 29 * + 17 + + + 87 * + NULLIF ( - COUNT ( - + 87 ), 20 * + 23 ) AS col2
----
21746

query I rowsort
SELECT DISTINCT 44 + - 93
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT - - COUNT( * ) + - 10 - + NULLIF ( + - 59, 66 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-7230
SELECT - - COUNT ( * ) + - 10 - + NULLIF ( + - 59, 66 ) AS col1
----
50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7232
SELECT DISTINCT - COALESCE ( - - 26, COUNT( * ) ) + + 18 + + + CASE - 41 WHEN + + 47 + + 63 THEN - - CAST( - 16 AS SIGNED ) * + - 32 ELSE NULL END - - 39 * 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT - COALESCE ( - - 26, COUNT ( * ) ) + + 18 + + + CASE - 41 WHEN + + 47 + + 63 THEN - - CAST ( - 16 AS INTEGER ) * + - 32 ELSE NULL END - - 39 * 60 AS col2
----
NULL

query I rowsort
SELECT + 42 * 37
----
1554

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ALL - - ( - COUNT( ALL - ( - - 50 ) ) ) + + 57 - - 34 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL - - ( - COUNT ( ALL - ( - - 50 ) ) ) + + 57 - - 34 AS col1
----
90

query I rowsort
SELECT DISTINCT 29 * 8 AS col1
----
232

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

query I rowsort
SELECT ALL - 16 - + 4 + 19 + - 97 + 18
----
-80

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

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

query I rowsort
SELECT - + 30 / NULLIF ( 75, + + 75 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7240
SELECT ALL + + CAST( - 43 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL + + CAST ( - 43 AS INTEGER )
----
-43

query I rowsort
SELECT - 14 + + 95
----
81

query I rowsort
SELECT - - 55 * - - 23 AS col1
----
1265

query I rowsort
SELECT DISTINCT + 1 * - 59 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT - MIN( ALL 49 ) * - 71
----
3479

skipif mysql # not compatible
query I rowsort label-7244
SELECT - MIN ( ALL 49 ) * - 71
----
3479

query I rowsort
SELECT ALL + 83 * 28
----
2324

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7246
SELECT DISTINCT + 74 * + 29 AS col1, CAST( - + 58 AS SIGNED )
----
2146
-58

skipif mysql # not compatible
query II rowsort label-7246
SELECT DISTINCT + 74 * + 29 AS col1, CAST ( - + 58 AS INTEGER )
----
2146
-58

query II rowsort
SELECT + 26 col1, - 89 col1
----
26
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT + ( + COALESCE ( + COUNT( * ), 93 - - 44 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7249
SELECT + ( + COALESCE ( + COUNT ( * ), 93 - - 44 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7250
SELECT ALL + 31 * + CAST( NULL AS SIGNED ) + 66 + + 53 - CAST( + 5 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL + 31 * + CAST ( NULL AS INTEGER ) + 66 + + 53 - CAST ( + 5 AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7251
SELECT + CAST ( NULL AS REAL ) * - 92 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT COUNT( 51 )
----
1

skipif mysql # not compatible
query I rowsort label-7253
SELECT COUNT ( 51 )
----
1

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

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

query I rowsort
SELECT ALL + NULLIF ( + 97, - 45 * - - 54 + + 92 ) * - 33 + 39 - - - 39 AS col0
----
-3201

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

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

query I rowsort
SELECT + 73 * - + 71 AS col1
----
-5183

query I rowsort
SELECT ALL 79 * 64 AS col1
----
5056

onlyif mysql # aggregate syntax: 
query II rowsort label-7259
SELECT COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-7259
SELECT COUNT ( * ), + COUNT ( * )
----
1
1

query I rowsort
SELECT + NULLIF ( - 38, - 14 ) + + 22 + + - 5
----
-21

query II rowsort
SELECT - - 54, 96 * + - 71 AS col2
----
54
-6816

query I rowsort
SELECT ALL 0 * 6
----
0

query I rowsort
SELECT + 39 + + + 21 + + 9 * - 90 - 6 AS col1
----
-756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7264
SELECT 85 AS col2, + 46 DIV + CAST( - ( + 43 ) AS SIGNED ) + - COUNT( * ) AS col2
----
85
-2

skipif mysql # not compatible
query II rowsort label-7264
SELECT 85 AS col2, + 46 / + CAST ( - ( + 43 ) AS INTEGER ) + - COUNT ( * ) AS col2
----
85
-2

query I rowsort
SELECT DISTINCT + 78 * - + 13
----
-1014

query I rowsort
SELECT + + 50 + + 48 + 90
----
188

query I rowsort
SELECT ALL + - 0 - 32 AS col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7268
SELECT + - 64 + - CAST( NULL AS SIGNED ) col1, + 27 + 63 AS col0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-7268
SELECT + - 64 + - CAST ( NULL AS INTEGER ) col1, + 27 + 63 AS col0
----
NULL
90

query I rowsort
SELECT - 89 - - 75 AS col2
----
-14

query II rowsort
SELECT 28 AS col1, 71 * - 99 AS col1
----
28
-7029

query II rowsort
SELECT - + 46 AS col2, CASE 10 WHEN + 84 THEN 33 / + + 74 ELSE NULL END col2
----
-46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT DISTINCT + SUM( 55 )
----
55

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT + SUM ( 55 )
----
55

query I rowsort
SELECT + 42 * - - 53
----
2226

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT - MAX( - + NULLIF ( + 14, - ( - + 9 ) ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7275
SELECT - MAX ( - + NULLIF ( + 14, - ( - + 9 ) ) ) AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7276
SELECT DISTINCT NULLIF ( + 59, - - NULLIF ( 39, 98 ) ) DIV - ( + + 8 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT NULLIF ( + 59, - - NULLIF ( 39, 98 ) ) / - ( + + 8 ) AS col0
----
-7

query I rowsort
SELECT + 69 + - 93
----
-24

query I rowsort
SELECT ALL + 1 * - - 66 + + + 68 - + 50
----
84

query I rowsort
SELECT ALL + NULLIF ( - 0, + NULLIF ( 53, 68 ) * + 58 ) col0
----
0

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

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

skipif mysql # not compatible
query I rowsort label-7281
SELECT - 70 / + COUNT ( * )
----
-70

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

skipif mysql # not compatible
query I rowsort label-7282
SELECT COUNT ( * ) / 71 + - - 33 * + COUNT ( * )
----
33

query II rowsort
SELECT - 87 * - + 99 AS col0, 86 * 21 AS col1
----
8613
1806

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT + SUM( 1 ) + - 68 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-7284
SELECT + SUM ( 1 ) + - 68 AS col0
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7285
SELECT ALL ( COUNT( * ) ) DIV - 82 * 55 + + 72 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7285
SELECT ALL ( COUNT ( * ) ) / - 82 * 55 + + 72 AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7286
SELECT DISTINCT - 43 + + 75 + + 11 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT - 43 + + 75 + + 11 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 52 * 20 AS col2
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT ALL - COUNT( DISTINCT - - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL - COUNT ( DISTINCT - - 66 )
----
-1

query I rowsort
SELECT 93 + + 1 AS col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7290
SELECT ALL - 25 + 95 AS col1, + 44 * COUNT( ALL 57 ), - 92 DIV + + 81 AS col2
----
70
44
-1

skipif mysql # not compatible
query III rowsort label-7290
SELECT ALL - 25 + 95 AS col1, + 44 * COUNT ( ALL 57 ), - 92 / + + 81 AS col2
----
70
44
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7291
SELECT DISTINCT - COALESCE ( + 12, 52 + + - COUNT( * ) * - + 70, + 96, AVG ( + 25 ) DIV - 70 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT - COALESCE ( + 12, 52 + + - COUNT ( * ) * - + 70, + 96, AVG ( + 25 ) / - 70 ) AS col0
----
-12

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

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

query I rowsort
SELECT ALL + 35 * + 86 AS col0
----
3010

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT COUNT( * ) + - 32
----
-31

skipif mysql # not compatible
query I rowsort label-7294
SELECT COUNT ( * ) + - 32
----
-31

query I rowsort
SELECT ALL + 9 + - 1 * + + 20
----
-11

query I rowsort
SELECT DISTINCT CASE - - 37 WHEN + 9 THEN - 19 WHEN - 46 * 99 * - + 54 THEN NULL ELSE + 11 END AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT ALL 63 DIV 35 + - COALESCE ( - - 63, - + 6 ) * - - 48
----
-3023

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL 63 / 35 + - COALESCE ( - - 63, - + 6 ) * - - 48
----
-3023

onlyif mysql # DIV for integer division: 
query I rowsort label-7298
SELECT DISTINCT 72 DIV 35 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT 72 / 35 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7299
SELECT DISTINCT - NULLIF ( + 0, + 96 + CAST( - + 31 AS DECIMAL ) + + 11 + NULLIF ( 79, - COUNT( * ) ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT - NULLIF ( + 0, + 96 + CAST ( - + 31 AS REAL ) + + 11 + NULLIF ( 79, - COUNT ( * ) ) ) col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7300
SELECT 38 DIV + 6 AS col0, 48
----
6
48

skipif mysql # not compatible
query II rowsort label-7300
SELECT 38 / + 6 AS col0, 48
----
6
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7301
SELECT ALL - + 43 DIV - 13 AS col0, - 65 * + ( + - COUNT( * ) )
----
3
65

skipif mysql # not compatible
query II rowsort label-7301
SELECT ALL - + 43 / - 13 AS col0, - 65 * + ( + - COUNT ( * ) )
----
3
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7302
SELECT + 99 * - - CAST( NULL AS SIGNED ) / - CASE 38 WHEN - 22 - - 42 * + - 41 - + - ( + ( 12 ) ) THEN CAST( NULL AS SIGNED ) ELSE + + 99 - 4 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7302
SELECT + 99 * - - CAST ( NULL AS INTEGER ) / - CASE 38 WHEN - 22 - - 42 * + - 41 - + - ( + ( 12 ) ) THEN CAST ( NULL AS INTEGER ) ELSE + + 99 - 4 END AS col2
----
NULL

query I rowsort
SELECT - + 84 col0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7304
SELECT DISTINCT 47 * CASE 68 WHEN CAST( NULL AS SIGNED ) + - 56 THEN - + 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT 47 * CASE 68 WHEN CAST ( NULL AS INTEGER ) + - 56 THEN - + 18 END
----
NULL

query I rowsort
SELECT 86 * - 58 * 86
----
-428968

query I rowsort
SELECT ALL - 33 * - 96 AS col1
----
3168

query I rowsort
SELECT 7 * + 59 AS col0
----
413

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT - NULLIF ( 10, - COUNT( * ) + 0 ) + + + 43 - - 2 + + COUNT( * ) + + 35 + + + 42 + + + ( + COUNT( * ) ) AS col1
----
114

skipif mysql # not compatible
query I rowsort label-7308
SELECT - NULLIF ( 10, - COUNT ( * ) + 0 ) + + + 43 - - 2 + + COUNT ( * ) + + 35 + + + 42 + + + ( + COUNT ( * ) ) AS col1
----
114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT DISTINCT 34 + - 98 + - MIN( - 33 )
----
-31

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT 34 + - 98 + - MIN ( - 33 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7311
SELECT 38 DIV 51 + - NULLIF ( - SUM( - 57 ), - 56 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7311
SELECT 38 / 51 + - NULLIF ( - SUM ( - 57 ), - 56 ) AS col2
----
-57

query II rowsort
SELECT + 8 AS col0, - 31 - + + 1 AS col0
----
8
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7313
SELECT 58 DIV - ( + 15 )
----
-3

skipif mysql # not compatible
query I rowsort label-7313
SELECT 58 / - ( + 15 )
----
-3

query I rowsort
SELECT ( + 14 ) * 55 + - 51
----
719

query I rowsort
SELECT ALL 33 + 36
----
69

query I rowsort
SELECT ALL + 57 + 99
----
156

query I rowsort
SELECT 9 * + + 74 AS col2
----
666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7318
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) * 5 * 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) * 5 * 50 AS col2
----
NULL

query II rowsort
SELECT 82 col0, 66
----
82
66

query I rowsort
SELECT 19 * + + 77 AS col1
----
1463

query I rowsort
SELECT 22 * 55 AS col1
----
1210

query II rowsort
SELECT 98 AS col0, 15
----
98
15

query I rowsort
SELECT 44 * - 90 AS col1
----
-3960

query I rowsort
SELECT ALL 78 - + - 85 - + 91 AS col2
----
72

query I rowsort
SELECT ALL - 72 - + 94
----
-166

query I rowsort
SELECT - 30 * - 80 + NULLIF ( + 75, 22 ) + - 87
----
2388

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT - COUNT( * ) * + - 58 - ( + 83 ) + 96 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7328
SELECT - COUNT ( * ) * + - 58 - ( + 83 ) + 96 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT ALL - 28 * + COUNT( ALL + 33 ) - - 54 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - 28 * + COUNT ( ALL + 33 ) - - 54 AS col0
----
26

query II rowsort
SELECT + 46 AS col0, - 60 AS col1
----
46
-60

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7332
SELECT ( + 91 ) + + 6 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT ( + 91 ) + + 6 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 35 * - + 21
----
735

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT DISTINCT + ( - - 99 ) DIV 82
----
1

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT + ( - - 99 ) / 82
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7335
SELECT ALL 90 DIV - 6
----
-15

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL 90 / - 6
----
-15

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

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

query I rowsort
SELECT ALL 4 + - 99
----
-95

query I rowsort
SELECT + ( 95 ) * + 84
----
7980

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT COUNT( * ) * 70 col2
----
70

skipif mysql # not compatible
query I rowsort label-7339
SELECT COUNT ( * ) * 70 col2
----
70

query I rowsort
SELECT + 87 + 26 col0
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7341
SELECT DISTINCT 87 * MIN( DISTINCT 6 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT 87 * MIN ( DISTINCT 6 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 63 * + 73 AS col1
----
4599

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT DISTINCT 44 * - - 46 + + 22 - - - NULLIF ( + - 56, - COUNT( * ) + 59 ) - - - 37 * + COUNT( * ) * + 88 AS col1
----
-1154

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT 44 * - - 46 + + 22 - - - NULLIF ( + - 56, - COUNT ( * ) + 59 ) - - - 37 * + COUNT ( * ) * + 88 AS col1
----
-1154

onlyif mysql # aggregate syntax: 
query II rowsort label-7344
SELECT ALL - 70 * - 21 AS col2, 94 + - + 53 + 80 - + MAX( + - 24 ) + - - 33 + + - 96
----
1470
82

skipif mysql # not compatible
query II rowsort label-7344
SELECT ALL - 70 * - 21 AS col2, 94 + - + 53 + 80 - + MAX ( + - 24 ) + - - 33 + + - 96
----
1470
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7345
SELECT DISTINCT - 33 * - - 55 + - - 54 * + 27 * + 77 + + 90 + + CAST( NULL AS SIGNED ) / + - 32 * + - COUNT( * ) + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - 33 * - - 55 + - - 54 * + 27 * + 77 + + 90 + + CAST ( NULL AS INTEGER ) / + - 32 * + - COUNT ( * ) + - 60
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT + 98 - + + 66 - + COUNT( + + 33 ) * NULLIF ( - SUM( ( - 96 ) ), - 75 * + 49 / - - 37 + + 25 )
----
-64

skipif mysql # not compatible
query I rowsort label-7347
SELECT + 98 - + + 66 - + COUNT ( + + 33 ) * NULLIF ( - SUM ( ( - 96 ) ), - 75 * + 49 / - - 37 + + 25 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT + NULLIF ( + 26, - - COUNT( * ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7348
SELECT + NULLIF ( + 26, - - COUNT ( * ) ) AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7349
SELECT ( 75 ) DIV - 21 + + ( - 76 )
----
-79

skipif mysql # not compatible
query I rowsort label-7349
SELECT ( 75 ) / - 21 + + ( - 76 )
----
-79

query I rowsort
SELECT 62 * - 42 - + 53 AS col1
----
-2657

query I rowsort
SELECT ALL + 56 * + 52 - - 4 col0
----
2916

query I rowsort
SELECT ALL + 6 * + 49 * - - ( + 10 ) - 70 * + 85
----
-3010

query I rowsort
SELECT + 21 * + + 79 * + - 17 AS col2
----
-28203

query I rowsort
SELECT NULLIF ( 12, - + 75 )
----
12

query I rowsort
SELECT + 90 + + 18
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-7356
SELECT DISTINCT - ( - MIN( 83 ) ) * - 88 * + 15 * - COUNT( * ) + 66 - + COUNT( DISTINCT - 6 ) + - + COUNT( * ) AS col2, COUNT( * ) col0
----
109624
1

skipif mysql # not compatible
query II rowsort label-7356
SELECT DISTINCT - ( - MIN ( 83 ) ) * - 88 * + 15 * - COUNT ( * ) + 66 - + COUNT ( DISTINCT - 6 ) + - + COUNT ( * ) AS col2, COUNT ( * ) col0
----
109624
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7357
SELECT - ( - 10 ) DIV COUNT( * ) * 51 AS col0
----
510

skipif mysql # not compatible
query I rowsort label-7357
SELECT - ( - 10 ) / COUNT ( * ) * 51 AS col0
----
510

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT DISTINCT + - 26 DIV + ( - + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT + - 26 / + ( - + 80 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7359
SELECT - - 97 + - + 8, SUM( DISTINCT - 39 ) AS col0
----
89
-39

skipif mysql # not compatible
query II rowsort label-7359
SELECT - - 97 + - + 8, SUM ( DISTINCT - 39 ) AS col0
----
89
-39

query I rowsort
SELECT ALL - - 14 + + - 78
----
-64

query I rowsort
SELECT DISTINCT - ( - 10 ) AS col1
----
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL - SUM( + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL - SUM ( + 23 )
----
-23

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

query I rowsort
SELECT ALL + + 84 + + 32
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7366
SELECT ALL - + 22 + + CAST( 73 AS SIGNED ) DIV 5 - COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL - + 22 + + CAST ( 73 AS INTEGER ) / 5 - COUNT ( * ) AS col1
----
-9

query I rowsort
SELECT + 97 * + 27 * - + 67 * - - 24 + 3 * + 11
----
-4211319

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7369
SELECT - + 1 * - CAST( - ( 57 ) AS SIGNED ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-7369
SELECT - + 1 * - CAST ( - ( 57 ) AS INTEGER ) AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7370
SELECT - - CASE - 67 WHEN 81 + 49 - NULLIF ( - + 64, NULLIF ( - + COUNT( 46 ), - 94 ) ) THEN CAST( 54 AS SIGNED ) * - 3 END * - - 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT - - CASE - 67 WHEN 81 + 49 - NULLIF ( - + 64, NULLIF ( - + COUNT ( 46 ), - 94 ) ) THEN CAST ( 54 AS INTEGER ) * - 3 END * - - 41 AS col1
----
NULL

query I rowsort
SELECT ALL + 90 + ( - 70 ) + + 93 + - 73
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL + 29 + + 76 + - - NULLIF ( 39, NULLIF ( COUNT( * ), + 28 / + + 94 ) ) + ( 64 ) AS col1
----
208

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL + 29 + + 76 + - - NULLIF ( 39, NULLIF ( COUNT ( * ), + 28 / + + 94 ) ) + ( 64 ) AS col1
----
208

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7373
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + COALESCE ( + NULLIF ( - CAST( NULL AS SIGNED ), 89 ), + 5 )
----
NULL
5

skipif mysql # not compatible
query II rowsort label-7373
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + COALESCE ( + NULLIF ( - CAST ( NULL AS INTEGER ), 89 ), + 5 )
----
NULL
5

query I rowsort
SELECT - 28 + + 51
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7375
SELECT DISTINCT NULLIF ( - COALESCE ( + 87, - NULLIF ( - + COUNT( DISTINCT - 53 ), 81 ), 25 ), + + ( CAST( + 13 AS SIGNED ) ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT NULLIF ( - COALESCE ( + 87, - NULLIF ( - + COUNT ( DISTINCT - 53 ), 81 ), 25 ), + + ( CAST ( + 13 AS INTEGER ) ) ) AS col0
----
-87

query I rowsort
SELECT DISTINCT COALESCE ( + 62, 82, - 52 ) + 91
----
153

query II rowsort
SELECT DISTINCT + 12 - - 88 + - 52 col0, - 67 + - 10 AS col0
----
48
-77

query I rowsort
SELECT + 74 + 55 - 70 - - 76 * - + 22 * - NULLIF ( - 11, - 54 ) * + 8 AS col1
----
-147077

query I rowsort
SELECT 67 * NULLIF ( - 12, 1 ) + - - 69 AS col0
----
-735

query I rowsort
SELECT - 21 * 79 AS col1
----
-1659

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

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

query I rowsort
SELECT ALL ( + 2 ) * - + 24 * 68 + - - 50
----
-3214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7383
SELECT DISTINCT MAX( - 97 ) DIV + + NULLIF ( - 15, + - ( + 59 ) ) - - 45
----
51

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT MAX ( - 97 ) / + + NULLIF ( - 15, + - ( + 59 ) ) - - 45
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL COUNT( * ) * 58
----
58

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL COUNT ( * ) * 58
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT DISTINCT - 22 * MIN( ALL + 78 ) * + + 80 AS col1
----
-137280

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT - 22 * MIN ( ALL + 78 ) * + + 80 AS col1
----
-137280

query I rowsort
SELECT + 67 * + 88
----
5896

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7389
SELECT - CAST( NULL AS SIGNED ) * - SUM( + - 57 ) - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT - CAST ( NULL AS INTEGER ) * - SUM ( + - 57 ) - + 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7390
SELECT DISTINCT + 79 DIV - 77
----
-1

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT + 79 / - 77
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7391
SELECT ALL 61 * - 58 * 92 + COUNT( * ) - + + CASE + ( + 27 ) WHEN - + 67 THEN - + 87 WHEN COUNT( * ) / - MIN( ALL 91 ) + + 15 - - CAST( NULL AS SIGNED ) * MAX( - 39 ) * + 98 * + COUNT( * ) THEN - + 92 * + - MAX( + - 15 ) - - + 10 ELSE NULL END * - 11 + + 2 * - 58 + - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL 61 * - 58 * 92 + COUNT ( * ) - + + CASE + ( + 27 ) WHEN - + 67 THEN - + 87 WHEN COUNT ( * ) / - MIN ( ALL 91 ) + + 15 - - CAST ( NULL AS INTEGER ) * MAX ( - 39 ) * + 98 * + COUNT ( * ) THEN - + 92 * + - MAX ( + - 15 ) - - + 10 ELSE NULL END * - 11 + + 2 * - 58 + - 11 AS col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT ALL + 29 * COUNT( * ) * + + 63 * + 33
----
60291

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL + 29 * COUNT ( * ) * + + 63 * + 33
----
60291

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT ALL COUNT( DISTINCT 58 ) * - 45 + + + 6 + - 76 * 57 * 59
----
-255627

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL COUNT ( DISTINCT 58 ) * - 45 + + + 6 + - 76 * 57 * 59
----
-255627

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7397
SELECT + + ( + 18 ) + 56 AS col0, + 75 DIV 64 * + 67
----
74
67

skipif mysql # not compatible
query II rowsort label-7397
SELECT + + ( + 18 ) + 56 AS col0, + 75 / 64 * + 67
----
74
67

query I rowsort
SELECT + 38 col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT - CASE + COUNT( 24 ) WHEN - 19 / - 66 THEN - 77 WHEN 55 THEN NULL END + + 90 * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT - CASE + COUNT ( 24 ) WHEN - 19 / - 66 THEN - 77 WHEN 55 THEN NULL END + + 90 * 17
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7400
SELECT 30 DIV - 89 * + 74 * - - ( + 3 ) * + + 79
----
0

skipif mysql # not compatible
query I rowsort label-7400
SELECT 30 / - 89 * + 74 * - - ( + 3 ) * + + 79
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7401
SELECT ALL + 2 DIV + + 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL + 2 / + + 60 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7402
SELECT 64 + + - ( COALESCE ( 1, 58 - - 86 + + + COUNT( * ) ) ) + MAX( DISTINCT + 21 ) DIV - 94 + 50, 83 AS col1
----
113
83

skipif mysql # not compatible
query II rowsort label-7402
SELECT 64 + + - ( COALESCE ( 1, 58 - - 86 + + + COUNT ( * ) ) ) + MAX ( DISTINCT + 21 ) / - 94 + 50, 83 AS col1
----
113
83

query II rowsort
SELECT - 53 AS col2, + 8
----
-53
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7404
SELECT ALL + COALESCE ( - + 9, CASE + 54 WHEN + 75 * 13 THEN - + 17 DIV + ( + 21 ) * - NULLIF ( 95, + COUNT( * ) ) * 68 * + 68 + + 58 - + 36 ELSE NULL END ) * + 97 AS col1
----
-873

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + COALESCE ( - + 9, CASE + 54 WHEN + 75 * 13 THEN - + 17 / + ( + 21 ) * - NULLIF ( 95, + COUNT ( * ) ) * 68 * + 68 + + 58 - + 36 ELSE NULL END ) * + 97 AS col1
----
-873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7405
SELECT 12 AS col2, + ( CAST( COUNT( - - 96 ) AS DECIMAL ) ) + CASE - CAST( 34 AS SIGNED ) WHEN - 11 + 17 * + 39 - 99 THEN - 34 - + 10 ELSE NULL END col2, + - ( - + 26 ) AS col0
----
12
NULL
26

skipif mysql # not compatible
query III rowsort label-7405
SELECT 12 AS col2, + ( CAST ( COUNT ( - - 96 ) AS REAL ) ) + CASE - CAST ( 34 AS INTEGER ) WHEN - 11 + 17 * + 39 - 99 THEN - 34 - + 10 ELSE NULL END col2, + - ( - + 26 ) AS col0
----
12
NULL
26

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

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

query II rowsort
SELECT - 19, 19 + 90 AS col1
----
-19
109

query I rowsort
SELECT 22 + 64 + 77 AS col1
----
163

query I rowsort
SELECT ALL + 8 * 82
----
656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7410
SELECT CAST( COALESCE ( + - 50, + - 7 * - 68 ) AS SIGNED ) * + - MIN( 63 )
----
3150

skipif mysql # not compatible
query I rowsort label-7410
SELECT CAST ( COALESCE ( + - 50, + - 7 * - 68 ) AS INTEGER ) * + - MIN ( 63 )
----
3150

query I rowsort
SELECT 32 + 18
----
50

query II rowsort
SELECT ALL + 8 * - 79 AS col1, 90 col1
----
-632
90

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

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

query II rowsort
SELECT ALL - 63 AS col2, 95 AS col2
----
-63
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7415
SELECT ALL 61 DIV 83 col1
----
0

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL 61 / 83 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7416
SELECT ALL 79 * - COUNT( * ) AS col0, + 36 AS col2
----
-79
36

skipif mysql # not compatible
query II rowsort label-7416
SELECT ALL 79 * - COUNT ( * ) AS col0, + 36 AS col2
----
-79
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7417
SELECT COUNT( * ) - - 99 AS col0, 55
----
100
55

skipif mysql # not compatible
query II rowsort label-7417
SELECT COUNT ( * ) - - 99 AS col0, 55
----
100
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7418
SELECT DISTINCT + CAST( - + 54 AS SIGNED ) DIV + + 21
----
-2

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT + CAST ( - + 54 AS INTEGER ) / + + 21
----
-2

query I rowsort
SELECT 18 + - 9 * + - 98 AS col0
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT + 40 * - ( + NULLIF ( + - 54, ( + 25 ) * - - COUNT( DISTINCT - + 35 ) * - 81 + - 2 + 86 ) ) - + 29
----
2131

skipif mysql # not compatible
query I rowsort label-7420
SELECT + 40 * - ( + NULLIF ( + - 54, ( + 25 ) * - - COUNT ( DISTINCT - + 35 ) * - 81 + - 2 + 86 ) ) - + 29
----
2131

onlyif mysql # DIV for integer division: 
query I rowsort label-7421
SELECT ALL - 41 DIV - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL - 41 / - 94 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7422
SELECT 61 DIV - ( - + 26 )
----
2

skipif mysql # not compatible
query I rowsort label-7422
SELECT 61 / - ( - + 26 )
----
2

query I rowsort
SELECT - 24 * + 79 AS col2
----
-1896

query I rowsort
SELECT 51 * 61 * - 11 * + 25
----
-855525

query I rowsort
SELECT ALL - 49 + - 87 + 51 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT + ( - 13 ) * + - MIN( 13 ) + 60
----
229

skipif mysql # not compatible
query I rowsort label-7426
SELECT + ( - 13 ) * + - MIN ( 13 ) + 60
----
229

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT DISTINCT - COUNT( * ) + + + 98
----
97

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT - COUNT ( * ) + + + 98
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7428
SELECT ALL + CASE + COUNT( * ) WHEN 95 THEN - MAX( DISTINCT 73 ) - - 26 * + + 52 * + NULLIF ( 16, + - COUNT( * ) * 58 DIV + 57 * - COUNT( 43 ) * - NULLIF ( - 39, - - 92 DIV - - 65 - 45 ) + 3 + - 9 ) DIV + - 80 DIV + 17 * + - SUM( DISTINCT + + 38 ) + - 8 + COALESCE ( 29, 3 * 44 ) * + 6 WHEN + 85 * 27 + 14 THEN + 18 ELSE COUNT( * ) * - 16 END + 72
----
56

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL + CASE + COUNT ( * ) WHEN 95 THEN - MAX ( DISTINCT 73 ) - - 26 * + + 52 * + NULLIF ( 16, + - COUNT ( * ) * 58 / + 57 * - COUNT ( 43 ) * - NULLIF ( - 39, - - 92 / - - 65 - 45 ) + 3 + - 9 ) / + - 80 / + 17 * + - SUM ( DISTINCT + + 38 ) + - 8 + COALESCE ( 29, 3 * 44 ) * + 6 WHEN + 85 * 27 + 14 THEN + 18 ELSE COUNT ( * ) * - 16 END + 72
----
56

query II rowsort
SELECT + 71 AS col0, 76 AS col2
----
71
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT 7 + 90 - + SUM( DISTINCT + + 77 ) + + 6 * - 32 + SUM( ALL - 76 )
----
-248

skipif mysql # not compatible
query I rowsort label-7431
SELECT 7 + 90 - + SUM ( DISTINCT + + 77 ) + + 6 * - 32 + SUM ( ALL - 76 )
----
-248

query II rowsort
SELECT ALL - 50 AS col0, - 76 AS col1
----
-50
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT 9 * - SUM( DISTINCT + + 99 )
----
-891

skipif mysql # not compatible
query I rowsort label-7433
SELECT 9 * - SUM ( DISTINCT + + 99 )
----
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT + - 69 * - - ( COUNT( * ) ) + - NULLIF ( + NULLIF ( + 36, + 12 + - 54 ), 56 / SUM( + - 7 ) ) AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-7434
SELECT + - 69 * - - ( COUNT ( * ) ) + - NULLIF ( + NULLIF ( + 36, + 12 + - 54 ), 56 / SUM ( + - 7 ) ) AS col0
----
-105

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

query III rowsort
SELECT - 44 AS col1, 54 AS col0, - - ( - + 88 ) AS col0
----
-44
54
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT COUNT( * ) + - 3 * COALESCE ( - 60, + 17 ) AS col0
----
181

skipif mysql # not compatible
query I rowsort label-7437
SELECT COUNT ( * ) + - 3 * COALESCE ( - 60, + 17 ) AS col0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT ALL + MIN( DISTINCT + 67 ) + - 92 * - 33 AS col0
----
3103

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL + MIN ( DISTINCT + 67 ) + - 92 * - 33 AS col0
----
3103

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT + COUNT( * ) * - 7 * + 69 * - 10
----
4830

skipif mysql # not compatible
query I rowsort label-7439
SELECT + COUNT ( * ) * - 7 * + 69 * - 10
----
4830

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

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

query II rowsort
SELECT DISTINCT + 91 AS col1, 0 AS col1
----
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT - - MAX( DISTINCT - 61 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-7442
SELECT - - MAX ( DISTINCT - 61 ) AS col0
----
-61

query I rowsort
SELECT 3 * - 43 AS col0
----
-129

query I rowsort
SELECT 93 * 25
----
2325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7445
SELECT ALL 92 / - 72 * - CAST( NULL AS SIGNED ) * - 52 / - AVG ( DISTINCT + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL 92 / - 72 * - CAST ( NULL AS INTEGER ) * - 52 / - AVG ( DISTINCT + 9 )
----
NULL

query I rowsort
SELECT 12 - + 39 AS col2
----
-27

query I rowsort
SELECT 18 + - 28 + - 96 AS col2
----
-106

query I rowsort
SELECT ALL 82 col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT DISTINCT + 59 * + MAX( + ( 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT + 59 * + MAX ( + ( 0 ) )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT 53 + + MAX( - 59 ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-7451
SELECT 53 + + MAX ( - 59 ) col2
----
-6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7453
SELECT + 22 DIV + ( - NULLIF ( + + COUNT( * ), 91 ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-7453
SELECT + 22 / + ( - NULLIF ( + + COUNT ( * ), 91 ) ) AS col0
----
-22

query I rowsort
SELECT 6 * + 82 * CASE + 9 WHEN - ( NULLIF ( - - 48, + 46 ) ) THEN + 63 END col1
----
NULL

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

query I rowsort
SELECT DISTINCT - 87 * 62 + + - 48 + 95 AS col1
----
-5347

query I rowsort
SELECT ALL 69 * - 74 + - + 98 AS col0
----
-5204

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT + 8 * + 33 + + - CASE + ( + COALESCE ( + MAX( DISTINCT 32 ), - 25 * + 54 ) ) WHEN AVG ( - + 56 ) THEN + 12 ELSE NULL END - + + COUNT( DISTINCT + 48 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT + 8 * + 33 + + - CASE + ( + COALESCE ( + MAX ( DISTINCT 32 ), - 25 * + 54 ) ) WHEN AVG ( - + 56 ) THEN + 12 ELSE NULL END - + + COUNT ( DISTINCT + 48 ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT + COALESCE ( + 68, + - 20 * - 56 * - + 49, - + COUNT( * ) - + COUNT( * ) )
----
68

skipif mysql # not compatible
query I rowsort label-7460
SELECT + COALESCE ( + 68, + - 20 * - 56 * - + 49, - + COUNT ( * ) - + COUNT ( * ) )
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-7461
SELECT - - 57 DIV - - 7, + 50 * + 9 col1
----
8
450

skipif mysql # not compatible
query II rowsort label-7461
SELECT - - 57 / - - 7, + 50 * + 9 col1
----
8
450

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT - + 46 * - - MAX( - 86 ) + + - 76 * COUNT( * ) AS col2
----
3880

skipif mysql # not compatible
query I rowsort label-7462
SELECT - + 46 * - - MAX ( - 86 ) + + - 76 * COUNT ( * ) AS col2
----
3880

query I rowsort
SELECT DISTINCT - + 65 * + 10 + + - 48 AS col1
----
-698

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ALL 2 * - ( 34 ) + - 44 - - + SUM( + 94 )
----
-18

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL 2 * - ( 34 ) + - 44 - - + SUM ( + 94 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7465
SELECT - - ( + + COUNT( * ) ) * + 63 / 43 / 87 + 77 + ( + CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7465
SELECT - - ( + + COUNT ( * ) ) * + 63 / 43 / 87 + 77 + ( + CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 91 - + 67 + + 31
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL + - ( - - COALESCE ( + + 60, - COUNT( + + 39 ) ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL + - ( - - COALESCE ( + + 60, - COUNT ( + + 39 ) ) ) AS col0
----
-60

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

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

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

query I rowsort
SELECT - 52 + + - 99 * 33 + 40
----
-3279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT 44 * - + 17 - - 37 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT 44 * - + 17 - - 37 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7472
SELECT ALL NULLIF ( 24, - MIN( CAST( NULL AS SIGNED ) ) )
----
24

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL NULLIF ( 24, - MIN ( CAST ( NULL AS INTEGER ) ) )
----
24

query I rowsort
SELECT - 69 * + 18 * - - 89
----
-110538

onlyif mysql # aggregate syntax: 
query II rowsort label-7474
SELECT + 34 - + + 99 * + 39 * - COALESCE ( + + COUNT( * ), + - COUNT( * ) ) AS col0, + 21
----
3895
21

skipif mysql # not compatible
query II rowsort label-7474
SELECT + 34 - + + 99 * + 39 * - COALESCE ( + + COUNT ( * ), + - COUNT ( * ) ) AS col0, + 21
----
3895
21

query I rowsort
SELECT 53 * - 54 + + + 79 AS col2
----
-2783

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT - NULLIF ( - - 82, - COALESCE ( - 12, - 28 + - + 3 * + COUNT( * ) - + 46 ) ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-7476
SELECT - NULLIF ( - - 82, - COALESCE ( - 12, - 28 + - + 3 * + COUNT ( * ) - + 46 ) ) AS col2
----
-82

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

skipif mysql # not compatible
query I rowsort label-7477
SELECT - 22 / - COUNT ( * )
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-7478
SELECT + 28 * 74 DIV - 1 col1, 57 AS col2
----
-2072
57

skipif mysql # not compatible
query II rowsort label-7478
SELECT + 28 * 74 / - 1 col1, 57 AS col2
----
-2072
57

query I rowsort
SELECT + 98 + - 76
----
22

query I rowsort
SELECT DISTINCT ( + COALESCE ( 95, - 2 * + 33 ) ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT DISTINCT ( + MIN( DISTINCT + COALESCE ( - COALESCE ( 34, 36 ), - + 87 ) ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT ( + MIN ( DISTINCT + COALESCE ( - COALESCE ( 34, 36 ), - + 87 ) ) ) AS col2
----
-34

query I rowsort
SELECT ALL 86 * 27 AS col0
----
2322

query I rowsort
SELECT + 92 * 16
----
1472

query I rowsort
SELECT DISTINCT 15 * + - ( - 74 )
----
1110

query I rowsort
SELECT - 79 + - + 57 * + NULLIF ( - + 33, - - 2 ) + - - 5 * + 32 + - 59 col0
----
1903

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL MIN( ALL - NULLIF ( 84, + + 69 ) ) * - 96 AS col2
----
8064

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL MIN ( ALL - NULLIF ( 84, + + 69 ) ) * - 96 AS col2
----
8064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7487
SELECT + NULLIF ( + + COUNT( * ), - CASE - 12 WHEN - - 43 THEN + 95 * - - 88 + NULLIF ( + 32, + 16 * + + ( - + 52 ) ) ELSE - 7 END ) + + + 15 - + 76 DIV 1 + - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-7487
SELECT + NULLIF ( + + COUNT ( * ), - CASE - 12 WHEN - - 43 THEN + 95 * - - 88 + NULLIF ( + 32, + 16 * + + ( - + 52 ) ) ELSE - 7 END ) + + + 15 - + 76 / 1 + - COUNT ( * )
----
-61

query II rowsort
SELECT 61 AS col1, - 5 + - 4 AS col2
----
61
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7489
SELECT + ( + + NULLIF ( - + 51, - 21 / - COUNT( * ) * - + 33 ) ) * + - 84 * - 3, ( 49 ) AS col1
----
-12852
49

skipif mysql # not compatible
query II rowsort label-7489
SELECT + ( + + NULLIF ( - + 51, - 21 / - COUNT ( * ) * - + 33 ) ) * + - 84 * - 3, ( 49 ) AS col1
----
-12852
49

query I rowsort
SELECT ALL 2 + - 40
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-7491
SELECT - NULLIF ( - COUNT( * ), + + COUNT( * ) ) AS col0, - 65 * + 52 col0
----
1
-3380

skipif mysql # not compatible
query II rowsort label-7491
SELECT - NULLIF ( - COUNT ( * ), + + COUNT ( * ) ) AS col0, - 65 * + 52 col0
----
1
-3380

onlyif mysql # aggregate syntax: 
query II rowsort label-7492
SELECT + 26 + + MIN( DISTINCT - 22 ) + - 71 AS col1, 42
----
-67
42

skipif mysql # not compatible
query II rowsort label-7492
SELECT + 26 + + MIN ( DISTINCT - 22 ) + - 71 AS col1, 42
----
-67
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7493
SELECT + 59 + + - 15 + + CAST( NULL AS SIGNED ) * - 0 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT + 59 + + - 15 + + CAST ( NULL AS INTEGER ) * - 0 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT ALL - 22 + - 7 * + - 18 + + + COUNT( * ) AS col0
----
105

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL - 22 + - 7 * + - 18 + + + COUNT ( * ) AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT MIN( ALL - ( - 96 ) ) * 51 - + 37 AS col2
----
4859

skipif mysql # not compatible
query I rowsort label-7495
SELECT MIN ( ALL - ( - 96 ) ) * 51 - + 37 AS col2
----
4859

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7496
SELECT ALL + + 69 col1, CAST( - 14 AS SIGNED )
----
69
-14

skipif mysql # not compatible
query II rowsort label-7496
SELECT ALL + + 69 col1, CAST ( - 14 AS INTEGER )
----
69
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT + + 92 + - COUNT( * ) col1
----
91

skipif mysql # not compatible
query I rowsort label-7497
SELECT + + 92 + - COUNT ( * ) col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7498
SELECT + - CASE - 72 WHEN - - 43 THEN NULL WHEN + ( - ( + COUNT( * ) ) ) THEN 79 ELSE - 80 * 41 - - + 89 - COALESCE ( COUNT( * ), + 57 ) * + COUNT( * ) END * 87 + 51 + - 44 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT + - CASE - 72 WHEN - - 43 THEN NULL WHEN + ( - ( + COUNT ( * ) ) ) THEN 79 ELSE - 80 * 41 - - + 89 - COALESCE ( COUNT ( * ), + 57 ) * + COUNT ( * ) END * 87 + 51 + - 44 * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - 22 + - - 65 AS col0
----
43

query I rowsort
SELECT ALL + 96 * - 22 - - + 68 * - - 81
----
3396

query I rowsort
SELECT + 61 + 21 AS col0
----
82

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7504
SELECT + + 32 * - 86 + 20 DIV + 35 * + 97 AS col0
----
-2752

skipif mysql # not compatible
query I rowsort label-7504
SELECT + + 32 * - 86 + 20 / + 35 * + 97 AS col0
----
-2752

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT - 2 + 99 DIV - - 42 col2
----
0

skipif mysql # not compatible
query I rowsort label-7506
SELECT - 2 + 99 / - - 42 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7507
SELECT DISTINCT + COALESCE ( + 87, - 85 ), COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col2
----
87
0

skipif mysql # not compatible
query II rowsort label-7507
SELECT DISTINCT + COALESCE ( + 87, - 85 ), COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col2
----
87
0

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

query I rowsort
SELECT - + 85 + - 76 AS col1
----
-161

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

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

query I rowsort
SELECT 48 * - CASE - 1 WHEN - ( + + 51 ) THEN 82 ELSE - - 53 END + + 46
----
-2498

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

skipif mysql # not compatible
query I rowsort label-7512
SELECT - 46 * - + COUNT ( * ) / - 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT - NULLIF ( 94, + MIN( + + 58 ) * - NULLIF ( - - 96, + COALESCE ( - 75, - + 24 * + 8, - 1 ) ) ) * + 98 + - - 34
----
-9178

skipif mysql # not compatible
query I rowsort label-7513
SELECT - NULLIF ( 94, + MIN ( + + 58 ) * - NULLIF ( - - 96, + COALESCE ( - 75, - + 24 * + 8, - 1 ) ) ) * + 98 + - - 34
----
-9178

query I rowsort
SELECT ALL + 49 * + 4
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7515
SELECT ALL NULLIF ( + + CASE + - COUNT( * ) WHEN CAST( NULL AS SIGNED ) * + - 77 + + COUNT( * ) THEN 27 WHEN 68 THEN + - 90 + 80 END, + - ( - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL NULLIF ( + + CASE + - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * + - 77 + + COUNT ( * ) THEN 27 WHEN 68 THEN + - 90 + 80 END, + - ( - COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT ALL - 76 * + - 80 col2
----
6080

query II rowsort
SELECT - 16 + + 80 AS col0, + 46 + - 89 * + 82 AS col1
----
64
-7252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7518
SELECT DISTINCT - 9 * 41 * - 18 * 63 + - - COUNT( * ) + - + 45 - 59 DIV COUNT( ( - 55 ) ) * 44 * COUNT( DISTINCT + + 89 ) * - + 84 AS col2
----
636466

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT - 9 * 41 * - 18 * 63 + - - COUNT ( * ) + - + 45 - 59 / COUNT ( ( - 55 ) ) * 44 * COUNT ( DISTINCT + + 89 ) * - + 84 AS col2
----
636466

query I rowsort
SELECT DISTINCT ( - + 74 ) AS col2
----
-74

query I rowsort
SELECT - 80 * 41 * - 6
----
19680

query I rowsort
SELECT - 39 - - 72 * 41 AS col0
----
2913

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT DISTINCT - 59 + + 80 * - COUNT( DISTINCT + 32 ) * - 13 * - + ( 37 )
----
-38539

skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT - 59 + + 80 * - COUNT ( DISTINCT + 32 ) * - 13 * - + ( 37 )
----
-38539

query I rowsort
SELECT - 15 * + 90 * - - 53 * - - 28 * + 25
----
-50085000

query I rowsort
SELECT + 21 * + 9 AS col1
----
189

query I rowsort
SELECT + 38 + 41 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT ALL 3 + + COALESCE ( - 50, - + 55 + - - 29 - - + 0 + + COUNT( * ) * + 28 * - 63 * - 18 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL 3 + + COALESCE ( - 50, - + 55 + - - 29 - - + 0 + + COUNT ( * ) * + 28 * - 63 * - 18 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT - 85 - - CASE - 68 WHEN + 1 THEN - 16 + - 92 + - - MAX( - + 7 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7528
SELECT - 85 - - CASE - 68 WHEN + 1 THEN - 16 + - 92 + - - MAX ( - + 7 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT ALL 96 * - MIN( DISTINCT + - 1 ) * + 68
----
6528

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL 96 * - MIN ( DISTINCT + - 1 ) * + 68
----
6528

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT DISTINCT 55 + + COUNT( * ), + 33 - - - 16 * 89 * 91 * 24 AS col2
----
56
-3109983

skipif mysql # not compatible
query II rowsort label-7530
SELECT DISTINCT 55 + + COUNT ( * ), + 33 - - - 16 * 89 * 91 * 24 AS col2
----
56
-3109983

query I rowsort
SELECT + CASE - - 39 WHEN - - 39 THEN - + 11 END - 78 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-7532
SELECT ALL - ( - 19 ) + + COUNT( * ) * + 46, 46 col0
----
65
46

skipif mysql # not compatible
query II rowsort label-7532
SELECT ALL - ( - 19 ) + + COUNT ( * ) * + 46, 46 col0
----
65
46

query II rowsort
SELECT ALL - 71 + + + 47 AS col2, + 54 + + 48 AS col0
----
-24
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7534
SELECT + CASE - ( + - 23 ) WHEN - 25 + 7 + + 83 + - + 64 - + + MAX( DISTINCT + - 54 ) * - + SUM( - 78 ) THEN + AVG ( + 19 ) / - 23 + + - COALESCE ( + 17, 14 * + - ( - - 44 ), + - ( + 44 ) ) * - + 45 - + - CAST( + + 15 AS SIGNED ) - COUNT( * ) - + + 59 WHEN + 73 THEN - - 23 / + ( ( - MIN( DISTINCT + 47 ) ) ) END * + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT + CASE - ( + - 23 ) WHEN - 25 + 7 + + 83 + - + 64 - + + MAX ( DISTINCT + - 54 ) * - + SUM ( - 78 ) THEN + AVG ( + 19 ) / - 23 + + - COALESCE ( + 17, 14 * + - ( - - 44 ), + - ( + 44 ) ) * - + 45 - + - CAST ( + + 15 AS INTEGER ) - COUNT ( * ) - + + 59 WHEN + 73 THEN - - 23 / + ( ( - MIN ( DISTINCT + 47 ) ) ) END * + 62 AS col2
----
NULL

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

query I rowsort
SELECT COALESCE ( + + 34, 57, 30 ) AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7537
SELECT 13 + + + CAST( NULL AS SIGNED ) / - ( - COUNT( - - 95 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT 13 + + + CAST ( NULL AS INTEGER ) / - ( - COUNT ( - - 95 ) ) AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7539
SELECT - NULLIF ( - 21, 92 / - CAST( 76 AS SIGNED ) + + + COUNT( * ) * 79 ) * 89
----
1869

skipif mysql # not compatible
query I rowsort label-7539
SELECT - NULLIF ( - 21, 92 / - CAST ( 76 AS INTEGER ) + + + COUNT ( * ) * 79 ) * 89
----
1869

onlyif mysql # DIV for integer division: 
query I rowsort label-7540
SELECT 92 DIV 94 * + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7540
SELECT 92 / 94 * + 61 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT - CASE - 29 WHEN + + 22 THEN - - 88 / - 98 + - 51 WHEN COUNT( * ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7542
SELECT - CASE - 29 WHEN + + 22 THEN - - 88 / - 98 + - 51 WHEN COUNT ( * ) THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7543
SELECT ALL - 86 DIV NULLIF ( + + 55, 97 ) AS col2, SUM( - 78 )
----
-1
-78

skipif mysql # not compatible
query II rowsort label-7543
SELECT ALL - 86 / NULLIF ( + + 55, 97 ) AS col2, SUM ( - 78 )
----
-1
-78

query I rowsort
SELECT + 12 col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7545
SELECT + + COALESCE ( + MAX( - - 79 ), - 4 DIV + 98 )
----
79

skipif mysql # not compatible
query I rowsort label-7545
SELECT + + COALESCE ( + MAX ( - - 79 ), - 4 / + 98 )
----
79

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

query I rowsort
SELECT 61 * + 13 AS col0
----
793

query I rowsort
SELECT 64 + 60 AS col2
----
124

query I rowsort
SELECT ALL 92 * 57 AS col2
----
5244

query I rowsort
SELECT 80 * + + 29 - - + 99
----
2419

query II rowsort
SELECT ALL 87 * - 80 * + ( - 47 ) * - 53 AS col2, 77
----
-17337360
77

query I rowsort
SELECT DISTINCT 46 + 6 + + - ( + 46 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT ALL - ( - 27 ) + + + MIN( - 8 )
----
19

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL - ( - 27 ) + + + MIN ( - 8 )
----
19

query I rowsort
SELECT ALL 81 + - 86 - - 40
----
35

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

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

query I rowsort
SELECT 31 * + 95 col2
----
2945

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL + 17 + 70 * - - 31 + + + COUNT( * ) AS col1
----
2188

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL + 17 + 70 * - - 31 + + + COUNT ( * ) AS col1
----
2188

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7559
SELECT ALL - 90 + 91 + + - 42 + - - 51 DIV + NULLIF ( + 93, - 54 * - 74 * 71 )
----
-41

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL - 90 + 91 + + - 42 + - - 51 / + NULLIF ( + 93, - 54 * - 74 * 71 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7560
SELECT 12 + - 82 + + CAST( NULL AS SIGNED ) + + + 38 + - 92, 75 * - - CASE 89 WHEN + 7 - + + COUNT( * ) THEN 29 ELSE SUM( ALL - 70 ) * + ( AVG ( - 6 ) ) - + - 97 * + 92 / + 22 END * + - CAST( NULL AS SIGNED ) - - - COUNT( ALL + + 66 ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7560
SELECT 12 + - 82 + + CAST ( NULL AS INTEGER ) + + + 38 + - 92, 75 * - - CASE 89 WHEN + 7 - + + COUNT ( * ) THEN 29 ELSE SUM ( ALL - 70 ) * + ( AVG ( - 6 ) ) - + - 97 * + 92 / + 22 END * + - CAST ( NULL AS INTEGER ) - - - COUNT ( ALL + + 66 ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT 18 * + CASE - + 55 WHEN - 48 THEN + 45 * - 60 + - + 1 END - - CASE + 74 WHEN SUM( - ( - 69 ) ) THEN 59 * + MIN( 61 ) ELSE - - 99 * + - 67 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7561
SELECT 18 * + CASE - + 55 WHEN - 48 THEN + 45 * - 60 + - + 1 END - - CASE + 74 WHEN SUM ( - ( - 69 ) ) THEN 59 * + MIN ( 61 ) ELSE - - 99 * + - 67 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT CAST( NULL AS SIGNED ) + CASE 2 WHEN - 66 THEN + + 36 END + + - COALESCE ( + + 80, 45 ) / + - 33 + + - 20 / 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT CAST ( NULL AS INTEGER ) + CASE 2 WHEN - 66 THEN + + 36 END + + - COALESCE ( + + 80, 45 ) / + - 33 + + - 20 / 27
----
NULL

query I rowsort
SELECT 57 - - ( + 69 )
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT ALL + 18 + - + 59 + + CAST( NULL AS SIGNED ) + + - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL + 18 + - + 59 + + CAST ( NULL AS INTEGER ) + + - 1 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7565
SELECT 66 + + ( - 90 ) - + 75 DIV - + 22 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7565
SELECT 66 + + ( - 90 ) - + 75 / - + 22 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT DISTINCT + 0 * MIN( ALL 53 )
----
0

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT + 0 * MIN ( ALL 53 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT ALL - ( + 49 ) + + COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL - ( + 49 ) + + COUNT ( * ) AS col1
----
-48

query I rowsort
SELECT DISTINCT + 1 * 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT ALL COUNT( * ) - - 52 * + + 37 - + + COUNT( + - 62 )
----
1924

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL COUNT ( * ) - - 52 * + + 37 - + + COUNT ( + - 62 )
----
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT 38 + - 64 - COUNT( * ) * 89
----
-115

skipif mysql # not compatible
query I rowsort label-7571
SELECT 38 + - 64 - COUNT ( * ) * 89
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7572
SELECT + 98 * - 73 DIV - COUNT( * )
----
7154

skipif mysql # not compatible
query I rowsort label-7572
SELECT + 98 * - 73 / - COUNT ( * )
----
7154

onlyif mysql # aggregate syntax: 
query II rowsort label-7573
SELECT - ( + COUNT( * ) ) * - - 33 AS col1, 80
----
-33
80

skipif mysql # not compatible
query II rowsort label-7573
SELECT - ( + COUNT ( * ) ) * - - 33 AS col1, 80
----
-33
80

query I rowsort
SELECT - 81 + + 40 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT - COALESCE ( + COUNT( * ), - - COALESCE ( - 0, + 50, 90 ) * 32 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7575
SELECT - COALESCE ( + COUNT ( * ), - - COALESCE ( - 0, + 50, 90 ) * 32 ) AS col1
----
-1

query I rowsort
SELECT - ( - + 89 ) * + 64
----
5696

onlyif mysql # aggregate syntax: 
query II rowsort label-7577
SELECT 7 + + MIN( ALL - ( + 47 ) ) * + + 53 col2, - 0
----
-2484
0

skipif mysql # not compatible
query II rowsort label-7577
SELECT 7 + + MIN ( ALL - ( + 47 ) ) * + + 53 col2, - 0
----
-2484
0

query I rowsort
SELECT + NULLIF ( - + 53, - 60 )
----
-53

query I rowsort
SELECT ALL - 40 col0
----
-40

query I rowsort
SELECT 30 - - 38 + + 7
----
75

query II rowsort
SELECT + 69, + 96 AS col2
----
69
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7583
SELECT - 12 DIV + 19 * + 61 + + + 66 + 40 col2
----
106

skipif mysql # not compatible
query I rowsort label-7583
SELECT - 12 / + 19 * + 61 + + + 66 + 40 col2
----
106

query I rowsort
SELECT ALL - - ( + 89 ) AS col1
----
89

query I rowsort
SELECT 68 + 74 AS col0
----
142

query I rowsort
SELECT 55 + - 71 * - 53
----
3818

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

query I rowsort
SELECT ALL + 13 + + 14 + + 38 * - - 25
----
977

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT 85 * + - 84 + - - COUNT( * ) + + - 51 + + + COUNT( * ) AS col2
----
-7189

skipif mysql # not compatible
query I rowsort label-7589
SELECT 85 * + - 84 + - - COUNT ( * ) + + - 51 + + + COUNT ( * ) AS col2
----
-7189

query I rowsort
SELECT ALL CASE + - 98 WHEN + - 49 + 73 - 90 * + 22 THEN 55 WHEN - - 28 THEN NULL END + + - ( 41 ) AS col2
----
NULL

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

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

query II rowsort
SELECT 82, 59 AS col1
----
82
59

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

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

query I rowsort
SELECT ( - - 12 ) + + 48 * 84 + + - 85 * + + 58 AS col1
----
-886

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT 22 * + SUM( ALL + - 89 ) * + 40 * 48 + - 68 * 19 + + ( + 60 ) AS col0
----
-3760592

skipif mysql # not compatible
query I rowsort label-7595
SELECT 22 * + SUM ( ALL + - 89 ) * + 40 * 48 + - 68 * 19 + + ( + 60 ) AS col0
----
-3760592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7596
SELECT ALL 27 + ( 12 ) * 0 + + 25 - CASE - 83 WHEN - 0 THEN 52 / + 66 * - - COUNT( * ) * - COUNT( CASE WHEN NOT - 63 IS NULL THEN NULL ELSE + + 31 END ) * - + 35 WHEN 74 THEN NULL WHEN - CAST( NULL AS SIGNED ) - + 23 THEN + + 23 WHEN + - 23 THEN - SUM( ALL - + CAST( 35 AS DECIMAL ) ) * + ( 64 ) + + 66 - + + 87 + - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL 27 + ( 12 ) * 0 + + 25 - CASE - 83 WHEN - 0 THEN 52 / + 66 * - - COUNT ( * ) * - COUNT ( CASE WHEN NOT - 63 IS NULL THEN NULL ELSE + + 31 END ) * - + 35 WHEN 74 THEN NULL WHEN - CAST ( NULL AS INTEGER ) - + 23 THEN + + 23 WHEN + - 23 THEN - SUM ( ALL - + CAST ( 35 AS REAL ) ) * + ( 64 ) + + 66 - + + 87 + - 92 END
----
NULL

query I rowsort
SELECT DISTINCT ( 33 ) * - - 67 * + 48 AS col0
----
106128

query I rowsort
SELECT 66 + + - 32 * - 17 col0
----
610

query I rowsort
SELECT ALL - 59 + - 91
----
-150

query I rowsort
SELECT ALL 32 col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT - CASE + - 21 WHEN 75 THEN - + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT - CASE + - 21 WHEN 75 THEN - + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT + 49 - + - 81 + + 72 + + - 73 * - ( 11 ) * - 87 * + 98 - + + 95 + - 89 + - - NULLIF ( 77, - - 1 ) + - NULLIF ( - CASE - COUNT( * ) WHEN 82 - - + ( + 75 ) * + + 99 THEN + 79 - + 26 END, + 89 - - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT + 49 - + - 81 + + 72 + + - 73 * - ( 11 ) * - 87 * + 98 - + + 95 + - 89 + - - NULLIF ( 77, - - 1 ) + - NULLIF ( - CASE - COUNT ( * ) WHEN 82 - - + ( + 75 ) * + + 99 THEN + 79 - + 26 END, + 89 - - COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT - ( - 46 )
----
46

query I rowsort
SELECT DISTINCT 84 - - 86
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-7605
SELECT ALL - - 56 * COALESCE ( + - 22, + - 61 ) DIV - - 73 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL - - 56 * COALESCE ( + - 22, + - 61 ) / - - 73 AS col0
----
-16

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

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

query I rowsort
SELECT DISTINCT 97 / + CASE - 19 WHEN + ( - + AVG ( ALL + 18 ) ) THEN 61 + + - 20 + 80 END
----
NULL

query I rowsort
SELECT - + 22
----
-22

query I rowsort
SELECT DISTINCT + 27 * 57
----
1539

query I rowsort
SELECT DISTINCT 69 AS col0
----
69

query I rowsort
SELECT ALL - - 64 * + - 58 AS col2
----
-3712

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT + + 23 * + MAX( ALL + + 11 ) + - ( - COUNT( * ) ) AS col2
----
254

skipif mysql # not compatible
query I rowsort label-7614
SELECT + + 23 * + MAX ( ALL + + 11 ) + - ( - COUNT ( * ) ) AS col2
----
254

query I rowsort
SELECT DISTINCT + + 59 * - + 63 AS col0
----
-3717

query I rowsort
SELECT ALL 72 * - 89 + 50
----
-6358

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

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

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

query I rowsort
SELECT ALL + 4 * 41 + + 76 AS col2
----
240

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

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

query I rowsort
SELECT - 39 + - 45 * 64 AS col2
----
-2919

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7622
SELECT ALL - COUNT( * ) * - COUNT( * ) DIV - 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - COUNT ( * ) * - COUNT ( * ) / - 20 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT CASE 45 WHEN + + 37 THEN + + 10 WHEN - COUNT( * ) THEN 37 + - 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT CASE 45 WHEN + + 37 THEN + + 10 WHEN - COUNT ( * ) THEN 37 + - 55 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT DISTINCT 86 * 47 * + SUM( ALL + 89 )
----
359738

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT 86 * 47 * + SUM ( ALL + 89 )
----
359738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7625
SELECT NULLIF ( + + SUM( DISTINCT 0 ), 67 * CAST( - - 90 AS SIGNED ) + - 33 * - 48 ), 49 AS col1
----
0
49

skipif mysql # not compatible
query II rowsort label-7625
SELECT NULLIF ( + + SUM ( DISTINCT 0 ), 67 * CAST ( - - 90 AS INTEGER ) + - 33 * - 48 ), 49 AS col1
----
0
49

query I rowsort
SELECT + COALESCE ( 19, 18 * + 16 ) AS col1
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT ALL - 18 * + MIN( + 39 ) AS col0
----
-702

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL - 18 * + MIN ( + 39 ) AS col0
----
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT + COUNT( 32 ) + + 71 - + ( + + MAX( 56 ) )
----
16

skipif mysql # not compatible
query I rowsort label-7629
SELECT + COUNT ( 32 ) + + 71 - + ( + + MAX ( 56 ) )
----
16

query II rowsort
SELECT ALL + 0 * + 76 - - + 15, 36 AS col0
----
15
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT CASE - 72 WHEN - 88 THEN 88 WHEN + 97 + - - COUNT( * ) + 95 - 37 + + 7 THEN ( + + 10 ) * 92 / - 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT CASE - 72 WHEN - 88 THEN 88 WHEN + 97 + - - COUNT ( * ) + 95 - 37 + + 7 THEN ( + + 10 ) * 92 / - 93 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7632
SELECT + 62 + CAST( NULL AS DECIMAL ) AS col0, + NULLIF ( + - 24, - + COUNT( * ) )
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-7632
SELECT + 62 + CAST ( NULL AS REAL ) AS col0, + NULLIF ( + - 24, - + COUNT ( * ) )
----
NULL
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7633
SELECT ALL 73 DIV - ( 7 )
----
-10

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL 73 / - ( 7 )
----
-10

query I rowsort
SELECT + 22 * + 18 * + 77 + + 45
----
30537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7635
SELECT + ( - 91 ) * NULLIF ( - - 97, 95 ) * - - NULLIF ( + NULLIF ( - 92, + - 90 ), + 85 * - COUNT( * ) - COALESCE ( - 83, - - COUNT( * ) * + 9 + - 65 + CAST( NULL AS SIGNED ) + COUNT( * ) * - 40 ) + 84 + - COUNT( * ) ) + + - 15 AS col2
----
812069

skipif mysql # not compatible
query I rowsort label-7635
SELECT + ( - 91 ) * NULLIF ( - - 97, 95 ) * - - NULLIF ( + NULLIF ( - 92, + - 90 ), + 85 * - COUNT ( * ) - COALESCE ( - 83, - - COUNT ( * ) * + 9 + - 65 + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 40 ) + 84 + - COUNT ( * ) ) + + - 15 AS col2
----
812069

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

skipif mysql # not compatible
query I rowsort label-7636
SELECT - MIN ( DISTINCT - - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT + COUNT( * ) - ( + 17 ) * + + 4 * + 27
----
-1835

skipif mysql # not compatible
query I rowsort label-7637
SELECT + COUNT ( * ) - ( + 17 ) * + + 4 * + 27
----
-1835

onlyif mysql # aggregate syntax: 
query II rowsort label-7638
SELECT MIN( ALL + 49 ), - 3 col1
----
49
-3

skipif mysql # not compatible
query II rowsort label-7638
SELECT MIN ( ALL + 49 ), - 3 col1
----
49
-3

query II rowsort
SELECT - ( 89 ) AS col2, + 86
----
-89
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7640
SELECT + ( - 60 ) * COUNT( * ) DIV - - ( + 98 ) - - COUNT( - 42 ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7640
SELECT + ( - 60 ) * COUNT ( * ) / - - ( + 98 ) - - COUNT ( - 42 ) + - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT + 59 * - ( + + 39 ) AS col0
----
-2301

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT ALL COUNT( * ) * 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL COUNT ( * ) * 9 AS col1
----
9

query I rowsort
SELECT + 16 + + 61 * 62 + - 33
----
3765

query I rowsort
SELECT ALL 86 * - 15 AS col2
----
-1290

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL - 87 + COUNT( DISTINCT + 60 )
----
-86

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL - 87 + COUNT ( DISTINCT + 60 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT ALL NULLIF ( - 16, - MIN( ALL ( 3 ) ) / - + 49 - + + 16 - ( + - 15 ) + + 3 * + 46 + ( 56 ) ) * - 79
----
1264

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL NULLIF ( - 16, - MIN ( ALL ( 3 ) ) / - + 49 - + + 16 - ( + - 15 ) + + 3 * + 46 + ( 56 ) ) * - 79
----
1264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7647
SELECT - - 1 * ( + 74 ) * 48 * - COUNT( * ) * MIN( ALL - 62 ) + + 91 + - 75 DIV + + 35
----
220313

skipif mysql # not compatible
query I rowsort label-7647
SELECT - - 1 * ( + 74 ) * 48 * - COUNT ( * ) * MIN ( ALL - 62 ) + + 91 + - 75 / + + 35
----
220313

query I rowsort
SELECT + + 32 + + 63 AS col0
----
95

query II rowsort
SELECT - + ( - 55 ) + 82 AS col0, - 99 AS col1
----
137
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-7650
SELECT - 89 DIV - 36 AS col1, 79 + 33 AS col0
----
2
112

skipif mysql # not compatible
query II rowsort label-7650
SELECT - 89 / - 36 AS col1, 79 + 33 AS col0
----
2
112

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT ALL - COUNT( * ) + - + ( 80 )
----
-81

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL - COUNT ( * ) + - + ( 80 )
----
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - COUNT( * ) + + + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7653
SELECT - COUNT ( * ) + + + COUNT ( * ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7654
SELECT ALL 16 DIV + 52 + - 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL 16 / + 52 + - 52 AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7655
SELECT DISTINCT ( - - 74 ) AS col1, 27 + - 50 * + 85 * - CASE - 19 WHEN 77 * + 0 + CAST( + + 78 AS SIGNED ) + + 32 THEN NULL WHEN + 86 + + AVG ( DISTINCT + 31 ) * - COUNT( * ) THEN - + MAX( 45 ) * 12 ELSE NULL END
----
74
NULL

skipif mysql # not compatible
query II rowsort label-7655
SELECT DISTINCT ( - - 74 ) AS col1, 27 + - 50 * + 85 * - CASE - 19 WHEN 77 * + 0 + CAST ( + + 78 AS INTEGER ) + + 32 THEN NULL WHEN + 86 + + AVG ( DISTINCT + 31 ) * - COUNT ( * ) THEN - + MAX ( 45 ) * 12 ELSE NULL END
----
74
NULL

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

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL - 86 + + 34 + + COUNT ( * ) AS col0
----
-51

query I rowsort
SELECT ALL + + 73 * 2 + + - NULLIF ( - 96, - + 15 ) + + 67
----
309

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT - 94 * - 28 * - + 57 + - - 65 DIV 88
----
-150024

skipif mysql # not compatible
query I rowsort label-7658
SELECT - 94 * - 28 * - + 57 + - - 65 / 88
----
-150024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7659
SELECT CAST( NULL AS SIGNED ), NULLIF ( 65, + - AVG ( ALL + + 23 ) + - 9 ) AS col2, 23 + + SUM( ALL COALESCE ( - 94, - 63 ) ) AS col0
----
NULL
65
-71

skipif mysql # not compatible
query III rowsort label-7659
SELECT CAST ( NULL AS INTEGER ), NULLIF ( 65, + - AVG ( ALL + + 23 ) + - 9 ) AS col2, 23 + + SUM ( ALL COALESCE ( - 94, - 63 ) ) AS col0
----
NULL
65
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-7660
SELECT 59 DIV + 13 + - 59 AS col2, - 30 * 48 + 25 + + 26 * + + 26 * + 21
----
-55
12781

skipif mysql # not compatible
query II rowsort label-7660
SELECT 59 / + 13 + - 59 AS col2, - 30 * 48 + 25 + + 26 * + + 26 * + 21
----
-55
12781

query I rowsort
SELECT - 33 * - 59 AS col1
----
1947

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT - COUNT( - 8 ) + + ( 10 )
----
9

skipif mysql # not compatible
query I rowsort label-7662
SELECT - COUNT ( - 8 ) + + ( 10 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7663
SELECT ALL + NULLIF ( + - COUNT( * ), + 25 ), 9 AS col1
----
-1
9

skipif mysql # not compatible
query II rowsort label-7663
SELECT ALL + NULLIF ( + - COUNT ( * ), + 25 ), 9 AS col1
----
-1
9

query I rowsort
SELECT - 31 * + + 59 * 40 + + 75 AS col1
----
-73085

onlyif mysql # aggregate syntax: 
query II rowsort label-7665
SELECT MAX( - 70 ) * + MAX( + - 86 ) * + CASE - 59 WHEN COUNT( * ) THEN NULL ELSE + 42 END + + 49 * - 13 * - + 23 AS col1, + 96 AS col1
----
267491
96

skipif mysql # not compatible
query II rowsort label-7665
SELECT MAX ( - 70 ) * + MAX ( + - 86 ) * + CASE - 59 WHEN COUNT ( * ) THEN NULL ELSE + 42 END + + 49 * - 13 * - + 23 AS col1, + 96 AS col1
----
267491
96

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

query I rowsort
SELECT DISTINCT + 42 - + 81 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT + 93 * + ( + 37 ) * + 92 + - 39 + + 47 + COUNT( DISTINCT - 73 )
----
316581

skipif mysql # not compatible
query I rowsort label-7668
SELECT + 93 * + ( + 37 ) * + 92 + - 39 + + 47 + COUNT ( DISTINCT - 73 )
----
316581

query II rowsort
SELECT + 87 AS col0, 58 AS col2
----
87
58

query I rowsort
SELECT 56 * + 96
----
5376

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT MAX( ALL + 1 ) * + 5 * + - 57 AS col2
----
-285

skipif mysql # not compatible
query I rowsort label-7671
SELECT MAX ( ALL + 1 ) * + 5 * + - 57 AS col2
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ( - + 29 ) + + 21 + + MAX( - 2 )
----
-10

skipif mysql # not compatible
query I rowsort label-7672
SELECT ( - + 29 ) + + 21 + + MAX ( - 2 )
----
-10

query I rowsort
SELECT DISTINCT - 79 * - 55
----
4345

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT DISTINCT - - 22 * + 71 - + 22 * - - 56 * - - 46 * - MIN( DISTINCT - 95 )
----
-5382278

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT - - 22 * + 71 - + 22 * - - 56 * - - 46 * - MIN ( DISTINCT - 95 )
----
-5382278

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT ALL - 2 DIV - + 51
----
0

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL - 2 / - + 51
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7676
SELECT DISTINCT + 91 + - 29 DIV + ( - - MAX( DISTINCT + + 6 ) ) DIV COUNT( * ) + 52 AS col0
----
139

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT + 91 + - 29 / + ( - - MAX ( DISTINCT + + 6 ) ) / COUNT ( * ) + 52 AS col0
----
139

onlyif mysql # aggregate syntax: 
query III rowsort label-7677
SELECT ALL + COUNT( * ) AS col1, NULLIF ( + ( + NULLIF ( - 61, - + MIN( - + 49 ) ) ), + + 43 * 11 + 4 + - - 79 ) AS col2, + - 12 * - 96 + + ( 53 ) + + 12 + + 0 + + 1 col0
----
1
-61
1218

skipif mysql # not compatible
query III rowsort label-7677
SELECT ALL + COUNT ( * ) AS col1, NULLIF ( + ( + NULLIF ( - 61, - + MIN ( - + 49 ) ) ), + + 43 * 11 + 4 + - - 79 ) AS col2, + - 12 * - 96 + + ( 53 ) + + 12 + + 0 + + 1 col0
----
1
-61
1218

query I rowsort
SELECT ( + 70 ) * - + 21 * + - 32 + + - 60 col1
----
46980

query I rowsort
SELECT ALL + ( 70 ) + - + 26
----
44

query I rowsort
SELECT + 67 - - 17
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7681
SELECT ( - COALESCE ( + 63, - COUNT( * ) ) ) - - NULLIF ( - 6, + AVG ( DISTINCT 98 ) ) col1, - 25
----
-69
-25

skipif mysql # not compatible
query II rowsort label-7681
SELECT ( - COALESCE ( + 63, - COUNT ( * ) ) ) - - NULLIF ( - 6, + AVG ( DISTINCT 98 ) ) col1, - 25
----
-69
-25

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7683
SELECT 74 + COUNT( * ) * + COUNT( * ) / 93 + + COUNT( * ) * - 31 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT 74 + COUNT ( * ) * + COUNT ( * ) / 93 + + COUNT ( * ) * - 31 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7684
SELECT ALL 42 + + 93 DIV + + 50, 79 AS col2
----
43
79

skipif mysql # not compatible
query II rowsort label-7684
SELECT ALL 42 + + 93 / + + 50, 79 AS col2
----
43
79

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

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL COUNT ( * ) + - 34 AS col0
----
-33

query I rowsort
SELECT DISTINCT 91 + + 32
----
123

query I rowsort
SELECT 23 - 14 AS col1
----
9

query I rowsort
SELECT ALL + COALESCE ( 67, 68 * - 12, + - 79 * - - ( + 69 ) )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT - - ( + + CASE + + 93 WHEN 54 THEN + + 86 WHEN + CAST( NULL AS SIGNED ) + - 71 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT - - ( + + CASE + + 93 WHEN 54 THEN + + 86 WHEN + CAST ( NULL AS INTEGER ) + - 71 THEN NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL - 57 + + MIN( ALL + 20 ) + - 65 AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL - 57 + + MIN ( ALL + 20 ) + - 65 AS col1
----
-102

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

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

query I rowsort
SELECT - 62 * 34 * + 78
----
-164424

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT COUNT( - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-7693
SELECT COUNT ( - 49 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7694
SELECT COUNT( * ), + CAST( NULL AS DECIMAL ) col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7694
SELECT COUNT ( * ), + CAST ( NULL AS REAL ) col2
----
1
NULL

query I rowsort
SELECT 50 * - 13 * 69 AS col0
----
-44850

query I rowsort
SELECT 37 * 8
----
296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7697
SELECT ALL - 0 * - - CAST( - + 29 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL - 0 * - - CAST ( - + 29 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT DISTINCT ( 70 ) * - - 80 AS col2
----
5600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7699
SELECT 66 * + COALESCE ( + CASE + 33 WHEN + - 75 * - COUNT( * ) * + ( - 64 ) THEN - 5 * + AVG ( DISTINCT 27 ) END, CASE + 61 WHEN CAST( NULL AS SIGNED ) THEN + 23 + - 80 + + + CAST( + 11 AS SIGNED ) * 16 * - 13 + + 70 END + - + 78 + + + 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7699
SELECT 66 * + COALESCE ( + CASE + 33 WHEN + - 75 * - COUNT ( * ) * + ( - 64 ) THEN - 5 * + AVG ( DISTINCT 27 ) END, CASE + 61 WHEN CAST ( NULL AS INTEGER ) THEN + 23 + - 80 + + + CAST ( + 11 AS INTEGER ) * 16 * - 13 + + 70 END + - + 78 + + + 40 ) AS col1
----
NULL

query I rowsort
SELECT ( - + 82 ) + - 81 col1
----
-163

query I rowsort
SELECT ALL 62 * - NULLIF ( + 88, - + 95 )
----
-5456

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT MIN( ALL + 68 ) * 56
----
3808

skipif mysql # not compatible
query I rowsort label-7702
SELECT MIN ( ALL + 68 ) * 56
----
3808

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT + 14 * - COUNT( * ) + ( + - 25 ) - 16 - 12 * ( - 81 ) AS col1
----
917

skipif mysql # not compatible
query I rowsort label-7703
SELECT + 14 * - COUNT ( * ) + ( + - 25 ) - 16 - 12 * ( - 81 ) AS col1
----
917

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT 65 * - COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7704
SELECT 65 * - COUNT ( * ) AS col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7705
SELECT ( 35 ) * + COALESCE ( COUNT( * ), - CASE + MAX( ALL - 90 ) WHEN + + 7 THEN - SUM( ALL - - 20 ) ELSE NULL END ) - + 10 * - 15 - + COUNT( * ) + + 79 DIV 25 col0
----
187

skipif mysql # not compatible
query I rowsort label-7705
SELECT ( 35 ) * + COALESCE ( COUNT ( * ), - CASE + MAX ( ALL - 90 ) WHEN + + 7 THEN - SUM ( ALL - - 20 ) ELSE NULL END ) - + 10 * - 15 - + COUNT ( * ) + + 79 / 25 col0
----
187

query II rowsort
SELECT ALL 2 * + 68, 4 col0
----
136
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT DISTINCT 20 + - NULLIF ( + + 77, - MAX( 47 ) * 98 + 63 ) + + + 4 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT 20 + - NULLIF ( + + 77, - MAX ( 47 ) * 98 + 63 ) + + + 4 AS col0
----
-53

query I rowsort
SELECT 22 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT DISTINCT + NULLIF ( - 73, 88 * - COUNT( * ) * + - 47 ) + - + 56
----
-129

skipif mysql # not compatible
query I rowsort label-7710
SELECT DISTINCT + NULLIF ( - 73, 88 * - COUNT ( * ) * + - 47 ) + - + 56
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7711
SELECT + 91 * + 82 + + COUNT( * ) + + 2 DIV + + 24 * 81 col1
----
7463

skipif mysql # not compatible
query I rowsort label-7711
SELECT + 91 * + 82 + + COUNT ( * ) + + 2 / + + 24 * 81 col1
----
7463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7712
SELECT - ( + 4 ) + - CAST( - COUNT( * ) AS SIGNED ) + 71
----
68

skipif mysql # not compatible
query I rowsort label-7712
SELECT - ( + 4 ) + - CAST ( - COUNT ( * ) AS INTEGER ) + 71
----
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT 22 + - 60 + + ( SUM( 8 ) ) * + 35
----
242

skipif mysql # not compatible
query I rowsort label-7714
SELECT 22 + - 60 + + ( SUM ( 8 ) ) * + 35
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT - COUNT( * ) - + NULLIF ( + + 19, - 95 + + COUNT( * ) * - + 59 )
----
-20

skipif mysql # not compatible
query I rowsort label-7715
SELECT - COUNT ( * ) - + NULLIF ( + + 19, - 95 + + COUNT ( * ) * - + 59 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT - MIN( DISTINCT - 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-7716
SELECT - MIN ( DISTINCT - 94 ) AS col1
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT DISTINCT + - 44 + + 19 + + ( + MAX( + 91 ) ) * - 29
----
-2664

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT + - 44 + + 19 + + ( + MAX ( + 91 ) ) * - 29
----
-2664

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT ALL - MIN( DISTINCT - - ( - 25 ) )
----
25

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL - MIN ( DISTINCT - - ( - 25 ) )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7720
SELECT CAST( - + NULLIF ( + 68, - 68 + - ( - - 64 ) ) AS SIGNED ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-7720
SELECT CAST ( - + NULLIF ( + 68, - 68 + - ( - - 64 ) ) AS INTEGER ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT 68 * 82 + 95 - - 11 - COUNT( * ) AS col0
----
5681

skipif mysql # not compatible
query I rowsort label-7721
SELECT 68 * 82 + 95 - - 11 - COUNT ( * ) AS col0
----
5681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7722
SELECT - 76 + NULLIF ( - 63, - 61 / + 53 ) * - CAST( NULL AS SIGNED ) + + + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT - 76 + NULLIF ( - 63, - 61 / + 53 ) * - CAST ( NULL AS INTEGER ) + + + 4 AS col1
----
NULL

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

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

query I rowsort
SELECT 60 + 47 AS col1
----
107

query I rowsort
SELECT 37 + - + 61
----
-24

query I rowsort
SELECT DISTINCT 22 * - - 99 AS col1
----
2178

query I rowsort
SELECT ALL 57 * + + NULLIF ( + - 84, - 34 ) * 30 * - 21
----
3016440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7728
SELECT + MAX( ALL - + 65 ) + CAST( - + 60 AS SIGNED ) + - 21 AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-7728
SELECT + MAX ( ALL - + 65 ) + CAST ( - + 60 AS INTEGER ) + - 21 AS col2
----
-146

query I rowsort
SELECT DISTINCT ( - 29 ) * - + 61 * + 9 + 20
----
15941

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT + NULLIF ( - 47, - - 3 ) * - + MIN( - 98 )
----
-4606

skipif mysql # not compatible
query I rowsort label-7730
SELECT + NULLIF ( - 47, - - 3 ) * - + MIN ( - 98 )
----
-4606

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT + COUNT( * ) * - 73 + + 10
----
-63

skipif mysql # not compatible
query I rowsort label-7732
SELECT + COUNT ( * ) * - 73 + + 10
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-7733
SELECT 33 DIV + 55 + + 35 AS col1, + 31 AS col2
----
35
31

skipif mysql # not compatible
query II rowsort label-7733
SELECT 33 / + 55 + + 35 AS col1, + 31 AS col2
----
35
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7734
SELECT CASE - 33 WHEN + - 46 THEN + 43 ELSE - 30 * + CASE - 48 WHEN 18 - 61 THEN NULL WHEN + MAX( DISTINCT 84 ) THEN NULL WHEN 65 THEN + CAST( - - ( + 93 ) AS SIGNED ) + 46 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT CASE - 33 WHEN + - 46 THEN + 43 ELSE - 30 * + CASE - 48 WHEN 18 - 61 THEN NULL WHEN + MAX ( DISTINCT 84 ) THEN NULL WHEN 65 THEN + CAST ( - - ( + 93 ) AS INTEGER ) + 46 END END AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 34 * + 81 + + 37 AS col1
----
2791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7737
SELECT ALL CAST( NULL AS SIGNED ) * - 77 + 55, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7737
SELECT ALL CAST ( NULL AS INTEGER ) * - 77 + 55, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7738
SELECT + COALESCE ( + - 44, 3 DIV + 63 )
----
-44

skipif mysql # not compatible
query I rowsort label-7738
SELECT + COALESCE ( + - 44, 3 / + 63 )
----
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7739
SELECT + CAST( NULL AS DECIMAL ) / - ( 37 ) AS col2, + 43 AS col0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-7739
SELECT + CAST ( NULL AS REAL ) / - ( 37 ) AS col2, + 43 AS col0
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL 9 * + 85 + + 87 * + MAX( ALL - + 51 ) - + + 96 * + 40
----
-7512

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL 9 * + 85 + + 87 * + MAX ( ALL - + 51 ) - + + 96 * + 40
----
-7512

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT ALL MAX( + 74 ) * + - 89 + - 94 + - 22 AS col0
----
-6702

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL MAX ( + 74 ) * + - 89 + - 94 + - 22 AS col0
----
-6702

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT - 38 * + COUNT( * ) - - 70 + 31
----
63

skipif mysql # not compatible
query I rowsort label-7743
SELECT - 38 * + COUNT ( * ) - - 70 + 31
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT + NULLIF ( 66, + COUNT( ALL + - 68 ) * 67 - + 64 * - 6 - - 40 )
----
66

skipif mysql # not compatible
query I rowsort label-7744
SELECT + NULLIF ( 66, + COUNT ( ALL + - 68 ) * 67 - + 64 * - 6 - - 40 )
----
66

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

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

query I rowsort
SELECT ALL - 59 * + + 21 + + + 95 + - + 94 AS col1
----
-1238

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

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

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

query I rowsort
SELECT ALL + - 25 AS col1
----
-25

query I rowsort
SELECT - 94 + 69
----
-25

query I rowsort
SELECT DISTINCT ( + 49 ) + + 99 * 66
----
6583

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT DISTINCT + AVG ( + 77 ) - + CASE COUNT( DISTINCT - - 51 ) WHEN - + 22 THEN 50 WHEN + 96 THEN NULL END + - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT + AVG ( + 77 ) - + CASE COUNT ( DISTINCT - - 51 ) WHEN - + 22 THEN 50 WHEN + 96 THEN NULL END + - 56 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 50 AS col0, + NULLIF ( - 34, + + ( 39 ) )
----
50
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT + MAX( DISTINCT + 44 ) - + COALESCE ( + 98, + 66 )
----
-54

skipif mysql # not compatible
query I rowsort label-7755
SELECT + MAX ( DISTINCT + 44 ) - + COALESCE ( + 98, + 66 )
----
-54

query I rowsort
SELECT - 35 * 28 AS col2
----
-980

onlyif mysql # DIV for integer division: 
query I rowsort label-7757
SELECT ALL + 23 DIV - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL + 23 / - 39 AS col2
----
0

query II rowsort
SELECT DISTINCT - 42, 5 AS col0
----
-42
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT ( - - COUNT( * ) ) * + - 77 + + 93 col2
----
16

skipif mysql # not compatible
query I rowsort label-7759
SELECT ( - - COUNT ( * ) ) * + - 77 + + 93 col2
----
16

query I rowsort
SELECT - ( - 45 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT - + COUNT( * ) + - 17 + - - 67 + - 34 - + - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-7761
SELECT - + COUNT ( * ) + - 17 + - - 67 + - 34 - + - COUNT ( * )
----
16

query I rowsort
SELECT - - 75 col2
----
75

query I rowsort
SELECT ALL + 74 - + 38 AS col1
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ALL - CASE 78 WHEN - 55 + + 77 THEN + 30 END * + SUM( ALL - 19 ) * - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL - CASE 78 WHEN - 55 + + 77 THEN + 30 END * + SUM ( ALL - 19 ) * - 48 AS col0
----
NULL

query I rowsort
SELECT - 63 * ( - + 56 )
----
3528

query I rowsort
SELECT DISTINCT ( - 71 ) col2
----
-71

query I rowsort
SELECT ALL ( NULLIF ( + 45, + - 51 ) ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT - SUM( ALL - 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-7769
SELECT - SUM ( ALL - 45 ) AS col0
----
45

query I rowsort
SELECT + 33 * + + 60 col1
----
1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7771
SELECT ALL 6 DIV + COALESCE ( + + COUNT( * ), - - COUNT( * ) ) + + 79 + + CAST( + + 90 AS SIGNED ) AS col2, + 67 * + + 20
----
175
1340

skipif mysql # not compatible
query II rowsort label-7771
SELECT ALL 6 / + COALESCE ( + + COUNT ( * ), - - COUNT ( * ) ) + + 79 + + CAST ( + + 90 AS INTEGER ) AS col2, + 67 * + + 20
----
175
1340

query I rowsort
SELECT + ( - - 20 ) * + ( - 51 ) - + + 44
----
-1064

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT ALL COALESCE ( 72, + - 79 ) DIV + 68 + + 77 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL COALESCE ( 72, + - 79 ) / + 68 + + 77 AS col0
----
78

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

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL + COUNT ( * ) / - 19 + - + 56 AS col0
----
-56

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7776
SELECT ALL 43 DIV + 40 + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL 43 / + 40 + + COUNT ( * )
----
2

query I rowsort
SELECT - ( 93 ) + - ( + 83 ) AS col0
----
-176

query I rowsort
SELECT 65 * + 25 + 55
----
1680

onlyif mysql # aggregate syntax: 
query II rowsort label-7779
SELECT 74 AS col1, CASE + 74 WHEN - - 58 THEN NULL WHEN - + COUNT( * ) THEN - 32 WHEN + + ( 43 ) THEN NULL ELSE - 6 END
----
74
-6

skipif mysql # not compatible
query II rowsort label-7779
SELECT 74 AS col1, CASE + 74 WHEN - - 58 THEN NULL WHEN - + COUNT ( * ) THEN - 32 WHEN + + ( 43 ) THEN NULL ELSE - 6 END
----
74
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7780
SELECT ALL - + 94 / - CASE + + 66 WHEN - 26 / + + 63 * - CAST( - ( - CASE + + ( + - 68 ) WHEN - - ( + + 96 ) THEN - - 87 END ) AS SIGNED ) + + COUNT( * ) THEN NULL WHEN - 8 THEN 84 + 68 ELSE NULL END * + - 97 * + COALESCE ( + 82, - 99 * 27 + - 94, - 14 * - + CAST( NULL AS SIGNED ), + CASE + + SUM( ALL - + 19 ) WHEN + 47 THEN NULL WHEN - COUNT( * ) - - COUNT( * ) + + ( + - ( + 67 ) ) * CASE 0 WHEN - COUNT( * ) THEN - 63 * 49 END * + COUNT( * ) THEN NULL WHEN 24 THEN - 70 * - 80 END * - 30 ) * CAST( - 7 AS SIGNED ) + + 74 + + NULLIF ( COUNT( * ) + - NULLIF ( 63, - CASE 29 WHEN - 65 * - 76 THEN NULL ELSE 92 + - 44 / + 28 END ) * 20, + 71 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL - + 94 / - CASE + + 66 WHEN - 26 / + + 63 * - CAST ( - ( - CASE + + ( + - 68 ) WHEN - - ( + + 96 ) THEN - - 87 END ) AS INTEGER ) + + COUNT ( * ) THEN NULL WHEN - 8 THEN 84 + 68 ELSE NULL END * + - 97 * + COALESCE ( + 82, - 99 * 27 + - 94, - 14 * - + CAST ( NULL AS INTEGER ), + CASE + + SUM ( ALL - + 19 ) WHEN + 47 THEN NULL WHEN - COUNT ( * ) - - COUNT ( * ) + + ( + - ( + 67 ) ) * CASE 0 WHEN - COUNT ( * ) THEN - 63 * 49 END * + COUNT ( * ) THEN NULL WHEN 24 THEN - 70 * - 80 END * - 30 ) * CAST ( - 7 AS INTEGER ) + + 74 + + NULLIF ( COUNT ( * ) + - NULLIF ( 63, - CASE 29 WHEN - 65 * - 76 THEN NULL ELSE 92 + - 44 / + 28 END ) * 20, + 71 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT - COUNT( + - 66 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7781
SELECT - COUNT ( + - 66 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7782
SELECT - NULLIF ( + CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) ) * - 22 + + COALESCE ( 97, - 77 * + ( - COUNT( * ) ) * - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT - NULLIF ( + CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) ) * - 22 + + COALESCE ( 97, - 77 * + ( - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT ALL - + 95 * COUNT( * ) + + - 76 + - 58 + - 36 * + - 89
----
2975

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL - + 95 * COUNT ( * ) + + - 76 + - 58 + - 36 * + - 89
----
2975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7784
SELECT + 56 * + - COUNT( * ) + CAST( - + 32 AS SIGNED ) * - - 6
----
-248

skipif mysql # not compatible
query I rowsort label-7784
SELECT + 56 * + - COUNT ( * ) + CAST ( - + 32 AS INTEGER ) * - - 6
----
-248

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

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

query I rowsort
SELECT + 83 + + 8
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7787
SELECT ALL + - 75 * + + COUNT( * ) - - 83 - + MAX( - 36 ) * - 24, - 99 AS col2
----
-856
-99

skipif mysql # not compatible
query II rowsort label-7787
SELECT ALL + - 75 * + + COUNT ( * ) - - 83 - + MAX ( - 36 ) * - 24, - 99 AS col2
----
-856
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-7788
SELECT - + 26 * - - 17 + + - 10 DIV - 72 AS col2, 57
----
-442
57

skipif mysql # not compatible
query II rowsort label-7788
SELECT - + 26 * - - 17 + + - 10 / - 72 AS col2, 57
----
-442
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7789
SELECT ALL + 49 AS col2, - 16 + - + ( + NULLIF ( 71, - CAST( NULL AS SIGNED ) + + 32 * - 41 * + - COUNT( * ) ) )
----
49
-87

skipif mysql # not compatible
query II rowsort label-7789
SELECT ALL + 49 AS col2, - 16 + - + ( + NULLIF ( 71, - CAST ( NULL AS INTEGER ) + + 32 * - 41 * + - COUNT ( * ) ) )
----
49
-87

query I rowsort
SELECT + + 64 + + 22 + - + 75
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT - + 58 DIV - 1
----
58

skipif mysql # not compatible
query I rowsort label-7791
SELECT - + 58 / - 1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT + - MAX( DISTINCT + 88 ) + - - 14 * - 55 + - MAX( DISTINCT + 43 ) AS col1
----
-901

skipif mysql # not compatible
query I rowsort label-7792
SELECT + - MAX ( DISTINCT + 88 ) + - - 14 * - 55 + - MAX ( DISTINCT + 43 ) AS col1
----
-901

query I rowsort
SELECT ALL - 78 * - 66 + + 94 - - - 18 AS col2
----
5224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7794
SELECT - + 8 + - - 99 + - - CASE COUNT( * ) WHEN + - 71 THEN NULL ELSE - + 26 + + + 5 END + - 60 DIV + 35
----
69

skipif mysql # not compatible
query I rowsort label-7794
SELECT - + 8 + - - 99 + - - CASE COUNT ( * ) WHEN + - 71 THEN NULL ELSE - + 26 + + + 5 END + - 60 / + 35
----
69

query I rowsort
SELECT ALL - ( 78 ) AS col0
----
-78

query II rowsort
SELECT - - 31 AS col0, 14 + - 59 AS col2
----
31
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7797
SELECT DISTINCT - COALESCE ( 55, 62, + SUM( ALL + - CAST( + - 46 AS SIGNED ) ) + ( 41 ), + 24 + ( - 17 ) ) * + + MIN( - 46 ) AS col1
----
2530

skipif mysql # not compatible
query I rowsort label-7797
SELECT DISTINCT - COALESCE ( 55, 62, + SUM ( ALL + - CAST ( + - 46 AS INTEGER ) ) + ( 41 ), + 24 + ( - 17 ) ) * + + MIN ( - 46 ) AS col1
----
2530

onlyif mysql # aggregate syntax: 
query II rowsort label-7798
SELECT DISTINCT COUNT( * ), 57 + 20 * 45 AS col1
----
1
957

skipif mysql # not compatible
query II rowsort label-7798
SELECT DISTINCT COUNT ( * ), 57 + 20 * 45 AS col1
----
1
957

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7799
SELECT DISTINCT 74 AS col1, + 82 + + + ( + CAST( NULL AS SIGNED ) ) AS col2
----
74
NULL

skipif mysql # not compatible
query II rowsort label-7799
SELECT DISTINCT 74 AS col1, + 82 + + + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
74
NULL

query I rowsort
SELECT - 13 + ( + 13 )
----
0

query I rowsort
SELECT ALL - 41 * 24 * + 8 AS col2
----
-7872

query II rowsort
SELECT 66 * 24, 31 AS col0
----
1584
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7803
SELECT 37 + + 5 + 81 * - 62 - COUNT( * ) AS col0, - 81 AS col0
----
-4981
-81

skipif mysql # not compatible
query II rowsort label-7803
SELECT 37 + + 5 + 81 * - 62 - COUNT ( * ) AS col0, - 81 AS col0
----
-4981
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT NULLIF ( - + 88, 53 ) + - MAX( ALL 59 )
----
-147

skipif mysql # not compatible
query I rowsort label-7804
SELECT NULLIF ( - + 88, 53 ) + - MAX ( ALL 59 )
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7805
SELECT 56 / CAST( NULL AS SIGNED ) / + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT 56 / CAST ( NULL AS INTEGER ) / + - 89
----
NULL

query I rowsort
SELECT 91 * + 76 AS col0
----
6916

query II rowsort
SELECT 62 + 32 AS col1, + 79
----
94
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7808
SELECT DISTINCT 44 + + - CASE NULLIF ( + 56, - 5 * - 23 ) WHEN COALESCE ( + CASE - + CAST( + + 26 AS SIGNED ) WHEN + + 69 THEN NULL WHEN - COUNT( * ) - - 96 * + 79 * - SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) * 47 + 91 + + + 49 + + - 58 + - 33 + 44 / - 22 * 81 THEN NULL WHEN - 43 * + - 64 + - 45 * - 3 + + NULLIF ( + - 12, + + 50 ) THEN NULL ELSE COUNT( * ) END, + - 27, - + CAST( - + COUNT( * ) AS SIGNED ) * + + COALESCE ( 64, - 82, CAST( NULL AS SIGNED ), 65 ) * 19 ) THEN + 84 WHEN + 62 * 97 THEN NULL ELSE ( NULLIF ( 81, 97 * 61 ) ) END - + 57 * + 65
----
-3742

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT 44 + + - CASE NULLIF ( + 56, - 5 * - 23 ) WHEN COALESCE ( + CASE - + CAST ( + + 26 AS INTEGER ) WHEN + + 69 THEN NULL WHEN - COUNT ( * ) - - 96 * + 79 * - SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * 47 + 91 + + + 49 + + - 58 + - 33 + 44 / - 22 * 81 THEN NULL WHEN - 43 * + - 64 + - 45 * - 3 + + NULLIF ( + - 12, + + 50 ) THEN NULL ELSE COUNT ( * ) END, + - 27, - + CAST ( - + COUNT ( * ) AS INTEGER ) * + + COALESCE ( 64, - 82, CAST ( NULL AS INTEGER ), 65 ) * 19 ) THEN + 84 WHEN + 62 * 97 THEN NULL ELSE ( NULLIF ( 81, 97 * 61 ) ) END - + 57 * + 65
----
-3742

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT ALL + 97 + - + MAX( ALL + 18 ) * - 23
----
511

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL + 97 + - + MAX ( ALL + 18 ) * - 23
----
511

onlyif mysql # aggregate syntax: 
query II rowsort label-7810
SELECT ALL - COUNT( * ) + + - 44, 30 AS col1
----
-45
30

skipif mysql # not compatible
query II rowsort label-7810
SELECT ALL - COUNT ( * ) + + - 44, 30 AS col1
----
-45
30

query I rowsort
SELECT 81 + - 86 * + 25 AS col1
----
-2069

query I rowsort
SELECT ALL + 79 * - 92 AS col2
----
-7268

query I rowsort
SELECT DISTINCT - 24 * + - 40
----
960

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

query I rowsort
SELECT 34 * + 27 + + 60
----
978

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL + 34 + COALESCE ( + 49, - + 16 ) + + COUNT( * ) - 93
----
-9

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL + 34 + COALESCE ( + 49, - + 16 ) + + COUNT ( * ) - 93
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7817
SELECT DISTINCT - CAST( - 36 AS SIGNED ) col2, + MIN( 9 ) + + + CAST( - 75 AS SIGNED ) AS col0
----
36
-66

skipif mysql # not compatible
query II rowsort label-7817
SELECT DISTINCT - CAST ( - 36 AS INTEGER ) col2, + MIN ( 9 ) + + + CAST ( - 75 AS INTEGER ) AS col0
----
36
-66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT DISTINCT + 81 - + 87 + - - 24 + + COUNT( * ) + - + 6 * - COUNT( * ) col1
----
25

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT + 81 - + 87 + - - 24 + + COUNT ( * ) + - + 6 * - COUNT ( * ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT + - SUM( DISTINCT + 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-7820
SELECT + - SUM ( DISTINCT + 84 )
----
-84

query I rowsort
SELECT ALL + - 71 - + 33 + - - 68 + + + 1
----
-35

query I rowsort
SELECT DISTINCT - + 46
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL + 68 - - + NULLIF ( - 55, - - ( COUNT( * ) ) / + - ( 43 ) + + ( - - SUM( - 32 ) ) ) * - - 78 AS col0
----
-4222

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL + 68 - - + NULLIF ( - 55, - - ( COUNT ( * ) ) / + - ( 43 ) + + ( - - SUM ( - 32 ) ) ) * - - 78 AS col0
----
-4222

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

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

query I rowsort
SELECT DISTINCT 68 * 81
----
5508

query I rowsort
SELECT 53 * - + 16 + 43 * + 81 AS col0
----
2635

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

query II rowsort
SELECT DISTINCT - ( 39 ) AS col1, 18
----
-39
18

query I rowsort
SELECT ALL - - 53
----
53

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

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

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

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

query I rowsort
SELECT ALL 46 + + - 79 * + + 44
----
-3430

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT 37 * - - 28 * - COUNT( * ) * NULLIF ( + 20, 71 * 70 ) AS col2
----
-20720

skipif mysql # not compatible
query I rowsort label-7833
SELECT 37 * - - 28 * - COUNT ( * ) * NULLIF ( + 20, 71 * 70 ) AS col2
----
-20720

onlyif mysql # aggregate syntax: 
query II rowsort label-7834
SELECT ( + 60 ) + + - 2 AS col1, 65 * COUNT( * )
----
58
65

skipif mysql # not compatible
query II rowsort label-7834
SELECT ( + 60 ) + + - 2 AS col1, 65 * COUNT ( * )
----
58
65

query I rowsort
SELECT 46 * - NULLIF ( + 9, + CASE + 14 WHEN - 19 THEN + 49 * 97 ELSE 29 END * - ( + 72 ) * - 86 )
----
-414

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT DISTINCT 39 + COUNT( ALL - 3 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT 39 + COUNT ( ALL - 3 ) AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7838
SELECT DISTINCT 57 + - ( - 85 ) + + 32 * - 43 + + COUNT( * ) + + 35 DIV - + 68 * - COUNT( * ) AS col2, 61
----
-1233
61

skipif mysql # not compatible
query II rowsort label-7838
SELECT DISTINCT 57 + - ( - 85 ) + + 32 * - 43 + + COUNT ( * ) + + 35 / - + 68 * - COUNT ( * ) AS col2, 61
----
-1233
61

onlyif mysql # DIV for integer division: 
query II rowsort label-7839
SELECT 81, 86 - + COALESCE ( + + NULLIF ( - 14, - 87 ), 79 ) DIV - 5 AS col0
----
81
84

skipif mysql # not compatible
query II rowsort label-7839
SELECT 81, 86 - + COALESCE ( + + NULLIF ( - 14, - 87 ), 79 ) / - 5 AS col0
----
81
84

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7841
SELECT 72 * - ( - - 36 ), - COUNT( * ) col1
----
-2592
-1

skipif mysql # not compatible
query II rowsort label-7841
SELECT 72 * - ( - - 36 ), - COUNT ( * ) col1
----
-2592
-1

query II rowsort
SELECT 94 col1, 82 * 84
----
94
6888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7843
SELECT ALL 56 + + CAST( NULL AS SIGNED ) * + COUNT( * ) / 10 / 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL 56 + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / 10 / 89 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 91 + 53 AS col2
----
144

query I rowsort
SELECT 10 * - 83
----
-830

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT 16 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-7846
SELECT 16 / - 50
----
0

query I rowsort
SELECT ALL - 2 - - 17
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7848
SELECT ALL 87 AS col0, 59 + + 57 - + 18 * + COALESCE ( + 13, SUM( + + 93 ) ) * - 59
----
87
13922

skipif mysql # not compatible
query II rowsort label-7848
SELECT ALL 87 AS col0, 59 + + 57 - + 18 * + COALESCE ( + 13, SUM ( + + 93 ) ) * - 59
----
87
13922

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

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

query I rowsort
SELECT 97 - - 48 AS col0
----
145

query I rowsort
SELECT 0 * - + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT ALL - 75 * - ( + COALESCE ( - + 66, 64 ) ) - + - MAX( 33 )
----
-4917

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - 75 * - ( + COALESCE ( - + 66, 64 ) ) - + - MAX ( 33 )
----
-4917

query I rowsort
SELECT CASE - ( + 36 ) WHEN - 23 THEN 0 * - 10 WHEN + 34 THEN + 78 ELSE NULL END col0
----
NULL

query I rowsort
SELECT DISTINCT - - 6 * + 18
----
108

query I rowsort
SELECT ALL - + 35
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7856
SELECT + - COUNT( * ) DIV ( - 33 ) + - 72 * - + 16 * + CAST( NULL AS SIGNED ), 5 DIV + 21 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7856
SELECT + - COUNT ( * ) / ( - 33 ) + - 72 * - + 16 * + CAST ( NULL AS INTEGER ), 5 / + 21 AS col1
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7857
SELECT 43 DIV + - 5
----
-8

skipif mysql # not compatible
query I rowsort label-7857
SELECT 43 / + - 5
----
-8

query I rowsort
SELECT ALL - NULLIF ( 65, + 56 * + 59 )
----
-65

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

skipif mysql # not compatible
query I rowsort label-7859
SELECT - COUNT ( * ) + - + 14 AS col2
----
-15

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7861
SELECT ALL + NULLIF ( + - 49, + 71 * - 41 ) DIV 33 * - - 68 DIV - 81 - + - 71 - 67 DIV + 96 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL + NULLIF ( + - 49, + 71 * - 41 ) / 33 * - - 68 / - 81 - + - 71 - 67 / + 96 AS col2
----
71

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

skipif mysql # not compatible
query I rowsort label-7862
SELECT 22 / 30
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7863
SELECT DISTINCT + - 18 DIV 6 + + 66 AS col1, 1 + + COUNT( * ) AS col0
----
63
2

skipif mysql # not compatible
query II rowsort label-7863
SELECT DISTINCT + - 18 / 6 + + 66 AS col1, 1 + + COUNT ( * ) AS col0
----
63
2

query II rowsort
SELECT ALL - 71 col1, 69
----
-71
69

query I rowsort
SELECT - - 81 + - + 59 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL + CASE SUM( DISTINCT + 42 ) WHEN - 76 THEN NULL ELSE - + 10 END
----
-10

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL + CASE SUM ( DISTINCT + 42 ) WHEN - 76 THEN NULL ELSE - + 10 END
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-7867
SELECT DISTINCT + - NULLIF ( - - COUNT( 18 ), + + 90 ) AS col2, - 62 - + 59 + + 42
----
-1
-79

skipif mysql # not compatible
query II rowsort label-7867
SELECT DISTINCT + - NULLIF ( - - COUNT ( 18 ), + + 90 ) AS col2, - 62 - + 59 + + 42
----
-1
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL - 95 * + - 62 + - COUNT( * )
----
5889

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL - 95 * + - 62 + - COUNT ( * )
----
5889

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT - COUNT( + 98 ) * - 48 + - + ( + 55 ) * + 95 AS col1
----
-5177

skipif mysql # not compatible
query I rowsort label-7869
SELECT - COUNT ( + 98 ) * - 48 + - + ( + 55 ) * + 95 AS col1
----
-5177

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT ALL - 84 + - COUNT( * ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL - 84 + - COUNT ( * ) col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7871
SELECT ALL + + 76 + + COALESCE ( - ( 78 ), - 7 + - 97 + - 83 * + 2 - COUNT( * ) + + - 7 * - 41 DIV COUNT( * ) * + + 94 ), + 61 AS col2
----
-2
61

skipif mysql # not compatible
query II rowsort label-7871
SELECT ALL + + 76 + + COALESCE ( - ( 78 ), - 7 + - 97 + - 83 * + 2 - COUNT ( * ) + + - 7 * - 41 / COUNT ( * ) * + + 94 ), + 61 AS col2
----
-2
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7872
SELECT + 70 AS col2, COUNT( - + 84 ) DIV - CAST( + ( - + 95 ) AS SIGNED )
----
70
0

skipif mysql # not compatible
query II rowsort label-7872
SELECT + 70 AS col2, COUNT ( - + 84 ) / - CAST ( + ( - + 95 ) AS INTEGER )
----
70
0

query I rowsort
SELECT + + 24
----
24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7874
SELECT ALL - 34 * + - 52 * CAST( CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL - 34 * + - 52 * CAST ( CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7875
SELECT + CAST( + 56 AS SIGNED ) + - 30
----
26

skipif mysql # not compatible
query I rowsort label-7875
SELECT + CAST ( + 56 AS INTEGER ) + - 30
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT ALL 16 + 4 * + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL 16 + 4 * + COUNT ( * )
----
20

query II rowsort
SELECT DISTINCT COALESCE ( - 89, + + 34 + + 44 ), - 58 * + + 72 - - + 20 + - + 83 AS col0
----
-89
-4239

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT + SUM( DISTINCT 10 ) + 16 + - 10 * - 27 AS col2
----
296

skipif mysql # not compatible
query I rowsort label-7878
SELECT + SUM ( DISTINCT 10 ) + 16 + - 10 * - 27 AS col2
----
296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT DISTINCT + 33 + + 49 + - 37 * 78 + NULLIF ( - 71, 9 / - - CASE - - 93 WHEN - CAST( NULL AS SIGNED ) THEN + - 51 END * + 13 ) * - 81
----
2947

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT + 33 + + 49 + - 37 * 78 + NULLIF ( - 71, 9 / - - CASE - - 93 WHEN - CAST ( NULL AS INTEGER ) THEN + - 51 END * + 13 ) * - 81
----
2947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7880
SELECT ALL NULLIF ( + - MIN( + CAST( 38 AS SIGNED ) ), + + CASE + 72 WHEN - COUNT( * ) THEN 44 END )
----
-38

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL NULLIF ( + - MIN ( + CAST ( 38 AS INTEGER ) ), + + CASE + 72 WHEN - COUNT ( * ) THEN 44 END )
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-7881
SELECT ALL COUNT( * ) * + + 3 AS col2, - MIN( - 13 ) AS col0
----
3
13

skipif mysql # not compatible
query II rowsort label-7881
SELECT ALL COUNT ( * ) * + + 3 AS col2, - MIN ( - 13 ) AS col0
----
3
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT ALL 56 DIV 92 col1
----
0

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL 56 / 92 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT - CASE + - 19 WHEN + 87 + + 14 + + CAST( NULL AS SIGNED ) THEN CAST( NULL AS SIGNED ) WHEN 13 THEN NULL END + - - CAST( NULL AS SIGNED ) * + ( + 26 ) + NULLIF ( + ( ( + - SUM( - 43 ) ) ), 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT - CASE + - 19 WHEN + 87 + + 14 + + CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) WHEN 13 THEN NULL END + - - CAST ( NULL AS INTEGER ) * + ( + 26 ) + NULLIF ( + ( ( + - SUM ( - 43 ) ) ), 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT + 38 + - - MIN( 5 )
----
43

skipif mysql # not compatible
query I rowsort label-7884
SELECT + 38 + - - MIN ( 5 )
----
43

query I rowsort
SELECT + 3 * - 1 * 60
----
-180

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

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

query I rowsort
SELECT - ( 93 )
----
-93

query I rowsort
SELECT + 79 + - 53
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7889
SELECT DISTINCT 14 * 69 DIV + - CAST( - MIN( + - 1 ) AS SIGNED )
----
-966

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT 14 * 69 / + - CAST ( - MIN ( + - 1 ) AS INTEGER )
----
-966

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

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL SUM ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 84 + + 8 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT ALL SUM( - 16 ) - + 44 + + COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL SUM ( - 16 ) - + 44 + + COUNT ( * ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT + 60 + - COUNT( - 6 ) * - 57 * - 98 AS col0
----
-5526

skipif mysql # not compatible
query I rowsort label-7893
SELECT + 60 + - COUNT ( - 6 ) * - 57 * - 98 AS col0
----
-5526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT DISTINCT CAST( - 21 AS SIGNED ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-7894
SELECT DISTINCT CAST ( - 21 AS INTEGER ) col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT - 63 * - + ( + - 96 ) * + MAX( 70 ) + - + 66 * + MAX( ALL - + 16 ) AS col2
----
-422304

skipif mysql # not compatible
query I rowsort label-7895
SELECT - 63 * - + ( + - 96 ) * + MAX ( 70 ) + - + 66 * + MAX ( ALL - + 16 ) AS col2
----
-422304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7896
SELECT - ( 85 ) DIV - 47 + + NULLIF ( + CASE - + COUNT( * ) WHEN - COUNT( ALL - 44 ) THEN 86 END, - + 59 ) + 46 + - 39 + + 14 + + 53 * - 49 AS col2
----
-2489

skipif mysql # not compatible
query I rowsort label-7896
SELECT - ( 85 ) / - 47 + + NULLIF ( + CASE - + COUNT ( * ) WHEN - COUNT ( ALL - 44 ) THEN 86 END, - + 59 ) + 46 + - 39 + + 14 + + 53 * - 49 AS col2
----
-2489

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + - + 29
----
-28

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - + 29
----
-28

query I rowsort
SELECT + 29 * ( + + 21 )
----
609

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT ALL 28 * + COUNT( ALL - 72 ) + 55 * 32
----
1788

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL 28 * + COUNT ( ALL - 72 ) + 55 * 32
----
1788

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

query I rowsort
SELECT ALL - 76 * + + 67 + - - 48 AS col1
----
-5044

query I rowsort
SELECT + 32 * - + 75 AS col2
----
-2400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7903
SELECT - COALESCE ( - NULLIF ( + ( - COUNT( * ) ), 68 + + - 0 * - 33 ), + - 46 * MIN( ALL - 60 ) - + 59 + + 74 + + 40 DIV 53, + 36 * - 33 ) * + 11
----
-11

skipif mysql # not compatible
query I rowsort label-7903
SELECT - COALESCE ( - NULLIF ( + ( - COUNT ( * ) ), 68 + + - 0 * - 33 ), + - 46 * MIN ( ALL - 60 ) - + 59 + + 74 + + 40 / 53, + 36 * - 33 ) * + 11
----
-11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT + NULLIF ( + - COUNT( * ), + 83 * - 89 + - - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7905
SELECT + NULLIF ( + - COUNT ( * ), + 83 * - 89 + - - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7906
SELECT DISTINCT + 92 DIV + 42 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT + 92 / + 42 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7907
SELECT ALL 78 * + 44 + + 77 AS col1, MAX( + - 97 )
----
3509
-97

skipif mysql # not compatible
query II rowsort label-7907
SELECT ALL 78 * + 44 + + 77 AS col1, MAX ( + - 97 )
----
3509
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + - + MIN( + 87 )
----
-88

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + - + MIN ( + 87 )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT DISTINCT COUNT( * ) * + - CASE - COUNT( * ) WHEN CASE + 84 WHEN + COUNT( * ) THEN + 84 ELSE NULL END THEN - + 1 + + COUNT( * ) * - + 35 WHEN MIN( DISTINCT + 77 ) THEN - 5 * COUNT( * ) END * + + 31 AS col2, 53
----
NULL
53

skipif mysql # not compatible
query II rowsort label-7910
SELECT DISTINCT COUNT ( * ) * + - CASE - COUNT ( * ) WHEN CASE + 84 WHEN + COUNT ( * ) THEN + 84 ELSE NULL END THEN - + 1 + + COUNT ( * ) * - + 35 WHEN MIN ( DISTINCT + 77 ) THEN - 5 * COUNT ( * ) END * + + 31 AS col2, 53
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT ALL 15 * - 50 - + + COUNT( * ) AS col0
----
-751

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL 15 * - 50 - + + COUNT ( * ) AS col0
----
-751

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT - COUNT( * ) * - 50 * - SUM( + 24 ) col0
----
-1200

skipif mysql # not compatible
query I rowsort label-7912
SELECT - COUNT ( * ) * - 50 * - SUM ( + 24 ) col0
----
-1200

onlyif mysql # aggregate syntax: 
query II rowsort label-7913
SELECT DISTINCT + MAX( ALL - + 84 ) * - 92 - 14 * 36, 55 + - 11 AS col1
----
7224
44

skipif mysql # not compatible
query II rowsort label-7913
SELECT DISTINCT + MAX ( ALL - + 84 ) * - 92 - 14 * 36, 55 + - 11 AS col1
----
7224
44

query I rowsort
SELECT + 79 * 79 * + - 88 col0
----
-549208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT - ( - NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) * 54 * + 7 ) ) * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT - ( - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) * 54 * + 7 ) ) * + 11
----
NULL

query I rowsort
SELECT ALL 61 - + ( 49 ) AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7917
SELECT ALL CAST( NULL AS SIGNED ), 11 * + 39 AS col1
----
NULL
429

skipif mysql # not compatible
query II rowsort label-7917
SELECT ALL CAST ( NULL AS INTEGER ), 11 * + 39 AS col1
----
NULL
429

query I rowsort
SELECT + 43 + - 62
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7919
SELECT ALL ( - + ( + - 90 ) ) DIV - + 51 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL ( - + ( + - 90 ) ) / - + 51 AS col0
----
-1

query I rowsort
SELECT + 61 * 77
----
4697

query II rowsort
SELECT - COALESCE ( + 57, 78 ) - + ( 82 ) AS col2, + 69 AS col2
----
-139
69

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

skipif mysql # not compatible
query II rowsort label-7922
SELECT - 77 / + COUNT ( * ) + + + 16, + 27 AS col2
----
-61
27

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

skipif mysql # not compatible
query I rowsort label-7923
SELECT - + CAST ( - - 76 AS INTEGER ) * + - ( + 30 )
----
2280

query I rowsort
SELECT DISTINCT 35 + 83
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7925
SELECT + 23 - CASE 22 WHEN + 63 - + 52 * + COALESCE ( - MAX( DISTINCT - 10 ), + COUNT( * ) ) + + CAST( - COUNT( * ) AS SIGNED ) THEN + COUNT( * ) / 90 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT + 23 - CASE 22 WHEN + 63 - + 52 * + COALESCE ( - MAX ( DISTINCT - 10 ), + COUNT ( * ) ) + + CAST ( - COUNT ( * ) AS INTEGER ) THEN + COUNT ( * ) / 90 ELSE NULL END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT ALL - ( 95 ) + + COUNT( * ) * + - 3 + - 53
----
-151

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL - ( 95 ) + + COUNT ( * ) * + - 3 + - 53
----
-151

query I rowsort
SELECT 52 - + 66 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7929
SELECT ALL CASE 67 WHEN + - SUM( 78 ) THEN + 12 / + 91 END + CAST( - - ( CAST( 91 AS SIGNED ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL CASE 67 WHEN + - SUM ( 78 ) THEN + 12 / + 91 END + CAST ( - - ( CAST ( 91 AS INTEGER ) ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT - 63 * - + 86 * + ( 5 ) * 55 + + - ( + COUNT( * ) ) + - 29 col2
----
1489920

skipif mysql # not compatible
query I rowsort label-7930
SELECT - 63 * - + 86 * + ( 5 ) * 55 + + - ( + COUNT ( * ) ) + - 29 col2
----
1489920

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL ( + - MIN( DISTINCT 82 ) ) + COALESCE ( + 43, - 71 )
----
-39

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL ( + - MIN ( DISTINCT 82 ) ) + COALESCE ( + 43, - 71 )
----
-39

query I rowsort
SELECT + 16 + - - 7 + - 65
----
-42

query I rowsort
SELECT + 13 * - 87 + + - 78
----
-1209

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7935
SELECT MAX( + 96 ) DIV - 47 + + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7935
SELECT MAX ( + 96 ) / - 47 + + + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL - + COUNT( * ) + - - 18 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL - + COUNT ( * ) + - - 18 AS col1
----
17

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7938
SELECT DISTINCT 45 DIV - 16 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT 45 / - 16 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7939
SELECT 2 col1, 75 + + 13 - + - 96 * + 26 * - - 26 - + - ( CASE WHEN + 50 >= 43 THEN - - 9 ELSE NULL END ) * COUNT( DISTINCT - 13 ) * - 3
----
2
64957

skipif mysql # not compatible
query II rowsort label-7939
SELECT 2 col1, 75 + + 13 - + - 96 * + 26 * - - 26 - + - ( CASE WHEN + 50 >= 43 THEN - - 9 ELSE NULL END ) * COUNT ( DISTINCT - 13 ) * - 3
----
2
64957

query I rowsort
SELECT DISTINCT 80 * 37
----
2960

query I rowsort
SELECT ALL 39 - - - 20 + + ( 18 ) col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7942
SELECT 65 DIV 35 col1
----
1

skipif mysql # not compatible
query I rowsort label-7942
SELECT 65 / 35 col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7943
SELECT ALL - 36, 44 + + NULLIF ( - 49, - - COALESCE ( + - 46, + 16 + + 87 - + COUNT( * ) * - - 94 ) ) * - 80 AS col1
----
-36
3964

skipif mysql # not compatible
query II rowsort label-7943
SELECT ALL - 36, 44 + + NULLIF ( - 49, - - COALESCE ( + - 46, + 16 + + 87 - + COUNT ( * ) * - - 94 ) ) * - 80 AS col1
----
-36
3964

query II rowsort
SELECT 91 col2, + 55
----
91
55

query II rowsort
SELECT DISTINCT - 49 AS col0, + 79 + - 65
----
-49
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7946
SELECT DISTINCT - CASE - CAST( NULL AS SIGNED ) WHEN ( - - 33 ) THEN + NULLIF ( - + 0, + COUNT( * ) ) * - 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT - CASE - CAST ( NULL AS INTEGER ) WHEN ( - - 33 ) THEN + NULLIF ( - + 0, + COUNT ( * ) ) * - 51 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT 26 * + - CASE - + COUNT( ALL + + 77 ) WHEN - 56 * 24 THEN - - 88 ELSE NULL END * COUNT( * ) / - 83 * - 83 * - + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7947
SELECT 26 * + - CASE - + COUNT ( ALL + + 77 ) WHEN - 56 * 24 THEN - - 88 ELSE NULL END * COUNT ( * ) / - 83 * - 83 * - + 3
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT ALL - 43 DIV 39 col1
----
-1

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL - 43 / 39 col1
----
-1

query I rowsort
SELECT DISTINCT 14 - - 86 * + 97 * + COALESCE ( + - 95, 39, 86 * - + 0 ) AS col2
----
-792476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7950
SELECT DISTINCT - 62 DIV + - CASE CAST( + + 67 AS SIGNED ) WHEN - - COUNT( * ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE + SUM( - 65 ) END * - 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT - 62 / + - CASE CAST ( + + 67 AS INTEGER ) WHEN - - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + SUM ( - 65 ) END * - 44 AS col2
----
0

query II rowsort
SELECT ALL 30 AS col1, + 42 AS col1
----
30
42

query I rowsort
SELECT DISTINCT + 62 * + 55
----
3410

query I rowsort
SELECT ALL + + 49 * + - 74 - + 39
----
-3665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT CAST( - 39 AS SIGNED ) + 96 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-7954
SELECT CAST ( - 39 AS INTEGER ) + 96 AS col1
----
57

query I rowsort
SELECT ALL + 23 + + + 56 AS col2
----
79

query II rowsort
SELECT - + 43 AS col0, - 15
----
-43
-15

query I rowsort
SELECT ALL + - 36 + + 43
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7958
SELECT 74 + + MAX( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT 74 + + MAX ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 76, + 24 col1
----
76
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7960
SELECT DISTINCT CASE 67 WHEN + 20 * - - CAST( - - SUM( ALL - CAST( 98 AS SIGNED ) ) AS SIGNED ) + + 17 THEN NULL WHEN 36 / - + 46 THEN + - 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT CASE 67 WHEN + 20 * - - CAST ( - - SUM ( ALL - CAST ( 98 AS INTEGER ) ) AS INTEGER ) + + 17 THEN NULL WHEN 36 / - + 46 THEN + - 89 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7961
SELECT DISTINCT - 57 DIV NULLIF ( - 13, 41 )
----
4

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT - 57 / NULLIF ( - 13, 41 )
----
4

query II rowsort
SELECT ALL 54, - 19 AS col1
----
54
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT MAX( DISTINCT 65 ) + 40
----
105

skipif mysql # not compatible
query I rowsort label-7963
SELECT MAX ( DISTINCT 65 ) + 40
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7964
SELECT ALL + - 45 + + 78 - + CAST( MAX( 61 ) AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL + - 45 + + 78 - + CAST ( MAX ( 61 ) AS INTEGER )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT + 47 + 20 + + MAX( ALL 52 ) AS col2
----
119

skipif mysql # not compatible
query I rowsort label-7965
SELECT + 47 + 20 + + MAX ( ALL 52 ) AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT + 87 * - SUM( ALL - + 84 ) AS col0
----
7308

skipif mysql # not compatible
query I rowsort label-7966
SELECT + 87 * - SUM ( ALL - + 84 ) AS col0
----
7308

onlyif mysql # DIV for integer division: 
query I rowsort label-7967
SELECT DISTINCT - + 32 DIV - 27
----
1

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT - + 32 / - 27
----
1

query II rowsort
SELECT ALL - + 31, + 91 + - 10 AS col2
----
-31
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT + + 46 * - 35 DIV - 35 + - COALESCE ( 57, 68 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-7969
SELECT + + 46 * - 35 / - 35 + - COALESCE ( 57, 68 ) AS col0
----
-11

query II rowsort
SELECT ALL - 64 * + 9, 7 AS col2
----
-576
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT + COALESCE ( 47, - 83 DIV - 34 ) col0
----
47

skipif mysql # not compatible
query I rowsort label-7971
SELECT + COALESCE ( 47, - 83 / - 34 ) col0
----
47

query I rowsort
SELECT 23 * 73 AS col2
----
1679

query II rowsort
SELECT + 83 AS col1, + 75
----
83
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL - SUM( ALL + 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL - SUM ( ALL + 8 ) AS col0
----
-8

query I rowsort
SELECT DISTINCT + - 27 - 14 * 45 AS col1
----
-657

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

query I rowsort
SELECT 75 * - 73 + + 38 + + - 67 + + - 48 AS col2
----
-5552

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7979
SELECT CAST( + - SUM( DISTINCT - + 13 ) AS SIGNED ) * + 27 - - + CASE + 39 WHEN - + ( 65 ) THEN NULL WHEN - - 30 / + 75 THEN - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT CAST ( + - SUM ( DISTINCT - + 13 ) AS INTEGER ) * + 27 - - + CASE + 39 WHEN - + ( 65 ) THEN NULL WHEN - - 30 / + 75 THEN - 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT 81 * - COUNT( * ) * 62 * + 70 AS col2
----
-351540

skipif mysql # not compatible
query I rowsort label-7980
SELECT 81 * - COUNT ( * ) * 62 * + 70 AS col2
----
-351540

query I rowsort
SELECT 16 + - 64
----
-48

query I rowsort
SELECT 74 col2
----
74

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7984
SELECT 0 DIV - + 15 * - - 88 * + CASE + 76 WHEN 29 THEN NULL ELSE - 57 * + CAST( COALESCE ( AVG ( DISTINCT - 30 ), - COUNT( * ) * - COUNT( * ) ) AS SIGNED ) END * - - 50 * + ( 13 ) + + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7984
SELECT 0 / - + 15 * - - 88 * + CASE + 76 WHEN 29 THEN NULL ELSE - 57 * + CAST ( COALESCE ( AVG ( DISTINCT - 30 ), - COUNT ( * ) * - COUNT ( * ) ) AS INTEGER ) END * - - 50 * + ( 13 ) + + - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT 6 + - + 79 - + 26
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7986
SELECT DISTINCT 91 DIV + + 25
----
3

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT 91 / + + 25
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ALL - CASE + - COALESCE ( 56, 60 / + - COUNT( * ) + ( + - 30 ) ) WHEN + 25 * + ( + 53 ) + - - ( 7 ) - + 46 * - - 41 + - 24 + + CASE ( - 14 ) WHEN - - 9 + 5 * + 43 / + + 4 THEN 52 * + 90 * + 88 + - ( 17 ) + - - 43 + + 98 / + - 34 * - 27 WHEN + COALESCE ( - + 80, + 68 - + 73 - - 39, COUNT( * ) ) THEN + ( - 63 ) WHEN - + SUM( DISTINCT + 81 ) THEN COALESCE ( + 92, 3 + + 17 * AVG ( ALL 78 + 33 ) ) END + 54 THEN - 66 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL - CASE + - COALESCE ( 56, 60 / + - COUNT ( * ) + ( + - 30 ) ) WHEN + 25 * + ( + 53 ) + - - ( 7 ) - + 46 * - - 41 + - 24 + + CASE ( - 14 ) WHEN - - 9 + 5 * + 43 / + + 4 THEN 52 * + 90 * + 88 + - ( 17 ) + - - 43 + + 98 / + - 34 * - 27 WHEN + COALESCE ( - + 80, + 68 - + 73 - - 39, COUNT ( * ) ) THEN + ( - 63 ) WHEN - + SUM ( DISTINCT + 81 ) THEN COALESCE ( + 92, 3 + + 17 * AVG ( ALL 78 + 33 ) ) END + 54 THEN - 66 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7989
SELECT 25 DIV 1, - 22 - - + COUNT( * ) + + - 20 * 57 AS col1
----
25
-1161

skipif mysql # not compatible
query II rowsort label-7989
SELECT 25 / 1, - 22 - - + COUNT ( * ) + + - 20 * 57 AS col1
----
25
-1161

query I rowsort
SELECT 96 * 87
----
8352

query I rowsort
SELECT ( - 44 ) + 17 - 25
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7992
SELECT DISTINCT 78 + + - COUNT( * ) - + 50 DIV + 17 + 46
----
121

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT 78 + + - COUNT ( * ) - + 50 / + 17 + 46
----
121

query I rowsort
SELECT 94 * - 6 + - 74 col0
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL - 13 + - 12 + + - COUNT( * ) + - COALESCE ( + 34, - + COUNT( ALL 38 ), + COUNT( * ), + + 21 * - + ( 61 ) * COUNT( * ) - + + 10 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL - 13 + - 12 + + - COUNT ( * ) + - COALESCE ( + 34, - + COUNT ( ALL 38 ), + COUNT ( * ), + + 21 * - + ( 61 ) * COUNT ( * ) - + + 10 ) AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7995
SELECT ALL CASE COUNT( * ) WHEN - 89 * ( - - 72 ) + + + COALESCE ( 88, 2 - + 69, 35 ) THEN NULL WHEN CAST( - 62 AS DECIMAL ) * + 30 THEN NULL ELSE + + 45 END + - + 44, + 74 AS col0
----
1
74

skipif mysql # not compatible
query II rowsort label-7995
SELECT ALL CASE COUNT ( * ) WHEN - 89 * ( - - 72 ) + + + COALESCE ( 88, 2 - + 69, 35 ) THEN NULL WHEN CAST ( - 62 AS REAL ) * + 30 THEN NULL ELSE + + 45 END + - + 44, + 74 AS col0
----
1
74

query I rowsort
SELECT - - 43 col2
----
43

query I rowsort
SELECT ALL + - 9 + + 82 * + + 28 AS col0
----
2287

onlyif mysql # DIV for integer division: 
query II rowsort label-7998
SELECT - + 97 DIV + 42 + - + ( - 79 ) - - 67 - ( - 89 ) AS col2, 51 + + 56 AS col0
----
233
107

skipif mysql # not compatible
query II rowsort label-7998
SELECT - + 97 / + 42 + - + ( - 79 ) - - 67 - ( - 89 ) AS col2, 51 + + 56 AS col0
----
233
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL + 92 + - SUM( ALL 96 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL + 92 + - SUM ( ALL 96 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT ALL - NULLIF ( - COUNT( * ), + COALESCE ( + 77, - 80 ) - + 83 + 71 ) * + COUNT( + + 30 ) * + ( - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL - NULLIF ( - COUNT ( * ), + COALESCE ( + 77, - 80 ) - + 83 + 71 ) * + COUNT ( + + 30 ) * + ( - 33 )
----
-33

query I rowsort
SELECT - - 23 * 40 + + - 19
----
901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8002
SELECT + ( + + COUNT( * ) ) - + 2 + + 89 / + CAST( - CASE CASE - + 23 WHEN SUM( + + ( + 59 ) ) * - 59 * - 29 + + 14 + - + 11 + + + 33 THEN NULL WHEN - 68 * + 53 THEN + 40 WHEN + 74 THEN + 55 END WHEN 99 * + 73 THEN + - 54 + 84 WHEN - 97 * 45 * 16 * 67 * + + COALESCE ( - 0, - AVG ( DISTINCT 83 ), + 37 ) THEN - 65 ELSE - CASE - 24 WHEN AVG ( COALESCE ( + + 85, + NULLIF ( - - 36, 13 ), - 75 ) ) * 80 THEN NULL WHEN ( + 46 ) * - 61 + - 92 THEN NULL WHEN - 12 THEN ( 7 ) END * 88 + 7 END AS SIGNED ) / MAX( ALL 41 ) + 24 * + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT + ( + + COUNT ( * ) ) - + 2 + + 89 / + CAST ( - CASE CASE - + 23 WHEN SUM ( + + ( + 59 ) ) * - 59 * - 29 + + 14 + - + 11 + + + 33 THEN NULL WHEN - 68 * + 53 THEN + 40 WHEN + 74 THEN + 55 END WHEN 99 * + 73 THEN + - 54 + 84 WHEN - 97 * 45 * 16 * 67 * + + COALESCE ( - 0, - AVG ( DISTINCT 83 ), + 37 ) THEN - 65 ELSE - CASE - 24 WHEN AVG ( COALESCE ( + + 85, + NULLIF ( - - 36, 13 ), - 75 ) ) * 80 THEN NULL WHEN ( + 46 ) * - 61 + - 92 THEN NULL WHEN - 12 THEN ( 7 ) END * 88 + 7 END AS INTEGER ) / MAX ( ALL 41 ) + 24 * + 76 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8003
SELECT ALL - 68 * - COUNT( * ) AS col2, 84 * + 65
----
68
5460

skipif mysql # not compatible
query II rowsort label-8003
SELECT ALL - 68 * - COUNT ( * ) AS col2, 84 * + 65
----
68
5460

query I rowsort
SELECT - - 60 AS col1
----
60

query I rowsort
SELECT ALL + 76 - + 95
----
-19

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

query I rowsort
SELECT ALL - + 38 * - 24 + - - 0 - - 34
----
946

query I rowsort
SELECT ALL + - 95
----
-95

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8010
SELECT ALL 25 * - 35 + - + SUM( - 31 ) - + COUNT( * ) - - + 16 + - ( CAST( 63 AS SIGNED ) ) AS col2
----
-892

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL 25 * - 35 + - + SUM ( - 31 ) - + COUNT ( * ) - - + 16 + - ( CAST ( 63 AS INTEGER ) ) AS col2
----
-892

query I rowsort
SELECT ALL + + ( - - 2 ) AS col1
----
2

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

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

query I rowsort
SELECT DISTINCT + - 26
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8014
SELECT - ( - COUNT( * ) ) + + 14 DIV COUNT( * ) col0
----
15

skipif mysql # not compatible
query I rowsort label-8014
SELECT - ( - COUNT ( * ) ) + + 14 / COUNT ( * ) col0
----
15

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8016
SELECT + 4 - 92 + - + 32 DIV - + COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-8016
SELECT + 4 - 92 + - + 32 / - + COUNT ( * ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ( 30 ) * - 98 * - COUNT( * ) * + 96 * - - 8 + COUNT( * ) * + ( + - MAX( DISTINCT - - 77 ) ) + - 27 * 91 col0
----
2255386

skipif mysql # not compatible
query I rowsort label-8017
SELECT ( 30 ) * - 98 * - COUNT ( * ) * + 96 * - - 8 + COUNT ( * ) * + ( + - MAX ( DISTINCT - - 77 ) ) + - 27 * 91 col0
----
2255386

onlyif mysql # aggregate syntax: 
query II rowsort label-8018
SELECT + 80 - + - MIN( DISTINCT + + 16 ) col1, 56 - 80 * - ( + + ( - COUNT( * ) ) )
----
96
-24

skipif mysql # not compatible
query II rowsort label-8018
SELECT + 80 - + - MIN ( DISTINCT + + 16 ) col1, 56 - 80 * - ( + + ( - COUNT ( * ) ) )
----
96
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT - 92 * + + 88 * NULLIF ( - 3, - COUNT( * ) )
----
24288

skipif mysql # not compatible
query I rowsort label-8019
SELECT - 92 * + + 88 * NULLIF ( - 3, - COUNT ( * ) )
----
24288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8020
SELECT ALL + 74, + CAST( NULL AS SIGNED ) + + 94 + + MAX( + 91 ) + - 70 / 87 * + - 64 * 67 AS col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-8020
SELECT ALL + 74, + CAST ( NULL AS INTEGER ) + + 94 + + MAX ( + 91 ) + - 70 / 87 * + - 64 * 67 AS col1
----
74
NULL

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

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

query I rowsort
SELECT ALL - 89 * + + 71 AS col1
----
-6319

query I rowsort
SELECT + 62 * 45 col0
----
2790

query I rowsort
SELECT DISTINCT 85 * + 41 AS col2
----
3485

query I rowsort
SELECT ALL - 81 * + 56 + 84
----
-4452

query I rowsort
SELECT + 26 + 91 + + 90 - - 48 * + + 94
----
4719

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT COUNT( + - 6 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8027
SELECT COUNT ( + - 6 ) col2
----
1

query I rowsort
SELECT ALL - ( + 42 ) * + 10 * 69 + + 44 * - + 68 + - 49
----
-32021

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

skipif mysql # not compatible
query I rowsort label-8029
SELECT - - ( COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT - 74 + - 55
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT ALL + 63 * - + 61 * COUNT( * )
----
-3843

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL + 63 * - + 61 * COUNT ( * )
----
-3843

query I rowsort
SELECT + 2 + 83 * - ( - ( + 82 ) ) col2
----
6808

query I rowsort
SELECT ALL + + 57 + + + CASE 8 WHEN - 21 THEN NULL ELSE - + 36 END - + 67
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8034
SELECT - 16, + 56 * + CAST( NULL AS SIGNED ) * 68 AS col0
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-8034
SELECT - 16, + 56 * + CAST ( NULL AS INTEGER ) * 68 AS col0
----
-16
NULL

query II rowsort
SELECT ALL 39 col2, 73 AS col0
----
39
73

query I rowsort
SELECT + 55 + + - 52 * 25
----
-1245

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT - CAST( NULL AS SIGNED ) * CAST( - - ( - - 56 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT - CAST ( NULL AS INTEGER ) * CAST ( - - ( - - 56 ) AS INTEGER )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8040
SELECT + 69 + + 75 + + - ( - 36 ) DIV - + 77
----
144

skipif mysql # not compatible
query I rowsort label-8040
SELECT + 69 + + 75 + + - ( - 36 ) / - + 77
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8041
SELECT ALL - 80 - CAST( NULL AS SIGNED ) + + 35 * 73 * + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL - 80 - CAST ( NULL AS INTEGER ) + + 35 * 73 * + 22 AS col0
----
NULL

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

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

query II rowsort
SELECT ALL + 19 AS col0, 1 * 10 * 61 + + 20 - + COALESCE ( 82, + + 59 ) + - 22
----
19
526

query II rowsort
SELECT DISTINCT 28, 23 AS col0
----
28
23

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

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

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

query I rowsort
SELECT - + 50 + - 99 col2
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-8048
SELECT ALL - 86 DIV 58 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL - 86 / 58 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8050
SELECT - + COUNT( * ), MAX( ALL 69 ) - - + 61 AS col0
----
-1
130

skipif mysql # not compatible
query II rowsort label-8050
SELECT - + COUNT ( * ), MAX ( ALL 69 ) - - + 61 AS col0
----
-1
130

onlyif mysql # aggregate syntax: 
query II rowsort label-8051
SELECT - + 90 AS col2, COUNT( * ) + + ( 31 ) col0
----
-90
32

skipif mysql # not compatible
query II rowsort label-8051
SELECT - + 90 AS col2, COUNT ( * ) + + ( 31 ) col0
----
-90
32

query I rowsort
SELECT DISTINCT - 75 * + + 90 * + 40 AS col2
----
-270000

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT - MAX( - + 39 ) * + COUNT( * ) * + + 41 AS col1
----
1599

skipif mysql # not compatible
query I rowsort label-8054
SELECT - MAX ( - + 39 ) * + COUNT ( * ) * + + 41 AS col1
----
1599

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8055
SELECT 93 DIV - 40 + 16 - - 72 * - 73 * COUNT( + - ( + - 32 ) )
----
-5242

skipif mysql # not compatible
query I rowsort label-8055
SELECT 93 / - 40 + 16 - - 72 * - 73 * COUNT ( + - ( + - 32 ) )
----
-5242

query I rowsort
SELECT DISTINCT + 75 * + 21 col0
----
1575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8057
SELECT ALL - 31 DIV MIN( DISTINCT + - 83 ) + - 89 DIV - - COUNT( * ) + - 23 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL - 31 / MIN ( DISTINCT + - 83 ) + - 89 / - - COUNT ( * ) + - 23 AS col0
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT - 35 * - + 72 - 50 + + 89 - + - 2 + 83 + 28 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT - 35 * - + 72 - 50 + + 89 - + - 2 + 83 + 28 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8060
SELECT 31 DIV COUNT( + - 66 ) - - 88 + MAX( ALL + + 33 ) * NULLIF ( - + COUNT( * ), 9 * + + COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-8060
SELECT 31 / COUNT ( + - 66 ) - - 88 + MAX ( ALL + + 33 ) * NULLIF ( - + COUNT ( * ), 9 * + + COUNT ( * ) )
----
86

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8062
SELECT + 8 + - COUNT( * ) DIV - + 82 - + - 50 * - 50 AS col2, - COUNT( * ) - - 95
----
-2492
94

skipif mysql # not compatible
query II rowsort label-8062
SELECT + 8 + - COUNT ( * ) / - + 82 - + - 50 * - 50 AS col2, - COUNT ( * ) - - 95
----
-2492
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8063
SELECT ALL CAST( 91 AS SIGNED ) + + CAST( + - 97 AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL CAST ( 91 AS INTEGER ) + + CAST ( + - 97 AS INTEGER ) AS col1
----
-6

query I rowsort
SELECT DISTINCT + 13 + ( 72 )
----
85

query I rowsort
SELECT 41 * + - 6
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT ALL + MIN( ALL + 40 ) * SUM( + 1 )
----
40

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL + MIN ( ALL + 40 ) * SUM ( + 1 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT - 34 * - COUNT( * ) + 18 + + - ( - CASE 85 WHEN 64 THEN - 42 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT - 34 * - COUNT ( * ) + 18 + + - ( - CASE 85 WHEN 64 THEN - 42 END )
----
NULL

query II rowsort
SELECT DISTINCT + 70 - - - 47 - + 67 * - 26 * 20 AS col0, - 38 + - 16 + - 3 AS col1
----
34863
-57

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

query I rowsort
SELECT 21 + - 44 col2
----
-23

query I rowsort
SELECT DISTINCT - 23 col1
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8072
SELECT DISTINCT + COUNT( * ) - + + 11, - ( - - 60 ) * - 38 + + 1 AS col1
----
-10
2281

skipif mysql # not compatible
query II rowsort label-8072
SELECT DISTINCT + COUNT ( * ) - + + 11, - ( - - 60 ) * - 38 + + 1 AS col1
----
-10
2281

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

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

query I rowsort
SELECT 41 + - 7 - 22 + + 85
----
97

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

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

query I rowsort
SELECT 90 * + 84 col1
----
7560

onlyif mysql # aggregate syntax: 
query II rowsort label-8078
SELECT DISTINCT + 68 * - 18, - NULLIF ( COUNT( * ), + - 67 + 61 ) * - 85 AS col2
----
-1224
85

skipif mysql # not compatible
query II rowsort label-8078
SELECT DISTINCT + 68 * - 18, - NULLIF ( COUNT ( * ), + - 67 + 61 ) * - 85 AS col2
----
-1224
85

query I rowsort
SELECT ALL COALESCE ( + 83, - 64, + 15 ) AS col0
----
83

query I rowsort
SELECT - 30 * + 13 * 20 * - 66
----
514800

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

query I rowsort
SELECT + 83 + + 66 col1
----
149

query I rowsort
SELECT 20 * + + 83
----
1660

query I rowsort
SELECT - 94 col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-8085
SELECT MIN( + 20 ) * 68, ( 76 ) AS col2
----
1360
76

skipif mysql # not compatible
query II rowsort label-8085
SELECT MIN ( + 20 ) * 68, ( 76 ) AS col2
----
1360
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT ALL - AVG ( - 94 ) + CASE COUNT( * ) WHEN - 70 THEN + 87 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL - AVG ( - 94 ) + CASE COUNT ( * ) WHEN - 70 THEN + 87 END AS col0
----
NULL

query II rowsort
SELECT ALL 49, - 3 * - - 35 * + 91 AS col2
----
49
-9555

query I rowsort
SELECT 10 - - 61 AS col0
----
71

query I rowsort
SELECT ALL - CASE + 71 WHEN - + 69 THEN + 61 ELSE 78 END * + ( + 69 ) AS col0
----
-5382

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8090
SELECT DISTINCT 68 + + CAST( + 77 AS SIGNED ) col1, - 48
----
145
-48

skipif mysql # not compatible
query II rowsort label-8090
SELECT DISTINCT 68 + + CAST ( + 77 AS INTEGER ) col1, - 48
----
145
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8091
SELECT ALL - MIN( DISTINCT + + CAST( + 2 AS SIGNED ) ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - MIN ( DISTINCT + + CAST ( + 2 AS INTEGER ) ) col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8092
SELECT ALL 3 + CASE + - 70 WHEN COUNT( * ) * - ( - 59 ) + + + 15 + + 76 + CAST( NULL AS SIGNED ) / - 71 THEN NULL WHEN + COALESCE ( + COUNT( * ), + 43, 98 ) THEN NULL ELSE - 31 END * + 81 - - + 39 AS col0
----
-2469

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL 3 + CASE + - 70 WHEN COUNT ( * ) * - ( - 59 ) + + + 15 + + 76 + CAST ( NULL AS INTEGER ) / - 71 THEN NULL WHEN + COALESCE ( + COUNT ( * ), + 43, 98 ) THEN NULL ELSE - 31 END * + 81 - - + 39 AS col0
----
-2469

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8094
SELECT ALL + CAST( NULL AS DECIMAL ) * 16 * - - COALESCE ( - 13, + 48 * 64 + + 99 + + 95 - + ( + 29 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL + CAST ( NULL AS REAL ) * 16 * - - COALESCE ( - 13, + 48 * 64 + + 99 + + 95 - + ( + 29 ) ) AS col1
----
NULL

query I rowsort
SELECT 35 + - - 60 * 33
----
2015

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT ALL ( COUNT( * ) ) * + ( + 62 ) + + 15
----
77

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL ( COUNT ( * ) ) * + ( + 62 ) + + 15
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8097
SELECT 44 + ( 58 ) col0, MAX( + 75 ) + - + MAX( 84 )
----
102
-9

skipif mysql # not compatible
query II rowsort label-8097
SELECT 44 + ( 58 ) col0, MAX ( + 75 ) + - + MAX ( 84 )
----
102
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT DISTINCT - CASE 61 WHEN - 92 + - 82 THEN COUNT( DISTINCT + 19 ) WHEN - + 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT - CASE 61 WHEN - 92 + - 82 THEN COUNT ( DISTINCT + 19 ) WHEN - + 36 THEN NULL END
----
NULL

query I rowsort
SELECT 25 * 66 AS col1
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT 87 * - + COALESCE ( COUNT( * ), - 94, - 56 ) * - COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-8100
SELECT 87 * - + COALESCE ( COUNT ( * ), - 94, - 56 ) * - COUNT ( * ) AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8101
SELECT - - 94 * ( - 66 ) * + + ( COUNT( * ) ) + 86 + - + 41 * + 42 * 29 + - - 68 * + 18 + - ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT - - 94 * ( - 66 ) * + + ( COUNT ( * ) ) + 86 + - + 41 * + 42 * 29 + - - 68 * + 18 + - ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT DISTINCT - - CASE + 95 WHEN NULLIF ( + COUNT( * ), + 1 + 7 ) / COALESCE ( - - 77, COUNT( * ) + + - COUNT( * ), + + 25 + - 81 * + 60 ) * - CASE 83 WHEN + MIN( ALL - + 54 ) + - - 74 THEN 8 ELSE NULL END THEN NULL ELSE + 15 END AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT - - CASE + 95 WHEN NULLIF ( + COUNT ( * ), + 1 + 7 ) / COALESCE ( - - 77, COUNT ( * ) + + - COUNT ( * ), + + 25 + - 81 * + 60 ) * - CASE 83 WHEN + MIN ( ALL - + 54 ) + - - 74 THEN 8 ELSE NULL END THEN NULL ELSE + 15 END AS col0
----
15

query I rowsort
SELECT + 37 + - + 78
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT 66 + 63 * - + 65 * - + 65 * + COUNT( - + 99 )
----
266241

skipif mysql # not compatible
query I rowsort label-8104
SELECT 66 + 63 * - + 65 * - + 65 * + COUNT ( - + 99 )
----
266241

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

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

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

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL 4 * - COUNT ( * ) * + COUNT ( + 23 ) AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8107
SELECT - 73 + + 19 + - 48 DIV 11 - - + 66 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8107
SELECT - 73 + + 19 + - 48 / 11 - - + 66 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT DISTINCT + + MIN( ALL 79 ) - - COUNT( * ) + - + CASE - 41 WHEN - NULLIF ( + MAX( ALL + 42 ), + + 82 + - 1 ) * - 10 - + + COUNT( * ) + - 86 * + 52 + + MAX( ALL 42 ) THEN NULL WHEN ( - 8 ) * + 24 THEN - 28 END - + 50 / 50 * + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT + + MIN ( ALL 79 ) - - COUNT ( * ) + - + CASE - 41 WHEN - NULLIF ( + MAX ( ALL + 42 ), + + 82 + - 1 ) * - 10 - + + COUNT ( * ) + - 86 * + 52 + + MAX ( ALL 42 ) THEN NULL WHEN ( - 8 ) * + 24 THEN - 28 END - + 50 / 50 * + 62 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8110
SELECT + 14 * + + 54 + 91 + CASE + 36 WHEN - AVG ( - 85 ) THEN - 39 * - + 21 * 7 + + COUNT( DISTINCT - + 27 ) WHEN - CAST( NULL AS SIGNED ) - + 6 - MIN( - - 25 ) THEN NULL WHEN 19 + CASE 40 WHEN + + CASE + - 22 WHEN 81 THEN NULL WHEN - 34 THEN + 40 ELSE + 15 END + + COUNT( * ) + CAST( NULL AS SIGNED ) THEN NULL ELSE + + 36 END THEN NULL END + + 86 - + 0 + + ( + 55 ) * 99 * - 8 * - 40 + 97 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT + 14 * + + 54 + 91 + CASE + 36 WHEN - AVG ( - 85 ) THEN - 39 * - + 21 * 7 + + COUNT ( DISTINCT - + 27 ) WHEN - CAST ( NULL AS INTEGER ) - + 6 - MIN ( - - 25 ) THEN NULL WHEN 19 + CASE 40 WHEN + + CASE + - 22 WHEN 81 THEN NULL WHEN - 34 THEN + 40 ELSE + 15 END + + COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 36 END THEN NULL END + + 86 - + 0 + + ( + 55 ) * 99 * - 8 * - 40 + 97 * 42
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8111
SELECT DISTINCT - COUNT( DISTINCT 23 ) * + NULLIF ( - MIN( ALL - - 51 ), 63 ) AS col0, - 35
----
51
-35

skipif mysql # not compatible
query II rowsort label-8111
SELECT DISTINCT - COUNT ( DISTINCT 23 ) * + NULLIF ( - MIN ( ALL - - 51 ), 63 ) AS col0, - 35
----
51
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8112
SELECT ALL + + 18 * CAST( - 7 AS SIGNED ), + 96 AS col0
----
-126
96

skipif mysql # not compatible
query II rowsort label-8112
SELECT ALL + + 18 * CAST ( - 7 AS INTEGER ), + 96 AS col0
----
-126
96

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

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

query I rowsort
SELECT + 53 + + + 95 col0
----
148

query I rowsort
SELECT - 23 - + 5 + - 23
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT COUNT( * ) * 21 + + 39
----
60

skipif mysql # not compatible
query I rowsort label-8116
SELECT COUNT ( * ) * 21 + + 39
----
60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8117
SELECT ( + + 84 ) + - + CAST( NULL AS DECIMAL ) AS col1, + CAST( NULL AS SIGNED ) + + 34
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8117
SELECT ( + + 84 ) + - + CAST ( NULL AS REAL ) AS col1, + CAST ( NULL AS INTEGER ) + + 34
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8118
SELECT - COALESCE ( + 60, COUNT( * ) DIV + + 12 ) + 55 AS col0, + CASE + + 54 WHEN + - 51 * - MIN( + + 39 ) * + COUNT( * ) THEN 54 + + 33 * + + 91 DIV + + 27 * - + 76 WHEN + ( + MIN( + 12 ) ) + - COUNT( ALL + 64 ) THEN NULL WHEN - COUNT( * ) * - + 16 THEN NULL END + + - 26
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-8118
SELECT - COALESCE ( + 60, COUNT ( * ) / + + 12 ) + 55 AS col0, + CASE + + 54 WHEN + - 51 * - MIN ( + + 39 ) * + COUNT ( * ) THEN 54 + + 33 * + + 91 / + + 27 * - + 76 WHEN + ( + MIN ( + 12 ) ) + - COUNT ( ALL + 64 ) THEN NULL WHEN - COUNT ( * ) * - + 16 THEN NULL END + + - 26
----
-5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8119
SELECT DISTINCT - 45 + - 89 / CAST( NULL AS SIGNED ) * + ( - NULLIF ( - 60, + 77 ) ) - 16 - - 4 * - 86 * - 6 + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT - 45 + - 89 / CAST ( NULL AS INTEGER ) * + ( - NULLIF ( - 60, + 77 ) ) - 16 - - 4 * - 86 * - 6 + - 65
----
NULL

query I rowsort
SELECT ALL ( 93 ) + - + 78 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8121
SELECT COALESCE ( - 78, + CAST( NULL AS SIGNED ) DIV 94 ) + + + 86
----
8

skipif mysql # not compatible
query I rowsort label-8121
SELECT COALESCE ( - 78, + CAST ( NULL AS INTEGER ) / 94 ) + + + 86
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT ALL MAX( DISTINCT 96 )
----
96

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL MAX ( DISTINCT 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL NULLIF ( - + 24, COALESCE ( - - 52, + 86, + - ( - CASE + - 20 WHEN + 4 THEN - 50 WHEN COUNT( ALL 23 ) * - - 40 * 14 THEN NULL ELSE - + COUNT( * ) END ), 62 - 1 + 22 ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL NULLIF ( - + 24, COALESCE ( - - 52, + 86, + - ( - CASE + - 20 WHEN + 4 THEN - 50 WHEN COUNT ( ALL 23 ) * - - 40 * 14 THEN NULL ELSE - + COUNT ( * ) END ), 62 - 1 + 22 ) ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query III rowsort label-8124
SELECT ALL 48 AS col2, COUNT( * ) AS col0, - 54
----
48
1
-54

skipif mysql # not compatible
query III rowsort label-8124
SELECT ALL 48 AS col2, COUNT ( * ) AS col0, - 54
----
48
1
-54

query I rowsort
SELECT ALL 15 * 7 * 68 AS col0
----
7140

query I rowsort
SELECT 19 + - - 32
----
51

query I rowsort
SELECT 90 * - 25
----
-2250

query II rowsort
SELECT 83 AS col0, + 40 + 60
----
83
100

onlyif mysql # aggregate syntax: 
query II rowsort label-8129
SELECT ALL COUNT( * ) + - 69 + + 27 - + + NULLIF ( 34, - 90 + 95 ) * COALESCE ( - - 25, - 11 + + 53 * + 95 ) * - 84 + + 60 col2, 7 AS col1
----
71419
7

skipif mysql # not compatible
query II rowsort label-8129
SELECT ALL COUNT ( * ) + - 69 + + 27 - + + NULLIF ( 34, - 90 + 95 ) * COALESCE ( - - 25, - 11 + + 53 * + 95 ) * - 84 + + 60 col2, 7 AS col1
----
71419
7

query I rowsort
SELECT DISTINCT 62 + - + 30
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8131
SELECT 9 DIV + + 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8131
SELECT 9 / + + 50 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8132
SELECT COUNT( * ) DIV 39 * + COUNT( * ) + + + 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-8132
SELECT COUNT ( * ) / 39 * + COUNT ( * ) + + + 95 AS col2
----
95

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8134
SELECT + 55 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8134
SELECT + 55 / 97 AS col0
----
0

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

query I rowsort
SELECT ALL + NULLIF ( + 83, + 86 ) AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT + 19 DIV + 3 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8137
SELECT + 19 / + 3 AS col2
----
6

query I rowsort
SELECT - ( - - 60 ) * 14 * + 25 - + - 38
----
-20962

query I rowsort
SELECT - ( + - 66 ) * - 29 AS col0
----
-1914

query I rowsort
SELECT ALL 52 * + + 55 + - 17 AS col1
----
2843

query I rowsort
SELECT + + 20 - - 48
----
68

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8143
SELECT ALL + 91 AS col2, CAST( 43 AS SIGNED ) * + + MAX( + 97 ) col0
----
91
4171

skipif mysql # not compatible
query II rowsort label-8143
SELECT ALL + 91 AS col2, CAST ( 43 AS INTEGER ) * + + MAX ( + 97 ) col0
----
91
4171

onlyif mysql # aggregate syntax: 
query II rowsort label-8144
SELECT DISTINCT + + 14 AS col0, - 38 + + NULLIF ( + - MIN( + 61 ), - 46 ) + - 19 * + 63
----
14
-1296

skipif mysql # not compatible
query II rowsort label-8144
SELECT DISTINCT + + 14 AS col0, - 38 + + NULLIF ( + - MIN ( + 61 ), - 46 ) + - 19 * + 63
----
14
-1296

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

query II rowsort
SELECT ALL + 71, ( 11 ) AS col2
----
71
11

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

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

query I rowsort
SELECT ALL + ( ( + + COALESCE ( + - 16, + 51 ) ) ) AS col0
----
-16

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

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

query II rowsort
SELECT ALL + - 54 col0, 6 * - + 25
----
-54
-150

query II rowsort
SELECT ALL + 63 AS col1, 34
----
63
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8152
SELECT - ( - + CAST( - SUM( - - 71 ) AS SIGNED ) )
----
-71

skipif mysql # not compatible
query I rowsort label-8152
SELECT - ( - + CAST ( - SUM ( - - 71 ) AS INTEGER ) )
----
-71

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8154
SELECT - 75, COUNT( * ) + + CASE 40 WHEN ( - + 13 ) / + COALESCE ( COUNT( * ), 92 / COUNT( * ) + - 77 + - + 62 ) + - 6 THEN NULL ELSE + 65 * - - 87 END + - 59 * 21 + 17 + - COUNT( * ) AS col0
----
-75
4433

skipif mysql # not compatible
query II rowsort label-8154
SELECT - 75, COUNT ( * ) + + CASE 40 WHEN ( - + 13 ) / + COALESCE ( COUNT ( * ), 92 / COUNT ( * ) + - 77 + - + 62 ) + - 6 THEN NULL ELSE + 65 * - - 87 END + - 59 * 21 + 17 + - COUNT ( * ) AS col0
----
-75
4433

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

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL - COUNT ( * ) / 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8156
SELECT - 51 * - COUNT( * ) DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8156
SELECT - 51 * - COUNT ( * ) / - 65 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8157
SELECT - 21 + 92 DIV + 49
----
-20

skipif mysql # not compatible
query I rowsort label-8157
SELECT - 21 + 92 / + 49
----
-20

query I rowsort
SELECT - 25 - 65
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-8159
SELECT - - 30 AS col2, - COUNT( * ) + + + 89
----
30
88

skipif mysql # not compatible
query II rowsort label-8159
SELECT - - 30 AS col2, - COUNT ( * ) + + + 89
----
30
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT - + MAX( - - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-8160
SELECT - + MAX ( - - 26 )
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-8161
SELECT ALL + - 91 + + - 9 * + + 32 * + 71 col0, CASE - + 87 WHEN 43 THEN + COUNT( * ) * + COUNT( * ) WHEN + 95 THEN NULL END col2
----
-20539
NULL

skipif mysql # not compatible
query II rowsort label-8161
SELECT ALL + - 91 + + - 9 * + + 32 * + 71 col0, CASE - + 87 WHEN 43 THEN + COUNT ( * ) * + COUNT ( * ) WHEN + 95 THEN NULL END col2
----
-20539
NULL

query II rowsort
SELECT - - 60 AS col0, - 27 AS col0
----
60
-27

query II rowsort
SELECT - 76, ( + + 0 ) * + 53 + + 72 - 74 col2
----
-76
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8164
SELECT - 21 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-8164
SELECT - 21 / - 86
----
0

query I rowsort
SELECT + 39 * + 89
----
3471

query I rowsort
SELECT - NULLIF ( - 47, 38 )
----
47

query II rowsort
SELECT ALL ( - 90 ) AS col1, 14
----
-90
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT ALL CAST( + 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL CAST ( + 77 AS INTEGER )
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-8169
SELECT - 86 + + - 38 col1, 47 DIV + 98
----
-124
0

skipif mysql # not compatible
query II rowsort label-8169
SELECT - 86 + + - 38 col1, 47 / + 98
----
-124
0

query I rowsort
SELECT - 62 + + 94
----
32

query II rowsort
SELECT - 79 * + 35, + 90 + + ( + - 78 ) + 28 col2
----
-2765
40

query II rowsort
SELECT ALL ( + 96 ) AS col2, + 88 AS col0
----
96
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8173
SELECT + 55 - 70 DIV + COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-8173
SELECT + 55 - 70 / + COUNT ( * ) AS col2
----
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL 43 * - + 66 * - + 27 * COUNT( * ) col2
----
76626

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL 43 * - + 66 * - + 27 * COUNT ( * ) col2
----
76626

onlyif mysql # DIV for integer division: 
query I rowsort label-8176
SELECT - 10 DIV - 44 * - 63 + + 85 + - 93 DIV + 24 * 94 DIV 75
----
82

skipif mysql # not compatible
query I rowsort label-8176
SELECT - 10 / - 44 * - 63 + + 85 + - 93 / + 24 * 94 / 75
----
82

query I rowsort
SELECT + ( - - COALESCE ( + 71, - 37 ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT - 96 + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-8178
SELECT - 96 + - COUNT ( * )
----
-97

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

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL 7 * - COUNT ( * ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-8180
SELECT + 13 * 69 AS col2, - COUNT( * ) + + + COUNT( * )
----
897
0

skipif mysql # not compatible
query II rowsort label-8180
SELECT + 13 * 69 AS col2, - COUNT ( * ) + + + COUNT ( * )
----
897
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8181
SELECT DISTINCT 98 * 35 AS col2, - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * + 42 + 43
----
3430
43

skipif mysql # not compatible
query II rowsort label-8181
SELECT DISTINCT 98 * 35 AS col2, - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 42 + 43
----
3430
43

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8184
SELECT DISTINCT - 70 DIV + 71 + 40 * 96 DIV - 77, + 58 - - + 13 AS col2
----
-49
71

skipif mysql # not compatible
query II rowsort label-8184
SELECT DISTINCT - 70 / + 71 + 40 * 96 / - 77, + 58 - - + 13 AS col2
----
-49
71

query I rowsort
SELECT - 10 + + COALESCE ( 65, 80 * 62 ) * 53 * + 95 + + + 56
----
327321

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8186
SELECT ALL - + CAST( NULL AS SIGNED ) * 26 * + 75 + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - + CAST ( NULL AS INTEGER ) * 26 * + 75 + 92
----
NULL

query I rowsort
SELECT - - COALESCE ( - 29, + 64, - 64, + 76 )
----
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT DISTINCT 22 * 97 + + - COUNT( * ) AS col1
----
2133

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT 22 * 97 + + - COUNT ( * ) AS col1
----
2133

query I rowsort
SELECT - 99 + 66 + - - 40
----
7

query I rowsort
SELECT + 10 + - - ( - - 41 ) AS col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8192
SELECT - MAX( DISTINCT CAST( + 13 AS SIGNED ) )
----
-13

skipif mysql # not compatible
query I rowsort label-8192
SELECT - MAX ( DISTINCT CAST ( + 13 AS INTEGER ) )
----
-13

query I rowsort
SELECT ALL + ( + + 0 ) - + CASE - ( + 17 ) WHEN - 28 * NULLIF ( 93, - + 27 ) + + 74 - - 70 THEN - 66 WHEN + + 29 - + 0 THEN NULL END
----
NULL

query I rowsort
SELECT 25 + - 24 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8195
SELECT DISTINCT COUNT( - + 27 ) DIV + 28 col1, + CAST( + 88 AS SIGNED ) * - - 53 * + ( - COUNT( * ) ) AS col0
----
0
-4664

skipif mysql # not compatible
query II rowsort label-8195
SELECT DISTINCT COUNT ( - + 27 ) / + 28 col1, + CAST ( + 88 AS INTEGER ) * - - 53 * + ( - COUNT ( * ) ) AS col0
----
0
-4664

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8196
SELECT ALL 9 AS col2, CAST( - 16 AS SIGNED ) * + 96 + + 35
----
9
-1501

skipif mysql # not compatible
query II rowsort label-8196
SELECT ALL 9 AS col2, CAST ( - 16 AS INTEGER ) * + 96 + + 35
----
9
-1501

query I rowsort
SELECT ALL - 95 * - 69 AS col1
----
6555

query I rowsort
SELECT 44 + 21 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT 51 * CAST( + + AVG ( ALL + COALESCE ( 84, + 85 ) ) AS SIGNED ) AS col2
----
4284

skipif mysql # not compatible
query I rowsort label-8199
SELECT 51 * CAST ( + + AVG ( ALL + COALESCE ( 84, + 85 ) ) AS INTEGER ) AS col2
----
4284

query I rowsort
SELECT 60 * 46
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL - SUM( + 18 ) * + 82 col2
----
-1476

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL - SUM ( + 18 ) * + 82 col2
----
-1476

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT AVG ( DISTINCT 38 ) + - - CASE + - 92 WHEN 17 - - - COUNT( * ) + - - 11 THEN - 10 WHEN - 46 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT AVG ( DISTINCT 38 ) + - - CASE + - 92 WHEN 17 - - - COUNT ( * ) + - - 11 THEN - 10 WHEN - 46 THEN NULL END col1
----
NULL

query II rowsort
SELECT ALL 30, 80 col2
----
30
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8204
SELECT ( - - 19 ) DIV + CAST( + + 95 AS SIGNED ) + + 12 * - 58 * + 89 + + + COUNT( + - NULLIF ( + - 25, + 78 ) ) + - 51 * + - 76 AS col2
----
-58067

skipif mysql # not compatible
query I rowsort label-8204
SELECT ( - - 19 ) / + CAST ( + + 95 AS INTEGER ) + + 12 * - 58 * + 89 + + + COUNT ( + - NULLIF ( + - 25, + 78 ) ) + - 51 * + - 76 AS col2
----
-58067

query I rowsort
SELECT 50 * - + 70
----
-3500

query II rowsort
SELECT ALL - 24 AS col2, 11
----
-24
11

query II rowsort
SELECT 38 AS col2, + 55
----
38
55

query I rowsort
SELECT ALL - ( + 72 ) AS col1
----
-72

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

query I rowsort
SELECT ALL 70 * 64
----
4480

query I rowsort
SELECT DISTINCT - - 87 + - NULLIF ( 63, - 86 * + 69 + - + 46 ) * - 9
----
654

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT 77 * MAX( 67 ) + 5 - - 98 + - 33 col2
----
5229

skipif mysql # not compatible
query I rowsort label-8213
SELECT 77 * MAX ( 67 ) + 5 - - 98 + - 33 col2
----
5229

query I rowsort
SELECT - 24 + + 34
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8215
SELECT + + CAST( 11 AS SIGNED ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8215
SELECT + + CAST ( 11 AS INTEGER ) AS col2
----
11

query I rowsort
SELECT ALL 73 + - CASE - + 2 WHEN - + 38 THEN - 13 WHEN - 45 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT ALL - NULLIF ( - 17, + - 11 * + 52 + - - CASE 61 WHEN + - 78 + - COUNT( * ) THEN NULL WHEN - 60 THEN + 23 + - 54 * + MIN( ALL - + 49 ) ELSE NULL END + - 77 + 37 + - 94 * NULLIF ( - COUNT( * ), + 46 / - COALESCE ( - 57, 28 ) * - + 21 * - 69 + + COUNT( * ) ) - + 60 * + 11 + 47 + 41 ) + + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL - NULLIF ( - 17, + - 11 * + 52 + - - CASE 61 WHEN + - 78 + - COUNT ( * ) THEN NULL WHEN - 60 THEN + 23 + - 54 * + MIN ( ALL - + 49 ) ELSE NULL END + - 77 + 37 + - 94 * NULLIF ( - COUNT ( * ), + 46 / - COALESCE ( - 57, 28 ) * - + 21 * - 69 + + COUNT ( * ) ) - + 60 * + 11 + 47 + 41 ) + + COUNT ( * ) AS col2
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT DISTINCT + 47 + + - 49 * - CASE + + 51 WHEN 56 * - COUNT( * ) + - 63 THEN - 3 ELSE NULL END - - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT + 47 + + - 49 * - CASE + + 51 WHEN 56 * - COUNT ( * ) + - 63 THEN - 3 ELSE NULL END - - 70 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8220
SELECT - + 73 * + COUNT( * ) - + MIN( DISTINCT 46 ) + CAST( + ( COUNT( * ) ) AS SIGNED ) AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-8220
SELECT - + 73 * + COUNT ( * ) - + MIN ( DISTINCT 46 ) + CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col2
----
-118

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

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL 0 / + 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL 39 + + ( + MAX( ALL 93 ) )
----
132

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL 39 + + ( + MAX ( ALL 93 ) )
----
132

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8224
SELECT + 22 * ( + + 66 ) DIV - 37
----
-39

skipif mysql # not compatible
query I rowsort label-8224
SELECT + 22 * ( + + 66 ) / - 37
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8225
SELECT 38 * + CAST( + + 13 AS SIGNED ) * + 65 + NULLIF ( + 3, SUM( DISTINCT - - 62 ) / 71 * 27 )
----
32113

skipif mysql # not compatible
query I rowsort label-8225
SELECT 38 * + CAST ( + + 13 AS INTEGER ) * + 65 + NULLIF ( + 3, SUM ( DISTINCT - - 62 ) / 71 * 27 )
----
32113

onlyif mysql # DIV for integer division: 
query I rowsort label-8226
SELECT ALL - 64 DIV - 43 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL - 64 / - 43 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT ALL COUNT( + 98 ) - - + 42 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL COUNT ( + 98 ) - - + 42 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT NULLIF ( 18, + 84 ) * + - COUNT( * ) * + ( 70 )
----
-1260

skipif mysql # not compatible
query I rowsort label-8228
SELECT NULLIF ( 18, + 84 ) * + - COUNT ( * ) * + ( 70 )
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT ALL COUNT( * ) * ( MIN( DISTINCT - 85 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL COUNT ( * ) * ( MIN ( DISTINCT - 85 ) )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8230
SELECT 60 DIV COUNT( * ) * + 25 * - 23
----
-34500

skipif mysql # not compatible
query I rowsort label-8230
SELECT 60 / COUNT ( * ) * + 25 * - 23
----
-34500

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8231
SELECT 34 + + 41 + 90 DIV + - ( + 70 ) AS col0, 2 - + - COUNT( ALL + 68 ) * + 66 * ( - 68 ) col0
----
74
-4486

skipif mysql # not compatible
query II rowsort label-8231
SELECT 34 + + 41 + 90 / + - ( + 70 ) AS col0, 2 - + - COUNT ( ALL + 68 ) * + 66 * ( - 68 ) col0
----
74
-4486

onlyif mysql # DIV for integer division: 
query I rowsort label-8232
SELECT ALL + 37 DIV - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL + 37 / - 61 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8233
SELECT CAST( + + 78 AS SIGNED ) DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-8233
SELECT CAST ( + + 78 AS INTEGER ) / 65
----
1

query I rowsort
SELECT DISTINCT 78 col0
----
78

query I rowsort
SELECT DISTINCT 89 + + - 34 * - + 44 AS col0
----
1585

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT 67 * - 10 + + + COUNT( * )
----
-669

skipif mysql # not compatible
query I rowsort label-8236
SELECT 67 * - 10 + + + COUNT ( * )
----
-669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8237
SELECT ALL ( CAST( + - 32 AS SIGNED ) ) * + - CASE - 82 WHEN + 88 + - MIN( + 67 ) + - - COALESCE ( - - 62, - + 7 - + 77 + + COUNT( * ), - 24 ) THEN - 21 + 76 END + + + 54 * - 63 - - 48 - + + COUNT( + + 26 ) + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL ( CAST ( + - 32 AS INTEGER ) ) * + - CASE - 82 WHEN + 88 + - MIN ( + 67 ) + - - COALESCE ( - - 62, - + 7 - + 77 + + COUNT ( * ), - 24 ) THEN - 21 + 76 END + + + 54 * - 63 - - 48 - + + COUNT ( + + 26 ) + 48
----
NULL

query I rowsort
SELECT DISTINCT + - 22 * - 45 * - 15 AS col0
----
-14850

query I rowsort
SELECT ALL 9 * - - 11 + + 52 col0
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-8240
SELECT - 93 DIV + 72 - + - 10 + - 29
----
-20

skipif mysql # not compatible
query I rowsort label-8240
SELECT - 93 / + 72 - + - 10 + - 29
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT 31 * + 9 + 71 + + + 21 + - + COUNT( * ) + + + 36 * - + 77 col2
----
-2402

skipif mysql # not compatible
query I rowsort label-8241
SELECT 31 * + 9 + 71 + + + 21 + - + COUNT ( * ) + + + 36 * - + 77 col2
----
-2402

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

query I rowsort
SELECT DISTINCT 88 * - + 7 + 48 + + + 85 col0
----
-483

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT + - NULLIF ( + COUNT( * ), COALESCE ( + 3, + + 33, + 86 ) + - COUNT( ALL + 63 ) ) * ( 68 ) + + - 41 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-8245
SELECT + - NULLIF ( + COUNT ( * ), COALESCE ( + 3, + + 33, + 86 ) + - COUNT ( ALL + 63 ) ) * ( 68 ) + + - 41 AS col0
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-8246
SELECT + + ( 10 ), + 88 * - - COUNT( * ) AS col1
----
10
88

skipif mysql # not compatible
query II rowsort label-8246
SELECT + + ( 10 ), + 88 * - - COUNT ( * ) AS col1
----
10
88

query I rowsort
SELECT + 12 col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8248
SELECT - NULLIF ( - + 12, 48 ) + - + 14 + CAST( + - 67 AS SIGNED ) + - 28 * + 26 AS col1
----
-797

skipif mysql # not compatible
query I rowsort label-8248
SELECT - NULLIF ( - + 12, 48 ) + - + 14 + CAST ( + - 67 AS INTEGER ) + - 28 * + 26 AS col1
----
-797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8249
SELECT ALL CASE - + 59 WHEN 58 * + 28 * - 49 - - 77 / + + 10 - 2 THEN - + 43 / 15 + + MAX( + 55 ) + + CAST( NULL AS SIGNED ) + - 99 - 40 - AVG ( DISTINCT + 75 ) + ( + 39 ) * + 95 * - 22 / + 66 WHEN - - 27 * 49 * - + ( + COUNT( * ) ) + - 38 * 64 + - 63 THEN COUNT( * ) / 10 + + 7 + - 44 END - - - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL CASE - + 59 WHEN 58 * + 28 * - 49 - - 77 / + + 10 - 2 THEN - + 43 / 15 + + MAX ( + 55 ) + + CAST ( NULL AS INTEGER ) + - 99 - 40 - AVG ( DISTINCT + 75 ) + ( + 39 ) * + 95 * - 22 / + 66 WHEN - - 27 * 49 * - + ( + COUNT ( * ) ) + - 38 * 64 + - 63 THEN COUNT ( * ) / 10 + + 7 + - 44 END - - - 93 AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT + 80 + - 89 + 22 AS col2
----
13

query I rowsort
SELECT + 39 * - 55 * + 64 AS col1
----
-137280

query I rowsort
SELECT DISTINCT COALESCE ( 30, 41 )
----
30

query I rowsort
SELECT ALL CASE 73 WHEN + 49 THEN - 75 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8256
SELECT - 3 DIV 1
----
-3

skipif mysql # not compatible
query I rowsort label-8256
SELECT - 3 / 1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8257
SELECT + 9 + + + 52 * - + MAX( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT + 9 + + + 52 * - + MAX ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 79 * + + 16
----
-1264

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT + 79 + COALESCE ( COUNT( * ), + 26 )
----
80

skipif mysql # not compatible
query I rowsort label-8261
SELECT + 79 + COALESCE ( COUNT ( * ), + 26 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT ALL 43 * + - NULLIF ( + ( + - NULLIF ( + + 39, - + 99 - - 51 - - 52 / 83 * - + 22 * - + 61 - - 78 ) ), - + ( + 15 ) / - SUM( + ( + 71 ) ) * + - 66 )
----
1677

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL 43 * + - NULLIF ( + ( + - NULLIF ( + + 39, - + 99 - - 51 - - 52 / 83 * - + 22 * - + 61 - - 78 ) ), - + ( + 15 ) / - SUM ( + ( + 71 ) ) * + - 66 )
----
1677

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT + COUNT( * ) * + COALESCE ( + 87, - + 75 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-8263
SELECT + COUNT ( * ) * + COALESCE ( + 87, - + 75 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL ( - 22 ) + + MAX( 62 ) * - 29
----
-1820

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL ( - 22 ) + + MAX ( 62 ) * - 29
----
-1820

query I rowsort
SELECT ALL 37 + + 74 AS col2
----
111

query I rowsort
SELECT - COALESCE ( + + 74, - NULLIF ( + + 6, - + 21 ) * - 46 )
----
-74

query I rowsort
SELECT ALL + 14 + 66 * ( + 48 ) col0
----
3182

query I rowsort
SELECT + ( 87 ) * + 58 AS col1
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT ALL MIN( - 93 ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL MIN ( - 93 ) col0
----
-93

query I rowsort
SELECT - ( 27 )
----
-27

query I rowsort
SELECT DISTINCT 42 + + 29
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - COALESCE ( - COUNT( * ), - 81 * + 10 - 58, - 33 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8272
SELECT - COALESCE ( - COUNT ( * ), - 81 * + 10 - 58, - 33 ) AS col0
----
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT - ( NULLIF ( 7, COUNT( * ) ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8275
SELECT - ( NULLIF ( 7, COUNT ( * ) ) ) AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8276
SELECT ALL COUNT( * ) DIV + 57 + 55 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL COUNT ( * ) / + 57 + 55 AS col2
----
55

query I rowsort
SELECT ( 2 )
----
2

query I rowsort
SELECT - 53 * 50
----
-2650

query I rowsort
SELECT ALL - 89 * + 22 - + 41
----
-1999

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT - MAX( - CASE 60 WHEN - 67 THEN + 42 END ) * COUNT( * ) + - 99 / 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT - MAX ( - CASE 60 WHEN - 67 THEN + 42 END ) * COUNT ( * ) + - 99 / 5
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8281
SELECT - 5 / COUNT ( * )
----
-5

query I rowsort
SELECT + 17 * ( - 61 )
----
-1037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8283
SELECT - 23 * CAST( 97 * CASE 40 WHEN 93 + - 17 / 82 THEN 8 * ( 29 ) ELSE + 30 + + 45 * + MIN( - 84 * ( + 45 ) ) END AS SIGNED )
----
379426170

skipif mysql # not compatible
query I rowsort label-8283
SELECT - 23 * CAST ( 97 * CASE 40 WHEN 93 + - 17 / 82 THEN 8 * ( 29 ) ELSE + 30 + + 45 * + MIN ( - 84 * ( + 45 ) ) END AS INTEGER )
----
379426170

query I rowsort
SELECT ALL - 71 * 21 AS col1
----
-1491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8285
SELECT + CAST( 44 AS SIGNED ) * + COUNT( * ) - + 19
----
25

skipif mysql # not compatible
query I rowsort label-8285
SELECT + CAST ( 44 AS INTEGER ) * + COUNT ( * ) - + 19
----
25

query I rowsort
SELECT ( 65 )
----
65

query I rowsort
SELECT 17 * + 59 + - 10
----
993

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT - 75 / - CASE + COALESCE ( ( 42 ), + CASE 83 WHEN 95 + 94 THEN + AVG ( 32 ) END, 83, MAX( ALL + 52 ) / 70 ) WHEN + 57 * - 72 THEN 47 * - 71 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT - 75 / - CASE + COALESCE ( ( 42 ), + CASE 83 WHEN 95 + 94 THEN + AVG ( 32 ) END, 83, MAX ( ALL + 52 ) / 70 ) WHEN + 57 * - 72 THEN 47 * - 71 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 87 * 53
----
-4611

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

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

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

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

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

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

query I rowsort
SELECT - 63 * 99
----
-6237

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT NULLIF ( MIN( + 52 ), - 67 + 11 * + ( COALESCE ( COUNT( * ), 19 + + 19 * + 80, 44 ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-8295
SELECT NULLIF ( MIN ( + 52 ), - 67 + 11 * + ( COALESCE ( COUNT ( * ), 19 + + 19 * + 80, 44 ) ) )
----
52

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

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

query I rowsort
SELECT - 51 * + 6 - + 93
----
-399

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

query I rowsort
SELECT DISTINCT 44 * 9
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT COALESCE ( 2, - COUNT( * ), - 57 * 84 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8300
SELECT COALESCE ( 2, - COUNT ( * ), - 57 * 84 ) AS col1
----
2

query I rowsort
SELECT + 85 * - 95 AS col0
----
-8075

query I rowsort
SELECT - 97 * 1
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT DISTINCT - 36 * - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT - 36 * - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT SUM( DISTINCT + ( 76 ) ) col1
----
76

skipif mysql # not compatible
query I rowsort label-8304
SELECT SUM ( DISTINCT + ( 76 ) ) col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT - 49 DIV - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8305
SELECT - 49 / - 61 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8306
SELECT ALL + 26 * 5 + ( CAST( - MAX( ALL + 81 ) AS DECIMAL ) + - 8 ) * - ( CASE MAX( 40 ) WHEN - COALESCE ( 75, 31, - MIN( ALL + 85 ) ) THEN NULL WHEN + 48 THEN NULL WHEN MIN( 34 ) * ( - 98 * - 81 + + ( + 47 ) ) THEN + 40 + CAST( 92 AS SIGNED ) * ( + ( COUNT( * ) ) + + 83 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL + 26 * 5 + ( CAST ( - MAX ( ALL + 81 ) AS REAL ) + - 8 ) * - ( CASE MAX ( 40 ) WHEN - COALESCE ( 75, 31, - MIN ( ALL + 85 ) ) THEN NULL WHEN + 48 THEN NULL WHEN MIN ( 34 ) * ( - 98 * - 81 + + ( + 47 ) ) THEN + 40 + CAST ( 92 AS INTEGER ) * ( + ( COUNT ( * ) ) + + 83 ) ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT + 91 + - 26
----
65

query I rowsort
SELECT ALL 37 + - 9 AS col0
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT ALL + 73 + CASE MIN( ALL + 12 ) + 89 / - 2 WHEN 23 + + 47 THEN - 63 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL + 73 + CASE MIN ( ALL + 12 ) + 89 / - 2 WHEN 23 + + 47 THEN - 63 END AS col1
----
NULL

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

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

query I rowsort
SELECT - 31 * - 36
----
1116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8313
SELECT + CAST( - 20 AS SIGNED ) * 73
----
-1460

skipif mysql # not compatible
query I rowsort label-8313
SELECT + CAST ( - 20 AS INTEGER ) * 73
----
-1460

query I rowsort
SELECT ALL 1 + 45
----
46

query I rowsort
SELECT - NULLIF ( 55, 68 + + 27 / - CASE 24 WHEN 97 * + 25 + + 46 THEN - 99 + 62 * 84 ELSE NULL END ) + + 94 * 44
----
4081

query I rowsort
SELECT - ( 34 )
----
-34

query I rowsort
SELECT - ( + 17 ) + - 24 AS col2
----
-41

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

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

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

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

query I rowsort
SELECT + 77 + - 88 col2
----
-11

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT + ( - COUNT( * ) ) + + 58 * - 24 AS col2
----
-1393

skipif mysql # not compatible
query I rowsort label-8323
SELECT + ( - COUNT ( * ) ) + + 58 * - 24 AS col2
----
-1393

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

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL MAX ( ALL 72 )
----
72

query I rowsort
SELECT ALL - 29 * 5 col1
----
-145

query I rowsort
SELECT + + 23 + 95
----
118

query I rowsort
SELECT ALL + 18 * 40
----
720

query I rowsort
SELECT - 46 * 89 + 43
----
-4051

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8329
SELECT + COUNT( - 77 ) DIV - 5 + - 59 * + 1 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8329
SELECT + COUNT ( - 77 ) / - 5 + - 59 * + 1 AS col2
----
-59

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

query I rowsort
SELECT 88 * 24 col0
----
2112

query I rowsort
SELECT 34 + + 35 * ( 13 )
----
489

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8333
SELECT - CAST( 82 AS SIGNED ) + + 55 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8333
SELECT - CAST ( 82 AS INTEGER ) + + 55 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT 67 * SUM( 92 ) AS col0
----
6164

skipif mysql # not compatible
query I rowsort label-8334
SELECT 67 * SUM ( 92 ) AS col0
----
6164

query I rowsort
SELECT DISTINCT - - 94 AS col0
----
94

query I rowsort
SELECT ALL - 53 * - NULLIF ( - 18 * 49, COALESCE ( - 95, 88 + 47 * - 54, 99, 45 ) )
----
-46746

query I rowsort
SELECT + 43 + + 13 AS col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8338
SELECT ALL 21 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL 21 / 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT - 84 * - + 59 * MIN( DISTINCT - 90 ) + - MAX( - 88 ) AS col0
----
-445952

skipif mysql # not compatible
query I rowsort label-8339
SELECT - 84 * - + 59 * MIN ( DISTINCT - 90 ) + - MAX ( - 88 ) AS col0
----
-445952

query I rowsort
SELECT ALL + 77 + - CASE 41 WHEN 89 + - 85 THEN NULLIF ( 80, - NULLIF ( + ( 62 ), - 84 + - 77 ) ) * 25 WHEN 28 THEN NULLIF ( 52, 43 ) END
----
NULL

query I rowsort
SELECT + 65 * - 21 - - 89 AS col2
----
-1276

query I rowsort
SELECT 44 + - - ( + 65 ) col1
----
109

query I rowsort
SELECT DISTINCT - 32 + 75 + - 28 AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8344
SELECT ALL + 78 + 62 DIV 74 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL + 78 + 62 / 74 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT DISTINCT - SUM( 71 ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT - SUM ( 71 ) col2
----
-71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8347
SELECT 88 + CAST( - 49 AS SIGNED ) - - COUNT( * ) * NULLIF ( + NULLIF ( 73, - ( 59 ) + 87 * + 63 ) + + 24, + 97 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT 88 + CAST ( - 49 AS INTEGER ) - - COUNT ( * ) * NULLIF ( + NULLIF ( 73, - ( 59 ) + 87 * + 63 ) + + 24, + 97 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 15 + + + 93 + 3 AS col0
----
81

query I rowsort
SELECT 95 * - 93 * + 51 AS col1
----
-450585

query I rowsort
SELECT ALL - 88 * 74
----
-6512

query I rowsort
SELECT ( - 34 ) + - 74 AS col0
----
-108

query I rowsort
SELECT 41 * - 70 + - 57
----
-2927

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - COALESCE ( + NULLIF ( 35, + NULLIF ( 35, COUNT( * ) ) ), - COUNT( * ), ( 39 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8353
SELECT - COALESCE ( + NULLIF ( 35, + NULLIF ( 35, COUNT ( * ) ) ), - COUNT ( * ), ( 39 ) ) AS col1
----
1

query I rowsort
SELECT ALL + 33 - 34 + + 33
----
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT DISTINCT - SUM( ALL - 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT - SUM ( ALL - 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT - SUM( DISTINCT + - 83 ) col2
----
83

skipif mysql # not compatible
query I rowsort label-8357
SELECT - SUM ( DISTINCT + - 83 ) col2
----
83

query I rowsort
SELECT - 24 * - 86 AS col0
----
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT DISTINCT MAX( + + 30 ) - + 87 col1
----
-57

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT MAX ( + + 30 ) - + 87 col1
----
-57

query I rowsort
SELECT - + CASE - - 35 WHEN - 35 * 81 THEN 75 + - 99 * - 98 ELSE + 40 END
----
-40

query I rowsort
SELECT - - ( - ( - 60 ) )
----
60

query I rowsort
SELECT - - 90 AS col1
----
90

query I rowsort
SELECT + 91 * - 88
----
-8008

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8365
SELECT + 0 / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8365
SELECT + 0 / - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - 56 * - 50
----
2800

query I rowsort
SELECT ALL - - 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT DISTINCT - COALESCE ( COUNT( * ), - 36, 26 * + 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT - COALESCE ( COUNT ( * ), - 36, 26 * + 19 )
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT - - 55 * - - COUNT( * ) + 10 * 81
----
865

skipif mysql # not compatible
query I rowsort label-8370
SELECT - - 55 * - - COUNT ( * ) + 10 * 81
----
865

onlyif mysql # DIV for integer division: 
query I rowsort label-8371
SELECT DISTINCT - 54 + - - 69 DIV 36
----
-53

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT - 54 + - - 69 / 36
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8372
SELECT COUNT( * ) DIV + 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8372
SELECT COUNT ( * ) / + 39 AS col2
----
0

query I rowsort
SELECT 79 + 77 * + 54 * - 21
----
-87239

query I rowsort
SELECT ALL 62 + - 30 AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-8375
SELECT 87 AS col1, - 7 + + MIN( - 6 )
----
87
-13

skipif mysql # not compatible
query II rowsort label-8375
SELECT 87 AS col1, - 7 + + MIN ( - 6 )
----
87
-13

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8377
SELECT DISTINCT 67 DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT 67 / 65
----
1

query I rowsort
SELECT ALL 26 + + - 39 AS col2
----
-13

query I rowsort
SELECT 10 * + 68 - - 37
----
717

query I rowsort
SELECT CASE + NULLIF ( + + 23, 99 * 13 ) WHEN 39 + 67 THEN 84 + + 77 END - ( - 92 ) / 44 AS col0
----
NULL

query I rowsort
SELECT 95 * + 78 col1
----
7410

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT DISTINCT 19 * + - 97 * COUNT( * )
----
-1843

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT 19 * + - 97 * COUNT ( * )
----
-1843

query I rowsort
SELECT 4 * - 79 AS col0
----
-316

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

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

query I rowsort
SELECT ALL 66 * + 87 col0
----
5742

query II rowsort
SELECT ALL 6, - 60 + + 46 AS col1
----
6
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT MIN( - 24 ) * + + 68 - 31
----
-1663

skipif mysql # not compatible
query I rowsort label-8387
SELECT MIN ( - 24 ) * + + 68 - 31
----
-1663

onlyif mysql # aggregate syntax: 
query II rowsort label-8388
SELECT ALL 45, MAX( + - 8 ) - + ( + 86 ) col2
----
45
-94

skipif mysql # not compatible
query II rowsort label-8388
SELECT ALL 45, MAX ( + - 8 ) - + ( + 86 ) col2
----
45
-94

query II rowsort
SELECT ALL 90 AS col1, - 93
----
90
-93

query I rowsort
SELECT ALL - 12 * + 44 + 69 AS col0
----
-459

query I rowsort
SELECT ALL COALESCE ( - ( + 67 ), - 95 + 92 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT - + COUNT( * ) + 46 * - COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-8392
SELECT - + COUNT ( * ) + 46 * - COUNT ( * ) AS col1
----
-47

query I rowsort
SELECT - - 57 * + + 78
----
4446

query I rowsort
SELECT - - 46 + 33 * + 22 * - 20 AS col2
----
-14474

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT - + 41 - COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-8395
SELECT - + 41 - COUNT ( * ) AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8396
SELECT - CASE + + 67 WHEN + CAST( NULL AS SIGNED ) * 57 + - 35 THEN NULL WHEN COUNT( DISTINCT 44 ) + 49 THEN 99 + + SUM( DISTINCT 87 ) END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT - CASE + + 67 WHEN + CAST ( NULL AS INTEGER ) * 57 + - 35 THEN NULL WHEN COUNT ( DISTINCT 44 ) + 49 THEN 99 + + SUM ( DISTINCT 87 ) END * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 8 * + 27 + - - COALESCE ( 1, 63, - 40 * 61 ) + 34
----
251

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT DISTINCT - 16 + + 66 + + - 23 + + COUNT( * ) * + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT - 16 + + 66 + + - 23 + + COUNT ( * ) * + COUNT ( * ) AS col1
----
28

query I rowsort
SELECT - 11 + - + 50 + 11 - 44 * + 27
----
-1238

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

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

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

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

query I rowsort
SELECT ALL + - 3 * + - 6 + - 54 * 58
----
-3114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8403
SELECT + CASE + 98 WHEN + + COUNT( - 6 ) THEN CAST( NULL AS SIGNED ) WHEN + 17 * 73 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8403
SELECT + CASE + 98 WHEN + + COUNT ( - 6 ) THEN CAST ( NULL AS INTEGER ) WHEN + 17 * 73 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT 70, MIN( 99 ) + 70 AS col1
----
70
169

skipif mysql # not compatible
query II rowsort label-8404
SELECT 70, MIN ( 99 ) + 70 AS col1
----
70
169

query I rowsort
SELECT + + NULLIF ( + 53, 49 ) AS col0
----
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT COALESCE ( - COUNT( * ), + ( - 32 ), ( ( ( 49 ) ) ) * - ( + 88 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8407
SELECT COALESCE ( - COUNT ( * ), + ( - 32 ), ( ( ( 49 ) ) ) * - ( + 88 ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT ( + - 95 ) * 94 + 96
----
-8834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8409
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT ALL 13 * ( - COUNT( * ) ) + + - 96 + 32 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL 13 * ( - COUNT ( * ) ) + + - 96 + 32 AS col1
----
-77

query I rowsort
SELECT DISTINCT 79 * + 79 AS col1
----
6241

query I rowsort
SELECT DISTINCT + COALESCE ( 99, ( ( + 98 ) ) )
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT CASE - + 62 WHEN + 98 THEN - NULLIF ( - COALESCE ( + ( MIN( 41 ) ), 68 - - 55 * + ( - 10 ) ), 25 ) WHEN 22 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8414
SELECT CASE - + 62 WHEN + 98 THEN - NULLIF ( - COALESCE ( + ( MIN ( 41 ) ), 68 - - 55 * + ( - 10 ) ), 25 ) WHEN 22 THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT 15 * - 44 + 72 * + - 80 AS col1
----
-6420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8416
SELECT + SUM( ALL 8 ) - - CAST( NULL AS SIGNED ) + - 47 - + 78 / 33 / - 79 * - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8416
SELECT + SUM ( ALL 8 ) - - CAST ( NULL AS INTEGER ) + - 47 - + 78 / 33 / - 79 * - 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8417
SELECT + ( + - COUNT( * ) ) * - 74 DIV + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8417
SELECT + ( + - COUNT ( * ) ) * - 74 / + COUNT ( * ) AS col2
----
74

query I rowsort
SELECT ALL + 33 col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT MAX( + + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-8419
SELECT MAX ( + + 27 )
----
27

query I rowsort
SELECT + 60 + - 97 AS col1
----
-37

query I rowsort
SELECT DISTINCT 93 * 40 - - 10 + + 39
----
3769

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8422
SELECT + CAST( - - 33 AS SIGNED ) + + + 85 + + 52 DIV 47 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-8422
SELECT + CAST ( - - 33 AS INTEGER ) + + + 85 + + 52 / 47 AS col2
----
119

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8424
SELECT ALL + COUNT( * ) * 33 + - 33 / - COUNT( * ) + MIN( CAST( NULL AS SIGNED ) + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL + COUNT ( * ) * 33 + - 33 / - COUNT ( * ) + MIN ( CAST ( NULL AS INTEGER ) + 50 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ALL + MIN( DISTINCT 96 ) * COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL + MIN ( DISTINCT 96 ) * COUNT ( * )
----
96

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

skipif mysql # not compatible
query I rowsort label-8427
SELECT - 16 + + + COUNT ( * ) AS col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8428
SELECT + 55 DIV - 39 * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8428
SELECT + 55 / - 39 * COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 37 * - - 79 AS col2
----
2923

query I rowsort
SELECT ALL + 79 * 23
----
1817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT DISTINCT CAST( + ( + 45 ) AS SIGNED ) + + 96 + 70 AS col2
----
211

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT CAST ( + ( + 45 ) AS INTEGER ) + + 96 + 70 AS col2
----
211

query I rowsort
SELECT - - 18 * NULLIF ( + 60, + - 9 ) AS col1
----
1080

query I rowsort
SELECT - + 85 * - 3 AS col0
----
255

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

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

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

query I rowsort
SELECT ALL + NULLIF ( + ( + 9 ), + 25 * 40 * 83 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8437
SELECT DISTINCT 3 DIV - COUNT( 55 ) - - 31 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT 3 / - COUNT ( 55 ) - - 31 AS col0
----
28

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8439
SELECT CAST( NULL AS SIGNED ) col0, 60 + + COALESCE ( 13, + 56 ) AS col2
----
NULL
73

skipif mysql # not compatible
query II rowsort label-8439
SELECT CAST ( NULL AS INTEGER ) col0, 60 + + COALESCE ( 13, + 56 ) AS col2
----
NULL
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8440
SELECT ALL - 56 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL - 56 / - 89
----
0

query II rowsort
SELECT + 13 AS col1, - 98 + + 7 AS col1
----
13
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8442
SELECT + 90 + + - 30 * - CAST( 5 AS SIGNED )
----
240

skipif mysql # not compatible
query I rowsort label-8442
SELECT + 90 + + - 30 * - CAST ( 5 AS INTEGER )
----
240

query I rowsort
SELECT - 14 * + 99 - + - 54 AS col2
----
-1332

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT ALL 31 * COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL 31 * COUNT ( * )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT ALL - 56 DIV - 20 col2
----
2

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL - 56 / - 20 col2
----
2

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

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

skipif mysql # not compatible
query I rowsort label-8447
SELECT + CAST ( NULL AS INTEGER ) * - ( - ( - 38 ) ) AS col1
----
NULL

query I rowsort
SELECT ( + - ( 83 ) )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8449
SELECT + ( - CASE + NULLIF ( - 17, - CASE NULLIF ( 88, 67 ) WHEN COUNT( * ) THEN NULL ELSE 74 END + 63 ) WHEN + 34 THEN + 60 - 18 WHEN + 86 THEN - COUNT( * ) + - 41 ELSE 21 * COALESCE ( - ( - 22 ) * 95, - CAST( NULL AS SIGNED ) ) - ( + CASE - 83 WHEN + 43 + 77 * 24 THEN - COUNT( * ) END ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8449
SELECT + ( - CASE + NULLIF ( - 17, - CASE NULLIF ( 88, 67 ) WHEN COUNT ( * ) THEN NULL ELSE 74 END + 63 ) WHEN + 34 THEN + 60 - 18 WHEN + 86 THEN - COUNT ( * ) + - 41 ELSE 21 * COALESCE ( - ( - 22 ) * 95, - CAST ( NULL AS INTEGER ) ) - ( + CASE - 83 WHEN + 43 + 77 * 24 THEN - COUNT ( * ) END ) END )
----
NULL

query I rowsort
SELECT + 70 * + NULLIF ( - - 87, - - 87 ) * 38 - 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ( + COUNT( * ) ) * - - 67 + COUNT( * ) + + - 44
----
24

skipif mysql # not compatible
query I rowsort label-8451
SELECT ( + COUNT ( * ) ) * - - 67 + COUNT ( * ) + + - 44
----
24

query I rowsort
SELECT 19 - + + 36 col0
----
-17

query II rowsort
SELECT 7, - NULLIF ( 65, - + ( - 62 ) ) AS col1
----
7
-65

query I rowsort
SELECT - + 65
----
-65

query I rowsort
SELECT - 44 * - 81 AS col2
----
3564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT ALL - CAST( NULL AS SIGNED ) + 50 * - 98 + 22 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL - CAST ( NULL AS INTEGER ) + 50 * - 98 + 22 col1
----
NULL

query I rowsort
SELECT - + 42 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT DISTINCT - MAX( 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT - MAX ( 87 ) AS col1
----
-87

query I rowsort
SELECT ALL - 69 + + - 63
----
-132

query I rowsort
SELECT + 80 - + - 87 AS col2
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL COUNT( * ) + 44 * - 50 + + 73 AS col1
----
-2126

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL COUNT ( * ) + 44 * - 50 + + 73 AS col1
----
-2126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8462
SELECT - + CAST( - 58 AS SIGNED ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8462
SELECT - + CAST ( - 58 AS INTEGER ) AS col2
----
58

query I rowsort
SELECT 67 + - 72 AS col2
----
-5

query I rowsort
SELECT DISTINCT 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT - 46 + COUNT( * ) + 51 col1
----
6

skipif mysql # not compatible
query I rowsort label-8465
SELECT - 46 + COUNT ( * ) + 51 col1
----
6

query I rowsort
SELECT 57 * + 75
----
4275

query I rowsort
SELECT ALL 90 * 86 AS col1
----
7740

onlyif mysql # DIV for integer division: 
query I rowsort label-8468
SELECT - 60 + - 49 + - 16 DIV - 45 + + - 31
----
-140

skipif mysql # not compatible
query I rowsort label-8468
SELECT - 60 + - 49 + - 16 / - 45 + + - 31
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT ( + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8469
SELECT ( + COUNT ( * ) ) col2
----
1

query I rowsort
SELECT DISTINCT + NULLIF ( + - NULLIF ( 3, - + ( 38 ) ), + 41 )
----
-3

query I rowsort
SELECT ALL - + 23 + ( 89 )
----
66

query I rowsort
SELECT ( 77 ) * + - CASE - ( ( - 5 ) ) WHEN + 15 THEN - 80 + + 16 WHEN 6 * 69 + 27 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL COUNT( ALL + 54 ) * - + 25 - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL COUNT ( ALL + 54 ) * - + 25 - COUNT ( * )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8474
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - 70 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT DISTINCT SUM( - 18 ) - + 91
----
-109

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT SUM ( - 18 ) - + 91
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-8476
SELECT ALL 91, COUNT( + + ( - 66 ) ) AS col0
----
91
1

skipif mysql # not compatible
query II rowsort label-8476
SELECT ALL 91, COUNT ( + + ( - 66 ) ) AS col0
----
91
1

query I rowsort
SELECT 82 + - 74 AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8478
SELECT 89 * - - COALESCE ( + 91, - - 37 ), 32 * + COUNT( * ) * - NULLIF ( 49, 72 * 4 ) + SUM( DISTINCT 93 ) DIV + 19 AS col1
----
8099
-1564

skipif mysql # not compatible
query II rowsort label-8478
SELECT 89 * - - COALESCE ( + 91, - - 37 ), 32 * + COUNT ( * ) * - NULLIF ( 49, 72 * 4 ) + SUM ( DISTINCT 93 ) / + 19 AS col1
----
8099
-1564

query II rowsort
SELECT 95 col2, - 5
----
95
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT DISTINCT - NULLIF ( 94, - + 78 - - - MIN( ALL + + NULLIF ( + 2, - 13 ) ) ) * 86 AS col1
----
-8084

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT - NULLIF ( 94, - + 78 - - - MIN ( ALL + + NULLIF ( + 2, - 13 ) ) ) * 86 AS col1
----
-8084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT DISTINCT 2 * + - 42 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT 2 * + - 42 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8482
SELECT 88 DIV 65 + - 5 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8482
SELECT 88 / 65 + - 5 AS col2
----
-4

query I rowsort
SELECT ALL - 52 * 33 AS col2
----
-1716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT ALL - COALESCE ( + 91, + 62, + CAST( NULL AS SIGNED ) )
----
-91

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL - COALESCE ( + 91, + 62, + CAST ( NULL AS INTEGER ) )
----
-91

query I rowsort
SELECT + 47 * 1 + + - 1 AS col2
----
46

query I rowsort
SELECT ALL - NULLIF ( - 86, - + 40 * + 36 ) + + 77 + + + ( 85 ) * + 65 AS col1
----
5688

query I rowsort
SELECT + 70 - + + 82
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8488
SELECT + + COUNT( * ) AS col0, - 51 * - + NULLIF ( + 47, 45 ) AS col2
----
1
2397

skipif mysql # not compatible
query II rowsort label-8488
SELECT + + COUNT ( * ) AS col0, - 51 * - + NULLIF ( + 47, 45 ) AS col2
----
1
2397

query I rowsort
SELECT 33 + - + 54
----
-21

query II rowsort
SELECT ALL - + 54, + 29 col1
----
-54
29

query I rowsort
SELECT DISTINCT - - 93
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8492
SELECT - 37 + - CASE - 10 WHEN CAST( ( 59 ) AS DECIMAL ) / + 72 + 38 THEN 38 * 38 + - CASE 16 WHEN - COUNT( * ) THEN CASE 69 WHEN 24 THEN NULL WHEN - 70 / + 16 + + 91 THEN NULL ELSE - 87 END WHEN 38 + + ( CASE + 86 WHEN MAX( DISTINCT + 9 ) + - ( - 99 ) / - 65 THEN 21 ELSE 2 END ) THEN NULL END WHEN 25 THEN 71 * + ( 82 ) WHEN 31 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT - 37 + - CASE - 10 WHEN CAST ( ( 59 ) AS REAL ) / + 72 + 38 THEN 38 * 38 + - CASE 16 WHEN - COUNT ( * ) THEN CASE 69 WHEN 24 THEN NULL WHEN - 70 / + 16 + + 91 THEN NULL ELSE - 87 END WHEN 38 + + ( CASE + 86 WHEN MAX ( DISTINCT + 9 ) + - ( - 99 ) / - 65 THEN 21 ELSE 2 END ) THEN NULL END WHEN 25 THEN 71 * + ( 82 ) WHEN 31 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8493
SELECT + ( - NULLIF ( + + 17, CAST( NULL AS SIGNED ) + COUNT( * ) ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-8493
SELECT + ( - NULLIF ( + + 17, CAST ( NULL AS INTEGER ) + COUNT ( * ) ) ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL + 78 + - 11 + - ( COUNT( * ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + 78 + - 11 + - ( COUNT ( * ) ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8495
SELECT DISTINCT + 20 + - 99 + + + MIN( ALL - 33 ) * 54 + + 2 - CASE 47 WHEN - ( 23 ) * + COUNT( * ) THEN NULLIF ( + COUNT( - 41 ), 9 * + 72 + 41 ) + SUM( DISTINCT + 76 + + CAST( 9 AS SIGNED ) * 82 ) DIV 7 WHEN MIN( + 77 ) * NULLIF ( 78, - 92 ) + - CAST( NULL AS SIGNED ) * - 39 THEN - COUNT( * ) DIV - 73 + + COUNT( * ) ELSE + 34 END AS col2
----
-1893

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT + 20 + - 99 + + + MIN ( ALL - 33 ) * 54 + + 2 - CASE 47 WHEN - ( 23 ) * + COUNT ( * ) THEN NULLIF ( + COUNT ( - 41 ), 9 * + 72 + 41 ) + SUM ( DISTINCT + 76 + + CAST ( 9 AS INTEGER ) * 82 ) / 7 WHEN MIN ( + 77 ) * NULLIF ( 78, - 92 ) + - CAST ( NULL AS INTEGER ) * - 39 THEN - COUNT ( * ) / - 73 + + COUNT ( * ) ELSE + 34 END AS col2
----
-1893

query II rowsort
SELECT ALL - - 20 AS col2, - ( - - 27 ) * + - 33
----
20
891

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT - ( - ( - COALESCE ( COUNT( 3 ), + 32 ) ) ) * + 46 + 57
----
11

skipif mysql # not compatible
query I rowsort label-8497
SELECT - ( - ( - COALESCE ( COUNT ( 3 ), + 32 ) ) ) * + 46 + 57
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT ALL + 87 + + + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL + 87 + + + COUNT ( * ) AS col2
----
88

query I rowsort
SELECT ALL - 29 * - - 68 * 11
----
-21692

query I rowsort
SELECT - + 5
----
-5

query I rowsort
SELECT - 78 + - 40
----
-118

query II rowsort
SELECT 46 AS col0, 6 + 2
----
46
8

query I rowsort
SELECT DISTINCT - - COALESCE ( + + 74, - 19, - 78 * - 86 + + 31 * 26 ) * 23
----
1702

query I rowsort
SELECT ALL + 38 + - 91 col0
----
-53

query I rowsort
SELECT + 0 + 73 AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8506
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, - COUNT( + - 54 ) + MIN( DISTINCT 96 ) * ( - MAX( - 44 ) )
----
NULL
4223

skipif mysql # not compatible
query II rowsort label-8506
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - COUNT ( + - 54 ) + MIN ( DISTINCT 96 ) * ( - MAX ( - 44 ) )
----
NULL
4223

query I rowsort
SELECT - + 59 AS col0
----
-59

query I rowsort
SELECT DISTINCT - 35 * - - 8 * ( 77 )
----
-21560

query I rowsort
SELECT ALL + 77 - - 18 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT - SUM( - 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8510
SELECT - SUM ( - 17 ) AS col1
----
17

query I rowsort
SELECT ALL 9 - - 46
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8512
SELECT 53 DIV - NULLIF ( - - 54, + + AVG ( + - ( ( + - 34 ) ) ) + - NULLIF ( 37 + 32, 32 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8512
SELECT 53 / - NULLIF ( - - 54, + + AVG ( + - ( ( + - 34 ) ) ) + - NULLIF ( 37 + 32, 32 ) )
----
0

query I rowsort
SELECT ( + 21 ) - - - 87 + - + 59
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT DISTINCT 97 * - + MIN( + 67 ) AS col2
----
-6499

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT 97 * - + MIN ( + 67 ) AS col2
----
-6499

query I rowsort
SELECT ALL 67 * - - 16
----
1072

query I rowsort
SELECT DISTINCT 61 * + 60 * + 57 * 29 col1
----
6049980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8517
SELECT 2 DIV NULLIF ( + - 16, + ( - - NULLIF ( - 92, + + COALESCE ( - 62, - 35 * + MIN( DISTINCT 73 ) ) * 85 ) ) ) - COALESCE ( - 30 + - 9 DIV 37, + 73 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8517
SELECT 2 / NULLIF ( + - 16, + ( - - NULLIF ( - 92, + + COALESCE ( - 62, - 35 * + MIN ( DISTINCT 73 ) ) * 85 ) ) ) - COALESCE ( - 30 + - 9 / 37, + 73 ) AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8518
SELECT + 1 * COALESCE ( - 54, + + 73 ) * COALESCE ( - - 52, + 3, 77 DIV - CASE 96 * + 15 WHEN + COUNT( * ) * - 30 THEN + 83 + - 30 END ) + - 21 col0
----
-2829

skipif mysql # not compatible
query I rowsort label-8518
SELECT + 1 * COALESCE ( - 54, + + 73 ) * COALESCE ( - - 52, + 3, 77 / - CASE 96 * + 15 WHEN + COUNT ( * ) * - 30 THEN + 83 + - 30 END ) + - 21 col0
----
-2829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8519
SELECT ALL + ( MAX( - CAST( NULL AS SIGNED ) ) ) * 51 + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL + ( MAX ( - CAST ( NULL AS INTEGER ) ) ) * 51 + + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT + 71 * + CASE COUNT( * ) WHEN + 75 / - - CASE 20 WHEN - 8 + - 33 THEN 44 - 94 WHEN - 73 THEN NULL WHEN + NULLIF ( - 63, - COALESCE ( COALESCE ( - MAX( + 52 ), - 21 ), 13, - 43 * + ( 88 ) - 88 ) ) THEN NULL END THEN 31 * - MAX( ALL + 76 ) - MAX( ALL - ( 58 ) + 95 ) ELSE NULL END * 98 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8520
SELECT + 71 * + CASE COUNT ( * ) WHEN + 75 / - - CASE 20 WHEN - 8 + - 33 THEN 44 - 94 WHEN - 73 THEN NULL WHEN + NULLIF ( - 63, - COALESCE ( COALESCE ( - MAX ( + 52 ), - 21 ), 13, - 43 * + ( 88 ) - 88 ) ) THEN NULL END THEN 31 * - MAX ( ALL + 76 ) - MAX ( ALL - ( 58 ) + 95 ) ELSE NULL END * 98 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL + 85 * + 84 + + COUNT( * ) + - - 27 AS col0
----
7168

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL + 85 * + 84 + + COUNT ( * ) + - - 27 AS col0
----
7168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8522
SELECT DISTINCT - - SUM( DISTINCT + - 78 ) * - CAST( NULL AS SIGNED ) + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT - - SUM ( DISTINCT + - 78 ) * - CAST ( NULL AS INTEGER ) + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT ALL - - 14 * 39 - - - 80 - - + COUNT( DISTINCT + - 18 ) * + 12 * - - 6 + 66 + 15
----
619

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL - - 14 * 39 - - - 80 - - + COUNT ( DISTINCT + - 18 ) * + 12 * - - 6 + 66 + 15
----
619

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT - 35 * - + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-8524
SELECT - 35 * - + COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT DISTINCT - 6 * + 76 * 13 + SUM( DISTINCT + 11 ) * + 87 * - 25 + 72
----
-29781

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT - 6 * + 76 * 13 + SUM ( DISTINCT + 11 ) * + 87 * - 25 + 72
----
-29781

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8526
SELECT DISTINCT ( + CAST( + 77 AS SIGNED ) ) * SUM( - 31 ) + - CAST( NULL AS SIGNED ) + - NULLIF ( + COUNT( * ), + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT ( + CAST ( + 77 AS INTEGER ) ) * SUM ( - 31 ) + - CAST ( NULL AS INTEGER ) + - NULLIF ( + COUNT ( * ), + 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT DISTINCT + CASE + MAX( ALL - - COALESCE ( + 59, - 56 ) ) WHEN - - 0 THEN - - SUM( COALESCE ( - COALESCE ( - 73, 18 ), ( 0 ), + 92 + + 79 ) ) - 22 WHEN - 28 * + MIN( DISTINCT - 51 ) - + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT + CASE + MAX ( ALL - - COALESCE ( + 59, - 56 ) ) WHEN - - 0 THEN - - SUM ( COALESCE ( - COALESCE ( - 73, 18 ), ( 0 ), + 92 + + 79 ) ) - 22 WHEN - 28 * + MIN ( DISTINCT - 51 ) - + COUNT ( * ) THEN NULL END
----
NULL

query II rowsort
SELECT ( + 68 ) AS col2, 50 * - 74 col2
----
68
-3700

onlyif mysql # DIV for integer division: 
query II rowsort label-8529
SELECT + - COALESCE ( + + 4, + 56 ), 26 DIV 78 AS col1
----
-4
0

skipif mysql # not compatible
query II rowsort label-8529
SELECT + - COALESCE ( + + 4, + 56 ), 26 / 78 AS col1
----
-4
0

query I rowsort
SELECT + - 36 - - 42 + + + 29 AS col2
----
35

query I rowsort
SELECT - - 97 * - 75 * + 71 * 66 AS col2
----
-34090650

query I rowsort
SELECT ALL + ( + - 67 ) - + + 79 AS col2
----
-146

query I rowsort
SELECT - 37 * - + 3 AS col1
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-8534
SELECT - ( + 93 ) AS col2, COUNT( * )
----
-93
1

skipif mysql # not compatible
query II rowsort label-8534
SELECT - ( + 93 ) AS col2, COUNT ( * )
----
-93
1

query I rowsort
SELECT DISTINCT + 48 - + 87 AS col1
----
-39

query I rowsort
SELECT - 64 - 64
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8537
SELECT ALL + + 40 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL + + 40 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8538
SELECT - 78 - 79 + COUNT( * ) AS col1, + COUNT( * ) + - 52 AS col1
----
-156
-51

skipif mysql # not compatible
query II rowsort label-8538
SELECT - 78 - 79 + COUNT ( * ) AS col1, + COUNT ( * ) + - 52 AS col1
----
-156
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8539
SELECT - - 34 * 85, COUNT( DISTINCT 14 ) * + 40 AS col0
----
2890
40

skipif mysql # not compatible
query II rowsort label-8539
SELECT - - 34 * 85, COUNT ( DISTINCT 14 ) * + 40 AS col0
----
2890
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - COUNT( DISTINCT 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-8540
SELECT - COUNT ( DISTINCT 86 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8541
SELECT 58, - COUNT( * ) col0
----
58
-1

skipif mysql # not compatible
query II rowsort label-8541
SELECT 58, - COUNT ( * ) col0
----
58
-1

query I rowsort
SELECT - 68 + - 54 AS col1
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-8543
SELECT - MAX( - 3 ) * - COUNT( 71 ) AS col2, COUNT( * )
----
-3
1

skipif mysql # not compatible
query II rowsort label-8543
SELECT - MAX ( - 3 ) * - COUNT ( 71 ) AS col2, COUNT ( * )
----
-3
1

query I rowsort
SELECT - ( - - 32 ) + 50 AS col2
----
18

query I rowsort
SELECT + 50 - - 7
----
57

query II rowsort
SELECT ALL 98, 82 - 60 - + 92 + ( + 34 ) + - 54 * 22 * + 58 AS col1
----
98
-68940

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT - SUM( DISTINCT - ( + 76 ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8547
SELECT - SUM ( DISTINCT - ( + 76 ) ) AS col0
----
76

query I rowsort
SELECT ALL NULLIF ( - 5, - + 63 / 89 * + 55 + 43 ) AS col1
----
-5

query I rowsort
SELECT ALL + 70 * - 1 col1
----
-70

query I rowsort
SELECT DISTINCT ( + + 87 ) AS col0
----
87

query II rowsort
SELECT ALL 55 AS col1, 70 + - - 80
----
55
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT DISTINCT ( + ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT ( + ( + COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8553
SELECT ALL ( CAST( 58 AS SIGNED ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL ( CAST ( 58 AS INTEGER ) ) AS col1
----
58

query I rowsort
SELECT DISTINCT ( 72 ) AS col2
----
72

query I rowsort
SELECT + 90 + + 66 AS col2
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-8556
SELECT - 64 AS col1, - 66 * + - 69 + + 22 + + 51 + 1 + + COUNT( ALL 28 )
----
-64
4629

skipif mysql # not compatible
query II rowsort label-8556
SELECT - 64 AS col1, - 66 * + - 69 + + 22 + + 51 + 1 + + COUNT ( ALL 28 )
----
-64
4629

onlyif mysql # DIV for integer division: 
query I rowsort label-8557
SELECT + 8 DIV + - 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8557
SELECT + 8 / + - 22 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8558
SELECT CAST( NULL AS SIGNED ) AS col1, + 22 + - 83 + - - 52
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-8558
SELECT CAST ( NULL AS INTEGER ) AS col1, + 22 + - 83 + - - 52
----
NULL
-9

query I rowsort
SELECT + ( 7 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8560
SELECT + ( + - ( - CAST( NULL AS SIGNED ) ) ) AS col2, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8560
SELECT + ( + - ( - CAST ( NULL AS INTEGER ) ) ) AS col2, CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8561
SELECT + 72 + + 2 + + - 95 DIV MIN( ALL 15 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8561
SELECT + 72 + + 2 + + - 95 / MIN ( ALL 15 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT + MAX( - 9 ) * + + 1
----
-9

skipif mysql # not compatible
query I rowsort label-8562
SELECT + MAX ( - 9 ) * + + 1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8563
SELECT ALL - 99 DIV + - 82 DIV + COUNT( * ) + + COUNT( * ) AS col1, COUNT( * ) * 30 AS col1
----
2
30

skipif mysql # not compatible
query II rowsort label-8563
SELECT ALL - 99 / + - 82 / + COUNT ( * ) + + COUNT ( * ) AS col1, COUNT ( * ) * 30 AS col1
----
2
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT - - 9 * SUM( DISTINCT + 69 ) * 17 + - + 22 * + 18
----
10161

skipif mysql # not compatible
query I rowsort label-8564
SELECT - - 9 * SUM ( DISTINCT + 69 ) * 17 + - + 22 * + 18
----
10161

query I rowsort
SELECT DISTINCT + - ( - 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8566
SELECT ALL - ( - 18 ) * + 44 * + CAST( NULL AS SIGNED ) * + 6 * + COUNT( * ) + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL - ( - 18 ) * + 44 * + CAST ( NULL AS INTEGER ) * + 6 * + COUNT ( * ) + + 1
----
NULL

query I rowsort
SELECT + + ( - 46 )
----
-46

query II rowsort
SELECT DISTINCT + - 38 AS col2, 96
----
-38
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT - 0 * - 36 - + ( + SUM( ALL - 99 ) ) * - - COALESCE ( + 57, - 86, ( - 88 ) ) + 55 AS col1
----
5698

skipif mysql # not compatible
query I rowsort label-8569
SELECT - 0 * - 36 - + ( + SUM ( ALL - 99 ) ) * - - COALESCE ( + 57, - 86, ( - 88 ) ) + 55 AS col1
----
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL + COUNT( * ) * 43 * - - 54 * + 31
----
71982

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL + COUNT ( * ) * 43 * - - 54 * + 31
----
71982

query II rowsort
SELECT DISTINCT + 83 col2, + ( 47 ) * - + 72 AS col1
----
83
-3384

query I rowsort
SELECT DISTINCT + 19 * - - 68 AS col1
----
1292

query II rowsort
SELECT ALL + 45 AS col1, + 65 col1
----
45
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL 23 * - + SUM( DISTINCT - 19 ) AS col1
----
437

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL 23 * - + SUM ( DISTINCT - 19 ) AS col1
----
437

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT + + 64 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-8575
SELECT + + 64 / - 94
----
0

query I rowsort
SELECT - + 37
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8577
SELECT - - ( 0 ) + + NULLIF ( COUNT( * ), CAST( 94 AS SIGNED ) + ( - 79 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8577
SELECT - - ( 0 ) + + NULLIF ( COUNT ( * ), CAST ( 94 AS INTEGER ) + ( - 79 ) ) AS col0
----
1

query II rowsort
SELECT + 46, 3 AS col0
----
46
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT - + 25 * - 26 + + - 0 + COALESCE ( ( + 59 ), - 65, SUM( ALL - 30 ) ) / - CASE + 99 WHEN - ( 69 ) + 49 THEN NULL WHEN COUNT( * ) * - 57 THEN 76 * 53 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8579
SELECT - + 25 * - 26 + + - 0 + COALESCE ( ( + 59 ), - 65, SUM ( ALL - 30 ) ) / - CASE + 99 WHEN - ( 69 ) + 49 THEN NULL WHEN COUNT ( * ) * - 57 THEN 76 * 53 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + 8 ) col0
----
8

query I rowsort
SELECT ALL ( 51 ) AS col0
----
51

query I rowsort
SELECT - 50 + - 10 col1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8583
SELECT - MAX( - 21 ) * 15 * 12 AS col1, COUNT( * ) AS col0
----
3780
1

skipif mysql # not compatible
query II rowsort label-8583
SELECT - MAX ( - 21 ) * 15 * 12 AS col1, COUNT ( * ) AS col0
----
3780
1

query I rowsort
SELECT ALL 26 + + + ( 85 ) AS col1
----
111

query I rowsort
SELECT DISTINCT NULLIF ( + 36, - 61 )
----
36

query I rowsort
SELECT ALL + 38 + 16 AS col1
----
54

query I rowsort
SELECT DISTINCT + 56 + + + 56 AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8588
SELECT ALL + COUNT( * ) + - NULLIF ( - 4, 87 DIV ( - + 35 ) + - 8 ) + + 6 DIV COUNT( * ) * 83 + - MIN( + 81 + + CAST( 84 AS SIGNED ) )
----
338

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL + COUNT ( * ) + - NULLIF ( - 4, 87 / ( - + 35 ) + - 8 ) + + 6 / COUNT ( * ) * 83 + - MIN ( + 81 + + CAST ( 84 AS INTEGER ) )
----
338

query I rowsort
SELECT 88 - + 68
----
20

query I rowsort
SELECT 97 - - 53 AS col2
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8591
SELECT 7 - 28 + + - 36 + CAST( NULL AS SIGNED ) * - AVG ( ALL - 92 ) * - 90 - 7 - + + 73 + + SUM( 89 ) * 30 * + CAST( + 51 * + 25 + - COUNT( 84 + - 90 ) * + 15 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT 7 - 28 + + - 36 + CAST ( NULL AS INTEGER ) * - AVG ( ALL - 92 ) * - 90 - 7 - + + 73 + + SUM ( 89 ) * 30 * + CAST ( + 51 * + 25 + - COUNT ( 84 + - 90 ) * + 15 AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8592
SELECT ALL + 39 + - 67 + - 52 DIV - + ( 18 ) + 9 + + - ( - + 34 ) + - + COUNT( * ) * - 16
----
33

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL + 39 + - 67 + - 52 / - + ( 18 ) + 9 + + - ( - + 34 ) + - + COUNT ( * ) * - 16
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT DISTINCT + COUNT( * ) * + 48
----
48

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT + COUNT ( * ) * + 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT 29 + - - 53 * CASE - 55 WHEN - NULLIF ( - + 16, + 92 * + ( + SUM( 50 ) ) ) THEN - 57 WHEN 44 THEN - ( 88 ) / 60 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT 29 + - - 53 * CASE - 55 WHEN - NULLIF ( - + 16, + 92 * + ( + SUM ( 50 ) ) ) THEN - 57 WHEN 44 THEN - ( 88 ) / 60 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 21 col1
----
-21

query I rowsort
SELECT ALL + + ( ( 84 ) ) - 31
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-8597
SELECT 1 * + 33 AS col1, COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-8597
SELECT 1 * + 33 AS col1, COUNT ( * )
----
33
1

query I rowsort
SELECT + + 34 AS col0
----
34

query I rowsort
SELECT 78 + + + 65
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-8600
SELECT + 19 DIV + ( - - 83 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8600
SELECT + 19 / + ( - - 83 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT - NULLIF ( + + 62, - + COALESCE ( + 84, - 94 ) + COUNT( * ) ) * + 80 * - 80 - 68 * 37 AS col1
----
394284

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT - NULLIF ( + + 62, - + COALESCE ( + 84, - 94 ) + COUNT ( * ) ) * + 80 * - 80 - 68 * 37 AS col1
----
394284

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL - ( - 61 ) * CASE - + MAX( - ( + 20 ) ) WHEN + - 15 * + 55 THEN ( 64 ) + - COUNT( * ) WHEN - NULLIF ( + COUNT( * ), 96 ) * - 59 + - 85 THEN 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL - ( - 61 ) * CASE - + MAX ( - ( + 20 ) ) WHEN + - 15 * + 55 THEN ( 64 ) + - COUNT ( * ) WHEN - NULLIF ( + COUNT ( * ), 96 ) * - 59 + - 85 THEN 56 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT - MIN( - 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-8603
SELECT - MIN ( - 45 ) AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8604
SELECT + ( - 15 ) DIV - 18 * - 24 + 22 + + - 7 + + 81
----
96

skipif mysql # not compatible
query I rowsort label-8604
SELECT + ( - 15 ) / - 18 * - 24 + 22 + + - 7 + + 81
----
96

query I rowsort
SELECT DISTINCT - - 12 AS col1
----
12

query I rowsort
SELECT + 41 col1
----
41

query I rowsort
SELECT + + 80 AS col1
----
80

query I rowsort
SELECT ALL - + CASE - 8 WHEN + 10 THEN NULL WHEN 23 + - ( + 4 ) THEN - ( 92 ) / 37 END
----
NULL

query I rowsort
SELECT + 39 * - + 87 + 43 col2
----
-3350

query I rowsort
SELECT - 86 col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT + COUNT( * ) + 15 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT + COUNT ( * ) + 15 AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8612
SELECT DISTINCT COUNT( * ) + - 14 + COUNT( ALL + - COALESCE ( + + 45, - NULLIF ( 1, + + 87 ) ) ) DIV + 47 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT COUNT ( * ) + - 14 + COUNT ( ALL + - COALESCE ( + + 45, - NULLIF ( 1, + + 87 ) ) ) / + 47 AS col2
----
-13

query I rowsort
SELECT ALL 97 + - 72 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT 88 + 26 * + 10 * + - ( - COUNT( * ) ) * + + 91 col2
----
23748

skipif mysql # not compatible
query I rowsort label-8614
SELECT 88 + 26 * + 10 * + - ( - COUNT ( * ) ) * + + 91 col2
----
23748

query I rowsort
SELECT ALL 8 col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT 33 - ( - 29 ) * MAX( + 33 )
----
990

skipif mysql # not compatible
query I rowsort label-8616
SELECT 33 - ( - 29 ) * MAX ( + 33 )
----
990

query I rowsort
SELECT 7 + 27
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT ALL + 7 + - + COUNT( * ) col0
----
6

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL + 7 + - + COUNT ( * ) col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL - 35 * MIN( 37 )
----
-1295

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL - 35 * MIN ( 37 )
----
-1295

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT DISTINCT - 62 DIV 6
----
-10

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT - 62 / 6
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8621
SELECT ALL + ( 82 ) - - 27 + - 95 + 77 + - ( - COALESCE ( - ( - + COUNT( * ) ), + CAST( - 94 AS SIGNED ) + + 77, 9 + 65 ) ) * + 48 DIV - 76
----
91

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL + ( 82 ) - - 27 + - 95 + 77 + - ( - COALESCE ( - ( - + COUNT ( * ) ), + CAST ( - 94 AS INTEGER ) + + 77, 9 + 65 ) ) * + 48 / - 76
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT ALL - + ( + MAX( + 62 ) ) - + CASE COALESCE ( - 84, COUNT( * ) ) WHEN 69 + 3 + - - 12 * - 90 THEN NULL WHEN 3 THEN + 16 END + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL - + ( + MAX ( + 62 ) ) - + CASE COALESCE ( - 84, COUNT ( * ) ) WHEN 69 + 3 + - - 12 * - 90 THEN NULL WHEN 3 THEN + 16 END + - 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT COUNT( * ) * + 32 + + COALESCE ( + 91, + - 70 ) * - CASE - + 21 WHEN COUNT( * ) / 57 THEN NULL WHEN 90 THEN + 50 END * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT COUNT ( * ) * + 32 + + COALESCE ( + 91, + - 70 ) * - CASE - + 21 WHEN COUNT ( * ) / 57 THEN NULL WHEN 90 THEN + 50 END * 22
----
NULL

query I rowsort
SELECT ALL + + 38 * 35 * + - 99
----
-131670

query I rowsort
SELECT ALL + 68 * + 19
----
1292

query I rowsort
SELECT ALL - ( 68 )
----
-68

query I rowsort
SELECT DISTINCT - 54 col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8628
SELECT DISTINCT - + 96 AS col2, 12 * + - MAX( DISTINCT + 61 )
----
-96
-732

skipif mysql # not compatible
query II rowsort label-8628
SELECT DISTINCT - + 96 AS col2, 12 * + - MAX ( DISTINCT + 61 )
----
-96
-732

query I rowsort
SELECT 74 * + - 5 AS col1
----
-370

query I rowsort
SELECT - 44 + - 1 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-8631
SELECT + 64, + COUNT( * ) * - - 48 AS col0
----
64
48

skipif mysql # not compatible
query II rowsort label-8631
SELECT + 64, + COUNT ( * ) * - - 48 AS col0
----
64
48

query I rowsort
SELECT + - 64 col1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-8633
SELECT ALL 27 + - COUNT( * ) * - + 54 col0, NULLIF ( + CASE WHEN MIN( ALL + 28 ) <= - 37 THEN 80 ELSE NULL END, + 95 ) - - 80 AS col2
----
81
NULL

skipif mysql # not compatible
query II rowsort label-8633
SELECT ALL 27 + - COUNT ( * ) * - + 54 col0, NULLIF ( + CASE WHEN MIN ( ALL + 28 ) <= - 37 THEN 80 ELSE NULL END, + 95 ) - - 80 AS col2
----
81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT + + 77 * - + 65 + + 35 + - 27 DIV 84 * - 33 + - ( 93 ) * - 56 AS col2
----
238

skipif mysql # not compatible
query I rowsort label-8634
SELECT + + 77 * - + 65 + + 35 + - 27 / 84 * - 33 + - ( 93 ) * - 56 AS col2
----
238

query I rowsort
SELECT ALL - 3 * + + 51 AS col2
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8636
SELECT + COALESCE ( 19, + 42 * COUNT( * ) * CASE + COUNT( * ) WHEN CAST( + - 45 AS SIGNED ) DIV - ( 20 ) + - 51 * NULLIF ( + CAST( COUNT( * ) AS SIGNED ) - COUNT( * ) * 16, - 26 + - 49 DIV 6 ) THEN + 14 - + NULLIF ( - 72, COUNT( * ) * 66 + 28 ) DIV CAST( NULLIF ( + 95, 46 * CASE - COUNT( * ) WHEN + 0 DIV + 43 THEN + 95 END ) AS SIGNED ) END + 19 ) * - ( + 68 )
----
-1292

skipif mysql # not compatible
query I rowsort label-8636
SELECT + COALESCE ( 19, + 42 * COUNT ( * ) * CASE + COUNT ( * ) WHEN CAST ( + - 45 AS INTEGER ) / - ( 20 ) + - 51 * NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ) - COUNT ( * ) * 16, - 26 + - 49 / 6 ) THEN + 14 - + NULLIF ( - 72, COUNT ( * ) * 66 + 28 ) / CAST ( NULLIF ( + 95, 46 * CASE - COUNT ( * ) WHEN + 0 / + 43 THEN + 95 END ) AS INTEGER ) END + 19 ) * - ( + 68 )
----
-1292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT ALL - - CAST( + 91 AS SIGNED ) + 76 * - 97 col2
----
-7281

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL - - CAST ( + 91 AS INTEGER ) + 76 * - 97 col2
----
-7281

query I rowsort
SELECT DISTINCT - - CASE 32 WHEN + - 68 THEN + 26 + - 30 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8639
SELECT + COUNT( * ) AS col2, 1 AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-8639
SELECT + COUNT ( * ) AS col2, 1 AS col0
----
1
1

query I rowsort
SELECT DISTINCT + 56 + - + 2 * + 38 AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT ALL 27 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL 27 / - 90 AS col0
----
0

query I rowsort
SELECT ALL ( + + 9 ) + - 49
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT ALL MAX( + - 62 ) + - 79 + 19 + - + 8 * - 15
----
-2

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL MAX ( + - 62 ) + - 79 + 19 + - + 8 * - 15
----
-2

query II rowsort
SELECT 44 AS col0, + ( + 51 )
----
44
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8645
SELECT + 67 DIV + 63 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8645
SELECT + 67 / + 63 AS col2
----
1

query I rowsort
SELECT - NULLIF ( - + 92, - 42 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8647
SELECT ALL 49 + + 80 AS col1, + COUNT( * )
----
129
1

skipif mysql # not compatible
query II rowsort label-8647
SELECT ALL 49 + + 80 AS col1, + COUNT ( * )
----
129
1

query I rowsort
SELECT + 55 * + - 34 AS col0
----
-1870

onlyif mysql # aggregate syntax: 
query II rowsort label-8649
SELECT + 61 + + + 47 - + COUNT( * ) + + 86 * 79 + 68 + + - 46 + + - 55 * - + 52 AS col1, COALESCE ( - 55, 27 * 13 + 61 ) AS col2
----
9783
-55

skipif mysql # not compatible
query II rowsort label-8649
SELECT + 61 + + + 47 - + COUNT ( * ) + + 86 * 79 + 68 + + - 46 + + - 55 * - + 52 AS col1, COALESCE ( - 55, 27 * 13 + 61 ) AS col2
----
9783
-55

query I rowsort
SELECT DISTINCT 84 + ( - 70 ) + + + 77
----
91

query II rowsort
SELECT ALL 62, - 60 * + - 7 AS col1
----
62
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8652
SELECT ALL 19 - - + 10 - - ( + 24 ) DIV + + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL 19 - - + 10 - - ( + 24 ) / + + COUNT ( * ) AS col2
----
53

query I rowsort
SELECT + 25 * 94 * + 96
----
225600

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT DISTINCT 48 - - 93 * - COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT 48 - - 93 * - COUNT ( * ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT + COUNT( * ) + - - 86 * - 45 * 22 AS col2
----
-85139

skipif mysql # not compatible
query I rowsort label-8655
SELECT + COUNT ( * ) + - - 86 * - 45 * 22 AS col2
----
-85139

query II rowsort
SELECT DISTINCT 74 AS col1, + 18 + 92
----
74
110

query I rowsort
SELECT ALL 83 - 95 AS col0
----
-12

query I rowsort
SELECT + 89 * + 54
----
4806

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT - 95 * 55 DIV + - 8 AS col2
----
653

skipif mysql # not compatible
query I rowsort label-8659
SELECT - 95 * 55 / + - 8 AS col2
----
653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8660
SELECT + 65 - - 24 * CAST( NULL AS SIGNED ) * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT + 65 - - 24 * CAST ( NULL AS INTEGER ) * COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL - ( + + COALESCE ( 18, + 96 * 13 ) ) col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT CASE - 20 WHEN + 36 + 52 * + COUNT( * ) - + - 88 THEN + 0 WHEN - + 57 * - 17 + - + 6 + 6 * COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT CASE - 20 WHEN + 36 + 52 * + COUNT ( * ) - + - 88 THEN + 0 WHEN - + 57 * - 17 + - + 6 + 6 * COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8663
SELECT - - 14 DIV - 23 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8663
SELECT - - 14 / - 23 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8664
SELECT ALL 7 AS col2, - SUM( ALL - 39 ) + - 64
----
7
-25

skipif mysql # not compatible
query II rowsort label-8664
SELECT ALL 7 AS col2, - SUM ( ALL - 39 ) + - 64
----
7
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8665
SELECT ALL - 59 DIV - 82 + 55 * + 45 + - + 16 - + 34 * + - 84 AS col1
----
5315

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL - 59 / - 82 + 55 * + 45 + - + 16 - + 34 * + - 84 AS col1
----
5315

query II rowsort
SELECT ALL + 7 AS col0, - 86 * ( - - 29 ) AS col2
----
7
-2494

query II rowsort
SELECT DISTINCT + + 67 AS col0, 28 - + 74
----
67
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8668
SELECT DISTINCT + 31 DIV + + 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT + 31 / + + 56 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT ALL + + MIN( DISTINCT 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL + + MIN ( DISTINCT 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8670
SELECT - + 87 DIV COUNT( + - COALESCE ( - 23, - 27, - 16, + - 73 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-8670
SELECT - + 87 / COUNT ( + - COALESCE ( - 23, - 27, - 16, + - 73 ) )
----
-87

query I rowsort
SELECT DISTINCT + - 7 col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8672
SELECT - COUNT( CAST( NULL AS SIGNED ) ) + + 73 + 65
----
138

skipif mysql # not compatible
query I rowsort label-8672
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) + + 73 + 65
----
138

query II rowsort
SELECT + 81 AS col1, - 71 AS col1
----
81
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT DISTINCT 68 * + NULLIF ( - + 52, + ( 77 ) ) + + - CASE + + 50 WHEN - MIN( 95 ) THEN - - 46 * + - 89 + - ( 10 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT 68 * + NULLIF ( - + 52, + ( 77 ) ) + + - CASE + + 50 WHEN - MIN ( 95 ) THEN - - 46 * + - 89 + - ( 10 ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8675
SELECT DISTINCT + + 41 * + 36 + + 91 + - 46 - NULLIF ( - 2, 35 * + 37 + - COUNT( * ) + COUNT( + - ( - 28 ) ) - - 97 / 10 ) + - COALESCE ( - 88, COUNT( * ) ) / + 89 * CAST( NULL AS SIGNED ) / - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT + + 41 * + 36 + + 91 + - 46 - NULLIF ( - 2, 35 * + 37 + - COUNT ( * ) + COUNT ( + - ( - 28 ) ) - - 97 / 10 ) + - COALESCE ( - 88, COUNT ( * ) ) / + 89 * CAST ( NULL AS INTEGER ) / - 24
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8676
SELECT - 91 * - CAST( NULL AS DECIMAL ), + 22 AS col1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-8676
SELECT - 91 * - CAST ( NULL AS REAL ), + 22 AS col1
----
NULL
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT ALL 61 * + - 82 + + 74 + - + CASE - - 67 WHEN 70 - + 21 THEN NULL WHEN 89 * + 92 THEN + 26 ELSE + + 56 END * + MIN( - 94 )
----
336

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL 61 * + - 82 + + 74 + - + CASE - - 67 WHEN 70 - + 21 THEN NULL WHEN 89 * + 92 THEN + 26 ELSE + + 56 END * + MIN ( - 94 )
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT ALL - SUM( DISTINCT 9 ) * NULLIF ( 95, ( + 50 ) ) AS col2
----
-855

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL - SUM ( DISTINCT 9 ) * NULLIF ( 95, ( + 50 ) ) AS col2
----
-855

query I rowsort
SELECT 80 * + ( + 49 ) + - - ( - 10 ) AS col0
----
3910

query I rowsort
SELECT ALL - 83 * - 88 - - 87 * + 39
----
10697

onlyif mysql # aggregate syntax: 
query II rowsort label-8681
SELECT ALL + 80 * + COUNT( * ) AS col1, 53 col1
----
80
53

skipif mysql # not compatible
query II rowsort label-8681
SELECT ALL + 80 * + COUNT ( * ) AS col1, 53 col1
----
80
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL - 8 * - - 37 * - - CASE + CASE - 92 WHEN + 13 + - 48 THEN 14 * + + 3 ELSE - 25 END WHEN - 45 THEN + + COUNT( * ) + + COUNT( ALL 21 ) WHEN + 6 THEN COUNT( ALL COALESCE ( 47, + 69 ) ) END * ( + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL - 8 * - - 37 * - - CASE + CASE - 92 WHEN + 13 + - 48 THEN 14 * + + 3 ELSE - 25 END WHEN - 45 THEN + + COUNT ( * ) + + COUNT ( ALL 21 ) WHEN + 6 THEN COUNT ( ALL COALESCE ( 47, + 69 ) ) END * ( + 2 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8683
SELECT + SUM( DISTINCT CASE - 78 WHEN - - 66 * - 7 * 74 / - 4 + + 51 THEN NULL WHEN - + CAST( NULL AS SIGNED ) THEN - 41 END ) * + - 93 * - 10 - - SUM( ALL 72 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT + SUM ( DISTINCT CASE - 78 WHEN - - 66 * - 7 * 74 / - 4 + + 51 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) THEN - 41 END ) * + - 93 * - 10 - - SUM ( ALL 72 ) AS col0
----
NULL

query I rowsort
SELECT + 54 + + - 47
----
7

query I rowsort
SELECT - 66 + 69 * + ( 21 ) col1
----
1383

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT + 71 * COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-8686
SELECT + 71 * COUNT ( * )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8687
SELECT + 42 + 46 + - 69 / 16 * MIN( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT + 42 + 46 + - 69 / 16 * MIN ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT + NULLIF ( + COUNT( * ), + 65 ) - 27
----
-26

skipif mysql # not compatible
query I rowsort label-8688
SELECT + NULLIF ( + COUNT ( * ), + 65 ) - 27
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT ALL MAX( + - 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL MAX ( + - 39 ) AS col2
----
-39

query I rowsort
SELECT ALL NULLIF ( - - 61, + 54 )
----
61

query I rowsort
SELECT ALL + 2 * + - 3 * 55 * + + 69 col0
----
-22770

query I rowsort
SELECT + + 91 * + 50 + + 61 col2
----
4611

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT DISTINCT 78 * - + NULLIF ( 68, - CASE WHEN 42 > NULL THEN NULL WHEN NOT NULL IS NOT NULL THEN + NULLIF ( + - 21, - COUNT( * ) ) * + ( - 43 ) - 24 ELSE NULL END ) col0
----
-5304

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT 78 * - + NULLIF ( 68, - CASE WHEN 42 > NULL THEN NULL WHEN NOT NULL IS NOT NULL THEN + NULLIF ( + - 21, - COUNT ( * ) ) * + ( - 43 ) - 24 ELSE NULL END ) col0
----
-5304

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8694
SELECT ALL - CAST( NULL AS DECIMAL ) + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL - CAST ( NULL AS REAL ) + 14 AS col1
----
NULL

query I rowsort
SELECT + 52 + 71 + - - 90 + + - 1 + - 88 + + 13 * + + 50 AS col1
----
774

query I rowsort
SELECT + ( + - 6 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT + 66 + 77 + COUNT( * ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-8697
SELECT + 66 + 77 + COUNT ( * ) AS col1
----
144

query I rowsort
SELECT - 35 * 34 * 30 * - 8 + + 48 AS col1
----
285648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8699
SELECT DISTINCT - 12 DIV - CAST( COUNT( * ) AS SIGNED ) + - + 32 col1
----
-20

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT - 12 / - CAST ( COUNT ( * ) AS INTEGER ) + - + 32 col1
----
-20

query I rowsort
SELECT DISTINCT + + 58
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8701
SELECT DISTINCT 24 DIV 82 + + - 99 + - - COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT 24 / 82 + + - 99 + - - COUNT ( * ) AS col1
----
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-8702
SELECT ALL - 26 DIV + 71, 33 * - 64 AS col0
----
0
-2112

skipif mysql # not compatible
query II rowsort label-8702
SELECT ALL - 26 / + 71, 33 * - 64 AS col0
----
0
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT COUNT( * ) + - - 10 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8703
SELECT COUNT ( * ) + - - 10 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ( + - 98 ) * COALESCE ( - 76, - 86 ) - + COUNT( * ) AS col2
----
7447

skipif mysql # not compatible
query I rowsort label-8704
SELECT ( + - 98 ) * COALESCE ( - 76, - 86 ) - + COUNT ( * ) AS col2
----
7447

query I rowsort
SELECT DISTINCT + 66 * + ( 92 )
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT COUNT( ALL + 63 ) * + 66 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8706
SELECT COUNT ( ALL + 63 ) * + 66 AS col2
----
66

query I rowsort
SELECT 26 * 23 * + + 54 * - - 14
----
452088

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8708
SELECT ALL - ( CAST( - 33 AS SIGNED ) ) AS col2, - 86 AS col0
----
33
-86

skipif mysql # not compatible
query II rowsort label-8708
SELECT ALL - ( CAST ( - 33 AS INTEGER ) ) AS col2, - 86 AS col0
----
33
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-8709
SELECT ALL - ( - + ( + - COUNT( * ) ) ) AS col1, 4 AS col0
----
-1
4

skipif mysql # not compatible
query II rowsort label-8709
SELECT ALL - ( - + ( + - COUNT ( * ) ) ) AS col1, 4 AS col0
----
-1
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8710
SELECT DISTINCT - COUNT( * ) AS col0, MAX( - 41 ) + + COUNT( ALL 17 ) + - - 95 + - 27 DIV - 28 - 81 + - + 28 DIV - ( - 93 ) + - 53 * 36 * - 25 * ( + 22 * + 82 + - 89 DIV + 4 ) AS col0
----
-1
85001374

skipif mysql # not compatible
query II rowsort label-8710
SELECT DISTINCT - COUNT ( * ) AS col0, MAX ( - 41 ) + + COUNT ( ALL 17 ) + - - 95 + - 27 / - 28 - 81 + - + 28 / - ( - 93 ) + - 53 * 36 * - 25 * ( + 22 * + 82 + - 89 / + 4 ) AS col0
----
-1
85001374

onlyif mysql # DIV for integer division: 
query I rowsort label-8711
SELECT 13 * COALESCE ( 20, - 47 DIV - + 78 + - 79 ) AS col2
----
260

skipif mysql # not compatible
query I rowsort label-8711
SELECT 13 * COALESCE ( 20, - 47 / - + 78 + - 79 ) AS col2
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT DISTINCT 55 * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT 55 * + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT DISTINCT - SUM( DISTINCT 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT - SUM ( DISTINCT 74 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT 26 * - COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8714
SELECT 26 * - COUNT ( * ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL - CASE 74 WHEN + COUNT( * ) THEN + + 60 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL - CASE 74 WHEN + COUNT ( * ) THEN + + 60 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8716
SELECT + 11, + 28 * + CAST( - NULLIF ( + 32, 4 * + + 32 * - AVG ( + + 13 ) ) AS SIGNED ) + + 15 col1
----
11
-881

skipif mysql # not compatible
query II rowsort label-8716
SELECT + 11, + 28 * + CAST ( - NULLIF ( + 32, 4 * + + 32 * - AVG ( + + 13 ) ) AS INTEGER ) + + 15 col1
----
11
-881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8717
SELECT 42 + + - COUNT( * ) * + - CAST( NULL AS SIGNED ) * - 16 * 96 * + - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8717
SELECT 42 + + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - 16 * 96 * + - 9
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8718
SELECT DISTINCT 16 AS col0, - MAX( DISTINCT COALESCE ( 21, - + 89 ) ) + - COUNT( * ) + 72 / + CASE 61 WHEN 9 THEN 82 ELSE NULL END / + + 7 + + 27 - + 86 AS col0
----
16
NULL

skipif mysql # not compatible
query II rowsort label-8718
SELECT DISTINCT 16 AS col0, - MAX ( DISTINCT COALESCE ( 21, - + 89 ) ) + - COUNT ( * ) + 72 / + CASE 61 WHEN 9 THEN 82 ELSE NULL END / + + 7 + + 27 - + 86 AS col0
----
16
NULL

query II rowsort
SELECT ALL 67 AS col2, + 76 col1
----
67
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8720
SELECT SUM( ALL + 68 ) DIV + MIN( ALL - ( + 86 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8720
SELECT SUM ( ALL + 68 ) / + MIN ( ALL - ( + 86 ) ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8721
SELECT DISTINCT 27 AS col1, - CASE COUNT( * ) WHEN + CAST( NULL AS DECIMAL ) * 47 THEN + 7 WHEN - COUNT( * ) THEN 61 END
----
27
NULL

skipif mysql # not compatible
query II rowsort label-8721
SELECT DISTINCT 27 AS col1, - CASE COUNT ( * ) WHEN + CAST ( NULL AS REAL ) * 47 THEN + 7 WHEN - COUNT ( * ) THEN 61 END
----
27
NULL

query I rowsort
SELECT ALL 30 * - 57
----
-1710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8723
SELECT COUNT( * ) DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-8723
SELECT COUNT ( * ) / 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8724
SELECT ALL + 42 + + 85 + - ( 91 ) + 17 * + COUNT( * ) AS col1, - 6 + + 56 * 39
----
53
2178

skipif mysql # not compatible
query II rowsort label-8724
SELECT ALL + 42 + + 85 + - ( 91 ) + 17 * + COUNT ( * ) AS col1, - 6 + + 56 * 39
----
53
2178

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT + 74 * COUNT( * ) + - 78 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8725
SELECT + 74 * COUNT ( * ) + - 78 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-8726
SELECT ALL + COUNT( * ) * + 71 * 88 col1, - 64 * 0
----
6248
0

skipif mysql # not compatible
query II rowsort label-8726
SELECT ALL + COUNT ( * ) * + 71 * 88 col1, - 64 * 0
----
6248
0

query I rowsort
SELECT DISTINCT - 73 * + + 82
----
-5986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8728
SELECT + ( - CASE 84 WHEN - + 21 - ( 36 ) + CAST( + 80 AS DECIMAL ) * + - 48 / 68 + + + 2 * - 41 * + - 36 THEN NULL WHEN ( CASE 66 WHEN 50 * 59 - + 55 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 74 ELSE 63 / 24 END ) THEN CASE 47 WHEN - 42 - - 75 THEN NULL WHEN + COUNT( * ) THEN + 48 END WHEN 12 THEN 26 ELSE 13 + 78 * 78 END )
----
-6097

skipif mysql # not compatible
query I rowsort label-8728
SELECT + ( - CASE 84 WHEN - + 21 - ( 36 ) + CAST ( + 80 AS REAL ) * + - 48 / 68 + + + 2 * - 41 * + - 36 THEN NULL WHEN ( CASE 66 WHEN 50 * 59 - + 55 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 74 ELSE 63 / 24 END ) THEN CASE 47 WHEN - 42 - - 75 THEN NULL WHEN + COUNT ( * ) THEN + 48 END WHEN 12 THEN 26 ELSE 13 + 78 * 78 END )
----
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT DISTINCT CASE 78 WHEN COUNT( * ) THEN NULL WHEN ( + + 72 ) THEN - 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT CASE 78 WHEN COUNT ( * ) THEN NULL WHEN ( + + 72 ) THEN - 77 END
----
NULL

query I rowsort
SELECT ALL 67 + 2 AS col0
----
69

query I rowsort
SELECT - 41 - + 63 + + - ( - 17 ) * + 93 + - 86 + - + 85 + - 41 + 48 * 89 - + 36 AS col0
----
5501

onlyif mysql # DIV for integer division: 
query I rowsort label-8732
SELECT 57 DIV + + 59 * - ( - 3 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8732
SELECT 57 / + + 59 * - ( - 3 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8733
SELECT - ( - MIN( + - 49 ) ) - - 39 - - - 15 DIV + 34 * - 75 + 24 + + + 78 AS col1, + 32 col2
----
92
32

skipif mysql # not compatible
query II rowsort label-8733
SELECT - ( - MIN ( + - 49 ) ) - - 39 - - - 15 / + 34 * - 75 + 24 + + + 78 AS col1, + 32 col2
----
92
32

query II rowsort
SELECT DISTINCT + 31, - 39 AS col1
----
31
-39

query I rowsort
SELECT ALL + 79 + - 75
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT DISTINCT 12 * - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT 12 * - COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL + 99 + - - 39 + SUM( + 97 ) AS col0
----
235

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL + 99 + - - 39 + SUM ( + 97 ) AS col0
----
235

onlyif mysql # aggregate syntax: 
query II rowsort label-8738
SELECT DISTINCT 56 + - ( - COUNT( * ) ) AS col0, - 72
----
57
-72

skipif mysql # not compatible
query II rowsort label-8738
SELECT DISTINCT 56 + - ( - COUNT ( * ) ) AS col0, - 72
----
57
-72

query I rowsort
SELECT ALL - 24 * - 11 AS col1
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT COALESCE ( - - 8, + COUNT( * ) - 90 - - 0, - 89 ) * COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-8740
SELECT COALESCE ( - - 8, + COUNT ( * ) - 90 - - 0, - 89 ) * COUNT ( * )
----
8

query I rowsort
SELECT DISTINCT AVG ( - 66 ) + + - 39 * + - CASE - + 39 WHEN - + 46 / + 73 THEN + 55 WHEN 89 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 78 * - 11 AS col1
----
-858

onlyif mysql # aggregate syntax: 
query II rowsort label-8743
SELECT + SUM( ALL + 42 ) * + 74 AS col0, 31 + - 44 * + 86 * - + 57 * + 3
----
3108
647095

skipif mysql # not compatible
query II rowsort label-8743
SELECT + SUM ( ALL + 42 ) * + 74 AS col0, 31 + - 44 * + 86 * - + 57 * + 3
----
3108
647095

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT ALL SUM( ALL - 98 ) * - 27 AS col1
----
2646

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL SUM ( ALL - 98 ) * - 27 AS col1
----
2646

onlyif mysql # DIV for integer division: 
query I rowsort label-8745
SELECT 5 DIV + 16
----
0

skipif mysql # not compatible
query I rowsort label-8745
SELECT 5 / + 16
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8746
SELECT DISTINCT 68 - 65 AS col1, - CAST( NULL AS SIGNED ) col2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8746
SELECT DISTINCT 68 - 65 AS col1, - CAST ( NULL AS INTEGER ) col2
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8747
SELECT ALL COUNT( * ) * + + 20, CAST( - 78 AS SIGNED ) + 88 + - + 17 AS col0
----
20
-7

skipif mysql # not compatible
query II rowsort label-8747
SELECT ALL COUNT ( * ) * + + 20, CAST ( - 78 AS INTEGER ) + 88 + - + 17 AS col0
----
20
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8748
SELECT DISTINCT + NULLIF ( + ( - + 3 ), - - COUNT( * ) ) DIV - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT + NULLIF ( + ( - + 3 ), - - COUNT ( * ) ) / - COUNT ( * ) AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8749
SELECT ALL 8 DIV + 49 * + 49 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL 8 / + 49 * + 49 * COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8750
SELECT 3 DIV - 74 AS col1, 21
----
0
21

skipif mysql # not compatible
query II rowsort label-8750
SELECT 3 / - 74 AS col1, 21
----
0
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT - COUNT( * ) * + + 22 + + CASE WHEN ( + 83 ) <> 13 THEN NULL ELSE 17 - - + COUNT( * ) - + 53 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT - COUNT ( * ) * + + 22 + + CASE WHEN ( + 83 ) <> 13 THEN NULL ELSE 17 - - + COUNT ( * ) - + 53 END col0
----
NULL

query I rowsort
SELECT 48 * - + 3 * + - 22
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT 51 * + - MAX( DISTINCT + - 97 )
----
4947

skipif mysql # not compatible
query I rowsort label-8753
SELECT 51 * + - MAX ( DISTINCT + - 97 )
----
4947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8754
SELECT ALL 60 * + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL 60 * + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 61 * 62 * 45 col2
----
170190

query I rowsort
SELECT ( - + 30 ) * + 13
----
-390

query I rowsort
SELECT 54 * 0 + - 25 AS col1
----
-25

query I rowsort
SELECT ALL 24 + + 41 + - 67
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT 51 + - 20 DIV + - 44
----
51

skipif mysql # not compatible
query I rowsort label-8759
SELECT 51 + - 20 / + - 44
----
51

query I rowsort
SELECT ALL ( + 1 ) + - 63 * - - ( + 86 ) AS col0
----
-5417

query I rowsort
SELECT ALL + 18 + - 9 + + + 39
----
48

query I rowsort
SELECT 57 + - 27
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8763
SELECT ALL CAST( NULL AS SIGNED ) * - COALESCE ( - - CAST( NULL AS SIGNED ), + + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL CAST ( NULL AS INTEGER ) * - COALESCE ( - - CAST ( NULL AS INTEGER ), + + 91 )
----
NULL

query I rowsort
SELECT ALL - + ( - - 44 ) + - 51 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ( 4 ) + - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8765
SELECT ( 4 ) + - COUNT ( * ) AS col1
----
3

query II rowsort
SELECT DISTINCT - ( + - 18 ) AS col2, + 38 AS col0
----
18
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT + 2 * - COUNT( * ) + + - 47 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-8767
SELECT + 2 * - COUNT ( * ) + + - 47 AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8768
SELECT - 72 + + CAST( + 91 AS SIGNED ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8768
SELECT - 72 + + CAST ( + 91 AS INTEGER ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL + - COUNT( + 25 ) + 27 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + - COUNT ( + 25 ) + 27 AS col1
----
26

query I rowsort
SELECT ALL - + 24 + - 37 + 67 * + 30 AS col0
----
1949

query I rowsort
SELECT 95 + - 16
----
79

query I rowsort
SELECT - + COALESCE ( + 16, 73 * + - 70, + 20 * 58 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8773
SELECT 84 - NULLIF ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8773
SELECT 84 - NULLIF ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT - SUM( + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-8774
SELECT - SUM ( + 63 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8775
SELECT - CAST( - 51 AS DECIMAL ) + CASE + 28 WHEN 27 THEN NULL ELSE - 97 + - 59 - + 81 / + - COUNT( * ) * + 16 END + + + 25 + + - 18 * - COUNT( * ) * 27 / 91 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT - CAST ( - 51 AS REAL ) + CASE + 28 WHEN 27 THEN NULL ELSE - 97 + - 59 - + 81 / + - COUNT ( * ) * + 16 END + + + 25 + + - 18 * - COUNT ( * ) * 27 / 91 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - ( + 60 ) AS col0
----
-60

query I rowsort
SELECT ALL - 75 + + ( + 91 ) AS col2
----
16

query I rowsort
SELECT ALL - - 19 * 73
----
1387

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL - 95 - + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - 95 - + COUNT ( * )
----
-96

query I rowsort
SELECT - - 89 + + 54 * COALESCE ( 48, 57 )
----
2681

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL + MAX( 83 ) * - 20
----
-1660

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL + MAX ( 83 ) * - 20
----
-1660

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT DISTINCT - + 69 * - 81 + 6 + - COUNT( * ) + - 48 * - 4 col0
----
5786

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT - + 69 * - 81 + 6 + - COUNT ( * ) + - 48 * - 4 col0
----
5786

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL + + COALESCE ( + 13, - 97 * - 95 - - 0 + + 47 * + MAX( DISTINCT 71 ) * ( - 21 ) ) * + + 75 + - + COUNT( * ) * - + 27 + - + COUNT( * ) + - CASE - 9 + - 12 WHEN - 42 THEN 19 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL + + COALESCE ( + 13, - 97 * - 95 - - 0 + + 47 * + MAX ( DISTINCT 71 ) * ( - 21 ) ) * + + 75 + - + COUNT ( * ) * - + 27 + - + COUNT ( * ) + - CASE - 9 + - 12 WHEN - 42 THEN 19 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8784
SELECT - COUNT( * ) * 0, + ( + 15 ) * - 88 AS col2
----
0
-1320

skipif mysql # not compatible
query II rowsort label-8784
SELECT - COUNT ( * ) * 0, + ( + 15 ) * - 88 AS col2
----
0
-1320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8785
SELECT - - AVG ( ALL + ( 40 ) ) + + - 50 - - 81 * - 6 + + COUNT( * ) + - CASE + + 13 WHEN COUNT( ALL 88 ) * + COALESCE ( + 40, - 42 * CASE + 72 * + COALESCE ( 36, 84 + COUNT( * ), - 51 * + 28, 88 ) + 21 WHEN 83 THEN + 93 END ) + + CAST( NULL AS SIGNED ) * ( - 39 * - CAST( CASE 0 WHEN 36 THEN 52 WHEN - 5 THEN NULL END * 19 AS SIGNED ) ) THEN COUNT( * ) * - 42 END + 36 * 34 * - 5 * 21 * 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT - - AVG ( ALL + ( 40 ) ) + + - 50 - - 81 * - 6 + + COUNT ( * ) + - CASE + + 13 WHEN COUNT ( ALL 88 ) * + COALESCE ( + 40, - 42 * CASE + 72 * + COALESCE ( 36, 84 + COUNT ( * ), - 51 * + 28, 88 ) + 21 WHEN 83 THEN + 93 END ) + + CAST ( NULL AS INTEGER ) * ( - 39 * - CAST ( CASE 0 WHEN 36 THEN 52 WHEN - 5 THEN NULL END * 19 AS INTEGER ) ) THEN COUNT ( * ) * - 42 END + 36 * 34 * - 5 * 21 * 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8786
SELECT - + 12 + 15 AS col2, COUNT( * )
----
3
1

skipif mysql # not compatible
query II rowsort label-8786
SELECT - + 12 + 15 AS col2, COUNT ( * )
----
3
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8787
SELECT + - CAST( - - 33 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-8787
SELECT + - CAST ( - - 33 AS INTEGER )
----
-33

query I rowsort
SELECT DISTINCT + ( - - 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT + 9 * - COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8789
SELECT + 9 * - COUNT ( * ) AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8790
SELECT ALL CAST( NULL AS SIGNED ) * - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL CAST ( NULL AS INTEGER ) * - 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8791
SELECT - 17 * 56 + 52 + - MIN( + 43 ) DIV - 64 * - 74
----
-900

skipif mysql # not compatible
query I rowsort label-8791
SELECT - 17 * 56 + 52 + - MIN ( + 43 ) / - 64 * - 74
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT ALL + COUNT( - - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL + COUNT ( - - 48 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8793
SELECT 48 DIV 29 + + 46 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8793
SELECT 48 / 29 + + 46 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL ( - - COUNT( * ) ) * - 87 + + + 72
----
-15

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL ( - - COUNT ( * ) ) * - 87 + + + 72
----
-15

query I rowsort
SELECT - 73 * 96 * 79
----
-553632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8796
SELECT + COUNT( - 1 ) + 64 + + CAST( - - COUNT( * ) AS SIGNED ) * 28 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8796
SELECT + COUNT ( - 1 ) + 64 + + CAST ( - - COUNT ( * ) AS INTEGER ) * 28 AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8797
SELECT ALL 84 * 56 DIV COUNT( * ) * NULLIF ( + - 84, + 81 + 86 + + - COUNT( * ) + - - 59 DIV - - 7 ) AS col2
----
-395136

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL 84 * 56 / COUNT ( * ) * NULLIF ( + - 84, + 81 + 86 + + - COUNT ( * ) + - - 59 / - - 7 ) AS col2
----
-395136

query I rowsort
SELECT NULLIF ( + 86, + + ( 73 ) - - 32 + + 23 + + 56 * + ( - 8 ) ) AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT + AVG ( + ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT + AVG ( + ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8800
SELECT + 36 * + 6 * - 93 * 17 + + 11 DIV 14 * 57
----
-341496

skipif mysql # not compatible
query I rowsort label-8800
SELECT + 36 * + 6 * - 93 * 17 + + 11 / 14 * 57
----
-341496

query I rowsort
SELECT DISTINCT + 93 col0
----
93

query I rowsort
SELECT DISTINCT 66 * 77 * - 40 col1
----
-203280

query I rowsort
SELECT DISTINCT 83 * + 48 AS col2
----
3984

onlyif mysql # DIV for integer division: 
query I rowsort label-8804
SELECT + 95 DIV + - 27
----
-3

skipif mysql # not compatible
query I rowsort label-8804
SELECT + 95 / + - 27
----
-3

query I rowsort
SELECT + 13 * - + ( 15 )
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8806
SELECT ALL + ( + 69 ) * + - ( + 22 ) + + COALESCE ( - 31, 55 * - 70 + + - ( - 67 ), + + 11 ) + + COALESCE ( + - CAST( NULL AS SIGNED ), 79 * + - COUNT( * ) ) AS col1
----
-1628

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + ( + 69 ) * + - ( + 22 ) + + COALESCE ( - 31, 55 * - 70 + + - ( - 67 ), + + 11 ) + + COALESCE ( + - CAST ( NULL AS INTEGER ), 79 * + - COUNT ( * ) ) AS col1
----
-1628

query I rowsort
SELECT + ( + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT SUM( + + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-8808
SELECT SUM ( + + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT + CASE - - 46 WHEN - + 75 THEN + COUNT( * ) / 57 WHEN 63 THEN NULL WHEN + 34 THEN + COALESCE ( - 83, + ( + + 24 ) ) - + 92 / 93 * + + 54 * + 73 END / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT + CASE - - 46 WHEN - + 75 THEN + COUNT ( * ) / 57 WHEN 63 THEN NULL WHEN + 34 THEN + COALESCE ( - 83, + ( + + 24 ) ) - + 92 / 93 * + + 54 * + 73 END / COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL - 0 * + COUNT( * ) * + 71 + + 96 col1
----
96

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL - 0 * + COUNT ( * ) * + 71 + + 96 col1
----
96

query I rowsort
SELECT + + 9 - - - 77 AS col0
----
-68

query I rowsort
SELECT ALL 40 + - + 53 + 27 * - + 48 + 94 col2
----
-1215

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT + + 60 DIV - + 57
----
-1

skipif mysql # not compatible
query I rowsort label-8813
SELECT + + 60 / - + 57
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8814
SELECT ALL COALESCE ( + 67, + - COUNT( * ) ), ( + + 34 ) DIV 18 AS col1
----
67
1

skipif mysql # not compatible
query II rowsort label-8814
SELECT ALL COALESCE ( + 67, + - COUNT ( * ) ), ( + + 34 ) / 18 AS col1
----
67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT DISTINCT + 90 * SUM( - - 10 ) + - COUNT( * ) * - 64 AS col2
----
964

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT + 90 * SUM ( - - 10 ) + - COUNT ( * ) * - 64 AS col2
----
964

query I rowsort
SELECT - COALESCE ( 22, - - 17 * 18 )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8817
SELECT ALL + CAST( - 29 AS SIGNED ) - + 30 AS col2, 6
----
-59
6

skipif mysql # not compatible
query II rowsort label-8817
SELECT ALL + CAST ( - 29 AS INTEGER ) - + 30 AS col2, 6
----
-59
6

query I rowsort
SELECT - + 33 col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT DISTINCT + COUNT( * ) * + 58 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT + COUNT ( * ) * + 58 AS col0
----
58

query I rowsort
SELECT + 12 * 98 AS col0
----
1176

query I rowsort
SELECT - - 2 + + CASE - CASE 30 WHEN - 42 THEN 6 END WHEN - - 50 THEN + 63 WHEN - 86 THEN NULL END * + 35 * + 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL + COUNT( * ) - 28 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL + COUNT ( * ) - 28 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-8823
SELECT - - 58 - COUNT( * ) - - 81 AS col1, 53 AS col1
----
138
53

skipif mysql # not compatible
query II rowsort label-8823
SELECT - - 58 - COUNT ( * ) - - 81 AS col1, 53 AS col1
----
138
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT - - 52 * COUNT( - + 44 ) + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-8824
SELECT - - 52 * COUNT ( - + 44 ) + - COUNT ( * )
----
51

query I rowsort
SELECT - 18 + + 36 AS col2
----
18

query I rowsort
SELECT DISTINCT - - 42 * + ( - 1 ) * 42 * + 1 col2
----
-1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8827
SELECT ALL - COUNT( * ) DIV - 2 * - 62
----
0

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL - COUNT ( * ) / - 2 * - 62
----
0

query I rowsort
SELECT ALL - 16 * - 16
----
256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8829
SELECT ALL CAST( - 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL CAST ( - 9 AS INTEGER )
----
-9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8830
SELECT DISTINCT CAST( NULL AS SIGNED ), 39 + + CAST( NULL AS DECIMAL ) + + 54
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8830
SELECT DISTINCT CAST ( NULL AS INTEGER ), 39 + + CAST ( NULL AS REAL ) + + 54
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8831
SELECT 62 DIV 9 - COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8831
SELECT 62 / 9 - COUNT ( * ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8832
SELECT - 73 DIV - COALESCE ( - - CASE - COUNT( * ) WHEN - + ( + CAST( NULL AS SIGNED ) ) THEN NULL ELSE COUNT( * ) * + + 14 * - + 61 + + 20 * MAX( DISTINCT + 70 ) * - COUNT( * ) END, - + COUNT( * ) DIV - 11 * + 88 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8832
SELECT - 73 / - COALESCE ( - - CASE - COUNT ( * ) WHEN - + ( + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE COUNT ( * ) * + + 14 * - + 61 + + 20 * MAX ( DISTINCT + 70 ) * - COUNT ( * ) END, - + COUNT ( * ) / - 11 * + 88 ) col2
----
0

query I rowsort
SELECT - 79 * + 11
----
-869

onlyif mysql # aggregate syntax: 
query II rowsort label-8834
SELECT ALL + COUNT( 86 ) AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8834
SELECT ALL + COUNT ( 86 ) AS col0, COUNT ( * )
----
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8835
SELECT 81 DIV + 77 - - + ( 18 ) AS col1, 66 AS col0
----
19
66

skipif mysql # not compatible
query II rowsort label-8835
SELECT 81 / + 77 - - + ( 18 ) AS col1, 66 AS col0
----
19
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT DISTINCT + CASE MAX( - 68 ) WHEN - 63 THEN + 19 * + + 79 + - 42 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT + CASE MAX ( - 68 ) WHEN - 63 THEN + 19 * + + 79 + - 42 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8837
SELECT CAST( + 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-8837
SELECT CAST ( + 12 AS INTEGER )
----
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8838
SELECT ALL - CAST( 87 AS SIGNED ) DIV 86 + - 59 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL - CAST ( 87 AS INTEGER ) / 86 + - 59 AS col0
----
-60

query I rowsort
SELECT - 43 * + 13 * + 31
----
-17329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8840
SELECT ALL - 3 DIV 14 + + - COUNT( * ) * ( - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL - 3 / 14 + + - COUNT ( * ) * ( - 59 )
----
59

query I rowsort
SELECT ( 61 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8842
SELECT ALL 31 / - CAST( NULL AS SIGNED ) + - 97 * + 24, + 9 + + + ( - 1 ) AS col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-8842
SELECT ALL 31 / - CAST ( NULL AS INTEGER ) + - 97 * + 24, + 9 + + + ( - 1 ) AS col1
----
NULL
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT + COUNT( * ) - ( + 36 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-8843
SELECT + COUNT ( * ) - ( + 36 ) AS col1
----
-35

query I rowsort
SELECT ALL + ( + 92 ) AS col2
----
92

query I rowsort
SELECT + ( ( + - 2 ) )
----
-2

query I rowsort
SELECT - 81 * + 26 + - + 80
----
-2186

query I rowsort
SELECT + ( - + 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT + - CASE + 34 WHEN + 32 THEN NULL WHEN - 42 * - - COUNT( * ) THEN + ( + - 53 ) WHEN - 6 THEN NULL ELSE NULL END * 94 + - - ( + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT + - CASE + 34 WHEN + 32 THEN NULL WHEN - 42 * - - COUNT ( * ) THEN + ( + - 53 ) WHEN - 6 THEN NULL ELSE NULL END * 94 + - - ( + 80 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT ALL ( - CASE - + 30 WHEN COUNT( * ) - + 1 THEN + - 12 + 87 ELSE NULL END ) * COALESCE ( - 95, 37 * + COUNT( ALL 29 ) * + NULLIF ( - - 32, + 58 ) * 49 * - ( 69 ) + 94, - 38 ) + - COALESCE ( + 17 + 98 * 64, CASE + 82 WHEN 75 THEN 76 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL ( - CASE - + 30 WHEN COUNT ( * ) - + 1 THEN + - 12 + 87 ELSE NULL END ) * COALESCE ( - 95, 37 * + COUNT ( ALL 29 ) * + NULLIF ( - - 32, + 58 ) * 49 * - ( 69 ) + 94, - 38 ) + - COALESCE ( + 17 + 98 * 64, CASE + 82 WHEN 75 THEN 76 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT DISTINCT + + CAST( + + 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT + + CAST ( + + 21 AS INTEGER )
----
21

query I rowsort
SELECT ALL 60 - + + 70 AS col1
----
-10

query I rowsort
SELECT - 43 + - 13
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8853
SELECT ALL COALESCE ( - + COALESCE ( + CAST( NULL AS SIGNED ), - - CAST( NULL AS SIGNED ) + 39 - 92 ), + 51 + 44 + + 29, 66 * COUNT( * ) - COUNT( * ) )
----
124

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL COALESCE ( - + COALESCE ( + CAST ( NULL AS INTEGER ), - - CAST ( NULL AS INTEGER ) + 39 - 92 ), + 51 + 44 + + 29, 66 * COUNT ( * ) - COUNT ( * ) )
----
124

query I rowsort
SELECT - 57 + - 95
----
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-8855
SELECT DISTINCT + 26 DIV 36 DIV + - 50
----
0

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT + 26 / 36 / + - 50
----
0

query I rowsort
SELECT ALL + ( + 3 ) AS col1
----
3

query I rowsort
SELECT + 10 * + 76
----
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT - CAST( + 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-8858
SELECT - CAST ( + 67 AS INTEGER )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8859
SELECT ALL 63 * + + 84, COUNT( * ) * - CAST( + CASE 58 WHEN + CASE - - 97 WHEN + - 93 * 1 THEN COUNT( * ) ELSE + 91 END THEN + + ( - + COUNT( * ) ) END AS SIGNED ) * - NULLIF ( 31, - 72 ) + COUNT( * ) AS col0
----
5292
NULL

skipif mysql # not compatible
query II rowsort label-8859
SELECT ALL 63 * + + 84, COUNT ( * ) * - CAST ( + CASE 58 WHEN + CASE - - 97 WHEN + - 93 * 1 THEN COUNT ( * ) ELSE + 91 END THEN + + ( - + COUNT ( * ) ) END AS INTEGER ) * - NULLIF ( 31, - 72 ) + COUNT ( * ) AS col0
----
5292
NULL

query I rowsort
SELECT 73 + - 7
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL ( - 86 ) + + - COALESCE ( - + 61, COUNT( * ), - 60 - + - COUNT( * ) * 70 + NULLIF ( - COALESCE ( + 1, - 5 ), + 71 * - 90 + - ( - - NULLIF ( NULLIF ( - 40, + 99 ), - 29 * - 0 ) ) * AVG ( - 83 ) + 3 / 52 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL ( - 86 ) + + - COALESCE ( - + 61, COUNT ( * ), - 60 - + - COUNT ( * ) * 70 + NULLIF ( - COALESCE ( + 1, - 5 ), + 71 * - 90 + - ( - - NULLIF ( NULLIF ( - 40, + 99 ), - 29 * - 0 ) ) * AVG ( - 83 ) + 3 / 52 ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT COUNT( * ) + + ( - 35 ) + 31 * - 48 AS col2
----
-1522

skipif mysql # not compatible
query I rowsort label-8863
SELECT COUNT ( * ) + + ( - 35 ) + 31 * - 48 AS col2
----
-1522

query I rowsort
SELECT 32 + + 38
----
70

query I rowsort
SELECT ALL ( 24 ) + + 13
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT 86 * + - COUNT( * ) + - 29 AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-8866
SELECT 86 * + - COUNT ( * ) + - 29 AS col1
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT ALL + CAST( - 12 AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + CAST ( - 12 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( - + 59 ) AS col2
----
59

query I rowsort
SELECT ALL + 86 + 99 - 40 * + - 92
----
3865

query I rowsort
SELECT 76 + - + 43 * + - 6 + + 39
----
373

onlyif mysql # DIV for integer division: 
query I rowsort label-8871
SELECT ALL - 23 + + 3 DIV + + 72
----
-23

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL - 23 + + 3 / + + 72
----
-23

query I rowsort
SELECT DISTINCT + 68 + 79 AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL - ( - ( - + MIN( ALL - - 55 ) ) )
----
-55

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL - ( - ( - + MIN ( ALL - - 55 ) ) )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8874
SELECT DISTINCT + 65 - + 63 col1, 48 DIV MAX( ALL ( - 7 ) ) AS col1
----
2
-6

skipif mysql # not compatible
query II rowsort label-8874
SELECT DISTINCT + 65 - + 63 col1, 48 / MAX ( ALL ( - 7 ) ) AS col1
----
2
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT ALL + COUNT( * ) - - - 44 + - 91 AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL + COUNT ( * ) - - - 44 + - 91 AS col2
----
-134

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8876
SELECT - CASE + + 57 WHEN - 77 THEN NULL WHEN + - CAST( NULL AS DECIMAL ) THEN + 82 / - 89 + - + 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT - CASE + + 57 WHEN - 77 THEN NULL WHEN + - CAST ( NULL AS REAL ) THEN + 82 / - 89 + - + 84 END
----
NULL

query I rowsort
SELECT ALL - - 88 AS col2
----
88

query I rowsort
SELECT 70 * 46
----
3220

onlyif mysql # aggregate syntax: 
query II rowsort label-8879
SELECT ALL + COUNT( * ) * - + COUNT( * ) AS col1, 28 + 21 AS col1
----
-1
49

skipif mysql # not compatible
query II rowsort label-8879
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col1, 28 + 21 AS col1
----
-1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT + ( + NULLIF ( + 26, COUNT( * ) - + 86 ) )
----
26

skipif mysql # not compatible
query I rowsort label-8880
SELECT + ( + NULLIF ( + 26, COUNT ( * ) - + 86 ) )
----
26

query II rowsort
SELECT + + ( - + 89 ) col0, + 76
----
-89
76

query I rowsort
SELECT + + 47 col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8883
SELECT CASE + 76 WHEN + 63 + 26 * - ( - CAST( NULL AS DECIMAL ) ) + - 9 + + + 53 - - 4 THEN NULL WHEN + 19 * + 49 - + 18 + - 84 / COALESCE ( 49, COUNT( * ) / 66 * 30, 31 ) THEN NULL ELSE 89 * 46 END
----
4094

skipif mysql # not compatible
query I rowsort label-8883
SELECT CASE + 76 WHEN + 63 + 26 * - ( - CAST ( NULL AS REAL ) ) + - 9 + + + 53 - - 4 THEN NULL WHEN + 19 * + 49 - + 18 + - 84 / COALESCE ( 49, COUNT ( * ) / 66 * 30, 31 ) THEN NULL ELSE 89 * 46 END
----
4094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8884
SELECT ALL + - 25 * + 39 * + NULLIF ( + - 97, + 46 ) * - COUNT( ALL + 9 ) * - CASE + - 73 WHEN + CAST( NULL AS SIGNED ) THEN - CAST( NULL AS DECIMAL ) WHEN NULLIF ( + + 43, + COUNT( * ) * + 24 ) THEN NULL WHEN - ( 31 ) THEN + 75 ELSE NULL END + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + - 25 * + 39 * + NULLIF ( + - 97, + 46 ) * - COUNT ( ALL + 9 ) * - CASE + - 73 WHEN + CAST ( NULL AS INTEGER ) THEN - CAST ( NULL AS REAL ) WHEN NULLIF ( + + 43, + COUNT ( * ) * + 24 ) THEN NULL WHEN - ( 31 ) THEN + 75 ELSE NULL END + 2 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 33, + 19 )
----
33

query I rowsort
SELECT DISTINCT - 0 col2
----
0

query I rowsort
SELECT DISTINCT 19 AS col0
----
19

query I rowsort
SELECT DISTINCT - 90 col0
----
-90

query I rowsort
SELECT ALL + + 58 + + 90 + + 70 AS col0
----
218

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT - MIN( + - 77 ) + - 37
----
40

skipif mysql # not compatible
query I rowsort label-8890
SELECT - MIN ( + - 77 ) + - 37
----
40

query I rowsort
SELECT DISTINCT 36 + + + 19 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT ( + + COUNT( * ) ) * - 51 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-8892
SELECT ( + + COUNT ( * ) ) * - 51 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8893
SELECT ALL ( - 30 ) + 83 AS col1, + COALESCE ( + SUM( + 71 ), CASE - 99 WHEN + COUNT( * ) + 27 THEN NULL WHEN + 46 + 93 THEN + COUNT( * ) ELSE NULL END, 70 * - 53 + - NULLIF ( + 39, + 33 ) + - NULLIF ( NULLIF ( COUNT( * ), 73 + + 71 ), MIN( DISTINCT 75 ) ) ) DIV + 94
----
53
0

skipif mysql # not compatible
query II rowsort label-8893
SELECT ALL ( - 30 ) + 83 AS col1, + COALESCE ( + SUM ( + 71 ), CASE - 99 WHEN + COUNT ( * ) + 27 THEN NULL WHEN + 46 + 93 THEN + COUNT ( * ) ELSE NULL END, 70 * - 53 + - NULLIF ( + 39, + 33 ) + - NULLIF ( NULLIF ( COUNT ( * ), 73 + + 71 ), MIN ( DISTINCT 75 ) ) ) / + 94
----
53
0

query I rowsort
SELECT DISTINCT 34 AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8895
SELECT ALL CAST( ( - + 89 ) AS DECIMAL ) + CAST( NULL AS SIGNED ) + - + COUNT( - 44 ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL CAST ( ( - + 89 ) AS REAL ) + CAST ( NULL AS INTEGER ) + - + COUNT ( - 44 ) * 76
----
NULL

query I rowsort
SELECT COALESCE ( - + 53, 46, 89, - 96 ) * + ( + + 11 ) AS col1
----
-583

query II rowsort
SELECT ALL 40 AS col1, + 57 * - 78
----
40
-4446

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT COUNT( * ) * 96 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8898
SELECT COUNT ( * ) * 96 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT ( 70 ) + - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-8899
SELECT ( 70 ) + - - COUNT ( * )
----
71

query II rowsort
SELECT DISTINCT 45 AS col2, 86
----
45
86

query I rowsort
SELECT ALL 31 + - + 50 * + + 36
----
-1769

onlyif mysql # aggregate syntax: 
query II rowsort label-8902
SELECT DISTINCT 61 + - 19 + - 53, + 71 * + + COUNT( * ) AS col1
----
-11
71

skipif mysql # not compatible
query II rowsort label-8902
SELECT DISTINCT 61 + - 19 + - 53, + 71 * + + COUNT ( * ) AS col1
----
-11
71

query I rowsort
SELECT DISTINCT NULLIF ( 24, + - 76 * + - 65 ) * + - 75 AS col1
----
-1800

query I rowsort
SELECT COALESCE ( - 52, - - 59, + 8 ) - - 26 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT + CASE - COALESCE ( - - COUNT( * ), + + 0, + COALESCE ( + MIN( ALL 36 ), 51 - + 79, + + 10 ) - 28 / + 89 * - 68 ) WHEN - 87 / + 3 THEN - 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT + CASE - COALESCE ( - - COUNT ( * ), + + 0, + COALESCE ( + MIN ( ALL 36 ), 51 - + 79, + + 10 ) - 28 / + 89 * - 68 ) WHEN - 87 / + 3 THEN - 78 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL 72 * - - 0 - + SUM( 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL 72 * - - 0 - + SUM ( 29 )
----
-29

query II rowsort
SELECT DISTINCT + 8 col0, 90 AS col1
----
8
90

query I rowsort
SELECT ALL + + 29 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT - + 97 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT - + 97 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8910
SELECT ALL + COUNT( ALL + 88 ) DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + COUNT ( ALL + 88 ) / - 74
----
0

query I rowsort
SELECT DISTINCT + 70 * + 67 AS col0
----
4690

query I rowsort
SELECT 12 * - 61 + + 46 * + 13
----
-134

query I rowsort
SELECT + + 72 col1
----
72

query I rowsort
SELECT + + ( - + ( 51 ) ) * 87
----
-4437

query I rowsort
SELECT - 78 + + 18
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8916
SELECT 15, NULLIF ( 91, + - 69 ) + + + 23 DIV - + ( COUNT( * ) ) AS col0
----
15
68

skipif mysql # not compatible
query II rowsort label-8916
SELECT 15, NULLIF ( 91, + - 69 ) + + + 23 / - + ( COUNT ( * ) ) AS col0
----
15
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8917
SELECT - 81 * + CAST( NULL AS SIGNED ) - + MAX( 8 ) - - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8917
SELECT - 81 * + CAST ( NULL AS INTEGER ) - + MAX ( 8 ) - - 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT 71 * - 90 + + ( ( + + COUNT( * ) ) ) * 75 AS col1
----
-6315

skipif mysql # not compatible
query I rowsort label-8918
SELECT 71 * - 90 + + ( ( + + COUNT ( * ) ) ) * 75 AS col1
----
-6315

onlyif mysql # DIV for integer division: 
query I rowsort label-8919
SELECT - + 54 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-8919
SELECT - + 54 / + 77
----
0

query I rowsort
SELECT DISTINCT + ( 24 ) AS col0
----
24

query II rowsort
SELECT DISTINCT + 59 AS col2, + 50
----
59
50

query I rowsort
SELECT DISTINCT + 57 + - NULLIF ( + 89, 50 ) AS col1
----
-32

query I rowsort
SELECT ALL + 20 col1
----
20

query I rowsort
SELECT - 55 + 18 AS col1
----
-37

query I rowsort
SELECT ALL + 24 + 72 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT + 64 * NULLIF ( - COUNT( DISTINCT + 21 ), - 83 ) + - 99 + 52
----
-111

skipif mysql # not compatible
query I rowsort label-8926
SELECT + 64 * NULLIF ( - COUNT ( DISTINCT + 21 ), - 83 ) + - 99 + 52
----
-111

query I rowsort
SELECT + 68 + CASE - 83 WHEN - 20 THEN NULL WHEN - 52 * 12 THEN NULL WHEN 59 + - - 70 THEN - - 75 ELSE - - 26 END AS col2
----
94

query I rowsort
SELECT DISTINCT + 12 * + 63 * - - 95 AS col2
----
71820

query I rowsort
SELECT ALL ( - 69 ) AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT - 68 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT - 68 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 26 * - 87
----
2262

query I rowsort
SELECT - CASE - ( - 60 ) WHEN 0 * - 0 THEN - 18 END col2
----
NULL

query I rowsort
SELECT DISTINCT 97 + + 72
----
169

query I rowsort
SELECT DISTINCT 56 + + - 12 col1
----
44

query I rowsort
SELECT DISTINCT + NULLIF ( 40, + 87 / - - 56 ) * + - 96
----
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT - MIN( ALL 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8936
SELECT - MIN ( ALL 27 ) AS col2
----
-27

query I rowsort
SELECT - 78 + 10
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT DISTINCT 89 DIV + - 70
----
-1

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT 89 / + - 70
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT + MIN( DISTINCT + 46 ) + - COALESCE ( 54, 60 * + - ( - 30 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-8939
SELECT + MIN ( DISTINCT + 46 ) + - COALESCE ( 54, 60 * + - ( - 30 ) )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8940
SELECT + ( 28 ) - 64 - - + 70 / SUM( ALL - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT + ( 28 ) - 64 - - + 70 / SUM ( ALL - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 19 * + 14
----
266

onlyif mysql # DIV for integer division: 
query I rowsort label-8942
SELECT + 30 + + - 48 DIV + - COALESCE ( 93, 89 + - + ( - 96 ) + - 10 )
----
30

skipif mysql # not compatible
query I rowsort label-8942
SELECT + 30 + + - 48 / + - COALESCE ( 93, 89 + - + ( - 96 ) + - 10 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8943
SELECT ALL 0 DIV - COUNT( * ) - + - 1 + + 52 * + 40 * COUNT( * ) * - 50 * - + 24 * 52 DIV + COUNT( * )
----
129792001

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL 0 / - COUNT ( * ) - + - 1 + + 52 * + 40 * COUNT ( * ) * - 50 * - + 24 * 52 / + COUNT ( * )
----
129792001

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ALL COUNT( * ) * + + COALESCE ( COUNT( * ), + 83 )
----
1

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL COUNT ( * ) * + + COALESCE ( COUNT ( * ), + 83 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8945
SELECT + CASE + 30 WHEN - CAST( NULL AS SIGNED ) * COUNT( * ) THEN - - 91 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT + CASE + 30 WHEN - CAST ( NULL AS INTEGER ) * COUNT ( * ) THEN - - 91 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8946
SELECT + 18 * 56 + 57 DIV - + MIN( + 11 ) col0
----
1003

skipif mysql # not compatible
query I rowsort label-8946
SELECT + 18 * 56 + 57 / - + MIN ( + 11 ) col0
----
1003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT ALL + 68 / 3 - - 80 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL + 68 / 3 - - 80 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 79 * - 68
----
-5372

query I rowsort
SELECT DISTINCT + + 88
----
88

query I rowsort
SELECT + + CASE - - 97 WHEN + 17 THEN - AVG ( ALL + + 63 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + ( + 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT - - COUNT( * ) * + 38 * + 65 * + 18 + - + 0 col2
----
44460

skipif mysql # not compatible
query I rowsort label-8952
SELECT - - COUNT ( * ) * + 38 * + 65 * + 18 + - + 0 col2
----
44460

query I rowsort
SELECT DISTINCT + 3 * - 55 + - 94 + ( 16 )
----
-243

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8954
SELECT ALL + + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL + + ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL - 30 * - NULLIF ( 82, 62 ) AS col2
----
2460

query I rowsort
SELECT + - 25 * + + 2 AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT ALL + 17 * + CAST( NULL AS SIGNED ) + - - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL + 17 * + CAST ( NULL AS INTEGER ) + - - 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT DISTINCT + NULLIF ( + - COUNT( * ), + ( + - 69 ) / + AVG ( - 85 ) * + 32 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT + NULLIF ( + - COUNT ( * ), + ( + - 69 ) / + AVG ( - 85 ) * + 32 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT DISTINCT - + COUNT( * ) * + 47 + + 90
----
43

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT - + COUNT ( * ) * + 47 + + 90
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL + - MIN( DISTINCT 82 ) * - 61 + - COUNT( + + 77 ) col0
----
5001

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL + - MIN ( DISTINCT 82 ) * - 61 + - COUNT ( + + 77 ) col0
----
5001

query I rowsort
SELECT + - 89 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT + 69 * + 37 + - COUNT( * ) col0
----
2552

skipif mysql # not compatible
query I rowsort label-8962
SELECT + 69 * + 37 + - COUNT ( * ) col0
----
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT - COUNT( * ) * + - 66 + - 56
----
10

skipif mysql # not compatible
query I rowsort label-8963
SELECT - COUNT ( * ) * + - 66 + - 56
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT CASE - + 60 WHEN + + ( 26 ) THEN NULL ELSE 40 + + COUNT( * ) END
----
41

skipif mysql # not compatible
query I rowsort label-8964
SELECT CASE - + 60 WHEN + + ( 26 ) THEN NULL ELSE 40 + + COUNT ( * ) END
----
41

query I rowsort
SELECT DISTINCT + 60 * - 94 + + - 86
----
-5726

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8966
SELECT + - CAST( + - 69 AS DECIMAL ) - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT + - CAST ( + - 69 AS REAL ) - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( + 17, 86 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8968
SELECT ALL - CASE - 49 WHEN + - 39 * - - CAST( NULL AS SIGNED ) + - + 69 THEN + CAST( NULL AS SIGNED ) * 94 * + 3 + + 30 WHEN 75 THEN + 86 WHEN + CAST( + CAST( + 2 AS SIGNED ) AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL - CASE - 49 WHEN + - 39 * - - CAST ( NULL AS INTEGER ) + - + 69 THEN + CAST ( NULL AS INTEGER ) * 94 * + 3 + + 30 WHEN 75 THEN + 86 WHEN + CAST ( + CAST ( + 2 AS INTEGER ) AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8969
SELECT ALL - 16 * + 36 + + + CAST( NULL AS SIGNED ) / + 73 * + - 97 + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL - 16 * + 36 + + + CAST ( NULL AS INTEGER ) / + 73 * + - 97 + 57 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8970
SELECT - 82 * - 57 - 88 DIV + COALESCE ( - + 96, + 22 ) AS col0
----
4674

skipif mysql # not compatible
query I rowsort label-8970
SELECT - 82 * - 57 - 88 / + COALESCE ( - + 96, + 22 ) AS col0
----
4674

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT - COUNT( * ) * + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8971
SELECT - COUNT ( * ) * + + COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8972
SELECT ALL CAST( + CASE + 56 WHEN + - 78 THEN + - CAST( + 91 AS SIGNED ) * 64 + COUNT( * ) END AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL CAST ( + CASE + 56 WHEN + - 78 THEN + - CAST ( + 91 AS INTEGER ) * 64 + COUNT ( * ) END AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8973
SELECT DISTINCT - 45 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT - 45 / + 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT ALL + ( - - 63 ) * - 16 * - - COUNT( * ) * - - 8 * + 0 * - - 60 + - CASE + + ( - 16 ) WHEN + + 90 * 10 THEN NULL WHEN + + 3 THEN 21 + - 76 + - 53 + 14 + + + 29 * + 45 + + COUNT( ALL - 97 ) * - 69 * + 23 END * 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL + ( - - 63 ) * - 16 * - - COUNT ( * ) * - - 8 * + 0 * - - 60 + - CASE + + ( - 16 ) WHEN + + 90 * 10 THEN NULL WHEN + + 3 THEN 21 + - 76 + - 53 + 14 + + + 29 * + 45 + + COUNT ( ALL - 97 ) * - 69 * + 23 END * 59 AS col0
----
NULL

query I rowsort
SELECT - 97 * - + 79
----
7663

query I rowsort
SELECT ALL - 27 * + 40
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL + 72 - + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + 72 - + COUNT ( * ) AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8978
SELECT ALL CAST( + 96 AS SIGNED ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL CAST ( + 96 AS INTEGER ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT - 37 * - COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8979
SELECT - 37 * - COUNT ( * ) AS col1
----
37

query I rowsort
SELECT + 43 * + ( - 92 ) AS col0
----
-3956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8981
SELECT - COUNT( * ) + COUNT( * ) * - 3 AS col0, + ( + + 85 ) + - CASE - ( - ( - 1 ) ) WHEN - - ( - MIN( ALL + + 6 ) ) * - 42 * - COUNT( * ) THEN + 17 WHEN + + CASE - 27 WHEN CAST( 69 AS DECIMAL ) THEN + + 74 / 23 - + 16 END THEN NULL ELSE CAST( NULL AS SIGNED ) END * + 72
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-8981
SELECT - COUNT ( * ) + COUNT ( * ) * - 3 AS col0, + ( + + 85 ) + - CASE - ( - ( - 1 ) ) WHEN - - ( - MIN ( ALL + + 6 ) ) * - 42 * - COUNT ( * ) THEN + 17 WHEN + + CASE - 27 WHEN CAST ( 69 AS REAL ) THEN + + 74 / 23 - + 16 END THEN NULL ELSE CAST ( NULL AS INTEGER ) END * + 72
----
-4
NULL

query I rowsort
SELECT - ( + + 84 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT DISTINCT - CAST( + 79 AS SIGNED ) * 68 AS col0
----
-5372

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT - CAST ( + 79 AS INTEGER ) * 68 AS col0
----
-5372

query I rowsort
SELECT 76 * - 67
----
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT ALL - 64 * + CASE + + 73 WHEN - 32 + + - COUNT( * ) * + - 70 THEN NULL ELSE - 63 END AS col2
----
4032

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL - 64 * + CASE + + 73 WHEN - 32 + + - COUNT ( * ) * + - 70 THEN NULL ELSE - 63 END AS col2
----
4032

query I rowsort
SELECT 66 * - - 74 AS col0
----
4884

query I rowsort
SELECT 1 * + - 41
----
-41

query I rowsort
SELECT + - 68
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8989
SELECT COUNT( * ) DIV 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8989
SELECT COUNT ( * ) / 61 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT - 10 * - CAST( + 12 AS SIGNED ) - - + 93 - - + 29 * - 40 + - 43 * - + 69 * 34 col2
----
99931

skipif mysql # not compatible
query I rowsort label-8990
SELECT - 10 * - CAST ( + 12 AS INTEGER ) - - + 93 - - + 29 * - 40 + - 43 * - + 69 * 34 col2
----
99931

query I rowsort
SELECT ALL 0 * + 19 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT + SUM( ALL - + 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-8992
SELECT + SUM ( ALL - + 90 ) AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT 93 DIV + 26
----
3

skipif mysql # not compatible
query I rowsort label-8993
SELECT 93 / + 26
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL - - 26 + - - COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL - - 26 + - - COUNT ( * ) AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8995
SELECT DISTINCT - SUM( 24 ) + + 89 DIV + 83 - + + 56
----
-79

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT - SUM ( 24 ) + + 89 / + 83 - + + 56
----
-79

query I rowsort
SELECT NULLIF ( - 23, - ( - ( + 6 ) ) ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT + COALESCE ( + - COUNT( * ), 78 ) - 10 col1
----
-11

skipif mysql # not compatible
query I rowsort label-8997
SELECT + COALESCE ( + - COUNT ( * ), 78 ) - 10 col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL + 57 * MIN( ALL 25 ) * + 12 + - 31
----
17069

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL + 57 * MIN ( ALL 25 ) * + 12 + - 31
----
17069

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT + + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8999
SELECT + + ( - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9000
SELECT - + COUNT( + 80 ) DIV + COUNT( DISTINCT + ( + - 29 ) ) + + 22
----
21

skipif mysql # not compatible
query I rowsort label-9000
SELECT - + COUNT ( + 80 ) / + COUNT ( DISTINCT + ( + - 29 ) ) + + 22
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9001
SELECT CAST( + - 71 AS SIGNED ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9001
SELECT CAST ( + - 71 AS INTEGER ) AS col2
----
-71

query I rowsort
SELECT ALL - 33 + + + 13
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT COUNT( - 66 ) + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-9003
SELECT COUNT ( - 66 ) + - 52
----
-51

query I rowsort
SELECT DISTINCT - - ( 55 ) AS col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9005
SELECT ALL - 41 DIV + 48 + 31 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL - 41 / + 48 + 31 AS col2
----
31

query I rowsort
SELECT ( - + 8 ) + - + 19 + + 13 + 48 AS col0
----
34

query II rowsort
SELECT ALL - 80 AS col1, 52
----
-80
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9008
SELECT DISTINCT 44 - - 4 - - - 6 DIV - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT 44 - - 4 - - - 6 / - COUNT ( * )
----
54

query I rowsort
SELECT ALL - 40 * + 80 * + 83 AS col2
----
-265600

query I rowsort
SELECT 61 + - 55 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL SUM( ALL + ( + 42 ) ) * - + 21
----
-882

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL SUM ( ALL + ( + 42 ) ) * - + 21
----
-882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9012
SELECT 32 * - - 86 * + CAST( + 50 AS SIGNED ) col2
----
137600

skipif mysql # not compatible
query I rowsort label-9012
SELECT 32 * - - 86 * + CAST ( + 50 AS INTEGER ) col2
----
137600

query II rowsort
SELECT 7, 87 + - ( 74 ) AS col2
----
7
13

query I rowsort
SELECT 70 + + 40
----
110

query II rowsort
SELECT ALL 94, + 40 AS col1
----
94
40

query I rowsort
SELECT ALL - 41 * - 56 AS col1
----
2296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9017
SELECT MAX( + 68 ) / CAST( NULL AS SIGNED ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9017
SELECT MAX ( + 68 ) / CAST ( NULL AS INTEGER ) + - 99
----
NULL

query I rowsort
SELECT 86 * - 16 * + 24
----
-33024

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT DISTINCT + 23 - + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT + 23 - + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT DISTINCT CASE - - 43 WHEN 81 THEN + 86 ELSE NULL END * + SUM( + - 66 ) * + CASE 3 WHEN 35 THEN NULL ELSE - - 66 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT CASE - - 43 WHEN 81 THEN + 86 ELSE NULL END * + SUM ( + - 66 ) * + CASE 3 WHEN 35 THEN NULL ELSE - - 66 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL 37 * - COUNT( - 85 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL 37 * - COUNT ( - 85 ) AS col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9022
SELECT ALL + 5 DIV 98 * + 50 * + 32
----
0

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL + 5 / 98 * + 50 * + 32
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT ALL + 96 DIV - + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL + 96 / - + 99 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT 86 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT 86 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9025
SELECT 25 col1, 57 DIV - - 66
----
25
0

skipif mysql # not compatible
query II rowsort label-9025
SELECT 25 col1, 57 / - - 66
----
25
0

query I rowsort
SELECT 1 + - 76 - + ( 50 ) AS col2
----
-125

query I rowsort
SELECT 11 * + 92 * + ( 43 )
----
43516

query I rowsort
SELECT ALL - 33 + + - 80
----
-113

query II rowsort
SELECT - 14 AS col2, 69
----
-14
69

query I rowsort
SELECT 70 + + 83
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT - 14 - COUNT( * ) col0
----
-15

skipif mysql # not compatible
query I rowsort label-9031
SELECT - 14 - COUNT ( * ) col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT ALL - COUNT( * ) * + 74 * - 29 * - 48 + + + NULLIF ( 72, - 81 ) * - + 6 * - 82
----
-67584

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL - COUNT ( * ) * + 74 * - 29 * - 48 + + + NULLIF ( 72, - 81 ) * - + 6 * - 82
----
-67584

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT DISTINCT - + SUM( ALL + 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT - + SUM ( ALL + 60 ) AS col0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-9034
SELECT ALL - 97 + + + 30 - + 52 + 48 * + + 96 + 39 * 24 DIV + 50 AS col0
----
4507

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL - 97 + + + 30 - + 52 + 48 * + + 96 + 39 * 24 / + 50 AS col0
----
4507

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9035
SELECT COUNT( ALL + 81 ) DIV 21 + - MAX( + ( + 84 ) ) + + 41 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-9035
SELECT COUNT ( ALL + 81 ) / 21 + - MAX ( + ( + 84 ) ) + + 41 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL - SUM( 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL - SUM ( 64 ) AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9037
SELECT - 7 * - + 12 + - + COUNT( * ) * 73 * CASE + COUNT( * ) WHEN - - 26 * 25 * - CAST( - 14 AS SIGNED ) THEN + 88 * + - 51 / - 56 * 71 * + 66 * - COUNT( * ) + + 54 WHEN 25 + - ( - - 20 ) + + 77 + - COUNT( * ) / COUNT( DISTINCT 89 ) THEN COALESCE ( + 3, 13 + ( - 75 ) * - 29 ) ELSE NULL END + 74 * 62 + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT - 7 * - + 12 + - + COUNT ( * ) * 73 * CASE + COUNT ( * ) WHEN - - 26 * 25 * - CAST ( - 14 AS INTEGER ) THEN + 88 * + - 51 / - 56 * 71 * + 66 * - COUNT ( * ) + + 54 WHEN 25 + - ( - - 20 ) + + 77 + - COUNT ( * ) / COUNT ( DISTINCT 89 ) THEN COALESCE ( + 3, 13 + ( - 75 ) * - 29 ) ELSE NULL END + 74 * 62 + 90 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT ALL + ( + + 83 ) + - CAST( NULL AS SIGNED ) + - 2 + - NULLIF ( 93, 24 ) * - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + ( + + 83 ) + - CAST ( NULL AS INTEGER ) + - 2 + - NULLIF ( 93, 24 ) * - 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9039
SELECT 18 * - 31 + + 60 + - 93 col0, COUNT( * ) DIV 5 * - ( + 9 ) * + 20
----
-591
0

skipif mysql # not compatible
query II rowsort label-9039
SELECT 18 * - 31 + + 60 + - 93 col0, COUNT ( * ) / 5 * - ( + 9 ) * + 20
----
-591
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9040
SELECT - COUNT( * ) * - 30 DIV - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-9040
SELECT - COUNT ( * ) * - 30 / - COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9041
SELECT + 94 AS col0, - COUNT( * ) * - - MIN( 98 )
----
94
-98

skipif mysql # not compatible
query II rowsort label-9041
SELECT + 94 AS col0, - COUNT ( * ) * - - MIN ( 98 )
----
94
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9042
SELECT ALL + + COALESCE ( 87, + 9 DIV NULLIF ( + 61, 32 + 88 + + COUNT( * ) + - 97 ) * + - COUNT( * ) * - 7 + - + 40 - + COUNT( * ), - - 34 ) - - 28 + + - 58 - - 89 + - 67 * + 99 * 69 * + + 36 AS col0
----
-16476226

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL + + COALESCE ( 87, + 9 / NULLIF ( + 61, 32 + 88 + + COUNT ( * ) + - 97 ) * + - COUNT ( * ) * - 7 + - + 40 - + COUNT ( * ), - - 34 ) - - 28 + + - 58 - - 89 + - 67 * + 99 * 69 * + + 36 AS col0
----
-16476226

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT + SUM( DISTINCT - - 49 ) * - 80 AS col2
----
-3920

skipif mysql # not compatible
query I rowsort label-9043
SELECT + SUM ( DISTINCT - - 49 ) * - 80 AS col2
----
-3920

query I rowsort
SELECT 87 * 19 * - 81 AS col0
----
-133893

query I rowsort
SELECT ALL - + 80 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT DISTINCT COUNT( * ) * + - 57 * 14
----
-798

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT COUNT ( * ) * + - 57 * 14
----
-798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9047
SELECT 41 * - MIN( 27 ) * + 18 * COALESCE ( + + 57, - - MAX( + 96 ) * 39 + 57 DIV - - 3 ) AS col2
----
-1135782

skipif mysql # not compatible
query I rowsort label-9047
SELECT 41 * - MIN ( 27 ) * + 18 * COALESCE ( + + 57, - - MAX ( + 96 ) * 39 + 57 / - - 3 ) AS col2
----
-1135782

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT SUM( 39 ) * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-9048
SELECT SUM ( 39 ) * - COUNT ( * )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9049
SELECT CASE + 59 WHEN - 52 + + 12 + + 94 * 66 THEN - 41 WHEN + - SUM( ALL + CAST( NULL AS SIGNED ) ) THEN 11 WHEN - 75 THEN NULL END - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9049
SELECT CASE + 59 WHEN - 52 + + 12 + + 94 * 66 THEN - 41 WHEN + - SUM ( ALL + CAST ( NULL AS INTEGER ) ) THEN 11 WHEN - 75 THEN NULL END - 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9050
SELECT 9 * 82 - - + CAST( + + COALESCE ( 48, + MAX( ALL - - 35 ) + + 29 ) AS SIGNED ) + - 85 + - 43 AS col2, CAST( NULL AS SIGNED )
----
658
NULL

skipif mysql # not compatible
query II rowsort label-9050
SELECT 9 * 82 - - + CAST ( + + COALESCE ( 48, + MAX ( ALL - - 35 ) + + 29 ) AS INTEGER ) + - 85 + - 43 AS col2, CAST ( NULL AS INTEGER )
----
658
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT + COUNT( * ) * - 85 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-9051
SELECT + COUNT ( * ) * - 85 AS col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9052
SELECT DISTINCT 60 * CASE - 54 WHEN - COUNT( * ) THEN NULL ELSE + 64 DIV + ( - 88 ) * - 41 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT 60 * CASE - 54 WHEN - COUNT ( * ) THEN NULL ELSE + 64 / + ( - 88 ) * - 41 END AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9053
SELECT ALL + COUNT( * ) * + - 53, 24 AS col2
----
-53
24

skipif mysql # not compatible
query II rowsort label-9053
SELECT ALL + COUNT ( * ) * + - 53, 24 AS col2
----
-53
24

query I rowsort
SELECT DISTINCT 24 * + 65
----
1560

query I rowsort
SELECT ALL 83 + - + 1 col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9056
SELECT - 53 DIV 83, - 58 * SUM( ALL - 13 ) DIV + 93 + 57 AS col2
----
0
65

skipif mysql # not compatible
query II rowsort label-9056
SELECT - 53 / 83, - 58 * SUM ( ALL - 13 ) / + 93 + 57 AS col2
----
0
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9057
SELECT - COALESCE ( 27, - - 85 DIV 95 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9057
SELECT - COALESCE ( 27, - - 85 / 95 ) AS col2
----
-27

query I rowsort
SELECT - COALESCE ( 10, + 50 ) AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9059
SELECT + - MIN( - 63 ) DIV + 72 * - ( - 34 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9059
SELECT + - MIN ( - 63 ) / + 72 * - ( - 34 ) AS col0
----
0

query I rowsort
SELECT ALL + 82 + - 36
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT ALL COUNT( * ) + ( 46 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL COUNT ( * ) + ( 46 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9062
SELECT ( - - 7 ) col1, + SUM( ALL + - 25 )
----
7
-25

skipif mysql # not compatible
query II rowsort label-9062
SELECT ( - - 7 ) col1, + SUM ( ALL + - 25 )
----
7
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9063
SELECT ALL - 1 + - CASE - - AVG ( + 51 ) WHEN - 13 THEN + + 7 + - CAST( NULL AS SIGNED ) - 84 END - + ( NULLIF ( 72, + 16 + - CAST( NULL AS SIGNED ) ) ) * - 62 * 55 AS col0, 34 AS col1
----
NULL
34

skipif mysql # not compatible
query II rowsort label-9063
SELECT ALL - 1 + - CASE - - AVG ( + 51 ) WHEN - 13 THEN + + 7 + - CAST ( NULL AS INTEGER ) - 84 END - + ( NULLIF ( 72, + 16 + - CAST ( NULL AS INTEGER ) ) ) * - 62 * 55 AS col0, 34 AS col1
----
NULL
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9064
SELECT ALL + 43 + + + CAST( - 15 AS SIGNED ) + + 32 * MIN( DISTINCT 45 ) AS col1
----
1468

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL + 43 + + + CAST ( - 15 AS INTEGER ) + + 32 * MIN ( DISTINCT 45 ) AS col1
----
1468

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9065
SELECT CASE - - 92 WHEN - CASE - 70 WHEN - + 90 - 41 THEN 12 END THEN - NULLIF ( - + 5, CAST( NULL AS DECIMAL ) ) * + COUNT( * ) + + 48 WHEN + 10 THEN - 56 * 71 + - - 83 - - 0 ELSE + COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9065
SELECT CASE - - 92 WHEN - CASE - 70 WHEN - + 90 - 41 THEN 12 END THEN - NULLIF ( - + 5, CAST ( NULL AS REAL ) ) * + COUNT ( * ) + + 48 WHEN + 10 THEN - 56 * 71 + - - 83 - - 0 ELSE + COUNT ( * ) END AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT - 92 * - COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9066
SELECT - 92 * - COUNT ( * ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9067
SELECT ALL + - COUNT( * ) * 26 + + - 40 DIV + + COALESCE ( - 6, COUNT( * ) * + - COUNT( * ) + CAST( NULL AS SIGNED ) + - - COUNT( * ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL + - COUNT ( * ) * 26 + + - 40 / + + COALESCE ( - 6, COUNT ( * ) * + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) ) AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9068
SELECT 35 DIV 66 - - 20 + 11 + + - 72 * + CAST( 83 AS SIGNED ) AS col2, - 75
----
-5945
-75

skipif mysql # not compatible
query II rowsort label-9068
SELECT 35 / 66 - - 20 + 11 + + - 72 * + CAST ( 83 AS INTEGER ) AS col2, - 75
----
-5945
-75

query I rowsort
SELECT - 45 - - 80 AS col2
----
35

query I rowsort
SELECT + + 30
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9071
SELECT ALL + - CAST( NULL AS DECIMAL ) * 79 * + - 54 * - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + - CAST ( NULL AS REAL ) * 79 * + - 54 * - 4 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 58 * 22, 68 AS col1
----
1276
68

query I rowsort
SELECT DISTINCT + 47 * + 95 + 27 AS col2
----
4492

query I rowsort
SELECT ALL + ( - 23 ) AS col1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9075
SELECT ALL + - 54 * + + AVG ( - - CAST( NULL AS SIGNED ) ) + - 46 + + ( - + 64 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL + - 54 * + + AVG ( - - CAST ( NULL AS INTEGER ) ) + - 46 + + ( - + 64 ) col2
----
NULL

query I rowsort
SELECT ALL + 15 col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT - 8 - 86 * + COUNT( + 24 ) / - COALESCE ( - - ( + COUNT( * ) ), - 5 - - NULLIF ( - + 21, - COUNT( * ) ) ) * - + 7 + - 41 + + + CASE - COUNT( * ) WHEN + COUNT( * ) + + + 39 + CASE - 51 WHEN + ( - 35 ) THEN - 0 ELSE - COUNT( * ) + - 9 END + 15 * + NULLIF ( + ( COUNT( * ) ), - AVG ( ALL + 33 ) * 50 ) * + 91 THEN 75 * 80 WHEN 15 * 97 THEN NULL ELSE NULL END + 24 * - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT - 8 - 86 * + COUNT ( + 24 ) / - COALESCE ( - - ( + COUNT ( * ) ), - 5 - - NULLIF ( - + 21, - COUNT ( * ) ) ) * - + 7 + - 41 + + + CASE - COUNT ( * ) WHEN + COUNT ( * ) + + + 39 + CASE - 51 WHEN + ( - 35 ) THEN - 0 ELSE - COUNT ( * ) + - 9 END + 15 * + NULLIF ( + ( COUNT ( * ) ), - AVG ( ALL + 33 ) * 50 ) * + 91 THEN 75 * 80 WHEN 15 * 97 THEN NULL ELSE NULL END + 24 * - 2 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9078
SELECT - 44 + - - CAST( + - 38 AS SIGNED ) + COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-9078
SELECT - 44 + - - CAST ( + - 38 AS INTEGER ) + COUNT ( * ) AS col0
----
-81

query I rowsort
SELECT ALL + ( + + 41 )
----
41

query I rowsort
SELECT + ( 26 ) * + 42 * - 4 AS col2
----
-4368

onlyif mysql # aggregate syntax: 
query II rowsort label-9081
SELECT + COUNT( * ) AS col0, 76 AS col2
----
1
76

skipif mysql # not compatible
query II rowsort label-9081
SELECT + COUNT ( * ) AS col0, 76 AS col2
----
1
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9082
SELECT - 38 + + + 34 + 77 + + 93 + + CASE WHEN - COUNT( 97 ) = NULL THEN 34 + + 26 END + + 83 + - COUNT( * ) * + 84, MAX( - 75 ) AS col0
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-9082
SELECT - 38 + + + 34 + 77 + + 93 + + CASE WHEN - COUNT ( 97 ) = NULL THEN 34 + + 26 END + + 83 + - COUNT ( * ) * + 84, MAX ( - 75 ) AS col0
----
NULL
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9083
SELECT ALL + COUNT( * ), ( + 29 ) * 32 AS col2
----
1
928

skipif mysql # not compatible
query II rowsort label-9083
SELECT ALL + COUNT ( * ), ( + 29 ) * 32 AS col2
----
1
928

query I rowsort
SELECT ALL 26 * + 96
----
2496

query I rowsort
SELECT ALL - 5 * 57 * - 76 AS col1
----
21660

onlyif mysql # DIV for integer division: 
query I rowsort label-9086
SELECT DISTINCT 77 * - - 98 + - 59 DIV + 47 col0
----
7545

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT 77 * - - 98 + - 59 / + 47 col0
----
7545

query I rowsort
SELECT + 78 * - - 88
----
6864

query I rowsort
SELECT DISTINCT 52 * 64 * + 99 + + - ( + 20 ) * + 98 * + 78
----
176592

query I rowsort
SELECT ALL 42 + + 62 AS col2
----
104

query II rowsort
SELECT - ( + ( + 74 ) ), - 20 + + 88 AS col1
----
-74
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT SUM( ALL 6 )
----
6

skipif mysql # not compatible
query I rowsort label-9091
SELECT SUM ( ALL 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT + ( 74 ) + COUNT( * ) + - + 9 - + + 29 * - - 10
----
-224

skipif mysql # not compatible
query I rowsort label-9092
SELECT + ( 74 ) + COUNT ( * ) + - + 9 - + + 29 * - - 10
----
-224

query I rowsort
SELECT DISTINCT + 34 + + 93 * + 42
----
3940

query I rowsort
SELECT + 18 + + - 49
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT DISTINCT 29 + + SUM( DISTINCT 58 )
----
87

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT 29 + + SUM ( DISTINCT 58 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT ALL ( - - 1 ) + + + 6 + - CASE + MAX( DISTINCT + - 52 ) WHEN - 1 * 72 THEN - 80 END * - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL ( - - 1 ) + + + 6 + - CASE + MAX ( DISTINCT + - 52 ) WHEN - 1 * 72 THEN - 80 END * - 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL + 72 + + COUNT( DISTINCT + + 92 )
----
73

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL + 72 + + COUNT ( DISTINCT + + 92 )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9098
SELECT ALL 11 AS col1, + CAST( NULL AS SIGNED )
----
11
NULL

skipif mysql # not compatible
query II rowsort label-9098
SELECT ALL 11 AS col1, + CAST ( NULL AS INTEGER )
----
11
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9099
SELECT + + 89 + 14 - + CAST( 95 AS SIGNED ) * - + COUNT( * ) + - 34
----
164

skipif mysql # not compatible
query I rowsort label-9099
SELECT + + 89 + 14 - + CAST ( 95 AS INTEGER ) * - + COUNT ( * ) + - 34
----
164

query I rowsort
SELECT - + 26 * 28 + 52 + - 59 + 60 AS col0
----
-675

query I rowsort
SELECT ALL + NULLIF ( - - 45, - 7 * - + 41 - + - 47 + 15 + 21 / - + 79 - + - 78 / - - 4 * - 57 - + 63 * + 98 ) * 44
----
1980

onlyif mysql # aggregate syntax: 
query II rowsort label-9102
SELECT + - 15 + + 32 + - + 14 + 20 AS col2, MIN( ALL - ( + 23 ) ) * + 35 AS col1
----
23
-805

skipif mysql # not compatible
query II rowsort label-9102
SELECT + - 15 + + 32 + - + 14 + 20 AS col2, MIN ( ALL - ( + 23 ) ) * + 35 AS col1
----
23
-805

query I rowsort
SELECT ALL - 9 - + 87
----
-96

query I rowsort
SELECT DISTINCT + 20 col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9105
SELECT ALL 19 DIV COALESCE ( - 23, - + 29 ) - - 58 - COALESCE ( - COUNT( * ), + COUNT( 31 ) ) DIV + + 76 * + 42 col2
----
58

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL 19 / COALESCE ( - 23, - + 29 ) - - 58 - COALESCE ( - COUNT ( * ), + COUNT ( 31 ) ) / + + 76 * + 42 col2
----
58

query I rowsort
SELECT DISTINCT 35 * 90 * 42
----
132300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9107
SELECT + - COALESCE ( 62, CAST( NULLIF ( + ( + 48 ), + - ( - ( 63 ) ) ) AS SIGNED ) + - SUM( ALL + 13 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-9107
SELECT + - COALESCE ( 62, CAST ( NULLIF ( + ( + 48 ), + - ( - ( 63 ) ) ) AS INTEGER ) + - SUM ( ALL + 13 ) )
----
-62

query I rowsort
SELECT ALL + - ( + - 14 )
----
14

query I rowsort
SELECT DISTINCT + ( + + 32 )
----
32

query I rowsort
SELECT + - 63 * + 80 AS col2
----
-5040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9111
SELECT + 36 * CAST( + 50 AS SIGNED ) * 65 * - - COALESCE ( 82, - 6 + - 24 + ( - 72 ), + - 66 ) + MIN( ALL 70 ) DIV COUNT( * ) col2
----
9594070

skipif mysql # not compatible
query I rowsort label-9111
SELECT + 36 * CAST ( + 50 AS INTEGER ) * 65 * - - COALESCE ( 82, - 6 + - 24 + ( - 72 ), + - 66 ) + MIN ( ALL 70 ) / COUNT ( * ) col2
----
9594070

onlyif mysql # aggregate syntax: 
query II rowsort label-9112
SELECT ALL + 60 AS col2, SUM( + 82 ) * - + COUNT( * ) - 79 AS col1
----
60
-161

skipif mysql # not compatible
query II rowsort label-9112
SELECT ALL + 60 AS col2, SUM ( + 82 ) * - + COUNT ( * ) - 79 AS col1
----
60
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT CASE + 90 WHEN - 77 THEN 44 - + + 27 / - - COUNT( * ) + - 54 * + 43 WHEN - 34 THEN + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT CASE + 90 WHEN - 77 THEN 44 - + + 27 / - - COUNT ( * ) + - 54 * + 43 WHEN - 34 THEN + 69 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9114
SELECT ALL + 36 * - NULLIF ( + - 8, ( 70 ) - 31 + - + CASE - 50 WHEN + - 95 THEN NULL WHEN + - SUM( ALL + - 65 ) THEN - COUNT( * ) END * - + 26 * + - CAST( + CAST( - + 93 AS SIGNED ) AS DECIMAL ) * 55 + 15 * CASE + - 72 WHEN - COALESCE ( 11, + 8 * 17 / COUNT( * ), - 89 ) - AVG ( + COALESCE ( + 60, + 34, 11 - 96, 55 ) ) * - 50 THEN NULL WHEN + 61 THEN 21 + 12 END ) AS col1
----
288

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL + 36 * - NULLIF ( + - 8, ( 70 ) - 31 + - + CASE - 50 WHEN + - 95 THEN NULL WHEN + - SUM ( ALL + - 65 ) THEN - COUNT ( * ) END * - + 26 * + - CAST ( + CAST ( - + 93 AS INTEGER ) AS REAL ) * 55 + 15 * CASE + - 72 WHEN - COALESCE ( 11, + 8 * 17 / COUNT ( * ), - 89 ) - AVG ( + COALESCE ( + 60, + 34, 11 - 96, 55 ) ) * - 50 THEN NULL WHEN + 61 THEN 21 + 12 END ) AS col1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT 70 * + COUNT( * ) * COUNT( * ) col1
----
70

skipif mysql # not compatible
query I rowsort label-9115
SELECT 70 * + COUNT ( * ) * COUNT ( * ) col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL + 37 * COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL + 37 * COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT ALL - COUNT( * ) + - - 41 + - - COUNT( * ) * + COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL - COUNT ( * ) + - - 41 + - - COUNT ( * ) * + COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT SUM( - + 22 ) * 66 AS col1
----
-1452

skipif mysql # not compatible
query I rowsort label-9118
SELECT SUM ( - + 22 ) * 66 AS col1
----
-1452

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT 38 * + + 69 * 12 + - - MAX( ALL + 21 )
----
31485

skipif mysql # not compatible
query I rowsort label-9119
SELECT 38 * + + 69 * 12 + - - MAX ( ALL + 21 )
----
31485

query I rowsort
SELECT ALL + 47 + - 20 AS col2
----
27

query I rowsort
SELECT 47 * + - 18 - + 3 * + 85
----
-1101

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT ALL - 74 DIV + - 19 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL - 74 / + - 19 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9123
SELECT 92 DIV - 8 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9123
SELECT 92 / - 8 AS col1
----
-11

query II rowsort
SELECT DISTINCT - 2 + + 99 AS col2, ( ( 96 ) )
----
97
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9125
SELECT 4 DIV - - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9125
SELECT 4 / - - COUNT ( * ) AS col2
----
4

query I rowsort
SELECT ALL 88 * + 38
----
3344

query I rowsort
SELECT ALL ( - 93 ) + - + 86 AS col0
----
-179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9128
SELECT ALL 77 * + - COUNT( * ) * + COALESCE ( 9, - 10, - - 72 / - - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) * - CASE 8 WHEN + 70 * - COUNT( * ) + - 42 THEN 68 * COUNT( * ) ELSE NULL END - 84 + - 0 * - + 40 * - 39 * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL 77 * + - COUNT ( * ) * + COALESCE ( 9, - 10, - - 72 / - - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) * - CASE 8 WHEN + 70 * - COUNT ( * ) + - 42 THEN 68 * COUNT ( * ) ELSE NULL END - 84 + - 0 * - + 40 * - 39 * + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT COUNT( 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9129
SELECT COUNT ( 31 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT 47 * - - 13 + + COUNT( * ) - 15
----
597

skipif mysql # not compatible
query I rowsort label-9130
SELECT 47 * - - 13 + + COUNT ( * ) - 15
----
597

query I rowsort
SELECT - + 91 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL COUNT( * ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL COUNT ( * ) - + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9133
SELECT DISTINCT COUNT( + + NULLIF ( - + 13, + 15 - - - 59 + + NULLIF ( + - CAST( - + 38 AS SIGNED ), - 77 ) * ( CAST( NULL AS SIGNED ) ) * + 59 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT COUNT ( + + NULLIF ( - + 13, + 15 - - - 59 + + NULLIF ( + - CAST ( - + 38 AS INTEGER ), - 77 ) * ( CAST ( NULL AS INTEGER ) ) * + 59 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9134
SELECT DISTINCT 98 * + COUNT( * ) AS col2, + CASE NULLIF ( 55, - - MIN( ALL 71 ) + + - 67 + + - COALESCE ( 69, + 51 * + + AVG ( DISTINCT 19 ) + - - 41 + - 48 + + 36 * - 59 + + - 1 ) + - 46 ) WHEN 7 + - 72 + 49 + - - 83 * ( COALESCE ( 60, 39 ) ) THEN 90 * - 15 + + COALESCE ( - 63, 24 + ( 17 ), - 11 / + COALESCE ( + CAST( - 11 AS DECIMAL ), - 11 ) + 59 ) END
----
98
NULL

skipif mysql # not compatible
query II rowsort label-9134
SELECT DISTINCT 98 * + COUNT ( * ) AS col2, + CASE NULLIF ( 55, - - MIN ( ALL 71 ) + + - 67 + + - COALESCE ( 69, + 51 * + + AVG ( DISTINCT 19 ) + - - 41 + - 48 + + 36 * - 59 + + - 1 ) + - 46 ) WHEN 7 + - 72 + 49 + - - 83 * ( COALESCE ( 60, 39 ) ) THEN 90 * - 15 + + COALESCE ( - 63, 24 + ( 17 ), - 11 / + COALESCE ( + CAST ( - 11 AS REAL ), - 11 ) + 59 ) END
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT - 67 * COUNT( * ) * + + 11 AS col0
----
-737

skipif mysql # not compatible
query I rowsort label-9135
SELECT - 67 * COUNT ( * ) * + + 11 AS col0
----
-737

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT 96 + - MIN( ALL - 36 )
----
132

skipif mysql # not compatible
query I rowsort label-9136
SELECT 96 + - MIN ( ALL - 36 )
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL - MIN( DISTINCT + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL - MIN ( DISTINCT + 62 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9138
SELECT - - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT - - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9139
SELECT + COUNT( * ) DIV - ( - - 95 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9139
SELECT + COUNT ( * ) / - ( - - 95 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT + 43 + - COUNT( + - 56 )
----
42

skipif mysql # not compatible
query I rowsort label-9140
SELECT + 43 + - COUNT ( + - 56 )
----
42

query I rowsort
SELECT ALL - 73 + + ( + 27 ) AS col2
----
-46

query I rowsort
SELECT + 1 * - 55 + - 27 + + COALESCE ( - 88, + - 39, - 49 ) - + 24 * - 21
----
334

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT DISTINCT 79 * COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT 79 * COUNT ( * ) AS col2
----
79

query I rowsort
SELECT ALL - 78 + - + 9 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9145
SELECT ALL 73 + - MIN( + 91 ) AS col1, COUNT( * ) + + 16 * ( COUNT( * ) ) col0
----
-18
17

skipif mysql # not compatible
query II rowsort label-9145
SELECT ALL 73 + - MIN ( + 91 ) AS col1, COUNT ( * ) + + 16 * ( COUNT ( * ) ) col0
----
-18
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT CAST( - + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) - - 60 * + - 27 * + 88 * + ( + - 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9146
SELECT CAST ( - + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) - - 60 * + - 27 * + 88 * + ( + - 42 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - + ( + 41 ) ) AS col2
----
41

query I rowsort
SELECT 95 - - + 15
----
110

query I rowsort
SELECT ALL 66 + - 78 * + + 92 * + 85 * + - 42 AS col0
----
25618386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9150
SELECT CAST( + MIN( DISTINCT - 28 ) AS SIGNED ) * 61
----
-1708

skipif mysql # not compatible
query I rowsort label-9150
SELECT CAST ( + MIN ( DISTINCT - 28 ) AS INTEGER ) * 61
----
-1708

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT - 63 * + - NULLIF ( ( 20 ), - COUNT( * ) ) + 41 + - 20
----
1281

skipif mysql # not compatible
query I rowsort label-9151
SELECT - 63 * + - NULLIF ( ( 20 ), - COUNT ( * ) ) + 41 + - 20
----
1281

query II rowsort
SELECT + 98 AS col2, 81 * + 4 AS col0
----
98
324

query II rowsort
SELECT DISTINCT - 47 AS col2, + 39 AS col0
----
-47
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9154
SELECT CASE 82 WHEN - MIN( DISTINCT + 94 ) + - SUM( - 0 ) + + 0 * + + 81 + - 70 * + CAST( NULL AS SIGNED ) DIV 86 * - CASE - - MAX( DISTINCT - 15 ) WHEN - 29 THEN + 96 + - - 74 ELSE 78 END + - - MAX( - - 32 ) THEN NULL ELSE + COUNT( * ) END + - - COUNT( * ) DIV - 15 * + 72 * MIN( ALL - NULLIF ( 56, 42 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9154
SELECT CASE 82 WHEN - MIN ( DISTINCT + 94 ) + - SUM ( - 0 ) + + 0 * + + 81 + - 70 * + CAST ( NULL AS INTEGER ) / 86 * - CASE - - MAX ( DISTINCT - 15 ) WHEN - 29 THEN + 96 + - - 74 ELSE 78 END + - - MAX ( - - 32 ) THEN NULL ELSE + COUNT ( * ) END + - - COUNT ( * ) / - 15 * + 72 * MIN ( ALL - NULLIF ( 56, 42 ) )
----
1

query I rowsort
SELECT ALL - ( + - 13 ) * + - 47
----
-611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9156
SELECT ALL 7 + - COUNT( * ) + - - CAST( NULL AS SIGNED ) * + + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL 7 + - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * + + 20 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 33 col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-9158
SELECT ALL 59 * - + SUM( 55 ) col2, + 21
----
-3245
21

skipif mysql # not compatible
query II rowsort label-9158
SELECT ALL 59 * - + SUM ( 55 ) col2, + 21
----
-3245
21

query I rowsort
SELECT 20 * - 34 AS col0
----
-680

query I rowsort
SELECT 91 + + 47 * - 94 AS col0
----
-4327

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - COUNT( + 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-9161
SELECT - COUNT ( + 48 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT 30 + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-9162
SELECT 30 + + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT ALL - CASE + 32 WHEN 35 + + + 7 - + 53 - + 92 * - 46 * - + COUNT( * ) * 59 - - + 25 THEN - 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL - CASE + 32 WHEN 35 + + + 7 - + 53 - + 92 * - 46 * - + COUNT ( * ) * 59 - - + 25 THEN - 32 END AS col1
----
NULL

query I rowsort
SELECT - + ( - 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT COUNT( ALL - CASE + 63 WHEN + - ( - - ( 45 ) ) THEN NULL WHEN - 92 THEN NULL ELSE + 12 END )
----
1

skipif mysql # not compatible
query I rowsort label-9165
SELECT COUNT ( ALL - CASE + 63 WHEN + - ( - - ( 45 ) ) THEN NULL WHEN - 92 THEN NULL ELSE + 12 END )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9166
SELECT COUNT( DISTINCT - 65 ) * + 29, + 75 + 11 col0
----
29
86

skipif mysql # not compatible
query II rowsort label-9166
SELECT COUNT ( DISTINCT - 65 ) * + 29, + 75 + 11 col0
----
29
86

query I rowsort
SELECT + 58 * - + 38
----
-2204

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT 93 + - + 39 - 0 * - 15 - + 57 - 94 * 85 + 89 * COUNT( * )
----
-7904

skipif mysql # not compatible
query I rowsort label-9168
SELECT 93 + - + 39 - 0 * - 15 - + 57 - 94 * 85 + 89 * COUNT ( * )
----
-7904

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT 39 + COUNT( * ) col1
----
40

skipif mysql # not compatible
query I rowsort label-9169
SELECT 39 + COUNT ( * ) col1
----
40

query I rowsort
SELECT DISTINCT + COALESCE ( - 71, + 30, - + 47 )
----
-71

query II rowsort
SELECT ALL + 87 AS col2, 39 AS col0
----
87
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9172
SELECT - CASE + ( + + COUNT( * ) ) WHEN - 88 * 64 + - + 37 + - CAST( NULL AS SIGNED ) * CASE COALESCE ( - 84, - CAST( NULL AS SIGNED ), - - COUNT( * ), + 17 ) WHEN + - 59 / 64 THEN 57 + + 27 ELSE NULL END * 74 THEN NULL WHEN + CASE + 96 WHEN 37 THEN COALESCE ( - COUNT( * ), - + 50, + + 79 ) * COALESCE ( - COALESCE ( + 52, SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) * + 88, - 48 ) / - 62, - 45 ) END THEN 98 END / ( 64 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT - CASE + ( + + COUNT ( * ) ) WHEN - 88 * 64 + - + 37 + - CAST ( NULL AS INTEGER ) * CASE COALESCE ( - 84, - CAST ( NULL AS INTEGER ), - - COUNT ( * ), + 17 ) WHEN + - 59 / 64 THEN 57 + + 27 ELSE NULL END * 74 THEN NULL WHEN + CASE + 96 WHEN 37 THEN COALESCE ( - COUNT ( * ), - + 50, + + 79 ) * COALESCE ( - COALESCE ( + 52, SUM ( DISTINCT - CAST ( NULL AS REAL ) ) * + 88, - 48 ) / - 62, - 45 ) END THEN 98 END / ( 64 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT + ( + + 79 ) * + 44 * MAX( DISTINCT - 90 ) AS col2
----
-312840

skipif mysql # not compatible
query I rowsort label-9173
SELECT + ( + + 79 ) * + 44 * MAX ( DISTINCT - 90 ) AS col2
----
-312840

query I rowsort
SELECT 8 + - - 71 AS col0
----
79

query I rowsort
SELECT ALL + 26 * - 46 + + 92 AS col0
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT + MIN( ALL - 42 ) + - - 68
----
26

skipif mysql # not compatible
query I rowsort label-9176
SELECT + MIN ( ALL - 42 ) + - - 68
----
26

query I rowsort
SELECT 41 + - - 24
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9178
SELECT + COALESCE ( - 2, + 97 ) DIV + - 61
----
0

skipif mysql # not compatible
query I rowsort label-9178
SELECT + COALESCE ( - 2, + 97 ) / + - 61
----
0

query I rowsort
SELECT ALL + 77 + - 90 * 77
----
-6853

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9180
SELECT - 41 + - 17 DIV 87 * - 84 + + 84 + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-9180
SELECT - 41 + - 17 / 87 * - 84 + + 84 + - COUNT ( * )
----
42

query I rowsort
SELECT DISTINCT - 74 + + - 49
----
-123

query I rowsort
SELECT DISTINCT 97 * + - 85 + 75 * 95 * + 99 AS col2
----
697130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT DISTINCT 22 * + 15 + COUNT( * ) + - 35 * 65 DIV - - MAX( 57 )
----
292

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT 22 * + 15 + COUNT ( * ) + - 35 * 65 / - - MAX ( 57 )
----
292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT COALESCE ( - 51, + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9184
SELECT COALESCE ( - 51, + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9185
SELECT COALESCE ( - 34, ( - + COALESCE ( - 63, + 49 + + 16 ) ), + + CASE - + 49 WHEN - + CASE 19 WHEN - - ( - ( 87 ) ) / + + 89 THEN - + NULLIF ( CASE + 83 WHEN 31 THEN + ( + 90 ) WHEN + + 0 * - 0 THEN 61 WHEN COUNT( * ) - + ( - 10 ) + + 71 THEN + 82 * AVG ( 36 ) ELSE NULL END, COUNT( * ) * + 46 + + 20 * 91 ) + - COALESCE ( 59 - - 7 * 49, - 54 * SUM( 99 ) ) ELSE - 16 - CAST( NULL AS SIGNED ) END THEN 65 - + 64 WHEN + 23 * 67 THEN NULL ELSE NULL END )
----
-34

skipif mysql # not compatible
query I rowsort label-9185
SELECT COALESCE ( - 34, ( - + COALESCE ( - 63, + 49 + + 16 ) ), + + CASE - + 49 WHEN - + CASE 19 WHEN - - ( - ( 87 ) ) / + + 89 THEN - + NULLIF ( CASE + 83 WHEN 31 THEN + ( + 90 ) WHEN + + 0 * - 0 THEN 61 WHEN COUNT ( * ) - + ( - 10 ) + + 71 THEN + 82 * AVG ( 36 ) ELSE NULL END, COUNT ( * ) * + 46 + + 20 * 91 ) + - COALESCE ( 59 - - 7 * 49, - 54 * SUM ( 99 ) ) ELSE - 16 - CAST ( NULL AS INTEGER ) END THEN 65 - + 64 WHEN + 23 * 67 THEN NULL ELSE NULL END )
----
-34

query I rowsort
SELECT + 37 + 54 col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9187
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT ALL - 71 * + 22 + + - 69 * - MAX( DISTINCT + + 81 ) * MIN( ALL + 67 ) AS col1
----
372901

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL - 71 * + 22 + + - 69 * - MAX ( DISTINCT + + 81 ) * MIN ( ALL + 67 ) AS col1
----
372901

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT + COUNT( + ( 45 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9189
SELECT + COUNT ( + ( 45 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9190
SELECT ALL + 66, ( + - COUNT( * ) ) * - - 11 AS col1
----
66
-11

skipif mysql # not compatible
query II rowsort label-9190
SELECT ALL + 66, ( + - COUNT ( * ) ) * - - 11 AS col1
----
66
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT + CASE + 50 WHEN COUNT( * ) THEN COALESCE ( - + 71, - - 36 ) * 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9191
SELECT + CASE + 50 WHEN COUNT ( * ) THEN COALESCE ( - + 71, - - 36 ) * 56 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 25 * + 78 * - 70 AS col0
----
-136500

query II rowsort
SELECT DISTINCT + 82, 22 * + 12 AS col0
----
82
264

query I rowsort
SELECT + ( 11 ) * + 33 * 64
----
23232

query I rowsort
SELECT + 41 + + 68 * - - 47 * + + 60 AS col0
----
191801

query II rowsort
SELECT ALL + 65 col0, 16 col2
----
65
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9197
SELECT 12 * - 21 + + + 16 + - 40 + COUNT( * ) + COUNT( * ) * CASE + CAST( NULL AS SIGNED ) WHEN + + 75 THEN 76 ELSE NULL END * + COUNT( * ) + - 85 AS col1, + 39
----
NULL
39

skipif mysql # not compatible
query II rowsort label-9197
SELECT 12 * - 21 + + + 16 + - 40 + COUNT ( * ) + COUNT ( * ) * CASE + CAST ( NULL AS INTEGER ) WHEN + + 75 THEN 76 ELSE NULL END * + COUNT ( * ) + - 85 AS col1, + 39
----
NULL
39

query I rowsort
SELECT - 42 * - - 29 AS col2
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT ( - MIN( + 15 ) ) * + 6 * - 91 - - 82 - + 73 AS col2
----
8199

skipif mysql # not compatible
query I rowsort label-9199
SELECT ( - MIN ( + 15 ) ) * + 6 * - 91 - - 82 - + 73 AS col2
----
8199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT - 56 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT - 56 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 0 - 61
----
-61

query II rowsort
SELECT DISTINCT + 82 col1, 8
----
82
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT - + 52 * COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-9203
SELECT - + 52 * COUNT ( * )
----
-52

query I rowsort
SELECT ALL - + 12 * + - CASE + 57 WHEN + ( + - 54 ) THEN 83 * - ( + 59 ) ELSE NULL END + + + 85 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 1 * NULLIF ( + - 41, + 94 ) + - + 2 + 15 - + 73 - - - 17 + - 45 + - 26 * - 55
----
1267

query II rowsort
SELECT - - 33 AS col1, - ( + - 44 ) + - 73 AS col0
----
33
-29

query II rowsort
SELECT + 58 AS col0, 88 * + + 4 AS col0
----
58
352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9208
SELECT - + COALESCE ( - 86, + 31 * 66 DIV + - ( - - COUNT( * ) ) ) - + 1
----
85

skipif mysql # not compatible
query I rowsort label-9208
SELECT - + COALESCE ( - 86, + 31 * 66 / + - ( - - COUNT ( * ) ) ) - + 1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT - 59 * - + 70 * 13 + + - CASE ( - + MIN( ALL 65 ) ) WHEN + COUNT( * ) THEN + + 77 * - - 28 * - - 43 + + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT - 59 * - + 70 * 13 + + - CASE ( - + MIN ( ALL 65 ) ) WHEN + COUNT ( * ) THEN + + 77 * - - 28 * - - 43 + + 54 END
----
NULL

query II rowsort
SELECT - 59 AS col1, + 34
----
-59
34

query II rowsort
SELECT - 81 AS col0, 56
----
-81
56

query II rowsort
SELECT ALL 9, 38 AS col2
----
9
38

query I rowsort
SELECT - - 26 * + 96
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT DISTINCT + + 20 + + COUNT( * ) + 21 + + 7 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT + + 20 + + COUNT ( * ) + 21 + + 7 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT - + NULLIF ( - 45, + - 11 * COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-9215
SELECT - + NULLIF ( - 45, + - 11 * COUNT ( * ) )
----
45

query I rowsort
SELECT ALL - + 41 + - 51 * 67
----
-3458

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL + COUNT( DISTINCT 83 ) + - 19 - COUNT( * ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + COUNT ( DISTINCT 83 ) + - 19 - COUNT ( * ) col0
----
-19

query I rowsort
SELECT - ( + + 60 ) * 0 * - + 63 AS col1
----
0

query I rowsort
SELECT - 31 col1
----
-31

query I rowsort
SELECT - ( 89 ) + - 86
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT - ( 72 ) + - ( 24 ) - + - 6 * - COUNT( * ) * - - 51 AS col0
----
-402

skipif mysql # not compatible
query I rowsort label-9221
SELECT - ( 72 ) + - ( 24 ) - + - 6 * - COUNT ( * ) * - - 51 AS col0
----
-402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9222
SELECT + 55 * + + 33 DIV CAST( - - COALESCE ( CAST( NULL AS DECIMAL ), - COUNT( * ) ) AS SIGNED ) AS col2
----
-1815

skipif mysql # not compatible
query I rowsort label-9222
SELECT + 55 * + + 33 / CAST ( - - COALESCE ( CAST ( NULL AS REAL ), - COUNT ( * ) ) AS INTEGER ) AS col2
----
-1815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9223
SELECT CAST( COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9223
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL - 88 * + 60
----
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT - COUNT( * ) + 90
----
89

skipif mysql # not compatible
query I rowsort label-9225
SELECT - COUNT ( * ) + 90
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT + 31 * COUNT( 43 )
----
31

skipif mysql # not compatible
query I rowsort label-9226
SELECT + 31 * COUNT ( 43 )
----
31

onlyif mysql # aggregate syntax: 
query III rowsort label-9227
SELECT ALL + ( 78 ) AS col2, 86 + + 49 - - 33 AS col2, COUNT( * ) + - + 89
----
78
168
-88

skipif mysql # not compatible
query III rowsort label-9227
SELECT ALL + ( 78 ) AS col2, 86 + + 49 - - 33 AS col2, COUNT ( * ) + - + 89
----
78
168
-88

query I rowsort
SELECT DISTINCT - 6 * + + 29 AS col1
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9229
SELECT CAST( + 84 AS SIGNED ) AS col2, - 12 + + 98 AS col2
----
84
86

skipif mysql # not compatible
query II rowsort label-9229
SELECT CAST ( + 84 AS INTEGER ) AS col2, - 12 + + 98 AS col2
----
84
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9230
SELECT DISTINCT - COUNT( * ) DIV 36 - 6
----
-6

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT - COUNT ( * ) / 36 - 6
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9231
SELECT + 98 * - - 10 DIV 69 DIV - 64 * - + 3 * - ( + + 13 ) * COUNT( * ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9231
SELECT + 98 * - - 10 / 69 / - 64 * - + 3 * - ( + + 13 ) * COUNT ( * ) + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9232
SELECT - COALESCE ( - 70, + + 14 ) * - 99 + + - 31 DIV - 41 AS col1
----
-6930

skipif mysql # not compatible
query I rowsort label-9232
SELECT - COALESCE ( - 70, + + 14 ) * - 99 + + - 31 / - 41 AS col1
----
-6930

query I rowsort
SELECT - 59 * + 83 AS col2
----
-4897

query I rowsort
SELECT + 65 * - + 11
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ( - CASE - COUNT( * ) WHEN 29 THEN COUNT( * ) WHEN - 2 * + 96 THEN 48 / + 70 * + + 19 + - 66 + 37 / + - 5 / - + 59 + - - ( + - COUNT( * ) ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9235
SELECT ( - CASE - COUNT ( * ) WHEN 29 THEN COUNT ( * ) WHEN - 2 * + 96 THEN 48 / + 70 * + + 19 + - 66 + 37 / + - 5 / - + 59 + - - ( + - COUNT ( * ) ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT + COUNT( * ) + + + SUM( ALL + 40 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-9236
SELECT + COUNT ( * ) + + + SUM ( ALL + 40 ) col0
----
41

query I rowsort
SELECT ALL ( 37 ) * - 92 + - 48 col1
----
-3452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9238
SELECT + COUNT( * ) DIV + - MIN( ALL - 37 )
----
0

skipif mysql # not compatible
query I rowsort label-9238
SELECT + COUNT ( * ) / + - MIN ( ALL - 37 )
----
0

query I rowsort
SELECT DISTINCT + - 45 AS col2
----
-45

query I rowsort
SELECT DISTINCT + 26 * + 25 * 82 * - 26 * - - 19
----
-26330200

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL + + COALESCE ( + COUNT( * ), - - ( - 47 ) * - 64 + + 50 * + 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL + + COALESCE ( + COUNT ( * ), - - ( - 47 ) * - 64 + + 50 * + 23 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9242
SELECT DISTINCT + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + ( 1 ), 79 + 88 AS col2
----
1
167

query II rowsort
SELECT + - 37 * - 52 AS col1, 97 + - + NULLIF ( - 84, - + 26 * + - 37 )
----
1924
181

onlyif mysql # aggregate syntax: 
query II rowsort label-9245
SELECT + 34 + - 69 AS col2, 85 * 88 + + MAX( ALL - + 45 ) AS col0
----
-35
7435

skipif mysql # not compatible
query II rowsort label-9245
SELECT + 34 + - 69 AS col2, 85 * 88 + + MAX ( ALL - + 45 ) AS col0
----
-35
7435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT DISTINCT CAST( 15 AS SIGNED ) + + ( 74 )
----
89

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT CAST ( 15 AS INTEGER ) + + ( 74 )
----
89

query I rowsort
SELECT ALL + 49 + 80 + - 89 * + 40 AS col2
----
-3431

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL SUM( + + 85 ) + + 75 - 4 * + 27 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL SUM ( + + 85 ) + + 75 - 4 * + 27 AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9249
SELECT - + CAST( + 43 AS SIGNED ) AS col1, 46
----
-43
46

skipif mysql # not compatible
query II rowsort label-9249
SELECT - + CAST ( + 43 AS INTEGER ) AS col1, 46
----
-43
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9250
SELECT ALL - AVG ( DISTINCT - 44 ) + CAST( NULL AS SIGNED ) + + 24 + - 21 * COALESCE ( + 65, + 81, - CAST( - - 95 AS SIGNED ) + MAX( DISTINCT + 95 ) * + 74 * + 67 ) + - 2 AS col1, - CAST( NULL AS SIGNED ) * - - 27
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9250
SELECT ALL - AVG ( DISTINCT - 44 ) + CAST ( NULL AS INTEGER ) + + 24 + - 21 * COALESCE ( + 65, + 81, - CAST ( - - 95 AS INTEGER ) + MAX ( DISTINCT + 95 ) * + 74 * + 67 ) + - 2 AS col1, - CAST ( NULL AS INTEGER ) * - - 27
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT DISTINCT 15 + - 31 - - 75 + + + 40 + - + 84 * - 64 + + + 39 DIV + NULLIF ( 54, + 65 ) + + - 62
----
5413

skipif mysql # not compatible
query I rowsort label-9251
SELECT DISTINCT 15 + - 31 - - 75 + + + 40 + - + 84 * - 64 + + + 39 / + NULLIF ( 54, + 65 ) + + - 62
----
5413

query I rowsort
SELECT ALL 19 * - 37 col1
----
-703

onlyif mysql # aggregate syntax: 
query II rowsort label-9253
SELECT 40 + 73, COUNT( * ) * - - ( - 72 ) AS col1
----
113
-72

skipif mysql # not compatible
query II rowsort label-9253
SELECT 40 + 73, COUNT ( * ) * - - ( - 72 ) AS col1
----
113
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-9254
SELECT DISTINCT + COUNT( 3 ) * 72 + + - ( - 99 ) + 43 * 84 + + - 57 + - COUNT( * ) * 59 + + - 91 AS col1, 72 * + 95 + + 17 * + 55
----
3576
7775

skipif mysql # not compatible
query II rowsort label-9254
SELECT DISTINCT + COUNT ( 3 ) * 72 + + - ( - 99 ) + 43 * 84 + + - 57 + - COUNT ( * ) * 59 + + - 91 AS col1, 72 * + 95 + + 17 * + 55
----
3576
7775

query I rowsort
SELECT ALL - 19 + 76 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9256
SELECT CAST( 27 AS SIGNED ) * + 85 col1
----
2295

skipif mysql # not compatible
query I rowsort label-9256
SELECT CAST ( 27 AS INTEGER ) * + 85 col1
----
2295

query I rowsort
SELECT 14 + + + 28 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT 21 + - - 20 + + + NULLIF ( ( + 94 ), 10 ) * - COUNT( * ) * ( + - 13 ) col0
----
1263

skipif mysql # not compatible
query I rowsort label-9258
SELECT 21 + - - 20 + + + NULLIF ( ( + 94 ), 10 ) * - COUNT ( * ) * ( + - 13 ) col0
----
1263

query II rowsort
SELECT - 92, - 34 AS col2
----
-92
-34

query I rowsort
SELECT DISTINCT - 2 - - + 26 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL - CASE + 35 WHEN - COUNT( DISTINCT - ( - 26 ) ) THEN 19 * + COUNT( * ) WHEN - 19 + + 29 + - - 96 / + 43 + 50 + - COUNT( * ) * - 96 * + ( 5 ) / + 66 * - - COUNT( * ) * NULLIF ( - + COUNT( * ), + - 26 + - 55 + 64 * + ( + 79 ) ) THEN - COUNT( * ) + 19 * + 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL - CASE + 35 WHEN - COUNT ( DISTINCT - ( - 26 ) ) THEN 19 * + COUNT ( * ) WHEN - 19 + + 29 + - - 96 / + 43 + 50 + - COUNT ( * ) * - 96 * + ( 5 ) / + 66 * - - COUNT ( * ) * NULLIF ( - + COUNT ( * ), + - 26 + - 55 + 64 * + ( + 79 ) ) THEN - COUNT ( * ) + 19 * + 49 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9262
SELECT ALL - 30 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL - 30 / + 51
----
0

query I rowsort
SELECT 94 * 30
----
2820

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT 1 DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9264
SELECT 1 / + 81 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9265
SELECT DISTINCT - COALESCE ( 60, - COUNT( DISTINCT + 13 ) ) * - - CAST( NULL AS SIGNED ) - + 30 + + COUNT( * ) / AVG ( + - 91 ) - - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT - COALESCE ( 60, - COUNT ( DISTINCT + 13 ) ) * - - CAST ( NULL AS INTEGER ) - + 30 + + COUNT ( * ) / AVG ( + - 91 ) - - + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT COUNT( * ) * 94 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9266
SELECT COUNT ( * ) * 94 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL + ( + ( + COUNT( * ) ) ) * - 95
----
-95

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL + ( + ( + COUNT ( * ) ) ) * - 95
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9268
SELECT - COUNT( 9 ) * - 17 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT - COUNT ( 9 ) * - 17 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT DISTINCT COALESCE ( 60, + + 94, + COUNT( * ) * + COUNT( * ) + + 70 ) + - ( + 63 ) - - 60
----
57

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT COALESCE ( 60, + + 94, + COUNT ( * ) * + COUNT ( * ) + + 70 ) + - ( + 63 ) - - 60
----
57

query I rowsort
SELECT ALL 35 + 63
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT + COUNT( * ) * 78
----
78

skipif mysql # not compatible
query I rowsort label-9271
SELECT + COUNT ( * ) * 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT + 37 * - + 79 - 14 + SUM( ALL 92 ) - COUNT( * ) + COUNT( DISTINCT + 93 )
----
-2845

skipif mysql # not compatible
query I rowsort label-9272
SELECT + 37 * - + 79 - 14 + SUM ( ALL 92 ) - COUNT ( * ) + COUNT ( DISTINCT + 93 )
----
-2845

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT + MAX( + 67 ) col2
----
67

skipif mysql # not compatible
query I rowsort label-9273
SELECT + MAX ( + 67 ) col2
----
67

query I rowsort
SELECT ALL - 39 + - 34 + + 4 + + 14 col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT + SUM( DISTINCT - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-9275
SELECT + SUM ( DISTINCT - 60 )
----
-60

query I rowsort
SELECT ALL - + 86 + 18 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + SUM( + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-9277
SELECT + SUM ( + 56 )
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9278
SELECT - CAST( NULL AS DECIMAL ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9278
SELECT - CAST ( NULL AS REAL ) * 20
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9279
SELECT - - 65 AS col0, - 6 DIV + ( 87 )
----
65
0

skipif mysql # not compatible
query II rowsort label-9279
SELECT - - 65 AS col0, - 6 / + ( 87 )
----
65
0

query I rowsort
SELECT 24 - - 51 * 53 col0
----
2727

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9281
SELECT 79 * 91 col0, 55 * 61 DIV - COUNT( * ) * COUNT( * ) + + 45 * + 87
----
7189
560

skipif mysql # not compatible
query II rowsort label-9281
SELECT 79 * 91 col0, 55 * 61 / - COUNT ( * ) * COUNT ( * ) + + 45 * + 87
----
7189
560

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT 14 * + MIN( - + 95 )
----
-1330

skipif mysql # not compatible
query I rowsort label-9282
SELECT 14 * + MIN ( - + 95 )
----
-1330

query I rowsort
SELECT DISTINCT + 43 * + 53 * 27
----
61533

query I rowsort
SELECT ALL 38 col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT COUNT( * ) - COUNT( * ) * 77 * + 8 * + + 12 * SUM( DISTINCT 8 )
----
-59135

skipif mysql # not compatible
query I rowsort label-9285
SELECT COUNT ( * ) - COUNT ( * ) * 77 * + 8 * + + 12 * SUM ( DISTINCT 8 )
----
-59135

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT MIN( DISTINCT - 33 ) + + 80
----
47

skipif mysql # not compatible
query I rowsort label-9286
SELECT MIN ( DISTINCT - 33 ) + + 80
----
47

query I rowsort
SELECT 4 * 69
----
276

query II rowsort
SELECT 39 * + 27, 63 AS col2
----
1053
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9289
SELECT 10 + + - 98 AS col2, + COUNT( * ) AS col0
----
-88
1

skipif mysql # not compatible
query II rowsort label-9289
SELECT 10 + + - 98 AS col2, + COUNT ( * ) AS col0
----
-88
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9290
SELECT 46 DIV - 77 * - 56
----
0

skipif mysql # not compatible
query I rowsort label-9290
SELECT 46 / - 77 * - 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL - MAX( ALL + - 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL - MAX ( ALL + - 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT - MIN( + + 50 ) * 66 + - 17 AS col1
----
-3317

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT - MIN ( + + 50 ) * 66 + - 17 AS col1
----
-3317

query I rowsort
SELECT DISTINCT - 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL 39 * + ( + 79 ) + COUNT( * ) + - 87 + + - 66 - - + 1 * 49
----
2978

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL 39 * + ( + 79 ) + COUNT ( * ) + - 87 + + - 66 - - + 1 * 49
----
2978

query II rowsort
SELECT + COALESCE ( - 99, 83, - 54 ), + 71 AS col1
----
-99
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9296
SELECT + CAST( - 76 AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9296
SELECT + CAST ( - 76 AS INTEGER ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL + 24 * - + 2 + 14 + + 10 - + COUNT( * ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL + 24 * - + 2 + 14 + + 10 - + COUNT ( * ) col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9298
SELECT - - 4 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT - - 4 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9299
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 95 * + 70 / - COUNT( * ) + - ( + 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 95 * + 70 / - COUNT ( * ) + - ( + 72 ) AS col1
----
NULL

query I rowsort
SELECT ALL + - ( 2 )
----
-2

query I rowsort
SELECT DISTINCT + - 13 + - ( 72 )
----
-85

query I rowsort
SELECT + - NULLIF ( + + 52, + 93 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT DISTINCT + - ( 48 ) - + - 37 * MIN( 0 )
----
-48

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT + - ( 48 ) - + - 37 * MIN ( 0 )
----
-48

query I rowsort
SELECT ALL + + 71 - - 65
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9305
SELECT + + 66 * + 76 + + ( - - COUNT( * ) ) DIV + - 64 * + - 17 * + - 95
----
5016

skipif mysql # not compatible
query I rowsort label-9305
SELECT + + 66 * + 76 + + ( - - COUNT ( * ) ) / + - 64 * + - 17 * + - 95
----
5016

query I rowsort
SELECT ALL 97 * 89
----
8633

query I rowsort
SELECT - 2 + - 71 * 91 + - 21 AS col2
----
-6484

onlyif mysql # DIV for integer division: 
query I rowsort label-9308
SELECT ALL - 56 DIV 38 col2
----
-1

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL - 56 / 38 col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9309
SELECT ALL + 2 - + CASE + - CAST( - NULLIF ( 66, - 98 ) AS DECIMAL ) WHEN - 2 * - 53 + - + 83 THEN 17 + CAST( NULL AS SIGNED ) ELSE + - ( + 51 ) END + - 64 * 51
----
-3211

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL + 2 - + CASE + - CAST ( - NULLIF ( 66, - 98 ) AS REAL ) WHEN - 2 * - 53 + - + 83 THEN 17 + CAST ( NULL AS INTEGER ) ELSE + - ( + 51 ) END + - 64 * 51
----
-3211

query I rowsort
SELECT DISTINCT - 47 * - 67 AS col2
----
3149

query I rowsort
SELECT DISTINCT ( - 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL - COUNT( * ) * + NULLIF ( + ( - + 8 ), + + 14 * - 62 ) * + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL - COUNT ( * ) * + NULLIF ( + ( - + 8 ), + + 14 * - 62 ) * + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT + 31 * COUNT( - + 61 )
----
31

skipif mysql # not compatible
query I rowsort label-9313
SELECT + 31 * COUNT ( - + 61 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT + 49 + + 27 + + 73 + - ( - 88 ) + + 7 * 48 + + - 61 - 7 * CAST( NULL AS SIGNED ) + - 69 / - + ( + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT + 49 + + 27 + + 73 + - ( - 88 ) + + 7 * 48 + + - 61 - 7 * CAST ( NULL AS INTEGER ) + - 69 / - + ( + 27 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9315
SELECT - 19 DIV + - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9315
SELECT - 19 / + - 47 AS col2
----
0

query I rowsort
SELECT + 25 + - ( + ( 94 ) )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9317
SELECT ALL CASE - CAST( - 3 AS SIGNED ) WHEN - 87 THEN - + COUNT( DISTINCT - COALESCE ( + - 28, - + 10 ) ) WHEN - COUNT( * ) * - 96 * CAST( NULL AS SIGNED ) THEN NULL END + - - 29 * CASE 36 WHEN - MAX( DISTINCT + + 82 ) + - ( + 82 ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL CASE - CAST ( - 3 AS INTEGER ) WHEN - 87 THEN - + COUNT ( DISTINCT - COALESCE ( + - 28, - + 10 ) ) WHEN - COUNT ( * ) * - 96 * CAST ( NULL AS INTEGER ) THEN NULL END + - - 29 * CASE 36 WHEN - MAX ( DISTINCT + + 82 ) + - ( + 82 ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9318
SELECT + 89 DIV 8 * - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-9318
SELECT + 89 / 8 * - COUNT ( * ) AS col0
----
-11

query I rowsort
SELECT DISTINCT 9 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9320
SELECT ALL CAST( + 24 AS SIGNED ) DIV - 95 + 72
----
72

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL CAST ( + 24 AS INTEGER ) / - 95 + 72
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9321
SELECT CAST( + - COALESCE ( - 10, COUNT( * ), - + 50 * 15 - + - 48, - + COUNT( * ) + + - SUM( CAST( NULL AS SIGNED ) ) + - 5 - + COALESCE ( - 94, 23 * 76 * - 16 + - 41 ) + - 94 / CAST( - COUNT( * ) AS SIGNED ) ) AS SIGNED ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9321
SELECT CAST ( + - COALESCE ( - 10, COUNT ( * ), - + 50 * 15 - + - 48, - + COUNT ( * ) + + - SUM ( CAST ( NULL AS INTEGER ) ) + - 5 - + COALESCE ( - 94, 23 * 76 * - 16 + - 41 ) + - 94 / CAST ( - COUNT ( * ) AS INTEGER ) ) AS INTEGER ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ( - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9322
SELECT ( - - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9323
SELECT ( - ( COUNT( * ) ) ) AS col2, 27 AS col1
----
-1
27

skipif mysql # not compatible
query II rowsort label-9323
SELECT ( - ( COUNT ( * ) ) ) AS col2, 27 AS col1
----
-1
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT + + 25 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT + + 25 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9325
SELECT + + ( + + 49 ) * + ( + 50 ) * + 45 / - - NULLIF ( 38, + 15 * + CAST( + CASE COUNT( * ) WHEN - + 45 - - 95 * + ( + 4 ) * + 32 - 52 + 40 THEN NULL ELSE 28 * + 83 - + - ( 81 ) END AS SIGNED ) + - + 86 ) * - COUNT( * ) * 39 * - CAST( NULL AS DECIMAL ) + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT + + ( + + 49 ) * + ( + 50 ) * + 45 / - - NULLIF ( 38, + 15 * + CAST ( + CASE COUNT ( * ) WHEN - + 45 - - 95 * + ( + 4 ) * + 32 - 52 + 40 THEN NULL ELSE 28 * + 83 - + - ( 81 ) END AS INTEGER ) + - + 86 ) * - COUNT ( * ) * 39 * - CAST ( NULL AS REAL ) + 29 AS col2
----
NULL

query I rowsort
SELECT - ( ( 62 ) ) AS col1
----
-62

query II rowsort
SELECT + 72 col0, + 14
----
72
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT ALL + 41 * + + 56 * 47 * + COUNT( * ) - + + 60 + 47 + ( + 1 ) AS col1
----
107900

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL + 41 * + + 56 * 47 * + COUNT ( * ) - + + 60 + 47 + ( + 1 ) AS col1
----
107900

query I rowsort
SELECT DISTINCT + - 41
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9330
SELECT ALL + 66, - 81 + 60 - COUNT( * ) + + COUNT( * ) / - CASE - CAST( - - 91 AS SIGNED ) WHEN 71 THEN - 32 ELSE NULL END AS col1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-9330
SELECT ALL + 66, - 81 + 60 - COUNT ( * ) + + COUNT ( * ) / - CASE - CAST ( - - 91 AS INTEGER ) WHEN 71 THEN - 32 ELSE NULL END AS col1
----
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT - + ( 22 ) * - + MAX( + - 27 ) AS col2
----
-594

skipif mysql # not compatible
query I rowsort label-9331
SELECT - + ( 22 ) * - + MAX ( + - 27 ) AS col2
----
-594

query I rowsort
SELECT ALL + + 59 col1
----
59

query I rowsort
SELECT + + 23 + - + 1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT 1 * - 90 + 53 * + COUNT( * ) * NULLIF ( + COUNT( * ), + - 3 ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-9334
SELECT 1 * - 90 + 53 * + COUNT ( * ) * NULLIF ( + COUNT ( * ), + - 3 ) col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9335
SELECT - CAST( NULL AS SIGNED ) * MIN( ALL + 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT - CAST ( NULL AS INTEGER ) * MIN ( ALL + 10 ) AS col1
----
NULL

query I rowsort
SELECT + 69 * - 12
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT ALL - + 6 * - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL - + 6 * - COUNT ( * ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT DISTINCT + + NULLIF ( + COUNT( ALL + 36 ), - 72 * - ( - + MAX( - 0 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT + + NULLIF ( + COUNT ( ALL + 36 ), - 72 * - ( - + MAX ( - 0 ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9339
SELECT ALL CAST( + 83 AS SIGNED ) * - 19
----
-1577

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL CAST ( + 83 AS INTEGER ) * - 19
----
-1577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT - - ( + 67 ) * - 33 + - 63 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT - - ( + 67 ) * - 33 + - 63 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9341
SELECT DISTINCT CAST( NULL AS SIGNED ) col2, + 31 - 77
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-9341
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, + 31 - 77
----
NULL
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-9342
SELECT DISTINCT CASE + 23 WHEN - + 79 THEN - MIN( ALL + - 12 ) - + - 88 + - 2 ELSE NULL END col0, ( ( + - 5 ) ) - NULLIF ( 66, + + 24 ) AS col1
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-9342
SELECT DISTINCT CASE + 23 WHEN - + 79 THEN - MIN ( ALL + - 12 ) - + - 88 + - 2 ELSE NULL END col0, ( ( + - 5 ) ) - NULLIF ( 66, + + 24 ) AS col1
----
NULL
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9343
SELECT ALL CAST( ( + + COALESCE ( 9, - 6, + + COUNT( * ) / COUNT( * ) + - COUNT( * ) + + + AVG ( - + 94 ) * - 89 ) ) AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL CAST ( ( + + COALESCE ( 9, - 6, + + COUNT ( * ) / COUNT ( * ) + - COUNT ( * ) + + + AVG ( - + 94 ) * - 89 ) ) AS INTEGER )
----
9

query I rowsort
SELECT DISTINCT ( - 47 ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9345
SELECT DISTINCT ( - - 69 ), MAX( DISTINCT + 82 ) DIV MAX( DISTINCT + NULLIF ( 19, + ( - - 21 ) ) ) + - 87 + - CAST( + - 95 AS SIGNED ) col1
----
69
12

skipif mysql # not compatible
query II rowsort label-9345
SELECT DISTINCT ( - - 69 ), MAX ( DISTINCT + 82 ) / MAX ( DISTINCT + NULLIF ( 19, + ( - - 21 ) ) ) + - 87 + - CAST ( + - 95 AS INTEGER ) col1
----
69
12

query I rowsort
SELECT - 49 * - 62 AS col2
----
3038

query I rowsort
SELECT - CASE - 34 WHEN 25 - 4 THEN + 31 ELSE NULL END
----
NULL

query I rowsort
SELECT + 1 * - ( - 26 ) col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT - 13 * + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-9349
SELECT - 13 * + COUNT ( * )
----
-13

query I rowsort
SELECT ALL - 26 + + - 74 AS col2
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-9351
SELECT - COUNT( * ), 28 * - 44 AS col2
----
-1
-1232

skipif mysql # not compatible
query II rowsort label-9351
SELECT - COUNT ( * ), 28 * - 44 AS col2
----
-1
-1232

query I rowsort
SELECT - 53 + - 15 AS col1
----
-68

query II rowsort
SELECT 58, 19 AS col0
----
58
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9354
SELECT ALL - ( - 74 ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL - ( - 74 ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT ALL 41 + + ( + COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL 41 + + ( + COUNT ( * ) )
----
42

query I rowsort
SELECT 35 * 66
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT - 24 + - + COUNT( * ) + + - 15
----
-40

skipif mysql # not compatible
query I rowsort label-9357
SELECT - 24 + - + COUNT ( * ) + + - 15
----
-40

query II rowsort
SELECT DISTINCT - + 63 AS col2, + 51
----
-63
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT + MIN( + 0 ) * - COUNT( * ) + - - 93 * - 70 AS col0
----
-6510

skipif mysql # not compatible
query I rowsort label-9359
SELECT + MIN ( + 0 ) * - COUNT ( * ) + - - 93 * - 70 AS col0
----
-6510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9360
SELECT COUNT( * ) DIV - + 28 + - 97
----
-97

skipif mysql # not compatible
query I rowsort label-9360
SELECT COUNT ( * ) / - + 28 + - 97
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9361
SELECT ALL + COALESCE ( + 3, - 90, 92 DIV 36 ) - - MAX( + + 4 )
----
7

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL + COALESCE ( + 3, - 90, 92 / 36 ) - - MAX ( + + 4 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT + - ( + - MAX( DISTINCT - + 31 ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9362
SELECT + - ( + - MAX ( DISTINCT - + 31 ) ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9363
SELECT ALL - CAST( NULLIF ( - - CASE - + ( - COUNT( * ) ) WHEN 58 + - + 62 - + CAST( NULL AS SIGNED ) * 53 * + 23 THEN - 82 WHEN + ( - 39 ) THEN + COUNT( * ) + - - 9 ELSE NULL END, - + 91 / 83 * - - 58 / + - 92 + - 14 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL - CAST ( NULLIF ( - - CASE - + ( - COUNT ( * ) ) WHEN 58 + - + 62 - + CAST ( NULL AS INTEGER ) * 53 * + 23 THEN - 82 WHEN + ( - 39 ) THEN + COUNT ( * ) + - - 9 ELSE NULL END, - + 91 / 83 * - - 58 / + - 92 + - 14 ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9364
SELECT ALL - + COUNT( * ) col2, 55 AS col1, - 3 + - - 39 + - 16 + - 73
----
-1
55
-53

skipif mysql # not compatible
query III rowsort label-9364
SELECT ALL - + COUNT ( * ) col2, 55 AS col1, - 3 + - - 39 + - 16 + - 73
----
-1
55
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT + MIN( - + 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-9365
SELECT + MIN ( - + 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9366
SELECT 84 + + NULLIF ( - CASE + - 45 WHEN + + COUNT( * ) / - COUNT( * ) THEN - 31 ELSE NULL END, 86 * 32 ) * - 7 * - 13 AS col1, + 71 + CASE + 48 WHEN + 79 THEN + + COALESCE ( - 5, - + COUNT( * ) + + 58 ) / - COALESCE ( COUNT( * ), + ( + - 33 ) - - - 32 - + + COUNT( * ) - + + COUNT( * ) + - 88 ) WHEN + 48 THEN NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9366
SELECT 84 + + NULLIF ( - CASE + - 45 WHEN + + COUNT ( * ) / - COUNT ( * ) THEN - 31 ELSE NULL END, 86 * 32 ) * - 7 * - 13 AS col1, + 71 + CASE + 48 WHEN + 79 THEN + + COALESCE ( - 5, - + COUNT ( * ) + + 58 ) / - COALESCE ( COUNT ( * ), + ( + - 33 ) - - - 32 - + + COUNT ( * ) - + + COUNT ( * ) + - 88 ) WHEN + 48 THEN NULL END AS col1
----
NULL
NULL

query I rowsort
SELECT ALL 57 * - 60
----
-3420

onlyif mysql # DIV for integer division: 
query I rowsort label-9368
SELECT - - 43 DIV + 80 + - + 54 DIV 83 + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9368
SELECT - - 43 / + 80 + - + 54 / 83 + 58 AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9369
SELECT + 23 * + + COUNT( * ) DIV + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9369
SELECT + 23 * + + COUNT ( * ) / + 68 AS col1
----
0

query I rowsort
SELECT ALL - 50 col0
----
-50

query I rowsort
SELECT DISTINCT - 64 * - 29
----
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL - MAX( - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL - MAX ( - 87 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9373
SELECT DISTINCT NULLIF ( + 6, - COUNT( * ) ) * - + 82 * + ( + + CASE + COUNT( * ) WHEN - 18 / 37 THEN - 24 WHEN + 72 * - 70 * - - 4 * 26 + + 8 + ( - ( + + 54 ) ) THEN + 90 ELSE NULL END ) + + ( 77 ) AS col1, 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-9373
SELECT DISTINCT NULLIF ( + 6, - COUNT ( * ) ) * - + 82 * + ( + + CASE + COUNT ( * ) WHEN - 18 / 37 THEN - 24 WHEN + 72 * - 70 * - - 4 * 26 + + 8 + ( - ( + + 54 ) ) THEN + 90 ELSE NULL END ) + + ( 77 ) AS col1, 73
----
NULL
73

query I rowsort
SELECT ALL - + 64 AS col1
----
-64

query I rowsort
SELECT DISTINCT + 84 * + + 68 * - CASE WHEN NULL = 35 THEN - 57 ELSE NULL END
----
NULL

query I rowsort
SELECT 85 + - 58
----
27

query I rowsort
SELECT 24 + 38 AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9378
SELECT ALL NULLIF ( - MIN( + ( - - 23 ) ), - 72 ) DIV - + 72 * + - 45 AS col1, + 3 - + 72 * + COUNT( * ) - + 94 AS col0
----
0
-163

skipif mysql # not compatible
query II rowsort label-9378
SELECT ALL NULLIF ( - MIN ( + ( - - 23 ) ), - 72 ) / - + 72 * + - 45 AS col1, + 3 - + 72 * + COUNT ( * ) - + 94 AS col0
----
0
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT 30 * CASE COUNT( * ) WHEN + 59 THEN NULL WHEN + + 5 THEN 97 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT 30 * CASE COUNT ( * ) WHEN + 59 THEN NULL WHEN + + 5 THEN 97 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 33 + 42 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT COUNT( * ) + 48 + + 76 * - 69 AS col1
----
-5195

skipif mysql # not compatible
query I rowsort label-9381
SELECT COUNT ( * ) + 48 + + 76 * - 69 AS col1
----
-5195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9382
SELECT ALL + 66 + + + CAST( NULL AS SIGNED ) - 43 * + - 21 * + 20 - + + COUNT( * ) + + 12 col2, + SUM( - 10 ) + + - ( - 3 ) AS col1
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-9382
SELECT ALL + 66 + + + CAST ( NULL AS INTEGER ) - 43 * + - 21 * + 20 - + + COUNT ( * ) + + 12 col2, + SUM ( - 10 ) + + - ( - 3 ) AS col1
----
NULL
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9383
SELECT DISTINCT ( + COUNT( * ) ) * - + MIN( 87 ) - + CASE ( + + CASE + 19 WHEN - COUNT( * ) THEN - 83 + - - 65 ELSE NULL END ) WHEN - + 4 THEN - + 68 * + CAST( NULL AS SIGNED ) * - COUNT( * ) END * - 91 * 32 / + 40 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT ( + COUNT ( * ) ) * - + MIN ( 87 ) - + CASE ( + + CASE + 19 WHEN - COUNT ( * ) THEN - 83 + - - 65 ELSE NULL END ) WHEN - + 4 THEN - + 68 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) END * - 91 * 32 / + 40 + + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 94 + - 13
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT ALL CAST( 52 AS SIGNED ) + - ( - ( - + 7 ) ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL CAST ( 52 AS INTEGER ) + - ( - ( - + 7 ) ) AS col1
----
45

query I rowsort
SELECT DISTINCT + 12 + - 95 - + - 25 AS col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9387
SELECT COALESCE ( - 68, - ( - 80 ) DIV + 10 + 62 * + 34 * - 77, 27 ) * 71
----
-4828

skipif mysql # not compatible
query I rowsort label-9387
SELECT COALESCE ( - 68, - ( - 80 ) / + 10 + 62 * + 34 * - 77, 27 ) * 71
----
-4828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9388
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) + 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9389
SELECT 64 + 1, 89 * 95 * + MIN( ALL - + 22 ) AS col0
----
65
-186010

skipif mysql # not compatible
query II rowsort label-9389
SELECT 64 + 1, 89 * 95 * + MIN ( ALL - + 22 ) AS col0
----
65
-186010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9390
SELECT - COALESCE ( + CAST( + 40 AS SIGNED ), - CAST( MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED ) DIV 75 DIV - COUNT( * ) * + NULLIF ( + 90, - 46 * - COUNT( * ) * - ( COUNT( * ) ) ) )
----
-40

skipif mysql # not compatible
query I rowsort label-9390
SELECT - COALESCE ( + CAST ( + 40 AS INTEGER ), - CAST ( MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER ) / 75 / - COUNT ( * ) * + NULLIF ( + 90, - 46 * - COUNT ( * ) * - ( COUNT ( * ) ) ) )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9391
SELECT ALL - 11 - CAST( + - 33 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL - 11 - CAST ( + - 33 AS INTEGER ) AS col0
----
22

query I rowsort
SELECT DISTINCT 78 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL 74 - - + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL 74 - - + COUNT ( * ) AS col2
----
75

query I rowsort
SELECT - 44 * 24 * + 24
----
-25344

query I rowsort
SELECT DISTINCT + 20 * 3 + + 48 + 28
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT ALL + MAX( + + 70 ) * - 51
----
-3570

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL + MAX ( + + 70 ) * - 51
----
-3570

query I rowsort
SELECT DISTINCT - + 63 AS col1
----
-63

query I rowsort
SELECT + 44 * + 18 - + 11
----
781

onlyif mysql # aggregate syntax: 
query II rowsort label-9399
SELECT - 60 * 44, + MAX( - 19 ) + 16 AS col0
----
-2640
-3

skipif mysql # not compatible
query II rowsort label-9399
SELECT - 60 * 44, + MAX ( - 19 ) + 16 AS col0
----
-2640
-3

query I rowsort
SELECT DISTINCT - - 30
----
30

query I rowsort
SELECT ALL 4 * + 76
----
304

onlyif mysql # DIV for integer division: 
query II rowsort label-9402
SELECT ALL - + 35 DIV 82, COALESCE ( 28, + + 58 ) AS col2
----
0
28

skipif mysql # not compatible
query II rowsort label-9402
SELECT ALL - + 35 / 82, COALESCE ( 28, + + 58 ) AS col2
----
0
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9403
SELECT ALL + 85 + + 83 DIV + ( - + COUNT( * ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL + 85 + + 83 / + ( - + COUNT ( * ) ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT + COUNT( * ) * - 13 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-9404
SELECT + COUNT ( * ) * - 13 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT 3 + - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9405
SELECT 3 + - + COUNT ( * )
----
2

query I rowsort
SELECT - 68 * - 4 - + 26 AS col0
----
246

onlyif mysql # aggregate syntax: 
query II rowsort label-9407
SELECT ALL - 59, COALESCE ( + 88, - + 22 * - - COALESCE ( + COUNT( * ), - + 45 * + 96 ) ) - + 61 AS col1
----
-59
27

skipif mysql # not compatible
query II rowsort label-9407
SELECT ALL - 59, COALESCE ( + 88, - + 22 * - - COALESCE ( + COUNT ( * ), - + 45 * + 96 ) ) - + 61 AS col1
----
-59
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT 98 * - COUNT( * ) * - + COUNT( DISTINCT 14 ) * - + 83 * 0 * + 49 + 99
----
99

skipif mysql # not compatible
query I rowsort label-9408
SELECT 98 * - COUNT ( * ) * - + COUNT ( DISTINCT 14 ) * - + 83 * 0 * + 49 + 99
----
99

query II rowsort
SELECT DISTINCT - 72 AS col1, + 4 + 11 + + ( 49 ) * + + 0 * + 94 AS col1
----
-72
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL ( - - COUNT( * ) ) + 40 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL ( - - COUNT ( * ) ) + 40 AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT DISTINCT CAST( + 24 AS SIGNED ) + + CAST( NULL AS SIGNED ) / ( - 12 ) * AVG ( DISTINCT + CASE - 19 WHEN 84 THEN NULL ELSE + ( 87 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT CAST ( + 24 AS INTEGER ) + + CAST ( NULL AS INTEGER ) / ( - 12 ) * AVG ( DISTINCT + CASE - 19 WHEN 84 THEN NULL ELSE + ( 87 ) END ) AS col2
----
NULL

query I rowsort
SELECT ( + + 52 ) + - 63
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9413
SELECT ALL CASE - + 95 WHEN 78 + - 20 THEN + - COUNT( + + ( + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) WHEN + COUNT( * ) + ( - + 39 ) THEN NULL ELSE NULL END * + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL CASE - + 95 WHEN 78 + - 20 THEN + - COUNT ( + + ( + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) WHEN + COUNT ( * ) + ( - + 39 ) THEN NULL ELSE NULL END * + 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT - MAX( ALL + - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-9414
SELECT - MAX ( ALL + - 77 )
----
77

query I rowsort
SELECT ALL ( - 50 ) + + + ( - 16 ) AS col1
----
-66

query II rowsort
SELECT ALL 43 AS col1, + 98
----
43
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 65 + + - 36 * + 21 * - - 54
----
-40759

onlyif mysql # DIV for integer division: 
query II rowsort label-9419
SELECT ALL 52 AS col1, + 96 * + - 79 - 28 * - 20 DIV 1 AS col0
----
52
-7024

skipif mysql # not compatible
query II rowsort label-9419
SELECT ALL 52 AS col1, + 96 * + - 79 - 28 * - 20 / 1 AS col0
----
52
-7024

query II rowsort
SELECT 70 AS col2, ( + 68 ) AS col2
----
70
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9421
SELECT - 54 AS col2, + 80 + ( - COUNT( * ) )
----
-54
79

skipif mysql # not compatible
query II rowsort label-9421
SELECT - 54 AS col2, + 80 + ( - COUNT ( * ) )
----
-54
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT + 6 * 80 * - 85 * - 15 * + ( + + COUNT( * ) )
----
612000

skipif mysql # not compatible
query I rowsort label-9422
SELECT + 6 * 80 * - 85 * - 15 * + ( + + COUNT ( * ) )
----
612000

query I rowsort
SELECT ALL 18 * 59 AS col2
----
1062

query I rowsort
SELECT + 24 - - 27 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT - 29 * - + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-9425
SELECT - 29 * - + COUNT ( * )
----
29

query II rowsort
SELECT ALL 63 AS col2, ( 87 ) * 6 * - 63 * 31
----
63
-1019466

query I rowsort
SELECT ALL + 63 * - 16 col1
----
-1008

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT - + 55 DIV + + 53
----
-1

skipif mysql # not compatible
query I rowsort label-9428
SELECT - + 55 / + + 53
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT ALL - 74 * - 67 * NULLIF ( - COUNT( * ), 3 + COUNT( * ) * 32 * - - 24 )
----
-4958

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL - 74 * - 67 * NULLIF ( - COUNT ( * ), 3 + COUNT ( * ) * 32 * - - 24 )
----
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT + + ( - NULLIF ( - + COUNT( * ), 11 ) ) + - - 87
----
88

skipif mysql # not compatible
query I rowsort label-9430
SELECT + + ( - NULLIF ( - + COUNT ( * ), 11 ) ) + - - 87
----
88

query III rowsort
SELECT - + 5 - - 25 * - 12 AS col0, + 21, - 40 AS col0
----
-305
21
-40

query I rowsort
SELECT ALL - + 88 - 73 AS col0
----
-161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT - COALESCE ( + 76, - 76 * - - 90 * + 4 + - - 44 + - + CAST( NULL AS SIGNED ) )
----
-76

skipif mysql # not compatible
query I rowsort label-9433
SELECT - COALESCE ( + 76, - 76 * - - 90 * + 4 + - - 44 + - + CAST ( NULL AS INTEGER ) )
----
-76

query I rowsort
SELECT - - ( 84 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9435
SELECT ALL ( - ( - + 57 ) ) AS col2, ( ( 63 ) ) + + + 48 + + - COUNT( * ) + - - COUNT( * ) AS col1
----
57
111

skipif mysql # not compatible
query II rowsort label-9435
SELECT ALL ( - ( - + 57 ) ) AS col2, ( ( 63 ) ) + + + 48 + + - COUNT ( * ) + - - COUNT ( * ) AS col1
----
57
111

query I rowsort
SELECT - 22 + 96 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL + - COALESCE ( - + COUNT( - - ( 49 ) ), NULLIF ( ( + - 98 ), + 60 - + + 22 ) + + 34 + - 47 - - 83 ) * + 22 * 53 AS col1
----
1166

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL + - COALESCE ( - + COUNT ( - - ( 49 ) ), NULLIF ( ( + - 98 ), + 60 - + + 22 ) + + 34 + - 47 - - 83 ) * + 22 * 53 AS col1
----
1166

query I rowsort
SELECT ALL + - 19 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-9439
SELECT + - 23 AS col1, - COUNT( * )
----
-23
-1

skipif mysql # not compatible
query II rowsort label-9439
SELECT + - 23 AS col1, - COUNT ( * )
----
-23
-1

query I rowsort
SELECT - 62 + - 40 - - 6 + 47 - 80 AS col1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT ALL - - COUNT( * ) * + 42 col0
----
42

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL - - COUNT ( * ) * + 42 col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9442
SELECT - - 93 DIV - MAX( 72 ), - 8 AS col2
----
-1
-8

skipif mysql # not compatible
query II rowsort label-9442
SELECT - - 93 / - MAX ( 72 ), - 8 AS col2
----
-1
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9443
SELECT + 20 AS col1, - COUNT( * ) * + 58
----
20
-58

skipif mysql # not compatible
query II rowsort label-9443
SELECT + 20 AS col1, - COUNT ( * ) * + 58
----
20
-58

query I rowsort
SELECT - - 29 + + 66 + 52 * + 86 AS col2
----
4567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9445
SELECT - + 59 DIV COUNT( * ) + - ( + 56 ) - + - 28 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9445
SELECT - + 59 / COUNT ( * ) + - ( + 56 ) - + - 28 AS col2
----
-87

query I rowsort
SELECT COALESCE ( + ( - + 82 ), 21 ) AS col1
----
-82

query I rowsort
SELECT ALL + 39 * 5
----
195

query I rowsort
SELECT DISTINCT + 52 col2
----
52

query I rowsort
SELECT NULLIF ( + 19, - 51 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL + COUNT( * ) * 18 + 95 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL + COUNT ( * ) * 18 + 95 AS col2
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-9451
SELECT ALL + 66 * 69 + 3 DIV - 36
----
4554

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL + 66 * 69 + 3 / - 36
----
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT + MAX( ALL + 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-9452
SELECT + MAX ( ALL + 72 ) AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9453
SELECT DISTINCT + CAST( + + 84 AS SIGNED ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT + CAST ( + + 84 AS INTEGER ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT ALL + MIN( 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL + MIN ( 12 ) AS col1
----
12

query II rowsort
SELECT - 54 + + 23 AS col0, + ( + 23 )
----
-31
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT COUNT( DISTINCT - 52 ) * + ( 12 ) + 58
----
70

skipif mysql # not compatible
query I rowsort label-9456
SELECT COUNT ( DISTINCT - 52 ) * + ( 12 ) + 58
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT + NULLIF ( + COALESCE ( + 45, + 52 ), + + COUNT( * ) ) * - 44 - - + 64 * + + 25
----
-380

skipif mysql # not compatible
query I rowsort label-9457
SELECT + NULLIF ( + COALESCE ( + 45, + 52 ), + + COUNT ( * ) ) * - 44 - - + 64 * + + 25
----
-380

onlyif mysql # aggregate syntax: 
query II rowsort label-9458
SELECT + MAX( + 12 ) AS col0, 61 AS col1
----
12
61

skipif mysql # not compatible
query II rowsort label-9458
SELECT + MAX ( + 12 ) AS col0, 61 AS col1
----
12
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT COUNT( ALL 36 )
----
1

skipif mysql # not compatible
query I rowsort label-9459
SELECT COUNT ( ALL 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL 42 * - NULLIF ( + 48, + + MAX( + 79 ) )
----
-2016

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL 42 * - NULLIF ( + 48, + + MAX ( + 79 ) )
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT - MAX( + 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9461
SELECT - MAX ( + 95 ) AS col0
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9462
SELECT - 31 * + + 22 + + - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT - 31 * + + 22 + + - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT + 83 * - CASE + 41 WHEN 52 + 24 THEN - COUNT( * ) * - 24 END / + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT + 83 * - CASE + 41 WHEN 52 + 24 THEN - COUNT ( * ) * - 24 END / + 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9464
SELECT ALL - CAST( - + CAST( - - 4 AS SIGNED ) AS SIGNED ) * + 23 AS col0, - COUNT( - 30 ) col0
----
92
-1

skipif mysql # not compatible
query II rowsort label-9464
SELECT ALL - CAST ( - + CAST ( - - 4 AS INTEGER ) AS INTEGER ) * + 23 AS col0, - COUNT ( - 30 ) col0
----
92
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9465
SELECT DISTINCT CAST( COALESCE ( + - 29, - - 80, NULLIF ( - CASE 63 WHEN 14 / + - 97 THEN + COUNT( * ) / + - 87 END, - - 28 ) + - - 42 ) AS SIGNED ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT CAST ( COALESCE ( + - 29, - - 80, NULLIF ( - CASE 63 WHEN 14 / + - 97 THEN + COUNT ( * ) / + - 87 END, - - 28 ) + - - 42 ) AS INTEGER ) AS col1
----
-29

query II rowsort
SELECT DISTINCT 12 - - - 18 col0, - 39
----
-6
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT DISTINCT 41 - + MAX( DISTINCT 91 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT 41 - + MAX ( DISTINCT 91 ) AS col1
----
-50

query I rowsort
SELECT + 53 * + + 17 AS col2
----
901

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT + + 9 + + ( + + MAX( ALL 90 ) )
----
99

skipif mysql # not compatible
query I rowsort label-9469
SELECT + + 9 + + ( + + MAX ( ALL 90 ) )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9470
SELECT + + CAST( - AVG ( ALL - 3 ) AS SIGNED ) * - 19 * - - 52 AS col1, 92 - + 56 * - + MAX( ALL + - ( + 28 ) ) - 90 * - + COUNT( * ) * - - 97
----
-2964
7254

skipif mysql # not compatible
query II rowsort label-9470
SELECT + + CAST ( - AVG ( ALL - 3 ) AS INTEGER ) * - 19 * - - 52 AS col1, 92 - + 56 * - + MAX ( ALL + - ( + 28 ) ) - 90 * - + COUNT ( * ) * - - 97
----
-2964
7254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9471
SELECT ALL CAST( NULL AS SIGNED ) / 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL CAST ( NULL AS INTEGER ) / 78
----
NULL

query I rowsort
SELECT - - 38 col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT DISTINCT + MAX( 63 ) + - 15
----
48

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT + MAX ( 63 ) + - 15
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT ALL + 30 * - - 71 + - - 66 - + - 97 * + NULLIF ( 2, + CAST( - CAST( - - 52 AS SIGNED ) AS SIGNED ) * - 40 + - ( 6 ) * + 86 )
----
2390

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL + 30 * - - 71 + - - 66 - + - 97 * + NULLIF ( 2, + CAST ( - CAST ( - - 52 AS INTEGER ) AS INTEGER ) * - 40 + - ( 6 ) * + 86 )
----
2390

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9475
SELECT ALL + 19 + CAST( NULL AS DECIMAL ) + + 38 + - 34 / + - 87 / - - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL + 19 + CAST ( NULL AS REAL ) + + 38 + - 34 / + - 87 / - - COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9476
SELECT - 47 DIV - 83, + 9 * - - 97 AS col1
----
0
873

skipif mysql # not compatible
query II rowsort label-9476
SELECT - 47 / - 83, + 9 * - - 97 AS col1
----
0
873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9477
SELECT ALL + CAST( NULL AS SIGNED ) + - 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + CAST ( NULL AS INTEGER ) + - 47 AS col2
----
NULL

query I rowsort
SELECT + + 63 * - - 89
----
5607

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT + COUNT( DISTINCT + + 83 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9479
SELECT + COUNT ( DISTINCT + + 83 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + + 43 AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9481
SELECT DISTINCT + 37 DIV - 70 + 14 + + - MIN( + + 84 ) * + + 64 AS col1
----
-5362

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + 37 / - 70 + 14 + + - MIN ( + + 84 ) * + + 64 AS col1
----
-5362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9482
SELECT ALL + - 86 DIV 21 + - 90 + - + COUNT( * ) AS col2, + COALESCE ( 52, + + COALESCE ( - 61, + ( - 39 ), COUNT( * ), + CAST( NULL AS SIGNED ) ) ) DIV - + 77 + + MIN( + + 96 )
----
-95
96

skipif mysql # not compatible
query II rowsort label-9482
SELECT ALL + - 86 / 21 + - 90 + - + COUNT ( * ) AS col2, + COALESCE ( 52, + + COALESCE ( - 61, + ( - 39 ), COUNT ( * ), + CAST ( NULL AS INTEGER ) ) ) / - + 77 + + MIN ( + + 96 )
----
-95
96

query I rowsort
SELECT DISTINCT + 52 AS col1
----
52

query I rowsort
SELECT ALL + ( + - 16 )
----
-16

query II rowsort
SELECT + 75, - 20 AS col2
----
75
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT ALL + COUNT( - NULLIF ( 92, 47 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL + COUNT ( - NULLIF ( 92, 47 ) )
----
1

query I rowsort
SELECT ALL - 35 * - 5 AS col2
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT + MIN( - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-9488
SELECT + MIN ( - 24 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9489
SELECT DISTINCT - 53 * - + ( CAST( + 84 AS SIGNED ) ) * - ( - ( + 13 ) )
----
57876

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT - 53 * - + ( CAST ( + 84 AS INTEGER ) ) * - ( - ( + 13 ) )
----
57876

query II rowsort
SELECT 23 + - + ( + 98 ) AS col0, 2 + - - 77
----
-75
79

query I rowsort
SELECT 81 * - 16 - 55 AS col0
----
-1351

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT 29 * 69 * + - 41 * + MIN( DISTINCT + 32 ) AS col0
----
-2625312

skipif mysql # not compatible
query I rowsort label-9492
SELECT 29 * 69 * + - 41 * + MIN ( DISTINCT + 32 ) AS col0
----
-2625312

query II rowsort
SELECT 46 col0, 80 AS col2
----
46
80

query I rowsort
SELECT ALL + 81 - + 41
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9495
SELECT ALL + CAST( NULL AS SIGNED ) * MAX( 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL + CAST ( NULL AS INTEGER ) * MAX ( 68 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT DISTINCT 30 DIV - - 87 col1
----
0

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT 30 / - - 87 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9497
SELECT 74 DIV - - 86
----
0

skipif mysql # not compatible
query I rowsort label-9497
SELECT 74 / - - 86
----
0

query I rowsort
SELECT ALL 64 * - 21 AS col0
----
-1344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9499
SELECT DISTINCT + 0 DIV + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT + 0 / + COUNT ( * ) AS col0
----
0

query II rowsort
SELECT - 81 * - 69 + + 73 AS col2, ( + + 41 ) * + 46 AS col2
----
5662
1886

query I rowsort
SELECT 50 * - + 30
----
-1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9502
SELECT DISTINCT - 92 * 94 * MIN( DISTINCT - CAST( NULL AS SIGNED ) ) / - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT - 92 * 94 * MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - + 30
----
NULL

query I rowsort
SELECT ALL - 33 + + 61
----
28

query I rowsort
SELECT ALL + - 29 + + ( - 45 )
----
-74

query I rowsort
SELECT 30 * + 39 * - 93 * - - 55 AS col0
----
-5984550

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT ALL - ( + 27 ) + COUNT( * ) * - - 78
----
51

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL - ( + 27 ) + COUNT ( * ) * - - 78
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT ALL CASE - COALESCE ( 57, - + 81, + 46 + - 13 ) WHEN - 0 THEN NULL ELSE + 98 END + + - COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL CASE - COALESCE ( 57, - + 81, + 46 + - 13 ) WHEN - 0 THEN NULL ELSE + 98 END + + - COUNT ( * ) AS col1
----
97

query I rowsort
SELECT - 40 - 7
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT 9 + - 51 DIV - + 19
----
11

skipif mysql # not compatible
query I rowsort label-9509
SELECT 9 + - 51 / - + 19
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9510
SELECT - 65, - 21 - COUNT( * ) AS col1
----
-65
-22

skipif mysql # not compatible
query II rowsort label-9510
SELECT - 65, - 21 - COUNT ( * ) AS col1
----
-65
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9511
SELECT DISTINCT 41 DIV + COUNT( 58 ), - 43 AS col2
----
41
-43

skipif mysql # not compatible
query II rowsort label-9511
SELECT DISTINCT 41 / + COUNT ( 58 ), - 43 AS col2
----
41
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT COUNT( * ) + + - 95 - - ( - - 88 )
----
-6

skipif mysql # not compatible
query I rowsort label-9512
SELECT COUNT ( * ) + + - 95 - - ( - - 88 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9513
SELECT ALL + 15 * ( + - CASE - + CAST( - - 67 AS DECIMAL ) WHEN - COUNT( * ) * - 90 + + COUNT( - - 23 ) THEN NULL ELSE - - 99 END ) + 44 AS col2, 86 - + 63 + + + 16
----
-1441
39

skipif mysql # not compatible
query II rowsort label-9513
SELECT ALL + 15 * ( + - CASE - + CAST ( - - 67 AS REAL ) WHEN - COUNT ( * ) * - 90 + + COUNT ( - - 23 ) THEN NULL ELSE - - 99 END ) + 44 AS col2, 86 - + 63 + + + 16
----
-1441
39

query I rowsort
SELECT ALL - + 64 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9515
SELECT 52 * + 41 - - 8 + + 88 + + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1, + 13 * MIN( DISTINCT - 64 ) col2
----
NULL
-832

skipif mysql # not compatible
query II rowsort label-9515
SELECT 52 * + 41 - - 8 + + 88 + + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1, + 13 * MIN ( DISTINCT - 64 ) col2
----
NULL
-832

query I rowsort
SELECT ALL - 46 - + - 90
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-9517
SELECT DISTINCT 14 * - 71 AS col2, - COUNT( * )
----
-994
-1

skipif mysql # not compatible
query II rowsort label-9517
SELECT DISTINCT 14 * - 71 AS col2, - COUNT ( * )
----
-994
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9518
SELECT ALL CASE + CAST( 62 AS SIGNED ) WHEN 43 * 82 * + 22 + + 92 + + 98 THEN + + COUNT( * ) * - - CAST( NULL AS SIGNED ) - + - NULLIF ( + - 50, + - 68 ) + - 53 * ( - 46 ) * - NULLIF ( ( + 96 ), 2 + - - 70 * + 23 ) * + - 55 + 22 + - 58 + - + 74 WHEN COUNT( * ) + NULLIF ( COUNT( * ), + - ( 86 ) ) - 52 THEN + ( + + MAX( - ( 89 ) ) ) ELSE - 71 END * 75 col2
----
-5325

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL CASE + CAST ( 62 AS INTEGER ) WHEN 43 * 82 * + 22 + + 92 + + 98 THEN + + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) - + - NULLIF ( + - 50, + - 68 ) + - 53 * ( - 46 ) * - NULLIF ( ( + 96 ), 2 + - - 70 * + 23 ) * + - 55 + 22 + - 58 + - + 74 WHEN COUNT ( * ) + NULLIF ( COUNT ( * ), + - ( 86 ) ) - 52 THEN + ( + + MAX ( - ( 89 ) ) ) ELSE - 71 END * 75 col2
----
-5325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9519
SELECT 13 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT 13 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT 49 * + ( - NULLIF ( - ( + 73 ), CASE ( - - COUNT( * ) ) WHEN - COUNT( * ) * + COUNT( * ) + 55 + 25 + - 22 + + 96 / - + 48 THEN + + COALESCE ( 32, + 29 * - 40 ) * + 1 / - 37 ELSE NULL END + + 48 ) )
----
3577

skipif mysql # not compatible
query I rowsort label-9520
SELECT 49 * + ( - NULLIF ( - ( + 73 ), CASE ( - - COUNT ( * ) ) WHEN - COUNT ( * ) * + COUNT ( * ) + 55 + 25 + - 22 + + 96 / - + 48 THEN + + COALESCE ( 32, + 29 * - 40 ) * + 1 / - 37 ELSE NULL END + + 48 ) )
----
3577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9521
SELECT ALL 49 * - - CASE - 69 WHEN 2 + - + 71 THEN NULL WHEN - + 68 THEN + - CASE - 74 WHEN 27 * + 36 THEN NULL WHEN + - 73 + + - 89 THEN NULL ELSE + + ( COUNT( * ) ) END * CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL 49 * - - CASE - 69 WHEN 2 + - + 71 THEN NULL WHEN - + 68 THEN + - CASE - 74 WHEN 27 * + 36 THEN NULL WHEN + - 73 + + - 89 THEN NULL ELSE + + ( COUNT ( * ) ) END * CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT - 90 AS col2, 28 AS col0
----
-90
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9523
SELECT ALL - 49 - + 5 AS col2, - 66 * - MAX( - CASE + 17 WHEN + ( 12 ) / - + 60 + - 42 THEN NULL WHEN - - 3 THEN - - CAST( - 48 AS SIGNED ) END ) AS col1
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-9523
SELECT ALL - 49 - + 5 AS col2, - 66 * - MAX ( - CASE + 17 WHEN + ( 12 ) / - + 60 + - 42 THEN NULL WHEN - - 3 THEN - - CAST ( - 48 AS INTEGER ) END ) AS col1
----
-54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT COUNT( * ) * + 52 * + 8 AS col1
----
416

skipif mysql # not compatible
query I rowsort label-9524
SELECT COUNT ( * ) * + 52 * + 8 AS col1
----
416

query I rowsort
SELECT 74 * 3
----
222

query I rowsort
SELECT 64 * + + 61
----
3904

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT DISTINCT 0 DIV 33 * 98
----
0

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT 0 / 33 * 98
----
0

query II rowsort
SELECT ALL - 9 AS col2, - COALESCE ( + + 68, - + 50 * + 38 ) col0
----
-9
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9529
SELECT NULLIF ( - ( + CASE 63 WHEN + 38 + - 22 * - CASE 19 WHEN - AVG ( 16 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 96 ELSE - 37 + 0 END + - 13 + - + 88 * - 74 - + ( 81 ) - - 50 * - COUNT( * ) - - 53 THEN 84 WHEN - COALESCE ( - COALESCE ( 75, - 35 ), 1 / + COALESCE ( - 71, - + 65 + + 12 + 20 * + + 68 ) / + 94 - - 5 + - 74 + 23 ) + 52 THEN COUNT( * ) * + 62 WHEN + AVG ( 79 ) THEN 90 + + 9 * - COUNT( * ) ELSE AVG ( - 31 ) END ), CAST( NULL AS SIGNED ) ) - + 5 * - CASE 96 * - ( 74 ) WHEN COUNT( * ) THEN COUNT( DISTINCT + NULLIF ( 67, - 72 * - 38 ) ) + - 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT NULLIF ( - ( + CASE 63 WHEN + 38 + - 22 * - CASE 19 WHEN - AVG ( 16 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 96 ELSE - 37 + 0 END + - 13 + - + 88 * - 74 - + ( 81 ) - - 50 * - COUNT ( * ) - - 53 THEN 84 WHEN - COALESCE ( - COALESCE ( 75, - 35 ), 1 / + COALESCE ( - 71, - + 65 + + 12 + 20 * + + 68 ) / + 94 - - 5 + - 74 + 23 ) + 52 THEN COUNT ( * ) * + 62 WHEN + AVG ( 79 ) THEN 90 + + 9 * - COUNT ( * ) ELSE AVG ( - 31 ) END ), CAST ( NULL AS INTEGER ) ) - + 5 * - CASE 96 * - ( 74 ) WHEN COUNT ( * ) THEN COUNT ( DISTINCT + NULLIF ( 67, - 72 * - 38 ) ) + - 8 END AS col2
----
NULL

query I rowsort
SELECT ALL + 14 * - 13
----
-182

query I rowsort
SELECT ( - 69 ) * - 51 AS col1
----
3519

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT + 48 * + 73 / + CAST( NULL AS SIGNED ) + + - 66 - - ( 19 ) * + - 53 + - + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT + 48 * + 73 / + CAST ( NULL AS INTEGER ) + + - 66 - - ( 19 ) * + - 53 + - + 44 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT DISTINCT + 5 * + 91 * - - COUNT( * ) * - - 50 * - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT + 5 * + 91 * - - COUNT ( * ) * - - 50 * - 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT ALL - 12 + - + CAST( 82 AS SIGNED ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL - 12 + - + CAST ( 82 AS INTEGER ) AS col0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT 19 DIV + ( - 90 ) * 37
----
0

skipif mysql # not compatible
query I rowsort label-9535
SELECT 19 / + ( - 90 ) * 37
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9536
SELECT + 85 * + ( + CAST( NULL AS SIGNED ) ) + - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT + 85 * + ( + CAST ( NULL AS INTEGER ) ) + - 66 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9537
SELECT + CASE - + 66 WHEN + 77 THEN NULL ELSE + + CASE - 97 WHEN + 14 + - + 81 THEN + 84 WHEN + 42 THEN - + COUNT( * ) WHEN - COUNT( * ) + - + 32 THEN NULL END + ( - CAST( NULL AS SIGNED ) ) END AS col1, MAX( 45 ) + + ( - + COUNT( * ) ) - - SUM( ALL + CAST( + 23 AS SIGNED ) ) AS col0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-9537
SELECT + CASE - + 66 WHEN + 77 THEN NULL ELSE + + CASE - 97 WHEN + 14 + - + 81 THEN + 84 WHEN + 42 THEN - + COUNT ( * ) WHEN - COUNT ( * ) + - + 32 THEN NULL END + ( - CAST ( NULL AS INTEGER ) ) END AS col1, MAX ( 45 ) + + ( - + COUNT ( * ) ) - - SUM ( ALL + CAST ( + 23 AS INTEGER ) ) AS col0
----
NULL
67

query I rowsort
SELECT ALL - 63 + + - NULLIF ( 82, - 39 )
----
-145

query I rowsort
SELECT + 88 + + 45 * - 5 AS col1
----
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-9540
SELECT ALL + COUNT( * ) AS col1, - 35 AS col1
----
1
-35

skipif mysql # not compatible
query II rowsort label-9540
SELECT ALL + COUNT ( * ) AS col1, - 35 AS col1
----
1
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9541
SELECT ( - - 32 ) DIV + - 21
----
-1

skipif mysql # not compatible
query I rowsort label-9541
SELECT ( - - 32 ) / + - 21
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT COUNT( * ) * - 18 + - 0 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9542
SELECT COUNT ( * ) * - 18 + - 0 AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT DISTINCT + ( + + 10 ) DIV + + 67
----
0

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT + ( + + 10 ) / + + 67
----
0

query I rowsort
SELECT 75 + + 98 AS col0
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9545
SELECT SUM( - - CAST( 6 AS SIGNED ) ) DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-9545
SELECT SUM ( - - CAST ( 6 AS INTEGER ) ) / + + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT - 38 + - + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-9546
SELECT - 38 + - + COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT ALL + 11 + COUNT( * ) + + 40 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL + 11 + COUNT ( * ) + + 40 AS col1
----
52

query I rowsort
SELECT 67 + 65 AS col0
----
132

query I rowsort
SELECT ALL - - 13 + + 26
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9550
SELECT CASE + 92 WHEN 54 + + - 55 THEN NULL WHEN + 49 THEN CAST( NULL AS SIGNED ) / + 23 * - ( + AVG ( 46 ) ) END * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9550
SELECT CASE + 92 WHEN 54 + + - 55 THEN NULL WHEN + 49 THEN CAST ( NULL AS INTEGER ) / + 23 * - ( + AVG ( 46 ) ) END * CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT 90 col0, - 4 * + + 54 AS col0
----
90
-216

onlyif mysql # aggregate syntax: 
query II rowsort label-9552
SELECT DISTINCT COUNT( * ) * 12, - 29 AS col0
----
12
-29

skipif mysql # not compatible
query II rowsort label-9552
SELECT DISTINCT COUNT ( * ) * 12, - 29 AS col0
----
12
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9553
SELECT DISTINCT + 8 - - - COUNT( + - CAST( NULL AS SIGNED ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT + 8 - - - COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
8

query I rowsort
SELECT ALL + NULLIF ( 0, + + 2 - - 67 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT DISTINCT 53 - - COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT 53 - - COUNT ( * ) AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9556
SELECT ALL COUNT( - CAST( NULL AS SIGNED ) ) - + 59
----
-59

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) - + 59
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT ALL CASE - 49 WHEN + COUNT( * ) + + CAST( NULL AS SIGNED ) THEN NULL WHEN 76 THEN + COALESCE ( - 8, - 70 ) * + + CAST( NULL AS SIGNED ) * + 91 + - - 31 * ( - 62 ) / + - 77 + + 54 + - - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL CASE - 49 WHEN + COUNT ( * ) + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 76 THEN + COALESCE ( - 8, - 70 ) * + + CAST ( NULL AS INTEGER ) * + 91 + - - 31 * ( - 62 ) / + - 77 + + 54 + - - 12 END
----
NULL

query I rowsort
SELECT - 37 - - 30 AS col2
----
-7

query I rowsort
SELECT - 55 * 71 * + 80
----
-312400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9560
SELECT 8 DIV + + CAST( - NULLIF ( - 70, + + COUNT( + - 86 ) ) AS SIGNED ) + + 2
----
2

skipif mysql # not compatible
query I rowsort label-9560
SELECT 8 / + + CAST ( - NULLIF ( - 70, + + COUNT ( + - 86 ) ) AS INTEGER ) + + 2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9561
SELECT + COUNT( * ) DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-9561
SELECT + COUNT ( * ) / + 30
----
0

query I rowsort
SELECT + ( - - ( - 46 ) ) * + 78 col1
----
-3588

query I rowsort
SELECT ALL 19 * 50 AS col1
----
950

query I rowsort
SELECT ALL 54 * + - ( + NULLIF ( + 4, + 31 ) ) AS col1
----
-216

query I rowsort
SELECT + CASE + + 99 WHEN - 39 THEN CASE + + 96 WHEN - AVG ( ALL - - 54 ) THEN NULL WHEN - 4 THEN NULL WHEN - 51 * 82 THEN + - 13 ELSE NULL END ELSE - 96 + - 99 END - - + 83 AS col1
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT + ( + 38 ) DIV + 46 + + COALESCE ( - NULLIF ( + 5, - 98 ), 19, 0 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9566
SELECT + ( + 38 ) / + 46 + + COALESCE ( - NULLIF ( + 5, - 98 ), 19, 0 ) AS col0
----
-5

query I rowsort
SELECT ALL 59 * 31
----
1829

query I rowsort
SELECT + 24 + - + 50
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9569
SELECT + 41 DIV COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9569
SELECT + 41 / COUNT ( * ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT COUNT( * ) * + 63 + + 58 * + 73 * 95 AS col1
----
402293

skipif mysql # not compatible
query I rowsort label-9570
SELECT COUNT ( * ) * + 63 + + 58 * + 73 * 95 AS col1
----
402293

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT MIN( ALL + 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9571
SELECT MIN ( ALL + 91 ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9572
SELECT - ( - 91 ) * - MIN( ALL + - 3 ) * + + CAST( + - ( + 56 ) AS SIGNED )
----
-15288

skipif mysql # not compatible
query I rowsort label-9572
SELECT - ( - 91 ) * - MIN ( ALL + - 3 ) * + + CAST ( + - ( + 56 ) AS INTEGER )
----
-15288

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL 0 * COUNT( * ) * - - 99 + + 87 + 4 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL 0 * COUNT ( * ) * - - 99 + + 87 + 4 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ALL + - COALESCE ( - COUNT( + + 82 ), - + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL + - COALESCE ( - COUNT ( + + 82 ), - + 52 )
----
1

query I rowsort
SELECT DISTINCT + 95 AS col2
----
95

query I rowsort
SELECT ALL - 0 + - 91 * - - 33 AS col2
----
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ALL + + 91 * MIN( + 78 )
----
7098

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL + + 91 * MIN ( + 78 )
----
7098

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL CASE + 13 WHEN + 90 THEN NULL WHEN - 35 * - + 56 THEN + + 33 / + 53 ELSE NULL END * - + 31 + + MAX( ALL - 12 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL CASE + 13 WHEN + 90 THEN NULL WHEN - 35 * - + 56 THEN + + 33 / + 53 ELSE NULL END * - + 31 + + MAX ( ALL - 12 ) AS col0
----
NULL

query II rowsort
SELECT - - 20 * - + 97 AS col1, 83 AS col2
----
-1940
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9580
SELECT ALL + - CAST( - 65 AS SIGNED ) * + + MIN( DISTINCT 8 ) AS col2
----
520

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL + - CAST ( - 65 AS INTEGER ) * + + MIN ( DISTINCT 8 ) AS col2
----
520

query I rowsort
SELECT - 94 col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT - ( + + MIN( DISTINCT - 32 ) )
----
32

skipif mysql # not compatible
query I rowsort label-9582
SELECT - ( + + MIN ( DISTINCT - 32 ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT - 75 - 97 * + 0 * - 56 - + COUNT( * ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-9583
SELECT - 75 - 97 * + 0 * - 56 - + COUNT ( * ) col1
----
-76

query I rowsort
SELECT ALL + ( + + 39 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT ALL - COALESCE ( + 34, - CAST( + 1 AS SIGNED ) - + 31, - 28 * 41 ) - 8
----
-42

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL - COALESCE ( + 34, - CAST ( + 1 AS INTEGER ) - + 31, - 28 * 41 ) - 8
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9586
SELECT ALL - - MIN( - 76 ) DIV 93 DIV - 11
----
0

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL - - MIN ( - 76 ) / 93 / - 11
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9587
SELECT ALL + 24 - + 93 + + 42 * - 78 * + + 39 * - COUNT( * ) + + + COUNT( * ), - 54 * + 72 * + 35 AS col1
----
127696
-136080

skipif mysql # not compatible
query II rowsort label-9587
SELECT ALL + 24 - + 93 + + 42 * - 78 * + + 39 * - COUNT ( * ) + + + COUNT ( * ), - 54 * + 72 * + 35 AS col1
----
127696
-136080

query I rowsort
SELECT DISTINCT + 36 AS col0
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9589
SELECT - + ( - 96 ) + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT - + ( - 96 ) + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL ( 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT + 96 + - - SUM( ALL - 56 ) + + MIN( + 14 )
----
54

skipif mysql # not compatible
query I rowsort label-9591
SELECT + 96 + - - SUM ( ALL - 56 ) + + MIN ( + 14 )
----
54

query I rowsort
SELECT - 8 + - - 94
----
86

query I rowsort
SELECT ALL + 22 * - 88 AS col2
----
-1936

onlyif mysql # aggregate syntax: 
query II rowsort label-9594
SELECT - COUNT( + 36 ) + - 18 col2, 86
----
-19
86

skipif mysql # not compatible
query II rowsort label-9594
SELECT - COUNT ( + 36 ) + - 18 col2, 86
----
-19
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9595
SELECT ALL + 22 AS col2, + 76 * - + COUNT( * ) AS col0
----
22
-76

skipif mysql # not compatible
query II rowsort label-9595
SELECT ALL + 22 AS col2, + 76 * - + COUNT ( * ) AS col0
----
22
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9596
SELECT COUNT( * ) DIV COUNT( * ) + 92
----
93

skipif mysql # not compatible
query I rowsort label-9596
SELECT COUNT ( * ) / COUNT ( * ) + 92
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-9597
SELECT ALL + 29 AS col0, COALESCE ( + MIN( ALL + 80 ), - 5 - - COUNT( * ), + COUNT( * ) ) AS col2
----
29
80

skipif mysql # not compatible
query II rowsort label-9597
SELECT ALL + 29 AS col0, COALESCE ( + MIN ( ALL + 80 ), - 5 - - COUNT ( * ), + COUNT ( * ) ) AS col2
----
29
80

query I rowsort
SELECT ALL + 14 * + NULLIF ( - - 17, 31 )
----
238

onlyif mysql # DIV for integer division: 
query I rowsort label-9599
SELECT DISTINCT 9 DIV 99 + + + ( - - 49 ) - CASE + 22 WHEN - 25 THEN - + 98 WHEN - 89 THEN NULL ELSE 79 * + 42 END DIV - 4
----
878

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT 9 / 99 + + + ( - - 49 ) - CASE + 22 WHEN - 25 THEN - + 98 WHEN - 89 THEN NULL ELSE 79 * + 42 END / - 4
----
878

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT + COUNT( * ) AS col2, 24
----
1
24

skipif mysql # not compatible
query II rowsort label-9600
SELECT + COUNT ( * ) AS col2, 24
----
1
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9601
SELECT + 24 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT + 24 / - 32
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9602
SELECT DISTINCT 47 DIV + - 76 * COUNT( + 32 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT 47 / + - 76 * COUNT ( + 32 ) col1
----
0

query II rowsort
SELECT ALL 27 * - 59 + 40, + 74 AS col1
----
-1553
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9604
SELECT + 39 DIV - ( + 90 ) + 99
----
99

skipif mysql # not compatible
query I rowsort label-9604
SELECT + 39 / - ( + 90 ) + 99
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9605
SELECT + ( SUM( ALL + 16 ) ), ( - - 87 ) AS col1
----
16
87

skipif mysql # not compatible
query II rowsort label-9605
SELECT + ( SUM ( ALL + 16 ) ), ( - - 87 ) AS col1
----
16
87

query I rowsort
SELECT ALL 47 * - - 60 + - 31 + - - 44 AS col1
----
2833

onlyif mysql # aggregate syntax: 
query II rowsort label-9607
SELECT ALL ( 70 ) * + - 46 col1, 7 * NULLIF ( - + 72, NULLIF ( + 86, + ( - 10 ) ) / - 39 * COUNT( ALL - 45 ) )
----
-3220
-504

skipif mysql # not compatible
query II rowsort label-9607
SELECT ALL ( 70 ) * + - 46 col1, 7 * NULLIF ( - + 72, NULLIF ( + 86, + ( - 10 ) ) / - 39 * COUNT ( ALL - 45 ) )
----
-3220
-504

query I rowsort
SELECT ALL - 78 * ( + 87 ) + - + ( 40 ) + - + 29
----
-6855

query II rowsort
SELECT + - ( + 7 ) * - - 29 * + 1 AS col1, - 53
----
-203
-53

query I rowsort
SELECT - - 55 + - 47 AS col2
----
8

query I rowsort
SELECT DISTINCT + - 74 * + 5 + + - 31
----
-401

query I rowsort
SELECT - NULLIF ( 54, - - 76 + - - 8 * - 48 * - 71 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT + 6 + 11 - - 31 * - COALESCE ( 13, + COUNT( * ) ) col0
----
-386

skipif mysql # not compatible
query I rowsort label-9613
SELECT + 6 + 11 - - 31 * - COALESCE ( 13, + COUNT ( * ) ) col0
----
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL - + 75 * - + COUNT( * ) + - 94 + 22 * - 39 * + 4 + - - 67 + - + 29 * 43 - + - 87 col0
----
-4544

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL - + 75 * - + COUNT ( * ) + - 94 + 22 * - 39 * + 4 + - - 67 + - + 29 * 43 - + - 87 col0
----
-4544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT + CAST( - 60 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-9615
SELECT + CAST ( - 60 AS INTEGER )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT + 20 + COUNT( * ) - MIN( DISTINCT 19 )
----
2

skipif mysql # not compatible
query I rowsort label-9616
SELECT + 20 + COUNT ( * ) - MIN ( DISTINCT 19 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9617
SELECT + CAST( - - CAST( - - 20 AS SIGNED ) AS SIGNED ) + + 68
----
88

skipif mysql # not compatible
query I rowsort label-9617
SELECT + CAST ( - - CAST ( - - 20 AS INTEGER ) AS INTEGER ) + + 68
----
88

query I rowsort
SELECT DISTINCT 6 col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9619
SELECT ALL - 63 * + CAST( 82 AS SIGNED ) + + - COALESCE ( - 42, + CAST( - - COUNT( DISTINCT 36 ) AS SIGNED ) ) - - 32 AS col2
----
-5092

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL - 63 * + CAST ( 82 AS INTEGER ) + + - COALESCE ( - 42, + CAST ( - - COUNT ( DISTINCT 36 ) AS INTEGER ) ) - - 32 AS col2
----
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL - 70 * + - COUNT( * ) + 18 + - - 82 * - + 20
----
-1552

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL - 70 * + - COUNT ( * ) + 18 + - - 82 * - + 20
----
-1552

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL + SUM( DISTINCT + + 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL + SUM ( DISTINCT + + 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT + COUNT( * ) * 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9622
SELECT + COUNT ( * ) * 32 AS col0
----
32

query II rowsort
SELECT - 84 AS col2, NULLIF ( - 93, - 39 )
----
-84
-93

query I rowsort
SELECT ALL ( - 83 )
----
-83

query I rowsort
SELECT 7 + - + 53
----
-46

query I rowsort
SELECT ALL - + 54 * - - 91 col0
----
-4914

query I rowsort
SELECT DISTINCT - 8 * - + 91
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ALL 90 * 38 * + COUNT( * )
----
3420

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL 90 * 38 * + COUNT ( * )
----
3420

query I rowsort
SELECT 15 col2
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9630
SELECT DISTINCT + 45 + 78 / - + COALESCE ( 40, 40 * + 81 ) - + 48 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT + 45 + 78 / - + COALESCE ( 40, 40 * + 81 ) - + 48 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - 91 + + 15 - 37 AS col1
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9632
SELECT ALL + 27 + + 97 * - NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) * - 61 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL + 27 + + 97 * - NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) * - 61 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 55 + - + 57
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-9634
SELECT 82 DIV - 29 + 42
----
40

skipif mysql # not compatible
query I rowsort label-9634
SELECT 82 / - 29 + 42
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT DISTINCT - 46 + - COUNT( + 96 ) + + COUNT( * ) * - - 64
----
17

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT - 46 + - COUNT ( + 96 ) + + COUNT ( * ) * - - 64
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL + COUNT( * ) + + - 77
----
-76

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL + COUNT ( * ) + + - 77
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-9637
SELECT + ( 18 ) DIV + 71 - 89 - 33
----
-122

skipif mysql # not compatible
query I rowsort label-9637
SELECT + ( 18 ) / + 71 - 89 - 33
----
-122

query I rowsort
SELECT DISTINCT - 1 * ( + - 25 ) AS col1
----
25

query I rowsort
SELECT DISTINCT - NULLIF ( - 46, + 20 - + - ( + 11 ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT ALL - 83 * - COALESCE ( - - COUNT( + 17 ), 39 ) * + 62 * 0 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL - 83 * - COALESCE ( - - COUNT ( + 17 ), 39 ) * + 62 * 0 * COUNT ( * )
----
0

query I rowsort
SELECT 53 + - 37
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT + MAX( + - 13 ) * + - 82 * - 19 * - + 40 AS col0
----
810160

skipif mysql # not compatible
query I rowsort label-9642
SELECT + MAX ( + - 13 ) * + - 82 * - 19 * - + 40 AS col0
----
810160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9643
SELECT CAST( NULL AS SIGNED ) - 78 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9643
SELECT CAST ( NULL AS INTEGER ) - 78 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9644
SELECT - NULLIF ( - - COUNT( * ), AVG ( + 32 ) * - - 74 * 21 ) * + ( - 59 ) + - 30 AS col0, + 40
----
29
40

skipif mysql # not compatible
query II rowsort label-9644
SELECT - NULLIF ( - - COUNT ( * ), AVG ( + 32 ) * - - 74 * 21 ) * + ( - 59 ) + - 30 AS col0, + 40
----
29
40

query I rowsort
SELECT ALL - - 31 AS col0
----
31

query I rowsort
SELECT ALL + 99 * - 28 * - 64 AS col0
----
177408

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL - 88 * - COUNT( * ) * - 68 - - 42
----
-5942

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL - 88 * - COUNT ( * ) * - 68 - - 42
----
-5942

query I rowsort
SELECT - - 29 col2
----
29

query I rowsort
SELECT 32 + 60 AS col2
----
92

query I rowsort
SELECT ALL 76 * - 97
----
-7372

query I rowsort
SELECT 22 * - 81 * + + 46 col1
----
-81972

query I rowsort
SELECT - 64 * - 25
----
1600

query I rowsort
SELECT ALL 79 + + 98
----
177

query I rowsort
SELECT DISTINCT ( - 75 ) + - 84
----
-159

query II rowsort
SELECT ALL 23, 44 col2
----
23
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT DISTINCT 84 + COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT 84 + COUNT ( * ) AS col0
----
85

query I rowsort
SELECT 48 + - 14 AS col1
----
34

query I rowsort
SELECT 83 - 83
----
0

query I rowsort
SELECT ALL 36 * - 50 AS col1
----
-1800

query I rowsort
SELECT ( + 16 ) + - + 37
----
-21

query I rowsort
SELECT 93 + - 30
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT ALL - MIN( - 55 ) + 4 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL - MIN ( - 55 ) + 4 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL + MIN( DISTINCT - - 85 ) + - 41 + + - 58 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL + MIN ( DISTINCT - - 85 ) + - 41 + + - 58 AS col2
----
-14

query I rowsort
SELECT ALL - 54 col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-9665
SELECT COUNT( * ), 31 AS col0
----
1
31

skipif mysql # not compatible
query II rowsort label-9665
SELECT COUNT ( * ), 31 AS col0
----
1
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9666
SELECT DISTINCT - 25 AS col1, - COUNT( * ) + - 32
----
-25
-33

skipif mysql # not compatible
query II rowsort label-9666
SELECT DISTINCT - 25 AS col1, - COUNT ( * ) + - 32
----
-25
-33

query I rowsort
SELECT 99 * + + 35
----
3465

query I rowsort
SELECT 2 + - 96 + + - 8
----
-102

query I rowsort
SELECT 79 + 74 AS col0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-9670
SELECT ( + ( - ( 35 ) ) ) DIV - + 57 * 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9670
SELECT ( + ( - ( 35 ) ) ) / - + 57 * 40 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT ALL + 44 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL + 44 / + 86
----
0

query I rowsort
SELECT - 5 * - 28 * + 64 + + - 78 AS col2
----
8882

onlyif mysql # aggregate syntax: 
query II rowsort label-9673
SELECT 56, - MAX( - 84 ) * 18 * + 70 * - 35 AS col0
----
56
-3704400

skipif mysql # not compatible
query II rowsort label-9673
SELECT 56, - MAX ( - 84 ) * 18 * + 70 * - 35 AS col0
----
56
-3704400

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT 74 * - 38 + - - COUNT( * ) + - + 55
----
-2866

skipif mysql # not compatible
query I rowsort label-9674
SELECT 74 * - 38 + - - COUNT ( * ) + - + 55
----
-2866

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT + + 17 * + NULLIF ( - COUNT( * ), + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT + + 17 * + NULLIF ( - COUNT ( * ), + - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT ALL - + CAST( + 74 AS SIGNED ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - + CAST ( + 74 AS INTEGER ) AS col1
----
-74

query I rowsort
SELECT ALL - - 63 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT + COUNT( * ) + - - 30 * - 57 AS col2
----
-1709

skipif mysql # not compatible
query I rowsort label-9678
SELECT + COUNT ( * ) + - - 30 * - 57 AS col2
----
-1709

query I rowsort
SELECT ALL - + 79 * - + 56
----
4424

query I rowsort
SELECT ALL - 92 * - 73 AS col2
----
6716

query II rowsort
SELECT ALL + + 99, + 69 * + - 82 + - NULLIF ( - 63, + 2 ) AS col0
----
99
-5595

query I rowsort
SELECT + - 67 AS col2
----
-67

query II rowsort
SELECT - 21 * + ( 51 ) + - 34 + + 74 AS col1, - 84
----
-1031
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9684
SELECT COUNT( * ) * - 92 + COALESCE ( 21, + 32 / - 48 / 61 - - 42, - 7 * + - NULLIF ( - 11, 4 ), 83, + COALESCE ( + + COUNT( * ), - + 73 ) * - 80 ) - CAST( NULL AS SIGNED ), + 21 + + - COUNT( * ) * - 1 - 11 AS col1
----
NULL
11

skipif mysql # not compatible
query II rowsort label-9684
SELECT COUNT ( * ) * - 92 + COALESCE ( 21, + 32 / - 48 / 61 - - 42, - 7 * + - NULLIF ( - 11, 4 ), 83, + COALESCE ( + + COUNT ( * ), - + 73 ) * - 80 ) - CAST ( NULL AS INTEGER ), + 21 + + - COUNT ( * ) * - 1 - 11 AS col1
----
NULL
11

query I rowsort
SELECT - 47 col0
----
-47

query II rowsort
SELECT ALL + - 65 AS col0, + 34 AS col2
----
-65
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9687
SELECT - 48 DIV - 4 + - - 55 - 39 * COUNT( * ) * + 65 * 58 + 52 + 0
----
-146911

skipif mysql # not compatible
query I rowsort label-9687
SELECT - 48 / - 4 + - - 55 - 39 * COUNT ( * ) * + 65 * 58 + 52 + 0
----
-146911

query I rowsort
SELECT + - 81 + - + 86
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT - COUNT( ALL 53 ) * + - ( 33 ) + - - 86
----
119

skipif mysql # not compatible
query I rowsort label-9689
SELECT - COUNT ( ALL 53 ) * + - ( 33 ) + - - 86
----
119

query I rowsort
SELECT ( + 4 ) AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9691
SELECT - MAX( DISTINCT + + 77 ) * 10 + - 37, CAST( NULL AS SIGNED ) * - 82 / + - 23 + - COALESCE ( + - MAX( + 44 ), MIN( DISTINCT + 14 ) ) AS col1
----
-807
NULL

skipif mysql # not compatible
query II rowsort label-9691
SELECT - MAX ( DISTINCT + + 77 ) * 10 + - 37, CAST ( NULL AS INTEGER ) * - 82 / + - 23 + - COALESCE ( + - MAX ( + 44 ), MIN ( DISTINCT + 14 ) ) AS col1
----
-807
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT ALL + ( COALESCE ( + NULLIF ( + + 63, COUNT( * ) ), + - 36 ) ) + + 47 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL + ( COALESCE ( + NULLIF ( + + 63, COUNT ( * ) ), + - 36 ) ) + + 47 AS col0
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-9693
SELECT ALL - 27 + - 69 col2, ( - COUNT( * ) ) * 70
----
-96
-70

skipif mysql # not compatible
query II rowsort label-9693
SELECT ALL - 27 + - 69 col2, ( - COUNT ( * ) ) * 70
----
-96
-70

query I rowsort
SELECT ALL 49 + - 7
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT + 55 + - COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9695
SELECT + 55 + - COUNT ( * ) AS col1
----
54

query I rowsort
SELECT DISTINCT ( 80 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9697
SELECT - COUNT( * ) DIV COALESCE ( + + 44, 24 ) * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9697
SELECT - COUNT ( * ) / COALESCE ( + + 44, 24 ) * - + COUNT ( * )
----
0

query I rowsort
SELECT ALL 37 * + 61 * + 81
----
182817

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT DISTINCT 54 + - ( - 55 ) + 12 * + COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT 54 + - ( - 55 ) + 12 * + COUNT ( * )
----
121

query II rowsort
SELECT 86 AS col1, - 8 AS col0
----
86
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL MAX( DISTINCT 95 ) + + 94 + - COUNT( * ) + 11 + - 29 * + 0 * - ( + 17 ) + + + 81 * + + 9 * + 27 * 1 AS col0
----
19882

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL MAX ( DISTINCT 95 ) + + 94 + - COUNT ( * ) + 11 + - 29 * + 0 * - ( + 17 ) + + + 81 * + + 9 * + 27 * 1 AS col0
----
19882

query I rowsort
SELECT + ( + + 97 ) * 79 + + 85 * + + 71 + 4 + + + 90
----
13792

query I rowsort
SELECT ALL ( 95 ) col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT ALL - 1 * - - ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL - 1 * - - ( - + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT + MAX( DISTINCT 63 ) * + + 98
----
6174

skipif mysql # not compatible
query I rowsort label-9705
SELECT + MAX ( DISTINCT 63 ) * + + 98
----
6174

onlyif mysql # aggregate syntax: 
query II rowsort label-9706
SELECT ALL 44 AS col0, 78 * + CASE - 65 WHEN + SUM( DISTINCT - 69 ) THEN + + CASE + 59 WHEN 0 THEN NULL ELSE - 26 * + + 80 END END
----
44
NULL

skipif mysql # not compatible
query II rowsort label-9706
SELECT ALL 44 AS col0, 78 * + CASE - 65 WHEN + SUM ( DISTINCT - 69 ) THEN + + CASE + 59 WHEN 0 THEN NULL ELSE - 26 * + + 80 END END
----
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT ALL 53 - + COUNT( * ) + + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL 53 - + COUNT ( * ) + + COUNT ( * ) AS col0
----
53

query I rowsort
SELECT ALL + 29 - - ( COALESCE ( - 21, 32, - 21 ) ) + + ( + 44 ) col1
----
52

query I rowsort
SELECT + 41 * - NULLIF ( - - 74, - + 99 + - 92 ) AS col0
----
-3034

query II rowsort
SELECT ALL 55, ( + + 88 ) AS col2
----
55
88

onlyif mysql # DIV for integer division: 
query II rowsort label-9711
SELECT ALL 10 AS col1, + 51 DIV 53 AS col1
----
10
0

skipif mysql # not compatible
query II rowsort label-9711
SELECT ALL 10 AS col1, + 51 / 53 AS col1
----
10
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ( + SUM( + + 33 ) )
----
33

skipif mysql # not compatible
query I rowsort label-9712
SELECT ( + SUM ( + + 33 ) )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9713
SELECT 20 DIV + + 80 + - 38 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-9713
SELECT 20 / + + 80 + - 38 AS col2
----
-38

query II rowsort
SELECT DISTINCT + 60, 80 AS col1
----
60
80

query I rowsort
SELECT + - 93 * 1 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-9716
SELECT DISTINCT + 35 AS col2, MIN( + 86 ) + + 39 AS col2
----
35
125

skipif mysql # not compatible
query II rowsort label-9716
SELECT DISTINCT + 35 AS col2, MIN ( + 86 ) + + 39 AS col2
----
35
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9717
SELECT ALL 26 DIV + + COUNT( * ) * 1 AS col1, 94
----
26
94

skipif mysql # not compatible
query II rowsort label-9717
SELECT ALL 26 / + + COUNT ( * ) * 1 AS col1, 94
----
26
94

query I rowsort
SELECT - 32 * - ( - 20 ) AS col1
----
-640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9719
SELECT + COALESCE ( + 42, - - 50 ) * - + CASE + CAST( NULL AS SIGNED ) WHEN + 67 THEN + ( - 58 ) + - MIN( - + 62 ) END - - 5 - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT + COALESCE ( + 42, - - 50 ) * - + CASE + CAST ( NULL AS INTEGER ) WHEN + 67 THEN + ( - 58 ) + - MIN ( - + 62 ) END - - 5 - - 72
----
NULL

query II rowsort
SELECT ALL 29 * - - 10 + + 40, 58 AS col2
----
330
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT ALL + 34 * COUNT( * ) * + 26 + - 4 + 14 + - 89 + - ( 77 ) + - 69 * + + 19 * COUNT( DISTINCT 84 ) * 9 * 49 AS col2
----
-577423

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL + 34 * COUNT ( * ) * + 26 + - 4 + 14 + - 89 + - ( 77 ) + - 69 * + + 19 * COUNT ( DISTINCT 84 ) * 9 * 49 AS col2
----
-577423

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT SUM( - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9722
SELECT SUM ( - 22 ) AS col1
----
-22

query II rowsort
SELECT + 78 * ( - 80 ), 44 AS col2
----
-6240
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT - ( 3 ) + COUNT( * ) * - 86 * - 37
----
3179

skipif mysql # not compatible
query I rowsort label-9724
SELECT - ( 3 ) + COUNT ( * ) * - 86 * - 37
----
3179

query I rowsort
SELECT + + 27 + + 75 * 69 * - 54 AS col1
----
-279423

query I rowsort
SELECT - ( - 60 )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-9727
SELECT + 76 + 61 * - + COALESCE ( COUNT( * ), + - 68 * + + 15 * 87 + + 31, + + 56 * 29 ) + 7 col0, + 72
----
22
72

skipif mysql # not compatible
query II rowsort label-9727
SELECT + 76 + 61 * - + COALESCE ( COUNT ( * ), + - 68 * + + 15 * 87 + + 31, + + 56 * 29 ) + 7 col0, + 72
----
22
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT + 90 + NULLIF ( + - 16, - - 18 ) + - - COALESCE ( - + 47, - ( + + 1 ) * + COUNT( * ) ) * + + 75 AS col1
----
-3451

skipif mysql # not compatible
query I rowsort label-9728
SELECT + 90 + NULLIF ( + - 16, - - 18 ) + - - COALESCE ( - + 47, - ( + + 1 ) * + COUNT ( * ) ) * + + 75 AS col1
----
-3451

query I rowsort
SELECT ALL ( + 88 ) + 73 * - 26 AS col1
----
-1810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9730
SELECT DISTINCT NULLIF ( + 21, - - 35 * 8 + 77 * 38 - + 1 + + CAST( + - 30 AS SIGNED ) )
----
21

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT NULLIF ( + 21, - - 35 * 8 + 77 * 38 - + 1 + + CAST ( + - 30 AS INTEGER ) )
----
21

query I rowsort
SELECT DISTINCT - 39 + + 46 + 63 + - 70 - - 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT ALL MIN( DISTINCT 34 )
----
34

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL MIN ( DISTINCT 34 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9733
SELECT 51 + + 52 + + - COUNT( * ), 88 * - CAST( + 33 AS SIGNED ) AS col0
----
102
-2904

skipif mysql # not compatible
query II rowsort label-9733
SELECT 51 + + 52 + + - COUNT ( * ), 88 * - CAST ( + 33 AS INTEGER ) AS col0
----
102
-2904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9734
SELECT + NULLIF ( MIN( - 69 ), 94 * COALESCE ( - - 1, - MIN( + CAST( NULL AS SIGNED ) ) * + - 44 * + + NULLIF ( - MIN( ALL + - 4 ), - 76 * - 80 ) * + - COUNT( * ) / 75 + + - COUNT( * ) - + + MIN( ( - 84 ) ), - 11 * + CASE 49 * + 37 WHEN + 50 / 53 THEN 29 ELSE NULL END ) * 83 ) + ( - ( 96 ) ) AS col2
----
-165

skipif mysql # not compatible
query I rowsort label-9734
SELECT + NULLIF ( MIN ( - 69 ), 94 * COALESCE ( - - 1, - MIN ( + CAST ( NULL AS INTEGER ) ) * + - 44 * + + NULLIF ( - MIN ( ALL + - 4 ), - 76 * - 80 ) * + - COUNT ( * ) / 75 + + - COUNT ( * ) - + + MIN ( ( - 84 ) ), - 11 * + CASE 49 * + 37 WHEN + 50 / 53 THEN 29 ELSE NULL END ) * 83 ) + ( - ( 96 ) ) AS col2
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT 28 * 87 * + 33 * - COUNT( * ) AS col0
----
-80388

skipif mysql # not compatible
query I rowsort label-9735
SELECT 28 * 87 * + 33 * - COUNT ( * ) AS col0
----
-80388

query I rowsort
SELECT DISTINCT ( 86 ) * - + 96 + + 93 * - 53 * - 89 - + 80 AS col0
----
430345

onlyif mysql # DIV for integer division: 
query I rowsort label-9737
SELECT ALL COALESCE ( 21, - - 57 DIV + 60 + - 95 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL COALESCE ( 21, - - 57 / + 60 + - 95 ) AS col2
----
21

query II rowsort
SELECT - - 30 AS col1, + 24 AS col2
----
30
24

query II rowsort
SELECT + 37 AS col2, 84 * CASE - + 25 WHEN - 58 THEN + 67 WHEN - + 89 THEN NULL END - - + 77
----
37
NULL

query I rowsort
SELECT DISTINCT + - 47 - 63
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ALL - + MAX( ALL - 56 ) * - 87 * 2
----
-9744

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL - + MAX ( ALL - 56 ) * - 87 * 2
----
-9744

query I rowsort
SELECT 7 * + 24 + + + 93 AS col0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT DISTINCT - CASE - 94 WHEN + 3 + - 13 * + + 19 THEN + 99 / + 55 - - - 22 ELSE NULL END * SUM( 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT - CASE - 94 WHEN + 3 + - 13 * + + 19 THEN + 99 / + 55 - - - 22 ELSE NULL END * SUM ( 58 )
----
NULL

query I rowsort
SELECT ALL - - 89 AS col2
----
89

query II rowsort
SELECT 45 AS col2, + 75 * + - 18 AS col0
----
45
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT 69 * + COUNT( ALL + ( + 28 ) )
----
69

skipif mysql # not compatible
query I rowsort label-9746
SELECT 69 * + COUNT ( ALL + ( + 28 ) )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9747
SELECT DISTINCT CAST( NULL AS SIGNED ) - 44 + - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 44 + - 2 AS col0
----
NULL

query I rowsort
SELECT ALL - ( - 49 ) AS col2
----
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9749
SELECT CAST( NULL AS DECIMAL ) * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT CAST ( NULL AS REAL ) * + 25
----
NULL

query I rowsort
SELECT ALL - ( + + 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT + 94 * - COUNT( * ) - - - 4 * - 59
----
142

skipif mysql # not compatible
query I rowsort label-9751
SELECT + 94 * - COUNT ( * ) - - - 4 * - 59
----
142

query I rowsort
SELECT 94 * 6 * - 33 * + 18
----
-335016

query I rowsort
SELECT 68 - 43 AS col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9754
SELECT 84 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-9754
SELECT 84 / - 98
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9755
SELECT ALL - 46 + 8 - + NULLIF ( - 46, - COUNT( 73 ) ) DIV - ( - 88 ) + + + COUNT( 4 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - 46 + 8 - + NULLIF ( - 46, - COUNT ( 73 ) ) / - ( - 88 ) + + + COUNT ( 4 ) AS col2
----
-37

query I rowsort
SELECT ALL - ( - - 95 )
----
-95

query I rowsort
SELECT ALL - COALESCE ( + 58, 26 )
----
-58

query I rowsort
SELECT 99 + - + 77 col0
----
22

query I rowsort
SELECT ALL - 56 * - + 28
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT ALL - COUNT( * ) + - 6 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL - COUNT ( * ) + - 6 AS col0
----
-7

query I rowsort
SELECT 24 col1
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-9762
SELECT DISTINCT + 70 DIV 15 AS col1, + ( + 67 )
----
4
67

skipif mysql # not compatible
query II rowsort label-9762
SELECT DISTINCT + 70 / 15 AS col1, + ( + 67 )
----
4
67

query I rowsort
SELECT DISTINCT - + 70 + + ( 63 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT COALESCE ( - 9, - + COUNT( * ) )
----
-9

skipif mysql # not compatible
query I rowsort label-9764
SELECT COALESCE ( - 9, - + COUNT ( * ) )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9765
SELECT 73 DIV - 14 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9765
SELECT 73 / - 14 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT DISTINCT - 10 DIV 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT - 10 / 16 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL + ( - SUM( - 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL + ( - SUM ( - 35 ) )
----
35

query I rowsort
SELECT - - 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT - ( + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9769
SELECT - ( + COUNT ( * ) ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9770
SELECT ALL COUNT( * ) * + 19 / + + COUNT( * ) * + ( 13 ) * + COUNT( * ) * 95 - + 96 + - - 78 * - CAST( NULL AS SIGNED ) + + + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL COUNT ( * ) * + 19 / + + COUNT ( * ) * + ( 13 ) * + COUNT ( * ) * 95 - + 96 + - - 78 * - CAST ( NULL AS INTEGER ) + + + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT COUNT( * ) * 54 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9771
SELECT COUNT ( * ) * 54 AS col2
----
54

query I rowsort
SELECT DISTINCT 16 * - - 27 + - 15 AS col0
----
417

query I rowsort
SELECT 45 - + - 86
----
131

query I rowsort
SELECT DISTINCT + ( - 47 )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9775
SELECT DISTINCT - CAST( + - 76 AS SIGNED ) col2
----
76

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT - CAST ( + - 76 AS INTEGER ) col2
----
76

query I rowsort
SELECT 22 * + 36
----
792

query II rowsort
SELECT + ( + + 3 ) AS col1, + 87 - - 10 AS col2
----
3
97

query I rowsort
SELECT ALL - + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT 39 * + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-9779
SELECT 39 * + + COUNT ( * )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9780
SELECT DISTINCT 98 DIV - 45 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT 98 / - 45 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT + COUNT( DISTINCT - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-9781
SELECT + COUNT ( DISTINCT - 25 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT MIN( + 63 ) * - 8 * - 98 * - 54 * + COUNT( * ) + + COUNT( * )
----
-2667167

skipif mysql # not compatible
query I rowsort label-9782
SELECT MIN ( + 63 ) * - 8 * - 98 * - 54 * + COUNT ( * ) + + COUNT ( * )
----
-2667167

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT 3 - + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9783
SELECT 3 - + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT ALL + 87 * - 31 AS col2
----
-2697

query I rowsort
SELECT 74 * 83
----
6142

query I rowsort
SELECT ALL 38 + 91 col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT + COUNT( 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9787
SELECT + COUNT ( 17 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT ALL + 14 + + 15 + + 90 DIV + 58 + - ( 70 )
----
-40

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL + 14 + + 15 + + 90 / + 58 + - ( 70 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9789
SELECT COUNT( * ), 78 * + 18 AS col0
----
1
1404

skipif mysql # not compatible
query II rowsort label-9789
SELECT COUNT ( * ), 78 * + 18 AS col0
----
1
1404

query I rowsort
SELECT ALL 91 * + - 62 AS col2
----
-5642

query I rowsort
SELECT DISTINCT 49 + - 29
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9792
SELECT + SUM( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT ALL + COUNT( * ) + - 26 + + - CASE 42 WHEN - 45 * - 62 / + - 32 THEN + 10 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL + COUNT ( * ) + - 26 + + - CASE 42 WHEN - 45 * - 62 / + - 32 THEN + 10 END AS col0
----
NULL

query I rowsort
SELECT ALL - 60 + + 61
----
1

query I rowsort
SELECT DISTINCT - 60 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT 99 + - + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9796
SELECT 99 + - + COUNT ( * ) AS col2
----
98

query I rowsort
SELECT 2 * 24
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9798
SELECT ALL - - COUNT( * ) * - CAST( NULL AS DECIMAL ) / + - CASE - - COUNT( * ) WHEN - - 86 + - 87 THEN NULL ELSE + + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL - - COUNT ( * ) * - CAST ( NULL AS REAL ) / + - CASE - - COUNT ( * ) WHEN - - 86 + - 87 THEN NULL ELSE + + 83 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT + CASE + 75 WHEN - 49 + 32 / + CASE ( 93 ) WHEN 1 THEN + COUNT( * ) * - + 22 + + 96 END * + COUNT( * ) * - 96 THEN 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT + CASE + 75 WHEN - 49 + 32 / + CASE ( 93 ) WHEN 1 THEN + COUNT ( * ) * - + 22 + + 96 END * + COUNT ( * ) * - 96 THEN 89 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9800
SELECT ALL + 30 + + + 20 DIV 80 * - + 56 * 68
----
30

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL + 30 + + + 20 / 80 * - + 56 * 68
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL - COALESCE ( + 6, - 53 + + 49, - - ( - + COUNT( * ) ) + + - 78 - 18, - 14 + 20 ) - + 56 - - 10
----
-52

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL - COALESCE ( + 6, - 53 + + 49, - - ( - + COUNT ( * ) ) + + - 78 - 18, - 14 + 20 ) - + 56 - - 10
----
-52

query II rowsort
SELECT - - 11 AS col1, 15 * - 80 col2
----
11
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9803
SELECT ALL CASE - 22 WHEN ( + CAST( NULL AS SIGNED ) ) THEN NULL WHEN - - 55 THEN + + MAX( - + 15 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL CASE - 22 WHEN ( + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - - 55 THEN + + MAX ( - + 15 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT - 81 - + 44 * COUNT( * ) AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-9804
SELECT - 81 - + 44 * COUNT ( * ) AS col1
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT ALL - - COALESCE ( + - COALESCE ( + + ( + 35 ), + - 35 ), NULLIF ( - 14, + COUNT( + - 24 ) ), - COUNT( * ) * 40 + + 71 ) * - - 99
----
-3465

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL - - COALESCE ( + - COALESCE ( + + ( + 35 ), + - 35 ), NULLIF ( - 14, + COUNT ( + - 24 ) ), - COUNT ( * ) * 40 + + 71 ) * - - 99
----
-3465

query I rowsort
SELECT - 94 + - 31 - + - 28 * - 52 AS col0
----
-1581

query I rowsort
SELECT - 52 * 27 AS col2
----
-1404

query I rowsort
SELECT - 21 * - 76 AS col0
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT - - COUNT( * ) + 39
----
40

skipif mysql # not compatible
query I rowsort label-9809
SELECT - - COUNT ( * ) + 39
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9810
SELECT + - 3 DIV 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9810
SELECT + - 3 / 31 AS col0
----
0

query I rowsort
SELECT - + 34 + + 53
----
19

query I rowsort
SELECT + + 29 - - 10
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9813
SELECT - - CASE - 90 WHEN - + CAST( NULL AS SIGNED ) * + - COUNT( * ) + - COUNT( * ) THEN + 90 END + + 70 + - 83 * + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT - - CASE - 90 WHEN - + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + - COUNT ( * ) THEN + 90 END + + 70 + - 83 * + 5 AS col0
----
NULL

query I rowsort
SELECT ALL + 48 / - CASE + - 82 WHEN + - 40 THEN + - 18 END * + 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9815
SELECT - ( NULLIF ( + 96, - 40 + CAST( - 12 AS SIGNED ) + + 71 ) ) DIV - ( + - 26 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9815
SELECT - ( NULLIF ( + 96, - 40 + CAST ( - 12 AS INTEGER ) + + 71 ) ) / - ( + - 26 ) AS col1
----
-3

query I rowsort
SELECT - + ( + ( 62 ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT - 10 + COUNT( * ) + + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-9817
SELECT - 10 + COUNT ( * ) + + COUNT ( * )
----
-8

query II rowsort
SELECT ALL 33 col0, - 47
----
33
-47

query I rowsort
SELECT DISTINCT 50 * - + 26
----
-1300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9820
SELECT + ( - 94 ) + + CAST( - COUNT( * ) AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-9820
SELECT + ( - 94 ) + + CAST ( - COUNT ( * ) AS INTEGER )
----
-95

query I rowsort
SELECT + 37 + - 81 + + 76 AS col2
----
32

query I rowsort
SELECT ALL - 91 * ( + ( + 96 ) )
----
-8736

query I rowsort
SELECT + 69 * 62 AS col2
----
4278

query I rowsort
SELECT ALL 43 * 22 * - 31 + 19 + - 16
----
-29323

query I rowsort
SELECT - 15 * + 0 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL 67 * + + ( - 84 ) + + - COUNT( * ) * + COALESCE ( - + CASE + AVG ( + + 84 ) WHEN + 74 * 44 THEN - + 53 - + 78 + + 36 WHEN 4 * + - 10 + + COALESCE ( - 85, 84 + 95 ) - 51 THEN NULL ELSE NULL END, MAX( ALL + 91 ) + 43, - 18 ) * - MIN( + 25 ) - + 9
----
-2287

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL 67 * + + ( - 84 ) + + - COUNT ( * ) * + COALESCE ( - + CASE + AVG ( + + 84 ) WHEN + 74 * 44 THEN - + 53 - + 78 + + 36 WHEN 4 * + - 10 + + COALESCE ( - 85, 84 + 95 ) - 51 THEN NULL ELSE NULL END, MAX ( ALL + 91 ) + 43, - 18 ) * - MIN ( + 25 ) - + 9
----
-2287

query I rowsort
SELECT ( + 52 ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9828
SELECT + SUM( DISTINCT + - 25 ) AS col0, - CAST( - NULLIF ( + 1, + COUNT( * ) ) AS DECIMAL ) + COUNT( * ) * 23 AS col0
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-9828
SELECT + SUM ( DISTINCT + - 25 ) AS col0, - CAST ( - NULLIF ( + 1, + COUNT ( * ) ) AS REAL ) + COUNT ( * ) * 23 AS col0
----
-25
NULL

query I rowsort
SELECT ALL 74 * + 26 * + 94 * + 49 + - 90 + 73 AS col2
----
8861927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9830
SELECT ALL 86 * 79 * - - 98 / + 35 / + - NULLIF ( + - CASE + 25 WHEN - 51 * 3 * + 32 + + + COALESCE ( + COUNT( + + 17 ), - + 50 ) THEN - 12 / - 29 * 89 END, 14 + + - CAST( - - 74 AS SIGNED ) + - 61 ) + - 69 * NULLIF ( 28, + 31 - 32 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL 86 * 79 * - - 98 / + 35 / + - NULLIF ( + - CASE + 25 WHEN - 51 * 3 * + 32 + + + COALESCE ( + COUNT ( + + 17 ), - + 50 ) THEN - 12 / - 29 * 89 END, 14 + + - CAST ( - - 74 AS INTEGER ) + - 61 ) + - 69 * NULLIF ( 28, + 31 - 32 ) AS col1
----
NULL

query I rowsort
SELECT ( - 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT DISTINCT 54 * - MIN( + + 25 ) + + 52 AS col2
----
-1298

skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT 54 * - MIN ( + + 25 ) + + 52 AS col2
----
-1298

query I rowsort
SELECT NULLIF ( + 11, - - 95 ) AS col2
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9834
SELECT 19 DIV 16 + COUNT( * ) * 40 AS col2, - 37
----
41
-37

skipif mysql # not compatible
query II rowsort label-9834
SELECT 19 / 16 + COUNT ( * ) * 40 AS col2, - 37
----
41
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL 29 * + 86 + + MAX( - + 46 )
----
2448

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL 29 * + 86 + + MAX ( - + 46 )
----
2448

query I rowsort
SELECT + COALESCE ( - 37, + 85 + - - 97 )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9837
SELECT ALL 8 DIV + 27 col1
----
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL 8 / + 27 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT CASE + - NULLIF ( 42, - COUNT( - 44 ) ) WHEN + 26 THEN - 25 + + - CASE MIN( ALL 53 ) WHEN + + 92 THEN - 1 WHEN + 22 * + 34 / COUNT( * ) THEN NULL ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9838
SELECT CASE + - NULLIF ( 42, - COUNT ( - 44 ) ) WHEN + 26 THEN - 25 + + - CASE MIN ( ALL 53 ) WHEN + + 92 THEN - 1 WHEN + 22 * + 34 / COUNT ( * ) THEN NULL ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL + - 70 / + - CASE - - 14 WHEN + 16 + + + 89 THEN + 19 WHEN + COUNT( DISTINCT + 57 ) * - 66 THEN - 64 * - - 98 * 44 - - 0 - - SUM( DISTINCT - 46 ) + 0 * ( - 58 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL + - 70 / + - CASE - - 14 WHEN + 16 + + + 89 THEN + 19 WHEN + COUNT ( DISTINCT + 57 ) * - 66 THEN - 64 * - - 98 * 44 - - 0 - - SUM ( DISTINCT - 46 ) + 0 * ( - 58 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT - COUNT( ALL - 72 ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9840
SELECT - COUNT ( ALL - 72 ) + + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + CASE - 5 WHEN + + 0 THEN - 1 WHEN - 10 THEN + 25 + - 2 ELSE NULL END * + 45 - + 63 * - 26
----
NULL

query II rowsort
SELECT + + 3 AS col0, 77
----
3
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT + - COUNT( * ) * + ( + 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-9843
SELECT + - COUNT ( * ) * + ( + 82 )
----
-82

query I rowsort
SELECT DISTINCT - ( 61 ) AS col1
----
-61

query II rowsort
SELECT 78 AS col1, 81
----
78
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT - - 32 + + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-9846
SELECT - - 32 + + COUNT ( * ) AS col1
----
33

query I rowsort
SELECT ALL ( 82 ) AS col2
----
82

query I rowsort
SELECT - COALESCE ( 88, - - 37 )
----
-88

query I rowsort
SELECT - + 58 + 42
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL + NULLIF ( COALESCE ( 25, 72, 77 + + COUNT( * ), 74 * + 68 + - - 32 ), - + 77 )
----
25

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL + NULLIF ( COALESCE ( 25, 72, 77 + + COUNT ( * ), 74 * + 68 + - - 32 ), - + 77 )
----
25

query I rowsort
SELECT - 28 col2
----
-28

query II rowsort
SELECT ALL + 18 AS col0, 7 col2
----
18
7

query I rowsort
SELECT - + 21 AS col1
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-9854
SELECT ALL - 64 AS col2, 37 DIV 50
----
-64
0

skipif mysql # not compatible
query II rowsort label-9854
SELECT ALL - 64 AS col2, 37 / 50
----
-64
0

query I rowsort
SELECT ALL - 28 + 74
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT + MIN( 89 ) * + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-9856
SELECT + MIN ( 89 ) * + COUNT ( * )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9857
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) * 67 / + CASE + COUNT( * ) WHEN - - ( CAST( + 7 AS SIGNED ) ) THEN NULL ELSE + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 67 / + CASE + COUNT ( * ) WHEN - - ( CAST ( + 7 AS INTEGER ) ) THEN NULL ELSE + 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT - - COALESCE ( + 47, - ( - + 69 ) + + 44 - - COUNT( * ) * + 36 ) - - - 32 + COUNT( * ) * SUM( - - 69 )
----
84

skipif mysql # not compatible
query I rowsort label-9858
SELECT - - COALESCE ( + 47, - ( - + 69 ) + + 44 - - COUNT ( * ) * + 36 ) - - - 32 + COUNT ( * ) * SUM ( - - 69 )
----
84

query I rowsort
SELECT DISTINCT + 25 + 40 * + - 78
----
-3095

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT - 39 - + - COUNT( * ) * + 68 * 46 * - + 44 AS col1
----
-137671

skipif mysql # not compatible
query I rowsort label-9860
SELECT - 39 - + - COUNT ( * ) * + 68 * 46 * - + 44 AS col1
----
-137671

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9861
SELECT ALL + 32 + - + ( - 95 ) * MAX( - CAST( + - CAST( + 69 AS SIGNED ) AS SIGNED ) ) AS col0
----
6587

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL + 32 + - + ( - 95 ) * MAX ( - CAST ( + - CAST ( + 69 AS INTEGER ) AS INTEGER ) ) AS col0
----
6587

onlyif mysql # aggregate syntax: 
query II rowsort label-9862
SELECT DISTINCT NULLIF ( - - 58, - 55 ), 56 * + - COUNT( * ) AS col2
----
58
-56

skipif mysql # not compatible
query II rowsort label-9862
SELECT DISTINCT NULLIF ( - - 58, - 55 ), 56 * + - COUNT ( * ) AS col2
----
58
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT ALL - 60 + - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL - 60 + - COUNT ( * )
----
-61

query I rowsort
SELECT ALL + 32 + + CASE - 26 WHEN + 64 THEN + + 11 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL ( - + 69 ) * ( 31 )
----
-2139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9866
SELECT + 75 * 28 + - CAST( - 6 AS SIGNED )
----
2106

skipif mysql # not compatible
query I rowsort label-9866
SELECT + 75 * 28 + - CAST ( - 6 AS INTEGER )
----
2106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT CAST( - 43 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-9867
SELECT CAST ( - 43 AS INTEGER )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL COUNT( * ) * - 69 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL COUNT ( * ) * - 69 AS col2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9869
SELECT 34 * + 14 + + + 0 DIV + + 70
----
476

skipif mysql # not compatible
query I rowsort label-9869
SELECT 34 * + 14 + + + 0 / + + 70
----
476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9870
SELECT ALL 94 DIV - 95 - - 3 - - + ( MIN( ALL NULLIF ( - + 11, 34 ) ) ) * - - 86 * 77
----
-72839

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL 94 / - 95 - - 3 - - + ( MIN ( ALL NULLIF ( - + 11, 34 ) ) ) * - - 86 * 77
----
-72839

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT DISTINCT + 43 * + 51 * - + CASE WHEN NOT NULL BETWEEN 37 AND ( - 14 / - + 66 + - 97 * - - NULLIF ( + 73, + - 5 / - 35 + - - 57 * ( 13 ) / + 55 + + 15 ) ) THEN - COUNT( * ) WHEN SUM( + 36 ) < - 64 + + 50 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT + 43 * + 51 * - + CASE WHEN NOT NULL BETWEEN 37 AND ( - 14 / - + 66 + - 97 * - - NULLIF ( + 73, + - 5 / - 35 + - - 57 * ( 13 ) / + 55 + + 15 ) ) THEN - COUNT ( * ) WHEN SUM ( + 36 ) < - 64 + + 50 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9872
SELECT COUNT( * ) * + 19, - COUNT( * ) col0
----
19
-1

skipif mysql # not compatible
query II rowsort label-9872
SELECT COUNT ( * ) * + 19, - COUNT ( * ) col0
----
19
-1

query I rowsort
SELECT ALL + 25 * 12
----
300

query I rowsort
SELECT DISTINCT - + 32
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL - - COALESCE ( + + 32, - - COUNT( * ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL - - COALESCE ( + + 32, - - COUNT ( * ) ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT + 7 * - - SUM( - + 46 )
----
-322

skipif mysql # not compatible
query I rowsort label-9876
SELECT + 7 * - - SUM ( - + 46 )
----
-322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9877
SELECT ( + + CASE + COALESCE ( - 9, - 81 * + - COALESCE ( - 48, - 57 ), + 62 ) WHEN + - 57 THEN + 31 * + 58 - + SUM( DISTINCT + 48 ) WHEN 79 THEN - + COUNT( * ) ELSE - COUNT( * ) DIV + COUNT( * ) END ) * + + COALESCE ( - SUM( + 38 ), + + ( - 98 ) DIV 9 - - 66, + 9 )
----
38

skipif mysql # not compatible
query I rowsort label-9877
SELECT ( + + CASE + COALESCE ( - 9, - 81 * + - COALESCE ( - 48, - 57 ), + 62 ) WHEN + - 57 THEN + 31 * + 58 - + SUM ( DISTINCT + 48 ) WHEN 79 THEN - + COUNT ( * ) ELSE - COUNT ( * ) / + COUNT ( * ) END ) * + + COALESCE ( - SUM ( + 38 ), + + ( - 98 ) / 9 - - 66, + 9 )
----
38

query I rowsort
SELECT ALL - 30 col1
----
-30

query II rowsort
SELECT + NULLIF ( - - 77, 91 + - 97 + + 68 ), + 20 AS col0
----
77
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT + NULLIF ( - 98, - - 16 ) / + - 93 + + + CASE - 33 WHEN ( COUNT( * ) ) THEN NULL WHEN 25 THEN NULL WHEN - + 91 + 78 THEN + - 95 * + 76 + - ( - 1 ) END * 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9880
SELECT + NULLIF ( - 98, - - 16 ) / + - 93 + + + CASE - 33 WHEN ( COUNT ( * ) ) THEN NULL WHEN 25 THEN NULL WHEN - + 91 + 78 THEN + - 95 * + 76 + - ( - 1 ) END * 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT ALL + 98 * + + COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL + 98 * + + COUNT ( * ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9882
SELECT DISTINCT 82 * - + 60 AS col0, 75 * - + COUNT( * ) AS col1
----
-4920
-75

skipif mysql # not compatible
query II rowsort label-9882
SELECT DISTINCT 82 * - + 60 AS col0, 75 * - + COUNT ( * ) AS col1
----
-4920
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9883
SELECT - 70 DIV + 22 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9883
SELECT - 70 / + 22 AS col1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9884
SELECT DISTINCT 44 + + + 31 / + + CAST( NULL AS DECIMAL ) * + + 81 + 2, + 48 AS col0
----
NULL
48

skipif mysql # not compatible
query II rowsort label-9884
SELECT DISTINCT 44 + + + 31 / + + CAST ( NULL AS REAL ) * + + 81 + 2, + 48 AS col0
----
NULL
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL + COUNT( * ) * + CASE + 76 WHEN - NULLIF ( 27, 66 + - 34 ) THEN + + SUM( DISTINCT + 36 ) END * + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL + COUNT ( * ) * + CASE + 76 WHEN - NULLIF ( 27, 66 + - 34 ) THEN + + SUM ( DISTINCT + 36 ) END * + + 11
----
NULL

query I rowsort
SELECT ALL 12 col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9887
SELECT + 6 + 19 * - COALESCE ( 39, - + 80, + COALESCE ( 71, 20 + - 74, - NULLIF ( + - COUNT( * ), + - 58 ) ) ) * - 64 + COUNT( * ) * COALESCE ( - 40, + + 1 ) + + - 74 * ( 61 ) + COALESCE ( + + 59, + 95, 73 + 23 DIV SUM( 23 - + 18 ) ) AS col0
----
42935

skipif mysql # not compatible
query I rowsort label-9887
SELECT + 6 + 19 * - COALESCE ( 39, - + 80, + COALESCE ( 71, 20 + - 74, - NULLIF ( + - COUNT ( * ), + - 58 ) ) ) * - 64 + COUNT ( * ) * COALESCE ( - 40, + + 1 ) + + - 74 * ( 61 ) + COALESCE ( + + 59, + 95, 73 + 23 / SUM ( 23 - + 18 ) ) AS col0
----
42935

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT + COUNT( * ) + - NULLIF ( - + 67, - + 4 )
----
68

skipif mysql # not compatible
query I rowsort label-9888
SELECT + COUNT ( * ) + - NULLIF ( - + 67, - + 4 )
----
68

query I rowsort
SELECT ( 60 ) * - 18
----
-1080

query I rowsort
SELECT 99 + + 39 * 56 AS col2
----
2283

query I rowsort
SELECT - 72 + - - 45
----
-27

query II rowsort
SELECT DISTINCT 81, - 31 col1
----
81
-31

query I rowsort
SELECT ALL + 28 + - + 66 AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT DISTINCT + 19 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT + 19 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 33 + + 36
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9896
SELECT ALL + COUNT( * ) * - 56 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL + COUNT ( * ) * - 56 / - 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT 3 + + COUNT( * ) * 67
----
70

skipif mysql # not compatible
query I rowsort label-9897
SELECT 3 + + COUNT ( * ) * 67
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT CAST( + 59 AS SIGNED ) * - - ( - + 51 )
----
-3009

skipif mysql # not compatible
query I rowsort label-9898
SELECT CAST ( + 59 AS INTEGER ) * - - ( - + 51 )
----
-3009

query I rowsort
SELECT 22 + - + COALESCE ( + + 38, - 30, + 60 ) AS col2
----
-16

query I rowsort
SELECT 28 * - 61 AS col1
----
-1708

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT DISTINCT - SUM( 76 ) - 1
----
-77

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT - SUM ( 76 ) - 1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9902
SELECT 18 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT 18 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 57 * - - 53
----
-3021

query II rowsort
SELECT ALL - 99 col2, 86 AS col0
----
-99
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT 82 DIV + + ( + 73 ) + + 73 * - 62 AS col0
----
-4525

skipif mysql # not compatible
query I rowsort label-9905
SELECT 82 / + + ( + 73 ) + + 73 * - 62 AS col0
----
-4525

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT + COUNT( * ) * - 50
----
-50

skipif mysql # not compatible
query I rowsort label-9906
SELECT + COUNT ( * ) * - 50
----
-50

query I rowsort
SELECT 86 * - 25 AS col1
----
-2150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9908
SELECT ALL + - 98 * - CAST( + CASE + + 47 WHEN - 79 THEN - 41 WHEN CAST( + 81 AS SIGNED ) * 60 + - COUNT( * ) THEN NULL ELSE 28 + 8 END AS SIGNED )
----
3528

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL + - 98 * - CAST ( + CASE + + 47 WHEN - 79 THEN - 41 WHEN CAST ( + 81 AS INTEGER ) * 60 + - COUNT ( * ) THEN NULL ELSE 28 + 8 END AS INTEGER )
----
3528

query I rowsort
SELECT 35 - 15 col1
----
20

query I rowsort
SELECT ALL - - 71 AS col0
----
71

query I rowsort
SELECT ALL + 41 + - - 83
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9912
SELECT + MIN( - + 23 ) + + - 33 - + 94 + - 76 - CAST( + 14 AS SIGNED ) * + COALESCE ( + 14, 3 ) * 65
----
-12966

skipif mysql # not compatible
query I rowsort label-9912
SELECT + MIN ( - + 23 ) + + - 33 - + 94 + - 76 - CAST ( + 14 AS INTEGER ) * + COALESCE ( + 14, 3 ) * 65
----
-12966

query II rowsort
SELECT DISTINCT - 86, - 97 AS col2
----
-86
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT ALL - 86 + - + MAX( - COALESCE ( + - 16, 79 * - + 24 + - - 60 ) )
----
-102

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL - 86 + - + MAX ( - COALESCE ( + - 16, 79 * - + 24 + - - 60 ) )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT ALL - - COUNT( * ) + - - 19
----
20

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL - - COUNT ( * ) + - - 19
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9916
SELECT ALL - COALESCE ( 44, + - CASE - 28 WHEN - - COUNT( * ) THEN NULL ELSE - 97 END * - - 18 + NULLIF ( 30, + SUM( ALL 94 ) ) + - - ( + COUNT( * ) ) ), - 45 col0
----
-44
-45

skipif mysql # not compatible
query II rowsort label-9916
SELECT ALL - COALESCE ( 44, + - CASE - 28 WHEN - - COUNT ( * ) THEN NULL ELSE - 97 END * - - 18 + NULLIF ( 30, + SUM ( ALL 94 ) ) + - - ( + COUNT ( * ) ) ), - 45 col0
----
-44
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9917
SELECT + - 35 AS col2, SUM( DISTINCT CAST( NULL AS SIGNED ) ) col0
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-9917
SELECT + - 35 AS col2, SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) col0
----
-35
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9918
SELECT - 41 AS col1, + MAX( - 94 )
----
-41
-94

skipif mysql # not compatible
query II rowsort label-9918
SELECT - 41 AS col1, + MAX ( - 94 )
----
-41
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ALL 73 + - 56 + MIN( - 47 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL 73 + - 56 + MIN ( - 47 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT - NULLIF ( + 54, - 11 ) * COUNT( * ) * + + 75
----
-4050

skipif mysql # not compatible
query I rowsort label-9920
SELECT - NULLIF ( + 54, - 11 ) * COUNT ( * ) * + + 75
----
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT - 13 + - + 30 - COUNT( * ) + - 89 * + + COUNT( * )
----
-133

skipif mysql # not compatible
query I rowsort label-9921
SELECT - 13 + - + 30 - COUNT ( * ) + - 89 * + + COUNT ( * )
----
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9922
SELECT ALL 0 * + - COUNT( * ) + + + 52 - - 87 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL 0 * + - COUNT ( * ) + + + 52 - - 87 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 65 + + 43
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9924
SELECT 84 * 41 DIV + COUNT( * )
----
3444

skipif mysql # not compatible
query I rowsort label-9924
SELECT 84 * 41 / + COUNT ( * )
----
3444

query I rowsort
SELECT ALL 92 * + 90 * - + NULLIF ( + 95, 77 ) AS col0
----
-786600

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT 67 + COUNT( * ) * 5 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9926
SELECT 67 + COUNT ( * ) * 5 AS col1
----
72

query I rowsort
SELECT 74 * + - 84
----
-6216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9928
SELECT ( + 77 ) - - + 59 DIV NULLIF ( - - 56, COUNT( * ) ) + 27
----
105

skipif mysql # not compatible
query I rowsort label-9928
SELECT ( + 77 ) - - + 59 / NULLIF ( - - 56, COUNT ( * ) ) + 27
----
105

query I rowsort
SELECT + 20 * + + 9 * - 60
----
-10800

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT COUNT( - - 76 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT COUNT ( - - 76 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9931
SELECT - 72 - 55, + COUNT( * ) * - + COUNT( + + 22 ) - + + 77 AS col1
----
-127
-78

skipif mysql # not compatible
query II rowsort label-9931
SELECT - 72 - 55, + COUNT ( * ) * - + COUNT ( + + 22 ) - + + 77 AS col1
----
-127
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9932
SELECT ALL 78 * + + 19 DIV COUNT( * )
----
1482

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL 78 * + + 19 / COUNT ( * )
----
1482

onlyif mysql # DIV for integer division: 
query I rowsort label-9933
SELECT - 79 DIV + 59 + 72 + ( 19 )
----
90

skipif mysql # not compatible
query I rowsort label-9933
SELECT - 79 / + 59 + 72 + ( 19 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ALL + MIN( + + 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + MIN ( + + 57 ) AS col0
----
57

query I rowsort
SELECT COALESCE ( 62, + 97 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT DISTINCT + SUM( + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT + SUM ( + 95 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9937
SELECT 92 DIV - ( - 94 ) + - + 37 * + 96 + + + 47
----
-3505

skipif mysql # not compatible
query I rowsort label-9937
SELECT 92 / - ( - 94 ) + - + 37 * + 96 + + + 47
----
-3505

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT ALL + MIN( DISTINCT ( 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL + MIN ( DISTINCT ( 17 ) )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9939
SELECT - + 76 DIV - + 45 AS col1, + 43 + - - ( - 92 ) - + COUNT( * ) - - 12 * 26 col1
----
1
262

skipif mysql # not compatible
query II rowsort label-9939
SELECT - + 76 / - + 45 AS col1, + 43 + - - ( - 92 ) - + COUNT ( * ) - - 12 * 26 col1
----
1
262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9940
SELECT ALL - + COUNT( * ) * AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL - + COUNT ( * ) * AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9941
SELECT DISTINCT - COUNT( * ) / + 82 / + NULLIF ( - + CAST( NULL AS SIGNED ), + 65 ) / - + 27 + CAST( NULL AS DECIMAL ) * 52 + 60 + - + 52 + 55 + + 42 + 44 / 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT - COUNT ( * ) / + 82 / + NULLIF ( - + CAST ( NULL AS INTEGER ), + 65 ) / - + 27 + CAST ( NULL AS REAL ) * 52 + 60 + - + 52 + 55 + + 42 + 44 / 91 AS col1
----
NULL

query I rowsort
SELECT + ( - + 10 ) col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9943
SELECT ALL - + 92 / + CASE WHEN ( NOT - 39 IN ( - + 31, - COALESCE ( - + 32, + NULLIF ( COUNT( * ), + 80 ), + 22 + + 26 ) + + - AVG ( ALL 84 ) ) ) THEN NULL WHEN NOT ( - ( + CASE 81 WHEN NULLIF ( - 15, + 13 ) * + CAST( NULL AS SIGNED ) + 85 * + 73 THEN 51 ELSE 52 END ) ) = 83 + 80 * 46 THEN 39 * + 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL - + 92 / + CASE WHEN ( NOT - 39 IN ( - + 31, - COALESCE ( - + 32, + NULLIF ( COUNT ( * ), + 80 ), + 22 + + 26 ) + + - AVG ( ALL 84 ) ) ) THEN NULL WHEN NOT ( - ( + CASE 81 WHEN NULLIF ( - 15, + 13 ) * + CAST ( NULL AS INTEGER ) + 85 * + 73 THEN 51 ELSE 52 END ) ) = 83 + 80 * 46 THEN 39 * + 89 ELSE NULL END
----
NULL

query I rowsort
SELECT - 83 * + 80 + + 37 + 4 * 99
----
-6207

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9945
SELECT - CASE - 77 WHEN + 42 THEN NULL ELSE - - CAST( NULL AS DECIMAL ) END / 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT - CASE - 77 WHEN + 42 THEN NULL ELSE - - CAST ( NULL AS REAL ) END / 39 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 88 * 5 + - 20 AS col2
----
420

query I rowsort
SELECT ALL + COALESCE ( - 98, - ( + 17 ) ) * - + 14 + + 69 AS col0
----
1441

onlyif mysql # DIV for integer division: 
query I rowsort label-9948
SELECT - - 49 + 90 DIV - 51 - + + 56 * - + 1 * - - ( + + 22 ) AS col1
----
1280

skipif mysql # not compatible
query I rowsort label-9948
SELECT - - 49 + 90 / - 51 - + + 56 * - + 1 * - - ( + + 22 ) AS col1
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT - + COUNT( DISTINCT ( - 59 ) ) + + 90
----
89

skipif mysql # not compatible
query I rowsort label-9949
SELECT - + COUNT ( DISTINCT ( - 59 ) ) + + 90
----
89

query I rowsort
SELECT ALL + + 85
----
85

query I rowsort
SELECT + COALESCE ( - 49, - 62, + 90 ) * + + 61 * - 14 + - + 62
----
41784

query I rowsort
SELECT DISTINCT - 84 * + 13 - + 70 AS col0
----
-1162

query I rowsort
SELECT ALL ( 14 ) AS col1
----
14

query I rowsort
SELECT + 63 + + 45
----
108

query I rowsort
SELECT + 39 + - 97
----
-58

query I rowsort
SELECT + 56 * 5
----
280

query I rowsort
SELECT + 15 + - 50 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-9958
SELECT ALL 92 AS col1, + MAX( + + 79 ) AS col1
----
92
79

skipif mysql # not compatible
query II rowsort label-9958
SELECT ALL 92 AS col1, + MAX ( + + 79 ) AS col1
----
92
79

query I rowsort
SELECT + 33 - 76 * - 19 AS col1
----
1477

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT + 91 * COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-9960
SELECT + 91 * COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT DISTINCT ( COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT ( COUNT ( * ) ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT + 20 * - CAST( 29 AS SIGNED ) AS col1
----
-580

skipif mysql # not compatible
query I rowsort label-9962
SELECT + 20 * - CAST ( 29 AS INTEGER ) AS col1
----
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT DISTINCT + 84 * - 17 * - 37 * COUNT( * ) AS col2
----
52836

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT + 84 * - 17 * - 37 * COUNT ( * ) AS col2
----
52836

onlyif mysql # DIV for integer division: 
query I rowsort label-9964
SELECT + 55 * 55 DIV + 11 AS col0
----
275

skipif mysql # not compatible
query I rowsort label-9964
SELECT + 55 * 55 / + 11 AS col0
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL COUNT( ALL 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL COUNT ( ALL 92 ) AS col0
----
1

query I rowsort
SELECT + 73 + - + 22
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL SUM( + 9 ) * - 19 + + 79
----
-92

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL SUM ( + 9 ) * - 19 + + 79
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT - ( 44 ) / - 87 * - + CASE - 13 WHEN 58 / + - 80 THEN - COALESCE ( + SUM( + - 16 ), + + 43 * COUNT( * ) ) ELSE NULL END + - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9968
SELECT - ( 44 ) / - 87 * - + CASE - 13 WHEN 58 / + - 80 THEN - COALESCE ( + SUM ( + - 16 ), + + 43 * COUNT ( * ) ) ELSE NULL END + - - 93
----
NULL

query I rowsort
SELECT + 49 + + 63 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT + 61 * - COUNT( * ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9970
SELECT + 61 * - COUNT ( * ) AS col1
----
-61

query I rowsort
SELECT + 66 * 56 AS col2
----
3696

query I rowsort
SELECT DISTINCT 72 + - + 66 * - + ( - + 14 )
----
-852

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT - CASE - 12 WHEN + ( - - NULLIF ( + 80, - ( - 75 ) * - COUNT( * ) ) ) * - 11 THEN NULL WHEN - 9 THEN NULL ELSE - CASE - 0 WHEN + - ( + ( - 45 ) ) + 72 THEN - 48 WHEN 96 * + COALESCE ( 58, + 71 / - COUNT( * ) ) + + COALESCE ( - COALESCE ( - ( 54 ), - 21 * - 11 ), 0, - 37, - 16 + + 93 ) + - 14 THEN 46 END * + 35 + - COALESCE ( 29, COUNT( - 21 ) / + 64 + - COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT - CASE - 12 WHEN + ( - - NULLIF ( + 80, - ( - 75 ) * - COUNT ( * ) ) ) * - 11 THEN NULL WHEN - 9 THEN NULL ELSE - CASE - 0 WHEN + - ( + ( - 45 ) ) + 72 THEN - 48 WHEN 96 * + COALESCE ( 58, + 71 / - COUNT ( * ) ) + + COALESCE ( - COALESCE ( - ( 54 ), - 21 * - 11 ), 0, - 37, - 16 + + 93 ) + - 14 THEN 46 END * + 35 + - COALESCE ( 29, COUNT ( - 21 ) / + 64 + - COUNT ( * ) ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9974
SELECT 93 AS col2, 31 * - CAST( 43 AS SIGNED ) AS col0
----
93
-1333

skipif mysql # not compatible
query II rowsort label-9974
SELECT 93 AS col2, 31 * - CAST ( 43 AS INTEGER ) AS col0
----
93
-1333

query I rowsort
SELECT ALL 7 + + 68
----
75

query I rowsort
SELECT + - 47 * - ( + 94 ) AS col2
----
4418

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT DISTINCT + COUNT( ALL - + 7 )
----
1

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT + COUNT ( ALL - + 7 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9978
SELECT ALL 31 / + 31 * CAST( NULL AS SIGNED ) * CASE + 73 WHEN + + 13 THEN 25 WHEN + 24 THEN NULL ELSE NULL END + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL 31 / + 31 * CAST ( NULL AS INTEGER ) * CASE + 73 WHEN + + 13 THEN 25 WHEN + 24 THEN NULL ELSE NULL END + + 65
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9979
SELECT NULLIF ( - 58, - - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-9979
SELECT NULLIF ( - 58, - - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9980
SELECT + 35 * - 26 + - - 26 / + 98 + - NULLIF ( - CASE - 48 WHEN - + 47 THEN CASE 32 WHEN - 4 THEN NULL WHEN - 12 + + 44 + + 27 - + + CAST( NULL AS SIGNED ) * + 44 * - ( + - 75 ) THEN + 64 + + NULLIF ( 83, + + 90 ) * - - 10 * + COUNT( ALL - 34 ) ELSE NULL END WHEN COALESCE ( - ( 17 ), + NULLIF ( - 0, SUM( ALL - 2 ) * 42 ) * + 73 ) THEN + COUNT( * ) + + CASE COALESCE ( + 34, 44 ) WHEN + ( + ( + CASE - CAST( NULL AS SIGNED ) WHEN - 70 THEN - 68 + - ( 48 ) ELSE NULL END ) ) THEN + 56 ELSE 24 END END, AVG ( + 89 ) + - 72 ) + COUNT( * ) * 1 + - 60 * SUM( DISTINCT 53 + - CAST( NULL AS SIGNED ) * 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT + 35 * - 26 + - - 26 / + 98 + - NULLIF ( - CASE - 48 WHEN - + 47 THEN CASE 32 WHEN - 4 THEN NULL WHEN - 12 + + 44 + + 27 - + + CAST ( NULL AS INTEGER ) * + 44 * - ( + - 75 ) THEN + 64 + + NULLIF ( 83, + + 90 ) * - - 10 * + COUNT ( ALL - 34 ) ELSE NULL END WHEN COALESCE ( - ( 17 ), + NULLIF ( - 0, SUM ( ALL - 2 ) * 42 ) * + 73 ) THEN + COUNT ( * ) + + CASE COALESCE ( + 34, 44 ) WHEN + ( + ( + CASE - CAST ( NULL AS INTEGER ) WHEN - 70 THEN - 68 + - ( 48 ) ELSE NULL END ) ) THEN + 56 ELSE 24 END END, AVG ( + 89 ) + - 72 ) + COUNT ( * ) * 1 + - 60 * SUM ( DISTINCT 53 + - CAST ( NULL AS INTEGER ) * 44 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT - - MIN( ALL - 2 ) + - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9981
SELECT - - MIN ( ALL - 2 ) + - - COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9982
SELECT ALL 39 DIV + 68 + + 62
----
62

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL 39 / + 68 + + 62
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9983
SELECT ALL 77 DIV - + 14 + + CASE + 32 WHEN - 31 THEN + 86 ELSE + 11 END + - COUNT( * ) - + - 73 * 91 * + COUNT( * ) * + 85 AS col0
----
564660

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL 77 / - + 14 + + CASE + 32 WHEN - 31 THEN + 86 ELSE + 11 END + - COUNT ( * ) - + - 73 * 91 * + COUNT ( * ) * + 85 AS col0
----
564660

query II rowsort
SELECT - 53, 66 AS col0
----
-53
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9985
SELECT DISTINCT - 59 / + 6 * + COUNT( * ) / - CAST( NULL AS SIGNED ) + - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT - 59 / + 6 * + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - 28 AS col1
----
NULL

query I rowsort
SELECT + + 20 - + 77 AS col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9987
SELECT - - COALESCE ( + + COALESCE ( + + COUNT( * ), - - 40 DIV - ( + - NULLIF ( ( + 0 ), 63 ) ) * - 55 ), 50 + MAX( DISTINCT + 45 ), - - 19 ) * - 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-9987
SELECT - - COALESCE ( + + COALESCE ( + + COUNT ( * ), - - 40 / - ( + - NULLIF ( ( + 0 ), 63 ) ) * - 55 ), 50 + MAX ( DISTINCT + 45 ), - - 19 ) * - 38 AS col0
----
-38

query I rowsort
SELECT + ( 4 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9989
SELECT ALL + CASE - ( - 94 ) WHEN + AVG ( - 54 ) THEN - MAX( ALL 98 ) * - + COALESCE ( - + COUNT( * ), MIN( DISTINCT 43 ) * + 78 ) * + + COUNT( * ) + + 97 WHEN 94 THEN - + CASE - 75 WHEN - - CAST( - 72 AS SIGNED ) THEN + - 97 + - - 16 END / - + COUNT( ALL - CASE - + 44 WHEN + 3 THEN 30 END ) + ( 43 + - 52 * 25 ) * 41 ELSE COUNT( DISTINCT 64 ) * COUNT( * ) END * 7 + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL + CASE - ( - 94 ) WHEN + AVG ( - 54 ) THEN - MAX ( ALL 98 ) * - + COALESCE ( - + COUNT ( * ), MIN ( DISTINCT 43 ) * + 78 ) * + + COUNT ( * ) + + 97 WHEN 94 THEN - + CASE - 75 WHEN - - CAST ( - 72 AS INTEGER ) THEN + - 97 + - - 16 END / - + COUNT ( ALL - CASE - + 44 WHEN + 3 THEN 30 END ) + ( 43 + - 52 * 25 ) * 41 ELSE COUNT ( DISTINCT 64 ) * COUNT ( * ) END * 7 + - 94
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9990
SELECT ALL + CASE CAST( NULL AS SIGNED ) WHEN NULLIF ( - 39, - ( + COUNT( * ) ) ) THEN - + 48 WHEN - 42 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL + CASE CAST ( NULL AS INTEGER ) WHEN NULLIF ( - 39, - ( + COUNT ( * ) ) ) THEN - + 48 WHEN - 42 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT ALL + 8 * - + 64 * COUNT( * ) - + 46 + - 7 col0
----
-565

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL + 8 * - + 64 * COUNT ( * ) - + 46 + - 7 col0
----
-565

query I rowsort
SELECT - 52 * + + 66 AS col0
----
-3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9993
SELECT ALL + COUNT( * ) DIV - 75 * + 6 AS col2, 3 * + 93 * 36 * - COUNT( * ) * ( COUNT( * ) ) - + + ( COUNT( * ) )
----
0
-10045

skipif mysql # not compatible
query II rowsort label-9993
SELECT ALL + COUNT ( * ) / - 75 * + 6 AS col2, 3 * + 93 * 36 * - COUNT ( * ) * ( COUNT ( * ) ) - + + ( COUNT ( * ) )
----
0
-10045

onlyif mysql # aggregate syntax: 
query II rowsort label-9994
SELECT + 99 AS col2, MIN( DISTINCT ( + 2 ) ) AS col2
----
99
2

skipif mysql # not compatible
query II rowsort label-9994
SELECT + 99 AS col2, MIN ( DISTINCT ( + 2 ) ) AS col2
----
99
2

query I rowsort
SELECT + ( 22 ) * - 23
----
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT - 39 * 45 * COUNT( * )
----
-1755

skipif mysql # not compatible
query I rowsort label-9996
SELECT - 39 * 45 * COUNT ( * )
----
-1755

query I rowsort
SELECT ALL + 69 * + + 68 * + 20
----
93840

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT COALESCE ( - 5, 62 * + 22 - + + 13 + + 36 * + ( - 94 ) + - COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-9998
SELECT COALESCE ( - 5, 62 * + 22 - + + 13 + + 36 * + ( - 94 ) + - COUNT ( * ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT - COUNT( * ) * - ( + - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9999
SELECT - COUNT ( * ) * - ( + - COUNT ( * ) ) AS col0
----
-1

