sqllogictest
Artifact Content
Not logged in

Artifact b760b2a27fe3cf4e9ebedbb95f0f4fd5be58e653:


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 DISTINCT 38 col0
----
38

query I rowsort
SELECT 87 + - 95 AS col0
----
-8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT COUNT( * ) + - - COUNT( DISTINCT + + 3 ) + ( - 49 ) - + 63
----
-110

skipif mysql # not compatible
query I rowsort label-3
SELECT COUNT ( * ) + - - COUNT ( DISTINCT + + 3 ) + ( - 49 ) - + 63
----
-110

query I rowsort
SELECT ALL - + 66 * + + 18 col1
----
-1188

query I rowsort
SELECT 77 * + - 23 + - 25 AS col1
----
-1796

query I rowsort
SELECT ALL - 92 + - 89
----
-181

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

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

query I rowsort
SELECT DISTINCT 92 * - 64 AS col0
----
-5888

query I rowsort
SELECT ALL - + 53 + + 90 + - 8 * 40
----
-283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-10
SELECT DISTINCT - 90 + + MIN( - 91 ) - NULLIF ( + - 5, + ( - 22 ) + 59 + + 11 ) + + + CAST( 5 AS SIGNED ) * + + 89 * - COALESCE ( 29, 22 DIV + 26 * - 85 + + + COUNT( * ) )
----
-13081

skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT - 90 + + MIN ( - 91 ) - NULLIF ( + - 5, + ( - 22 ) + 59 + + 11 ) + + + CAST ( 5 AS INTEGER ) * + + 89 * - COALESCE ( 29, 22 / + 26 * - 85 + + + COUNT ( * ) )
----
-13081

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL + COUNT( * ) + - 73
----
-72

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL + COUNT ( * ) + - 73
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ALL - - SUM( DISTINCT - 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL - - SUM ( DISTINCT - 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT COUNT( * ) + 81 + - 9 * 7
----
19

skipif mysql # not compatible
query I rowsort label-13
SELECT COUNT ( * ) + 81 + - 9 * 7
----
19

query I rowsort
SELECT ALL - - 61 + + 28 + + - 46
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT DISTINCT + + MAX( DISTINCT 73 ) + - + 68 * + 55
----
-3667

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT + + MAX ( DISTINCT 73 ) + - + 68 * + 55
----
-3667

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT COUNT( * ) * - COUNT( DISTINCT - 23 ) * - 47 * - COUNT( + - 3 ) + - 72 * + + 0
----
-47

skipif mysql # not compatible
query I rowsort label-17
SELECT COUNT ( * ) * - COUNT ( DISTINCT - 23 ) * - 47 * - COUNT ( + - 3 ) + - 72 * + + 0
----
-47

query I rowsort
SELECT 96 * - 52 + - 13 AS col0
----
-5005

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

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

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

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL + - 73 + - CAST ( NULL AS INTEGER ) + 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-21
SELECT ALL + - 57 DIV + + 27 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL + - 57 / + + 27 AS col1
----
-2

query I rowsort
SELECT 5 * - 71 * + - ( + 22 )
----
7810

query I rowsort
SELECT DISTINCT - + NULLIF ( 19, - 72 - 40 ) col1
----
-19

query I rowsort
SELECT ALL 35 * - 90 AS col0
----
-3150

query I rowsort
SELECT 77 * + + 60 AS col0
----
4620

query II rowsort
SELECT + 97 AS col1, 13 * + 76 AS col0
----
97
988

query II rowsort
SELECT - 99 AS col2, + ( 20 ) - 81 AS col0
----
-99
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-28
SELECT ALL COUNT( * ), 81 DIV - 76 col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-28
SELECT ALL COUNT ( * ), 81 / - 76 col1
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-29
SELECT DISTINCT MAX( ALL ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT MAX ( ALL ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-30
SELECT 32 AS col2, 80 * + COUNT( * ) * + 63
----
32
5040

skipif mysql # not compatible
query II rowsort label-30
SELECT 32 AS col2, 80 * + COUNT ( * ) * + 63
----
32
5040

query I rowsort
SELECT 67 * - 44
----
-2948

onlyif mysql # DIV for integer division: 
query II rowsort label-32
SELECT DISTINCT 58, 38 DIV - 85 AS col0
----
58
0

skipif mysql # not compatible
query II rowsort label-32
SELECT DISTINCT 58, 38 / - 85 AS col0
----
58
0

query II rowsort
SELECT 45, + 15 AS col0
----
45
15

query II rowsort
SELECT ALL 64 col0, - 82 AS col0
----
64
-82

query II rowsort
SELECT - 65 AS col0, 11
----
-65
11

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

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

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

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

query I rowsort
SELECT 85 + + - 75
----
10

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

skipif mysql # not compatible
query I rowsort label-39
SELECT - MAX ( DISTINCT 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT ALL NULLIF ( 91, - 66 * - + 22 * + COUNT( 53 ) - + 85 ) + + - 93
----
-2

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL NULLIF ( 91, - 66 * - + 22 * + COUNT ( 53 ) - + 85 ) + + - 93
----
-2

query I rowsort
SELECT ALL 81 * - - 76
----
6156

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT DISTINCT 55 + + MIN( ALL 70 ) * 21 + 33
----
1558

skipif mysql # not compatible
query I rowsort label-42
SELECT DISTINCT 55 + + MIN ( ALL 70 ) * 21 + 33
----
1558

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT ALL + 61 + - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + 61 + - - COUNT ( * )
----
62

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT DISTINCT + ( + + COUNT( * ) ) * + + 55 + - ( + COALESCE ( 1, 38 * - + CASE - ( 32 ) WHEN + - COUNT( * ) THEN NULL WHEN - 28 THEN NULL WHEN 83 / + 72 + 10 + - 89 - + + ( - 7 ) * 8 THEN + 93 ELSE NULL END * 90 - 34 * + 24 * + 84 * - ( - 19 ) ) ) - CASE + COUNT( * ) + + 22 * COUNT( * ) WHEN + 83 THEN - 49 * NULLIF ( 49 * SUM( DISTINCT + 3 ), - COALESCE ( + 15, + 84 + 31, COUNT( * ) ) * + 86 ) + - 99 ELSE 99 END + - 77
----
-122

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT + ( + + COUNT ( * ) ) * + + 55 + - ( + COALESCE ( 1, 38 * - + CASE - ( 32 ) WHEN + - COUNT ( * ) THEN NULL WHEN - 28 THEN NULL WHEN 83 / + 72 + 10 + - 89 - + + ( - 7 ) * 8 THEN + 93 ELSE NULL END * 90 - 34 * + 24 * + 84 * - ( - 19 ) ) ) - CASE + COUNT ( * ) + + 22 * COUNT ( * ) WHEN + 83 THEN - 49 * NULLIF ( 49 * SUM ( DISTINCT + 3 ), - COALESCE ( + 15, + 84 + 31, COUNT ( * ) ) * + 86 ) + - 99 ELSE 99 END + - 77
----
-122

query I rowsort
SELECT ALL + 28 * 64 + 10 AS col0
----
1802

query I rowsort
SELECT ( - - ( - 56 ) ) AS col0
----
-56

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

skipif mysql # not compatible
query I rowsort label-50
SELECT + + MAX ( ALL + 9 ) * - 94 AS col2
----
-846

onlyif mysql # aggregate syntax: 
query II rowsort label-51
SELECT ALL + 60 AS col1, 5 + + + 80 + + MIN( DISTINCT + 26 ) AS col2
----
60
111

skipif mysql # not compatible
query II rowsort label-51
SELECT ALL + 60 AS col1, 5 + + + 80 + + MIN ( DISTINCT + 26 ) AS col2
----
60
111

onlyif mysql # DIV for integer division: 
query I rowsort label-52
SELECT DISTINCT 29 * 79 DIV - 60 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT 29 * 79 / - 60 AS col1
----
-38

query II rowsort
SELECT + 65 col0, ( - 63 )
----
65
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-54
SELECT + SUM( ALL - 2 ) AS col1, 75 + + + 54 AS col1
----
-2
129

skipif mysql # not compatible
query II rowsort label-54
SELECT + SUM ( ALL - 2 ) AS col1, 75 + + + 54 AS col1
----
-2
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-55
SELECT + - 4 + + COALESCE ( - 10, + - 23, - - 93 DIV COALESCE ( - CAST( NULL AS SIGNED ), - - 93 ) DIV - 47 + 53 - + COUNT( * ) + 81 + + COUNT( * ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-55
SELECT + - 4 + + COALESCE ( - 10, + - 23, - - 93 / COALESCE ( - CAST ( NULL AS INTEGER ), - - 93 ) / - 47 + 53 - + COUNT ( * ) + 81 + + COUNT ( * ) ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT - ( + - 64 ) * + COUNT( * ) + - 95 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-56
SELECT - ( + - 64 ) * + COUNT ( * ) + - 95 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT ALL + COALESCE ( - 83, - MIN( DISTINCT - 98 ), 46 )
----
-83

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL + COALESCE ( - 83, - MIN ( DISTINCT - 98 ), 46 )
----
-83

query I rowsort
SELECT + 29 + + + 23
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-59
SELECT MIN( ALL 89 ) AS col0, - 40 AS col2
----
89
-40

skipif mysql # not compatible
query II rowsort label-59
SELECT MIN ( ALL 89 ) AS col0, - 40 AS col2
----
89
-40

query I rowsort
SELECT + 6 * - 75 * 87 + 16 + - 39 AS col2
----
-39173

onlyif mysql # DIV for integer division: 
query I rowsort label-61
SELECT - 23 DIV NULLIF ( + 50, - 81 ) * + 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-61
SELECT - 23 / NULLIF ( + 50, - 81 ) * + 37 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT + ( - - 15 ) * - - COUNT( * ) * - 90 * + 48 * - 70 * 94 - + 48 + + COUNT( * ) AS col2
----
426383953

skipif mysql # not compatible
query I rowsort label-62
SELECT + ( - - 15 ) * - - COUNT ( * ) * - 90 * + 48 * - 70 * 94 - + 48 + + COUNT ( * ) AS col2
----
426383953

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT - SUM( - 70 ) * + 85 + + 22 - - 15
----
5987

skipif mysql # not compatible
query I rowsort label-63
SELECT - SUM ( - 70 ) * + 85 + + 22 - - 15
----
5987

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-64
SELECT ALL - 83 DIV + 7 * COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL - 83 / + 7 * COUNT ( * ) AS col1
----
-11

query I rowsort
SELECT - 75 + + 68 + - 54
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT DISTINCT - 65 * 21 * + 93 * + NULLIF ( MAX( - + 18 ), - + 94 ) * + 14 * - + CASE + 8 WHEN 89 * + - ( + + 80 ) THEN + 95 ELSE NULL END * - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT - 65 * 21 * + 93 * + NULLIF ( MAX ( - + 18 ), - + 94 ) * + 14 * - + CASE + 8 WHEN 89 * + - ( + + 80 ) THEN + 95 ELSE NULL END * - 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-67
SELECT ALL MAX( ALL + + 21 ) AS col1, ( - 26 )
----
21
-26

skipif mysql # not compatible
query II rowsort label-67
SELECT ALL MAX ( ALL + + 21 ) AS col1, ( - 26 )
----
21
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-68
SELECT - 69 * + 95 col0, - 66 + - CASE 28 WHEN COALESCE ( + 97, - + 15 / + + 91 / - + 95 * + 77, - + 27, + 93 / + - 45 * - COUNT( * ) + 79 ) THEN NULL ELSE + 7 * - CAST( - CASE - 92 WHEN - - 78 THEN + MAX( ALL ( - 13 ) ) WHEN 50 * - + 44 - - 37 THEN - 94 END AS SIGNED ) - + 4 END AS col2
----
-6555
NULL

skipif mysql # not compatible
query II rowsort label-68
SELECT - 69 * + 95 col0, - 66 + - CASE 28 WHEN COALESCE ( + 97, - + 15 / + + 91 / - + 95 * + 77, - + 27, + 93 / + - 45 * - COUNT ( * ) + 79 ) THEN NULL ELSE + 7 * - CAST ( - CASE - 92 WHEN - - 78 THEN + MAX ( ALL ( - 13 ) ) WHEN 50 * - + 44 - - 37 THEN - 94 END AS INTEGER ) - + 4 END AS col2
----
-6555
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT - 28 + ( - + 60 ) + - ( - 19 ) * + COUNT( * ) * + + 49
----
843

skipif mysql # not compatible
query I rowsort label-69
SELECT - 28 + ( - + 60 ) + - ( - 19 ) * + COUNT ( * ) * + + 49
----
843

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT DISTINCT + MIN( ALL + - 36 ) * 26
----
-936

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT + MIN ( ALL + - 36 ) * 26
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ALL NULLIF ( - - 69, + 93 * - - 4 + + COUNT( * ) ) col0
----
69

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL NULLIF ( - - 69, + 93 * - - 4 + + COUNT ( * ) ) col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT - MAX( 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-72
SELECT - MAX ( 21 )
----
-21

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

skipif mysql # not compatible
query I rowsort label-73
SELECT - CAST ( NULL AS INTEGER ) * 97 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT DISTINCT + 66 + + 6 * - 8 + + COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT + 66 + + 6 * - 8 + + COUNT ( * ) AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-76
SELECT ALL 21 + CAST( NULL AS SIGNED ) AS col2, CASE 87 WHEN + 31 THEN - 8 WHEN - 3 THEN - 58 WHEN - - 59 THEN NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-76
SELECT ALL 21 + CAST ( NULL AS INTEGER ) AS col2, CASE 87 WHEN + 31 THEN - 8 WHEN - 3 THEN - 58 WHEN - - 59 THEN NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-77
SELECT DISTINCT - + 19 + 86 + - COUNT( * ) + + 28 + 92 DIV COUNT( ALL 13 ) col0
----
186

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT - + 19 + 86 + - COUNT ( * ) + + 28 + 92 / COUNT ( ALL 13 ) col0
----
186

query II rowsort
SELECT - + 12 + - 57, + 92 AS col1
----
-69
92

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

skipif mysql # not compatible
query I rowsort label-79
SELECT MAX ( ALL 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ALL + + COUNT( * ) + 26 + - COALESCE ( + 62, + CASE + 58 WHEN + 55 * 14 * - 69 * - + 80 - + 42 * 50 THEN + 31 ELSE 87 END )
----
-35

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL + + COUNT ( * ) + 26 + - COALESCE ( + 62, + CASE + 58 WHEN + 55 * 14 * - 69 * - + 80 - + 42 * 50 THEN + 31 ELSE 87 END )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT COUNT( - - 9 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-81
SELECT COUNT ( - - 9 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT - 71 + - COUNT( 90 ) + + 85 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-82
SELECT - 71 + - COUNT ( 90 ) + + 85 AS col2
----
13

onlyif mysql # aggregate syntax: 
query III rowsort label-83
SELECT - MAX( ALL + + 7 ) + + + 42 + - ( - 15 ) + 45 - COUNT( ALL + 90 ) * COUNT( * ) * - 2 AS col1, - COUNT( * ) + + - COUNT( * ) * + 29 AS col0, 94 * + 52 AS col2
----
97
-30
4888

skipif mysql # not compatible
query III rowsort label-83
SELECT - MAX ( ALL + + 7 ) + + + 42 + - ( - 15 ) + 45 - COUNT ( ALL + 90 ) * COUNT ( * ) * - 2 AS col1, - COUNT ( * ) + + - COUNT ( * ) * + 29 AS col0, 94 * + 52 AS col2
----
97
-30
4888

onlyif mysql # aggregate syntax: 
query II rowsort label-84
SELECT + 59 * - 77 * - ( SUM( DISTINCT - 14 ) ), - 57 AS col0
----
-63602
-57

skipif mysql # not compatible
query II rowsort label-84
SELECT + 59 * - 77 * - ( SUM ( DISTINCT - 14 ) ), - 57 AS col0
----
-63602
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT ALL - 49 - - COUNT( * ) * + 64 + - - 42 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL - 49 - - COUNT ( * ) * + 64 + - - 42 AS col1
----
57

query I rowsort
SELECT + 25 * 71
----
1775

query I rowsort
SELECT ALL - NULLIF ( 50, + - 39 ) * + 35 AS col0
----
-1750

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

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

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

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

query I rowsort
SELECT + - 44 + - 57 AS col2
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-93
SELECT + NULLIF ( + + 25, - ( - + 40 ) * - 11 ) * + 71 * + + NULLIF ( - AVG ( - + 9 ), 87 + + - MIN( DISTINCT + 37 ) ) * 79 - - 38 + - CAST( NULL AS SIGNED ) + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-93
SELECT + NULLIF ( + + 25, - ( - + 40 ) * - 11 ) * + 71 * + + NULLIF ( - AVG ( - + 9 ), 87 + + - MIN ( DISTINCT + 37 ) ) * 79 - - 38 + - CAST ( NULL AS INTEGER ) + 95
----
NULL

query I rowsort
SELECT DISTINCT 23 * - + 16 AS col1
----
-368

query I rowsort
SELECT ALL 58 * - 38 AS col0
----
-2204

onlyif mysql # DIV for integer division: 
query I rowsort label-96
SELECT - 69 DIV 60 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-96
SELECT - 69 / 60 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-97
SELECT COALESCE ( + 42, - 60 * + - 92 + + 92 + - + 31 DIV - 3 * + 65 * + + 42, - + ( + - ( - + ( - MIN( + 45 ) ) ) ) )
----
42

skipif mysql # not compatible
query I rowsort label-97
SELECT COALESCE ( + 42, - 60 * + - 92 + + 92 + - + 31 / - 3 * + 65 * + + 42, - + ( + - ( - + ( - MIN ( + 45 ) ) ) ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT + COALESCE ( ( - - 83 ), MAX( ALL + ( + + 7 ) ), - ( + COUNT( * ) ) + + + 15 + + - ( - + 41 ) * + 59, 79 + + COUNT( * ) ) - 14 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-98
SELECT + COALESCE ( ( - - 83 ), MAX ( ALL + ( + + 7 ) ), - ( + COUNT ( * ) ) + + + 15 + + - ( - + 41 ) * + 59, 79 + + COUNT ( * ) ) - 14 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT SUM( DISTINCT - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-99
SELECT SUM ( DISTINCT - 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT ALL MAX( - 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL MAX ( - 1 ) AS col2
----
-1

query I rowsort
SELECT ALL + 91 * + 9 + 39
----
858

query I rowsort
SELECT - 86 * + + 58 AS col1
----
-4988

query I rowsort
SELECT - 79 + + 42
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT - - 66 DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-104
SELECT - - 66 / - 91 AS col2
----
0

query II rowsort
SELECT 31 AS col2, + 47
----
31
47

query I rowsort
SELECT ALL + + ( 1 ) * + 79 AS col0
----
79

query I rowsort
SELECT DISTINCT - 11 + - 89 * + + 3
----
-278

query I rowsort
SELECT - 73 + - 27
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-109
SELECT - 59 col1, + CASE + - 82 WHEN + - COUNT( * ) THEN NULL ELSE + 19 END
----
-59
19

skipif mysql # not compatible
query II rowsort label-109
SELECT - 59 col1, + CASE + - 82 WHEN + - COUNT ( * ) THEN NULL ELSE + 19 END
----
-59
19

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

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL + + 42 - COUNT ( * ) AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-111
SELECT ALL - COALESCE ( - 77, 28 ) * + 24 + + 44 * CAST( + + 48 AS SIGNED ) + 63
----
4023

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL - COALESCE ( - 77, 28 ) * + 24 + + 44 * CAST ( + + 48 AS INTEGER ) + 63
----
4023

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-112
SELECT DISTINCT 88, - CAST( + 11 AS SIGNED ) AS col0
----
88
-11

skipif mysql # not compatible
query II rowsort label-112
SELECT DISTINCT 88, - CAST ( + 11 AS INTEGER ) AS col0
----
88
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-113
SELECT ALL + COALESCE ( - + 38, + + ( + 23 ) * CAST( - 86 AS SIGNED ) * - 50 ) - - COUNT( * ) - + - MAX( ALL - 79 ) AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL + COALESCE ( - + 38, + + ( + 23 ) * CAST ( - 86 AS INTEGER ) * - 50 ) - - COUNT ( * ) - + - MAX ( ALL - 79 ) AS col0
----
-116

query I rowsort
SELECT ALL 62 * + - 97
----
-6014

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-115
SELECT - - 57, - 96 * ( - 15 ) * NULLIF ( + CAST( + + 12 AS SIGNED ), 62 * 86 * + + 78 ) * 95 - 15 AS col1
----
57
1641585

skipif mysql # not compatible
query II rowsort label-115
SELECT - - 57, - 96 * ( - 15 ) * NULLIF ( + CAST ( + + 12 AS INTEGER ), 62 * 86 * + + 78 ) * 95 - 15 AS col1
----
57
1641585

onlyif mysql # DIV for integer division: 
query II rowsort label-116
SELECT 11 AS col2, - 61 DIV - + 97 AS col0
----
11
0

skipif mysql # not compatible
query II rowsort label-116
SELECT 11 AS col2, - 61 / - + 97 AS col0
----
11
0

query II rowsort
SELECT + 94, - ( - 2 ) + - 54 AS col1
----
94
-52

query I rowsort
SELECT 90 - - 6 * 26 - + - 53 AS col0
----
299

query I rowsort
SELECT ALL - + 87 * + 18 + + 48 AS col0
----
-1518

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT + + SUM( 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-120
SELECT + + SUM ( 14 ) AS col0
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-121
SELECT + COALESCE ( - 13, - + 33, + - 22 + - 19 + + + 71 + + 19 + - - 45 DIV - 82 DIV 40, 51 ), 43 AS col1
----
-13
43

skipif mysql # not compatible
query II rowsort label-121
SELECT + COALESCE ( - 13, - + 33, + - 22 + - 19 + + + 71 + + 19 + - - 45 / - 82 / 40, 51 ), 43 AS col1
----
-13
43

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT ALL - MIN( - 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL - MIN ( - 37 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT ALL 76 * + SUM( ALL + 71 ) AS col2
----
5396

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL 76 * + SUM ( ALL + 71 ) AS col2
----
5396

onlyif mysql # aggregate syntax: 
query II rowsort label-124
SELECT 70 * - 46, COUNT( ALL ( - - 59 ) ) AS col0
----
-3220
1

skipif mysql # not compatible
query II rowsort label-124
SELECT 70 * - 46, COUNT ( ALL ( - - 59 ) ) AS col0
----
-3220
1

query I rowsort
SELECT ALL - 83 * + 26 AS col2
----
-2158

query I rowsort
SELECT ALL + 10 * + 2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT ALL COUNT( * ) + - COALESCE ( NULLIF ( 23, + 51 * 8 * - - COUNT( * ) ), + - ( - 94 ) ) - - 67 * - - 21 AS col0
----
1385

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL COUNT ( * ) + - COALESCE ( NULLIF ( 23, + 51 * 8 * - - COUNT ( * ) ), + - ( - 94 ) ) - - 67 * - - 21 AS col0
----
1385

query I rowsort
SELECT 70 * 67
----
4690

query I rowsort
SELECT 5 * 53 * 86
----
22790

query I rowsort
SELECT 76 + + 28 + 24 * + 39 AS col2
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT ALL COUNT( * ) + COALESCE ( - + 60, + - 11, + 5 * + + 28 + + + 67 ) + + 9 col0
----
-50

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL COUNT ( * ) + COALESCE ( - + 60, + - 11, + 5 * + + 28 + + + 67 ) + + 9 col0
----
-50

query II rowsort
SELECT 30 * + 86 AS col1, + 29 * 87 - 31 AS col2
----
2580
2492

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT ALL 4 + - COUNT( * ) * - ( - - MAX( ALL + - 61 ) ) + CASE - 40 WHEN + + 79 THEN NULL WHEN 48 * + - COUNT( * ) THEN + ( - + NULLIF ( - 44, + - ( + 83 ) ) ) ELSE NULL END - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL 4 + - COUNT ( * ) * - ( - - MAX ( ALL + - 61 ) ) + CASE - 40 WHEN + + 79 THEN NULL WHEN 48 * + - COUNT ( * ) THEN + ( - + NULLIF ( - 44, + - ( + 83 ) ) ) ELSE NULL END - - 25
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-134
SELECT ALL MAX( ALL + + 71 ) + - - 51 DIV - 75 - MIN( + 17 ) + + 2 * - 93 - - ( + + ( - + 30 ) )
----
-162

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL MAX ( ALL + + 71 ) + - - 51 / - 75 - MIN ( + 17 ) + + 2 * - 93 - - ( + + ( - + 30 ) )
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT - COUNT( * ) * + - NULLIF ( - 4, 11 ) + 5
----
1

skipif mysql # not compatible
query I rowsort label-135
SELECT - COUNT ( * ) * + - NULLIF ( - 4, 11 ) + 5
----
1

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

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

query I rowsort
SELECT 20 + 65 + + 94 * - 13
----
-1137

query I rowsort
SELECT ALL 68 * - 73 AS col2
----
-4964

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

skipif mysql # not compatible
query I rowsort label-139
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 44 * - 80, - 87 AS col0
----
3520
-87

query I rowsort
SELECT 23 * COALESCE ( - 2, - 21 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT COUNT( * ) + + 22 + - 0 * - 12
----
23

skipif mysql # not compatible
query I rowsort label-142
SELECT COUNT ( * ) + + 22 + - 0 * - 12
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-143
SELECT ALL + + 39 DIV - 55 * - - 22
----
0

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL + + 39 / - 55 * - - 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT ( 0 ) * + MAX( - 76 ) + - - 20
----
20

skipif mysql # not compatible
query I rowsort label-144
SELECT ( 0 ) * + MAX ( - 76 ) + - - 20
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-145
SELECT DISTINCT + CAST( 28 AS SIGNED ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT + CAST ( 28 AS INTEGER ) AS col1
----
28

query I rowsort
SELECT DISTINCT + 16 * + - 5 + 0 - - - 90
----
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-147
SELECT - COUNT( * ) + 13 + - CAST( NULL AS SIGNED ) / + + 12 * + 37 * CAST( + COUNT( * ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT - COUNT ( * ) + 13 + - CAST ( NULL AS INTEGER ) / + + 12 * + 37 * CAST ( + COUNT ( * ) AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-148
SELECT 95 DIV 65 * - 7 + - + SUM( ALL - + 20 )
----
13

skipif mysql # not compatible
query I rowsort label-148
SELECT 95 / 65 * - 7 + - + SUM ( ALL - + 20 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-149
SELECT 25 * - 17 DIV + COUNT( * ) AS col1
----
-425

skipif mysql # not compatible
query I rowsort label-149
SELECT 25 * - 17 / + COUNT ( * ) AS col1
----
-425

query I rowsort
SELECT DISTINCT + 66 * + 43 * 77 + 62 * - ( + 58 ) AS col0
----
214930

query I rowsort
SELECT - 60 * 55 AS col2
----
-3300

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-152
SELECT - NULLIF ( + + 87, + 81 / - - COUNT( * ) * ( - + NULLIF ( + 52, 6 + CAST( NULL AS DECIMAL ) + - 97 ) ) * COUNT( * ) * - 88 ) AS col0, ( 68 ) - - + 51 * + NULLIF ( - 35, - 85 / COUNT( * ) ) * - - ( COUNT( * ) ) AS col2
----
-87
-1717

skipif mysql # not compatible
query II rowsort label-152
SELECT - NULLIF ( + + 87, + 81 / - - COUNT ( * ) * ( - + NULLIF ( + 52, 6 + CAST ( NULL AS REAL ) + - 97 ) ) * COUNT ( * ) * - 88 ) AS col0, ( 68 ) - - + 51 * + NULLIF ( - 35, - 85 / COUNT ( * ) ) * - - ( COUNT ( * ) ) AS col2
----
-87
-1717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-153
SELECT 5 + - 46 + + - AVG ( - + 78 ) + + SUM( ALL - - CAST( NULL AS SIGNED ) ) * + NULLIF ( 13, + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-153
SELECT 5 + - 46 + + - AVG ( - + 78 ) + + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) * + NULLIF ( 13, + 40 )
----
NULL

query I rowsort
SELECT + 52 - 3 + 74 * + NULLIF ( - 47, + + 77 ) AS col1
----
-3429

query I rowsort
SELECT ALL + 96 * 27 + 18
----
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT MIN( ALL - 41 ) + - 28
----
-69

skipif mysql # not compatible
query I rowsort label-156
SELECT MIN ( ALL - 41 ) + - 28
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-157
SELECT COUNT( * ) AS col2, - 3 + + 90 AS col1
----
1
87

skipif mysql # not compatible
query II rowsort label-157
SELECT COUNT ( * ) AS col2, - 3 + + 90 AS col1
----
1
87

query I rowsort
SELECT ALL 62 * - ( 47 ) + - 70 * + 16 AS col2
----
-4034

query I rowsort
SELECT 76 * - 18 AS col2
----
-1368

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

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

query II rowsort
SELECT + 5 AS col2, + COALESCE ( + + 59, - 99 ) AS col1
----
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT 95 DIV + + 74 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-162
SELECT 95 / + + 74 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-163
SELECT - CASE COUNT( * ) WHEN - 95 * + COUNT( * ) * 23 + - 26 + + 58 - - 70 - - - 61 * - 62 - CAST( NULL AS SIGNED ) THEN - 24 - 20 END / + 74 + + NULLIF ( - 64, - - AVG ( ALL + 2 ) ) + 1 * - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT - CASE COUNT ( * ) WHEN - 95 * + COUNT ( * ) * 23 + - 26 + + 58 - - 70 - - - 61 * - 62 - CAST ( NULL AS INTEGER ) THEN - 24 - 20 END / + 74 + + NULLIF ( - 64, - - AVG ( ALL + 2 ) ) + 1 * - 54 AS col1
----
NULL

query I rowsort
SELECT 1 * + ( 59 ) * - + 71 AS col0
----
-4189

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT DISTINCT NULLIF ( 81, - - 90 * + 64 - - - 77 * + - 22 + + 12 * 8 + - 98 + + - 23 ) * + COUNT( * ) * + 78 * COUNT( * ) AS col0
----
6318

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT NULLIF ( 81, - - 90 * + 64 - - - 77 * + - 22 + + 12 * 8 + - 98 + + - 23 ) * + COUNT ( * ) * + 78 * COUNT ( * ) AS col0
----
6318

query I rowsort
SELECT DISTINCT - 62 * 53
----
-3286

query II rowsort
SELECT ALL - 75, + 82 col0
----
-75
82

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT - 73 * - - COUNT( * ) - + COUNT( DISTINCT + 28 )
----
-74

skipif mysql # not compatible
query I rowsort label-168
SELECT - 73 * - - COUNT ( * ) - + COUNT ( DISTINCT + 28 )
----
-74

query I rowsort
SELECT + NULLIF ( 21, + + 85 * + - 85 - + 26 ) + 0
----
21

query I rowsort
SELECT DISTINCT - 70 * - 16 * + 19 - - ( 35 )
----
21315

query I rowsort
SELECT DISTINCT 66 * - 42
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT + + NULLIF ( COALESCE ( - + COALESCE ( 35, 73 ), + + ( - 48 ) ), + - COUNT( * ) ) * + 13
----
-455

skipif mysql # not compatible
query I rowsort label-172
SELECT + + NULLIF ( COALESCE ( - + COALESCE ( 35, 73 ), + + ( - 48 ) ), + - COUNT ( * ) ) * + 13
----
-455

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

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

query I rowsort
SELECT + - 62 + + 10 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT - 37 + - + MAX( DISTINCT - + 37 ) * + 17 + 5 AS col2
----
597

skipif mysql # not compatible
query I rowsort label-175
SELECT - 37 + - + MAX ( DISTINCT - + 37 ) * + 17 + 5 AS col2
----
597

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-176
SELECT DISTINCT 1 AS col2, + CASE AVG ( ALL - 32 ) WHEN COUNT( * ) THEN NULL ELSE + - 25 END DIV 82 * 62 * - + ( + COUNT( * ) )
----
1
0

skipif mysql # not compatible
query II rowsort label-176
SELECT DISTINCT 1 AS col2, + CASE AVG ( ALL - 32 ) WHEN COUNT ( * ) THEN NULL ELSE + - 25 END / 82 * 62 * - + ( + COUNT ( * ) )
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT - 50 + - 74 + + MIN( DISTINCT 31 ) + + 16 * 68
----
995

skipif mysql # not compatible
query I rowsort label-177
SELECT - 50 + - 74 + + MIN ( DISTINCT 31 ) + + 16 * 68
----
995

query II rowsort
SELECT + 79 col0, + NULLIF ( 71, - + ( + + 61 ) )
----
79
71

query I rowsort
SELECT ALL - 85 + - - 69
----
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-180
SELECT DISTINCT 24, - 86 DIV 9 AS col2
----
24
-9

skipif mysql # not compatible
query II rowsort label-180
SELECT DISTINCT 24, - 86 / 9 AS col2
----
24
-9

query I rowsort
SELECT ALL + + 20 + 81 * + 19 + - 6
----
1553

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT DISTINCT 0 + - NULLIF ( - - COUNT( * ), 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT 0 + - NULLIF ( - - COUNT ( * ), 64 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-183
SELECT 81 AS col2, ( - 99 ) * 62 * 23 DIV 28
----
81
-5041

skipif mysql # not compatible
query II rowsort label-183
SELECT 81 AS col2, ( - 99 ) * 62 * 23 / 28
----
81
-5041

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-184
SELECT + CAST( NULL AS SIGNED ) - - - SUM( - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-184
SELECT + CAST ( NULL AS INTEGER ) - - - SUM ( - 5 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-186
SELECT + COUNT( * ) * - MAX( 53 ) * + + NULLIF ( 11, + 38 ), 79 + - - 44 + - - ( - NULLIF ( + COUNT( * ), 38 * - 86 ) ) col1
----
-583
122

skipif mysql # not compatible
query II rowsort label-186
SELECT + COUNT ( * ) * - MAX ( 53 ) * + + NULLIF ( 11, + 38 ), 79 + - - 44 + - - ( - NULLIF ( + COUNT ( * ), 38 * - 86 ) ) col1
----
-583
122

query I rowsort
SELECT ALL + 47 * 84
----
3948

query II rowsort
SELECT ALL + 60 AS col2, 2
----
60
2

query I rowsort
SELECT ( 20 ) AS col0
----
20

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-191
SELECT ALL + 85 AS col0, - 37 DIV 45 * + 38 * - CASE - + SUM( ALL - 57 ) WHEN - ( - 58 ) THEN NULL ELSE ( - COUNT( * ) ) END AS col1
----
85
0

skipif mysql # not compatible
query II rowsort label-191
SELECT ALL + 85 AS col0, - 37 / 45 * + 38 * - CASE - + SUM ( ALL - 57 ) WHEN - ( - 58 ) THEN NULL ELSE ( - COUNT ( * ) ) END AS col1
----
85
0

query I rowsort
SELECT - 63 - - 49
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT DISTINCT + MAX( + + 27 ) col2
----
27

skipif mysql # not compatible
query I rowsort label-193
SELECT DISTINCT + MAX ( + + 27 ) col2
----
27

query I rowsort
SELECT - 56 * 81 AS col2
----
-4536

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

query I rowsort
SELECT - 3 + + - 81
----
-84

query I rowsort
SELECT ALL + 85 * - 3 * + + 26 AS col1
----
-6630

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT 94 * - 15 + - 56 * + COALESCE ( 59, + MIN( DISTINCT 71 ) * - - COUNT( * ) ) * - + COUNT( * )
----
1894

skipif mysql # not compatible
query I rowsort label-198
SELECT 94 * - 15 + - 56 * + COALESCE ( 59, + MIN ( DISTINCT 71 ) * - - COUNT ( * ) ) * - + COUNT ( * )
----
1894

onlyif mysql # DIV for integer division: 
query I rowsort label-199
SELECT - - COALESCE ( 81, - 42 DIV - 65 ) + 25 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-199
SELECT - - COALESCE ( 81, - 42 / - 65 ) + 25 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT - + 52 + + + 75 + - 90 * MIN( ALL + 13 )
----
-1147

skipif mysql # not compatible
query I rowsort label-200
SELECT - + 52 + + + 75 + - 90 * MIN ( ALL + 13 )
----
-1147

query II rowsort
SELECT ALL + 19, NULLIF ( + 82, + 97 ) AS col1
----
19
82

onlyif mysql # aggregate syntax: 
query II rowsort label-202
SELECT + 12 AS col1, - 69 + 75 + - COUNT( * ) + - COUNT( * ) * + 31 * - COUNT( * ) * + 88
----
12
2733

skipif mysql # not compatible
query II rowsort label-202
SELECT + 12 AS col1, - 69 + 75 + - COUNT ( * ) + - COUNT ( * ) * + 31 * - COUNT ( * ) * + 88
----
12
2733

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT - CAST( NULL AS SIGNED ) + - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-203
SELECT - CAST ( NULL AS INTEGER ) + - 18 AS col1
----
NULL

query I rowsort
SELECT - 51 + + 5 * 25 * - 79
----
-9926

query I rowsort
SELECT + 25 + - 39
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT - COUNT( ALL 6 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-206
SELECT - COUNT ( ALL 6 ) col1
----
-1

query II rowsort
SELECT - 96, + 94 AS col2
----
-96
94

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

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

query I rowsort
SELECT ALL + 14 + - - 96 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT + + ( + 46 ) + - - 34 * - + MIN( - 91 )
----
3140

skipif mysql # not compatible
query I rowsort label-210
SELECT + + ( + 46 ) + - - 34 * - + MIN ( - 91 )
----
3140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-211
SELECT ALL - ( CASE WHEN + CAST( 98 AS SIGNED ) BETWEEN + CAST( NULL AS SIGNED ) * + ( 57 ) + + CAST( - SUM( + 89 ) AS DECIMAL ) AND NULL THEN CASE COALESCE ( ( 71 ), + - COALESCE ( 11, + - CAST( NULL AS SIGNED ), CASE 16 WHEN 70 THEN + 72 ELSE - 48 * + 52 END + 89 ) ) WHEN + + 23 THEN - + 30 END ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL - ( CASE WHEN + CAST ( 98 AS INTEGER ) BETWEEN + CAST ( NULL AS INTEGER ) * + ( 57 ) + + CAST ( - SUM ( + 89 ) AS REAL ) AND NULL THEN CASE COALESCE ( ( 71 ), + - COALESCE ( 11, + - CAST ( NULL AS INTEGER ), CASE 16 WHEN 70 THEN + 72 ELSE - 48 * + 52 END + 89 ) ) WHEN + + 23 THEN - + 30 END ELSE NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-212
SELECT + + 59 * + - 78 - - - 12 * + 89 + - 99 * ( CAST( + + 15 AS SIGNED ) ) AS col2
----
-7155

skipif mysql # not compatible
query I rowsort label-212
SELECT + + 59 * + - 78 - - - 12 * + 89 + - 99 * ( CAST ( + + 15 AS INTEGER ) ) AS col2
----
-7155

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

skipif mysql # not compatible
query I rowsort label-213
SELECT - COALESCE ( 61, - CAST ( NULL AS INTEGER ) ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT + COUNT( * ) + COUNT( * ) + + - 23 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-214
SELECT + COUNT ( * ) + COUNT ( * ) + + - 23 AS col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-215
SELECT + 47 - - + 80 AS col1, - 65 + + ( + 80 ) - + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * + 98 AS col0
----
127
NULL

skipif mysql # not compatible
query II rowsort label-215
SELECT + 47 - - + 80 AS col1, - 65 + + ( + 80 ) - + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * + 98 AS col0
----
127
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-216
SELECT + CAST( NULL AS SIGNED ) + - + COUNT( * ) * - 8 * - - 64 + + COUNT( DISTINCT + 16 ) * - 8 * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-216
SELECT + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * - 8 * - - 64 + + COUNT ( DISTINCT + 16 ) * - 8 * + 23
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-217
SELECT DISTINCT SUM( + + 92 ) AS col1, SUM( + 2 )
----
92
2

skipif mysql # not compatible
query II rowsort label-217
SELECT DISTINCT SUM ( + + 92 ) AS col1, SUM ( + 2 )
----
92
2

query II rowsort
SELECT 52 * - 19 + + + 29 + 86 * - 90, - 17 AS col0
----
-8699
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-219
SELECT - CASE + 54 WHEN 77 / 25 THEN - - CAST( + 48 AS DECIMAL ) * + - 41 END / + COUNT( * ) + - 54 + + 71 - + 98 + + 36 * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-219
SELECT - CASE + 54 WHEN 77 / 25 THEN - - CAST ( + 48 AS REAL ) * + - 41 END / + COUNT ( * ) + - 54 + + 71 - + 98 + + 36 * 49
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-220
SELECT ALL + SUM( - 34 ), 38 * 52 AS col2
----
-34
1976

skipif mysql # not compatible
query II rowsort label-220
SELECT ALL + SUM ( - 34 ), 38 * 52 AS col2
----
-34
1976

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

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

query II rowsort
SELECT - 39 + 90, - 57 AS col1
----
51
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-223
SELECT ALL 45 DIV - 12
----
-3

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL 45 / - 12
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT DISTINCT 80 - 1 * + - 82 * + + COUNT( * ) AS col2
----
162

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT 80 - 1 * + - 82 * + + COUNT ( * ) AS col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL + COUNT( * ) * - CASE - 49 WHEN 29 + - COUNT( * ) + 87 THEN - - 21 * + - 34 WHEN - COUNT( * ) * 63 THEN NULL END / + 90 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL + COUNT ( * ) * - CASE - 49 WHEN 29 + - COUNT ( * ) + 87 THEN - - 21 * + - 34 WHEN - COUNT ( * ) * 63 THEN NULL END / + 90 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-226
SELECT 90 * 55 + 83 - + 30 DIV - 51 + + 31
----
5064

skipif mysql # not compatible
query I rowsort label-226
SELECT 90 * 55 + 83 - + 30 / - 51 + + 31
----
5064

query I rowsort
SELECT 36 * + 85 col0
----
3060

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

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

query I rowsort
SELECT DISTINCT - 92 * - 46
----
4232

query I rowsort
SELECT + NULLIF ( - + 97, + 37 ) * + + 18 * - 96 + - - 28 + - - ( + 23 ) - + 82 AS col0
----
167585

query I rowsort
SELECT + 45 * + - 28 * + 67 + + 68 - + - 97 + - 14 AS col2
----
-84269

onlyif mysql # aggregate syntax: 
query II rowsort label-232
SELECT - MAX( ALL + 73 ), + COUNT( DISTINCT + 71 ) * - COUNT( * ) + - 24 AS col0
----
-73
-25

skipif mysql # not compatible
query II rowsort label-232
SELECT - MAX ( ALL + 73 ), + COUNT ( DISTINCT + 71 ) * - COUNT ( * ) + - 24 AS col0
----
-73
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT ( - 49 ) * COUNT( * ) - 77
----
-126

skipif mysql # not compatible
query I rowsort label-233
SELECT ( - 49 ) * COUNT ( * ) - 77
----
-126

query I rowsort
SELECT DISTINCT - 77 + + COALESCE ( - 26, 95, 56 )
----
-103

query I rowsort
SELECT DISTINCT + - 15 + - 35
----
-50

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

query II rowsort
SELECT ALL + 85 + 24, - 98 + 61 + + - 58 AS col2
----
109
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT ALL - CASE - 22 WHEN 61 THEN NULL WHEN - - COUNT( * ) THEN 38 - - 3 ELSE NULL END + - MAX( - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL - CASE - 22 WHEN 61 THEN NULL WHEN - - COUNT ( * ) THEN 38 - - 3 ELSE NULL END + - MAX ( - 78 )
----
NULL

query II rowsort
SELECT ALL + + 73 + 38 col1, 90 * + 84 + - - 94 + - 5
----
111
7649

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

skipif mysql # not compatible
query I rowsort label-240
SELECT - 56 + 44 + + 97 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT 18 * + SUM( ALL + 54 )
----
972

skipif mysql # not compatible
query I rowsort label-241
SELECT 18 * + SUM ( ALL + 54 )
----
972

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-243
SELECT ( - + 54 ) - + - 89, + SUM( ALL - 94 ) / - + CASE + 71 WHEN 34 + 22 * + + COALESCE ( - NULLIF ( - 7, - COUNT( * ) * NULLIF ( - 21, 20 / - - 10 ) ), 98, + + 86, - 93 ) * 89 * - 92 THEN NULL WHEN 79 THEN NULL WHEN 32 - - 31 + + + 2 * - 70 THEN + ( - 1 ) ELSE NULL END + 31 - + - 84 / + 34 + + 74 AS col1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-243
SELECT ( - + 54 ) - + - 89, + SUM ( ALL - 94 ) / - + CASE + 71 WHEN 34 + 22 * + + COALESCE ( - NULLIF ( - 7, - COUNT ( * ) * NULLIF ( - 21, 20 / - - 10 ) ), 98, + + 86, - 93 ) * 89 * - 92 THEN NULL WHEN 79 THEN NULL WHEN 32 - - 31 + + + 2 * - 70 THEN + ( - 1 ) ELSE NULL END + 31 - + - 84 / + 34 + + 74 AS col1
----
35
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-244
SELECT - 91 col2, 19 + - 96 * - - 92 * COUNT( * ) AS col2
----
-91
-8813

skipif mysql # not compatible
query II rowsort label-244
SELECT - 91 col2, 19 + - 96 * - - 92 * COUNT ( * ) AS col2
----
-91
-8813

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

skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT ( - 80 ) * + 16 + CASE 86 WHEN 10 - + ( + 70 ) THEN NULL WHEN - COUNT( * ) * + 80 * + + COUNT( * ) THEN + + 4 WHEN 7 THEN + - COUNT( * ) * + 62 * - COUNT( * ) / + 4 * - - 68 END * - 14 + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-246
SELECT ( - 80 ) * + 16 + CASE 86 WHEN 10 - + ( + 70 ) THEN NULL WHEN - COUNT ( * ) * + 80 * + + COUNT ( * ) THEN + + 4 WHEN 7 THEN + - COUNT ( * ) * + 62 * - COUNT ( * ) / + 4 * - - 68 END * - 14 + 78
----
NULL

query II rowsort
SELECT ALL 56 AS col0, - 83 * + 20
----
56
-1660

query I rowsort
SELECT 1 - + 40
----
-39

query I rowsort
SELECT 4 * - 71 AS col1
----
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT 40 * SUM( 71 ) AS col1
----
2840

skipif mysql # not compatible
query I rowsort label-250
SELECT 40 * SUM ( 71 ) AS col1
----
2840

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT 11 + + - 65 + - ( 15 ) + ( - - COUNT( * ) ) - - 74
----
6

skipif mysql # not compatible
query I rowsort label-251
SELECT 11 + + - 65 + - ( 15 ) + ( - - COUNT ( * ) ) - - 74
----
6

query I rowsort
SELECT ALL 39 * + - 86 AS col1
----
-3354

query II rowsort
SELECT 62 AS col2, - 98
----
62
-98

query I rowsort
SELECT 30 * - + 70 col2
----
-2100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-255
SELECT DISTINCT CAST( + 79 AS SIGNED ) + 57, 64 AS col2
----
136
64

skipif mysql # not compatible
query II rowsort label-255
SELECT DISTINCT CAST ( + 79 AS INTEGER ) + 57, 64 AS col2
----
136
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-256
SELECT - 93 / 34 + CAST( NULL AS DECIMAL ) - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-256
SELECT - 93 / 34 + CAST ( NULL AS REAL ) - 5 AS col0
----
NULL

query I rowsort
SELECT - CASE + 52 WHEN 45 THEN - 15 ELSE NULL END / 82
----
NULL

query I rowsort
SELECT + 11 + - 41
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-259
SELECT + COUNT( * ) AS col2, - 3 + - + ( - - 70 ) / COALESCE ( + COUNT( * ), + - 11 * 97 ) + - + CASE + CASE COUNT( * ) WHEN - + 38 * + - 26 THEN - + 14 * ( + 56 ) ELSE NULL END WHEN - CAST( + 44 AS SIGNED ) + - - 28 + + - 51 * - 9 THEN ( - 73 ) + 14 END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-259
SELECT + COUNT ( * ) AS col2, - 3 + - + ( - - 70 ) / COALESCE ( + COUNT ( * ), + - 11 * 97 ) + - + CASE + CASE COUNT ( * ) WHEN - + 38 * + - 26 THEN - + 14 * ( + 56 ) ELSE NULL END WHEN - CAST ( + 44 AS INTEGER ) + - - 28 + + - 51 * - 9 THEN ( - 73 ) + 14 END AS col2
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-260
SELECT + COUNT( * ) DIV 84 * - - 89 + - 45
----
-45

skipif mysql # not compatible
query I rowsort label-260
SELECT + COUNT ( * ) / 84 * - - 89 + - 45
----
-45

query I rowsort
SELECT + - 12 * - + 20 + + 35 + 12 - 21 * - - 64 * + - 50
----
67487

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT + SUM( - 78 ) - + - 68 + + COALESCE ( + COALESCE ( + - 32, - - 58 + - 46 + 98, 3 ), 90 ) + 89 + + 13 + - 62 * 29 AS col1
----
-1738

skipif mysql # not compatible
query I rowsort label-262
SELECT + SUM ( - 78 ) - + - 68 + + COALESCE ( + COALESCE ( + - 32, - - 58 + - 46 + 98, 3 ), 90 ) + 89 + + 13 + - 62 * 29 AS col1
----
-1738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-263
SELECT + 30 * + 7 * + 79 + - 35 + 17 * - 1 * COUNT( * ) * CASE 84 WHEN - 46 / - 9 * - 66 + - + 4 THEN + CASE 50 WHEN - MAX( - - CAST( + 82 AS SIGNED ) ) + - 13 THEN + + 90 WHEN - + 0 THEN 42 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT + 30 * + 7 * + 79 + - 35 + 17 * - 1 * COUNT ( * ) * CASE 84 WHEN - 46 / - 9 * - 66 + - + 4 THEN + CASE 50 WHEN - MAX ( - - CAST ( + 82 AS INTEGER ) ) + - 13 THEN + + 90 WHEN - + 0 THEN 42 END END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-265
SELECT ALL - 15, - 34 DIV 39 AS col0
----
-15
0

skipif mysql # not compatible
query II rowsort label-265
SELECT ALL - 15, - 34 / 39 AS col0
----
-15
0

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

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

query I rowsort
SELECT + + 48 col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT DISTINCT - COUNT( ALL + 74 ) + + + 34 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT - COUNT ( ALL + 74 ) + + + 34 AS col1
----
33

query I rowsort
SELECT - 87 + 4
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-270
SELECT ALL - MAX( DISTINCT - - 49 ) + - CAST( NULL AS SIGNED ) - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL - MAX ( DISTINCT - - 49 ) + - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-271
SELECT - 0 * 49 + 44, MIN( DISTINCT + 93 ) * + 81 AS col0
----
44
7533

skipif mysql # not compatible
query II rowsort label-271
SELECT - 0 * 49 + 44, MIN ( DISTINCT + 93 ) * + 81 AS col0
----
44
7533

onlyif mysql # aggregate syntax: 
query II rowsort label-272
SELECT - ( + ( + 51 ) ) AS col2, + COUNT( * ) - + 40 + + + 38 * SUM( + 90 ) AS col2
----
-51
3381

skipif mysql # not compatible
query II rowsort label-272
SELECT - ( + ( + 51 ) ) AS col2, + COUNT ( * ) - + 40 + + + 38 * SUM ( + 90 ) AS col2
----
-51
3381

query I rowsort
SELECT 74 + - 30
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-274
SELECT + 54 DIV + + 42 + + MIN( ALL + 72 ) - + COUNT( * ) * - 87 + + 65 + - + 46 - 32 * + 84 + + - 76 * + - 58 AS col0
----
1899

skipif mysql # not compatible
query I rowsort label-274
SELECT + 54 / + + 42 + + MIN ( ALL + 72 ) - + COUNT ( * ) * - 87 + + 65 + - + 46 - 32 * + 84 + + - 76 * + - 58 AS col0
----
1899

query I rowsort
SELECT 33 + 77 AS col2
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-276
SELECT ALL + COALESCE ( - + ( - + 93 ), + - 44 * 58 * - 25 * + 44 * - COUNT( * ) DIV + + MAX( - 71 ) * - 67 ) - 79 AS col2, + COUNT( * )
----
14
1

skipif mysql # not compatible
query II rowsort label-276
SELECT ALL + COALESCE ( - + ( - + 93 ), + - 44 * 58 * - 25 * + 44 * - COUNT ( * ) / + + MAX ( - 71 ) * - 67 ) - 79 AS col2, + COUNT ( * )
----
14
1

onlyif mysql # DIV for integer division: 
query I rowsort label-277
SELECT 11 + + - 94 DIV + - 56 + - 77 + 59 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-277
SELECT 11 + + - 94 / + - 56 + - 77 + 59 AS col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-278
SELECT 14 DIV - COALESCE ( + - 17, - 84 * 71 * - 60, + + 6 )
----
0

skipif mysql # not compatible
query I rowsort label-278
SELECT 14 / - COALESCE ( + - 17, - 84 * 71 * - 60, + + 6 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL - MIN( DISTINCT - - 15 ) * 82 AS col2
----
-1230

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL - MIN ( DISTINCT - - 15 ) * 82 AS col2
----
-1230

query I rowsort
SELECT - 40 + 71
----
31

query I rowsort
SELECT - 16 * + - 56 col2
----
896

query I rowsort
SELECT - 28 + + 63 AS col2
----
35

query I rowsort
SELECT + 92 * + 9
----
828

query II rowsort
SELECT ALL COALESCE ( + 58, - 95 + + 38 ) col1, - 29 col1
----
58
-29

query I rowsort
SELECT - 4 + + + 38 + + 50 * + 36
----
1834

query I rowsort
SELECT + 10 + - 7 + - 97 - + 55
----
-149

query I rowsort
SELECT - 98 + 77 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL COALESCE ( - 27, 70, + COUNT( * ) + + 31 + - 28 )
----
-27

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL COALESCE ( - 27, 70, + COUNT ( * ) + + 31 + - 28 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT COUNT( * ) * 54 + 38
----
92

skipif mysql # not compatible
query I rowsort label-289
SELECT COUNT ( * ) * 54 + 38
----
92

query I rowsort
SELECT DISTINCT 85 * + 89
----
7565

query I rowsort
SELECT ALL NULLIF ( 56, + 5 * + 64 * 72 + - 45 ) * 23 * - 5 * + 97 + + 65 - ( 27 ) AS col2
----
-624642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-292
SELECT + COUNT( * ) DIV - 75 + + 34 + - + ( - 92 ) * SUM( DISTINCT 97 )
----
8958

skipif mysql # not compatible
query I rowsort label-292
SELECT + COUNT ( * ) / - 75 + + 34 + - + ( - 92 ) * SUM ( DISTINCT 97 )
----
8958

query I rowsort
SELECT - 20 * + 94
----
-1880

query I rowsort
SELECT + 26 + + 28 AS col2
----
54

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

skipif mysql # not compatible
query I rowsort label-295
SELECT + + COUNT ( * ) * 61 + - + 72 AS col2
----
-11

query II rowsort
SELECT + - 4 * + 86 AS col1, 31 col0
----
-344
31

query I rowsort
SELECT 99 * - + 44 + - 45
----
-4401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-298
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + + 20 * + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-298
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + + 20 * + 60 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL + ( - COUNT ( * ) ) / + 72 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL + COUNT ( DISTINCT + 80 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT + + SUM( - NULLIF ( 18, - 58 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-301
SELECT + + SUM ( - NULLIF ( 18, - 58 ) )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT + + 77 * - 64 + - + 61 + + - COUNT( * ) AS col0
----
-4990

skipif mysql # not compatible
query I rowsort label-302
SELECT + + 77 * - 64 + - + 61 + + - COUNT ( * ) AS col0
----
-4990

query I rowsort
SELECT + + 72 * + 21 * 94 AS col1
----
142128

query I rowsort
SELECT + + 28 - + - ( - 97 ) col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-305
SELECT - + 22 DIV - COUNT( * ) + COUNT( * )
----
23

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

query I rowsort
SELECT + 47 * - 35 + - - 31 AS col0
----
-1614

query I rowsort
SELECT ALL 17 * 30 - - 87 AS col2
----
597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-308
SELECT ALL - CAST( NULL AS SIGNED ) - - 1 + - 14 + - NULLIF ( - 17, - + 97 + - - 36 ) - - - 24 / + + 16 * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL - CAST ( NULL AS INTEGER ) - - 1 + - 14 + - NULLIF ( - 17, - + 97 + - - 36 ) - - - 24 / + + 16 * - 16
----
NULL

query I rowsort
SELECT + 61 * 82 + + 53 AS col2
----
5055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-310
SELECT ALL NULLIF ( 11, + 39 + - + 31 ) * + 44 * - - 40 * COUNT( * ) - - - 0 * - CAST( COUNT( * ) AS SIGNED ) - + COUNT( * ) AS col0
----
19359

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL NULLIF ( 11, + 39 + - + 31 ) * + 44 * - - 40 * COUNT ( * ) - - - 0 * - CAST ( COUNT ( * ) AS INTEGER ) - + COUNT ( * ) AS col0
----
19359

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-311
SELECT + 88 + - CASE 61 WHEN 50 / + ( 15 ) + 65 + + ( + + 66 ) THEN + 74 WHEN - COALESCE ( 55, - 83 ) THEN 21 - - 29 / + + 10 * + 62 END + - - 83 * - 97 - - - CAST( + - 36 AS SIGNED ) + - ( + - 90 ) + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-311
SELECT + 88 + - CASE 61 WHEN 50 / + ( 15 ) + 65 + + ( + + 66 ) THEN + 74 WHEN - COALESCE ( 55, - 83 ) THEN 21 - - 29 / + + 10 * + 62 END + - - 83 * - 97 - - - CAST ( + - 36 AS INTEGER ) + - ( + - 90 ) + 6 AS col1
----
NULL

query I rowsort
SELECT + 46 - + 38 + + 83 col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-313
SELECT - 23 - - - CAST( - - 98 AS SIGNED ) - - COUNT( * ) + - - 38 * 84 + + 34 + CAST( - - 41 AS SIGNED ) * - + COALESCE ( + 75, - 53, + - 43 ) * + + 97 * 73
----
-21770969

skipif mysql # not compatible
query I rowsort label-313
SELECT - 23 - - - CAST ( - - 98 AS INTEGER ) - - COUNT ( * ) + - - 38 * 84 + + 34 + CAST ( - - 41 AS INTEGER ) * - + COALESCE ( + 75, - 53, + - 43 ) * + + 97 * 73
----
-21770969

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT - 40 * - COALESCE ( 15, 84 + - - 59 + + - 18 + - + MIN( DISTINCT - 5 ) * + - 61 - - COALESCE ( - + 37, - 56, - 95 * - + 85 * + 46 ) + - 29 * 26 ) * - COUNT( * ) + - 79 + 35
----
-644

skipif mysql # not compatible
query I rowsort label-315
SELECT - 40 * - COALESCE ( 15, 84 + - - 59 + + - 18 + - + MIN ( DISTINCT - 5 ) * + - 61 - - COALESCE ( - + 37, - 56, - 95 * - + 85 * + 46 ) + - 29 * 26 ) * - COUNT ( * ) + - 79 + 35
----
-644

query I rowsort
SELECT - 34 + - + 23
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-317
SELECT - 93 DIV 6 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-317
SELECT - 93 / 6 AS col0
----
-15

query I rowsort
SELECT + 4 * 85
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT - COUNT( * ) + + 19 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-319
SELECT - COUNT ( * ) + + 19 AS col2
----
18

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

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

query I rowsort
SELECT DISTINCT ( 27 ) AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-323
SELECT ALL - 68 + - - CASE - - 90 WHEN + 10 * - + 88 THEN - ( - 41 ) * - 1 * - 45 + - 7 WHEN + - 94 THEN 35 END + + 5 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL - 68 + - - CASE - - 90 WHEN + 10 * - + 88 THEN - ( - 41 ) * - 1 * - 45 + - 7 WHEN + - 94 THEN 35 END + + 5 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 13 + - - 55 AS col1
----
68

query I rowsort
SELECT ALL + 40 * - 63
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT - 38 - - - 69 + + MIN( ALL + 51 )
----
-56

skipif mysql # not compatible
query I rowsort label-326
SELECT - 38 - - - 69 + + MIN ( ALL + 51 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT - SUM( - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-327
SELECT - SUM ( - 88 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-328
SELECT ALL 96 DIV - 84 + 19
----
18

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL 96 / - 84 + 19
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-329
SELECT + COUNT( * ) * - 94 + + 21 * + 10 - - CAST( + 96 AS SIGNED ) col2, + 92 DIV + 40 AS col0
----
212
2

skipif mysql # not compatible
query II rowsort label-329
SELECT + COUNT ( * ) * - 94 + + 21 * + 10 - - CAST ( + 96 AS INTEGER ) col2, + 92 / + 40 AS col0
----
212
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-330
SELECT + ( + SUM( DISTINCT 2 ) ) DIV - + 63 * COUNT( * ) + 25 - + COUNT( * ) * - 5 col1
----
30

skipif mysql # not compatible
query I rowsort label-330
SELECT + ( + SUM ( DISTINCT 2 ) ) / - + 63 * COUNT ( * ) + 25 - + COUNT ( * ) * - 5 col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-331
SELECT ALL 21 DIV - + 2 + - COUNT( * ) * - 37
----
27

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL 21 / - + 2 + - COUNT ( * ) * - 37
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-332
SELECT - - 17 * + COUNT( ALL + - COALESCE ( + 48, - 98 / + CAST( - 90 AS SIGNED ) ) ) * - 22 * - 29 AS col1
----
10846

skipif mysql # not compatible
query I rowsort label-332
SELECT - - 17 * + COUNT ( ALL + - COALESCE ( + 48, - 98 / + CAST ( - 90 AS INTEGER ) ) ) * - 22 * - 29 AS col1
----
10846

query II rowsort
SELECT DISTINCT + 6 AS col2, 43
----
6
43

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-335
SELECT DISTINCT + 96 DIV + + 19 + - - ( 42 ) * + 51 + + COUNT( + 99 ) AS col1
----
2148

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT + 96 / + + 19 + - - ( 42 ) * + 51 + + COUNT ( + 99 ) AS col1
----
2148

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT ALL - MIN( ALL + 59 ) * 40
----
-2360

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL - MIN ( ALL + 59 ) * 40
----
-2360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-337
SELECT - + CAST( - + 22 AS SIGNED ) * + 47
----
1034

skipif mysql # not compatible
query I rowsort label-337
SELECT - + CAST ( - + 22 AS INTEGER ) * + 47
----
1034

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT 17 * - ( + 35 ) * COUNT( * ) * ( 33 ) + + + COUNT( * ) * + 67 * 33
----
-17424

skipif mysql # not compatible
query I rowsort label-338
SELECT 17 * - ( + 35 ) * COUNT ( * ) * ( 33 ) + + + COUNT ( * ) * + 67 * 33
----
-17424

query I rowsort
SELECT - 95 + + + 98 col2
----
3

query I rowsort
SELECT - ( 5 ) + 62 AS col1
----
57

query I rowsort
SELECT + 78 * - 56 AS col1
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT + MIN( ALL 33 ) - 48
----
-15

skipif mysql # not compatible
query I rowsort label-342
SELECT + MIN ( ALL 33 ) - 48
----
-15

query II rowsort
SELECT ALL + 14 AS col1, - 23 * - 74 AS col2
----
14
1702

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT + + MAX( - + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-344
SELECT + + MAX ( - + 0 ) AS col0
----
0

query I rowsort
SELECT ALL + - 75 * + 83 AS col1
----
-6225

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-347
SELECT DISTINCT + - NULLIF ( - 20, + COUNT( * ) / - SUM( - + 56 ) ) AS col0, CASE - 32 WHEN - 18 THEN + CAST( NULL AS SIGNED ) + - - MIN( 91 ) + + - 69 END * + ( 58 ) AS col1
----
20
NULL

skipif mysql # not compatible
query II rowsort label-347
SELECT DISTINCT + - NULLIF ( - 20, + COUNT ( * ) / - SUM ( - + 56 ) ) AS col0, CASE - 32 WHEN - 18 THEN + CAST ( NULL AS INTEGER ) + - - MIN ( 91 ) + + - 69 END * + ( 58 ) AS col1
----
20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT CASE + + MIN( DISTINCT + + 73 ) WHEN + 68 THEN NULL ELSE 91 END
----
91

skipif mysql # not compatible
query I rowsort label-348
SELECT CASE + + MIN ( DISTINCT + + 73 ) WHEN + 68 THEN NULL ELSE 91 END
----
91

query I rowsort
SELECT ( + + 56 ) + 58
----
114

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

skipif mysql # not compatible
query I rowsort label-350
SELECT ( COUNT ( * ) ) * - 77
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-351
SELECT COUNT( * ) * - 28 AS col0, - 90 AS col0
----
-28
-90

skipif mysql # not compatible
query II rowsort label-351
SELECT COUNT ( * ) * - 28 AS col0, - 90 AS col0
----
-28
-90

query I rowsort
SELECT 62 * + 97 + 1 + - ( - 66 )
----
6081

query II rowsort
SELECT - 97, - 49 * - 39 AS col0
----
-97
1911

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

query I rowsort
SELECT 56 * - ( + - 65 ) * 57 * + 87 col0
----
18050760

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT ALL CASE 92 WHEN - 12 THEN - 36 WHEN + 57 THEN COUNT( * ) + 59 + - 0 / + + COUNT( * ) ELSE NULL END * ( 42 ) + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL CASE 92 WHEN - 12 THEN - 36 WHEN + 57 THEN COUNT ( * ) + 59 + - 0 / + + COUNT ( * ) ELSE NULL END * ( 42 ) + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT COUNT( * ) * - + 5 col1
----
-5

skipif mysql # not compatible
query I rowsort label-357
SELECT COUNT ( * ) * - + 5 col1
----
-5

query I rowsort
SELECT DISTINCT 45 + - ( - 85 )
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT - 8, 49 - - COUNT( * ) col0
----
-8
50

skipif mysql # not compatible
query II rowsort label-359
SELECT - 8, 49 - - COUNT ( * ) col0
----
-8
50

onlyif mysql # DIV for integer division: 
query I rowsort label-360
SELECT ALL - 99 + + + 26 + - 8 DIV 24
----
-73

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL - 99 + + + 26 + - 8 / 24
----
-73

query I rowsort
SELECT DISTINCT 80 + + 15 + + 5 col0
----
100

query I rowsort
SELECT ALL COALESCE ( - - 41, + 5, - 67 ) * - 43 AS col2
----
-1763

query I rowsort
SELECT 65 + + 13
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT 36 + + MAX( 46 )
----
82

skipif mysql # not compatible
query I rowsort label-364
SELECT 36 + + MAX ( 46 )
----
82

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

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

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

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

query I rowsort
SELECT 81 + 88 - 16
----
153

query I rowsort
SELECT 90 + - - 40
----
130

query I rowsort
SELECT ALL - 64 + + 2 * - 54 + + - 84 - 16 * + + 12 * - + 67
----
12608

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-371
SELECT DISTINCT CAST( - ( 82 ) AS SIGNED ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT CAST ( - ( 82 ) AS INTEGER ) col0
----
-82

query I rowsort
SELECT DISTINCT 65 - + ( - ( 20 ) )
----
85

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

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

query I rowsort
SELECT 69 + + 97
----
166

query I rowsort
SELECT - 66 * + 2 + + + 69
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-376
SELECT 0 * 22 DIV + + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-376
SELECT 0 * 22 / + + 84 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT DISTINCT - - 77 * 40 + - ( - + 98 ) - + 67 * - ( + COUNT( * ) )
----
3245

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT - - 77 * 40 + - ( - + 98 ) - + 67 * - ( + COUNT ( * ) )
----
3245

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

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

query II rowsort
SELECT 41 AS col0, + 61 + 22 * - 69 + + + 29 + + 80 - - + 32
----
41
-1316

query I rowsort
SELECT 62 * + - 32 AS col1
----
-1984

query II rowsort
SELECT + 38, 17 AS col2
----
38
17

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT - ( + MAX( + - 90 ) ) * + 17 + COUNT( * ) + - + CASE + 88 WHEN - 27 THEN NULL WHEN 87 THEN - COALESCE ( + + 30, + 39, COALESCE ( - 27, - + 30 * - + 10 * + 31 ) * + 9 + - - 38 ) * - + 46 / - COUNT( ALL + 44 ) * - - 40 - + + CASE 89 WHEN + 33 THEN + + NULLIF ( + 17, 92 * + - ( 68 ) ) WHEN + 73 THEN 48 ELSE NULL END ELSE NULL END + 10 * - ( - + 66 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-382
SELECT - ( + MAX ( + - 90 ) ) * + 17 + COUNT ( * ) + - + CASE + 88 WHEN - 27 THEN NULL WHEN 87 THEN - COALESCE ( + + 30, + 39, COALESCE ( - 27, - + 30 * - + 10 * + 31 ) * + 9 + - - 38 ) * - + 46 / - COUNT ( ALL + 44 ) * - - 40 - + + CASE 89 WHEN + 33 THEN + + NULLIF ( + 17, 92 * + - ( 68 ) ) WHEN + 73 THEN 48 ELSE NULL END ELSE NULL END + 10 * - ( - + 66 ) AS col1
----
NULL

query I rowsort
SELECT + 16 * - - 28 * + + 25 * 34 + - 16 + + 97
----
380881

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT ALL - COUNT( DISTINCT + 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL - COUNT ( DISTINCT + 74 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-385
SELECT ALL - + CASE 31 WHEN - + 71 THEN - 9 WHEN 58 THEN NULL ELSE + 78 * ( + - 90 ) DIV - 89 END
----
-78

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL - + CASE 31 WHEN - + 71 THEN - 9 WHEN 58 THEN NULL ELSE + 78 * ( + - 90 ) / - 89 END
----
-78

query II rowsort
SELECT DISTINCT - 0 AS col0, 96
----
0
96

query II rowsort
SELECT ALL - 59 AS col0, + 74 + - 99 col1
----
-59
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-388
SELECT ALL - + 73, - ( - + COUNT( * ) ) AS col2
----
-73
1

skipif mysql # not compatible
query II rowsort label-388
SELECT ALL - + 73, - ( - + COUNT ( * ) ) AS col2
----
-73
1

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-391
SELECT ALL - COUNT( * ) + 19 AS col1, + 7 AS col1
----
18
7

skipif mysql # not compatible
query II rowsort label-391
SELECT ALL - COUNT ( * ) + 19 AS col1, + 7 AS col1
----
18
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-392
SELECT 4 - + ( + 57 ) + - + 4 - 25 - + + 68 + COALESCE ( + COUNT( * ), + 35 ) * 30 DIV - + 70 * 76 DIV - 53 * COUNT( * ) AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-392
SELECT 4 - + ( + 57 ) + - + 4 - 25 - + + 68 + COALESCE ( + COUNT ( * ), + 35 ) * 30 / - + 70 * 76 / - 53 * COUNT ( * ) AS col0
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-393
SELECT DISTINCT - 58 * CAST( + 66 AS SIGNED )
----
-3828

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT - 58 * CAST ( + 66 AS INTEGER )
----
-3828

query I rowsort
SELECT ALL 69 + + 31
----
100

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

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT + ( - COUNT ( * ) ) + + - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT + 95 * - 95 * + ( 28 ) - - COUNT( * ) AS col2
----
-252699

skipif mysql # not compatible
query I rowsort label-396
SELECT + 95 * - 95 * + ( 28 ) - - COUNT ( * ) AS col2
----
-252699

query I rowsort
SELECT 39 * + - 88 * - 33
----
113256

onlyif mysql # DIV for integer division: 
query I rowsort label-398
SELECT 81 DIV 46 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-398
SELECT 81 / 46 AS col2
----
1

query I rowsort
SELECT ( - 77 ) * - ( - + 85 ) + - 17 * ( + 57 ) AS col2
----
-7514

query I rowsort
SELECT DISTINCT 20 * - 77 AS col1
----
-1540

query I rowsort
SELECT DISTINCT 32 - + 46
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-402
SELECT DISTINCT CAST( + MIN( DISTINCT 28 ) AS SIGNED ) * NULLIF ( + + 2, + ( CASE + ( + 33 ) WHEN + + 52 DIV - + 90 THEN + + 44 END ) ) DIV + + 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT CAST ( + MIN ( DISTINCT 28 ) AS INTEGER ) * NULLIF ( + + 2, + ( CASE + ( + 33 ) WHEN + + 52 / - + 90 THEN + + 44 END ) ) / + + 41 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-403
SELECT DISTINCT + NULLIF ( - - NULLIF ( 5, CAST( NULL AS DECIMAL ) + + ( - COUNT( + + 99 ) ) ), - COUNT( * ) + + + 54 ) * 33 - + 49 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT + NULLIF ( - - NULLIF ( 5, CAST ( NULL AS REAL ) + + ( - COUNT ( + + 99 ) ) ), - COUNT ( * ) + + + 54 ) * 33 - + 49 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT COUNT( * ) * 5 * 15 + + 45
----
120

skipif mysql # not compatible
query I rowsort label-404
SELECT COUNT ( * ) * 5 * 15 + + 45
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-405
SELECT ( + - COUNT( * ) ) AS col1, + COUNT( * ) + + + 72 AS col2
----
-1
73

skipif mysql # not compatible
query II rowsort label-405
SELECT ( + - COUNT ( * ) ) AS col1, + COUNT ( * ) + + + 72 AS col2
----
-1
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-406
SELECT + ( 25 ) * + 12 + - CAST( + MAX( ALL - 33 ) AS SIGNED )
----
333

skipif mysql # not compatible
query I rowsort label-406
SELECT + ( 25 ) * + 12 + - CAST ( + MAX ( ALL - 33 ) AS INTEGER )
----
333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-407
SELECT ( + + CAST( NULL AS SIGNED ) ) / + + COALESCE ( + 57, COUNT( * ) ) + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-407
SELECT ( + + CAST ( NULL AS INTEGER ) ) / + + COALESCE ( + 57, COUNT ( * ) ) + + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT 94 * + MIN( ALL + 56 ) + ( - ( COALESCE ( - 10, - + 67 - + 91 ) ) )
----
5274

skipif mysql # not compatible
query I rowsort label-408
SELECT 94 * + MIN ( ALL + 56 ) + ( - ( COALESCE ( - 10, - + 67 - + 91 ) ) )
----
5274

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

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT ALL - - MAX( - + COALESCE ( 95, - 13 + + 78 ) ) * + 26
----
-2470

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL - - MAX ( - + COALESCE ( 95, - 13 + + 78 ) ) * + 26
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL - 8 * + - 23 + - COUNT( * ) * + 96 + + 45 * - 23 + + + 94 AS col0
----
-853

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL - 8 * + - 23 + - COUNT ( * ) * + 96 + + 45 * - 23 + + + 94 AS col0
----
-853

query II rowsort
SELECT + - ( + ( - + 10 ) ) + + + 4 - 79 * + - 90 * - + 51 + - 22, + 0 AS col2
----
-362618
0

query I rowsort
SELECT + 88 + - + 45
----
43

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-415
SELECT - 5 * + SUM( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-415
SELECT - 5 * + SUM ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-416
SELECT 80 * - CASE - 52 WHEN 55 * 71 * 67 THEN - 94 END + - COALESCE ( 62, + CAST( NULL AS SIGNED ) * + COALESCE ( + - 27, + COUNT( * ) * NULLIF ( 1, - + 10 ) * - + 42 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-416
SELECT 80 * - CASE - 52 WHEN 55 * 71 * 67 THEN - 94 END + - COALESCE ( 62, + CAST ( NULL AS INTEGER ) * + COALESCE ( + - 27, + COUNT ( * ) * NULLIF ( 1, - + 10 ) * - + 42 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT ALL + COUNT( * ) * - ( + 34 ) + + + 58 col0
----
24

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL + COUNT ( * ) * - ( + 34 ) + + + 58 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT ALL + CASE 24 WHEN - + 24 + CASE + - 7 WHEN + + 36 THEN COUNT( * ) WHEN 75 - + + 12 THEN + 45 + - + ( + NULLIF ( + - 78, + 56 * - 63 ) ) ELSE COUNT( * ) * + 1 END THEN + + 16 WHEN + MAX( + 15 ) + + MIN( - 55 ) * + 74 + - 36 THEN COUNT( * ) ELSE ( + 16 ) + 78 * - 56 END AS col1
----
-4352

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL + CASE 24 WHEN - + 24 + CASE + - 7 WHEN + + 36 THEN COUNT ( * ) WHEN 75 - + + 12 THEN + 45 + - + ( + NULLIF ( + - 78, + 56 * - 63 ) ) ELSE COUNT ( * ) * + 1 END THEN + + 16 WHEN + MAX ( + 15 ) + + MIN ( - 55 ) * + 74 + - 36 THEN COUNT ( * ) ELSE ( + 16 ) + 78 * - 56 END AS col1
----
-4352

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT - CASE - CASE - 97 WHEN + 77 + + 42 + 42 * + 80 * - 48 THEN + COUNT( * ) END WHEN + - 23 + + 53 THEN - 78 END * 49 * - + COUNT( * ) * + + COUNT( * ) / 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-419
SELECT - CASE - CASE - 97 WHEN + 77 + + 42 + 42 * + 80 * - 48 THEN + COUNT ( * ) END WHEN + - 23 + + 53 THEN - 78 END * 49 * - + COUNT ( * ) * + + COUNT ( * ) / 83 AS col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-422
SELECT ALL NULLIF ( 69, + 9 ) AS col2, - COUNT( * ) + 53
----
69
52

skipif mysql # not compatible
query II rowsort label-422
SELECT ALL NULLIF ( 69, + 9 ) AS col2, - COUNT ( * ) + 53
----
69
52

query I rowsort
SELECT - 39 + - 40
----
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT DISTINCT + 64 - + - ( COUNT( * ) ) - 57 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT + 64 - + - ( COUNT ( * ) ) - 57 AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-426
SELECT ALL - 9 * - - NULLIF ( + CAST( + 58 AS SIGNED ), - - 0 ) AS col1
----
-522

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL - 9 * - - NULLIF ( + CAST ( + 58 AS INTEGER ), - - 0 ) AS col1
----
-522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-427
SELECT - COUNT( * ) AS col0, 80 DIV - NULLIF ( + CAST( COUNT( * ) AS SIGNED ), - 21 DIV COUNT( * ) + - 98 )
----
-1
-80

skipif mysql # not compatible
query II rowsort label-427
SELECT - COUNT ( * ) AS col0, 80 / - NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), - 21 / COUNT ( * ) + - 98 )
----
-1
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT DISTINCT - 19 * - - 66 * + COUNT( * )
----
-1254

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT - 19 * - - 66 * + COUNT ( * )
----
-1254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-429
SELECT ALL - 10 * ( CASE - - AVG ( + - 33 ) WHEN - - 94 THEN NULL WHEN + COUNT( * ) + - ( + + 18 ) + - CAST( NULL AS SIGNED ) * + 27 * - - COUNT( * ) * - 42 THEN + + NULLIF ( + 38, + MAX( ALL 34 ) ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL - 10 * ( CASE - - AVG ( + - 33 ) WHEN - - 94 THEN NULL WHEN + COUNT ( * ) + - ( + + 18 ) + - CAST ( NULL AS INTEGER ) * + 27 * - - COUNT ( * ) * - 42 THEN + + NULLIF ( + 38, + MAX ( ALL 34 ) ) END ) AS col1
----
NULL

query I rowsort
SELECT - 61 + + + 47 + + 87 - 64 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-431
SELECT DISTINCT + ( + + CAST( - 81 AS SIGNED ) ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-431
SELECT DISTINCT + ( + + CAST ( - 81 AS INTEGER ) ) col2
----
-81

query I rowsort
SELECT + - 80 + - 81
----
-161

query II rowsort
SELECT ALL 38 AS col0, 51 * 2
----
38
102

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT - 39 * + COUNT( * ) + + ( 58 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-434
SELECT - 39 * + COUNT ( * ) + + ( 58 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT + + 5 + - CASE + 27 WHEN 97 * 13 * 30 THEN 69 WHEN - 29 THEN NULL WHEN + 27 / + 21 + - + 57 THEN - COUNT( * ) - - COUNT( * ) + - COUNT( * ) * 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-435
SELECT + + 5 + - CASE + 27 WHEN 97 * 13 * 30 THEN 69 WHEN - 29 THEN NULL WHEN + 27 / + 21 + - + 57 THEN - COUNT ( * ) - - COUNT ( * ) + - COUNT ( * ) * 77 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT + - 88 DIV - NULLIF ( - + 86, - 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-436
SELECT + - 88 / - NULLIF ( - + 86, - 53 )
----
-1

query I rowsort
SELECT + 31 + - 23 AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-438
SELECT + + 55 DIV - - 99 + - COALESCE ( + COUNT( ALL CAST( NULL AS SIGNED ) ), - - 90, - 30 )
----
0

skipif mysql # not compatible
query I rowsort label-438
SELECT + + 55 / - - 99 + - COALESCE ( + COUNT ( ALL CAST ( NULL AS INTEGER ) ), - - 90, - 30 )
----
0

query I rowsort
SELECT ALL + 50 * + + 7 * 24 AS col0
----
8400

query I rowsort
SELECT + - 44 * - 14 + 87 AS col2
----
703

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-442
SELECT - - 78 AS col0, CAST( + 68 AS SIGNED ) * - 15 AS col2
----
78
-1020

skipif mysql # not compatible
query II rowsort label-442
SELECT - - 78 AS col0, CAST ( + 68 AS INTEGER ) * - 15 AS col2
----
78
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT ALL COALESCE ( - 15, - 60 + 93, + 39 + + 96, + 68 + - + COUNT( * ) ) * + - 27 + - + 82
----
323

skipif mysql # not compatible
query I rowsort label-443
SELECT ALL COALESCE ( - 15, - 60 + 93, + 39 + + 96, + 68 + - + COUNT ( * ) ) * + - 27 + - + 82
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL - CASE 56 WHEN - ( - 23 ) + - - CASE 28 WHEN - 77 THEN + 13 * + NULLIF ( - 11, - 7 ) + + + 91 + + COUNT( * ) * 75 WHEN 91 THEN 23 END * - 62 * + + CASE + 9 WHEN - 53 - - 6 / + 51 * + - 58 THEN NULL WHEN 40 THEN - 22 - + - 47 WHEN - 28 THEN NULL END THEN + + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL - CASE 56 WHEN - ( - 23 ) + - - CASE 28 WHEN - 77 THEN + 13 * + NULLIF ( - 11, - 7 ) + + + 91 + + COUNT ( * ) * 75 WHEN 91 THEN 23 END * - 62 * + + CASE + 9 WHEN - 53 - - 6 / + 51 * + - 58 THEN NULL WHEN 40 THEN - 22 - + - 47 WHEN - 28 THEN NULL END THEN + + 50 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-445
SELECT - - COUNT( * ) DIV COUNT( * ) + 27 + 78 * NULLIF ( + 7, + 25 + - - SUM( + 91 ) + + 21 DIV - - 65 * - 57 - - + 41 + - 45 )
----
574

skipif mysql # not compatible
query I rowsort label-445
SELECT - - COUNT ( * ) / COUNT ( * ) + 27 + 78 * NULLIF ( + 7, + 25 + - - SUM ( + 91 ) + + 21 / - - 65 * - 57 - - + 41 + - 45 )
----
574

query I rowsort
SELECT ALL 85 * - 78 AS col2
----
-6630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-447
SELECT ALL - + COUNT( * ) DIV + 9 + - + 71 * 24
----
-1704

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL - + COUNT ( * ) / + 9 + - + 71 * 24
----
-1704

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-448
SELECT + - CAST( NULL AS DECIMAL ) * - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT + - CAST ( NULL AS REAL ) * - 31 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-449
SELECT ALL + 69 * + ( + 22 ) + + - CASE 87 WHEN - COUNT( * ) THEN - 13 * - + 27 / 61 + + 21 END + + 8 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL + 69 * + ( + 22 ) + + - CASE 87 WHEN - COUNT ( * ) THEN - 13 * - + 27 / 61 + + 21 END + + 8 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-450
SELECT ( - COUNT( * ) ) AS col1, 59 AS col2
----
-1
59

skipif mysql # not compatible
query II rowsort label-450
SELECT ( - COUNT ( * ) ) AS col1, 59 AS col2
----
-1
59

query I rowsort
SELECT ALL 25 * + 67 * 12 * - + 10 + + 63 AS col2
----
-200937

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-452
SELECT + CAST( - 15 AS SIGNED ) AS col2, 49 AS col1
----
-15
49

skipif mysql # not compatible
query II rowsort label-452
SELECT + CAST ( - 15 AS INTEGER ) AS col2, 49 AS col1
----
-15
49

query I rowsort
SELECT DISTINCT + ( - ( 29 ) ) * 54 * - 18 + + + 7
----
28195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-454
SELECT ALL - 53 * - 50 + - 34 + + 46 + NULLIF ( + 61, - 83 + MIN( ( + 26 ) ) ) DIV + 67 * - 56 - - ( - 7 ) * - 99
----
3355

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL - 53 * - 50 + - 34 + + 46 + NULLIF ( + 61, - 83 + MIN ( ( + 26 ) ) ) / + 67 * - 56 - - ( - 7 ) * - 99
----
3355

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT + 22 * + + CASE - - 96 WHEN + COUNT( * ) * 64 + + - 75 * - 80 THEN - COALESCE ( + - 7, - + ( + ( - 96 ) ) + - 29, - + 34 * 63 * - - 41 / 80 + 3 * 21, COUNT( * ) + + - COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT + 22 * + + CASE - - 96 WHEN + COUNT ( * ) * 64 + + - 75 * - 80 THEN - COALESCE ( + - 7, - + ( + ( - 96 ) ) + - 29, - + 34 * 63 * - - 41 / 80 + 3 * 21, COUNT ( * ) + + - COUNT ( * ) ) END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT + MIN( - + 25 ) * - + MAX( ALL 86 ) AS col1
----
2150

skipif mysql # not compatible
query I rowsort label-457
SELECT + MIN ( - + 25 ) * - + MAX ( ALL 86 ) AS col1
----
2150

onlyif mysql # aggregate syntax: 
query II rowsort label-458
SELECT NULLIF ( - 18, + - ( + COUNT( * ) ) ), 17 * - + 18 AS col0
----
-18
-306

skipif mysql # not compatible
query II rowsort label-458
SELECT NULLIF ( - 18, + - ( + COUNT ( * ) ) ), 17 * - + 18 AS col0
----
-18
-306

query I rowsort
SELECT ALL 24 * + 53 - - 73 AS col1
----
1345

onlyif mysql # DIV for integer division: 
query I rowsort label-460
SELECT - NULLIF ( + 4, + 41 ) DIV - + 66
----
0

skipif mysql # not compatible
query I rowsort label-460
SELECT - NULLIF ( + 4, + 41 ) / - + 66
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-461
SELECT ALL CASE + + COUNT( * ) WHEN - 44 THEN NULL WHEN + COUNT( * ) THEN - - 35 DIV - + 85 * + + 13 + + 46 + ( + 96 ) WHEN - 67 * 17 THEN - 74 ELSE NULL END AS col1
----
142

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL CASE + + COUNT ( * ) WHEN - 44 THEN NULL WHEN + COUNT ( * ) THEN - - 35 / - + 85 * + + 13 + + 46 + ( + 96 ) WHEN - 67 * 17 THEN - 74 ELSE NULL END AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT DISTINCT NULLIF ( - 84, COALESCE ( + 25, + 2 / - ( - 42 ) + + MAX( - 33 ) ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT NULLIF ( - 84, COALESCE ( + 25, + 2 / - ( - 42 ) + + MAX ( - 33 ) ) ) AS col2
----
-84

query II rowsort
SELECT - 20 - - 6 AS col2, 8 + - + 21 col0
----
-14
-13

query I rowsort
SELECT ALL - 78 * + - 7 AS col1
----
546

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-466
SELECT ALL ( 86 ) AS col0, + 34 DIV + 23 + 21 + + 55 - 82 * ( - COUNT( ALL - - 71 ) ) * - COALESCE ( + + COUNT( * ), + + 12 * + COUNT( * ), - + 56 + + 45 ) * ( + 2 ) + 39 + ( 4 ) + - + 97 * 32 + - 11 + - - 59 * + 10 * 99 * 34 * + ( - + ( - 4 ) )
----
86
7940601

skipif mysql # not compatible
query II rowsort label-466
SELECT ALL ( 86 ) AS col0, + 34 / + 23 + 21 + + 55 - 82 * ( - COUNT ( ALL - - 71 ) ) * - COALESCE ( + + COUNT ( * ), + + 12 * + COUNT ( * ), - + 56 + + 45 ) * ( + 2 ) + 39 + ( 4 ) + - + 97 * 32 + - 11 + - - 59 * + 10 * 99 * 34 * + ( - + ( - 4 ) )
----
86
7940601

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

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

query I rowsort
SELECT - + 59 * 25
----
-1475

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL - - COUNT( * ) * CASE + 63 WHEN + ( + COALESCE ( - MIN( ALL - 69 ), - MAX( ALL - 37 ) + + 23, + - 58 ) ) THEN + 33 ELSE NULL END - - + 73 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL - - COUNT ( * ) * CASE + 63 WHEN + ( + COALESCE ( - MIN ( ALL - 69 ), - MAX ( ALL - 37 ) + + 23, + - 58 ) ) THEN + 33 ELSE NULL END - - + 73 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-471
SELECT DISTINCT - + 41 * - CAST( - ( + - 94 ) AS SIGNED )
----
3854

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT - + 41 * - CAST ( - ( + - 94 ) AS INTEGER )
----
3854

onlyif mysql # aggregate syntax: 
query II rowsort label-472
SELECT - 73 * - - 55 + + - NULLIF ( - 37, ( - 50 ) - - 23 - - MIN( + 75 ) * + 4 ) AS col0, - 78 - - + MAX( 32 )
----
-3978
-46

skipif mysql # not compatible
query II rowsort label-472
SELECT - 73 * - - 55 + + - NULLIF ( - 37, ( - 50 ) - - 23 - - MIN ( + 75 ) * + 4 ) AS col0, - 78 - - + MAX ( 32 )
----
-3978
-46

query I rowsort
SELECT ALL - 88 + + - 45
----
-133

query I rowsort
SELECT ALL - 38 + - CASE + + 42 WHEN - ( - ( + 46 ) ) * 17 + 1 THEN COALESCE ( + 74, - 25 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT + COUNT( * ) * COUNT( * ) * - - MAX( ALL + 4 ) col0, 75 AS col1
----
4
75

skipif mysql # not compatible
query II rowsort label-475
SELECT + COUNT ( * ) * COUNT ( * ) * - - MAX ( ALL + 4 ) col0, 75 AS col1
----
4
75

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

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

query I rowsort
SELECT 57 + 83 AS col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT + SUM( DISTINCT - - ( + 94 ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-478
SELECT + SUM ( DISTINCT - - ( + 94 ) ) AS col1
----
94

query I rowsort
SELECT 3 + + ( - 75 ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT MIN( ALL - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-480
SELECT MIN ( ALL - 55 )
----
-55

query I rowsort
SELECT ALL 6 + - 9
----
-3

query I rowsort
SELECT 93 * + 80 AS col0
----
7440

query I rowsort
SELECT ALL - 91 + 13 + + + 64 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT ALL - + SUM( - NULLIF ( - 23, - - ( 4 ) ) )
----
-23

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL - + SUM ( - NULLIF ( - 23, - - ( 4 ) ) )
----
-23

query I rowsort
SELECT ALL 52 + + 24 * - 16
----
-332

onlyif mysql # DIV for integer division: 
query I rowsort label-486
SELECT - 65 DIV + 38 + + 71
----
70

skipif mysql # not compatible
query I rowsort label-486
SELECT - 65 / + 38 + + 71
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT DISTINCT + ( + 41 ) + 84 * + COUNT( * )
----
125

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT + ( + 41 ) + 84 * + COUNT ( * )
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-489
SELECT ( + - 8 ) / + + 52 * - 65 * - + 98 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-489
SELECT ( + - 8 ) / + + 52 * - 65 * - + 98 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-490
SELECT 39 + + - MAX( DISTINCT + 55 ) + - 91 DIV + + 72 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-490
SELECT 39 + + - MAX ( DISTINCT + 55 ) + - 91 / + + 72 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT COUNT( * ) * - ( + ( + NULLIF ( - COALESCE ( - 12, COUNT( * ) ), - 0 + - - 49 ) ) ) + - 47
----
-59

skipif mysql # not compatible
query I rowsort label-491
SELECT COUNT ( * ) * - ( + ( + NULLIF ( - COALESCE ( - 12, COUNT ( * ) ), - 0 + - - 49 ) ) ) + - 47
----
-59

query II rowsort
SELECT 66, + 7 + - 68 + 71 + + 55 + + + ( - 15 ) * - 27 * + + 8 + + + COALESCE ( - + 53, 19, + + 57 ) AS col0
----
66
3252

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT CASE - + 53 WHEN - - 92 THEN + COUNT( * ) WHEN - ( 87 ) * + 51 THEN - 71 + COUNT( * ) END * - COALESCE ( 42, - 52, + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-493
SELECT CASE - + 53 WHEN - - 92 THEN + COUNT ( * ) WHEN - ( 87 ) * + 51 THEN - 71 + COUNT ( * ) END * - COALESCE ( 42, - 52, + 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-494
SELECT ALL - 0 AS col0, MIN( 68 ) AS col0
----
0
68

skipif mysql # not compatible
query II rowsort label-494
SELECT ALL - 0 AS col0, MIN ( 68 ) AS col0
----
0
68

query II rowsort
SELECT + 17 AS col0, + 8 AS col0
----
17
8

query I rowsort
SELECT ( + 30 ) + - - 53 + - 71 AS col1
----
12

query I rowsort
SELECT ALL + 46 * - - 10 AS col1
----
460

query I rowsort
SELECT ALL 44 * - 57 AS col2
----
-2508

query I rowsort
SELECT DISTINCT 61 * + 59 AS col1
----
3599

query I rowsort
SELECT 74 * 28 + + 6 * - + 15 AS col0
----
1982

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT ALL COUNT( DISTINCT - 19 ) * + + MAX( ALL + - 10 ) + SUM( DISTINCT 64 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL COUNT ( DISTINCT - 19 ) * + + MAX ( ALL + - 10 ) + SUM ( DISTINCT 64 ) AS col1
----
54

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

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

query I rowsort
SELECT ALL + 22 + - + 63 AS col0
----
-41

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

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

query I rowsort
SELECT ALL 49 + + 96
----
145

query I rowsort
SELECT 39 + - + ( 24 ) * 88 AS col1
----
-2073

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-507
SELECT 72 * + 93 * - 5 + + MAX( DISTINCT COALESCE ( + 19, - 75 + - 39, - + 60 ) ) DIV - 61 AS col1, 75 AS col1
----
-33480
75

skipif mysql # not compatible
query II rowsort label-507
SELECT 72 * + 93 * - 5 + + MAX ( DISTINCT COALESCE ( + 19, - 75 + - 39, - + 60 ) ) / - 61 AS col1, 75 AS col1
----
-33480
75

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT - 16 + + - COUNT( * ) * 86 AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-508
SELECT - 16 + + - COUNT ( * ) * 86 AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT 62 + - - COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-509
SELECT 62 + - - COUNT ( * ) AS col1
----
63

query II rowsort
SELECT ALL + + 88 + - 31 - + 35 AS col1, NULLIF ( - 70, + 60 )
----
22
-70

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-512
SELECT ALL + - NULLIF ( 12, - 63 * 32 ) * + 29 DIV + COUNT( * )
----
-348

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL + - NULLIF ( 12, - 63 * 32 ) * + 29 / + COUNT ( * )
----
-348

onlyif mysql # aggregate syntax: 
query II rowsort label-513
SELECT DISTINCT + COUNT( * ) AS col1, - 88 * - 34 AS col1
----
1
2992

skipif mysql # not compatible
query II rowsort label-513
SELECT DISTINCT + COUNT ( * ) AS col1, - 88 * - 34 AS col1
----
1
2992

query I rowsort
SELECT ALL - 15 * 94 - + + 22 AS col0
----
-1432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-515
SELECT ALL - 65 * + - COUNT( 18 ) - - + COALESCE ( - + 2, - 75 + 12 - - 10 DIV 74, - 17 * 30 * 11 + - COUNT( * ) + 20 + + COUNT( * ) * + 42 * 18 )
----
63

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL - 65 * + - COUNT ( 18 ) - - + COALESCE ( - + 2, - 75 + 12 - - 10 / 74, - 17 * 30 * 11 + - COUNT ( * ) + 20 + + COUNT ( * ) * + 42 * 18 )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-516
SELECT DISTINCT - CAST( - ( + - 91 ) AS SIGNED ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT - CAST ( - ( + - 91 ) AS INTEGER ) AS col2
----
-91

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-518
SELECT CASE COALESCE ( - ( + - 20 ), + 29 ) WHEN - + 23 THEN + + CAST( + + COUNT( + 3 ) AS SIGNED ) WHEN + 47 + 16 THEN NULL WHEN - 67 THEN NULL ELSE + + 67 END * - - COUNT( * ) - 98
----
-31

skipif mysql # not compatible
query I rowsort label-518
SELECT CASE COALESCE ( - ( + - 20 ), + 29 ) WHEN - + 23 THEN + + CAST ( + + COUNT ( + 3 ) AS INTEGER ) WHEN + 47 + 16 THEN NULL WHEN - 67 THEN NULL ELSE + + 67 END * - - COUNT ( * ) - 98
----
-31

query I rowsort
SELECT ALL - COALESCE ( + 46, + - 97 * + COALESCE ( + 88, - 1, - + 96 + + 30 * CASE + - ( - + 44 ) WHEN 33 THEN - - 37 + 47 + + 9 * + - 24 * 3 END ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT COUNT( DISTINCT + COALESCE ( - 79, 5 * 9 * - ( + + NULLIF ( + 74, + 75 ) ) ) ) * CASE - 51 WHEN 66 THEN NULL ELSE 62 - 54 * - + 29 * - 87 * - 72 END
----
9809486

skipif mysql # not compatible
query I rowsort label-520
SELECT COUNT ( DISTINCT + COALESCE ( - 79, 5 * 9 * - ( + + NULLIF ( + 74, + 75 ) ) ) ) * CASE - 51 WHEN 66 THEN NULL ELSE 62 - 54 * - + 29 * - 87 * - 72 END
----
9809486

query I rowsort
SELECT ALL 63 - + 4 * + 38
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-522
SELECT 64 DIV - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-522
SELECT 64 / - 74 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-523
SELECT ALL - 77 DIV + 11
----
-7

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL - 77 / + 11
----
-7

query I rowsort
SELECT ALL 56 * - 96
----
-5376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-525
SELECT SUM( - 73 ) + 94 + - + SUM( ALL 23 ) - COUNT( * ) + + 1 DIV + 56 - + - 67 * 18
----
1203

skipif mysql # not compatible
query I rowsort label-525
SELECT SUM ( - 73 ) + 94 + - + SUM ( ALL 23 ) - COUNT ( * ) + + 1 / + 56 - + - 67 * 18
----
1203

query I rowsort
SELECT DISTINCT - ( 61 ) col0
----
-61

query II rowsort
SELECT ALL - 51 * 33 AS col2, 0
----
-1683
0

query I rowsort
SELECT ALL 3 * - ( + 92 )
----
-276

query I rowsort
SELECT ALL 21 * + 39 AS col0
----
819

query II rowsort
SELECT 43 AS col1, ( - 91 ) AS col2
----
43
-91

query I rowsort
SELECT ( - 68 ) * + - 67 + + 50 - - 64
----
4670

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

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

query I rowsort
SELECT + COALESCE ( - 81, 38 * 90 * - 63 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-534
SELECT ALL - 51 + + CAST( + + 19 AS SIGNED ) + + 63 + 26
----
57

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL - 51 + + CAST ( + + 19 AS INTEGER ) + + 63 + 26
----
57

query I rowsort
SELECT DISTINCT - 93 + + 76 * + + 57 AS col0
----
4239

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

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

query I rowsort
SELECT ALL 94 + - 61
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-538
SELECT + 64 * - 93 * - ( ( - 7 ) ) * + MAX( DISTINCT - - 54 ) * + - 77 + + - 43 + + - COUNT( * ) * - COUNT( * ) * 40 + + COUNT( * ) + + 99, + 57 AS col1
----
173239009
57

skipif mysql # not compatible
query II rowsort label-538
SELECT + 64 * - 93 * - ( ( - 7 ) ) * + MAX ( DISTINCT - - 54 ) * + - 77 + + - 43 + + - COUNT ( * ) * - COUNT ( * ) * 40 + + COUNT ( * ) + + 99, + 57 AS col1
----
173239009
57

query I rowsort
SELECT ALL 34 + 58 - + 82 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT + 28 * COUNT( * ) + 62 / - CASE WHEN - 77 IS NULL THEN - 74 END * 75 - + 77 + - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT + 28 * COUNT ( * ) + 62 / - CASE WHEN - 77 IS NULL THEN - 74 END * 75 - + 77 + - 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT ALL - ( + CASE 42 WHEN + COUNT( + - 1 ) + 55 THEN COUNT( ALL + 40 ) ELSE NULL END ) + + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL - ( + CASE 42 WHEN + COUNT ( + - 1 ) + 55 THEN COUNT ( ALL + 40 ) ELSE NULL END ) + + + 60
----
NULL

query I rowsort
SELECT + - 5 * - 21 AS col1
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-543
SELECT - - 99 * + CAST( NULL AS SIGNED ) / - - MAX( ALL - - 27 ) + + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT - - 99 * + CAST ( NULL AS INTEGER ) / - - MAX ( ALL - - 27 ) + + 11 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-544
SELECT ( - - MAX ( ALL - 23 ) )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-545
SELECT - - CASE - 35 WHEN + CAST( NULL AS SIGNED ) THEN + 63 + - 65 WHEN 5 + - - COUNT( * ) THEN - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-545
SELECT - - CASE - 35 WHEN + CAST ( NULL AS INTEGER ) THEN + 63 + - 65 WHEN 5 + - - COUNT ( * ) THEN - 9 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT + MAX( - + 92 ) * 85 AS col0
----
-7820

skipif mysql # not compatible
query I rowsort label-547
SELECT + MAX ( - + 92 ) * 85 AS col0
----
-7820

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

skipif mysql # not compatible
query I rowsort label-548
SELECT SUM ( DISTINCT - 38 )
----
-38

query I rowsort
SELECT DISTINCT - 17 - 42
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-550
SELECT + - 6 * - - 31 + COUNT( * ) + 40 AS col0, 50 + ( + + NULLIF ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) ) col2
----
-145
49

skipif mysql # not compatible
query II rowsort label-550
SELECT + - 6 * - - 31 + COUNT ( * ) + 40 AS col0, 50 + ( + + NULLIF ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) ) col2
----
-145
49

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT + ( + NULLIF ( - COUNT( * ), - 15 - + 14 + + 73 ) ) + COUNT( + 93 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-551
SELECT + ( + NULLIF ( - COUNT ( * ), - 15 - + 14 + + 73 ) ) + COUNT ( + 93 ) col1
----
0

query I rowsort
SELECT + 23 + 3 * - 25 AS col0
----
-52

query II rowsort
SELECT - NULLIF ( + + NULLIF ( 28, - - 2 ), + 69 ) * + - ( 36 ) AS col1, - 19 AS col0
----
1008
-19

query I rowsort
SELECT + 99 + - 3 AS col1
----
96

query I rowsort
SELECT ALL + 91 * - + COALESCE ( + 61, - + 34 ) * - COALESCE ( - ( + - 17 ), - - 4 + - 45 + + + 70 * + 73 )
----
94367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-556
SELECT - CAST( 77 AS SIGNED ) - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-556
SELECT - CAST ( 77 AS INTEGER ) - COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-557
SELECT ALL + 82 * + - SUM( + 68 ) AS col0, NULLIF ( + - 81, - - 51 ) AS col0
----
-5576
-81

skipif mysql # not compatible
query II rowsort label-557
SELECT ALL + 82 * + - SUM ( + 68 ) AS col0, NULLIF ( + - 81, - - 51 ) AS col0
----
-5576
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-558
SELECT DISTINCT + 64 * - COUNT( * ) AS col1, 38 col1
----
-64
38

skipif mysql # not compatible
query II rowsort label-558
SELECT DISTINCT + 64 * - COUNT ( * ) AS col1, 38 col1
----
-64
38

query I rowsort
SELECT ALL + 91 * - 97 col2
----
-8827

query I rowsort
SELECT ALL + NULLIF ( 81, + 21 ) col1
----
81

query II rowsort
SELECT + ( + 16 ) AS col0, + 66 AS col0
----
16
66

query I rowsort
SELECT DISTINCT + COALESCE ( - ( - - 80 ), + 1 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT ALL 80 * + 69 + + COUNT( * ) * + COUNT( - 10 )
----
5521

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL 80 * + 69 + + COUNT ( * ) * + COUNT ( - 10 )
----
5521

query I rowsort
SELECT COALESCE ( + + 47, + 41 )
----
47

query I rowsort
SELECT - 62 * + CASE + - ( - NULLIF ( 97, + 28 ) ) WHEN - 58 THEN 93 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-566
SELECT + 67 + + + COUNT( * ) * + 11 * - + CAST( + + 16 AS SIGNED ) AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-566
SELECT + 67 + + + COUNT ( * ) * + 11 * - + CAST ( + + 16 AS INTEGER ) AS col0
----
-109

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT ALL COUNT( * ) * + COUNT( * ) * + + ( - + 11 ) + - 77 * - COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL COUNT ( * ) * + COUNT ( * ) * + + ( - + 11 ) + - 77 * - COUNT ( * ) AS col1
----
66

query II rowsort
SELECT DISTINCT 8 * 94, - 95 col1
----
752
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT + + 95 DIV - 93 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-570
SELECT + + 95 / - 93 AS col2
----
-1

query II rowsort
SELECT ALL + + 22 * - 94, 54 AS col0
----
-2068
54

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT DISTINCT - 73 * + COUNT( * ) * - - 7 + 16
----
-495

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT - 73 * + COUNT ( * ) * - - 7 + 16
----
-495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-573
SELECT - 0 * + 10 DIV + - 2 * - ( ( + SUM( ALL + 17 ) ) ) + 63
----
63

skipif mysql # not compatible
query I rowsort label-573
SELECT - 0 * + 10 / + - 2 * - ( ( + SUM ( ALL + 17 ) ) ) + 63
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-574
SELECT - + 76 * CASE + CASE + 18 WHEN + - 92 / MIN( DISTINCT - + 81 ) * - - 3 + + + 17 + - 51 THEN NULL WHEN - 95 + + 39 THEN NULL WHEN ( - 86 ) + - CAST( + 4 AS SIGNED ) THEN COUNT( * ) * - COUNT( * ) + + + 96 * - COUNT( * ) * 65 WHEN - 12 THEN + 4 * - CAST( NULL AS DECIMAL ) - - 51 - - 47 * + 79 ELSE - 54 * 45 * - 12 * + 60 + + 24 * + 83 END WHEN + 57 THEN + 43 + + 62 + + COALESCE ( - 0, 95 * + 33 - + 39 * + 15 + 8, 93 * 69 ) * - COUNT( - 47 ) WHEN + 45 + 25 * 94 THEN NULL ELSE + 51 + MIN( ( 0 ) ) END AS col2
----
-3876

skipif mysql # not compatible
query I rowsort label-574
SELECT - + 76 * CASE + CASE + 18 WHEN + - 92 / MIN ( DISTINCT - + 81 ) * - - 3 + + + 17 + - 51 THEN NULL WHEN - 95 + + 39 THEN NULL WHEN ( - 86 ) + - CAST ( + 4 AS INTEGER ) THEN COUNT ( * ) * - COUNT ( * ) + + + 96 * - COUNT ( * ) * 65 WHEN - 12 THEN + 4 * - CAST ( NULL AS REAL ) - - 51 - - 47 * + 79 ELSE - 54 * 45 * - 12 * + 60 + + 24 * + 83 END WHEN + 57 THEN + 43 + + 62 + + COALESCE ( - 0, 95 * + 33 - + 39 * + 15 + 8, 93 * 69 ) * - COUNT ( - 47 ) WHEN + 45 + 25 * 94 THEN NULL ELSE + 51 + MIN ( ( 0 ) ) END AS col2
----
-3876

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

query I rowsort
SELECT - - 59 + - 68 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT ALL + ( - COALESCE ( + 3, - COUNT( * ) ) ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL + ( - COALESCE ( + 3, - COUNT ( * ) ) ) col0
----
-3

query I rowsort
SELECT + 42 + - - ( 93 )
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT ALL 95 * - - 95 + 52 + - + 0 * + 59 * 77 * + 25 + + 51 - - - 87 + - 73 * + + COUNT( * ) AS col0
----
8968

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL 95 * - - 95 + 52 + - + 0 * + 59 * 77 * + 25 + + 51 - - - 87 + - 73 * + + COUNT ( * ) AS col0
----
8968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-580
SELECT + - 18 + + NULLIF ( + CAST( - + 9 AS SIGNED ), + 39 ) - + 9 + + + 78 * 12 AS col0
----
900

skipif mysql # not compatible
query I rowsort label-580
SELECT + - 18 + + NULLIF ( + CAST ( - + 9 AS INTEGER ), + 39 ) - + 9 + + + 78 * 12 AS col0
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL - COUNT( * ) - - + 91
----
90

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL - COUNT ( * ) - - + 91
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-582
SELECT - 22 * - 0 DIV + 27 * CAST( + 27 AS SIGNED ) DIV - - ( - 53 )
----
0

skipif mysql # not compatible
query I rowsort label-582
SELECT - 22 * - 0 / + 27 * CAST ( + 27 AS INTEGER ) / - - ( - 53 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT DISTINCT 52 * - + MIN( ALL 33 )
----
-1716

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT 52 * - + MIN ( ALL 33 )
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT + 64 * + + COALESCE ( - - 85, - 15 * - - ( - COUNT( * ) ) + 49 ) AS col1
----
5440

skipif mysql # not compatible
query I rowsort label-584
SELECT + 64 * + + COALESCE ( - - 85, - 15 * - - ( - COUNT ( * ) ) + 49 ) AS col1
----
5440

onlyif mysql # DIV for integer division: 
query II rowsort label-585
SELECT 69, - NULLIF ( - 7, - 77 - - 62 ) + - + 89 DIV 88 AS col0
----
69
6

skipif mysql # not compatible
query II rowsort label-585
SELECT 69, - NULLIF ( - 7, - 77 - - 62 ) + - + 89 / 88 AS col0
----
69
6

onlyif mysql # aggregate syntax: 
query II rowsort label-586
SELECT - COUNT( - 5 ) + - 3 * - 61, - 86 AS col1
----
182
-86

skipif mysql # not compatible
query II rowsort label-586
SELECT - COUNT ( - 5 ) + - 3 * - 61, - 86 AS col1
----
182
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT DISTINCT SUM( - 61 ) * - 67 + - + 59 * + 67
----
134

skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT SUM ( - 61 ) * - 67 + - + 59 * + 67
----
134

query I rowsort
SELECT DISTINCT NULLIF ( 3, - 4 + 7 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-589
SELECT + COUNT( * ) DIV - - 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-589
SELECT + COUNT ( * ) / - - 57 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT ALL - 23 DIV - 17 col0
----
1

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL - 23 / - 17 col0
----
1

query I rowsort
SELECT ALL + 60 + - - 39
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-592
SELECT DISTINCT + COUNT( * ) DIV + ( + 96 ) * 93 * + 42
----
0

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT + COUNT ( * ) / + ( + 96 ) * 93 * + 42
----
0

query I rowsort
SELECT - 39 * 89
----
-3471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-594
SELECT DISTINCT COUNT( * ) DIV CAST( - - COUNT( DISTINCT 97 ) AS SIGNED ) + - - 24
----
25

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT COUNT ( * ) / CAST ( - - COUNT ( DISTINCT 97 ) AS INTEGER ) + - - 24
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-595
SELECT ALL 8 DIV - + 40 + 71 AS col1, 89 + - COUNT( * ) - - COUNT( * ) DIV - 28 * - - 49 + - 57 AS col2
----
71
31

skipif mysql # not compatible
query II rowsort label-595
SELECT ALL 8 / - + 40 + 71 AS col1, 89 + - COUNT ( * ) - - COUNT ( * ) / - 28 * - - 49 + - 57 AS col2
----
71
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT ALL 45 DIV - + 86 * + - 71 DIV - 26 + + 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL 45 / - + 86 * + - 71 / - 26 + + 94 AS col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-598
SELECT ALL 13 DIV MAX( - 85 ) + - 20 col2
----
-20

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL 13 / MAX ( - 85 ) + - 20 col2
----
-20

query I rowsort
SELECT - 44 * + + 99 - + 70 AS col2
----
-4426

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

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

query I rowsort
SELECT ALL - 60 * + 7
----
-420

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

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

query I rowsort
SELECT ALL - - 29 col0
----
29

query II rowsort
SELECT 19, + 3 AS col0
----
19
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-606
SELECT + 98 * + 80 + + 51, + 27 DIV + 93 * + COUNT( * ) - + 38 col2
----
7891
-38

skipif mysql # not compatible
query II rowsort label-606
SELECT + 98 * + 80 + + 51, + 27 / + 93 * + COUNT ( * ) - + 38 col2
----
7891
-38

query I rowsort
SELECT 37 * + 26 * + 77
----
74074

query I rowsort
SELECT DISTINCT - 77 - 40 + - 38 AS col0
----
-155

onlyif mysql # aggregate syntax: 
query III rowsort label-609
SELECT DISTINCT - 98 AS col2, + 76 + - - 10 + - NULLIF ( + COUNT( * ), - 0 ) AS col1, - 41 * - COUNT( ALL - + 11 )
----
-98
85
41

skipif mysql # not compatible
query III rowsort label-609
SELECT DISTINCT - 98 AS col2, + 76 + - - 10 + - NULLIF ( + COUNT ( * ), - 0 ) AS col1, - 41 * - COUNT ( ALL - + 11 )
----
-98
85
41

query I rowsort
SELECT DISTINCT + 61 * 60 * + 52 AS col2
----
190320

query I rowsort
SELECT DISTINCT + - 15 - - - 26 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT COUNT( * ) * 36 + 13
----
49

skipif mysql # not compatible
query I rowsort label-612
SELECT COUNT ( * ) * 36 + 13
----
49

query I rowsort
SELECT ALL - 28 * + + 70
----
-1960

query I rowsort
SELECT DISTINCT 83 - - 98 col1
----
181

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

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

query I rowsort
SELECT 95 * - 75
----
-7125

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT + 76 * + - CASE + + 31 WHEN 86 THEN + + COALESCE ( 49, - - COUNT( * ), - 54 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT + 76 * + - CASE + + 31 WHEN 86 THEN + + COALESCE ( 49, - - COUNT ( * ), - 54 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-618
SELECT 26 - - + 12 + CAST( NULL AS SIGNED ) + + ( - 28 ) / + COUNT( * ) - - 98 + 17 + + - 39 * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT 26 - - + 12 + CAST ( NULL AS INTEGER ) + + ( - 28 ) / + COUNT ( * ) - - 98 + 17 + + - 39 * 28
----
NULL

query I rowsort
SELECT + 19 * 35
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL - - COALESCE ( + - 97, - 6 + - + NULLIF ( 14, - 26 ) * 8, + COUNT( * ) + - - 36 ) * + + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL - - COALESCE ( + - 97, - 6 + - + NULLIF ( 14, - 26 ) * 8, + COUNT ( * ) + - - 36 ) * + + COUNT ( * )
----
-97

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

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

query II rowsort
SELECT - 6, - ( + + 92 ) AS col1
----
-6
-92

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-624
SELECT 58 * - + COALESCE ( + + 94, + + 45 + + 12 ) * + NULLIF ( + - 98, + 99 ) * 40 - - 24 * + ( - COUNT( * ) ) AS col0, - 19 - - 5 / CAST( NULL AS SIGNED ) * + NULLIF ( 94, + 99 ) AS col0
----
21371816
NULL

skipif mysql # not compatible
query II rowsort label-624
SELECT 58 * - + COALESCE ( + + 94, + + 45 + + 12 ) * + NULLIF ( + - 98, + 99 ) * 40 - - 24 * + ( - COUNT ( * ) ) AS col0, - 19 - - 5 / CAST ( NULL AS INTEGER ) * + NULLIF ( 94, + 99 ) AS col0
----
21371816
NULL

query I rowsort
SELECT DISTINCT 45 + + 19 + - 9 AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-626
SELECT ALL COUNT( * ) + + 5 DIV + + 3 col0
----
2

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL COUNT ( * ) + + 5 / + + 3 col0
----
2

query II rowsort
SELECT ALL 80 + 23, ( - 14 ) AS col2
----
103
-14

query I rowsort
SELECT 83 + 47
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT + 28 DIV + 31 + ( + - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-629
SELECT + 28 / + 31 + ( + - 89 )
----
-89

query I rowsort
SELECT ALL 44 + - 32 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT - 78 * + - 46 * + - COALESCE ( + COUNT( * ), - + 66 ) + - 79 + + 37 * + NULLIF ( - 9, - + COALESCE ( + 13, - 74 / - AVG ( ALL + 40 ) + - MAX( ALL + + 88 ) / 17 - - - COUNT( * ) + + + 20 ) + + + 2 + 31 + 67 + + - ( + + 70 ) - 83 / COUNT( * ) )
----
-4000

skipif mysql # not compatible
query I rowsort label-631
SELECT - 78 * + - 46 * + - COALESCE ( + COUNT ( * ), - + 66 ) + - 79 + + 37 * + NULLIF ( - 9, - + COALESCE ( + 13, - 74 / - AVG ( ALL + 40 ) + - MAX ( ALL + + 88 ) / 17 - - - COUNT ( * ) + + + 20 ) + + + 2 + 31 + 67 + + - ( + + 70 ) - 83 / COUNT ( * ) )
----
-4000

onlyif mysql # DIV for integer division: 
query I rowsort label-632
SELECT ALL 0 DIV - 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL 0 / - 19 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-633
SELECT - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) + + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT DISTINCT - 81 - MIN( ALL + 73 ) AS col2
----
-154

skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT - 81 - MIN ( ALL + 73 ) AS col2
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT ALL - + 54 * - ( + MAX( - 85 ) ) * + 79 * + ( + 55 ) + 34
----
-19943516

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL - + 54 * - ( + MAX ( - 85 ) ) * + 79 * + ( + 55 ) + 34
----
-19943516

onlyif mysql # aggregate syntax: 
query II rowsort label-636
SELECT COUNT( + 37 ) AS col0, - 72 * - + 75 * + 89 AS col1
----
1
480600

skipif mysql # not compatible
query II rowsort label-636
SELECT COUNT ( + 37 ) AS col0, - 72 * - + 75 * + 89 AS col1
----
1
480600

query I rowsort
SELECT ALL - 32 * NULLIF ( + 8, + 3 * + 92 - - - 74 )
----
-256

query II rowsort
SELECT DISTINCT 89 * 2 col2, 0
----
178
0

query I rowsort
SELECT ALL - ( 5 ) AS col0
----
-5

query II rowsort
SELECT - 33 * - 90 - ( + ( - 48 ) ), 90 col1
----
3018
90

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT + - 12 * MIN( DISTINCT + 52 ) * + 37 + + COUNT( * ) + + 8 AS col1
----
-23079

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT + - 12 * MIN ( DISTINCT + 52 ) * + 37 + + COUNT ( * ) + + 8 AS col1
----
-23079

onlyif mysql # DIV for integer division: 
query I rowsort label-644
SELECT 10 DIV + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-644
SELECT 10 / + 93 AS col2
----
0

query I rowsort
SELECT - 73 * 65 + ( 91 ) AS col0
----
-4654

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT + 26 + - COALESCE ( + + MIN( + - 68 ), + 72 + + 10, + 90 ) + - + 96 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-646
SELECT + 26 + - COALESCE ( + + MIN ( + - 68 ), + 72 + + 10, + 90 ) + - + 96 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-647
SELECT ALL + ( + 32 ) DIV 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL + ( + 32 ) / 48 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-648
SELECT + 40 * + + ( COALESCE ( + 52, + 56 - + 28 / COUNT( * ), - + 46 + - NULLIF ( - MAX( ALL 35 ), + 70 ) ) ) * - 94 + 19 * - - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT + 40 * + + ( COALESCE ( + 52, + 56 - + 28 / COUNT ( * ), - + 46 + - NULLIF ( - MAX ( ALL 35 ), + 70 ) ) ) * - 94 + 19 * - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + + 70 + - 63 * + ( 65 )
----
-4025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-650
SELECT ALL - 59 + + - CAST( NULL AS SIGNED ) + + 48 AS col2, - 64 AS col2
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-650
SELECT ALL - 59 + + - CAST ( NULL AS INTEGER ) + + 48 AS col2, - 64 AS col2
----
NULL
-64

query I rowsort
SELECT DISTINCT - 50 * 10 col2
----
-500

query I rowsort
SELECT DISTINCT + 14 + 76 + 32 AS col0
----
122

query I rowsort
SELECT ALL - 60 + + 85 AS col1
----
25

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-655
SELECT DISTINCT - 42 + COUNT( * ) - + - CASE 92 WHEN + COUNT( * ) * 36 + - - 31 + - + COALESCE ( + + 41, - - 37 ) THEN NULL WHEN - + 65 * 17 + 59 THEN NULL ELSE + COUNT( - + 76 ) END, + 97 AS col2
----
-40
97

skipif mysql # not compatible
query II rowsort label-655
SELECT DISTINCT - 42 + COUNT ( * ) - + - CASE 92 WHEN + COUNT ( * ) * 36 + - - 31 + - + COALESCE ( + + 41, - - 37 ) THEN NULL WHEN - + 65 * 17 + 59 THEN NULL ELSE + COUNT ( - + 76 ) END, + 97 AS col2
----
-40
97

query I rowsort
SELECT ALL CASE 96 WHEN 50 THEN + 51 * + 94 + + + 36 ELSE NULL END col2
----
NULL

query I rowsort
SELECT 83 * + 29 * + + 9 col1
----
21663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-658
SELECT ALL + 60 + + + COUNT( 82 ) * + CAST( - ( ( 83 ) ) AS SIGNED ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL + 60 + + + COUNT ( 82 ) * + CAST ( - ( ( 83 ) ) AS INTEGER ) AS col1
----
-23

query I rowsort
SELECT ALL - 97 + - - 92 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL COALESCE ( - 38, - 77 + + 52 ) * - + COUNT( * ) * + 14 * 15 col0
----
7980

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL COALESCE ( - 38, - 77 + + 52 ) * - + COUNT ( * ) * + 14 * 15 col0
----
7980

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT + 2 * MIN( DISTINCT + + 49 ) col2
----
98

skipif mysql # not compatible
query I rowsort label-661
SELECT + 2 * MIN ( DISTINCT + + 49 ) col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-662
SELECT - COALESCE ( + 63, + CAST( - COUNT( ALL + 33 ) AS SIGNED ), - ( 19 ) ) DIV 64 - + ( + 19 ) - - 5 * - 45 DIV - COUNT( * ) - + 24 AS col1
----
182

skipif mysql # not compatible
query I rowsort label-662
SELECT - COALESCE ( + 63, + CAST ( - COUNT ( ALL + 33 ) AS INTEGER ), - ( 19 ) ) / 64 - + ( + 19 ) - - 5 * - 45 / - COUNT ( * ) - + 24 AS col1
----
182

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

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT ALL + + 90 * - - COUNT( * ) - 27
----
63

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL + + 90 * - - COUNT ( * ) - 27
----
63

query I rowsort
SELECT ALL 78 * - 55 * 50
----
-214500

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

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

query I rowsort
SELECT - - 88 * + + 47 * - + 41 - + - 28
----
-169548

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

onlyif mysql # DIV for integer division: 
query I rowsort label-669
SELECT + 43 DIV + - 10 + - 98 - - - 54 + - 71
----
-227

skipif mysql # not compatible
query I rowsort label-669
SELECT + 43 / + - 10 + - 98 - - - 54 + - 71
----
-227

query I rowsort
SELECT + 74 * + ( - - 0 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-671
SELECT DISTINCT + + COUNT( * ), + MIN( ALL - 37 ) AS col2
----
1
-37

skipif mysql # not compatible
query II rowsort label-671
SELECT DISTINCT + + COUNT ( * ), + MIN ( ALL - 37 ) AS col2
----
1
-37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT - 51 * + 71 + - MAX( + 71 )
----
-3692

skipif mysql # not compatible
query I rowsort label-673
SELECT - 51 * + 71 + - MAX ( + 71 )
----
-3692

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT + COALESCE ( - NULLIF ( 7, 36 ), + 19, - 21 * + + COUNT( * ) ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-674
SELECT + COALESCE ( - NULLIF ( 7, 36 ), + 19, - 21 * + + COUNT ( * ) ) col0
----
-7

query I rowsort
SELECT + + 70 * - 95
----
-6650

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL + + 9 * 88 + + 56 + + COUNT( * ) AS col1
----
849

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL + + 9 * 88 + + 56 + + COUNT ( * ) AS col1
----
849

onlyif mysql # DIV for integer division: 
query II rowsort label-677
SELECT ALL + COALESCE ( - 76, + - 55 DIV + - 63 DIV + 51 ), 71 AS col2
----
-76
71

skipif mysql # not compatible
query II rowsort label-677
SELECT ALL + COALESCE ( - 76, + - 55 / + - 63 / + 51 ), 71 AS col2
----
-76
71

query I rowsort
SELECT + NULLIF ( 1, - - 3 ) AS col1
----
1

query I rowsort
SELECT ALL + 59 * + 15 + + + 70 col2
----
955

query I rowsort
SELECT ALL - 8 * 76 + 34 AS col2
----
-574

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

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

query I rowsort
SELECT ALL - 64 + + + 12
----
-52

query I rowsort
SELECT ALL 28 + 74 * - + 77 AS col0
----
-5670

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

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

query I rowsort
SELECT ALL 5 + 19 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT DISTINCT MAX( 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT MAX ( 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-687
SELECT + MAX( DISTINCT - 11 ) - + CASE 5 WHEN - + COUNT( * ) THEN + - 22 ELSE NULL END col0, + MIN( + - ( + 47 ) ) AS col0
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-687
SELECT + MAX ( DISTINCT - 11 ) - + CASE 5 WHEN - + COUNT ( * ) THEN + - 22 ELSE NULL END col0, + MIN ( + - ( + 47 ) ) AS col0
----
NULL
-47

query I rowsort
SELECT ALL NULLIF ( + - 59, + - 82 ) AS col0
----
-59

query II rowsort
SELECT 9 AS col0, 33
----
9
33

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-692
SELECT ALL - 2 DIV + COALESCE ( + COUNT( * ), + 22 * ( COALESCE ( CAST( + 42 AS SIGNED ), - COUNT( * ) + - 96, + COUNT( * ) DIV - 33 ) ), 48 + - - NULLIF ( + + 38, 20 ) + - 94 )
----
-2

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL - 2 / + COALESCE ( + COUNT ( * ), + 22 * ( COALESCE ( CAST ( + 42 AS INTEGER ), - COUNT ( * ) + - 96, + COUNT ( * ) / - 33 ) ), 48 + - - NULLIF ( + + 38, 20 ) + - 94 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL - MIN( DISTINCT - 17 ) * 64 + - 57 AS col1
----
1031

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL - MIN ( DISTINCT - 17 ) * 64 + - 57 AS col1
----
1031

query I rowsort
SELECT - 9 - - - 7 + + 56 AS col0
----
40

query I rowsort
SELECT ALL + 29 - + + 42
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-696
SELECT ALL - ( + - 61 ) * + 76 + - 82 - - - 57 - + + 42, 86 + + COUNT( ALL + 47 ) - ( - + 6 ) AS col1
----
4455
93

skipif mysql # not compatible
query II rowsort label-696
SELECT ALL - ( + - 61 ) * + 76 + - 82 - - - 57 - + + 42, 86 + + COUNT ( ALL + 47 ) - ( - + 6 ) AS col1
----
4455
93

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

onlyif mysql # DIV for integer division: 
query I rowsort label-698
SELECT - 3 DIV + + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-698
SELECT - 3 / + + 41 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-700
SELECT + MAX( ALL 70 ) - - + 58 DIV COUNT( * ) AS col0
----
128

skipif mysql # not compatible
query I rowsort label-700
SELECT + MAX ( ALL 70 ) - - + 58 / COUNT ( * ) AS col0
----
128

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

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

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

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

query I rowsort
SELECT DISTINCT + 54 * + 74 AS col1
----
3996

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT ALL + - CASE + 82 WHEN 72 * - 23 + - COUNT( * ) THEN + 43 WHEN + 74 THEN NULL ELSE - 32 END AS col2
----
32

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL + - CASE + 82 WHEN 72 * - 23 + - COUNT ( * ) THEN + 43 WHEN + 74 THEN NULL ELSE - 32 END AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-707
SELECT - 6 + - + 82 * 66 * + + 47 + + + CASE + 75 WHEN + 94 * + + 72 * - 1 / - + CAST( - 60 AS SIGNED ) THEN - 2 + + 11 WHEN + 36 THEN NULL END + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-707
SELECT - 6 + - + 82 * 66 * + + 47 + + + CASE + 75 WHEN + 94 * + + 72 * - 1 / - + CAST ( - 60 AS INTEGER ) THEN - 2 + + 11 WHEN + 36 THEN NULL END + - 54
----
NULL

query II rowsort
SELECT DISTINCT + - 80 AS col0, 65 AS col1
----
-80
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT - + 65 * - 45 * - NULLIF ( 8, + COUNT( + + 48 ) - - 36 )
----
-23400

skipif mysql # not compatible
query I rowsort label-710
SELECT - + 65 * - 45 * - NULLIF ( 8, + COUNT ( + + 48 ) - - 36 )
----
-23400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-711
SELECT + + 60 * + 21 DIV - 21 + 27 - COUNT( * ) + 22 + - NULLIF ( + + 94, - 25 * - - 54 ) * - + 27 * + 18 col2
----
45672

skipif mysql # not compatible
query I rowsort label-711
SELECT + + 60 * + 21 / - 21 + 27 - COUNT ( * ) + 22 + - NULLIF ( + + 94, - 25 * - - 54 ) * - + 27 * + 18 col2
----
45672

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT CASE 51 WHEN - + 30 - - 1 THEN - 58 / + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT CASE 51 WHEN - + 30 - - 1 THEN - 58 / + - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT + - MIN( DISTINCT - + ( - 55 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-713
SELECT + - MIN ( DISTINCT - + ( - 55 ) )
----
-55

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

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT - + NULLIF ( - 72, + 61 ) DIV 99 * - 34 + + - 51 + - - 13 * - - 36
----
417

skipif mysql # not compatible
query I rowsort label-715
SELECT - + NULLIF ( - 72, + 61 ) / 99 * - 34 + + - 51 + - - 13 * - - 36
----
417

query I rowsort
SELECT ALL - 5 * + 57 AS col1
----
-285

query I rowsort
SELECT - 95 * + + 86 AS col0
----
-8170

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

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

query I rowsort
SELECT ALL - - 65 * + 97 * - 89 + 78 + - 21 AS col0
----
-561088

query I rowsort
SELECT DISTINCT - + ( - + 53 ) * - 31
----
-1643

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-721
SELECT ALL - 4 * COALESCE ( 94, COUNT( * ), 5 DIV + + 40 * + 37 + + - 36 + - 52 * 53 DIV - 84 - - 83 ) * - + 17 - 96 + + - NULLIF ( + 20, - 23 * - 90 + - COALESCE ( + 97, - + 22 * - - 19 ) ) + 1 * - - 79 AS col0
----
6355

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL - 4 * COALESCE ( 94, COUNT ( * ), 5 / + + 40 * + 37 + + - 36 + - 52 * 53 / - 84 - - 83 ) * - + 17 - 96 + + - NULLIF ( + 20, - 23 * - 90 + - COALESCE ( + 97, - + 22 * - - 19 ) ) + 1 * - - 79 AS col0
----
6355

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-722
SELECT DISTINCT + 22 DIV - COALESCE ( + 29, - COUNT( * ) + + - 92 - - + 54 + - COUNT( * ) DIV - 13 DIV 46 ) + COALESCE ( 45, + 71 ) + - - 46 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT + 22 / - COALESCE ( + 29, - COUNT ( * ) + + - 92 - - + 54 + - COUNT ( * ) / - 13 / 46 ) + COALESCE ( 45, + 71 ) + - - 46 AS col1
----
91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-724
SELECT + COALESCE ( + CAST( NULL AS SIGNED ), - 4 * 3 )
----
-12

skipif mysql # not compatible
query I rowsort label-724
SELECT + COALESCE ( + CAST ( NULL AS INTEGER ), - 4 * 3 )
----
-12

query I rowsort
SELECT CASE + + 34 WHEN + - 51 THEN 76 / + 57 + 52 END AS col0
----
NULL

query I rowsort
SELECT + 11 + + ( - + 29 ) * 14
----
-395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-727
SELECT + CAST( COUNT( * ) AS SIGNED ) * 47 + - 60 + - 42 * 62 AS col0
----
-2617

skipif mysql # not compatible
query I rowsort label-727
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * 47 + - 60 + - 42 * 62 AS col0
----
-2617

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT + 93 - MAX( - 18 ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-728
SELECT + 93 - MAX ( - 18 ) AS col0
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-729
SELECT - 51 * 16, 73 + - - MAX( - - 46 ) AS col2
----
-816
119

skipif mysql # not compatible
query II rowsort label-729
SELECT - 51 * 16, 73 + - - MAX ( - - 46 ) AS col2
----
-816
119

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT + MAX( + 82 ) + + + 32 - + 49 col0
----
65

skipif mysql # not compatible
query I rowsort label-730
SELECT + MAX ( + 82 ) + + + 32 - + 49 col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-731
SELECT ALL 75 - - - ( - - 36 ) AS col1, - 33 * + CASE - COUNT( * ) WHEN + 93 THEN - COUNT( - - CAST( - 33 AS DECIMAL ) ) ELSE COUNT( * ) - 21 END * 19 AS col1
----
39
12540

skipif mysql # not compatible
query II rowsort label-731
SELECT ALL 75 - - - ( - - 36 ) AS col1, - 33 * + CASE - COUNT ( * ) WHEN + 93 THEN - COUNT ( - - CAST ( - 33 AS REAL ) ) ELSE COUNT ( * ) - 21 END * 19 AS col1
----
39
12540

query I rowsort
SELECT ALL ( - - 55 ) - - ( - 18 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-733
SELECT CAST( + SUM( ALL + 61 ) AS SIGNED ) + + 88 AS col0
----
149

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-735
SELECT ALL 15 - + COALESCE ( + - COUNT( * ), - 95 ) DIV 92 + - COUNT( * ) + - - 54 + - - 79 * 95
----
7573

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL 15 - + COALESCE ( + - COUNT ( * ), - 95 ) / 92 + - COUNT ( * ) + - - 54 + - - 79 * 95
----
7573

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT 28 + - COUNT( * ) * COUNT( * ) * 13 * + 0 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-737
SELECT 28 + - COUNT ( * ) * COUNT ( * ) * 13 * + 0 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT 37 * - CASE + + COUNT( * ) WHEN ( + COUNT( * ) ) + + 2 THEN 98 WHEN 41 / - - 11 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-738
SELECT 37 * - CASE + + COUNT ( * ) WHEN ( + COUNT ( * ) ) + + 2 THEN 98 WHEN 41 / - - 11 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 27 * + 57 * - + 39 AS col2
----
-60021

query I rowsort
SELECT ALL - 61 * + 81 col1
----
-4941

query I rowsort
SELECT DISTINCT - 44 * + 67 - + 10 AS col0
----
-2958

query II rowsort
SELECT ALL + - 35 * + - 33 * - + 43 - 80 + - - 24 + ( - + 27 ), 96 + - 16 AS col1
----
-49748
80

query I rowsort
SELECT 39 * + 33
----
1287

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT + 4 * + 6 + COUNT( * ) * - + 55 * + COUNT( * ) * 75 + 16
----
-4085

skipif mysql # not compatible
query I rowsort label-744
SELECT + 4 * + 6 + COUNT ( * ) * - + 55 * + COUNT ( * ) * 75 + 16
----
-4085

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

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

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

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

query I rowsort
SELECT ALL + 9 * 80 AS col2
----
720

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT - ( + ( + 25 ) ) DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-748
SELECT - ( + ( + 25 ) ) / 97 AS col1
----
0

query I rowsort
SELECT 8 * + 86
----
688

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT ALL + MIN( + + 32 ) + 89 * + 65
----
5817

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL + MIN ( + + 32 ) + 89 * + 65
----
5817

query II rowsort
SELECT 16 + + 25, 48 * - 22 AS col0
----
41
-1056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-752
SELECT + ( - + 53 ) AS col2, CASE + ( + + MIN( - 8 ) ) WHEN + AVG ( DISTINCT 45 ) * + 21 * + COUNT( * ) * + COALESCE ( + COUNT( * ), - CAST( NULL AS SIGNED ) * 57 + - 45 + - COUNT( * ) / 30 ) THEN + 96 WHEN - COUNT( * ) THEN - 25 END * 53 - 10 + - 40 + - - 8 AS col1
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-752
SELECT + ( - + 53 ) AS col2, CASE + ( + + MIN ( - 8 ) ) WHEN + AVG ( DISTINCT 45 ) * + 21 * + COUNT ( * ) * + COALESCE ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) * 57 + - 45 + - COUNT ( * ) / 30 ) THEN + 96 WHEN - COUNT ( * ) THEN - 25 END * 53 - 10 + - 40 + - - 8 AS col1
----
-53
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT ALL - - CAST( 71 AS SIGNED ) + - SUM( DISTINCT + + 99 ) + CAST( + 86 AS SIGNED ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL - - CAST ( 71 AS INTEGER ) + - SUM ( DISTINCT + + 99 ) + CAST ( + 86 AS INTEGER ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-754
SELECT + 86 * 47, + ( + - 75 ) * + CASE - 56 WHEN + 35 THEN NULL WHEN + + 94 + + + 27 THEN + 39 END + 99 * - CASE CASE + + 85 WHEN - SUM( DISTINCT - COALESCE ( - - 96, + + 82 * + ( 59 ) ) ) THEN NULL WHEN + 82 * COUNT( * ) THEN - + 51 WHEN - + 60 * + 92 + COUNT( 70 ) + - 21 + + 31 * - CAST( 44 AS DECIMAL ) / 51 THEN - + 25 END WHEN COUNT( * ) + 5 THEN NULL WHEN - 85 THEN NULL ELSE - - 9 * + + 39 * ( + 48 ) / - 75 + NULLIF ( - AVG ( ALL 68 ), 60 / + SUM( DISTINCT - 48 ) * 73 ) + 82 END * 70 AS col2
----
4042
NULL

skipif mysql # not compatible
query II rowsort label-754
SELECT + 86 * 47, + ( + - 75 ) * + CASE - 56 WHEN + 35 THEN NULL WHEN + + 94 + + + 27 THEN + 39 END + 99 * - CASE CASE + + 85 WHEN - SUM ( DISTINCT - COALESCE ( - - 96, + + 82 * + ( 59 ) ) ) THEN NULL WHEN + 82 * COUNT ( * ) THEN - + 51 WHEN - + 60 * + 92 + COUNT ( 70 ) + - 21 + + 31 * - CAST ( 44 AS REAL ) / 51 THEN - + 25 END WHEN COUNT ( * ) + 5 THEN NULL WHEN - 85 THEN NULL ELSE - - 9 * + + 39 * ( + 48 ) / - 75 + NULLIF ( - AVG ( ALL 68 ), 60 / + SUM ( DISTINCT - 48 ) * 73 ) + 82 END * 70 AS col2
----
4042
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-756
SELECT 9 + 38 - 20 AS col1, CASE - - 41 WHEN - 15 - 24 + + - 84 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 9 END AS col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-756
SELECT 9 + 38 - 20 AS col1, CASE - - 41 WHEN - 15 - 24 + + - 84 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 9 END AS col2
----
27
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-757
SELECT + 81, MAX( + 54 ) * - - 25 AS col0
----
81
1350

skipif mysql # not compatible
query II rowsort label-757
SELECT + 81, MAX ( + 54 ) * - - 25 AS col0
----
81
1350

query I rowsort
SELECT DISTINCT 16 * + + 16 * - 36 * 96
----
-884736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-759
SELECT 93 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-759
SELECT 93 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-760
SELECT 99 DIV - + CASE + 62 WHEN - 41 THEN + 27 * + - COUNT( * ) * - 32 + + 30 END AS col1, 19 + - 52 DIV 94 * - 34 + - - COUNT( * )
----
NULL
20

skipif mysql # not compatible
query II rowsort label-760
SELECT 99 / - + CASE + 62 WHEN - 41 THEN + 27 * + - COUNT ( * ) * - 32 + + 30 END AS col1, 19 + - 52 / 94 * - 34 + - - COUNT ( * )
----
NULL
20

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

skipif mysql # not compatible
query II rowsort label-761
SELECT DISTINCT - 70 AS col0, COUNT ( * )
----
-70
1

onlyif mysql # aggregate syntax: 
query II rowsort label-762
SELECT 61 AS col1, + 70 * - - COUNT( * ) - + 54 + - + 13
----
61
3

skipif mysql # not compatible
query II rowsort label-762
SELECT 61 AS col1, + 70 * - - COUNT ( * ) - + 54 + - + 13
----
61
3

query I rowsort
SELECT 83 * - 99
----
-8217

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT 99 - - 89 * 57 + - + SUM( ALL 80 ) AS col1
----
5092

skipif mysql # not compatible
query I rowsort label-764
SELECT 99 - - 89 * 57 + - + SUM ( ALL 80 ) AS col1
----
5092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-765
SELECT COALESCE ( - - 95, - + CAST( NULL AS SIGNED ), 36 ) * + + 62 * + CASE + + NULLIF ( - + 59, - CAST( NULL AS SIGNED ) + + 1 ) WHEN - 85 / 8 - - ( 23 ) THEN NULL ELSE CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-765
SELECT COALESCE ( - - 95, - + CAST ( NULL AS INTEGER ), 36 ) * + + 62 * + CASE + + NULLIF ( - + 59, - CAST ( NULL AS INTEGER ) + + 1 ) WHEN - 85 / 8 - - ( 23 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END AS col2
----
NULL

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

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

query I rowsort
SELECT 24 * - + 23 AS col1
----
-552

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

query I rowsort
SELECT ALL - 4 * + 50 * - 82
----
16400

query I rowsort
SELECT + 18 + + 95 + ( 14 )
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ( COUNT( * ) ) + + 12
----
13

skipif mysql # not compatible
query I rowsort label-771
SELECT ( COUNT ( * ) ) + + 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT ALL + NULLIF ( - 16, + + ( 17 ) * + COALESCE ( + - 0, + 7 + + - MIN( 43 ) + + 84 * + 70 * - 42 ) ) + + + 19 * + MIN( ALL + 83 ) AS col1
----
1561

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL + NULLIF ( - 16, + + ( 17 ) * + COALESCE ( + - 0, + 7 + + - MIN ( 43 ) + + 84 * + 70 * - 42 ) ) + + + 19 * + MIN ( ALL + 83 ) AS col1
----
1561

query I rowsort
SELECT DISTINCT + 71 * - - 54 col2
----
3834

query I rowsort
SELECT DISTINCT 67 + + 81
----
148

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

query I rowsort
SELECT 74 - + 11 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT - COUNT( - + 6 ) + - - 17 col1
----
16

skipif mysql # not compatible
query I rowsort label-777
SELECT - COUNT ( - + 6 ) + - - 17 col1
----
16

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

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

query I rowsort
SELECT ALL - NULLIF ( + - 75, - - 30 * 74 ) col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT ALL - 53 * SUM( ALL 59 ) + - 81 * + 83
----
-9850

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL - 53 * SUM ( ALL 59 ) + - 81 * + 83
----
-9850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-781
SELECT ( + - 79 ) + - CASE - - CASE - 27 WHEN + 29 THEN - 54 * - 74 + + 41 * + + 39 / - - 0 / - ( ( + 48 ) ) WHEN - 32 * - ( + 57 ) + + + 59 THEN - 81 * + 69 + + 25 + - 52 WHEN + + 77 + + 30 * + - 76 - - 4 + - + 45 * COUNT( CASE + 7 WHEN + + ( + 8 ) THEN - - 25 * 58 ELSE NULL END ) THEN - 28 - - 42 ELSE NULL END WHEN - - COALESCE ( - - 97, 66 / - 7, CAST( + CASE + CASE + 67 WHEN - SUM( ALL - 52 ) + - 48 + - 24 + 65 THEN CAST( - MIN( ALL ( + 69 ) ) AS DECIMAL ) * 0 + 66 ELSE NULL END WHEN 24 * + 63 THEN ( + 10 ) ELSE NULL END AS DECIMAL ) ) THEN 50 WHEN CAST( 11 AS SIGNED ) THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-781
SELECT ( + - 79 ) + - CASE - - CASE - 27 WHEN + 29 THEN - 54 * - 74 + + 41 * + + 39 / - - 0 / - ( ( + 48 ) ) WHEN - 32 * - ( + 57 ) + + + 59 THEN - 81 * + 69 + + 25 + - 52 WHEN + + 77 + + 30 * + - 76 - - 4 + - + 45 * COUNT ( CASE + 7 WHEN + + ( + 8 ) THEN - - 25 * 58 ELSE NULL END ) THEN - 28 - - 42 ELSE NULL END WHEN - - COALESCE ( - - 97, 66 / - 7, CAST ( + CASE + CASE + 67 WHEN - SUM ( ALL - 52 ) + - 48 + - 24 + 65 THEN CAST ( - MIN ( ALL ( + 69 ) ) AS REAL ) * 0 + 66 ELSE NULL END WHEN 24 * + 63 THEN ( + 10 ) ELSE NULL END AS REAL ) ) THEN 50 WHEN CAST ( 11 AS INTEGER ) THEN NULL ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-782
SELECT + 98 AS col0, CAST( NULL AS DECIMAL ) / - - 72 AS col1
----
98
NULL

skipif mysql # not compatible
query II rowsort label-782
SELECT + 98 AS col0, CAST ( NULL AS REAL ) / - - 72 AS col1
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT ALL + 31 * + - MIN( DISTINCT - + 52 ) + + 72 + + 37
----
1721

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL + 31 * + - MIN ( DISTINCT - + 52 ) + + 72 + + 37
----
1721

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT 79 * + - 15 + + NULLIF ( - + 99, COUNT( * ) ) AS col1
----
-1284

skipif mysql # not compatible
query I rowsort label-784
SELECT 79 * + - 15 + + NULLIF ( - + 99, COUNT ( * ) ) AS col1
----
-1284

query I rowsort
SELECT 23 * 53
----
1219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-786
SELECT - 84 * + CASE - 22 WHEN - - 92 THEN 47 ELSE + + 6 * - CAST( NULL AS SIGNED ) END * - ( + - 76 ) + 77 * - 93 * + MAX( 5 ) + + + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT - 84 * + CASE - 22 WHEN - - 92 THEN 47 ELSE + + 6 * - CAST ( NULL AS INTEGER ) END * - ( + - 76 ) + 77 * - 93 * + MAX ( 5 ) + + + 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-787
SELECT - COUNT( ALL + - 86 ) * - NULLIF ( - 2, ( - ( - 65 ) ) + ( + + 14 ) ) + COALESCE ( + 51, + - COUNT( * ), + 18 ), MIN( + 91 ) * + 91 AS col1
----
49
8281

skipif mysql # not compatible
query II rowsort label-787
SELECT - COUNT ( ALL + - 86 ) * - NULLIF ( - 2, ( - ( - 65 ) ) + ( + + 14 ) ) + COALESCE ( + 51, + - COUNT ( * ), + 18 ), MIN ( + 91 ) * + 91 AS col1
----
49
8281

query I rowsort
SELECT DISTINCT 11 * - + 26
----
-286

query I rowsort
SELECT DISTINCT + 54 col0
----
54

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

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

query I rowsort
SELECT DISTINCT - 15 * - 76 * 58 AS col1
----
66120

query I rowsort
SELECT - 16 * NULLIF ( - 15, + - 4 )
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-793
SELECT ALL + MAX( DISTINCT - 88 ), COALESCE ( - CAST( NULL AS SIGNED ), + + 33, - + MAX( - 85 ) ) col1
----
-88
33

skipif mysql # not compatible
query II rowsort label-793
SELECT ALL + MAX ( DISTINCT - 88 ), COALESCE ( - CAST ( NULL AS INTEGER ), + + 33, - + MAX ( - 85 ) ) col1
----
-88
33

onlyif mysql # aggregate syntax: 
query II rowsort label-794
SELECT 33 * 49 + - - ( + + MIN( ALL - + 65 ) ) AS col0, 66 AS col0
----
1552
66

skipif mysql # not compatible
query II rowsort label-794
SELECT 33 * 49 + - - ( + + MIN ( ALL - + 65 ) ) AS col0, 66 AS col0
----
1552
66

query I rowsort
SELECT - 10 + - 53 AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-796
SELECT ALL + SUM( DISTINCT 48 ) AS col2, 62 + - + ( - 90 ) + 61 * 83 * 63 * - 64 / 27 * - CASE + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN - 40 * - + ( + COUNT( * ) ) END AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-796
SELECT ALL + SUM ( DISTINCT 48 ) AS col2, 62 + - + ( - 90 ) + 61 * 83 * 63 * - 64 / 27 * - CASE + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN - 40 * - + ( + COUNT ( * ) ) END AS col0
----
48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT - 86 * - 5 * COUNT( * )
----
430

skipif mysql # not compatible
query I rowsort label-797
SELECT - 86 * - 5 * COUNT ( * )
----
430

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT ALL COALESCE ( 49, + CAST( NULL AS SIGNED ) )
----
49

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL COALESCE ( 49, + CAST ( NULL AS INTEGER ) )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-800
SELECT ALL CASE 83 WHEN - 89 * + - COUNT( * ) + - - CAST( + 14 AS SIGNED ) THEN NULL WHEN 66 + 48 + 1 * + 51 + - 29 THEN + 23 ELSE + - ( + 10 ) + - 76 + + 15 * + 39 + - + 63 END * - + 61 AS col2, ( - + 54 ) + + CAST( - - 11 AS SIGNED )
----
-26596
-43

skipif mysql # not compatible
query II rowsort label-800
SELECT ALL CASE 83 WHEN - 89 * + - COUNT ( * ) + - - CAST ( + 14 AS INTEGER ) THEN NULL WHEN 66 + 48 + 1 * + 51 + - 29 THEN + 23 ELSE + - ( + 10 ) + - 76 + + 15 * + 39 + - + 63 END * - + 61 AS col2, ( - + 54 ) + + CAST ( - - 11 AS INTEGER )
----
-26596
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-801
SELECT DISTINCT ( + 42 ) + - + 58 * + + 40 AS col1, COUNT( * ) DIV + COUNT( * ) AS col0
----
-2278
1

skipif mysql # not compatible
query II rowsort label-801
SELECT DISTINCT ( + 42 ) + - + 58 * + + 40 AS col1, COUNT ( * ) / + COUNT ( * ) AS col0
----
-2278
1

query I rowsort
SELECT DISTINCT + ( - 12 ) * 45 AS col0
----
-540

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT + COUNT( * ) + + - 33
----
-32

skipif mysql # not compatible
query I rowsort label-804
SELECT + COUNT ( * ) + + - 33
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-805
SELECT ALL ( + COUNT( - ( + 94 ) ) ) AS col2, + 63 * - 59 AS col1
----
1
-3717

skipif mysql # not compatible
query II rowsort label-805
SELECT ALL ( + COUNT ( - ( + 94 ) ) ) AS col2, + 63 * - 59 AS col1
----
1
-3717

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT DISTINCT - CASE - 78 WHEN - - 18 THEN NULL WHEN ( 50 ) THEN NULL ELSE MAX( ALL 5 ) + 72 END AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT - CASE - 78 WHEN - - 18 THEN NULL WHEN ( 50 ) THEN NULL ELSE MAX ( ALL 5 ) + 72 END AS col1
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-807
SELECT ALL 55 + - - 9 DIV 61 + + - 31
----
24

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL 55 + - - 9 / 61 + + - 31
----
24

query I rowsort
SELECT - COALESCE ( 1, 99 ) * - 53 - - - 93
----
-40

query I rowsort
SELECT ALL 69 + + 12 - ( 33 ) + - 46 * 39 AS col2
----
-1746

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

onlyif mysql # DIV for integer division: 
query I rowsort label-811
SELECT + + 28 DIV 70 col0
----
0

skipif mysql # not compatible
query I rowsort label-811
SELECT + + 28 / 70 col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT DISTINCT COUNT( * ) + + ( + ( - 72 ) ) * + 42 - 76 AS col0
----
-3099

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT COUNT ( * ) + + ( + ( - 72 ) ) * + 42 - 76 AS col0
----
-3099

query I rowsort
SELECT ALL 14 * + 44 AS col1
----
616

query I rowsort
SELECT ALL - 68 + + 94 AS col1
----
26

query II rowsort
SELECT DISTINCT + 99 * - 24, 31 AS col2
----
-2376
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-817
SELECT + 2 * - + CAST( + 46 AS SIGNED ) * 41, + ( 27 ) DIV - 28 + COUNT( - 22 ) col1
----
-3772
1

skipif mysql # not compatible
query II rowsort label-817
SELECT + 2 * - + CAST ( + 46 AS INTEGER ) * 41, + ( 27 ) / - 28 + COUNT ( - 22 ) col1
----
-3772
1

onlyif mysql # DIV for integer division: 
query I rowsort label-818
SELECT ALL 21 DIV - + 51 + - - 40 - + 38 DIV - 76 + - 95 col2
----
-55

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL 21 / - + 51 + - - 40 - + 38 / - 76 + - 95 col2
----
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT ALL - COUNT( * ) * + 12 + 86 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL - COUNT ( * ) * + 12 + 86 AS col1
----
74

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-823
SELECT DISTINCT 42 * - CAST( - - CASE + + 12 WHEN COUNT( * ) * - 42 THEN - + 33 WHEN - 57 THEN - 8 ELSE NULL END AS SIGNED ) - 31 AS col1, - 80 * COUNT( * ) AS col1
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-823
SELECT DISTINCT 42 * - CAST ( - - CASE + + 12 WHEN COUNT ( * ) * - 42 THEN - + 33 WHEN - 57 THEN - 8 ELSE NULL END AS INTEGER ) - 31 AS col1, - 80 * COUNT ( * ) AS col1
----
NULL
-80

query I rowsort
SELECT ALL + 38 * 60
----
2280

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-826
SELECT 47 * 29 - + CAST( NULL AS SIGNED ) + SUM( + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-826
SELECT 47 * 29 - + CAST ( NULL AS INTEGER ) + SUM ( + 53 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT ( CASE WHEN ( + COUNT( * ) ) IS NULL THEN NULL ELSE + 3 END ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-827
SELECT ( CASE WHEN ( + COUNT ( * ) ) IS NULL THEN NULL ELSE + 3 END ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT - 86 * - 8 * - - CASE WHEN + ( - COUNT( * ) ) NOT BETWEEN 47 + - 12 AND + 77 - + - 42 + + 30 * - 58 / ( 39 ) THEN 52 * - - MAX( - 64 ) * + COUNT( * ) END * 18 AS col2
----
-41213952

skipif mysql # not compatible
query I rowsort label-828
SELECT - 86 * - 8 * - - CASE WHEN + ( - COUNT ( * ) ) NOT BETWEEN 47 + - 12 AND + 77 - + - 42 + + 30 * - 58 / ( 39 ) THEN 52 * - - MAX ( - 64 ) * + COUNT ( * ) END * 18 AS col2
----
-41213952

query I rowsort
SELECT ALL + ( - 32 ) * 15 AS col2
----
-480

query I rowsort
SELECT - 62 * 97 * + - 8 * - 76
----
-3656512

query I rowsort
SELECT DISTINCT + ( - 21 ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-832
SELECT - 50 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-832
SELECT - 50 / + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT ALL + COUNT( * ) * + 26 + 7 + + 61 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + COUNT ( * ) * + 26 + 7 + + 61 AS col2
----
94

query I rowsort
SELECT - 27 * - 82
----
2214

query I rowsort
SELECT COALESCE ( - - 11, + + 4 + + 11, 52 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ALL 22 * + 20 + COUNT( * ) AS col0
----
441

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL 22 * + 20 + COUNT ( * ) AS col0
----
441

query I rowsort
SELECT + 91 * + 73 * NULLIF ( 64, 77 ) AS col0
----
425152

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT - SUM( - 11 ) * + - 6 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-838
SELECT - SUM ( - 11 ) * + - 6 AS col0
----
-66

query I rowsort
SELECT - 84 + - 40 AS col1
----
-124

query I rowsort
SELECT ALL + 4 * 62
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT ALL - COUNT( DISTINCT 78 ) + - 57
----
-58

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL - COUNT ( DISTINCT 78 ) + - 57
----
-58

query I rowsort
SELECT DISTINCT + 86 * + 88 AS col2
----
7568

query I rowsort
SELECT ALL + 4 * 29 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT - COUNT( * ) - - ( 21 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-844
SELECT - COUNT ( * ) - - ( 21 ) AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-845
SELECT DISTINCT CAST( - 95 AS SIGNED ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT CAST ( - 95 AS INTEGER ) AS col1
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT - 94 * MAX( - 31 )
----
2914

skipif mysql # not compatible
query I rowsort label-847
SELECT - 94 * MAX ( - 31 )
----
2914

query I rowsort
SELECT + 0 * COALESCE ( 85, 59 ) col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT 77 + + COUNT( ALL - 72 - 27 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-850
SELECT 77 + + COUNT ( ALL - 72 - 27 ) AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-851
SELECT ALL 58 DIV 50 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-851
SELECT ALL 58 / 50 AS col1
----
1

query I rowsort
SELECT 83 * - 93 AS col2
----
-7719

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT MAX( DISTINCT 66 ) + + 6 * ( 31 )
----
252

skipif mysql # not compatible
query I rowsort label-853
SELECT MAX ( DISTINCT 66 ) + + 6 * ( 31 )
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT MIN( + 57 ) * + 60
----
3420

skipif mysql # not compatible
query I rowsort label-854
SELECT MIN ( + 57 ) * + 60
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT ALL CASE + 53 WHEN + 67 THEN + ( 60 ) / SUM( ALL + 51 ) WHEN + 91 * - 68 + + 21 THEN - 3 END * - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL CASE + 53 WHEN + 67 THEN + ( 60 ) / SUM ( ALL + 51 ) WHEN + 91 * - 68 + + 21 THEN - 3 END * - 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT COALESCE ( CASE - 79 WHEN - 41 THEN NULL ELSE + MAX( DISTINCT + 62 ) * 86 END, 80 ) + + 13
----
5345

skipif mysql # not compatible
query I rowsort label-856
SELECT COALESCE ( CASE - 79 WHEN - 41 THEN NULL ELSE + MAX ( DISTINCT + 62 ) * 86 END, 80 ) + + 13
----
5345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT ( - CAST( 26 AS SIGNED ) ) * - 18
----
468

skipif mysql # not compatible
query I rowsort label-857
SELECT ( - CAST ( 26 AS INTEGER ) ) * - 18
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT ALL COALESCE ( - COUNT( * ), 17 ) * 30 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL COALESCE ( - COUNT ( * ), 17 ) * 30 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT ( MIN( - 10 ) ) + 4 * - 17
----
-78

skipif mysql # not compatible
query I rowsort label-859
SELECT ( MIN ( - 10 ) ) + 4 * - 17
----
-78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL 56 + - COUNT( - 5 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL 56 + - COUNT ( - 5 ) AS col1
----
55

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

query I rowsort
SELECT 71 * - 72 + ( 86 + 74 ) * - 75
----
-17112

query I rowsort
SELECT - 62 * - 93 + + 28 AS col2
----
5794

query I rowsort
SELECT 46 * + 26
----
1196

query I rowsort
SELECT 53 + - 56 * CASE 96 WHEN 62 THEN + 48 WHEN + ( 32 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 3 + 17 col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT 24 + + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-868
SELECT 24 + + COUNT ( * ) AS col0
----
25

query I rowsort
SELECT 62 + 17 * 64
----
1150

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

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

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

skipif mysql # not compatible
query I rowsort label-871
SELECT 69 + 92 * + COUNT ( * ) AS col0
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-872
SELECT 43 DIV - 37
----
-1

skipif mysql # not compatible
query I rowsort label-872
SELECT 43 / - 37
----
-1

query I rowsort
SELECT ALL 90 + + 35
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT DISTINCT - COUNT( * ) - 86
----
-87

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT - COUNT ( * ) - 86
----
-87

query I rowsort
SELECT 29 * 13 AS col2
----
377

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-876
SELECT ALL - - 21 - + 75 DIV COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL - - 21 - + 75 / COUNT ( * ) AS col2
----
-54

query I rowsort
SELECT 6 + 26 AS col0
----
32

query I rowsort
SELECT + ( - 59 ) * - 75 col0
----
4425

query I rowsort
SELECT - - ( ( 15 ) )
----
15

query I rowsort
SELECT 29 * + 29
----
841

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

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

query I rowsort
SELECT DISTINCT - - 66 * 27 col0
----
1782

query I rowsort
SELECT DISTINCT - COALESCE ( 60, 15 )
----
-60

query I rowsort
SELECT 8 * + 9 AS col0
----
72

query I rowsort
SELECT DISTINCT - - 74 * 57 AS col0
----
4218

onlyif mysql # DIV for integer division: 
query I rowsort label-886
SELECT 88 DIV 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-886
SELECT 88 / 89 AS col1
----
0

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

query I rowsort
SELECT DISTINCT - 38 + + - 89
----
-127

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-891
SELECT 8 DIV + - 31
----
0

skipif mysql # not compatible
query I rowsort label-891
SELECT 8 / + - 31
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-892
SELECT COUNT( * ) * - + 20 * + CAST( + 77 AS SIGNED )
----
-1540

skipif mysql # not compatible
query I rowsort label-892
SELECT COUNT ( * ) * - + 20 * + CAST ( + 77 AS INTEGER )
----
-1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT DISTINCT CAST( - 13 AS SIGNED ) + - 89 AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT CAST ( - 13 AS INTEGER ) + - 89 AS col1
----
-102

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

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

query I rowsort
SELECT ALL 98 + - + 81 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL COALESCE ( - + CASE - 3 WHEN - 74 THEN - COUNT( * ) END, - 56 ) + - COUNT( ALL 13 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL COALESCE ( - + CASE - 3 WHEN - 74 THEN - COUNT ( * ) END, - 56 ) + - COUNT ( ALL 13 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL 62 + MIN( 26 ) - SUM( DISTINCT 82 - + 98 ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL 62 + MIN ( 26 ) - SUM ( DISTINCT 82 - + 98 ) AS col1
----
104

query I rowsort
SELECT 33 * + - 33 * + ( 47 )
----
-51183

query I rowsort
SELECT DISTINCT 97 * - ( 71 )
----
-6887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-900
SELECT CAST( + 11 AS SIGNED ) * 86 AS col0
----
946

skipif mysql # not compatible
query I rowsort label-900
SELECT CAST ( + 11 AS INTEGER ) * 86 AS col0
----
946

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

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT COUNT( * ) * 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-902
SELECT COUNT ( * ) * 93 AS col1
----
93

query I rowsort
SELECT ALL - + ( + 68 ) AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-904
SELECT + COUNT( - - CAST( NULL AS SIGNED ) ) + CAST( CASE - COUNT( * ) WHEN - 18 * - COUNT( * ) THEN ( 12 ) * NULLIF ( 87, 3 + 72 ) ELSE NULL END - ( + COUNT( ALL 93 ) ) AS SIGNED ) * + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-904
SELECT + COUNT ( - - CAST ( NULL AS INTEGER ) ) + CAST ( CASE - COUNT ( * ) WHEN - 18 * - COUNT ( * ) THEN ( 12 ) * NULLIF ( 87, 3 + 72 ) ELSE NULL END - ( + COUNT ( ALL 93 ) ) AS INTEGER ) * + 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-905
SELECT - + COALESCE ( - NULLIF ( + 4, CASE - 34 WHEN - 39 THEN + 67 * 96 WHEN 30 * + COUNT( * ) + - 95 DIV 21 THEN AVG ( 67 ) ELSE + COUNT( * ) END DIV 90 ), - ( - 39 ), + 90 * 27 + + ( COUNT( * ) ) DIV 28 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-905
SELECT - + COALESCE ( - NULLIF ( + 4, CASE - 34 WHEN - 39 THEN + 67 * 96 WHEN 30 * + COUNT ( * ) + - 95 / 21 THEN AVG ( 67 ) ELSE + COUNT ( * ) END / 90 ), - ( - 39 ), + 90 * 27 + + ( COUNT ( * ) ) / 28 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT + ( + + 36 ) * + 32 + + 58 * + COUNT( * )
----
1210

skipif mysql # not compatible
query I rowsort label-906
SELECT + ( + + 36 ) * + 32 + + 58 * + COUNT ( * )
----
1210

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT - ( MIN( DISTINCT - ( 86 ) ) ) * + 46
----
3956

skipif mysql # not compatible
query I rowsort label-908
SELECT - ( MIN ( DISTINCT - ( 86 ) ) ) * + 46
----
3956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-909
SELECT - COUNT( DISTINCT - 41 ) DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-909
SELECT - COUNT ( DISTINCT - 41 ) / + 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT + 21 + ( SUM( ALL 62 ) )
----
83

skipif mysql # not compatible
query I rowsort label-910
SELECT + 21 + ( SUM ( ALL 62 ) )
----
83

query I rowsort
SELECT + - 98 * + 62 col2
----
-6076

query I rowsort
SELECT + 34 + 93 + - 88 * + 37 AS col0
----
-3129

query I rowsort
SELECT DISTINCT 9 * - + 86 + 43
----
-731

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

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

query I rowsort
SELECT - - 48 - + 71 AS col2
----
-23

query I rowsort
SELECT + + 4 * - 27 + + ( 85 + + 63 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT - - 99 + - COUNT( * ) + 56
----
154

skipif mysql # not compatible
query I rowsort label-917
SELECT - - 99 + - COUNT ( * ) + 56
----
154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT - 46 + + ( COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-919
SELECT - 46 + + ( COUNT ( * ) )
----
-45

query I rowsort
SELECT + 58 + - 69 AS col0
----
-11

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

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

query I rowsort
SELECT ALL - 25 + + 12 AS col2
----
-13

query I rowsort
SELECT - 34 + 73 + 93 * 30 AS col0
----
2829

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT - 10 + - COUNT( * ) + MIN( ALL ( 41 ) )
----
30

skipif mysql # not compatible
query I rowsort label-925
SELECT - 10 + - COUNT ( * ) + MIN ( ALL ( 41 ) )
----
30

query I rowsort
SELECT ALL + CASE + 0 WHEN 27 * - 59 + 68 * 28 THEN 41 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT DISTINCT + ( + - CASE - + 39 WHEN + COUNT( * ) + - 29 THEN SUM( 44 ) * + 67 - + 67 * 86 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT + ( + - CASE - + 39 WHEN + COUNT ( * ) + - 29 THEN SUM ( 44 ) * + 67 - + 67 * 86 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT DISTINCT - 8 * + COUNT( * ) * - + 47 + + 65
----
441

skipif mysql # not compatible
query I rowsort label-928
SELECT DISTINCT - 8 * + COUNT ( * ) * - + 47 + + 65
----
441

query I rowsort
SELECT ( 27 ) col0
----
27

query I rowsort
SELECT ALL + 76 * + 55 * COALESCE ( + 3, - 8 * + 91, - 2 * 24 + 21 ) + 42
----
12582

query I rowsort
SELECT - 68 * - ( + ( + 48 ) ) AS col1
----
3264

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

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

query I rowsort
SELECT NULLIF ( + 51, 28 ) AS col1
----
51

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

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

query I rowsort
SELECT + 65 * 76 + ( - 99 )
----
4841

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-937
SELECT ALL + 26, 68 * + 72 * SUM( 99 ) AS col0
----
26
484704

skipif mysql # not compatible
query II rowsort label-937
SELECT ALL + 26, 68 * + 72 * SUM ( 99 ) AS col0
----
26
484704

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT 45 * 79 + 85 + - 40 * COUNT( ALL - 35 )
----
3600

skipif mysql # not compatible
query I rowsort label-938
SELECT 45 * 79 + 85 + - 40 * COUNT ( ALL - 35 )
----
3600

onlyif mysql # DIV for integer division: 
query I rowsort label-939
SELECT + - 95 DIV + + NULLIF ( + 98, - 79 * 39 )
----
0

skipif mysql # not compatible
query I rowsort label-939
SELECT + - 95 / + + NULLIF ( + 98, - 79 * 39 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT + 46 * 67 + 13 + 16 DIV 65 * + 19
----
3095

skipif mysql # not compatible
query I rowsort label-940
SELECT + 46 * 67 + 13 + 16 / 65 * + 19
----
3095

query II rowsort
SELECT ALL + 87 AS col2, 68
----
87
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT + 39 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT + 39 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-943
SELECT DISTINCT + 82 * + NULLIF ( COALESCE ( - 39, - COALESCE ( + COUNT( DISTINCT CAST( 73 AS SIGNED ) ), + COUNT( * ) * - 83 ) ), - 70 ) + COUNT( * ) AS col1
----
-3197

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT + 82 * + NULLIF ( COALESCE ( - 39, - COALESCE ( + COUNT ( DISTINCT CAST ( 73 AS INTEGER ) ), + COUNT ( * ) * - 83 ) ), - 70 ) + COUNT ( * ) AS col1
----
-3197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-944
SELECT + + COUNT( * ) + + + 85 + - + 84 DIV COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-944
SELECT + + COUNT ( * ) + + + 85 + - + 84 / COUNT ( * )
----
2

query II rowsort
SELECT ALL + - 36, - ( + 6 ) AS col1
----
-36
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-946
SELECT - 28 AS col2, COALESCE ( 47, + MAX( DISTINCT - 54 ), CASE + 46 WHEN 48 THEN + COALESCE ( 85, 5 + + COUNT( * ) ) ELSE 38 * 44 END ) * 39
----
-28
1833

skipif mysql # not compatible
query II rowsort label-946
SELECT - 28 AS col2, COALESCE ( 47, + MAX ( DISTINCT - 54 ), CASE + 46 WHEN 48 THEN + COALESCE ( 85, 5 + + COUNT ( * ) ) ELSE 38 * 44 END ) * 39
----
-28
1833

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT ALL - 38 * - + COUNT( * ) * - - 40 - + COUNT( * ) * 12
----
1508

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL - 38 * - + COUNT ( * ) * - - 40 - + COUNT ( * ) * 12
----
1508

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT + - 94 * + NULLIF ( - SUM( ALL + 34 ), - SUM( DISTINCT + 38 ) ) AS col0
----
3196

skipif mysql # not compatible
query I rowsort label-948
SELECT + - 94 * + NULLIF ( - SUM ( ALL + 34 ), - SUM ( DISTINCT + 38 ) ) AS col0
----
3196

query I rowsort
SELECT ALL - 88 + - + 71 AS col1
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-950
SELECT DISTINCT ( + + 38 ) * - CAST( COUNT( * ) AS SIGNED ) * 2 + - 2
----
-78

skipif mysql # not compatible
query I rowsort label-950
SELECT DISTINCT ( + + 38 ) * - CAST ( COUNT ( * ) AS INTEGER ) * 2 + - 2
----
-78

query I rowsort
SELECT 2 * + + 74 * 64 + - 37 AS col1
----
9435

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT + 99 DIV 47 + - - 48 * NULLIF ( + 79 - 7, + 0 ) col0
----
3458

skipif mysql # not compatible
query I rowsort label-952
SELECT + 99 / 47 + - - 48 * NULLIF ( + 79 - 7, + 0 ) col0
----
3458

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT COUNT( 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-953
SELECT COUNT ( 89 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT DISTINCT - 6 * + COUNT( - 87 ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT - 6 * + COUNT ( - 87 ) col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT ALL 65 + - COALESCE ( - 44, 78 * - CASE 86 WHEN 88 THEN - COUNT( * ) + 51 WHEN + 71 THEN COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE NULL END ) AS col1
----
109

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL 65 + - COALESCE ( - 44, 78 * - CASE 86 WHEN 88 THEN - COUNT ( * ) + 51 WHEN + 71 THEN COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE NULL END ) AS col1
----
109

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

skipif mysql # not compatible
query I rowsort label-956
SELECT + 34 / + + COUNT ( * )
----
34

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

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

query I rowsort
SELECT DISTINCT 26 col1
----
26

query I rowsort
SELECT ALL - 21 + + - 33 * 31 * 71 + 6 AS col1
----
-72648

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-961
SELECT - ( + 32 ) AS col0, - CAST( NULL AS SIGNED ) * + - 62 * COUNT( DISTINCT + 8 )
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-961
SELECT - ( + 32 ) AS col0, - CAST ( NULL AS INTEGER ) * + - 62 * COUNT ( DISTINCT + 8 )
----
-32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT - COUNT( * ) + - - 58 - + - 81
----
138

skipif mysql # not compatible
query I rowsort label-962
SELECT - COUNT ( * ) + - - 58 - + - 81
----
138

query I rowsort
SELECT DISTINCT ( + - 76 ) + + 99 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT ALL + CASE - - 20 WHEN - 74 THEN 72 * + 82 WHEN 41 THEN 53 WHEN - 33 * - 78 THEN 33 * + ( COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL + CASE - - 20 WHEN - 74 THEN 72 * + 82 WHEN 41 THEN 53 WHEN - 33 * - 78 THEN 33 * + ( COUNT ( * ) ) END AS col1
----
NULL

query I rowsort
SELECT + 20 + + - 70 * 90 AS col2
----
-6280

query I rowsort
SELECT ALL + 59 * - ( + + 38 )
----
-2242

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT - COUNT( * ) * - MIN( ALL 43 )
----
43

skipif mysql # not compatible
query I rowsort label-967
SELECT - COUNT ( * ) * - MIN ( ALL 43 )
----
43

query I rowsort
SELECT ALL ( + + 25 ) * 58
----
1450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-969
SELECT + ( ( + 62 ) ) DIV ( COUNT( * ) ) - 78
----
-16

skipif mysql # not compatible
query I rowsort label-969
SELECT + ( ( + 62 ) ) / ( COUNT ( * ) ) - 78
----
-16

query I rowsort
SELECT ALL + ( - 92 ) * + - 17 * 6 col1
----
9384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-971
SELECT + 53 * 10 * + + MIN( ALL 89 ) * + ( + 57 DIV 6 ) AS col1
----
424530

skipif mysql # not compatible
query I rowsort label-971
SELECT + 53 * 10 * + + MIN ( ALL 89 ) * + ( + 57 / 6 ) AS col1
----
424530

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

skipif mysql # not compatible
query I rowsort label-972
SELECT - COUNT ( * ) * 43
----
-43

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-975
SELECT + CAST( - - 38 AS SIGNED ) * 27 + + 79
----
1105

skipif mysql # not compatible
query I rowsort label-975
SELECT + CAST ( - - 38 AS INTEGER ) * 27 + + 79
----
1105

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

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

query I rowsort
SELECT - 14 * + 46 - + 34
----
-678

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT + 17 DIV 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-978
SELECT + 17 / 31 AS col2
----
0

query I rowsort
SELECT ALL + + 43 + - 97
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-980
SELECT + + 99 * + CAST( + 62 AS SIGNED ) + + 8 + 18 * ( 9 ) + + COUNT( * ) col1
----
6309

skipif mysql # not compatible
query I rowsort label-980
SELECT + + 99 * + CAST ( + 62 AS INTEGER ) + + 8 + 18 * ( 9 ) + + COUNT ( * ) col1
----
6309

query I rowsort
SELECT - 83 + - 79 * - 38 * 80 AS col0
----
240077

query I rowsort
SELECT + 92 + 66 + 91 + + 45 - 23
----
271

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-983
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col0, - 88 + + 86
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-983
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col0, - 88 + + 86
----
NULL
-2

query I rowsort
SELECT ALL + 76 + + - ( + 65 ) * 97
----
-6229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-985
SELECT + CAST( NULL AS SIGNED ) + - SUM( DISTINCT - 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT + CAST ( NULL AS INTEGER ) + - SUM ( DISTINCT - 47 ) AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( + + 41, + 64, 41 * + 12 ) * + 80 - + 81 col1
----
-3361

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT COUNT( * ) + - 79 + 52 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-987
SELECT COUNT ( * ) + - 79 + 52 AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-988
SELECT + CAST( NULL AS SIGNED ) + + + 82 + + + 67 * 81 / 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT + CAST ( NULL AS INTEGER ) + + + 82 + + + 67 * 81 / 48 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT DISTINCT + COUNT( * ) - - 7 - - 75 * 54 + + 40
----
4098

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT + COUNT ( * ) - - 7 - - 75 * 54 + + 40
----
4098

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT COUNT( * ) * + NULLIF ( - - 38, + 50 * - + 86 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-991
SELECT COUNT ( * ) * + NULLIF ( - - 38, + 50 * - + 86 ) col2
----
38

query I rowsort
SELECT ALL 39 * + - 51 AS col0
----
-1989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-993
SELECT NULLIF ( + + 34, SUM( + CAST( NULL AS SIGNED ) ) + + + CAST( NULL AS SIGNED ) DIV + 77 ) + 22 DIV 50 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-993
SELECT NULLIF ( + + 34, SUM ( + CAST ( NULL AS INTEGER ) ) + + + CAST ( NULL AS INTEGER ) / + 77 ) + 22 / 50 AS col0
----
34

query I rowsort
SELECT ( - ( + ( - - 88 ) ) ) * - 31 + + 1 AS col1
----
2729

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT COUNT( * ) + + - 45 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-995
SELECT COUNT ( * ) + + - 45 AS col0
----
-44

query I rowsort
SELECT ALL 32 * - + ( - + 40 )
----
1280

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-997
SELECT 62 DIV - CAST( 20 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-997
SELECT 62 / - CAST ( 20 AS INTEGER )
----
-3

query I rowsort
SELECT DISTINCT 79 * - 3 AS col0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT DISTINCT 38 * - 1 * - + NULLIF ( 22, - 11 / + COUNT( * ) ) AS col1
----
836

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT 38 * - 1 * - + NULLIF ( 22, - 11 / + COUNT ( * ) ) AS col1
----
836

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1001
SELECT + + ( + 85 ) DIV 89 + 19
----
19

skipif mysql # not compatible
query I rowsort label-1001
SELECT + + ( + 85 ) / 89 + 19
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1002
SELECT - COALESCE ( - + 47, COUNT( * ) ) AS col1, 21 DIV + + ( 94 )
----
47
0

skipif mysql # not compatible
query II rowsort label-1002
SELECT - COALESCE ( - + 47, COUNT ( * ) ) AS col1, 21 / + + ( 94 )
----
47
0

query I rowsort
SELECT - 74 + - + 90
----
-164

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

query I rowsort
SELECT ALL + - 8 * 39 * - 34
----
10608

query I rowsort
SELECT ALL - + 95 + + 32
----
-63

query I rowsort
SELECT ALL + ( 48 ) + 29
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1008
SELECT + 54 DIV - + COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1008
SELECT + 54 / - + COUNT ( * ) AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1009
SELECT + 23 + 90 + + 31 + + 17 + 30 + 58 * + ( + CASE CAST( NULL AS SIGNED ) WHEN - 27 THEN + 37 * + 15 WHEN - 86 THEN - 14 + - 36 * - 85 ELSE - 47 + + 33 END ) AS col0
----
-621

skipif mysql # not compatible
query I rowsort label-1009
SELECT + 23 + 90 + + 31 + + 17 + 30 + 58 * + ( + CASE CAST ( NULL AS INTEGER ) WHEN - 27 THEN + 37 * + 15 WHEN - 86 THEN - 14 + - 36 * - 85 ELSE - 47 + + 33 END ) AS col0
----
-621

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

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

query I rowsort
SELECT + 37 + - - 87
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1012
SELECT CAST( NULL AS SIGNED ), + MAX( - - 59 ) AS col0, - 52 * - 45 AS col1
----
NULL
59
2340

skipif mysql # not compatible
query III rowsort label-1012
SELECT CAST ( NULL AS INTEGER ), + MAX ( - - 59 ) AS col0, - 52 * - 45 AS col1
----
NULL
59
2340

query I rowsort
SELECT ALL - 6 + + + 33 + - 26
----
1

query I rowsort
SELECT - 90 * + ( - - 62 ) * - - 46
----
-256680

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT 98 + - - COALESCE ( - ( - SUM( DISTINCT + - 20 ) ), MIN( 32 ), + 38 * + 68 - - 73, 27 * 14 ) * COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-1015
SELECT 98 + - - COALESCE ( - ( - SUM ( DISTINCT + - 20 ) ), MIN ( 32 ), + 38 * + 68 - - 73, 27 * 14 ) * COUNT ( * ) AS col1
----
78

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

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

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

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

query I rowsort
SELECT CASE - - 59 WHEN + 42 * 93 + + + 41 THEN NULL WHEN + 61 + 67 THEN NULL ELSE 25 + + 34 END * 19
----
1121

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1020
SELECT - 80, + COUNT( * ) - + 59 AS col1
----
-80
-58

skipif mysql # not compatible
query II rowsort label-1020
SELECT - 80, + COUNT ( * ) - + 59 AS col1
----
-80
-58

query II rowsort
SELECT - 36 AS col2, 67 * + 28 AS col0
----
-36
1876

query II rowsort
SELECT - 38, 72 AS col1
----
-38
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT DISTINCT + 4 * - + CASE ( + COUNT( * ) ) WHEN + 35 THEN - ( + 60 ) WHEN 46 / - ( + COUNT( * ) * + 14 ) THEN NULL ELSE NULL END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT + 4 * - + CASE ( + COUNT ( * ) ) WHEN + 35 THEN - ( + 60 ) WHEN 46 / - ( + COUNT ( * ) * + 14 ) THEN NULL ELSE NULL END * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT MAX( 86 ) * - + 58 * - 27
----
134676

skipif mysql # not compatible
query I rowsort label-1024
SELECT MAX ( 86 ) * - + 58 * - 27
----
134676

query I rowsort
SELECT ALL NULLIF ( - 50, - 47 - + + 55 / + COALESCE ( ( - 3 ), - CASE 42 WHEN + 42 THEN ( 98 ) + + 11 ELSE 30 END * 75 + 82 ) + 18 * + 93 ) col2
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-1026
SELECT 42 * 20 AS col1, 46 DIV - 79 AS col0
----
840
0

skipif mysql # not compatible
query II rowsort label-1026
SELECT 42 * 20 AS col1, 46 / - 79 AS col0
----
840
0

query I rowsort
SELECT 78 + - 31 + - 61 + 37 AS col0
----
23

query II rowsort
SELECT 66 col0, 23 AS col2
----
66
23

onlyif mysql # aggregate syntax: 
query II rowsort label-1029
SELECT 36 AS col1, ( + 45 ) * COALESCE ( - - COUNT( * ), + - 21 + 18, 65 ) + 63 AS col1
----
36
108

skipif mysql # not compatible
query II rowsort label-1029
SELECT 36 AS col1, ( + 45 ) * COALESCE ( - - COUNT ( * ), + - 21 + 18, 65 ) + 63 AS col1
----
36
108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT ALL 90 + - 83 + 65 + COUNT( * ) + + NULLIF ( 56, - 72 ) * 62
----
3545

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL 90 + - 83 + 65 + COUNT ( * ) + + NULLIF ( 56, - 72 ) * 62
----
3545

onlyif mysql # DIV for integer division: 
query I rowsort label-1032
SELECT + 61 DIV - - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1032
SELECT + 61 / - - 78 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1033
SELECT DISTINCT 90 * - 29 * ( + COUNT( + 66 ) ) * + 94 + 20 DIV 41
----
-245340

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT 90 * - 29 * ( + COUNT ( + 66 ) ) * + 94 + 20 / 41
----
-245340

query I rowsort
SELECT DISTINCT 1 * + 13 * + 52 + - 43 AS col1
----
633

onlyif mysql # aggregate syntax: 
query II rowsort label-1035
SELECT ALL 2 * + + COUNT( * ) * 13 + - + COUNT( * ) AS col0, - NULLIF ( COUNT( * ), + 8 ) + - 57
----
25
-58

skipif mysql # not compatible
query II rowsort label-1035
SELECT ALL 2 * + + COUNT ( * ) * 13 + - + COUNT ( * ) AS col0, - NULLIF ( COUNT ( * ), + 8 ) + - 57
----
25
-58

query I rowsort
SELECT ALL - 62 * COALESCE ( - + 33, + - 9 ) + + 44
----
2090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1037
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 25 + 93 - + NULLIF ( + 33, + - 28 ) - - 66 * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 25 + 93 - + NULLIF ( + 33, + - 28 ) - - 66 * 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT DISTINCT COUNT( * ) * - 84 + 46 * - 73 * + - 64
----
214828

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT COUNT ( * ) * - 84 + 46 * - 73 * + - 64
----
214828

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

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

query II rowsort
SELECT DISTINCT + - 86 AS col2, + 70 * + 81 + + + 11 * + 0 AS col0
----
-86
5670

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

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

query I rowsort
SELECT COALESCE ( 47, 24 )
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT DISTINCT - COUNT( * ) * 68
----
-68

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT - COUNT ( * ) * 68
----
-68

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

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

query I rowsort
SELECT - + 88 - - - 29
----
-117

query I rowsort
SELECT - + 60 * + + 8 + + 0 * ( + 95 )
----
-480

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

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

query I rowsort
SELECT + 69 + + 70 + 95 * 10 AS col1
----
1089

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

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

query I rowsort
SELECT ALL CASE 79 WHEN - 67 * - 39 / - 69 THEN NULL ELSE - + 34 END AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT - 21 + - SUM( ALL - + 82 ) * - + COUNT( * ) * + CASE 67 WHEN - - 98 THEN - CASE - ( - 29 ) WHEN 82 THEN NULL ELSE 73 END + 11 WHEN + 67 * 82 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1052
SELECT - 21 + - SUM ( ALL - + 82 ) * - + COUNT ( * ) * + CASE 67 WHEN - - 98 THEN - CASE - ( - 29 ) WHEN 82 THEN NULL ELSE 73 END + 11 WHEN + 67 * 82 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1053
SELECT - 39 DIV + + 37 AS col0, - 99 * - - 55 * ( + 99 )
----
-1
-539055

skipif mysql # not compatible
query II rowsort label-1053
SELECT - 39 / + + 37 AS col0, - 99 * - - 55 * ( + 99 )
----
-1
-539055

onlyif mysql # aggregate syntax: 
query II rowsort label-1054
SELECT ALL COUNT( - 63 ), - 4 AS col2
----
1
-4

skipif mysql # not compatible
query II rowsort label-1054
SELECT ALL COUNT ( - 63 ), - 4 AS col2
----
1
-4

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

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL - COUNT ( * ) * - 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT - SUM( ALL + 55 ) + 96 + + + 12 + 53 * - ( + 0 ) * + 41 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1056
SELECT - SUM ( ALL + 55 ) + 96 + + + 12 + 53 * - ( + 0 ) * + 41 AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1057
SELECT ALL - 27 DIV + 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL - 27 / + 38 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1058
SELECT + 3 DIV - + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1058
SELECT + 3 / - + 68 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1059
SELECT - COUNT( * ) DIV - + ( 16 ) * + COUNT( * ) + - - NULLIF ( + COALESCE ( + 41, - CAST( NULL AS SIGNED ) + 57 ), 66 + 21 )
----
41

skipif mysql # not compatible
query I rowsort label-1059
SELECT - COUNT ( * ) / - + ( 16 ) * + COUNT ( * ) + - - NULLIF ( + COALESCE ( + 41, - CAST ( NULL AS INTEGER ) + 57 ), 66 + 21 )
----
41

query I rowsort
SELECT - 85 * - - 83
----
-7055

query I rowsort
SELECT ALL - 55 + + 30
----
-25

query I rowsort
SELECT ALL + 0 + 63
----
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT DISTINCT + COUNT( + - 23 ) + + 15 + - - SUM( ALL 93 ) * COUNT( ALL - 18 ) - + 84 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT + COUNT ( + - 23 ) + + 15 + - - SUM ( ALL 93 ) * COUNT ( ALL - 18 ) - + 84 AS col2
----
25

query I rowsort
SELECT ALL - 28 * - ( + 75 )
----
2100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1066
SELECT ALL - CAST( - + 86 AS SIGNED ) + 93 + + + 81 + - + 1 * - + 75 * ( - 28 ) AS col2
----
-1840

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL - CAST ( - + 86 AS INTEGER ) + 93 + + + 81 + - + 1 * - + 75 * ( - 28 ) AS col2
----
-1840

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT - CASE - + 85 WHEN NULLIF ( - ( - 45 ), + - 55 + + - 35 ) THEN - ( COALESCE ( 78, + ( COUNT( * ) ) ) ) * COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1067
SELECT - CASE - + 85 WHEN NULLIF ( - ( - 45 ), + - 55 + + - 35 ) THEN - ( COALESCE ( 78, + ( COUNT ( * ) ) ) ) * COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1068
SELECT 33 * 42 + + 60 + + - 4 DIV - + NULLIF ( - 49, + 44 )
----
1446

skipif mysql # not compatible
query I rowsort label-1068
SELECT 33 * 42 + + 60 + + - 4 / - + NULLIF ( - 49, + 44 )
----
1446

onlyif mysql # DIV for integer division: 
query I rowsort label-1069
SELECT - + 50 DIV 52 + - 41 * - - 3 * + 11 + + 46 AS col1
----
-1307

skipif mysql # not compatible
query I rowsort label-1069
SELECT - + 50 / 52 + - 41 * - - 3 * + 11 + + 46 AS col1
----
-1307

query I rowsort
SELECT - 63 * - 52 AS col0
----
3276

query I rowsort
SELECT ALL + 89 * 89
----
7921

query I rowsort
SELECT + - 84 + - 82 AS col0
----
-166

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

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

query I rowsort
SELECT - - 56 * - 66 + + 51
----
-3645

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT ALL + 54 * + - COUNT( * ) * 59
----
-3186

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL + 54 * + - COUNT ( * ) * 59
----
-3186

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT COALESCE ( + COUNT( * ), - 67 )
----
1

skipif mysql # not compatible
query I rowsort label-1077
SELECT COALESCE ( + COUNT ( * ), - 67 )
----
1

query I rowsort
SELECT + 21 + - 38 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT + 61 * COUNT( * ) * + 37 col0
----
2257

skipif mysql # not compatible
query I rowsort label-1079
SELECT + 61 * COUNT ( * ) * + 37 col0
----
2257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1080
SELECT + 35 + + 29 * - - COUNT( + CAST( + + 85 AS SIGNED ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-1080
SELECT + 35 + + 29 * - - COUNT ( + CAST ( + + 85 AS INTEGER ) ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT + CASE - 28 WHEN - 41 THEN 66 - + + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1081
SELECT + CASE - 28 WHEN - 41 THEN 66 - + + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT + 34 * 92 * COUNT( * ) * + - ( 71 ) AS col1
----
-222088

skipif mysql # not compatible
query I rowsort label-1082
SELECT + 34 * 92 * COUNT ( * ) * + - ( 71 ) AS col1
----
-222088

query II rowsort
SELECT DISTINCT + 78 AS col1, + 27 + + 41 + - + ( - 98 ) - - - 40 * + 10
----
78
-234

query II rowsort
SELECT DISTINCT 32 col1, - ( - - 65 )
----
32
-65

query I rowsort
SELECT + 98 * 82 AS col0
----
8036

query I rowsort
SELECT ALL - 31 * - + 7
----
217

query I rowsort
SELECT + 62 * + 12 * + + ( - 87 )
----
-64728

query I rowsort
SELECT 81 * + + 77 AS col0
----
6237

query II rowsort
SELECT 75, 14 + 53 * 59 AS col1
----
75
3141

query I rowsort
SELECT 61 - - - 66
----
-5

query I rowsort
SELECT DISTINCT 79 + - ( 64 ) + + 49 AS col2
----
64

query I rowsort
SELECT DISTINCT - 41 + + + 5 col2
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1093
SELECT ALL 14 + - COUNT( + 84 ) * 55 * + - 50 DIV - - 85 DIV 79 * 87 * + 78 + - 44 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL 14 + - COUNT ( + 84 ) * 55 * + - 50 / - - 85 / 79 * 87 * + 78 + - 44 AS col1
----
-30

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

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

query I rowsort
SELECT ALL + ( 38 ) + + - 68 * + + 34 * 9 * - 87 + 70 AS col0
----
1810404

query I rowsort
SELECT 96 * - 2
----
-192

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1098
SELECT + CAST( + + 65 AS SIGNED ) + - COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-1098
SELECT + CAST ( + + 65 AS INTEGER ) + - COUNT ( * ) AS col0
----
64

query I rowsort
SELECT DISTINCT - 43 + + 90 * + - 64 + - 66 AS col1
----
-5869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1100
SELECT ALL - + 21 - COALESCE ( + COUNT( * ), - 72 + 66 + 65 * + 30 * + CAST( NULL AS SIGNED ) + + 12, 63, ( COUNT( * ) ) ) + 66 * 82
----
5390

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL - + 21 - COALESCE ( + COUNT ( * ), - 72 + 66 + 65 * + 30 * + CAST ( NULL AS INTEGER ) + + 12, 63, ( COUNT ( * ) ) ) + 66 * 82
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT DISTINCT 12 - - NULLIF ( 38, - + 35 + + CASE WHEN NULL IS NULL THEN + COUNT( * ) WHEN NOT NULL NOT BETWEEN ( - 19 ) AND 33 + 31 * 30 THEN NULL ELSE NULL END ) * CASE - ( 40 ) WHEN + 19 + ( - ( 4 ) ) THEN - SUM( ALL 2 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT 12 - - NULLIF ( 38, - + 35 + + CASE WHEN NULL IS NULL THEN + COUNT ( * ) WHEN NOT NULL NOT BETWEEN ( - 19 ) AND 33 + 31 * 30 THEN NULL ELSE NULL END ) * CASE - ( 40 ) WHEN + 19 + ( - ( 4 ) ) THEN - SUM ( ALL 2 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1102
SELECT DISTINCT - + NULLIF ( - + CASE + + COUNT( * ) WHEN + + SUM( - CAST( 45 AS SIGNED ) ) * + + ( + ( - 93 ) ) THEN NULL WHEN + 2 * + 85 THEN NULL ELSE - 67 + 93 DIV + 97 END, 16 * + COUNT( * ) - + COUNT( * ) ) * - NULLIF ( 85 DIV + 51, CASE 30 WHEN 12 THEN 47 END * - COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT - + NULLIF ( - + CASE + + COUNT ( * ) WHEN + + SUM ( - CAST ( 45 AS INTEGER ) ) * + + ( + ( - 93 ) ) THEN NULL WHEN + 2 * + 85 THEN NULL ELSE - 67 + 93 / + 97 END, 16 * + COUNT ( * ) - + COUNT ( * ) ) * - NULLIF ( 85 / + 51, CASE 30 WHEN 12 THEN 47 END * - COUNT ( * ) )
----
67

query II rowsort
SELECT DISTINCT - - 35 AS col0, 10
----
35
10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1105
SELECT 45 * + - CAST( NULL AS SIGNED ) * - + COALESCE ( 92, + 61 + + ( + 9 ) * + + 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1105
SELECT 45 * + - CAST ( NULL AS INTEGER ) * - + COALESCE ( 92, + 61 + + ( + 9 ) * + + 72 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1106
SELECT 32 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT 32 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 59 - - + 27 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT + - MAX( ALL + COALESCE ( - 47, + - 63 ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1108
SELECT + - MAX ( ALL + COALESCE ( - 47, + - 63 ) ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT - + 66 * COUNT( * ) - - 92 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-1109
SELECT - + 66 * COUNT ( * ) - - 92 AS col1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1110
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 60
----
NULL

query I rowsort
SELECT ALL 10 + - + 4
----
6

query I rowsort
SELECT ALL + 27 * 16
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT ALL - 72 + 50 - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL - 72 + 50 - COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT COUNT( * ) * + SUM( + 57 ) * + + NULLIF ( - + 82, + + COUNT( * ) ) + - 56 * 78 * - 10 col0
----
39006

skipif mysql # not compatible
query I rowsort label-1114
SELECT COUNT ( * ) * + SUM ( + 57 ) * + + NULLIF ( - + 82, + + COUNT ( * ) ) + - 56 * 78 * - 10 col0
----
39006

query I rowsort
SELECT ( - + 58 ) * + 32 AS col0
----
-1856

query II rowsort
SELECT ALL 74 + 4, + 72 - - 80 + - 42 AS col1
----
78
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT MIN( DISTINCT + 76 ) * + COALESCE ( + 90, ( + 40 ) ) AS col0
----
6840

skipif mysql # not compatible
query I rowsort label-1117
SELECT MIN ( DISTINCT + 76 ) * + COALESCE ( + 90, ( + 40 ) ) AS col0
----
6840

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL - 0 + 56 + - COUNT( * ) * + - 38 - - 94 * 14
----
1410

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL - 0 + 56 + - COUNT ( * ) * + - 38 - - 94 * 14
----
1410

query I rowsort
SELECT ALL 14 + - 11 + - - 65 AS col2
----
68

query I rowsort
SELECT 90 + - 75
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT DISTINCT COUNT( DISTINCT - - 75 ) * + 10
----
10

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT COUNT ( DISTINCT - - 75 ) * + 10
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1122
SELECT SUM( ALL 27 ) * 55 * 39 - 63, 34 + + NULLIF ( + 44, + + 93 * COUNT( * ) ) AS col2
----
57852
78

skipif mysql # not compatible
query II rowsort label-1122
SELECT SUM ( ALL 27 ) * 55 * 39 - 63, 34 + + NULLIF ( + 44, + + 93 * COUNT ( * ) ) AS col2
----
57852
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1123
SELECT DISTINCT + MAX( - COALESCE ( - + 51, - - 10 * + 79 - + + NULLIF ( + 11, + + 86 ) + - 26 DIV - 71, - ( 56 ) ) ) * - 61 AS col2
----
-3111

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT + MAX ( - COALESCE ( - + 51, - - 10 * + 79 - + + NULLIF ( + 11, + + 86 ) + - 26 / - 71, - ( 56 ) ) ) * - 61 AS col2
----
-3111

query I rowsort
SELECT ALL + 13 - - 14 * - - 68 AS col0
----
965

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

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

query I rowsort
SELECT 11 + 97 * + 44 AS col0
----
4279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1127
SELECT COALESCE ( 6, + ( + - CASE + 75 WHEN + - 10 THEN - 6 ELSE + + 74 * - + 66 END ) DIV COUNT( * ), + COUNT( * ) * COUNT( * ) + - COUNT( * ) ) * + 14 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-1127
SELECT COALESCE ( 6, + ( + - CASE + 75 WHEN + - 10 THEN - 6 ELSE + + 74 * - + 66 END ) / COUNT ( * ), + COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) ) * + 14 AS col2
----
84

query I rowsort
SELECT 29 + - 62
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1129
SELECT DISTINCT COALESCE ( - COALESCE ( + 60, - + CAST( CASE + 58 WHEN + + 53 * + 56 THEN NULL WHEN + COALESCE ( NULLIF ( + 33, 77 * - COUNT( * ) ), + 52 * COALESCE ( 99, - 8 * 84 ) + + 70, - 93, + 21 * + MAX( - COALESCE ( + 67, + CAST( - 11 AS SIGNED ) ) ) ) + COUNT( * ) THEN 78 ELSE 34 END AS SIGNED ) ), - COUNT( * ) ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT COALESCE ( - COALESCE ( + 60, - + CAST ( CASE + 58 WHEN + + 53 * + 56 THEN NULL WHEN + COALESCE ( NULLIF ( + 33, 77 * - COUNT ( * ) ), + 52 * COALESCE ( 99, - 8 * 84 ) + + 70, - 93, + 21 * + MAX ( - COALESCE ( + 67, + CAST ( - 11 AS INTEGER ) ) ) ) + COUNT ( * ) THEN 78 ELSE 34 END AS INTEGER ) ), - COUNT ( * ) ) AS col2
----
-60

query I rowsort
SELECT - - 67 col0
----
67

query I rowsort
SELECT COALESCE ( + CASE + 18 WHEN + 63 THEN NULL ELSE + 94 END, 45 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ( - - 87 ) * - + COUNT( * ) + 77 + - 33 * + 35 * - 4 * - + 52
----
-240250

skipif mysql # not compatible
query I rowsort label-1132
SELECT ( - - 87 ) * - + COUNT ( * ) + 77 + - 33 * + 35 * - 4 * - + 52
----
-240250

query I rowsort
SELECT + 90 * 71 * + 70 * - 69 AS col2
----
-30863700

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT COUNT( * ) * - 23 * + 35 * - + 49 * 50
----
1972250

skipif mysql # not compatible
query I rowsort label-1134
SELECT COUNT ( * ) * - 23 * + 35 * - + 49 * 50
----
1972250

query I rowsort
SELECT - - 19 * 61 + + 12 * - ( - 6 ) * 53 * - 59 - 7 * + 39
----
-224258

query I rowsort
SELECT 70 + + 74 * + + 78
----
5842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1137
SELECT ALL + 54 * + - CAST( + 22 AS SIGNED ) * 14 AS col2
----
-16632

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL + 54 * + - CAST ( + 22 AS INTEGER ) * 14 AS col2
----
-16632

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT DISTINCT + SUM( + ( - 91 ) ) * + + 94 * + + COUNT( * ) AS col0
----
-8554

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT + SUM ( + ( - 91 ) ) * + + 94 * + + COUNT ( * ) AS col0
----
-8554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1139
SELECT ALL - 40 * + - 47 + - - 11 * - 64 + - - 44 * + 40 * - CAST( - CASE - 26 WHEN - 74 THEN NULLIF ( COALESCE ( 8, + 67 * 1 ), + ( - 92 ) ) WHEN 71 + 25 THEN 88 WHEN - COUNT( ALL - 80 ) / 26 THEN NULL WHEN - 61 THEN NULL ELSE 22 END AS SIGNED )
----
39896

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL - 40 * + - 47 + - - 11 * - 64 + - - 44 * + 40 * - CAST ( - CASE - 26 WHEN - 74 THEN NULLIF ( COALESCE ( 8, + 67 * 1 ), + ( - 92 ) ) WHEN 71 + 25 THEN 88 WHEN - COUNT ( ALL - 80 ) / 26 THEN NULL WHEN - 61 THEN NULL ELSE 22 END AS INTEGER )
----
39896

query I rowsort
SELECT 36 * - 7 AS col1
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT + ( - COUNT( * ) ) * SUM( ALL 11 ) * + - COUNT( * ) + 34 * + 37 * - - 54 + + COALESCE ( 98, 80 )
----
68041

skipif mysql # not compatible
query I rowsort label-1141
SELECT + ( - COUNT ( * ) ) * SUM ( ALL 11 ) * + - COUNT ( * ) + 34 * + 37 * - - 54 + + COALESCE ( 98, 80 )
----
68041

query I rowsort
SELECT - 68 + - - 78
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1143
SELECT ALL - 68 + COUNT( * ) + - CASE - + ( 63 ) WHEN + ( + 76 ) THEN NULL ELSE + - CAST( NULL AS SIGNED ) END * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL - 68 + COUNT ( * ) + - CASE - + ( 63 ) WHEN + ( + 76 ) THEN NULL ELSE + - CAST ( NULL AS INTEGER ) END * - COUNT ( * ) col1
----
NULL

query II rowsort
SELECT DISTINCT + ( + ( - + 91 ) ) AS col1, - 97
----
-91
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1145
SELECT + CAST( NULL AS SIGNED ) + SUM( 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT + CAST ( NULL AS INTEGER ) + SUM ( 94 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT - CASE + COUNT( DISTINCT + 57 ) WHEN + ( + 61 ) * - 67 THEN COALESCE ( - 11, - MIN( DISTINCT 41 ) * COUNT( * ), - ( + 28 ) + - 51 * 42 ) * + 3 ELSE NULL END * CASE - 37 - 62 WHEN - 61 THEN NULL WHEN 75 - 78 THEN + 52 - - 34 * - NULLIF ( 31 * + 26 + 81 * + 35, - 66 + 65 * + 95 ) ELSE 49 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1146
SELECT - CASE + COUNT ( DISTINCT + 57 ) WHEN + ( + 61 ) * - 67 THEN COALESCE ( - 11, - MIN ( DISTINCT 41 ) * COUNT ( * ), - ( + 28 ) + - 51 * 42 ) * + 3 ELSE NULL END * CASE - 37 - 62 WHEN - 61 THEN NULL WHEN 75 - 78 THEN + 52 - - 34 * - NULLIF ( 31 * + 26 + 81 * + 35, - 66 + 65 * + 95 ) ELSE 49 END col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT DISTINCT + 96 DIV + 70 col0
----
1

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT + 96 / + 70 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1149
SELECT DISTINCT + 23 + 54 + - + MAX( ALL - 19 ) * - 68 AS col2, 31
----
-1215
31

skipif mysql # not compatible
query II rowsort label-1149
SELECT DISTINCT + 23 + 54 + - + MAX ( ALL - 19 ) * - 68 AS col2, 31
----
-1215
31

query I rowsort
SELECT ALL - 68 + + 10
----
-58

query I rowsort
SELECT DISTINCT 61 + - 27 AS col1
----
34

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

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL 20 + + - COUNT ( * ) AS col0
----
19

query I rowsort
SELECT - 26 * - 83 AS col0
----
2158

query I rowsort
SELECT ALL - 78 * 55 AS col2
----
-4290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1155
SELECT DISTINCT + 24 - NULLIF ( + + 82, - CAST( NULL AS SIGNED ) )
----
-58

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT + 24 - NULLIF ( + + 82, - CAST ( NULL AS INTEGER ) )
----
-58

query I rowsort
SELECT - ( + 24 ) - + 56
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-1157
SELECT + 72 DIV - + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1157
SELECT + 72 / - + 95 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT ALL 41 DIV - - COALESCE ( - 21, + 59 + - 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL 41 / - - COALESCE ( - 21, + 59 + - 61 )
----
-1

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

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

query I rowsort
SELECT ALL + + ( + 6 ) - + + 80 AS col2
----
-74

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

query I rowsort
SELECT + + 21 * 64 AS col0
----
1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1163
SELECT - - 10 * 76 + + - 1 AS col2, + NULLIF ( 62, - + COUNT( * ) + 52 ) * - 63 - COALESCE ( + NULLIF ( 79, - 57 ), 33, 24, 17 / 97 + 8 * + 97 ) - COUNT( * ) / CAST( NULL AS SIGNED ) * 49 + + 52 * 10 AS col1
----
759
NULL

skipif mysql # not compatible
query II rowsort label-1163
SELECT - - 10 * 76 + + - 1 AS col2, + NULLIF ( 62, - + COUNT ( * ) + 52 ) * - 63 - COALESCE ( + NULLIF ( 79, - 57 ), 33, 24, 17 / 97 + 8 * + 97 ) - COUNT ( * ) / CAST ( NULL AS INTEGER ) * 49 + + 52 * 10 AS col1
----
759
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT - ( - - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1164
SELECT - ( - - COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL + SUM( DISTINCT + ( - + 83 ) ) * + 71 * - 66 col2
----
388938

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL + SUM ( DISTINCT + ( - + 83 ) ) * + 71 * - 66 col2
----
388938

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1166
SELECT + 88 * - 9 * + - CAST( NULL AS SIGNED ) + - 67 * - + 33 + + CAST( + - 2 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1166
SELECT + 88 * - 9 * + - CAST ( NULL AS INTEGER ) + - 67 * - + 33 + + CAST ( + - 2 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1167
SELECT ALL 73, COUNT( ( 11 ) ) AS col1
----
73
1

skipif mysql # not compatible
query II rowsort label-1167
SELECT ALL 73, COUNT ( ( 11 ) ) AS col1
----
73
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1168
SELECT DISTINCT + 79 DIV - COALESCE ( 39, 31 ) + COUNT( * ) + + - 59 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT + 79 / - COALESCE ( 39, 31 ) + COUNT ( * ) + + - 59 AS col2
----
-60

query I rowsort
SELECT + 45 + 37 - - 94 + 61 + - 80
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-1170
SELECT + 54 DIV + - 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1170
SELECT + 54 / + - 62 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1171
SELECT ALL CAST( NULL AS SIGNED ) / 70 + + ( - AVG ( DISTINCT + 76 ) ) + + + 58 + + CAST( NULL AS SIGNED ) + - - 24 * COALESCE ( + MAX( ALL + 66 ), + 73 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL CAST ( NULL AS INTEGER ) / 70 + + ( - AVG ( DISTINCT + 76 ) ) + + + 58 + + CAST ( NULL AS INTEGER ) + - - 24 * COALESCE ( + MAX ( ALL + 66 ), + 73 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1172
SELECT DISTINCT + NULLIF ( - 60, 32 - - + COUNT( * ) ), 35 AS col1
----
-60
35

skipif mysql # not compatible
query II rowsort label-1172
SELECT DISTINCT + NULLIF ( - 60, 32 - - + COUNT ( * ) ), 35 AS col1
----
-60
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1173
SELECT + 87 DIV + - 39 AS col2, - 92 - - 76 - - - SUM( ALL + - 40 ) * + 3
----
-2
104

skipif mysql # not compatible
query II rowsort label-1173
SELECT + 87 / + - 39 AS col2, - 92 - - 76 - - - SUM ( ALL + - 40 ) * + 3
----
-2
104

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT - ( 42 ) * + 28 + - + COUNT( * ) + - - 24
----
-1153

skipif mysql # not compatible
query I rowsort label-1174
SELECT - ( 42 ) * + 28 + - + COUNT ( * ) + - - 24
----
-1153

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1175
SELECT + 27 DIV NULLIF ( + 67, + + 75 + - CAST( 77 AS DECIMAL ) ) - 97
----
-97

skipif mysql # not compatible
query I rowsort label-1175
SELECT + 27 / NULLIF ( + 67, + + 75 + - CAST ( 77 AS REAL ) ) - 97
----
-97

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

query I rowsort
SELECT ( - 40 ) AS col2
----
-40

query I rowsort
SELECT ALL + 9 * + 55
----
495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1179
SELECT ALL 52 * - 67 * 67 DIV + + COUNT( * ) DIV - + COUNT( * ) + 98 AS col1
----
233526

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL 52 * - 67 * 67 / + + COUNT ( * ) / - + COUNT ( * ) + 98 AS col1
----
233526

onlyif mysql # aggregate syntax: 
query II rowsort label-1180
SELECT DISTINCT + COUNT( * ) AS col2, 40 + + 70
----
1
110

skipif mysql # not compatible
query II rowsort label-1180
SELECT DISTINCT + COUNT ( * ) AS col2, 40 + + 70
----
1
110

query I rowsort
SELECT ALL - 15 * + 9 - + 39
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1182
SELECT DISTINCT + CAST( - 38 AS SIGNED ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT + CAST ( - 38 AS INTEGER ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT 33 * - 84 - COUNT( * ) - + ( - 1 ) * - + NULLIF ( 99, - + 52 * + 8 ) AS col2
----
-2872

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT 33 * - 84 - COUNT ( * ) - + ( - 1 ) * - + NULLIF ( 99, - + 52 * + 8 ) AS col2
----
-2872

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

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

query I rowsort
SELECT - 72 * + 75
----
-5400

onlyif mysql # aggregate syntax: 
query II rowsort label-1186
SELECT - CASE + + 86 WHEN - COALESCE ( 18, 11 ) THEN 74 * + 15 END AS col0, + 2 * - - NULLIF ( 50, 80 * 72 + - 93 ) + + COUNT( 94 )
----
NULL
101

skipif mysql # not compatible
query II rowsort label-1186
SELECT - CASE + + 86 WHEN - COALESCE ( 18, 11 ) THEN 74 * + 15 END AS col0, + 2 * - - NULLIF ( 50, 80 * 72 + - 93 ) + + COUNT ( 94 )
----
NULL
101

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

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

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

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

query II rowsort
SELECT DISTINCT - 40 AS col0, 85
----
-40
85

query I rowsort
SELECT DISTINCT ( - 60 ) col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT - MIN( 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-1191
SELECT - MIN ( 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT ALL - 61 / + 18 * 41 * - CASE + 91 WHEN - SUM( DISTINCT 51 ) THEN 14 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - 61 / + 18 * 41 * - CASE + 91 WHEN - SUM ( DISTINCT 51 ) THEN 14 ELSE NULL END AS col0
----
NULL

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

query I rowsort
SELECT - 89 * - 93 * - 92 AS col1
----
-761484

query II rowsort
SELECT 31, 33 AS col1
----
31
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1196
SELECT ALL + COUNT( DISTINCT 18 ) + 23 + - 49 DIV + ( 23 ) + + 92
----
114

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL + COUNT ( DISTINCT 18 ) + 23 + - 49 / + ( 23 ) + + 92
----
114

query I rowsort
SELECT - - 98 + + 36
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT DISTINCT + COUNT( ALL - - 46 ) + - 74
----
-73

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT + COUNT ( ALL - - 46 ) + - 74
----
-73

query II rowsort
SELECT DISTINCT + 35, 54 AS col0
----
35
54

query II rowsort
SELECT ALL + 18 + - ( - ( - 50 ) ), - 56 AS col0
----
-32
-56

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1202
SELECT ALL - + 18 + COUNT( * ), 51 AS col0
----
-17
51

skipif mysql # not compatible
query II rowsort label-1202
SELECT ALL - + 18 + COUNT ( * ), 51 AS col0
----
-17
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1203
SELECT DISTINCT + - 55 + - NULLIF ( - CASE 14 WHEN 10 THEN NULL WHEN 29 + 86 + + 67 * - 61 THEN + COALESCE ( - 56, COALESCE ( NULLIF ( ( 87 ), MIN( 6 ) DIV 92 ), + 21 + MIN( 65 - - CASE - 11 WHEN CAST( NULL AS DECIMAL ) * - 29 THEN 40 ELSE NULL END ) ) ) ELSE 19 * 13 + 82 END, 79 * + AVG ( 97 ) ) DIV 53 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT + - 55 + - NULLIF ( - CASE 14 WHEN 10 THEN NULL WHEN 29 + 86 + + 67 * - 61 THEN + COALESCE ( - 56, COALESCE ( NULLIF ( ( 87 ), MIN ( 6 ) / 92 ), + 21 + MIN ( 65 - - CASE - 11 WHEN CAST ( NULL AS REAL ) * - 29 THEN 40 ELSE NULL END ) ) ) ELSE 19 * 13 + 82 END, 79 * + AVG ( 97 ) ) / 53 AS col1
----
-49

query II rowsort
SELECT + 91 AS col1, + 3 + - 42 - + - 29 col2
----
91
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT DISTINCT 44 + - 32 + 12 + + COUNT( * ) * + 47
----
71

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT 44 + - 32 + 12 + + COUNT ( * ) * + 47
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1206
SELECT + 61 DIV - 78 + 40
----
40

skipif mysql # not compatible
query I rowsort label-1206
SELECT + 61 / - 78 + 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT ALL - 14 * + NULLIF ( 34, + SUM( DISTINCT + + 67 ) )
----
-476

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL - 14 * + NULLIF ( 34, + SUM ( DISTINCT + + 67 ) )
----
-476

query I rowsort
SELECT 71 + + - 30 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL 45 - - COUNT( * ) * + - 84
----
-39

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL 45 - - COUNT ( * ) * + - 84
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT DISTINCT 56 * - COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT 56 * - COUNT ( * ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT COUNT( + 62 ) * - ( + 42 ) + + 66 + + CASE - 51 WHEN + - 56 THEN + + CASE - 93 WHEN - - 59 + + 9 * + COUNT( * ) THEN + 23 WHEN - 8 THEN NULL ELSE NULL END WHEN 88 THEN + COUNT( * ) ELSE 50 * + 75 END
----
3774

skipif mysql # not compatible
query I rowsort label-1211
SELECT COUNT ( + 62 ) * - ( + 42 ) + + 66 + + CASE - 51 WHEN + - 56 THEN + + CASE - 93 WHEN - - 59 + + 9 * + COUNT ( * ) THEN + 23 WHEN - 8 THEN NULL ELSE NULL END WHEN 88 THEN + COUNT ( * ) ELSE 50 * + 75 END
----
3774

query I rowsort
SELECT DISTINCT 50 - - 87 AS col2
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT ALL 44 DIV - + 47
----
0

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL 44 / - + 47
----
0

query I rowsort
SELECT 16 + - - 13 * 88 * 17 * 29
----
564008

onlyif mysql # DIV for integer division: 
query II rowsort label-1215
SELECT 22 DIV + - 53 AS col2, - 40 * + + ( - COALESCE ( 59, + 65, - 32 ) ) * - + 18 + - 34 * + 36
----
0
-43704

skipif mysql # not compatible
query II rowsort label-1215
SELECT 22 / + - 53 AS col2, - 40 * + + ( - COALESCE ( 59, + 65, - 32 ) ) * - + 18 + - 34 * + 36
----
0
-43704

query I rowsort
SELECT 31 * 94 AS col2
----
2914

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT ALL 8 DIV - + ( + - 41 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL 8 / - + ( + - 41 ) AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1219
SELECT 27 * 85, - ( COALESCE ( - 14, + COUNT( * ), - 23 ) ) + - 0 * - 45 AS col1
----
2295
14

skipif mysql # not compatible
query II rowsort label-1219
SELECT 27 * 85, - ( COALESCE ( - 14, + COUNT ( * ), - 23 ) ) + - 0 * - 45 AS col1
----
2295
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT - + NULLIF ( - SUM( ALL - 47 ), + 51 * ( - 7 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-1220
SELECT - + NULLIF ( - SUM ( ALL - 47 ), + 51 * ( - 7 ) )
----
-47

query I rowsort
SELECT 75 + - - 73
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-1222
SELECT ALL - + 70 * - - COUNT( * ) AS col2, COUNT( * ) + + 39 AS col0
----
-70
40

skipif mysql # not compatible
query II rowsort label-1222
SELECT ALL - + 70 * - - COUNT ( * ) AS col2, COUNT ( * ) + + 39 AS col0
----
-70
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT + COUNT( * ) + - 74 * - + 2 col1
----
149

skipif mysql # not compatible
query I rowsort label-1223
SELECT + COUNT ( * ) + - 74 * - + 2 col1
----
149

query I rowsort
SELECT DISTINCT - + 45 + - + 76
----
-121

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1225
SELECT ALL - + 95 + + 32, + 16 - - CAST( NULL AS DECIMAL ) AS col0
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-1225
SELECT ALL - + 95 + + 32, + 16 - - CAST ( NULL AS REAL ) AS col0
----
-63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT + ( - + COUNT( * ) ) - 83 + 11
----
-73

skipif mysql # not compatible
query I rowsort label-1226
SELECT + ( - + COUNT ( * ) ) - 83 + 11
----
-73

query I rowsort
SELECT DISTINCT + 56 + - 11 AS col1
----
45

query I rowsort
SELECT - - 55 col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1229
SELECT + CAST( + + MIN( ALL + 0 ) AS DECIMAL ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1229
SELECT + CAST ( + + MIN ( ALL + 0 ) AS REAL ) + CAST ( NULL AS INTEGER )
----
NULL

query III rowsort
SELECT 14 - 95 col0, + 60 - 11 + + - 69 AS col2, 19 AS col0
----
-81
-20
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1231
SELECT ALL + 23 * 64 + + NULLIF ( 33, + 75 - 45 + + CAST( NULL AS DECIMAL ) - COUNT( ALL NULLIF ( + CAST( COALESCE ( 81, CAST( COALESCE ( + CAST( 84 AS SIGNED ), - 72, 32 * + COALESCE ( - 0 * 83, 90 ) ) AS SIGNED ), - 75 + - 41 ) AS SIGNED ), 29 ) ) + + 58 * 23 * 24 / + 10 ) + + 65 * - 66 AS col2
----
-2785

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL + 23 * 64 + + NULLIF ( 33, + 75 - 45 + + CAST ( NULL AS REAL ) - COUNT ( ALL NULLIF ( + CAST ( COALESCE ( 81, CAST ( COALESCE ( + CAST ( 84 AS INTEGER ), - 72, 32 * + COALESCE ( - 0 * 83, 90 ) ) AS INTEGER ), - 75 + - 41 ) AS INTEGER ), 29 ) ) + + 58 * 23 * 24 / + 10 ) + + 65 * - 66 AS col2
----
-2785

query I rowsort
SELECT DISTINCT - 65 * - 9 col0
----
585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1233
SELECT ALL + COUNT( * ) + - 17 DIV - 95 AS col0
----
1

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

query I rowsort
SELECT 62 * + 45
----
2790

query I rowsort
SELECT 65 + - + 31 col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT ALL + 82 * - NULLIF ( - - 22, ( - MIN( DISTINCT + + 75 ) ) )
----
-1804

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL + 82 * - NULLIF ( - - 22, ( - MIN ( DISTINCT + + 75 ) ) )
----
-1804

query I rowsort
SELECT DISTINCT - 27 * 78
----
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT DISTINCT COUNT( * ) - - 34 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT COUNT ( * ) - - 34 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT DISTINCT + 55 - + MAX( DISTINCT 43 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT + 55 - + MAX ( DISTINCT 43 ) AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1240
SELECT NULLIF ( - - CAST( NULL AS SIGNED ), 24 ) / 6 + + 46 + + + 28 + 36 * + 71 + - CAST( - - 89 AS SIGNED ) + + 97 + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1240
SELECT NULLIF ( - - CAST ( NULL AS INTEGER ), 24 ) / 6 + + 46 + + + 28 + 36 * + 71 + - CAST ( - - 89 AS INTEGER ) + + 97 + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT MIN( - COALESCE ( - 20, 19 * - 59 + - 16 * + 55 ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1241
SELECT MIN ( - COALESCE ( - 20, 19 * - 59 + - 16 * + 55 ) ) AS col2
----
20

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1243
SELECT ALL - 51 AS col0, CAST( - MAX( 61 ) AS SIGNED )
----
-51
-61

skipif mysql # not compatible
query II rowsort label-1243
SELECT ALL - 51 AS col0, CAST ( - MAX ( 61 ) AS INTEGER )
----
-51
-61

query I rowsort
SELECT 90 * 69
----
6210

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1246
SELECT ALL + 74 DIV + COUNT( ALL + 27 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL + 74 / + COUNT ( ALL + 27 ) AS col2
----
74

query I rowsort
SELECT DISTINCT + 65 * + 63
----
4095

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1249
SELECT DISTINCT ( 71 ) + - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col0
----
70
NULL

skipif mysql # not compatible
query II rowsort label-1249
SELECT DISTINCT ( 71 ) + - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0
----
70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT ALL COUNT( * ) + + 26
----
27

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL COUNT ( * ) + + 26
----
27

query I rowsort
SELECT 42 - - 69
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1252
SELECT ALL - + CASE + + 65 WHEN + - COALESCE ( - 86, - 56 - + 39, + 94 + CAST( + - 8 AS SIGNED ) + - - 16 * + COUNT( * ) * 40 ) + NULLIF ( + 27, 85 - + 60 ) THEN - CAST( NULL AS DECIMAL ) WHEN - 84 THEN + ( + ( + CAST( ( ( - 83 ) ) AS SIGNED ) ) ) + - 48 WHEN ( + ( - COUNT( * ) ) ) THEN - ( + 89 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL - + CASE + + 65 WHEN + - COALESCE ( - 86, - 56 - + 39, + 94 + CAST ( + - 8 AS INTEGER ) + - - 16 * + COUNT ( * ) * 40 ) + NULLIF ( + 27, 85 - + 60 ) THEN - CAST ( NULL AS REAL ) WHEN - 84 THEN + ( + ( + CAST ( ( ( - 83 ) ) AS INTEGER ) ) ) + - 48 WHEN ( + ( - COUNT ( * ) ) ) THEN - ( + 89 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT - 47 * + - 50 + CASE - 26 WHEN - + 91 THEN + 58 WHEN 23 THEN NULL ELSE 97 END + - COALESCE ( - ( + + COUNT( * ) ), + - 16, MAX( ALL 5 ) ) * 90
----
2537

skipif mysql # not compatible
query I rowsort label-1253
SELECT - 47 * + - 50 + CASE - 26 WHEN - + 91 THEN + 58 WHEN 23 THEN NULL ELSE 97 END + - COALESCE ( - ( + + COUNT ( * ) ), + - 16, MAX ( ALL 5 ) ) * 90
----
2537

query II rowsort
SELECT DISTINCT - - 92 AS col2, - 98
----
92
-98

query I rowsort
SELECT 90 * + 28
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT 59 * + - 14 * + SUM( DISTINCT + + ( 71 ) ) + + - 9 - ( - + 27 ) * - 86 * ( + COUNT( * ) ) + 49 + - 98
----
-61026

skipif mysql # not compatible
query I rowsort label-1256
SELECT 59 * + - 14 * + SUM ( DISTINCT + + ( 71 ) ) + + - 9 - ( - + 27 ) * - 86 * ( + COUNT ( * ) ) + 49 + - 98
----
-61026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1257
SELECT ALL + 54 + + + 26 + - 59 + + - CASE + + 50 WHEN - 83 * + NULLIF ( + + 9, + + COUNT( * ) ) * 48 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - 19 END * - 7 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL + 54 + + + 26 + - 59 + + - CASE + + 50 WHEN - 83 * + NULLIF ( + + 9, + + COUNT ( * ) ) * 48 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - 19 END * - 7 col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT ( + 20 ) DIV + 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1259
SELECT ( + 20 ) / + 42 AS col0
----
0

query I rowsort
SELECT ALL - 79 + + 77 col0
----
-2

query I rowsort
SELECT 67 + - 34 * + 94 AS col1
----
-3129

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1262
SELECT DISTINCT + COUNT( * ) AS col2, 16 DIV + MAX( 22 )
----
1
0

skipif mysql # not compatible
query II rowsort label-1262
SELECT DISTINCT + COUNT ( * ) AS col2, 16 / + MAX ( 22 )
----
1
0

query I rowsort
SELECT DISTINCT 63 + 84 col0
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1264
SELECT + - 52 * - 47 + - MIN( - 63 ) * - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1264
SELECT + - 52 * - 47 + - MIN ( - 63 ) * - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 81 + - 79
----
2

query II rowsort
SELECT ALL 75 col0, - 42 AS col0
----
75
-42

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1268
SELECT - 34 * COUNT( * ) * - COUNT( * ) + + + COALESCE ( 39, + 34 * - 82 + 26 - 50 - + 6 DIV + 1 * - COUNT( * ) * - - 47 * + 49 ) * - 65 AS col2
----
-2501

skipif mysql # not compatible
query I rowsort label-1268
SELECT - 34 * COUNT ( * ) * - COUNT ( * ) + + + COALESCE ( 39, + 34 * - 82 + 26 - 50 - + 6 / + 1 * - COUNT ( * ) * - - 47 * + 49 ) * - 65 AS col2
----
-2501

query I rowsort
SELECT + - 21 + + + 68
----
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT - - CASE - MAX( + 28 ) WHEN + 37 * + 68 THEN NULL ELSE - + ( + + 66 ) * + - ( + 51 ) END
----
3366

skipif mysql # not compatible
query I rowsort label-1271
SELECT - - CASE - MAX ( + 28 ) WHEN + 37 * + 68 THEN NULL ELSE - + ( + + 66 ) * + - ( + 51 ) END
----
3366

query I rowsort
SELECT + ( + CASE - 91 WHEN + 49 THEN - - 11 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1273
SELECT ALL + 77 - - CAST( CASE - 81 WHEN - + COUNT( * ) THEN - 92 ELSE - ( 7 ) END AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL + 77 - - CAST ( CASE - 81 WHEN - + COUNT ( * ) THEN - 92 ELSE - ( 7 ) END AS INTEGER )
----
70

query II rowsort
SELECT - 37 AS col1, 51
----
-37
51

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

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

query I rowsort
SELECT ALL + 50 * - 12 AS col1
----
-600

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1277
SELECT DISTINCT MAX( - - 80 ), + 34 + - - NULLIF ( 44, + + 12 * 34 + - - 91 * 23 + - NULLIF ( - 38, + 72 ) DIV - - CAST( NULL AS DECIMAL ) ) DIV + 76 * 80 - ( - COUNT( * ) - ( ( - 60 ) ) * 22 ) AS col1
----
80
-1285

skipif mysql # not compatible
query II rowsort label-1277
SELECT DISTINCT MAX ( - - 80 ), + 34 + - - NULLIF ( 44, + + 12 * 34 + - - 91 * 23 + - NULLIF ( - 38, + 72 ) / - - CAST ( NULL AS REAL ) ) / + 76 * 80 - ( - COUNT ( * ) - ( ( - 60 ) ) * 22 ) AS col1
----
80
-1285

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT ALL COALESCE ( - - ( + 83 ), + 19 DIV - 43 )
----
83

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL COALESCE ( - - ( + 83 ), + 19 / - 43 )
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT DISTINCT - 5 - COUNT( * ) * 71 * + ( + + 73 )
----
-5188

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT - 5 - COUNT ( * ) * 71 * + ( + + 73 )
----
-5188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1281
SELECT - 80 + - ( - 38 ) + 96 - - AVG ( ALL - 0 ) * + - COUNT( + ( 86 ) ) * + CAST( NULL AS SIGNED ) + - + COUNT( * ) * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-1281
SELECT - 80 + - ( - 38 ) + 96 - - AVG ( ALL - 0 ) * + - COUNT ( + ( 86 ) ) * + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * + 77
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT ALL - COUNT( DISTINCT - ( - 1 ) ) * 58 * 63 * + - 96 - + 1 * 39 AS col2
----
350745

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL - COUNT ( DISTINCT - ( - 1 ) ) * 58 * 63 * + - 96 - + 1 * 39 AS col2
----
350745

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1284
SELECT - CAST( NULL AS DECIMAL ) / - - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT - CAST ( NULL AS REAL ) / - - 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1285
SELECT + COUNT( * ) DIV 81 * COUNT( * ) + - 95 AS col2, - ( + 94 ) DIV - 24 - - COUNT( 5 ) DIV - - 66 * ( - - 31 ) AS col0
----
-95
3

skipif mysql # not compatible
query II rowsort label-1285
SELECT + COUNT ( * ) / 81 * COUNT ( * ) + - 95 AS col2, - ( + 94 ) / - 24 - - COUNT ( 5 ) / - - 66 * ( - - 31 ) AS col0
----
-95
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT NULLIF ( - 73, + COUNT( * ) * 8 )
----
-73

skipif mysql # not compatible
query I rowsort label-1286
SELECT NULLIF ( - 73, + COUNT ( * ) * 8 )
----
-73

query I rowsort
SELECT ALL - 88 * - - 53
----
-4664

query I rowsort
SELECT DISTINCT - 33 * + 53
----
-1749

query I rowsort
SELECT ALL + 79 * + 48 AS col2
----
3792

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT DISTINCT + CASE + ( 3 ) WHEN - 45 + - 36 THEN NULL WHEN - COALESCE ( ( ( COUNT( * ) ) ), + 57, - - SUM( ALL + 81 ) - - AVG ( - 74 ) ) THEN - 80 + COUNT( * ) WHEN + 8 / 80 THEN ( + 67 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT + CASE + ( 3 ) WHEN - 45 + - 36 THEN NULL WHEN - COALESCE ( ( ( COUNT ( * ) ) ), + 57, - - SUM ( ALL + 81 ) - - AVG ( - 74 ) ) THEN - 80 + COUNT ( * ) WHEN + 8 / 80 THEN ( + 67 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 90 * - - 66 + + - 14
----
5926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1292
SELECT ALL + COALESCE ( COALESCE ( 92, - 10, - 47 ), + 39 * + COUNT( * ), - 33 * - - 39 + + - 33 * 7 + - 81 / SUM( - 93 ) / 65 - - ( - 27 ) * - 38 ) * 79 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + COALESCE ( COALESCE ( 92, - 10, - 47 ), + 39 * + COUNT ( * ), - 33 * - - 39 + + - 33 * 7 + - 81 / SUM ( - 93 ) / 65 - - ( - 27 ) * - 38 ) * 79 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1293
SELECT NULLIF ( COUNT( * ), + + CAST( + 64 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-1293
SELECT NULLIF ( COUNT ( * ), + + CAST ( + 64 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT - + 94 * + MAX( DISTINCT - - ( - 92 ) )
----
8648

skipif mysql # not compatible
query I rowsort label-1294
SELECT - + 94 * + MAX ( DISTINCT - - ( - 92 ) )
----
8648

query I rowsort
SELECT + - 88 + + - 89
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT + CAST( + 54 AS SIGNED ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1296
SELECT + CAST ( + 54 AS INTEGER ) AS col1
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT - - MAX( DISTINCT + + 58 ) - - 87 + + 44 + + + ( COUNT( DISTINCT - - 74 ) ) AS col0
----
190

skipif mysql # not compatible
query I rowsort label-1298
SELECT - - MAX ( DISTINCT + + 58 ) - - 87 + + 44 + + + ( COUNT ( DISTINCT - - 74 ) ) AS col0
----
190

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT CASE + 82 WHEN - 27 THEN - + 1 * - COUNT( * ) + COUNT( * ) - + 56 * 52 WHEN - + AVG ( DISTINCT + 49 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT CASE + 82 WHEN - 27 THEN - + 1 * - COUNT ( * ) + COUNT ( * ) - + 56 * 52 WHEN - + AVG ( DISTINCT + 49 ) THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1301
SELECT + - 40 * 5 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT + ( + 69 ) * - - ( MIN( DISTINCT + 59 ) ) - + - 20 AS col1
----
4091

skipif mysql # not compatible
query I rowsort label-1302
SELECT + ( + 69 ) * - - ( MIN ( DISTINCT + 59 ) ) - + - 20 AS col1
----
4091

query I rowsort
SELECT + 54 * - + ( + 90 ) AS col0
----
-4860

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT + 98 - - + COALESCE ( + 30, - + 43 ) + COUNT( * ) AS col1
----
129

skipif mysql # not compatible
query I rowsort label-1304
SELECT + 98 - - + COALESCE ( + 30, - + 43 ) + COUNT ( * ) AS col1
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1305
SELECT + ( - + MAX( 82 ) ) - 55 + - COUNT( * ) * 80 * - CAST( NULL AS SIGNED ) * ( - - 68 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1305
SELECT + ( - + MAX ( 82 ) ) - 55 + - COUNT ( * ) * 80 * - CAST ( NULL AS INTEGER ) * ( - - 68 ) AS col2
----
NULL

query I rowsort
SELECT + 10 * + 73
----
730

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

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

query I rowsort
SELECT + 57 + + + 42 * - - ( - 80 )
----
-3303

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

skipif mysql # not compatible
query I rowsort label-1309
SELECT - 56 * - + COUNT ( * ) / + ( - 89 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT ALL MIN( ALL - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL MIN ( ALL - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT ALL ( MIN( ALL - ( - 60 ) ) )
----
60

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL ( MIN ( ALL - ( - 60 ) ) )
----
60

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1313
SELECT ALL 60 DIV COUNT( * ) + 96 * + 43 * - - 86
----
355068

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL 60 / COUNT ( * ) + 96 * + 43 * - - 86
----
355068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1314
SELECT ALL - COUNT( ALL 97 ) DIV - 52 * - 93 * - NULLIF ( + 31, + 3 - + 30 ) + + ( - 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL - COUNT ( ALL 97 ) / - 52 * - 93 * - NULLIF ( + 31, + 3 - + 30 ) + + ( - 73 ) AS col0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1315
SELECT ALL + 35 DIV - 29 + - - ( + ( + 27 ) ) DIV - COALESCE ( - COUNT( * ), - + 98 * + 75 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL + 35 / - 29 + - - ( + ( + 27 ) ) / - COALESCE ( - COUNT ( * ), - + 98 * + 75 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT - 90 * - 64 * - + 36 * - - COUNT( * ) AS col0
----
-207360

skipif mysql # not compatible
query I rowsort label-1316
SELECT - 90 * - 64 * - + 36 * - - COUNT ( * ) AS col0
----
-207360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1317
SELECT - 91 / + 15 + - 49 * - CAST( NULL AS SIGNED ) * MAX( + ( + 52 ) ) / - CASE 31 WHEN - SUM( DISTINCT 21 ) THEN 61 + - + 48 + - COUNT( * ) + NULLIF ( 52, CASE 14 WHEN - 8 * 40 THEN - 18 ELSE - 60 / + SUM( - 40 ) END / 1 ) * 3 WHEN COUNT( * ) + ( 62 ) * 87 THEN + 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT - 91 / + 15 + - 49 * - CAST ( NULL AS INTEGER ) * MAX ( + ( + 52 ) ) / - CASE 31 WHEN - SUM ( DISTINCT 21 ) THEN 61 + - + 48 + - COUNT ( * ) + NULLIF ( 52, CASE 14 WHEN - 8 * 40 THEN - 18 ELSE - 60 / + SUM ( - 40 ) END / 1 ) * 3 WHEN COUNT ( * ) + ( 62 ) * 87 THEN + 22 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1318
SELECT ALL + 19 DIV + 87 + - + 56, + NULLIF ( - 47, - 6 + + 90 - - 18 + 67 * + + COUNT( * ) ) - + ( + 25 ) AS col0
----
-56
-72

skipif mysql # not compatible
query II rowsort label-1318
SELECT ALL + 19 / + 87 + - + 56, + NULLIF ( - 47, - 6 + + 90 - - 18 + 67 * + + COUNT ( * ) ) - + ( + 25 ) AS col0
----
-56
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1319
SELECT - 43 DIV ( + + COUNT( - + 71 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-1319
SELECT - 43 / ( + + COUNT ( - + 71 ) )
----
-43

query I rowsort
SELECT - NULLIF ( - - 14, - 19 ) - + 78 AS col1
----
-92

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT DISTINCT + + 34 * ( CASE - + 4 WHEN + CASE 65 WHEN + COUNT( * ) + + COUNT( * ) + + COUNT( * ) * - ( - + ( + 66 ) ) THEN - + COUNT( * ) ELSE NULL END + + 15 * 45 THEN NULL WHEN 29 THEN NULL WHEN + 98 THEN NULL ELSE 93 END ) AS col0
----
3162

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT + + 34 * ( CASE - + 4 WHEN + CASE 65 WHEN + COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) * - ( - + ( + 66 ) ) THEN - + COUNT ( * ) ELSE NULL END + + 15 * 45 THEN NULL WHEN 29 THEN NULL WHEN + 98 THEN NULL ELSE 93 END ) AS col0
----
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT ALL - COALESCE ( 60, + 8 ) * 16 - - 96 * - MAX( DISTINCT - + 12 ) + - 63
----
129

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL - COALESCE ( 60, + 8 ) * 16 - - 96 * - MAX ( DISTINCT - + 12 ) + - 63
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT + CASE - 18 WHEN - 30 * 38 + - COUNT( * ) / 81 THEN - - 16 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1325
SELECT + CASE - 18 WHEN - 30 * 38 + - COUNT ( * ) / 81 THEN - - 16 END col0
----
NULL

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

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

query I rowsort
SELECT 96 * - 51 + - 71 + + 15
----
-4952

query I rowsort
SELECT ALL + + 84 - - + 49
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT 7 * - - 55 + SUM( - 95 ) AS col2
----
290

skipif mysql # not compatible
query I rowsort label-1329
SELECT 7 * - - 55 + SUM ( - 95 ) AS col2
----
290

query I rowsort
SELECT 41 * 79 * + ( + + 87 ) * + 85 * + 83 + 56 + - + 26 + + 53 * - 38 + - + 13
----
1988047618

query I rowsort
SELECT - 69 + + 38
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT COUNT( ALL ( - + 15 ) ) + + - 56 * + 26 AS col2
----
-1455

skipif mysql # not compatible
query I rowsort label-1332
SELECT COUNT ( ALL ( - + 15 ) ) + + - 56 * + 26 AS col2
----
-1455

query I rowsort
SELECT ALL - 44 * - - 90
----
-3960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1334
SELECT 30 * - 66 + 56 DIV - NULLIF ( + 86, 12 + - 8 + - 53 * - ( 75 ) DIV + COUNT( * ) - + 17 + COALESCE ( - 85, 2 ) DIV + 6 ) + 52 * 11 AS col2
----
-1408

skipif mysql # not compatible
query I rowsort label-1334
SELECT 30 * - 66 + 56 / - NULLIF ( + 86, 12 + - 8 + - 53 * - ( 75 ) / + COUNT ( * ) - + 17 + COALESCE ( - 85, 2 ) / + 6 ) + 52 * 11 AS col2
----
-1408

query I rowsort
SELECT DISTINCT - - 42 * - 15
----
-630

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

skipif mysql # not compatible
query I rowsort label-1336
SELECT + 19 / - COUNT ( * )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1337
SELECT ALL - 50 * 47 DIV + 47
----
-50

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - 50 * 47 / + 47
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-1338
SELECT ALL 67, COUNT( * ) - - 94 * + 64 AS col1
----
67
6017

skipif mysql # not compatible
query II rowsort label-1338
SELECT ALL 67, COUNT ( * ) - - 94 * + 64 AS col1
----
67
6017

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1339
SELECT COALESCE ( + 91, 44 ) + 51 AS col2, CAST( NULL AS SIGNED )
----
142
NULL

skipif mysql # not compatible
query II rowsort label-1339
SELECT COALESCE ( + 91, 44 ) + 51 AS col2, CAST ( NULL AS INTEGER )
----
142
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT SUM( ALL + 93 ) + 89
----
182

skipif mysql # not compatible
query I rowsort label-1340
SELECT SUM ( ALL + 93 ) + 89
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT 80 DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1341
SELECT 80 / + 97 AS col1
----
0

query I rowsort
SELECT 16 * + 86 AS col0
----
1376

query II rowsort
SELECT 56 AS col0, 26 AS col1
----
56
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1344
SELECT CAST( NULL AS SIGNED ) * + 87 * - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT CAST ( NULL AS INTEGER ) * + 87 * - 43 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 79 + + 70 AS col2, - 7
----
149
-7

query II rowsort
SELECT 6 + + 99 AS col0, 82
----
105
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1347
SELECT ALL 26 + + 37 + + 18 + COUNT( * ) + CASE + ( + 49 ) WHEN - CAST( - 25 AS SIGNED ) THEN 10 + - 65 END + + - ( - MIN( ( + 83 ) ) ) * COUNT( * ) * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL 26 + + 37 + + 18 + COUNT ( * ) + CASE + ( + 49 ) WHEN - CAST ( - 25 AS INTEGER ) THEN 10 + - 65 END + + - ( - MIN ( ( + 83 ) ) ) * COUNT ( * ) * 82
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT COUNT ( * ) + 59 AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1349
SELECT DISTINCT 44 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT 44 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query II rowsort
SELECT ALL 45 AS col2, - 76 * - + 50 AS col1
----
45
3800

onlyif mysql # aggregate syntax: 
query II rowsort label-1352
SELECT ALL 47 col2, + 47 * + + COUNT( * ) col1
----
47
47

skipif mysql # not compatible
query II rowsort label-1352
SELECT ALL 47 col2, + 47 * + + COUNT ( * ) col1
----
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT COALESCE ( - - 43, - - 10 + - 21 ) + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-1353
SELECT COALESCE ( - - 43, - - 10 + - 21 ) + COUNT ( * )
----
44

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT - 61 * 90 + + 2 * - ( + + COUNT( * ) ) - + + ( 6 )
----
-5498

skipif mysql # not compatible
query I rowsort label-1356
SELECT - 61 * 90 + + 2 * - ( + + COUNT ( * ) ) - + + ( 6 )
----
-5498

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT DISTINCT - SUM( + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT - SUM ( + 20 )
----
-20

query II rowsort
SELECT ALL - 95, 10 + + 52 AS col2
----
-95
62

query I rowsort
SELECT ALL + 55 + + 94 AS col1
----
149

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1362
SELECT + - ( + 50 ), 18 * + + COUNT( * ) * + COUNT( * ) * - CAST( NULL AS SIGNED ) / - 39 AS col1, 50 AS col2
----
-50
NULL
50

skipif mysql # not compatible
query III rowsort label-1362
SELECT + - ( + 50 ), 18 * + + COUNT ( * ) * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) / - 39 AS col1, 50 AS col2
----
-50
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT ALL - 0 - - CASE - + COUNT( * ) WHEN 59 THEN NULL WHEN + 41 THEN - + COUNT( * ) * ( + 34 ) + - 29 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL - 0 - - CASE - + COUNT ( * ) WHEN 59 THEN NULL WHEN + 41 THEN - + COUNT ( * ) * ( + 34 ) + - 29 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1364
SELECT 96 * + - CASE COUNT( ALL 57 ) WHEN 28 * CAST( NULL AS SIGNED ) - + 79 * 29 + - ( 15 ) * + 77 * 24 THEN 7 ELSE - - AVG ( - CAST( NULL AS SIGNED ) ) END * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-1364
SELECT 96 * + - CASE COUNT ( ALL 57 ) WHEN 28 * CAST ( NULL AS INTEGER ) - + 79 * 29 + - ( 15 ) * + 77 * 24 THEN 7 ELSE - - AVG ( - CAST ( NULL AS INTEGER ) ) END * - 78
----
NULL

query II rowsort
SELECT DISTINCT - - 43 AS col2, + 99 * 87 + - - 50 AS col0
----
43
8663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1366
SELECT DISTINCT + COUNT( ALL 41 ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT + COUNT ( ALL 41 ) / 71
----
0

query I rowsort
SELECT - 0 + 33 - 15 AS col0
----
18

query I rowsort
SELECT ALL - 39 - - 90
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT - 27 * + MAX( - + 68 ) * + - 26 - 26 AS col0
----
-47762

skipif mysql # not compatible
query I rowsort label-1369
SELECT - 27 * + MAX ( - + 68 ) * + - 26 - 26 AS col0
----
-47762

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1371
SELECT ALL + 79 - + COUNT( * ), CAST( + 75 AS SIGNED ) AS col0, - SUM( DISTINCT ( - 4 ) ) * - + 94 AS col0
----
78
75
-376

skipif mysql # not compatible
query III rowsort label-1371
SELECT ALL + 79 - + COUNT ( * ), CAST ( + 75 AS INTEGER ) AS col0, - SUM ( DISTINCT ( - 4 ) ) * - + 94 AS col0
----
78
75
-376

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL - COUNT( * ) * - 23 + 13 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - COUNT ( * ) * - 23 + 13 AS col0
----
36

query II rowsort
SELECT ALL - + 20 AS col1, - 95 col1
----
-20
-95

query I rowsort
SELECT 44 * + - 93 + - 73 + + 52
----
-4113

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1377
SELECT 24 * - 57 + + 88 + + CAST( NULL AS SIGNED ) AS col0, 96 AS col0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-1377
SELECT 24 * - 57 + + 88 + + CAST ( NULL AS INTEGER ) AS col0, 96 AS col0
----
NULL
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT 6 + - 1 DIV + 19 - + - 5 * + + 12 + + - 97
----
-31

skipif mysql # not compatible
query I rowsort label-1378
SELECT 6 + - 1 / + 19 - + - 5 * + + 12 + + - 97
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT - COUNT( * ) + 66 * - + 96 - - + 12
----
-6325

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT - COUNT ( * ) + 66 * - + 96 - - + 12
----
-6325

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

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

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

skipif mysql # not compatible
query I rowsort label-1381
SELECT 96 * + CAST ( NULL AS INTEGER ) * 0
----
NULL

query I rowsort
SELECT DISTINCT - 47 + + - 35 AS col0
----
-82

query I rowsort
SELECT DISTINCT 74 + - 13 AS col1
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ALL - COUNT( * ) + + 44 - 11 * - + 33
----
406

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL - COUNT ( * ) + + 44 - 11 * - + 33
----
406

query I rowsort
SELECT ALL 91 * + - 45
----
-4095

query II rowsort
SELECT ALL - 20 + + - 55 col0, - 63
----
-75
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1388
SELECT ALL CAST( 66 AS SIGNED ) + + 7 + - 98 + + 16 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL CAST ( 66 AS INTEGER ) + + 7 + - 98 + + 16 AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1389
SELECT 99 + 20 + + - 77 AS col1, - ( + - CAST( ( + - ( + 86 ) ) AS SIGNED ) ) * - + 70 + + 90
----
42
6110

skipif mysql # not compatible
query II rowsort label-1389
SELECT 99 + 20 + + - 77 AS col1, - ( + - CAST ( ( + - ( + 86 ) ) AS INTEGER ) ) * - + 70 + + 90
----
42
6110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1390
SELECT 34 * 51 AS col0, CAST( - - 13 AS SIGNED ) + + 71 AS col2
----
1734
84

skipif mysql # not compatible
query II rowsort label-1390
SELECT 34 * 51 AS col0, CAST ( - - 13 AS INTEGER ) + + 71 AS col2
----
1734
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1391
SELECT COUNT( * ) DIV - + 22 * - + 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT COUNT ( * ) / - + 22 * - + 27 AS col2
----
0

query I rowsort
SELECT 24 * 22 AS col0
----
528

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT ALL COALESCE ( - + 85, 80 ) DIV 11
----
-7

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL COALESCE ( - + 85, 80 ) / 11
----
-7

query I rowsort
SELECT DISTINCT 84 - + 78 AS col2
----
6

query I rowsort
SELECT ALL COALESCE ( - + 10, + 1 + + 39 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1396
SELECT DISTINCT 60 * + 31 * - ( COUNT( * ) ) DIV - NULLIF ( - COUNT( * ), COUNT( * ) - + 80 ) AS col0
----
-1860

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT 60 * + 31 * - ( COUNT ( * ) ) / - NULLIF ( - COUNT ( * ), COUNT ( * ) - + 80 ) AS col0
----
-1860

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1398
SELECT + + 64 DIV + CAST( COUNT( * ) AS SIGNED ) - + - COALESCE ( + 34, - - SUM( - 26 ) + - + ( + 97 ) ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1398
SELECT + + 64 / + CAST ( COUNT ( * ) AS INTEGER ) - + - COALESCE ( + 34, - - SUM ( - 26 ) + - + ( + 97 ) ) AS col2
----
98

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

query I rowsort
SELECT ALL - 43 * - + 66 * + 81
----
229878

query I rowsort
SELECT ALL + ( NULLIF ( + + 88, - 78 ) ) AS col1
----
88

query I rowsort
SELECT DISTINCT 59 * COALESCE ( - ( + - 62 ), - 41 * - 63 - 80 )
----
3658

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1403
SELECT ALL + + CAST( - 49 AS SIGNED ), 91 AS col1
----
-49
91

skipif mysql # not compatible
query II rowsort label-1403
SELECT ALL + + CAST ( - 49 AS INTEGER ), 91 AS col1
----
-49
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT + 21 * + COUNT( 44 ) + + 53
----
74

skipif mysql # not compatible
query I rowsort label-1404
SELECT + 21 * + COUNT ( 44 ) + + 53
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1405
SELECT + 33 * - 73 + CAST( + - 80 AS SIGNED ) col0
----
-2489

skipif mysql # not compatible
query I rowsort label-1405
SELECT + 33 * - 73 + CAST ( + - 80 AS INTEGER ) col0
----
-2489

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT DISTINCT + ( CASE WHEN 43 IS NULL THEN - + COUNT( * ) + + - ( - 42 ) + 62 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT + ( CASE WHEN 43 IS NULL THEN - + COUNT ( * ) + + - ( - 42 ) + 62 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT DISTINCT + - NULLIF ( 72, - 31 + COALESCE ( + MAX( + ( - + 61 ) ), + + 26 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT + - NULLIF ( 72, - 31 + COALESCE ( + MAX ( + ( - + 61 ) ), + + 26 ) )
----
-72

query II rowsort
SELECT DISTINCT + 95 * + 74 col1, + 22 AS col0
----
7030
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT ALL + MAX( DISTINCT - - 50 ) / CASE COUNT( * ) WHEN + COUNT( * ) + + COUNT( * ) + + - 77 THEN 92 * + MAX( DISTINCT - ( - 39 ) ) + + NULLIF ( + 12, 22 ) * 73 - + 67 WHEN 65 - + COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL + MAX ( DISTINCT - - 50 ) / CASE COUNT ( * ) WHEN + COUNT ( * ) + + COUNT ( * ) + + - 77 THEN 92 * + MAX ( DISTINCT - ( - 39 ) ) + + NULLIF ( + 12, 22 ) * 73 - + 67 WHEN 65 - + COUNT ( * ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + - COALESCE ( 24, 15 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1411
SELECT DISTINCT + 79 * CAST( 13 AS SIGNED ) + - - 60, - 99 AS col2
----
1087
-99

skipif mysql # not compatible
query II rowsort label-1411
SELECT DISTINCT + 79 * CAST ( 13 AS INTEGER ) + - - 60, - 99 AS col2
----
1087
-99

query I rowsort
SELECT ALL + 88 * 93 AS col1
----
8184

query II rowsort
SELECT ALL - ( + 19 ) + + 82 AS col2, 99 * 65 AS col2
----
63
6435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1414
SELECT - 4 + - 90 + + - 30 DIV - COUNT( 69 )
----
-64

skipif mysql # not compatible
query I rowsort label-1414
SELECT - 4 + - 90 + + - 30 / - COUNT ( 69 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT DISTINCT COALESCE ( 16, SUM( DISTINCT + 75 ) * 77 - 58 * + 98 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT COALESCE ( 16, SUM ( DISTINCT + 75 ) * 77 - 58 * + 98 ) AS col0
----
16

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1417
SELECT - 33, + COUNT( * ) * - + 28 DIV - 48 AS col1
----
-33
0

skipif mysql # not compatible
query II rowsort label-1417
SELECT - 33, + COUNT ( * ) * - + 28 / - 48 AS col1
----
-33
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT + COUNT( ALL - + 13 ) + - 51
----
-50

skipif mysql # not compatible
query I rowsort label-1418
SELECT + COUNT ( ALL - + 13 ) + - 51
----
-50

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

query II rowsort
SELECT 37 AS col2, - 81 AS col2
----
37
-81

query I rowsort
SELECT - 26 + - 76
----
-102

query I rowsort
SELECT ALL ( + 78 ) col0
----
78

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

query I rowsort
SELECT - 31 + - - 88 AS col0
----
57

query I rowsort
SELECT DISTINCT - 53 - + + 74
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1426
SELECT DISTINCT COALESCE ( + - 69, 36 DIV CASE - CAST( NULL AS DECIMAL ) WHEN 33 * + CAST( NULL AS SIGNED ) THEN NULL ELSE + + COUNT( * ) END + + COUNT( * ) )
----
-69

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT COALESCE ( + - 69, 36 / CASE - CAST ( NULL AS REAL ) WHEN 33 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE + + COUNT ( * ) END + + COUNT ( * ) )
----
-69

query I rowsort
SELECT DISTINCT 19 - - 84 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT ALL ( CASE + - MIN( - - 32 ) WHEN - - 93 THEN NULL WHEN 61 THEN - 61 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL ( CASE + - MIN ( - - 32 ) WHEN - - 93 THEN NULL WHEN 61 THEN - 61 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT - 46 * + MAX( ALL - 12 ) + 91
----
643

skipif mysql # not compatible
query I rowsort label-1429
SELECT - 46 * + MAX ( ALL - 12 ) + 91
----
643

onlyif mysql # aggregate syntax: 
query II rowsort label-1430
SELECT 65 AS col2, COUNT( * ) + - 49 AS col1
----
65
-48

skipif mysql # not compatible
query II rowsort label-1430
SELECT 65 AS col2, COUNT ( * ) + - 49 AS col1
----
65
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1431
SELECT + + CASE - 37 WHEN - COUNT( ALL - ( 54 ) ) + + + 84 THEN 29 WHEN - + COUNT( * ) THEN 87 * + 98 - - CAST( NULL AS DECIMAL ) + + - 87 + + - 63 + + - ( + 31 ) / 89 + + 38 * 98 ELSE NULL END + - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1431
SELECT + + CASE - 37 WHEN - COUNT ( ALL - ( 54 ) ) + + + 84 THEN 29 WHEN - + COUNT ( * ) THEN 87 * + 98 - - CAST ( NULL AS REAL ) + + - 87 + + - 63 + + - ( + 31 ) / 89 + + 38 * 98 ELSE NULL END + - 7 AS col1
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT - COALESCE ( + 63, - - 37, - 98, + CAST( + 47 AS SIGNED ) + + 70 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-1434
SELECT - COALESCE ( + 63, - - 37, - 98, + CAST ( + 47 AS INTEGER ) + + 70 ) AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1435
SELECT + - 3 + - + 63 + + - NULLIF ( + SUM( - 89 ), + - 37 ) + - - 65 DIV + 19 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-1435
SELECT + - 3 + - + 63 + + - NULLIF ( + SUM ( - 89 ), + - 37 ) + - - 65 / + 19 AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1436
SELECT COUNT( * ) AS col2, COALESCE ( + 43, + 27 ) AS col1
----
1
43

skipif mysql # not compatible
query II rowsort label-1436
SELECT COUNT ( * ) AS col2, COALESCE ( + 43, + 27 ) AS col1
----
1
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1437
SELECT - + 34 * - + 31 DIV COUNT( * ) + - COUNT( * ) + + 7 + + 61 * + 86 * - + 77 AS col2, - 76
----
-402882
-76

skipif mysql # not compatible
query II rowsort label-1437
SELECT - + 34 * - + 31 / COUNT ( * ) + - COUNT ( * ) + + 7 + + 61 * + 86 * - + 77 AS col2, - 76
----
-402882
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1438
SELECT + + 88 * 58 * - COUNT( * ) DIV COUNT( * ) + + + 32 - + 26
----
-5098

skipif mysql # not compatible
query I rowsort label-1438
SELECT + + 88 * 58 * - COUNT ( * ) / COUNT ( * ) + + + 32 - + 26
----
-5098

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT + CASE + - ( + + ( + 92 ) ) WHEN - AVG ( - 5 ) * - COALESCE ( 34, - 18, - 35 + COUNT( * ) + - 28 + + 22 ) * - 7 THEN 86 END / - + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + CASE + - ( + + ( + 92 ) ) WHEN - AVG ( - 5 ) * - COALESCE ( 34, - 18, - 35 + COUNT ( * ) + - 28 + + 22 ) * - 7 THEN 86 END / - + 78 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL - SUM( - 52 ) * - - ( - 18 )
----
-936

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL - SUM ( - 52 ) * - - ( - 18 )
----
-936

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

skipif mysql # not compatible
query II rowsort label-1442
SELECT - COUNT ( * ) AS col2, 73
----
-1
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1443
SELECT DISTINCT + - 60 DIV NULLIF ( - COUNT( + + 32 ), + - 49 ) * 85 + + 57 + + - COUNT( * ) AS col2
----
5156

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT + - 60 / NULLIF ( - COUNT ( + + 32 ), + - 49 ) * 85 + + 57 + + - COUNT ( * ) AS col2
----
5156

onlyif mysql # DIV for integer division: 
query I rowsort label-1444
SELECT + 76 DIV - 29 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1444
SELECT + 76 / - 29 AS col0
----
-2

query I rowsort
SELECT + - ( - 44 ) * - 36 * + + 15 * 28
----
-665280

query II rowsort
SELECT ALL + + 55 AS col2, + 96 AS col0
----
55
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1447
SELECT + 63 AS col2, MAX( DISTINCT 71 )
----
63
71

skipif mysql # not compatible
query II rowsort label-1447
SELECT + 63 AS col2, MAX ( DISTINCT 71 )
----
63
71

query I rowsort
SELECT + + 32 * + 33
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT + + 27 * COUNT( * ) + - 94 - - MIN( 14 )
----
-53

skipif mysql # not compatible
query I rowsort label-1449
SELECT + + 27 * COUNT ( * ) + - 94 - - MIN ( 14 )
----
-53

query II rowsort
SELECT DISTINCT + + 73 AS col0, 20 AS col1
----
73
20

query I rowsort
SELECT DISTINCT + - 43 * + - 17 * + 27 + 6 + + 37 + - 51 + + 55 AS col1
----
19784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1452
SELECT COUNT( * ) AS col1, 47 * - CAST( + - 6 AS SIGNED )
----
1
282

skipif mysql # not compatible
query II rowsort label-1452
SELECT COUNT ( * ) AS col1, 47 * - CAST ( + - 6 AS INTEGER )
----
1
282

query I rowsort
SELECT DISTINCT 69 * + 69 + 78 - + ( - + 61 ) col2
----
4900

query I rowsort
SELECT CASE + - 5 WHEN - + 53 THEN NULL WHEN + 99 THEN 78 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 20 * - - 95 + - 85 col2
----
-1985

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1456
SELECT DISTINCT - 42 * + 93 + + COUNT( * ) * - 55 DIV + - ( 16 )
----
-3903

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT - 42 * + 93 + + COUNT ( * ) * - 55 / + - ( 16 )
----
-3903

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

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

query I rowsort
SELECT - 68 + - 28 AS col2
----
-96

query II rowsort
SELECT + 38 * 17 col2, 82 AS col1
----
646
82

query I rowsort
SELECT ALL - 10 * 31 - - - 65
----
-375

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1462
SELECT DISTINCT - 12 DIV - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT - 12 / - 82 AS col0
----
0

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

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

query II rowsort
SELECT 30 * + 67, 37 * + 32 * 37 AS col2
----
2010
43808

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

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

query I rowsort
SELECT DISTINCT - ( + 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT DISTINCT + MAX( ALL - ( + 44 ) ) * COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT + MAX ( ALL - ( + 44 ) ) * COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT DISTINCT + - COALESCE ( + + 66, - + 11 * + COUNT( - + 53 ), + 43 ) + - 55
----
-121

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT + - COALESCE ( + + 66, - + 11 * + COUNT ( - + 53 ), + 43 ) + - 55
----
-121

query I rowsort
SELECT ALL - + 45 + 26 col2
----
-19

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

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

query I rowsort
SELECT ALL - NULLIF ( + - 19, + - 8 ) + + + 38 AS col2
----
57

query I rowsort
SELECT ( - 73 ) AS col2
----
-73

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

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL - COUNT ( * ) + - 10 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1474
SELECT + 13 + - 52 * + CAST( + - CASE + 85 WHEN + 9 THEN NULL ELSE + AVG ( ALL 63 ) * + + COUNT( ALL + ( - CAST( NULL AS SIGNED ) ) ) * 49 + - 65 * - 94 + - - CAST( + + NULLIF ( - + 86, - ( - + 26 ) + 49 ) AS SIGNED ) * 60 END AS SIGNED ) - - 93
----
49506

skipif mysql # not compatible
query I rowsort label-1474
SELECT + 13 + - 52 * + CAST ( + - CASE + 85 WHEN + 9 THEN NULL ELSE + AVG ( ALL 63 ) * + + COUNT ( ALL + ( - CAST ( NULL AS INTEGER ) ) ) * 49 + - 65 * - 94 + - - CAST ( + + NULLIF ( - + 86, - ( - + 26 ) + 49 ) AS INTEGER ) * 60 END AS INTEGER ) - - 93
----
49506

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT ALL + COUNT( * ) + - + 55 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL + COUNT ( * ) + - + 55 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT 19 + + COUNT( * ) + - 47 * - 88
----
4156

skipif mysql # not compatible
query I rowsort label-1476
SELECT 19 + + COUNT ( * ) + - 47 * - 88
----
4156

query I rowsort
SELECT ALL 68 - - + 26
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1478
SELECT 25 * + + 76 DIV + COUNT( * ), + CASE + 46 WHEN - + 41 + - CASE - 28 WHEN MIN( ALL + 23 ) THEN 28 WHEN + COUNT( * ) DIV + - 71 THEN NULL ELSE NULL END + 71 THEN NULL WHEN - 48 THEN 14 - - - 48 ELSE NULL END * + 53 AS col0
----
1900
NULL

skipif mysql # not compatible
query II rowsort label-1478
SELECT 25 * + + 76 / + COUNT ( * ), + CASE + 46 WHEN - + 41 + - CASE - 28 WHEN MIN ( ALL + 23 ) THEN 28 WHEN + COUNT ( * ) / + - 71 THEN NULL ELSE NULL END + 71 THEN NULL WHEN - 48 THEN 14 - - - 48 ELSE NULL END * + 53 AS col0
----
1900
NULL

query II rowsort
SELECT 33, + 91 AS col1
----
33
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1480
SELECT COALESCE ( + 1, - - COALESCE ( COUNT( * ), + + CASE 43 WHEN CASE - + MAX( + 16 ) WHEN 62 THEN - COALESCE ( + MAX( DISTINCT - 66 ), + 56 * - 5, 87 ) END THEN + + 78 + - 59 WHEN ( + SUM( 33 ) ) THEN NULL ELSE NULL END, CAST( NULL AS SIGNED ) + + COUNT( * ) * 24 ) ) + 95 * COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-1480
SELECT COALESCE ( + 1, - - COALESCE ( COUNT ( * ), + + CASE 43 WHEN CASE - + MAX ( + 16 ) WHEN 62 THEN - COALESCE ( + MAX ( DISTINCT - 66 ), + 56 * - 5, 87 ) END THEN + + 78 + - 59 WHEN ( + SUM ( 33 ) ) THEN NULL ELSE NULL END, CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 24 ) ) + 95 * COUNT ( * ) AS col0
----
96

query I rowsort
SELECT DISTINCT ( - 21 ) * - - 65 * - 19 AS col2
----
25935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1482
SELECT ALL - 86 AS col1, + CASE + - CASE + + 27 WHEN COUNT( * ) THEN + 27 * + COUNT( * ) WHEN - 65 + + - 99 THEN NULL ELSE NULL END WHEN - - 27 THEN SUM( + 3 ) * + 86 WHEN - 8 * - CAST( + 72 AS SIGNED ) * ( + 86 ) + 54 + - - 17 + - 20 * 77 THEN + 22 * MIN( 0 ) END
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-1482
SELECT ALL - 86 AS col1, + CASE + - CASE + + 27 WHEN COUNT ( * ) THEN + 27 * + COUNT ( * ) WHEN - 65 + + - 99 THEN NULL ELSE NULL END WHEN - - 27 THEN SUM ( + 3 ) * + 86 WHEN - 8 * - CAST ( + 72 AS INTEGER ) * ( + 86 ) + 54 + - - 17 + - 20 * 77 THEN + 22 * MIN ( 0 ) END
----
-86
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT NULLIF ( + COUNT( * ), + - 72 ) * - - 49 - 7 + + 51
----
93

skipif mysql # not compatible
query I rowsort label-1484
SELECT NULLIF ( + COUNT ( * ), + - 72 ) * - - 49 - 7 + + 51
----
93

query I rowsort
SELECT 34 + + - 52 * - 72 col1
----
3778

query I rowsort
SELECT - 52 * - 40 + + - 36
----
2044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1487
SELECT CAST( - 85 AS SIGNED ) * - 52
----
4420

skipif mysql # not compatible
query I rowsort label-1487
SELECT CAST ( - 85 AS INTEGER ) * - 52
----
4420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1488
SELECT ALL 96 * CASE + 58 WHEN - 54 / - COUNT( * ) THEN NULL ELSE - CASE + 66 WHEN 97 * - NULLIF ( 66, - - 20 + - 51 ) THEN + + 68 WHEN CAST( NULL AS SIGNED ) * - AVG ( - CAST( - 24 AS SIGNED ) ) - + + NULLIF ( - COALESCE ( - 31, 83 ), COUNT( * ) ) + + 53 THEN COUNT( - CAST( NULL AS SIGNED ) ) - 76 ELSE - 92 + + 13 END END
----
7584

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL 96 * CASE + 58 WHEN - 54 / - COUNT ( * ) THEN NULL ELSE - CASE + 66 WHEN 97 * - NULLIF ( 66, - - 20 + - 51 ) THEN + + 68 WHEN CAST ( NULL AS INTEGER ) * - AVG ( - CAST ( - 24 AS INTEGER ) ) - + + NULLIF ( - COALESCE ( - 31, 83 ), COUNT ( * ) ) + + 53 THEN COUNT ( - CAST ( NULL AS INTEGER ) ) - 76 ELSE - 92 + + 13 END END
----
7584

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT COUNT( * ) + + + COUNT( * ) + 59 - - - 14 * + 5 * - + 26 + - COUNT( * )
----
1880

skipif mysql # not compatible
query I rowsort label-1490
SELECT COUNT ( * ) + + + COUNT ( * ) + 59 - - - 14 * + 5 * - + 26 + - COUNT ( * )
----
1880

query I rowsort
SELECT 69 + 93 AS col0
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT ALL 43 DIV 8 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL 43 / 8 / + 34
----
0

query I rowsort
SELECT 40 * + 91
----
3640

query I rowsort
SELECT 75 * + + ( ( 57 ) ) AS col2
----
4275

query I rowsort
SELECT ALL 60 * + 63 AS col0
----
3780

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT - CASE - 2 WHEN + 64 + - 48 THEN NULL WHEN - SUM( + + 10 ) THEN 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT - CASE - 2 WHEN + 64 + - 48 THEN NULL WHEN - SUM ( + + 10 ) THEN 66 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 81 + + 34
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-1498
SELECT 96 + - + 27 DIV - + 93
----
96

skipif mysql # not compatible
query I rowsort label-1498
SELECT 96 + - + 27 / - + 93
----
96

query I rowsort
SELECT 88 + 26
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1500
SELECT ALL - CASE + 48 WHEN 18 * - + 90 THEN CASE + CAST( 44 AS SIGNED ) WHEN COUNT( * ) * + 12 THEN + 26 ELSE NULL END / 81 WHEN + - CAST( NULL AS SIGNED ) / 1 + 22 * + COUNT( * ) THEN 2 END + + 10 / - ( - MIN( - 24 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL - CASE + 48 WHEN 18 * - + 90 THEN CASE + CAST ( 44 AS INTEGER ) WHEN COUNT ( * ) * + 12 THEN + 26 ELSE NULL END / 81 WHEN + - CAST ( NULL AS INTEGER ) / 1 + 22 * + COUNT ( * ) THEN 2 END + + 10 / - ( - MIN ( - 24 ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1501
SELECT - - ( - ( + COALESCE ( - - ( + + 17 ), + + 70 ) ) ), - CAST( NULL AS DECIMAL ) AS col1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-1501
SELECT - - ( - ( + COALESCE ( - - ( + + 17 ), + + 70 ) ) ), - CAST ( NULL AS REAL ) AS col1
----
-17
NULL

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

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

query I rowsort
SELECT 65 + + 84
----
149

query I rowsort
SELECT - ( - ( 44 ) )
----
44

query I rowsort
SELECT 68 * + 35 * 26
----
61880

query I rowsort
SELECT 27 * - + NULLIF ( 28, + 60 - - 48 * 76 ) * + 96 AS col0
----
-72576

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1507
SELECT ALL - + 43 / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL - + 43 / + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT 57 + - COUNT( DISTINCT + - 56 ) * - 23
----
80

skipif mysql # not compatible
query I rowsort label-1508
SELECT 57 + - COUNT ( DISTINCT + - 56 ) * - 23
----
80

query I rowsort
SELECT - 38 * - 64 + + 89 AS col1
----
2521

query I rowsort
SELECT ALL - - 23 * NULLIF ( + + 41, + 48 + 78 ) * - - 36 + - - 2
----
33950

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1512
SELECT DISTINCT - + CAST( 7 AS SIGNED ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT - + CAST ( 7 AS INTEGER ) col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT SUM( ALL 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-1513
SELECT SUM ( ALL 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT ALL 38 * - + ( COUNT( - 42 ) ) + 86 - 74 - - ( - + 2 ) col2
----
-28

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL 38 * - + ( COUNT ( - 42 ) ) + 86 - 74 - - ( - + 2 ) col2
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-1515
SELECT DISTINCT - 42, 86 * - + 92 * - 99 + - ( + 12 ) * - NULLIF ( 23, + + COUNT( * ) * AVG ( ALL - 85 ) ) + - 28 * - 59 AS col0
----
-42
785216

skipif mysql # not compatible
query II rowsort label-1515
SELECT DISTINCT - 42, 86 * - + 92 * - 99 + - ( + 12 ) * - NULLIF ( 23, + + COUNT ( * ) * AVG ( ALL - 85 ) ) + - 28 * - 59 AS col0
----
-42
785216

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT DISTINCT - 22 * 25 * COUNT( * )
----
-550

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT - 22 * 25 * COUNT ( * )
----
-550

onlyif mysql # aggregate syntax: 
query II rowsort label-1517
SELECT COUNT( * ), - COUNT( * ) * - + 87 * - 94 + COUNT( * ) AS col2
----
1
-8177

skipif mysql # not compatible
query II rowsort label-1517
SELECT COUNT ( * ), - COUNT ( * ) * - + 87 * - 94 + COUNT ( * ) AS col2
----
1
-8177

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

skipif mysql # not compatible
query I rowsort label-1518
SELECT 35 / - - COUNT ( * )
----
35

query I rowsort
SELECT 5 * - - 46 AS col0
----
230

onlyif mysql # aggregate syntax: 
query II rowsort label-1520
SELECT DISTINCT - 76 AS col1, NULLIF ( + NULLIF ( + + 79, + 47 * + 84 ), - 89 + 81 * COUNT( * ) - - COUNT( * ) ) AS col0
----
-76
79

skipif mysql # not compatible
query II rowsort label-1520
SELECT DISTINCT - 76 AS col1, NULLIF ( + NULLIF ( + + 79, + 47 * + 84 ), - 89 + 81 * COUNT ( * ) - - COUNT ( * ) ) AS col0
----
-76
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT ALL - 71 * + + 2 * + - 81 - - + NULLIF ( - + AVG ( CASE + + 32 WHEN 1 * + + 32 / - 27 THEN + 2 ELSE NULL END ), + + ( - 80 ) ) * + 80 * - COUNT( * ) / + + 29 + - 51 + - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL - 71 * + + 2 * + - 81 - - + NULLIF ( - + AVG ( CASE + + 32 WHEN 1 * + + 32 / - 27 THEN + 2 ELSE NULL END ), + + ( - 80 ) ) * + 80 * - COUNT ( * ) / + + 29 + - 51 + - + COUNT ( * ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1523
SELECT 2 * - COUNT( * ) - 31 * 46 * + 10 - + 65 AS col0, 31 AS col1
----
-14327
31

skipif mysql # not compatible
query II rowsort label-1523
SELECT 2 * - COUNT ( * ) - 31 * 46 * + 10 - + 65 AS col0, 31 AS col1
----
-14327
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL - MAX( 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL - MAX ( 70 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT DISTINCT 61 * + SUM( - + 7 )
----
-427

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT 61 * + SUM ( - + 7 )
----
-427

query I rowsort
SELECT - 67 * + + 45 * + + 27 AS col2
----
-81405

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

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

query I rowsort
SELECT DISTINCT 96 * - 99 AS col2
----
-9504

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

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

query I rowsort
SELECT DISTINCT - 12 * - 9
----
108

query I rowsort
SELECT - 31 + + 49
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT - SUM( + NULLIF ( + 37, + 77 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-1532
SELECT - SUM ( + NULLIF ( + 37, + 77 ) )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT - 49 DIV + 51 * - 6 col1
----
0

skipif mysql # not compatible
query I rowsort label-1533
SELECT - 49 / + 51 * - 6 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT + 66 * + COUNT( * ) * - + NULLIF ( + 75, NULLIF ( 56, ( + 43 ) * ( + 81 ) * 13 * + - 8 ) ) * + - 74 - + - 91 + + 11 * - 47 col1
----
365874

skipif mysql # not compatible
query I rowsort label-1534
SELECT + 66 * + COUNT ( * ) * - + NULLIF ( + 75, NULLIF ( 56, ( + 43 ) * ( + 81 ) * 13 * + - 8 ) ) * + - 74 - + - 91 + + 11 * - 47 col1
----
365874

onlyif mysql # DIV for integer division: 
query I rowsort label-1535
SELECT ALL 19 * 84 DIV 54 col2
----
29

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL 19 * 84 / 54 col2
----
29

query I rowsort
SELECT + 31 * + - 44
----
-1364

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1537
SELECT + COUNT( * ) + + + 19 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1537
SELECT + COUNT ( * ) + + + 19 + - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 35 + + ( 30 ) + - - 64 * + 33 AS col1
----
2107

query II rowsort
SELECT - 24, - 41 * + - 73 AS col1
----
-24
2993

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT DISTINCT + COUNT( * ) + + + 49 col0
----
50

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT + COUNT ( * ) + + + 49 col0
----
50

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

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + 64, - + 9 * - - 39 + - 0 ) + + 59
----
123

query II rowsort
SELECT DISTINCT 19, 66 + - 47
----
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL SUM( DISTINCT + - 65 ) + + 6 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL SUM ( DISTINCT + - 65 ) + + 6 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT - 59 + COUNT( ALL - 90 ) + 51 + + 30 - + - 29 + + - COUNT( DISTINCT - 97 ) + - NULLIF ( + 60, - 9 ) * + 74 * - + COUNT( * )
----
4491

skipif mysql # not compatible
query I rowsort label-1546
SELECT - 59 + COUNT ( ALL - 90 ) + 51 + + 30 - + - 29 + + - COUNT ( DISTINCT - 97 ) + - NULLIF ( + 60, - 9 ) * + 74 * - + COUNT ( * )
----
4491

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

query II rowsort
SELECT - 47 AS col2, - 78 + 67 AS col2
----
-47
-11

query I rowsort
SELECT ALL + 9 + + 7 * - - 81 AS col1
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT + + 3 - + - MAX( - + 71 ) * + 86
----
-6103

skipif mysql # not compatible
query I rowsort label-1550
SELECT + + 3 - + - MAX ( - + 71 ) * + 86
----
-6103

onlyif mysql # aggregate syntax: 
query II rowsort label-1551
SELECT 71, - 35 + COUNT( - + 60 ) AS col1
----
71
-34

skipif mysql # not compatible
query II rowsort label-1551
SELECT 71, - 35 + COUNT ( - + 60 ) AS col1
----
71
-34

query I rowsort
SELECT ALL - ( - 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-1553
SELECT DISTINCT NULLIF ( - COUNT( * ), 86 + + - 36 ) col0, 9 AS col1
----
-1
9

skipif mysql # not compatible
query II rowsort label-1553
SELECT DISTINCT NULLIF ( - COUNT ( * ), 86 + + - 36 ) col0, 9 AS col1
----
-1
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1554
SELECT DISTINCT 36 / + + 54 - - CAST( NULL AS SIGNED ) * + 86 * - 97 / - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT 36 / + + 54 - - CAST ( NULL AS INTEGER ) * + 86 * - 97 / - 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT DISTINCT + 57 * - MAX( DISTINCT 69 ) + - - 14 - + + 35 * + SUM( - - 56 ) + - 32
----
-5911

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT + 57 * - MAX ( DISTINCT 69 ) + - - 14 - + + 35 * + SUM ( - - 56 ) + - 32
----
-5911

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1556
SELECT - - 87 - 2 DIV COUNT( * ) col0
----
85

skipif mysql # not compatible
query I rowsort label-1556
SELECT - - 87 - 2 / COUNT ( * ) col0
----
85

query I rowsort
SELECT - 58 * 97 * CASE - + ( + + 2 ) WHEN - ( + - 77 ) THEN + 21 ELSE - 28 + - ( - ( NULLIF ( - 2, - 97 ) ) ) END AS col0
----
168780

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

skipif mysql # not compatible
query I rowsort label-1558
SELECT + 63 / + + 57
----
1

query I rowsort
SELECT + 21 + 52 AS col0
----
73

query II rowsort
SELECT + 39 * 85, - 31 AS col2
----
3315
-31

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

skipif mysql # not compatible
query I rowsort label-1561
SELECT - 45 * - - CAST ( - - COUNT ( * ) AS INTEGER )
----
-45

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1563
SELECT + 15 + 60 DIV NULLIF ( - 90, + ( - ( - 40 ) ) ) * COUNT( * ) * - 66 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1563
SELECT + 15 + 60 / NULLIF ( - 90, + ( - ( - 40 ) ) ) * COUNT ( * ) * - 66 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL + CASE - + 61 WHEN + 9 THEN - COUNT( * ) WHEN 23 + - - 7 THEN 53 + + 30 ELSE + - 43 END AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL + CASE - + 61 WHEN + 9 THEN - COUNT ( * ) WHEN 23 + - - 7 THEN 53 + + 30 ELSE + - 43 END AS col0
----
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT COUNT( * ) * - 34 * - + 10 * - 37 + - 70 + + 29
----
-12621

skipif mysql # not compatible
query I rowsort label-1566
SELECT COUNT ( * ) * - 34 * - + 10 * - 37 + - 70 + + 29
----
-12621

query I rowsort
SELECT - 9 * - - 17 * - 66 AS col0
----
10098

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1568
SELECT - COUNT( * ) DIV - - NULLIF ( + 4, 49 * - - 1 + - + 80 ) + 86 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1568
SELECT - COUNT ( * ) / - - NULLIF ( + 4, 49 * - - 1 + - + 80 ) + 86 AS col0
----
86

query I rowsort
SELECT CASE - 36 WHEN + + 91 THEN NULL WHEN 5 THEN NULL ELSE + 63 END
----
63

query I rowsort
SELECT NULLIF ( - 66, + 88 * 63 )
----
-66

query I rowsort
SELECT + 73 * + 81
----
5913

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1572
SELECT + CAST( + 80 AS SIGNED ) AS col1, + 48 AS col2
----
80
48

skipif mysql # not compatible
query II rowsort label-1572
SELECT + CAST ( + 80 AS INTEGER ) AS col1, + 48 AS col2
----
80
48

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

query I rowsort
SELECT COALESCE ( 54, 2 ) col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT DISTINCT COUNT( * ) * - 55 + 55
----
0

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT COUNT ( * ) * - 55 + 55
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1576
SELECT + COUNT( 53 ) AS col1, 34 DIV 1 * 26 * 52
----
1
45968

skipif mysql # not compatible
query II rowsort label-1576
SELECT + COUNT ( 53 ) AS col1, 34 / 1 * 26 * 52
----
1
45968

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT - 90 + + 73 + - ( - AVG ( ALL + 77 ) ) - 3 * + CASE + 96 WHEN + - 92 + 55 THEN NULL WHEN + 37 THEN NULL WHEN + 45 * - 92 * - AVG ( - 6 ) + + - MAX( + 86 ) + + 95 * + - 65 THEN + - MIN( - 42 ) END * + 39 * - 13 * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT - 90 + + 73 + - ( - AVG ( ALL + 77 ) ) - 3 * + CASE + 96 WHEN + - 92 + 55 THEN NULL WHEN + 37 THEN NULL WHEN + 45 * - 92 * - AVG ( - 6 ) + + - MAX ( + 86 ) + + 95 * + - 65 THEN + - MIN ( - 42 ) END * + 39 * - 13 * 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1578
SELECT NULLIF ( CAST( - AVG ( ( + - 1 ) ) AS SIGNED ), + + SUM( DISTINCT + + 98 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1578
SELECT NULLIF ( CAST ( - AVG ( ( + - 1 ) ) AS INTEGER ), + + SUM ( DISTINCT + + 98 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1579
SELECT - MIN( DISTINCT 94 ) * - 64 AS col0, 21 * 87 + - 76
----
6016
1751

skipif mysql # not compatible
query II rowsort label-1579
SELECT - MIN ( DISTINCT 94 ) * - 64 AS col0, 21 * 87 + - 76
----
6016
1751

query I rowsort
SELECT DISTINCT - 64 * - + COALESCE ( - + 55, 3, + 32 ) + + 7
----
-3513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1581
SELECT DISTINCT + - COUNT( * ) DIV - 87 + + 40 * 65
----
2600

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT + - COUNT ( * ) / - 87 + + 40 * 65
----
2600

query I rowsort
SELECT - 43 * - 29 + + ( - 23 ) AS col0
----
1224

query I rowsort
SELECT - 13 * 42 AS col2
----
-546

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1584
SELECT - + 24 + - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1584
SELECT - + 24 + - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1585
SELECT - 34 * + 69 + + + ( - 7 ) - + - CASE - 55 WHEN - CAST( NULL AS SIGNED ) - - - MAX( DISTINCT 43 ) * + ( - 15 ) / - 71 THEN - 28 / - COUNT( * ) / + COALESCE ( - 39, 91 / - 76 + + 53 + - + COALESCE ( 14, - CAST( - 88 AS SIGNED ) ) * 58 ) WHEN + 79 THEN - 93 ELSE NULL END * + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1585
SELECT - 34 * + 69 + + + ( - 7 ) - + - CASE - 55 WHEN - CAST ( NULL AS INTEGER ) - - - MAX ( DISTINCT 43 ) * + ( - 15 ) / - 71 THEN - 28 / - COUNT ( * ) / + COALESCE ( - 39, 91 / - 76 + + 53 + - + COALESCE ( 14, - CAST ( - 88 AS INTEGER ) ) * 58 ) WHEN + 79 THEN - 93 ELSE NULL END * + 81 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1586
SELECT ALL - 38 + - 44 * 25 AS col1, + CAST( NULL AS SIGNED ) AS col1
----
-1138
NULL

skipif mysql # not compatible
query II rowsort label-1586
SELECT ALL - 38 + - 44 * 25 AS col1, + CAST ( NULL AS INTEGER ) AS col1
----
-1138
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT ALL - 80 + + 31 * + - COALESCE ( - 98, - 4, - MIN( + 41 ) ) + - 91 AS col0
----
2867

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL - 80 + + 31 * + - COALESCE ( - 98, - 4, - MIN ( + 41 ) ) + - 91 AS col0
----
2867

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT DISTINCT COUNT( * ) * 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT COUNT ( * ) * 73 AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT - 2 + - - CASE - - 85 WHEN - - 50 * 45 + - 23 * 64 + + 91 THEN + 67 + CAST( + + COALESCE ( CAST( NULL AS SIGNED ), + + 54 * + 50 + 61, + + 86 ) AS SIGNED ) ELSE NULL END + + + AVG ( + 95 ) * + + 70 * + - ( + + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1589
SELECT - 2 + - - CASE - - 85 WHEN - - 50 * 45 + - 23 * 64 + + 91 THEN + 67 + CAST ( + + COALESCE ( CAST ( NULL AS INTEGER ), + + 54 * + 50 + 61, + + 86 ) AS INTEGER ) ELSE NULL END + + + AVG ( + 95 ) * + + 70 * + - ( + + 67 )
----
NULL

query I rowsort
SELECT + 16 + - ( + 73 ) + 52 * - 97 * + + 92
----
-464105

query I rowsort
SELECT ALL - 97 - - 10 * - + 66
----
-757

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

skipif mysql # not compatible
query I rowsort label-1592
SELECT + 29 * + 53 * - COUNT ( * ) AS col0
----
-1537

onlyif mysql # aggregate syntax: 
query II rowsort label-1593
SELECT + + COUNT( * ) + 8 AS col0, 87 * 10 AS col2
----
9
870

skipif mysql # not compatible
query II rowsort label-1593
SELECT + + COUNT ( * ) + 8 AS col0, 87 * 10 AS col2
----
9
870

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

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL - MAX ( - 89 )
----
89

query I rowsort
SELECT + + ( + + 33 ) + + 55 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT - CASE + - 14 WHEN COUNT( * ) / + 98 + + MAX( 5 ) THEN - 49 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1596
SELECT - CASE + - 14 WHEN COUNT ( * ) / + 98 + + MAX ( 5 ) THEN - 49 ELSE NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT 11 * - + 16 / - 4 * - CASE + 76 WHEN - COUNT( - 19 ) THEN 17 END + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT 11 * - + 16 / - 4 * - CASE + 76 WHEN - COUNT ( - 19 ) THEN 17 END + 66 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL ( - + 59 ) * + COUNT ( * ) AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1600
SELECT ALL CAST( - 61 AS SIGNED ) + - - 37 * + CAST( NULL AS SIGNED ) + + ( - 35 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL CAST ( - 61 AS INTEGER ) + - - 37 * + CAST ( NULL AS INTEGER ) + + ( - 35 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT COALESCE ( 94, - 18, - COUNT( * ) ) * - + 33
----
-3102

skipif mysql # not compatible
query I rowsort label-1601
SELECT COALESCE ( 94, - 18, - COUNT ( * ) ) * - + 33
----
-3102

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

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

query I rowsort
SELECT 79 * + 82
----
6478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1604
SELECT ALL 20 + CAST( + 50 AS SIGNED ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL 20 + CAST ( + 50 AS INTEGER ) AS col0
----
70

query II rowsort
SELECT 97, + 50 + - 61 AS col1
----
97
-11

query I rowsort
SELECT ALL 84 + - - 11
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1607
SELECT 78 * + - MIN( ALL 37 ) AS col2, - 35 AS col1
----
-2886
-35

skipif mysql # not compatible
query II rowsort label-1607
SELECT 78 * + - MIN ( ALL 37 ) AS col2, - 35 AS col1
----
-2886
-35

query II rowsort
SELECT DISTINCT - 12, 9 AS col2
----
-12
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1609
SELECT + + NULLIF ( 84, CAST( NULL AS DECIMAL ) * + 6 / - - 22 * - - 75 )
----
84

skipif mysql # not compatible
query I rowsort label-1609
SELECT + + NULLIF ( 84, CAST ( NULL AS REAL ) * + 6 / - - 22 * - - 75 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1610
SELECT + ( - CASE - CAST( NULL AS SIGNED ) WHEN - 88 THEN NULL WHEN - + 61 THEN NULL ELSE + - 77 END ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-1610
SELECT + ( - CASE - CAST ( NULL AS INTEGER ) WHEN - 88 THEN NULL WHEN - + 61 THEN NULL ELSE + - 77 END ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT - 6 + - 79 * COALESCE ( + + 55, 40 ) + MIN( 30 ) AS col0
----
-4321

skipif mysql # not compatible
query I rowsort label-1611
SELECT - 6 + - 79 * COALESCE ( + + 55, 40 ) + MIN ( 30 ) AS col0
----
-4321

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1612
SELECT DISTINCT - COALESCE ( 74, - 81, CAST( NULL AS SIGNED ) * - 81 ) - 20 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT - COALESCE ( 74, - 81, CAST ( NULL AS INTEGER ) * - 81 ) - 20 AS col2
----
-94

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

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

query II rowsort
SELECT - 59, 40 * + + 64 AS col0
----
-59
2560

query I rowsort
SELECT ALL - - 36 - - 36 AS col0
----
72

query I rowsort
SELECT DISTINCT + 81 - + + 77
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1617
SELECT DISTINCT 38, + SUM( - 7 ) * + + CAST( + AVG ( CAST( + + 34 AS SIGNED ) ) AS SIGNED ) AS col0
----
38
-238

skipif mysql # not compatible
query II rowsort label-1617
SELECT DISTINCT 38, + SUM ( - 7 ) * + + CAST ( + AVG ( CAST ( + + 34 AS INTEGER ) ) AS INTEGER ) AS col0
----
38
-238

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1619
SELECT + COUNT( * ) * - + 26 * - - 66 * - 40 + + ( + 72 ) + 87 DIV 85 * + COUNT( * ) AS col1, + 16
----
68713
16

skipif mysql # not compatible
query II rowsort label-1619
SELECT + COUNT ( * ) * - + 26 * - - 66 * - 40 + + ( + 72 ) + 87 / 85 * + COUNT ( * ) AS col1, + 16
----
68713
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1620
SELECT ALL + ( ( + 92 ) ) DIV - - ( + - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL + ( ( + 92 ) ) / - - ( + - 57 )
----
-1

query I rowsort
SELECT 22 + + 57 AS col0
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT MAX( DISTINCT 25 ) * - + ( + 39 )
----
-975

skipif mysql # not compatible
query I rowsort label-1623
SELECT MAX ( DISTINCT 25 ) * - + ( + 39 )
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT - CASE 34 WHEN 4 THEN - COUNT( * ) / - 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1624
SELECT - CASE 34 WHEN 4 THEN - COUNT ( * ) / - 93 ELSE NULL END
----
NULL

query III rowsort
SELECT ALL - 7 * + + ( + 79 ), 58 AS col1, + + 2 AS col1
----
-553
58
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1626
SELECT - 80 * CAST( NULL AS SIGNED ) * 7 AS col2, 31
----
NULL
31

skipif mysql # not compatible
query II rowsort label-1626
SELECT - 80 * CAST ( NULL AS INTEGER ) * 7 AS col2, 31
----
NULL
31

query II rowsort
SELECT 58 * + 47 + - 43 AS col1, - 73
----
2683
-73

query I rowsort
SELECT - 89 - - - 34
----
-123

query I rowsort
SELECT 91 - 26 AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-1630
SELECT COUNT( * ) * + + 97 AS col1, - 19
----
97
-19

skipif mysql # not compatible
query II rowsort label-1630
SELECT COUNT ( * ) * + + 97 AS col1, - 19
----
97
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT - 98 / 10 + - CASE + SUM( + 42 ) WHEN - 22 THEN + 31 + - 15 + - + 54 ELSE NULL END + + 63 * + 85 * + COUNT( * ) * 38 + - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1631
SELECT - 98 / 10 + - CASE + SUM ( + 42 ) WHEN - 22 THEN + 31 + - 15 + - + 54 ELSE NULL END + + 63 * + 85 * + COUNT ( * ) * 38 + - 8 AS col0
----
NULL

query I rowsort
SELECT + 10 * 68 * 12 - - 63
----
8223

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL 44 + + CASE + + 89 WHEN - 75 THEN + 85 * - 70 - + COUNT( * ) WHEN - 59 THEN - + NULLIF ( + SUM( 18 ), - 26 * + COUNT( 18 ) / - 47 * - - 94 * - 23 * + 94 - + 82 ) WHEN - 55 THEN NULL WHEN + + SUM( + - 40 ) THEN - NULLIF ( - - ( 56 ), - 94 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL 44 + + CASE + + 89 WHEN - 75 THEN + 85 * - 70 - + COUNT ( * ) WHEN - 59 THEN - + NULLIF ( + SUM ( 18 ), - 26 * + COUNT ( 18 ) / - 47 * - - 94 * - 23 * + 94 - + 82 ) WHEN - 55 THEN NULL WHEN + + SUM ( + - 40 ) THEN - NULLIF ( - - ( 56 ), - 94 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1634
SELECT ALL 96 + + SUM( DISTINCT - ( 53 ) ), 50 AS col1
----
43
50

skipif mysql # not compatible
query II rowsort label-1634
SELECT ALL 96 + + SUM ( DISTINCT - ( 53 ) ), 50 AS col1
----
43
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT ALL + 8 DIV + + 65
----
0

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL + 8 / + + 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT CASE + + CASE - 63 WHEN - 70 THEN COUNT( 32 ) END WHEN - 77 THEN + - 2 WHEN 28 - - COALESCE ( 17, - AVG ( + ( 60 ) ) ) THEN NULL ELSE NULL END * 75 / + + 41 + + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT CASE + + CASE - 63 WHEN - 70 THEN COUNT ( 32 ) END WHEN - 77 THEN + - 2 WHEN 28 - - COALESCE ( 17, - AVG ( + ( 60 ) ) ) THEN NULL ELSE NULL END * 75 / + + 41 + + 99 AS col0
----
NULL

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

query I rowsort
SELECT ALL 66 + + 33 + - - 53 * ( - - 12 ) AS col0
----
735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1639
SELECT 84 * - + 59, NULLIF ( + 56, CAST( - 62 AS SIGNED ) ) * + MIN( - + 82 ) AS col1
----
-4956
-4592

skipif mysql # not compatible
query II rowsort label-1639
SELECT 84 * - + 59, NULLIF ( + 56, CAST ( - 62 AS INTEGER ) ) * + MIN ( - + 82 ) AS col1
----
-4956
-4592

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT ALL 36 * MAX( ALL 83 )
----
2988

skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL 36 * MAX ( ALL 83 )
----
2988

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT DISTINCT 95 - COUNT( * ) + - + 38 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT 95 - COUNT ( * ) + - + 38 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT - 95 + - MIN( DISTINCT - - 44 ) + 69 * - - 72 * + 24 AS col1
----
119093

skipif mysql # not compatible
query I rowsort label-1642
SELECT - 95 + - MIN ( DISTINCT - - 44 ) + 69 * - - 72 * + 24 AS col1
----
119093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1643
SELECT 88 * - 81 * + CAST( - - 5 AS SIGNED ) AS col1
----
-35640

skipif mysql # not compatible
query I rowsort label-1643
SELECT 88 * - 81 * + CAST ( - - 5 AS INTEGER ) AS col1
----
-35640

query I rowsort
SELECT 34 * 17
----
578

onlyif mysql # DIV for integer division: 
query I rowsort label-1645
SELECT ALL 92 DIV - - NULLIF ( - - 50, - 75 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL 92 / - - NULLIF ( - - 50, - 75 ) AS col0
----
1

query I rowsort
SELECT + 70 + + 58 AS col1
----
128

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1647
SELECT ALL + - 96 * - + 7 + CAST( NULL AS DECIMAL ) + - COUNT( * ) + - 38 * 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL + - 96 * - + 7 + CAST ( NULL AS REAL ) + - COUNT ( * ) + - 38 * 30 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1648
SELECT - ( + CAST( - COUNT( * ) AS SIGNED ) ) + - 43
----
-42

skipif mysql # not compatible
query I rowsort label-1648
SELECT - ( + CAST ( - COUNT ( * ) AS INTEGER ) ) + - 43
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1649
SELECT 37 * - COUNT( * ) - 96 DIV COALESCE ( - 75, CAST( - SUM( - 97 ) AS SIGNED ), 7 ), ( 20 ) AS col1
----
-36
20

skipif mysql # not compatible
query II rowsort label-1649
SELECT 37 * - COUNT ( * ) - 96 / COALESCE ( - 75, CAST ( - SUM ( - 97 ) AS INTEGER ), 7 ), ( 20 ) AS col1
----
-36
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1650
SELECT DISTINCT + + CAST( - ( 86 ) AS SIGNED ) * + COUNT( DISTINCT - 67 ), 9 col1
----
-86
9

skipif mysql # not compatible
query II rowsort label-1650
SELECT DISTINCT + + CAST ( - ( 86 ) AS INTEGER ) * + COUNT ( DISTINCT - 67 ), 9 col1
----
-86
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT 14 + + + 72 + + + MIN( DISTINCT - NULLIF ( - 51, + 3 ) ) AS col0
----
137

skipif mysql # not compatible
query I rowsort label-1651
SELECT 14 + + + 72 + + + MIN ( DISTINCT - NULLIF ( - 51, + 3 ) ) AS col0
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-1652
SELECT ALL + 34 * - 6 AS col0, - 97 * - 50 + - 90 - + COUNT( * ) * + COALESCE ( - ( - 28 ), + 62 ) * + 17 col1
----
-204
4284

skipif mysql # not compatible
query II rowsort label-1652
SELECT ALL + 34 * - 6 AS col0, - 97 * - 50 + - 90 - + COUNT ( * ) * + COALESCE ( - ( - 28 ), + 62 ) * + 17 col1
----
-204
4284

query I rowsort
SELECT ALL + COALESCE ( - 92, 14 - + 57 )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT ALL - 85 DIV - 39 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL - 85 / - 39 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1655
SELECT ALL - ( - + 67 ) + COUNT( * ) AS col2, - NULLIF ( - SUM( - 3 ), - 10 ) AS col0
----
68
-3

skipif mysql # not compatible
query II rowsort label-1655
SELECT ALL - ( - + 67 ) + COUNT ( * ) AS col2, - NULLIF ( - SUM ( - 3 ), - 10 ) AS col0
----
68
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT DISTINCT - 94 + - COALESCE ( + - 89, - 73 * 16, + 19 DIV + 99 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT - 94 + - COALESCE ( + - 89, - 73 * 16, + 19 / + 99 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1657
SELECT ALL COUNT( ALL - COALESCE ( - - 33, - + ( - 29 ) * + 84 * + 47 + + 55 + 83 * + 72 + 74 / - 55 - - + 68 + + 64, 49 + + 34 ) ) col2, 16 * + 73 + + 57
----
1
1225

skipif mysql # not compatible
query II rowsort label-1657
SELECT ALL COUNT ( ALL - COALESCE ( - - 33, - + ( - 29 ) * + 84 * + 47 + + 55 + 83 * + 72 + 74 / - 55 - - + 68 + + 64, 49 + + 34 ) ) col2, 16 * + 73 + + 57
----
1
1225

onlyif mysql # DIV for integer division: 
query I rowsort label-1658
SELECT - 32 DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-1658
SELECT - 32 / 37
----
0

query I rowsort
SELECT - 38 + + 61
----
23

query I rowsort
SELECT DISTINCT - 67 * - + 63 AS col0
----
4221

query I rowsort
SELECT DISTINCT + 4 * + + 16 col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT - 2 DIV - 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1662
SELECT - 2 / - 28 AS col1
----
0

query I rowsort
SELECT - ( 77 ) * 98
----
-7546

query II rowsort
SELECT ALL + 40 AS col2, ( - 4 )
----
40
-4

query I rowsort
SELECT COALESCE ( - 60, - 29 * - + 36 + - 81 + 74 * 64, 67 * + - 4 ) AS col1
----
-60

query I rowsort
SELECT DISTINCT + 4 * 1 AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1667
SELECT ALL MAX( ALL + + 13 ) * + + 74 + + 7 * + 34 - - - CAST( - 0 AS SIGNED ) AS col0
----
1200

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL MAX ( ALL + + 13 ) * + + 74 + + 7 * + 34 - - - CAST ( - 0 AS INTEGER ) AS col0
----
1200

query I rowsort
SELECT NULLIF ( + 35, + 69 + - - ( + - 57 ) + - + 85 + - 77 + + 71 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT + COUNT( 42 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1669
SELECT + COUNT ( 42 ) AS col0
----
1

query I rowsort
SELECT - 43 - + + 48 AS col1
----
-91

query I rowsort
SELECT + 48 * 78
----
3744

query II rowsort
SELECT - - 61 * ( + 20 ) AS col1, + 56 AS col0
----
1220
56

query I rowsort
SELECT ALL - ( - 15 ) * + + 85 + + 0 * - 5 + - - 79 AS col2
----
1354

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1675
SELECT DISTINCT - - 90 DIV + 55 + + 10
----
11

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT - - 90 / + 55 + + 10
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1676
SELECT ALL COALESCE ( + 96, + ( + 23 ), 9 + - ( CASE + 69 WHEN - SUM( ALL + + CAST( NULL AS SIGNED ) ) THEN COALESCE ( 81, + - 32, - - ( + + ( + NULLIF ( + CAST( NULL AS SIGNED ), + 81 * NULLIF ( 13, NULLIF ( CAST( NULL AS SIGNED ), + 89 + - + 33 ) ) ) ) ) ) * - - 18 ELSE NULL END ) ) * - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL COALESCE ( + 96, + ( + 23 ), 9 + - ( CASE + 69 WHEN - SUM ( ALL + + CAST ( NULL AS INTEGER ) ) THEN COALESCE ( 81, + - 32, - - ( + + ( + NULLIF ( + CAST ( NULL AS INTEGER ), + 81 * NULLIF ( 13, NULLIF ( CAST ( NULL AS INTEGER ), + 89 + - + 33 ) ) ) ) ) ) * - - 18 ELSE NULL END ) ) * - COUNT ( * )
----
-96

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

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + + ( - CAST ( - MIN ( - - 50 ) AS INTEGER ) )
----
50

query I rowsort
SELECT + + 35 * - - 11
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT + 9 - 25 + - + COUNT( + 85 ) * + 9 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-1679
SELECT + 9 - 25 + - + COUNT ( + 85 ) * + 9 AS col0
----
-25

query I rowsort
SELECT + - 60 * - - 93
----
-5580

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL - 74 + + SUM( DISTINCT + 6 ) * + - 65 - + 27 AS col0
----
-491

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL - 74 + + SUM ( DISTINCT + 6 ) * + - 65 - + 27 AS col0
----
-491

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT + 71 * + ( CASE + ( + MAX( + 54 ) ) WHEN - - 31 THEN + COUNT( * ) * + 58 * + + COUNT( * ) + + 84 END ) * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1683
SELECT + 71 * + ( CASE + ( + MAX ( + 54 ) ) WHEN - - 31 THEN + COUNT ( * ) * + 58 * + + COUNT ( * ) + + 84 END ) * + 62
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1684
SELECT - 93 * - + 37 + 51 + - CAST( NULL AS SIGNED ) * ( - 39 ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1684
SELECT - 93 * - + 37 + 51 + - CAST ( NULL AS INTEGER ) * ( - 39 ) + - 20
----
NULL

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

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

query I rowsort
SELECT DISTINCT - + 51 + - 88 AS col0
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT DISTINCT - MAX( ( - 23 ) ) + 71 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT - MAX ( ( - 23 ) ) + 71 AS col2
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT DISTINCT - ( - 56 ) + 1 + + + 96 * MAX( 27 ) + + 58 * - 63, 84 AS col2
----
-1005
84

skipif mysql # not compatible
query II rowsort label-1688
SELECT DISTINCT - ( - 56 ) + 1 + + + 96 * MAX ( 27 ) + + 58 * - 63, 84 AS col2
----
-1005
84

onlyif mysql # aggregate syntax: 
query II rowsort label-1689
SELECT - 62 * COUNT( * ) AS col0, - 48 - NULLIF ( + + COUNT( * ), - 68 ) col0
----
-62
-49

skipif mysql # not compatible
query II rowsort label-1689
SELECT - 62 * COUNT ( * ) AS col0, - 48 - NULLIF ( + + COUNT ( * ), - 68 ) col0
----
-62
-49

query I rowsort
SELECT DISTINCT 68 * - 12 * - - 10
----
-8160

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

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

query I rowsort
SELECT ALL - 81 + 17
----
-64

query I rowsort
SELECT DISTINCT 32 * + 70 AS col2
----
2240

query I rowsort
SELECT DISTINCT ( - 71 ) AS col1
----
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT ALL ( + CASE COUNT( * ) WHEN - 88 THEN - 79 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL ( + CASE COUNT ( * ) WHEN - 88 THEN - 79 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1697
SELECT DISTINCT - 36 DIV + 46 * - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT - 36 / + 46 * - 80 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1699
SELECT 18 * COUNT( * ) * + 81 DIV - - 81 + - 72 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-1699
SELECT 18 * COUNT ( * ) * + 81 / - - 81 + - 72 AS col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT ALL - 46 DIV + - 97 * + + 61
----
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL - 46 / + - 97 * + + 61
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1702
SELECT + 51 DIV + COUNT( 45 ) + + 66
----
117

skipif mysql # not compatible
query I rowsort label-1702
SELECT + 51 / + COUNT ( 45 ) + + 66
----
117

query II rowsort
SELECT 18 * - 82 - 84 * 37, 83 + - 83 AS col2
----
-4584
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT - COUNT( ALL - 78 ) * + + COUNT( * ) + 56 + - + ( - NULLIF ( + 87, + 24 - + 60 ) ) + + + ( + 19 ) + - - 8 - 30 + + COUNT( 43 ) * + 29 + 44
----
212

skipif mysql # not compatible
query I rowsort label-1704
SELECT - COUNT ( ALL - 78 ) * + + COUNT ( * ) + 56 + - + ( - NULLIF ( + 87, + 24 - + 60 ) ) + + + ( + 19 ) + - - 8 - 30 + + COUNT ( 43 ) * + 29 + 44
----
212

query I rowsort
SELECT - COALESCE ( 78, - + 58 ) + 53
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-1706
SELECT ALL 19 DIV - 30 AS col1, 63 AS col2
----
0
63

skipif mysql # not compatible
query II rowsort label-1706
SELECT ALL 19 / - 30 AS col1, 63 AS col2
----
0
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT 16 * 73 + 43 + - + 95 + - CASE - - 5 WHEN - 47 THEN CAST( NULL AS SIGNED ) / + 46 WHEN - + ( + 64 ) + + 6 * - - 53 THEN NULL END - - - NULLIF ( + - 71, + + ( CAST( - 2 AS SIGNED ) ) + + 92 ) * - CAST( 83 AS SIGNED ) + - + 80 + + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT 16 * 73 + 43 + - + 95 + - CASE - - 5 WHEN - 47 THEN CAST ( NULL AS INTEGER ) / + 46 WHEN - + ( + 64 ) + + 6 * - - 53 THEN NULL END - - - NULLIF ( + - 71, + + ( CAST ( - 2 AS INTEGER ) ) + + 92 ) * - CAST ( 83 AS INTEGER ) + - + 80 + + 43 AS col2
----
NULL

query I rowsort
SELECT ALL - - 4 * + - 15 * 36
----
-2160

query I rowsort
SELECT DISTINCT - + 87 * + 13 AS col0
----
-1131

query I rowsort
SELECT ALL - 61 * - 15
----
915

query I rowsort
SELECT DISTINCT + CASE + 19 WHEN 23 THEN + + 44 * - 38 ELSE ( + 90 ) END AS col0
----
90

query I rowsort
SELECT - + 39 + 63 AS col1
----
24

query I rowsort
SELECT - + 6 * - 5 col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT - 45 * + SUM( + 12 ) + + 28 + + SUM( ALL + 15 ) + COUNT( * )
----
-496

skipif mysql # not compatible
query I rowsort label-1714
SELECT - 45 * + SUM ( + 12 ) + + 28 + + SUM ( ALL + 15 ) + COUNT ( * )
----
-496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT + CAST( + 66 AS SIGNED ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1715
SELECT + CAST ( + 66 AS INTEGER ) AS col1
----
66

query I rowsort
SELECT + ( - 8 ) * + 84 - 82 AS col0
----
-754

query I rowsort
SELECT ALL - + 10 * + + 29 + - 66 * 40
----
-2930

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT ALL + - 44 * + 8 * + + 92 + + + COUNT( * ) * - 81
----
-32465

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL + - 44 * + 8 * + + 92 + + + COUNT ( * ) * - 81
----
-32465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1719
SELECT - + 81 * + 85 * - 79 + - + CAST( - COUNT( - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
543915

skipif mysql # not compatible
query I rowsort label-1719
SELECT - + 81 * + 85 * - 79 + - + CAST ( - COUNT ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
543915

query II rowsort
SELECT ALL 99 * 32 AS col2, 21 + 24
----
3168
45

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1723
SELECT ALL - 46, - CAST( NULL AS SIGNED ) * - ( 82 ) * AVG ( ALL 11 ) AS col0
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-1723
SELECT ALL - 46, - CAST ( NULL AS INTEGER ) * - ( 82 ) * AVG ( ALL 11 ) AS col0
----
-46
NULL

query I rowsort
SELECT - 26 * + 48 AS col1
----
-1248

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1725
SELECT - 19, NULLIF ( COALESCE ( + 22, + 17 DIV - - 15 ), - 76 DIV - + 20 - - 90 + - COUNT( * ) ) AS col2
----
-19
22

skipif mysql # not compatible
query II rowsort label-1725
SELECT - 19, NULLIF ( COALESCE ( + 22, + 17 / - - 15 ), - 76 / - + 20 - - 90 + - COUNT ( * ) ) AS col2
----
-19
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT CASE - CASE - 67 WHEN - - 39 THEN 77 * + 24 * + 89 * + 83 END WHEN + 49 THEN NULL WHEN + COALESCE ( + - 12, - 27 * + - CASE WHEN NOT ( NULL ) <= + 30 THEN + COUNT( * ) ELSE + 5 END * + - 43 * - + 11, + 4 ) THEN NULL ELSE + 42 * - CASE - COUNT( * ) WHEN + ( 90 ) THEN - 14 WHEN - 85 + MAX( ALL + 27 ) * COUNT( * ) THEN + 8 ELSE NULL END END + 66 * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT CASE - CASE - 67 WHEN - - 39 THEN 77 * + 24 * + 89 * + 83 END WHEN + 49 THEN NULL WHEN + COALESCE ( + - 12, - 27 * + - CASE WHEN NOT ( NULL ) <= + 30 THEN + COUNT ( * ) ELSE + 5 END * + - 43 * - + 11, + 4 ) THEN NULL ELSE + 42 * - CASE - COUNT ( * ) WHEN + ( 90 ) THEN - 14 WHEN - 85 + MAX ( ALL + 27 ) * COUNT ( * ) THEN + 8 ELSE NULL END END + 66 * 37
----
NULL

query I rowsort
SELECT 69 + - + 67 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ( - 34 ) + 11 + + + 8 + + 99 - + COUNT( * ) + 4 * + - COUNT( * ) * 14
----
27

skipif mysql # not compatible
query I rowsort label-1728
SELECT ( - 34 ) + 11 + + + 8 + + 99 - + COUNT ( * ) + 4 * + - COUNT ( * ) * 14
----
27

query I rowsort
SELECT ALL 21 + - - 95 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT MAX( 22 ) + + + 63 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1730
SELECT MAX ( 22 ) + + + 63 AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1731
SELECT ALL - CAST( NULL AS SIGNED ) * + 68 * 24 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL - CAST ( NULL AS INTEGER ) * + 68 * 24 col1
----
NULL

query I rowsort
SELECT 59 + 85
----
144

onlyif mysql # DIV for integer division: 
query II rowsort label-1733
SELECT ALL 73 DIV + 21 AS col0, - ( 39 ) + - 68 + - 59
----
3
-166

skipif mysql # not compatible
query II rowsort label-1733
SELECT ALL 73 / + 21 AS col0, - ( 39 ) + - 68 + - 59
----
3
-166

onlyif mysql # aggregate syntax: 
query II rowsort label-1734
SELECT ( + 5 ) + + - 47 + - - COALESCE ( - COUNT( * ), - 48 ) + + - 68 AS col2, 64 col0
----
-111
64

skipif mysql # not compatible
query II rowsort label-1734
SELECT ( + 5 ) + + - 47 + - - COALESCE ( - COUNT ( * ), - 48 ) + + - 68 AS col2, 64 col0
----
-111
64

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

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL 85 - + COUNT ( * ) AS col2
----
84

query I rowsort
SELECT ALL 49 * - + 82 AS col1
----
-4018

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT SUM( + 36 ) + - 17 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1737
SELECT SUM ( + 36 ) + - 17 AS col1
----
19

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

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL 14 * + + COUNT ( * ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT MAX( - 55 ) * MIN( + 5 ) + MAX( 23 ) AS col0
----
-252

skipif mysql # not compatible
query I rowsort label-1739
SELECT MAX ( - 55 ) * MIN ( + 5 ) + MAX ( 23 ) AS col0
----
-252

onlyif mysql # aggregate syntax: 
query II rowsort label-1740
SELECT ALL 78 * - 90 * - COUNT( * ) AS col2, 37 * - 73 AS col1
----
7020
-2701

skipif mysql # not compatible
query II rowsort label-1740
SELECT ALL 78 * - 90 * - COUNT ( * ) AS col2, 37 * - 73 AS col1
----
7020
-2701

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT DISTINCT - NULLIF ( 11, - + NULLIF ( 24, + 95 * - - 67 * 43 * - - 91 + - 44 ) ) * - - COUNT( * ) + 51 - + 86 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT - NULLIF ( 11, - + NULLIF ( 24, + 95 * - - 67 * 43 * - - 91 + - 44 ) ) * - - COUNT ( * ) + 51 - + 86 AS col1
----
-46

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

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

query I rowsort
SELECT - ( + + 95 ) * - - 5 col0
----
-475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1744
SELECT + + CAST( CAST( - - 40 AS SIGNED ) AS SIGNED ) DIV COUNT( * ) - - + COALESCE ( - COUNT( * ), 89 ) AS col2, 80 + + 74 + - ( 79 ) * 63 * + CAST( NULL AS SIGNED ) * + - 89 * - 36 * 30
----
39
NULL

skipif mysql # not compatible
query II rowsort label-1744
SELECT + + CAST ( CAST ( - - 40 AS INTEGER ) AS INTEGER ) / COUNT ( * ) - - + COALESCE ( - COUNT ( * ), 89 ) AS col2, 80 + + 74 + - ( 79 ) * 63 * + CAST ( NULL AS INTEGER ) * + - 89 * - 36 * 30
----
39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT COUNT( * ) - + 23 - + + 6 + + 73 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1745
SELECT COUNT ( * ) - + 23 - + + 6 + + 73 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1746
SELECT + CAST( + - 23 AS SIGNED ) AS col0, 1 AS col0
----
-23
1

skipif mysql # not compatible
query II rowsort label-1746
SELECT + CAST ( + - 23 AS INTEGER ) AS col0, 1 AS col0
----
-23
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT + 8 * 96 DIV 8 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1747
SELECT + 8 * 96 / 8 AS col2
----
96

query I rowsort
SELECT 1 * - + 94 * - - 31 AS col2
----
-2914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT CASE - CAST( - 53 AS SIGNED ) WHEN - 96 * + 18 THEN NULL WHEN ( + 66 ) THEN - 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1749
SELECT CASE - CAST ( - 53 AS INTEGER ) WHEN - 96 * + 18 THEN NULL WHEN ( + 66 ) THEN - 49 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1750
SELECT ALL - + COUNT( * ) + + + CAST( - MIN( ALL - + 75 ) AS SIGNED ) + - CAST( - + 90 AS SIGNED ) * + + 73 * + COUNT( * ) AS col1
----
6644

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL - + COUNT ( * ) + + + CAST ( - MIN ( ALL - + 75 ) AS INTEGER ) + - CAST ( - + 90 AS INTEGER ) * + + 73 * + COUNT ( * ) AS col1
----
6644

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT + - ( + 12 ) * - COUNT( ALL + 59 ) * - - 63
----
756

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT + - ( + 12 ) * - COUNT ( ALL + 59 ) * - - 63
----
756

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT + - COALESCE ( - + 0, + 11 DIV + 74 )
----
0

skipif mysql # not compatible
query I rowsort label-1752
SELECT + - COALESCE ( - + 0, + 11 / + 74 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1753
SELECT ALL - 88 + + CAST( - 22 AS SIGNED ) + - 72 + + - 4 + + - 33
----
-219

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL - 88 + + CAST ( - 22 AS INTEGER ) + - 72 + + - 4 + + - 33
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT MAX( DISTINCT ( - 34 ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1754
SELECT MAX ( DISTINCT ( - 34 ) ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT - - 62 * + COUNT( * ) + + 39 + - 31 * - ( + 20 ) + - 50
----
671

skipif mysql # not compatible
query I rowsort label-1755
SELECT - - 62 * + COUNT ( * ) + + 39 + - 31 * - ( + 20 ) + - 50
----
671

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT + 24 + - 77 + MIN( ALL ( - 70 ) ) * - + 66 AS col1
----
4567

skipif mysql # not compatible
query I rowsort label-1756
SELECT + 24 + - 77 + MIN ( ALL ( - 70 ) ) * - + 66 AS col1
----
4567

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT + + 98 * + 3 - 70 + - 60 + + 74 * + 82 * + COUNT( * ) col2
----
6232

skipif mysql # not compatible
query I rowsort label-1757
SELECT + + 98 * + 3 - 70 + - 60 + + 74 * + 82 * + COUNT ( * ) col2
----
6232

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

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

query I rowsort
SELECT 53 * - - 61
----
3233

query II rowsort
SELECT ALL 65 col0, + ( - 34 ) AS col2
----
65
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-1761
SELECT MAX( DISTINCT - + 50 ) * - COUNT( * ) + ( 47 ) * - 36, 26 AS col0
----
-1642
26

skipif mysql # not compatible
query II rowsort label-1761
SELECT MAX ( DISTINCT - + 50 ) * - COUNT ( * ) + ( 47 ) * - 36, 26 AS col0
----
-1642
26

query I rowsort
SELECT DISTINCT 32 * 21
----
672

onlyif mysql # aggregate syntax: 
query II rowsort label-1763
SELECT ALL COUNT( * ), 79 + + 80 + - - 91 + - + 92 AS col1
----
1
158

skipif mysql # not compatible
query II rowsort label-1763
SELECT ALL COUNT ( * ), 79 + + 80 + - - 91 + - + 92 AS col1
----
1
158

query I rowsort
SELECT 59 + - 40 + - - 52 AS col2
----
71

query II rowsort
SELECT 65, 77 AS col2
----
65
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1766
SELECT ( + ( 11 ) ) DIV - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1766
SELECT ( + ( 11 ) ) / - 57 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT MAX( ALL + 23 ) + - COUNT( * ) + + 66 * + - MIN( 78 ) * + - 84
----
432454

skipif mysql # not compatible
query I rowsort label-1767
SELECT MAX ( ALL + 23 ) + - COUNT ( * ) + + 66 * + - MIN ( 78 ) * + - 84
----
432454

query I rowsort
SELECT 84 - 19
----
65

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

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

query II rowsort
SELECT ALL 52 AS col1, 52 AS col2
----
52
52

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

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

query I rowsort
SELECT + 65 + 26 AS col0
----
91

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT ALL - MAX( + + 56 ) * - 51 + + COUNT( - - 79 ) - - COUNT( * ) + + 96 AS col0
----
2954

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL - MAX ( + + 56 ) * - 51 + + COUNT ( - - 79 ) - - COUNT ( * ) + + 96 AS col0
----
2954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1776
SELECT + + 31 DIV COUNT( * ) * - - 72 + + 78 + + - 57 AS col2
----
2253

skipif mysql # not compatible
query I rowsort label-1776
SELECT + + 31 / COUNT ( * ) * - - 72 + + 78 + + - 57 AS col2
----
2253

query I rowsort
SELECT - 48 - + - 14
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT 27 + - 42 - 98 * + 53 + - 13 + - + 97 * - + 7 * COUNT( * ) * - COUNT( * ) AS col2
----
-5901

skipif mysql # not compatible
query I rowsort label-1778
SELECT 27 + - 42 - 98 * + 53 + - 13 + - + 97 * - + 7 * COUNT ( * ) * - COUNT ( * ) AS col2
----
-5901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1779
SELECT + SUM( ALL 61 ) * 25 + - + NULLIF ( + CAST( CAST( 63 AS SIGNED ) AS SIGNED ), - 68 ) AS col0
----
1462

skipif mysql # not compatible
query I rowsort label-1779
SELECT + SUM ( ALL 61 ) * 25 + - + NULLIF ( + CAST ( CAST ( 63 AS INTEGER ) AS INTEGER ), - 68 ) AS col0
----
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT ALL - COUNT( * ) * - COUNT( * ) * 75 + - 46 + + 1 - + 80 + + 71 * 31 - + NULLIF ( + 51, - 60 + + ( 34 ) ) AS col1
----
2100

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * 75 + - 46 + + 1 - + 80 + + 71 * 31 - + NULLIF ( + 51, - 60 + + ( 34 ) ) AS col1
----
2100

query II rowsort
SELECT + 96 AS col1, 35 * - + 98 AS col1
----
96
-3430

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT DISTINCT - + 35 * - MAX( ALL + - 59 ) / 21 + + - 20 + - CAST( NULL AS SIGNED ) + - + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT - + 35 * - MAX ( ALL + - 59 ) / 21 + + - 20 + - CAST ( NULL AS INTEGER ) + - + 91 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT CAST( - + 18 AS SIGNED ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-1784
SELECT CAST ( - + 18 AS INTEGER ) col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL + 73 * + 0 + + 28 + - 1 + - - MAX( 14 )
----
41

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL + 73 * + 0 + + 28 + - 1 + - - MAX ( 14 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1786
SELECT DISTINCT + AVG ( ALL CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT + AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - + 48 + + + 0 col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT + COUNT( * ) + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-1788
SELECT + COUNT ( * ) + - 55
----
-54

query I rowsort
SELECT - 78 + - + 11 * - 56 + 48 * - - ( 5 )
----
778

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1790
SELECT - COUNT( * ), + 37 DIV + + 74 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-1790
SELECT - COUNT ( * ), + 37 / + + 74 AS col1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT DISTINCT - COALESCE ( - 51, + 50 ) DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT - COALESCE ( - 51, + 50 ) / - 49
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1792
SELECT + 44 DIV + + 83
----
0

skipif mysql # not compatible
query I rowsort label-1792
SELECT + 44 / + + 83
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1794
SELECT ALL + 59 * + 8, 16 DIV + + ( - 62 ) AS col2
----
472
0

skipif mysql # not compatible
query II rowsort label-1794
SELECT ALL + 59 * + 8, 16 / + + ( - 62 ) AS col2
----
472
0

query I rowsort
SELECT ALL NULLIF ( + + 69, - 67 )
----
69

query II rowsort
SELECT - ( + 41 ) * 90 * + 71 AS col1, - 34 AS col1
----
-261990
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1797
SELECT - CAST( NULL AS DECIMAL ) + - - COALESCE ( - 99, - AVG ( - 95 ), - 73 ) + - 95 + + 18 + 24 * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT - CAST ( NULL AS REAL ) + - - COALESCE ( - 99, - AVG ( - 95 ), - 73 ) + - 95 + + 18 + 24 * - 98
----
NULL

query II rowsort
SELECT DISTINCT ( + 45 ) AS col2, - 79 * + 73
----
45
-5767

query I rowsort
SELECT ALL NULLIF ( + ( - 70 ), + + 71 + - + 19 )
----
-70

query I rowsort
SELECT - 66 * + 5 AS col1
----
-330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1801
SELECT ALL CAST( 83 AS SIGNED ) * - 88 - ( - 47 ) * + 85
----
-3309

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL CAST ( 83 AS INTEGER ) * - 88 - ( - 47 ) * + 85
----
-3309

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

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT - COUNT ( * ) * + 90 AS col0
----
-90

query I rowsort
SELECT + 60 + 45
----
105

query I rowsort
SELECT + 46 + + 64 AS col2
----
110

query I rowsort
SELECT ALL - 82 + 71 + - - 45 AS col1
----
34

query I rowsort
SELECT + + NULLIF ( - 88, - 58 * - 0 ) + 27 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-1807
SELECT + + 27 * COUNT( * ), - 94 AS col1
----
27
-94

skipif mysql # not compatible
query II rowsort label-1807
SELECT + + 27 * COUNT ( * ), - 94 AS col1
----
27
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1808
SELECT ALL + - 91 DIV + SUM( + 37 ) + + 44 + + 75
----
117

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL + - 91 / + SUM ( + 37 ) + + 44 + + 75
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT + - 52 DIV - 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1809
SELECT + - 52 / - 7 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL 65 * + SUM( ALL 88 ) AS col2
----
5720

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL 65 * + SUM ( ALL 88 ) AS col2
----
5720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1811
SELECT + COUNT( * ) * ( CASE + - 54 WHEN + 45 * + - 71 THEN + 90 + + + ( ( - CASE - + 25 WHEN - 26 THEN NULL WHEN + + COUNT( * ) THEN + 58 * - - 76 ELSE NULL END ) ) WHEN + - 51 THEN NULL WHEN + + 18 + - - CAST( NULL AS SIGNED ) THEN 46 ELSE - COUNT( ALL + ( - 1 ) ) - + 59 + - 2 END ) * + - COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-1811
SELECT + COUNT ( * ) * ( CASE + - 54 WHEN + 45 * + - 71 THEN + 90 + + + ( ( - CASE - + 25 WHEN - 26 THEN NULL WHEN + + COUNT ( * ) THEN + 58 * - - 76 ELSE NULL END ) ) WHEN + - 51 THEN NULL WHEN + + 18 + - - CAST ( NULL AS INTEGER ) THEN 46 ELSE - COUNT ( ALL + ( - 1 ) ) - + 59 + - 2 END ) * + - COUNT ( * ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT + COUNT( * ) * - COALESCE ( - 52, - - 46 * NULLIF ( - 53, + 41 - - - 26 / SUM( ALL + 78 ) + COUNT( * ) * + - COUNT( * ) + + 55 ) ) - + 87 * - 99 AS col2
----
8665

skipif mysql # not compatible
query I rowsort label-1812
SELECT + COUNT ( * ) * - COALESCE ( - 52, - - 46 * NULLIF ( - 53, + 41 - - - 26 / SUM ( ALL + 78 ) + COUNT ( * ) * + - COUNT ( * ) + + 55 ) ) - + 87 * - 99 AS col2
----
8665

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT MIN( ALL + + 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1813
SELECT MIN ( ALL + + 66 ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1814
SELECT - NULLIF ( + CASE 67 WHEN 13 THEN + 16 ELSE NULL END, - 10 ) * - ( 73 ) - - CASE 96 WHEN - NULLIF ( 67, + + 33 * + - 71 ) * 12 THEN + 40 * 99 ELSE + - 61 + + - ( - - 5 ) + - COUNT( * ) + - 65 * - 31 + + + ( + 77 ) END + - + 20 + - CAST( NULL AS DECIMAL ) * + 76 * SUM( - 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1814
SELECT - NULLIF ( + CASE 67 WHEN 13 THEN + 16 ELSE NULL END, - 10 ) * - ( 73 ) - - CASE 96 WHEN - NULLIF ( 67, + + 33 * + - 71 ) * 12 THEN + 40 * 99 ELSE + - 61 + + - ( - - 5 ) + - COUNT ( * ) + - 65 * - 31 + + + ( + 77 ) END + - + 20 + - CAST ( NULL AS REAL ) * + 76 * SUM ( - 92 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1815
SELECT ALL - 25 * - NULLIF ( - + 96, - COALESCE ( + 83, - + COUNT( * ) + 5 + AVG ( + 2 ) DIV - 56 ) ) - - SUM( ALL - - 26 ) + + 33 DIV COUNT( * ) * COUNT( DISTINCT 81 )
----
-2341

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL - 25 * - NULLIF ( - + 96, - COALESCE ( + 83, - + COUNT ( * ) + 5 + AVG ( + 2 ) / - 56 ) ) - - SUM ( ALL - - 26 ) + + 33 / COUNT ( * ) * COUNT ( DISTINCT 81 )
----
-2341

query I rowsort
SELECT + - 0 * ( + - 31 ) + - 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT ALL + + CASE - 94 WHEN 2 + - 68 THEN NULL WHEN 48 / 99 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL + + CASE - 94 WHEN 2 + - 68 THEN NULL WHEN 48 / 99 THEN NULL ELSE + COUNT ( * ) END
----
1

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

query I rowsort
SELECT + - 50 - - 22 * 75 AS col2
----
1600

query I rowsort
SELECT + 80 * - 24 AS col0
----
-1920

query I rowsort
SELECT + NULLIF ( - + 3, 43 / 35 + + 56 ) + + 61
----
58

query I rowsort
SELECT 0 * - 39 + 21
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT + 32 DIV - 39 * - 5 col2
----
0

skipif mysql # not compatible
query I rowsort label-1823
SELECT + 32 / - 39 * - 5 col2
----
0

query I rowsort
SELECT + 44 * + + 29
----
1276

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT NULLIF ( + 28, + 19 * COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-1825
SELECT NULLIF ( + 28, + 19 * COUNT ( * ) )
----
28

query I rowsort
SELECT - 85 - - 44 AS col1
----
-41

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

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

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

skipif mysql # not compatible
query I rowsort label-1828
SELECT + 96 / + - 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1829
SELECT DISTINCT 20 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT 20 / 61
----
0

query I rowsort
SELECT DISTINCT 90 * + 54 col2
----
4860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1831
SELECT + CAST( + 85 AS SIGNED ) + + 10 + 97
----
192

skipif mysql # not compatible
query I rowsort label-1831
SELECT + CAST ( + 85 AS INTEGER ) + + 10 + 97
----
192

onlyif mysql # aggregate syntax: 
query II rowsort label-1832
SELECT COUNT( * ) AS col1, 3 + - 63 + - - 13 AS col0
----
1
-47

skipif mysql # not compatible
query II rowsort label-1832
SELECT COUNT ( * ) AS col1, 3 + - 63 + - - 13 AS col0
----
1
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT + NULLIF ( - MAX( + ( - - 10 ) ), 6 * - - SUM( DISTINCT 76 ) ) + - - COUNT( * ) * ( - - 44 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-1833
SELECT + NULLIF ( - MAX ( + ( - - 10 ) ), 6 * - - SUM ( DISTINCT 76 ) ) + - - COUNT ( * ) * ( - - 44 ) AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1834
SELECT - COALESCE ( COUNT( * ), 30 * + - CASE - + MIN( DISTINCT + 64 ) WHEN + - CAST( - 61 AS SIGNED ) THEN - 50 * + - 7 END )
----
-1

skipif mysql # not compatible
query I rowsort label-1834
SELECT - COALESCE ( COUNT ( * ), 30 * + - CASE - + MIN ( DISTINCT + 64 ) WHEN + - CAST ( - 61 AS INTEGER ) THEN - 50 * + - 7 END )
----
-1

query I rowsort
SELECT 87 + 35 * + 93
----
3342

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT DISTINCT COUNT( * ), 9 * + + SUM( - 98 ) AS col1
----
1
-882

skipif mysql # not compatible
query II rowsort label-1836
SELECT DISTINCT COUNT ( * ), 9 * + + SUM ( - 98 ) AS col1
----
1
-882

query II rowsort
SELECT - + CASE + + 48 WHEN - - 38 THEN - 25 * + 42 END AS col0, - 89 AS col1
----
NULL
-89

query I rowsort
SELECT 79 + 34 AS col1
----
113

query I rowsort
SELECT ALL - 1 * 53
----
-53

query I rowsort
SELECT + 33 * + ( 38 ) + + + 97
----
1351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1841
SELECT - 15 / - 57 + + CASE + 54 WHEN 70 * 55 + 85 + + + CAST( + 63 AS SIGNED ) * + 88 * - - COALESCE ( + - 25, + - COUNT( * ) ) - - 97 * - COUNT( * ) THEN - - 58 END + - SUM( ALL 99 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT - 15 / - 57 + + CASE + 54 WHEN 70 * 55 + 85 + + + CAST ( + 63 AS INTEGER ) * + 88 * - - COALESCE ( + - 25, + - COUNT ( * ) ) - - 97 * - COUNT ( * ) THEN - - 58 END + - SUM ( ALL 99 ) AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( - 81, + 34 + - 68 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT + ( - + 31 ) / - ( - + 73 ) * - + ( - - 49 ) * + 51 + - + ( + COUNT( * ) ) + - 56 + COUNT( * ) + + - CASE + 47 WHEN - + 39 THEN NULL ELSE + MAX( - + 75 ) - - + 16 END + + + CASE - + COALESCE ( COUNT( * ), + 28 * + - 33 ) WHEN COUNT( * ) THEN 58 + - + 97 WHEN + + 48 + - - NULLIF ( - ( + 93 ), + 25 ) - 36 THEN NULL END / 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1843
SELECT + ( - + 31 ) / - ( - + 73 ) * - + ( - - 49 ) * + 51 + - + ( + COUNT ( * ) ) + - 56 + COUNT ( * ) + + - CASE + 47 WHEN - + 39 THEN NULL ELSE + MAX ( - + 75 ) - - + 16 END + + + CASE - + COALESCE ( COUNT ( * ), + 28 * + - 33 ) WHEN COUNT ( * ) THEN 58 + - + 97 WHEN + + 48 + - - NULLIF ( - ( + 93 ), + 25 ) - 36 THEN NULL END / 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT DISTINCT - COALESCE ( + ( + 43 ), - 24 + COUNT( * ) + - + COUNT( * ) ) * COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT - COALESCE ( + ( + 43 ), - 24 + COUNT ( * ) + - + COUNT ( * ) ) * COUNT ( * )
----
-43

query I rowsort
SELECT ALL + ( + ( - - 42 ) ) * 75
----
3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1846
SELECT ALL + 85 DIV - 82 + COALESCE ( - 77, - COUNT( * ) ), 70 AS col0
----
-78
70

skipif mysql # not compatible
query II rowsort label-1846
SELECT ALL + 85 / - 82 + COALESCE ( - 77, - COUNT ( * ) ), 70 AS col0
----
-78
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT + 27 * + + 39 + MIN( - 29 ) + - - 70 * 50 AS col0
----
4524

skipif mysql # not compatible
query I rowsort label-1847
SELECT + 27 * + + 39 + MIN ( - 29 ) + - - 70 * 50 AS col0
----
4524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1848
SELECT ALL + - CAST( NULL AS SIGNED ) - CASE 79 WHEN + 80 THEN NULL ELSE 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL + - CAST ( NULL AS INTEGER ) - CASE 79 WHEN + 80 THEN NULL ELSE 19 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1849
SELECT - 35 * - COUNT ( * )
----
35

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1851
SELECT ALL + 4 DIV 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL + 4 / 75 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1852
SELECT 33 AS col2, SUM( DISTINCT 78 ) * - - 59 * + 27 AS col2
----
33
124254

skipif mysql # not compatible
query II rowsort label-1852
SELECT 33 AS col2, SUM ( DISTINCT 78 ) * - - 59 * + 27 AS col2
----
33
124254

query I rowsort
SELECT 59 + - - 43
----
102

query II rowsort
SELECT DISTINCT - 30 AS col1, - 51 * - + 84
----
-30
4284

query I rowsort
SELECT 68 * 91
----
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-1856
SELECT 4 * 16 DIV - 1 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1856
SELECT 4 * 16 / - 1 AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT - 69 * 58 * CAST( NULL AS SIGNED ) + + ( 69 ) * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1857
SELECT - 69 * 58 * CAST ( NULL AS INTEGER ) + + ( 69 ) * 71
----
NULL

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

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

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

skipif mysql # not compatible
query II rowsort label-1859
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 55 AS col2
----
NULL
55

query I rowsort
SELECT ALL - 32 * 24
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT 94 + + + 90 * 95 + + NULLIF ( - 16, + 37 - - 38 ) * - MIN( DISTINCT - 21 ) AS col1
----
8308

skipif mysql # not compatible
query I rowsort label-1861
SELECT 94 + + + 90 * 95 + + NULLIF ( - 16, + 37 - - 38 ) * - MIN ( DISTINCT - 21 ) AS col1
----
8308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1862
SELECT DISTINCT 2 + + 39 * - - NULLIF ( + - 13, - CASE + 87 WHEN + - CAST( 95 AS SIGNED ) * + CASE + + 90 WHEN 98 * 65 + - 63 - + - 55 / - 69 THEN + + COUNT( * ) WHEN - + ( 30 ) THEN + - CAST( NULL AS SIGNED ) / - 91 WHEN - 95 THEN NULL ELSE - + 58 / - 86 + + 58 + - 29 * - 79 * CAST( + 44 AS SIGNED ) END + 63 + + 19 THEN - 75 * SUM( 20 - - 2 * + 62 ) WHEN - 13 * 91 THEN - 94 * 21 ELSE 76 * 39 END / - 93 - + COUNT( * ) ) * 9
----
-4561

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT 2 + + 39 * - - NULLIF ( + - 13, - CASE + 87 WHEN + - CAST ( 95 AS INTEGER ) * + CASE + + 90 WHEN 98 * 65 + - 63 - + - 55 / - 69 THEN + + COUNT ( * ) WHEN - + ( 30 ) THEN + - CAST ( NULL AS INTEGER ) / - 91 WHEN - 95 THEN NULL ELSE - + 58 / - 86 + + 58 + - 29 * - 79 * CAST ( + 44 AS INTEGER ) END + 63 + + 19 THEN - 75 * SUM ( 20 - - 2 * + 62 ) WHEN - 13 * 91 THEN - 94 * 21 ELSE 76 * 39 END / - 93 - + COUNT ( * ) ) * 9
----
-4561

query I rowsort
SELECT DISTINCT 14 * ( + + 44 ) AS col1
----
616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1864
SELECT ALL 49 + 47 * CAST( + - 18 AS SIGNED ) - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL 49 + 47 * CAST ( + - 18 AS INTEGER ) - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 84 * + 76
----
6384

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT COUNT( * ) + - - 83 - - + COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1866
SELECT COUNT ( * ) + - - 83 - - + COUNT ( * ) AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1867
SELECT 92 AS col2, + COALESCE ( + 65, - 20 ) DIV + - COUNT( * ) AS col2
----
92
-65

skipif mysql # not compatible
query II rowsort label-1867
SELECT 92 AS col2, + COALESCE ( + 65, - 20 ) / + - COUNT ( * ) AS col2
----
92
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1868
SELECT 62 AS col2, + 81 * + COUNT( * ) * COALESCE ( + - 39, + COUNT( * ) DIV + COALESCE ( - ( - 78 ), + - ( - 73 ) * AVG ( DISTINCT + - 56 ) ) ) AS col2
----
62
-3159

skipif mysql # not compatible
query II rowsort label-1868
SELECT 62 AS col2, + 81 * + COUNT ( * ) * COALESCE ( + - 39, + COUNT ( * ) / + COALESCE ( - ( - 78 ), + - ( - 73 ) * AVG ( DISTINCT + - 56 ) ) ) AS col2
----
62
-3159

query I rowsort
SELECT - 93 * - + 44 + 33
----
4125

query I rowsort
SELECT ALL ( - 67 ) + 7 AS col1
----
-60

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1872
SELECT - 4, - 42 * - CASE - 32 WHEN - SUM( ALL - CAST( NULL AS SIGNED ) ) * 20 THEN + - 91 ELSE NULL END + - CAST( NULL AS SIGNED ) AS col0
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-1872
SELECT - 4, - 42 * - CASE - 32 WHEN - SUM ( ALL - CAST ( NULL AS INTEGER ) ) * 20 THEN + - 91 ELSE NULL END + - CAST ( NULL AS INTEGER ) AS col0
----
-4
NULL

query II rowsort
SELECT - 14, 29 AS col2
----
-14
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1874
SELECT ALL COUNT( * ) DIV + COUNT( * ) + + - 16
----
-15

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL COUNT ( * ) / + COUNT ( * ) + + - 16
----
-15

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

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT - - 1 - - COUNT ( * ) / - ( 72 )
----
1

query I rowsort
SELECT ALL + - 38 * - - 37 + + - 39 col0
----
-1445

query I rowsort
SELECT DISTINCT - 63 * + 78 * 56 AS col1
----
-275184

onlyif mysql # aggregate syntax: 
query II rowsort label-1878
SELECT COUNT( + 96 ) AS col0, 25 * + 87 AS col2
----
1
2175

skipif mysql # not compatible
query II rowsort label-1878
SELECT COUNT ( + 96 ) AS col0, 25 * + 87 AS col2
----
1
2175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1879
SELECT + CAST( NULL AS SIGNED ) + NULLIF ( - - 73, + + 74 ) AS col0, + 97
----
NULL
97

skipif mysql # not compatible
query II rowsort label-1879
SELECT + CAST ( NULL AS INTEGER ) + NULLIF ( - - 73, + + 74 ) AS col0, + 97
----
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1880
SELECT - 15 AS col2, - COALESCE ( + MAX( 97 ), - COUNT( * ) )
----
-15
-97

skipif mysql # not compatible
query II rowsort label-1880
SELECT - 15 AS col2, - COALESCE ( + MAX ( 97 ), - COUNT ( * ) )
----
-15
-97

query II rowsort
SELECT 79, - 9 col0
----
79
-9

query I rowsort
SELECT + 31 + - 73
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT 12 * - MIN( ALL 21 ) + + 70 * + 82 + + + ( + 67 ) - + ( + + 21 ) * - COUNT( DISTINCT 57 )
----
5576

skipif mysql # not compatible
query I rowsort label-1883
SELECT 12 * - MIN ( ALL 21 ) + + 70 * + 82 + + + ( + 67 ) - + ( + + 21 ) * - COUNT ( DISTINCT 57 )
----
5576

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1885
SELECT - 21 AS col1, - ( + SUM( ALL 47 ) )
----
-21
-47

skipif mysql # not compatible
query II rowsort label-1885
SELECT - 21 AS col1, - ( + SUM ( ALL 47 ) )
----
-21
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT COUNT( + + 58 ) * - - 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1886
SELECT COUNT ( + + 58 ) * - - 78 AS col0
----
78

query II rowsort
SELECT ALL - 60, + 10 AS col0
----
-60
10

query II rowsort
SELECT - + 4 col1, - 78 + + 68
----
-4
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-1889
SELECT ALL + COUNT( * ) col2, - 63 AS col2
----
1
-63

skipif mysql # not compatible
query II rowsort label-1889
SELECT ALL + COUNT ( * ) col2, - 63 AS col2
----
1
-63

query I rowsort
SELECT DISTINCT - 56 * + 2
----
-112

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1892
SELECT + 33 DIV 51 * - 84 + + - COALESCE ( - MIN( ALL - 19 ), + ( + 73 ), - ( - + 35 ) + + 9 + 56 * 16 ) - + 47 * + 66 * + 0 + + MAX( DISTINCT + 97 ) * COUNT( * ), ( + 2 ) + 73 * + + 55 AS col1
----
78
4017

skipif mysql # not compatible
query II rowsort label-1892
SELECT + 33 / 51 * - 84 + + - COALESCE ( - MIN ( ALL - 19 ), + ( + 73 ), - ( - + 35 ) + + 9 + 56 * 16 ) - + 47 * + 66 * + 0 + + MAX ( DISTINCT + 97 ) * COUNT ( * ), ( + 2 ) + 73 * + + 55 AS col1
----
78
4017

onlyif mysql # aggregate syntax: 
query II rowsort label-1893
SELECT ALL - + COUNT( * ) AS col2, 83 - - MIN( DISTINCT - 45 ) + + + 58 + 0 AS col2
----
-1
96

skipif mysql # not compatible
query II rowsort label-1893
SELECT ALL - + COUNT ( * ) AS col2, 83 - - MIN ( DISTINCT - 45 ) + + + 58 + 0 AS col2
----
-1
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1894
SELECT 48 DIV - 57 + - 50 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1894
SELECT 48 / - 57 + - 50 AS col2
----
-50

query I rowsort
SELECT 62 + + 86 - 73 * + + 66
----
-4670

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

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

query I rowsort
SELECT + 28 * 65 - + + ( - + 86 )
----
1906

onlyif mysql # aggregate syntax: 
query II rowsort label-1898
SELECT ALL + 0 * + 95, 17 * - COUNT( 71 ) AS col0
----
0
-17

skipif mysql # not compatible
query II rowsort label-1898
SELECT ALL + 0 * + 95, 17 * - COUNT ( 71 ) AS col0
----
0
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT 97 - - MAX( DISTINCT + 20 ) * + COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-1899
SELECT 97 - - MAX ( DISTINCT + 20 ) * + COUNT ( * )
----
117

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT COUNT( - 68 )
----
1

skipif mysql # not compatible
query I rowsort label-1902
SELECT COUNT ( - 68 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT 84 DIV - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1903
SELECT 84 / - 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT 74 * - - ( - 15 ) + - - MAX( + 63 )
----
-1047

skipif mysql # not compatible
query I rowsort label-1904
SELECT 74 * - - ( - 15 ) + - - MAX ( + 63 )
----
-1047

query I rowsort
SELECT 29 * + COALESCE ( + 75, - 12 + 81 ) * - 8 AS col2
----
-17400

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

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT COUNT ( DISTINCT - 80 ) * + 89 AS col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT ALL COALESCE ( + 80, 33 ) AS col0, COUNT( * )
----
80
1

skipif mysql # not compatible
query II rowsort label-1907
SELECT ALL COALESCE ( + 80, 33 ) AS col0, COUNT ( * )
----
80
1

query I rowsort
SELECT DISTINCT + 84 * + 52 AS col0
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT - - CASE - - 79 WHEN + - 56 + + - 89 THEN NULL ELSE + - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-1909
SELECT - - CASE - - 79 WHEN + - 56 + + - 89 THEN NULL ELSE + - COUNT ( * ) END
----
-1

query I rowsort
SELECT - 32 + + - 11
----
-43

query I rowsort
SELECT + + 90 * + - 93 * + 54
----
-451980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1912
SELECT + COALESCE ( + 85, - - 45, + CAST( NULL AS SIGNED ) ) + - COUNT( * ) + - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1912
SELECT + COALESCE ( + 85, - - 45, + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + - COUNT ( * ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT + + 87 + + MAX( - 11 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1913
SELECT + + 87 + + MAX ( - 11 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + MAX( DISTINCT + + 43 ) * - 13 AS col0
----
-559

skipif mysql # not compatible
query I rowsort label-1914
SELECT + MAX ( DISTINCT + + 43 ) * - 13 AS col0
----
-559

onlyif mysql # aggregate syntax: 
query II rowsort label-1915
SELECT ALL 12 * + 17, + COUNT( * ) * 74 AS col2
----
204
74

skipif mysql # not compatible
query II rowsort label-1915
SELECT ALL 12 * + 17, + COUNT ( * ) * 74 AS col2
----
204
74

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT + - ( + 67 ) + + COUNT( + + ( - - 56 ) ) AS col2, - 65 AS col0
----
-66
-65

skipif mysql # not compatible
query II rowsort label-1916
SELECT + - ( + 67 ) + + COUNT ( + + ( - - 56 ) ) AS col2, - 65 AS col0
----
-66
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1917
SELECT ALL - 27 * + CAST( NULL AS SIGNED ) * 73 * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL - 27 * + CAST ( NULL AS INTEGER ) * 73 * - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT ALL NULLIF ( - - NULLIF ( + 22, - + 39 * + 42 ), + - 7 * - + 87 + NULLIF ( 16, - 44 + 22 ) + + + 37 * + - NULLIF ( 9, 78 * COUNT( * ) + - 2 ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL NULLIF ( - - NULLIF ( + 22, - + 39 * + 42 ), + - 7 * - + 87 + NULLIF ( 16, - 44 + 22 ) + + + 37 * + - NULLIF ( 9, 78 * COUNT ( * ) + - 2 ) ) AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1919
SELECT - + 88 + - - COUNT( * ) * + CAST( - - COUNT( * ) AS SIGNED ) * + COUNT( * ) + COUNT( * ) + - 51 * + - 78 + + + 76 * 93 AS col1
----
10960

skipif mysql # not compatible
query I rowsort label-1919
SELECT - + 88 + - - COUNT ( * ) * + CAST ( - - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + COUNT ( * ) + - 51 * + - 78 + + + 76 * 93 AS col1
----
10960

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT ALL 1 * - 2 * 81 + - - CAST( NULL AS SIGNED ) * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL 1 * - 2 * 81 + - - CAST ( NULL AS INTEGER ) * + 89
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1922
SELECT - 68 DIV - 44 + + 14 + + 24
----
39

skipif mysql # not compatible
query I rowsort label-1922
SELECT - 68 / - 44 + + 14 + + 24
----
39

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

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

query I rowsort
SELECT - 74 + + - 82
----
-156

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT + 55 + + 74 - + - 55 * + COUNT( * )
----
184

skipif mysql # not compatible
query I rowsort label-1927
SELECT + 55 + + 74 - + - 55 * + COUNT ( * )
----
184

query I rowsort
SELECT + ( - + 5 ) * + - 82 AS col1
----
410

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1931
SELECT - CAST( NULL AS SIGNED ) + - 63 + + + SUM( DISTINCT + + 90 ), - SUM( - 42 ) - + 63 AS col0
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-1931
SELECT - CAST ( NULL AS INTEGER ) + - 63 + + + SUM ( DISTINCT + + 90 ), - SUM ( - 42 ) - + 63 AS col0
----
NULL
-21

query I rowsort
SELECT - 96 + 63 + + 48 col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1933
SELECT DISTINCT + CASE + - 14 WHEN + 80 + - + 15 * 51 - 98 - - + 62 - - ( - - 24 ) * - - COUNT( * ) * - + 96 / AVG ( + 94 ) - COUNT( * ) THEN NULL ELSE + CAST( - 34 AS SIGNED ) END * - CASE 46 WHEN + 67 + + 79 THEN - - 76 ELSE NULL END, COALESCE ( - 79, + NULLIF ( + + 43, ( - - 87 ) ) ) col1
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-1933
SELECT DISTINCT + CASE + - 14 WHEN + 80 + - + 15 * 51 - 98 - - + 62 - - ( - - 24 ) * - - COUNT ( * ) * - + 96 / AVG ( + 94 ) - COUNT ( * ) THEN NULL ELSE + CAST ( - 34 AS INTEGER ) END * - CASE 46 WHEN + 67 + + 79 THEN - - 76 ELSE NULL END, COALESCE ( - 79, + NULLIF ( + + 43, ( - - 87 ) ) ) col1
----
NULL
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - 84 * COUNT( * ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-1934
SELECT - 84 * COUNT ( * ) AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1935
SELECT ALL + CASE - CASE 61 WHEN + 55 THEN + - 22 + + - 64 ELSE + 18 END WHEN 23 - + 37 THEN NULL WHEN 61 THEN NULL ELSE - 19 * - 21 - 87 DIV + 16 END * - 58
----
-22852

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL + CASE - CASE 61 WHEN + 55 THEN + - 22 + + - 64 ELSE + 18 END WHEN 23 - + 37 THEN NULL WHEN 61 THEN NULL ELSE - 19 * - 21 - 87 / + 16 END * - 58
----
-22852

query I rowsort
SELECT - 85 * + 74 + - 52
----
-6342

query II rowsort
SELECT NULLIF ( - - 14, - - 48 ), + 42 AS col1
----
14
42

query I rowsort
SELECT DISTINCT + 52 * 42
----
2184

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1940
SELECT ALL 48 DIV 63 DIV - - 87 col1
----
0

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL 48 / 63 / - - 87 col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT ALL - 66 * + COUNT( * ) - + + 19 - 13 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL - 66 * + COUNT ( * ) - + + 19 - 13 AS col2
----
-98

query I rowsort
SELECT - + 99 * 9
----
-891

query II rowsort
SELECT - 77 col0, - 53 AS col2
----
-77
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-1945
SELECT + 86 + + 57 * MIN( DISTINCT - - 93 ), 94 AS col2
----
5387
94

skipif mysql # not compatible
query II rowsort label-1945
SELECT + 86 + + 57 * MIN ( DISTINCT - - 93 ), 94 AS col2
----
5387
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1946
SELECT + 90 DIV 34 DIV - - 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1946
SELECT + 90 / 34 / - - 12 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL - NULLIF ( - 6, + 74 ) / 2 * + - ( COUNT( * ) ) + + + 64 + 99 * CASE - 42 WHEN + ( + - 54 ) / + 38 THEN - 64 + - 39 + + 93 + - + 66 * + CASE + + 86 WHEN + MAX( ALL - 69 ) * 55 THEN - + 59 ELSE 43 + + 53 + + 62 END * MIN( DISTINCT 36 ) + - 32 * + 85 * + 60 WHEN COALESCE ( + 76, + 21, 47 * + 81 ) + 86 THEN + AVG ( DISTINCT 32 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL - NULLIF ( - 6, + 74 ) / 2 * + - ( COUNT ( * ) ) + + + 64 + 99 * CASE - 42 WHEN + ( + - 54 ) / + 38 THEN - 64 + - 39 + + 93 + - + 66 * + CASE + + 86 WHEN + MAX ( ALL - 69 ) * 55 THEN - + 59 ELSE 43 + + 53 + + 62 END * MIN ( DISTINCT 36 ) + - 32 * + 85 * + 60 WHEN COALESCE ( + 76, + 21, 47 * + 81 ) + 86 THEN + AVG ( DISTINCT 32 ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT - 43 * 75
----
-3225

query I rowsort
SELECT + - 28 + + 16
----
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1951
SELECT - CAST( NULL AS DECIMAL ), 15 * COUNT( * ) DIV COUNT( * ) + 93 AS col2
----
NULL
108

skipif mysql # not compatible
query II rowsort label-1951
SELECT - CAST ( NULL AS REAL ), 15 * COUNT ( * ) / COUNT ( * ) + 93 AS col2
----
NULL
108

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

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

query I rowsort
SELECT - - ( 78 )
----
78

query I rowsort
SELECT ALL + 78 * 91 + + - 41 AS col2
----
7057

query I rowsort
SELECT DISTINCT - 20 + 18 AS col2
----
-2

query I rowsort
SELECT ALL + 61 * 67
----
4087

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

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

query III rowsort
SELECT - 84, 49 * ( 46 ) AS col2, 96 AS col0
----
-84
2254
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL - + COALESCE ( - 39, - + COUNT( * ) + 88, MIN( 56 ) ) + - 65
----
-26

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL - + COALESCE ( - 39, - + COUNT ( * ) + 88, MIN ( 56 ) ) + - 65
----
-26

query I rowsort
SELECT + 6 * 88
----
528

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

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

query I rowsort
SELECT + + 51 * - 30
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL + 46 + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL + 46 + COUNT ( * ) AS col1
----
47

query I rowsort
SELECT ALL 62 + 86
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-1965
SELECT ALL MIN( ALL 89 ), + 44 AS col2
----
89
44

skipif mysql # not compatible
query II rowsort label-1965
SELECT ALL MIN ( ALL 89 ), + 44 AS col2
----
89
44

query II rowsort
SELECT DISTINCT + 83 * - - 14, 35 AS col1
----
1162
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT ALL 7 DIV + + 56 + + - 80 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL 7 / + + 56 + + - 80 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1968
SELECT + 19 DIV - - 17 + - - CAST( - - ( - + 83 ) AS SIGNED ) - + 39 * - 70 * + COUNT( * ) AS col2
----
2648

skipif mysql # not compatible
query I rowsort label-1968
SELECT + 19 / - - 17 + - - CAST ( - - ( - + 83 ) AS INTEGER ) - + 39 * - 70 * + COUNT ( * ) AS col2
----
2648

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1969
SELECT - 20 * - 5 AS col1, CAST( - - 56 AS SIGNED )
----
100
56

skipif mysql # not compatible
query II rowsort label-1969
SELECT - 20 * - 5 AS col1, CAST ( - - 56 AS INTEGER )
----
100
56

query I rowsort
SELECT 32 * - + 9 AS col0
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT - 81 DIV 67 + + - 0 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1971
SELECT - 81 / 67 + + - 0 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT DISTINCT COALESCE ( + - 50, + 86 ) * 52 + COUNT( * ) * + - 29 AS col0
----
-2629

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT COALESCE ( + - 50, + 86 ) * 52 + COUNT ( * ) * + - 29 AS col0
----
-2629

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT - 81 * - 71 * 14 * + - 83 * - CASE 63 WHEN + 88 + + COUNT( * ) - + COUNT( * ) + 73 THEN NULL WHEN - 57 + CASE COUNT( * ) WHEN - 68 THEN - ( - - 54 ) - - + 3 * 80 * + MAX( + 4 ) WHEN - 4 THEN NULL ELSE AVG ( - - 33 ) END THEN - - ( - + MIN( ALL - + 98 ) ) + - 99 + 22 + COUNT( * ) / + 59 * - - 63 * + 24 + + ( - - CASE - 69 WHEN - 3 / + MIN( + 67 * 57 ) THEN - ( + 50 ) * 42 WHEN - 10 * + SUM( ALL + 59 ) THEN NULL END ) - 52 ELSE NULL END - + 78 * + MIN( + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT - 81 * - 71 * 14 * + - 83 * - CASE 63 WHEN + 88 + + COUNT ( * ) - + COUNT ( * ) + 73 THEN NULL WHEN - 57 + CASE COUNT ( * ) WHEN - 68 THEN - ( - - 54 ) - - + 3 * 80 * + MAX ( + 4 ) WHEN - 4 THEN NULL ELSE AVG ( - - 33 ) END THEN - - ( - + MIN ( ALL - + 98 ) ) + - 99 + 22 + COUNT ( * ) / + 59 * - - 63 * + 24 + + ( - - CASE - 69 WHEN - 3 / + MIN ( + 67 * 57 ) THEN - ( + 50 ) * 42 WHEN - 10 * + SUM ( ALL + 59 ) THEN NULL END ) - 52 ELSE NULL END - + 78 * + MIN ( + 1 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1975
SELECT DISTINCT - COUNT( ALL - - 10 ) AS col2, + 11 * + + 31 + ( - + COUNT( * ) ) AS col0
----
-1
340

skipif mysql # not compatible
query II rowsort label-1975
SELECT DISTINCT - COUNT ( ALL - - 10 ) AS col2, + 11 * + + 31 + ( - + COUNT ( * ) ) AS col0
----
-1
340

query I rowsort
SELECT DISTINCT + 20 * + - 67 * - 82 AS col0
----
109880

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1978
SELECT ALL - COUNT( * ) DIV - 99, 97 * 59 AS col2
----
0
5723

skipif mysql # not compatible
query II rowsort label-1978
SELECT ALL - COUNT ( * ) / - 99, 97 * 59 AS col2
----
0
5723

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + 27 * + COUNT( - ( - 81 ) ) - - 24
----
51

skipif mysql # not compatible
query I rowsort label-1979
SELECT + 27 * + COUNT ( - ( - 81 ) ) - - 24
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1980
SELECT ALL - - MIN( ALL 19 ) * - - 53 * + 72 * + CAST( NULL AS SIGNED ) * - - 13 * + 12 / - + 71 + - 42 + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL - - MIN ( ALL 19 ) * - - 53 * + 72 * + CAST ( NULL AS INTEGER ) * - - 13 * + 12 / - + 71 + - 42 + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT DISTINCT 6 * 80 * MIN( - - 88 ) * + 77 AS col1
----
3252480

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT 6 * 80 * MIN ( - - 88 ) * + 77 AS col1
----
3252480

query I rowsort
SELECT DISTINCT - 24 + ( + 27 ) col0
----
3

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

skipif mysql # not compatible
query I rowsort label-1983
SELECT - MAX ( ALL 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT ALL - SUM( + + 25 ) + - 18
----
-43

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL - SUM ( + + 25 ) + - 18
----
-43

query I rowsort
SELECT DISTINCT - ( - 11 ) AS col2
----
11

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT + COALESCE ( 78, - COUNT( * ) ) + + + 33 - 23 + + - 59 + + 26 + + 21 * + + 94 * + + 94 - + 51 + + - 97 + 18 DIV 69 DIV - - 39 + + 45 DIV - + ( + 79 )
----
185463

skipif mysql # not compatible
query I rowsort label-1988
SELECT + COALESCE ( 78, - COUNT ( * ) ) + + + 33 - 23 + + - 59 + + 26 + + 21 * + + 94 * + + 94 - + 51 + + - 97 + 18 / 69 / - - 39 + + 45 / - + ( + 79 )
----
185463

query I rowsort
SELECT - ( - 69 ) AS col2
----
69

query I rowsort
SELECT 27 + + - 15 + - 22 * + ( + 9 ) * 87 col2
----
-17214

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL - 75 + + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - 75 + + COUNT ( * )
----
-74

query I rowsort
SELECT DISTINCT + - 43 + - ( + 18 ) + + + 57
----
-4

query I rowsort
SELECT ALL 19 * + - 7 + 13 AS col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT DISTINCT - MIN( - + 57 ) * 4 + 52 * - + 47 + - COUNT( * ) + 44
----
-2173

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT - MIN ( - + 57 ) * 4 + 52 * - + 47 + - COUNT ( * ) + 44
----
-2173

query I rowsort
SELECT DISTINCT - 87 * + - 16
----
1392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1996
SELECT 7 + 17 - MIN( - 18 ) * 30, CAST( NULL AS SIGNED ) * - - 17 + 49 * + 24 * CAST( NULL AS SIGNED ) * - 84 AS col0
----
564
NULL

skipif mysql # not compatible
query II rowsort label-1996
SELECT 7 + 17 - MIN ( - 18 ) * 30, CAST ( NULL AS INTEGER ) * - - 17 + 49 * + 24 * CAST ( NULL AS INTEGER ) * - 84 AS col0
----
564
NULL

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

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

query I rowsort
SELECT 13 * 74 col0
----
962

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

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

query III rowsort
SELECT ALL 65 AS col1, ( + 43 ) col1, - - 17 AS col1
----
65
43
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT SUM( + + 96 ) * - CASE + 54 WHEN - 22 THEN 8 END * 20 * 6 + + 0 + + 21 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2001
SELECT SUM ( + + 96 ) * - CASE + 54 WHEN - 22 THEN 8 END * 20 * 6 + + 0 + + 21 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT 37 / COUNT ( * ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT DISTINCT - MIN( DISTINCT 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT - MIN ( DISTINCT 30 ) AS col1
----
-30

query I rowsort
SELECT 28 * + NULLIF ( - + 30, - 37 )
----
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT DISTINCT 84 DIV 18 * - 61 AS col0
----
-244

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT 84 / 18 * - 61 AS col0
----
-244

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

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

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

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

query I rowsort
SELECT 18 + - 19
----
-1

query I rowsort
SELECT DISTINCT 30 * - 14 AS col2
----
-420

query II rowsort
SELECT - 23, 84 col0
----
-23
84

query I rowsort
SELECT ALL - COALESCE ( 54, + - 7 )
----
-54

query I rowsort
SELECT DISTINCT + 53 + - 26
----
27

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

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL + ( - COUNT ( * ) ) + + ( ( COUNT ( * ) ) ) AS col1
----
0

query I rowsort
SELECT 24 + + 3
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT - NULLIF ( + 48, CASE + 46 WHEN 77 + + 52 THEN + 87 * + - SUM( 66 ) * + 17 + - - 94 ELSE NULL END )
----
-48

skipif mysql # not compatible
query I rowsort label-2015
SELECT - NULLIF ( + 48, CASE + 46 WHEN 77 + + 52 THEN + 87 * + - SUM ( 66 ) * + 17 + - - 94 ELSE NULL END )
----
-48

query I rowsort
SELECT ALL + 70 + + + ( 37 ) col0
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2017
SELECT DISTINCT NULLIF ( 46, 85 ) + + - 46 * - + ( - + NULLIF ( - 21, + 35 ) ) + - NULLIF ( - ( CAST( NULL AS SIGNED ) ), - - COUNT( * ) ) * + 22 + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT NULLIF ( 46, 85 ) + + - 46 * - + ( - + NULLIF ( - 21, + 35 ) ) + - NULLIF ( - ( CAST ( NULL AS INTEGER ) ), - - COUNT ( * ) ) * + 22 + 69 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT 50 DIV 94 + 39
----
39

skipif mysql # not compatible
query I rowsort label-2018
SELECT 50 / 94 + 39
----
39

query I rowsort
SELECT 94 + - 1 / - - CASE + 66 WHEN + - 81 THEN - 99 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 79 + + 58 col0
----
-21

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

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

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

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

query II rowsort
SELECT DISTINCT 25, ( - 53 ) col1
----
25
-53

query I rowsort
SELECT ALL 33 + 80 col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT DISTINCT + COUNT( * ) - + 49 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT + COUNT ( * ) - + 49 AS col0
----
-48

query II rowsort
SELECT 11 col2, - 94 AS col2
----
11
-94

query II rowsort
SELECT 46 AS col1, + 18 AS col0
----
46
18

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2031
SELECT ALL - CAST( NULL AS SIGNED ) * + CASE - 25 WHEN 4 * - 69 + - 34 THEN - 5 * + 92 END * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL - CAST ( NULL AS INTEGER ) * + CASE - 25 WHEN 4 * - 69 + - 34 THEN - 5 * + 92 END * 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2032
SELECT - 76, 0 / + + CASE + + CASE - 31 WHEN + + COUNT( * ) - + - COALESCE ( + - 90, + 36 ) THEN + 65 + - 10 ELSE + 74 - + CAST( + 18 AS SIGNED ) END WHEN + AVG ( DISTINCT + + 92 ) + - 76 - 35 THEN - - 12 END * + + 82 + + 34 * - ( 32 ) * CASE + 33 WHEN + 73 THEN + + ( + - 75 ) * - - 80 + - 62 + - 1 + - COUNT( * ) END + - 59 / + COUNT( * ) * - - ( 82 ) AS col2
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-2032
SELECT - 76, 0 / + + CASE + + CASE - 31 WHEN + + COUNT ( * ) - + - COALESCE ( + - 90, + 36 ) THEN + 65 + - 10 ELSE + 74 - + CAST ( + 18 AS INTEGER ) END WHEN + AVG ( DISTINCT + + 92 ) + - 76 - 35 THEN - - 12 END * + + 82 + + 34 * - ( 32 ) * CASE + 33 WHEN + 73 THEN + + ( + - 75 ) * - - 80 + - 62 + - 1 + - COUNT ( * ) END + - 59 / + COUNT ( * ) * - - ( 82 ) AS col2
----
-76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ALL MIN( ALL - - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL MIN ( ALL - - 76 )
----
76

query I rowsort
SELECT NULLIF ( - ( - 49 ), - + 84 )
----
49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT CASE 57 WHEN ( - 38 ) THEN NULL WHEN + 51 THEN - MIN( ALL + 63 ) * + - 10 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2036
SELECT CASE 57 WHEN ( - 38 ) THEN NULL WHEN + 51 THEN - MIN ( ALL + 63 ) * + - 10 ELSE NULL END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT 48 DIV + + 92 - 92 col2
----
-92

skipif mysql # not compatible
query I rowsort label-2037
SELECT 48 / + + 92 - 92 col2
----
-92

query I rowsort
SELECT 39 * 94 * 76 * - 92 + + 44 - 70 - + + 92 * - 95 * + 33
----
-25344278

onlyif mysql # aggregate syntax: 
query II rowsort label-2039
SELECT ALL + 96 * - 80 + + - 89 * - - COUNT( * ), - 53 * - 86 AS col0
----
-7769
4558

skipif mysql # not compatible
query II rowsort label-2039
SELECT ALL + 96 * - 80 + + - 89 * - - COUNT ( * ), - 53 * - 86 AS col0
----
-7769
4558

query II rowsort
SELECT DISTINCT + 88, - ( + ( + + 18 ) ) AS col1
----
88
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2041
SELECT ALL 85 * 85 + + MIN( ALL - + 6 ) + + ( + CAST( NULL AS SIGNED ) ) / - 67 * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL 85 * 85 + + MIN ( ALL - + 6 ) + + ( + CAST ( NULL AS INTEGER ) ) / - 67 * - 30
----
NULL

query I rowsort
SELECT + + 29 * + + 84
----
2436

query I rowsort
SELECT DISTINCT + - 1 * - ( + 6 ) + 19 - - 28
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2044
SELECT + + 93, MIN( - + 35 ) AS col2
----
93
-35

skipif mysql # not compatible
query II rowsort label-2044
SELECT + + 93, MIN ( - + 35 ) AS col2
----
93
-35

query I rowsort
SELECT - 85 - - 4 * 68 * 96 AS col2
----
26027

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT + CASE + - 70 WHEN 91 * - + COUNT( * ) THEN - COUNT( * ) - - ( - - 95 ) END / 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2047
SELECT + CASE + - 70 WHEN 91 * - + COUNT ( * ) THEN - COUNT ( * ) - - ( - - 95 ) END / 75
----
NULL

query I rowsort
SELECT ALL 56 * - - 45 AS col0
----
2520

query II rowsort
SELECT + 25 AS col0, 68 * + + 74 + 10
----
25
5042

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

query II rowsort
SELECT + - 53 - - 62 AS col1, - 42
----
9
-42

query I rowsort
SELECT ALL - 47 - + + 85
----
-132

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

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

query I rowsort
SELECT ALL - + 5 - + + ( - 2 ) AS col2
----
-3

query II rowsort
SELECT DISTINCT + 62, 96 * + 40 * 72 AS col1
----
62
276480

query II rowsort
SELECT ALL 21 AS col0, 59 AS col1
----
21
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2057
SELECT - + CAST( NULL AS SIGNED ) * - 64 / - - 21 + - ( + 87 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT - + CAST ( NULL AS INTEGER ) * - 64 / - - 21 + - ( + 87 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT + NULLIF ( + 42, + 74 + + 72 + + + COUNT( * ) + + ( - COUNT( * ) ) ) + + 55
----
97

skipif mysql # not compatible
query I rowsort label-2058
SELECT + NULLIF ( + 42, + 74 + + 72 + + + COUNT ( * ) + + ( - COUNT ( * ) ) ) + + 55
----
97

query I rowsort
SELECT - 21 - - 77
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL COUNT( * ) * 93 * - 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL COUNT ( * ) * 93 * - 0 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2061
SELECT + 91 + COUNT( * ), 13 * - 85 * - 63 * - 2 / - CAST( NULL AS SIGNED ) * + ( + ( + + 37 ) ) col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-2061
SELECT + 91 + COUNT ( * ), 13 * - 85 * - 63 * - 2 / - CAST ( NULL AS INTEGER ) * + ( + ( + + 37 ) ) col1
----
92
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2062
SELECT DISTINCT + NULLIF ( + + 51, + + 51 + 73 * - 43 ) * - 17 * + + CAST( NULL AS DECIMAL ) - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT + NULLIF ( + + 51, + + 51 + 73 * - 43 ) * - 17 * + + CAST ( NULL AS REAL ) - - 27
----
NULL

query I rowsort
SELECT + 67 + + 11 + - - 10 AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT + 85 + + + 48 * - 66 + 68 - + 84 * - 35 * 40 * + - 75 + + + 49 + - 48 DIV - ( - - 24 ) + + - 12 AS col2
----
-8822976

skipif mysql # not compatible
query I rowsort label-2064
SELECT + 85 + + + 48 * - 66 + 68 - + 84 * - 35 * 40 * + - 75 + + + 49 + - 48 / - ( - - 24 ) + + - 12 AS col2
----
-8822976

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2065
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - NULLIF ( + 14, + + AVG ( ALL + 16 ) ) col2, - 42
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-2065
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - NULLIF ( + 14, + + AVG ( ALL + 16 ) ) col2, - 42
----
NULL
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT - 61 + - - COUNT( * ) + - + 18 - 26 * - 75 + - 97 + + + 37 * - + COUNT( * )
----
1738

skipif mysql # not compatible
query I rowsort label-2066
SELECT - 61 + - - COUNT ( * ) + - + 18 - 26 * - 75 + - 97 + + + 37 * - + COUNT ( * )
----
1738

query I rowsort
SELECT - 37 + - + 13 * - + 18
----
197

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2070
SELECT - 19 DIV 85 * - 89 * + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2070
SELECT - 19 / 85 * - 89 * + 90 AS col0
----
0

query I rowsort
SELECT DISTINCT + 62 * - 35 AS col1
----
-2170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2072
SELECT ALL + 51 DIV + 44 + + + MAX( + 23 ) - - + 40
----
64

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL + 51 / + 44 + + + MAX ( + 23 ) - - + 40
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2073
SELECT ALL COUNT( * ) DIV ( + - 57 ) + - 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL COUNT ( * ) / ( + - 57 ) + - 38 AS col0
----
-38

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

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

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

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

query I rowsort
SELECT + + 56 col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + 70 * + 32 + - SUM( + 59 ) col2
----
2181

skipif mysql # not compatible
query I rowsort label-2077
SELECT + 70 * + 32 + - SUM ( + 59 ) col2
----
2181

onlyif mysql # aggregate syntax: 
query II rowsort label-2078
SELECT ALL + - ( 62 ) AS col0, MIN( ALL 95 )
----
-62
95

skipif mysql # not compatible
query II rowsort label-2078
SELECT ALL + - ( 62 ) AS col0, MIN ( ALL 95 )
----
-62
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL - COALESCE ( + - 57, + 32, 53 * - ( - + CASE + 28 WHEN + 40 THEN + 98 WHEN - + 77 THEN - 58 + 93 END ) ) * 16 - - - COUNT( * ) AS col2
----
911

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL - COALESCE ( + - 57, + 32, 53 * - ( - + CASE + 28 WHEN + 40 THEN + 98 WHEN - + 77 THEN - 58 + 93 END ) ) * 16 - - - COUNT ( * ) AS col2
----
911

query I rowsort
SELECT ALL + + ( - + ( + CASE - + COALESCE ( 31, - 9 ) WHEN - 31 THEN - 58 END ) ) AS col0
----
58

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

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

query I rowsort
SELECT DISTINCT + 68 * - NULLIF ( - 2, - 55 ) AS col0
----
136

query I rowsort
SELECT - 73 * - 88 - - 19 + + 2 + - ( + 1 )
----
6444

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT ALL SUM( + - 50 ) * + 55 - - 37 * 31
----
-1603

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL SUM ( + - 50 ) * + 55 - - 37 * 31
----
-1603

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

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

query I rowsort
SELECT COALESCE ( + 60, - 45 ) + + + 76 * + 59 col1
----
4544

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

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

query II rowsort
SELECT DISTINCT + 65 * NULLIF ( + 3, - 75 ), - 67 AS col2
----
195
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2091
SELECT COUNT( * ) * SUM( 10 ) DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-2091
SELECT COUNT ( * ) * SUM ( 10 ) / + 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2092
SELECT DISTINCT CASE - 1 WHEN - 84 THEN NULL ELSE 94 * + - 1 + - - 69 + + 47 - - 58 * ( + - 69 ) * - COUNT( * ) * - - COALESCE ( + CAST( - ( - - COUNT( * ) ) AS SIGNED ), 10 ) END + - COUNT( * ) AS col1
----
-3981

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT CASE - 1 WHEN - 84 THEN NULL ELSE 94 * + - 1 + - - 69 + + 47 - - 58 * ( + - 69 ) * - COUNT ( * ) * - - COALESCE ( + CAST ( - ( - - COUNT ( * ) ) AS INTEGER ), 10 ) END + - COUNT ( * ) AS col1
----
-3981

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT COUNT( * ) * 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-2093
SELECT COUNT ( * ) * 10 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ( + - 22 ) * + MIN( ALL - 59 )
----
1298

skipif mysql # not compatible
query I rowsort label-2094
SELECT ( + - 22 ) * + MIN ( ALL - 59 )
----
1298

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL NULLIF ( COUNT( * ), - 64 ) + - 74 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL NULLIF ( COUNT ( * ), - 64 ) + - 74 AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2096
SELECT ALL CAST( 66 AS SIGNED ) + 99 col2, - 85 AS col2
----
165
-85

skipif mysql # not compatible
query II rowsort label-2096
SELECT ALL CAST ( 66 AS INTEGER ) + 99 col2, - 85 AS col2
----
165
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT ( + COUNT( - 92 ) ) * NULLIF ( - 88, + 53 + + 48 + - 40 * + 60 * + 78 + + COUNT( * ) ) * - 86 AS col0
----
7568

skipif mysql # not compatible
query I rowsort label-2097
SELECT ( + COUNT ( - 92 ) ) * NULLIF ( - 88, + 53 + + 48 + - 40 * + 60 * + 78 + + COUNT ( * ) ) * - 86 AS col0
----
7568

query I rowsort
SELECT 67 * - - 83
----
5561

query I rowsort
SELECT ALL - 21 + 4 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2100
SELECT COUNT( * ) - + 30 * CAST( - 48 AS SIGNED ) * - COUNT( * ) * 49
----
-70559

skipif mysql # not compatible
query I rowsort label-2100
SELECT COUNT ( * ) - + 30 * CAST ( - 48 AS INTEGER ) * - COUNT ( * ) * 49
----
-70559

onlyif mysql # DIV for integer division: 
query I rowsort label-2101
SELECT ALL + 58 + 61 + + 47 + - - 42 DIV 86 * 95 + 62 + + 49 + + 30 * + + 55 - 46 DIV - 22 AS col1
----
1929

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL + 58 + 61 + + 47 + - - 42 / 86 * 95 + 62 + + 49 + + 30 * + + 55 - 46 / - 22 AS col1
----
1929

query II rowsort
SELECT - 64 AS col0, - 11 AS col1
----
-64
-11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2104
SELECT - 27 * - - NULLIF ( - 90, + + 98 - - CAST( NULL AS SIGNED ) )
----
2430

skipif mysql # not compatible
query I rowsort label-2104
SELECT - 27 * - - NULLIF ( - 90, + + 98 - - CAST ( NULL AS INTEGER ) )
----
2430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2105
SELECT + - COUNT( * ) DIV - - COUNT( * ) - + - 47
----
46

skipif mysql # not compatible
query I rowsort label-2105
SELECT + - COUNT ( * ) / - - COUNT ( * ) - + - 47
----
46

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

skipif mysql # not compatible
query I rowsort label-2106
SELECT - MIN ( DISTINCT - 1 )
----
1

query I rowsort
SELECT + + 73 * 40 + 22 AS col0
----
2942

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2108
SELECT + 54 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT + 54 / + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 94 * 46 AS col1
----
4324

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

skipif mysql # not compatible
query I rowsort label-2110
SELECT CAST ( NULL AS INTEGER ) * - - 5 + + - ( + 53 ) + - - COUNT ( * ) * - 93 + - 2 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2111
SELECT + COUNT( * ) + + + 44 + - + NULLIF ( - 75, + 50 * - + 69 * - 96 ) + - - 87 * + - ( 98 ) - - + ( - CAST( + 82 AS SIGNED ) ), 3 AS col1
----
-8488
3

skipif mysql # not compatible
query II rowsort label-2111
SELECT + COUNT ( * ) + + + 44 + - + NULLIF ( - 75, + 50 * - + 69 * - 96 ) + - - 87 * + - ( 98 ) - - + ( - CAST ( + 82 AS INTEGER ) ), 3 AS col1
----
-8488
3

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

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

query I rowsort
SELECT ALL + 56 * 25 * 18 * 0
----
0

query I rowsort
SELECT + + 74 col2
----
74

query II rowsort
SELECT + 72, + 90 * ( - - 48 ) AS col1
----
72
4320

onlyif mysql # aggregate syntax: 
query II rowsort label-2116
SELECT DISTINCT - + 36 AS col2, + COUNT( DISTINCT + - 63 ) * COUNT( * )
----
-36
1

skipif mysql # not compatible
query II rowsort label-2116
SELECT DISTINCT - + 36 AS col2, + COUNT ( DISTINCT + - 63 ) * COUNT ( * )
----
-36
1

query I rowsort
SELECT + 10 * - ( - 60 )
----
600

onlyif mysql # aggregate syntax: 
query III rowsort label-2118
SELECT 74 AS col0, - COUNT( * ) * + - COUNT( * ) - - 52, - 53 - - 16 AS col0
----
74
53
-37

skipif mysql # not compatible
query III rowsort label-2118
SELECT 74 AS col0, - COUNT ( * ) * + - COUNT ( * ) - - 52, - 53 - - 16 AS col0
----
74
53
-37

query I rowsort
SELECT 13 - - 75 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT 22 - - 16 + + - MAX( ALL - 11 ) + - + 65 * + ( 18 ) AS col1
----
-1121

skipif mysql # not compatible
query I rowsort label-2120
SELECT 22 - - 16 + + - MAX ( ALL - 11 ) + - + 65 * + ( 18 ) AS col1
----
-1121

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT DISTINCT 73 * - MAX( - - ( - 29 ) )
----
2117

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT 73 * - MAX ( - - ( - 29 ) )
----
2117

query I rowsort
SELECT DISTINCT - COALESCE ( - + 82, - 49, 52 + + + 97 ) + + 83
----
165

query I rowsort
SELECT 48 - - - 53 - 54 + + 50
----
-9

query I rowsort
SELECT 22 + + - ( + 88 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT CASE - 81 WHEN - - 24 THEN NULL WHEN + COUNT( * ) THEN 49 END - - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT CASE - 81 WHEN - - 24 THEN NULL WHEN + COUNT ( * ) THEN 49 END - - 73
----
NULL

query I rowsort
SELECT 31 + - - ( + 53 )
----
84

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

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL + ( - 15 ) * COUNT ( * ) AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2128
SELECT ALL 30 + + 26 + + 38 DIV - 9 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL 30 + + 26 + + 38 / - 9 AS col2
----
52

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

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

query II rowsort
SELECT ALL 6 - 22 col1, - 80 col2
----
-16
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT DISTINCT 65 - - 72 + - MIN( - + 96 ) * - 5 AS col1
----
-343

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT 65 - - 72 + - MIN ( - + 96 ) * - 5 AS col1
----
-343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2132
SELECT + CAST( - CASE - - 8 WHEN + 31 / + 58 THEN NULL ELSE - - 57 END AS SIGNED ) + CASE + 38 WHEN COUNT( * ) THEN + + ( 20 ) END - - + ( - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT + CAST ( - CASE - - 8 WHEN + 31 / + 58 THEN NULL ELSE - - 57 END AS INTEGER ) + CASE + 38 WHEN COUNT ( * ) THEN + + ( 20 ) END - - + ( - 49 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2133
SELECT + 25 + + + 67, 25 + MIN( ALL - 76 ) AS col2
----
92
-51

skipif mysql # not compatible
query II rowsort label-2133
SELECT + 25 + + + 67, 25 + MIN ( ALL - 76 ) AS col2
----
92
-51

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2136
SELECT ALL - 62 * 70 * 33 DIV + 77, + 75 AS col2
----
-1860
75

skipif mysql # not compatible
query II rowsort label-2136
SELECT ALL - 62 * 70 * 33 / + 77, + 75 AS col2
----
-1860
75

query I rowsort
SELECT - 92 * - + 94 + 84 AS col0
----
8732

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL MIN( - 43 ) * + 37
----
-1591

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL MIN ( - 43 ) * + 37
----
-1591

query I rowsort
SELECT DISTINCT - 18 * + - 50 AS col2
----
900

onlyif mysql # aggregate syntax: 
query II rowsort label-2140
SELECT + COUNT( * ) * - - ( - - 27 ) * + 90 col1, 15 + - 60 - - 5 col0
----
2430
-40

skipif mysql # not compatible
query II rowsort label-2140
SELECT + COUNT ( * ) * - - ( - - 27 ) * + 90 col1, 15 + - 60 - - 5 col0
----
2430
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT 79 / + - 46 + ( - - CAST( NULL AS SIGNED ) ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT 79 / + - 46 + ( - - CAST ( NULL AS INTEGER ) ) * 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2142
SELECT + 35 * + 73 - + SUM( DISTINCT 62 ) AS col0, + 94 + + 21 + + 32 AS col1
----
2493
147

skipif mysql # not compatible
query II rowsort label-2142
SELECT + 35 * + 73 - + SUM ( DISTINCT 62 ) AS col0, + 94 + + 21 + + 32 AS col1
----
2493
147

query I rowsort
SELECT + + ( 33 ) + 74
----
107

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

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL - + 31 / - ( - - COUNT ( * ) ) AS col1
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-2145
SELECT + - 30 DIV 4 AS col0, - 95
----
-7
-95

skipif mysql # not compatible
query II rowsort label-2145
SELECT + - 30 / 4 AS col0, - 95
----
-7
-95

query II rowsort
SELECT - 64 + - 96 AS col0, 41 AS col0
----
-160
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT ALL + 24 * + 25 + - COUNT( * )
----
599

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL + 24 * + 25 + - COUNT ( * )
----
599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2149
SELECT DISTINCT + COALESCE ( + 31, + CASE - CAST( COALESCE ( 39, + + CAST( NULL AS SIGNED ) + - + 46 ) AS DECIMAL ) WHEN 17 / + AVG ( + 67 ) THEN - + 66 WHEN + - COUNT( * ) THEN NULL END + 9 - - SUM( + - 98 ) * - 30 * + 48 )
----
31

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT + COALESCE ( + 31, + CASE - CAST ( COALESCE ( 39, + + CAST ( NULL AS INTEGER ) + - + 46 ) AS REAL ) WHEN 17 / + AVG ( + 67 ) THEN - + 66 WHEN + - COUNT ( * ) THEN NULL END + 9 - - SUM ( + - 98 ) * - 30 * + 48 )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2150
SELECT DISTINCT - - COUNT( * ) * + 81 DIV - 66 + MAX( ALL - + 13 ) + 80 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT - - COUNT ( * ) * + 81 / - 66 + MAX ( ALL - + 13 ) + 80 AS col2
----
66

query I rowsort
SELECT - 21 - + 95 AS col1
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT - 38 + + CASE - 9 WHEN - 58 THEN NULL ELSE - ( + 60 ) + - ( + 31 ) END + - 83 DIV - 86 AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-2152
SELECT - 38 + + CASE - 9 WHEN - 58 THEN NULL ELSE - ( + 60 ) + - ( + 31 ) END + - 83 / - 86 AS col2
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL - COUNT( * ) + - 99 - - 42 * CASE - + 58 WHEN - 23 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - COUNT ( * ) + - 99 - - 42 * CASE - + 58 WHEN - 23 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT MIN( - - 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2154
SELECT MIN ( - - 70 ) AS col2
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT + CASE + 21 WHEN + SUM( - 18 ) * + 17 THEN NULL WHEN - AVG ( 34 ) THEN + 64 + - COUNT( * ) * - COUNT( ALL + 88 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT + CASE + 21 WHEN + SUM ( - 18 ) * + 17 THEN NULL WHEN - AVG ( 34 ) THEN + 64 + - COUNT ( * ) * - COUNT ( ALL + 88 ) END AS col0
----
NULL

query I rowsort
SELECT - 2 * + 69 AS col1
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT 21 * COUNT( * ) + + MIN( DISTINCT 21 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2158
SELECT 21 * COUNT ( * ) + + MIN ( DISTINCT 21 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query III rowsort label-2159
SELECT - 71, CASE - 87 WHEN + 96 THEN 86 WHEN 51 / + COUNT( * ) + 28 + SUM( ALL - 50 ) / - 35 + 52 * - 98 THEN NULL END col2, - + 67 AS col0
----
-71
NULL
-67

skipif mysql # not compatible
query III rowsort label-2159
SELECT - 71, CASE - 87 WHEN + 96 THEN 86 WHEN 51 / + COUNT ( * ) + 28 + SUM ( ALL - 50 ) / - 35 + 52 * - 98 THEN NULL END col2, - + 67 AS col0
----
-71
NULL
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT - CASE + 17 WHEN 79 THEN - COUNT( + 43 ) WHEN + COUNT( * ) THEN NULL ELSE NULL END + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT - CASE + 17 WHEN 79 THEN - COUNT ( + 43 ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END + 81
----
NULL

query I rowsort
SELECT ALL + 21 + 57
----
78

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

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

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

skipif mysql # not compatible
query I rowsort label-2163
SELECT - 72 * COUNT ( * ) * - CAST ( - COUNT ( * ) AS INTEGER )
----
-72

query I rowsort
SELECT DISTINCT ( + 11 ) col1
----
11

query II rowsort
SELECT ALL 84, 72 AS col1
----
84
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT ALL 19 * ( - MAX( ALL 2 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL 19 * ( - MAX ( ALL 2 ) )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2167
SELECT ALL - 58 - + 20 + 27 * - - 81 * + + 51 + 96 + + 23 DIV + 76
----
111555

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL - 58 - + 20 + 27 * - - 81 * + + 51 + 96 + + 23 / + 76
----
111555

query I rowsort
SELECT - 36 - + 16
----
-52

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

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

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

skipif mysql # not compatible
query I rowsort label-2170
SELECT - SUM ( + 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT - COUNT( + ( 11 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2171
SELECT - COUNT ( + ( 11 ) ) AS col2
----
-1

query I rowsort
SELECT ALL - 31 * + + 3 * - ( + 71 )
----
6603

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT ALL SUM( DISTINCT + 4 ) - - 12 * - COALESCE ( + COUNT( * ), + + MIN( 43 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL SUM ( DISTINCT + 4 ) - - 12 * - COALESCE ( + COUNT ( * ), + + MIN ( 43 ) )
----
-8

query I rowsort
SELECT - 62 * + - 40
----
2480

query I rowsort
SELECT ALL + 80 * + - 75 AS col2
----
-6000

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT + COALESCE ( - 48, + COUNT( DISTINCT + - 71 ) + 64 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-2179
SELECT + COALESCE ( - 48, + COUNT ( DISTINCT + - 71 ) + 64 ) AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2180
SELECT - SUM( DISTINCT - 64 ) DIV + 49 + 76 + + + 50 + - 13
----
114

skipif mysql # not compatible
query I rowsort label-2180
SELECT - SUM ( DISTINCT - 64 ) / + 49 + 76 + + + 50 + - 13
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2181
SELECT DISTINCT - 13 DIV - - 80 + - 3 + + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT - 13 / - - 80 + - 3 + + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL + ( COUNT( * ) ) * 12 * 69 + + - SUM( DISTINCT 15 ) * COUNT( * )
----
813

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + ( COUNT ( * ) ) * 12 * 69 + + - SUM ( DISTINCT 15 ) * COUNT ( * )
----
813

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT + COUNT( - 63 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2183
SELECT + COUNT ( - 63 ) AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL + + SUM( ALL + 22 ) * + 23 - - - SUM( DISTINCT + 52 ) + ( 48 )
----
502

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL + + SUM ( ALL + 22 ) * + 23 - - - SUM ( DISTINCT + 52 ) + ( 48 )
----
502

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT + - 18 DIV + 16
----
-1

skipif mysql # not compatible
query I rowsort label-2186
SELECT + - 18 / + 16
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2187
SELECT 88 * + MIN( - 83 ) + - 19 AS col0, COALESCE ( 32, + 82 + - 5 + 6 + + + 36, + 46, 57 ) AS col0
----
-7323
32

skipif mysql # not compatible
query II rowsort label-2187
SELECT 88 * + MIN ( - 83 ) + - 19 AS col0, COALESCE ( 32, + 82 + - 5 + 6 + + + 36, + 46, 57 ) AS col0
----
-7323
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT NULLIF ( - 76, + COUNT( * ) + - - 23 - + COALESCE ( + COUNT( * ), + 62 / - 69 + - + 46 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-2188
SELECT NULLIF ( - 76, + COUNT ( * ) + - - 23 - + COALESCE ( + COUNT ( * ), + 62 / - 69 + - + 46 ) )
----
-76

query I rowsort
SELECT - 15 * - - 89 + - 96 + + 38 AS col1
----
-1393

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT - COUNT( * ) * - - 50 * 51 col0
----
-2550

skipif mysql # not compatible
query I rowsort label-2190
SELECT - COUNT ( * ) * - - 50 * 51 col0
----
-2550

query II rowsort
SELECT + 12 AS col2, + 84 AS col2
----
12
84

query I rowsort
SELECT - 85 * - 19 AS col2
----
1615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2193
SELECT ALL CAST( NULL AS SIGNED ) * - COALESCE ( - 51, 63 * 59 + - - 69 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL CAST ( NULL AS INTEGER ) * - COALESCE ( - 51, 63 * 59 + - - 69 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 96 - + 60
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT + COUNT( DISTINCT + + 21 ) - - 10 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2195
SELECT + COUNT ( DISTINCT + + 21 ) - - 10 AS col2
----
11

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

query I rowsort
SELECT - 49 + + 65 AS col1
----
16

query II rowsort
SELECT ALL ( - + 9 ) AS col2, 53 * + 45
----
-9
2385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2199
SELECT ALL CASE 41 WHEN + 86 * + 28 THEN NULL WHEN 23 * + + 45 THEN - 72 * - 45 * + 59 + CASE MIN( ALL 46 ) WHEN - 56 * - 40 + - 93 * + + 86 THEN NULL WHEN + MIN( DISTINCT + 65 ) THEN - 7 + 5 - - 54 * - 80 ELSE + 23 END + - 51 * ( - CASE - COUNT( * ) WHEN 67 * 59 / - - 75 * COALESCE ( + - COALESCE ( + + 15, - + CAST( NULL AS SIGNED ) + - - 45 * - 63 ), - 27 ) * 75 + + 17 * COUNT( * ) THEN - 52 END ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL CASE 41 WHEN + 86 * + 28 THEN NULL WHEN 23 * + + 45 THEN - 72 * - 45 * + 59 + CASE MIN ( ALL 46 ) WHEN - 56 * - 40 + - 93 * + + 86 THEN NULL WHEN + MIN ( DISTINCT + 65 ) THEN - 7 + 5 - - 54 * - 80 ELSE + 23 END + - 51 * ( - CASE - COUNT ( * ) WHEN 67 * 59 / - - 75 * COALESCE ( + - COALESCE ( + + 15, - + CAST ( NULL AS INTEGER ) + - - 45 * - 63 ), - 27 ) * 75 + + 17 * COUNT ( * ) THEN - 52 END ) END AS col1
----
NULL

query I rowsort
SELECT + 13 + + 72 AS col2
----
85

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

skipif mysql # not compatible
query I rowsort label-2201
SELECT - COUNT ( * ) - - + 60 + - COUNT ( * ) AS col0
----
58

query I rowsort
SELECT ALL - 54 * 39 col2
----
-2106

query II rowsort
SELECT - 94 AS col1, 59 AS col1
----
-94
59

query I rowsort
SELECT - 71 + - 77 AS col2
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2205
SELECT ALL CAST( NULL AS SIGNED ), COALESCE ( - 89, + - 2 ) AS col2
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-2205
SELECT ALL CAST ( NULL AS INTEGER ), COALESCE ( - 89, + - 2 ) AS col2
----
NULL
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT - COUNT( ALL 43 ) * + 4 * + COUNT( * ) * - 10 col1
----
40

skipif mysql # not compatible
query I rowsort label-2206
SELECT - COUNT ( ALL 43 ) * + 4 * + COUNT ( * ) * - 10 col1
----
40

query I rowsort
SELECT ALL 88 * + 81
----
7128

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

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

query I rowsort
SELECT - - 40 + 8 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2210
SELECT - 83 * + 82 AS col2, ( + COALESCE ( + COALESCE ( - - 34, + + MIN( DISTINCT CAST( - 6 AS SIGNED ) ) + - ( 61 ), 43 ), - 9, - 68 * - 67 DIV - ( + 67 ) + ( 23 ), + - CASE + + 55 WHEN COUNT( * ) THEN - + CASE CASE + - 84 WHEN - - 57 + - 58 * - 56 + + 90 THEN NULL WHEN - - MAX( - 91 ) THEN - 80 END WHEN - - COUNT( * ) * 59 THEN + 28 END * - 45 WHEN - + 33 THEN 50 * + 68 END DIV 70 ) )
----
-6806
34

skipif mysql # not compatible
query II rowsort label-2210
SELECT - 83 * + 82 AS col2, ( + COALESCE ( + COALESCE ( - - 34, + + MIN ( DISTINCT CAST ( - 6 AS INTEGER ) ) + - ( 61 ), 43 ), - 9, - 68 * - 67 / - ( + 67 ) + ( 23 ), + - CASE + + 55 WHEN COUNT ( * ) THEN - + CASE CASE + - 84 WHEN - - 57 + - 58 * - 56 + + 90 THEN NULL WHEN - - MAX ( - 91 ) THEN - 80 END WHEN - - COUNT ( * ) * 59 THEN + 28 END * - 45 WHEN - + 33 THEN 50 * + 68 END / 70 ) )
----
-6806
34

query II rowsort
SELECT ALL ( - 76 ), 35 AS col1
----
-76
35

onlyif mysql # aggregate syntax: 
query II rowsort label-2212
SELECT - + 79, MAX( ALL 94 ) + + + 95 AS col1
----
-79
189

skipif mysql # not compatible
query II rowsort label-2212
SELECT - + 79, MAX ( ALL 94 ) + + + 95 AS col1
----
-79
189

query I rowsort
SELECT ALL + + NULLIF ( + 88, + 6 + 56 ) * 22 * - 32 AS col1
----
-61952

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT - 49 + + ( + 97 ) + + COUNT( * ) + + - 35
----
14

skipif mysql # not compatible
query I rowsort label-2214
SELECT - 49 + + ( + 97 ) + + COUNT ( * ) + + - 35
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2215
SELECT - - 26 AS col0, 11 + MIN( + 32 ) * COALESCE ( 14, + 52 DIV 82 * + - 78 ) + ( - - 83 ) AS col2
----
26
542

skipif mysql # not compatible
query II rowsort label-2215
SELECT - - 26 AS col0, 11 + MIN ( + 32 ) * COALESCE ( 14, + 52 / 82 * + - 78 ) + ( - - 83 ) AS col2
----
26
542

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT CASE - 81 WHEN 32 / + - MIN( ALL - - 76 ) + - 88 + + 22 + - + 63 + 89 * - 34 * + 34 * + + 7 + 45 THEN - + COUNT( * ) - + COUNT( * ) WHEN - 10 / - 20 * - 39 THEN + - 24 * - COUNT( * ) + - - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT CASE - 81 WHEN 32 / + - MIN ( ALL - - 76 ) + - 88 + + 22 + - + 63 + 89 * - 34 * + 34 * + + 7 + 45 THEN - + COUNT ( * ) - + COUNT ( * ) WHEN - 10 / - 20 * - 39 THEN + - 24 * - COUNT ( * ) + - - 18 END
----
NULL

query I rowsort
SELECT DISTINCT - 77 + - 87 AS col0
----
-164

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

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

query I rowsort
SELECT DISTINCT - + 85 + + 48 + + 48
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2220
SELECT DISTINCT + 69 + - 6 + - 74 * + - 17 + 74 DIV + ( MIN( ALL - 16 ) )
----
1317

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT + 69 + - 6 + - 74 * + - 17 + 74 / + ( MIN ( ALL - 16 ) )
----
1317

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

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

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

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

query I rowsort
SELECT 2 * + 57 - - + 83
----
197

query I rowsort
SELECT DISTINCT 8 * - 67 AS col1
----
-536

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2225
SELECT DISTINCT + 76 - + 54 AS col2, + CAST( NULL AS SIGNED ) * + + 74
----
22
NULL

skipif mysql # not compatible
query II rowsort label-2225
SELECT DISTINCT + 76 - + 54 AS col2, + CAST ( NULL AS INTEGER ) * + + 74
----
22
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2226
SELECT CASE + 68 WHEN - 88 / - + 70 THEN - COUNT( * ) + + ( + SUM( DISTINCT 20 ) ) - - NULLIF ( + + 28, + 28 * - + COALESCE ( - - 22, + 26 / - 38 - - - 32 + + - 50 ) / - 27 * ( - 80 ) + - NULLIF ( - MAX( DISTINCT + - 93 ), - 83 ) - - 10 * - - 38 ) - + + 22 + - 50 + + CAST( NULL AS DECIMAL ) WHEN + + 93 * - SUM( + 61 ) THEN NULL ELSE NULL END * + - 30 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT CASE + 68 WHEN - 88 / - + 70 THEN - COUNT ( * ) + + ( + SUM ( DISTINCT 20 ) ) - - NULLIF ( + + 28, + 28 * - + COALESCE ( - - 22, + 26 / - 38 - - - 32 + + - 50 ) / - 27 * ( - 80 ) + - NULLIF ( - MAX ( DISTINCT + - 93 ), - 83 ) - - 10 * - - 38 ) - + + 22 + - 50 + + CAST ( NULL AS REAL ) WHEN + + 93 * - SUM ( + 61 ) THEN NULL ELSE NULL END * + - 30 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2227
SELECT ALL ( - 39 ) - 15 DIV 92 + + - COUNT( * ) * + - 48 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL ( - 39 ) - 15 / 92 + + - COUNT ( * ) * + - 48 AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT DISTINCT 90 - 86 * - AVG ( - 48 ) / + + 49 + + COUNT( * ) + - 72 + - MAX( ALL - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT 90 - 86 * - AVG ( - 48 ) / + + 49 + + COUNT ( * ) + - 72 + - MAX ( ALL - + CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT ( + NULLIF ( - 63, COUNT( * ) ) ) * - + ( - - 53 )
----
3339

skipif mysql # not compatible
query I rowsort label-2230
SELECT ( + NULLIF ( - 63, COUNT ( * ) ) ) * - + ( - - 53 )
----
3339

onlyif mysql # aggregate syntax: 
query II rowsort label-2231
SELECT ALL 7 * + COUNT( * ) col1, - 86
----
7
-86

skipif mysql # not compatible
query II rowsort label-2231
SELECT ALL 7 * + COUNT ( * ) col1, - 86
----
7
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT + 48 * + ( 23 ) * - - 85 + - 21 * 32 * + COUNT( ALL + 98 ) * 39 AS col0
----
67632

skipif mysql # not compatible
query I rowsort label-2232
SELECT + 48 * + ( 23 ) * - - 85 + - 21 * 32 * + COUNT ( ALL + 98 ) * 39 AS col0
----
67632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2233
SELECT ( + CAST( + CASE COALESCE ( + CASE + 84 WHEN 4 / MAX( - 17 ) + - - 69 + - 85 THEN + 41 ELSE + 63 END, + 16 ) WHEN + 64 + - + COUNT( * ) THEN ( CASE - + 19 WHEN 35 * + 20 * + - 57 * - + 89 THEN NULL ELSE - 21 END ) END AS SIGNED ) ) * + - 27 col1
----
567

skipif mysql # not compatible
query I rowsort label-2233
SELECT ( + CAST ( + CASE COALESCE ( + CASE + 84 WHEN 4 / MAX ( - 17 ) + - - 69 + - 85 THEN + 41 ELSE + 63 END, + 16 ) WHEN + 64 + - + COUNT ( * ) THEN ( CASE - + 19 WHEN 35 * + 20 * + - 57 * - + 89 THEN NULL ELSE - 21 END ) END AS INTEGER ) ) * + - 27 col1
----
567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2234
SELECT 1 + - - COUNT( * ) - + 56 + - 67 * + CAST( NULL AS SIGNED ) * - 48 * - 60 * - - COUNT( * ) / 89 * - COUNT( * ) AS col0, MAX( ALL - - 35 ) AS col1
----
NULL
35

skipif mysql # not compatible
query II rowsort label-2234
SELECT 1 + - - COUNT ( * ) - + 56 + - 67 * + CAST ( NULL AS INTEGER ) * - 48 * - 60 * - - COUNT ( * ) / 89 * - COUNT ( * ) AS col0, MAX ( ALL - - 35 ) AS col1
----
NULL
35

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2236
SELECT ALL 28 DIV - 28 * - 23 DIV + + 15
----
1

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL 28 / - 28 * - 23 / + + 15
----
1

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

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

query I rowsort
SELECT - 11 - - 96
----
85

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT ALL + + 12 * NULLIF ( 30, - 92 + - 66 + 33 ) * - - CAST( - 8 AS SIGNED ) + 29 - ( + + CAST( 64 AS SIGNED ) ) AS col1
----
-2915

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + + 12 * NULLIF ( 30, - 92 + - 66 + 33 ) * - - CAST ( - 8 AS INTEGER ) + 29 - ( + + CAST ( 64 AS INTEGER ) ) AS col1
----
-2915

query I rowsort
SELECT + CASE - 8 WHEN - - ( + + 47 ) THEN NULL WHEN - - 97 * 87 - - + ( - 93 ) / 37 THEN 74 ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL - 48 + + - 78 AS col2
----
-126

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2246
SELECT DISTINCT + COALESCE ( 9, + 41 DIV + 90 ) + + 34 col0
----
43

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT + COALESCE ( 9, + 41 / + 90 ) + + 34 col0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2247
SELECT 9 + + NULLIF ( + 50, - 48 ) + - 88 + 98 * - 71 AS col1, - COUNT( * ) * 31 * 20 - COUNT( ALL - 62 )
----
-6987
-621

skipif mysql # not compatible
query II rowsort label-2247
SELECT 9 + + NULLIF ( + 50, - 48 ) + - 88 + 98 * - 71 AS col1, - COUNT ( * ) * 31 * 20 - COUNT ( ALL - 62 )
----
-6987
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT 97 * + SUM( ALL 41 )
----
3977

skipif mysql # not compatible
query I rowsort label-2248
SELECT 97 * + SUM ( ALL 41 )
----
3977

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

skipif mysql # not compatible
query I rowsort label-2249
SELECT 27 / COUNT ( * ) AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2250
SELECT - 16 * - 40 + + 93 DIV + 66 - + 15 AS col1, 84 * 53 + + 16 + + 8 + COUNT( * ) - + + 49 + + 78
----
626
4506

skipif mysql # not compatible
query II rowsort label-2250
SELECT - 16 * - 40 + + 93 / + 66 - + 15 AS col1, 84 * 53 + + 16 + + 8 + COUNT ( * ) - + + 49 + + 78
----
626
4506

query I rowsort
SELECT ALL - ( + 64 ) * + 38 + - - 74
----
-2358

query I rowsort
SELECT ALL + 71 - + 47 * - + 91 + ( - - 57 ) AS col1
----
4405

query I rowsort
SELECT ALL - ( - 88 ) AS col2
----
88

query I rowsort
SELECT DISTINCT + ( 37 ) - + + 94 * - + 63 * 39
----
230995

onlyif mysql # DIV for integer division: 
query II rowsort label-2255
SELECT DISTINCT - 24, 35 DIV 27 AS col2
----
-24
1

skipif mysql # not compatible
query II rowsort label-2255
SELECT DISTINCT - 24, 35 / 27 AS col2
----
-24
1

query I rowsort
SELECT ALL + 71 * + 8
----
568

query I rowsort
SELECT 37 + - - 81 + + 31
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-2258
SELECT MAX( ALL + ( - + 39 ) ), COUNT( * ) AS col0
----
-39
1

skipif mysql # not compatible
query II rowsort label-2258
SELECT MAX ( ALL + ( - + 39 ) ), COUNT ( * ) AS col0
----
-39
1

query II rowsort
SELECT ALL - 11, + 86 * ( 89 ) AS col1
----
-11
7654

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

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

query II rowsort
SELECT 44, - ( ( + 29 ) ) AS col0
----
44
-29

query II rowsort
SELECT ALL - 1 col2, + 11 + + - 46
----
-1
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2263
SELECT 72 - SUM( ALL + 84 ), + 78 AS col0
----
-12
78

skipif mysql # not compatible
query II rowsort label-2263
SELECT 72 - SUM ( ALL + 84 ), + 78 AS col0
----
-12
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT CASE - 7 WHEN - 30 / + 57 THEN NULL WHEN - - MIN( - - ( + 22 ) ) * + + 9 - + 3 * + - 28 * + + 18 THEN NULL WHEN + 16 + - - ( 51 ) THEN + COUNT( * ) ELSE NULL END * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT CASE - 7 WHEN - 30 / + 57 THEN NULL WHEN - - MIN ( - - ( + 22 ) ) * + + 9 - + 3 * + - 28 * + + 18 THEN NULL WHEN + 16 + - - ( 51 ) THEN + COUNT ( * ) ELSE NULL END * 13
----
NULL

query I rowsort
SELECT ALL 30 + 14 - + ( + ( + 4 ) ) - ( 47 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT COUNT( * ) * + MIN( DISTINCT - + 50 ) * - - ( + 4 ) + 25 + - 32 AS col1
----
-207

skipif mysql # not compatible
query I rowsort label-2266
SELECT COUNT ( * ) * + MIN ( DISTINCT - + 50 ) * - - ( + 4 ) + 25 + - 32 AS col1
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT COUNT( * ) * CASE - + 37 WHEN + 26 - + - 43 THEN + ( - 12 ) * 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT COUNT ( * ) * CASE - + 37 WHEN + 26 - + - 43 THEN + ( - 12 ) * 4 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2268
SELECT DISTINCT 59 + ( + CASE - + MAX( 37 ) WHEN - - 18 + + 13 THEN NULL ELSE + 70 END ) * + + 69 - + COUNT( * ) + - 84 - - 72 * + COUNT( * ) + + ( - - 54 ) DIV + 20
----
4878

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT 59 + ( + CASE - + MAX ( 37 ) WHEN - - 18 + + 13 THEN NULL ELSE + 70 END ) * + + 69 - + COUNT ( * ) + - 84 - - 72 * + COUNT ( * ) + + ( - - 54 ) / + 20
----
4878

query I rowsort
SELECT - + ( - 41 ) + - - 62 * 61
----
3823

query I rowsort
SELECT DISTINCT - 1 * 44 AS col1
----
-44

query I rowsort
SELECT ALL 39 + - 25 - - 41 * 18 * + 70 * + + 63 + - 4 * - 43 * + 39 AS col1
----
3261302

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT + + COALESCE ( 50, - + 12, + 48 DIV + 85 + - + 3 DIV 93 * + + 67 * + + COALESCE ( - ( - 84 ), + NULLIF ( - 61, + 96 * ( + - 87 ) ) ) + - + 24, 91 ) - - - 53 col0
----
-3

skipif mysql # not compatible
query I rowsort label-2273
SELECT + + COALESCE ( 50, - + 12, + 48 / + 85 + - + 3 / 93 * + + 67 * + + COALESCE ( - ( - 84 ), + NULLIF ( - 61, + 96 * ( + - 87 ) ) ) + - + 24, 91 ) - - - 53 col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT + + 63 + + CAST( - - 75 AS SIGNED ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-2274
SELECT + + 63 + + CAST ( - - 75 AS INTEGER ) AS col0
----
138

query I rowsort
SELECT + - 57 - - - 6 * + 37 AS col1
----
-279

onlyif mysql # aggregate syntax: 
query II rowsort label-2276
SELECT + - 88 * SUM( ALL 95 ) + 13, + 34 + + 5 * - 59 AS col2
----
-8347
-261

skipif mysql # not compatible
query II rowsort label-2276
SELECT + - 88 * SUM ( ALL 95 ) + 13, + 34 + + 5 * - 59 AS col2
----
-8347
-261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2277
SELECT COALESCE ( 34, + 35 * - COUNT( * ) * + + CAST( - 49 AS SIGNED ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2277
SELECT COALESCE ( 34, + 35 * - COUNT ( * ) * + + CAST ( - 49 AS INTEGER ) ) AS col0
----
34

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2279
SELECT + 58 + - 0 DIV - - 22 - + ( - - 95 ) + 52, - COUNT( * ) AS col2
----
15
-1

skipif mysql # not compatible
query II rowsort label-2279
SELECT + 58 + - 0 / - - 22 - + ( - - 95 ) + 52, - COUNT ( * ) AS col2
----
15
-1

query I rowsort
SELECT ALL + + 9 + + - 43 col1
----
-34

query I rowsort
SELECT + 72 + 3 col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2282
SELECT ALL ( - 95 ) + - + COUNT( * ), COUNT( * ) col2
----
-96
1

skipif mysql # not compatible
query II rowsort label-2282
SELECT ALL ( - 95 ) + - + COUNT ( * ), COUNT ( * ) col2
----
-96
1

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

query II rowsort
SELECT ALL 70 AS col2, - 66
----
70
-66

query I rowsort
SELECT ALL ( + 69 ) * - NULLIF ( 56, - + 51 ) AS col2
----
-3864

query I rowsort
SELECT - - 56 * 94 AS col2
----
5264

query I rowsort
SELECT + - 45 + + 59
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2288
SELECT - + MIN( ALL + - ( - - 20 ) ) AS col1, - 55
----
20
-55

skipif mysql # not compatible
query II rowsort label-2288
SELECT - + MIN ( ALL + - ( - - 20 ) ) AS col1, - 55
----
20
-55

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

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

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

query I rowsort
SELECT ALL - 6 * 59
----
-354

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT ALL - 3 DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL - 3 / 33
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2294
SELECT 94 DIV + - 28 + + + 35 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2294
SELECT 94 / + - 28 + + + 35 AS col0
----
32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT + 2 * - - 19 + - COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2296
SELECT + 2 * - - 19 + - COUNT ( * ) AS col1
----
37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT DISTINCT - 13 DIV + - 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT - 13 / + - 37 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2299
SELECT - 42 DIV 12 AS col2, 36 + + 45 * + - 60
----
-3
-2664

skipif mysql # not compatible
query II rowsort label-2299
SELECT - 42 / 12 AS col2, 36 + + 45 * + - 60
----
-3
-2664

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT NULLIF ( + - 66, - + COUNT( * ) ) * - - 26 + - + 77 * + 30
----
-4026

skipif mysql # not compatible
query I rowsort label-2301
SELECT NULLIF ( + - 66, - + COUNT ( * ) ) * - - 26 + - + 77 * + 30
----
-4026

query I rowsort
SELECT ALL - 95 * - 80
----
7600

query I rowsort
SELECT ALL + NULLIF ( + 83, - 16 ) AS col2
----
83

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2305
SELECT ALL 6 DIV + COUNT( 94 )
----
6

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL 6 / + COUNT ( 94 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT ALL 70 * 51 + + - COUNT( * ) * + - ( ( + + 88 ) ) - - - COUNT( DISTINCT NULLIF ( + 41, - + ( ( + 71 ) ) * 56 + - - 20 ) ) col1
----
3657

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL 70 * 51 + + - COUNT ( * ) * + - ( ( + + 88 ) ) - - - COUNT ( DISTINCT NULLIF ( + 41, - + ( ( + 71 ) ) * 56 + - - 20 ) ) col1
----
3657

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT NULLIF ( - - COALESCE ( - 93, + 98, + - 56 ), AVG ( DISTINCT + ( + 76 ) ) * + COUNT( * ) + + - 36 )
----
-93

skipif mysql # not compatible
query I rowsort label-2307
SELECT NULLIF ( - - COALESCE ( - 93, + 98, + - 56 ), AVG ( DISTINCT + ( + 76 ) ) * + COUNT ( * ) + + - 36 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT ALL 76 * - - COUNT( * ) + + 56 AS col2
----
132

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL 76 * - - COUNT ( * ) + + 56 AS col2
----
132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2309
SELECT 61 * 49 / 56 / COUNT( * ) + + + COUNT( * ) + CAST( NULL AS DECIMAL ) * + + 64 * 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT 61 * 49 / 56 / COUNT ( * ) + + + COUNT ( * ) + CAST ( NULL AS REAL ) * + + 64 * 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT CASE + NULLIF ( - 62, - 40 ) WHEN - MAX( + - 74 ) THEN + + 28 - - 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT CASE + NULLIF ( - 62, - 40 ) WHEN - MAX ( + - 74 ) THEN + + 28 - - 6 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2311
SELECT ALL + 32 * - 19 + + 54 * + 7 * - 60 * - CAST( NULL AS DECIMAL ) - - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + 32 * - 19 + + 54 * + 7 * - 60 * - CAST ( NULL AS REAL ) - - 26
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2312
SELECT DISTINCT + ( - COALESCE ( - - 93, + - COALESCE ( 8, - 83 * 78 ), 20 + + ( + 4 ) ) ) * + 45 * 81 + - CAST( NULL AS DECIMAL ) + 97 AS col0, - 5
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-2312
SELECT DISTINCT + ( - COALESCE ( - - 93, + - COALESCE ( 8, - 83 * 78 ), 20 + + ( + 4 ) ) ) * + 45 * 81 + - CAST ( NULL AS REAL ) + 97 AS col0, - 5
----
NULL
-5

query I rowsort
SELECT ALL 73 + - 67
----
6

query I rowsort
SELECT + - 51 * + + 35 AS col2
----
-1785

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2316
SELECT DISTINCT ( - 46 ) * + 76 + + COALESCE ( 34, - 33 * COUNT( * ) * + CAST( + 26 AS SIGNED ), - - 72 DIV 4 DIV MIN( + 20 ) )
----
-3462

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT ( - 46 ) * + 76 + + COALESCE ( 34, - 33 * COUNT ( * ) * + CAST ( + 26 AS INTEGER ), - - 72 / 4 / MIN ( + 20 ) )
----
-3462

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL + SUM( ALL 96 ) - 64 - - 19 + - 25 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + SUM ( ALL 96 ) - 64 - - 19 + - 25 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT ALL - 96 * + COUNT( DISTINCT + + 79 )
----
-96

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL - 96 * + COUNT ( DISTINCT + + 79 )
----
-96

query I rowsort
SELECT - + 90 - - 22
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2320
SELECT + - 16 + CAST( + 69 AS SIGNED ) col0
----
53

skipif mysql # not compatible
query I rowsort label-2320
SELECT + - 16 + CAST ( + 69 AS INTEGER ) col0
----
53

query I rowsort
SELECT + 72 - + COALESCE ( + + 34, + 33 ) + - 37 * + 5 AS col0
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2322
SELECT + COUNT( * ) - + - MAX( ALL + 80 ) + - + 29 + 70 - AVG ( + 10 ) / - 42 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT + COUNT ( * ) - + - MAX ( ALL + 80 ) + - + 29 + 70 - AVG ( + 10 ) / - 42 * + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL + 71 * - 64 * + 93 AS col0
----
-422592

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

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

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

query I rowsort
SELECT + 2 * + - COALESCE ( + - 78, + 81 ) AS col0
----
156

query II rowsort
SELECT ALL + 21 AS col1, - 59 + - 40
----
21
-99

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

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

query I rowsort
SELECT - 55 - + + 48
----
-103

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

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

query I rowsort
SELECT + 66 * - - 65 col0
----
4290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2332
SELECT CAST( - 42 AS SIGNED ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-2332
SELECT CAST ( - 42 AS INTEGER ) col0
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-2333
SELECT ALL 25 * 66 * + - 30 DIV 2 * + - 50 * 9 AS col0, + 37
----
11137500
37

skipif mysql # not compatible
query II rowsort label-2333
SELECT ALL 25 * 66 * + - 30 / 2 * + - 50 * 9 AS col0, + 37
----
11137500
37

query I rowsort
SELECT DISTINCT 83 + 61
----
144

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

query II rowsort
SELECT 12 AS col2, 77
----
12
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2337
SELECT CAST( + - CAST( - - 38 AS SIGNED ) AS SIGNED ) + + CAST( + COUNT( * ) AS SIGNED ) * 60 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-2337
SELECT CAST ( + - CAST ( - - 38 AS INTEGER ) AS INTEGER ) + + CAST ( + COUNT ( * ) AS INTEGER ) * 60 AS col0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2338
SELECT DISTINCT - 64 DIV + 17
----
-3

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - 64 / + 17
----
-3

query I rowsort
SELECT ALL - ( - 87 ) AS col2
----
87

query I rowsort
SELECT 46 + - 46 - - 96 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2341
SELECT ALL + - 5 + MIN( - 77 ) * CAST( - 25 AS SIGNED ) AS col2, 91 AS col0
----
1920
91

skipif mysql # not compatible
query II rowsort label-2341
SELECT ALL + - 5 + MIN ( - 77 ) * CAST ( - 25 AS INTEGER ) AS col2, 91 AS col0
----
1920
91

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2343
SELECT 23 + + COALESCE ( + + 99, + - 45 + - - 71 + + - 14, + + 77 * + + COUNT( * ) ), 2 AS col2
----
122
2

skipif mysql # not compatible
query II rowsort label-2343
SELECT 23 + + COALESCE ( + + 99, + - 45 + - - 71 + + - 14, + + 77 * + + COUNT ( * ) ), 2 AS col2
----
122
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2344
SELECT DISTINCT - + 66, - 14 * + - 39 + COUNT( * ) AS col2
----
-66
547

skipif mysql # not compatible
query II rowsort label-2344
SELECT DISTINCT - + 66, - 14 * + - 39 + COUNT ( * ) AS col2
----
-66
547

query I rowsort
SELECT DISTINCT - + 76 * - - 51 AS col0
----
-3876

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

skipif mysql # not compatible
query I rowsort label-2346
SELECT COUNT ( * ) + 52 + - + 93 AS col0
----
-40

query I rowsort
SELECT ALL - 0 * + 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2348
SELECT 2 + + 50 DIV + 99 * 89 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2348
SELECT 2 + + 50 / + 99 * 89 AS col1
----
2

query I rowsort
SELECT 46 * + + 74 AS col1
----
3404

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

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

query I rowsort
SELECT - 7 + - 5 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT 92 - MAX( ALL - - ( 9 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2352
SELECT 92 - MAX ( ALL - - ( 9 ) ) AS col2
----
83

query I rowsort
SELECT - 90 + - 73
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2354
SELECT NULLIF ( + 57, 32 ) * - ( + 37 ) * + CAST( NULL AS SIGNED ), 56 AS col2
----
NULL
56

skipif mysql # not compatible
query II rowsort label-2354
SELECT NULLIF ( + 57, 32 ) * - ( + 37 ) * + CAST ( NULL AS INTEGER ), 56 AS col2
----
NULL
56

query II rowsort
SELECT DISTINCT - 13 AS col2, 41
----
-13
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT + 56 + + 15 * - MIN( DISTINCT + 61 )
----
-859

skipif mysql # not compatible
query I rowsort label-2356
SELECT + 56 + + 15 * - MIN ( DISTINCT + 61 )
----
-859

query II rowsort
SELECT - 99 AS col0, - 46 * - 33
----
-99
1518

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2358
SELECT COUNT( + + 73 ) + - CAST( NULL AS DECIMAL ) * + COUNT( * ) * + ( - ( - 94 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT COUNT ( + + 73 ) + - CAST ( NULL AS REAL ) * + COUNT ( * ) * + ( - ( - 94 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 12 * - 65 AS col0
----
-780

onlyif mysql # DIV for integer division: 
query II rowsort label-2360
SELECT - 7 AS col0, - 26 DIV + + 52 * - + 50 AS col0
----
-7
0

skipif mysql # not compatible
query II rowsort label-2360
SELECT - 7 AS col0, - 26 / + + 52 * - + 50 AS col0
----
-7
0

query I rowsort
SELECT 56 + - 60 + - 41 * + 44
----
-1808

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2362
SELECT CASE + 42 WHEN - SUM( 44 ) THEN NULL WHEN + 90 * 35 THEN + COUNT( * ) END + - COALESCE ( - COUNT( * ), 94 ) * + 43, 53 DIV 69 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2362
SELECT CASE + 42 WHEN - SUM ( 44 ) THEN NULL WHEN + 90 * 35 THEN + COUNT ( * ) END + - COALESCE ( - COUNT ( * ), 94 ) * + 43, 53 / 69 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2363
SELECT SUM( + 0 ) DIV + + 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2363
SELECT SUM ( + 0 ) / + + 26 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT ALL 78 + - CASE WHEN MAX( 69 ) BETWEEN 70 AND 24 THEN ( + 77 ) END * + 48 * - - 95 * 63 * - - 98 / + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL 78 + - CASE WHEN MAX ( 69 ) BETWEEN 70 AND 24 THEN ( + 77 ) END * + 48 * - - 95 * 63 * - - 98 / + 13 AS col0
----
NULL

query I rowsort
SELECT ALL 37 + - - 48 AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2366
SELECT ALL - 11, - 62 * CAST( - + SUM( + 8 ) AS SIGNED ) * 66 AS col0
----
-11
32736

skipif mysql # not compatible
query II rowsort label-2366
SELECT ALL - 11, - 62 * CAST ( - + SUM ( + 8 ) AS INTEGER ) * 66 AS col0
----
-11
32736

query I rowsort
SELECT 82 + + 92 * + 5 AS col2
----
542

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT ALL 42 + + 52 + + - COUNT( - + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL 42 + + 52 + + - COUNT ( - + 93 )
----
93

query I rowsort
SELECT 41 * + 1 + + - 95
----
-54

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2372
SELECT - 56 DIV + 4 + 66
----
52

skipif mysql # not compatible
query I rowsort label-2372
SELECT - 56 / + 4 + 66
----
52

query I rowsort
SELECT ALL 71 * - + 2 AS col1
----
-142

query II rowsort
SELECT + 41 AS col1, 56 AS col2
----
41
56

query I rowsort
SELECT 26 + + + 57 col2
----
83

query I rowsort
SELECT ALL - 64 + + + CASE + 0 WHEN 36 THEN + COALESCE ( - 48, 66 / - + 31 ) END AS col0
----
NULL

query I rowsort
SELECT ALL + 95 * + 44 + 67 * - 59 AS col0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT CAST( NULL AS SIGNED ) * 3 - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT CAST ( NULL AS INTEGER ) * 3 - - 68
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT + + 84, + 20 * + - 47 * 88 + + + COUNT( * ) AS col2
----
84
-82719

skipif mysql # not compatible
query II rowsort label-2379
SELECT + + 84, + 20 * + - 47 * 88 + + + COUNT ( * ) AS col2
----
84
-82719

onlyif mysql # DIV for integer division: 
query II rowsort label-2380
SELECT 71 DIV - 17 AS col2, - 0 AS col1
----
-4
0

skipif mysql # not compatible
query II rowsort label-2380
SELECT 71 / - 17 AS col2, - 0 AS col1
----
-4
0

query II rowsort
SELECT + - 30 AS col0, + 71 AS col1
----
-30
71

query I rowsort
SELECT + 82 * - 25 + 48
----
-2002

onlyif mysql # DIV for integer division: 
query I rowsort label-2383
SELECT ALL + 79 DIV 38 + 37
----
39

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL + 79 / 38 + 37
----
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2384
SELECT 7 + + 54 * - CASE - 53 WHEN - - ( + + 39 ) THEN - 98 * 39 WHEN - ( + + COUNT( DISTINCT - 47 ) ) + + + COALESCE ( - 54, - 91 + + + 98, - 62 ) + NULLIF ( - 82, - 62 ) * - - ( + NULLIF ( 1, + 74 / - + 85 ) ) THEN COUNT( * ) WHEN + + CAST( NULL AS DECIMAL ) THEN - 81 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT 7 + + 54 * - CASE - 53 WHEN - - ( + + 39 ) THEN - 98 * 39 WHEN - ( + + COUNT ( DISTINCT - 47 ) ) + + + COALESCE ( - 54, - 91 + + + 98, - 62 ) + NULLIF ( - 82, - 62 ) * - - ( + NULLIF ( 1, + 74 / - + 85 ) ) THEN COUNT ( * ) WHEN + + CAST ( NULL AS REAL ) THEN - 81 ELSE NULL END AS col1
----
NULL

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

query II rowsort
SELECT - - 40, + 75 AS col1
----
40
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT - CASE + COUNT( * ) WHEN + ( - + 7 ) THEN 96 / COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT - CASE + COUNT ( * ) WHEN + ( - + 7 ) THEN 96 / COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 72 col2
----
72

query II rowsort
SELECT ALL 89 AS col0, - 92
----
89
-92

query I rowsort
SELECT ALL - 27 * 72
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT 79 * + MAX( ALL 36 ) AS col1
----
2844

skipif mysql # not compatible
query I rowsort label-2391
SELECT 79 * + MAX ( ALL 36 ) AS col1
----
2844

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2393
SELECT - 84, + COUNT( * ) + 10 AS col1
----
-84
11

skipif mysql # not compatible
query II rowsort label-2393
SELECT - 84, + COUNT ( * ) + 10 AS col1
----
-84
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2394
SELECT ALL AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT 50 + NULLIF ( + 3, - 68 + + COUNT( * ) ) * - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2395
SELECT 50 + NULLIF ( + 3, - 68 + + COUNT ( * ) ) * - COUNT ( * ) AS col1
----
47

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

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

query I rowsort
SELECT 56 * + + 78 AS col0
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT - COUNT( * ) + + - 50 + 52
----
1

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - COUNT ( * ) + + - 50 + 52
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2399
SELECT DISTINCT NULLIF ( + + 84, + COUNT( 81 ) / + COUNT( DISTINCT + 79 ) - + ( + + ( + 44 ) ) + 77 + + - CAST( + 19 AS SIGNED ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT NULLIF ( + + 84, + COUNT ( 81 ) / + COUNT ( DISTINCT + 79 ) - + ( + + ( + 44 ) ) + 77 + + - CAST ( + 19 AS INTEGER ) ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT DISTINCT - 54 + + 20 * + + 4 - - MAX( + 46 ) * - - ( + 77 )
----
3568

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT - 54 + + 20 * + + 4 - - MAX ( + 46 ) * - - ( + 77 )
----
3568

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT DISTINCT MIN( ALL - 54 ) + + 26
----
-28

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT MIN ( ALL - 54 ) + + 26
----
-28

query I rowsort
SELECT - ( + 72 ) + - 87 AS col0
----
-159

query II rowsort
SELECT DISTINCT + 64 * - - 55, 2 * + 11 AS col1
----
3520
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2404
SELECT + 65 * + COALESCE ( + 27, + - COUNT( * ), + - 32 DIV - + AVG ( + 67 ) ) AS col0
----
1755

skipif mysql # not compatible
query I rowsort label-2404
SELECT + 65 * + COALESCE ( + 27, + - COUNT ( * ), + - 32 / - + AVG ( + 67 ) ) AS col0
----
1755

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

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

query I rowsort
SELECT ALL + 36 * ( 83 ) - 11 + - 46 - - 79 AS col2
----
3010

query II rowsort
SELECT DISTINCT + 64 * + 43 AS col2, 97 - - 5 * + 43 AS col0
----
2752
312

query I rowsort
SELECT + 71 - - - 33 - - 77
----
115

query I rowsort
SELECT + 30 * + + 93 AS col1
----
2790

onlyif mysql # DIV for integer division: 
query I rowsort label-2410
SELECT DISTINCT + 2 DIV + 6 + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT + 2 / + 6 + - 8
----
-8

query I rowsort
SELECT + 22 * + + 49
----
1078

query II rowsort
SELECT - + 53 + + 19 AS col2, + 1
----
-34
1

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

query I rowsort
SELECT DISTINCT + 42 * - 65 AS col0
----
-2730

query II rowsort
SELECT + ( 16 ) col2, + 2 + + 44
----
16
46

query I rowsort
SELECT ALL + + NULLIF ( + + 46, 22 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2417
SELECT + - CAST( - - ( + COUNT( + 4 ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2417
SELECT + - CAST ( - - ( + COUNT ( + 4 ) ) AS INTEGER )
----
-1

query I rowsort
SELECT + - 28 + - 17 * - 22
----
346

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT + 52 + + 42 DIV - - 80 - + 15
----
37

skipif mysql # not compatible
query I rowsort label-2420
SELECT + 52 + + 42 / - - 80 - + 15
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT + - SUM( - - 38 ) + - - 24
----
-14

skipif mysql # not compatible
query I rowsort label-2421
SELECT + - SUM ( - - 38 ) + - - 24
----
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT + + 1 + NULLIF ( + - COUNT( * ), - 72 * + - 6 ) + + 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2423
SELECT + + 1 + NULLIF ( + - COUNT ( * ), - 72 * + - 6 ) + + 49 AS col2
----
49

query I rowsort
SELECT ALL - 22 + - - 52 col2
----
30

query I rowsort
SELECT DISTINCT + 67 + + - 39 AS col1
----
28

query I rowsort
SELECT ALL + 13 + 25 * - 55 * + - 93
----
127888

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

query I rowsort
SELECT ALL - 49 + + ( 17 ) + + 33
----
1

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

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

query II rowsort
SELECT DISTINCT 67 + 80 * + 11 + - 75, - 36 AS col2
----
872
-36

query I rowsort
SELECT ALL - 50 + - 46 AS col2
----
-96

query I rowsort
SELECT + 8 * + 7 AS col2
----
56

query II rowsort
SELECT 93 col1, 82
----
93
82

query II rowsort
SELECT 28 AS col0, - 22 * - 47 - + 62 AS col1
----
28
972

query I rowsort
SELECT ALL CASE + 26 WHEN 64 + + + 3 THEN 40 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2436
SELECT - 60 DIV + 14
----
-4

skipif mysql # not compatible
query I rowsort label-2436
SELECT - 60 / + 14
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2437
SELECT - 66 DIV + MIN( ALL 85 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT - 66 / + MIN ( ALL 85 ) col0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT DISTINCT - NULLIF ( - COALESCE ( 67, CAST( NULL AS SIGNED ), 42 ), - 9 ) - 89 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT - NULLIF ( - COALESCE ( 67, CAST ( NULL AS INTEGER ), 42 ), - 9 ) - 89 AS col1
----
-22

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

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

query I rowsort
SELECT ALL - 87 - - + 67 AS col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT DISTINCT + CAST( - 53 AS SIGNED ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT + CAST ( - 53 AS INTEGER ) AS col2
----
-53

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT DISTINCT + 15 DIV - - 89 - + 44 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT + 15 / - - 89 - + 44 AS col0
----
-44

query I rowsort
SELECT - 60 * + 21 + 31 + - + 32 + + 63 col2
----
-1198

query I rowsort
SELECT 93 * - 40 + - 46 - 58 AS col2
----
-3824

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT + + 18 * MAX( - 11 ) AS col1
----
-198

skipif mysql # not compatible
query I rowsort label-2448
SELECT + + 18 * MAX ( - 11 ) AS col1
----
-198

query I rowsort
SELECT ALL - - 19 * - - 3
----
57

query I rowsort
SELECT ( 31 ) AS col0
----
31

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT + 43 + ( - NULLIF ( + CAST( - 63 AS SIGNED ), 6 ) ) + - - 65 AS col1
----
171

skipif mysql # not compatible
query I rowsort label-2452
SELECT + 43 + ( - NULLIF ( + CAST ( - 63 AS INTEGER ), 6 ) ) + - - 65 AS col1
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2453
SELECT ALL - + COUNT( * ) * COUNT( * ) + + 97 * - + CASE - + 57 WHEN - - 36 - CAST( + COUNT( * ) AS DECIMAL ) THEN NULL WHEN 55 * + CAST( - COUNT( * ) AS SIGNED ) * - + 72 + - COUNT( * ) THEN 66 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - + COUNT ( * ) * COUNT ( * ) + + 97 * - + CASE - + 57 WHEN - - 36 - CAST ( + COUNT ( * ) AS REAL ) THEN NULL WHEN 55 * + CAST ( - COUNT ( * ) AS INTEGER ) * - + 72 + - COUNT ( * ) THEN 66 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2454
SELECT + - 77 AS col0, 47 + - 15 * - + CAST( NULL AS SIGNED ) * 19 * - ( - COALESCE ( 56, - 32 * 38, + CAST( NULL AS SIGNED ) * + AVG ( - 53 ) * - - COUNT( * ) / + 31 - - - 11 * + 63, + 7 ) )
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-2454
SELECT + - 77 AS col0, 47 + - 15 * - + CAST ( NULL AS INTEGER ) * 19 * - ( - COALESCE ( 56, - 32 * 38, + CAST ( NULL AS INTEGER ) * + AVG ( - 53 ) * - - COUNT ( * ) / + 31 - - - 11 * + 63, + 7 ) )
----
-77
NULL

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

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

query I rowsort
SELECT + - 91 * 15 col2
----
-1365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT CAST( + AVG ( ALL - 7 ) AS SIGNED ) col2
----
-7

skipif mysql # not compatible
query I rowsort label-2457
SELECT CAST ( + AVG ( ALL - 7 ) AS INTEGER ) col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2458
SELECT + + CAST( NULL AS SIGNED ), + 42 - - - 81 * - 45 AS col0
----
NULL
3687

skipif mysql # not compatible
query II rowsort label-2458
SELECT + + CAST ( NULL AS INTEGER ), + 42 - - - 81 * - 45 AS col0
----
NULL
3687

query I rowsort
SELECT ALL 52 * + 64 + 97 * - 77 + 71
----
-4070

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT - - NULLIF ( + + 9, - 71 ) DIV - + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2460
SELECT - - NULLIF ( + + 9, - 71 ) / - + 94 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2461
SELECT + CAST( NULL AS SIGNED ) * + - NULLIF ( 20, - CASE - 17 WHEN - - CASE + NULLIF ( - - 85, + CAST( + - 25 AS SIGNED ) * - CAST( - 44 AS DECIMAL ) + 66 * - 9 ) WHEN + 85 THEN - + ( - 96 ) / + 89 + + + 96 * - - 30 * 26 * 90 ELSE NULL END THEN NULL WHEN - - 1 + + - COUNT( * ) - + + 15 THEN - 76 ELSE NULL END * - - 75 + 49 + + 95 ) * - ( + 30 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT + CAST ( NULL AS INTEGER ) * + - NULLIF ( 20, - CASE - 17 WHEN - - CASE + NULLIF ( - - 85, + CAST ( + - 25 AS INTEGER ) * - CAST ( - 44 AS REAL ) + 66 * - 9 ) WHEN + 85 THEN - + ( - 96 ) / + 89 + + + 96 * - - 30 * 26 * 90 ELSE NULL END THEN NULL WHEN - - 1 + + - COUNT ( * ) - + + 15 THEN - 76 ELSE NULL END * - - 75 + 49 + + 95 ) * - ( + 30 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT ALL 20 * 78 * + COUNT( 91 ) * 80 + + 86 * - - 29 col1
----
127294

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL 20 * 78 * + COUNT ( 91 ) * 80 + + 86 * - - 29 col1
----
127294

query I rowsort
SELECT ALL 14 + + 3 + 35 AS col0
----
52

query I rowsort
SELECT ALL 26 * + 14
----
364

query I rowsort
SELECT 75 + - - 11
----
86

query I rowsort
SELECT ALL 48 * 58 * 56 AS col0
----
155904

query II rowsort
SELECT DISTINCT - ( 11 ) * 88 * + 77 * 83, 33 + 21 + - 69 AS col2
----
-6186488
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2468
SELECT ALL - 92 * - COUNT( * ), + 73 AS col0
----
92
73

skipif mysql # not compatible
query II rowsort label-2468
SELECT ALL - 92 * - COUNT ( * ), + 73 AS col0
----
92
73

query I rowsort
SELECT 19 + + + 23
----
42

query I rowsort
SELECT 26 * + NULLIF ( - 53, + 30 ) col0
----
-1378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2471
SELECT 29 + + COUNT( * ) DIV + 90
----
29

skipif mysql # not compatible
query I rowsort label-2471
SELECT 29 + + COUNT ( * ) / + 90
----
29

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

skipif mysql # not compatible
query I rowsort label-2472
SELECT CAST ( NULL AS INTEGER ) * - 4 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2473
SELECT 36 DIV 25 + - 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2473
SELECT 36 / 25 + - 93 AS col0
----
-92

query I rowsort
SELECT 23 * + 51 AS col2
----
1173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2475
SELECT + 48 + - CASE + - COUNT( * ) WHEN - 11 THEN AVG ( 68 ) WHEN CAST( NULL AS SIGNED ) * COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT + 48 + - CASE + - COUNT ( * ) WHEN - 11 THEN AVG ( 68 ) WHEN CAST ( NULL AS INTEGER ) * COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT NULLIF ( + + ( - 6 ), - + 75 / - 39 ) + - 95 - - SUM( DISTINCT + 91 ) + - + 70 * 42
----
-2950

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT NULLIF ( + + ( - 6 ), - + 75 / - 39 ) + - 95 - - SUM ( DISTINCT + 91 ) + - + 70 * 42
----
-2950

query I rowsort
SELECT ALL - 1 + + 37 - + 15
----
21

query I rowsort
SELECT 92 * + - ( 28 ) + + 30
----
-2546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2479
SELECT ALL - 90 + - 21 + 61 DIV + CAST( MAX( DISTINCT - + 86 ) AS SIGNED ) + + + COUNT( ALL + ( + - 52 ) ) * 48 DIV 95
----
-111

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL - 90 + - 21 + 61 / + CAST ( MAX ( DISTINCT - + 86 ) AS INTEGER ) + + + COUNT ( ALL + ( + - 52 ) ) * 48 / 95
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2480
SELECT + CAST( + 90 AS SIGNED ), - 64 AS col2
----
90
-64

skipif mysql # not compatible
query II rowsort label-2480
SELECT + CAST ( + 90 AS INTEGER ), - 64 AS col2
----
90
-64

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2482
SELECT COALESCE ( + COUNT( * ), - 1 ) * CASE + 25 WHEN + 68 THEN - - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + + 89 WHEN COUNT( * ) THEN NULL END + 55 + - 7 + 46 + 96 * 30 * - 43 * - - MIN( - 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT COALESCE ( + COUNT ( * ), - 1 ) * CASE + 25 WHEN + 68 THEN - - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 89 WHEN COUNT ( * ) THEN NULL END + 55 + - 7 + 46 + 96 * 30 * - 43 * - - MIN ( - 87 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2483
SELECT 15 - + - NULLIF ( + - CAST( NULL AS SIGNED ), - 45 ) + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT 15 - + - NULLIF ( + - CAST ( NULL AS INTEGER ), - 45 ) + 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2484
SELECT + + ( - COUNT( * ) ) AS col1, 40 * - 96 - - - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2484
SELECT + + ( - COUNT ( * ) ) AS col1, 40 * - 96 - - - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2485
SELECT + NULLIF ( - 50, + CAST( - + COUNT( * ) AS DECIMAL ) ) * MIN( ALL - 59 ) * 62 * + AVG ( + 74 ) * ( CASE 4 WHEN + 66 + 61 + - CASE ( - 74 ) WHEN - 31 THEN - 38 ELSE ( + 98 ) END THEN - 0 END ) + + COUNT( * ) + ( 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT + NULLIF ( - 50, + CAST ( - + COUNT ( * ) AS REAL ) ) * MIN ( ALL - 59 ) * 62 * + AVG ( + 74 ) * ( CASE 4 WHEN + 66 + 61 + - CASE ( - 74 ) WHEN - 31 THEN - 38 ELSE ( + 98 ) END THEN - 0 END ) + + COUNT ( * ) + ( 53 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT ALL 14 DIV 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL 14 / 60 AS col2
----
0

query I rowsort
SELECT 85 + + 88
----
173

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT DISTINCT COUNT( * ) - + - 14 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT COUNT ( * ) - + - 14 AS col0
----
15

query II rowsort
SELECT ALL 15 AS col1, + 70 AS col2
----
15
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT DISTINCT 7 * 44 * + + COUNT( * ) * 38 AS col2
----
11704

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT 7 * 44 * + + COUNT ( * ) * 38 AS col2
----
11704

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

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

query I rowsort
SELECT DISTINCT 71 * + 54 AS col2
----
3834

onlyif mysql # aggregate syntax: 
query II rowsort label-2494
SELECT - 34, - NULLIF ( - 72, + 49 - - + COUNT( * ) + + - COUNT( * ) ) * + - 59 - - 46 + + + COUNT( * ) AS col1
----
-34
-4201

skipif mysql # not compatible
query II rowsort label-2494
SELECT - 34, - NULLIF ( - 72, + 49 - - + COUNT ( * ) + + - COUNT ( * ) ) * + - 59 - - 46 + + + COUNT ( * ) AS col1
----
-34
-4201

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2495
SELECT 0 * + - ( + 29 ) AS col0, 34 DIV + 96 * - + 79 * - + MIN( + 60 ) * 13 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-2495
SELECT 0 * + - ( + 29 ) AS col0, 34 / + 96 * - + 79 * - + MIN ( + 60 ) * 13 AS col1
----
0
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT DISTINCT 93 * - CASE ( - MIN( ALL - 35 ) ) WHEN AVG ( DISTINCT 61 ) THEN + 15 - + 62 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT 93 * - CASE ( - MIN ( ALL - 35 ) ) WHEN AVG ( DISTINCT 61 ) THEN + 15 - + 62 END AS col1
----
NULL

query I rowsort
SELECT ALL 52 + ( 77 ) AS col1
----
129

query I rowsort
SELECT 41 + ( 12 ) * 60
----
761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2501
SELECT ALL 95 * - 52 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL 95 * - 52 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT CASE 44 WHEN - 52 + 46 THEN NULL WHEN - 58 THEN NULL ELSE - 85 END + + 76 DIV 42 col1
----
-84

skipif mysql # not compatible
query I rowsort label-2502
SELECT CASE 44 WHEN - 52 + 46 THEN NULL WHEN - 58 THEN NULL ELSE - 85 END + + 76 / 42 col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT DISTINCT + 44 * NULLIF ( 54 * SUM( + 21 * ( 39 ) ), + 73 ) AS col1
----
1945944

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT + 44 * NULLIF ( 54 * SUM ( + 21 * ( 39 ) ), + 73 ) AS col1
----
1945944

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT SUM( ( 22 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-2505
SELECT SUM ( ( 22 ) ) AS col0
----
22

query I rowsort
SELECT + 68 col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT ALL COALESCE ( 98, + 3 ) * 74 + COUNT( * ) AS col0
----
7253

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL COALESCE ( 98, + 3 ) * 74 + COUNT ( * ) AS col0
----
7253

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT COALESCE ( + 86, MAX( DISTINCT - 77 ) ) * + 51 AS col0
----
4386

skipif mysql # not compatible
query I rowsort label-2508
SELECT COALESCE ( + 86, MAX ( DISTINCT - 77 ) ) * + 51 AS col0
----
4386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2509
SELECT + 56 * 58 + + CAST( ( + ( 65 ) ) AS SIGNED ) AS col2
----
3313

skipif mysql # not compatible
query I rowsort label-2509
SELECT + 56 * 58 + + CAST ( ( + ( 65 ) ) AS INTEGER ) AS col2
----
3313

query I rowsort
SELECT 50 * + 86 col2
----
4300

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT ( + 57 ) DIV + 97 + 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2511
SELECT ( + 57 ) / + 97 + 53 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL - NULLIF ( 13, COUNT( * ) )
----
-13

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - NULLIF ( 13, COUNT ( * ) )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2513
SELECT + CASE COALESCE ( + 3, - 19 ) WHEN + 52 * + 95 THEN NULL WHEN + CAST( - 66 AS SIGNED ) THEN - AVG ( ALL + 10 ) WHEN 18 / + COALESCE ( - 5 * MIN( - 67 ), 37 ) THEN - ( + 67 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT + CASE COALESCE ( + 3, - 19 ) WHEN + 52 * + 95 THEN NULL WHEN + CAST ( - 66 AS INTEGER ) THEN - AVG ( ALL + 10 ) WHEN 18 / + COALESCE ( - 5 * MIN ( - 67 ), 37 ) THEN - ( + 67 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL + COUNT( * ) * - 5 + ( 9 ) * 37
----
328

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL + COUNT ( * ) * - 5 + ( 9 ) * 37
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT DISTINCT + ( - MIN( 53 ) ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT + ( - MIN ( 53 ) ) col1
----
-53

query I rowsort
SELECT ALL 87 * + 72 + + NULLIF ( - 32, 72 + 53 ) * 81
----
3672

query I rowsort
SELECT - 44 * 9 AS col2
----
-396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2518
SELECT ALL + CAST( COALESCE ( + 2, - MAX( ALL - 42 ) / 43 ) AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + CAST ( COALESCE ( + 2, - MAX ( ALL - 42 ) / 43 ) AS INTEGER ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT + 37 * COUNT( * ) - 32
----
5

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT + 37 * COUNT ( * ) - 32
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2520
SELECT ALL + CAST( 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL + CAST ( 61 AS INTEGER )
----
61

query I rowsort
SELECT - 14 * - 30 col1
----
420

query I rowsort
SELECT - 85 - - ( 82 )
----
-3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT + 46 * - SUM( 20 * 97 ) AS col0
----
-89240

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT + 46 * - SUM ( 20 * 97 ) AS col0
----
-89240

query I rowsort
SELECT - 13 * + 14 AS col1
----
-182

query I rowsort
SELECT ALL + 19 * 93
----
1767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2528
SELECT DISTINCT ( - COUNT( - 55 ) ) DIV + 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT ( - COUNT ( - 55 ) ) / + 47 AS col2
----
0

query I rowsort
SELECT DISTINCT CASE 47 WHEN 28 THEN + 51 * 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT DISTINCT COALESCE ( COUNT( * ), + 15, COUNT( * ) - MAX( DISTINCT - 20 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT COALESCE ( COUNT ( * ), + 15, COUNT ( * ) - MAX ( DISTINCT - 20 ) ) col1
----
1

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

skipif mysql # not compatible
query I rowsort label-2531
SELECT + COUNT ( * ) / COUNT ( * ) col2
----
1

query I rowsort
SELECT - 71 + 17 * 35
----
524

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2534
SELECT ALL CAST( 84 AS SIGNED ) * - 4
----
-336

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL CAST ( 84 AS INTEGER ) * - 4
----
-336

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

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

query I rowsort
SELECT ALL - 29 + - 45 col1
----
-74

query I rowsort
SELECT - COALESCE ( 56, - ( 17 ) + + ( + 86 ) ) AS col2
----
-56

query I rowsort
SELECT ALL 79 + 91
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2539
SELECT ALL + CASE MAX( - 14 ) WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 26 END + + 75 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + CASE MAX ( - 14 ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 26 END + + 75 AS col2
----
101

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT + 66 + 5 * COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2541
SELECT + 66 + 5 * COUNT ( * ) AS col1
----
71

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

query I rowsort
SELECT ALL + 73 + 48
----
121

query I rowsort
SELECT - + 93 - 2 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT - 33 * CASE 40 + - COUNT( * ) WHEN 21 THEN NULL ELSE 98 END
----
-3234

skipif mysql # not compatible
query I rowsort label-2545
SELECT - 33 * CASE 40 + - COUNT ( * ) WHEN 21 THEN NULL ELSE 98 END
----
-3234

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

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

query I rowsort
SELECT + - 12 * 36 AS col2
----
-432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2548
SELECT DISTINCT - NULLIF ( 85, - COUNT( * ) ) / + 24 - CAST( NULL AS SIGNED ) / 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT - NULLIF ( 85, - COUNT ( * ) ) / + 24 - CAST ( NULL AS INTEGER ) / 14 AS col2
----
NULL

query I rowsort
SELECT ALL 8 * - 11 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT + MIN( - 57 ) - + 89 * 91
----
-8156

skipif mysql # not compatible
query I rowsort label-2550
SELECT + MIN ( - 57 ) - + 89 * 91
----
-8156

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT DISTINCT + 43 * 64 - + COUNT( * ) * 92
----
2660

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT + 43 * 64 - + COUNT ( * ) * 92
----
2660

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

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

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

query I rowsort
SELECT + + 91 + - 62
----
29

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2558
SELECT - 91 - - 93 DIV MAX( + 88 )
----
-90

skipif mysql # not compatible
query I rowsort label-2558
SELECT - 91 - - 93 / MAX ( + 88 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT DISTINCT 97 * + MIN( 96 ) AS col0
----
9312

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT 97 * + MIN ( 96 ) AS col0
----
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT CASE - - 14 WHEN 48 THEN - 69 WHEN - MIN( DISTINCT 86 ) THEN NULL ELSE NULL END * 41 + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT CASE - - 14 WHEN 48 THEN - 69 WHEN - MIN ( DISTINCT 86 ) THEN NULL ELSE NULL END * 41 + 50 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT + 79 DIV - 31 col0
----
-2

skipif mysql # not compatible
query I rowsort label-2562
SELECT + 79 / - 31 col0
----
-2

query I rowsort
SELECT ALL 43 * + - 46 * 26 AS col2
----
-51428

query I rowsort
SELECT + 55 * - 26 * + 96 AS col0
----
-137280

query I rowsort
SELECT - 31 + + 79
----
48

query I rowsort
SELECT - 32 * - 31 + - ( - 83 )
----
1075

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL + 87 * + + 31 * COUNT( * )
----
2697

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL + 87 * + + 31 * COUNT ( * )
----
2697

query I rowsort
SELECT - 25 * + 44
----
-1100

query I rowsort
SELECT DISTINCT - 89 * - 61 + 85 * + 75
----
11804

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT MAX( - + 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-2570
SELECT MAX ( - + 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT - MAX( - ( - ( NULLIF ( 44, 76 + - 28 ) ) ) ) + 9
----
-35

skipif mysql # not compatible
query I rowsort label-2571
SELECT - MAX ( - ( - ( NULLIF ( 44, 76 + - 28 ) ) ) ) + 9
----
-35

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

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

query I rowsort
SELECT ALL + ( 99 ) * 40
----
3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT - 89 * - + CAST( + 10 AS SIGNED ) AS col2
----
890

skipif mysql # not compatible
query I rowsort label-2574
SELECT - 89 * - + CAST ( + 10 AS INTEGER ) AS col2
----
890

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - 53 + + 66 - 94 * COUNT( * ) * 81
----
-7601

skipif mysql # not compatible
query I rowsort label-2575
SELECT - 53 + + 66 - 94 * COUNT ( * ) * 81
----
-7601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2576
SELECT DISTINCT - CASE + COALESCE ( - 8, - CAST( 79 AS SIGNED ), - SUM( + ( + 68 ) ) + 36, + 69 + + CAST( 86 + + CAST( NULL AS SIGNED ) * + 62 AS SIGNED ) ) WHEN 44 THEN COUNT( * ) + - COALESCE ( - COUNT( * ) - 5, 11 * - 45 ) * COUNT( * ) END * 20 + 87 / 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT - CASE + COALESCE ( - 8, - CAST ( 79 AS INTEGER ), - SUM ( + ( + 68 ) ) + 36, + 69 + + CAST ( 86 + + CAST ( NULL AS INTEGER ) * + 62 AS INTEGER ) ) WHEN 44 THEN COUNT ( * ) + - COALESCE ( - COUNT ( * ) - 5, 11 * - 45 ) * COUNT ( * ) END * 20 + 87 / 61
----
NULL

query I rowsort
SELECT - 24 * - 92
----
2208

query I rowsort
SELECT ALL - 98 + 96
----
-2

query I rowsort
SELECT DISTINCT - COALESCE ( - 57, 93 * + 72 ) AS col0
----
57

query I rowsort
SELECT DISTINCT + - 18 * - 12
----
216

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

query I rowsort
SELECT ALL - 2 + + + 95 AS col2
----
93

query I rowsort
SELECT CASE 43 WHEN 57 + 35 THEN NULL WHEN + 28 + - 52 THEN + 68 * 99 ELSE 11 END
----
11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT DISTINCT - COUNT( * ) * 97 - + 94 AS col1
----
-191

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT - COUNT ( * ) * 97 - + 94 AS col1
----
-191

query I rowsort
SELECT ALL 79 - + 81 * + 77 AS col2
----
-6158

query I rowsort
SELECT - 53 * - 37 * 25
----
49025

query I rowsort
SELECT ALL + 17 * 6
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT + + CASE - - MAX( 89 ) WHEN - 60 THEN NULL ELSE + 86 END AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2590
SELECT + + CASE - - MAX ( 89 ) WHEN - 60 THEN NULL ELSE + 86 END AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT - COUNT( * ) * - 58 + 60 col2
----
118

skipif mysql # not compatible
query I rowsort label-2591
SELECT - COUNT ( * ) * - 58 + 60 col2
----
118

query I rowsort
SELECT + NULLIF ( - 66, + 71 )
----
-66

query I rowsort
SELECT 41 * 17 AS col1
----
697

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT - 96 * + + CASE WHEN NOT NULL >= NULL THEN 55 WHEN NOT 26 * + AVG ( ALL - 31 * 81 ) BETWEEN ( NULL ) AND CASE + 9 WHEN COUNT( * ) * + COALESCE ( - 67, + 92 ) + - 95 THEN NULL WHEN 96 THEN - 33 WHEN 87 + 73 * + 41 THEN NULL ELSE - 44 END + + 61 THEN 10 END + COUNT( * ) * - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT - 96 * + + CASE WHEN NOT NULL >= NULL THEN 55 WHEN NOT 26 * + AVG ( ALL - 31 * 81 ) BETWEEN ( NULL ) AND CASE + 9 WHEN COUNT ( * ) * + COALESCE ( - 67, + 92 ) + - 95 THEN NULL WHEN 96 THEN - 33 WHEN 87 + 73 * + 41 THEN NULL ELSE - 44 END + + 61 THEN 10 END + COUNT ( * ) * - 88 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT CASE 9 WHEN - 55 THEN - CAST( NULL AS SIGNED ) ELSE NULL END * - 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT CASE 9 WHEN - 55 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END * - 61 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2598
SELECT ALL 49 DIV - 46
----
-1

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL 49 / - 46
----
-1

query I rowsort
SELECT DISTINCT 84 * - + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2600
SELECT ALL 96 DIV 91 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL 96 / 91 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT DISTINCT MIN( + 54 ) + - 22 + 78 * - ( COUNT( * ) ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT MIN ( + 54 ) + - 22 + 78 * - ( COUNT ( * ) ) AS col0
----
-46

query II rowsort
SELECT + 64, 6 AS col0
----
64
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT 39 DIV - + 28 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2603
SELECT 39 / - + 28 AS col1
----
-1

query I rowsort
SELECT DISTINCT 12 * + - 62
----
-744

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT 29 DIV - ( + 88 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2605
SELECT 29 / - ( + 88 ) col2
----
0

query I rowsort
SELECT ALL - 29 + 46
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT COUNT( * ) * 73 * + 34
----
2482

skipif mysql # not compatible
query I rowsort label-2607
SELECT COUNT ( * ) * 73 * + 34
----
2482

query I rowsort
SELECT - 52 * 97 - - + 6
----
-5038

query II rowsort
SELECT DISTINCT 40 AS col0, 72 AS col1
----
40
72

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

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

query II rowsort
SELECT 83 col1, + 47 * + 66 col2
----
83
3102

query I rowsort
SELECT - CASE + - 59 WHEN - + 56 + 68 THEN + AVG ( ALL ( 0 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2613
SELECT 28 * + 63 * - - 2 + MAX( - 21 - 38 DIV + 2 ) AS col0
----
3488

skipif mysql # not compatible
query I rowsort label-2613
SELECT 28 * + 63 * - - 2 + MAX ( - 21 - 38 / + 2 ) AS col0
----
3488

query I rowsort
SELECT ALL - 73 + + 17 + - 80 * - ( - ( - NULLIF ( ( - 3 ), 47 - - 85 * + 3 ) ) )
----
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT 15 * + 96 + COUNT( * ) * 43
----
1483

skipif mysql # not compatible
query I rowsort label-2615
SELECT 15 * + 96 + COUNT ( * ) * 43
----
1483

onlyif mysql # aggregate syntax: 
query II rowsort label-2616
SELECT - - 5 col0, SUM( ( + 24 ) )
----
5
24

skipif mysql # not compatible
query II rowsort label-2616
SELECT - - 5 col0, SUM ( ( + 24 ) )
----
5
24

query I rowsort
SELECT 7 + + + COALESCE ( - 79, - 15 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT DISTINCT - CASE - - 7 WHEN 69 + + 35 THEN NULL WHEN + 3 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT - CASE - - 7 WHEN 69 + + 35 THEN NULL WHEN + 3 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT ALL - - ( + 79 ) * ( SUM( ALL 3 ) ) - 87 AS col1
----
150

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL - - ( + 79 ) * ( SUM ( ALL 3 ) ) - 87 AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL + 32 - ( SUM( 26 ) ) + 46 * 42
----
1938

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL + 32 - ( SUM ( 26 ) ) + 46 * 42
----
1938

query I rowsort
SELECT ALL NULLIF ( + 86, - - 69 / + 49 ) AS col0
----
86

query I rowsort
SELECT + 51 * + 55 + 43 + + 85 * 19 col1
----
4463

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT - CASE - COUNT( * ) WHEN - 77 THEN NULL ELSE 43 * - 78 END
----
3354

skipif mysql # not compatible
query I rowsort label-2624
SELECT - CASE - COUNT ( * ) WHEN - 77 THEN NULL ELSE 43 * - 78 END
----
3354

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

skipif mysql # not compatible
query I rowsort label-2625
SELECT 77 + - MIN ( 31 ) * - 66 AS col0
----
2123

query II rowsort
SELECT + 38 AS col2, 68 AS col2
----
38
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT 95 - + - SUM( DISTINCT - + 78 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2627
SELECT 95 - + - SUM ( DISTINCT - + 78 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT - 26 + + MAX( 10 ) * 13
----
104

skipif mysql # not compatible
query I rowsort label-2628
SELECT - 26 + + MAX ( 10 ) * 13
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2629
SELECT - 1 * 33 - + 86 + - SUM( ALL + 45 + - 5 ) * 5 * CAST( + COUNT( * ) - 19 AS SIGNED ) AS col2
----
3481

skipif mysql # not compatible
query I rowsort label-2629
SELECT - 1 * 33 - + 86 + - SUM ( ALL + 45 + - 5 ) * 5 * CAST ( + COUNT ( * ) - 19 AS INTEGER ) AS col2
----
3481

query II rowsort
SELECT DISTINCT - + 19 AS col2, ( 11 )
----
-19
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL - SUM( + 98 ) * - 51 - ( + COUNT( * ) ) * - 22
----
5020

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL - SUM ( + 98 ) * - 51 - ( + COUNT ( * ) ) * - 22
----
5020

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT 1 - + - COUNT( DISTINCT - COALESCE ( - 90, - 93 * 4 + 98 ) ) + 10 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2632
SELECT 1 - + - COUNT ( DISTINCT - COALESCE ( - 90, - 93 * 4 + 98 ) ) + 10 AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2633
SELECT DISTINCT - 87 DIV + CASE - COUNT( * ) WHEN + 83 THEN NULL WHEN 76 * + 5 THEN NULL ELSE - ( + ( + 53 ) ) DIV - 25 END AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT - 87 / + CASE - COUNT ( * ) WHEN + 83 THEN NULL WHEN 76 * + 5 THEN NULL ELSE - ( + ( + 53 ) ) / - 25 END AS col1
----
-43

query I rowsort
SELECT - 80 * + 84 - - - 99
----
-6819

query I rowsort
SELECT DISTINCT 43 * - + 86 col0
----
-3698

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT ALL + 60 + + 78 DIV 53 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL + 60 + + 78 / 53 AS col0
----
61

query I rowsort
SELECT 94 * + - 35 col1
----
-3290

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

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

query I rowsort
SELECT DISTINCT - 88 * + 63 * - - 66
----
-365904

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT - ( + COUNT( * ) ) * + - 14 + 82 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2640
SELECT - ( + COUNT ( * ) ) * + - 14 + 82 AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT COALESCE ( + ( + 53 ), - ( 24 ) ) - + CAST( 84 AS SIGNED ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-2641
SELECT COALESCE ( + ( + 53 ), - ( 24 ) ) - + CAST ( 84 AS INTEGER ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT 33 * COUNT( * ) + - 17
----
16

skipif mysql # not compatible
query I rowsort label-2642
SELECT 33 * COUNT ( * ) + - 17
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT MIN( - - 38 ) * - 71 - + 84
----
-2782

skipif mysql # not compatible
query I rowsort label-2643
SELECT MIN ( - - 38 ) * - 71 - + 84
----
-2782

query I rowsort
SELECT DISTINCT - 61 col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2645
SELECT DISTINCT 95 DIV - CAST( - - COALESCE ( + 19, CASE - 49 WHEN COUNT( * ) * 62 THEN + 76 + 19 END * - ( - 82 ) ) AS SIGNED ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT 95 / - CAST ( - - COALESCE ( + 19, CASE - 49 WHEN COUNT ( * ) * 62 THEN + 76 + 19 END * - ( - 82 ) ) AS INTEGER ) AS col0
----
-5

query I rowsort
SELECT 45 + + - NULLIF ( 26, - 82 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT DISTINCT COUNT( * ) + 66 - - + 50
----
117

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT COUNT ( * ) + 66 - - + 50
----
117

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

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

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

skipif mysql # not compatible
query I rowsort label-2649
SELECT + SUM ( + + 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT SUM( DISTINCT - 35 ) + + 0 + + - 15
----
-50

skipif mysql # not compatible
query I rowsort label-2650
SELECT SUM ( DISTINCT - 35 ) + + 0 + + - 15
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT 35 * + 18 * COUNT( * ) * - 45 AS col2
----
-28350

skipif mysql # not compatible
query I rowsort label-2651
SELECT 35 * + 18 * COUNT ( * ) * - 45 AS col2
----
-28350

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT COUNT( ALL - 90 ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2652
SELECT COUNT ( ALL - 90 ) * - + COUNT ( * )
----
-1

query I rowsort
SELECT ALL 11 * - 1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL 69 - - COUNT( - 14 )
----
70

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL 69 - - COUNT ( - 14 )
----
70

query I rowsort
SELECT DISTINCT 73 * + + 71 AS col1
----
5183

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT ALL - COUNT( * ) * 10 - 54 col2
----
-64

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - COUNT ( * ) * 10 - 54 col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ALL + 61 - - COALESCE ( 12, - 80 * COUNT( * ) ) * 35 AS col1
----
481

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL + 61 - - COALESCE ( 12, - 80 * COUNT ( * ) ) * 35 AS col1
----
481

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT + + 56 * 4 DIV + 99 + + + 13 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2658
SELECT + + 56 * 4 / + 99 + + + 13 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2659
SELECT DISTINCT - COALESCE ( - ( - - COUNT( + CAST( NULL AS SIGNED ) ) ), 31 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT - COALESCE ( - ( - - COUNT ( + CAST ( NULL AS INTEGER ) ) ), 31 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT - + ( - COALESCE ( - - COUNT( * ), + + 56 + ( 73 ) * 32, - MIN( - 39 ) * 10 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2660
SELECT - + ( - COALESCE ( - - COUNT ( * ), + + 56 + ( 73 ) * 32, - MIN ( - 39 ) * 10 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT ALL - CAST( + MAX( - 6 ) AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL - CAST ( + MAX ( - 6 ) AS INTEGER )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT + COUNT( - - 14 ) * + 38
----
38

skipif mysql # not compatible
query I rowsort label-2662
SELECT + COUNT ( - - 14 ) * + 38
----
38

query I rowsort
SELECT + + 4 + 6 + - 62
----
-52

query I rowsort
SELECT DISTINCT - - 21 * 41
----
861

query I rowsort
SELECT DISTINCT 3 * + 61 AS col0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL + 49 + + COUNT( DISTINCT + 7 )
----
50

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + 49 + + COUNT ( DISTINCT + 7 )
----
50

query I rowsort
SELECT ALL - 74 + COALESCE ( - 14, 83 ) AS col0
----
-88

query I rowsort
SELECT DISTINCT + 16 + - + 37
----
-21

query II rowsort
SELECT 11 AS col2, - 82
----
11
-82

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

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

query I rowsort
SELECT - 8 + 1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL - 24 * - 70 + COUNT( ALL + 47 ) col0
----
1681

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL - 24 * - 70 + COUNT ( ALL + 47 ) col0
----
1681

query I rowsort
SELECT + CASE WHEN ( - 97 ) > ( - 90 ) THEN - CASE + 67 WHEN + 49 THEN + 98 - 9 WHEN 89 THEN NULL END * 11 + - 49 * - 51 END AS col0
----
NULL

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

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

query I rowsort
SELECT + 96 * 94
----
9024

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

query I rowsort
SELECT ( - 32 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2678
SELECT COUNT( * ) DIV - CAST( + 1 AS SIGNED ) + - 84
----
-85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT DISTINCT + CASE + 63 WHEN - ( - ( 41 ) ) / + 72 THEN MAX( DISTINCT - 73 ) END / + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT + CASE + 63 WHEN - ( - ( 41 ) ) / + 72 THEN MAX ( DISTINCT - 73 ) END / + 64 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 11 * + 58
----
638

query I rowsort
SELECT COALESCE ( - 3, + + 75 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT DISTINCT + COUNT( * ) * 55 - + CASE - - ( 40 ) WHEN - ( 88 ) * 78 THEN NULL WHEN + 61 + - ( - 55 ) * - 85 THEN 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT + COUNT ( * ) * 55 - + CASE - - ( 40 ) WHEN - ( 88 ) * 78 THEN NULL WHEN + 61 + - ( - 55 ) * - 85 THEN 1 END AS col0
----
NULL

query I rowsort
SELECT ALL 89 * CASE 41 WHEN 85 THEN NULL ELSE + + 38 * + 85 - 22 * + 72 END
----
146494

query I rowsort
SELECT - 94 * 67
----
-6298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2685
SELECT ALL - 81 * + COALESCE ( 27, + CASE - 50 WHEN 3 + - 17 THEN - ( + 93 ) + 25 WHEN 8 THEN NULL WHEN MIN( 70 ) * 13 THEN 15 + + 15 * + 64 END + + ( - NULLIF ( 84, 28 * - MAX( DISTINCT + CAST( - 56 AS SIGNED ) ) ) ) ) - + COUNT( * ) * 3 col2
----
-2190

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL - 81 * + COALESCE ( 27, + CASE - 50 WHEN 3 + - 17 THEN - ( + 93 ) + 25 WHEN 8 THEN NULL WHEN MIN ( 70 ) * 13 THEN 15 + + 15 * + 64 END + + ( - NULLIF ( 84, 28 * - MAX ( DISTINCT + CAST ( - 56 AS INTEGER ) ) ) ) ) - + COUNT ( * ) * 3 col2
----
-2190

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

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

query II rowsort
SELECT - 59 - + + 78 + - + 87 AS col0, 19 col1
----
-224
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2688
SELECT + SUM( ALL CAST( NULL AS SIGNED ) ) * 22 + - - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2688
SELECT + SUM ( ALL CAST ( NULL AS INTEGER ) ) * 22 + - - 3
----
NULL

query II rowsort
SELECT - 43, - 19 + - 87 AS col1
----
-43
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT DISTINCT - - 32 * + - CASE 52 WHEN + 14 + 77 / COUNT( * ) THEN NULL WHEN 25 - + COUNT( * ) THEN + 39 END * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT - - 32 * + - CASE 52 WHEN + 14 + 77 / COUNT ( * ) THEN NULL WHEN 25 - + COUNT ( * ) THEN + 39 END * 97
----
NULL

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

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

query I rowsort
SELECT - - 85 * + - 30 * 99 AS col2
----
-252450

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

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

query I rowsort
SELECT + 33 - - NULLIF ( ( - + 64 ), + 15 + + 20 )
----
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2695
SELECT ALL + 30 DIV CAST( - 64 AS SIGNED ) * + 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL + 30 / CAST ( - 64 AS INTEGER ) * + 37 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL 30 + - - COUNT ( * ) AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2697
SELECT + + 58 / + CAST( NULL AS SIGNED ) * - - 32, ( - 18 ) * - ( - CASE MAX( DISTINCT - 52 ) WHEN - ( COUNT( * ) ) * 33 + 10 THEN - 30 ELSE NULL END * 48 ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2697
SELECT + + 58 / + CAST ( NULL AS INTEGER ) * - - 32, ( - 18 ) * - ( - CASE MAX ( DISTINCT - 52 ) WHEN - ( COUNT ( * ) ) * 33 + 10 THEN - 30 ELSE NULL END * 48 ) AS col2
----
NULL
NULL

query I rowsort
SELECT ALL - 78 + - NULLIF ( + 53, - 47 )
----
-131

onlyif mysql # aggregate syntax: 
query II rowsort label-2699
SELECT ALL + COUNT( * ) + - - 58 + + 60 AS col2, 6 * - 17
----
119
-102

skipif mysql # not compatible
query II rowsort label-2699
SELECT ALL + COUNT ( * ) + - - 58 + + 60 AS col2, 6 * - 17
----
119
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT + CASE 85 WHEN - 1 THEN - + COUNT( * ) ELSE - 44 END
----
-44

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT + CASE 85 WHEN - 1 THEN - + COUNT ( * ) ELSE - 44 END
----
-44

query I rowsort
SELECT + 45 * + + 22
----
990

query I rowsort
SELECT + ( + 5 ) * 99
----
495

query I rowsort
SELECT + 67 + - + 49 + + - 13 AS col1
----
5

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2705
SELECT + 96 - - ( + 93 ) DIV + + 45 * - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-2705
SELECT + 96 - - ( + 93 ) / + + 45 * - COUNT ( * ) AS col2
----
94

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

query II rowsort
SELECT 2 AS col0, + 33 AS col1
----
2
33

query I rowsort
SELECT + 73 + + 49
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT - 78 * + COUNT( * ) * 28
----
-2184

skipif mysql # not compatible
query I rowsort label-2709
SELECT - 78 * + COUNT ( * ) * 28
----
-2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2710
SELECT + 49 + 18 * - CAST( - - 25 AS SIGNED ) AS col2
----
-401

skipif mysql # not compatible
query I rowsort label-2710
SELECT + 49 + 18 * - CAST ( - - 25 AS INTEGER ) AS col2
----
-401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2711
SELECT ALL + 64 DIV - 40 + + 24 - + 61 - 90 + 26 + 53 * - 57 * - SUM( 19 )
----
57297

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL + 64 / - 40 + + 24 - + 61 - 90 + 26 + 53 * - 57 * - SUM ( 19 )
----
57297

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT DISTINCT CASE 86 WHEN + - ( + 6 ) THEN - COUNT( * ) WHEN + 14 THEN 4 END * 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT CASE 86 WHEN + - ( + 6 ) THEN - COUNT ( * ) WHEN + 14 THEN 4 END * 64 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2715
SELECT + ( - 31 ) DIV 92 * + 83 DIV - 31 + 47 + + 65 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-2715
SELECT + ( - 31 ) / 92 * + 83 / - 31 + 47 + + 65 AS col1
----
112

query I rowsort
SELECT + 6 * + 51
----
306

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

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT + AVG ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + 83 + - + 21
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT - ( 73 ) * + 57 * - 48 * + + COUNT( * ) * + 51 - 25 col2
----
10186103

skipif mysql # not compatible
query I rowsort label-2719
SELECT - ( 73 ) * + 57 * - 48 * + + COUNT ( * ) * + 51 - 25 col2
----
10186103

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL + COALESCE ( + - COUNT( * ), 52, - COALESCE ( - + 37, + 82, + 60 + 87 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL + COALESCE ( + - COUNT ( * ), 52, - COALESCE ( - + 37, + 82, + 60 + 87 ) ) col2
----
-1

query I rowsort
SELECT ALL - 35 - + 92 AS col0
----
-127

query I rowsort
SELECT DISTINCT + 81 * - + 71 AS col2
----
-5751

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT ALL 51 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL 51 / + 92
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2724
SELECT DISTINCT - + 55 AS col2, - CASE COALESCE ( 23, 42 * - 28 * COUNT( * ) ) WHEN MAX( - 1 ) THEN NULL ELSE - 28 * + 30 END col1
----
-55
840

skipif mysql # not compatible
query II rowsort label-2724
SELECT DISTINCT - + 55 AS col2, - CASE COALESCE ( 23, 42 * - 28 * COUNT ( * ) ) WHEN MAX ( - 1 ) THEN NULL ELSE - 28 * + 30 END col1
----
-55
840

query II rowsort
SELECT DISTINCT + 3 * - 56, 67 AS col1
----
-168
67

query I rowsort
SELECT - 4 + 79 AS col1
----
75

query I rowsort
SELECT + 75 * + COALESCE ( + 35, - CASE + 29 WHEN - + 99 + - 50 * + 78 THEN + ( + 25 ) END ) + - 33 * + 92 col0
----
-411

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

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT + COUNT ( * ) * 39 AS col0
----
39

query I rowsort
SELECT + CASE - - 62 WHEN + 82 THEN - COALESCE ( - 67, - - 6 + - 23, 87, - ( - CASE - 24 WHEN 2 THEN + 67 WHEN 29 THEN 68 ELSE 33 END ) * - 12 + 80 ) WHEN + 7 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2730
SELECT 93 + - + 46 DIV + + 36
----
92

skipif mysql # not compatible
query I rowsort label-2730
SELECT 93 + - + 46 / + + 36
----
92

query I rowsort
SELECT ALL + ( - 53 ) + - 71 + - 34 AS col1
----
-158

query II rowsort
SELECT DISTINCT + 13 AS col2, - 69 + + - 62 * ( 86 ) * + 9 AS col0
----
13
-48057

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL + COALESCE ( 94, 73 * - - 61 * MIN( - 82 ) ) + 7 * 35 AS col2
----
339

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL + COALESCE ( 94, 73 * - - 61 * MIN ( - 82 ) ) + 7 * 35 AS col2
----
339

query I rowsort
SELECT + 29 + - 54 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT DISTINCT - + 49 + - NULLIF ( 96, 31 * + MIN( DISTINCT + 21 ) * + COUNT( * ) ) * - 66 AS col2
----
6287

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT - + 49 + - NULLIF ( 96, 31 * + MIN ( DISTINCT + 21 ) * + COUNT ( * ) ) * - 66 AS col2
----
6287

query II rowsort
SELECT ALL + 75, 67 AS col1
----
75
67

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

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

query I rowsort
SELECT COALESCE ( + 28, - 88 ) + + 76
----
104

query I rowsort
SELECT ALL - + 74 + 20 - - 68 AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2740
SELECT COUNT( * ) * - 73 AS col0, - 21
----
-73
-21

skipif mysql # not compatible
query II rowsort label-2740
SELECT COUNT ( * ) * - 73 AS col0, - 21
----
-73
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2741
SELECT DISTINCT COUNT( * ) + 38 * CASE + + COALESCE ( ( - 66 ), - + 9 / 84 ) WHEN CAST( NULL AS DECIMAL ) THEN 48 ELSE 48 * + 88 END * 45 + + 86 * 57 AS col0
----
7227943

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT COUNT ( * ) + 38 * CASE + + COALESCE ( ( - 66 ), - + 9 / 84 ) WHEN CAST ( NULL AS REAL ) THEN 48 ELSE 48 * + 88 END * 45 + + 86 * 57 AS col0
----
7227943

query I rowsort
SELECT 13 - + + 3 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT ALL + COUNT( * ) + 5
----
6

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL + COUNT ( * ) + 5
----
6

query II rowsort
SELECT 29 * 78, 14 AS col1
----
2262
14

query I rowsort
SELECT ALL - 38 * - 13 AS col1
----
494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT DISTINCT + ( - 64 ) - - CAST( - 7 AS SIGNED ) * - - 37 + - + 96 AS col2
----
-419

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT + ( - 64 ) - - CAST ( - 7 AS INTEGER ) * - - 37 + - + 96 AS col2
----
-419

onlyif mysql # aggregate syntax: 
query II rowsort label-2747
SELECT DISTINCT - COUNT( * ) * + 4 AS col2, - 0 + + ( + - 21 ) + 98 + - COUNT( * ) * 78
----
-4
-1

skipif mysql # not compatible
query II rowsort label-2747
SELECT DISTINCT - COUNT ( * ) * + 4 AS col2, - 0 + + ( + - 21 ) + 98 + - COUNT ( * ) * 78
----
-4
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT NULLIF ( - 56, - 26 + - 35 - CAST( NULL AS SIGNED ) * - - 94 * CAST( NULL AS SIGNED ) ) + 44
----
-12

skipif mysql # not compatible
query I rowsort label-2748
SELECT NULLIF ( - 56, - 26 + - 35 - CAST ( NULL AS INTEGER ) * - - 94 * CAST ( NULL AS INTEGER ) ) + 44
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2749
SELECT COALESCE ( - - 94, 15 + - 55 ) * 93 * + - CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT COALESCE ( - - 94, 15 + - 55 ) * 93 * + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 83 * 69
----
5727

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

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

query I rowsort
SELECT DISTINCT 76 * - 26 * + 47
----
-92872

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

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL - - COALESCE ( COUNT ( ALL 7 ), - COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL - 63 * 60 col2
----
-3780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2755
SELECT DISTINCT 67 + COUNT( * ) * + 62 DIV + 85 * + 96 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT 67 + COUNT ( * ) * + 62 / + 85 * + 96 AS col2
----
67

query I rowsort
SELECT + - NULLIF ( + 31, - 29 ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2757
SELECT CASE + 10 WHEN 34 - - CASE 66 WHEN + 20 + - - 12 DIV + 42 THEN NULL WHEN + CAST( ( 3 ) AS SIGNED ) THEN - 11 + NULLIF ( 56, 43 + 81 ) END THEN NULL ELSE - 54 END DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2757
SELECT CASE + 10 WHEN 34 - - CASE 66 WHEN + 20 + - - 12 / + 42 THEN NULL WHEN + CAST ( ( 3 ) AS INTEGER ) THEN - 11 + NULLIF ( 56, 43 + 81 ) END THEN NULL ELSE - 54 END / + 99 AS col0
----
0

query I rowsort
SELECT ( + 24 ) * + CASE 17 WHEN - ( - COALESCE ( 88, + 28, 36, 10 ) ) THEN 62 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT ALL - COUNT( * ) + - NULLIF ( + + 75, + 4 * + 53 ) * + - 0
----
-1

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL - COUNT ( * ) + - NULLIF ( + + 75, + 4 * + 53 ) * + - 0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT - 68 - 44 + - 42 + COUNT( * ) AS col2
----
-153

skipif mysql # not compatible
query I rowsort label-2760
SELECT - 68 - 44 + - 42 + COUNT ( * ) AS col2
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2761
SELECT DISTINCT - 11 + + ( - MIN( + CAST( NULL AS SIGNED ) ) ) + + 27 * + - 17 * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT - 11 + + ( - MIN ( + CAST ( NULL AS INTEGER ) ) ) + + 27 * + - 17 * - 75
----
NULL

query I rowsort
SELECT ALL 51 + - + 14 + - 57
----
-20

query I rowsort
SELECT DISTINCT - + 14 + + 55 - 51 - - + 72 * 27 AS col2
----
1934

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT DISTINCT + ( + CASE - 90 WHEN - COUNT( ALL + 74 ) THEN 96 ELSE NULL END ) + + + MIN( + 88 ) * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT + ( + CASE - 90 WHEN - COUNT ( ALL + 74 ) THEN 96 ELSE NULL END ) + + + MIN ( + 88 ) * - 42
----
NULL

query I rowsort
SELECT ALL - 97 + - 33 * + - 3 * - - 35
----
3368

query I rowsort
SELECT + 18 - 25 + + + 18 + + - 39 + + 12 * + - 4 + + + 70 * 30 col0
----
2024

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2767
SELECT ALL - - CAST( NULL AS SIGNED ) * - - 20 + + - 27 AS col2, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-2767
SELECT ALL - - CAST ( NULL AS INTEGER ) * - - 20 + + - 27 AS col2, 60
----
NULL
60

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

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

query I rowsort
SELECT - - 33 AS col0
----
33

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

query I rowsort
SELECT - - 23 AS col1
----
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2773
SELECT ALL + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * + 90 * + 10 * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 90 * + 10 * - 83
----
NULL

query I rowsort
SELECT ALL - 15 - ( 98 ) + 21
----
-92

query I rowsort
SELECT ALL CASE - - ( 80 ) WHEN 81 THEN + + 17 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT SUM( + 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT SUM ( + 23 ) AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2777
SELECT ALL COUNT( * ) AS col1, - COUNT( * ) + + - CAST( + + 57 AS SIGNED )
----
1
-58

skipif mysql # not compatible
query II rowsort label-2777
SELECT ALL COUNT ( * ) AS col1, - COUNT ( * ) + + - CAST ( + + 57 AS INTEGER )
----
1
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2778
SELECT DISTINCT 56, - 98 * - 54 + ( 85 ) DIV - + COUNT( * ) AS col2
----
56
5207

skipif mysql # not compatible
query II rowsort label-2778
SELECT DISTINCT 56, - 98 * - 54 + ( 85 ) / - + COUNT ( * ) AS col2
----
56
5207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2779
SELECT 48 + - - NULLIF ( - NULLIF ( - - 78, - ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) - - ( 16 ) + + 78 ), 32 ) + - 11 * + 37
----
-437

skipif mysql # not compatible
query I rowsort label-2779
SELECT 48 + - - NULLIF ( - NULLIF ( - - 78, - ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) - - ( 16 ) + + 78 ), 32 ) + - 11 * + 37
----
-437

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL COUNT( DISTINCT + 56 )
----
1

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL COUNT ( DISTINCT + 56 )
----
1

query II rowsort
SELECT 19 + + 91 * + - 32, - 48 AS col1
----
-2893
-48

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

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

query I rowsort
SELECT 64 * - 20 * 35 * - 44
----
1971200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2784
SELECT ALL - CAST( NULL AS SIGNED ) * - CAST( 63 AS SIGNED ) * - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL - CAST ( NULL AS INTEGER ) * - CAST ( 63 AS INTEGER ) * - 3 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2785
SELECT - SUM ( 30 )
----
-30

query III rowsort
SELECT ALL 30 * - 25 * 32 AS col0, 70 AS col0, - - 8
----
-24000
70
8

query I rowsort
SELECT - 36 + 50
----
14

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

query I rowsort
SELECT DISTINCT - 90 * 92 AS col0
----
-8280

onlyif mysql # DIV for integer division: 
query I rowsort label-2790
SELECT ALL 17 DIV + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL 17 / + 64 AS col2
----
0

query I rowsort
SELECT ALL + 50 * - + 92 + 74 * ( - 35 ) AS col1
----
-7190

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2794
SELECT + 91 * + ( - 67 ) + + 80 + + 61 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT + 91 * + ( - 67 ) + + 80 + + 61 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT COALESCE ( - - 95, 66, ( - 39 ) * + + 19 ) col0, + 29 + + 47 AS col2
----
95
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL + + MIN( DISTINCT + 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + + MIN ( DISTINCT + 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2797
SELECT DISTINCT - COUNT( * ) * - ( - 74 ) + ( + 34 ) DIV + 37 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT - COUNT ( * ) * - ( - 74 ) + ( + 34 ) / + 37 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT ALL - 14 * - + 69 + 60 + 88 + + + 85 * - COALESCE ( + 42, + + COUNT( * ) ) * - ( 46 )
----
165334

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL - 14 * - + 69 + 60 + 88 + + + 85 * - COALESCE ( + 42, + + COUNT ( * ) ) * - ( 46 )
----
165334

onlyif mysql # aggregate syntax: 
query II rowsort label-2799
SELECT DISTINCT + - 40, COUNT( * ) * + ( - COUNT( * ) ) + + NULLIF ( + 20, + 6 + + COUNT( * ) * 35 ) AS col0
----
-40
19

skipif mysql # not compatible
query II rowsort label-2799
SELECT DISTINCT + - 40, COUNT ( * ) * + ( - COUNT ( * ) ) + + NULLIF ( + 20, + 6 + + COUNT ( * ) * 35 ) AS col0
----
-40
19

query II rowsort
SELECT + 19 AS col0, 48
----
19
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT ALL - 49 * + 5 * CAST( NULL AS SIGNED ) + 80 * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL - 49 * + 5 * CAST ( NULL AS INTEGER ) + 80 * + 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT + + 96 * + 62 + - + 86 DIV + 17 col0
----
5947

skipif mysql # not compatible
query I rowsort label-2802
SELECT + + 96 * + 62 + - + 86 / + 17 col0
----
5947

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

query I rowsort
SELECT + 55 * 22 AS col2
----
1210

query I rowsort
SELECT - - 72 + - 88 + - 49 + - - ( 13 ) AS col2
----
-52

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2807
SELECT + + ( + COALESCE ( + COUNT( * ), + 42 ) ) + + 31 DIV 67
----
1

skipif mysql # not compatible
query I rowsort label-2807
SELECT + + ( + COALESCE ( + COUNT ( * ), + 42 ) ) + + 31 / 67
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2808
SELECT - COUNT( + 5 ) + + 96 + CASE + + 43 WHEN ( - - 19 ) THEN 84 * 39 ELSE 28 END + + NULLIF ( + CAST( NULL AS SIGNED ), - 24 ) * 9 * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT - COUNT ( + 5 ) + + 96 + CASE + + 43 WHEN ( - - 19 ) THEN 84 * 39 ELSE 28 END + + NULLIF ( + CAST ( NULL AS INTEGER ), - 24 ) * 9 * 31
----
NULL

query I rowsort
SELECT + - 69 + - + 61
----
-130

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT ALL CASE - - 15 WHEN 18 THEN NULL WHEN + MAX( + + 90 ) * NULLIF ( - 19, - - 3 ) / - SUM( DISTINCT 69 ) + - 2 - COUNT( * ) THEN + AVG ( ALL 76 ) * 66 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL CASE - - 15 WHEN 18 THEN NULL WHEN + MAX ( + + 90 ) * NULLIF ( - 19, - - 3 ) / - SUM ( DISTINCT 69 ) + - 2 - COUNT ( * ) THEN + AVG ( ALL 76 ) * 66 END AS col2
----
NULL

query I rowsort
SELECT ALL - 84 - 10 * 32
----
-404

onlyif mysql # DIV for integer division: 
query I rowsort label-2814
SELECT - 2 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT - 2 / 90
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2815
SELECT ALL COUNT( * ) DIV 79 * 7 * - + 50, 79 * 14 * - 1 * - COUNT( - 31 ) col0
----
0
1106

skipif mysql # not compatible
query II rowsort label-2815
SELECT ALL COUNT ( * ) / 79 * 7 * - + 50, 79 * 14 * - 1 * - COUNT ( - 31 ) col0
----
0
1106

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT DISTINCT SUM( DISTINCT + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT SUM ( DISTINCT + 60 )
----
60

query I rowsort
SELECT - 78 * + NULLIF ( + - 94, - 5 )
----
7332

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

query I rowsort
SELECT - 96 + + + 15 AS col0
----
-81

query I rowsort
SELECT ALL - 21 * + 35 AS col0
----
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT CASE 25 WHEN + 43 + + + 38 THEN NULL WHEN + ( - - 65 ) THEN - NULLIF ( COALESCE ( + 47, 22, - COALESCE ( + 86, - 95 + 67 * - MIN( - 10 / 59 ) ) - 26 ), 34 ) * - 44 + + 48 WHEN 10 THEN NULL ELSE 29 + 67 * - 72 END
----
-4795

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT CASE 25 WHEN + 43 + + + 38 THEN NULL WHEN + ( - - 65 ) THEN - NULLIF ( COALESCE ( + 47, 22, - COALESCE ( + 86, - 95 + 67 * - MIN ( - 10 / 59 ) ) - 26 ), 34 ) * - 44 + + 48 WHEN 10 THEN NULL ELSE 29 + 67 * - 72 END
----
-4795

query I rowsort
SELECT - 66 + - CASE + + ( + - 13 ) WHEN + 66 THEN + 17 END
----
NULL

query I rowsort
SELECT ALL ( + - 0 ) col1
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2826
SELECT ALL - 76 + + 3 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL - 76 + + 3 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 30 + + 82
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT DISTINCT NULLIF ( - ( 5 ), 83 * COUNT( * ) - + + 53 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT NULLIF ( - ( 5 ), 83 * COUNT ( * ) - + + 53 ) AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT DISTINCT - 94 + + + 88 * + 19 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT - 94 + + + 88 * + 19 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 76 * + 44 AS col0
----
-3344

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2831
SELECT ALL ( - 62 ) / 55 + + 82 * - + NULLIF ( + 61, + 1 ) + 18 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL ( - 62 ) / 55 + + 82 * - + NULLIF ( + 61, + 1 ) + 18 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2832
SELECT + COUNT( ALL - 14 ), 21 - + - 73 + - 87 * - + 69 AS col2
----
1
6097

skipif mysql # not compatible
query II rowsort label-2832
SELECT + COUNT ( ALL - 14 ), 21 - + - 73 + - 87 * - + 69 AS col2
----
1
6097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2833
SELECT - 56 / + + 22 / - - CASE - - 36 WHEN CAST( - 56 AS SIGNED ) + - 38 THEN NULL WHEN + 27 - + AVG ( ALL - 57 ) * - 86 THEN NULL WHEN 25 THEN 48 * - 6 END + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT - 56 / + + 22 / - - CASE - - 36 WHEN CAST ( - 56 AS INTEGER ) + - 38 THEN NULL WHEN + 27 - + AVG ( ALL - 57 ) * - 86 THEN NULL WHEN 25 THEN 48 * - 6 END + 10
----
NULL

query I rowsort
SELECT - 73 * - 5 * + 91
----
33215

query I rowsort
SELECT ALL + 20 * + 29 AS col0
----
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2836
SELECT DISTINCT + 9 * 32 + - + 64 + - CASE - 49 WHEN 77 * + CAST( NULL AS SIGNED ) + + 11 THEN NULL WHEN + - 39 * 97 THEN + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT + 9 * 32 + - + 64 + - CASE - 49 WHEN 77 * + CAST ( NULL AS INTEGER ) + + 11 THEN NULL WHEN + - 39 * 97 THEN + 93 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2837
SELECT + 97 * + 85 + 36 * + + CAST( 78 AS SIGNED ) col1
----
11053

skipif mysql # not compatible
query I rowsort label-2837
SELECT + 97 * + 85 + 36 * + + CAST ( 78 AS INTEGER ) col1
----
11053

query I rowsort
SELECT DISTINCT + - 74
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2839
SELECT - CASE - 78 WHEN + MIN( - - 96 ) THEN 11 - + 24 WHEN - 80 * CAST( NULL AS SIGNED ) * ( 73 ) THEN NULL WHEN 33 THEN - ( + 80 ) * - 16 ELSE NULL END * 45 - - 17 * - COALESCE ( - 43 * + 40, - COUNT( DISTINCT 31 ), 44 * 91 + COUNT( * ), 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT - CASE - 78 WHEN + MIN ( - - 96 ) THEN 11 - + 24 WHEN - 80 * CAST ( NULL AS INTEGER ) * ( 73 ) THEN NULL WHEN 33 THEN - ( + 80 ) * - 16 ELSE NULL END * 45 - - 17 * - COALESCE ( - 43 * + 40, - COUNT ( DISTINCT 31 ), 44 * 91 + COUNT ( * ), 5 ) AS col1
----
NULL

query I rowsort
SELECT + + 84 * - + 8 AS col1
----
-672

query I rowsort
SELECT ALL + + NULLIF ( - + 72, - 20 * 72 ) AS col0
----
-72

query I rowsort
SELECT + 89 * + 11
----
979

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2845
SELECT DISTINCT MAX( DISTINCT 38 ) * - ( + ( + + COUNT( * ) ) ), 20 col2
----
-38
20

skipif mysql # not compatible
query II rowsort label-2845
SELECT DISTINCT MAX ( DISTINCT 38 ) * - ( + ( + + COUNT ( * ) ) ), 20 col2
----
-38
20

query I rowsort
SELECT + 79 - 25 col2
----
54

query I rowsort
SELECT + 96 * + 30
----
2880

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2850
SELECT - 49 * + SUM( 55 ) + + COUNT( * ) + + 81 DIV COUNT( * ) + - - 76 * 8 - - 20 + - + 68 + + 54 * 70 * 47 AS col2
----
175607

skipif mysql # not compatible
query I rowsort label-2850
SELECT - 49 * + SUM ( 55 ) + + COUNT ( * ) + + 81 / COUNT ( * ) + - - 76 * 8 - - 20 + - + 68 + + 54 * 70 * 47 AS col2
----
175607

onlyif mysql # DIV for integer division: 
query I rowsort label-2851
SELECT 73 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-2851
SELECT 73 / - 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2852
SELECT 80 * - 76 * - COUNT( * ) * + ( - + CAST( - 1 AS SIGNED ) )
----
6080

skipif mysql # not compatible
query I rowsort label-2852
SELECT 80 * - 76 * - COUNT ( * ) * + ( - + CAST ( - 1 AS INTEGER ) )
----
6080

query I rowsort
SELECT DISTINCT 89 + 96 AS col0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ALL - 8 + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL - 8 + - COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2855
SELECT 89 AS col0, + 76 * - - COUNT( * ) AS col0
----
89
76

skipif mysql # not compatible
query II rowsort label-2855
SELECT 89 AS col0, + 76 * - - COUNT ( * ) AS col0
----
89
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2856
SELECT ALL ( - NULLIF ( + COUNT( * ), - - 91 * + CAST( NULL AS SIGNED ) + 74 + - CAST( NULL AS SIGNED ) * - - 9 ) ) + 16 + 41 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL ( - NULLIF ( + COUNT ( * ), - - 91 * + CAST ( NULL AS INTEGER ) + 74 + - CAST ( NULL AS INTEGER ) * - - 9 ) ) + 16 + 41 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT ( - - ( - ( - CASE + + 94 WHEN 80 THEN - COUNT( * ) ELSE NULL END ) ) ) * + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT ( - - ( - ( - CASE + + 94 WHEN 80 THEN - COUNT ( * ) ELSE NULL END ) ) ) * + 6 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 35 * - - 86
----
3010

query I rowsort
SELECT ALL 12 + + 38
----
50

query I rowsort
SELECT ( 90 ) + + - 25 * 37
----
-835

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2861
SELECT 89 DIV + - SUM( ALL + 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-2861
SELECT 89 / + - SUM ( ALL + 78 )
----
-1

query I rowsort
SELECT ALL 88 + 7 AS col1
----
95

query I rowsort
SELECT DISTINCT + 36 * + + ( - - 9 ) * - + 87 col2
----
-28188

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT SUM( 36 ) + - SUM( ALL + 77 )
----
-41

skipif mysql # not compatible
query I rowsort label-2864
SELECT SUM ( 36 ) + - SUM ( ALL + 77 )
----
-41

query I rowsort
SELECT + 21 + - - 47
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2866
SELECT CAST( 53 AS SIGNED ) + - 9 AS col1, COALESCE ( 30, - 72 * - 85 * - 41 * + 64 * - 61 * MIN( 19 ) + - ( 94 ) - ( - 20 ) )
----
44
30

skipif mysql # not compatible
query II rowsort label-2866
SELECT CAST ( 53 AS INTEGER ) + - 9 AS col1, COALESCE ( 30, - 72 * - 85 * - 41 * + 64 * - 61 * MIN ( 19 ) + - ( 94 ) - ( - 20 ) )
----
44
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2867
SELECT ALL - NULLIF ( + 75, 38 ) + - + ( + + CAST( - 16 AS SIGNED ) ) * - COUNT( ALL 86 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - NULLIF ( + 75, 38 ) + - + ( + + CAST ( - 16 AS INTEGER ) ) * - COUNT ( ALL 86 ) AS col0
----
-91

query I rowsort
SELECT DISTINCT 13 * 33 AS col2
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT 59 + - COUNT( * ) - + 31
----
27

skipif mysql # not compatible
query I rowsort label-2869
SELECT 59 + - COUNT ( * ) - + 31
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT DISTINCT - + MIN( - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT - + MIN ( - 1 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2871
SELECT ALL + 74 - - 25 + - 20 + 76 DIV 75, 22 AS col1
----
80
22

skipif mysql # not compatible
query II rowsort label-2871
SELECT ALL + 74 - - 25 + - 20 + 76 / 75, 22 AS col1
----
80
22

query I rowsort
SELECT 93 * - COALESCE ( 58, 47 ) * + 50 AS col1
----
-269700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2873
SELECT ALL - + NULLIF ( MAX( ALL + 1 ), - ( + 31 ) ) - NULLIF ( 93, + - 20 * + - 96 - - 94 ) * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL - + NULLIF ( MAX ( ALL + 1 ), - ( + 31 ) ) - NULLIF ( 93, + - 20 * + - 96 - - 94 ) * - CAST ( NULL AS INTEGER ) col2
----
NULL

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

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

query I rowsort
SELECT ALL + + 28 * 49
----
1372

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT - 57 * COUNT( + + 64 ) + + - MIN( 54 ) + + ( COUNT( * ) ) AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-2876
SELECT - 57 * COUNT ( + + 64 ) + + - MIN ( 54 ) + + ( COUNT ( * ) ) AS col0
----
-110

query I rowsort
SELECT + 49 * + - 27 - + - 17
----
-1306

query I rowsort
SELECT ALL + + 53 * + 93 col1
----
4929

query I rowsort
SELECT ALL + + 36 * + 9 * 91 AS col2
----
29484

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2881
SELECT 19 DIV - 76 * + + NULLIF ( 12, + 11 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2881
SELECT 19 / - 76 * + + NULLIF ( 12, + 11 ) AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT SUM( + 68 ) * - + 12 AS col0
----
-816

skipif mysql # not compatible
query I rowsort label-2883
SELECT SUM ( + 68 ) * - + 12 AS col0
----
-816

query II rowsort
SELECT 72, + 76 AS col0
----
72
76

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2886
SELECT ALL - 49 + 96 + + 53 + + + 89 * + 55 + + CAST( - COALESCE ( MIN( ALL + + 48 ), - 51 + + + 76 * + 89 ) AS SIGNED )
----
4947

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL - 49 + 96 + + 53 + + + 89 * + 55 + + CAST ( - COALESCE ( MIN ( ALL + + 48 ), - 51 + + + 76 * + 89 ) AS INTEGER )
----
4947

query I rowsort
SELECT DISTINCT + 94 + + 15 col0
----
109

query II rowsort
SELECT 67 col0, + 31
----
67
31

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2890
SELECT 89 + + ( + - 57 ) * + 38 AS col0, COUNT( * ) * ( 96 )
----
-2077
96

skipif mysql # not compatible
query II rowsort label-2890
SELECT 89 + + ( + - 57 ) * + 38 AS col0, COUNT ( * ) * ( 96 )
----
-2077
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL 47 + COUNT( * ) * + - 8 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL 47 + COUNT ( * ) * + - 8 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2892
SELECT CASE - + SUM( ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) WHEN COUNT( * ) * - ( - - CAST( NULL AS SIGNED ) ) - CAST( NULL AS SIGNED ) + - COUNT( * ) - - NULLIF ( - 97, + 67 ) THEN + 83 - ( 20 ) WHEN + 5 / + CAST( - 85 AS SIGNED ) THEN NULL END * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2892
SELECT CASE - + SUM ( ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) WHEN COUNT ( * ) * - ( - - CAST ( NULL AS INTEGER ) ) - CAST ( NULL AS INTEGER ) + - COUNT ( * ) - - NULLIF ( - 97, + 67 ) THEN + 83 - ( 20 ) WHEN + 5 / + CAST ( - 85 AS INTEGER ) THEN NULL END * + 33
----
NULL

query II rowsort
SELECT ALL 32, ( 8 ) * - 3 AS col0
----
32
-24

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

query I rowsort
SELECT 14 + 0 + + - 43
----
-29

query II rowsort
SELECT ALL + 54 AS col1, 91 * - 13 AS col0
----
54
-1183

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL MIN( - 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL MIN ( - 22 ) AS col0
----
-22

query I rowsort
SELECT - 46 * + 97 AS col0
----
-4462

query I rowsort
SELECT ALL + - 5 * - - 14
----
-70

query I rowsort
SELECT ALL + 3 - + 61 * + - 30 AS col2
----
1833

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT NULLIF ( - COUNT( * ), - 86 / - COALESCE ( COUNT( ALL - 39 ), - 68 ) + - 26 ) * + ( + - NULLIF ( + 14, + 6 ) ) * 27 + 53 col0
----
431

skipif mysql # not compatible
query I rowsort label-2901
SELECT NULLIF ( - COUNT ( * ), - 86 / - COALESCE ( COUNT ( ALL - 39 ), - 68 ) + - 26 ) * + ( + - NULLIF ( + 14, + 6 ) ) * 27 + 53 col0
----
431

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

skipif mysql # not compatible
query I rowsort label-2902
SELECT + 12 * - + COUNT ( * ) * 3 AS col1
----
-36

query I rowsort
SELECT ( 23 ) * - 16 + - 79 col0
----
-447

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2904
SELECT 97 DIV - ( + COUNT( * ) ) + - 31 AS col1
----
-128

skipif mysql # not compatible
query I rowsort label-2904
SELECT 97 / - ( + COUNT ( * ) ) + - 31 AS col1
----
-128

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

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL + MAX ( - - 84 ) * - - COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT - + MAX( ALL - 62 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT - + MAX ( ALL - 62 ) col1
----
62

query I rowsort
SELECT - 44 * + + 75 * 2 AS col1
----
-6600

query I rowsort
SELECT DISTINCT + 51 * + - 16
----
-816

onlyif mysql # aggregate syntax: 
query II rowsort label-2909
SELECT ALL - + 27 AS col1, + 8 - + 89 * - COUNT( * )
----
-27
97

skipif mysql # not compatible
query II rowsort label-2909
SELECT ALL - + 27 AS col1, + 8 - + 89 * - COUNT ( * )
----
-27
97

query I rowsort
SELECT ALL 31 * 53 * - 84 * - 65 AS col1
----
8970780

query I rowsort
SELECT DISTINCT - - 58 col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2912
SELECT - - COUNT( * ) * - COUNT( * ) + - 54 + - + COUNT( * ) DIV - + 28 col1
----
-55

skipif mysql # not compatible
query I rowsort label-2912
SELECT - - COUNT ( * ) * - COUNT ( * ) + - 54 + - + COUNT ( * ) / - + 28 col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2913
SELECT ( + COALESCE ( + + MAX( DISTINCT + 66 ), + - 49, - - 74 DIV - 83 * - 41 * - 89 ) ) * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-2913
SELECT ( + COALESCE ( + + MAX ( DISTINCT + 66 ), + - 49, - - 74 / - 83 * - 41 * - 89 ) ) * - COUNT ( * )
----
-66

query II rowsort
SELECT DISTINCT - 74 col2, + 5 * - 49
----
-74
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL - 25 + - - 82 * COUNT( * ) + + 43 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - 25 + - - 82 * COUNT ( * ) + + 43 AS col2
----
100

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2917
SELECT ALL + 62 + - 3 DIV - 32 + - 53 + 15 * - 0 + + 27 * - - MAX( 99 ) DIV - COUNT( * ) AS col0
----
-2664

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL + 62 + - 3 / - 32 + - 53 + 15 * - 0 + + 27 * - - MAX ( 99 ) / - COUNT ( * ) AS col0
----
-2664

onlyif mysql # aggregate syntax: 
query II rowsort label-2918
SELECT ALL + 53 * 66 AS col1, COUNT( * ) + - 18 + - 76
----
3498
-93

skipif mysql # not compatible
query II rowsort label-2918
SELECT ALL + 53 * 66 AS col1, COUNT ( * ) + - 18 + - 76
----
3498
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT ALL - MIN( - - 12 ) + 7
----
-5

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - MIN ( - - 12 ) + 7
----
-5

query II rowsort
SELECT ALL - 62 + 41 AS col2, + 94
----
-21
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2921
SELECT - 7 / + CAST( NULL AS SIGNED ) col0, 94 AS col2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-2921
SELECT - 7 / + CAST ( NULL AS INTEGER ) col0, 94 AS col2
----
NULL
94

query I rowsort
SELECT DISTINCT - 44 + + 45 AS col1
----
1

query I rowsort
SELECT + 42 + 6 + 96 * 49 AS col1
----
4752

onlyif mysql # DIV for integer division: 
query I rowsort label-2924
SELECT ALL - 18 DIV 18 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL - 18 / 18 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT - 6 + + + COALESCE ( - COALESCE ( - - 90, + COUNT( * ) ), - + 46, - 61 - 5 ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-2925
SELECT - 6 + + + COALESCE ( - COALESCE ( - - 90, + COUNT ( * ) ), - + 46, - 61 - 5 ) col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2926
SELECT ALL CASE - 64 WHEN + 86 + 27 * 3 * - 93 * 5 * + ( + NULLIF ( + 24, - 52 ) ) + + 72 THEN CASE 30 WHEN 90 THEN - 6 * ( + SUM( + 80 ) / + 51 ) ELSE NULL END / CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL CASE - 64 WHEN + 86 + 27 * 3 * - 93 * 5 * + ( + NULLIF ( + 24, - 52 ) ) + + 72 THEN CASE 30 WHEN 90 THEN - 6 * ( + SUM ( + 80 ) / + 51 ) ELSE NULL END / CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + + 12 * - 99 * - 84
----
99792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2928
SELECT - - NULLIF ( - 29, + CASE - 64 WHEN + 30 THEN + - MAX( + 11 ) WHEN - 57 + 19 + + + 98 * + - 12 + + CAST( - 80 AS SIGNED ) THEN + COUNT( * ) END ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-2928
SELECT - - NULLIF ( - 29, + CASE - 64 WHEN + 30 THEN + - MAX ( + 11 ) WHEN - 57 + 19 + + + 98 * + - 12 + + CAST ( - 80 AS INTEGER ) THEN + COUNT ( * ) END ) col1
----
-29

query I rowsort
SELECT DISTINCT - 41 * 38 AS col2
----
-1558

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT + 5 + 16 + + ( + COUNT( * ) ) * 87
----
108

skipif mysql # not compatible
query I rowsort label-2930
SELECT + 5 + 16 + + ( + COUNT ( * ) ) * 87
----
108

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

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

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

query I rowsort
SELECT + 32 + - 93
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2934
SELECT DISTINCT 76 DIV - - CAST( + 18 AS SIGNED ) DIV + COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT 76 / - - CAST ( + 18 AS INTEGER ) / + COUNT ( * ) AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2935
SELECT COALESCE ( COUNT( - 4 ), + 57 + - 80 - + CAST( - 11 AS SIGNED ) * - + CAST( NULL AS SIGNED ) * + 1 ) * 47 * + COALESCE ( - COUNT( * ), - 97, - 3 ) + 74 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2935
SELECT COALESCE ( COUNT ( - 4 ), + 57 + - 80 - + CAST ( - 11 AS INTEGER ) * - + CAST ( NULL AS INTEGER ) * + 1 ) * 47 * + COALESCE ( - COUNT ( * ), - 97, - 3 ) + 74 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2936
SELECT - MAX( DISTINCT - + 90 ) * CAST( - 64 AS SIGNED ) + + + 29 * + 5 AS col1
----
-5615

skipif mysql # not compatible
query I rowsort label-2936
SELECT - MAX ( DISTINCT - + 90 ) * CAST ( - 64 AS INTEGER ) + + + 29 * + 5 AS col1
----
-5615

onlyif mysql # DIV for integer division: 
query I rowsort label-2937
SELECT + - 92 DIV - 78 - + 80
----
-79

skipif mysql # not compatible
query I rowsort label-2937
SELECT + - 92 / - 78 - + 80
----
-79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT - 98 * + 49 + + + SUM( + + 21 ) + - 71 AS col1
----
-4852

skipif mysql # not compatible
query I rowsort label-2939
SELECT - 98 * + 49 + + + SUM ( + + 21 ) + - 71 AS col1
----
-4852

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT DISTINCT CAST( - + ( + - 95 ) AS SIGNED ) * + 34 AS col2
----
3230

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT CAST ( - + ( + - 95 ) AS INTEGER ) * + 34 AS col2
----
3230

query I rowsort
SELECT DISTINCT + COALESCE ( - - 34, - 70 - + + 87, 23 ) AS col0
----
34

query II rowsort
SELECT + CASE + 14 WHEN - 45 THEN + 15 + + 35 END * 89 AS col1, 87 * + 25 AS col1
----
NULL
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL - COALESCE ( - + 77, - + 0 ) * - MAX( + 59 ) + + 47 + - COUNT( * ) AS col0
----
-4497

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL - COALESCE ( - + 77, - + 0 ) * - MAX ( + 59 ) + + 47 + - COUNT ( * ) AS col0
----
-4497

onlyif mysql # aggregate syntax: 
query II rowsort label-2945
SELECT DISTINCT 5 * - 93 + COUNT( * ), 88 AS col2
----
-464
88

skipif mysql # not compatible
query II rowsort label-2945
SELECT DISTINCT 5 * - 93 + COUNT ( * ), 88 AS col2
----
-464
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT + 60 * - MAX( DISTINCT + + 96 )
----
-5760

skipif mysql # not compatible
query I rowsort label-2946
SELECT + 60 * - MAX ( DISTINCT + + 96 )
----
-5760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2947
SELECT CASE 35 WHEN + 98 THEN + 29 + ( + 36 ) + COUNT( * ) END * - 36 * + - 69 + - 25 - - CAST( - 21 AS SIGNED ) + + 34 * + COUNT( DISTINCT + CAST( NULL AS SIGNED ) + ( - 95 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT CASE 35 WHEN + 98 THEN + 29 + ( + 36 ) + COUNT ( * ) END * - 36 * + - 69 + - 25 - - CAST ( - 21 AS INTEGER ) + + 34 * + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) + ( - 95 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2948
SELECT ALL + 18 AS col1, COUNT( * ) DIV + 70 AS col1
----
18
0

skipif mysql # not compatible
query II rowsort label-2948
SELECT ALL + 18 AS col1, COUNT ( * ) / + 70 AS col1
----
18
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT - NULLIF ( - 92, - - 18 + COUNT( * ) + MAX( 15 ) + + 1 * 7 + - CASE - + 73 WHEN + 98 * + 61 * - 48 / 29 + COUNT( * ) THEN + COUNT( * ) + + COALESCE ( - 55, COUNT( * ) ) END * 70 ) + 49
----
141

skipif mysql # not compatible
query I rowsort label-2950
SELECT - NULLIF ( - 92, - - 18 + COUNT ( * ) + MAX ( 15 ) + + 1 * 7 + - CASE - + 73 WHEN + 98 * + 61 * - 48 / 29 + COUNT ( * ) THEN + COUNT ( * ) + + COALESCE ( - 55, COUNT ( * ) ) END * 70 ) + 49
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2951
SELECT ALL + COUNT( * ) AS col1, - 87 - CAST( + 61 AS SIGNED ) + - 17
----
1
-165

skipif mysql # not compatible
query II rowsort label-2951
SELECT ALL + COUNT ( * ) AS col1, - 87 - CAST ( + 61 AS INTEGER ) + - 17
----
1
-165

query I rowsort
SELECT - 30 * - 65 AS col2
----
1950

query I rowsort
SELECT - 36 * - 33
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT - 47 + - - NULLIF ( 50, 88 + + 87 ) * + + COUNT( - 18 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2954
SELECT - 47 + - - NULLIF ( 50, 88 + + 87 ) * + + COUNT ( - 18 ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2955
SELECT DISTINCT + 20 * 97 / - ( + 73 ) - 70 + - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT + 20 * 97 / - ( + 73 ) - 70 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL 54 * - COUNT( * ) - 31 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL 54 * - COUNT ( * ) - 31 AS col1
----
-85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT DISTINCT - 14 - COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT - 14 - COUNT ( * ) AS col2
----
-15

query I rowsort
SELECT - 93 + - + 0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2962
SELECT - 67 * - CAST( NULL AS DECIMAL ) + + 19 - COUNT( * ) - - + CASE - + 72 WHEN - - 49 THEN + 45 ELSE + 14 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT - 67 * - CAST ( NULL AS REAL ) + + 19 - COUNT ( * ) - - + CASE - + 72 WHEN - - 49 THEN + 45 ELSE + 14 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2963
SELECT - 37 + - 78 + - NULLIF ( - + 39, ( - COUNT( * ) ) + + 75 * 16 + + + CAST( NULL AS DECIMAL ) ) + - 86 + + 4 AS col0
----
-158

skipif mysql # not compatible
query I rowsort label-2963
SELECT - 37 + - 78 + - NULLIF ( - + 39, ( - COUNT ( * ) ) + + 75 * 16 + + + CAST ( NULL AS REAL ) ) + - 86 + + 4 AS col0
----
-158

query I rowsort
SELECT ALL - NULLIF ( 74, - 78 * + + 22 * + - NULLIF ( + ( + ( - - 33 ) ), 32 ) ) AS col0
----
-74

query I rowsort
SELECT + - 1 + - 44 - + 56 + + - 95 * + ( 81 ) * - 37 AS col1
----
284614

query I rowsort
SELECT - + 31 * 97
----
-3007

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT DISTINCT + 12 * - 35 + - 6 + + COUNT( DISTINCT + 79 ) AS col1
----
-425

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT + 12 * - 35 + - 6 + + COUNT ( DISTINCT + 79 ) AS col1
----
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT - 83 * + + COUNT( * ) * - NULLIF ( - 70, + 90 ) * 1 AS col1
----
-5810

skipif mysql # not compatible
query I rowsort label-2972
SELECT - 83 * + + COUNT ( * ) * - NULLIF ( - 70, + 90 ) * 1 AS col1
----
-5810

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

skipif mysql # not compatible
query I rowsort label-2973
SELECT - + COUNT ( ALL - + 47 ) AS col2
----
-1

query I rowsort
SELECT ALL 36 + + 16
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2975
SELECT - MIN( DISTINCT 7 ) DIV 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2975
SELECT - MIN ( DISTINCT 7 ) / 24 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2976
SELECT ALL 50 + - CASE + 85 WHEN 60 * - 97 THEN NULL WHEN + 11 + + 82 + + + CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) THEN - 26 * + COALESCE ( + COUNT( * ), - 73 ) * COUNT( * ) ELSE CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL 50 + - CASE + 85 WHEN 60 * - 97 THEN NULL WHEN + 11 + + 82 + + + CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) THEN - 26 * + COALESCE ( + COUNT ( * ), - 73 ) * COUNT ( * ) ELSE CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT ALL - + ( 4 ) col1
----
-4

query I rowsort
SELECT DISTINCT - ( 78 ) + 80
----
2

query II rowsort
SELECT - 46 AS col1, + 0 + + + 35 + 12
----
-46
47

query I rowsort
SELECT DISTINCT 49 + - 44
----
5

query I rowsort
SELECT DISTINCT + ( 82 ) + + 82 AS col1
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2982
SELECT ALL SUM( + CAST( NULL AS SIGNED ) ) + 50 * + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL SUM ( + CAST ( NULL AS INTEGER ) ) + 50 * + + 74
----
NULL

query I rowsort
SELECT DISTINCT 43 * 0
----
0

query I rowsort
SELECT 54 * + 35
----
1890

onlyif mysql # DIV for integer division: 
query I rowsort label-2985
SELECT DISTINCT 89 DIV 69 * 92 col1
----
92

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT 89 / 69 * 92 col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT ALL 24 * - COUNT( * ) * + 62 AS col2
----
-1488

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL 24 * - COUNT ( * ) * + 62 AS col2
----
-1488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2987
SELECT 8 DIV MAX( + 23 )
----
0

skipif mysql # not compatible
query I rowsort label-2987
SELECT 8 / MAX ( + 23 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL 42 * + COUNT( * ) * + 13
----
546

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL 42 * + COUNT ( * ) * + 13
----
546

query I rowsort
SELECT CASE + - 60 WHEN - 47 / - - 51 THEN NULL WHEN + 96 THEN NULL ELSE 32 END * - - 35
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT DISTINCT - SUM( DISTINCT + 85 ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT - SUM ( DISTINCT + 85 ) col2
----
-85

query II rowsort
SELECT DISTINCT 47 * 62, - 14 col1
----
2914
-14

query I rowsort
SELECT 8 * + 25 * + 74
----
14800

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT - 65 * - + CASE 66 WHEN 46 THEN - - 81 + + 38 WHEN - 96 * - 43 + - 73 + 6 * MIN( - 85 ) * 8 + - 86 + - 24 * SUM( DISTINCT - ( + 37 ) + 91 ) + 44 * - 74 THEN + 36 WHEN 74 THEN - 54 * COUNT( * ) ELSE 72 END AS col1
----
4680

skipif mysql # not compatible
query I rowsort label-2993
SELECT - 65 * - + CASE 66 WHEN 46 THEN - - 81 + + 38 WHEN - 96 * - 43 + - 73 + 6 * MIN ( - 85 ) * 8 + - 86 + - 24 * SUM ( DISTINCT - ( + 37 ) + 91 ) + 44 * - 74 THEN + 36 WHEN 74 THEN - 54 * COUNT ( * ) ELSE 72 END AS col1
----
4680

query I rowsort
SELECT 72 * - 98 * 84
----
-592704

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT CASE WHEN NOT NULL IS NOT NULL THEN - 39 ELSE NULL END + 11 + + 18 + + - 65 * - COUNT( - 52 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2995
SELECT CASE WHEN NOT NULL IS NOT NULL THEN - 39 ELSE NULL END + 11 + + 18 + + - 65 * - COUNT ( - 52 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL - - COUNT( * ) * + + COUNT( * ) + + - 99
----
-98

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL - - COUNT ( * ) * + + COUNT ( * ) + + - 99
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2997
SELECT ( - 14 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2997
SELECT ( - 14 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT DISTINCT 80 * + - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT 80 * + - COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2999
SELECT - 23 - 91 DIV + + ( COALESCE ( + + 20, - + 10, 0 + SUM( ALL - - 68 ) * + - 1 * - NULLIF ( 11, + + ( 50 ) ) ) ) * COUNT( DISTINCT - 94 * - 73 ) + 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2999
SELECT - 23 - 91 / + + ( COALESCE ( + + 20, - + 10, 0 + SUM ( ALL - - 68 ) * + - 1 * - NULLIF ( 11, + + ( 50 ) ) ) ) * COUNT ( DISTINCT - 94 * - 73 ) + 27 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT COUNT( * ) + 99 + - 54 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3000
SELECT COUNT ( * ) + 99 + - 54 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT DISTINCT + 97 + + 86 - - 83 + - - 9 * - COUNT( * ) * + 28 * 19
----
-4522

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT + 97 + + 86 - - 83 + - - 9 * - COUNT ( * ) * + 28 * 19
----
-4522

query I rowsort
SELECT + 90 + 4
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3003
SELECT - SUM( DISTINCT + 26 ) col0, 41 * - + ( 34 ) * + - 84 * + + 18 + - - 80 AS col1
----
-26
2107808

skipif mysql # not compatible
query II rowsort label-3003
SELECT - SUM ( DISTINCT + 26 ) col0, 41 * - + ( 34 ) * + - 84 * + + 18 + - - 80 AS col1
----
-26
2107808

query I rowsort
SELECT + 3 + - 19
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + MIN( + 48 ) - + 79 col1
----
-31

skipif mysql # not compatible
query I rowsort label-3005
SELECT + MIN ( + 48 ) - + 79 col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3006
SELECT ALL + 48 DIV + COUNT( * ) - - + ( - 72 ) - + CAST( - 11 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL + 48 / + COUNT ( * ) - - + ( - 72 ) - + CAST ( - 11 AS INTEGER )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL CASE - COUNT( * ) WHEN ( - 31 ) + + 89 - - ( + 60 ) THEN 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL CASE - COUNT ( * ) WHEN ( - 31 ) + + 89 - - ( + 60 ) THEN 31 END
----
NULL

query I rowsort
SELECT ( - 31 ) + - - 96 * + 72 * - 60
----
-414751

query I rowsort
SELECT ALL - - ( + ( 98 ) ) + 71 * 77 - + 34
----
5531

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT + 31 + - COUNT( * ) + + 63 * + - 44 * - 64 * - 22
----
-3902946

skipif mysql # not compatible
query I rowsort label-3010
SELECT + 31 + - COUNT ( * ) + + 63 * + - 44 * - 64 * - 22
----
-3902946

query II rowsort
SELECT ALL 70 + + - 51 AS col2, 56 AS col0
----
19
56

query I rowsort
SELECT ALL 84 + + - 31
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3013
SELECT ( + ( + - 83 ) ) * 50 + 31 + CASE - 5 WHEN 53 * + COUNT( - 41 ) * - 50 DIV + - ( + 65 ) * + COUNT( * ) - - COALESCE ( + 47, 45 ) * - 26 + 37 THEN MIN( ALL 88 ) DIV COUNT( * ) ELSE 43 END - + 30 col2
----
-4106

skipif mysql # not compatible
query I rowsort label-3013
SELECT ( + ( + - 83 ) ) * 50 + 31 + CASE - 5 WHEN 53 * + COUNT ( - 41 ) * - 50 / + - ( + 65 ) * + COUNT ( * ) - - COALESCE ( + 47, 45 ) * - 26 + 37 THEN MIN ( ALL 88 ) / COUNT ( * ) ELSE 43 END - + 30 col2
----
-4106

query I rowsort
SELECT ALL 2 * 56
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3015
SELECT DISTINCT - 49 * - COUNT( * ) DIV - - 78 * 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT - 49 * - COUNT ( * ) / - - 78 * 7 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3016
SELECT COUNT( * ) AS col1, ( - ( - 62 ) ) * ( 23 ) + + - 40 AS col0
----
1
1386

skipif mysql # not compatible
query II rowsort label-3016
SELECT COUNT ( * ) AS col1, ( - ( - 62 ) ) * ( 23 ) + + - 40 AS col0
----
1
1386

query I rowsort
SELECT ALL - 31 - + + 7
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3018
SELECT 4 * + - 42 * + COALESCE ( + + CAST( NULL AS SIGNED ), + + 3, + COUNT( * ) ) + + COUNT( DISTINCT - - 68 ) AS col2
----
-503

skipif mysql # not compatible
query I rowsort label-3018
SELECT 4 * + - 42 * + COALESCE ( + + CAST ( NULL AS INTEGER ), + + 3, + COUNT ( * ) ) + + COUNT ( DISTINCT - - 68 ) AS col2
----
-503

query I rowsort
SELECT DISTINCT 83 - - 59 AS col2
----
142

query I rowsort
SELECT DISTINCT - ( + NULLIF ( + + 59, 24 ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT 78 * + COUNT( * ) col1
----
78

skipif mysql # not compatible
query I rowsort label-3021
SELECT 78 * + COUNT ( * ) col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT COALESCE ( 17, + + ( + 64 ) ) * + 40 * - NULLIF ( ( + 72 ), - COUNT( * ) / - COUNT( * ) * - 38 + + 84 * ( - 11 ) ) + - - ( - 79 )
----
-49039

skipif mysql # not compatible
query I rowsort label-3022
SELECT COALESCE ( 17, + + ( + 64 ) ) * + 40 * - NULLIF ( ( + 72 ), - COUNT ( * ) / - COUNT ( * ) * - 38 + + 84 * ( - 11 ) ) + - - ( - 79 )
----
-49039

query I rowsort
SELECT 88 * + + 75 AS col1
----
6600

query II rowsort
SELECT 54 AS col0, 78 * - - 71 + + 9 col0
----
54
5547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3025
SELECT CAST( NULL AS SIGNED ) / + ( 12 ) * - + CASE - 1 WHEN 3 THEN + 34 WHEN + 44 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT CAST ( NULL AS INTEGER ) / + ( 12 ) * - + CASE - 1 WHEN 3 THEN + 34 WHEN + 44 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 97 * - 4 + - 52
----
-440

query I rowsort
SELECT ALL 2 * + 41 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT ALL COUNT( * ) * 34 * + - 27 - 83 AS col2
----
-1001

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL COUNT ( * ) * 34 * + - 27 - 83 AS col2
----
-1001

onlyif mysql # DIV for integer division: 
query I rowsort label-3029
SELECT - 85 DIV 9 + ( + - 65 ) * - 58
----
3761

skipif mysql # not compatible
query I rowsort label-3029
SELECT - 85 / 9 + ( + - 65 ) * - 58
----
3761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3030
SELECT ALL - 4 + - + 73 + - COALESCE ( 36, + 95 * - CAST( NULL AS SIGNED ) DIV + 32 + - COALESCE ( - + COUNT( * ), - 57 ) DIV - - CASE + - COUNT( * ) WHEN + - 84 THEN - 17 ELSE - - COUNT( * ) * + SUM( + 63 * + 51 ) + - 48 END )
----
-113

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - 4 + - + 73 + - COALESCE ( 36, + 95 * - CAST ( NULL AS INTEGER ) / + 32 + - COALESCE ( - + COUNT ( * ), - 57 ) / - - CASE + - COUNT ( * ) WHEN + - 84 THEN - 17 ELSE - - COUNT ( * ) * + SUM ( + 63 * + 51 ) + - 48 END )
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT DISTINCT COUNT( DISTINCT + - 69 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT COUNT ( DISTINCT + - 69 ) AS col1
----
1

query I rowsort
SELECT ALL 68 + + - 12
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3033
SELECT ALL + CAST( NULL AS SIGNED ) + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL + CAST ( NULL AS INTEGER ) + + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT - - COUNT( DISTINCT 99 ) + + - ( - - 62 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-3034
SELECT - - COUNT ( DISTINCT 99 ) + + - ( - - 62 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ALL - 68 + + 10 + + COUNT( * ) * + 90
----
32

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL - 68 + + 10 + + COUNT ( * ) * + 90
----
32

query I rowsort
SELECT + 74 * + 80 AS col0
----
5920

query II rowsort
SELECT 75, + 89 col2
----
75
89

query I rowsort
SELECT - ( - 6 ) + 6 AS col2
----
12

query I rowsort
SELECT ALL + 19 * + - 52
----
-988

query I rowsort
SELECT DISTINCT - 60 + + - 99 + - 83
----
-242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3041
SELECT ALL - - 87 - - + CAST( - - 75 AS SIGNED ) AS col0
----
162

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL - - 87 - - + CAST ( - - 75 AS INTEGER ) AS col0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3042
SELECT DISTINCT + 69 * CAST( NULL AS SIGNED ) + + + 81 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT + 69 * CAST ( NULL AS INTEGER ) + + + 81 * + 59
----
NULL

query I rowsort
SELECT - 28 * - + 18
----
504

query I rowsort
SELECT ALL 98 * - - 47 AS col1
----
4606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT - + COUNT( * ) DIV + - 57
----
0

skipif mysql # not compatible
query I rowsort label-3045
SELECT - + COUNT ( * ) / + - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT - NULLIF ( + - COUNT( * ), 97 + - 93 - 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3046
SELECT - NULLIF ( + - COUNT ( * ), 97 + - 93 - 28 ) AS col0
----
1

query II rowsort
SELECT 21, 6 * - 38 * - 52 AS col0
----
21
11856

query I rowsort
SELECT + COALESCE ( - 37, 71 ) * - - 24 AS col2
----
-888

query II rowsort
SELECT - 92 AS col2, 40
----
-92
40

query I rowsort
SELECT ALL + ( - 66 ) AS col0
----
-66

query I rowsort
SELECT DISTINCT + ( - 49 )
----
-49

query I rowsort
SELECT ( 1 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT ALL - 72 DIV ( + 37 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL - 72 / ( + 37 ) col0
----
-1

query II rowsort
SELECT + 3 AS col0, NULLIF ( - 57, + 42 + + 34 ) AS col0
----
3
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3055
SELECT - 24 DIV 35 * + + 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3055
SELECT - 24 / 35 * + + 54 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3056
SELECT DISTINCT + 59, COUNT( 82 ) col1
----
59
1

skipif mysql # not compatible
query II rowsort label-3056
SELECT DISTINCT + 59, COUNT ( 82 ) col1
----
59
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL + CASE 50 WHEN 78 * - 18 * 15 * - - COUNT( * ) * + 12 THEN NULL WHEN - 35 THEN - 96 * + 25 + 33 + - 21 ELSE 47 END AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + CASE 50 WHEN 78 * - 18 * 15 * - - COUNT ( * ) * + 12 THEN NULL WHEN - 35 THEN - 96 * + 25 + 33 + - 21 ELSE 47 END AS col2
----
47

query I rowsort
SELECT - ( - 42 ) * + 74 + 10 * - - 2
----
3128

onlyif mysql # aggregate syntax: 
query II rowsort label-3059
SELECT ALL + 37 AS col2, - 58 * SUM( DISTINCT - - 0 ) AS col0
----
37
0

skipif mysql # not compatible
query II rowsort label-3059
SELECT ALL + 37 AS col2, - 58 * SUM ( DISTINCT - - 0 ) AS col0
----
37
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT - 77 - 8 + NULLIF ( - - COALESCE ( - - 24, MAX( + 37 ) ), - COALESCE ( + 64, - COUNT( * ) * + COUNT( * ) + - - ( 86 ) + - + ( - 30 ) ) ) + - 10
----
-71

skipif mysql # not compatible
query I rowsort label-3060
SELECT - 77 - 8 + NULLIF ( - - COALESCE ( - - 24, MAX ( + 37 ) ), - COALESCE ( + 64, - COUNT ( * ) * + COUNT ( * ) + - - ( 86 ) + - + ( - 30 ) ) ) + - 10
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-3061
SELECT NULLIF ( - + 50, + - 16 * 69 + + 64 + + MIN( ALL 71 ) ), - 4 AS col1
----
-50
-4

skipif mysql # not compatible
query II rowsort label-3061
SELECT NULLIF ( - + 50, + - 16 * 69 + + 64 + + MIN ( ALL 71 ) ), - 4 AS col1
----
-50
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3062
SELECT COALESCE ( - 82, - + 40 + + - SUM( ALL 31 ) * CASE - 97 WHEN - + 7 THEN - - 6 ELSE NULL END * + ( + - 87 ) * - 83 + + ( + COUNT( * ) ), - 16 * - + CAST( ( - ( 99 ) ) AS SIGNED ) ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-3062
SELECT COALESCE ( - 82, - + 40 + + - SUM ( ALL 31 ) * CASE - 97 WHEN - + 7 THEN - - 6 ELSE NULL END * + ( + - 87 ) * - 83 + + ( + COUNT ( * ) ), - 16 * - + CAST ( ( - ( 99 ) ) AS INTEGER ) ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL + COUNT( * ) * + - 24
----
-24

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL + COUNT ( * ) * + - 24
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT + 71 * 81 * COUNT( * )
----
5751

skipif mysql # not compatible
query I rowsort label-3064
SELECT + 71 * 81 * COUNT ( * )
----
5751

onlyif mysql # DIV for integer division: 
query II rowsort label-3065
SELECT ALL + 68 AS col1, 84 DIV 82 AS col0
----
68
1

skipif mysql # not compatible
query II rowsort label-3065
SELECT ALL + 68 AS col1, 84 / 82 AS col0
----
68
1

query I rowsort
SELECT - 17 + - 30 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT + CASE - 53 WHEN - NULLIF ( + 83, + COUNT( * ) ) * - 89 THEN - ( - COUNT( + - 70 ) ) WHEN 94 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3067
SELECT + CASE - 53 WHEN - NULLIF ( + 83, + COUNT ( * ) ) * - 89 THEN - ( - COUNT ( + - 70 ) ) WHEN 94 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - 35 * 2 AS col1
----
-70

query I rowsort
SELECT - 93 + - 90 + - + 13
----
-196

query I rowsort
SELECT ALL + 51 * 83 + 23
----
4256

query I rowsort
SELECT DISTINCT + - 27 * 81 + 32 AS col1
----
-2155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT + + CAST( + - 78 AS SIGNED ) + - 28
----
-106

skipif mysql # not compatible
query I rowsort label-3072
SELECT + + CAST ( + - 78 AS INTEGER ) + - 28
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT ALL + + 62 * 83 - 50 + - + COUNT( * )
----
5095

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + + 62 * 83 - 50 + - + COUNT ( * )
----
5095

query I rowsort
SELECT - - NULLIF ( 12, - - 15 ) AS col2
----
12

query II rowsort
SELECT - 97 AS col1, - 26 AS col0
----
-97
-26

query I rowsort
SELECT + 72 + + ( 21 )
----
93

query I rowsort
SELECT + NULLIF ( - + 94, - 44 ) col1
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-3078
SELECT 46 AS col1, NULLIF ( + 70, + + COUNT( * ) / + ( + 22 ) + 19 + - 45 + - - 96 + + + 45 * + NULLIF ( + 84, + 72 / - + 55 + + - 37 ) + 97 * CASE + 23 WHEN 78 - + 54 THEN + 84 * + 1 WHEN ( - COUNT( * ) ) THEN NULL ELSE NULL END ) * 64 + - 58 * - COUNT( * ) AS col2
----
46
4538

skipif mysql # not compatible
query II rowsort label-3078
SELECT 46 AS col1, NULLIF ( + 70, + + COUNT ( * ) / + ( + 22 ) + 19 + - 45 + - - 96 + + + 45 * + NULLIF ( + 84, + 72 / - + 55 + + - 37 ) + 97 * CASE + 23 WHEN 78 - + 54 THEN + 84 * + 1 WHEN ( - COUNT ( * ) ) THEN NULL ELSE NULL END ) * 64 + - 58 * - COUNT ( * ) AS col2
----
46
4538

query I rowsort
SELECT ALL - 31 - 42
----
-73

query I rowsort
SELECT ALL + 57 - + 20
----
37

query I rowsort
SELECT + + 51 - 10 AS col2
----
41

query I rowsort
SELECT ALL - ( 23 ) col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3083
SELECT DISTINCT 87 * - 50 DIV + COUNT( * )
----
-4350

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT 87 * - 50 / + COUNT ( * )
----
-4350

query I rowsort
SELECT + - 18 * + 89
----
-1602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3085
SELECT + CAST( - 16 AS SIGNED ) * + SUM( + ( 89 ) )
----
-1424

skipif mysql # not compatible
query I rowsort label-3085
SELECT + CAST ( - 16 AS INTEGER ) * + SUM ( + ( 89 ) )
----
-1424

onlyif mysql # aggregate syntax: 
query II rowsort label-3086
SELECT - COUNT( * ), 39 * - 70 AS col2
----
-1
-2730

skipif mysql # not compatible
query II rowsort label-3086
SELECT - COUNT ( * ), 39 * - 70 AS col2
----
-1
-2730

query I rowsort
SELECT + ( + - 25 ) * 90 * - 67 AS col2
----
150750

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT - 19 * - COUNT( * ) * MIN( ALL 66 ) col2
----
1254

skipif mysql # not compatible
query I rowsort label-3088
SELECT - 19 * - COUNT ( * ) * MIN ( ALL 66 ) col2
----
1254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3089
SELECT ALL MAX( 82 ) AS col1, - COUNT( * ) * - COUNT( 84 ) * + 63 * + + 55 * 97 - - CAST( NULL AS SIGNED ) * + + 14 AS col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-3089
SELECT ALL MAX ( 82 ) AS col1, - COUNT ( * ) * - COUNT ( 84 ) * + 63 * + + 55 * 97 - - CAST ( NULL AS INTEGER ) * + + 14 AS col1
----
82
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3090
SELECT + ( + 6 ) + - - 52 DIV 1
----
58

skipif mysql # not compatible
query I rowsort label-3090
SELECT + ( + 6 ) + - - 52 / 1
----
58

query I rowsort
SELECT - 37 - - - 26
----
-63

query I rowsort
SELECT ALL NULLIF ( 79, - + 55 ) AS col1
----
79

query I rowsort
SELECT ALL COALESCE ( + + 99, + 80 - + 39 )
----
99

query I rowsort
SELECT + 83 + + 20
----
103

query I rowsort
SELECT ALL - ( + 81 ) * 37 * 22 * - + 52
----
3428568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3096
SELECT DISTINCT + MIN( - 8 ) AS col1, 7 * MAX( DISTINCT - - 51 ) * + + CAST( NULL AS SIGNED ) * - AVG ( + - 98 ) * 78 + - 73
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-3096
SELECT DISTINCT + MIN ( - 8 ) AS col1, 7 * MAX ( DISTINCT - - 51 ) * + + CAST ( NULL AS INTEGER ) * - AVG ( + - 98 ) * 78 + - 73
----
-8
NULL

query I rowsort
SELECT DISTINCT 24 * - 59
----
-1416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3098
SELECT 5 / + CAST( - 70 AS SIGNED ) + + + COUNT( * ) * + 10 + + - ( ( 73 ) ) + + + 94 * - CASE - 68 WHEN - + 63 THEN + 53 * - + 80 WHEN + 25 * 86 THEN NULL ELSE NULL END + 43 + CAST( CASE - 63 WHEN 26 * - COALESCE ( - ( 49 ) / 51, 2 ) THEN NULL WHEN 71 THEN 1 / - 12 END AS DECIMAL ) / 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT 5 / + CAST ( - 70 AS INTEGER ) + + + COUNT ( * ) * + 10 + + - ( ( 73 ) ) + + + 94 * - CASE - 68 WHEN - + 63 THEN + 53 * - + 80 WHEN + 25 * 86 THEN NULL ELSE NULL END + 43 + CAST ( CASE - 63 WHEN 26 * - COALESCE ( - ( 49 ) / 51, 2 ) THEN NULL WHEN 71 THEN 1 / - 12 END AS REAL ) / 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3099
SELECT CAST( 42 AS SIGNED ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3099
SELECT CAST ( 42 AS INTEGER ) AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3100
SELECT CAST( - - 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-3100
SELECT CAST ( - - 43 AS INTEGER )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3101
SELECT ALL - 34 DIV + 56 + - - 95 + + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL - 34 / + 56 + - - 95 + + COUNT ( * )
----
96

query I rowsort
SELECT - 17 * - 39
----
663

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT - 35 DIV + + 2
----
-17

skipif mysql # not compatible
query I rowsort label-3103
SELECT - 35 / + + 2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3104
SELECT DISTINCT - 1 DIV + + 10 + - 51 * + 49
----
-2499

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT - 1 / + + 10 + - 51 * + 49
----
-2499

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT ALL + ( CASE + 81 WHEN + 76 + + - 75 THEN - 43 WHEN COUNT( * ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL + ( CASE + 81 WHEN + 76 + + - 75 THEN - 43 WHEN COUNT ( * ) THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ( SUM( ALL + 67 ) )
----
67

skipif mysql # not compatible
query I rowsort label-3106
SELECT ( SUM ( ALL + 67 ) )
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3107
SELECT DISTINCT + 54 DIV - - 7 - COUNT( ALL 15 ) + + 74 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT + 54 / - - 7 - COUNT ( ALL 15 ) + + 74 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3108
SELECT DISTINCT - COALESCE ( + 96, + CAST( + 69 AS DECIMAL ) * + 10 + + 72, - + 17 ) * + + MIN( DISTINCT 95 ) + + ( NULLIF ( + 91, - - 85 ) ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT - COALESCE ( + 96, + CAST ( + 69 AS REAL ) * + 10 + + 72, - + 17 ) * + + MIN ( DISTINCT 95 ) + + ( NULLIF ( + 91, - - 85 ) ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT + MIN( + 67 ) * + 4 * COUNT( * )
----
268

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT + MIN ( + 67 ) * + 4 * COUNT ( * )
----
268

onlyif mysql # aggregate syntax: 
query II rowsort label-3110
SELECT - SUM( 34 ) col0, - 84 AS col1
----
-34
-84

skipif mysql # not compatible
query II rowsort label-3110
SELECT - SUM ( 34 ) col0, - 84 AS col1
----
-34
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3111
SELECT + CASE + - 63 WHEN COUNT( COALESCE ( 1, + 56 ) ) - + + 31 + - CAST( NULL AS SIGNED ) THEN 32 END + - - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT + CASE + - 63 WHEN COUNT ( COALESCE ( 1, + 56 ) ) - + + 31 + - CAST ( NULL AS INTEGER ) THEN 32 END + - - 72 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT DISTINCT + 60 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT + 60 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 73, - 45 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT + CASE 21 WHEN + 30 * - - 69 THEN 95 WHEN - 66 THEN NULL ELSE NULL END * + SUM( ALL 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT + CASE 21 WHEN + 30 * - - 69 THEN 95 WHEN - 66 THEN NULL ELSE NULL END * + SUM ( ALL 0 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3115
SELECT ALL - 27 - + 37 * + COUNT( * ), + NULLIF ( + 71, + - CAST( - 41 AS SIGNED ) ) AS col1
----
-64
71

skipif mysql # not compatible
query II rowsort label-3115
SELECT ALL - 27 - + 37 * + COUNT ( * ), + NULLIF ( + 71, + - CAST ( - 41 AS INTEGER ) ) AS col1
----
-64
71

query I rowsort
SELECT - 6 + - 28
----
-34

query II rowsort
SELECT DISTINCT + + 3 - + 44 AS col1, - 75
----
-41
-75

query I rowsort
SELECT - 50 * - ( + 41 ) AS col0
----
2050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3119
SELECT DISTINCT + COALESCE ( + 25, COUNT( - CAST( NULL AS SIGNED ) ) ) DIV - NULLIF ( + - 8, 62 + + 59 + 33 ) + + ( 56 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT + COALESCE ( + 25, COUNT ( - CAST ( NULL AS INTEGER ) ) ) / - NULLIF ( + - 8, 62 + + 59 + 33 ) + + ( 56 ) AS col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3120
SELECT 24 DIV + COALESCE ( + - 61, + 60 DIV - 75, + + 3 + + - 71 ) + - - 42
----
42

skipif mysql # not compatible
query I rowsort label-3120
SELECT 24 / + COALESCE ( + - 61, + 60 / - 75, + + 3 + + - 71 ) + - - 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT 67 * 74 + COUNT( + 92 ) - 93 AS col0
----
4866

skipif mysql # not compatible
query I rowsort label-3121
SELECT 67 * 74 + COUNT ( + 92 ) - 93 AS col0
----
4866

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3122
SELECT ALL - 75 * 92 col0, COUNT( * ) * + + CAST( NULL AS SIGNED )
----
-6900
NULL

skipif mysql # not compatible
query II rowsort label-3122
SELECT ALL - 75 * 92 col0, COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
-6900
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT ALL - 99 DIV + - 18 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL - 99 / + - 18 AS col0
----
5

query II rowsort
SELECT ALL 88, 66 col1
----
88
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3125
SELECT 92 DIV - COALESCE ( 53, CASE + - 57 WHEN - CASE - COUNT( * ) WHEN + 18 * + 24 + 84 THEN + + 3 * + - 92 + - 78 * + 24 + - 86 + - 64 ELSE NULL END THEN COUNT( * ) + + + 90 * - 66 ELSE CASE + MIN( 15 ) WHEN + 82 * 87 + - ( 4 ) THEN NULL ELSE MIN( CAST( 29 AS SIGNED ) ) END END )
----
-1

skipif mysql # not compatible
query I rowsort label-3125
SELECT 92 / - COALESCE ( 53, CASE + - 57 WHEN - CASE - COUNT ( * ) WHEN + 18 * + 24 + 84 THEN + + 3 * + - 92 + - 78 * + 24 + - 86 + - 64 ELSE NULL END THEN COUNT ( * ) + + + 90 * - 66 ELSE CASE + MIN ( 15 ) WHEN + 82 * 87 + - ( 4 ) THEN NULL ELSE MIN ( CAST ( 29 AS INTEGER ) ) END END )
----
-1

query I rowsort
SELECT ALL - 72 * + 41
----
-2952

onlyif mysql # DIV for integer division: 
query II rowsort label-3127
SELECT - 48 AS col0, + 66 DIV - 26
----
-48
-2

skipif mysql # not compatible
query II rowsort label-3127
SELECT - 48 AS col0, + 66 / - 26
----
-48
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ( - + COUNT( * ) ) * - 62 + - ( + 55 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3128
SELECT ( - + COUNT ( * ) ) * - 62 + - ( + 55 ) AS col2
----
7

query I rowsort
SELECT ALL 83 * 88
----
7304

query I rowsort
SELECT 27 * + 1 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3131
SELECT COUNT( * ) DIV + 6 * - 76 * ( 71 ) * + 23 - - 30 + MIN( ALL + ( 12 ) ) * - MAX( + NULLIF ( + - ( + 35 ), + CAST( + CAST( 84 AS SIGNED ) AS SIGNED ) ) ) * + - 56 * + CAST( 1 * + 64 AS SIGNED ) + - 63
----
-1505313

skipif mysql # not compatible
query I rowsort label-3131
SELECT COUNT ( * ) / + 6 * - 76 * ( 71 ) * + 23 - - 30 + MIN ( ALL + ( 12 ) ) * - MAX ( + NULLIF ( + - ( + 35 ), + CAST ( + CAST ( 84 AS INTEGER ) AS INTEGER ) ) ) * + - 56 * + CAST ( 1 * + 64 AS INTEGER ) + - 63
----
-1505313

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT ALL COUNT( * ) + - 70 - - + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL COUNT ( * ) + - 70 - - + COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT DISTINCT - SUM( DISTINCT - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT - SUM ( DISTINCT - 47 )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3134
SELECT ALL CASE + 17 WHEN 39 THEN - 1 * + 26 * + ( + 56 ) * - - 31 + - NULLIF ( + 53, + SUM( - - 87 ) DIV - - COUNT( * ) ) END + NULLIF ( - 38, 2 ), 73 DIV + + MIN( ALL + 34 ) + - 45 AS col2
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-3134
SELECT ALL CASE + 17 WHEN 39 THEN - 1 * + 26 * + ( + 56 ) * - - 31 + - NULLIF ( + 53, + SUM ( - - 87 ) / - - COUNT ( * ) ) END + NULLIF ( - 38, 2 ), 73 / + + MIN ( ALL + 34 ) + - 45 AS col2
----
NULL
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3135
SELECT + 79, 17 * + + CAST( NULL AS SIGNED ) + + + 41 + 66 * 56 AS col0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-3135
SELECT + 79, 17 * + + CAST ( NULL AS INTEGER ) + + + 41 + 66 * 56 AS col0
----
79
NULL

query I rowsort
SELECT ALL - COALESCE ( 87, + - 40 + 21, 7 ) col1
----
-87

query I rowsort
SELECT ALL - 11 + + - ( + 14 ) + - 40 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT ALL ( + + 79 ) * - 37 * - + CASE 47 WHEN 85 * - ( + + 98 ) + + COUNT( * ) * - 99 THEN - - 66 / + COUNT( * ) + 78 WHEN + + 15 + 70 * + 49 * - 4 THEN - AVG ( - 15 ) * - 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL ( + + 79 ) * - 37 * - + CASE 47 WHEN 85 * - ( + + 98 ) + + COUNT ( * ) * - 99 THEN - - 66 / + COUNT ( * ) + 78 WHEN + + 15 + 70 * + 49 * - 4 THEN - AVG ( - 15 ) * - 1 END
----
NULL

query I rowsort
SELECT + + 49 AS col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3140
SELECT - 36 col2, - COUNT( * ) * 39
----
-36
-39

skipif mysql # not compatible
query II rowsort label-3140
SELECT - 36 col2, - COUNT ( * ) * 39
----
-36
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL - + MIN( ALL + 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL - + MIN ( ALL + 50 ) AS col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3142
SELECT COUNT( ALL + 36 ) DIV 48 + - 14, ( + 61 ) col0
----
-14
61

skipif mysql # not compatible
query II rowsort label-3142
SELECT COUNT ( ALL + 36 ) / 48 + - 14, ( + 61 ) col0
----
-14
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT 41 * 19 + + 80 / + 18 + - 28 + - MIN( + ( - ( - - 93 ) ) ) + CAST( NULL AS SIGNED ) + 69 - - + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT 41 * 19 + + 80 / + 18 + - 28 + - MIN ( + ( - ( - - 93 ) ) ) + CAST ( NULL AS INTEGER ) + 69 - - + 71 AS col0
----
NULL

query I rowsort
SELECT + ( + 60 ) col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT COUNT( * ) + - 43 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-3145
SELECT COUNT ( * ) + - 43 AS col1
----
-42

query II rowsort
SELECT 1 AS col0, 68 AS col0
----
1
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3147
SELECT + + 41 * 69 * - 16 + ( COUNT( * ) ) + + - CAST( NULL AS SIGNED ) + - + 95 + - CASE - - ( 87 ) WHEN + ( + - COALESCE ( 68, - + MAX( - + CAST( NULL AS SIGNED ) ) - + - 49 * + COUNT( DISTINCT 93 ) * 9 ) ) + + 65 THEN 26 - + 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3147
SELECT + + 41 * 69 * - 16 + ( COUNT ( * ) ) + + - CAST ( NULL AS INTEGER ) + - + 95 + - CASE - - ( 87 ) WHEN + ( + - COALESCE ( 68, - + MAX ( - + CAST ( NULL AS INTEGER ) ) - + - 49 * + COUNT ( DISTINCT 93 ) * 9 ) ) + + 65 THEN 26 - + 33 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3148
SELECT ALL + CAST( NULL AS SIGNED ) / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + CAST ( NULL AS INTEGER ) / 40
----
NULL

query I rowsort
SELECT 21 * - + 25 + + + ( + 52 ) + 70 * + 25 col1
----
1277

query I rowsort
SELECT ALL - ( + 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT - ( - - SUM( DISTINCT - - 91 ) ) * + 46
----
-4186

skipif mysql # not compatible
query I rowsort label-3151
SELECT - ( - - SUM ( DISTINCT - - 91 ) ) * + 46
----
-4186

query II rowsort
SELECT + + 98 AS col2, - 65 + 86
----
98
21

query II rowsort
SELECT DISTINCT - 41 AS col1, 33
----
-41
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL - - SUM( 32 )
----
32

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL - - SUM ( 32 )
----
32

query II rowsort
SELECT 44 AS col1, 1
----
44
1

query I rowsort
SELECT + 48 * - - 11
----
528

query I rowsort
SELECT 90 * 28 / - CASE + ( - - 88 ) WHEN - 34 + - 40 THEN + 93 / - CASE + ( 39 ) WHEN - 79 + + + 28 THEN - 23 END ELSE NULL END - + 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3158
SELECT + SUM( DISTINCT + - 16 ) - + 80 * 19 DIV - CAST( - - ( + - COALESCE ( AVG ( 52 ), - - 21 * - COUNT( - 60 ) ) ) AS SIGNED ) + + + 18
----
-27

skipif mysql # not compatible
query I rowsort label-3158
SELECT + SUM ( DISTINCT + - 16 ) - + 80 * 19 / - CAST ( - - ( + - COALESCE ( AVG ( 52 ), - - 21 * - COUNT ( - 60 ) ) ) AS INTEGER ) + + + 18
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3159
SELECT - CASE - 32 WHEN COUNT( * ) THEN NULL WHEN CAST( NULL AS SIGNED ) DIV - - CAST( NULL AS SIGNED ) + + 76 * + 49 THEN NULL WHEN + 96 + + 2 DIV COUNT( * ) * 16 DIV NULLIF ( + - 60, + + 4 ) THEN + 23 ELSE + + 12 DIV + COUNT( * ) + - - 74 END AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-3159
SELECT - CASE - 32 WHEN COUNT ( * ) THEN NULL WHEN CAST ( NULL AS INTEGER ) / - - CAST ( NULL AS INTEGER ) + + 76 * + 49 THEN NULL WHEN + 96 + + 2 / COUNT ( * ) * 16 / NULLIF ( + - 60, + + 4 ) THEN + 23 ELSE + + 12 / + COUNT ( * ) + - - 74 END AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3160
SELECT 23 + - ( + - 64 ) / ( + + MIN( + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT 23 + - ( + - 64 ) / ( + + MIN ( + + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ALL - COUNT( * ) * 93 + - - ( + 89 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL - COUNT ( * ) * 93 + - - ( + 89 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT ALL MIN( ALL 88 )
----
88

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL MIN ( ALL 88 )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3163
SELECT DISTINCT - 59 + - + 4 + 51 + - MAX( DISTINCT - 31 ) * + 23 DIV COUNT( * ) AS col0
----
701

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT - 59 + - + 4 + 51 + - MAX ( DISTINCT - 31 ) * + 23 / COUNT ( * ) AS col0
----
701

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT - 86 + + + 62 + 13 * + 49 * - - 21 + + + COUNT( - 26 )
----
13354

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT - 86 + + + 62 + 13 * + 49 * - - 21 + + + COUNT ( - 26 )
----
13354

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL MIN( 78 ) + ( - 64 ) - - MAX( ALL + 22 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL MIN ( 78 ) + ( - 64 ) - - MAX ( ALL + 22 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL MIN( - CASE 20 WHEN - + 57 THEN + 10 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL MIN ( - CASE 20 WHEN - + 57 THEN + 10 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3167
SELECT 17 + - - COUNT( * ) AS col2, 93
----
18
93

skipif mysql # not compatible
query II rowsort label-3167
SELECT 17 + - - COUNT ( * ) AS col2, 93
----
18
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT 88 + SUM( 12 ) + + + 18 * - 72 AS col1
----
-1196

skipif mysql # not compatible
query I rowsort label-3168
SELECT 88 + SUM ( 12 ) + + + 18 * - 72 AS col1
----
-1196

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT ALL + 41 + + 27 DIV - 2 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL + 41 + + 27 / - 2 AS col1
----
28

query I rowsort
SELECT 98 + - - ( + 87 ) + 65 * + 32
----
2265

query I rowsort
SELECT 7 + + 93
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3172
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) / + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) / + 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT ALL ( - COUNT( * ) ) + - + 15
----
-16

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL ( - COUNT ( * ) ) + - + 15
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT DISTINCT - 86 * - + NULLIF ( 94, - + 15 + COUNT( * ) ) + + + 62
----
8146

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT - 86 * - + NULLIF ( 94, - + 15 + COUNT ( * ) ) + + + 62
----
8146

query I rowsort
SELECT COALESCE ( - 90, + - 30 ) col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT DISTINCT 29 * - - CAST( - ( - 74 ) AS SIGNED )
----
2146

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT 29 * - - CAST ( - ( - 74 ) AS INTEGER )
----
2146

onlyif mysql # DIV for integer division: 
query I rowsort label-3177
SELECT 79 DIV + 24 + + 80 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3177
SELECT 79 / + 24 + + 80 AS col2
----
83

query I rowsort
SELECT + - ( + 51 ) + - 98
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT DISTINCT + 16 * + ( - 98 ) - - ( + 26 ) - 84 * + COUNT( * )
----
-1626

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT + 16 * + ( - 98 ) - - ( + 26 ) - 84 * + COUNT ( * )
----
-1626

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT + - MIN( ALL - - ( + 62 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-3180
SELECT + - MIN ( ALL - - ( + 62 ) )
----
-62

query I rowsort
SELECT DISTINCT - 87 * - 37 - 74
----
3145

query II rowsort
SELECT + + CASE + + 17 WHEN 14 * 43 + 54 + - + 48 THEN 1 WHEN + + 82 THEN + 85 ELSE NULL END + - 91, + 89 col0
----
NULL
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3183
SELECT + + CASE 65 WHEN 39 THEN 57 * + 20 + + + 60 + + + 63 - COALESCE ( + COUNT( * ), - - 72 ) + + 22 + + ( - 99 ) / + - 20 * - AVG ( + 72 ) + 4 + + 71 - - - NULLIF ( MIN( DISTINCT 0 ), 86 / 16 ) * 89 WHEN + NULLIF ( - 54, + ( 88 ) + + MAX( ALL 34 ) ) + 78 THEN - COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ) + 75 * 82 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT + + CASE 65 WHEN 39 THEN 57 * + 20 + + + 60 + + + 63 - COALESCE ( + COUNT ( * ), - - 72 ) + + 22 + + ( - 99 ) / + - 20 * - AVG ( + 72 ) + 4 + + 71 - - - NULLIF ( MIN ( DISTINCT 0 ), 86 / 16 ) * 89 WHEN + NULLIF ( - 54, + ( 88 ) + + MAX ( ALL 34 ) ) + 78 THEN - COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) + 75 * 82 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT + - 89 + + + CAST( ( 16 ) AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-3184
SELECT + - 89 + + + CAST ( ( 16 ) AS INTEGER )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-3185
SELECT + + 19 DIV + - 78
----
0

skipif mysql # not compatible
query I rowsort label-3185
SELECT + + 19 / + - 78
----
0

query I rowsort
SELECT - + 14 * - + 99 * + 54 - - 15
----
74859

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT ALL 71 * ( COUNT( * ) ) * + - 70 - - - MAX( ALL - 51 ) + - - 32 + - COALESCE ( + 7, 61 * 41 + - 52 + + 44 ) AS col1
----
-4894

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL 71 * ( COUNT ( * ) ) * + - 70 - - - MAX ( ALL - 51 ) + - - 32 + - COALESCE ( + 7, 61 * 41 + - 52 + + 44 ) AS col1
----
-4894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3188
SELECT + 41 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT + 41 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - ( - 61 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3190
SELECT + CASE + + CAST( NULL AS SIGNED ) WHEN - 71 * COUNT( + 0 ) * CASE - + 81 WHEN + CAST( NULL AS SIGNED ) THEN + COUNT( DISTINCT + - 78 ) ELSE + 39 + + + 31 * - - 44 END + - 10 * - 39 - + COUNT( * ) THEN + MIN( - - 68 ) ELSE NULL END + 6 * 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT + CASE + + CAST ( NULL AS INTEGER ) WHEN - 71 * COUNT ( + 0 ) * CASE - + 81 WHEN + CAST ( NULL AS INTEGER ) THEN + COUNT ( DISTINCT + - 78 ) ELSE + 39 + + + 31 * - - 44 END + - 10 * - 39 - + COUNT ( * ) THEN + MIN ( - - 68 ) ELSE NULL END + 6 * 50 AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 74 ) + - 25 * + + 77
----
-1999

query I rowsort
SELECT 36 * + 82 + + - ( + 23 ) AS col1
----
2929

query I rowsort
SELECT - 37 - + - 54
----
17

query I rowsort
SELECT - ( + + 76 ) AS col0
----
-76

query I rowsort
SELECT - 54 + - 35
----
-89

query I rowsort
SELECT - ( - 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT - CASE - COUNT( * ) WHEN - MAX( + + 21 ) THEN NULL ELSE 29 END * ( + + 20 )
----
-580

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT - CASE - COUNT ( * ) WHEN - MAX ( + + 21 ) THEN NULL ELSE 29 END * ( + + 20 )
----
-580

query I rowsort
SELECT ALL + 10 + - ( - 76 ) AS col1
----
86

query II rowsort
SELECT 3 AS col0, + 88
----
3
88

query II rowsort
SELECT 39 AS col2, 22 * + 6
----
39
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3201
SELECT - 18 * - ( - COUNT( * ) ) DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT - 18 * - ( - COUNT ( * ) ) / - 45
----
0

query I rowsort
SELECT ALL + 37 * + 43
----
1591

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3203
SELECT ALL - 10 + + - 7 + CASE + MAX( + CAST( NULL AS DECIMAL ) ) WHEN + 23 + - + 64 THEN - - 25 ELSE + - 47 END
----
-64

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL - 10 + + - 7 + CASE + MAX ( + CAST ( NULL AS REAL ) ) WHEN + 23 + - + 64 THEN - - 25 ELSE + - 47 END
----
-64

query I rowsort
SELECT ALL ( 24 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT - 88 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT - 88 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL + ( + 97 ) * - - 96 * 95 * - COUNT( * )
----
-884640

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + ( + 97 ) * - - 96 * 95 * - COUNT ( * )
----
-884640

query I rowsort
SELECT - 59 + - 0 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL ( - SUM( 52 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL ( - SUM ( 52 ) )
----
-52

query I rowsort
SELECT - 52 * - + 75 AS col2
----
3900

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT DISTINCT + ( 72 ) DIV + 11 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT + ( 72 ) / + 11 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL ( NULLIF ( + MAX( DISTINCT - - 7 ), + ( - COUNT( - ( 32 ) ) ) + - + 62 ) )
----
7

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL ( NULLIF ( + MAX ( DISTINCT - - 7 ), + ( - COUNT ( - ( 32 ) ) ) + - + 62 ) )
----
7

query I rowsort
SELECT - 28 - 60
----
-88

query I rowsort
SELECT - - 41 * - 66 - - - 15 AS col1
----
-2721

query I rowsort
SELECT ALL ( - - 18 ) * 51 AS col0
----
918

query I rowsort
SELECT - - 59 * + 13
----
767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3216
SELECT DISTINCT + CASE 70 WHEN - CAST( + 36 AS SIGNED ) * + - 9 / COUNT( * ) * - + 31 - + + CAST( + - 19 AS SIGNED ) * - 42 * - + SUM( 14 ) THEN - + COALESCE ( + - SUM( - CAST( NULL AS DECIMAL ) ), + + 61 ) END / - 60 * - + 88 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT + CASE 70 WHEN - CAST ( + 36 AS INTEGER ) * + - 9 / COUNT ( * ) * - + 31 - + + CAST ( + - 19 AS INTEGER ) * - 42 * - + SUM ( 14 ) THEN - + COALESCE ( + - SUM ( - CAST ( NULL AS REAL ) ), + + 61 ) END / - 60 * - + 88 col1
----
NULL

query I rowsort
SELECT - + 84 * 82 AS col0
----
-6888

query I rowsort
SELECT ALL + 4 * 99 * + 16 + + 63 + - 86 + - 51 * - - COALESCE ( - 92, + 64 ) AS col2
----
11005

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT - COUNT( * ) * 99 + - - 92 + - - 38
----
31

skipif mysql # not compatible
query I rowsort label-3219
SELECT - COUNT ( * ) * 99 + - - 92 + - - 38
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3220
SELECT + + COUNT( * ) - + COALESCE ( + 24, 2 ) + + 4 AS col0, - 8 + + 44 * NULLIF ( - 86, 95 ) * 46 AS col1
----
-19
-174072

skipif mysql # not compatible
query II rowsort label-3220
SELECT + + COUNT ( * ) - + COALESCE ( + 24, 2 ) + + 4 AS col0, - 8 + + 44 * NULLIF ( - 86, 95 ) * 46 AS col1
----
-19
-174072

query I rowsort
SELECT - + 23 * 31 * + 49 * - 0
----
0

query I rowsort
SELECT DISTINCT 42 * 93
----
3906

query I rowsort
SELECT ALL + + ( 26 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT - 30 + COUNT( DISTINCT + 44 )
----
-29

skipif mysql # not compatible
query I rowsort label-3224
SELECT - 30 + COUNT ( DISTINCT + 44 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT + 43 + - + CASE - - MIN( + 19 ) WHEN + - 73 THEN + 63 END * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT + 43 + - + CASE - - MIN ( + 19 ) WHEN + - 73 THEN + 63 END * - 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT ALL - 82 * + 17 + 7 + - CAST( NULL AS SIGNED ) + + AVG ( ALL NULLIF ( - 27, - - 13 ) ) * - + ( - - CASE + CASE WHEN - 4 BETWEEN - - CASE - 85 WHEN ( 35 ) THEN 5 * - + 47 ELSE + 97 * COUNT( * ) END / - 27 AND - 12 THEN CAST( NULL AS SIGNED ) / - MIN( 77 ) + 86 ELSE NULL END WHEN 0 * + 0 THEN + NULLIF ( + 52, 63 + CAST( + 36 AS SIGNED ) ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL - 82 * + 17 + 7 + - CAST ( NULL AS INTEGER ) + + AVG ( ALL NULLIF ( - 27, - - 13 ) ) * - + ( - - CASE + CASE WHEN - 4 BETWEEN - - CASE - 85 WHEN ( 35 ) THEN 5 * - + 47 ELSE + 97 * COUNT ( * ) END / - 27 AND - 12 THEN CAST ( NULL AS INTEGER ) / - MIN ( 77 ) + 86 ELSE NULL END WHEN 0 * + 0 THEN + NULLIF ( + 52, 63 + CAST ( + 36 AS INTEGER ) ) END ) AS col1
----
NULL

query I rowsort
SELECT ALL - 46 * 46 + + 85 + - 98 + 2 AS col1
----
-2127

query I rowsort
SELECT ALL + ( + - 62 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT - + 22 + - + ( COUNT( * ) ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-3229
SELECT - + 22 + - + ( COUNT ( * ) ) col0
----
-23

query I rowsort
SELECT + 37 + + - 33 * + + 24 * - 32
----
25381

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3231
SELECT + 55 DIV - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-3231
SELECT + 55 / - COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ALL + 58 * + SUM( 59 ) + + - 63 - - - ( - + ( 59 ) )
----
3418

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL + 58 * + SUM ( 59 ) + + - 63 - - - ( - + ( 59 ) )
----
3418

query I rowsort
SELECT NULLIF ( - 76, + - 31 * + + 69 + + + ( - - 98 ) * 46 * 80 ) col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT + 71 * + - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-3234
SELECT + 71 * + - COUNT ( * )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / 29 + + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / 29 + + 61 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3236
SELECT - 88 - - 12 * - 13 + NULLIF ( - CASE + 94 WHEN - 46 + + CAST( NULL AS SIGNED ) + - 21 THEN - 43 ELSE + 89 END, + + COUNT( * ) ) DIV - 47
----
-243

skipif mysql # not compatible
query I rowsort label-3236
SELECT - 88 - - 12 * - 13 + NULLIF ( - CASE + 94 WHEN - 46 + + CAST ( NULL AS INTEGER ) + - 21 THEN - 43 ELSE + 89 END, + + COUNT ( * ) ) / - 47
----
-243

onlyif mysql # aggregate syntax: 
query II rowsort label-3237
SELECT - 62, - 98 * COUNT( - NULLIF ( - 90, + + 48 - + 59 * - 39 ) ) AS col1
----
-62
-98

skipif mysql # not compatible
query II rowsort label-3237
SELECT - 62, - 98 * COUNT ( - NULLIF ( - 90, + + 48 - + 59 * - 39 ) ) AS col1
----
-62
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT COALESCE ( - 73, + 32 ) + + 23 * + - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-3238
SELECT COALESCE ( - 73, + 32 ) + + 23 * + - COUNT ( * )
----
-96

query II rowsort
SELECT DISTINCT 69 AS col1, 69 AS col2
----
69
69

query I rowsort
SELECT 23 + - 65 col0
----
-42

query I rowsort
SELECT ( + 66 ) * - 60 AS col0
----
-3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3242
SELECT CAST( NULL AS SIGNED ) + - 93 - - + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT CAST ( NULL AS INTEGER ) + - 93 - - + 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT 68 * - ( + 73 ) * COUNT( + - 2 ) AS col1
----
-4964

skipif mysql # not compatible
query I rowsort label-3243
SELECT 68 * - ( + 73 ) * COUNT ( + - 2 ) AS col1
----
-4964

query I rowsort
SELECT ALL + 7 * + 71 * - - 66 AS col0
----
32802

query I rowsort
SELECT 42 + + 35 AS col2
----
77

query I rowsort
SELECT ALL + + 98 * 69 AS col1
----
6762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3247
SELECT + CAST( NULL AS SIGNED ) + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3247
SELECT + CAST ( NULL AS INTEGER ) + + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL + COUNT( * ) * - + 39 * - 83 * 24 - + + 59
----
77629

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL + COUNT ( * ) * - + 39 * - 83 * 24 - + + 59
----
77629

query I rowsort
SELECT 26 * 81
----
2106

onlyif mysql # aggregate syntax: 
query II rowsort label-3250
SELECT ALL - COUNT( * ) AS col1, 46 + - 89 AS col0
----
-1
-43

skipif mysql # not compatible
query II rowsort label-3250
SELECT ALL - COUNT ( * ) AS col1, 46 + - 89 AS col0
----
-1
-43

query II rowsort
SELECT + - 60 AS col2, + 45 AS col2
----
-60
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3252
SELECT 6 DIV + - 66 + + 18 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3252
SELECT 6 / + - 66 + + 18 AS col0
----
18

query I rowsort
SELECT 49 * - - 33
----
1617

query I rowsort
SELECT DISTINCT - + 56 + - - 5
----
-51

query II rowsort
SELECT - 84 AS col2, 58 * 28
----
-84
1624

query I rowsort
SELECT - 74 + + - 3 col1
----
-77

query II rowsort
SELECT + 34 AS col2, - 48
----
34
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT DISTINCT - MAX( + 61 ) + + 59 * - 30 AS col1
----
-1831

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT - MAX ( + 61 ) + + 59 * - 30 AS col1
----
-1831

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3259
SELECT + COUNT( * ) DIV - 97 * - COUNT( ALL + 6 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT + COUNT ( * ) / - 97 * - COUNT ( ALL + 6 ) AS col2
----
0

query I rowsort
SELECT ALL 89 + + - 15
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT ALL - 68 + + SUM( - 76 )
----
-144

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL - 68 + + SUM ( - 76 )
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-3262
SELECT 94, + COUNT( * ) * - 61 col2
----
94
-61

skipif mysql # not compatible
query II rowsort label-3262
SELECT 94, + COUNT ( * ) * - 61 col2
----
94
-61

query II rowsort
SELECT ALL - - 33 AS col0, + 85
----
33
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3264
SELECT COUNT( DISTINCT - 41 ) * - 68 + + 42 AS col2, + 69
----
-26
69

skipif mysql # not compatible
query II rowsort label-3264
SELECT COUNT ( DISTINCT - 41 ) * - 68 + + 42 AS col2, + 69
----
-26
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT 1 - 45 - + MIN( + 93 ) AS col0
----
-137

skipif mysql # not compatible
query I rowsort label-3265
SELECT 1 - 45 - + MIN ( + 93 ) AS col0
----
-137

query I rowsort
SELECT DISTINCT + 64 * - 99 AS col0
----
-6336

query I rowsort
SELECT - 24 * - 54 + ( 17 ) - 22 * + NULLIF ( - 52, + - 19 )
----
2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3268
SELECT 36 * COUNT( * ) * 23 * + - COALESCE ( - NULLIF ( + CAST( - 50 AS SIGNED ), 12 ), - 14, 26, 63 )
----
-41400

skipif mysql # not compatible
query I rowsort label-3268
SELECT 36 * COUNT ( * ) * 23 * + - COALESCE ( - NULLIF ( + CAST ( - 50 AS INTEGER ), 12 ), - 14, 26, 63 )
----
-41400

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT 42 + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-3269
SELECT 42 + COUNT ( * )
----
43

query I rowsort
SELECT DISTINCT 6 * - + 20
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-3271
SELECT ALL - 48 DIV 31 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL - 48 / 31 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT - 76 * MAX( ALL - - 96 ) + COUNT( * ) * - ( - NULLIF ( + 79, + + 15 ) ) + + 44 AS col2
----
-7173

skipif mysql # not compatible
query I rowsort label-3272
SELECT - 76 * MAX ( ALL - - 96 ) + COUNT ( * ) * - ( - NULLIF ( + 79, + + 15 ) ) + + 44 AS col2
----
-7173

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT + ( MAX( ALL + + 20 ) ) - - - 36 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3273
SELECT + ( MAX ( ALL + + 20 ) ) - - - 36 AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT + - ( + 66 ) DIV + 66 + 38
----
37

skipif mysql # not compatible
query I rowsort label-3274
SELECT + - ( + 66 ) / + 66 + 38
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3275
SELECT ALL + + ( + 12 ) * + 11 - - 15 + - COUNT( * ) * + MIN( + 62 ) + CAST( - COUNT( * ) AS SIGNED ) * - - COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL + + ( + 12 ) * + 11 - - 15 + - COUNT ( * ) * + MIN ( + 62 ) + CAST ( - COUNT ( * ) AS INTEGER ) * - - COUNT ( * ) AS col2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT + 57 DIV - + 72
----
0

skipif mysql # not compatible
query I rowsort label-3276
SELECT + 57 / - + 72
----
0

query I rowsort
SELECT DISTINCT 37 * - 10 + 44 AS col0
----
-326

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3278
SELECT ALL - COUNT( * ) * - 70 DIV 70 + - - 64
----
65

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL - COUNT ( * ) * - 70 / 70 + - - 64
----
65

query I rowsort
SELECT 1 + - - 48
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL - COUNT( * ) - - 97 - + + 65 * + + 93
----
-5949

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL - COUNT ( * ) - - 97 - + + 65 * + + 93
----
-5949

query I rowsort
SELECT 17 * + + 14
----
238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3282
SELECT ALL + ( + + COUNT( * ) ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + ( + + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3283
SELECT + 95, - 33 DIV - 36 + - - ( + 36 ) + 8 AS col0
----
95
44

skipif mysql # not compatible
query II rowsort label-3283
SELECT + 95, - 33 / - 36 + - - ( + 36 ) + 8 AS col0
----
95
44

query I rowsort
SELECT ALL 42 - 80
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3285
SELECT - 48 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-3285
SELECT - 48 / 97
----
0

query I rowsort
SELECT - 59 + - + 45 AS col1
----
-104

query I rowsort
SELECT - 29 + - 15 AS col0
----
-44

query I rowsort
SELECT ALL - 16 * - 46 AS col1
----
736

query I rowsort
SELECT ALL 52 * - 10 AS col0
----
-520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3290
SELECT ALL - ( CASE COUNT( * ) WHEN + COUNT( * ) THEN - - 16 + + COUNT( * ) ELSE + 44 * + - 82 + COUNT( * ) + + - 64 * - SUM( + 37 ) END ) + 72 + + 41 DIV 84
----
55

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL - ( CASE COUNT ( * ) WHEN + COUNT ( * ) THEN - - 16 + + COUNT ( * ) ELSE + 44 * + - 82 + COUNT ( * ) + + - 64 * - SUM ( + 37 ) END ) + 72 + + 41 / 84
----
55

query II rowsort
SELECT + 75 - - ( + + 76 ) AS col2, + 45 AS col0
----
151
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3292
SELECT - SUM( - CAST( 81 AS SIGNED ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-3292
SELECT - SUM ( - CAST ( 81 AS INTEGER ) ) AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3293
SELECT DISTINCT 81 + + - 13 * ( 41 ) * 13 + - - COALESCE ( - - 12, + 68 DIV + + 89, 3 DIV 11 + + 9 + 95 DIV 50, - 81 * + + 5 * - 53 * - + COUNT( * ) * 1 + + + COUNT( * ) * ( 59 ) * 61 * 55 + 93 * - 70 )
----
-6836

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT 81 + + - 13 * ( 41 ) * 13 + - - COALESCE ( - - 12, + 68 / + + 89, 3 / 11 + + 9 + 95 / 50, - 81 * + + 5 * - 53 * - + COUNT ( * ) * 1 + + + COUNT ( * ) * ( 59 ) * 61 * 55 + 93 * - 70 )
----
-6836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3294
SELECT ALL - 16 + + 1 + + COUNT( * ) * + - 85 DIV 78 * SUM( DISTINCT 73 )
----
-88

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL - 16 + + 1 + + COUNT ( * ) * + - 85 / 78 * SUM ( DISTINCT 73 )
----
-88

query I rowsort
SELECT CASE + 73 WHEN + + AVG ( DISTINCT + 17 ) THEN NULL ELSE + - 17 * + 13 + 91 - 1 END
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3296
SELECT - + ( - CASE NULLIF ( - NULLIF ( + 56, - 68 ), - - 24 - - MAX( - 73 ) + + NULLIF ( + 54, CAST( NULL AS SIGNED ) ) + + - 17 + + 22 * 69 * + 48 * + - 67 ) WHEN - + 90 THEN NULL WHEN + ( 62 ) THEN - + 86 ELSE + + 79 END ) + + + 43 * + 92
----
4035

skipif mysql # not compatible
query I rowsort label-3296
SELECT - + ( - CASE NULLIF ( - NULLIF ( + 56, - 68 ), - - 24 - - MAX ( - 73 ) + + NULLIF ( + 54, CAST ( NULL AS INTEGER ) ) + + - 17 + + 22 * 69 * + 48 * + - 67 ) WHEN - + 90 THEN NULL WHEN + ( 62 ) THEN - + 86 ELSE + + 79 END ) + + + 43 * + 92
----
4035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3297
SELECT + + CAST( - - MIN( ALL - 99 ) AS SIGNED ) + + - 13 DIV - - ( + NULLIF ( - 94, - COALESCE ( + 51, + 74 + + + 6, - 29 * 59 + 43 * - - CAST( COUNT( * ) AS DECIMAL ) + + - 20 - 32 ) ) ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-3297
SELECT + + CAST ( - - MIN ( ALL - 99 ) AS INTEGER ) + + - 13 / - - ( + NULLIF ( - 94, - COALESCE ( + 51, + 74 + + + 6, - 29 * 59 + 43 * - - CAST ( COUNT ( * ) AS REAL ) + + - 20 - 32 ) ) ) col0
----
-99

query I rowsort
SELECT ALL 66 + + 69
----
135

query II rowsort
SELECT + 9 + 98 + + 52, + 52 + + 22 AS col2
----
159
74

query I rowsort
SELECT ALL 49 + 12 + + 57 col0
----
118

query I rowsort
SELECT + 32 + + - 76
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT + + SUM( + - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-3302
SELECT + + SUM ( + - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT - 69, 25 + + 98 + MIN( + + ( - 76 ) ) AS col0
----
-69
47

skipif mysql # not compatible
query II rowsort label-3303
SELECT - 69, 25 + + 98 + MIN ( + + ( - 76 ) ) AS col0
----
-69
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT + 43 / + - CASE + NULLIF ( - + 81, - 12 ) WHEN - 76 THEN - ( - + 0 ) END + CAST( 65 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT + 43 / + - CASE + NULLIF ( - + 81, - 12 ) WHEN - 76 THEN - ( - + 0 ) END + CAST ( 65 AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - 98 * - - 62 * - 69 + 73 AS col2
----
419317

query I rowsort
SELECT - - ( ( 13 ) ) + 15 + + - 17 col1
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-3307
SELECT + 64, - 31 DIV - 69 col0
----
64
0

skipif mysql # not compatible
query II rowsort label-3307
SELECT + 64, - 31 / - 69 col0
----
64
0

query I rowsort
SELECT + - 85 * - 9 + + + 48 AS col1
----
813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT ALL CAST( NULL AS SIGNED ) * - - 28 - - 4 / - - 16 + - 6 * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL CAST ( NULL AS INTEGER ) * - - 28 - - 4 / - - 16 + - 6 * + 95
----
NULL

query I rowsort
SELECT - 72 * - - 15 AS col1
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT ALL 78 * COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL 78 * COUNT ( * ) AS col2
----
78

query I rowsort
SELECT COALESCE ( + 87, + + 43 ) AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3313
SELECT - COUNT( ALL - + NULLIF ( - - CAST( NULL AS SIGNED ), + + 15 ) ) + 67
----
67

skipif mysql # not compatible
query I rowsort label-3313
SELECT - COUNT ( ALL - + NULLIF ( - - CAST ( NULL AS INTEGER ), + + 15 ) ) + 67
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3314
SELECT + 36 * + - COUNT( * ) col1, 59 * + 46 * + 3 + - 30
----
-36
8112

skipif mysql # not compatible
query II rowsort label-3314
SELECT + 36 * + - COUNT ( * ) col1, 59 * + 46 * + 3 + - 30
----
-36
8112

query I rowsort
SELECT NULLIF ( - 41, - 14 ) col0
----
-41

query I rowsort
SELECT - 6 * + 49
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT DISTINCT + 48 * - + 22 * + COUNT( * )
----
-1056

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT + 48 * - + 22 * + COUNT ( * )
----
-1056

onlyif mysql # aggregate syntax: 
query II rowsort label-3318
SELECT DISTINCT + MAX( DISTINCT - - 31 ), + 14 AS col2
----
31
14

skipif mysql # not compatible
query II rowsort label-3318
SELECT DISTINCT + MAX ( DISTINCT - - 31 ), + 14 AS col2
----
31
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - CAST( - AVG ( + 68 ) AS SIGNED ) / 72 + MIN( + 29 ) + + - 15 * - COALESCE ( SUM( DISTINCT 24 ), - COALESCE ( + - MIN( ALL 12 ), + - CAST( NULL AS SIGNED ) * + + 41 * + - 34 ) ) + 19 * + NULLIF ( ( - 45 ), NULLIF ( - + ( + 33 ), COUNT( * ) ) ) * COUNT( * ) + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - CAST ( - AVG ( + 68 ) AS INTEGER ) / 72 + MIN ( + 29 ) + + - 15 * - COALESCE ( SUM ( DISTINCT 24 ), - COALESCE ( + - MIN ( ALL 12 ), + - CAST ( NULL AS INTEGER ) * + + 41 * + - 34 ) ) + 19 * + NULLIF ( ( - 45 ), NULLIF ( - + ( + 33 ), COUNT ( * ) ) ) * COUNT ( * ) + 96 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3320
SELECT ALL + 30 * + CAST( NULL AS SIGNED ) AS col2, - 43 * - 3
----
NULL
129

skipif mysql # not compatible
query II rowsort label-3320
SELECT ALL + 30 * + CAST ( NULL AS INTEGER ) AS col2, - 43 * - 3
----
NULL
129

query I rowsort
SELECT DISTINCT 21 * 2 + + 63 + + 47 * 30 AS col1
----
1515

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT - 46 * + + NULLIF ( MAX( + - 88 ), + 45 ) AS col0
----
4048

skipif mysql # not compatible
query I rowsort label-3322
SELECT - 46 * + + NULLIF ( MAX ( + - 88 ), + 45 ) AS col0
----
4048

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT - 52 + - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-3323
SELECT - 52 + - COUNT ( * )
----
-53

query I rowsort
SELECT ALL + 30 * - 78 AS col0
----
-2340

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT - - 76 DIV - + 84
----
0

skipif mysql # not compatible
query I rowsort label-3325
SELECT - - 76 / - + 84
----
0

query I rowsort
SELECT DISTINCT + 63 + - + 14
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT ALL CASE + COUNT( * ) WHEN + 50 + - 35 THEN NULL WHEN - - ( 80 ) THEN - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL CASE + COUNT ( * ) WHEN + 50 + - 35 THEN NULL WHEN - - ( 80 ) THEN - 93 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT - COUNT( DISTINCT + + ( - - 67 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3328
SELECT - COUNT ( DISTINCT + + ( - - 67 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3329
SELECT - - 24 * - CAST( + - ( + ( + ( + + 81 ) ) ) AS SIGNED )
----
1944

skipif mysql # not compatible
query I rowsort label-3329
SELECT - - 24 * - CAST ( + - ( + ( + ( + + 81 ) ) ) AS INTEGER )
----
1944

query I rowsort
SELECT DISTINCT + - 45 - 33 + + 74 + + 74 * 2 + - + 31
----
113

query I rowsort
SELECT + - 75 * 57
----
-4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT - CAST( - 23 AS SIGNED ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3332
SELECT - CAST ( - 23 AS INTEGER ) AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT - 83 - + + 34 DIV + 72 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3333
SELECT - 83 - + + 34 / + 72 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT + ( - + 98 ) - MAX( ALL 10 ) * - - 2 * - + 91
----
1722

skipif mysql # not compatible
query I rowsort label-3334
SELECT + ( - + 98 ) - MAX ( ALL 10 ) * - - 2 * - + 91
----
1722

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT ALL + - 3 * + 44 * + CASE 15 WHEN 75 + + - 8 - - COUNT( 19 ) THEN + - 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL + - 3 * + 44 * + CASE 15 WHEN 75 + + - 8 - - COUNT ( 19 ) THEN + - 68 END
----
NULL

query I rowsort
SELECT + + 97 * - 54
----
-5238

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT 39 * 40 + - ( + - 86 ) + - MIN( DISTINCT 45 ) + - 92 * 69
----
-4747

skipif mysql # not compatible
query I rowsort label-3337
SELECT 39 * 40 + - ( + - 86 ) + - MIN ( DISTINCT 45 ) + - 92 * 69
----
-4747

query II rowsort
SELECT ALL - - 90 * - 80 AS col2, ( + 92 ) AS col1
----
-7200
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3339
SELECT ALL CAST( + 15 AS SIGNED ) DIV 74 * + + 47 + + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL CAST ( + 15 AS INTEGER ) / 74 * + + 47 + + COUNT ( * ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT 60 / - - CAST( NULL AS SIGNED ) - 38 + 68 + - 64 + - 47 * + + 91 - + 14 * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT 60 / - - CAST ( NULL AS INTEGER ) - 38 + 68 + - 64 + - 47 * + + 91 - + 14 * - 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3341
SELECT CAST( NULL AS SIGNED ) - - - MIN( - - 17 ) / + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT CAST ( NULL AS INTEGER ) - - - MIN ( - - 17 ) / + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3342
SELECT ALL CAST( NULL AS DECIMAL ) / 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL CAST ( NULL AS REAL ) / 6 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3343
SELECT 33 * - - COALESCE ( + + 74, + + 94 + 24 * + ( 0 ) * + CAST( NULL AS SIGNED ) + - - 2 * + CASE + 80 WHEN + - COUNT( * ) * - 52 THEN + 72 WHEN - 7 THEN - 71 * - 95 END, + ( + CAST( NULL AS SIGNED ) ) ) + - + ( - + 2 ) AS col1
----
2444

skipif mysql # not compatible
query I rowsort label-3343
SELECT 33 * - - COALESCE ( + + 74, + + 94 + 24 * + ( 0 ) * + CAST ( NULL AS INTEGER ) + - - 2 * + CASE + 80 WHEN + - COUNT ( * ) * - 52 THEN + 72 WHEN - 7 THEN - 71 * - 95 END, + ( + CAST ( NULL AS INTEGER ) ) ) + - + ( - + 2 ) AS col1
----
2444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3344
SELECT 61 * 89 DIV - 49 * + COUNT( * ) AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-3344
SELECT 61 * 89 / - 49 * + COUNT ( * ) AS col2
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT 36 + - 96 DIV - MAX( ALL 11 ) - - - 64
----
-20

skipif mysql # not compatible
query I rowsort label-3345
SELECT 36 + - 96 / - MAX ( ALL 11 ) - - - 64
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3346
SELECT ALL - 89 + - + 2 DIV + MAX( ALL 17 )
----
-89

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL - 89 + - + 2 / + MAX ( ALL 17 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT NULLIF ( - 83, + 75 + + 69 * + 23 / + 35 + 88 ) + + COUNT( * ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-3347
SELECT NULLIF ( - 83, + 75 + + 69 * + 23 / + 35 + 88 ) + + COUNT ( * ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3348
SELECT + 24 AS col0, - COUNT( * ) * + 67 * - 12
----
24
804

skipif mysql # not compatible
query II rowsort label-3348
SELECT + 24 AS col0, - COUNT ( * ) * + 67 * - 12
----
24
804

query I rowsort
SELECT 57 + 80 col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL + 14 + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL + 14 + - COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT 19 + - - MIN( 13 ) + + - COUNT( DISTINCT - 66 ) * - + 70 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-3351
SELECT 19 + - - MIN ( 13 ) + + - COUNT ( DISTINCT - 66 ) * - + 70 AS col1
----
102

query I rowsort
SELECT ALL - 34 + - 75
----
-109

query I rowsort
SELECT ALL + 75 * + 62 AS col0
----
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT - ( - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3354
SELECT - ( - COUNT ( * ) ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3355
SELECT - 1 + - CASE 43 WHEN - + 93 THEN ( 5 ) + 86 * 91 + - COUNT( * ) WHEN - 19 / - 85 / + CAST( + 34 AS SIGNED ) - 14 + - COALESCE ( 50, - ( 64 ) * + + 17 + COUNT( * ) + - 88 + 89 + - 4 * + - NULLIF ( + ( 0 ), - CAST( - 20 AS SIGNED ) * - 60 ) - - 95 / + 12 ) * - 35 THEN - 51 * 98 - CAST( - 56 + 10 AS SIGNED ) END + 56 * 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT - 1 + - CASE 43 WHEN - + 93 THEN ( 5 ) + 86 * 91 + - COUNT ( * ) WHEN - 19 / - 85 / + CAST ( + 34 AS INTEGER ) - 14 + - COALESCE ( 50, - ( 64 ) * + + 17 + COUNT ( * ) + - 88 + 89 + - 4 * + - NULLIF ( + ( 0 ), - CAST ( - 20 AS INTEGER ) * - 60 ) - - 95 / + 12 ) * - 35 THEN - 51 * 98 - CAST ( - 56 + 10 AS INTEGER ) END + 56 * 14 AS col1
----
NULL

query I rowsort
SELECT - ( - 73 ) AS col0
----
73

query I rowsort
SELECT 88 + - ( - 21 )
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT - 53 DIV - + 97
----
0

skipif mysql # not compatible
query I rowsort label-3358
SELECT - 53 / - + 97
----
0

query I rowsort
SELECT - 67 + 71 + + + 28 * + 84 col1
----
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT + NULLIF ( - COALESCE ( - - 33, + MIN( ALL + 27 ), + COUNT( - 49 ) ), 88 ) * COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-3360
SELECT + NULLIF ( - COALESCE ( - - 33, + MIN ( ALL + 27 ), + COUNT ( - 49 ) ), 88 ) * COUNT ( * )
----
-33

query I rowsort
SELECT 80 + - + 23 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL - 38 - + - COUNT( * ) + + 30 * + 63
----
1853

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL - 38 - + - COUNT ( * ) + + 30 * + 63
----
1853

query I rowsort
SELECT DISTINCT + 79 * 35 AS col1
----
2765

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT + COALESCE ( MIN( ALL - 26 ), + 67 ) * + + 7
----
-182

skipif mysql # not compatible
query I rowsort label-3364
SELECT + COALESCE ( MIN ( ALL - 26 ), + 67 ) * + + 7
----
-182

query I rowsort
SELECT ALL - ( - 75 )
----
75

query I rowsort
SELECT 7 * + + 92
----
644

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT COALESCE ( + ( - 53 ), + 61 * - - MAX( ALL 35 ) * 64 * 28 - + - 97 ) * + + 24
----
-1272

skipif mysql # not compatible
query I rowsort label-3367
SELECT COALESCE ( + ( - 53 ), + 61 * - - MAX ( ALL 35 ) * 64 * 28 - + - 97 ) * + + 24
----
-1272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3368
SELECT 65 DIV - SUM( ALL - - 11 ) + 13
----
8

skipif mysql # not compatible
query I rowsort label-3368
SELECT 65 / - SUM ( ALL - - 11 ) + 13
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT COUNT( * ) + + 2
----
3

skipif mysql # not compatible
query I rowsort label-3369
SELECT COUNT ( * ) + + 2
----
3

query II rowsort
SELECT + 45, - 75 AS col2
----
45
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT 45 * - - COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3371
SELECT 45 * - - COUNT ( * ) AS col2
----
45

query II rowsort
SELECT ALL - 16 AS col1, 94
----
-16
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT DISTINCT 36 + - COUNT( * ) * 39 * COUNT( ALL + 75 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT 36 + - COUNT ( * ) * 39 * COUNT ( ALL + 75 ) AS col1
----
-3

query II rowsort
SELECT ALL 71 + 14 + - 21 + + + 37 AS col2, - 69
----
101
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT SUM( - + 89 ) + - - 85 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3375
SELECT SUM ( - + 89 ) + - - 85 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT 82 + - 51 + - - 85 + + - 45 * - + CASE COUNT( * ) WHEN + COALESCE ( - 7, 70, + COUNT( * ) ) * - + 70 THEN - 95 WHEN + 89 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT 82 + - 51 + - - 85 + + - 45 * - + CASE COUNT ( * ) WHEN + COALESCE ( - 7, 70, + COUNT ( * ) ) * - + 70 THEN - 95 WHEN + 89 THEN NULL ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT + 14, + 35 AS col2
----
14
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3378
SELECT 77 + - 49 + COUNT( * ) + 79 col1, 45 col1
----
108
45

skipif mysql # not compatible
query II rowsort label-3378
SELECT 77 + - 49 + COUNT ( * ) + 79 col1, 45 col1
----
108
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + COUNT( - - 96 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3379
SELECT + COUNT ( - - 96 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3380
SELECT DISTINCT 76 DIV + MIN( + + 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT 76 / + MIN ( + + 72 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3381
SELECT MIN( - 41 ) * COALESCE ( 98, - CAST( + + 2 AS SIGNED ) ) * - - COALESCE ( 53, - - 83 )
----
-212954

skipif mysql # not compatible
query I rowsort label-3381
SELECT MIN ( - 41 ) * COALESCE ( 98, - CAST ( + + 2 AS INTEGER ) ) * - - COALESCE ( 53, - - 83 )
----
-212954

query I rowsort
SELECT 60 * + - ( - 87 )
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT + 44 * + 97 * - - COUNT( * ) - + 34 AS col2
----
4234

skipif mysql # not compatible
query I rowsort label-3383
SELECT + 44 * + 97 * - - COUNT ( * ) - + 34 AS col2
----
4234

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT + SUM( DISTINCT + 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3384
SELECT + SUM ( DISTINCT + 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3385
SELECT + - 33 AS col2, COUNT( * ) DIV - 79
----
-33
0

skipif mysql # not compatible
query II rowsort label-3385
SELECT + - 33 AS col2, COUNT ( * ) / - 79
----
-33
0

query I rowsort
SELECT ALL - + 32 AS col1
----
-32

query II rowsort
SELECT + 87 AS col0, 3
----
87
3

query I rowsort
SELECT - 85 * 63
----
-5355

query I rowsort
SELECT 33 * + 56 AS col1
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT ( + MIN( DISTINCT + + ( - 35 ) ) ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3390
SELECT ( + MIN ( DISTINCT + + ( - 35 ) ) ) AS col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3391
SELECT - 87 DIV - 66 - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3391
SELECT - 87 / - 66 - COUNT ( * )
----
0

query II rowsort
SELECT - + ( 93 ), 95 AS col0
----
-93
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3393
SELECT DISTINCT - ( 34 ) DIV + + 52
----
0

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT - ( 34 ) / + + 52
----
0

query I rowsort
SELECT + 45 + 45 - - 63 col2
----
153

query I rowsort
SELECT COALESCE ( - 2, + 60, - 78 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL - - 36 * COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL - - 36 * COUNT ( * )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3397
SELECT + + NULLIF ( 77, ( + + CAST( NULL AS SIGNED ) ) * + + 64 ) DIV - 97, + SUM( DISTINCT - + 67 ) * + NULLIF ( + 3, - - 1 + - 27 ) AS col0
----
0
-201

skipif mysql # not compatible
query II rowsort label-3397
SELECT + + NULLIF ( 77, ( + + CAST ( NULL AS INTEGER ) ) * + + 64 ) / - 97, + SUM ( DISTINCT - + 67 ) * + NULLIF ( + 3, - - 1 + - 27 ) AS col0
----
0
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + 58 + - + 21 + - - 43 * - + COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-3398
SELECT + 58 + - + 21 + - - 43 * - + COUNT ( * ) col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT - COUNT( * ) * MIN( + 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-3399
SELECT - COUNT ( * ) * MIN ( + 42 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-3400
SELECT - COUNT( * ) * - 84 AS col1, + 4 - - - 49 - + - 80
----
84
35

skipif mysql # not compatible
query II rowsort label-3400
SELECT - COUNT ( * ) * - 84 AS col1, + 4 - - - 49 - + - 80
----
84
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 55 + - - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 55 + - - 24 AS col1
----
NULL

query I rowsort
SELECT - 15 * 69 * 32 * + 3 + 30 AS col2
----
-99330

onlyif mysql # aggregate syntax: 
query II rowsort label-3403
SELECT + SUM( ALL + 94 ), 38 + + + 87 col0
----
94
125

skipif mysql # not compatible
query II rowsort label-3403
SELECT + SUM ( ALL + 94 ), 38 + + + 87 col0
----
94
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3404
SELECT + 12 + - 86 + COUNT( * ) DIV + + 76
----
-74

skipif mysql # not compatible
query I rowsort label-3404
SELECT + 12 + - 86 + COUNT ( * ) / + + 76
----
-74

query I rowsort
SELECT ALL - 26 * - ( - 74 ) AS col1
----
-1924

onlyif mysql # aggregate syntax: 
query II rowsort label-3406
SELECT ALL ( + ( - 85 ) ) * - 27 + - 34 - - NULLIF ( 19, COUNT( * ) * 18 + 25 ), + 9 AS col0
----
2280
9

skipif mysql # not compatible
query II rowsort label-3406
SELECT ALL ( + ( - 85 ) ) * - 27 + - 34 - - NULLIF ( 19, COUNT ( * ) * 18 + 25 ), + 9 AS col0
----
2280
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT + COUNT( + 28 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3407
SELECT + COUNT ( + 28 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3408
SELECT ALL 87 * + + 10 AS col0, + COUNT( ALL - 98 ) * + 44 AS col1
----
870
44

skipif mysql # not compatible
query II rowsort label-3408
SELECT ALL 87 * + + 10 AS col0, + COUNT ( ALL - 98 ) * + 44 AS col1
----
870
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3409
SELECT NULLIF ( - MAX( - 59 ), 45 / 14 ), + 33 + - 7 AS col2
----
59
26

skipif mysql # not compatible
query II rowsort label-3409
SELECT NULLIF ( - MAX ( - 59 ), 45 / 14 ), + 33 + - 7 AS col2
----
59
26

query I rowsort
SELECT ALL - 26 * + 70 AS col1
----
-1820

query II rowsort
SELECT + 60 * + 12 AS col0, 76
----
720
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT + - SUM( 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-3412
SELECT + - SUM ( 31 )
----
-31

query I rowsort
SELECT - - 51 + + 79 + 46 AS col0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT - - 93 * 26 + - + COUNT( * ) col1
----
2417

skipif mysql # not compatible
query I rowsort label-3414
SELECT - - 93 * 26 + - + COUNT ( * ) col1
----
2417

query I rowsort
SELECT + + ( - 59 ) * - 19 AS col2
----
1121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3416
SELECT ALL + 82 DIV + COUNT( * ) AS col1, 83 AS col0
----
82
83

skipif mysql # not compatible
query II rowsort label-3416
SELECT ALL + 82 / + COUNT ( * ) AS col1, 83 AS col0
----
82
83

query I rowsort
SELECT + + 76 + + NULLIF ( 77, + + 38 ) AS col1
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3418
SELECT + 5 DIV + CAST( - 97 AS SIGNED ) * 40 * 61 + + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3418
SELECT + 5 / + CAST ( - 97 AS INTEGER ) * 40 * 61 + + - COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3419
SELECT DISTINCT + 54 DIV - 68 - - ( - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT + 54 / - 68 - - ( - 92 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3420
SELECT + MAX( - ( - CAST( NULL AS SIGNED ) ) ) + - SUM( DISTINCT - ( + 53 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT + MAX ( - ( - CAST ( NULL AS INTEGER ) ) ) + - SUM ( DISTINCT - ( + 53 ) )
----
NULL

query I rowsort
SELECT + 76 + - - 59 AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL COUNT( * ) * 18 col2
----
18

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL COUNT ( * ) * 18 col2
----
18

query I rowsort
SELECT + + 35 + ( - 21 ) AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3424
SELECT + - CAST( - 38 AS SIGNED ) + 51 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3424
SELECT + - CAST ( - 38 AS INTEGER ) + 51 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT + + MAX( ALL 38 ) * - 78 - 26 AS col0
----
-2990

skipif mysql # not compatible
query I rowsort label-3425
SELECT + + MAX ( ALL 38 ) * - 78 - 26 AS col0
----
-2990

query II rowsort
SELECT + + 86 + - 43 AS col2, + ( + 13 )
----
43
13

query I rowsort
SELECT - - 11 + 31
----
42

query I rowsort
SELECT ALL - 5 + - 92 + + - 89 * + - 86 AS col2
----
7557

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3429
SELECT ALL 78 + 65 * - 33 * 35 DIV COUNT( * )
----
-74997

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL 78 + 65 * - 33 * 35 / COUNT ( * )
----
-74997

query I rowsort
SELECT DISTINCT NULLIF ( + + 42, + - ( - - 69 ) ) + 8 AS col2
----
50

query I rowsort
SELECT ALL NULLIF ( - 80, - + 42 / 68 ) col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT ALL + 75 + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL + 75 + COUNT ( * )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3433
SELECT ALL CAST( - 38 AS SIGNED ) + - 61, 41 * + 27 * - MIN( DISTINCT 47 ) + - 1 - + 14 AS col0
----
-99
-52044

skipif mysql # not compatible
query II rowsort label-3433
SELECT ALL CAST ( - 38 AS INTEGER ) + - 61, 41 * + 27 * - MIN ( DISTINCT 47 ) + - 1 - + 14 AS col0
----
-99
-52044

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT DISTINCT + 57 + - 92 - + 21 * - 3 + - - ( - - COUNT( * ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT + 57 + - 92 - + 21 * - 3 + - - ( - - COUNT ( * ) ) AS col0
----
29

query I rowsort
SELECT ALL - 2 + - 58
----
-60

query I rowsort
SELECT - 59 * - ( - - 62 ) AS col0
----
3658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3437
SELECT + 71 + - + SUM( DISTINCT + 50 ) DIV 69
----
71

skipif mysql # not compatible
query I rowsort label-3437
SELECT + 71 + - + SUM ( DISTINCT + 50 ) / 69
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT - ( - - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3438
SELECT - ( - - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3439
SELECT DISTINCT COUNT( * ) DIV - 42 + + 14
----
14

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT COUNT ( * ) / - 42 + + 14
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3440
SELECT + COUNT( * ) * + 93 DIV + + 16 AS col2, CAST( NULL AS SIGNED ) + - - 61 + - + COUNT( * ) AS col0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-3440
SELECT + COUNT ( * ) * + 93 / + + 16 AS col2, CAST ( NULL AS INTEGER ) + - - 61 + - + COUNT ( * ) AS col0
----
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3441
SELECT CAST( NULL AS SIGNED ) col2, 52 + + 61
----
NULL
113

skipif mysql # not compatible
query II rowsort label-3441
SELECT CAST ( NULL AS INTEGER ) col2, 52 + + 61
----
NULL
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3442
SELECT CAST( - 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-3442
SELECT CAST ( - 46 AS INTEGER )
----
-46

query II rowsort
SELECT DISTINCT ( + + 86 ) * 38 AS col0, + 79 * + 86 AS col2
----
3268
6794

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT DISTINCT 42 DIV 75 - - - 20 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT 42 / 75 - - - 20 AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3445
SELECT ALL + COALESCE ( 61, + + CASE + 23 WHEN + - 67 * 63 THEN 87 + - 14 * + 83 DIV - COUNT( * ) + ( + 30 ) WHEN - + 42 THEN NULL ELSE 67 END * + 83 * + 89 ) AS col1, - 46 AS col1
----
61
-46

skipif mysql # not compatible
query II rowsort label-3445
SELECT ALL + COALESCE ( 61, + + CASE + 23 WHEN + - 67 * 63 THEN 87 + - 14 * + 83 / - COUNT ( * ) + ( + 30 ) WHEN - + 42 THEN NULL ELSE 67 END * + 83 * + 89 ) AS col1, - 46 AS col1
----
61
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT + COUNT( * ) * - 0 + + - 94 + - 65 AS col1
----
-159

skipif mysql # not compatible
query I rowsort label-3446
SELECT + COUNT ( * ) * - 0 + + - 94 + - 65 AS col1
----
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-3447
SELECT ALL + COUNT( * ) AS col2, 45 * + 13 col0
----
1
585

skipif mysql # not compatible
query II rowsort label-3447
SELECT ALL + COUNT ( * ) AS col2, 45 * + 13 col0
----
1
585

onlyif mysql # aggregate syntax: 
query II rowsort label-3448
SELECT DISTINCT + COUNT( * ), - CASE - ( + 71 ) WHEN - 16 + + SUM( DISTINCT 36 ) THEN NULL ELSE - - 96 + 83 END * + 81 AS col2
----
1
-14499

skipif mysql # not compatible
query II rowsort label-3448
SELECT DISTINCT + COUNT ( * ), - CASE - ( + 71 ) WHEN - 16 + + SUM ( DISTINCT 36 ) THEN NULL ELSE - - 96 + 83 END * + 81 AS col2
----
1
-14499

query II rowsort
SELECT ALL + 57 col1, + 84 + + 45
----
57
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3450
SELECT ALL - 65 DIV + + 81 - COUNT( * ) AS col2, + COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-3450
SELECT ALL - 65 / + + 81 - COUNT ( * ) AS col2, + COUNT ( * ) AS col0
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3451
SELECT ALL + COALESCE ( - 61, + - NULLIF ( + - ( COUNT( * ) ), + 71 ) + + CAST( NULL AS SIGNED ), + 43 + CAST( - + 41 AS SIGNED ) ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + COALESCE ( - 61, + - NULLIF ( + - ( COUNT ( * ) ), + 71 ) + + CAST ( NULL AS INTEGER ), + 43 + CAST ( - + 41 AS INTEGER ) ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT - - 66 + - - SUM( 30 )
----
96

skipif mysql # not compatible
query I rowsort label-3452
SELECT - - 66 + - - SUM ( 30 )
----
96

query I rowsort
SELECT - + ( + + 78 ) + ( 24 ) + + 99 col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT - + 47 DIV - 10 - + + ( + - 82 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3454
SELECT - + 47 / - 10 - + + ( + - 82 ) AS col2
----
86

query I rowsort
SELECT DISTINCT + + 98 AS col0
----
98

query II rowsort
SELECT + + 19, - 9 * 77 - 99 col2
----
19
-792

query I rowsort
SELECT DISTINCT - ( - 15 ) AS col1
----
15

query I rowsort
SELECT ALL - 70 + + 7
----
-63

query II rowsort
SELECT DISTINCT 23 AS col2, 95
----
23
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT ALL - 1 + - 25 * - + CAST( - 96 AS SIGNED )
----
-2401

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL - 1 + - 25 * - + CAST ( - 96 AS INTEGER )
----
-2401

query II rowsort
SELECT 84 AS col2, + 27
----
84
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3462
SELECT 45 DIV 19 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3462
SELECT 45 / 19 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT + 96 * - 84 + + - SUM( 56 ) AS col1
----
-8120

skipif mysql # not compatible
query I rowsort label-3463
SELECT + 96 * - 84 + + - SUM ( 56 ) AS col1
----
-8120

query I rowsort
SELECT ( - 83 ) * 97
----
-8051

query I rowsort
SELECT 22 - - - ( ( - 70 ) )
----
92

query I rowsort
SELECT DISTINCT - 7 + - + 51 AS col0
----
-58

query I rowsort
SELECT 45 * - + 43 AS col1
----
-1935

query I rowsort
SELECT ALL - ( + ( 42 ) ) + - 68
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3469
SELECT DISTINCT 13 * 29 AS col0, + CASE + 6 WHEN ( - CAST( + + 68 AS SIGNED ) ) THEN - - 25 + - 51 ELSE NULL END + - 50 * ( 95 ) * MAX( ALL - + 17 ) - 32 + - - 41 * - + COUNT( * ) - - 73 + COALESCE ( - COUNT( * ), - 72 + - ( 52 ) ) * + 80
----
377
NULL

skipif mysql # not compatible
query II rowsort label-3469
SELECT DISTINCT 13 * 29 AS col0, + CASE + 6 WHEN ( - CAST ( + + 68 AS INTEGER ) ) THEN - - 25 + - 51 ELSE NULL END + - 50 * ( 95 ) * MAX ( ALL - + 17 ) - 32 + - - 41 * - + COUNT ( * ) - - 73 + COALESCE ( - COUNT ( * ), - 72 + - ( 52 ) ) * + 80
----
377
NULL

query I rowsort
SELECT ALL 24 * 54 * + NULLIF ( 42, - + 97 ) AS col0
----
54432

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT 35 + - + COUNT( * ) + 66
----
100

skipif mysql # not compatible
query I rowsort label-3471
SELECT 35 + - + COUNT ( * ) + 66
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT MAX( DISTINCT - ( + + ( + 92 ) ) ) * - 31
----
2852

skipif mysql # not compatible
query I rowsort label-3472
SELECT MAX ( DISTINCT - ( + + ( + 92 ) ) ) * - 31
----
2852

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT NULLIF ( + NULLIF ( + COALESCE ( + COUNT( * ), + 52, SUM( + + 76 ) ), + - ( - COUNT( * ) ) ), + 27 ) + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT NULLIF ( + NULLIF ( + COALESCE ( + COUNT ( * ), + 52, SUM ( + + 76 ) ), + - ( - COUNT ( * ) ) ), + 27 ) + 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL 18 - - - MAX( DISTINCT 57 ) col1
----
-39

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL 18 - - - MAX ( DISTINCT 57 ) col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT DISTINCT 23 * - CASE + 21 WHEN CASE NULLIF ( - 35, + 92 + + 53 ) WHEN + - 58 THEN - + NULLIF ( + 84, - 53 - 88 * - CASE + 64 WHEN 96 THEN COUNT( DISTINCT - 78 ) * + MAX( ALL 17 ) * - 69 + + 32 * + + 63 END * - COUNT( * ) * + 48 * AVG ( - 93 ) + COUNT( * ) ) WHEN - COALESCE ( 26, + 36 ) / - COUNT( * ) THEN NULL END + 54 THEN + 26 * 46 END * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT 23 * - CASE + 21 WHEN CASE NULLIF ( - 35, + 92 + + 53 ) WHEN + - 58 THEN - + NULLIF ( + 84, - 53 - 88 * - CASE + 64 WHEN 96 THEN COUNT ( DISTINCT - 78 ) * + MAX ( ALL 17 ) * - 69 + + 32 * + + 63 END * - COUNT ( * ) * + 48 * AVG ( - 93 ) + COUNT ( * ) ) WHEN - COALESCE ( 26, + 36 ) / - COUNT ( * ) THEN NULL END + 54 THEN + 26 * 46 END * + 5
----
NULL

query I rowsort
SELECT + 32 * + 54 + + 2 AS col2
----
1730

onlyif mysql # DIV for integer division: 
query II rowsort label-3477
SELECT DISTINCT 11 DIV + 77, - 8 + 8 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-3477
SELECT DISTINCT 11 / + 77, - 8 + 8 AS col0
----
0
0

query II rowsort
SELECT + 69 * + 60 + + 11 * 20 AS col0, 40 AS col0
----
4360
40

query I rowsort
SELECT 5 + + 76 AS col1
----
81

query I rowsort
SELECT ( 62 ) * + 74 - + + 6 AS col0
----
4582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3481
SELECT ALL COUNT( * ) * - + CAST( - + 13 AS SIGNED ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL COUNT ( * ) * - + CAST ( - + 13 AS INTEGER ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3482
SELECT - MIN( 8 ) * + + MIN( + 40 ) * + 24, - 56 col0
----
-7680
-56

skipif mysql # not compatible
query II rowsort label-3482
SELECT - MIN ( 8 ) * + + MIN ( + 40 ) * + 24, - 56 col0
----
-7680
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3483
SELECT + 0 * 8 + - 59 - + 18 + - + 48 + + 90 + - 23 + + - ( + 76 ) - - - 7 + - + COALESCE ( - + 82, - 76 ) * + COUNT( + 62 ) + 38 DIV - - COUNT( * ) + - 18
----
-39

skipif mysql # not compatible
query I rowsort label-3483
SELECT + 0 * 8 + - 59 - + 18 + - + 48 + + 90 + - 23 + + - ( + 76 ) - - - 7 + - + COALESCE ( - + 82, - 76 ) * + COUNT ( + 62 ) + 38 / - - COUNT ( * ) + - 18
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3484
SELECT DISTINCT - ( + 82 ) + + 45 DIV + 67
----
-82

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT - ( + 82 ) + + 45 / + 67
----
-82

query I rowsort
SELECT ALL 92 * - 58
----
-5336

query I rowsort
SELECT DISTINCT 10 * + 68
----
680

query I rowsort
SELECT ALL + 4 + - + COALESCE ( + 43, - ( 11 ) * + 19 ) - - 49 + - + 5 * + - 90 * + 74
----
33310

query I rowsort
SELECT ALL + 30 + - + ( - 24 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT 67 + + 48 + - - ( - + 50 ) - - 41 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT 67 + + 48 + - - ( - + 50 ) - - 41 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 11 * - - 37 * 66
----
26862

query I rowsort
SELECT - 11 + + + 54
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT 90 + COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3492
SELECT 90 + COUNT ( * ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT DISTINCT + + COUNT( * ) * - 42
----
-42

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT + + COUNT ( * ) * - 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL + SUM( DISTINCT - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + SUM ( DISTINCT - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3495
SELECT + AVG ( DISTINCT CASE - 55 WHEN 28 THEN - + 13 - + 56 * - 25 WHEN + 85 + - 79 THEN NULL END ) + 82 + 26 - + - COUNT( * ), - ( 43 ) AS col1
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-3495
SELECT + AVG ( DISTINCT CASE - 55 WHEN 28 THEN - + 13 - + 56 * - 25 WHEN + 85 + - 79 THEN NULL END ) + 82 + 26 - + - COUNT ( * ), - ( 43 ) AS col1
----
NULL
-43

query I rowsort
SELECT ALL + + 41 + - - 67 AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + 70 * - ( + COUNT( * ) ) col2
----
-70

skipif mysql # not compatible
query I rowsort label-3497
SELECT + 70 * - ( + COUNT ( * ) ) col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3498
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 54 * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 54 * 66
----
NULL

query I rowsort
SELECT 61 + 27
----
88

query II rowsort
SELECT 15 AS col2, + 75 AS col2
----
15
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT CASE + 81 WHEN - COUNT( * ) THEN ( + 92 ) END + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3501
SELECT CASE + 81 WHEN - COUNT ( * ) THEN ( + 92 ) END + + 24
----
NULL

query I rowsort
SELECT 42 * 63 AS col1
----
2646

query I rowsort
SELECT 80 + + 90 col2
----
170

query I rowsort
SELECT ALL - 39 - + + 90 + 97 + + + 17 * - - 53 AS col2
----
869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3505
SELECT ALL COUNT( * ) DIV + 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL COUNT ( * ) / + 9 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3506
SELECT ALL + 40 - 9 + CAST( NULL AS SIGNED ) * + ( + - COUNT( * ) ) * - 70 + + 65 + - - 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL + 40 - 9 + CAST ( NULL AS INTEGER ) * + ( + - COUNT ( * ) ) * - 70 + + 65 + - - 22 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT DISTINCT - 85 DIV 46
----
-1

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT - 85 / 46
----
-1

query I rowsort
SELECT DISTINCT 6 * - 15 AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3509
SELECT ALL COUNT( * ), - CASE + - ( 79 ) WHEN + 5 * - 23 THEN NULL WHEN + 8 THEN - CASE - 70 WHEN + 84 - 22 / 17 THEN + + 6 * + - 28 + + - 82 WHEN COUNT( * ) / 5 + CAST( 35 AS SIGNED ) * + MAX( DISTINCT + + 10 ) * - 90 THEN - - 73 + - + 67 - + + 68 END * + - 29 ELSE NULL END + + 7 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3509
SELECT ALL COUNT ( * ), - CASE + - ( 79 ) WHEN + 5 * - 23 THEN NULL WHEN + 8 THEN - CASE - 70 WHEN + 84 - 22 / 17 THEN + + 6 * + - 28 + + - 82 WHEN COUNT ( * ) / 5 + CAST ( 35 AS INTEGER ) * + MAX ( DISTINCT + + 10 ) * - 90 THEN - - 73 + - + 67 - + + 68 END * + - 29 ELSE NULL END + + 7 AS col2
----
1
NULL

query I rowsort
SELECT 66 * + 37
----
2442

query I rowsort
SELECT DISTINCT 70 * + 57
----
3990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3512
SELECT + 20 AS col1, ( - COALESCE ( - 2, COALESCE ( + CAST( NULLIF ( - 60, 26 ) AS SIGNED ), 39 + - COUNT( * ) ), 8 ) )
----
20
2

skipif mysql # not compatible
query II rowsort label-3512
SELECT + 20 AS col1, ( - COALESCE ( - 2, COALESCE ( + CAST ( NULLIF ( - 60, 26 ) AS INTEGER ), 39 + - COUNT ( * ) ), 8 ) )
----
20
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3513
SELECT CASE WHEN + CAST( + + 14 AS SIGNED ) NOT IN ( 4 * + + 15, - 96, - 55 ) THEN + + 22 * COUNT( * ) ELSE COUNT( * ) END AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3513
SELECT CASE WHEN + CAST ( + + 14 AS INTEGER ) NOT IN ( 4 * + + 15, - 96, - 55 ) THEN + + 22 * COUNT ( * ) ELSE COUNT ( * ) END AS col2
----
22

query I rowsort
SELECT ( - - 14 ) * - 83 AS col1
----
-1162

onlyif mysql # DIV for integer division: 
query I rowsort label-3515
SELECT + 98 * - 70 DIV - 10 - - ( - - 20 )
----
706

skipif mysql # not compatible
query I rowsort label-3515
SELECT + 98 * - 70 / - 10 - - ( - - 20 )
----
706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT ALL - ( - CAST( + COUNT( ALL + 10 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL - ( - CAST ( + COUNT ( ALL + 10 ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT - 73 * 49 * - - CASE + MIN( + + 64 ) WHEN COUNT( * ) THEN NULL WHEN + + 20 / 81 THEN - + 59 END + 3 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3517
SELECT - 73 * 49 * - - CASE + MIN ( + + 64 ) WHEN COUNT ( * ) THEN NULL WHEN + + 20 / 81 THEN - + 59 END + 3 col0
----
NULL

query I rowsort
SELECT + - 14 * - 96 AS col2
----
1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3519
SELECT DISTINCT + - 87 * - - ( CAST( NULL AS SIGNED ) ) + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT + - 87 * - - ( CAST ( NULL AS INTEGER ) ) + 32 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3520
SELECT ALL + + CASE COUNT( + - 3 ) WHEN - SUM( + - 13 ) + + - ( COALESCE ( + 97, CAST( - COUNT( * ) AS SIGNED ) + + - 50 ) ) THEN + 70 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL + + CASE COUNT ( + - 3 ) WHEN - SUM ( + - 13 ) + + - ( COALESCE ( + 97, CAST ( - COUNT ( * ) AS INTEGER ) + + - 50 ) ) THEN + 70 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + - ( - 81 ) * + 99 * - ( + 4 ) + - ( 69 ) + - 21 * + - 16 * + 50 * + 29 col2
----
455055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3522
SELECT + 82 DIV + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-3522
SELECT + 82 / + COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + ( - COUNT( DISTINCT 34 ) ) + - + COALESCE ( + 48, 94 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3523
SELECT + ( - COUNT ( DISTINCT 34 ) ) + - + COALESCE ( + 48, 94 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT DISTINCT + SUM( + + 36 ) * 33 + 32 + + 20 + + + 60 + - 72 AS col0
----
1228

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT + SUM ( + + 36 ) * 33 + 32 + + 20 + + + 60 + - 72 AS col0
----
1228

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL + COUNT( * ) * - 15 + - 80 + + + 10 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + COUNT ( * ) * - 15 + - 80 + + + 10 AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3526
SELECT + + 12 * 90 * + CAST( NULL AS SIGNED ) / - ( - + 2 ) * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT + + 12 * 90 * + CAST ( NULL AS INTEGER ) / - ( - + 2 ) * 51
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3527
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - - 23 + + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT CAST ( NULL AS REAL ) * - - 23 + + 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT - MAX( ALL + 6 ) * - COALESCE ( - + COUNT( * ), - 25 + COUNT( * ), - - 95 * - 95 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3528
SELECT - MAX ( ALL + 6 ) * - COALESCE ( - + COUNT ( * ), - 25 + COUNT ( * ), - - 95 * - 95 ) AS col2
----
-6

query I rowsort
SELECT DISTINCT + 99 - + 78
----
21

query I rowsort
SELECT - ( + 0 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT - CAST( NULL AS SIGNED ) * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT - CAST ( NULL AS INTEGER ) * 71
----
NULL

query I rowsort
SELECT - 1 - + 55 AS col2
----
-56

query II rowsort
SELECT ALL 42 AS col2, + 52
----
42
52

query I rowsort
SELECT ALL + 80 * + 81
----
6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3535
SELECT - CAST( 59 AS SIGNED ) * + COUNT( * ) + - 38 + 12 * + COUNT( DISTINCT 30 )
----
-85

skipif mysql # not compatible
query I rowsort label-3535
SELECT - CAST ( 59 AS INTEGER ) * + COUNT ( * ) + - 38 + 12 * + COUNT ( DISTINCT 30 )
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-3536
SELECT - 50 AS col2, + 7 * - COALESCE ( + + 31, 96 ) + 39 DIV + 58
----
-50
-217

skipif mysql # not compatible
query II rowsort label-3536
SELECT - 50 AS col2, + 7 * - COALESCE ( + + 31, 96 ) + 39 / + 58
----
-50
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL ( - + COUNT ( * ) ) AS col1
----
-1

query II rowsort
SELECT - 52 col0, - 48 * - + 83 col2
----
-52
3984

query I rowsort
SELECT ALL - 81 * 13 * 70 * - 88 * - 38 AS col1
----
-246486240

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT - 58 * - NULLIF ( COUNT( DISTINCT - + 47 ), - CASE - 20 WHEN + 17 - + + 37 + + 4 - - 88 THEN NULL WHEN 26 THEN NULL WHEN + + 31 THEN + + 21 WHEN + + 45 THEN NULL END - + - 27 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3540
SELECT - 58 * - NULLIF ( COUNT ( DISTINCT - + 47 ), - CASE - 20 WHEN + 17 - + + 37 + + 4 - - 88 THEN NULL WHEN 26 THEN NULL WHEN + + 31 THEN + + 21 WHEN + + 45 THEN NULL END - + - 27 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT - COUNT( * ) + - - 76
----
75

skipif mysql # not compatible
query I rowsort label-3541
SELECT - COUNT ( * ) + - - 76
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT - 23 - + + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-3542
SELECT - 23 - + + COUNT ( * )
----
-24

query I rowsort
SELECT - 93 + 50 + + 79 * 9
----
668

query I rowsort
SELECT + 99 * - + ( + 19 )
----
-1881

query II rowsort
SELECT - ( - + 19 ) + + 79 - 63 AS col0, 80 * - 48
----
35
-3840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3546
SELECT - 4 * - 74 DIV + COUNT( * )
----
296

skipif mysql # not compatible
query I rowsort label-3546
SELECT - 4 * - 74 / + COUNT ( * )
----
296

query II rowsort
SELECT ALL 43 * + + 38 AS col2, 68 AS col0
----
1634
68

query II rowsort
SELECT + - 71, 69 col2
----
-71
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3549
SELECT DISTINCT + - 90 DIV + 37 - - + COALESCE ( - ( - CASE + + 99 WHEN 44 THEN - 49 + - COALESCE ( - 63, + COUNT( * ) ) END ), - 38 + + 80 ) + + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT + - 90 / + 37 - - + COALESCE ( - ( - CASE + + 99 WHEN 44 THEN - 49 + - COALESCE ( - 63, + COUNT ( * ) ) END ), - 38 + + 80 ) + + COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT MAX( + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-3550
SELECT MAX ( + 98 )
----
98

query II rowsort
SELECT + - 48, 7 AS col2
----
-48
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3552
SELECT DISTINCT + 42 DIV + - 93 * - - COALESCE ( NULLIF ( 85, - 97 + - CASE 26 WHEN + + 66 THEN NULL ELSE - + 52 END ), CAST( - + 53 AS SIGNED ) ) + + + 77 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + 42 / + - 93 * - - COALESCE ( NULLIF ( 85, - 97 + - CASE 26 WHEN + + 66 THEN NULL ELSE - + 52 END ), CAST ( - + 53 AS INTEGER ) ) + + + 77 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT ALL 10 * COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL 10 * COUNT ( * )
----
10

query II rowsort
SELECT 59 AS col0, + 2 * + 67 - - + 14
----
59
148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3555
SELECT 72 AS col0, + CAST( NULL AS SIGNED ) / 11 AS col2
----
72
NULL

skipif mysql # not compatible
query II rowsort label-3555
SELECT 72 AS col0, + CAST ( NULL AS INTEGER ) / 11 AS col2
----
72
NULL

query I rowsort
SELECT DISTINCT 28 * - - 8 + + - 12
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT ALL - + SUM( 82 ) * - 29 AS col1
----
2378

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL - + SUM ( 82 ) * - 29 AS col1
----
2378

query I rowsort
SELECT DISTINCT + 48 * - + 0 - 53 AS col1
----
-53

query II rowsort
SELECT 15 AS col2, 13 AS col1
----
15
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL + - CASE - - 91 WHEN - CASE + 61 WHEN 29 THEN + 23 END - + 96 THEN NULL ELSE + COUNT( * ) + - 76 END
----
75

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL + - CASE - - 91 WHEN - CASE + 61 WHEN 29 THEN + 23 END - + 96 THEN NULL ELSE + COUNT ( * ) + - 76 END
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT ALL 73 DIV + - 67
----
-1

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL 73 / + - 67
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3562
SELECT DISTINCT + COUNT( * ), 91 * - 0 col0
----
1
0

skipif mysql # not compatible
query II rowsort label-3562
SELECT DISTINCT + COUNT ( * ), 91 * - 0 col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT + 78 * + - ( 64 ) - - 11 - - - COUNT( * ) + - 14 + MIN( DISTINCT + 41 ) * + 62 AS col2
----
-2454

skipif mysql # not compatible
query I rowsort label-3563
SELECT + 78 * + - ( 64 ) - - 11 - - - COUNT ( * ) + - 14 + MIN ( DISTINCT + 41 ) * + 62 AS col2
----
-2454

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT ALL 39 DIV 86 * + 65
----
0

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL 39 / 86 * + 65
----
0

query I rowsort
SELECT + 7 * 66
----
462

query I rowsort
SELECT + 25 + 45 * - ( - 55 )
----
2500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3567
SELECT DISTINCT 36 * - - 91, CAST( - + 61 AS SIGNED ) DIV + COALESCE ( + - COUNT( * ), - ( 92 ) ) AS col0
----
3276
61

skipif mysql # not compatible
query II rowsort label-3567
SELECT DISTINCT 36 * - - 91, CAST ( - + 61 AS INTEGER ) / + COALESCE ( + - COUNT ( * ), - ( 92 ) ) AS col0
----
3276
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL COUNT( ALL + 16 ) * 55 * COUNT( * ) * - 43
----
-2365

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL COUNT ( ALL + 16 ) * 55 * COUNT ( * ) * - 43
----
-2365

query I rowsort
SELECT ALL NULLIF ( + - 83, 15 )
----
-83

query I rowsort
SELECT DISTINCT 0 * + - 22
----
0

query I rowsort
SELECT ALL 59 * - 6
----
-354

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT + COALESCE ( 11, + CASE 63 WHEN - 72 THEN NULL ELSE + 79 + - 25 END ) DIV - ( + 19 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3572
SELECT + COALESCE ( 11, + CASE 63 WHEN - 72 THEN NULL ELSE + 79 + - 25 END ) / - ( + 19 ) AS col1
----
0

query II rowsort
SELECT - ( - 16 ) AS col2, - 51 AS col0
----
16
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT ALL NULLIF ( - + 67, COUNT( * ) * - - 89 + - 92 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL NULLIF ( - + 67, COUNT ( * ) * - - 89 + - 92 ) AS col0
----
-67

query I rowsort
SELECT DISTINCT CASE - 95 WHEN - + 17 THEN + 39 ELSE - 58 * + + 20 END AS col2
----
-1160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3576
SELECT DISTINCT - 68 + - COALESCE ( - COUNT( * ), - - 44 * + 49 DIV - 34 * ( - 97 ) ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT - 68 + - COALESCE ( - COUNT ( * ), - - 44 * + 49 / - 34 * ( - 97 ) ) AS col2
----
-67

query I rowsort
SELECT DISTINCT - 32 + 78 AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT DISTINCT 28 DIV + - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT 28 / + - 88 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3579
SELECT ALL - 50 + + + ( CASE MAX( - 49 ) WHEN COUNT( * ) + - + CAST( NULL AS SIGNED ) THEN + CASE + 28 WHEN - 59 + + + 39 THEN NULL ELSE - 28 END * + 60 * - 97 WHEN - MAX( - 32 ) THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL - 50 + + + ( CASE MAX ( - 49 ) WHEN COUNT ( * ) + - + CAST ( NULL AS INTEGER ) THEN + CASE + 28 WHEN - 59 + + + 39 THEN NULL ELSE - 28 END * + 60 * - 97 WHEN - MAX ( - 32 ) THEN NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT CASE + 21 WHEN MAX( ALL - + 14 ) * + + 78 THEN NULL ELSE + 77 + - + 79 * 56 END
----
-4347

skipif mysql # not compatible
query I rowsort label-3580
SELECT CASE + 21 WHEN MAX ( ALL - + 14 ) * + + 78 THEN NULL ELSE + 77 + - + 79 * 56 END
----
-4347

query I rowsort
SELECT - 41 - + 0 + 60 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL CASE - + 41 WHEN + - COALESCE ( + - 70, + 65 ) THEN - - NULLIF ( + 6, - SUM( DISTINCT - 20 ) * + 40 * + + 18 ) WHEN - + 88 * 30 THEN NULL ELSE + - 39 * - 7 * + + 62 END AS col2
----
16926

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL CASE - + 41 WHEN + - COALESCE ( + - 70, + 65 ) THEN - - NULLIF ( + 6, - SUM ( DISTINCT - 20 ) * + 40 * + + 18 ) WHEN - + 88 * 30 THEN NULL ELSE + - 39 * - 7 * + + 62 END AS col2
----
16926

onlyif mysql # aggregate syntax: 
query III rowsort label-3583
SELECT - SUM( ALL + 54 ) AS col0, 97 col2, 1 AS col2
----
-54
97
1

skipif mysql # not compatible
query III rowsort label-3583
SELECT - SUM ( ALL + 54 ) AS col0, 97 col2, 1 AS col2
----
-54
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT - ( - COALESCE ( + 92, + + COUNT( * ) ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3584
SELECT - ( - COALESCE ( + 92, + + COUNT ( * ) ) ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT DISTINCT - + MAX( DISTINCT + 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT - + MAX ( DISTINCT + 65 ) AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT - NULLIF ( + 79, CAST( NULL AS SIGNED ) ) * + 72 * - + 53
----
301464

skipif mysql # not compatible
query I rowsort label-3586
SELECT - NULLIF ( + 79, CAST ( NULL AS INTEGER ) ) * + 72 * - + 53
----
301464

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT ALL + COUNT( * ) - - 40 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL + COUNT ( * ) - - 40 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3588
SELECT + - 23 DIV + ( + COUNT( * ) ) + - - COALESCE ( + 90, + ( CASE - 71 WHEN + + 33 + + 89 + 2 THEN + 67 END ) * CAST( NULL AS SIGNED ) + + 86 )
----
67

skipif mysql # not compatible
query I rowsort label-3588
SELECT + - 23 / + ( + COUNT ( * ) ) + - - COALESCE ( + 90, + ( CASE - 71 WHEN + + 33 + + 89 + 2 THEN + 67 END ) * CAST ( NULL AS INTEGER ) + + 86 )
----
67

query I rowsort
SELECT DISTINCT - + 6 AS col1
----
-6

query I rowsort
SELECT + ( + 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT + 7 * + - SUM( - COALESCE ( 32, - 34 ) ) + 75 AS col2
----
299

skipif mysql # not compatible
query I rowsort label-3591
SELECT + 7 * + - SUM ( - COALESCE ( 32, - 34 ) ) + 75 AS col2
----
299

onlyif mysql # DIV for integer division: 
query I rowsort label-3592
SELECT 4 * + + 28 * 77 DIV + 28 AS col1
----
308

skipif mysql # not compatible
query I rowsort label-3592
SELECT 4 * + + 28 * 77 / + 28 AS col1
----
308

query I rowsort
SELECT ALL - ( + - 52 )
----
52

query I rowsort
SELECT DISTINCT - 99 * - - 63
----
-6237

query I rowsort
SELECT 80 * - + 65 * + 18 AS col1
----
-93600

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT ALL - 81 + ( - COUNT( - 3 ) ) * + 24 + 29 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL - 81 + ( - COUNT ( - 3 ) ) * + 24 + 29 AS col2
----
-76

query I rowsort
SELECT DISTINCT 83 + - 68
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT MIN( DISTINCT - + 91 ) - + CAST( NULL AS SIGNED ) * + - COUNT( + 41 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT MIN ( DISTINCT - + 91 ) - + CAST ( NULL AS INTEGER ) * + - COUNT ( + 41 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3599
SELECT - 94 AS col2, + 1 + AVG ( DISTINCT - 3 ) * 57 * + CAST( NULL AS SIGNED )
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-3599
SELECT - 94 AS col2, + 1 + AVG ( DISTINCT - 3 ) * 57 * + CAST ( NULL AS INTEGER )
----
-94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT COUNT( * ) * + ( + 34 ) col2
----
34

skipif mysql # not compatible
query I rowsort label-3600
SELECT COUNT ( * ) * + ( + 34 ) col2
----
34

query II rowsort
SELECT DISTINCT 1, 26 * 28 + - 90 AS col2
----
1
638

query I rowsort
SELECT DISTINCT 47 + + + COALESCE ( + 12, - 41 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL 6 + + - 80 + - 93 - COUNT( * ) + - 92 * - - 42 AS col2
----
-4032

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL 6 + + - 80 + - 93 - COUNT ( * ) + - 92 * - - 42 AS col2
----
-4032

query I rowsort
SELECT 45 * + 83 - + + 48 AS col0
----
3687

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT ( - 13 ) DIV - + ( + - 19 )
----
0

skipif mysql # not compatible
query I rowsort label-3605
SELECT ( - 13 ) / - + ( + - 19 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3606
SELECT COUNT( ALL - 19 ) - CAST( NULL AS SIGNED ) + + + 9 / - - 16 + - 14 * + + 26 * - - SUM( DISTINCT + + 87 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT COUNT ( ALL - 19 ) - CAST ( NULL AS INTEGER ) + + + 9 / - - 16 + - 14 * + + 26 * - - SUM ( DISTINCT + + 87 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3607
SELECT DISTINCT 12, - COUNT( * ) AS col0
----
12
-1

skipif mysql # not compatible
query II rowsort label-3607
SELECT DISTINCT 12, - COUNT ( * ) AS col0
----
12
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT DISTINCT 87 * + - 53 * - - COUNT( DISTINCT - 14 ) AS col2
----
-4611

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT 87 * + - 53 * - - COUNT ( DISTINCT - 14 ) AS col2
----
-4611

query I rowsort
SELECT 95 + - 84
----
11

query II rowsort
SELECT + 95 - - 35 * 14, - 37 + - 14 AS col2
----
585
-51

query I rowsort
SELECT DISTINCT - ( 17 ) col0
----
-17

query I rowsort
SELECT ALL 92 - + 72
----
20

query I rowsort
SELECT - 62 * + 85 col0
----
-5270

query II rowsort
SELECT - 48 AS col2, - 17 AS col2
----
-48
-17

query I rowsort
SELECT 80 + + 30
----
110

query I rowsort
SELECT - 89 + + 23
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT CASE - - 37 WHEN 0 * - 44 * 60 + - 10 THEN NULL WHEN + CASE 37 WHEN - COUNT( * ) - NULLIF ( 47, - - COUNT( + 37 ) - - - ( 4 ) - 73 ) + - 39 + - - 84 - - 5 / + + 3 THEN - - 77 END THEN + AVG ( DISTINCT - - 88 ) ELSE NULL END * + - 47 * + 10 * 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3617
SELECT CASE - - 37 WHEN 0 * - 44 * 60 + - 10 THEN NULL WHEN + CASE 37 WHEN - COUNT ( * ) - NULLIF ( 47, - - COUNT ( + 37 ) - - - ( 4 ) - 73 ) + - 39 + - - 84 - - 5 / + + 3 THEN - - 77 END THEN + AVG ( DISTINCT - - 88 ) ELSE NULL END * + - 47 * + 10 * 90 AS col1
----
NULL

query I rowsort
SELECT ALL + 19 * + 27 AS col0
----
513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3619
SELECT COALESCE ( 84, 44 - 55 DIV + + COALESCE ( - 11, + NULLIF ( - 85, - - COUNT( * ) ) * + - 58 + - COALESCE ( - + 9, - SUM( - + 87 ) + - - CASE - - MAX( + 18 ) WHEN - 45 * - 29 + 20 THEN COUNT( * ) * 60 + + 50 + + COALESCE ( - COUNT( * ), - + 7 * - 1 ) * + + 79 * + - 23 * - 45 END, - + 6 ) + + 17 * - + 33 * - 51, 47 DIV 7 ) * + 9, - 68 ) DIV + 46 + 47
----
48

skipif mysql # not compatible
query I rowsort label-3619
SELECT COALESCE ( 84, 44 - 55 / + + COALESCE ( - 11, + NULLIF ( - 85, - - COUNT ( * ) ) * + - 58 + - COALESCE ( - + 9, - SUM ( - + 87 ) + - - CASE - - MAX ( + 18 ) WHEN - 45 * - 29 + 20 THEN COUNT ( * ) * 60 + + 50 + + COALESCE ( - COUNT ( * ), - + 7 * - 1 ) * + + 79 * + - 23 * - 45 END, - + 6 ) + + 17 * - + 33 * - 51, 47 / 7 ) * + 9, - 68 ) / + 46 + 47
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3620
SELECT DISTINCT + - 87 * 59 * 49 * + + 33 - 12 + 12 * + CAST( NULL AS SIGNED ) * 11 - + + 45 * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT DISTINCT + - 87 * 59 * 49 * + + 33 - 12 + 12 * + CAST ( NULL AS INTEGER ) * 11 - + + 45 * 94
----
NULL

query I rowsort
SELECT ALL + + ( + - 72 ) * 76 col2
----
-5472

query I rowsort
SELECT 36 * + 6
----
216

query I rowsort
SELECT + 38 + - 26
----
12

query II rowsort
SELECT - 55, + 81 AS col0
----
-55
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ALL - - ( - ( COUNT( - 81 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL - - ( - ( COUNT ( - 81 ) ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3626
SELECT 29 DIV - COUNT( * ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-3626
SELECT 29 / - COUNT ( * ) col0
----
-29

query I rowsort
SELECT - 61 * 50 AS col2
----
-3050

query I rowsort
SELECT DISTINCT - - 79 AS col1
----
79

query II rowsort
SELECT ALL + 21 * - + 68, + 16 + + 79 AS col1
----
-1428
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3630
SELECT 80 DIV + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3630
SELECT 80 / + 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT SUM( ALL + 54 ) - - 86
----
140

skipif mysql # not compatible
query I rowsort label-3631
SELECT SUM ( ALL + 54 ) - - 86
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-3632
SELECT DISTINCT + 40 DIV + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT + 40 / + 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3633
SELECT 49 * - + 22 + - SUM( DISTINCT 81 ) + + + 90 AS col1, - 67 * COUNT( * )
----
-1069
-67

skipif mysql # not compatible
query II rowsort label-3633
SELECT 49 * - + 22 + - SUM ( DISTINCT 81 ) + + + 90 AS col1, - 67 * COUNT ( * )
----
-1069
-67

query I rowsort
SELECT 96 - 1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT 70 + COALESCE ( 12, - + ( - + 45 ) * + 43 - COUNT( * ) + - ( - 21 ) + - ( + 73 ) * 38 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-3635
SELECT 70 + COALESCE ( 12, - + ( - + 45 ) * + 43 - COUNT ( * ) + - ( - 21 ) + - ( + 73 ) * 38 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT DISTINCT + 4 + SUM( + 81 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT + 4 + SUM ( + 81 ) AS col1
----
85

query I rowsort
SELECT 86 + 44 AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT - 5 + - ( - MIN( - 84 ) ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT - 5 + - ( - MIN ( - 84 ) ) col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL + SUM( - 79 ) + + + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL + SUM ( - 79 ) + + + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT + 40 + - COUNT( * ) + - 23 * - 23 * - 78 AS col0
----
-41223

skipif mysql # not compatible
query I rowsort label-3640
SELECT + 40 + - COUNT ( * ) + - 23 * - 23 * - 78 AS col0
----
-41223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT ALL - 87 + + - 83 / CAST( NULL AS SIGNED ) * - 6 + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL - 87 + + - 83 / CAST ( NULL AS INTEGER ) * - 6 + - 75
----
NULL

query I rowsort
SELECT DISTINCT + 32 + - 0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3643
SELECT - ( + 9 ) DIV + SUM( ( - 58 ) ) + - + 92 * - COUNT( 71 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3643
SELECT - ( + 9 ) / + SUM ( ( - 58 ) ) + - + 92 * - COUNT ( 71 ) AS col1
----
92

query I rowsort
SELECT + 34 + - 34 + - 89 col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3645
SELECT + 10 + + CAST( NULLIF ( ( - - 43 ), - ( - COUNT( * ) ) * + - ( + ( COUNT( * ) ) ) / + + 49 + - CAST( NULL AS SIGNED ) + 3 ) AS SIGNED ) + 31
----
84

skipif mysql # not compatible
query I rowsort label-3645
SELECT + 10 + + CAST ( NULLIF ( ( - - 43 ), - ( - COUNT ( * ) ) * + - ( + ( COUNT ( * ) ) ) / + + 49 + - CAST ( NULL AS INTEGER ) + 3 ) AS INTEGER ) + 31
----
84

query I rowsort
SELECT + 6 + - - 77 + - 7 AS col0
----
76

query I rowsort
SELECT + 46 * - 93 + - 50
----
-4328

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT + - COUNT( * ) * + + 75
----
-75

skipif mysql # not compatible
query I rowsort label-3648
SELECT + - COUNT ( * ) * + + 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT ALL + COUNT( * ) * + - 45 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL + COUNT ( * ) * + - 45 AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT + + NULLIF ( 32, + 7 ) + - CAST( + - 89 AS SIGNED )
----
121

skipif mysql # not compatible
query I rowsort label-3650
SELECT + + NULLIF ( 32, + 7 ) + - CAST ( + - 89 AS INTEGER )
----
121

query II rowsort
SELECT ALL - 65 - + - 34 AS col0, + 81 AS col1
----
-31
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ALL 65 * + COUNT( * ) col1
----
65

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL 65 * + COUNT ( * ) col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT + CASE - ( + + 36 ) WHEN ( - 0 ) * - 12 / 15 + 89 THEN NULLIF ( - 55, COUNT( ALL - ( 45 ) ) ) WHEN 57 THEN - 47 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT + CASE - ( + + 36 ) WHEN ( - 0 ) * - 12 / 15 + 89 THEN NULLIF ( - 55, COUNT ( ALL - ( 45 ) ) ) WHEN 57 THEN - 47 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + - ( + 1 ), + - 50, - - 18 )
----
-1

query I rowsort
SELECT + 62 * - 31 + + 12 col2
----
-1910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3656
SELECT + - 0 DIV 16 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3656
SELECT + - 0 / 16 + + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3657
SELECT DISTINCT - + 58 * SUM( - 22 ) DIV - 3 + - - 78 AS col0
----
-347

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT - + 58 * SUM ( - 22 ) / - 3 + - - 78 AS col0
----
-347

query I rowsort
SELECT ALL + 58 * - 8 AS col1
----
-464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT + - CAST( - 34 AS SIGNED ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT + - CAST ( - 34 AS INTEGER ) * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + - 65, - 94 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT DISTINCT - 85 * 76 + 5 + - - 14 + COUNT( * ) + - - MIN( 44 ) * + - 71 + 62 + + 25 AS col0
----
-9477

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT - 85 * 76 + 5 + - - 14 + COUNT ( * ) + - - MIN ( 44 ) * + - 71 + 62 + + 25 AS col0
----
-9477

query III rowsort
SELECT DISTINCT + 22 AS col0, + 67 * + 75 AS col1, - 86 AS col1
----
22
5025
-86

query I rowsort
SELECT + NULLIF ( - + 87, - - 81 ) * - 15
----
1305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3664
SELECT - CAST( NULL AS SIGNED ) + + + 25 + + - COUNT( * ) + - CASE - 42 WHEN + + COUNT( * ) THEN NULL WHEN - MIN( 53 ) THEN 58 DIV - 33 + + - 33 END - - - 13 * - + 16 DIV - ( + COUNT( * ) ), + 0 * 48 DIV 31 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3664
SELECT - CAST ( NULL AS INTEGER ) + + + 25 + + - COUNT ( * ) + - CASE - 42 WHEN + + COUNT ( * ) THEN NULL WHEN - MIN ( 53 ) THEN 58 / - 33 + + - 33 END - - - 13 * - + 16 / - ( + COUNT ( * ) ), + 0 * 48 / 31 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT NULLIF ( 76, - - 52 * + 21 - + + 50 + + COUNT( * ) + + 66 * 52 )
----
76

skipif mysql # not compatible
query I rowsort label-3665
SELECT NULLIF ( 76, - - 52 * + 21 - + + 50 + + COUNT ( * ) + + 66 * 52 )
----
76

query I rowsort
SELECT DISTINCT 89 * - 28 + 2 AS col1
----
-2490

query I rowsort
SELECT - 51 * + + 66 + + 6 AS col0
----
-3360

query I rowsort
SELECT ALL - 80 * + 27 + - + 82 AS col1
----
-2242

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3669
SELECT + CAST( NULL AS DECIMAL ) * + - ( - + COUNT( DISTINCT - + 51 ) ) * COUNT( * ) AS col0, - 67 + ( - - 19 ) AS col1
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-3669
SELECT + CAST ( NULL AS REAL ) * + - ( - + COUNT ( DISTINCT - + 51 ) ) * COUNT ( * ) AS col0, - 67 + ( - - 19 ) AS col1
----
NULL
-48

query I rowsort
SELECT DISTINCT 26 * 84 + - ( + ( - 29 ) )
----
2213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT DISTINCT - CAST( + 10 AS SIGNED ) * 48 + 1 + + ( - COALESCE ( 92, - 80, 31 ) ) * - COUNT( DISTINCT + - 52 ) AS col2
----
-387

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT - CAST ( + 10 AS INTEGER ) * 48 + 1 + + ( - COALESCE ( 92, - 80, 31 ) ) * - COUNT ( DISTINCT + - 52 ) AS col2
----
-387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3672
SELECT ALL - 91 DIV COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - 91 / COUNT ( * )
----
-91

query I rowsort
SELECT DISTINCT ( + - 13 ) AS col0
----
-13

query I rowsort
SELECT - 22 * + 78
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT - NULLIF ( + - 10, + + COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-3675
SELECT - NULLIF ( + - 10, + + COUNT ( * ) )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT - CAST( + + 86 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-3676
SELECT - CAST ( + + 86 AS INTEGER )
----
-86

query I rowsort
SELECT ALL + - 49 * + COALESCE ( - 49, + + ( + ( + - 77 ) ) + + - 43 )
----
2401

query I rowsort
SELECT - + 75 - 10 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT DISTINCT + 52 * + 1 + + NULLIF ( 31, - 33 * + ( + + ( COUNT( * ) ) ) / + 29 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT + 52 * + 1 + + NULLIF ( 31, - 33 * + ( + + ( COUNT ( * ) ) ) / + 29 ) AS col0
----
83

query I rowsort
SELECT ALL + ( + 36 ) AS col1
----
36

query I rowsort
SELECT DISTINCT + - 74 * NULLIF ( - 82, + 35 )
----
6068

query II rowsort
SELECT ALL 22 AS col1, 55 AS col0
----
22
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3683
SELECT + 80 * 61 DIV + 97
----
50

skipif mysql # not compatible
query I rowsort label-3683
SELECT + 80 * 61 / + 97
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT - COUNT( * ) + + 28
----
27

skipif mysql # not compatible
query I rowsort label-3684
SELECT - COUNT ( * ) + + 28
----
27

query I rowsort
SELECT - 37 + + 29 * - - 25 + 50
----
738

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3686
SELECT + 7 - 70 * SUM( + 70 ) + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT + 7 - 70 * SUM ( + 70 ) + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL - ( - - MAX( + CAST( + - 6 AS SIGNED ) ) ) / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - ( - - MAX ( + CAST ( + - 6 AS INTEGER ) ) ) / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT - + 48 DIV 50 col1
----
0

skipif mysql # not compatible
query I rowsort label-3688
SELECT - + 48 / 50 col1
----
0

query I rowsort
SELECT + + 42 * 69
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT - - MAX( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-3690
SELECT - - MAX ( DISTINCT + 22 )
----
22

query I rowsort
SELECT - + 66 AS col2
----
-66

query II rowsort
SELECT DISTINCT + - 19 + ( - - 76 ) col1, - 14 AS col2
----
57
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT ALL CAST( NULL AS SIGNED ) * - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL CAST ( NULL AS INTEGER ) * - + 10
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3694
SELECT + COUNT( + 15 ) DIV - - ( - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-3694
SELECT + COUNT ( + 15 ) / - - ( - 26 )
----
0

query I rowsort
SELECT DISTINCT 22 + - 56 AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3696
SELECT ALL - 59 DIV - COUNT( * ) + 82
----
141

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL - 59 / - COUNT ( * ) + 82
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3697
SELECT 21 DIV COUNT( * ) DIV - 49 + - ( - 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3697
SELECT 21 / COUNT ( * ) / - 49 + - ( - 29 ) AS col2
----
29

query II rowsort
SELECT + 48 * 96 AS col2, + 20 * + 14
----
4608
280

query I rowsort
SELECT + NULLIF ( + - 4, - 69 ) + 50 * + 27 AS col0
----
1346

query I rowsort
SELECT + 24 * + - ( + + 80 ) AS col0
----
-1920

query I rowsort
SELECT + ( - ( - - 19 ) )
----
-19

query II rowsort
SELECT + 87 col2, ( + - 10 ) * 49 + + 81 + + 75 AS col2
----
87
-334

query I rowsort
SELECT ALL - 24 col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT ALL - COUNT( + + 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL - COUNT ( + + 40 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3705
SELECT + CAST( NULL AS DECIMAL ) * + 96 + ( COUNT( * ) ) + 6 * - AVG ( + + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT + CAST ( NULL AS REAL ) * + 96 + ( COUNT ( * ) ) + 6 * - AVG ( + + 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL MIN( - 10 ) + + 78 - + - 98 AS col1
----
166

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL MIN ( - 10 ) + + 78 - + - 98 AS col1
----
166

query II rowsort
SELECT ALL - 69 AS col1, 22 + + 27 AS col0
----
-69
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT COUNT( * ) + + 25
----
26

skipif mysql # not compatible
query I rowsort label-3708
SELECT COUNT ( * ) + + 25
----
26

query I rowsort
SELECT ALL 71 - + + 62 col2
----
9

query I rowsort
SELECT 21 - - 0 col2
----
21

query I rowsort
SELECT DISTINCT 64 * 36 AS col0
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT + 53 * - - 58 * - ( + COUNT( * ) ) + + 12
----
-3062

skipif mysql # not compatible
query I rowsort label-3712
SELECT + 53 * - - 58 * - ( + COUNT ( * ) ) + + 12
----
-3062

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3713
SELECT - COUNT( ALL - 22 ) * + + 55 - + 53 - 11 DIV - COUNT( + 1 ) + + NULLIF ( + 41, + AVG ( DISTINCT - 8 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-3713
SELECT - COUNT ( ALL - 22 ) * + + 55 - + 53 - 11 / - COUNT ( + 1 ) + + NULLIF ( + 41, + AVG ( DISTINCT - 8 ) )
----
-56

query I rowsort
SELECT 33 * - + 97 * 68 * + ( + + 34 ) AS col1
----
-7400712

onlyif mysql # aggregate syntax: 
query II rowsort label-3715
SELECT + 65, COUNT( * ) AS col0
----
65
1

skipif mysql # not compatible
query II rowsort label-3715
SELECT + 65, COUNT ( * ) AS col0
----
65
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT 49 + + + COUNT( DISTINCT + 40 ) - - 68 * - 43 * + 38 * + 59 - 60 * - + COUNT( * ) AS col2
----
-6555498

skipif mysql # not compatible
query I rowsort label-3716
SELECT 49 + + + COUNT ( DISTINCT + 40 ) - - 68 * - 43 * + 38 * + 59 - 60 * - + COUNT ( * ) AS col2
----
-6555498

query I rowsort
SELECT ( 52 ) + - 31 AS col2
----
21

query II rowsort
SELECT ALL - 65 AS col1, 78
----
-65
78

query I rowsort
SELECT - 41 + - - 60 + - 43 AS col1
----
-24

query I rowsort
SELECT DISTINCT ( + 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL - + COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - + COUNT ( * ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3722
SELECT - CASE - + 16 WHEN CASE 31 WHEN + 42 THEN NULL WHEN + 49 THEN NULL WHEN - 69 + + 64 THEN NULL ELSE + COUNT( * ) END * + COUNT( * ) / 80 + - + 64 * - + 21 * - - 82 * - 70 + 95 * + CAST( NULL AS SIGNED ) THEN + 96 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3722
SELECT - CASE - + 16 WHEN CASE 31 WHEN + 42 THEN NULL WHEN + 49 THEN NULL WHEN - 69 + + 64 THEN NULL ELSE + COUNT ( * ) END * + COUNT ( * ) / 80 + - + 64 * - + 21 * - - 82 * - 70 + 95 * + CAST ( NULL AS INTEGER ) THEN + 96 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3723
SELECT DISTINCT - COUNT( * ) DIV - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT - COUNT ( * ) / - + COUNT ( * )
----
1

query I rowsort
SELECT + 17 * + + 11 + + 43 * + - 53
----
-2092

query I rowsort
SELECT + COALESCE ( 35, + + 36 * 61 ) * - 47
----
-1645

query I rowsort
SELECT + 91 + - - 4 AS col1
----
95

query II rowsort
SELECT ALL 0, - 72 + 43 - + + 2 col0
----
0
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-3728
SELECT 95, ( MIN( + 40 ) ) + - NULLIF ( 14, - 81 ) AS col0
----
95
26

skipif mysql # not compatible
query II rowsort label-3728
SELECT 95, ( MIN ( + 40 ) ) + - NULLIF ( 14, - 81 ) AS col0
----
95
26

query II rowsort
SELECT + 5 + - - 10 col0, - 65
----
15
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT ALL - - CAST( - + 83 AS SIGNED ) + + + 7 + - 83 + - 75 AS col2
----
-234

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL - - CAST ( - + 83 AS INTEGER ) + + + 7 + - 83 + - 75 AS col2
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL + COUNT( * ) + + 74
----
75

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL + COUNT ( * ) + + 74
----
75

query I rowsort
SELECT - 67 + - 22
----
-89

query I rowsort
SELECT - 71 * - - 13
----
-923

query II rowsort
SELECT ALL 24 + 57 + + 44 + - 48, 54 * + 72 * 73 AS col2
----
77
283824

query I rowsort
SELECT ALL ( - + 71 ) AS col1
----
-71

query II rowsort
SELECT - CASE - - 43 WHEN + 0 THEN + - 60 ELSE NULL END, 28 AS col1
----
NULL
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3737
SELECT - CAST( NULL AS SIGNED ) AS col0, - 62 + + ( - - 87 ) * 22 * + 95 AS col1
----
NULL
181768

skipif mysql # not compatible
query II rowsort label-3737
SELECT - CAST ( NULL AS INTEGER ) AS col0, - 62 + + ( - - 87 ) * 22 * + 95 AS col1
----
NULL
181768

query I rowsort
SELECT - 16 + - 64 + + 53
----
-27

query I rowsort
SELECT DISTINCT - 17 + ( + + 44 ) + + + 44 col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3740
SELECT DISTINCT 48 DIV 20 * + 10 * - 29 AS col0
----
-580

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT 48 / 20 * + 10 * - 29 AS col0
----
-580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3741
SELECT 95 + + - CAST( + - CAST( - 80 AS DECIMAL ) AS SIGNED ) * + COUNT( * ) * + 29 AS col2
----
-2225

skipif mysql # not compatible
query I rowsort label-3741
SELECT 95 + + - CAST ( + - CAST ( - 80 AS REAL ) AS INTEGER ) * + COUNT ( * ) * + 29 AS col2
----
-2225

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT - COUNT( * ) - + CASE + + 68 WHEN 69 THEN + 81 WHEN 3 / - COUNT( * ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT - COUNT ( * ) - + CASE + + 68 WHEN 69 THEN + 81 WHEN 3 / - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT COUNT( * ) * + + 80 col2
----
80

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT COUNT ( * ) * + + 80 col2
----
80

query I rowsort
SELECT 30 + - ( + + 88 ) AS col1
----
-58

query II rowsort
SELECT ALL 41 - + 50 AS col0, - 63 + - - 73
----
-9
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3746
SELECT COUNT( * ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-3746
SELECT COUNT ( * ) / + 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3747
SELECT 14 * + + 54 DIV - COALESCE ( ( + - COUNT( * ) ), + 88 * + + 17 * + - 73 + 89 + + COUNT( * ) * - - AVG ( - CAST( NULL AS SIGNED ) ) ) AS col0
----
756

skipif mysql # not compatible
query I rowsort label-3747
SELECT 14 * + + 54 / - COALESCE ( ( + - COUNT ( * ) ), + 88 * + + 17 * + - 73 + 89 + + COUNT ( * ) * - - AVG ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
756

query I rowsort
SELECT ALL 63 * + 82
----
5166

query I rowsort
SELECT + COALESCE ( + 16, - - 53 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL + 3 + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL + 3 + COUNT ( * )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3751
SELECT - CAST( + 32 AS SIGNED ) AS col2, 17
----
-32
17

skipif mysql # not compatible
query II rowsort label-3751
SELECT - CAST ( + 32 AS INTEGER ) AS col2, 17
----
-32
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT - 86 * - + ( + - 99 ) - - 39 * 96 + COUNT( * ) - COALESCE ( 11, - + 90 + + 99 ) + - COUNT( * )
----
-4781

skipif mysql # not compatible
query I rowsort label-3752
SELECT - 86 * - + ( + - 99 ) - - 39 * 96 + COUNT ( * ) - COALESCE ( 11, - + 90 + + 99 ) + - COUNT ( * )
----
-4781

query I rowsort
SELECT ALL 45 + - + 95 AS col0
----
-50

query I rowsort
SELECT DISTINCT + 53 * + 27 AS col1
----
1431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3755
SELECT CAST( + + ( + COUNT( * ) ) AS SIGNED ) DIV - 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3755
SELECT CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) / - 26 AS col0
----
0

query II rowsort
SELECT - 89 * ( - 45 ), - 1 AS col1
----
4005
-1

query I rowsort
SELECT 31 * + - 94 * 97 - + 90 AS col1
----
-282748

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3758
SELECT ALL + CAST( + + 90 AS SIGNED ) DIV + 57
----
1

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL + CAST ( + + 90 AS INTEGER ) / + 57
----
1

query I rowsort
SELECT ALL - ( + 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT ALL + COUNT( * ) + + - 63 col2
----
-62

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL + COUNT ( * ) + + - 63 col2
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3761
SELECT ALL + 27 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + 27 / + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT + COUNT( * ) + - 58 + - 72
----
-129

skipif mysql # not compatible
query I rowsort label-3762
SELECT + COUNT ( * ) + - 58 + - 72
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT CAST( NULL AS SIGNED ) + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT CAST ( NULL AS INTEGER ) + + 4
----
NULL

query I rowsort
SELECT + 5 - + 87 AS col0
----
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-3765
SELECT ALL - 35 + + + 61 AS col0, - 44 DIV 11 AS col0
----
26
-4

skipif mysql # not compatible
query II rowsort label-3765
SELECT ALL - 35 + + + 61 AS col0, - 44 / 11 AS col0
----
26
-4

query I rowsort
SELECT DISTINCT ( + 0 ) AS col1
----
0

query I rowsort
SELECT DISTINCT 19 - 40 * + + 36 col2
----
-1421

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL SUM( DISTINCT - + 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL SUM ( DISTINCT - + 10 ) AS col0
----
-10

query I rowsort
SELECT DISTINCT - 4 * 95 AS col2
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - COUNT( * ) + + 44
----
43

skipif mysql # not compatible
query I rowsort label-3770
SELECT - COUNT ( * ) + + 44
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL - 32 * COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL - 32 * COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT - ( + 55 ) - - COUNT( * ) * 96 * + - 7 AS col1
----
-727

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - ( + 55 ) - - COUNT ( * ) * 96 * + - 7 AS col1
----
-727

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL CASE - - 90 WHEN + COUNT( * ) * 83 THEN + - 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL CASE - - 90 WHEN + COUNT ( * ) * 83 THEN + - 97 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3774
SELECT DISTINCT COALESCE ( 33, + NULLIF ( 60, - 77 + + 80 * + COUNT( * ) * + - 64 ) ) AS col2, - 81 * + 15
----
33
-1215

skipif mysql # not compatible
query II rowsort label-3774
SELECT DISTINCT COALESCE ( 33, + NULLIF ( 60, - 77 + + 80 * + COUNT ( * ) * + - 64 ) ) AS col2, - 81 * + 15
----
33
-1215

query I rowsort
SELECT DISTINCT - 5 * - - 49 AS col1
----
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT - COUNT( * ) * + 5
----
-5

skipif mysql # not compatible
query I rowsort label-3776
SELECT - COUNT ( * ) * + 5
----
-5

query I rowsort
SELECT - 18 * 26 AS col2
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT - COUNT( * ) + + 51 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3778
SELECT - COUNT ( * ) + + 51 AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT ALL + CAST( - - 84 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + CAST ( - - 84 AS INTEGER )
----
84

query I rowsort
SELECT - 6 + 21
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT + MIN( - 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3781
SELECT + MIN ( - 20 ) AS col1
----
-20

query I rowsort
SELECT - 82 * 7 * - - 40
----
-22960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3783
SELECT + 88 * - CAST( - 9 AS SIGNED ) col2
----
792

skipif mysql # not compatible
query I rowsort label-3783
SELECT + 88 * - CAST ( - 9 AS INTEGER ) col2
----
792

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3784
SELECT - 57 * + 58 + CAST( NULL AS SIGNED ) AS col0, + 11 col2
----
NULL
11

skipif mysql # not compatible
query II rowsort label-3784
SELECT - 57 * + 58 + CAST ( NULL AS INTEGER ) AS col0, + 11 col2
----
NULL
11

onlyif mysql # DIV for integer division: 
query II rowsort label-3785
SELECT 60 DIV + + 11 + - 92 AS col2, + 75 + - 11 AS col2
----
-87
64

skipif mysql # not compatible
query II rowsort label-3785
SELECT 60 / + + 11 + - 92 AS col2, + 75 + - 11 AS col2
----
-87
64

query II rowsort
SELECT ALL + 65 AS col2, 1 + + + 49 + + + 55
----
65
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3787
SELECT DISTINCT + 72 AS col0, CASE - ( 75 ) WHEN CAST( NULL AS SIGNED ) * + COUNT( * ) THEN + - 26 ELSE NULL END col2
----
72
NULL

skipif mysql # not compatible
query II rowsort label-3787
SELECT DISTINCT + 72 AS col0, CASE - ( 75 ) WHEN CAST ( NULL AS INTEGER ) * + COUNT ( * ) THEN + - 26 ELSE NULL END col2
----
72
NULL

query I rowsort
SELECT ALL 63 * - 60
----
-3780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3789
SELECT 33 * + 53 + - CAST( NULL AS SIGNED ) + 51 * + CAST( 16 AS SIGNED ) * + 41 * 48, 1 AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3789
SELECT 33 * + 53 + - CAST ( NULL AS INTEGER ) + 51 * + CAST ( 16 AS INTEGER ) * + 41 * 48, 1 AS col1
----
NULL
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3790
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT + CAST ( NULL AS REAL ) * + + 24
----
NULL

query I rowsort
SELECT + - 62 * 19 + + 41 AS col1
----
-1137

query I rowsort
SELECT 46 * 6 + - 40 AS col2
----
236

query II rowsort
SELECT DISTINCT + 97, 14 col0
----
97
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL COUNT( * ) * - - 36 + + + 19 + - + 88 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL COUNT ( * ) * - - 36 + + + 19 + - + 88 AS col0
----
-33

query I rowsort
SELECT ALL + ( 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT 86 * - 99 * - COUNT( * ) + - + 0 col0
----
8514

skipif mysql # not compatible
query I rowsort label-3796
SELECT 86 * - 99 * - COUNT ( * ) + - + 0 col0
----
8514

query II rowsort
SELECT + 8 AS col1, + 49
----
8
49

query II rowsort
SELECT - NULLIF ( - - 37, 39 - + - 78 ), + 30 AS col2
----
-37
30

query I rowsort
SELECT ALL - 30 + ( + ( 38 ) ) * - 76
----
-2918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT DISTINCT - 97 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - 97 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 81 * - 66 col1
----
5346

query I rowsort
SELECT - 89 + + 79 * 14
----
1017

query I rowsort
SELECT + 29 * + 29 AS col2
----
841

onlyif mysql # aggregate syntax: 
query II rowsort label-3804
SELECT - 92 col1, NULLIF ( SUM( DISTINCT + 60 ), - 38 * 91 / + + 26 + COUNT( * ) + COUNT( * ) )
----
-92
60

skipif mysql # not compatible
query II rowsort label-3804
SELECT - 92 col1, NULLIF ( SUM ( DISTINCT + 60 ), - 38 * 91 / + + 26 + COUNT ( * ) + COUNT ( * ) )
----
-92
60

query I rowsort
SELECT ALL - 48 * 12 * - 99 + + 50 AS col0
----
57074

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3806
SELECT ALL + COUNT( * ), + ( - + 63 ) DIV - COUNT( ALL 64 ) AS col2
----
1
63

skipif mysql # not compatible
query II rowsort label-3806
SELECT ALL + COUNT ( * ), + ( - + 63 ) / - COUNT ( ALL 64 ) AS col2
----
1
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3807
SELECT + CAST( NULL AS SIGNED ) / - 56 / - 71 * - + MAX( DISTINCT - ( + - 29 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT + CAST ( NULL AS INTEGER ) / - 56 / - 71 * - + MAX ( DISTINCT - ( + - 29 ) )
----
NULL

query I rowsort
SELECT ALL 54 * 68
----
3672

query I rowsort
SELECT ALL CASE + 31 WHEN ( - 31 ) * COALESCE ( - 25, - + 28, + 79 ) THEN 68 ELSE NULL END
----
NULL

query I rowsort
SELECT + 66 + 96
----
162

query I rowsort
SELECT ALL COALESCE ( + 65, - 72 ) AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3812
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - + 75 * - 57 * - 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - + 75 * - 57 * - 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3813
SELECT ALL MIN( + - 33 ), 55 AS col0
----
-33
55

skipif mysql # not compatible
query II rowsort label-3813
SELECT ALL MIN ( + - 33 ), 55 AS col0
----
-33
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3814
SELECT - 18 DIV 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3814
SELECT - 18 / 49 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT + CAST( NULL AS SIGNED ) * - 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT + CAST ( NULL AS INTEGER ) * - 54 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT - 36 + + 22 * + COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-3816
SELECT - 36 + + 22 * + COUNT ( * ) AS col2
----
-14

query I rowsort
SELECT ALL COALESCE ( + - 15, + + ( - + 89 ) * 5 )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3818
SELECT + 82 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3818
SELECT + 82 / + 94 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3819
SELECT - CASE - 98 WHEN 80 THEN - CASE - 83 WHEN + + 80 THEN + - 32 * 79 / + - CASE + 81 WHEN - 43 * + 72 THEN NULL WHEN - + CAST( 53 AS DECIMAL ) THEN 66 ELSE - 20 + 60 * - + 97 * - 61 * 85 * 24 END - + + 29 * + 6 WHEN - ( COUNT( + ( + 44 ) ) ) + COUNT( * ) THEN 28 WHEN - + 43 THEN + 76 + 29 ELSE - 85 END ELSE NULL END + + 52 + - - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT - CASE - 98 WHEN 80 THEN - CASE - 83 WHEN + + 80 THEN + - 32 * 79 / + - CASE + 81 WHEN - 43 * + 72 THEN NULL WHEN - + CAST ( 53 AS REAL ) THEN 66 ELSE - 20 + 60 * - + 97 * - 61 * 85 * 24 END - + + 29 * + 6 WHEN - ( COUNT ( + ( + 44 ) ) ) + COUNT ( * ) THEN 28 WHEN - + 43 THEN + 76 + 29 ELSE - 85 END ELSE NULL END + + 52 + - - 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT ALL + CAST( NULL AS SIGNED ) * + 52 * + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL + CAST ( NULL AS INTEGER ) * + 52 * + - 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT COUNT( + 91 ) * - 73 / + CASE + - 75 WHEN + - 65 THEN NULL WHEN - 48 - - - 87 THEN - 83 WHEN 23 + + + COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT COUNT ( + 91 ) * - 73 / + CASE + - 75 WHEN + - 65 THEN NULL WHEN - 48 - - - 87 THEN - 83 WHEN 23 + + + COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3822
SELECT ALL + 84 DIV + + 35 + + + COUNT( * ) * + 3 * 40 col0
----
122

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + 84 / + + 35 + + + COUNT ( * ) * + 3 * 40 col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL - 34 / + 79 + + - 26 * - + 46 * + CASE 87 WHEN + 11 THEN NULL WHEN - - 83 THEN - 25 ELSE NULL END + - COUNT( * ) + + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - 34 / + 79 + + - 26 * - + 46 * + CASE 87 WHEN + 11 THEN NULL WHEN - - 83 THEN - 25 ELSE NULL END + - COUNT ( * ) + + 55 AS col2
----
NULL

query I rowsort
SELECT - 22 + 18 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL + COALESCE ( - 1, COUNT( * ), + 28 + + 69 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + COALESCE ( - 1, COUNT ( * ), + 28 + + 69 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT - + 75 * - + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-3826
SELECT - + 75 * - + COUNT ( * )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3827
SELECT DISTINCT + 53 DIV + + 77
----
0

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT + 53 / + + 77
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3828
SELECT DISTINCT 39 * + 0 - 96 * - 53 * + + 92 + ( 56 ) - + 86 DIV + + MIN( DISTINCT 9 ) AS col1, + ( - 45 ) AS col1
----
468143
-45

skipif mysql # not compatible
query II rowsort label-3828
SELECT DISTINCT 39 * + 0 - 96 * - 53 * + + 92 + ( 56 ) - + 86 / + + MIN ( DISTINCT 9 ) AS col1, + ( - 45 ) AS col1
----
468143
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL + SUM( 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL + SUM ( 62 ) AS col1
----
62

query I rowsort
SELECT - + 15 * 72 + 97 col0
----
-983

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT ALL 50 * ( + - 10 ) + - - 77 * + MAX( - 33 )
----
-3041

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL 50 * ( + - 10 ) + - - 77 * + MAX ( - 33 )
----
-3041

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL + 7 * COUNT( * ) * COUNT( * ) + - 60 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL + 7 * COUNT ( * ) * COUNT ( * ) + - 60 AS col2
----
-53

query I rowsort
SELECT DISTINCT + + 68 AS col1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT - 77 + - 7 AS col1, COUNT( * )
----
-84
1

skipif mysql # not compatible
query II rowsort label-3834
SELECT - 77 + - 7 AS col1, COUNT ( * )
----
-84
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT ALL + 43 * - SUM( ALL + CASE - - 21 WHEN - - 53 + - 44 * 4 + + 73 THEN - 32 * + 49 + ( 3 ) + - - COALESCE ( + - 33, - 9 ) * 57 - + 95 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL + 43 * - SUM ( ALL + CASE - - 21 WHEN - - 53 + - 44 * 4 + + 73 THEN - 32 * + 49 + ( 3 ) + - - COALESCE ( + - 33, - 9 ) * 57 - + 95 ELSE NULL END )
----
NULL

query I rowsort
SELECT - 90 + + 90 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT + SUM( 32 ) * CASE - ( 4 ) WHEN - 68 - 48 * + 91 THEN 68 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT + SUM ( 32 ) * CASE - ( 4 ) WHEN - 68 - 48 * + 91 THEN 68 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT ALL + + 10 * - COUNT( + 8 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL + + 10 * - COUNT ( + 8 ) AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3839
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col2, + 22 AS col1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-3839
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col2, + 22 AS col1
----
NULL
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3840
SELECT 89 DIV 24 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3840
SELECT 89 / 24 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT + COUNT( * ) - + 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-3841
SELECT + COUNT ( * ) - + 10 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT DISTINCT COALESCE ( - - COUNT( * ), - ( 24 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT COALESCE ( - - COUNT ( * ), - ( 24 ) ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3843
SELECT MIN( + CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ( + ( + + 0 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3845
SELECT NULLIF ( - 62, CAST( NULL AS SIGNED ) ) * - COUNT( * ) DIV + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3845
SELECT NULLIF ( - 62, CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) / + 86 AS col2
----
0

query I rowsort
SELECT 89 + + 44 + - 49 - - 74 + + + 19 + - + 33 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT COUNT( - 34 ) + + - 56 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3847
SELECT COUNT ( - 34 ) + + - 56 AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3848
SELECT CAST( NULL AS SIGNED ) - + COALESCE ( - + 98, ( + NULLIF ( + 72, - - 2 ) ) * - + COUNT( DISTINCT 70 ) - + + 74 ) + - + CAST( NULL AS SIGNED ) * + - 24 + + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT CAST ( NULL AS INTEGER ) - + COALESCE ( - + 98, ( + NULLIF ( + 72, - - 2 ) ) * - + COUNT ( DISTINCT 70 ) - + + 74 ) + - + CAST ( NULL AS INTEGER ) * + - 24 + + 83 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3849
SELECT ALL ( + - COUNT( * ) ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL ( + - COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT NULLIF ( - 64, - NULLIF ( + 50, COUNT( * ) ) + 62 ) * - 53 col1
----
3392

skipif mysql # not compatible
query I rowsort label-3850
SELECT NULLIF ( - 64, - NULLIF ( + 50, COUNT ( * ) ) + 62 ) * - 53 col1
----
3392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3851
SELECT CAST( NULL AS SIGNED ) * + - 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT CAST ( NULL AS INTEGER ) * + - 10 AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( + - 0 ) * - 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT COUNT( * ) + + + 95 + - 59 + 9 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3853
SELECT COUNT ( * ) + + + 95 + - 59 + 9 AS col2
----
46

query I rowsort
SELECT DISTINCT - 15 + - 75 - + 13
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3855
SELECT DISTINCT + 52 + + 58 DIV + 71 col2, COALESCE ( - CAST( NULL AS SIGNED ), ( - 60 ) DIV + MAX( ALL 34 ) ) AS col1
----
52
-1

skipif mysql # not compatible
query II rowsort label-3855
SELECT DISTINCT + 52 + + 58 / + 71 col2, COALESCE ( - CAST ( NULL AS INTEGER ), ( - 60 ) / + MAX ( ALL 34 ) ) AS col1
----
52
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3856
SELECT 97 DIV - 94 + + - 12 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-3856
SELECT 97 / - 94 + + - 12 AS col2
----
-13

query I rowsort
SELECT 68 * - 25 AS col0
----
-1700

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT 74 DIV - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3858
SELECT 74 / - 92 AS col0
----
0

query I rowsort
SELECT ALL - 98 + 46 - + 17 + + + 61 AS col2
----
-8

query I rowsort
SELECT 45 + 31 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT + ( + MIN( ALL 20 ) )
----
20

skipif mysql # not compatible
query I rowsort label-3861
SELECT + ( + MIN ( ALL 20 ) )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT ALL + + 62 + - 41 DIV + 69 + - - 82
----
144

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL + + 62 + - 41 / + 69 + - - 82
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-3863
SELECT + 54 * 17 + - - 45, SUM( - - 38 ) AS col0
----
963
38

skipif mysql # not compatible
query II rowsort label-3863
SELECT + 54 * 17 + - - 45, SUM ( - - 38 ) AS col0
----
963
38

onlyif mysql # aggregate syntax: 
query II rowsort label-3864
SELECT - COUNT( * ), 10 AS col0
----
-1
10

skipif mysql # not compatible
query II rowsort label-3864
SELECT - COUNT ( * ), 10 AS col0
----
-1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT - 8 + + ( + COUNT( * ) ) * + 56
----
48

skipif mysql # not compatible
query I rowsort label-3865
SELECT - 8 + + ( + COUNT ( * ) ) * + 56
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ALL CASE 79 WHEN + COALESCE ( - + 65, - - 57, - + 58 + - 94 ) THEN 18 + + 93 - - COUNT( * ) WHEN - 73 THEN NULL ELSE NULL END - - + 4 + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL CASE 79 WHEN + COALESCE ( - + 65, - - 57, - + 58 + - 94 ) THEN 18 + + 93 - - COUNT ( * ) WHEN - 73 THEN NULL ELSE NULL END - - + 4 + - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3867
SELECT DISTINCT 82 - ( - - 89 ), - COUNT( - 76 ) * + SUM( ALL - 16 ) + - - 39 - 94 col1
----
-7
-39

skipif mysql # not compatible
query II rowsort label-3867
SELECT DISTINCT 82 - ( - - 89 ), - COUNT ( - 76 ) * + SUM ( ALL - 16 ) + - - 39 - 94 col1
----
-7
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3868
SELECT + COALESCE ( SUM( - - 81 ), + 76 DIV - + 25 DIV - COUNT( * ) ) + - 25 * + 16 AS col2
----
-319

skipif mysql # not compatible
query I rowsort label-3868
SELECT + COALESCE ( SUM ( - - 81 ), + 76 / - + 25 / - COUNT ( * ) ) + - 25 * + 16 AS col2
----
-319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3869
SELECT MAX( - - ( - + CASE + 75 WHEN - CAST( + 91 AS SIGNED ) THEN + 45 END ) ) * + + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT MAX ( - - ( - + CASE + 75 WHEN - CAST ( + 91 AS INTEGER ) THEN + 45 END ) ) * + + 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL - NULLIF ( - 65, - 16 * - 16 * - NULLIF ( + COALESCE ( COUNT( * ), - 96 - + - 29 + + 44 ), 49 * + 10 * 53 + + - NULLIF ( + 73, 6 ) ) * 96 )
----
65

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL - NULLIF ( - 65, - 16 * - 16 * - NULLIF ( + COALESCE ( COUNT ( * ), - 96 - + - 29 + + 44 ), 49 * + 10 * 53 + + - NULLIF ( + 73, 6 ) ) * 96 )
----
65

query I rowsort
SELECT + 84 * + - 84 AS col0
----
-7056

query I rowsort
SELECT DISTINCT - - ( 86 ) AS col0
----
86

query I rowsort
SELECT 73 * + 58 * - 29 AS col0
----
-122786

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT 4 + + - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3874
SELECT 4 + + - COUNT ( * ) AS col1
----
3

query I rowsort
SELECT ALL - + 70 * - - 99 AS col2
----
-6930

query I rowsort
SELECT DISTINCT - + ( - + 28 )
----
28

query I rowsort
SELECT 96 * 11
----
1056

onlyif mysql # DIV for integer division: 
query I rowsort label-3878
SELECT ALL - - 3 DIV + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL - - 3 / + 96 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT NULLIF ( - + 6, - 12 * - 99 + - + 31 ) DIV 30
----
0

skipif mysql # not compatible
query I rowsort label-3879
SELECT NULLIF ( - + 6, - 12 * - 99 + - + 31 ) / 30
----
0

query I rowsort
SELECT DISTINCT - 54 * + - 67 + - + 15 AS col1
----
3603

query I rowsort
SELECT 95 + + + 60 AS col0
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-3882
SELECT 34 + - 43 DIV 70 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3882
SELECT 34 + - 43 / 70 AS col0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3883
SELECT 5 DIV 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3883
SELECT 5 / 80 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT 40 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-3884
SELECT 40 / - 63
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT DISTINCT - 28 + + + 22, - 30 * - 64 + + + MIN( + - 86 ) AS col1
----
-6
1834

skipif mysql # not compatible
query II rowsort label-3885
SELECT DISTINCT - 28 + + + 22, - 30 * - 64 + + + MIN ( + - 86 ) AS col1
----
-6
1834

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL SUM( DISTINCT + 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL SUM ( DISTINCT + 64 ) AS col1
----
64

query I rowsort
SELECT ( + 0 ) * + 83 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3888
SELECT 30 + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT 30 + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( - + 41, - + 45, + + 78, - ( - 9 ) ) + ( - 77 ) col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT DISTINCT COUNT( DISTINCT + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT COUNT ( DISTINCT + 57 )
----
1

query II rowsort
SELECT 33 AS col1, + 35
----
33
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3892
SELECT DISTINCT CASE + - 91 WHEN - 78 * - - CAST( NULL AS SIGNED ) THEN + 9 END + - + CAST( + 53 AS SIGNED ) + - 86 + - - 93 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT CASE + - 91 WHEN - 78 * - - CAST ( NULL AS INTEGER ) THEN + 9 END + - + CAST ( + 53 AS INTEGER ) + - 86 + - - 93 - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - SUM( ALL 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3893
SELECT - SUM ( ALL 44 ) AS col2
----
-44

query I rowsort
SELECT ALL 4 + + 32
----
36

query I rowsort
SELECT ALL 63 * - 43
----
-2709

query II rowsort
SELECT 57, 83 * - + 49 AS col2
----
57
-4067

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT ALL - ( - + COUNT( DISTINCT 67 ) ) * + 98
----
98

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - ( - + COUNT ( DISTINCT 67 ) ) * + 98
----
98

query I rowsort
SELECT 55 * + + 85 * + 27 * NULLIF ( + 71, + 74 / + 64 )
----
8961975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3899
SELECT + MIN( + NULLIF ( + CAST( NULL AS SIGNED ), + 62 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT + MIN ( + NULLIF ( + CAST ( NULL AS INTEGER ), + 62 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3900
SELECT DISTINCT + 26 * - - 32 + - - 64 + COUNT( * ) DIV + 85 col1
----
896

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT + 26 * - - 32 + - - 64 + COUNT ( * ) / + 85 col1
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL - 6 * + 59 - 71 - + MAX( DISTINCT + ( - + 50 ) ) - ( + 65 )
----
-440

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL - 6 * + 59 - 71 - + MAX ( DISTINCT + ( - + 50 ) ) - ( + 65 )
----
-440

query II rowsort
SELECT + 42 col1, - 82 col0
----
42
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3903
SELECT ALL - 42 * + - ( - 62 ) + - COUNT( * ) - + CASE + - COUNT( * ) WHEN - 25 / 57 / - CASE - ( 80 ) WHEN + 39 / COUNT( * ) + + + 27 THEN + - 91 END + + 11 + + 53 THEN - 9 END + + 27 + + ( + 64 ) * - - 41 * ( - 62 ) AS col1, 11
----
NULL
11

skipif mysql # not compatible
query II rowsort label-3903
SELECT ALL - 42 * + - ( - 62 ) + - COUNT ( * ) - + CASE + - COUNT ( * ) WHEN - 25 / 57 / - CASE - ( 80 ) WHEN + 39 / COUNT ( * ) + + + 27 THEN + - 91 END + + 11 + + 53 THEN - 9 END + + 27 + + ( + 64 ) * - - 41 * ( - 62 ) AS col1, 11
----
NULL
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT - - SUM( - 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT - - SUM ( - 21 ) AS col1
----
-21

query I rowsort
SELECT + ( + 63 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3906
SELECT DISTINCT - 90 AS col0, COUNT( * ) AS col2
----
-90
1

skipif mysql # not compatible
query II rowsort label-3906
SELECT DISTINCT - 90 AS col0, COUNT ( * ) AS col2
----
-90
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3907
SELECT - 76 AS col1, + 89 + + COALESCE ( + 70, - 74, + 26 * - CAST( NULL AS SIGNED ) ) AS col0
----
-76
159

skipif mysql # not compatible
query II rowsort label-3907
SELECT - 76 AS col1, + 89 + + COALESCE ( + 70, - 74, + 26 * - CAST ( NULL AS INTEGER ) ) AS col0
----
-76
159

onlyif mysql # aggregate syntax: 
query II rowsort label-3908
SELECT + + 95 AS col0, + COUNT( * ) * + - 88
----
95
-88

skipif mysql # not compatible
query II rowsort label-3908
SELECT + + 95 AS col0, + COUNT ( * ) * + - 88
----
95
-88

query II rowsort
SELECT + - 39, + 99 AS col1
----
-39
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT + COUNT( * ) * - 98 - - 77 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3910
SELECT + COUNT ( * ) * - 98 - - 77 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT + + SUM( - 44 ) * - 30 + - COUNT( * ) AS col2
----
1319

skipif mysql # not compatible
query I rowsort label-3911
SELECT + + SUM ( - 44 ) * - 30 + - COUNT ( * ) AS col2
----
1319

query I rowsort
SELECT DISTINCT - 19 * + - 23 AS col1
----
437

onlyif mysql # aggregate syntax: 
query II rowsort label-3913
SELECT DISTINCT + 60 * 41 AS col2, - COUNT( * )
----
2460
-1

skipif mysql # not compatible
query II rowsort label-3913
SELECT DISTINCT + 60 * 41 AS col2, - COUNT ( * )
----
2460
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL - COUNT( * ) * + 88 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL - COUNT ( * ) * + 88 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ALL + SUM( DISTINCT + + 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL + SUM ( DISTINCT + + 81 ) AS col1
----
81

query I rowsort
SELECT DISTINCT + NULLIF ( - + ( - 80 ), + 49 ) AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT + + CAST( NULL AS SIGNED ) + - 2 + - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3917
SELECT + + CAST ( NULL AS INTEGER ) + - 2 + - 57 AS col0
----
NULL

query I rowsort
SELECT - 59 * 65 - 44 AS col1
----
-3879

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL - + 50 * - + SUM( ALL 67 ) + 45 * - 86 * + CASE + COUNT( * ) WHEN 79 THEN + CASE + 83 WHEN - + 76 + + ( + 49 ) THEN 74 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL - + 50 * - + SUM ( ALL 67 ) + 45 * - 86 * + CASE + COUNT ( * ) WHEN 79 THEN + CASE + 83 WHEN - + 76 + + ( + 49 ) THEN 74 END END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3920
SELECT ALL + 67 + - - 79 * + + NULLIF ( + 44, + COUNT( * ) ) * + 92 * - + CAST( + 44 AS SIGNED ) AS col2
----
-14070781

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL + 67 + - - 79 * + + NULLIF ( + 44, + COUNT ( * ) ) * + 92 * - + CAST ( + 44 AS INTEGER ) AS col2
----
-14070781

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT MAX( DISTINCT 35 )
----
35

skipif mysql # not compatible
query I rowsort label-3921
SELECT MAX ( DISTINCT 35 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT 14 * + NULLIF ( - 12, 35 * - CASE - 50 WHEN 58 + 67 * 96 * 32 + 62 THEN + - 45 + + 91 * + AVG ( - 81 ) END ) DIV + 1 + COALESCE ( - COALESCE ( + - 13, - 56 ), + 86, 57 + - - 37 )
----
-155

skipif mysql # not compatible
query I rowsort label-3922
SELECT 14 * + NULLIF ( - 12, 35 * - CASE - 50 WHEN 58 + 67 * 96 * 32 + 62 THEN + - 45 + + 91 * + AVG ( - 81 ) END ) / + 1 + COALESCE ( - COALESCE ( + - 13, - 56 ), + 86, 57 + - - 37 )
----
-155

query I rowsort
SELECT - 59 + + - 78 col0
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL - COUNT( * ) + + - ( NULLIF ( ( + 30 ), - 94 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - COUNT ( * ) + + - ( NULLIF ( ( + 30 ), - 94 ) )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3925
SELECT - 35 + COUNT( * ) AS col2, NULLIF ( + + 55, - 79 * + 43 + - - CAST( - + CAST( - - 82 AS DECIMAL ) AS SIGNED ) ) AS col0
----
-34
55

skipif mysql # not compatible
query II rowsort label-3925
SELECT - 35 + COUNT ( * ) AS col2, NULLIF ( + + 55, - 79 * + 43 + - - CAST ( - + CAST ( - - 82 AS REAL ) AS INTEGER ) ) AS col0
----
-34
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL - COUNT( * ) + - NULLIF ( - - 89, - 9 * - + COUNT( * ) + - 93 - 88 * COALESCE ( - - 63, - 46 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL - COUNT ( * ) + - NULLIF ( - - 89, - 9 * - + COUNT ( * ) + - 93 - 88 * COALESCE ( - - 63, - 46 ) )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-3927
SELECT DISTINCT ( - ( + COUNT( * ) ) ) col1, - ( + - 45 ) AS col2
----
-1
45

skipif mysql # not compatible
query II rowsort label-3927
SELECT DISTINCT ( - ( + COUNT ( * ) ) ) col1, - ( + - 45 ) AS col2
----
-1
45

onlyif mysql # DIV for integer division: 
query II rowsort label-3928
SELECT ALL ( - + 49 ), 12 DIV 18 * 94 AS col1
----
-49
0

skipif mysql # not compatible
query II rowsort label-3928
SELECT ALL ( - + 49 ), 12 / 18 * 94 AS col1
----
-49
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT - 99 + + 79 * + COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3929
SELECT - 99 + + 79 * + COUNT ( * ) AS col1
----
-20

query II rowsort
SELECT - 5 * + 47 col0, + 49
----
-235
49

query I rowsort
SELECT ALL - 6 * + 30 AS col0
----
-180

query I rowsort
SELECT ALL + ( + - 42 ) * - 58 AS col1
----
2436

onlyif mysql # aggregate syntax: 
query II rowsort label-3933
SELECT ALL - 58 * 78, MAX( DISTINCT + 62 ) * 69 * - - 4 + + 55 AS col0
----
-4524
17167

skipif mysql # not compatible
query II rowsort label-3933
SELECT ALL - 58 * 78, MAX ( DISTINCT + 62 ) * 69 * - - 4 + + 55 AS col0
----
-4524
17167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3934
SELECT - NULLIF ( 66, + + CASE WHEN + 56 IS NULL THEN + CAST( NULL AS SIGNED ) END * - 20 - - 19 + + 66 ) + - - MIN( DISTINCT 22 )
----
-44

skipif mysql # not compatible
query I rowsort label-3934
SELECT - NULLIF ( 66, + + CASE WHEN + 56 IS NULL THEN + CAST ( NULL AS INTEGER ) END * - 20 - - 19 + + 66 ) + - - MIN ( DISTINCT 22 )
----
-44

query II rowsort
SELECT - 43 + + 95 AS col2, 68 AS col1
----
52
68

query I rowsort
SELECT + - 3 + 8 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ALL CASE - + 15 WHEN SUM( ALL - 88 ) THEN - 39 END * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL CASE - + 15 WHEN SUM ( ALL - 88 ) THEN - 39 END * + 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3938
SELECT + MIN( - - 10 ) DIV + ( - 44 )
----
0

skipif mysql # not compatible
query I rowsort label-3938
SELECT + MIN ( - - 10 ) / + ( - 44 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL + NULLIF ( - 4, + MAX( ALL - 41 ) + + ( - + 83 ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL + NULLIF ( - 4, + MAX ( ALL - 41 ) + + ( - + 83 ) ) AS col2
----
-4

query II rowsort
SELECT ALL - 20 * - 37 AS col2, - 76 AS col0
----
740
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT + 86 DIV + ( 85 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3941
SELECT + 86 / + ( 85 ) col0
----
1

query II rowsort
SELECT - 56 + - NULLIF ( + 82, 51 ) - + - 17 AS col1, - 35
----
-121
-35

query I rowsort
SELECT ALL + 21 * 69 + 37
----
1486

query II rowsort
SELECT ( + 76 ) AS col0, 79 AS col2
----
76
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3945
SELECT DISTINCT - 7 * + + 46 + + 17 - + COUNT( * ) DIV + 80 * - 7 + + 14 - - COALESCE ( 1, + 58 - 52 DIV - + 50 * - - COUNT( ALL ( - - 47 ) ) ) col0
----
-290

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT - 7 * + + 46 + + 17 - + COUNT ( * ) / + 80 * - 7 + + 14 - - COALESCE ( 1, + 58 - 52 / - + 50 * - - COUNT ( ALL ( - - 47 ) ) ) col0
----
-290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3946
SELECT ALL - CASE + 45 WHEN + COALESCE ( - CAST( NULL AS SIGNED ), + 86 + + + 12 ) + + COUNT( * ) THEN - + CAST( 64 AS SIGNED ) END * - CASE 54 WHEN + ( + + 27 ) THEN - 37 * - + 17 WHEN 6 * + CASE + 96 WHEN COUNT( + - 87 ) * - 53 THEN - + COUNT( * ) / - + ( - 25 ) WHEN 0 + 79 * + + 37 + + ( - CAST( NULL AS SIGNED ) ) + 48 * SUM( 81 ) + - + COUNT( * ) + 81 * CAST( - + ( - 71 ) AS SIGNED ) THEN NULL END THEN NULL ELSE 67 END + + + 35 * 26 + - 20 * - + 65 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL - CASE + 45 WHEN + COALESCE ( - CAST ( NULL AS INTEGER ), + 86 + + + 12 ) + + COUNT ( * ) THEN - + CAST ( 64 AS INTEGER ) END * - CASE 54 WHEN + ( + + 27 ) THEN - 37 * - + 17 WHEN 6 * + CASE + 96 WHEN COUNT ( + - 87 ) * - 53 THEN - + COUNT ( * ) / - + ( - 25 ) WHEN 0 + 79 * + + 37 + + ( - CAST ( NULL AS INTEGER ) ) + 48 * SUM ( 81 ) + - + COUNT ( * ) + 81 * CAST ( - + ( - 71 ) AS INTEGER ) THEN NULL END THEN NULL ELSE 67 END + + + 35 * 26 + - 20 * - + 65 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT + 36 DIV 22
----
1

skipif mysql # not compatible
query I rowsort label-3947
SELECT + 36 / 22
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3948
SELECT ALL - 74 * + CAST( NULL AS SIGNED ) * NULLIF ( CASE - 44 WHEN 7 * 98 - AVG ( DISTINCT 61 ) + ( - 4 ) THEN NULL WHEN + COUNT( * ) * - 71 THEN NULL ELSE - 94 - + MIN( DISTINCT 70 ) END, - 26 ) + + - 40 + + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL - 74 * + CAST ( NULL AS INTEGER ) * NULLIF ( CASE - 44 WHEN 7 * 98 - AVG ( DISTINCT 61 ) + ( - 4 ) THEN NULL WHEN + COUNT ( * ) * - 71 THEN NULL ELSE - 94 - + MIN ( DISTINCT 70 ) END, - 26 ) + + - 40 + + + 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3949
SELECT - CAST( - 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-3949
SELECT - CAST ( - 99 AS INTEGER )
----
99

query I rowsort
SELECT + 12 * + - 14
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL 99 * 75 + - + COUNT( * ) + + 63
----
7487

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL 99 * 75 + - + COUNT ( * ) + + 63
----
7487

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT ALL COUNT( * ) * - 89
----
-89

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL COUNT ( * ) * - 89
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT - CAST( + + ( - ( + ( - ( 29 ) ) ) ) AS SIGNED ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-3953
SELECT - CAST ( + + ( - ( + ( - ( 29 ) ) ) ) AS INTEGER ) AS col0
----
-29

query I rowsort
SELECT + 76 * - - 45
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT MIN( - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-3955
SELECT MIN ( - 70 )
----
-70

query II rowsort
SELECT - 48 AS col1, ( + 9 ) + + 9 col1
----
-48
18

query I rowsort
SELECT ALL ( 81 ) AS col1
----
81

query I rowsort
SELECT DISTINCT 93 - + 91 AS col0
----
2

query I rowsort
SELECT ALL + 75 * + 66
----
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT - MAX( ALL + 71 ) + COUNT( * ) * + 2 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-3960
SELECT - MAX ( ALL + 71 ) + COUNT ( * ) * + 2 AS col1
----
-69

query I rowsort
SELECT DISTINCT + 66 - 44 AS col0
----
22

query I rowsort
SELECT - ( + - 27 ) * - COALESCE ( - 3, - 95 * + + 50 + - 63 ) * - + 40 + + NULLIF ( + 84, 20 ) * + 77 col1
----
3228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT + 18 - + CAST( + 53 AS SIGNED ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3963
SELECT + 18 - + CAST ( + 53 AS INTEGER ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT - COUNT( - 65 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3964
SELECT - COUNT ( - 65 ) col1
----
-1

query I rowsort
SELECT COALESCE ( 24, + 83 ) + + 5 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT - + ( 49 ) * + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT - + ( 49 ) * + COUNT ( * )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3967
SELECT MIN( - CAST( + 97 AS SIGNED ) ) * COUNT( * ) DIV + + 18 + + + ( + ( - 91 ) ) AS col1, 15 * + - COALESCE ( 62, + + 40 ) AS col0
----
-96
-930

skipif mysql # not compatible
query II rowsort label-3967
SELECT MIN ( - CAST ( + 97 AS INTEGER ) ) * COUNT ( * ) / + + 18 + + + ( + ( - 91 ) ) AS col1, 15 * + - COALESCE ( 62, + + 40 ) AS col0
----
-96
-930

query I rowsort
SELECT DISTINCT + 82 * - 55
----
-4510

query II rowsort
SELECT ALL - 24 * + - 23 - - - 95 + 37 AS col0, 73
----
494
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT + MIN( ALL 65 ) * 5 col0
----
325

skipif mysql # not compatible
query I rowsort label-3970
SELECT + MIN ( ALL 65 ) * 5 col0
----
325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3971
SELECT 2 * + 80 * 38 col2, - CAST( + COUNT( * ) AS SIGNED ) col1
----
6080
-1

skipif mysql # not compatible
query II rowsort label-3971
SELECT 2 * + 80 * 38 col2, - CAST ( + COUNT ( * ) AS INTEGER ) col1
----
6080
-1

query II rowsort
SELECT + 45, + ( - 39 ) AS col1
----
45
-39

query II rowsort
SELECT - 84, - 92 + - - 96 AS col2
----
-84
4

query I rowsort
SELECT + 27 * 98 AS col2
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL - - ( + SUM( + + 27 ) ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL - - ( + SUM ( + + 27 ) ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT + - CASE - + 19 WHEN - 16 / + COALESCE ( - 83, - 39 * - MAX( - 99 ) + + 37 * + 74 + + 2 ) - - + 99 THEN + 68 WHEN + - 83 THEN NULL WHEN 1 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT + - CASE - + 19 WHEN - 16 / + COALESCE ( - 83, - 39 * - MAX ( - 99 ) + + 37 * + 74 + + 2 ) - - + 99 THEN + 68 WHEN + - 83 THEN NULL WHEN 1 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3977
SELECT COALESCE ( COUNT( ALL - - 17 ), - 86 * + 9, + COUNT( * ) ) DIV - - 83 + - 74 + + MAX( - 16 ) - + ( + 24 ) * 44 - - COUNT( * )
----
-1145

skipif mysql # not compatible
query I rowsort label-3977
SELECT COALESCE ( COUNT ( ALL - - 17 ), - 86 * + 9, + COUNT ( * ) ) / - - 83 + - 74 + + MAX ( - 16 ) - + ( + 24 ) * 44 - - COUNT ( * )
----
-1145

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT MAX( DISTINCT - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-3978
SELECT MAX ( DISTINCT - 34 ) AS col0
----
-34

query I rowsort
SELECT ALL + 59 + - 54 AS col2
----
5

query I rowsort
SELECT + 93 * - 52
----
-4836

query I rowsort
SELECT 23 + 36 AS col2
----
59

query I rowsort
SELECT 59 - 85 + + 76
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT - COUNT( * ) * + 37 + 63 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3983
SELECT - COUNT ( * ) * + 37 + 63 AS col2
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-3984
SELECT ALL 88 DIV + 75 AS col0, 5 DIV - 59
----
1
0

skipif mysql # not compatible
query II rowsort label-3984
SELECT ALL 88 / + 75 AS col0, 5 / - 59
----
1
0

query I rowsort
SELECT COALESCE ( 28, - + 55 ) * + 10 + - 25
----
255

query I rowsort
SELECT 42 + 90 * - 8 AS col2
----
-678

query I rowsort
SELECT ALL 40 * + COALESCE ( + 89, - + 68 ) * 37
----
131720

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT 58 + - + COALESCE ( COUNT( * ), - 0 + + 78 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3988
SELECT 58 + - + COALESCE ( COUNT ( * ), - 0 + + 78 ) AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3989
SELECT 77 + + + 68 DIV - NULLIF ( + 53, - - 72 )
----
76

skipif mysql # not compatible
query I rowsort label-3989
SELECT 77 + + + 68 / - NULLIF ( + 53, - - 72 )
----
76

query I rowsort
SELECT DISTINCT 81 * - + 82
----
-6642

query I rowsort
SELECT CASE - 75 WHEN + 38 THEN NULL ELSE - - 88 END + - 45 col0
----
43

query I rowsort
SELECT 93 * - + 3 * - 12 AS col1
----
3348

query I rowsort
SELECT - + ( 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT COUNT( - - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-3994
SELECT COUNT ( - - 57 )
----
1

query I rowsort
SELECT ALL + - NULLIF ( 97, 60 ) + - 75 AS col0
----
-172

query I rowsort
SELECT 78 - 97
----
-19

query II rowsort
SELECT 4 + + 55 + + + 87 + + 18 AS col0, 5 * + 19 AS col0
----
164
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT - 40 * + + COUNT( * ) - 99 AS col0
----
-139

skipif mysql # not compatible
query I rowsort label-3998
SELECT - 40 * + + COUNT ( * ) - 99 AS col0
----
-139

query I rowsort
SELECT DISTINCT - + ( - + 63 )
----
63

query II rowsort
SELECT + NULLIF ( + 49, - - 48 ) + + - 28 col1, + 41 * + 35
----
21
1435

onlyif mysql # aggregate syntax: 
query II rowsort label-4001
SELECT + - MIN( DISTINCT + 27 ), 43 AS col2
----
-27
43

skipif mysql # not compatible
query II rowsort label-4001
SELECT + - MIN ( DISTINCT + 27 ), 43 AS col2
----
-27
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4002
SELECT - COUNT( * ) * + - 82 DIV 64 + - 57 + - MIN( ALL - - 56 ) AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-4002
SELECT - COUNT ( * ) * + - 82 / 64 + - 57 + - MIN ( ALL - - 56 ) AS col0
----
-112

query I rowsort
SELECT ALL - 88 + - - 96 col0
----
8

query I rowsort
SELECT ALL + - 89 * + 20
----
-1780

query I rowsort
SELECT - 91 + - CASE + 57 WHEN + 42 THEN NULL ELSE 64 END + + - 44 AS col0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4006
SELECT ALL - NULLIF ( + + 81, CAST( + 79 AS SIGNED ) ), 2 + - 27 AS col0
----
-81
-25

skipif mysql # not compatible
query II rowsort label-4006
SELECT ALL - NULLIF ( + + 81, CAST ( + 79 AS INTEGER ) ), 2 + - 27 AS col0
----
-81
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT ALL 7 DIV - + 65
----
0

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL 7 / - + 65
----
0

query I rowsort
SELECT ALL - 83 - - 79 AS col1
----
-4

query I rowsort
SELECT DISTINCT - 66 - + 16 AS col0
----
-82

query I rowsort
SELECT ALL 82 * - - ( - ( + 98 ) ) AS col2
----
-8036

query II rowsort
SELECT + 44 AS col0, - 69 AS col2
----
44
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4012
SELECT ALL - MIN( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL - MIN ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT + 93 * - COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT + 93 * - COUNT ( * ) AS col0
----
-93

query I rowsort
SELECT 74 * 40 AS col0
----
2960

query I rowsort
SELECT ALL - 75 * + + 2
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4016
SELECT - COUNT( * ) + - COUNT( * ) DIV - 66 * - - 64 col0
----
-1

skipif mysql # not compatible
query I rowsort label-4016
SELECT - COUNT ( * ) + - COUNT ( * ) / - 66 * - - 64 col0
----
-1

query II rowsort
SELECT - 9 AS col1, 34 AS col0
----
-9
34

query I rowsort
SELECT - 4 * + 77 AS col0
----
-308

query I rowsort
SELECT + 10 * - + 23
----
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT - CASE + + 63 WHEN + COUNT( * ) THEN + + 42 * - 36 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT - CASE + + 63 WHEN + COUNT ( * ) THEN + + 42 * - 36 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4021
SELECT ALL 62 + 99 DIV - + 86 + + - 99 + + 29
----
-9

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL 62 + 99 / - + 86 + + - 99 + + 29
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4022
SELECT + 32 + + 68 DIV + 4 + + 61
----
110

skipif mysql # not compatible
query I rowsort label-4022
SELECT + 32 + + 68 / + 4 + + 61
----
110

query I rowsort
SELECT + 36 - + - 28 + - 2
----
62

query I rowsort
SELECT DISTINCT + 66 + - + 34 * + 75
----
-2484

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + 50 * - COUNT( * ) + + 11 + NULLIF ( + - 89, + 20 + + + 81 + - 33 * - 75 ) + + 88
----
-40

skipif mysql # not compatible
query I rowsort label-4025
SELECT + 50 * - COUNT ( * ) + + 11 + NULLIF ( + - 89, + 20 + + + 81 + - 33 * - 75 ) + + 88
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4026
SELECT DISTINCT 94 + CASE + 98 WHEN - ( + - 35 ) THEN + 79 ELSE NULL END + 81 + - 66 + + 1 + ( + 33 ) + + CASE - ( COUNT( * ) ) WHEN 27 * + 9 * - 27 THEN + + 30 ELSE NULL END * - + 97 * 53 * 2 * + 73 + - ( CAST( NULL AS SIGNED ) ) / + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT 94 + CASE + 98 WHEN - ( + - 35 ) THEN + 79 ELSE NULL END + 81 + - 66 + + 1 + ( + 33 ) + + CASE - ( COUNT ( * ) ) WHEN 27 * + 9 * - 27 THEN + + 30 ELSE NULL END * - + 97 * 53 * 2 * + 73 + - ( CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL COALESCE ( + - 32, - COUNT( * ), + 14 ) + 61 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL COALESCE ( + - 32, - COUNT ( * ), + 14 ) + 61 AS col1
----
29

query I rowsort
SELECT + + 52 * - 1
----
-52

query I rowsort
SELECT + 82 + + 24
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL + MIN( ALL 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL + MIN ( ALL 22 ) AS col0
----
22

query II rowsort
SELECT - + 14 * + 88 * - 71 AS col0, 84
----
87472
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT - 9 + ( ( CAST( 19 AS SIGNED ) ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4032
SELECT - 9 + ( ( CAST ( 19 AS INTEGER ) ) ) AS col1
----
10

query I rowsort
SELECT ALL 78 + + - 16
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT + COUNT( * ) * - + 49 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4034
SELECT + COUNT ( * ) * - + 49 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT - 81 * COUNT( * ) + - 49
----
-130

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT - 81 * COUNT ( * ) + - 49
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4036
SELECT + CASE - 9 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE + - 16 * 8 + - SUM( - 3 ) END
----
-125

skipif mysql # not compatible
query I rowsort label-4036
SELECT + CASE - 9 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE + - 16 * 8 + - SUM ( - 3 ) END
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT + - 51 - + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-4037
SELECT + - 51 - + COUNT ( * )
----
-52

query I rowsort
SELECT + - 93 * - 42 * + 42 col1
----
164052

query I rowsort
SELECT - 89 * + ( + + 96 ) AS col0
----
-8544

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT ( + + SUM( + + 88 ) ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4040
SELECT ( + + SUM ( + + 88 ) ) AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4041
SELECT - 7 DIV - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4041
SELECT - 7 / - 61 AS col1
----
0

query I rowsort
SELECT ALL - 79 * 92 * 5
----
-36340

query I rowsort
SELECT + ( + 43 ) col0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4044
SELECT COALESCE ( - - 95, + + 47, 45 ) AS col2, - MIN( ALL - - 56 ) AS col1
----
95
-56

skipif mysql # not compatible
query II rowsort label-4044
SELECT COALESCE ( - - 95, + + 47, 45 ) AS col2, - MIN ( ALL - - 56 ) AS col1
----
95
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT ALL SUM( - 66 ) * - - 58
----
-3828

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL SUM ( - 66 ) * - - 58
----
-3828

query I rowsort
SELECT ALL + ( - 24 )
----
-24

query I rowsort
SELECT - COALESCE ( + + 63, - 47 * - 94, 39 ) - - 31 * - 98
----
-3101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4048
SELECT DISTINCT + 7 * + CAST( + CASE - 20 WHEN - 69 THEN NULL WHEN COUNT( * ) THEN NULL ELSE 4 * - 0 + - + 67 END AS SIGNED ) AS col0, + COUNT( * ) AS col1
----
-469
1

skipif mysql # not compatible
query II rowsort label-4048
SELECT DISTINCT + 7 * + CAST ( + CASE - 20 WHEN - 69 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 4 * - 0 + - + 67 END AS INTEGER ) AS col0, + COUNT ( * ) AS col1
----
-469
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4049
SELECT ALL - 16 DIV - 22, - COUNT( * ) DIV - 87
----
0
0

skipif mysql # not compatible
query II rowsort label-4049
SELECT ALL - 16 / - 22, - COUNT ( * ) / - 87
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4050
SELECT - COUNT( * ) DIV + 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4050
SELECT - COUNT ( * ) / + 13 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT DISTINCT - 7 DIV ( + 67 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - 7 / ( + 67 ) col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4052
SELECT + 99 AS col2, 6 + 12 / + 66 + 83 + - + CASE + 7 WHEN - 95 * + 57 * + + 36 * - - 97 THEN COUNT( * ) + + COUNT( * ) END * 1 * - - COUNT( * ) AS col2
----
99
NULL

skipif mysql # not compatible
query II rowsort label-4052
SELECT + 99 AS col2, 6 + 12 / + 66 + 83 + - + CASE + 7 WHEN - 95 * + 57 * + + 36 * - - 97 THEN COUNT ( * ) + + COUNT ( * ) END * 1 * - - COUNT ( * ) AS col2
----
99
NULL

query II rowsort
SELECT + 10 AS col0, - 19 * 63
----
10
-1197

query I rowsort
SELECT + 87 * - + 98 AS col1
----
-8526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4055
SELECT ALL NULLIF ( + 63, - 76 ) * + CAST( + 42 AS SIGNED ) * - 7 * COALESCE ( 30, + 58 * + - 13 + 43 + + - 23 * - 26 DIV 20 - - + 59, - CASE ( 99 ) WHEN ( + CAST( + COUNT( * ) AS SIGNED ) ) THEN ( + 77 ) + + 77 END + - 99 * + ( - - COUNT( * ) ) * + 34 + 8 + 47 ) + + + 69 * + 19 + - 64 + + COUNT( * ) * - + 51 DIV + COALESCE ( - 8, 31, + + 96 + 15 ) + + + 66 * + 10 - - 49 * 87 AS col1
----
-549484

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL NULLIF ( + 63, - 76 ) * + CAST ( + 42 AS INTEGER ) * - 7 * COALESCE ( 30, + 58 * + - 13 + 43 + + - 23 * - 26 / 20 - - + 59, - CASE ( 99 ) WHEN ( + CAST ( + COUNT ( * ) AS INTEGER ) ) THEN ( + 77 ) + + 77 END + - 99 * + ( - - COUNT ( * ) ) * + 34 + 8 + 47 ) + + + 69 * + 19 + - 64 + + COUNT ( * ) * - + 51 / + COALESCE ( - 8, 31, + + 96 + 15 ) + + + 66 * + 10 - - 49 * 87 AS col1
----
-549484

onlyif mysql # aggregate syntax: 
query II rowsort label-4056
SELECT - 64 AS col1, + 1 * COUNT( * )
----
-64
1

skipif mysql # not compatible
query II rowsort label-4056
SELECT - 64 AS col1, + 1 * COUNT ( * )
----
-64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL CASE - 22 WHEN - - 14 - + + 24 THEN NULL WHEN 19 + 87 THEN - - COUNT( * ) ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL CASE - 22 WHEN - - 14 - + + 24 THEN NULL WHEN 19 + 87 THEN - - COUNT ( * ) ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT - COUNT( * ) + - + 65 * + 6 * - - 26 AS col0, - 68
----
-10141
-68

skipif mysql # not compatible
query II rowsort label-4058
SELECT - COUNT ( * ) + - + 65 * + 6 * - - 26 AS col0, - 68
----
-10141
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4059
SELECT ALL - 48 * - 40 DIV - COUNT( * )
----
-1920

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL - 48 * - 40 / - COUNT ( * )
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT - - 42 * + COUNT( + 25 ) + + + 53
----
95

skipif mysql # not compatible
query I rowsort label-4060
SELECT - - 42 * + COUNT ( + 25 ) + + + 53
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT DISTINCT - 37 + - NULLIF ( + + 58, + COUNT( * ) ) + - 55 + + 76 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT - 37 + - NULLIF ( + + 58, + COUNT ( * ) ) + - 55 + + 76 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ALL SUM( DISTINCT 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL SUM ( DISTINCT 12 ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-4063
SELECT 85 AS col2, 4 DIV - 46 AS col1
----
85
0

skipif mysql # not compatible
query II rowsort label-4063
SELECT 85 AS col2, 4 / - 46 AS col1
----
85
0

query I rowsort
SELECT - - 98 * - - 47 * - 77
----
-354662

query I rowsort
SELECT - COALESCE ( + 55, + 74 ) AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4066
SELECT - 96 DIV + + SUM( + 36 )
----
-2

skipif mysql # not compatible
query I rowsort label-4066
SELECT - 96 / + + SUM ( + 36 )
----
-2

query II rowsort
SELECT DISTINCT 8 AS col0, 27 - - + 99 + + 25
----
8
151

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT + 84 + + 29 + - 94 + + 53 * + ( - ( - COUNT( - + 46 ) ) ) + - - NULLIF ( + 13, 64 / 2 / - 67 + 59 ) + - - 76 * - ( + 7 ) col0
----
-447

skipif mysql # not compatible
query I rowsort label-4068
SELECT + 84 + + 29 + - 94 + + 53 * + ( - ( - COUNT ( - + 46 ) ) ) + - - NULLIF ( + 13, 64 / 2 / - 67 + 59 ) + - - 76 * - ( + 7 ) col0
----
-447

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT ALL + 21 + 62 + + + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + 21 + 62 + + + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT ALL SUM( - 1 ) - 14 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL SUM ( - 1 ) - 14 AS col1
----
-15

query I rowsort
SELECT + - 41 + 77
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4072
SELECT + 50 DIV - + 15
----
-3

skipif mysql # not compatible
query I rowsort label-4072
SELECT + 50 / - + 15
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4073
SELECT 78 AS col1, - COUNT( * ) - COUNT( * ) AS col0
----
78
-2

skipif mysql # not compatible
query II rowsort label-4073
SELECT 78 AS col1, - COUNT ( * ) - COUNT ( * ) AS col0
----
78
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4074
SELECT ALL + 60 DIV + 31
----
1

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + 60 / + 31
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT ALL - 97 * MIN( DISTINCT 7 )
----
-679

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL - 97 * MIN ( DISTINCT 7 )
----
-679

onlyif mysql # DIV for integer division: 
query I rowsort label-4076
SELECT - COALESCE ( 29, 79 DIV - - 80 ) + + NULLIF ( - 59, - 73 DIV 9 ) + + + 23 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4076
SELECT - COALESCE ( 29, 79 / - - 80 ) + + NULLIF ( - 59, - 73 / 9 ) + + + 23 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT ( + CASE + 36 WHEN + + 60 THEN NULL WHEN COUNT( ALL NULLIF ( + - 38, - 97 ) ) * - + 0 THEN - MAX( DISTINCT + + 51 ) ELSE NULL END ) * + CASE 4 WHEN 23 * 14 THEN NULL ELSE 45 END + - - 95 * + + COUNT( * ) + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT ( + CASE + 36 WHEN + + 60 THEN NULL WHEN COUNT ( ALL NULLIF ( + - 38, - 97 ) ) * - + 0 THEN - MAX ( DISTINCT + + 51 ) ELSE NULL END ) * + CASE 4 WHEN 23 * 14 THEN NULL ELSE 45 END + - - 95 * + + COUNT ( * ) + - 95
----
NULL

query I rowsort
SELECT + 26 + 47 - - - 43
----
30

query I rowsort
SELECT + 95 - CASE - ( + 54 ) WHEN 2 + - 93 * + 19 THEN + - 21 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4080
SELECT + - 41 * CAST( - COUNT( DISTINCT + - 67 ) AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-4080
SELECT + - 41 * CAST ( - COUNT ( DISTINCT + - 67 ) AS INTEGER )
----
41

query I rowsort
SELECT ALL 70 * - 93 col0
----
-6510

query I rowsort
SELECT + 77 + + + 16
----
93

query I rowsort
SELECT + 95 * 62 AS col2
----
5890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT + ( + CAST( - NULLIF ( - 85, 84 ) AS SIGNED ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4084
SELECT + ( + CAST ( - NULLIF ( - 85, 84 ) AS INTEGER ) ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4085
SELECT - ( COALESCE ( + MAX( ALL + 29 ), + 77 ) ) * - + COUNT( * ) + + 33 col1, + 5
----
62
5

skipif mysql # not compatible
query II rowsort label-4085
SELECT - ( COALESCE ( + MAX ( ALL + 29 ), + 77 ) ) * - + COUNT ( * ) + + 33 col1, + 5
----
62
5

query I rowsort
SELECT ALL 35 * - 50
----
-1750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4087
SELECT 20 DIV + CASE - NULLIF ( + 39, - 80 ) WHEN + 92 THEN - + 15 + - - 16 ELSE + 23 * 9 * 22 END + + 5 * + COALESCE ( + 56, + 47 * - + 17 + - ( - 42 ) - - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) * COUNT( * ) DIV COUNT( * ) ) AS col2
----
280

skipif mysql # not compatible
query I rowsort label-4087
SELECT 20 / + CASE - NULLIF ( + 39, - 80 ) WHEN + 92 THEN - + 15 + - - 16 ELSE + 23 * 9 * 22 END + + 5 * + COALESCE ( + 56, + 47 * - + 17 + - ( - 42 ) - - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) / COUNT ( * ) ) AS col2
----
280

query I rowsort
SELECT + ( + - 13 ) + 17 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL 58 + COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL 58 + COUNT ( * ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT - COUNT( * ) * 99 + + 8
----
-91

skipif mysql # not compatible
query I rowsort label-4090
SELECT - COUNT ( * ) * 99 + + 8
----
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4091
SELECT ALL - 58 + - 16 * + CAST( - CASE 5 WHEN + ( 37 ) - - 47 THEN NULL WHEN 30 THEN - COUNT( * ) / COUNT( * ) END AS DECIMAL ) - + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL - 58 + - 16 * + CAST ( - CASE 5 WHEN + ( 37 ) - - 47 THEN NULL WHEN 30 THEN - COUNT ( * ) / COUNT ( * ) END AS REAL ) - + 29 AS col0
----
NULL

query I rowsort
SELECT ALL 22 + - 70 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT 93 * 45 * - COALESCE ( - - COUNT( * ), 69, + 63 + - 48 + - 11 - 33 * + 52 + 96 )
----
-4185

skipif mysql # not compatible
query I rowsort label-4093
SELECT 93 * 45 * - COALESCE ( - - COUNT ( * ), 69, + 63 + - 48 + - 11 - 33 * + 52 + 96 )
----
-4185

query I rowsort
SELECT ALL - 31 + - 81 * 21 * - 51 AS col1
----
86720

query I rowsort
SELECT 2 * 73
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4096
SELECT DISTINCT + COUNT( * ) DIV - - 48 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT + COUNT ( * ) / - - 48 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4097
SELECT MAX( - + 31 ) DIV - 24
----
1

skipif mysql # not compatible
query I rowsort label-4097
SELECT MAX ( - + 31 ) / - 24
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4098
SELECT - ( + + ( 82 ) ) - + - NULLIF ( + 8, COUNT( * ) ) - - 99 DIV 44 * - 21 + - COUNT( * )
----
-117

skipif mysql # not compatible
query I rowsort label-4098
SELECT - ( + + ( 82 ) ) - + - NULLIF ( + 8, COUNT ( * ) ) - - 99 / 44 * - 21 + - COUNT ( * )
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4099
SELECT 22 * - COUNT( * ) DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-4099
SELECT 22 * - COUNT ( * ) / + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT - 55 * 6 + + ( 97 ) + + COUNT( * ) AS col2
----
-232

skipif mysql # not compatible
query I rowsort label-4100
SELECT - 55 * 6 + + ( 97 ) + + COUNT ( * ) AS col2
----
-232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT + ( + + 43 ) + + - 65 + - - 49 + - 47 + + 81 + + + CASE + + 35 WHEN - NULLIF ( + - 46, 34 * + AVG ( CAST( NULL AS SIGNED ) ) ) THEN 85 END / + 14 * + 61 * - + 20 * ( ( - 24 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT + ( + + 43 ) + + - 65 + - - 49 + - 47 + + 81 + + + CASE + + 35 WHEN - NULLIF ( + - 46, 34 * + AVG ( CAST ( NULL AS INTEGER ) ) ) THEN 85 END / + 14 * + 61 * - + 20 * ( ( - 24 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 92 - - ( + 24 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT - 44 + + 13 - 58 + - 52 * - COUNT( * ) * + 11
----
483

skipif mysql # not compatible
query I rowsort label-4103
SELECT - 44 + + 13 - 58 + - 52 * - COUNT ( * ) * + 11
----
483

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4104
SELECT 71 * - 74 + + 55 * 77 + - - 86 AS col1, + AVG ( ALL - CAST( NULL AS SIGNED ) ) + 54 col0
----
-933
NULL

skipif mysql # not compatible
query II rowsort label-4104
SELECT 71 * - 74 + + 55 * 77 + - - 86 AS col1, + AVG ( ALL - CAST ( NULL AS INTEGER ) ) + 54 col0
----
-933
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4105
SELECT DISTINCT + 98 * 18 + COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) DIV + - 41 * - 1 - - 13 AS col0
----
1777

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT + 98 * 18 + COUNT ( DISTINCT CAST ( NULL AS REAL ) ) / + - 41 * - 1 - - 13 AS col0
----
1777

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT + MAX( DISTINCT + 29 ) + + 72 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-4106
SELECT + MAX ( DISTINCT + 29 ) + + 72 AS col0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-4107
SELECT - ( 74 ) DIV - 18 col2
----
4

skipif mysql # not compatible
query I rowsort label-4107
SELECT - ( 74 ) / - 18 col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT 50 * - 88 * - COUNT( ALL - 1 ) + - + MIN( DISTINCT + - 60 ) AS col1
----
4460

skipif mysql # not compatible
query I rowsort label-4108
SELECT 50 * - 88 * - COUNT ( ALL - 1 ) + - + MIN ( DISTINCT + - 60 ) AS col1
----
4460

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT SUM( ALL - + 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4109
SELECT SUM ( ALL - + 64 ) AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4110
SELECT 43, + CASE - + MIN( + 93 ) WHEN - 54 THEN 60 + ( - CAST( NULL AS SIGNED ) ) + - + 49 END AS col1, + COALESCE ( 40, - 3 ) - - 62 AS col1
----
43
NULL
102

skipif mysql # not compatible
query III rowsort label-4110
SELECT 43, + CASE - + MIN ( + 93 ) WHEN - 54 THEN 60 + ( - CAST ( NULL AS INTEGER ) ) + - + 49 END AS col1, + COALESCE ( 40, - 3 ) - - 62 AS col1
----
43
NULL
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4111
SELECT MAX( DISTINCT 54 ) DIV - + 13 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4111
SELECT MAX ( DISTINCT 54 ) / - + 13 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT DISTINCT + 34 DIV - - 60
----
0

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT + 34 / - - 60
----
0

query I rowsort
SELECT DISTINCT 23 * 46
----
1058

query I rowsort
SELECT ALL 82 + 96 + 55 AS col2
----
233

query II rowsort
SELECT + 94 AS col1, + 28
----
94
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT MIN( DISTINCT - ( - - 55 ) ) - - + 17, 91 AS col1
----
-38
91

skipif mysql # not compatible
query II rowsort label-4116
SELECT MIN ( DISTINCT - ( - - 55 ) ) - - + 17, 91 AS col1
----
-38
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT DISTINCT 81 + + 98 + SUM( DISTINCT - 16 )
----
163

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT 81 + + 98 + SUM ( DISTINCT - 16 )
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL 16 + + COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL 16 + + COUNT ( * ) AS col2
----
17

query II rowsort
SELECT DISTINCT - 41 col2, + 72 col2
----
-41
72

query I rowsort
SELECT 83 + 66 AS col0
----
149

query II rowsort
SELECT ALL - + 95, - 23 * - 32 AS col2
----
-95
736

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4122
SELECT - CAST( + 11 AS SIGNED ) + + + 2 DIV - 99 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4122
SELECT - CAST ( + 11 AS INTEGER ) + + + 2 / - 99 AS col1
----
-11

query I rowsort
SELECT NULLIF ( - + 67, + 96 ) - 70 AS col1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT COUNT( * ) * + 49 + + + 51 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-4124
SELECT COUNT ( * ) * + 49 + + + 51 AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4125
SELECT + AVG ( + 24 ) - - - ( + 4 ) + + CAST( NULL AS SIGNED ) * - 24 AS col2, - 72 * - MIN( - - 43 )
----
NULL
3096

skipif mysql # not compatible
query II rowsort label-4125
SELECT + AVG ( + 24 ) - - - ( + 4 ) + + CAST ( NULL AS INTEGER ) * - 24 AS col2, - 72 * - MIN ( - - 43 )
----
NULL
3096

query I rowsort
SELECT ALL + 96 - + 48 AS col0
----
48

query I rowsort
SELECT 16 * + 82 AS col0
----
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT 9 + + COALESCE ( + + 59, - + 48 - - + COUNT( * ) + - + COUNT( DISTINCT 75 ) - - 98 + + 13 * 35 + + 19 ) - - + 48 + - 21 col0
----
95

skipif mysql # not compatible
query I rowsort label-4128
SELECT 9 + + COALESCE ( + + 59, - + 48 - - + COUNT ( * ) + - + COUNT ( DISTINCT 75 ) - - 98 + + 13 * 35 + + 19 ) - - + 48 + - 21 col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT COALESCE ( - 45, - 11 * - 40 + - COUNT( * ) + - - 26 * 19 * + + 15 * - COUNT( * ) * - 20 * - - COALESCE ( - COUNT( - - 50 ), - COUNT( * ), - SUM( DISTINCT + 74 ) ), - 37 * - - 49 )
----
-45

skipif mysql # not compatible
query I rowsort label-4129
SELECT COALESCE ( - 45, - 11 * - 40 + - COUNT ( * ) + - - 26 * 19 * + + 15 * - COUNT ( * ) * - 20 * - - COALESCE ( - COUNT ( - - 50 ), - COUNT ( * ), - SUM ( DISTINCT + 74 ) ), - 37 * - - 49 )
----
-45

query I rowsort
SELECT + 94 + - + 16 AS col0
----
78

query II rowsort
SELECT - 32, 33 col1
----
-32
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4132
SELECT + CASE 82 WHEN - - CASE - 24 WHEN + COUNT( DISTINCT 30 ) THEN ( + - 34 ) * - 57 WHEN + 52 THEN + 92 / 11 + + 65 * - 39 END + 59 THEN NULL WHEN + 57 + - - CAST( NULL AS SIGNED ) THEN - + 8 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT + CASE 82 WHEN - - CASE - 24 WHEN + COUNT ( DISTINCT 30 ) THEN ( + - 34 ) * - 57 WHEN + 52 THEN + 92 / 11 + + 65 * - 39 END + 59 THEN NULL WHEN + 57 + - - CAST ( NULL AS INTEGER ) THEN - + 8 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 78 + + + 61
----
139

query I rowsort
SELECT 96 - 10 col2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4135
SELECT DISTINCT + + ( - 13 ) * - + ( - ( + MIN( 65 ) ) ) AS col0, - 88
----
-845
-88

skipif mysql # not compatible
query II rowsort label-4135
SELECT DISTINCT + + ( - 13 ) * - + ( - ( + MIN ( 65 ) ) ) AS col0, - 88
----
-845
-88

query I rowsort
SELECT ALL - 93 + + - 12 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT 58 + 42, COUNT( * ) col1
----
100
1

skipif mysql # not compatible
query II rowsort label-4137
SELECT 58 + 42, COUNT ( * ) col1
----
100
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4138
SELECT 68 * 46 * ( - ( 95 ) ) DIV 33
----
-9004

skipif mysql # not compatible
query I rowsort label-4138
SELECT 68 * 46 * ( - ( 95 ) ) / 33
----
-9004

query II rowsort
SELECT DISTINCT + 48 * - + 13 AS col0, 11 + 13 * - + ( - 83 ) AS col2
----
-624
1090

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT - 12 + + COUNT( * ) * + - 12
----
-24

skipif mysql # not compatible
query I rowsort label-4140
SELECT - 12 + + COUNT ( * ) * + - 12
----
-24

query I rowsort
SELECT - 18 - - 29 + + 25 AS col2
----
36

query I rowsort
SELECT ALL + 30 + + 58 * 62 AS col1
----
3626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4143
SELECT + 70 + + COUNT( * ) DIV - COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4143
SELECT + 70 + + COUNT ( * ) / - COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT NULLIF ( + COUNT( + 2 ), - - 27 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4144
SELECT NULLIF ( + COUNT ( + 2 ), - - 27 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT + COUNT( * ) * + 24 + + + ( - ( ( 88 ) ) ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4145
SELECT + COUNT ( * ) * + 24 + + + ( - ( ( 88 ) ) ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL - 52 * - ( - - COUNT( * ) ) + + ( + + MAX( - 23 ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL - 52 * - ( - - COUNT ( * ) ) + + ( + + MAX ( - 23 ) ) AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4147
SELECT + COUNT( * ) DIV - 18 * + ( - 14 ) + - 65 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-4147
SELECT + COUNT ( * ) / - 18 * + ( - 14 ) + - 65 AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4148
SELECT ALL 36 * + + MIN( DISTINCT + 7 ) + - CAST( NULL AS SIGNED ) * + 25 - + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL 36 * + + MIN ( DISTINCT + 7 ) + - CAST ( NULL AS INTEGER ) * + 25 - + 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL - COUNT( * ) * - 24 + - ( - - CASE + 59 WHEN + 19 THEN - - 41 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - COUNT ( * ) * - 24 + - ( - - CASE + 59 WHEN + 19 THEN - - 41 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT + 28 * + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4150
SELECT + 28 * + COUNT ( * ) AS col1
----
28

query I rowsort
SELECT 95 * - - 36 + + - 22 AS col0
----
3398

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4152
SELECT + 76 * 28 + + ( 81 ) AS col0, - CAST( + 75 AS SIGNED )
----
2209
-75

skipif mysql # not compatible
query II rowsort label-4152
SELECT + 76 * 28 + + ( 81 ) AS col0, - CAST ( + 75 AS INTEGER )
----
2209
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4153
SELECT ALL + COUNT( * ) * - - 30 AS col1, - ( + 28 ) AS col0
----
30
-28

skipif mysql # not compatible
query II rowsort label-4153
SELECT ALL + COUNT ( * ) * - - 30 AS col1, - ( + 28 ) AS col0
----
30
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL + MAX( + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL + MAX ( + 16 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4155
SELECT - - COUNT( DISTINCT - + 26 ) * - - ( + 42 ) + 0 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT - - COUNT ( DISTINCT - + 26 ) * - - ( + 42 ) + 0 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ( COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4156
SELECT ( COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4157
SELECT + + 4 DIV + - 97 + - MAX( ALL - 87 ) AS col0, 63 AS col0
----
87
63

skipif mysql # not compatible
query II rowsort label-4157
SELECT + + 4 / + - 97 + - MAX ( ALL - 87 ) AS col0, 63 AS col0
----
87
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4158
SELECT + + COUNT( 3 ) * + 9 + - 0 AS col1, + 99 * - 4 AS col1
----
9
-396

skipif mysql # not compatible
query II rowsort label-4158
SELECT + + COUNT ( 3 ) * + 9 + - 0 AS col1, + 99 * - 4 AS col1
----
9
-396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4159
SELECT + + NULLIF ( + COUNT( * ), 48 ) - - 57 * + CAST( NULL AS SIGNED ) * - 93 - 61 + + - 56 / 7 * - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4159
SELECT + + NULLIF ( + COUNT ( * ), 48 ) - - 57 * + CAST ( NULL AS INTEGER ) * - 93 - 61 + + - 56 / 7 * - - 72
----
NULL

query I rowsort
SELECT - 62 + + 69
----
7

query I rowsort
SELECT - ( - CASE - 73 WHEN + 30 THEN - + 29 + + - 62 + - + 64 * - ( + + 16 ) * - 13 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL + COUNT( * ) * 81 + ( - 60 )
----
21

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + COUNT ( * ) * 81 + ( - 60 )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT ALL ( + + 20 ) DIV - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL ( + + 20 ) / - 86 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4164
SELECT DISTINCT - CAST( - + 63 AS SIGNED ) + + + SUM( - 3 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT - CAST ( - + 63 AS INTEGER ) + + + SUM ( - 3 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL + + COUNT( * ) + - + 97 + - - 28 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + + COUNT ( * ) + - + 97 + - - 28 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT + + 52 + 99 * - 7 + - - MIN( ALL - 35 ) col0
----
-676

skipif mysql # not compatible
query I rowsort label-4166
SELECT + + 52 + 99 * - 7 + - - MIN ( ALL - 35 ) col0
----
-676

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4167
SELECT + - 77 DIV 6, 18 + 31 * 35 * + CAST( - 81 AS SIGNED ) - + + 78 AS col1
----
-12
-87945

skipif mysql # not compatible
query II rowsort label-4167
SELECT + - 77 / 6, 18 + 31 * 35 * + CAST ( - 81 AS INTEGER ) - + + 78 AS col1
----
-12
-87945

query I rowsort
SELECT ALL - 89 + - 43 + - 56 * 22 * + 4
----
-5060

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL 6 + - COUNT( * ) * + 21
----
-15

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL 6 + - COUNT ( * ) * + 21
----
-15

query II rowsort
SELECT 76 AS col0, + 63
----
76
63

query II rowsort
SELECT 13, 32 AS col2
----
13
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4172
SELECT + 88 DIV + 67 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4172
SELECT + 88 / + 67 AS col0
----
1

query I rowsort
SELECT - 94 + 46 + - - 57 AS col1
----
9

query I rowsort
SELECT ALL - 89 + - 7 AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4175
SELECT - CAST( - - CASE - - 33 WHEN ( - 24 ) - - 21 * - - 33 * + 36 * - + 46 THEN + 18 + + COUNT( * ) * 17 * + COUNT( * ) WHEN + 48 - + - CAST( NULL AS SIGNED ) THEN COUNT( * ) ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT - CAST ( - - CASE - - 33 WHEN ( - 24 ) - - 21 * - - 33 * + 36 * - + 46 THEN + 18 + + COUNT ( * ) * 17 * + COUNT ( * ) WHEN + 48 - + - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT - 70 + - + 8 + - 23 - + 50
----
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT - CAST( + 42 AS SIGNED ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4177
SELECT - CAST ( + 42 AS INTEGER ) AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4178
SELECT - 90 AS col0, 65 + - 47 + CAST( NULL AS SIGNED ) / + 82 * + + 51 - 19 + - 61 * + 4 / + 21 * - 33 AS col0
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-4178
SELECT - 90 AS col0, 65 + - 47 + CAST ( NULL AS INTEGER ) / + 82 * + + 51 - 19 + - 61 * + 4 / + 21 * - 33 AS col0
----
-90
NULL

query I rowsort
SELECT ALL 40 + + 80 AS col2
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4180
SELECT ALL - 92 DIV - 88 - + + 65 + + + ( + 23 ) - + + CASE + 45 WHEN - MIN( + 3 ) THEN NULL WHEN - 2 THEN + 27 + + ( + + 65 ) * - 4 WHEN 35 THEN - 92 + ( - NULLIF ( - CAST( - + 54 AS SIGNED ), + 72 + + + 88 + + 40 ) ) + - + 14 + - 50 + + 55 ELSE + 99 END AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL - 92 / - 88 - + + 65 + + + ( + 23 ) - + + CASE + 45 WHEN - MIN ( + 3 ) THEN NULL WHEN - 2 THEN + 27 + + ( + + 65 ) * - 4 WHEN 35 THEN - 92 + ( - NULLIF ( - CAST ( - + 54 AS INTEGER ), + 72 + + + 88 + + 40 ) ) + - + 14 + - 50 + + 55 ELSE + 99 END AS col0
----
-140

query I rowsort
SELECT + 81 * + + 41 col1
----
3321

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4182
SELECT CAST( NULL AS SIGNED ) AS col0, + 76 * CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4182
SELECT CAST ( NULL AS INTEGER ) AS col0, + 76 * CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4183
SELECT ALL - COALESCE ( 42, + + 68 ) * CAST( + + 54 AS SIGNED ) * 36 + 64 * + 48
----
-78576

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL - COALESCE ( 42, + + 68 ) * CAST ( + + 54 AS INTEGER ) * 36 + 64 * + 48
----
-78576

query I rowsort
SELECT - 4 * 54 col0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT + 94 * - 4 * + + COUNT( * ) * 76 + - 16 AS col2
----
-28592

skipif mysql # not compatible
query I rowsort label-4185
SELECT + 94 * - 4 * + + COUNT ( * ) * 76 + - 16 AS col2
----
-28592

query I rowsort
SELECT + NULLIF ( - ( - 66 ), - - 71 ) col1
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4187
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ( 65 ) AS col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT ALL 15 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL 15 / 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT + COUNT( * ) * ( 51 )
----
51

skipif mysql # not compatible
query I rowsort label-4190
SELECT + COUNT ( * ) * ( 51 )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT ALL + CAST( - 94 AS SIGNED ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL + CAST ( - 94 AS INTEGER ) AS col1
----
-94

query I rowsort
SELECT ALL - ( 28 ) * 53
----
-1484

query I rowsort
SELECT - 85 + COALESCE ( 99, 34 + + 81, 95 * - 66, 50 ) col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT + COALESCE ( 2, COALESCE ( 49, - COUNT( * ) * - 45 ), ( - 66 ) * + 60 )
----
2

skipif mysql # not compatible
query I rowsort label-4194
SELECT + COALESCE ( 2, COALESCE ( 49, - COUNT ( * ) * - 45 ), ( - 66 ) * + 60 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4195
SELECT - 2 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-4195
SELECT - 2 / - 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4196
SELECT - 93 * - CASE - 27 / SUM( DISTINCT 96 ) WHEN 74 * ( - 93 ) THEN COUNT( * ) / - 86 ELSE NULL END + - CAST( - 12 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT - 93 * - CASE - 27 / SUM ( DISTINCT 96 ) WHEN 74 * ( - 93 ) THEN COUNT ( * ) / - 86 ELSE NULL END + - CAST ( - 12 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT - MAX( + ( 1 ) ) * + 71 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4197
SELECT - MAX ( + ( 1 ) ) * + 71 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT + ( 23 ) * + ( + SUM( ALL + ( 64 ) ) + + 28 )
----
2116

skipif mysql # not compatible
query I rowsort label-4198
SELECT + ( 23 ) * + ( + SUM ( ALL + ( 64 ) ) + + 28 )
----
2116

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + COUNT( * ) - 83 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4199
SELECT + COUNT ( * ) - 83 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT + NULLIF ( + CASE WHEN ( + 52 ) NOT BETWEEN + MAX( + 13 ) AND NULL THEN NULL WHEN NULL NOT BETWEEN NULL AND NULL THEN 96 END, - COALESCE ( - COUNT( * ), + ( 57 ) * - 8 ) * + 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT + NULLIF ( + CASE WHEN ( + 52 ) NOT BETWEEN + MAX ( + 13 ) AND NULL THEN NULL WHEN NULL NOT BETWEEN NULL AND NULL THEN 96 END, - COALESCE ( - COUNT ( * ), + ( 57 ) * - 8 ) * + 3 )
----
NULL

query I rowsort
SELECT DISTINCT + 78 * + 44 + - 90 AS col1
----
3342

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4202
SELECT ALL - MIN( DISTINCT + NULLIF ( - 21, + 27 * + 14 + 96 ) ) * NULLIF ( 72 DIV 95, COUNT( * ) + 75 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - MIN ( DISTINCT + NULLIF ( - 21, + 27 * + 14 + 96 ) ) * NULLIF ( 72 / 95, COUNT ( * ) + 75 ) AS col2
----
0

query I rowsort
SELECT + 48 * + 12 col1
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT + COUNT( * ) + 23 col0
----
24

skipif mysql # not compatible
query I rowsort label-4204
SELECT + COUNT ( * ) + 23 col0
----
24

query I rowsort
SELECT ALL 7 + 26 AS col2
----
33

query I rowsort
SELECT 48 + 79
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT COUNT( + 45 ) + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-4207
SELECT COUNT ( + 45 ) + - 8
----
-7

query I rowsort
SELECT - 72 col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT 0 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT 0 + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL 59 * 7
----
413

query I rowsort
SELECT DISTINCT 94 * + ( - 40 * + 29 ) AS col2
----
-109040

query I rowsort
SELECT DISTINCT 64 + + 95 * 42 col1
----
4054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4213
SELECT MAX( + 91 ) + ( 39 ) * + COALESCE ( 74, + CAST( NULL AS SIGNED ) * + 8 )
----
2977

skipif mysql # not compatible
query I rowsort label-4213
SELECT MAX ( + 91 ) + ( 39 ) * + COALESCE ( 74, + CAST ( NULL AS INTEGER ) * + 8 )
----
2977

query I rowsort
SELECT DISTINCT 58 * - 21 AS col1
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT COUNT( 99 ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4215
SELECT COUNT ( 99 ) * COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT COALESCE ( - 67, COALESCE ( CAST( NULL AS SIGNED ), + 88 + + 81 ) ) * - 62
----
4154

skipif mysql # not compatible
query I rowsort label-4216
SELECT COALESCE ( - 67, COALESCE ( CAST ( NULL AS INTEGER ), + 88 + + 81 ) ) * - 62
----
4154

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT COUNT( - 21 ) + 95
----
96

skipif mysql # not compatible
query I rowsort label-4217
SELECT COUNT ( - 21 ) + 95
----
96

query I rowsort
SELECT 18 - 78
----
-60

query I rowsort
SELECT 92 + - 28 * - 0 AS col2
----
92

query I rowsort
SELECT 28 + 92 col2
----
120

query I rowsort
SELECT ALL 87 - + 67 * 22
----
-1387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4222
SELECT ALL + COUNT( * ) DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL + COUNT ( * ) / 66
----
0

query I rowsort
SELECT 37 + - 63 * + 36
----
-2231

query I rowsort
SELECT 11 * 49 AS col0
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT 32 * + 3 + - COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-4225
SELECT 32 * + 3 + - COUNT ( * ) AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4226
SELECT - + 34 DIV - 7 + + 86
----
90

skipif mysql # not compatible
query I rowsort label-4226
SELECT - + 34 / - 7 + + 86
----
90

query I rowsort
SELECT ( - 81 ) + + 50 AS col1
----
-31

query I rowsort
SELECT - 94 * 28
----
-2632

query I rowsort
SELECT ALL + 73 + + 17 AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT DISTINCT - - 73 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT - - 73 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT 94 * + COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-4231
SELECT 94 * + COUNT ( * ) AS col1
----
94

query I rowsort
SELECT 87 * 33 + 11 * 93
----
3894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4233
SELECT DISTINCT - - CASE + 96 WHEN + 24 THEN NULL WHEN - 24 / COUNT( * ) THEN NULL ELSE CAST( + ( + 42 ) AS SIGNED ) END
----
42

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT - - CASE + 96 WHEN + 24 THEN NULL WHEN - 24 / COUNT ( * ) THEN NULL ELSE CAST ( + ( + 42 ) AS INTEGER ) END
----
42

query I rowsort
SELECT 84 + 37 AS col0
----
121

query I rowsort
SELECT ALL + 90 + - 32
----
58

query I rowsort
SELECT ALL - 32 + + 12 * - 72 AS col1
----
-896

query I rowsort
SELECT + 88 * 10 AS col2
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT DISTINCT + - MAX( ALL - 24 ) + + 60 col0
----
84

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT + - MAX ( ALL - 24 ) + + 60 col0
----
84

query I rowsort
SELECT 35 * 82 + CASE 7 WHEN + 54 + ( 31 ) THEN 88 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT ALL - COUNT( * ) + - 3 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - COUNT ( * ) + - 3 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT - 63 DIV 58
----
-1

skipif mysql # not compatible
query I rowsort label-4241
SELECT - 63 / 58
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT SUM( DISTINCT 71 ) * 6 - - ( 32 ) * + 16
----
938

skipif mysql # not compatible
query I rowsort label-4242
SELECT SUM ( DISTINCT 71 ) * 6 - - ( 32 ) * + 16
----
938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT 93 + ( + 8 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT 93 + ( + 8 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT MIN( - - 5 ) * 27 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-4244
SELECT MIN ( - - 5 ) * 27 AS col1
----
135

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4245
SELECT ALL + 71 * + CASE COUNT( * ) WHEN + COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) + - 17 THEN 21 + + 32 / 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL + 71 * + CASE COUNT ( * ) WHEN + COUNT ( DISTINCT CAST ( NULL AS REAL ) ) + - 17 THEN 21 + + 32 / 99 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 17 * - 85
----
1445

query I rowsort
SELECT 6 * - 83 AS col1
----
-498

query I rowsort
SELECT DISTINCT - 26 - 33
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT DISTINCT - 17 * - 88 / CASE - 69 WHEN 2 THEN COUNT( * ) + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT - 17 * - 88 / CASE - 69 WHEN 2 THEN COUNT ( * ) + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT 96 - - 99 + + 60 * - MIN( ALL + 17 )
----
-825

skipif mysql # not compatible
query I rowsort label-4250
SELECT 96 - - 99 + + 60 * - MIN ( ALL + 17 )
----
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT 73 * - COUNT( * ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4251
SELECT 73 * - COUNT ( * ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT ( + COUNT( DISTINCT 10 ) ) + 73
----
74

skipif mysql # not compatible
query I rowsort label-4252
SELECT ( + COUNT ( DISTINCT 10 ) ) + 73
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT COUNT( * ) * - - 43 * 76
----
3268

skipif mysql # not compatible
query I rowsort label-4253
SELECT COUNT ( * ) * - - 43 * 76
----
3268

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT COUNT( * ) + - 27
----
-26

skipif mysql # not compatible
query I rowsort label-4254
SELECT COUNT ( * ) + - 27
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT - MAX( 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-4255
SELECT - MAX ( 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT DISTINCT COUNT( * ) * - - 69 * COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT COUNT ( * ) * - - 69 * COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL 39 * + + ( - COALESCE ( - 32, + 25 + COUNT( * ) ) ) * - 60 AS col0
----
-74880

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL 39 * + + ( - COALESCE ( - 32, + 25 + COUNT ( * ) ) ) * - 60 AS col0
----
-74880

query I rowsort
SELECT 70 - + + 69 col2
----
1

query I rowsort
SELECT 29 * - 92
----
-2668

query I rowsort
SELECT + - 60 col2
----
-60

query I rowsort
SELECT 9 * 90 AS col0
----
810

query I rowsort
SELECT + 19 * - COALESCE ( - 69, 94 ) col2
----
1311

query I rowsort
SELECT ALL - - NULLIF ( - 5, - 84 / 67 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT ALL 8 * - 37 * MAX( + 78 ) + NULLIF ( - 14, - 82 * 31 ) + 48 AS col1
----
-23054

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL 8 * - 37 * MAX ( + 78 ) + NULLIF ( - 14, - 82 * 31 ) + 48 AS col1
----
-23054

query I rowsort
SELECT ALL - - 96 * 49
----
4704

query I rowsort
SELECT DISTINCT + 59 * - + 77
----
-4543

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT + 38 + COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4267
SELECT + 38 + COUNT ( * ) AS col0
----
39

query I rowsort
SELECT + 52 + - 72
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT - + 15 * 57 * - MIN( - 96 )
----
-82080

skipif mysql # not compatible
query I rowsort label-4269
SELECT - + 15 * 57 * - MIN ( - 96 )
----
-82080

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT + NULLIF ( 76, + 85 * + 4 + - 23 * + COUNT( * ) ) col0
----
76

skipif mysql # not compatible
query I rowsort label-4270
SELECT + NULLIF ( 76, + 85 * + 4 + - 23 * + COUNT ( * ) ) col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT COUNT( * ) * + 91 + 73
----
164

skipif mysql # not compatible
query I rowsort label-4271
SELECT COUNT ( * ) * + 91 + 73
----
164

query I rowsort
SELECT ALL 30 - - 33
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4273
SELECT DISTINCT + 9 AS col2, + MIN( + 33 )
----
9
33

skipif mysql # not compatible
query II rowsort label-4273
SELECT DISTINCT + 9 AS col2, + MIN ( + 33 )
----
9
33

query I rowsort
SELECT ALL 47 * + 34 * - ( 57 ) * 67
----
-6102762

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT DISTINCT MAX( DISTINCT - + ( - - 0 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT MAX ( DISTINCT - + ( - - 0 ) ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4276
SELECT - CAST( - 30 AS SIGNED ) + - 68 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4276
SELECT - CAST ( - 30 AS INTEGER ) + - 68 AS col0
----
-38

query I rowsort
SELECT ALL + 40 * + 96 * + - 46 AS col2
----
-176640

query I rowsort
SELECT - 11 * - 20 AS col0
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT ALL + 67 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + 67 / - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 33, 42 AS col2
----
-33
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT - SUM( ALL 66 ) + 44 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4281
SELECT - SUM ( ALL 66 ) + 44 AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT - CAST( - 86 AS SIGNED ) + + - ( 51 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4282
SELECT - CAST ( - 86 AS INTEGER ) + + - ( 51 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT - MAX( DISTINCT 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4283
SELECT - MAX ( DISTINCT 5 ) AS col0
----
-5

query I rowsort
SELECT - 52 + + 37 * - 55 AS col0
----
-2087

query I rowsort
SELECT - 69 + 63
----
-6

query I rowsort
SELECT ALL + 78 * - 73
----
-5694

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) col0
----
-2

query I rowsort
SELECT ALL + 69 * ( - ( + 6 ) ) AS col1
----
-414

query I rowsort
SELECT + 98 + + 58
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT - 9 + - + 8 * - MAX( 84 )
----
663

skipif mysql # not compatible
query I rowsort label-4290
SELECT - 9 + - + 8 * - MAX ( 84 )
----
663

query I rowsort
SELECT - + 26 + - - ( ( - 75 ) ) * 39
----
-2951

query I rowsort
SELECT + + 20 - + 73
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT ALL - CAST( - 11 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL - CAST ( - 11 AS INTEGER ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL - CASE - 62 WHEN COUNT( * ) / 38 + - COUNT( * ) THEN + COUNT( * ) WHEN 10 THEN - 4 ELSE + COUNT( - 95 ) * COALESCE ( + 46, - 10, - COUNT( * ) + 71 ) END + - 99 AS col2
----
-145

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - CASE - 62 WHEN COUNT ( * ) / 38 + - COUNT ( * ) THEN + COUNT ( * ) WHEN 10 THEN - 4 ELSE + COUNT ( - 95 ) * COALESCE ( + 46, - 10, - COUNT ( * ) + 71 ) END + - 99 AS col2
----
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT + - ( + + 97 ) + 25 + 93 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT + - ( + + 97 ) + 25 + 93 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT - + 76 DIV + - 52
----
1

skipif mysql # not compatible
query I rowsort label-4296
SELECT - + 76 / + - 52
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4297
SELECT ALL + SUM( DISTINCT 19 ) DIV 83 + + 81 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + SUM ( DISTINCT 19 ) / 83 + + 81 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT + 43 * - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-4298
SELECT + 43 * - COUNT ( * )
----
-43

query II rowsort
SELECT ALL + + 17 AS col2, + 27 AS col0
----
17
27

query I rowsort
SELECT ALL + - 89 * + 2 AS col2
----
-178

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4301
SELECT DISTINCT + 74 / 13 * - 99 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT + 74 / 13 * - 99 + + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 36, + 27 col0
----
36
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT + 83 + + + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4303
SELECT + 83 + + + COUNT ( * ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL + 31 * + SUM( DISTINCT 42 ) + + 22 AS col2
----
1324

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL + 31 * + SUM ( DISTINCT 42 ) + + 22 AS col2
----
1324

query I rowsort
SELECT + - NULLIF ( 70, 38 ) AS col0
----
-70

query I rowsort
SELECT + - 92 col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4307
SELECT + - COUNT( * ) DIV + + 7
----
0

skipif mysql # not compatible
query I rowsort label-4307
SELECT + - COUNT ( * ) / + + 7
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT 44 * - 30 + - 74 + + 87 DIV + 78
----
-1393

skipif mysql # not compatible
query I rowsort label-4308
SELECT 44 * - 30 + - 74 + + 87 / + 78
----
-1393

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL + COUNT( ALL - ( 27 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL + COUNT ( ALL - ( 27 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4310
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * ) - + - COUNT( + COALESCE ( 78, 31 * 21 + + 56 * 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - + - COUNT ( + COALESCE ( 78, 31 * 21 + + 56 * 89 ) )
----
NULL

query II rowsort
SELECT ALL + 72 * + 32 col0, 50 + - 12 AS col2
----
2304
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT ALL COUNT( + 61 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL COUNT ( + 61 ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + ( - COUNT( * ) ) * - + 73 col2
----
73

skipif mysql # not compatible
query I rowsort label-4313
SELECT + ( - COUNT ( * ) ) * - + 73 col2
----
73

query I rowsort
SELECT ALL COALESCE ( - 11, + 97, + 18 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT DISTINCT + 54 * - - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT + 54 * - - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT + 52 * + COUNT( * ) * + 87 AS col2
----
4524

skipif mysql # not compatible
query I rowsort label-4316
SELECT + 52 * + COUNT ( * ) * + 87 AS col2
----
4524

query I rowsort
SELECT ALL + 9 + - 1 * - CASE - - 63 WHEN + 68 * 13 + + COALESCE ( 13, ( 62 ) - - 90, - 46 * 64 + 5 * - 93 ) * - 56 THEN 36 END AS col2
----
NULL

query I rowsort
SELECT - 22 * + 55
----
-1210

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT - 86 * + COALESCE ( ( + + 87 ), COUNT( * ), - 94 + 63 ) * MIN( ALL - 42 - ( + 40 ) ) AS col2
----
613524

skipif mysql # not compatible
query I rowsort label-4319
SELECT - 86 * + COALESCE ( ( + + 87 ), COUNT ( * ), - 94 + 63 ) * MIN ( ALL - 42 - ( + 40 ) ) AS col2
----
613524

query I rowsort
SELECT - 92 * + NULLIF ( + 30, 3 ) * - 78 col1
----
215280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4321
SELECT ALL - CASE + 58 WHEN + CAST( 68 AS SIGNED ) THEN - 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL - CASE + 58 WHEN + CAST ( 68 AS INTEGER ) THEN - 33 END
----
NULL

query I rowsort
SELECT - 4 * - - 45
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT - COALESCE ( 9, + CAST( + 87 AS SIGNED ) ) * + 5
----
-45

skipif mysql # not compatible
query I rowsort label-4323
SELECT - COALESCE ( 9, + CAST ( + 87 AS INTEGER ) ) * + 5
----
-45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4324
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * - - 93 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT - - CAST ( NULL AS REAL ) * - - 93 * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 37 * - 90 * + + COALESCE ( + 6, - 65 * - 80 + 1 * 41 )
----
19980

query I rowsort
SELECT DISTINCT - 67 + 82 AS col0
----
15

query I rowsort
SELECT DISTINCT + + 87 * 9 AS col1
----
783

query I rowsort
SELECT ALL - - 25 + - 90 * 48 * - + 92 AS col2
----
397465

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT + - 62 * MAX( 34 ) AS col2
----
-2108

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT + - 62 * MAX ( 34 ) AS col2
----
-2108

query I rowsort
SELECT + - 15 AS col1
----
-15

query I rowsort
SELECT + 7 + 12 col2
----
19

query I rowsort
SELECT 46 * - + 43
----
-1978

query I rowsort
SELECT + ( + 72 ) AS col2
----
72

query I rowsort
SELECT ALL - ( + + 75 ) AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4335
SELECT + - 5 * + ( + CAST( NULL AS SIGNED ) ) / 51 + - CASE - 12 + NULLIF ( 15, + 16 * 10 - + 37 * - COUNT( * ) ) WHEN 40 * - 24 THEN - ( - 94 ) END + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4335
SELECT + - 5 * + ( + CAST ( NULL AS INTEGER ) ) / 51 + - CASE - 12 + NULLIF ( 15, + 16 * 10 - + 37 * - COUNT ( * ) ) WHEN 40 * - 24 THEN - ( - 94 ) END + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT 25 * + ( + + COUNT( - + 64 ) )
----
25

skipif mysql # not compatible
query I rowsort label-4336
SELECT 25 * + ( + + COUNT ( - + 64 ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - COUNT( * ) + + - CASE - CASE - 34 WHEN + 82 THEN 93 * COUNT( * ) END WHEN 19 THEN 93 * 4 END + + 19 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT - COUNT ( * ) + + - CASE - CASE - 34 WHEN + 82 THEN 93 * COUNT ( * ) END WHEN 19 THEN 93 * 4 END + + 19 col2
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 18, + 35 * - 47 + 85 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT - NULLIF ( + ( - 57 ), - 12 + + COUNT( * ) * + 24 ) * - 47 AS col2
----
-2679

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT - NULLIF ( + ( - 57 ), - 12 + + COUNT ( * ) * + 24 ) * - 47 AS col2
----
-2679

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT 59 * - - ( - - 71 ) * - - 22 + - + COUNT( * ) AS col0
----
92157

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT 59 * - - ( - - 71 ) * - - 22 + - + COUNT ( * ) AS col0
----
92157

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4341
SELECT 86 * + - CAST( NULL AS DECIMAL ) / 5 + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT 86 * + - CAST ( NULL AS REAL ) / 5 + 3
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4342
SELECT 12 DIV + + 81
----
0

skipif mysql # not compatible
query I rowsort label-4342
SELECT 12 / + + 81
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4343
SELECT ALL - 48 AS col0, CASE - 58 WHEN + - CASE + 39 WHEN CASE 97 WHEN COUNT( * ) + - 92 THEN NULL ELSE - 63 * + NULLIF ( COUNT( * ), - 13 / + 30 ) END + + 22 THEN - 91 END / + SUM( + 53 ) THEN - 23 * - ( 74 ) WHEN + 38 THEN NULL END - 69 * + 89
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-4343
SELECT ALL - 48 AS col0, CASE - 58 WHEN + - CASE + 39 WHEN CASE 97 WHEN COUNT ( * ) + - 92 THEN NULL ELSE - 63 * + NULLIF ( COUNT ( * ), - 13 / + 30 ) END + + 22 THEN - 91 END / + SUM ( + 53 ) THEN - 23 * - ( 74 ) WHEN + 38 THEN NULL END - 69 * + 89
----
-48
NULL

query I rowsort
SELECT 83 * 18 AS col0
----
1494

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4345
SELECT MIN( + - 63 ) + + 69 + NULLIF ( + + CASE 33 WHEN COUNT( * ) * - 10 THEN NULL ELSE + 98 * 54 END, CAST( NULL AS DECIMAL ) ) * + 99
----
523914

skipif mysql # not compatible
query I rowsort label-4345
SELECT MIN ( + - 63 ) + + 69 + NULLIF ( + + CASE 33 WHEN COUNT ( * ) * - 10 THEN NULL ELSE + 98 * 54 END, CAST ( NULL AS REAL ) ) * + 99
----
523914

query I rowsort
SELECT 31 - - 93
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT 2 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT 2 / + 81
----
0

query I rowsort
SELECT ALL - 41 + - + 77
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4349
SELECT DISTINCT COUNT( DISTINCT - 60 ) DIV + + 75 - + 90 + - - 25 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT COUNT ( DISTINCT - 60 ) / + + 75 - + 90 + - - 25 AS col2
----
-65

query I rowsort
SELECT DISTINCT 93 + 64
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL COUNT( * ) + 32 + ( - NULLIF ( 96, - 58 ) ) * + 91
----
-8703

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL COUNT ( * ) + 32 + ( - NULLIF ( 96, - 58 ) ) * + 91
----
-8703

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4352
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 64 + + 72 AS col2, - CAST( NULL AS SIGNED ) * - 78 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4352
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 64 + + 72 AS col2, - CAST ( NULL AS INTEGER ) * - 78 AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4353
SELECT CAST( NULL AS DECIMAL ) + + 49 - + 87 * - + COUNT( * ) / - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT CAST ( NULL AS REAL ) + + 49 - + 87 * - + COUNT ( * ) / - 60
----
NULL

query I rowsort
SELECT 8 + + 59 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT 22 * COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT 22 * COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4356
SELECT ALL 53 col0, + 72 + + CASE + + COUNT( * ) WHEN + 70 THEN + AVG ( DISTINCT - ( 87 ) ) - - 84 ELSE NULL END AS col2
----
53
NULL

skipif mysql # not compatible
query II rowsort label-4356
SELECT ALL 53 col0, + 72 + + CASE + + COUNT ( * ) WHEN + 70 THEN + AVG ( DISTINCT - ( 87 ) ) - - 84 ELSE NULL END AS col2
----
53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT - COUNT( * ) * - 14 * + + 18 + 91 + + + COALESCE ( COUNT( + 55 ), 29 ) AS col2
----
344

skipif mysql # not compatible
query I rowsort label-4357
SELECT - COUNT ( * ) * - 14 * + + 18 + 91 + + + COALESCE ( COUNT ( + 55 ), 29 ) AS col2
----
344

onlyif mysql # aggregate syntax: 
query II rowsort label-4358
SELECT - 55 AS col1, - COUNT( + + 43 )
----
-55
-1

skipif mysql # not compatible
query II rowsort label-4358
SELECT - 55 AS col1, - COUNT ( + + 43 )
----
-55
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT 27 + + - 74 * COUNT( ALL + 65 )
----
-47

skipif mysql # not compatible
query I rowsort label-4359
SELECT 27 + + - 74 * COUNT ( ALL + 65 )
----
-47

query I rowsort
SELECT 62 * - 21
----
-1302

query I rowsort
SELECT ALL 74 + + 71
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT ALL MIN( ALL 61 )
----
61

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL MIN ( ALL 61 )
----
61

query I rowsort
SELECT 45 + - - 77 AS col1
----
122

query I rowsort
SELECT ALL - 54 * - 26 AS col0
----
1404

query I rowsort
SELECT DISTINCT 90 + - 79 * 49
----
-3781

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ALL + COUNT( * ) + + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + COUNT ( * ) + + - 41
----
-40

query I rowsort
SELECT + 38 + + - 72 * + 14 col2
----
-970

query I rowsort
SELECT ALL - 63 - + + 28 AS col1
----
-91

query I rowsort
SELECT + 82 * - - 16
----
1312

query I rowsort
SELECT ( - 88 ) + + 77 AS col0
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-4371
SELECT 71 DIV + 3 + + 23, 59 col2
----
46
59

skipif mysql # not compatible
query II rowsort label-4371
SELECT 71 / + 3 + + 23, 59 col2
----
46
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4372
SELECT DISTINCT - MIN( ALL - 26 ) DIV + + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT - MIN ( ALL - 26 ) / + + 68 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT DISTINCT CAST( 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT CAST ( 3 AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ALL - COUNT( * ) - + 31 * - 14 col0
----
433

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL - COUNT ( * ) - + 31 * - 14 col0
----
433

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4375
SELECT NULLIF ( - + 52, - SUM( CAST( + 62 AS SIGNED ) ) + ( 40 ) ) * 25
----
-1300

skipif mysql # not compatible
query I rowsort label-4375
SELECT NULLIF ( - + 52, - SUM ( CAST ( + 62 AS INTEGER ) ) + ( 40 ) ) * 25
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT ALL - + COUNT( * ) * 22
----
-22

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL - + COUNT ( * ) * 22
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT DISTINCT - ( - - CAST( + 49 AS SIGNED ) )
----
-49

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT - ( - - CAST ( + 49 AS INTEGER ) )
----
-49

query I rowsort
SELECT DISTINCT - 70 * - 9
----
630

query II rowsort
SELECT + 63 col0, - 42
----
63
-42

query I rowsort
SELECT ALL - 54 + + 75 AS col0
----
21

query I rowsort
SELECT DISTINCT - ( + 67 )
----
-67

query I rowsort
SELECT 93 * - 2 AS col0
----
-186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4383
SELECT DISTINCT - COALESCE ( 57, - 60 + - + 85 ) + + 93 DIV COUNT( * ) * + 20 col2
----
1803

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT - COALESCE ( 57, - 60 + - + 85 ) + + 93 / COUNT ( * ) * + 20 col2
----
1803

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4384
SELECT ALL - CAST( - 86 AS SIGNED ) AS col2, - 24 * ( - ( + - 48 ) )
----
86
-1152

skipif mysql # not compatible
query II rowsort label-4384
SELECT ALL - CAST ( - 86 AS INTEGER ) AS col2, - 24 * ( - ( + - 48 ) )
----
86
-1152

onlyif mysql # aggregate syntax: 
query II rowsort label-4385
SELECT COUNT( * ) AS col1, 94
----
1
94

skipif mysql # not compatible
query II rowsort label-4385
SELECT COUNT ( * ) AS col1, 94
----
1
94

query I rowsort
SELECT ALL - 54 + CASE 55 WHEN 26 THEN 5 ELSE - 98 END
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL 40 + - - CASE - + MIN( ALL - 12 ) WHEN + + ( - - 2 ) THEN NULL WHEN - 5 * COALESCE ( + 13, + 71, NULLIF ( - 11, 75 ) + - 12 * 79 ) THEN + 73 + + 31 * - SUM( DISTINCT + 51 ) WHEN 12 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL 40 + - - CASE - + MIN ( ALL - 12 ) WHEN + + ( - - 2 ) THEN NULL WHEN - 5 * COALESCE ( + 13, + 71, NULLIF ( - 11, 75 ) + - 12 * 79 ) THEN + 73 + + 31 * - SUM ( DISTINCT + 51 ) WHEN 12 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT - 37 + + COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT - 37 + + COUNT ( * ) AS col1
----
-36

query II rowsort
SELECT ALL - ( + 4 ) AS col2, - 36 AS col0
----
-4
-36

query I rowsort
SELECT - 14 * + 15 + - - ( + 27 ) + 58 * - 14 AS col1
----
-995

query I rowsort
SELECT 31 * + 7
----
217

onlyif mysql # aggregate syntax: 
query II rowsort label-4392
SELECT ALL - 82 AS col0, 7 + NULLIF ( - COUNT( DISTINCT 61 ), 90 ) + MIN( DISTINCT - 73 ) * COUNT( * ) * 6
----
-82
-432

skipif mysql # not compatible
query II rowsort label-4392
SELECT ALL - 82 AS col0, 7 + NULLIF ( - COUNT ( DISTINCT 61 ), 90 ) + MIN ( DISTINCT - 73 ) * COUNT ( * ) * 6
----
-82
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT MIN( - 69 ) * + 60
----
-4140

skipif mysql # not compatible
query I rowsort label-4393
SELECT MIN ( - 69 ) * + 60
----
-4140

onlyif mysql # aggregate syntax: 
query II rowsort label-4394
SELECT - 52, COUNT( * ) AS col1
----
-52
1

skipif mysql # not compatible
query II rowsort label-4394
SELECT - 52, COUNT ( * ) AS col1
----
-52
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL - COUNT( * ) * - - 26
----
-26

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL - COUNT ( * ) * - - 26
----
-26

query I rowsort
SELECT DISTINCT + 92 - - 98
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT COUNT( * ) * ( 55 )
----
55

skipif mysql # not compatible
query I rowsort label-4397
SELECT COUNT ( * ) * ( 55 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4398
SELECT ALL - 78 DIV 51 * + - COUNT( ALL ( 86 ) ) * + 45 + 16 * 21 AS col1
----
381

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL - 78 / 51 * + - COUNT ( ALL ( 86 ) ) * + 45 + 16 * 21 AS col1
----
381

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4399
SELECT + 9 DIV - ( - - NULLIF ( - + COALESCE ( - ( 41 ), - 92 - 4, - COUNT( * ), 48 ), - 89 * 91 ) ) * 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4399
SELECT + 9 / - ( - - NULLIF ( - + COALESCE ( - ( 41 ), - 92 - 4, - COUNT ( * ), 48 ), - 89 * 91 ) ) * 27 AS col2
----
0

query I rowsort
SELECT ALL 79 - - - 67 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT - COUNT( 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-4401
SELECT - COUNT ( 58 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT + ( - 20 ) * + ( - 67 ) + - + 90 * - 92 * 20 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT + ( - 20 ) * + ( - 67 ) + - + 90 * - 92 * 20 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT ALL COUNT( * ) * - 28 + + 40 + - 7 * - + 51
----
369

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL COUNT ( * ) * - 28 + + 40 + - 7 * - + 51
----
369

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - - CASE 19 WHEN - 58 THEN COUNT( * ) + - 87 ELSE 43 + + 16 END
----
59

skipif mysql # not compatible
query I rowsort label-4404
SELECT - - CASE 19 WHEN - 58 THEN COUNT ( * ) + - 87 ELSE 43 + + 16 END
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4405
SELECT - NULLIF ( + COALESCE ( + - 98, - 0 DIV + 94 + + 21 - + 33, COUNT( * ) ), 56 + - 2 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4405
SELECT - NULLIF ( + COALESCE ( + - 98, - 0 / + 94 + + 21 - + 33, COUNT ( * ) ), 56 + - 2 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT + SUM( DISTINCT + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-4406
SELECT + SUM ( DISTINCT + 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL - NULLIF ( COUNT( * ), - 77 * - + COALESCE ( + 67, - 80 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL - NULLIF ( COUNT ( * ), - 77 * - + COALESCE ( + 67, - 80 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4408
SELECT - + CAST( 20 AS SIGNED ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-4408
SELECT - + CAST ( 20 AS INTEGER ) col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4409
SELECT DISTINCT - 37 AS col2, 39 * NULLIF ( - CAST( 31 AS SIGNED ), ( + 64 ) * + 59 + - ( - 61 + 44 ) ) + + 74 * - 76
----
-37
-6833

skipif mysql # not compatible
query II rowsort label-4409
SELECT DISTINCT - 37 AS col2, 39 * NULLIF ( - CAST ( 31 AS INTEGER ), ( + 64 ) * + 59 + - ( - 61 + 44 ) ) + + 74 * - 76
----
-37
-6833

query II rowsort
SELECT DISTINCT - 96 AS col0, 6 AS col2
----
-96
6

query II rowsort
SELECT ALL 88 AS col1, 30 AS col2
----
88
30

query I rowsort
SELECT - 52 * 66 col1
----
-3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4413
SELECT ALL + + 69 DIV + COUNT( * ) + - COUNT( ALL - ( + 72 ) ) + 95 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL + + 69 / + COUNT ( * ) + - COUNT ( ALL - ( + 72 ) ) + 95 AS col1
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT - 61 DIV 40
----
-1

skipif mysql # not compatible
query I rowsort label-4414
SELECT - 61 / 40
----
-1

query I rowsort
SELECT DISTINCT + CASE + - 49 WHEN - - 39 + + + 3 * - 10 THEN + 55 * ( + 0 * - CASE + 27 * 14 WHEN + 20 THEN 14 ELSE NULL END ) ELSE + ( 50 ) * 46 END
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL - COUNT( * ) * - - 19 * - - 80 * + 19 * NULLIF ( - 94, + 2 ) + + 41
----
2714761

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL - COUNT ( * ) * - - 19 * - - 80 * + 19 * NULLIF ( - 94, + 2 ) + + 41
----
2714761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4417
SELECT + 5 + + COUNT( * ) + + CAST( + 51 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-4417
SELECT + 5 + + COUNT ( * ) + + CAST ( + 51 AS INTEGER )
----
57

query I rowsort
SELECT + - 78 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT SUM( - 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4419
SELECT SUM ( - 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL + COUNT( * ) * + 22 * + 32 AS col1
----
704

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL + COUNT ( * ) * + 22 * + 32 AS col1
----
704

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL - COUNT( * ) * 44 * - + 83 + + 48 AS col1
----
3700

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL - COUNT ( * ) * 44 * - + 83 + + 48 AS col1
----
3700

query I rowsort
SELECT DISTINCT + 95 * 14 col0
----
1330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4423
SELECT - 12 + - MAX( DISTINCT - CAST( + + 30 AS SIGNED ) ) * - 93 + + + 78
----
-2724

skipif mysql # not compatible
query I rowsort label-4423
SELECT - 12 + - MAX ( DISTINCT - CAST ( + + 30 AS INTEGER ) ) * - 93 + + + 78
----
-2724

query I rowsort
SELECT ALL + 24 * 15 + 9
----
369

query I rowsort
SELECT ALL - 50 * - 35
----
1750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT - 10 * + CAST( + 1 AS SIGNED ) + + + 78
----
68

skipif mysql # not compatible
query I rowsort label-4426
SELECT - 10 * + CAST ( + 1 AS INTEGER ) + + + 78
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL + CASE - 29 WHEN - ( + - COUNT( * ) ) THEN + + ( + 86 ) - + + 83 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL + CASE - 29 WHEN - ( + - COUNT ( * ) ) THEN + + ( + 86 ) - + + 83 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT - 69 + 77 * + MIN( - ( - 62 ) ) + 10 + 17 + + MAX( ALL 12 ) AS col1
----
4744

skipif mysql # not compatible
query I rowsort label-4428
SELECT - 69 + 77 * + MIN ( - ( - 62 ) ) + 10 + 17 + + MAX ( ALL 12 ) AS col1
----
4744

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT NULLIF ( - 60, COUNT( + 51 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-4429
SELECT NULLIF ( - 60, COUNT ( + 51 ) )
----
-60

query I rowsort
SELECT - 46 + 52 + - 9 + 75 AS col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4431
SELECT COALESCE ( - COUNT( * ), + 43 DIV + + ( - 39 ) * 98 * 60, CASE 76 WHEN 58 THEN - 60 END * + MIN( DISTINCT + 15 ) + ( - 37 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4431
SELECT COALESCE ( - COUNT ( * ), + 43 / + + ( - 39 ) * 98 * 60, CASE 76 WHEN 58 THEN - 60 END * + MIN ( DISTINCT + 15 ) + ( - 37 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4432
SELECT ALL + CAST( + + CASE - 1 WHEN 43 THEN + + COUNT( * ) ELSE NULL END AS SIGNED ) AS col0, - 93
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-4432
SELECT ALL + CAST ( + + CASE - 1 WHEN 43 THEN + + COUNT ( * ) ELSE NULL END AS INTEGER ) AS col0, - 93
----
NULL
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4433
SELECT COALESCE ( - 35, + MAX( DISTINCT + 95 ) DIV - - 57 ), ( 53 ) + - COALESCE ( + 25 + 57 * + 46, 86 * - 12 ) AS col0
----
-35
-2594

skipif mysql # not compatible
query II rowsort label-4433
SELECT COALESCE ( - 35, + MAX ( DISTINCT + 95 ) / - - 57 ), ( 53 ) + - COALESCE ( + 25 + 57 * + 46, 86 * - 12 ) AS col0
----
-35
-2594

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT + COUNT( * ) + + 27 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4434
SELECT + COUNT ( * ) + + 27 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL + NULLIF ( - 60, - COUNT( * ) )
----
-60

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL + NULLIF ( - 60, - COUNT ( * ) )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-4436
SELECT DISTINCT + SUM( - - 33 ) AS col1, 7
----
33
7

skipif mysql # not compatible
query II rowsort label-4436
SELECT DISTINCT + SUM ( - - 33 ) AS col1, 7
----
33
7

query II rowsort
SELECT DISTINCT 86 * + 80, + 85 AS col2
----
6880
85

query I rowsort
SELECT DISTINCT - 65 * - 64 - - 55 AS col0
----
4215

query I rowsort
SELECT ALL - CASE + 3 WHEN - + 21 THEN NULL ELSE + COALESCE ( - - 81, + - 9 ) + + 16 + + 1 END
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4440
SELECT + - 77 * CASE - + 52 WHEN 27 THEN + - 10 - - 14 * + CASE NULLIF ( - 84, + 4 ) WHEN + 72 THEN - CASE COUNT( * ) WHEN 80 THEN NULL WHEN + 79 THEN CAST( NULL AS SIGNED ) / 42 END * 68 END * 12 - - 88 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT + - 77 * CASE - + 52 WHEN 27 THEN + - 10 - - 14 * + CASE NULLIF ( - 84, + 4 ) WHEN + 72 THEN - CASE COUNT ( * ) WHEN 80 THEN NULL WHEN + 79 THEN CAST ( NULL AS INTEGER ) / 42 END * 68 END * 12 - - 88 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4441
SELECT DISTINCT COUNT( * ) - 24, - 86 AS col0
----
-23
-86

skipif mysql # not compatible
query II rowsort label-4441
SELECT DISTINCT COUNT ( * ) - 24, - 86 AS col0
----
-23
-86

query II rowsort
SELECT - + 91 + 50 - + 29 AS col2, 53 AS col2
----
-70
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4443
SELECT - - 16 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-4443
SELECT - - 16 / 65
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( + 62, - 45 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT + - 41 * - 96 * - COUNT( * ) col0
----
-3936

skipif mysql # not compatible
query I rowsort label-4445
SELECT + - 41 * - 96 * - COUNT ( * ) col0
----
-3936

query I rowsort
SELECT + 23 + + - CASE + + 54 WHEN - 24 * + 48 - 47 THEN NULL ELSE + 79 END
----
-56

query I rowsort
SELECT - 80 * + - 23 * + 84
----
154560

query I rowsort
SELECT ALL - 70 + - 41 * 22 + + 7 AS col0
----
-965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4449
SELECT CAST( + - MIN( + 0 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4449
SELECT CAST ( + - MIN ( + 0 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT DISTINCT 38 + + COALESCE ( 88, + ( + 45 ) DIV - + 22 + - COUNT( * ) )
----
126

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT 38 + + COALESCE ( 88, + ( + 45 ) / - + 22 + - COUNT ( * ) )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT + + 15 * - + 13 + + COUNT( * )
----
-194

skipif mysql # not compatible
query I rowsort label-4451
SELECT + + 15 * - + 13 + + COUNT ( * )
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT - + COUNT( * ) + - - 21 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4452
SELECT - + COUNT ( * ) + - - 21 AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4453
SELECT DISTINCT COUNT( * ) AS col2, 56 * - - 99 + + 83 * - 86 AS col2
----
1
-1594

skipif mysql # not compatible
query II rowsort label-4453
SELECT DISTINCT COUNT ( * ) AS col2, 56 * - - 99 + + 83 * - 86 AS col2
----
1
-1594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4454
SELECT + ( COALESCE ( + 61, + MAX( DISTINCT + 20 ) * + - COUNT( * ) DIV 8 - + + 89 + 23 * 31 ) ) col2
----
61

skipif mysql # not compatible
query I rowsort label-4454
SELECT + ( COALESCE ( + 61, + MAX ( DISTINCT + 20 ) * + - COUNT ( * ) / 8 - + + 89 + 23 * 31 ) ) col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4455
SELECT DISTINCT 69 DIV 45 + COUNT( * ) - 26 * - ( 84 ) col1
----
2186

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT 69 / 45 + COUNT ( * ) - 26 * - ( 84 ) col1
----
2186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4456
SELECT DISTINCT - 35 DIV - 14 + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT - 35 / - 14 + COUNT ( * )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT CAST( + 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-4457
SELECT CAST ( + 72 AS INTEGER )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4458
SELECT CAST( NULL AS SIGNED ) col2, - 68 * - MAX( - 46 )
----
NULL
-3128

skipif mysql # not compatible
query II rowsort label-4458
SELECT CAST ( NULL AS INTEGER ) col2, - 68 * - MAX ( - 46 )
----
NULL
-3128

query I rowsort
SELECT + 70 * + + 26
----
1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT - COUNT( * ) * 24 * - + CASE - 26 WHEN - COUNT( * ) + + 93 + + 38 + - CASE COUNT( * ) WHEN + 97 THEN + 41 * 39 END THEN NULL WHEN - MIN( + 87 ) + - 86 THEN 33 - 32 WHEN 66 - + 90 * - 31 THEN CAST( 42 AS SIGNED ) ELSE NULL END + - 11 * 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT - COUNT ( * ) * 24 * - + CASE - 26 WHEN - COUNT ( * ) + + 93 + + 38 + - CASE COUNT ( * ) WHEN + 97 THEN + 41 * 39 END THEN NULL WHEN - MIN ( + 87 ) + - 86 THEN 33 - 32 WHEN 66 - + 90 * - 31 THEN CAST ( 42 AS INTEGER ) ELSE NULL END + - 11 * 8 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4461
SELECT CAST( - 77 AS SIGNED ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4461
SELECT CAST ( - 77 AS INTEGER ) AS col0
----
-77

query II rowsort
SELECT + 37 AS col2, ( - + 75 ) AS col0
----
37
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4463
SELECT + CAST( NULL AS SIGNED ) AS col2, - 45 AS col0
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-4463
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 45 AS col0
----
NULL
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT CAST( - 30 AS SIGNED ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4464
SELECT CAST ( - 30 AS INTEGER ) AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4465
SELECT + 93 DIV 26 + + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4465
SELECT + 93 / 26 + + - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + COUNT( * ) * 1
----
1

skipif mysql # not compatible
query I rowsort label-4466
SELECT + COUNT ( * ) * 1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4467
SELECT ALL - 92 - CAST( NULL AS SIGNED ) + - 20, NULLIF ( - COUNT( * ), + 72 ) * + 75 - 85 AS col0
----
NULL
-160

skipif mysql # not compatible
query II rowsort label-4467
SELECT ALL - 92 - CAST ( NULL AS INTEGER ) + - 20, NULLIF ( - COUNT ( * ), + 72 ) * + 75 - 85 AS col0
----
NULL
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT 56 DIV + + 26 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4468
SELECT 56 / + + 26 AS col0
----
2

query II rowsort
SELECT ALL - 97, - 48 * - ( + 31 ) AS col0
----
-97
1488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4470
SELECT COALESCE ( + - MIN( 5 ), NULLIF ( 25, 87 * + + 46 * + + COUNT( * ) + - COUNT( * ) ) DIV 17 + + 23 * COUNT( * ), 54 DIV 7 ) * - 83
----
415

skipif mysql # not compatible
query I rowsort label-4470
SELECT COALESCE ( + - MIN ( 5 ), NULLIF ( 25, 87 * + + 46 * + + COUNT ( * ) + - COUNT ( * ) ) / 17 + + 23 * COUNT ( * ), 54 / 7 ) * - 83
----
415

query I rowsort
SELECT ALL + 84 * - ( 73 ) * + 76 AS col0
----
-466032

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4472
SELECT + 7 * + 20 / + - CAST( 11 AS SIGNED ) + + - CASE + 81 WHEN 86 THEN NULL WHEN + 72 + 66 * 10 THEN 46 * 60 END - CAST( NULL AS DECIMAL ) - - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT + 7 * + 20 / + - CAST ( 11 AS INTEGER ) + + - CASE + 81 WHEN 86 THEN NULL WHEN + 72 + 66 * 10 THEN 46 * 60 END - CAST ( NULL AS REAL ) - - 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4473
SELECT + CASE 73 WHEN ( - 4 ) THEN 97 + MAX( CAST( NULL AS SIGNED ) ) WHEN - 11 THEN - ( - 54 ) WHEN - NULLIF ( - 29, 9 ) * + COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT + CASE 73 WHEN ( - 4 ) THEN 97 + MAX ( CAST ( NULL AS INTEGER ) ) WHEN - 11 THEN - ( - 54 ) WHEN - NULLIF ( - 29, 9 ) * + COUNT ( * ) THEN NULL END AS col2
----
NULL

query II rowsort
SELECT + + 23 col2, + 64 + 66
----
23
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4475
SELECT 69 * - 18 * + - COALESCE ( - + 19, - COUNT( * ) * + COUNT( * ) ) * NULLIF ( - 69, - MAX( - 45 ) ) + + 72 - NULLIF ( + 15, - COUNT( 53 ) + + CASE + SUM( 18 ) WHEN + 19 * - 97 + CAST( NULL AS DECIMAL ) / + 13 THEN 90 / CASE - CASE - 8 WHEN + 23 THEN 75 ELSE NULL END WHEN - SUM( DISTINCT ( CAST( + 43 AS SIGNED ) ) ) + + ( 36 - - COUNT( * ) ) THEN + 22 * 53 - - 88 WHEN - 64 * 22 THEN NULL ELSE + COALESCE ( - 25, - 70 * - 81, 27 ) - 5 END WHEN - 87 + 93 / + 4 THEN NULL END * COUNT( * ) ) AS col2
----
1628319

skipif mysql # not compatible
query I rowsort label-4475
SELECT 69 * - 18 * + - COALESCE ( - + 19, - COUNT ( * ) * + COUNT ( * ) ) * NULLIF ( - 69, - MAX ( - 45 ) ) + + 72 - NULLIF ( + 15, - COUNT ( 53 ) + + CASE + SUM ( 18 ) WHEN + 19 * - 97 + CAST ( NULL AS REAL ) / + 13 THEN 90 / CASE - CASE - 8 WHEN + 23 THEN 75 ELSE NULL END WHEN - SUM ( DISTINCT ( CAST ( + 43 AS INTEGER ) ) ) + + ( 36 - - COUNT ( * ) ) THEN + 22 * 53 - - 88 WHEN - 64 * 22 THEN NULL ELSE + COALESCE ( - 25, - 70 * - 81, 27 ) - 5 END WHEN - 87 + 93 / + 4 THEN NULL END * COUNT ( * ) ) AS col2
----
1628319

query I rowsort
SELECT - 41 + 67 col1
----
26

query II rowsort
SELECT - 5, - 63 + - - 48 AS col0
----
-5
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT DISTINCT + MIN( ALL - 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT + MIN ( ALL - 4 ) AS col0
----
-4

query I rowsort
SELECT ALL + 76 * 60 AS col1
----
4560

onlyif mysql # aggregate syntax: 
query II rowsort label-4480
SELECT - 55 col0, COUNT( * ) * - 79
----
-55
-79

skipif mysql # not compatible
query II rowsort label-4480
SELECT - 55 col0, COUNT ( * ) * - 79
----
-55
-79

query II rowsort
SELECT ALL 67, + 16 AS col1
----
67
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4482
SELECT + CAST( NULL AS DECIMAL ) * - AVG ( DISTINCT 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT + CAST ( NULL AS REAL ) * - AVG ( DISTINCT 39 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4483
SELECT 7 - NULLIF ( AVG ( - - CAST( NULL AS DECIMAL ) ), + 80 * 52 * - 93 / - COUNT( * ) ) + 91 / + CAST( - COUNT( * ) * + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT 7 - NULLIF ( AVG ( - - CAST ( NULL AS REAL ) ), + 80 * 52 * - 93 / - COUNT ( * ) ) + 91 / + CAST ( - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + ( - + 81 ) + - 97
----
-16

query I rowsort
SELECT COALESCE ( + 6, 69 ) - + 2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4486
SELECT + CAST( NULL AS SIGNED ) / - SUM( ALL 59 ) * - 13 - + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT + CAST ( NULL AS INTEGER ) / - SUM ( ALL 59 ) * - 13 - + + 93
----
NULL

query I rowsort
SELECT ALL + 99 + - 71 col1
----
28

query I rowsort
SELECT + 73 - - - 28 AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4489
SELECT - 1 DIV 10 col1
----
0

skipif mysql # not compatible
query I rowsort label-4489
SELECT - 1 / 10 col1
----
0

query I rowsort
SELECT 7 * - - 18 col1
----
126

query I rowsort
SELECT DISTINCT + 80 + + - 47 * - 50 + - COALESCE ( - 3, + 23 + - 77 * + 15 * - 0 ) col1
----
2433

query I rowsort
SELECT DISTINCT + CASE 56 WHEN - + 39 THEN + - 59 * - 35 + + 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT + COUNT( * ) - + 24
----
-23

skipif mysql # not compatible
query I rowsort label-4493
SELECT + COUNT ( * ) - + 24
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4494
SELECT 21 DIV COALESCE ( - ( - COALESCE ( 30, + COALESCE ( + 97, + + 21 - + ( COUNT( DISTINCT - 10 ) ) ) ) ), - 81, 84 - - COUNT( * ), 3 + - 52 * COUNT( * ) ) * - 71
----
0

skipif mysql # not compatible
query I rowsort label-4494
SELECT 21 / COALESCE ( - ( - COALESCE ( 30, + COALESCE ( + 97, + + 21 - + ( COUNT ( DISTINCT - 10 ) ) ) ) ), - 81, 84 - - COUNT ( * ), 3 + - 52 * COUNT ( * ) ) * - 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4495
SELECT ALL 18 * + + 56 * + + COALESCE ( + 20, + COUNT( * ) DIV - 5 DIV - - 19 * 38 * + CASE - 34 WHEN - COUNT( * ) + + COUNT( * ) THEN NULL ELSE 73 END * + COUNT( * ) )
----
20160

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL 18 * + + 56 * + + COALESCE ( + 20, + COUNT ( * ) / - 5 / - - 19 * 38 * + CASE - 34 WHEN - COUNT ( * ) + + COUNT ( * ) THEN NULL ELSE 73 END * + COUNT ( * ) )
----
20160

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT DISTINCT - 78 DIV - 6
----
13

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT - 78 / - 6
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT ALL + ( - + 24 ) + COUNT( * ) + 53 * + 50 * - 80
----
-212023

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL + ( - + 24 ) + COUNT ( * ) + 53 * + 50 * - 80
----
-212023

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4498
SELECT ALL CAST( + 40 AS DECIMAL ) * - NULLIF ( COUNT( * ), + - COALESCE ( 50, 69 ) + + + 38 + + + 13 ) * - 17 + - COALESCE ( - COUNT( * ), 13 / - 29, + 71 * + 37 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL CAST ( + 40 AS REAL ) * - NULLIF ( COUNT ( * ), + - COALESCE ( 50, 69 ) + + + 38 + + + 13 ) * - 17 + - COALESCE ( - COUNT ( * ), 13 / - 29, + 71 * + 37 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL - MAX( ALL - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL - MAX ( ALL - 93 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4500
SELECT ALL CAST( NULL AS DECIMAL ) * + + COUNT( * ) * - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL CAST ( NULL AS REAL ) * + + COUNT ( * ) * - - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT COUNT( DISTINCT + 28 ) + - 77 + - - 54 + 27
----
5

skipif mysql # not compatible
query I rowsort label-4501
SELECT COUNT ( DISTINCT + 28 ) + - 77 + - - 54 + 27
----
5

query I rowsort
SELECT 72 * + + 94 * 62 AS col2
----
419616

query I rowsort
SELECT - COALESCE ( + 75, 39, 23, 8 ) + - 37 col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT - 55 * COUNT( * ) * 20 AS col1
----
-1100

skipif mysql # not compatible
query I rowsort label-4504
SELECT - 55 * COUNT ( * ) * 20 AS col1
----
-1100

query I rowsort
SELECT DISTINCT - 38 * 81 AS col0
----
-3078

query I rowsort
SELECT DISTINCT - + 47 AS col0
----
-47

query I rowsort
SELECT ALL - ( - 85 ) col0
----
85

query I rowsort
SELECT + 5 * + 46 AS col2
----
230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT ALL 75 + - + CAST( + 30 AS SIGNED ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL 75 + - + CAST ( + 30 AS INTEGER ) AS col2
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4510
SELECT 94 + + 56 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT 94 + + 56 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - CASE - 64 WHEN - 63 THEN + + 7 * + + 98 - 18 WHEN + - ( + + 26 ) THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT - 58 + MIN( DISTINCT 24 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4512
SELECT - 58 + MIN ( DISTINCT 24 ) AS col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4513
SELECT - 41 - - 87 + 23 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT - 41 - - 87 + 23 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT 32 + - 75 * - + COUNT( * ) AS col1
----
107

skipif mysql # not compatible
query I rowsort label-4514
SELECT 32 + - 75 * - + COUNT ( * ) AS col1
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4515
SELECT ALL - 87 + + + 7 + + 78 + + + 68 DIV + 86 * 13 * ( CASE WHEN 67 BETWEEN ( + COALESCE ( + 54, COUNT( * ) * - ( COUNT( DISTINCT - 20 ) ) - 55 DIV 61 ) - 52 * 8 ) AND + 88 + 80 * 26 THEN + COUNT( * ) * MAX( DISTINCT + CAST( CAST( 76 AS SIGNED ) AS SIGNED ) ) + + 48 * - 24 WHEN MIN( + 43 ) IN ( 82 ) THEN CAST( + 81 AS SIGNED ) * 4 END )
----
-2

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL - 87 + + + 7 + + 78 + + + 68 / + 86 * 13 * ( CASE WHEN 67 BETWEEN ( + COALESCE ( + 54, COUNT ( * ) * - ( COUNT ( DISTINCT - 20 ) ) - 55 / 61 ) - 52 * 8 ) AND + 88 + 80 * 26 THEN + COUNT ( * ) * MAX ( DISTINCT + CAST ( CAST ( 76 AS INTEGER ) AS INTEGER ) ) + + 48 * - 24 WHEN MIN ( + 43 ) IN ( 82 ) THEN CAST ( + 81 AS INTEGER ) * 4 END )
----
-2

query I rowsort
SELECT DISTINCT - + COALESCE ( - 47, + 0, 46 ) + + - 46 * 45
----
-2023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL - CAST( - 57 AS SIGNED ) * - 63 * - + 98
----
351918

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL - CAST ( - 57 AS INTEGER ) * - 63 * - + 98
----
351918

query I rowsort
SELECT 31 + + 61 AS col0
----
92

query I rowsort
SELECT ALL - ( + 51 ) - + ( 33 ) + - 34 + - 29 * + + 79 + + 67
----
-2342

query I rowsort
SELECT 37 * 40 AS col2
----
1480

query I rowsort
SELECT 40 + - 47 * - + 93 AS col1
----
4411

query II rowsort
SELECT - 69, - 30 * - - 41 AS col2
----
-69
-1230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4523
SELECT ALL COUNT( ALL + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL COUNT ( ALL + + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT 27 * - + 72 AS col1
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT DISTINCT COALESCE ( COUNT( * ), 61 + - - 30 * + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT COALESCE ( COUNT ( * ), 61 + - - 30 * + 3 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL + COUNT( * ) * + MIN( ALL - + 82 ) * - 35 + + 96 + + 94 * - + ( - 27 ) + - 38 * 38 * 86 AS col0
----
-118680

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL + COUNT ( * ) * + MIN ( ALL - + 82 ) * - 35 + + 96 + + 94 * - + ( - 27 ) + - 38 * 38 * 86 AS col0
----
-118680

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT + MIN( + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT + MIN ( + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT + SUM( 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4528
SELECT + SUM ( 16 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT + SUM( ALL + 89 ) * 70
----
6230

skipif mysql # not compatible
query I rowsort label-4529
SELECT + SUM ( ALL + 89 ) * 70
----
6230

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT ALL - 29 DIV 55 col0
----
0

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - 29 / 55 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4531
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( - + 18 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( - + 18 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4532
SELECT + SUM( - ( + NULLIF ( + 39, - 35 ) ) ) AS col0, ( - 86 ) + - 10 - - - 19
----
-39
-115

skipif mysql # not compatible
query II rowsort label-4532
SELECT + SUM ( - ( + NULLIF ( + 39, - 35 ) ) ) AS col0, ( - 86 ) + - 10 - - - 19
----
-39
-115

query I rowsort
SELECT COALESCE ( - 95, ( 91 ), + 28 ) AS col0
----
-95

query I rowsort
SELECT DISTINCT + ( 11 ) * - 99 * + - 19 + + 72 AS col2
----
20763

query I rowsort
SELECT - ( + 19 ) AS col1
----
-19

query I rowsort
SELECT ALL - 98 * - 30
----
2940

query I rowsort
SELECT ALL - 52 * + - 19 + - 34 - 4
----
950

query I rowsort
SELECT + 76 + + ( - 12 ) AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4539
SELECT DISTINCT - 37 * - 22 * - 41 DIV - + COUNT( * ) + + 46 DIV - NULLIF ( ( - + 6 ), - - 40 ) AS col1
----
33381

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT - 37 * - 22 * - 41 / - + COUNT ( * ) + + 46 / - NULLIF ( ( - + 6 ), - - 40 ) AS col1
----
33381

query I rowsort
SELECT DISTINCT + ( + NULLIF ( NULLIF ( 64, - 31 ), - 99 ) ) AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4541
SELECT - + 71 + + ( + 27 ), NULLIF ( + + 57, + + CAST( COUNT( * ) AS DECIMAL ) ) + + 81 + + 41 * - - 31 AS col2
----
-44
1409

skipif mysql # not compatible
query II rowsort label-4541
SELECT - + 71 + + ( + 27 ), NULLIF ( + + 57, + + CAST ( COUNT ( * ) AS REAL ) ) + + 81 + + 41 * - - 31 AS col2
----
-44
1409

query I rowsort
SELECT ALL - 91 + + 24
----
-67

query I rowsort
SELECT ALL + 33 * - 59 * - - 6
----
-11682

onlyif mysql # DIV for integer division: 
query I rowsort label-4544
SELECT ALL + COALESCE ( - - 20, - 54 ) DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + COALESCE ( - - 20, - 54 ) / - 74
----
0

query II rowsort
SELECT - + 93 AS col1, + 18 + - 64 AS col1
----
-93
-46

query I rowsort
SELECT + 58 - 14 + + 89
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT DISTINCT SUM( + ( + 62 ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT SUM ( + ( + 62 ) ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT ALL COUNT( + 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL COUNT ( + 46 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4549
SELECT - ( 82 ) AS col1, - COALESCE ( + + 12, + 21 + 93, + 70 DIV 68 )
----
-82
-12

skipif mysql # not compatible
query II rowsort label-4549
SELECT - ( 82 ) AS col1, - COALESCE ( + + 12, + 21 + 93, + 70 / 68 )
----
-82
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4550
SELECT 24 AS col1, + ( + CAST( NULL AS SIGNED ) ) + - 98 * 73 col1
----
24
NULL

skipif mysql # not compatible
query II rowsort label-4550
SELECT 24 AS col1, + ( + CAST ( NULL AS INTEGER ) ) + - 98 * 73 col1
----
24
NULL

query I rowsort
SELECT ALL NULLIF ( - 56, - 78 * + + 71 ) AS col0
----
-56

query I rowsort
SELECT - 40 * 69 AS col1
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL SUM( + 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL SUM ( + 48 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT - COUNT( * ) - + + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4554
SELECT - COUNT ( * ) - + + COUNT ( * )
----
-2

query I rowsort
SELECT ALL ( + 94 ) AS col0
----
94

query I rowsort
SELECT ALL - 33 * - + 76 * 68
----
170544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4557
SELECT - 10 * - + 18, 4 / 73 + - 29 + + - 65 * - CASE 93 WHEN + + AVG ( ALL + ( + + 18 ) ) THEN + 4 + 48 WHEN - ( 51 ) THEN CAST( - 28 AS SIGNED ) WHEN - NULLIF ( COALESCE ( 89, 5 * 82 ), 57 ) * 15 THEN NULL END AS col1
----
180
NULL

skipif mysql # not compatible
query II rowsort label-4557
SELECT - 10 * - + 18, 4 / 73 + - 29 + + - 65 * - CASE 93 WHEN + + AVG ( ALL + ( + + 18 ) ) THEN + 4 + 48 WHEN - ( 51 ) THEN CAST ( - 28 AS INTEGER ) WHEN - NULLIF ( COALESCE ( 89, 5 * 82 ), 57 ) * 15 THEN NULL END AS col1
----
180
NULL

query II rowsort
SELECT - 88 AS col0, + 81 * 59 AS col2
----
-88
4779

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + SUM( 64 ) + + ( + COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-4559
SELECT + SUM ( 64 ) + + ( + COUNT ( * ) )
----
65

query I rowsort
SELECT ALL - 25 * + 6 * - 59 AS col0
----
8850

query I rowsort
SELECT - 74 * + - 49 AS col0
----
3626

query I rowsort
SELECT + 55 * - - 59 + 21 col1
----
3266

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT + 61 DIV + 56 + + 69 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4563
SELECT + 61 / + 56 + + 69 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4564
SELECT DISTINCT + 39 AS col2, CASE ( + 77 ) WHEN + + 21 * + - MAX( DISTINCT CAST( - 29 AS SIGNED ) ) THEN + - 72 - + 45 ELSE + 91 END * 36
----
39
3276

skipif mysql # not compatible
query II rowsort label-4564
SELECT DISTINCT + 39 AS col2, CASE ( + 77 ) WHEN + + 21 * + - MAX ( DISTINCT CAST ( - 29 AS INTEGER ) ) THEN + - 72 - + 45 ELSE + 91 END * 36
----
39
3276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4565
SELECT ALL ( NULLIF ( - COUNT( * ), - 30 * - 63 ) ) DIV ( + + COUNT( * ) ) + - 71 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL ( NULLIF ( - COUNT ( * ), - 30 * - 63 ) ) / ( + + COUNT ( * ) ) + - 71 AS col1
----
-72

query II rowsort
SELECT - 51 + - NULLIF ( - 6, - + 16 ) AS col0, 25 AS col0
----
-45
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4567
SELECT ALL + + 35 DIV + COUNT( * ) + 15 + + + MIN( DISTINCT + + 84 ) + 86 AS col2, COUNT( * ) * - - 16 AS col0
----
220
16

skipif mysql # not compatible
query II rowsort label-4567
SELECT ALL + + 35 / + COUNT ( * ) + 15 + + + MIN ( DISTINCT + + 84 ) + 86 AS col2, COUNT ( * ) * - - 16 AS col0
----
220
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT + NULLIF ( + - 30, + CAST( - COUNT( * ) AS SIGNED ) ) * 7 + - 38 AS col2
----
-248

skipif mysql # not compatible
query I rowsort label-4568
SELECT + NULLIF ( + - 30, + CAST ( - COUNT ( * ) AS INTEGER ) ) * 7 + - 38 AS col2
----
-248

query I rowsort
SELECT ALL + - COALESCE ( - - 4, 82 * - - 64 + - 25, - 79 )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4570
SELECT + 7, COUNT( * ) * 90 * 42 AS col2
----
7
3780

skipif mysql # not compatible
query II rowsort label-4570
SELECT + 7, COUNT ( * ) * 90 * 42 AS col2
----
7
3780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT NULLIF ( 98, + - 39 * AVG ( + 94 ) - + COALESCE ( - - 49, + 2 ) ) * 41 * + 23 * - CAST( NULL AS SIGNED ) + - 60 + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT NULLIF ( 98, + - 39 * AVG ( + 94 ) - + COALESCE ( - - 49, + 2 ) ) * 41 * + 23 * - CAST ( NULL AS INTEGER ) + - 60 + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL 17 * COUNT( + 68 ) + - 72 * - + 32
----
2321

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL 17 * COUNT ( + 68 ) + - 72 * - + 32
----
2321

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT DISTINCT - + 16 * - COUNT( * ) * - 88 + + + COUNT( * )
----
-1407

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT - + 16 * - COUNT ( * ) * - 88 + + + COUNT ( * )
----
-1407

query I rowsort
SELECT - - 48 * 37 AS col2
----
1776

query I rowsort
SELECT + + 42 + - + 2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4576
SELECT ALL - - CAST( + 59 AS SIGNED ) * + 98 * - COUNT( * ) * - 36 - - - CAST( NULL AS SIGNED ) + + + 42 * - AVG ( - 82 ) * + 91 + + 70 + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - - CAST ( + 59 AS INTEGER ) * + 98 * - COUNT ( * ) * - 36 - - - CAST ( NULL AS INTEGER ) + + + 42 * - AVG ( - 82 ) * + 91 + + 70 + 97
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4577
SELECT + 31, - COUNT( * ) + CASE - - 63 WHEN + 79 - - - 26 THEN 45 END AS col2
----
31
NULL

skipif mysql # not compatible
query II rowsort label-4577
SELECT + 31, - COUNT ( * ) + CASE - - 63 WHEN + 79 - - - 26 THEN 45 END AS col2
----
31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT DISTINCT - + COUNT( * ) * + - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT - + COUNT ( * ) * + - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL + - 20 AS col1
----
-20

query I rowsort
SELECT + 89 + 28 + + 38 AS col0
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-4581
SELECT ALL - 51 AS col0, + COUNT( * ) - 45
----
-51
-44

skipif mysql # not compatible
query II rowsort label-4581
SELECT ALL - 51 AS col0, + COUNT ( * ) - 45
----
-51
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4582
SELECT COALESCE ( ( COALESCE ( - 8, + + 54, - CAST( + 54 AS SIGNED ) ) ), - 10 + - ( + + 51 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-4582
SELECT COALESCE ( ( COALESCE ( - 8, + + 54, - CAST ( + 54 AS INTEGER ) ) ), - 10 + - ( + + 51 ) )
----
-8

query I rowsort
SELECT - + 79 + - 48
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT + - 15 * + COUNT( * ) + - 64
----
-79

skipif mysql # not compatible
query I rowsort label-4584
SELECT + - 15 * + COUNT ( * ) + - 64
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4585
SELECT - + 81 * 7 * + COUNT( * ) + + ( 7 ) * - COALESCE ( + + 70, - 14 DIV - - 85 + - + 70 ) AS col2
----
-1057

skipif mysql # not compatible
query I rowsort label-4585
SELECT - + 81 * 7 * + COUNT ( * ) + + ( 7 ) * - COALESCE ( + + 70, - 14 / - - 85 + - + 70 ) AS col2
----
-1057

query I rowsort
SELECT + - 99 - - 11
----
-88

query I rowsort
SELECT + 53 - + 89
----
-36

query I rowsort
SELECT ALL 35 * 3 AS col2
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT DISTINCT 52 * CAST( - 88 AS SIGNED )
----
-4576

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT 52 * CAST ( - 88 AS INTEGER )
----
-4576

query I rowsort
SELECT DISTINCT - 56 * - + ( 91 )
----
5096

query I rowsort
SELECT ALL + 1 * ( - 57 ) * - 17
----
969

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ( - 77 ) + + + MAX( 7 ) * - - 19 * + 36
----
4711

skipif mysql # not compatible
query I rowsort label-4592
SELECT ( - 77 ) + + + MAX ( 7 ) * - - 19 * + 36
----
4711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4593
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * + 49 + - 0 + + 17
----
-32

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * + 49 + - 0 + + 17
----
-32

query I rowsort
SELECT 30 * - 74 * - 35 * + - 91
----
-7070700

query I rowsort
SELECT DISTINCT 34 * + 13
----
442

query I rowsort
SELECT DISTINCT 93 * + 14
----
1302

query I rowsort
SELECT ALL 51 + - - 87
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4598
SELECT MAX( - CAST( NULL AS SIGNED ) ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT 91 + + + 11 + CAST( 61 AS SIGNED ) AS col2
----
163

skipif mysql # not compatible
query I rowsort label-4599
SELECT 91 + + + 11 + CAST ( 61 AS INTEGER ) AS col2
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT DISTINCT CASE + 92 WHEN - + 81 * + 37 + - ( - 46 ) * COUNT( * ) THEN NULL ELSE 92 END + + ( 14 ) * - 4
----
36

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT CASE + 92 WHEN - + 81 * + 37 + - ( - 46 ) * COUNT ( * ) THEN NULL ELSE 92 END + + ( 14 ) * - 4
----
36

query I rowsort
SELECT ALL + 66 + + 1 + - 64 + 52 * - 46 * 30 AS col2
----
-71757

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT DISTINCT - 57 + + COALESCE ( - 9, + + COUNT( * ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT - 57 + + COALESCE ( - 9, + + COUNT ( * ) ) AS col2
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4603
SELECT DISTINCT 50 + - 18 * - + COALESCE ( + COUNT( * ), - 18, - COUNT( * ) + ( 3 ) + - 33 DIV COALESCE ( + SUM( DISTINCT + 64 ), + COALESCE ( 35, 43, - 59 DIV - 21 ), 52, MAX( DISTINCT + 88 ) ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT 50 + - 18 * - + COALESCE ( + COUNT ( * ), - 18, - COUNT ( * ) + ( 3 ) + - 33 / COALESCE ( + SUM ( DISTINCT + 64 ), + COALESCE ( 35, 43, - 59 / - 21 ), 52, MAX ( DISTINCT + 88 ) ) ) AS col0
----
68

query I rowsort
SELECT ALL + 94 * - 76 * - ( + - 54 ) * + 48 * - 25 + - 24 * - ( + 57 ) * - - 83 * - 11
----
461682216

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT + + COALESCE ( + SUM( ALL - - 69 ), + 31 * CASE + COUNT( * ) WHEN - + 30 THEN 51 END, + 96 )
----
69

skipif mysql # not compatible
query I rowsort label-4605
SELECT + + COALESCE ( + SUM ( ALL - - 69 ), + 31 * CASE + COUNT ( * ) WHEN - + 30 THEN 51 END, + 96 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4606
SELECT COUNT( * ) * - 26 + 32 + 79 DIV + - 9 + 65 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4606
SELECT COUNT ( * ) * - 26 + 32 + 79 / + - 9 + 65 AS col0
----
63

query I rowsort
SELECT + 1 * 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT ALL + 15 * - COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL + 15 * - COUNT ( * ) AS col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4609
SELECT ALL - 57 + + 10 DIV - - MIN( DISTINCT + 3 )
----
-54

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL - 57 + + 10 / - - MIN ( DISTINCT + 3 )
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4610
SELECT + 81 DIV 64 - 74
----
-73

skipif mysql # not compatible
query I rowsort label-4610
SELECT + 81 / 64 - 74
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT SUM( ( + + 13 ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4611
SELECT SUM ( ( + + 13 ) ) AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4612
SELECT DISTINCT + + COALESCE ( 22, ( + COUNT( * ) ) DIV 60 ) * + COUNT( * ) col1
----
22

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT + + COALESCE ( 22, ( + COUNT ( * ) ) / 60 ) * + COUNT ( * ) col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4613
SELECT 7 DIV + COUNT( * ) * - COUNT( + + 26 ) - + 70
----
-77

skipif mysql # not compatible
query I rowsort label-4613
SELECT 7 / + COUNT ( * ) * - COUNT ( + + 26 ) - + 70
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT 51 * + CAST( + 13 AS SIGNED ) + + - 59
----
604

skipif mysql # not compatible
query I rowsort label-4614
SELECT 51 * + CAST ( + 13 AS INTEGER ) + + - 59
----
604

query I rowsort
SELECT ALL + ( - 49 ) * + 19
----
-931

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL COUNT( * ) * + - 35 - - COUNT( * ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL COUNT ( * ) * + - 35 - - COUNT ( * ) col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4617
SELECT ALL - - CAST( + 48 AS SIGNED ) - + 78 + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL - - CAST ( + 48 AS INTEGER ) - + 78 + + COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT DISTINCT - + CASE + - 88 WHEN COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN + + 69 + + 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT - + CASE + - 88 WHEN COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN + + 69 + + 34 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 22 * 51
----
1122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4620
SELECT ALL + - 76 DIV COUNT( * ) - + 62 + - + 95 AS col1
----
-233

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL + - 76 / COUNT ( * ) - + 62 + - + 95 AS col1
----
-233

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT - + ( - 58 ) * - COUNT( * ) + - CASE + MIN( + 73 ) WHEN + - 18 THEN 78 * 66 + - 62 + COUNT( * ) ELSE - 14 + 51 * 79 END
----
-4073

skipif mysql # not compatible
query I rowsort label-4621
SELECT - + ( - 58 ) * - COUNT ( * ) + - CASE + MIN ( + 73 ) WHEN + - 18 THEN 78 * 66 + - 62 + COUNT ( * ) ELSE - 14 + 51 * 79 END
----
-4073

query I rowsort
SELECT ALL - + 43 col1
----
-43

query I rowsort
SELECT DISTINCT + 83 - + 76 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT CASE + 47 WHEN + 45 * + NULLIF ( 79, - COUNT( * ) ) + 79 THEN NULL ELSE - ( COUNT( * ) ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-4624
SELECT CASE + 47 WHEN + 45 * + NULLIF ( 79, - COUNT ( * ) ) + 79 THEN NULL ELSE - ( COUNT ( * ) ) END col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4625
SELECT COUNT( * ) DIV 89 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-4625
SELECT COUNT ( * ) / 89 / 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT + COUNT( * ) * 41 + 13 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4626
SELECT + COUNT ( * ) * 41 + 13 AS col0
----
54

query I rowsort
SELECT ( - - CASE + 34 WHEN - 24 / - 60 * 65 THEN + + 70 + 88 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT - 10 + - 68
----
-78

query I rowsort
SELECT 99 * - 14 AS col2
----
-1386

query I rowsort
SELECT ALL 94 * 59
----
5546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4631
SELECT 40 * 13 * NULLIF ( - - ( SUM( ALL - - 62 ) ), - + ( - - CASE + 46 WHEN + 4 THEN - + 97 * + ( + - 24 ) + + 30 * + 86 + - ( - 28 ) WHEN + 57 + - 87 THEN NULL ELSE - 15 + 60 END ) DIV - 36 + 17 * 45 ) DIV + 56 AS col2
----
575

skipif mysql # not compatible
query I rowsort label-4631
SELECT 40 * 13 * NULLIF ( - - ( SUM ( ALL - - 62 ) ), - + ( - - CASE + 46 WHEN + 4 THEN - + 97 * + ( + - 24 ) + + 30 * + 86 + - ( - 28 ) WHEN + 57 + - 87 THEN NULL ELSE - 15 + 60 END ) / - 36 + 17 * 45 ) / + 56 AS col2
----
575

query I rowsort
SELECT ALL 11 * + 48 AS col0
----
528

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4633
SELECT 49 AS col2, + 28 - + + CAST( - + NULLIF ( + + ( - + 31 ), - 94 ) AS SIGNED ) DIV - + 60 AS col0
----
49
28

skipif mysql # not compatible
query II rowsort label-4633
SELECT 49 AS col2, + 28 - + + CAST ( - + NULLIF ( + + ( - + 31 ), - 94 ) AS INTEGER ) / - + 60 AS col0
----
49
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL + NULLIF ( - 81, + + 35 + + COALESCE ( - SUM( DISTINCT 39 ), + + COUNT( * ) ) ) * 22
----
-1782

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL + NULLIF ( - 81, + + 35 + + COALESCE ( - SUM ( DISTINCT 39 ), + + COUNT ( * ) ) ) * 22
----
-1782

query I rowsort
SELECT 30 * - 29 AS col1
----
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT 36 - + + 25 DIV ( 22 )
----
35

skipif mysql # not compatible
query I rowsort label-4636
SELECT 36 - + + 25 / ( 22 )
----
35

query II rowsort
SELECT 73, 26 col1
----
73
26

query II rowsort
SELECT 81 AS col1, ( + 56 ) + 99 - - 31
----
81
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4639
SELECT CAST( + - COUNT( * ) AS SIGNED ) * + - 88
----
88

skipif mysql # not compatible
query I rowsort label-4639
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) * + - 88
----
88

query I rowsort
SELECT ALL - 71 + + 22
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-4641
SELECT - 44 AS col1, MAX( DISTINCT - ( - 72 ) ) * - COUNT( * )
----
-44
-72

skipif mysql # not compatible
query II rowsort label-4641
SELECT - 44 AS col1, MAX ( DISTINCT - ( - 72 ) ) * - COUNT ( * )
----
-44
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL CASE + 22 WHEN + 78 THEN 2 WHEN + - COUNT( * ) / - 48 / + + 20 + - + 79 / + CASE 88 WHEN 6 THEN NULL WHEN COALESCE ( + + ( 61 ), + 32 ) THEN NULL WHEN 27 THEN ( + 29 ) ELSE NULL END THEN NULL END + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL CASE + 22 WHEN + 78 THEN 2 WHEN + - COUNT ( * ) / - 48 / + + 20 + - + 79 / + CASE 88 WHEN 6 THEN NULL WHEN COALESCE ( + + ( 61 ), + 32 ) THEN NULL WHEN 27 THEN ( + 29 ) ELSE NULL END THEN NULL END + + 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT CAST( + 38 AS SIGNED ) - + + 66 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4643
SELECT CAST ( + 38 AS INTEGER ) - + + 66 AS col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT ALL 9 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL 9 / + 43
----
0

query I rowsort
SELECT ALL 86 + + - 53
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT 44 * - - CASE - 55 WHEN - CASE + 70 WHEN 71 THEN - 90 - + 13 END THEN + COUNT( * ) * - - 4 * + 80 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT 44 * - - CASE - 55 WHEN - CASE + 70 WHEN 71 THEN - 90 - + 13 END THEN + COUNT ( * ) * - - 4 * + 80 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 55 * - 27 * + - 35
----
-51975

query II rowsort
SELECT 77 AS col2, + 43 AS col0
----
77
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT - 82 - ( 3 ) + - COUNT( * ) + - 28 * - 44 AS col0
----
1146

skipif mysql # not compatible
query I rowsort label-4649
SELECT - 82 - ( 3 ) + - COUNT ( * ) + - 28 * - 44 AS col0
----
1146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT ALL 96 * - CASE + ( - + 46 ) WHEN - 81 THEN - 60 + - 73 WHEN - 92 THEN + 4 WHEN - - 28 * 2 + + 56 THEN NULL END + CAST( NULLIF ( + 77, CAST( 37 AS SIGNED ) * ( - 10 ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL 96 * - CASE + ( - + 46 ) WHEN - 81 THEN - 60 + - 73 WHEN - 92 THEN + 4 WHEN - - 28 * 2 + + 56 THEN NULL END + CAST ( NULLIF ( + 77, CAST ( 37 AS INTEGER ) * ( - 10 ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL - SUM( 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - SUM ( 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT DISTINCT + 70 * - + COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT + 70 * - + COUNT ( * ) AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4653
SELECT - SUM( - COALESCE ( - + 24, - 13 ) ) * - - 44 + 20 - - ( - - 57 ) - 91 + + 28 * + 91 + - 71 / - + ( + 65 ) * + 5 + CAST( NULL AS SIGNED ) / 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT - SUM ( - COALESCE ( - + 24, - 13 ) ) * - - 44 + 20 - - ( - - 57 ) - 91 + + 28 * + 91 + - 71 / - + ( + 65 ) * + 5 + CAST ( NULL AS INTEGER ) / 82 AS col0
----
NULL

query I rowsort
SELECT ALL - + COALESCE ( - - 58, + + 5 + + 63 )
----
-58

query I rowsort
SELECT ( 81 ) * 48 AS col1
----
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT 76 * - SUM( + 40 ) + + 53 * - 56 * 32
----
-98016

skipif mysql # not compatible
query I rowsort label-4656
SELECT 76 * - SUM ( + 40 ) + + 53 * - 56 * 32
----
-98016

query II rowsort
SELECT + - 22 AS col2, 7
----
-22
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4658
SELECT 63 DIV + 23 + 50 * + - 38 + - 26 * COALESCE ( + 17, - 46 * + 38 + 56 ) DIV - - MAX( - - 42 ) + + NULLIF ( + ( - 30 ), 2 )
----
-1938

skipif mysql # not compatible
query I rowsort label-4658
SELECT 63 / + 23 + 50 * + - 38 + - 26 * COALESCE ( + 17, - 46 * + 38 + 56 ) / - - MAX ( - - 42 ) + + NULLIF ( + ( - 30 ), 2 )
----
-1938

query I rowsort
SELECT DISTINCT - + ( COALESCE ( ( - 7 ), + 28 ) ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT MAX( ALL - COALESCE ( + + 18, - - 68 + - + 2 ) ) + MAX( ALL - 26 ) * 64 * - 33 - 23
----
54871

skipif mysql # not compatible
query I rowsort label-4660
SELECT MAX ( ALL - COALESCE ( + + 18, - - 68 + - + 2 ) ) + MAX ( ALL - 26 ) * 64 * - 33 - 23
----
54871

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4661
SELECT + + 99, + 27 * - + AVG ( - 52 ) + + CAST( NULL AS DECIMAL ) / 35 + - - 25 col2
----
99
NULL

skipif mysql # not compatible
query II rowsort label-4661
SELECT + + 99, + 27 * - + AVG ( - 52 ) + + CAST ( NULL AS REAL ) / 35 + - - 25 col2
----
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT NULLIF ( - 78, - - 62 * COUNT( * ) + - - 73 + 93 + + - COUNT( * ) * + - 21 * - COUNT( * ) ) * - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT NULLIF ( - 78, - - 62 * COUNT ( * ) + - - 73 + 93 + + - COUNT ( * ) * + - 21 * - COUNT ( * ) ) * - COUNT ( * )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4663
SELECT - - COUNT( * ) DIV + 42 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4663
SELECT - - COUNT ( * ) / + 42 + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - 1 + 1 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT 65 * - - 1 + - NULLIF ( 99, + - ( 17 ) + + MIN( DISTINCT - + 19 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4665
SELECT 65 * - - 1 + - NULLIF ( 99, + - ( 17 ) + + MIN ( DISTINCT - + 19 ) )
----
-34

query I rowsort
SELECT DISTINCT - 29 * 61
----
-1769

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL + COUNT( DISTINCT + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL + COUNT ( DISTINCT + 34 )
----
1

query I rowsort
SELECT DISTINCT + ( 55 )
----
55

query I rowsort
SELECT - NULLIF ( 18, - 79 ) AS col1
----
-18

query I rowsort
SELECT ALL - 2 + 58 + + + ( - - 53 ) AS col1
----
109

onlyif mysql # DIV for integer division: 
query II rowsort label-4671
SELECT - 82 + + 7, ( - 10 ) * - - 96 + + + ( + + 47 ) + - + 76 DIV + + 1 AS col2
----
-75
-989

skipif mysql # not compatible
query II rowsort label-4671
SELECT - 82 + + 7, ( - 10 ) * - - 96 + + + ( + + 47 ) + - + 76 / + + 1 AS col2
----
-75
-989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4672
SELECT - 31 * 75 * 40 + - CAST( COUNT( * ) AS SIGNED )
----
-93001

skipif mysql # not compatible
query I rowsort label-4672
SELECT - 31 * 75 * 40 + - CAST ( COUNT ( * ) AS INTEGER )
----
-93001

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT - ( COUNT( * ) ) - - 63 * SUM( 25 ) + - ( + + COUNT( * ) ) col0
----
1573

skipif mysql # not compatible
query I rowsort label-4673
SELECT - ( COUNT ( * ) ) - - 63 * SUM ( 25 ) + - ( + + COUNT ( * ) ) col0
----
1573

query I rowsort
SELECT - 34 + + 12 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + COUNT( * ) - + 13
----
-12

skipif mysql # not compatible
query I rowsort label-4675
SELECT + COUNT ( * ) - + 13
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL - 66 + - MIN( DISTINCT - - 56 ) * 52 * + + 91 + - + 69
----
-265127

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL - 66 + - MIN ( DISTINCT - - 56 ) * 52 * + + 91 + - + 69
----
-265127

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL + 11 * SUM( DISTINCT + CASE - - 51 WHEN 66 THEN NULL WHEN - 72 THEN 41 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + 11 * SUM ( DISTINCT + CASE - - 51 WHEN 66 THEN NULL WHEN - 72 THEN 41 END )
----
NULL

query I rowsort
SELECT DISTINCT - 57 + - 35 + - 24 AS col2
----
-116

query II rowsort
SELECT DISTINCT - 84 + + 77 AS col0, 60 AS col1
----
-7
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT COUNT( * ) * - - ( 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT COUNT ( * ) * - - ( 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT ALL 98 + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL 98 + - COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT - COUNT( * ) + + + 82 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4682
SELECT - COUNT ( * ) + + + 82 AS col1
----
81

query I rowsort
SELECT ALL NULLIF ( - 20, + ( - 97 ) ) AS col1
----
-20

query I rowsort
SELECT ALL + 12 * - - 71
----
852

query I rowsort
SELECT - ( + ( - 96 ) ) * + 36 AS col0
----
3456

query I rowsort
SELECT DISTINCT - 94 * 74 * - 27
----
187812

query I rowsort
SELECT ALL + 40 - - 92
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-4688
SELECT - 44 DIV 92 DIV - + 12
----
0

skipif mysql # not compatible
query I rowsort label-4688
SELECT - 44 / 92 / - + 12
----
0

query I rowsort
SELECT DISTINCT + ( 68 ) AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4690
SELECT DISTINCT + - CAST( - ( + + CASE 4 WHEN COUNT( * ) THEN 35 ELSE NULL END ) AS SIGNED ) - - + ( + - 0 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT + - CAST ( - ( + + CASE 4 WHEN COUNT ( * ) THEN 35 ELSE NULL END ) AS INTEGER ) - - + ( + - 0 ) col1
----
NULL

query I rowsort
SELECT ALL 59 * ( 15 )
----
885

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT + - MAX( ALL + 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4692
SELECT + - MAX ( ALL + 90 ) AS col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT DISTINCT + 5 / + CAST( 98 AS SIGNED ) * - - CASE - 44 WHEN - - 75 * - + ( + 76 ) THEN 61 - + - 57 * 34 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT + 5 / + CAST ( 98 AS INTEGER ) * - - CASE - 44 WHEN - - 75 * - + ( + 76 ) THEN 61 - + - 57 * 34 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4694
SELECT 78 DIV + 43 + + - 78 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4694
SELECT 78 / + 43 + + - 78 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL COUNT( * ) * + 86 * + 23 col1
----
1978

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL COUNT ( * ) * + 86 * + 23 col1
----
1978

query I rowsort
SELECT ALL 30 * 21
----
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4697
SELECT 33 DIV + 75 - 98 DIV + + 42 DIV 14 * - 97 DIV COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4697
SELECT 33 / + 75 - 98 / + + 42 / 14 * - 97 / COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4698
SELECT + + 17 DIV + ( - 85 )
----
0

skipif mysql # not compatible
query I rowsort label-4698
SELECT + + 17 / + ( - 85 )
----
0

query I rowsort
SELECT + 1 * + 21 + + - 87
----
-66

query I rowsort
SELECT ALL + COALESCE ( - 62, + 9 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT + MIN( + + 35 ) + - + 9 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4701
SELECT + MIN ( + + 35 ) + - + 9 AS col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4702
SELECT MIN( DISTINCT - COALESCE ( + + 39, - ( + ( - NULLIF ( - 10, + + 28 ) ) ) + - 67 ) ) * + 45 * - 9 - - - 99 AS col2, - 0
----
15696
0

skipif mysql # not compatible
query II rowsort label-4702
SELECT MIN ( DISTINCT - COALESCE ( + + 39, - ( + ( - NULLIF ( - 10, + + 28 ) ) ) + - 67 ) ) * + 45 * - 9 - - - 99 AS col2, - 0
----
15696
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT CASE 65 WHEN - 59 * - 86 - + 7 + 57 THEN NULL WHEN - - 93 * - 3 THEN + COALESCE ( + + 27, + ( + 25 ) ) * SUM( DISTINCT + 6 ) * - 30 + + 63 * - 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT CASE 65 WHEN - 59 * - 86 - + 7 + 57 THEN NULL WHEN - - 93 * - 3 THEN + COALESCE ( + + 27, + ( + 25 ) ) * SUM ( DISTINCT + 6 ) * - 30 + + 63 * - 65 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT NULLIF ( + + 51, + + ( + COUNT( * ) ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4704
SELECT NULLIF ( + + 51, + + ( + COUNT ( * ) ) ) AS col1
----
51

query I rowsort
SELECT - 27 * + 87 * - 82 + + - 38 * + 84 * + NULLIF ( + 24, 18 ) + + + 27 AS col1
----
116037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4706
SELECT + CAST( 15 AS SIGNED ) col2
----
15

skipif mysql # not compatible
query I rowsort label-4706
SELECT + CAST ( 15 AS INTEGER ) col2
----
15

query I rowsort
SELECT - ( - 84 ) + - 65
----
19

query I rowsort
SELECT ALL - 80 * + + 95 * 91
----
-691600

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT MAX( ALL + + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-4709
SELECT MAX ( ALL + + 71 )
----
71

query I rowsort
SELECT DISTINCT 34 * - 96
----
-3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4711
SELECT DISTINCT CAST( + 68 AS SIGNED ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT CAST ( + 68 AS INTEGER ) AS col1
----
68

query II rowsort
SELECT + 92 * - ( - 67 ) col2, + 77 * + + 90 * + 8
----
6164
55440

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT COUNT( DISTINCT 48 )
----
1

skipif mysql # not compatible
query I rowsort label-4713
SELECT COUNT ( DISTINCT 48 )
----
1

query I rowsort
SELECT + ( - - 96 ) - - 53
----
149

query I rowsort
SELECT - 33 * - + 22 AS col1
----
726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4716
SELECT - COUNT( * ) + + CAST( 59 AS SIGNED ) + + 67 + - MIN( ALL + 30 )
----
95

skipif mysql # not compatible
query I rowsort label-4716
SELECT - COUNT ( * ) + + CAST ( 59 AS INTEGER ) + + 67 + - MIN ( ALL + 30 )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4717
SELECT - 50 DIV + - COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4717
SELECT - 50 / + - COUNT ( * ) AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4718
SELECT ALL + COUNT( * ) DIV - 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + COUNT ( * ) / - 42 AS col0
----
0

query I rowsort
SELECT - 21 + - - 61 + 1 - + 80
----
-39

query I rowsort
SELECT - 90 * 6 + + ( - 38 )
----
-578

query I rowsort
SELECT + COALESCE ( + + 37, 55 + 32 ) col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4722
SELECT ALL 65, 45 * + COUNT( * ) AS col1
----
65
45

skipif mysql # not compatible
query II rowsort label-4722
SELECT ALL 65, 45 * + COUNT ( * ) AS col1
----
65
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4723
SELECT - 17 - - + 81 + COALESCE ( + 54, + + 12, + ( + 24 ) + MIN( - ( 39 ) ) ) DIV - + 5 + - 72 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4723
SELECT - 17 - - + 81 + COALESCE ( + 54, + + 12, + ( + 24 ) + MIN ( - ( 39 ) ) ) / - + 5 + - 72 AS col2
----
-18

query I rowsort
SELECT DISTINCT - 76 * 54 AS col0
----
-4104

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT - + SUM( + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-4725
SELECT - + SUM ( + 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT COUNT( - 9 )
----
1

skipif mysql # not compatible
query I rowsort label-4726
SELECT COUNT ( - 9 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL - 43 * + + COUNT( ALL - 73 ) + - 50
----
-93

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - 43 * + + COUNT ( ALL - 73 ) + - 50
----
-93

query I rowsort
SELECT - 84 + - ( - 76 ) AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4729
SELECT - + ( COUNT( * ) ) * + + COALESCE ( + MAX( ALL - 78 ), + 42 + - + CAST( NULL AS SIGNED ) * - 85 ) + + - 77 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4729
SELECT - + ( COUNT ( * ) ) * + + COALESCE ( + MAX ( ALL - 78 ), + 42 + - + CAST ( NULL AS INTEGER ) * - 85 ) + + - 77 AS col1
----
1

query I rowsort
SELECT DISTINCT 41 + + 54 - + + 44
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4731
SELECT 88 DIV - 47 + + + 67 + ( 49 ) * + 7 + - 94 + + COUNT( * )
----
316

skipif mysql # not compatible
query I rowsort label-4731
SELECT 88 / - 47 + + + 67 + ( 49 ) * + 7 + - 94 + + COUNT ( * )
----
316

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT ALL - 2 + + SUM( DISTINCT 26 ) + + 88 * - 32 * 78 AS col1
----
-219624

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL - 2 + + SUM ( DISTINCT 26 ) + + 88 * - 32 * 78 AS col1
----
-219624

query I rowsort
SELECT ALL - - 3 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT ALL + ( + COUNT( * ) ) + + + 55
----
56

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL + ( + COUNT ( * ) ) + + + 55
----
56

query I rowsort
SELECT 31 + - 95
----
-64

query I rowsort
SELECT DISTINCT - 0 + - 45 col2
----
-45

query I rowsort
SELECT 40 * 7 AS col1
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT COUNT( * ) + - ( 6 )
----
-5

skipif mysql # not compatible
query I rowsort label-4738
SELECT COUNT ( * ) + - ( 6 )
----
-5

query I rowsort
SELECT DISTINCT 70 + 71 AS col1
----
141

query I rowsort
SELECT ALL 29 * - ( + - 91 )
----
2639

query I rowsort
SELECT 55 + + 96
----
151

query I rowsort
SELECT 91 * ( + CASE - - 49 WHEN + 13 - + 50 THEN - + 95 END ) col0
----
NULL

query I rowsort
SELECT ALL 22 + 41 AS col0
----
63

query I rowsort
SELECT 39 * 11 + NULLIF ( + + 80, - - 74 ) AS col2
----
509

query I rowsort
SELECT ALL 87 - - ( + 37 )
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4746
SELECT CASE - 68 WHEN + - 65 THEN 20 * + + COALESCE ( - 37, - 12 ) ELSE NULL END + + NULLIF ( - + CAST( NULL AS SIGNED ), - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT CASE - 68 WHEN + - 65 THEN 20 * + + COALESCE ( - 37, - 12 ) ELSE NULL END + + NULLIF ( - + CAST ( NULL AS INTEGER ), - 25 )
----
NULL

query I rowsort
SELECT 71 + - + 79 + 70
----
62

query I rowsort
SELECT 6 * - 6
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT DISTINCT 80 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT 80 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT CAST( + + 9 AS SIGNED ) + 38 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4750
SELECT CAST ( + + 9 AS INTEGER ) + 38 AS col0
----
47

query I rowsort
SELECT 16 - + 3 AS col0
----
13

query I rowsort
SELECT 19 * 12
----
228

query I rowsort
SELECT ALL 15 * - 36 * + 86
----
-46440

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT ALL 27 DIV - 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL 27 / - 28 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4755
SELECT 6 + 67, - 11 + - 34 + - - 14 DIV - + 85 AS col0
----
73
-45

skipif mysql # not compatible
query II rowsort label-4755
SELECT 6 + 67, - 11 + - 34 + - - 14 / - + 85 AS col0
----
73
-45

query I rowsort
SELECT ALL 62 * - 75
----
-4650

query I rowsort
SELECT - 2 + 28 + + 61 + - 17 + 4 * + 18 + + + 29
----
171

onlyif mysql # DIV for integer division: 
query II rowsort label-4758
SELECT ALL + 7, 3 DIV + 56 AS col0
----
7
0

skipif mysql # not compatible
query II rowsort label-4758
SELECT ALL + 7, 3 / + 56 AS col0
----
7
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4759
SELECT 51 + - NULLIF ( - + 35, - 17 + - + CAST( + 91 AS SIGNED ) ) AS col0, CASE - 73 WHEN 28 THEN NULL ELSE 86 END
----
86
86

skipif mysql # not compatible
query II rowsort label-4759
SELECT 51 + - NULLIF ( - + 35, - 17 + - + CAST ( + 91 AS INTEGER ) ) AS col0, CASE - 73 WHEN 28 THEN NULL ELSE 86 END
----
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT MAX( - 9 ) * + - 11 * - ( - - COUNT( * ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4760
SELECT MAX ( - 9 ) * + - 11 * - ( - - COUNT ( * ) ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT + ( + MIN( - 10 ) ) + ( - - 89 )
----
79

skipif mysql # not compatible
query I rowsort label-4761
SELECT + ( + MIN ( - 10 ) ) + ( - - 89 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4762
SELECT ALL + 56 DIV + 35
----
1

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL + 56 / + 35
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT + COUNT( - 50 ) + + - 79
----
-78

skipif mysql # not compatible
query I rowsort label-4763
SELECT + COUNT ( - 50 ) + + - 79
----
-78

query I rowsort
SELECT 61 * + 94 AS col0
----
5734

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT + ( - 89 ) * + COUNT( * ) * 72 * + 0 * 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4765
SELECT + ( - 89 ) * + COUNT ( * ) * 72 * + 0 * 27 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4766
SELECT DISTINCT + 35 col2, COUNT( * ) AS col0
----
35
1

skipif mysql # not compatible
query II rowsort label-4766
SELECT DISTINCT + 35 col2, COUNT ( * ) AS col0
----
35
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT + 9 * - 17 + COUNT( * ) * 45 + - + 41 AS col1
----
-149

skipif mysql # not compatible
query I rowsort label-4767
SELECT + 9 * - 17 + COUNT ( * ) * 45 + - + 41 AS col1
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4768
SELECT ALL - - 63 + + + CAST( 28 AS SIGNED ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL - - 63 + + + CAST ( 28 AS INTEGER ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4769
SELECT - 68 AS col1, COUNT( * ) AS col1
----
-68
1

skipif mysql # not compatible
query II rowsort label-4769
SELECT - 68 AS col1, COUNT ( * ) AS col1
----
-68
1

query I rowsort
SELECT ALL - + 71 + + 82
----
11

query I rowsort
SELECT - ( - - 35 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-4772
SELECT + - 9, - 41 * - COUNT( * ) col0
----
-9
41

skipif mysql # not compatible
query II rowsort label-4772
SELECT + - 9, - 41 * - COUNT ( * ) col0
----
-9
41

query I rowsort
SELECT 49 - + 96
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT MAX( + 15 ) * - 88 AS col0
----
-1320

skipif mysql # not compatible
query I rowsort label-4774
SELECT MAX ( + 15 ) * - 88 AS col0
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL - NULLIF ( - COUNT( * ), - 91 + + - 47 )
----
1

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL - NULLIF ( - COUNT ( * ), - 91 + + - 47 )
----
1

query I rowsort
SELECT DISTINCT + 70 - 24 + + ( 86 ) AS col0
----
132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4777
SELECT DISTINCT - CASE WHEN NOT - CAST( COUNT( * ) AS DECIMAL ) = - 34 THEN NULL ELSE + 41 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT - CASE WHEN NOT - CAST ( COUNT ( * ) AS REAL ) = - 34 THEN NULL ELSE + 41 END col0
----
NULL

query I rowsort
SELECT ALL 82 - 27
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4779
SELECT COUNT( + + 93 ) * + + 12 AS col1, + 49 AS col2
----
12
49

skipif mysql # not compatible
query II rowsort label-4779
SELECT COUNT ( + + 93 ) * + + 12 AS col1, + 49 AS col2
----
12
49

query II rowsort
SELECT ALL - ( - + 20 ), 83 AS col1
----
20
83

query I rowsort
SELECT ALL - 55 col2
----
-55

query I rowsort
SELECT 65 * - + 29 AS col1
----
-1885

query I rowsort
SELECT COALESCE ( + 21, - + 90, 64 + - 20 ) * - 59 * - 46
----
56994

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT 74 * 33 DIV + 6 AS col0
----
407

skipif mysql # not compatible
query I rowsort label-4784
SELECT 74 * 33 / + 6 AS col0
----
407

onlyif mysql # aggregate syntax: 
query II rowsort label-4785
SELECT ALL 39 * + - COUNT( * ) AS col0, COUNT( * ) - + ( + + 40 ) - + 34
----
-39
-73

skipif mysql # not compatible
query II rowsort label-4785
SELECT ALL 39 * + - COUNT ( * ) AS col0, COUNT ( * ) - + ( + + 40 ) - + 34
----
-39
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-4786
SELECT COUNT( * ) + + 93 AS col1, COUNT( * ) * 23 AS col2
----
94
23

skipif mysql # not compatible
query II rowsort label-4786
SELECT COUNT ( * ) + + 93 AS col1, COUNT ( * ) * 23 AS col2
----
94
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4787
SELECT CAST( NULL AS SIGNED ) / + + 38 AS col1, + 12 AS col0
----
NULL
12

skipif mysql # not compatible
query II rowsort label-4787
SELECT CAST ( NULL AS INTEGER ) / + + 38 AS col1, + 12 AS col0
----
NULL
12

query I rowsort
SELECT DISTINCT + 36 * - 68
----
-2448

query I rowsort
SELECT DISTINCT 0 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4790
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col0, + COUNT( * ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4790
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL - MAX( ALL 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL - MAX ( ALL 44 ) AS col2
----
-44

query I rowsort
SELECT + 99 * - 51 * - 11
----
55539

query I rowsort
SELECT 53 - + 89 * - 6 AS col2
----
587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4794
SELECT + + 32 * CAST( NULL AS SIGNED ) * SUM( 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4794
SELECT + + 32 * CAST ( NULL AS INTEGER ) * SUM ( 57 )
----
NULL

query I rowsort
SELECT ALL 10 + - 84
----
-74

query I rowsort
SELECT + 79 + 2 - - 8 + + + 60
----
149

query I rowsort
SELECT ALL + 60 + - 23
----
37

query I rowsort
SELECT + - 55 - - 80
----
25

query I rowsort
SELECT ALL ( 55 ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4800
SELECT DISTINCT ( - 59 ) + 65 DIV - 32
----
-61

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT ( - 59 ) + 65 / - 32
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT + - COUNT( * ) + SUM( + + 59 ) * 93
----
5486

skipif mysql # not compatible
query I rowsort label-4801
SELECT + - COUNT ( * ) + SUM ( + + 59 ) * 93
----
5486

query I rowsort
SELECT ALL - ( - - 71 ) + 62 * 13 * + + 81 AS col0
----
65215

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT + - 94 * COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-4803
SELECT + - 94 * COUNT ( * )
----
-94

query I rowsort
SELECT - 65 - + 92 col0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL 46 * + 29 * 89 * - COUNT( * ) - + 47
----
-118773

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL 46 * + 29 * 89 * - COUNT ( * ) - + 47
----
-118773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT NULLIF ( COUNT( * ), + CAST( 96 AS SIGNED ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4806
SELECT NULLIF ( COUNT ( * ), + CAST ( 96 AS INTEGER ) ) col0
----
1

query I rowsort
SELECT - ( - 13 ) + 61 AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4808
SELECT ALL + COUNT( * ) * + CAST( - + ( - + 33 ) AS SIGNED ) * + 57 * - 73 AS col0
----
-137313

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL + COUNT ( * ) * + CAST ( - + ( - + 33 ) AS INTEGER ) * + 57 * - 73 AS col0
----
-137313

onlyif mysql # DIV for integer division: 
query II rowsort label-4809
SELECT ALL 83 * + 35 - + 51 + 25 * + - 83 * - 14 AS col0, NULLIF ( - 4, - 80 ) DIV + 61 + - 4 AS col0
----
31904
-4

skipif mysql # not compatible
query II rowsort label-4809
SELECT ALL 83 * + 35 - + 51 + 25 * + - 83 * - 14 AS col0, NULLIF ( - 4, - 80 ) / + 61 + - 4 AS col0
----
31904
-4

query I rowsort
SELECT DISTINCT + 67 * - - 85 AS col0
----
5695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4811
SELECT CASE - - 5 WHEN + 2 THEN - - CAST( + 85 AS SIGNED ) / 55 WHEN + - COUNT( * ) * 20 + + + 71 * + 19 / - - 75 + COUNT( * ) + - 27 THEN NULL ELSE NULL END * + - 47 + 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT CASE - - 5 WHEN + 2 THEN - - CAST ( + 85 AS INTEGER ) / 55 WHEN + - COUNT ( * ) * 20 + + + 71 * + 19 / - - 75 + COUNT ( * ) + - 27 THEN NULL ELSE NULL END * + - 47 + 76 col0
----
NULL

query I rowsort
SELECT - 34 * - - ( - 1 ) AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4813
SELECT CASE + - 17 WHEN + + NULLIF ( - 0, + CASE 92 WHEN + - 67 THEN NULL WHEN + + 51 + 35 + - COUNT( + 31 ) + - 16 * 4 / + CASE 82 WHEN - ( - + 8 ) / + COALESCE ( - 98, 11 + + 54 ) THEN NULL WHEN + 60 / 37 THEN + 17 / COUNT( * ) END - MAX( + 33 ) THEN + CAST( 66 AS SIGNED ) ELSE NULL END - + 18 ) + - 48 THEN COUNT( * ) * - CASE 61 WHEN + 17 * + 55 - 2 * + COUNT( * ) THEN 57 WHEN - COUNT( * ) * + 79 THEN + 9 WHEN 66 * - COALESCE ( 17, + 86 * + MAX( + 83 ) + COUNT( * ) ) THEN NULL ELSE 67 END WHEN + 63 + 98 / + 57 THEN + NULLIF ( - 85, - COALESCE ( + 50, 70 ) + 68 ) * 99 + 39 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT CASE + - 17 WHEN + + NULLIF ( - 0, + CASE 92 WHEN + - 67 THEN NULL WHEN + + 51 + 35 + - COUNT ( + 31 ) + - 16 * 4 / + CASE 82 WHEN - ( - + 8 ) / + COALESCE ( - 98, 11 + + 54 ) THEN NULL WHEN + 60 / 37 THEN + 17 / COUNT ( * ) END - MAX ( + 33 ) THEN + CAST ( 66 AS INTEGER ) ELSE NULL END - + 18 ) + - 48 THEN COUNT ( * ) * - CASE 61 WHEN + 17 * + 55 - 2 * + COUNT ( * ) THEN 57 WHEN - COUNT ( * ) * + 79 THEN + 9 WHEN 66 * - COALESCE ( 17, + 86 * + MAX ( + 83 ) + COUNT ( * ) ) THEN NULL ELSE 67 END WHEN + 63 + 98 / + 57 THEN + NULLIF ( - 85, - COALESCE ( + 50, 70 ) + 68 ) * 99 + 39 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT - COUNT( * ) + + 42 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4814
SELECT - COUNT ( * ) + + 42 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL + MAX( DISTINCT - + 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL + MAX ( DISTINCT - + 27 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL + COUNT( - 93 ) * + + COUNT( * ) + - 64 + - 4 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + COUNT ( - 93 ) * + + COUNT ( * ) + - 64 + - 4 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4817
SELECT ALL + COUNT( ALL - ( 55 ) ) AS col1, - 77 col0
----
1
-77

skipif mysql # not compatible
query II rowsort label-4817
SELECT ALL + COUNT ( ALL - ( 55 ) ) AS col1, - 77 col0
----
1
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4818
SELECT + 68 + 63 - - ( + COUNT( * ) ) * + + 50 DIV MIN( + - 66 )
----
131

skipif mysql # not compatible
query I rowsort label-4818
SELECT + 68 + 63 - - ( + COUNT ( * ) ) * + + 50 / MIN ( + - 66 )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT - 79 + - COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-4819
SELECT - 79 + - COUNT ( * ) AS col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4820
SELECT DISTINCT - + COALESCE ( - ( + + NULLIF ( - 99, - + MAX( - 81 ) ) ), + 22 + - + ( - CAST( 67 AS SIGNED ) ) ) * + 74 AS col0, - ( - 73 ) * + + 84 * + + COUNT( * ) + - 85 * - + 74 AS col2
----
-7326
12422

skipif mysql # not compatible
query II rowsort label-4820
SELECT DISTINCT - + COALESCE ( - ( + + NULLIF ( - 99, - + MAX ( - 81 ) ) ), + 22 + - + ( - CAST ( 67 AS INTEGER ) ) ) * + 74 AS col0, - ( - 73 ) * + + 84 * + + COUNT ( * ) + - 85 * - + 74 AS col2
----
-7326
12422

query I rowsort
SELECT ALL - + 26 * 73 + + - 46 + 82
----
-1862

query I rowsort
SELECT + + 44 + + 87 AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT - 64 * + - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4823
SELECT - 64 * + - COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT ALL - 64 + - + 62 + - MIN( - 57 ) * - 9 + + - ( 53 ) - + 48 + - 20 - - 56 + ( - 1 ) * + COUNT( * ) * 9 AS col2
----
-713

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL - 64 + - + 62 + - MIN ( - 57 ) * - 9 + + - ( 53 ) - + 48 + - 20 - - 56 + ( - 1 ) * + COUNT ( * ) * 9 AS col2
----
-713

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4825
SELECT DISTINCT + MIN( - + 14 ) * + 19 + + COALESCE ( 71, 52 - + 4 * + 1 - - 17 DIV + 3 ) * - - 4
----
18

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT + MIN ( - + 14 ) * + 19 + + COALESCE ( 71, 52 - + 4 * + 1 - - 17 / + 3 ) * - - 4
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4826
SELECT + + CAST( 62 AS SIGNED ) + + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4826
SELECT + + CAST ( 62 AS INTEGER ) + + COUNT ( * ) AS col2
----
63

query II rowsort
SELECT DISTINCT 2 AS col1, 69
----
2
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT ALL - COUNT( * ) + - 63
----
-64

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL - COUNT ( * ) + - 63
----
-64

query I rowsort
SELECT + - 9 + + 26 + 55 * 19
----
1062

query I rowsort
SELECT + + 34 + + 27
----
61

query II rowsort
SELECT 36, 43 AS col0
----
36
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT + 49 + + 26 DIV + 16 * COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4832
SELECT + 49 + + 26 / + 16 * COUNT ( * ) AS col1
----
50

query I rowsort
SELECT - ( - + NULLIF ( - + ( + NULLIF ( - 49, - - NULLIF ( + 82, - 27 + + 62 ) ) ), - 92 * - - 50 ) )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4834
SELECT + 53, 60 * - CAST( NULL AS SIGNED ) AS col2
----
53
NULL

skipif mysql # not compatible
query II rowsort label-4834
SELECT + 53, 60 * - CAST ( NULL AS INTEGER ) AS col2
----
53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT + + 82 * + - 29 * NULLIF ( + NULLIF ( - NULLIF ( + - 20, 32 * + 15 ), - 99 ), COUNT( * ) * + 15 ) col2
----
-47560

skipif mysql # not compatible
query I rowsort label-4835
SELECT + + 82 * + - 29 * NULLIF ( + NULLIF ( - NULLIF ( + - 20, 32 * + 15 ), - 99 ), COUNT ( * ) * + 15 ) col2
----
-47560

onlyif mysql # aggregate syntax: 
query II rowsort label-4836
SELECT ALL + ( + + 89 ) * - 50 AS col2, ( - + 8 ) * 73 * 7 - + + COUNT( * ) * 38 + 89 AS col1
----
-4450
-4037

skipif mysql # not compatible
query II rowsort label-4836
SELECT ALL + ( + + 89 ) * - 50 AS col2, ( - + 8 ) * 73 * 7 - + + COUNT ( * ) * 38 + 89 AS col1
----
-4450
-4037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT - CAST( - 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-4837
SELECT - CAST ( - 18 AS INTEGER )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL CASE + 99 WHEN + ( - 48 ) * - 81 * 24 + + 59 * + 51 + + 29 * - - NULLIF ( - 94, - 88 * + 2 * COUNT( * ) * - 86 ) THEN COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL CASE + 99 WHEN + ( - 48 ) * - 81 * 24 + + 59 * + 51 + + 29 * - - NULLIF ( - 94, - 88 * + 2 * COUNT ( * ) * - 86 ) THEN COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( - + 27, 75 + 9 * 12 * 92 ) AS col2
----
-27

query I rowsort
SELECT ALL 70 * - 15 AS col2
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT + 46 * + MIN( ALL - ( + - 96 ) )
----
4416

skipif mysql # not compatible
query I rowsort label-4841
SELECT + 46 * + MIN ( ALL - ( + - 96 ) )
----
4416

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4842
SELECT DISTINCT - COUNT( * ) DIV + 68 * - COUNT( - - 65 ) AS col0, + 51 AS col0
----
0
51

skipif mysql # not compatible
query II rowsort label-4842
SELECT DISTINCT - COUNT ( * ) / + 68 * - COUNT ( - - 65 ) AS col0, + 51 AS col0
----
0
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4843
SELECT DISTINCT - COALESCE ( CAST( NULL AS SIGNED ), - 18 ) DIV - + 39 + + + 12 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT - COALESCE ( CAST ( NULL AS INTEGER ), - 18 ) / - + 39 + + + 12 AS col1
----
12

query I rowsort
SELECT 27 * - 85 - - ( 46 )
----
-2249

query I rowsort
SELECT ( ( + - 88 ) )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4846
SELECT - 44 * - - COUNT( * ) * + - CAST( NULL AS SIGNED ) * + - 48 * MAX( - 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT - 44 * - - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * + - 48 * MAX ( - 83 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4847
SELECT ALL - COUNT( * ) + CAST( - 91 AS SIGNED ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL - COUNT ( * ) + CAST ( - 91 AS INTEGER ) AS col0
----
-92

query I rowsort
SELECT 5 * + - 48
----
-240

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4849
SELECT DISTINCT - 26 + + - COUNT( 47 ) + + + CAST( NULL AS DECIMAL ) + 7 + COUNT( * ) * + + COALESCE ( + - 11, - 16 + - 84, + COUNT( * ) ) / COUNT( * ) * 11 * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT - 26 + + - COUNT ( 47 ) + + + CAST ( NULL AS REAL ) + 7 + COUNT ( * ) * + + COALESCE ( + - 11, - 16 + - 84, + COUNT ( * ) ) / COUNT ( * ) * 11 * - 67
----
NULL

query I rowsort
SELECT 13 * + + 25 AS col2
----
325

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT - COUNT( 0 ) + - 25 + - - 50 * + ( - + 56 )
----
-2826

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - COUNT ( 0 ) + - 25 + - - 50 * + ( - + 56 )
----
-2826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4852
SELECT - - CASE - - COUNT( DISTINCT - + ( - 42 ) ) WHEN - 17 + 43 THEN - 17 * 3 * - COALESCE ( 2, + 19 * + 23 ) WHEN + 85 * - + 46 THEN + - ( 34 ) ELSE - 42 END, + CAST( NULL AS SIGNED ) * + 11 AS col0
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-4852
SELECT - - CASE - - COUNT ( DISTINCT - + ( - 42 ) ) WHEN - 17 + 43 THEN - 17 * 3 * - COALESCE ( 2, + 19 * + 23 ) WHEN + 85 * - + 46 THEN + - ( 34 ) ELSE - 42 END, + CAST ( NULL AS INTEGER ) * + 11 AS col0
----
-42
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4853
SELECT 5 DIV - + 90 AS col2, - 40 + + 24
----
0
-16

skipif mysql # not compatible
query II rowsort label-4853
SELECT 5 / - + 90 AS col2, - 40 + + 24
----
0
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT - 28 + - 45 * - 73 * 54 * + CASE - + COUNT( * ) WHEN - 16 + 21 THEN + 98 WHEN 20 - - 59 - - 16 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT - 28 + - 45 * - 73 * 54 * + CASE - + COUNT ( * ) WHEN - 16 + 21 THEN + 98 WHEN 20 - - 59 - - 16 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4855
SELECT ALL - - ( - MIN( ALL + CAST( NULL AS SIGNED ) ) ) * + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - - ( - MIN ( ALL + CAST ( NULL AS INTEGER ) ) ) * + + 39
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT 85 + - + COUNT( * ) + - - 55 * - COUNT( * ) AS col2, - 51 * 65 AS col1
----
29
-3315

skipif mysql # not compatible
query II rowsort label-4856
SELECT 85 + - + COUNT ( * ) + - - 55 * - COUNT ( * ) AS col2, - 51 * 65 AS col1
----
29
-3315

query I rowsort
SELECT + 20 * - - 8 AS col1
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4858
SELECT CASE - 80 WHEN CASE - + 54 WHEN 2 + - 37 THEN - - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) WHEN + CASE - NULLIF ( - + 77, + + 25 ) WHEN + 2 + - - 48 * + 48 THEN - 5 / 86 ELSE NULL END THEN NULL END - + 80 - - - 31 THEN NULL WHEN CAST( NULL AS SIGNED ) - + COUNT( * ) THEN NULL WHEN MIN( ALL CAST( NULL AS SIGNED ) ) THEN NULL WHEN + SUM( - ( 53 ) ) THEN 8 ELSE NULL END * 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT CASE - 80 WHEN CASE - + 54 WHEN 2 + - 37 THEN - - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) WHEN + CASE - NULLIF ( - + 77, + + 25 ) WHEN + 2 + - - 48 * + 48 THEN - 5 / 86 ELSE NULL END THEN NULL END - + 80 - - - 31 THEN NULL WHEN CAST ( NULL AS INTEGER ) - + COUNT ( * ) THEN NULL WHEN MIN ( ALL CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + SUM ( - ( 53 ) ) THEN 8 ELSE NULL END * 6 AS col1
----
NULL

query I rowsort
SELECT ALL + 92 * + - 48
----
-4416

onlyif mysql # aggregate syntax: 
query II rowsort label-4860
SELECT + 78 + + 60 AS col0, 66 + + - COALESCE ( + 24, - 29 * - ( 8 ) + NULLIF ( ( - COUNT( * ) ), 5 ) - - + 40 ) AS col1
----
138
42

skipif mysql # not compatible
query II rowsort label-4860
SELECT + 78 + + 60 AS col0, 66 + + - COALESCE ( + 24, - 29 * - ( 8 ) + NULLIF ( ( - COUNT ( * ) ), 5 ) - - + 40 ) AS col1
----
138
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT - 87 DIV 9
----
-9

skipif mysql # not compatible
query I rowsort label-4861
SELECT - 87 / 9
----
-9

query I rowsort
SELECT 54 - + + 98 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT 94 + - COUNT( * ) * + - ( + - 39 ) + + - ( + 82 ) * - + 81 * - 88 + + + 14
----
-584427

skipif mysql # not compatible
query I rowsort label-4863
SELECT 94 + - COUNT ( * ) * + - ( + - 39 ) + + - ( + 82 ) * - + 81 * - 88 + + + 14
----
-584427

query I rowsort
SELECT 0 * + + 32 AS col1
----
0

query I rowsort
SELECT 84 + - - 46
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT 19 - - 62 + - - 48 + + + 38 * + 38 * - CAST( NULL AS SIGNED ) / 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4866
SELECT 19 - - 62 + - - 48 + + + 38 * + 38 * - CAST ( NULL AS INTEGER ) / 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL 16 * COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL 16 * COUNT ( * )
----
16

query I rowsort
SELECT ALL - 49 + - 45 AS col1
----
-94

query I rowsort
SELECT DISTINCT 51 * + 50 * + + 86 * ( - 92 ) AS col2
----
-20175600

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL 86 + - + COALESCE ( - 10, + - COALESCE ( + - 82, 67 ) * 15, + 96 ) + + - 43 * + ( + - ( + NULLIF ( + + 8, - + 15 * COUNT( * ) ) ) ) * + - 7
----
-2312

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL 86 + - + COALESCE ( - 10, + - COALESCE ( + - 82, 67 ) * 15, + 96 ) + + - 43 * + ( + - ( + NULLIF ( + + 8, - + 15 * COUNT ( * ) ) ) ) * + - 7
----
-2312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4871
SELECT COUNT( * ) * - CAST( + 5 AS SIGNED ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4871
SELECT COUNT ( * ) * - CAST ( + 5 AS INTEGER ) AS col2
----
-5

query I rowsort
SELECT - NULLIF ( 2, + COALESCE ( - 5, + 16 ) * + 56 + 10 ) * + 35 + 1 + + - 81 + 76 AS col2
----
-74

query I rowsort
SELECT DISTINCT 15 * 36 AS col1
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL COUNT( DISTINCT + 35 ) + + + 7
----
8

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL COUNT ( DISTINCT + 35 ) + + + 7
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT 15 + + + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4875
SELECT 15 + + + COUNT ( * ) AS col0
----
16

query I rowsort
SELECT 51 + - 3 AS col2
----
48

query I rowsort
SELECT ALL 2 + + 60 AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4878
SELECT DISTINCT + + 66 * - COALESCE ( - + 94, - 1 - COUNT( - + 47 ), + + COUNT( * ) * - 37 * + COUNT( * ) * - - 10 + 5 DIV + 30 * - + 67 )
----
6204

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT + + 66 * - COALESCE ( - + 94, - 1 - COUNT ( - + 47 ), + + COUNT ( * ) * - 37 * + COUNT ( * ) * - - 10 + 5 / + 30 * - + 67 )
----
6204

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL - + COUNT( * ) + - 98
----
-99

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL - + COUNT ( * ) + - 98
----
-99

query I rowsort
SELECT - 96 * - 12 + 97 AS col1
----
1249

query I rowsort
SELECT - 59 * - + 64
----
3776

query I rowsort
SELECT + 95 + - 60
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4883
SELECT + 9 * - CAST( SUM( - + 24 ) AS SIGNED )
----
216

skipif mysql # not compatible
query I rowsort label-4883
SELECT + 9 * - CAST ( SUM ( - + 24 ) AS INTEGER )
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT 26 * - CAST( - + COUNT( * ) AS SIGNED ) * 0 + - 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4884
SELECT 26 * - CAST ( - + COUNT ( * ) AS INTEGER ) * 0 + - 18 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4885
SELECT DISTINCT NULLIF ( + 4, + 7 * - + 39 / CAST( - 66 AS DECIMAL ) ) * 63 + + - MIN( + 71 ) * + + COUNT( * ) AS col2
----
181

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT NULLIF ( + 4, + 7 * - + 39 / CAST ( - 66 AS REAL ) ) * 63 + + - MIN ( + 71 ) * + + COUNT ( * ) AS col2
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL + MIN( ALL + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL + MIN ( ALL + 88 )
----
88

query I rowsort
SELECT - 42 * 31 + 67
----
-1235

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT 0 DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-4888
SELECT 0 / + 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT ALL - 62 + COUNT( * ) + + 97 + + 37 * + COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL - 62 + COUNT ( * ) + + 97 + + 37 * + COUNT ( * ) AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4890
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED ) / 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER ) / 39 AS col0
----
NULL

query I rowsort
SELECT 81 + 98 + + 2 AS col1
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT COUNT( * ) + - 50
----
-49

skipif mysql # not compatible
query I rowsort label-4892
SELECT COUNT ( * ) + - 50
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL + 90 * COUNT( DISTINCT - 0 )
----
90

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL + 90 * COUNT ( DISTINCT - 0 )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT 90 DIV - 33 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4894
SELECT 90 / - 33 AS col1
----
-2

query I rowsort
SELECT ALL - 63 + + 92 + 26 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT COUNT( * ) * - + 61 col0
----
-61

skipif mysql # not compatible
query I rowsort label-4896
SELECT COUNT ( * ) * - + 61 col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL MIN( DISTINCT + - 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL MIN ( DISTINCT + - 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT COUNT( * ) + - 70 col1
----
-69

skipif mysql # not compatible
query I rowsort label-4898
SELECT COUNT ( * ) + - 70 col1
----
-69

query I rowsort
SELECT NULLIF ( + - 16, + - 65 ) AS col1
----
-16

query II rowsort
SELECT + 87 AS col2, + 89 + 28 + 11 AS col2
----
87
128

query I rowsort
SELECT COALESCE ( - 51, - - 14 ) AS col1
----
-51

query I rowsort
SELECT + 38 + NULLIF ( - 90, - + 38 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL - SUM( DISTINCT - - 38 ) * + 47
----
-1786

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - SUM ( DISTINCT - - 38 ) * + 47
----
-1786

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT + - MIN( ( + + 91 ) ) * - 34 + + - ( 22 )
----
3072

skipif mysql # not compatible
query I rowsort label-4904
SELECT + - MIN ( ( + + 91 ) ) * - 34 + + - ( 22 )
----
3072

query II rowsort
SELECT DISTINCT + 14 AS col0, - 51
----
14
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4906
SELECT + + 75 / - - MAX( ALL 72 ) - + 45 * - 91 - + CAST( NULL AS SIGNED ) * - ( CASE 4 WHEN - + MAX( - - NULLIF ( - - 78, + 83 ) ) * - 32 + - + 29 + + 66 THEN 61 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT + + 75 / - - MAX ( ALL 72 ) - + 45 * - 91 - + CAST ( NULL AS INTEGER ) * - ( CASE 4 WHEN - + MAX ( - - NULLIF ( - - 78, + 83 ) ) * - 32 + - + 29 + + 66 THEN 61 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4907
SELECT + + SUM( 98 ), - 49 * - - 61 + - 41 AS col0
----
98
-3030

skipif mysql # not compatible
query II rowsort label-4907
SELECT + + SUM ( 98 ), - 49 * - - 61 + - 41 AS col0
----
98
-3030

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT ALL + 16 * - + CAST( NULL AS SIGNED ) + + 50 - - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL + 16 * - + CAST ( NULL AS INTEGER ) + + 50 - - - 20
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4909
SELECT + NULLIF ( - 26, + 84 / - CAST( NULL AS SIGNED ) ) - 91
----
-117

skipif mysql # not compatible
query I rowsort label-4909
SELECT + NULLIF ( - 26, + 84 / - CAST ( NULL AS INTEGER ) ) - 91
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT + CASE + ( - 78 ) WHEN + - 79 * 74 + + 34 + + 83 * - - 94 THEN + 60 + 5 + COUNT( - 9 ) + - MIN( DISTINCT + 93 ) * MIN( + 4 ) + + 9 * - - 1 WHEN - 27 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT + CASE + ( - 78 ) WHEN + - 79 * 74 + + 34 + + 83 * - - 94 THEN + 60 + 5 + COUNT ( - 9 ) + - MIN ( DISTINCT + 93 ) * MIN ( + 4 ) + + 9 * - - 1 WHEN - 27 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 94 AS col0, 41 col0
----
94
41

query II rowsort
SELECT + 71 AS col2, 96
----
71
96

query II rowsort
SELECT + 21, + 31 col2
----
21
31

query II rowsort
SELECT ALL + - 16 AS col0, ( + COALESCE ( + - 51, 64 ) ) AS col2
----
-16
-51

query II rowsort
SELECT + 55, 10 AS col1
----
55
10

query I rowsort
SELECT ALL + - 97 * 62 col0
----
-6014

onlyif mysql # DIV for integer division: 
query I rowsort label-4917
SELECT ALL - 89 DIV - - NULLIF ( - 65, 76 - 99 * - 57 + - + ( - 99 ) - - 37 + - 39 ) + - - 65 * + + 7 * + + 73 col2
----
33216

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL - 89 / - - NULLIF ( - 65, 76 - 99 * - 57 + - + ( - 99 ) - - 37 + - 39 ) + - - 65 * + + 7 * + + 73 col2
----
33216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4918
SELECT - - CAST( NULL AS SIGNED ) col0, + 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-4918
SELECT - - CAST ( NULL AS INTEGER ) col0, + 14
----
NULL
14

query I rowsort
SELECT + + 51 + - 96 AS col1
----
-45

query I rowsort
SELECT + 35 + - 85 * 55 * - + 43 * - 79
----
-15880940

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT - + 70 * - 59 * - COUNT( * ) AS col1
----
-4130

skipif mysql # not compatible
query I rowsort label-4921
SELECT - + 70 * - 59 * - COUNT ( * ) AS col1
----
-4130

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT + 49 + + SUM( DISTINCT + + 26 )
----
75

skipif mysql # not compatible
query I rowsort label-4922
SELECT + 49 + + SUM ( DISTINCT + + 26 )
----
75

query II rowsort
SELECT - ( + - 12 ), + 38 col2
----
12
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT - ( - - 4 ) + - SUM( ALL 52 )
----
-56

skipif mysql # not compatible
query I rowsort label-4924
SELECT - ( - - 4 ) + - SUM ( ALL 52 )
----
-56

query I rowsort
SELECT ALL 87 + + - 64 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT - 75 + - + COUNT( * ) * 39 * + 12 + + + 82
----
-461

skipif mysql # not compatible
query I rowsort label-4926
SELECT - 75 + - + COUNT ( * ) * 39 * + 12 + + + 82
----
-461

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT DISTINCT MIN( + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT MIN ( + 87 )
----
87

query I rowsort
SELECT - 51 + + 11
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT ALL - 32 + - 40 + - + CAST( NULL AS SIGNED ) / + - 78 / - 8 * - + 13 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - 32 + - 40 + - + CAST ( NULL AS INTEGER ) / + - 78 / - 8 * - + 13 col2
----
NULL

query I rowsort
SELECT ALL + 59 * 20
----
1180

query I rowsort
SELECT - 92 + + ( - + 87 ) AS col0
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT ALL + MAX( DISTINCT + 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL + MAX ( DISTINCT + 15 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT DISTINCT + MAX( - 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT + MAX ( - 2 ) AS col1
----
-2

query I rowsort
SELECT - 62 * 10 AS col0
----
-620

query I rowsort
SELECT - 66 * - 93 + - 21 AS col1
----
6117

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT COUNT( * ) * 2 + - CASE WHEN NOT - 92 = NULL THEN - 45 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT COUNT ( * ) * 2 + - CASE WHEN NOT - 92 = NULL THEN - 45 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT - 94 * + - 6 / 69 - + - CASE + 74 WHEN SUM( - - 2 ) THEN NULL WHEN - + SUM( ALL + 16 ) THEN + - COUNT( * ) * + 61 * + 90 END + - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT - 94 * + - 6 / 69 - + - CASE + 74 WHEN SUM ( - - 2 ) THEN NULL WHEN - + SUM ( ALL + 16 ) THEN + - COUNT ( * ) * + 61 * + 90 END + - 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4938
SELECT + COALESCE ( ( - - COUNT( * ) ), - + 62 ) * + 79 - 22 DIV + 1 - - + 75
----
132

skipif mysql # not compatible
query I rowsort label-4938
SELECT + COALESCE ( ( - - COUNT ( * ) ), - + 62 ) * + 79 - 22 / + 1 - - + 75
----
132

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4939
SELECT - 17 + - CAST( NULL AS SIGNED ) * - NULLIF ( + 4, + ( + 15 ) * - 14 * 4 + CAST( NULL AS DECIMAL ) ) * - ( 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT - 17 + - CAST ( NULL AS INTEGER ) * - NULLIF ( + 4, + ( + 15 ) * - 14 * 4 + CAST ( NULL AS REAL ) ) * - ( 63 )
----
NULL

query II rowsort
SELECT + - 13 * + 97 + + 54 + + 60 * - 63 AS col2, + ( - 23 )
----
-4987
-23

query I rowsort
SELECT ALL + NULLIF ( 7, + 36 ) * - NULLIF ( - 6, - + 45 ) AS col0
----
42

query I rowsort
SELECT + - 99 + - 68
----
-167

query I rowsort
SELECT DISTINCT + - 9 AS col0
----
-9

query II rowsort
SELECT ALL + - 78 * 4, + 26 + + 72 col1
----
-312
98

query I rowsort
SELECT DISTINCT 15 * 98 + - - ( 32 )
----
1502

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT + SUM( ALL + + 92 ) + + - ( + ( 55 ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4946
SELECT + SUM ( ALL + + 92 ) + + - ( + ( 55 ) ) AS col2
----
37

query I rowsort
SELECT COALESCE ( + 58, - - 48 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT + COUNT( * ) * + 70 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4948
SELECT + COUNT ( * ) * + 70 AS col2
----
70

query I rowsort
SELECT ALL ( + 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT - CASE - 86 WHEN - - 42 - - COUNT( * ) - MIN( DISTINCT + 57 ) * - 9 * - AVG ( DISTINCT 2 ) THEN - - 13 * 65 WHEN - COUNT( * ) THEN - 39 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT - CASE - 86 WHEN - - 42 - - COUNT ( * ) - MIN ( DISTINCT + 57 ) * - 9 * - AVG ( DISTINCT 2 ) THEN - - 13 * 65 WHEN - COUNT ( * ) THEN - 39 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT MIN( ALL + + 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4951
SELECT MIN ( ALL + + 49 ) AS col1
----
49

query I rowsort
SELECT + 99 * 79
----
7821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT - CAST( 60 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-4953
SELECT - CAST ( 60 AS INTEGER )
----
-60

query II rowsort
SELECT 63, 32 * - - 98 - + 18 AS col1
----
63
3118

query I rowsort
SELECT 28 * 90 AS col2
----
2520

query I rowsort
SELECT ALL CASE 19 WHEN 13 THEN NULL WHEN - 27 THEN 87 END - - - 39 + + + 89
----
NULL

query II rowsort
SELECT DISTINCT 35 AS col0, - 85
----
35
-85

query II rowsort
SELECT DISTINCT 88 AS col0, 35 + + - 90 + 62 AS col2
----
88
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT ALL - CAST( NULL AS SIGNED ) - - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL - CAST ( NULL AS INTEGER ) - - 58
----
NULL

query I rowsort
SELECT 44 - + - 79 AS col1
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-4961
SELECT ALL + 28 DIV + 83 col2
----
0

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + 28 / + 83 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT ALL - + 30 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - + 30 / - 96 AS col0
----
0

query I rowsort
SELECT - 48 * + 78 AS col1
----
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT MAX( DISTINCT 62 )
----
62

skipif mysql # not compatible
query I rowsort label-4964
SELECT MAX ( DISTINCT 62 )
----
62

query I rowsort
SELECT ALL - + NULLIF ( 89, + 68 + - 12 )
----
-89

query II rowsort
SELECT DISTINCT - + 55 * - + 77 + + + 97, - 16 * - 44 * 84 AS col0
----
4332
59136

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT DISTINCT - - 80 AS col1, + COUNT( * ) AS col1
----
80
1

skipif mysql # not compatible
query II rowsort label-4967
SELECT DISTINCT - - 80 AS col1, + COUNT ( * ) AS col1
----
80
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4968
SELECT CAST( + COUNT( * ) AS SIGNED ) * 50
----
50

skipif mysql # not compatible
query I rowsort label-4968
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT ALL - + SUM( - 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL - + SUM ( - 11 ) AS col2
----
11

query II rowsort
SELECT ALL 81 + - 27 + - 90 - 96 AS col2, 86 AS col0
----
-132
86

query I rowsort
SELECT 74 * + + 0 AS col1
----
0

query I rowsort
SELECT ALL - - 13 + 72
----
85

query I rowsort
SELECT - 64 * + 82
----
-5248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4974
SELECT DISTINCT - CASE - COALESCE ( + - 87, - - MIN( + 85 ) ) WHEN NULLIF ( + 13, - - 18 * + 10 - ( 35 ) * - - COALESCE ( + + 96, + 38 + + ( 7 ) * + 36 + - - ( - 24 ) + - NULLIF ( + 22, - CASE + - 64 WHEN - CAST( NULL AS SIGNED ) + + 84 / COUNT( * ) THEN NULL ELSE COUNT( * ) + 71 END ) + 93, + 25 ) ) / + 77 THEN + 46 ELSE + 73 END col0
----
-73

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT - CASE - COALESCE ( + - 87, - - MIN ( + 85 ) ) WHEN NULLIF ( + 13, - - 18 * + 10 - ( 35 ) * - - COALESCE ( + + 96, + 38 + + ( 7 ) * + 36 + - - ( - 24 ) + - NULLIF ( + 22, - CASE + - 64 WHEN - CAST ( NULL AS INTEGER ) + + 84 / COUNT ( * ) THEN NULL ELSE COUNT ( * ) + 71 END ) + 93, + 25 ) ) / + 77 THEN + 46 ELSE + 73 END col0
----
-73

query I rowsort
SELECT ALL + - 33 + - - 15
----
-18

query I rowsort
SELECT ALL 84 + + 92 AS col2
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4977
SELECT DISTINCT 53 * + 62 DIV NULLIF ( - + COUNT( * ), - 62 )
----
-3286

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT 53 * + 62 / NULLIF ( - + COUNT ( * ), - 62 )
----
-3286

query I rowsort
SELECT 9 - 96 col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL 87 * - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL 87 * - COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT ALL + COUNT( * ) - - 4 + - - ( + ( + 82 ) )
----
87

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL + COUNT ( * ) - - 4 + - - ( + ( + 82 ) )
----
87

query I rowsort
SELECT 35 * 64 AS col2
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT COUNT( * ) + - MAX( - + ( - ( - + 43 ) ) )
----
44

skipif mysql # not compatible
query I rowsort label-4982
SELECT COUNT ( * ) + - MAX ( - + ( - ( - + 43 ) ) )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4983
SELECT ALL - CASE - - 83 WHEN + 93 THEN NULLIF ( + 0, + COUNT( ALL 74 ) ) * + - ( 72 ) DIV + COALESCE ( + 22, - MIN( + 67 ) ) + - + ( - COALESCE ( + CAST( NULL AS SIGNED ), - + 51, ( + + SUM( - + 58 ) ) ) ) ELSE 67 END - - + 75
----
8

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL - CASE - - 83 WHEN + 93 THEN NULLIF ( + 0, + COUNT ( ALL 74 ) ) * + - ( 72 ) / + COALESCE ( + 22, - MIN ( + 67 ) ) + - + ( - COALESCE ( + CAST ( NULL AS INTEGER ), - + 51, ( + + SUM ( - + 58 ) ) ) ) ELSE 67 END - - + 75
----
8

query II rowsort
SELECT 25 * + 53, 71 AS col2
----
1325
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4985
SELECT COALESCE ( + 52, + 84 DIV 8 ) + 10
----
62

skipif mysql # not compatible
query I rowsort label-4985
SELECT COALESCE ( + 52, + 84 / 8 ) + 10
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT DISTINCT 39 DIV 99 col2
----
0

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT 39 / 99 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4987
SELECT COUNT( * ) + + 40 * + 90 * 17, + 61 AS col2
----
61201
61

skipif mysql # not compatible
query II rowsort label-4987
SELECT COUNT ( * ) + + 40 * + 90 * 17, + 61 AS col2
----
61201
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT ALL 74 * - - COUNT( ALL + 72 )
----
74

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL 74 * - - COUNT ( ALL + 72 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4989
SELECT COUNT( DISTINCT 17 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT COUNT ( DISTINCT 17 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4990
SELECT DISTINCT MAX( DISTINCT + 83 ) DIV 66
----
1

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT MAX ( DISTINCT + 83 ) / 66
----
1

query II rowsort
SELECT - COALESCE ( + + 34, - - 18, + - ( + 82 ), - - 37, + + 95 * - - 42 + - + 54 ), + 89 + + 58 AS col1
----
-34
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT - - COUNT( ALL + 92 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4992
SELECT - - COUNT ( ALL + 92 ) AS col2
----
1

query II rowsort
SELECT ALL 82 * + 58 * 93 + + 75 AS col1, - 41 + - 55 AS col1
----
442383
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT DISTINCT COUNT( * ) * + 31 + 7 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT COUNT ( * ) * + 31 + 7 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL + 76 * + 92 + - - 14 * + COUNT( * ) * + 9 AS col1
----
7118

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL + 76 * + 92 + - - 14 * + COUNT ( * ) * + 9 AS col1
----
7118

query I rowsort
SELECT + NULLIF ( 49, 38 * + 21 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL - 61 * + COUNT( * ) + + 4 * + 8 + 72
----
43

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL - 61 * + COUNT ( * ) + + 4 * + 8 + 72
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT + MIN( ALL + - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-4998
SELECT + MIN ( ALL + - 37 ) AS col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4999
SELECT CASE - - COUNT( * ) WHEN COUNT( * ) THEN - - MIN( - 31 ) END DIV 3
----
-10

skipif mysql # not compatible
query I rowsort label-4999
SELECT CASE - - COUNT ( * ) WHEN COUNT ( * ) THEN - - MIN ( - 31 ) END / 3
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5000
SELECT + 77 * + - COALESCE ( + - 11, - 77 * - 41 DIV COUNT( * ) ) * COUNT( + 86 ) * COUNT( * ) + COUNT( * ) * + + 54
----
901

skipif mysql # not compatible
query I rowsort label-5000
SELECT + 77 * + - COALESCE ( + - 11, - 77 * - 41 / COUNT ( * ) ) * COUNT ( + 86 ) * COUNT ( * ) + COUNT ( * ) * + + 54
----
901

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT DISTINCT - 11 DIV + - ( 33 ) * + COALESCE ( + - 75, 25 )
----
0

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT - 11 / + - ( 33 ) * + COALESCE ( + - 75, 25 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5002
SELECT ALL - COALESCE ( 61, - 97 ) * + 99 + - 66 + - + MAX( ALL - 23 ) + 11 + CAST( + COUNT( * ) AS SIGNED )
----
-6070

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL - COALESCE ( 61, - 97 ) * + 99 + - 66 + - + MAX ( ALL - 23 ) + 11 + CAST ( + COUNT ( * ) AS INTEGER )
----
-6070

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT - + COUNT( * ) * CASE + 91 WHEN + - 68 THEN 55 * 63 + + 3 WHEN - 27 * + COUNT( * ) THEN + 3 / + 17 ELSE NULL END - - 91 + 22 * - COUNT( ALL + + 40 ) + - 26 * 25 + - + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT - + COUNT ( * ) * CASE + 91 WHEN + - 68 THEN 55 * 63 + + 3 WHEN - 27 * + COUNT ( * ) THEN + 3 / + 17 ELSE NULL END - - 91 + 22 * - COUNT ( ALL + + 40 ) + - 26 * 25 + - + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT ALL - COUNT( ALL - 22 ) + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL - COUNT ( ALL - 22 ) + - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5005
SELECT - COUNT( * ) + + 50 DIV + + 4
----
11

skipif mysql # not compatible
query I rowsort label-5005
SELECT - COUNT ( * ) + + 50 / + + 4
----
11

query I rowsort
SELECT DISTINCT - + 77 col0
----
-77

query I rowsort
SELECT - 52 + - 20
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT ALL - SUM( DISTINCT 30 ) - CAST( - 98 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL - SUM ( DISTINCT 30 ) - CAST ( - 98 AS INTEGER )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT - 29 + + 58 * + SUM( DISTINCT + 67 ) * + 85 + - 20 + - 69 + + - 17 + 95 AS col2
----
330270

skipif mysql # not compatible
query I rowsort label-5009
SELECT - 29 + + 58 * + SUM ( DISTINCT + 67 ) * + 85 + - 20 + - 69 + + - 17 + 95 AS col2
----
330270

query II rowsort
SELECT 45 AS col1, - ( 99 ) AS col1
----
45
-99

query II rowsort
SELECT 26 AS col2, + 73 + + 95
----
26
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL CASE - + COUNT( * ) WHEN ( + 43 ) * + 94 THEN + 19 ELSE - + 35 - + 33 END
----
-68

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL CASE - + COUNT ( * ) WHEN ( + 43 ) * + 94 THEN + 19 ELSE - + 35 - + 33 END
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT SUM( - - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT SUM ( - - 89 )
----
89

query I rowsort
SELECT - 86 * 77
----
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT 98 * - SUM( - - 17 )
----
-1666

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT 98 * - SUM ( - - 17 )
----
-1666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5016
SELECT DISTINCT - 55 * + 73 DIV - COUNT( * )
----
4015

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - 55 * + 73 / - COUNT ( * )
----
4015

query I rowsort
SELECT - 33 * + 71 AS col1
----
-2343

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL - COUNT( * ) * - 19
----
19

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL - COUNT ( * ) * - 19
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT - 50 DIV 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5019
SELECT - 50 / 57 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT + 56 * + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-5020
SELECT + 56 * + COUNT ( * ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT - COUNT( * ) - COALESCE ( - 86, + + COUNT( * ) - + 23, 66 )
----
85

skipif mysql # not compatible
query I rowsort label-5021
SELECT - COUNT ( * ) - COALESCE ( - 86, + + COUNT ( * ) - + 23, 66 )
----
85

query I rowsort
SELECT - 20 * - 45 * - CASE - - 99 WHEN - 70 THEN - + 98 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT DISTINCT - 66 + + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT - 66 + + COUNT ( * )
----
-65

query I rowsort
SELECT ALL - - COALESCE ( - 16, 87 ) + + 93 + - 23 AS col1
----
54

query I rowsort
SELECT ALL - 17 + + 20 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT + - 11 + + 56 + - COUNT( + 72 ) col2
----
44

skipif mysql # not compatible
query I rowsort label-5026
SELECT + - 11 + + 56 + - COUNT ( + 72 ) col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT - 6 + + + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT - 6 + + + COUNT ( * )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT + + 37 + + - CAST( - COUNT( DISTINCT + + 66 ) AS SIGNED ) col1
----
38

skipif mysql # not compatible
query I rowsort label-5028
SELECT + + 37 + + - CAST ( - COUNT ( DISTINCT + + 66 ) AS INTEGER ) col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT + + 78 * - NULLIF ( - 36, + - COUNT( ALL 54 ) ) AS col1
----
2808

skipif mysql # not compatible
query I rowsort label-5029
SELECT + + 78 * - NULLIF ( - 36, + - COUNT ( ALL 54 ) ) AS col1
----
2808

query II rowsort
SELECT + 29 AS col1, ( - 33 ) AS col0
----
29
-33

query I rowsort
SELECT + ( 68 ) AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5032
SELECT ALL COALESCE ( COUNT( * ), 76 ) * - CAST( 56 AS SIGNED ) + - COUNT( + 33 )
----
-57

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL COALESCE ( COUNT ( * ), 76 ) * - CAST ( 56 AS INTEGER ) + - COUNT ( + 33 )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-5033
SELECT + 86 * + COUNT( * ) * NULLIF ( + 52, + + SUM( ALL + 19 ) ), - 39 + 75 col0
----
4472
36

skipif mysql # not compatible
query II rowsort label-5033
SELECT + 86 * + COUNT ( * ) * NULLIF ( + 52, + + SUM ( ALL + 19 ) ), - 39 + 75 col0
----
4472
36

query I rowsort
SELECT + 55 + + + 67 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT ALL - COUNT( * ) * + + 81 + - - 51 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL - COUNT ( * ) * + + 81 + - - 51 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-5036
SELECT ALL + - COUNT( * ), MAX( + NULLIF ( ( + + 68 ), - 72 * - 52 + - 78 + - + 27 ) ) * - + 81 AS col2
----
-1
-5508

skipif mysql # not compatible
query II rowsort label-5036
SELECT ALL + - COUNT ( * ), MAX ( + NULLIF ( ( + + 68 ), - 72 * - 52 + - 78 + - + 27 ) ) * - + 81 AS col2
----
-1
-5508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5037
SELECT ALL 82 * COUNT( * ) + + COUNT( * ) * + CAST( NULL AS SIGNED ) * - - 0, 80 AS col0
----
NULL
80

skipif mysql # not compatible
query II rowsort label-5037
SELECT ALL 82 * COUNT ( * ) + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - - 0, 80 AS col0
----
NULL
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5038
SELECT COALESCE ( + CAST( NULL AS SIGNED ), - 7, 86 * + 69 )
----
-7

skipif mysql # not compatible
query I rowsort label-5038
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), - 7, 86 * + 69 )
----
-7

query I rowsort
SELECT ALL 54 * - 72 * - 15 - + 34
----
58286

query II rowsort
SELECT - 25 col2, 42 AS col2
----
-25
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5041
SELECT + CASE COUNT( * ) WHEN CAST( - - 60 AS SIGNED ) * - COUNT( + + 91 ) THEN - ( - CAST( - 87 AS SIGNED ) ) ELSE NULL END * + 80 + MAX( DISTINCT - ( - ( 66 ) ) ) + - NULLIF ( - COUNT( * ), + 4 ) / + ( 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5041
SELECT + CASE COUNT ( * ) WHEN CAST ( - - 60 AS INTEGER ) * - COUNT ( + + 91 ) THEN - ( - CAST ( - 87 AS INTEGER ) ) ELSE NULL END * + 80 + MAX ( DISTINCT - ( - ( 66 ) ) ) + - NULLIF ( - COUNT ( * ), + 4 ) / + ( 15 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5042
SELECT CASE + + 12 WHEN - 80 THEN NULL WHEN COUNT( * ) + 6 + - + 14 * + 56 * - 55 THEN NULL WHEN 62 THEN + - 77 + - 29 * + - 74 - 53 - + COALESCE ( + CAST( NULL AS SIGNED ), + MAX( DISTINCT ( 63 ) ) * 37 ) * + 31 * 26 END, + 55 * + ( - CAST( + - 69 AS SIGNED ) ) / + 78 - + CASE CASE - 13 WHEN COUNT( * ) * - 91 THEN NULLIF ( COUNT( * ), 24 * ( - NULLIF ( - CAST( NULL AS SIGNED ), 54 ) ) + 21 ) * 23 + + CAST( NULL AS SIGNED ) * + 97 WHEN 51 + + 91 * - MIN( + 41 * 22 ) THEN NULL WHEN 14 - 64 THEN + 2 WHEN 92 THEN NULL ELSE NULL END WHEN CAST( COUNT( * ) AS SIGNED ) + + 11 THEN - CASE AVG ( - 65 ) WHEN 79 THEN 69 ELSE NULL END / COALESCE ( 13 * - 79, - 59 + - COUNT( * ) ) END col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5042
SELECT CASE + + 12 WHEN - 80 THEN NULL WHEN COUNT ( * ) + 6 + - + 14 * + 56 * - 55 THEN NULL WHEN 62 THEN + - 77 + - 29 * + - 74 - 53 - + COALESCE ( + CAST ( NULL AS INTEGER ), + MAX ( DISTINCT ( 63 ) ) * 37 ) * + 31 * 26 END, + 55 * + ( - CAST ( + - 69 AS INTEGER ) ) / + 78 - + CASE CASE - 13 WHEN COUNT ( * ) * - 91 THEN NULLIF ( COUNT ( * ), 24 * ( - NULLIF ( - CAST ( NULL AS INTEGER ), 54 ) ) + 21 ) * 23 + + CAST ( NULL AS INTEGER ) * + 97 WHEN 51 + + 91 * - MIN ( + 41 * 22 ) THEN NULL WHEN 14 - 64 THEN + 2 WHEN 92 THEN NULL ELSE NULL END WHEN CAST ( COUNT ( * ) AS INTEGER ) + + 11 THEN - CASE AVG ( - 65 ) WHEN 79 THEN 69 ELSE NULL END / COALESCE ( 13 * - 79, - 59 + - COUNT ( * ) ) END col2
----
NULL
NULL

query I rowsort
SELECT + 40 - 63 col2
----
-23

query I rowsort
SELECT + 99 * 62 AS col2
----
6138

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT - 5 * + - MAX( 16 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5045
SELECT - 5 * + - MAX ( 16 ) AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT ALL + 41 DIV + 18
----
2

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL + 41 / + 18
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5047
SELECT - 19 * + COALESCE ( 54, + 24 DIV - - 49 + - 55 ) - 71 + - 76 DIV - - 26
----
-1099

skipif mysql # not compatible
query I rowsort label-5047
SELECT - 19 * + COALESCE ( 54, + 24 / - - 49 + - 55 ) - 71 + - 76 / - - 26
----
-1099

query III rowsort
SELECT DISTINCT + 51, 0 * + - 42 * + - 68 - + COALESCE ( - - 91, + 68 ) AS col0, + 20 * 86 AS col0
----
51
-91
1720

query II rowsort
SELECT ALL + 89, + 68 * 91 AS col0
----
89
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT - 69 * - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-5050
SELECT - 69 * - COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - 87 - - COUNT( * ) * - - ( 59 )
----
-28

skipif mysql # not compatible
query I rowsort label-5051
SELECT - 87 - - COUNT ( * ) * - - ( 59 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5052
SELECT + 74 * CAST( + + 23 AS SIGNED )
----
1702

skipif mysql # not compatible
query I rowsort label-5052
SELECT + 74 * CAST ( + + 23 AS INTEGER )
----
1702

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT - NULLIF ( 34, + - AVG ( + - 40 ) ) * + 71 + + - COUNT( * )
----
-2415

skipif mysql # not compatible
query I rowsort label-5053
SELECT - NULLIF ( 34, + - AVG ( + - 40 ) ) * + 71 + + - COUNT ( * )
----
-2415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5054
SELECT - CAST( - - 87 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-5054
SELECT - CAST ( - - 87 AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * 11 + 24 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * 11 + 24 AS col2
----
35

query I rowsort
SELECT - 27 + - + 38
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-5057
SELECT COUNT( * ) col0, 91 col2
----
1
91

skipif mysql # not compatible
query II rowsort label-5057
SELECT COUNT ( * ) col0, 91 col2
----
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT - COUNT( * ) + - 6 + + COALESCE ( 10, + 28 * + + 95 * 40 * + - 23 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5058
SELECT - COUNT ( * ) + - 6 + + COALESCE ( 10, + 28 * + + 95 * 40 * + - 23 ) AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5059
SELECT - CAST( NULL AS SIGNED ) - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5059
SELECT - CAST ( NULL AS INTEGER ) - 74
----
NULL

query I rowsort
SELECT DISTINCT + 97 + - 9 + + - 80 * ( - 56 ) AS col0
----
4568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT DISTINCT CAST( + 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT CAST ( + 1 AS INTEGER )
----
1

query I rowsort
SELECT ALL - 68 + - 27 AS col1
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5063
SELECT ALL + 46 + - 68 + + COUNT( * ) DIV - COALESCE ( COUNT( * ), + 58 + + 57 * + - 55 + - - 8 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL + 46 + - 68 + + COUNT ( * ) / - COALESCE ( COUNT ( * ), + 58 + + 57 * + - 55 + - - 8 ) AS col1
----
-23

query I rowsort
SELECT ALL + 88 + - 90 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5065
SELECT - - CASE - - ( + - 65 ) WHEN + - COUNT( + - 36 ) THEN NULL WHEN ( + + 38 ) THEN - + 15 * 35 * - ( + 64 ) + + 89 ELSE NULL END + + - CASE + + 35 WHEN - AVG ( ALL 41 ) * + 8 * + - 6 THEN COUNT( * ) WHEN - - 37 + 28 THEN NULL ELSE NULL END, 96 DIV + 86 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5065
SELECT - - CASE - - ( + - 65 ) WHEN + - COUNT ( + - 36 ) THEN NULL WHEN ( + + 38 ) THEN - + 15 * 35 * - ( + 64 ) + + 89 ELSE NULL END + + - CASE + + 35 WHEN - AVG ( ALL 41 ) * + 8 * + - 6 THEN COUNT ( * ) WHEN - - 37 + 28 THEN NULL ELSE NULL END, 96 / + 86 AS col0
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT ALL + ( - - CAST( + 90 AS SIGNED ) ) * ( + 4 ) AS col2
----
360

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL + ( - - CAST ( + 90 AS INTEGER ) ) * ( + 4 ) AS col2
----
360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5067
SELECT - 3 DIV - 27 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5067
SELECT - 3 / - 27 * + COUNT ( * )
----
0

query I rowsort
SELECT - + 7 + + 54 AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5069
SELECT ALL - + CAST( NULL AS SIGNED ) + - - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL - + CAST ( NULL AS INTEGER ) + - - 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5070
SELECT - 61 * - 39 AS col2, + 76 * + CAST( 29 AS SIGNED ) * + + COUNT( * ) col0
----
2379
2204

skipif mysql # not compatible
query II rowsort label-5070
SELECT - 61 * - 39 AS col2, + 76 * + CAST ( 29 AS INTEGER ) * + + COUNT ( * ) col0
----
2379
2204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5071
SELECT DISTINCT + 83 * + + 37 + + 82 - 18 + - MIN( CAST( + 1 AS SIGNED ) )
----
3134

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT + 83 * + + 37 + + 82 - 18 + - MIN ( CAST ( + 1 AS INTEGER ) )
----
3134

onlyif mysql # aggregate syntax: 
query II rowsort label-5072
SELECT ALL + 8, - COUNT( * ) AS col0
----
8
-1

skipif mysql # not compatible
query II rowsort label-5072
SELECT ALL + 8, - COUNT ( * ) AS col0
----
8
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT - + CASE + 23 WHEN + 67 THEN NULL WHEN - 85 + - - 32 * + COUNT( * ) * - ( + 71 ) THEN + + 60 ELSE NULL END * - 81 * + + ( - - COUNT( * ) ) / + 32 * + 20 + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT - + CASE + 23 WHEN + 67 THEN NULL WHEN - 85 + - - 32 * + COUNT ( * ) * - ( + 71 ) THEN + + 60 ELSE NULL END * - 81 * + + ( - - COUNT ( * ) ) / + 32 * + 20 + 23
----
NULL

query I rowsort
SELECT ALL + + ( + 87 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5075
SELECT ALL + + 50 AS col2, 5 * + ( - COUNT( * ) ) AS col1
----
50
-5

skipif mysql # not compatible
query II rowsort label-5075
SELECT ALL + + 50 AS col2, 5 * + ( - COUNT ( * ) ) AS col1
----
50
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT DISTINCT - + NULLIF ( - 61, - COUNT( * ) ) - - COUNT( * ) - + 86
----
-24

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - + NULLIF ( - 61, - COUNT ( * ) ) - - COUNT ( * ) - + 86
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5077
SELECT ALL + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5078
SELECT CAST( NULL AS DECIMAL ) * + 84 * - + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT CAST ( NULL AS REAL ) * + 84 * - + 71 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5079
SELECT - ( + 77 ) + + 22 + - + 11 + 23 + - 69 DIV 7 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-5079
SELECT - ( + 77 ) + + 22 + - + 11 + 23 + - 69 / 7 AS col1
----
-52

query II rowsort
SELECT + 31 AS col1, + 91 + - ( - 33 )
----
31
124

query I rowsort
SELECT 9 + 78
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT 36 * - - COUNT( * ) - - 95
----
131

skipif mysql # not compatible
query I rowsort label-5082
SELECT 36 * - - COUNT ( * ) - - 95
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT COUNT( * ) + + COALESCE ( + - 54, - 19 + - - 9 + + + 1 * - 6 + + 27, + 16 )
----
-53

skipif mysql # not compatible
query I rowsort label-5083
SELECT COUNT ( * ) + + COALESCE ( + - 54, - 19 + - - 9 + + + 1 * - 6 + + 27, + 16 )
----
-53

query I rowsort
SELECT ALL - ( 85 ) col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT NULLIF ( + COUNT( * ), - - 21 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5085
SELECT NULLIF ( + COUNT ( * ), - - 21 ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5086
SELECT COUNT( * ) * - - 26, + 11 + + 26