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 AS col0
----
26
37

skipif mysql # not compatible
query II rowsort label-5086
SELECT COUNT ( * ) * - - 26, + 11 + + 26 AS col0
----
26
37

query I rowsort
SELECT DISTINCT ( - ( - 69 ) ) + - ( - 55 ) AS col1
----
124

query I rowsort
SELECT NULLIF ( 31, 73 ) * - 31 AS col0
----
-961

query II rowsort
SELECT 63 + - 55 AS col1, 84 * 49 AS col0
----
8
4116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT DISTINCT COUNT( * ) + 21 * - 72
----
-1511

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT COUNT ( * ) + 21 * - 72
----
-1511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT DISTINCT + 65 + 46 + 27 + - 22 + - - CAST( + - 23 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT + 65 + 46 + 27 + - 22 + - - CAST ( + - 23 AS INTEGER )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5093
SELECT DISTINCT 20 + 78 * + 64 * - CASE + + 79 WHEN + + 75 THEN - CAST( + + 37 AS SIGNED ) * + - 37 * - 79 / + 33 END * - + COUNT( * ) + - 35 - - - 73 + - 4 + - 32 * - COUNT( * ) * + 69 * - 43 / 51 * + 29 / - - 4 - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT 20 + 78 * + 64 * - CASE + + 79 WHEN + + 75 THEN - CAST ( + + 37 AS INTEGER ) * + - 37 * - 79 / + 33 END * - + COUNT ( * ) + - 35 - - - 73 + - 4 + - 32 * - COUNT ( * ) * + 69 * - 43 / 51 * + 29 / - - 4 - 15
----
NULL

query I rowsort
SELECT 18 * - - 7 * - 59 AS col1
----
-7434

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL COUNT( * ) * COUNT( + + 17 ) + 29 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL COUNT ( * ) * COUNT ( + + 17 ) + 29 AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5096
SELECT DISTINCT + COUNT( * ) * 20 + + 51 + - - CASE + - 6 WHEN - - 73 + + 31 THEN + - 57 END + 40 * 42, + ( COUNT( * ) ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5096
SELECT DISTINCT + COUNT ( * ) * 20 + + 51 + - - CASE + - 6 WHEN - - 73 + + 31 THEN + - 57 END + 40 * 42, + ( COUNT ( * ) ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT 64 * - + 90 * - + COUNT( * )
----
5760

skipif mysql # not compatible
query I rowsort label-5097
SELECT 64 * - + 90 * - + COUNT ( * )
----
5760

query I rowsort
SELECT ALL - + COALESCE ( + 1, - 68 ) + + - 59
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT MIN( DISTINCT + 86 ) - 24 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5099
SELECT MIN ( DISTINCT + 86 ) - 24 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT + COUNT( * ) * 80 + - NULLIF ( - 18, + - 83 ) col2
----
98

skipif mysql # not compatible
query I rowsort label-5100
SELECT + COUNT ( * ) * 80 + - NULLIF ( - 18, + - 83 ) col2
----
98

query I rowsort
SELECT 43 - + 91 + + 71 * - 35 AS col2
----
-2533

onlyif mysql # aggregate syntax: 
query II rowsort label-5102
SELECT + COUNT( ALL 55 ) AS col0, - 87
----
1
-87

skipif mysql # not compatible
query II rowsort label-5102
SELECT + COUNT ( ALL 55 ) AS col0, - 87
----
1
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-5103
SELECT ALL ( COUNT( * ) ) col0, - 53 AS col2
----
1
-53

skipif mysql # not compatible
query II rowsort label-5103
SELECT ALL ( COUNT ( * ) ) col0, - 53 AS col2
----
1
-53

query I rowsort
SELECT ( ( + + 57 ) ) * - ( - - ( 35 ) )
----
-1995

onlyif mysql # aggregate syntax: 
query II rowsort label-5105
SELECT 13 - SUM( 19 ), + 75 AS col1
----
-6
75

skipif mysql # not compatible
query II rowsort label-5105
SELECT 13 - SUM ( 19 ), + 75 AS col1
----
-6
75

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

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

query I rowsort
SELECT 46 * - + 73 AS col2
----
-3358

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5109
SELECT CAST( 59 AS SIGNED ) + - 72 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5109
SELECT CAST ( 59 AS INTEGER ) + - 72 AS col2
----
-13

query I rowsort
SELECT ALL - COALESCE ( 76, - 62 * 45 * - - 44, 37 + - 56 ) * - 11
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT DISTINCT - MIN( DISTINCT + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT - MIN ( DISTINCT + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5112
SELECT 42 AS col0, 76 * - 0 * + - COUNT( * ) AS col1
----
42
0

skipif mysql # not compatible
query II rowsort label-5112
SELECT 42 AS col0, 76 * - 0 * + - COUNT ( * ) AS col1
----
42
0

query I rowsort
SELECT 44 * - 46 col2
----
-2024

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5115
SELECT 63 DIV CASE 1 WHEN - 13 * + AVG ( + CAST( NULL AS SIGNED ) ) THEN 1 WHEN 1 THEN - 39 WHEN + + 84 THEN + - 38 + 35 ELSE NULL END * + + 56 * - 60 AS col1
----
3360

skipif mysql # not compatible
query I rowsort label-5115
SELECT 63 / CASE 1 WHEN - 13 * + AVG ( + CAST ( NULL AS INTEGER ) ) THEN 1 WHEN 1 THEN - 39 WHEN + + 84 THEN + - 38 + 35 ELSE NULL END * + + 56 * - 60 AS col1
----
3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT ALL 22 + CAST( NULL AS SIGNED ) * + 31 + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL 22 + CAST ( NULL AS INTEGER ) * + 31 + - 30
----
NULL

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

query I rowsort
SELECT - 72 * - 52 + + 9 AS col0
----
3753

query II rowsort
SELECT 85 AS col1, - 46
----
85
-46

query I rowsort
SELECT ALL 15 * - 51 AS col2
----
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-5121
SELECT DISTINCT + 33 + + - COALESCE ( - 15, + - 6 DIV 35 - 34 * - - 77 )
----
48

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT + 33 + + - COALESCE ( - 15, + - 6 / 35 - 34 * - - 77 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5122
SELECT ALL - CAST( 98 AS SIGNED ) + 70 * 26 / + + 9 + + 95 * - CASE - 98 WHEN - - COUNT( * ) * + 28 * - ( - - 11 ) THEN - + 50 WHEN 83 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL - CAST ( 98 AS INTEGER ) + 70 * 26 / + + 9 + + 95 * - CASE - 98 WHEN - - COUNT ( * ) * + 28 * - ( - - 11 ) THEN - + 50 WHEN 83 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT DISTINCT + COUNT( * ) * - - MAX( ALL + 45 ) * + - 57 AS col2
----
-2565

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT + COUNT ( * ) * - - MAX ( ALL + 45 ) * + - 57 AS col2
----
-2565

query I rowsort
SELECT ALL 79 * 86 AS col1
----
6794

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT CASE - - COALESCE ( ( + - 12 ), - 80 ) WHEN - 40 THEN 64 WHEN - COUNT( - 56 ) + - 19 THEN NULL WHEN 22 THEN NULL END + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT CASE - - COALESCE ( ( + - 12 ), - 80 ) WHEN - 40 THEN 64 WHEN - COUNT ( - 56 ) + - 19 THEN NULL WHEN 22 THEN NULL END + + 20 AS col1
----
NULL

query II rowsort
SELECT ALL ( 79 ) - - + 35, + ( + 61 ) col1
----
114
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT NULLIF ( + - 90, + - COUNT( * ) * - + 82 + 5 + NULLIF ( - - 27, - - 46 ) ) * - 40 AS col2
----
3600

skipif mysql # not compatible
query I rowsort label-5127
SELECT NULLIF ( + - 90, + - COUNT ( * ) * - + 82 + 5 + NULLIF ( - - 27, - - 46 ) ) * - 40 AS col2
----
3600

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

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - 85 - - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5129
SELECT + 29 + + COUNT( * ) * - 33 + 68 + + 46 + 35 DIV - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-5129
SELECT + 29 + + COUNT ( * ) * - 33 + 68 + + 46 + 35 / - COUNT ( * )
----
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5131
SELECT ALL - CAST( - - 20 AS SIGNED ) * + 83 - - - 28
----
-1688

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - CAST ( - - 20 AS INTEGER ) * + 83 - - - 28
----
-1688

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5132
SELECT 43 * + + 15 * - 97 AS col2, + 78 + + COALESCE ( 90, + 38, - COALESCE ( + + 54, - + ( - + 63 ) ) ) DIV + 46 + + 22 * - CAST( 76 AS SIGNED )
----
-62565
-1593

skipif mysql # not compatible
query II rowsort label-5132
SELECT 43 * + + 15 * - 97 AS col2, + 78 + + COALESCE ( 90, + 38, - COALESCE ( + + 54, - + ( - + 63 ) ) ) / + 46 + + 22 * - CAST ( 76 AS INTEGER )
----
-62565
-1593

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT + 56 + - 6 + + MIN( DISTINCT + 2 ) * - 67 * 44
----
-5846

skipif mysql # not compatible
query I rowsort label-5133
SELECT + 56 + - 6 + + MIN ( DISTINCT + 2 ) * - 67 * 44
----
-5846

query II rowsort
SELECT ALL - 25 - - 83 * - 89 + - 40 AS col0, 9
----
-7452
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5135
SELECT DISTINCT + 66 DIV - 26 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT + 66 / - 26 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT - 79 DIV 71 + 67 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5136
SELECT - 79 / 71 + 67 AS col0
----
66

query I rowsort
SELECT ALL 49 * 90 * + 41 + - 3 AS col2
----
180807

query II rowsort
SELECT DISTINCT 48 AS col2, + 10 AS col2
----
48
10

query II rowsort
SELECT - ( + + 94 ) + + 5 + - 64 AS col1, + 65 + + + 15
----
-153
80

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

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

query I rowsort
SELECT + + 62 + - + 33
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT + 68 + COUNT( * ) * + 18 * - + 86 * + 91 - - 88 AS col2
----
-140712

skipif mysql # not compatible
query I rowsort label-5142
SELECT + 68 + COUNT ( * ) * + 18 * - + 86 * + 91 - - 88 AS col2
----
-140712

query I rowsort
SELECT ALL + ( 51 ) col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5144
SELECT COALESCE ( - 43, NULLIF ( - COALESCE ( - - 87, MIN( DISTINCT - 0 ) DIV NULLIF ( + + 29, - 84 + - 54 + - 93 ) DIV + + CAST( NULL AS SIGNED ), 26 ), + ( - MAX( ALL ( + 23 ) ) ) ) + - - 1 ) AS col0, + 25 DIV 69 + ( + 19 ) - + 58 AS col2
----
-43
-39

skipif mysql # not compatible
query II rowsort label-5144
SELECT COALESCE ( - 43, NULLIF ( - COALESCE ( - - 87, MIN ( DISTINCT - 0 ) / NULLIF ( + + 29, - 84 + - 54 + - 93 ) / + + CAST ( NULL AS INTEGER ), 26 ), + ( - MAX ( ALL ( + 23 ) ) ) ) + - - 1 ) AS col0, + 25 / 69 + ( + 19 ) - + 58 AS col2
----
-43
-39

query I rowsort
SELECT - 95 * - 7
----
665

query I rowsort
SELECT ALL + 50 * - + 67 + - 6 * + + 32
----
-3542

onlyif mysql # aggregate syntax: 
query II rowsort label-5147
SELECT MIN( ALL - 19 ) * - - ( 38 ) - - 81 + - 55 * 32 col0, - MAX( + 87 )
----
-2401
-87

skipif mysql # not compatible
query II rowsort label-5147
SELECT MIN ( ALL - 19 ) * - - ( 38 ) - - 81 + - 55 * 32 col0, - MAX ( + 87 )
----
-2401
-87

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

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT - 6 * + 28 + - COUNT ( * ) AS col0
----
-169

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

query I rowsort
SELECT 74 * + - 60 * - - 66 + 63 + + 49
----
-292928

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT + NULLIF ( + SUM( DISTINCT - + 98 ), - 65 )
----
-98

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT + NULLIF ( + SUM ( DISTINCT - + 98 ), - 65 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL - 96 * COUNT( * ) * 70 + 80
----
-6640

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL - 96 * COUNT ( * ) * 70 + 80
----
-6640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5153
SELECT + ( COUNT( * ) ) * + + 43 + + + 3 - + + 56 / - 20 + + + 67 + - 7 + 82 * NULLIF ( + 45, + 66 + - 57 * - 12 ) + + COUNT( DISTINCT - CASE WHEN - 0 = + + 62 THEN + + 63 * - 54 + - 8 ELSE NULL END ) - 76 - - - 96 * CAST( NULL AS SIGNED ) * - 95 + + 88 / ( 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT + ( COUNT ( * ) ) * + + 43 + + + 3 - + + 56 / - 20 + + + 67 + - 7 + 82 * NULLIF ( + 45, + 66 + - 57 * - 12 ) + + COUNT ( DISTINCT - CASE WHEN - 0 = + + 62 THEN + + 63 * - 54 + - 8 ELSE NULL END ) - 76 - - - 96 * CAST ( NULL AS INTEGER ) * - 95 + + 88 / ( 20 )
----
NULL

query I rowsort
SELECT ALL + 46 * + + 64 + 92
----
3036

query I rowsort
SELECT COALESCE ( - 28, + - 72 )
----
-28

query I rowsort
SELECT ALL + ( - + 84 ) AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-5157
SELECT DISTINCT ( + + 35 ) * - 17 * - NULLIF ( 76, + 36 * - 10 + + 55 - - + 19 ) - + COALESCE ( - + 7, + + 13 DIV - 38 + 46 + + 55 * + - 6 ) + + + 48 * 16 * - - 23 col1
----
62891

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT ( + + 35 ) * - 17 * - NULLIF ( 76, + 36 * - 10 + + 55 - - + 19 ) - + COALESCE ( - + 7, + + 13 / - 38 + 46 + + 55 * + - 6 ) + + + 48 * 16 * - - 23 col1
----
62891

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT + COUNT( * ) + + ( + 97 ) * + - ( 34 )
----
-3297

skipif mysql # not compatible
query I rowsort label-5158
SELECT + COUNT ( * ) + + ( + 97 ) * + - ( 34 )
----
-3297

onlyif mysql # aggregate syntax: 
query II rowsort label-5159
SELECT ALL 74 * - MIN( 72 ) - + 31 AS col0, + 16 + - 33 + 60
----
-5359
43

skipif mysql # not compatible
query II rowsort label-5159
SELECT ALL 74 * - MIN ( 72 ) - + 31 AS col0, + 16 + - 33 + 60
----
-5359
43

query I rowsort
SELECT - 38 * - 47 AS col1
----
1786

query I rowsort
SELECT - + 9 * 32
----
-288

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

query I rowsort
SELECT ALL - 37 * 70
----
-2590

query I rowsort
SELECT DISTINCT 37 * 65 AS col1
----
2405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), - - 5 + + - 77 * 14 - + 54 )
----
1127

skipif mysql # not compatible
query I rowsort label-5165
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), - - 5 + + - 77 * 14 - + 54 )
----
1127

query I rowsort
SELECT + + 33 - - 0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5167
SELECT + CASE - 91 WHEN 64 THEN NULL WHEN - - CAST( + - COUNT( * ) AS SIGNED ) THEN + + 43 END * - - 20 * 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT + CASE - 91 WHEN 64 THEN NULL WHEN - - CAST ( + - COUNT ( * ) AS INTEGER ) THEN + + 43 END * - - 20 * 17 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5168
SELECT + - CASE 16 WHEN - 75 THEN NULL WHEN - COUNT( + 46 ) * 9 + + + MIN( ALL + 7 ) + 86 THEN ( + - NULLIF ( + ( + 0 ), CAST( + 25 AS SIGNED ) DIV + MIN( - CAST( NULL AS SIGNED ) ) * - 61 * + - COUNT( + - 19 ) + - + 0 DIV ( + CAST( - 42 AS SIGNED ) ) ) ) * + COUNT( * ) + 31 DIV + + NULLIF ( 49, + 85 ) DIV 41 ELSE - 48 * COALESCE ( - 20, - 37 ) END - - 84
----
-876

skipif mysql # not compatible
query I rowsort label-5168
SELECT + - CASE 16 WHEN - 75 THEN NULL WHEN - COUNT ( + 46 ) * 9 + + + MIN ( ALL + 7 ) + 86 THEN ( + - NULLIF ( + ( + 0 ), CAST ( + 25 AS INTEGER ) / + MIN ( - CAST ( NULL AS INTEGER ) ) * - 61 * + - COUNT ( + - 19 ) + - + 0 / ( + CAST ( - 42 AS INTEGER ) ) ) ) * + COUNT ( * ) + 31 / + + NULLIF ( 49, + 85 ) / 41 ELSE - 48 * COALESCE ( - 20, - 37 ) END - - 84
----
-876

query I rowsort
SELECT DISTINCT - 89 + + + 88 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT + 30 + + MIN( DISTINCT - 91 )
----
-61

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT + 30 + + MIN ( DISTINCT - 91 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5171
SELECT ALL + CASE COUNT( * ) WHEN - + 4 THEN + 29 END + - + CAST( - 29 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL + CASE COUNT ( * ) WHEN - + 4 THEN + 29 END + - + CAST ( - 29 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 97 + 52
----
149

query I rowsort
SELECT + 64 + NULLIF ( + 56, - 94 ) * 35 - 0 AS col0
----
2024

query I rowsort
SELECT DISTINCT 70 + + - 93 * + 15
----
-1325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5175
SELECT - COUNT( * ) DIV CASE + - ( 85 ) WHEN 46 - - 11 THEN NULL ELSE - MAX( + 47 ) END
----
0

skipif mysql # not compatible
query I rowsort label-5175
SELECT - COUNT ( * ) / CASE + - ( 85 ) WHEN 46 - - 11 THEN NULL ELSE - MAX ( + 47 ) END
----
0

query I rowsort
SELECT + 87 * + 71 AS col1
----
6177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5177
SELECT ALL - COUNT( ALL - - NULLIF ( - 42, + 79 + + 32 ) ) DIV + + ( + 44 ) * + COUNT( * ) + - + 81 + - - 32
----
-49

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - COUNT ( ALL - - NULLIF ( - 42, + 79 + + 32 ) ) / + + ( + 44 ) * + COUNT ( * ) + - + 81 + - - 32
----
-49

query I rowsort
SELECT ALL 69 * + ( 53 ) AS col1
----
3657

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT DISTINCT + NULLIF ( CASE - - 37 WHEN 14 THEN + 85 - - 92 WHEN 17 THEN NULL ELSE SUM( DISTINCT 32 ) END, 45 + 82 )
----
32

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT + NULLIF ( CASE - - 37 WHEN 14 THEN + 85 - - 92 WHEN 17 THEN NULL ELSE SUM ( DISTINCT 32 ) END, 45 + 82 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5180
SELECT ALL CAST( - 62 AS SIGNED ) / ( COUNT( * ) ) * - CASE - 28 WHEN + 35 * + 35 + 66 + - COALESCE ( - 1, - MAX( DISTINCT 33 ) ) * - 5 THEN + 41 + - 27 * + - 91 WHEN + ( 99 ) + MIN( 43 ) + 21 THEN NULL END + SUM( ALL 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL CAST ( - 62 AS INTEGER ) / ( COUNT ( * ) ) * - CASE - 28 WHEN + 35 * + 35 + 66 + - COALESCE ( - 1, - MAX ( DISTINCT 33 ) ) * - 5 THEN + 41 + - 27 * + - 91 WHEN + ( 99 ) + MIN ( 43 ) + 21 THEN NULL END + SUM ( ALL 60 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT DISTINCT 33 / - - 30 - + CAST( NULL AS SIGNED ) / + ( - 94 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT 33 / - - 30 - + CAST ( NULL AS INTEGER ) / + ( - 94 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5182
SELECT DISTINCT + COUNT( * ) AS col0, 70 + CAST( 40 AS SIGNED ) - - - 75 * + 65 * + 58 + - + 87 * - - 52 AS col0
----
1
-287164

skipif mysql # not compatible
query II rowsort label-5182
SELECT DISTINCT + COUNT ( * ) AS col0, 70 + CAST ( 40 AS INTEGER ) - - - 75 * + 65 * + 58 + - + 87 * - - 52 AS col0
----
1
-287164

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5184
SELECT + 86 AS col2, 86 + - COUNT( DISTINCT + 86 ) DIV - 98
----
86
86

skipif mysql # not compatible
query II rowsort label-5184
SELECT + 86 AS col2, 86 + - COUNT ( DISTINCT + 86 ) / - 98
----
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT + COUNT( + 98 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5185
SELECT + COUNT ( + 98 ) AS col0
----
1

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

query I rowsort
SELECT - 20 * - + 78
----
1560

query I rowsort
SELECT ALL - 44 * - 8
----
352

query I rowsort
SELECT DISTINCT 38 * + 99 AS col1
----
3762

query I rowsort
SELECT DISTINCT - 35 * - + ( + - NULLIF ( 82, - - NULLIF ( - 9, - CASE 84 WHEN + 27 THEN - 48 END ) + + 71 ) ) AS col2
----
-2870

query I rowsort
SELECT DISTINCT + 0 * 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5192
SELECT - + 72 / + + SUM( DISTINCT + 16 ) * - + ( + 80 ) * COUNT( * ) * CAST( NULL AS SIGNED ) + - ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT - + 72 / + + SUM ( DISTINCT + 16 ) * - + ( + 80 ) * COUNT ( * ) * CAST ( NULL AS INTEGER ) + - ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL + + 68 * + - 52 AS col1
----
-3536

query II rowsort
SELECT ALL - 59 col0, + 69 + + - ( + + 69 )
----
-59
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5195
SELECT + + 93 * 50 + 67 * 47 + + - 15 AS col2, COUNT( * ) AS col0
----
7784
1

skipif mysql # not compatible
query II rowsort label-5195
SELECT + + 93 * 50 + 67 * 47 + + - 15 AS col2, COUNT ( * ) AS col0
----
7784
1

query I rowsort
SELECT + 61 - 8 + 48 - + 20 * - + 86
----
1821

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT - 0 DIV 92 * + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5197
SELECT - 0 / 92 * + 25 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5198
SELECT 49 * - 21 + CAST( + + 40 AS SIGNED ) DIV ( - 30 ), ( - - 88 ) + 29 col0
----
-1030
117

skipif mysql # not compatible
query II rowsort label-5198
SELECT 49 * - 21 + CAST ( + + 40 AS INTEGER ) / ( - 30 ), ( - - 88 ) + 29 col0
----
-1030
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT - 27 + COUNT( * ) - CASE - - 58 WHEN - - 99 * 8 THEN - + 86 * - 14 END * + 33 * + 50 / - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT - 27 + COUNT ( * ) - CASE - - 58 WHEN - - 99 * 8 THEN - + 86 * - 14 END * + 33 * + 50 / - 13 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT DISTINCT + + 76 + - - COALESCE ( - 35, 7 + - 42 * + - ( - CAST( NULL AS SIGNED ) ) * + 8 + + 69 )
----
41

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT + + 76 + - - COALESCE ( - 35, 7 + - 42 * + - ( - CAST ( NULL AS INTEGER ) ) * + 8 + + 69 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5201
SELECT DISTINCT + - 51 DIV 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + - 51 / 56 AS col0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-5202
SELECT 90 + - 47 - - SUM( ALL - 32 ) - - 25 + - 36, - 38 * + 23 AS col1, 31 AS col0
----
0
-874
31

skipif mysql # not compatible
query III rowsort label-5202
SELECT 90 + - 47 - - SUM ( ALL - 32 ) - - 25 + - 36, - 38 * + 23 AS col1, 31 AS col0
----
0
-874
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL + + COUNT( * ) + - + ( + - 36 ) + - 63 col2
----
-26

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + + COUNT ( * ) + - + ( + - 36 ) + - 63 col2
----
-26

query I rowsort
SELECT ALL - + 38 + + 17 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL - 10 + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL - 10 + COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5206
SELECT DISTINCT - 99 + - - COUNT( * ) + - 79 DIV + 36
----
-100

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT - 99 + - - COUNT ( * ) + - 79 / + 36
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT COUNT( 16 ) + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-5207
SELECT COUNT ( 16 ) + - 19
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-5208
SELECT 34 + - 57 + + + ( - 31 ), + 69 DIV 24 col1
----
-54
2

skipif mysql # not compatible
query II rowsort label-5208
SELECT 34 + - 57 + + + ( - 31 ), + 69 / 24 col1
----
-54
2

query II rowsort
SELECT - 7 col0, 46 AS col0
----
-7
46

query I rowsort
SELECT ALL - 47 + - ( - + 35 )
----
-12

query I rowsort
SELECT DISTINCT 16 + + 62 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ALL 92 - - 4 * COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL 92 - - 4 * COUNT ( * ) AS col0
----
96

query II rowsort
SELECT ALL 17, 2 AS col1
----
17
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5214
SELECT ALL - 98 AS col0, - COUNT( ALL + 56 ) AS col0
----
-98
-1

skipif mysql # not compatible
query II rowsort label-5214
SELECT ALL - 98 AS col0, - COUNT ( ALL + 56 ) AS col0
----
-98
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT DISTINCT 22 - 33 + - COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT 22 - 33 + - COUNT ( * ) AS col0
----
-12

query I rowsort
SELECT ( - - 75 ) * - ( - - ( + 97 ) ) * 40 * + 34 * 15
----
-148410000

query I rowsort
SELECT ALL 56 - - - 99 AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5218
SELECT ALL - 17, ( - - 94 ) + - NULLIF ( + - SUM( DISTINCT 99 ), - + 53 + - CAST( NULL AS SIGNED ) / COUNT( * ) + + 76 + - MAX( ALL + - 18 ) + CAST( 86 AS SIGNED ) + CAST( NULL AS SIGNED ) * + MAX( - - CAST( NULL AS SIGNED ) ) * + 45 * - - COUNT( * ) ) + - 8 AS col0
----
-17
185

skipif mysql # not compatible
query II rowsort label-5218
SELECT ALL - 17, ( - - 94 ) + - NULLIF ( + - SUM ( DISTINCT 99 ), - + 53 + - CAST ( NULL AS INTEGER ) / COUNT ( * ) + + 76 + - MAX ( ALL + - 18 ) + CAST ( 86 AS INTEGER ) + CAST ( NULL AS INTEGER ) * + MAX ( - - CAST ( NULL AS INTEGER ) ) * + 45 * - - COUNT ( * ) ) + - 8 AS col0
----
-17
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT MAX( - 78 ) + + MAX( + - 18 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-5219
SELECT MAX ( - 78 ) + + MAX ( + - 18 ) AS col1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5220
SELECT 48 * COUNT( * ) + COUNT( - 34 ) * 94 DIV + MIN( ALL 19 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-5220
SELECT 48 * COUNT ( * ) + COUNT ( - 34 ) * 94 / + MIN ( ALL 19 ) AS col1
----
52

query I rowsort
SELECT ( - 26 ) * + 9 AS col1
----
-234

query I rowsort
SELECT - 59 * 69 - 34
----
-4105

query II rowsort
SELECT + 39, + CASE - + 42 WHEN + + 53 THEN 97 WHEN 77 THEN - 33 END AS col1
----
39
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5224
SELECT COUNT( + ( - CAST( NULL AS DECIMAL ) ) ) + + SUM( ALL 42 ) DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-5224
SELECT COUNT ( + ( - CAST ( NULL AS REAL ) ) ) + + SUM ( ALL 42 ) / - 82
----
0

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

query I rowsort
SELECT + COALESCE ( 29, - 85, - 80 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5227
SELECT + 23 * 65 / + + 43 * - - CAST( 28 AS DECIMAL ) * + COUNT( * ) + + MIN( + 67 ) * + 46 * - + 90 + + + 10 + - 89 * - - 70 * COALESCE ( - CAST( NULL AS SIGNED ), - - 21 + - 82 * + - CASE 78 WHEN + 99 THEN + + 31 WHEN 22 THEN NULL WHEN 66 THEN - 83 + - - NULLIF ( + 18, + 88 + - + 72 + - - 95 / - 69 * + NULLIF ( + 46, + 60 + 8 ) ) + CASE 74 + + COUNT( * ) WHEN - 32 THEN NULL ELSE 65 END * + 62 * - CASE 36 WHEN - 23 THEN NULL WHEN - ( 70 ) THEN 92 ELSE 32 + - 82 * - 58 END END ) * + 19 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT + 23 * 65 / + + 43 * - - CAST ( 28 AS REAL ) * + COUNT ( * ) + + MIN ( + 67 ) * + 46 * - + 90 + + + 10 + - 89 * - - 70 * COALESCE ( - CAST ( NULL AS INTEGER ), - - 21 + - 82 * + - CASE 78 WHEN + 99 THEN + + 31 WHEN 22 THEN NULL WHEN 66 THEN - 83 + - - NULLIF ( + 18, + 88 + - + 72 + - - 95 / - 69 * + NULLIF ( + 46, + 60 + 8 ) ) + CASE 74 + + COUNT ( * ) WHEN - 32 THEN NULL ELSE 65 END * + 62 * - CASE 36 WHEN - 23 THEN NULL WHEN - ( 70 ) THEN 92 ELSE 32 + - 82 * - 58 END END ) * + 19 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT DISTINCT - COUNT( ALL - 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-5228
SELECT DISTINCT - COUNT ( ALL - 86 )
----
-1

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

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

query I rowsort
SELECT 87 + + - 69
----
18

query II rowsort
SELECT - 61 AS col1, - 86 AS col0
----
-61
-86

query I rowsort
SELECT DISTINCT + 55 * - 76 + - + 29
----
-4209

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL - COALESCE ( + + ( + 60 ), SUM( DISTINCT + + ( 50 ) ) + + SUM( + 78 ) ) + + MAX( - 57 ) AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL - COALESCE ( + + ( + 60 ), SUM ( DISTINCT + + ( 50 ) ) + + SUM ( + 78 ) ) + + MAX ( - 57 ) AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT DISTINCT COALESCE ( + NULLIF ( 72, 83 ), + COUNT( * ), + + SUM( ALL 2 ) ) + - 66 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT COALESCE ( + NULLIF ( 72, 83 ), + COUNT ( * ), + + SUM ( ALL 2 ) ) + - 66 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL - - 77 + + MAX( - ( + - 59 ) )
----
136

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL - - 77 + + MAX ( - ( + - 59 ) )
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-5237
SELECT ALL + 61 + - 96 DIV - + 33 col1
----
63

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL + 61 + - 96 / - + 33 col1
----
63

query II rowsort
SELECT - + 23, 77 AS col1
----
-23
77

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

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

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

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

query I rowsort
SELECT - 84 + - 72 * 3
----
-300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5242
SELECT - 88 DIV COUNT( * ) * + 57
----
-5016

skipif mysql # not compatible
query I rowsort label-5242
SELECT - 88 / COUNT ( * ) * + 57
----
-5016

query I rowsort
SELECT 15 * 83 - + - 3 * - 15 * + - 91 col0
----
5340

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5244
SELECT 34 / CASE + - 73 WHEN - 23 THEN NULL WHEN CAST( MAX( + 62 ) AS DECIMAL ) * 89 THEN - + 19 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT 34 / CASE + - 73 WHEN - 23 THEN NULL WHEN CAST ( MAX ( + 62 ) AS REAL ) * 89 THEN - + 19 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5245
SELECT 37 - - COUNT( * ) * + + 28 * + ( + 96 ) col0, - CAST( CASE - 83 WHEN - COALESCE ( - + 64, + CAST( + + 89 AS SIGNED ) + + 75 * ( - 29 ), 1 ) + + + 37 - - NULLIF ( - 62, + 90 * 37 ) THEN 69 END AS DECIMAL ) - + 40 + + + COUNT( * )
----
2725
NULL

skipif mysql # not compatible
query II rowsort label-5245
SELECT 37 - - COUNT ( * ) * + + 28 * + ( + 96 ) col0, - CAST ( CASE - 83 WHEN - COALESCE ( - + 64, + CAST ( + + 89 AS INTEGER ) + + 75 * ( - 29 ), 1 ) + + + 37 - - NULLIF ( - 62, + 90 * 37 ) THEN 69 END AS REAL ) - + 40 + + + COUNT ( * )
----
2725
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5246
SELECT DISTINCT - 33 * + 26 * 87 col2, + CAST( NULL AS SIGNED )
----
-74646
NULL

skipif mysql # not compatible
query II rowsort label-5246
SELECT DISTINCT - 33 * + 26 * 87 col2, + CAST ( NULL AS INTEGER )
----
-74646
NULL

query I rowsort
SELECT 47 - - 87 * 70
----
6137

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT ALL - ( - COUNT( DISTINCT + 92 ) ) - - - 68 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL - ( - COUNT ( DISTINCT + 92 ) ) - - - 68 AS col0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5249
SELECT ALL 75 * 7 DIV - 89
----
-5

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL 75 * 7 / - 89
----
-5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5251
SELECT ALL 51 * + COUNT( DISTINCT - 46 ) AS col0, + 38 AS col0
----
51
38

skipif mysql # not compatible
query II rowsort label-5251
SELECT ALL 51 * + COUNT ( DISTINCT - 46 ) AS col0, + 38 AS col0
----
51
38

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

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

query I rowsort
SELECT DISTINCT + 79 - ( - 26 ) * - 60
----
-1481

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5254
SELECT ALL + 61 * 75 DIV - - CAST( + 3 AS SIGNED ) * 1 + - 53
----
1472

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL + 61 * 75 / - - CAST ( + 3 AS INTEGER ) * 1 + - 53
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT - COUNT( - + 69 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5255
SELECT - COUNT ( - + 69 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT CASE + 26 WHEN + - COALESCE ( + - 47, - AVG ( ALL ( 83 ) ), - 84 ) THEN 86 WHEN - 36 + 44 THEN + + CASE COUNT( * ) WHEN - - 98 + + COUNT( * ) + - ( - 30 ) THEN NULL ELSE - ( - - 98 ) END + + 1 ELSE NULL END AS col1, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5256
SELECT CASE + 26 WHEN + - COALESCE ( + - 47, - AVG ( ALL ( 83 ) ), - 84 ) THEN 86 WHEN - 36 + 44 THEN + + CASE COUNT ( * ) WHEN - - 98 + + COUNT ( * ) + - ( - 30 ) THEN NULL ELSE - ( - - 98 ) END + + 1 ELSE NULL END AS col1, + COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT NULLIF ( + 73, - 28 )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5258
SELECT 4 + + + COUNT( * ), 41 AS col1
----
5
41

skipif mysql # not compatible
query II rowsort label-5258
SELECT 4 + + + COUNT ( * ), 41 AS col1
----
5
41

query I rowsort
SELECT ( - + 85 ) * - 89
----
7565

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5260
SELECT ALL MIN( 9 ) DIV - 55 * - - 43
----
0

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL MIN ( 9 ) / - 55 * - - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT + MIN( - 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5261
SELECT + MIN ( - 38 ) AS col0
----
-38

query I rowsort
SELECT ALL 4 * NULLIF ( - 74, + CASE + 93 WHEN - 88 THEN NULL WHEN + - 26 THEN 49 END ) * + 17 * - + 82 + - 96
----
412528

onlyif mysql # DIV for integer division: 
query I rowsort label-5263
SELECT + 73 DIV ( - 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5263
SELECT + 73 / ( - 89 ) AS col0
----
0

query I rowsort
SELECT + 43 * 47 col2
----
2021

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-5266
SELECT DISTINCT + + ( + 30 ) AS col1, COUNT( * ) AS col0, - 12
----
30
1
-12

skipif mysql # not compatible
query III rowsort label-5266
SELECT DISTINCT + + ( + 30 ) AS col1, COUNT ( * ) AS col0, - 12
----
30
1
-12

query I rowsort
SELECT ALL - ( + ( - 37 ) ) * - - 9
----
333

query I rowsort
SELECT + 42 * - 88 + + - 12 + + + 9 + - ( - 3 )
----
-3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5269
SELECT + - 70 + + + 80 + MIN( ALL - 92 ) + - 39 DIV + - MAX( ALL 46 ) * COUNT( * ) * + 75 + COUNT( * ) * + 76
----
-6

skipif mysql # not compatible
query I rowsort label-5269
SELECT + - 70 + + + 80 + MIN ( ALL - 92 ) + - 39 / + - MAX ( ALL 46 ) * COUNT ( * ) * + 75 + COUNT ( * ) * + 76
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5270
SELECT ALL + + 13 * + ( 70 ) + + COALESCE ( 19, - - 55, - 63, + 20 + CAST( NULL AS SIGNED ) - - 5 ) + + 52 AS col0
----
981

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL + + 13 * + ( 70 ) + + COALESCE ( 19, - - 55, - 63, + 20 + CAST ( NULL AS INTEGER ) - - 5 ) + + 52 AS col0
----
981

query I rowsort
SELECT DISTINCT + COALESCE ( 54, + 14, + 63 + + 96 )
----
54

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

query I rowsort
SELECT - 59 - + + 0 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT - MAX( DISTINCT - ( - + 1 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5274
SELECT - MAX ( DISTINCT - ( - + 1 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5275
SELECT - NULLIF ( + CASE - - 78 WHEN + 58 * - COUNT( * ) THEN CAST( NULL AS SIGNED ) + - 1 * 15 WHEN - - 43 / + CAST( 58 AS SIGNED ) - - + 35 - + - ( + - CASE + - 19 WHEN COUNT( * ) THEN - 65 * 49 + + ( + 46 ) WHEN + 7 - - 59 * + - 60 THEN NULL ELSE NULL END ) + - - 76 * 81 THEN + CASE + ( - 21 ) WHEN - 25 THEN - ( - 74 ) * + 97 + - COUNT( * ) WHEN + 16 THEN - 38 END END, 39 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT - NULLIF ( + CASE - - 78 WHEN + 58 * - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) + - 1 * 15 WHEN - - 43 / + CAST ( 58 AS INTEGER ) - - + 35 - + - ( + - CASE + - 19 WHEN COUNT ( * ) THEN - 65 * 49 + + ( + 46 ) WHEN + 7 - - 59 * + - 60 THEN NULL ELSE NULL END ) + - - 76 * 81 THEN + CASE + ( - 21 ) WHEN - 25 THEN - ( - 74 ) * + 97 + - COUNT ( * ) WHEN + 16 THEN - 38 END END, 39 ) col1
----
NULL

query I rowsort
SELECT + + 44 + + - ( - - 4 ) * + NULLIF ( 66, - 29 ) AS col0
----
-220

query I rowsort
SELECT - + ( + ( + 39 ) ) * + ( 40 ) * - ( - + 87 ) + - 38 AS col1
----
-135758

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT + 64 + CASE 16 WHEN + - 24 / - 10 + + + 62 + COUNT( * ) + + + 57 THEN 98 WHEN - + COUNT( * ) / + 26 + - - 75 THEN NULL END + - - ( - - 44 ) + + MAX( ALL + 19 ) + + - 98 * - - 59 + - + 18 * + 46 * + COALESCE ( + - 76, - 12 ) + 79 - - + 71 * - + 81 + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT + 64 + CASE 16 WHEN + - 24 / - 10 + + + 62 + COUNT ( * ) + + + 57 THEN 98 WHEN - + COUNT ( * ) / + 26 + - - 75 THEN NULL END + - - ( - - 44 ) + + MAX ( ALL + 19 ) + + - 98 * - - 59 + - + 18 * + 46 * + COALESCE ( + - 76, - 12 ) + 79 - - + 71 * - + 81 + 95
----
NULL

query I rowsort
SELECT - 58 * - 72 * ( + 19 ) AS col2
----
79344

query I rowsort
SELECT ALL NULLIF ( + 79, 90 * - 85 + + 12 ) AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5281
SELECT DISTINCT - 47 - - + 28 * - 5 + 91 AS col1, CAST( - + ( COALESCE ( ( - - 28 ), - - 16 ) ) AS SIGNED ) AS col0
----
-96
-28

skipif mysql # not compatible
query II rowsort label-5281
SELECT DISTINCT - 47 - - + 28 * - 5 + 91 AS col1, CAST ( - + ( COALESCE ( ( - - 28 ), - - 16 ) ) AS INTEGER ) AS col0
----
-96
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT + 45 + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5282
SELECT + 45 + + COUNT ( * )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5283
SELECT 26 AS col0, COUNT( + CAST( NULL AS DECIMAL ) ) + + CASE 39 WHEN - ( - 75 ) THEN NULL WHEN + + CAST( + + ( CASE + - 55 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - 2 END ) AS SIGNED ) THEN - 8 * - 15 ELSE + + COUNT( * ) END + COALESCE ( CAST( NULL AS SIGNED ), - COUNT( * ) * - - 90 * - + 49 ) * 49 * 17 AS col1
----
26
3673531

skipif mysql # not compatible
query II rowsort label-5283
SELECT 26 AS col0, COUNT ( + CAST ( NULL AS REAL ) ) + + CASE 39 WHEN - ( - 75 ) THEN NULL WHEN + + CAST ( + + ( CASE + - 55 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - 2 END ) AS INTEGER ) THEN - 8 * - 15 ELSE + + COUNT ( * ) END + COALESCE ( CAST ( NULL AS INTEGER ), - COUNT ( * ) * - - 90 * - + 49 ) * 49 * 17 AS col1
----
26
3673531

query I rowsort
SELECT - 10 + ( 65 ) + - 51 col2
----
4

query I rowsort
SELECT + 22 * + + 44 col0
----
968

query I rowsort
SELECT - 27 * + + 74 AS col1
----
-1998

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL NULLIF ( - 48, - + COALESCE ( - COUNT( 14 ), - + 21 / + 49 * - + 73 * 79 ) - NULLIF ( + 27, - 81 ) * + ( 20 ) + + - 67 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL NULLIF ( - 48, - + COALESCE ( - COUNT ( 14 ), - + 21 / + 49 * - + 73 * 79 ) - NULLIF ( + 27, - 81 ) * + ( 20 ) + + - 67 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT - COUNT( - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-5288
SELECT - COUNT ( - 18 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5289
SELECT + 80 DIV + 34
----
2

skipif mysql # not compatible
query I rowsort label-5289
SELECT + 80 / + 34
----
2

query I rowsort
SELECT DISTINCT - 85 * + 65 AS col2
----
-5525

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL + 57 + 76 + 84 * + - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL + 57 + 76 + 84 * + - COUNT ( * )
----
49

query I rowsort
SELECT DISTINCT - 3 * - - 89
----
-267

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5294
SELECT ALL + 89 DIV - SUM( - + 59 ) + + 62
----
63

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL + 89 / - SUM ( - + 59 ) + + 62
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL + 31 * + MIN( DISTINCT - 95 ) AS col2
----
-2945

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL + 31 * + MIN ( DISTINCT - 95 ) AS col2
----
-2945

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

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

query I rowsort
SELECT + 38 + + 45 * - COALESCE ( - 18, 65 + - 35, + 34 )
----
848

query I rowsort
SELECT ALL + - ( + 8 ) col0
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5299
SELECT + + 52 * + NULLIF ( 42, CAST( - 64 AS DECIMAL ) * - 80 + + + 7 * 55 ) + - + 78 AS col1
----
2106

skipif mysql # not compatible
query I rowsort label-5299
SELECT + + 52 * + NULLIF ( 42, CAST ( - 64 AS REAL ) * - 80 + + + 7 * 55 ) + - + 78 AS col1
----
2106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5300
SELECT + COALESCE ( - 3, - 75 + CAST( NULL AS SIGNED ) + 70 )
----
-3

skipif mysql # not compatible
query I rowsort label-5300
SELECT + COALESCE ( - 3, - 75 + CAST ( NULL AS INTEGER ) + 70 )
----
-3

query I rowsort
SELECT - 7 * + - 23 + - + 18
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5302
SELECT - MIN( + 21 ) DIV - 33 * - 3 + + 95
----
95

skipif mysql # not compatible
query I rowsort label-5302
SELECT - MIN ( + 21 ) / - 33 * - 3 + + 95
----
95

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5305
SELECT DISTINCT + + 73 AS col0, 62 * + COUNT( * ) * - CASE + 16 WHEN 25 THEN 98 + CAST( - 67 AS SIGNED ) END * - 80 * - 14 - 54 col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-5305
SELECT DISTINCT + + 73 AS col0, 62 * + COUNT ( * ) * - CASE + 16 WHEN 25 THEN 98 + CAST ( - 67 AS INTEGER ) END * - 80 * - 14 - 54 col0
----
73
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5306
SELECT DISTINCT - COUNT( ALL - 36 ) * + - COUNT( * ) - + + 56 + - + COUNT( * ) + - - 94 * + + COUNT( * ) + - + 51 + CASE + 59 WHEN 95 * CAST( NULL AS SIGNED ) * - SUM( DISTINCT + 92 ) THEN - SUM( + 49 ) * + 44 * + 60 ELSE NULL END, 12 AS col0
----
NULL
12

skipif mysql # not compatible
query II rowsort label-5306
SELECT DISTINCT - COUNT ( ALL - 36 ) * + - COUNT ( * ) - + + 56 + - + COUNT ( * ) + - - 94 * + + COUNT ( * ) + - + 51 + CASE + 59 WHEN 95 * CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT + 92 ) THEN - SUM ( + 49 ) * + 44 * + 60 ELSE NULL END, 12 AS col0
----
NULL
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5307
SELECT DISTINCT - 72 * - - 42 + - - COALESCE ( - 46, COUNT( * ), + COUNT( * ) ) * + - 0 DIV + - 52 * 72 * 12 * 19 + - + 44 AS col0
----
-3068

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT - 72 * - - 42 + - - COALESCE ( - 46, COUNT ( * ), + COUNT ( * ) ) * + - 0 / + - 52 * 72 * 12 * 19 + - + 44 AS col0
----
-3068

query II rowsort
SELECT ALL 10 * 27 + + - 31 * 14, ( + 95 ) col2
----
-164
95

query I rowsort
SELECT - - 51 * - NULLIF ( 92, - 14 ) + - + 77 AS col2
----
-4769

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL + NULLIF ( - + 96, 66 + 33 + + + COUNT( * ) / 14 )
----
-96

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL + NULLIF ( - + 96, 66 + 33 + + + COUNT ( * ) / 14 )
----
-96

query I rowsort
SELECT + - 33 + 60
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5312
SELECT - - 22 * - 0 DIV - SUM( ALL 41 ) - + - 4 * + - 97 * + + NULLIF ( - 76, + - 40 )
----
29488

skipif mysql # not compatible
query I rowsort label-5312
SELECT - - 22 * - 0 / - SUM ( ALL 41 ) - + - 4 * + - 97 * + + NULLIF ( - 76, + - 40 )
----
29488

query II rowsort
SELECT - 92 AS col0, 35 * + 63 AS col1
----
-92
2205

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5316
SELECT + SUM( + 16 ) DIV - 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5316
SELECT + SUM ( + 16 ) / - 33 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5317
SELECT ALL CASE - + COUNT( ALL - + 72 ) WHEN + + 99 THEN 86 * + + 42 + COUNT( * ) * + COUNT( * ) - + 27 * + 6 * + + 75 * + ( + + COUNT( * ) ) * + 76 / - 89 * - + CASE - + CAST( + SUM( - + 63 ) AS SIGNED ) WHEN + 7 * 34 THEN + CAST( NULL AS SIGNED ) ELSE NULL END * 98 WHEN + - 50 - 2 * - ( + 55 ) * 36 - 40 + 27 * + - 49 * - - 92 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL CASE - + COUNT ( ALL - + 72 ) WHEN + + 99 THEN 86 * + + 42 + COUNT ( * ) * + COUNT ( * ) - + 27 * + 6 * + + 75 * + ( + + COUNT ( * ) ) * + 76 / - 89 * - + CASE - + CAST ( + SUM ( - + 63 ) AS INTEGER ) WHEN + 7 * 34 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END * 98 WHEN + - 50 - 2 * - ( + 55 ) * 36 - 40 + 27 * + - 49 * - - 92 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT ALL NULLIF ( - - 11, + - COALESCE ( CASE - + 14 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + 78 + - 56 THEN 34 ELSE NULL END, + COUNT( * ) ) ) col2
----
11

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL NULLIF ( - - 11, + - COALESCE ( CASE - + 14 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 78 + - 56 THEN 34 ELSE NULL END, + COUNT ( * ) ) ) col2
----
11

query I rowsort
SELECT + 34 * + 98 AS col1
----
3332

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5321
SELECT + 52 + - - 85 DIV + 45 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-5321
SELECT + 52 + - - 85 / + 45 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT MIN( ALL - - 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5322
SELECT MIN ( ALL - - 64 ) AS col1
----
64

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

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

query I rowsort
SELECT - 4 * - 34 * - + 61 AS col1
----
-8296

query I rowsort
SELECT ALL 98 + 36 * + 70 col2
----
2618

query I rowsort
SELECT 88 * + 80 * + 74 AS col1
----
520960

query I rowsort
SELECT ALL 74 + - 41
----
33

query I rowsort
SELECT DISTINCT 91 * - ( - 81 )
----
7371

query I rowsort
SELECT ALL - 71 + 45
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5330
SELECT MAX( DISTINCT + + ( + + 20 ) ) DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-5330
SELECT MAX ( DISTINCT + + ( + + 20 ) ) / + 88
----
0

query I rowsort
SELECT 13 * - 87 AS col2
----
-1131

query I rowsort
SELECT ALL + 26 + + 17 AS col1
----
43

query I rowsort
SELECT ALL - - NULLIF ( 93, + + 80 ) AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5334
SELECT ALL COALESCE ( - COUNT( * ), - 10 DIV + - 3 - - 40 + + 86 DIV 13 DIV + 74 ) + 81
----
80

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL COALESCE ( - COUNT ( * ), - 10 / + - 3 - - 40 + + 86 / 13 / + 74 ) + 81
----
80

query I rowsort
SELECT ALL + 34 * - NULLIF ( - - 52, + 69 ) + - 62 + - 53
----
-1883

query I rowsort
SELECT DISTINCT - 76 * 46
----
-3496

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5337
SELECT ALL + + 58 + - NULLIF ( + - COUNT( * ), - 90 ) AS col1, 62 * + COUNT( * ) DIV + COUNT( * ) AS col2
----
59
62

skipif mysql # not compatible
query II rowsort label-5337
SELECT ALL + + 58 + - NULLIF ( + - COUNT ( * ), - 90 ) AS col1, 62 * + COUNT ( * ) / + COUNT ( * ) AS col2
----
59
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5338
SELECT + ( + 52 ) - - + 82 + COUNT( * ) DIV 12 * 7 AS col2
----
134

skipif mysql # not compatible
query I rowsort label-5338
SELECT + ( + 52 ) - - + 82 + COUNT ( * ) / 12 * 7 AS col2
----
134

query I rowsort
SELECT DISTINCT + - 42 * 12 * - + 54 AS col2
----
27216

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT 41 * 74 * - 0 * + SUM( + - 87 )
----
0

skipif mysql # not compatible
query I rowsort label-5340
SELECT 41 * 74 * - 0 * + SUM ( + - 87 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5341
SELECT ALL - CAST( NULL AS SIGNED ) * MIN( - - 82 ) * - 83 - 24 + NULLIF ( COUNT( * ), - 78 * - ( - 25 ) + - - 62 ) + - 49 + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL - CAST ( NULL AS INTEGER ) * MIN ( - - 82 ) * - 83 - 24 + NULLIF ( COUNT ( * ), - 78 * - ( - 25 ) + - - 62 ) + - 49 + 74 AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5343
SELECT 90 + + CAST( NULL AS SIGNED ) / - + 56 * + 89 - + 86 AS col1, NULLIF ( + - 75, + COUNT( * ) ) AS col0
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-5343
SELECT 90 + + CAST ( NULL AS INTEGER ) / - + 56 * + 89 - + 86 AS col1, NULLIF ( + - 75, + COUNT ( * ) ) AS col0
----
NULL
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT 21 + + MAX( ALL 84 ) * COUNT( DISTINCT + - ( - + 73 ) ) * - + 41 + + 47 + + + COUNT( * )
----
-3375

skipif mysql # not compatible
query I rowsort label-5344
SELECT 21 + + MAX ( ALL 84 ) * COUNT ( DISTINCT + - ( - + 73 ) ) * - + 41 + + 47 + + + COUNT ( * )
----
-3375

query I rowsort
SELECT - + 60 * + 95 + + - 15 AS col2
----
-5715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5346
SELECT 27 * + - 13 + CAST( + + CASE 49 WHEN - - NULLIF ( + - 82, 64 - 66 ) * - 71 + - COUNT( DISTINCT + 77 ) + + - 41 + + NULLIF ( - 50, - - 73 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) * - 55 * 58 - - - 7 / - COUNT( * ) THEN NULL ELSE - COALESCE ( + 77, + 60 + - 49 ) END AS SIGNED ) AS col2
----
-428

skipif mysql # not compatible
query I rowsort label-5346
SELECT 27 * + - 13 + CAST ( + + CASE 49 WHEN - - NULLIF ( + - 82, 64 - 66 ) * - 71 + - COUNT ( DISTINCT + 77 ) + + - 41 + + NULLIF ( - 50, - - 73 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) * - 55 * 58 - - - 7 / - COUNT ( * ) THEN NULL ELSE - COALESCE ( + 77, + 60 + - 49 ) END AS INTEGER ) AS col2
----
-428

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT MAX( ALL + + 57 ) + + 61 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-5347
SELECT MAX ( ALL + + 57 ) + + 61 AS col1
----
118

query I rowsort
SELECT DISTINCT - 89 - + 0 AS col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-5349
SELECT ALL 29 * 49 DIV 38 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL 29 * 49 / 38 AS col1
----
37

query I rowsort
SELECT 72 - + + ( 82 )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5351
SELECT ALL - 29 DIV + 71 * 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL - 29 / + 71 * 29 AS col1
----
0

query I rowsort
SELECT 38 * - 34 + - 64 col2
----
-1356

onlyif mysql # aggregate syntax: 
query II rowsort label-5353
SELECT 82 + - + ( + + SUM( DISTINCT - 40 ) ) + + 24 AS col2, 70 AS col0
----
146
70

skipif mysql # not compatible
query II rowsort label-5353
SELECT 82 + - + ( + + SUM ( DISTINCT - 40 ) ) + + 24 AS col2, 70 AS col0
----
146
70

query I rowsort
SELECT ALL 93 * 81 AS col0
----
7533

query I rowsort
SELECT 72 + 23 AS col1
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5356
SELECT 59, + 99 * - + 45 - - - ( - COUNT( * ) ) + 86 * + - 56 AS col1
----
59
-9270

skipif mysql # not compatible
query II rowsort label-5356
SELECT 59, + 99 * - + 45 - - - ( - COUNT ( * ) ) + 86 * + - 56 AS col1
----
59
-9270

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL MIN( DISTINCT 59 ) + - 13 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL MIN ( DISTINCT 59 ) + - 13 AS col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5358
SELECT ALL 39 + - 3 + - 15 * - - COUNT( * ) + 86 DIV + MIN( - 58 )
----
20

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL 39 + - 3 + - 15 * - - COUNT ( * ) + 86 / + MIN ( - 58 )
----
20

query II rowsort
SELECT - 24 AS col2, + 64
----
-24
64

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

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

query II rowsort
SELECT 93 + + 41 + - 72, 7 col1
----
62
7

query I rowsort
SELECT DISTINCT 38 * + - 63 * 78 col0
----
-186732

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT ( + COUNT( * ) ) + NULLIF ( 37, COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-5363
SELECT ( + COUNT ( * ) ) + NULLIF ( 37, COUNT ( * ) )
----
38

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

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

query I rowsort
SELECT ALL 93 * 65 AS col1
----
6045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT 87 + CAST( + 8 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-5366
SELECT 87 + CAST ( + 8 AS INTEGER )
----
95

query I rowsort
SELECT ALL - 27 + + 69 AS col1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5368
SELECT + MIN( - + 3 ) + + 22 + - 54 DIV + 57 AS col1, + 47 * + - 26
----
19
-1222

skipif mysql # not compatible
query II rowsort label-5368
SELECT + MIN ( - + 3 ) + + 22 + - 54 / + 57 AS col1, + 47 * + - 26
----
19
-1222

query I rowsort
SELECT - 85 + + 65 AS col2
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5370
SELECT ALL - + 51 * - + 24 + 18 + - 4 - + + 79 DIV + - ( + + ( - COALESCE ( - 4, + - COUNT( * ) * + 19 + 82 + - 24 + 12 * + 56 * 18 * - 48 * + 79 * - + 1 ) ) ) AS col2
----
1257

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL - + 51 * - + 24 + 18 + - 4 - + + 79 / + - ( + + ( - COALESCE ( - 4, + - COUNT ( * ) * + 19 + 82 + - 24 + 12 * + 56 * 18 * - 48 * + 79 * - + 1 ) ) ) AS col2
----
1257

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT MIN( - 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-5372
SELECT MIN ( - 43 ) AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5373
SELECT ALL + - 64 * + + 71 + + COUNT( * ) + + + 17 * 11 * 57 * - + CASE - - 99 WHEN - 96 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN 64 + - 76 + - 10 + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / 55 * + ( - 6 ) * 57 * + 95 + COUNT( * ) THEN 94 END * 41 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL + - 64 * + + 71 + + COUNT ( * ) + + + 17 * 11 * 57 * - + CASE - - 99 WHEN - 96 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN 64 + - 76 + - 10 + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / 55 * + ( - 6 ) * 57 * + 95 + COUNT ( * ) THEN 94 END * 41 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5374
SELECT ALL - 51 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL - 51 / 90
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5376
SELECT DISTINCT + 29 * + COALESCE ( SUM( DISTINCT + - 44 ), + CAST( + 91 AS SIGNED ) ) * - - 50 + + 26 AS col0
----
-63774

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT + 29 * + COALESCE ( SUM ( DISTINCT + - 44 ), + CAST ( + 91 AS INTEGER ) ) * - - 50 + + 26 AS col0
----
-63774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5377
SELECT ALL - - SUM( + + 31 ) * + 52 + + - 71 DIV - COALESCE ( - 19, - - CAST( - SUM( 76 ) AS SIGNED ), - + COUNT( * ) ) + - 82 AS col2
----
1527

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL - - SUM ( + + 31 ) * + 52 + + - 71 / - COALESCE ( - 19, - - CAST ( - SUM ( 76 ) AS INTEGER ), - + COUNT ( * ) ) + - 82 AS col2
----
1527

onlyif mysql # DIV for integer division: 
query I rowsort label-5378
SELECT ( - 49 ) DIV 37 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5378
SELECT ( - 49 ) / 37 AS col1
----
-1

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

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

query I rowsort
SELECT ALL - 34 * - 85 AS col2
----
2890

query I rowsort
SELECT 88 * + 81 AS col0
----
7128

query II rowsort
SELECT ALL - 33, - 67 AS col2
----
-33
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL - COALESCE ( COUNT( * ), + 13, + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL - COALESCE ( COUNT ( * ), + 13, + - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT ALL MAX( DISTINCT - 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL MAX ( DISTINCT - 43 ) AS col1
----
-43

query I rowsort
SELECT DISTINCT - 44 + + 41 * 59 AS col1
----
2375

query I rowsort
SELECT - 15 + + - 65
----
-80

query II rowsort
SELECT 22, + 92 AS col0
----
22
92

query I rowsort
SELECT + 38 + 22 AS col0
----
60

query I rowsort
SELECT DISTINCT - 26 + - + 11 + - 16
----
-53

query II rowsort
SELECT ALL + 72 * - NULLIF ( + 3, CASE - + 18 WHEN ( + 26 ) THEN - + 63 ELSE NULL END * - 41 ) AS col2, 58 AS col2
----
-216
58

query II rowsort
SELECT 66 AS col2, 83 AS col0
----
66
83

query I rowsort
SELECT ALL 79 + - + 36 col1
----
43

query I rowsort
SELECT - 3 * + + 52 col1
----
-156

query I rowsort
SELECT DISTINCT - 27 + + 52 * ( + 1 ) + - + 93 AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5396
SELECT DISTINCT CAST( + CAST( ( + NULLIF ( + COUNT( * ), - 81 ) ) AS SIGNED ) AS SIGNED ) - + 88
----
-87

skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT CAST ( + CAST ( ( + NULLIF ( + COUNT ( * ), - 81 ) ) AS INTEGER ) AS INTEGER ) - + 88
----
-87

query I rowsort
SELECT DISTINCT + 54 * - 58
----
-3132

query I rowsort
SELECT + CASE + 5 WHEN + 69 THEN + 62 - ( + 51 ) WHEN 47 THEN NULL END * - - 38 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - ( 23 ) AS col2, + 48 * - 12 + + 24 AS col2
----
-23
-552

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

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

query I rowsort
SELECT ( 83 ) col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5402
SELECT - 26 AS col0, - MIN( 14 )
----
-26
-14

skipif mysql # not compatible
query II rowsort label-5402
SELECT - 26 AS col0, - MIN ( 14 )
----
-26
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT + + 71 * ( - - SUM( ALL - 18 ) ) + + - 45 * + 23 * + + MIN( - 4 ) AS col2
----
2862

skipif mysql # not compatible
query I rowsort label-5403
SELECT + + 71 * ( - - SUM ( ALL - 18 ) ) + + - 45 * + 23 * + + MIN ( - 4 ) AS col2
----
2862

onlyif mysql # aggregate syntax: 
query II rowsort label-5404
SELECT ALL + + 32 col1, 15 + + 65 - + COUNT( * )
----
32
79

skipif mysql # not compatible
query II rowsort label-5404
SELECT ALL + + 32 col1, 15 + + 65 - + COUNT ( * )
----
32
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5405
SELECT ALL + + 7 AS col2, COUNT( ALL - NULLIF ( + 67, - 8 + - 31 ) ) DIV 55 DIV - 56 + - + 84 AS col0
----
7
-84

skipif mysql # not compatible
query II rowsort label-5405
SELECT ALL + + 7 AS col2, COUNT ( ALL - NULLIF ( + 67, - 8 + - 31 ) ) / 55 / - 56 + - + 84 AS col0
----
7
-84

query I rowsort
SELECT + - CASE WHEN NOT ( NULL ) >= NULL THEN NULL ELSE 21 END col2
----
-21

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

query I rowsort
SELECT + 99 - - - 47 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT - 24 * + 19 + + COUNT( ALL 34 ) * - 45
----
-501

skipif mysql # not compatible
query I rowsort label-5409
SELECT - 24 * + 19 + + COUNT ( ALL 34 ) * - 45
----
-501

query I rowsort
SELECT - 26 * 81
----
-2106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT COALESCE ( + 22, - + 21 * - + 21 + + 45 * - - 88 ) * - 8 + 5 + - SUM( DISTINCT - - 79 ) * - 29 AS col0
----
2120

skipif mysql # not compatible
query I rowsort label-5412
SELECT COALESCE ( + 22, - + 21 * - + 21 + + 45 * - - 88 ) * - 8 + 5 + - SUM ( DISTINCT - - 79 ) * - 29 AS col0
----
2120

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT ALL + SUM( COALESCE ( + 83, - 38, + ( + 7 ) - + + ( - 78 ) + + 28 ) )
----
83

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL + SUM ( COALESCE ( + 83, - 38, + ( + 7 ) - + + ( - 78 ) + + 28 ) )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5414
SELECT ALL - 79 * + 8 / + + 73 * - CAST( + + COALESCE ( - - COALESCE ( + NULLIF ( - 49, 20 + + + 99 + + - 74 ), - - 6 / - - 39 + 46 - - COUNT( * ) / + 99 + CAST( NULL AS SIGNED ) + 24 + 95, 37 ), + - 3 / - 33, + 42 ) AS DECIMAL ) + + - NULLIF ( - 52, + ( + COALESCE ( 4, - 97 * - 7 * - - NULLIF ( + 71, + + 25 * + 27 + + MIN( ALL + 51 ) - 79 ) * + 60, 21 * 48 ) ) ) + NULLIF ( - 81, 77 ) * - 63 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL - 79 * + 8 / + + 73 * - CAST ( + + COALESCE ( - - COALESCE ( + NULLIF ( - 49, 20 + + + 99 + + - 74 ), - - 6 / - - 39 + 46 - - COUNT ( * ) / + 99 + CAST ( NULL AS INTEGER ) + 24 + 95, 37 ), + - 3 / - 33, + 42 ) AS REAL ) + + - NULLIF ( - 52, + ( + COALESCE ( 4, - 97 * - 7 * - - NULLIF ( + 71, + + 25 * + 27 + + MIN ( ALL + 51 ) - 79 ) * + 60, 21 * 48 ) ) ) + NULLIF ( - 81, 77 ) * - 63 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 45 * 86 AS col0
----
-3870

query I rowsort
SELECT ALL 51 * - ( - 83 ) AS col0
----
4233

onlyif mysql # aggregate syntax: 
query II rowsort label-5417
SELECT ALL 10 * + SUM( 35 ) * - ( + COUNT( * ) ) + - 42 + - - 63 col1, + 20 AS col0
----
-329
20

skipif mysql # not compatible
query II rowsort label-5417
SELECT ALL 10 * + SUM ( 35 ) * - ( + COUNT ( * ) ) + - 42 + - - 63 col1, + 20 AS col0
----
-329
20

onlyif mysql # aggregate syntax: 
query II rowsort label-5418
SELECT + COALESCE ( + ( + 38 ), - + 79, + 38 ) * 17 * - 93 AS col2, 28 + 77 * + MAX( 58 ) AS col0
----
-60078
4494

skipif mysql # not compatible
query II rowsort label-5418
SELECT + COALESCE ( + ( + 38 ), - + 79, + 38 ) * 17 * - 93 AS col2, 28 + 77 * + MAX ( 58 ) AS col0
----
-60078
4494

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5420
SELECT + CAST( + COALESCE ( + 86, + 4 ) AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5420
SELECT + CAST ( + COALESCE ( + 86, + 4 ) AS INTEGER ) AS col1
----
86

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

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

query I rowsort
SELECT 76 * + 64 * + 69 + 74
----
335690

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL - 2 * - 9 * + + 42 + - - 14 + - COUNT( + + 71 )
----
769

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL - 2 * - 9 * + + 42 + - - 14 + - COUNT ( + + 71 )
----
769

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT + MAX( - 76 ) * + 23 col2
----
-1748

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT + MAX ( - 76 ) * + 23 col2
----
-1748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT - CAST( + + 5 AS SIGNED ) * 21 + + + 32 * + 67 * + - 7 AS col1
----
-15113

skipif mysql # not compatible
query I rowsort label-5425
SELECT - CAST ( + + 5 AS INTEGER ) * 21 + + + 32 * + 67 * + - 7 AS col1
----
-15113

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

skipif mysql # not compatible
query I rowsort label-5426
SELECT - MAX ( ALL - 34 )
----
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT ALL ( ( + SUM( DISTINCT - - 37 ) ) ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL ( ( + SUM ( DISTINCT - - 37 ) ) ) AS col1
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5429
SELECT - 62 + 35 * CAST( NULL AS DECIMAL ) - 94 + - 63 * - 36 * - + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT - 62 + 35 * CAST ( NULL AS REAL ) - 94 + - 63 * - 36 * - + 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL NULLIF ( - - NULLIF ( - 57, 49 ), COUNT( * ) / 25 )
----
-57

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL NULLIF ( - - NULLIF ( - 57, 49 ), COUNT ( * ) / 25 )
----
-57

query I rowsort
SELECT - 38 + - - 9 col0
----
-29

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

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL COUNT ( * ) - + 0 + - - 88
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5433
SELECT DISTINCT - + 35 - 89 DIV ( + 26 )
----
-38

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT - + 35 - 89 / ( + 26 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5434
SELECT ALL - 44 * 14 * + COUNT( * ) * - 43 - CAST( - 78 AS SIGNED )
----
26566

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL - 44 * 14 * + COUNT ( * ) * - 43 - CAST ( - 78 AS INTEGER )
----
26566

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT - - 6 DIV + COALESCE ( - 34, - 20 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5435
SELECT - - 6 / + COALESCE ( - 34, - 20 ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-5436
SELECT + - 0 * - SUM ( DISTINCT + 50 ) * 5 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT - COUNT( * ) + - + 41 - + 91 * - COUNT( - 20 )
----
49

skipif mysql # not compatible
query I rowsort label-5437
SELECT - COUNT ( * ) + - + 41 - + 91 * - COUNT ( - 20 )
----
49

query I rowsort
SELECT ALL - - 55 * - 4 + + 72 + 70
----
-78

query II rowsort
SELECT - 60 + + - 4 AS col0, + 73 AS col1
----
-64
73

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5442
SELECT DISTINCT + 83 DIV + 42 - + - ( MIN( + + 50 ) ) + + + 49 + - 3
----
97

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT + 83 / + 42 - + - ( MIN ( + + 50 ) ) + + + 49 + - 3
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT - + 79 DIV + 38 + - 28
----
-30

skipif mysql # not compatible
query I rowsort label-5443
SELECT - + 79 / + 38 + - 28
----
-30

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5445
SELECT ( MAX( ALL + 24 ) ) * + 36 + + 89 * - 35 AS col0, - 93 AS col0
----
-2251
-93

skipif mysql # not compatible
query II rowsort label-5445
SELECT ( MAX ( ALL + 24 ) ) * + 36 + + 89 * - 35 AS col0, - 93 AS col0
----
-2251
-93

query I rowsort
SELECT ALL 63 + - 51
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT DISTINCT 75 * + - MIN( DISTINCT 62 )
----
-4650

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT 75 * + - MIN ( DISTINCT 62 )
----
-4650

query I rowsort
SELECT ALL 34 + - 3 AS col1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5449
SELECT + 55 AS col1, - CASE + 52 WHEN - 31 - - NULLIF ( + + ( CAST( NULL AS SIGNED ) ), 80 ) + + - 89 THEN NULL ELSE 67 END - + 45 col0
----
55
-112

skipif mysql # not compatible
query II rowsort label-5449
SELECT + 55 AS col1, - CASE + 52 WHEN - 31 - - NULLIF ( + + ( CAST ( NULL AS INTEGER ) ), 80 ) + + - 89 THEN NULL ELSE 67 END - + 45 col0
----
55
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5450
SELECT 71 * 5 DIV + + COUNT( * )
----
355

skipif mysql # not compatible
query I rowsort label-5450
SELECT 71 * 5 / + + COUNT ( * )
----
355

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL COUNT( * ) - - 10 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL COUNT ( * ) - - 10 AS col2
----
11

query II rowsort
SELECT + 19, - ( 39 ) AS col1
----
19
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5453
SELECT 32 * + + ( + 80 ) * CAST( NULL AS SIGNED ) * + - 38 * + 80 col0, + MIN( 6 ) col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-5453
SELECT 32 * + + ( + 80 ) * CAST ( NULL AS INTEGER ) * + - 38 * + 80 col0, + MIN ( 6 ) col1
----
NULL
6

query I rowsort
SELECT DISTINCT - 27 - + - 41 * 4 col1
----
137

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5455
SELECT ALL - NULLIF ( + 30, + - 42 ) * - COUNT( * ) * + 41 * + 42 + + - COUNT( * ) + - + 19 * 53 / + COUNT( * ) * - CAST( NULL AS DECIMAL ) + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - NULLIF ( + 30, + - 42 ) * - COUNT ( * ) * + 41 * + 42 + + - COUNT ( * ) + - + 19 * 53 / + COUNT ( * ) * - CAST ( NULL AS REAL ) + + 20
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT ALL 61 DIV COALESCE ( - 29, 49 + 16 ) DIV + - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL 61 / COALESCE ( - 29, 49 + 16 ) / + - 68 AS col0
----
0

query I rowsort
SELECT 32 * 52 AS col0
----
1664

query I rowsort
SELECT 38 + - - 24
----
62

query I rowsort
SELECT ALL - 9 * + + 75 AS col1
----
-675

onlyif mysql # aggregate syntax: 
query II rowsort label-5461
SELECT + COALESCE ( COALESCE ( 72, - 66 * - - COUNT( * ) + - 39 * - 41 * + NULLIF ( 82, + + 56 ) ), 85 + + + 88, - CASE ( + 34 ) WHEN + + ( 11 ) THEN NULL WHEN - 19 THEN - 4 * - ( 8 ) + ( - + MIN( - 31 ) ) + + 27 ELSE NULL END * + + 30 ) AS col0, MAX( 97 ) AS col2
----
72
97

skipif mysql # not compatible
query II rowsort label-5461
SELECT + COALESCE ( COALESCE ( 72, - 66 * - - COUNT ( * ) + - 39 * - 41 * + NULLIF ( 82, + + 56 ) ), 85 + + + 88, - CASE ( + 34 ) WHEN + + ( 11 ) THEN NULL WHEN - 19 THEN - 4 * - ( 8 ) + ( - + MIN ( - 31 ) ) + + 27 ELSE NULL END * + + 30 ) AS col0, MAX ( 97 ) AS col2
----
72
97

query I rowsort
SELECT ALL + 15 * 48 + - 38
----
682

query I rowsort
SELECT 64 * - 51
----
-3264

query I rowsort
SELECT - 78 * 75 AS col0
----
-5850

query I rowsort
SELECT ALL - 99 * 81
----
-8019

query I rowsort
SELECT - 36 + + ( - 60 ) * 51 - - - 58 col0
----
-3154

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

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

query II rowsort
SELECT - 11, 45 * - 48 AS col0
----
-11
-2160

query I rowsort
SELECT ALL + 63 + 4 + - 53 AS col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT + COALESCE ( + 1, 2 DIV + + 42 * 13 - + 9 ) * - 91 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-5470
SELECT + COALESCE ( + 1, 2 / + + 42 * 13 - + 9 ) * - 91 AS col1
----
-91

query I rowsort
SELECT 44 - + 79
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT 3 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-5472
SELECT 3 / - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL - COUNT( * ) + + COUNT( * ) + 14 * - MAX( + + 73 ) AS col2
----
-1022

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL - COUNT ( * ) + + COUNT ( * ) + 14 * - MAX ( + + 73 ) AS col2
----
-1022

query I rowsort
SELECT 90 - 86 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5475
SELECT 82 DIV + COALESCE ( + 42, + 61, + MAX( DISTINCT 16 ) * + 80 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5475
SELECT 82 / + COALESCE ( + 42, + 61, + MAX ( DISTINCT 16 ) * + 80 ) AS col2
----
1

query I rowsort
SELECT ALL - 56 + - ( + - 27 ) * - 31
----
-893

query II rowsort
SELECT 88 * - - 43, - 93 col1
----
3784
-93

query I rowsort
SELECT ALL + 12 * + 20 * + 43
----
10320

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

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

query I rowsort
SELECT 0 * 92 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5481
SELECT + 77 DIV - ( + 3 ) + + 89 col2, 27
----
64
27

skipif mysql # not compatible
query II rowsort label-5481
SELECT + 77 / - ( + 3 ) + + 89 col2, 27
----
64
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5482
SELECT - 90 * - 60 - + 6 + + - ( 14 ) + - + 36 DIV + 1 AS col2
----
5344

skipif mysql # not compatible
query I rowsort label-5482
SELECT - 90 * - 60 - + 6 + + - ( 14 ) + - + 36 / + 1 AS col2
----
5344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5483
SELECT 78 * - 63 DIV - + COUNT( * ) AS col0
----
4914

skipif mysql # not compatible
query I rowsort label-5483
SELECT 78 * - 63 / - + COUNT ( * ) AS col0
----
4914

query I rowsort
SELECT 87 * - ( + 7 )
----
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT COUNT( ALL - + 72 ) + - + 38
----
-37

skipif mysql # not compatible
query I rowsort label-5485
SELECT COUNT ( ALL - + 72 ) + - + 38
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT 13 * 18 * - 76 + - COUNT( * )
----
-17785

skipif mysql # not compatible
query I rowsort label-5486
SELECT 13 * 18 * - 76 + - COUNT ( * )
----
-17785

query I rowsort
SELECT ALL 74 * + ( - 54 )
----
-3996

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT - 39 * + 71 + + 73 + - ( ( - COUNT( * ) ) )
----
-2695

skipif mysql # not compatible
query I rowsort label-5488
SELECT - 39 * + 71 + + 73 + - ( ( - COUNT ( * ) ) )
----
-2695

query I rowsort
SELECT DISTINCT 9 * 59 * - 10
----
-5310

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5491
SELECT 22 DIV + ( 97 )
----
0

skipif mysql # not compatible
query I rowsort label-5491
SELECT 22 / + ( 97 )
----
0

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

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

query II rowsort
SELECT ALL - 67 + 74, 72 AS col2
----
7
72

query I rowsort
SELECT 79 - + 32
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT DISTINCT + 85 + - + 84 - + CAST( - 37 AS SIGNED ) * + COUNT( * ) * 97 * - COUNT( * ) * COUNT( * )
----
-3588

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT + 85 + - + 84 - + CAST ( - 37 AS INTEGER ) * + COUNT ( * ) * 97 * - COUNT ( * ) * COUNT ( * )
----
-3588

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

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

query I rowsort
SELECT - - 71 + - - 12 col0
----
83

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5499
SELECT DISTINCT NULLIF ( - 44, + 41 / + 3 + 70 + - COALESCE ( - 90, - 51, CASE - - 62 WHEN 52 THEN - - 38 - + + 22 - + 87 * - - CAST( 8 AS SIGNED ) - - 46 * + ( - 14 ) * + + 65 + + 0 + - + COUNT( 16 ) * + COUNT( * ) ELSE 60 END + - + 70 * 38 * - 76 ) * + 61 * 98 ) * + 47 * + COUNT( * ) * + 70 AS col0
----
-144760

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT NULLIF ( - 44, + 41 / + 3 + 70 + - COALESCE ( - 90, - 51, CASE - - 62 WHEN 52 THEN - - 38 - + + 22 - + 87 * - - CAST ( 8 AS INTEGER ) - - 46 * + ( - 14 ) * + + 65 + + 0 + - + COUNT ( 16 ) * + COUNT ( * ) ELSE 60 END + - + 70 * 38 * - 76 ) * + 61 * 98 ) * + 47 * + COUNT ( * ) * + 70 AS col0
----
-144760

query I rowsort
SELECT ALL + 91 + + + 63 + + - 93 col0
----
61

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

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

query II rowsort
SELECT 24 AS col1, + 73 * - - 94
----
24
6862

query II rowsort
SELECT DISTINCT + 49, 74 * + - 8 AS col0
----
49
-592

query I rowsort
SELECT - 16 * + 36 AS col0
----
-576

query I rowsort
SELECT DISTINCT + 35 * - 98
----
-3430

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT ALL + 54 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL + 54 / - 49
----
-1

query II rowsort
SELECT ALL + ( - 22 ) * 60, - ( + 62 ) + 87 AS col2
----
-1320
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT DISTINCT + COUNT( * ) * - 70 * 70 * + 94 AS col0
----
-460600

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT + COUNT ( * ) * - 70 * 70 * + 94 AS col0
----
-460600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5509
SELECT - 15 * + - MAX( ALL - 81 ), + 15 DIV + - ( - 44 ) AS col0
----
-1215
0

skipif mysql # not compatible
query II rowsort label-5509
SELECT - 15 * + - MAX ( ALL - 81 ), + 15 / + - ( - 44 ) AS col0
----
-1215
0

query II rowsort
SELECT ALL + 96, 27 col2
----
96
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + MAX( - ( - 26 ) )
----
26

skipif mysql # not compatible
query I rowsort label-5511
SELECT + MAX ( - ( - 26 ) )
----
26

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

query I rowsort
SELECT - 44 * - 21
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT NULLIF ( 80, + COUNT( * ) * + - 69 * + ( + - 27 ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5514
SELECT NULLIF ( 80, + COUNT ( * ) * + - 69 * + ( + - 27 ) ) AS col1
----
80

query I rowsort
SELECT - 20 * 15 * + ( + 74 )
----
-22200

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT - 79 * - 32 * - COUNT( * ) AS col1
----
-2528

skipif mysql # not compatible
query I rowsort label-5516
SELECT - 79 * - 32 * - COUNT ( * ) AS col1
----
-2528

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT + CASE 69 WHEN + 47 + + 79 + + 31 DIV - 32 THEN + + 36 + - + 16 WHEN - 49 THEN NULL ELSE 44 DIV + 68 END * - 32
----
0

skipif mysql # not compatible
query I rowsort label-5517
SELECT + CASE 69 WHEN + 47 + + 79 + + 31 / - 32 THEN + + 36 + - + 16 WHEN - 49 THEN NULL ELSE 44 / + 68 END * - 32
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT + + 44 * + + 24 + COUNT( * ) AS col2
----
1057

skipif mysql # not compatible
query I rowsort label-5519
SELECT + + 44 * + + 24 + COUNT ( * ) AS col2
----
1057

query I rowsort
SELECT + 49 + + 44 AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5521
SELECT + + CAST( NULL AS SIGNED ) * 4 - COALESCE ( + + 15, + 54, AVG ( DISTINCT + 71 ) - 16 + + COALESCE ( + 57, 87 ) ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5521
SELECT + + CAST ( NULL AS INTEGER ) * 4 - COALESCE ( + + 15, + 54, AVG ( DISTINCT + 71 ) - 16 + + COALESCE ( + 57, 87 ) ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 94, - 69 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT ALL + 55 + 56 * - COUNT( 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL + 55 + 56 * - COUNT ( 14 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5524
SELECT - + CASE + 86 WHEN - CAST( NULL AS SIGNED ) + + + 59 + - CAST( + 7 AS SIGNED ) * + 92 * ( + ( 93 ) ) * + 95 + AVG ( + 5 ) - COUNT( * ) THEN 27 WHEN + 69 THEN COUNT( - + 35 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5524
SELECT - + CASE + 86 WHEN - CAST ( NULL AS INTEGER ) + + + 59 + - CAST ( + 7 AS INTEGER ) * + 92 * ( + ( 93 ) ) * + 95 + AVG ( + 5 ) - COUNT ( * ) THEN 27 WHEN + 69 THEN COUNT ( - + 35 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5525
SELECT + 7, 4 * COUNT( * ) AS col0
----
7
4

skipif mysql # not compatible
query II rowsort label-5525
SELECT + 7, 4 * COUNT ( * ) AS col0
----
7
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL MAX( + 52 ) + - - 48 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL MAX ( + 52 ) + - - 48 AS col2
----
100

query I rowsort
SELECT + - 17 * 7 * - 70
----
8330

query I rowsort
SELECT DISTINCT 69 + + 54 * 6 AS col1
----
393

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5529
SELECT ALL ( - ( - 88 ) ), 9 - - 88 + 28 * - CAST( NULL AS SIGNED ) + + - 24 AS col0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-5529
SELECT ALL ( - ( - 88 ) ), 9 - - 88 + 28 * - CAST ( NULL AS INTEGER ) + + - 24 AS col0
----
88
NULL

query I rowsort
SELECT DISTINCT + 62 - + 23 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT ALL + COALESCE ( - 5, - 97 ) * + + COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL + COALESCE ( - 5, - 97 ) * + + COUNT ( * ) AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5532
SELECT - 53 AS col2, - CAST( CAST( + AVG ( DISTINCT + 83 ) AS DECIMAL ) AS SIGNED ) + 54
----
-53
-29

skipif mysql # not compatible
query II rowsort label-5532
SELECT - 53 AS col2, - CAST ( CAST ( + AVG ( DISTINCT + 83 ) AS REAL ) AS INTEGER ) + 54
----
-53
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5533
SELECT + CAST( - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) AS SIGNED ) * - COALESCE ( - 29, 67 ), - ( - 69 ) * + + 10 + 43 col0
----
NULL
733

skipif mysql # not compatible
query II rowsort label-5533
SELECT + CAST ( - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - COALESCE ( - 29, 67 ), - ( - 69 ) * + + 10 + 43 col0
----
NULL
733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5534
SELECT ALL NULLIF ( - - 33, - + 34 ) * + CASE + + 73 WHEN + 59 / 9 + ( 73 ) + - 11 * - 62 * 0 / - 17 * 75 * - + ( 79 ) * - - 60 THEN - 80 / - SUM( DISTINCT - 51 ) * + - 71 * 4 - + SUM( DISTINCT + - 99 ) + + 38 * - 94 / ( + - ( - 32 ) ) * + CASE + AVG ( DISTINCT + 24 ) WHEN - 54 THEN - 94 WHEN + COUNT( ALL + + 20 ) + 77 THEN + - 13 END WHEN CAST( - + ( - 3 ) AS SIGNED ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL NULLIF ( - - 33, - + 34 ) * + CASE + + 73 WHEN + 59 / 9 + ( 73 ) + - 11 * - 62 * 0 / - 17 * 75 * - + ( 79 ) * - - 60 THEN - 80 / - SUM ( DISTINCT - 51 ) * + - 71 * 4 - + SUM ( DISTINCT + - 99 ) + + 38 * - 94 / ( + - ( - 32 ) ) * + CASE + AVG ( DISTINCT + 24 ) WHEN - 54 THEN - 94 WHEN + COUNT ( ALL + + 20 ) + 77 THEN + - 13 END WHEN CAST ( - + ( - 3 ) AS INTEGER ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5535
SELECT + CAST( NULL AS DECIMAL ) - 51 + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT + CAST ( NULL AS REAL ) - 51 + + 62
----
NULL

query II rowsort
SELECT - ( + - 32 ), 66 AS col1
----
32
66

onlyif mysql # DIV for integer division: 
query II rowsort label-5537
SELECT 15 AS col2, + NULLIF ( + - 75, 64 + - + 58 ) DIV 6
----
15
-12

skipif mysql # not compatible
query II rowsort label-5537
SELECT 15 AS col2, + NULLIF ( + - 75, 64 + - + 58 ) / 6
----
15
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT ALL + COALESCE ( + 16, - 55 * - COUNT( * ) - 9 + - + 41 * - 92 + - 71 + 93 * 99, - COUNT( * ) * + 80 + - - 72 - - 13 * + ( - CAST( NULL AS SIGNED ) ) ) * + + 26 * - - 16 * - ( + 4 ) AS col2
----
-26624

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL + COALESCE ( + 16, - 55 * - COUNT ( * ) - 9 + - + 41 * - 92 + - 71 + 93 * 99, - COUNT ( * ) * + 80 + - - 72 - - 13 * + ( - CAST ( NULL AS INTEGER ) ) ) * + + 26 * - - 16 * - ( + 4 ) AS col2
----
-26624

query I rowsort
SELECT + CASE + 1 WHEN + 41 THEN 37 * + 84 ELSE 42 END - - 52 AS col0
----
94

query II rowsort
SELECT - 92 * + - 44 AS col1, 35 * + 53 + - - 9 AS col2
----
4048
1864

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

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

query I rowsort
SELECT DISTINCT 10 * - + 34 AS col0
----
-340

onlyif mysql # aggregate syntax: 
query II rowsort label-5543
SELECT ALL + 77 AS col1, 53 * - + COUNT( * )
----
77
-53

skipif mysql # not compatible
query II rowsort label-5543
SELECT ALL + 77 AS col1, 53 * - + COUNT ( * )
----
77
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5544
SELECT ALL + MAX( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL + MAX ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 55, 33 + - 64 AS col0
----
55
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-5546
SELECT DISTINCT + CASE + - ( - 68 ) WHEN + 3 THEN - 32 ELSE + + 43 END AS col1, 48 * + + 29 - - - 22 DIV 22 AS col0
----
43
1391

skipif mysql # not compatible
query II rowsort label-5546
SELECT DISTINCT + CASE + - ( - 68 ) WHEN + 3 THEN - 32 ELSE + + 43 END AS col1, 48 * + + 29 - - - 22 / 22 AS col0
----
43
1391

query I rowsort
SELECT - 33 - + - 36 + - 59 AS col0
----
-56

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT + 21 DIV + 84 * - 3 col1
----
0

skipif mysql # not compatible
query I rowsort label-5549
SELECT + 21 / + 84 * - 3 col1
----
0

query I rowsort
SELECT + 79 + - 35
----
44

query II rowsort
SELECT + 27 col1, 75
----
27
75

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5554
SELECT - CASE - MIN( DISTINCT - 74 ) WHEN + NULLIF ( + 30, + 71 ) + + - CAST( + 60 AS SIGNED ) / + + 5 THEN - 49 END * - ( - 27 ) / - 86 + - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5554
SELECT - CASE - MIN ( DISTINCT - 74 ) WHEN + NULLIF ( + 30, + 71 ) + + - CAST ( + 60 AS INTEGER ) / + + 5 THEN - 49 END * - ( - 27 ) / - 86 + - 33 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5555
SELECT ALL + ( 70 ) DIV + 80 + - 90 + + - 57
----
-147

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL + ( 70 ) / + 80 + - 90 + + - 57
----
-147

query I rowsort
SELECT DISTINCT + 89 * + + 81 + + 96
----
7305

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT DISTINCT 13 * + 92 + MIN( + 0 ) + 54 AS col1
----
1250

skipif mysql # not compatible
query I rowsort label-5557
SELECT DISTINCT 13 * + 92 + MIN ( + 0 ) + 54 AS col1
----
1250

query II rowsort
SELECT - 29 AS col1, + 33 + - 24 * + 96
----
-29
-2271

query II rowsort
SELECT ALL + 29 AS col0, 99
----
29
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT DISTINCT 71 * - - 86 + NULLIF ( - 55, 51 + - + COUNT( * ) * + - 50 * 11 ) + + 55 + - COUNT( * ) - + - 48 * + 36 + + - CASE - 19 WHEN 64 THEN + 36 * - - COALESCE ( 2, - - COUNT( * ) * + 11 ) - - 18 + - - 96 + - SUM( DISTINCT + 27 ) WHEN - 42 THEN - 46 * + - 31 END / + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT 71 * - - 86 + NULLIF ( - 55, 51 + - + COUNT ( * ) * + - 50 * 11 ) + + 55 + - COUNT ( * ) - + - 48 * + 36 + + - CASE - 19 WHEN 64 THEN + 36 * - - COALESCE ( 2, - - COUNT ( * ) * + 11 ) - - 18 + - - 96 + - SUM ( DISTINCT + 27 ) WHEN - 42 THEN - 46 * + - 31 END / + - 54
----
NULL

query II rowsort
SELECT - 38 + + - 61, + ( - - 97 ) col2
----
-99
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5562
SELECT + 2, CASE + + 54 WHEN - NULLIF ( + 88, - 44 * + 95 ) * 25 + - 33 + - 36 + NULLIF ( ( - + CAST( 80 AS SIGNED ) ), - + 14 ) + 20 * 41 THEN - NULLIF ( ( - 39 ), CAST( - 11 AS SIGNED ) ) * + 23 WHEN 50 / - 45 THEN - 43 END + + SUM( ALL - + 25 ) * + + 58 col0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-5562
SELECT + 2, CASE + + 54 WHEN - NULLIF ( + 88, - 44 * + 95 ) * 25 + - 33 + - 36 + NULLIF ( ( - + CAST ( 80 AS INTEGER ) ), - + 14 ) + 20 * 41 THEN - NULLIF ( ( - 39 ), CAST ( - 11 AS INTEGER ) ) * + 23 WHEN 50 / - 45 THEN - 43 END + + SUM ( ALL - + 25 ) * + + 58 col0
----
2
NULL

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

query I rowsort
SELECT ALL 58 * + 45 * - COALESCE ( + 72, + - 30 + 53 ) + - ( + 12 )
----
-187932

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT + SUM( ALL - + 51 ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-5565
SELECT + SUM ( ALL - + 51 ) col0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5566
SELECT + - 59 * + 52 + + + COUNT( * ) DIV - 33 + - COUNT( * )
----
-3069

skipif mysql # not compatible
query I rowsort label-5566
SELECT + - 59 * + 52 + + + COUNT ( * ) / - 33 + - COUNT ( * )
----
-3069

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5568
SELECT ALL - CAST( NULL AS SIGNED ) - - - COALESCE ( 97, + - 99 ) + + 1 * - + 86 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - CAST ( NULL AS INTEGER ) - - - COALESCE ( 97, + - 99 ) + + 1 * - + 86 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5569
SELECT - - 88, + COUNT( * ) * + 94 AS col2
----
88
94

skipif mysql # not compatible
query II rowsort label-5569
SELECT - - 88, + COUNT ( * ) * + 94 AS col2
----
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT ALL 66 - - SUM( ALL - 31 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL 66 - - SUM ( ALL - 31 ) AS col0
----
35

query II rowsort
SELECT - 36, + 63 AS col2
----
-36
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT CASE 60 WHEN + 36 * + - ( - + 18 ) + + + 80 * - - 56 + - 42 THEN NULL WHEN + + 88 THEN - + 42 ELSE + COUNT( 90 ) END - + - 98 + + MIN( - - 5 )
----
104

skipif mysql # not compatible
query I rowsort label-5572
SELECT CASE 60 WHEN + 36 * + - ( - + 18 ) + + + 80 * - - 56 + - 42 THEN NULL WHEN + + 88 THEN - + 42 ELSE + COUNT ( 90 ) END - + - 98 + + MIN ( - - 5 )
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT 67 + - 92 DIV + 11 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-5573
SELECT 67 + - 92 / + 11 AS col1
----
59

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

skipif mysql # not compatible
query I rowsort label-5574
SELECT + 63 + + 50 * 28 + - COUNT ( * ) AS col0
----
1462

query II rowsort
SELECT - - 26 AS col0, 12 col2
----
26
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5576
SELECT 78 AS col0, + COUNT( * ) * CAST( NULL AS SIGNED ) * 42 AS col2
----
78
NULL

skipif mysql # not compatible
query II rowsort label-5576
SELECT 78 AS col0, + COUNT ( * ) * CAST ( NULL AS INTEGER ) * 42 AS col2
----
78
NULL

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

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

query I rowsort
SELECT 44 + 82 AS col1
----
126

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

skipif mysql # not compatible
query I rowsort label-5579
SELECT CAST ( NULL AS INTEGER ) * - 44 AS col0
----
NULL

query I rowsort
SELECT CASE WHEN NOT ( NULL ) > 59 THEN NULL ELSE + + 17 END + + 80 + + 35 AS col0
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-5581
SELECT DISTINCT + 35 * + COUNT( * ) AS col1, NULLIF ( 79, + + 44 * + - MAX( + - 20 ) + - - 86 )
----
35
79

skipif mysql # not compatible
query II rowsort label-5581
SELECT DISTINCT + 35 * + COUNT ( * ) AS col1, NULLIF ( 79, + + 44 * + - MAX ( + - 20 ) + - - 86 )
----
35
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT 16 + - ( - NULLIF ( - NULLIF ( MIN( - 37 ), - 68 ), - 62 / + 41 * 98 + NULLIF ( COALESCE ( + 93, + 98 * 27 * 72 ), 99 ) + AVG ( + 94 ) / + + 58 * - - 67 ) ) + - + 29 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5582
SELECT 16 + - ( - NULLIF ( - NULLIF ( MIN ( - 37 ), - 68 ), - 62 / + 41 * 98 + NULLIF ( COALESCE ( + 93, + 98 * 27 * 72 ), 99 ) + AVG ( + 94 ) / + + 58 * - - 67 ) ) + - + 29 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT NULLIF ( + 67, MIN( - + 20 ) ) + SUM( - 72 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5583
SELECT NULLIF ( + 67, MIN ( - + 20 ) ) + SUM ( - 72 ) AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5584
SELECT ALL 98 DIV - - 75 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL 98 / - - 75 AS col0
----
1

query I rowsort
SELECT 41 + + 36 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT ALL ( - - CASE WHEN ( 57 > 29 ) THEN + ( - + 20 ) END ) + + + NULLIF ( + ( + NULLIF ( ( + + 58 ), + + 35 ) ), - COUNT( + ( - 46 ) ) / - 2 ) + - CAST( 71 AS SIGNED ) + - + 88 + - COALESCE ( - 57, - 25 ) * + - 21 * - 20 * - - 45 + 9
----
1077188

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL ( - - CASE WHEN ( 57 > 29 ) THEN + ( - + 20 ) END ) + + + NULLIF ( + ( + NULLIF ( ( + + 58 ), + + 35 ) ), - COUNT ( + ( - 46 ) ) / - 2 ) + - CAST ( 71 AS INTEGER ) + - + 88 + - COALESCE ( - 57, - 25 ) * + - 21 * - 20 * - - 45 + 9
----
1077188

query I rowsort
SELECT 31 * - - ( + + 40 ) * - - 95 + - 22
----
117778

query II rowsort
SELECT ALL + 91 + - 44 AS col1, 50
----
47
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL ( + COUNT( * ) ) + - 71 * - - 70 + + 81
----
-4888

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL ( + COUNT ( * ) ) + - 71 * - - 70 + + 81
----
-4888

query I rowsort
SELECT DISTINCT + 74 + - 10
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5591
SELECT ALL + - 11 + - COUNT( * ) + - 23 * CASE + - 38 WHEN + + 2 * - 36 / - + 14 + + - 21 - + 92 - - NULLIF ( + 30, COUNT( * ) * + 17 ) THEN + 46 ELSE + 86 * - AVG ( - + 72 ) * - CAST( NULL AS SIGNED ) * + 45 * - 82 + + 36 END + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL + - 11 + - COUNT ( * ) + - 23 * CASE + - 38 WHEN + + 2 * - 36 / - + 14 + + - 21 - + 92 - - NULLIF ( + 30, COUNT ( * ) * + 17 ) THEN + 46 ELSE + 86 * - AVG ( - + 72 ) * - CAST ( NULL AS INTEGER ) * + 45 * - 82 + + 36 END + 21 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT + 90 * - CAST( - 23 AS SIGNED ) + + + 79 + + - 88 * + 91
----
-5859

skipif mysql # not compatible
query I rowsort label-5593
SELECT + 90 * - CAST ( - 23 AS INTEGER ) + + + 79 + + - 88 * + 91
----
-5859

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

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

query I rowsort
SELECT ALL - + 19 - - 71 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT 34 * + COUNT( * ) * - 92 AS col2
----
-3128

skipif mysql # not compatible
query I rowsort label-5596
SELECT 34 * + COUNT ( * ) * - 92 AS col2
----
-3128

query I rowsort
SELECT + + 69 * - 22 - - 41 AS col2
----
-1477

query I rowsort
SELECT - 2 - + - ( + 38 ) AS col2
----
36

query I rowsort
SELECT + 11 * - + 99 + + - 75 * + 38 AS col0
----
-3939

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

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT - COALESCE ( + - COUNT ( * ), + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL - - CASE + - 52 WHEN 45 / + 12 THEN 51 WHEN + 11 THEN + - 60 * + 79 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT ALL ( - CAST( - ( 14 ) AS SIGNED ) )
----
14

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL ( - CAST ( - ( 14 ) AS INTEGER ) )
----
14

query I rowsort
SELECT - 69 + 55 + + 67 * - 61 AS col2
----
-4101

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT + 38 DIV + 81 * 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5604
SELECT + 38 / + 81 * 62 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5605
SELECT CAST( + SUM( ALL + + 22 ) AS SIGNED ) + + - 18
----
4

skipif mysql # not compatible
query I rowsort label-5605
SELECT CAST ( + SUM ( ALL + + 22 ) AS INTEGER ) + + - 18
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5606
SELECT ALL - + 51 DIV 82 * COALESCE ( 33, - + 11 + + + 56 + + 94 * - ( + CASE CASE COUNT( * ) WHEN - 2 - - CASE 4 WHEN 12 * - + 70 * + - 31 THEN + ( - 84 ) WHEN + - CAST( NULL AS SIGNED ) THEN + 4 ELSE + COUNT( * ) DIV - COUNT( * ) - - - COUNT( * ) + + + 39 * + CASE + 36 WHEN 95 THEN - CAST( NULL AS SIGNED ) END - - - ( + 10 ) END + - - 48 + - 72 * - + 95 - 80 THEN NULL WHEN + COUNT( * ) - + 20 THEN + - 24 ELSE NULL END WHEN 65 * - 83 THEN NULL WHEN - 28 * + 9 + 62 * 34 - - 11 * 63 THEN NULL ELSE 36 * - 16 + - COUNT( * ) END ) + - 97 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL - + 51 / 82 * COALESCE ( 33, - + 11 + + + 56 + + 94 * - ( + CASE CASE COUNT ( * ) WHEN - 2 - - CASE 4 WHEN 12 * - + 70 * + - 31 THEN + ( - 84 ) WHEN + - CAST ( NULL AS INTEGER ) THEN + 4 ELSE + COUNT ( * ) / - COUNT ( * ) - - - COUNT ( * ) + + + 39 * + CASE + 36 WHEN 95 THEN - CAST ( NULL AS INTEGER ) END - - - ( + 10 ) END + - - 48 + - 72 * - + 95 - 80 THEN NULL WHEN + COUNT ( * ) - + 20 THEN + - 24 ELSE NULL END WHEN 65 * - 83 THEN NULL WHEN - 28 * + 9 + 62 * 34 - - 11 * 63 THEN NULL ELSE 36 * - 16 + - COUNT ( * ) END ) + - 97 ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-5607
SELECT + 5 / - + 66
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5608
SELECT 72 DIV + 69 AS col2, + 61
----
1
61

skipif mysql # not compatible
query II rowsort label-5608
SELECT 72 / + 69 AS col2, + 61
----
1
61

query I rowsort
SELECT ALL 10 * - - 21
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT 26 * + 51 * SUM( DISTINCT + 56 ) * + CASE 59 WHEN + + 12 THEN NULL WHEN + + COUNT( * ) THEN + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT 26 * + 51 * SUM ( DISTINCT + 56 ) * + CASE 59 WHEN + + 12 THEN NULL WHEN + + COUNT ( * ) THEN + 54 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5611
SELECT DISTINCT - COUNT( * ) + - ( 59 ) + - - 28 DIV 46 DIV - + 15 * 97 + - COUNT( * ) + ( + 17 )
----
-44

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT - COUNT ( * ) + - ( 59 ) + - - 28 / 46 / - + 15 * 97 + - COUNT ( * ) + ( + 17 )
----
-44

query I rowsort
SELECT 15 * + + 61 AS col1
----
915

onlyif mysql # aggregate syntax: 
query II rowsort label-5613
SELECT 22 - + COUNT( * ) * 61 AS col1, 60 - 24
----
-39
36

skipif mysql # not compatible
query II rowsort label-5613
SELECT 22 - + COUNT ( * ) * 61 AS col1, 60 - 24
----
-39
36

query I rowsort
SELECT ALL 44 + + - 8
----
36

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5617
SELECT + MIN ( 92 )
----
92

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5619
SELECT ALL - 95, COUNT( * ) * + CASE - - 24 WHEN - 90 THEN - - COUNT( DISTINCT 32 ) WHEN 74 * - 22 THEN + + 54 WHEN + 45 THEN NULL ELSE NULL END AS col0
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-5619
SELECT ALL - 95, COUNT ( * ) * + CASE - - 24 WHEN - 90 THEN - - COUNT ( DISTINCT 32 ) WHEN 74 * - 22 THEN + + 54 WHEN + 45 THEN NULL ELSE NULL END AS col0
----
-95
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5620
SELECT MAX( DISTINCT - + 23 ) - COUNT( * ) col2, - CASE 4 WHEN - - 60 - - 22 + - 49 THEN NULL WHEN 43 + 98 THEN NULL WHEN - COUNT( * ) + + 28 + 1 / - + ( + - MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) ) * - 89 + + COUNT( * ) THEN 51 + + MIN( DISTINCT + 71 ) - MIN( - 19 ) WHEN + 9 THEN NULL ELSE NULL END AS col0
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-5620
SELECT MAX ( DISTINCT - + 23 ) - COUNT ( * ) col2, - CASE 4 WHEN - - 60 - - 22 + - 49 THEN NULL WHEN 43 + 98 THEN NULL WHEN - COUNT ( * ) + + 28 + 1 / - + ( + - MAX ( DISTINCT - CAST ( NULL AS REAL ) ) ) * - 89 + + COUNT ( * ) THEN 51 + + MIN ( DISTINCT + 71 ) - MIN ( - 19 ) WHEN + 9 THEN NULL ELSE NULL END AS col0
----
-24
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5621
SELECT - CASE ( + 98 ) WHEN + 78 THEN - + 85 WHEN + 86 THEN + COUNT( * ) * + CAST( + CAST( 25 AS SIGNED ) AS SIGNED ) END / + - 91 * COUNT( * ) + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5621
SELECT - CASE ( + 98 ) WHEN + 78 THEN - + 85 WHEN + 86 THEN + COUNT ( * ) * + CAST ( + CAST ( 25 AS INTEGER ) AS INTEGER ) END / + - 91 * COUNT ( * ) + + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT + - NULLIF ( + + COUNT( + 26 ), - 51 - 34 ) * 43 - 14
----
-57

skipif mysql # not compatible
query I rowsort label-5622
SELECT + - NULLIF ( + + COUNT ( + 26 ), - 51 - 34 ) * 43 - 14
----
-57

query II rowsort
SELECT ALL CASE - + 64 WHEN - 41 THEN + 61 ELSE NULL END * 39 - 29 - + + NULLIF ( - 33, + 39 / - 38 * - 70 ) AS col1, 18
----
NULL
18

query II rowsort
SELECT + + 15, 18 * - - 12 + + + 28 AS col1
----
15
244

onlyif mysql # DIV for integer division: 
query I rowsort label-5625
SELECT + 60 DIV + + 29
----
2

skipif mysql # not compatible
query I rowsort label-5625
SELECT + 60 / + + 29
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT DISTINCT - 93 * + + 93 + - + 32 * + ( + SUM( + 73 ) ) - - 65
----
-10920

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT - 93 * + + 93 + - + 32 * + ( + SUM ( + 73 ) ) - - 65
----
-10920

query II rowsort
SELECT + 48 col1, + 29
----
48
29

query I rowsort
SELECT + 0 + - 78 col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT + - 38 * - + NULLIF ( + MIN( DISTINCT + 95 ), + COUNT( * ) + NULLIF ( - 43, + - 55 + - 58 * COUNT( - 51 ) ) + ( 91 ) - - AVG ( + - 43 ) * + AVG ( ALL - 47 ) + 24 * 77 * - + 53 * + NULLIF ( - - 3, - 98 * 80 ) - - 76 * - 68 )
----
3610

skipif mysql # not compatible
query I rowsort label-5629
SELECT + - 38 * - + NULLIF ( + MIN ( DISTINCT + 95 ), + COUNT ( * ) + NULLIF ( - 43, + - 55 + - 58 * COUNT ( - 51 ) ) + ( 91 ) - - AVG ( + - 43 ) * + AVG ( ALL - 47 ) + 24 * 77 * - + 53 * + NULLIF ( - - 3, - 98 * 80 ) - - 76 * - 68 )
----
3610

query I rowsort
SELECT ALL + 33 * + 87
----
2871

query I rowsort
SELECT + CASE 70 WHEN - 60 THEN + ( 19 ) ELSE 7 END
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5632
SELECT + 62 + - + 54 + + COUNT( * ) * - NULLIF ( + 21, 87 ) AS col0, - ( + 46 )
----
-13
-46

skipif mysql # not compatible
query II rowsort label-5632
SELECT + 62 + - + 54 + + COUNT ( * ) * - NULLIF ( + 21, 87 ) AS col0, - ( + 46 )
----
-13
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-5633
SELECT + + COUNT( * ) AS col2, + COUNT( * ) + - 33 - + - 95
----
1
63

skipif mysql # not compatible
query II rowsort label-5633
SELECT + + COUNT ( * ) AS col2, + COUNT ( * ) + - 33 - + - 95
----
1
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT + SUM( ALL + 28 ) * 99 AS col2
----
2772

skipif mysql # not compatible
query I rowsort label-5634
SELECT + SUM ( ALL + 28 ) * 99 AS col2
----
2772

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5635
SELECT - CAST( NULL AS DECIMAL ) * 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT - CAST ( NULL AS REAL ) * 6 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5636
SELECT - 20 * CAST( + + COUNT( * ) AS SIGNED ) + - + 35 + + 34 + + 39 DIV + 89 - - 3 col0, - COUNT( * ) col1
----
-18
-1

skipif mysql # not compatible
query II rowsort label-5636
SELECT - 20 * CAST ( + + COUNT ( * ) AS INTEGER ) + - + 35 + + 34 + + 39 / + 89 - - 3 col0, - COUNT ( * ) col1
----
-18
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-5637
SELECT + 21 AS col0, + NULLIF ( + ( - 88 ), + 2 * - + 88 ), - 80 * COUNT( DISTINCT + 88 ) * - 8 col2
----
21
-88
640

skipif mysql # not compatible
query III rowsort label-5637
SELECT + 21 AS col0, + NULLIF ( + ( - 88 ), + 2 * - + 88 ), - 80 * COUNT ( DISTINCT + 88 ) * - 8 col2
----
21
-88
640

query I rowsort
SELECT - + 40 col1
----
-40

query II rowsort
SELECT ALL + 84, 85 * + 90 AS col2
----
84
7650

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

skipif mysql # not compatible
query I rowsort label-5640
SELECT + + 86 + 93 - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT DISTINCT 87 * + NULLIF ( - COUNT( * ), - 16 ) * - 85 * - 43
----
-317985

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT 87 * + NULLIF ( - COUNT ( * ), - 16 ) * - 85 * - 43
----
-317985

query I rowsort
SELECT ALL + NULLIF ( - 41, 83 ) + - 57 * 4 AS col0
----
-269

query I rowsort
SELECT ALL COALESCE ( + 31, 80 ) AS col1
----
31

query I rowsort
SELECT DISTINCT CASE WHEN + 0 NOT BETWEEN - ( - 43 ) AND + 17 * + 11 THEN + ( 17 ) WHEN NOT - 86 IS NULL THEN NULL END AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT - 34 + 13 + - COUNT( + + 47 )
----
-22

skipif mysql # not compatible
query I rowsort label-5645
SELECT - 34 + 13 + - COUNT ( + + 47 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT - ( + MAX( DISTINCT 5 ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5646
SELECT - ( + MAX ( DISTINCT 5 ) ) AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5647
SELECT - 10 + - CAST( - 20 AS SIGNED ) + + 59 + CAST( NULL AS SIGNED ) + + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5647
SELECT - 10 + - CAST ( - 20 AS INTEGER ) + + 59 + CAST ( NULL AS INTEGER ) + + 79 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT ALL - 18 + - - 82 + + 57 DIV + - 52
----
63

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL - 18 + - - 82 + + 57 / + - 52
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT - 98 + + - COUNT( 68 )
----
-99

skipif mysql # not compatible
query I rowsort label-5649
SELECT - 98 + + - COUNT ( 68 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT - COUNT( DISTINCT + + 43 ) + 48
----
47

skipif mysql # not compatible
query I rowsort label-5650
SELECT - COUNT ( DISTINCT + + 43 ) + 48
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5651
SELECT ALL + 19 + + COUNT( * ) DIV + 33 * + - 39 - + 47 DIV 45 col0
----
18

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL + 19 + + COUNT ( * ) / + 33 * + - 39 - + 47 / 45 col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5652
SELECT ALL 38 + - - 14 * + - 47 + + + ( + 95 ), - COALESCE ( COUNT( * ), + - CAST( COUNT( DISTINCT + - NULLIF ( - 51, - 92 + + 72 * 45 * - 58 ) ) AS SIGNED ) * - 51, 52 ) AS col2
----
-525
-1

skipif mysql # not compatible
query II rowsort label-5652
SELECT ALL 38 + - - 14 * + - 47 + + + ( + 95 ), - COALESCE ( COUNT ( * ), + - CAST ( COUNT ( DISTINCT + - NULLIF ( - 51, - 92 + + 72 * 45 * - 58 ) ) AS INTEGER ) * - 51, 52 ) AS col2
----
-525
-1

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

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

query I rowsort
SELECT DISTINCT - ( 48 ) - + + 19
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5655
SELECT ALL 36 DIV + 10 - + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL 36 / + 10 - + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT - 8 * - 98
----
784

onlyif mysql # DIV for integer division: 
query II rowsort label-5657
SELECT + 30 * + + 79 * + - ( + 79 ) + + 47 + + ( + 49 ) DIV - 60 + - 30 * + 91 * - - 17 + + 46 + - + ( - - 53 ) AS col2, + 97 + + 91 + - + 41 AS col1
----
-233600
147

skipif mysql # not compatible
query II rowsort label-5657
SELECT + 30 * + + 79 * + - ( + 79 ) + + 47 + + ( + 49 ) / - 60 + - 30 * + 91 * - - 17 + + 46 + - + ( - - 53 ) AS col2, + 97 + + 91 + - + 41 AS col1
----
-233600
147

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

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

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

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

query I rowsort
SELECT ALL - + 35 * + 33
----
-1155

query I rowsort
SELECT + CASE - 17 WHEN - 92 + 55 THEN 7 WHEN + - 15 THEN NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5664
SELECT - CAST( - 28 AS SIGNED ) * + - 1 col2
----
-28

skipif mysql # not compatible
query I rowsort label-5664
SELECT - CAST ( - 28 AS INTEGER ) * + - 1 col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT - 60 DIV 68 * 18 col0
----
0

skipif mysql # not compatible
query I rowsort label-5665
SELECT - 60 / 68 * 18 col0
----
0

query II rowsort
SELECT + + 26 * + 78 AS col1, 17 AS col0
----
2028
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT ALL - CASE WHEN ( NULL ) NOT IN ( + - 63, + 15, 11, + 74, + COUNT( * ), - MIN( ALL NULLIF ( + 60, + 30 * 61 - - 45 * + - 1 ) ) * + 56, - 18, - + 98 ) THEN 29 - + + 30 ELSE NULL END * + 86 + + 87 * 53 / + - 79 * 32 + + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL - CASE WHEN ( NULL ) NOT IN ( + - 63, + 15, 11, + 74, + COUNT ( * ), - MIN ( ALL NULLIF ( + 60, + 30 * 61 - - 45 * + - 1 ) ) * + 56, - 18, - + 98 ) THEN 29 - + + 30 ELSE NULL END * + 86 + + 87 * 53 / + - 79 * 32 + + - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL - SUM( DISTINCT COALESCE ( - - 71, + + 90 ) ) * + 78 + + 84 + + + 34
----
-5420

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL - SUM ( DISTINCT COALESCE ( - - 71, + + 90 ) ) * + 78 + + 84 + + + 34
----
-5420

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5669
SELECT + + COUNT( * ) DIV + 7 * ( - 94 ) * + + COUNT( * ) + - + COUNT( ALL + 25 ) col1, - 47 * 92 - + 9 AS col1
----
-1
-4333

skipif mysql # not compatible
query II rowsort label-5669
SELECT + + COUNT ( * ) / + 7 * ( - 94 ) * + + COUNT ( * ) + - + COUNT ( ALL + 25 ) col1, - 47 * 92 - + 9 AS col1
----
-1
-4333

onlyif mysql # aggregate syntax: 
query II rowsort label-5670
SELECT + + 82 - + - ( - + COUNT( * ) ) + + 73, COALESCE ( - 55, 66 - + 63 * COUNT( * ) ) * 99 + - + 66 + 81 + + + 61 * + + 36 AS col0
----
154
-3234

skipif mysql # not compatible
query II rowsort label-5670
SELECT + + 82 - + - ( - + COUNT ( * ) ) + + 73, COALESCE ( - 55, 66 - + 63 * COUNT ( * ) ) * 99 + - + 66 + 81 + + + 61 * + + 36 AS col0
----
154
-3234

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

query I rowsort
SELECT + 9 * + - 91 * + NULLIF ( ( - 25 ), - - 91 )
----
20475

query I rowsort
SELECT ALL - + 64 * - 72 + - 0
----
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT - CASE + 41 WHEN 54 THEN NULL WHEN - 93 THEN COALESCE ( 37, - 18 * + MIN( ALL 5 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT - CASE + 41 WHEN 54 THEN NULL WHEN - 93 THEN COALESCE ( 37, - 18 * + MIN ( ALL 5 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT + COUNT( * ) + ( - 72 ) + - + ( + 6 ) * + CASE + - MIN( DISTINCT + - 36 ) WHEN + 83 * + 87 THEN - 45 + + - 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5675
SELECT + COUNT ( * ) + ( - 72 ) + - + ( + 6 ) * + CASE + - MIN ( DISTINCT + - 36 ) WHEN + 83 * + 87 THEN - 45 + + - 20 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5676
SELECT DISTINCT - COUNT( * ) * 43 + + - ( CAST( - 60 AS SIGNED ) ) AS col2, - 4 AS col2
----
17
-4

skipif mysql # not compatible
query II rowsort label-5676
SELECT DISTINCT - COUNT ( * ) * 43 + + - ( CAST ( - 60 AS INTEGER ) ) AS col2, - 4 AS col2
----
17
-4

query I rowsort
SELECT + 4 * - - 77 AS col0
----
308

query I rowsort
SELECT - 10 + - 95 AS col1
----
-105

query II rowsort
SELECT - 1 col1, 81 * - + 32 * - 96 + ( + 79 ) + + + 84 * + 11 * + 52 col0
----
-1
296959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT - CAST( - NULLIF ( 63, - 29 - - 93 ) AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-5680
SELECT - CAST ( - NULLIF ( 63, - 29 - - 93 ) AS INTEGER )
----
63

query I rowsort
SELECT ALL + ( 90 ) * 24 * 84
----
181440

query I rowsort
SELECT + 74 * 2
----
148

query I rowsort
SELECT ALL - 87 + + 62 + + 27 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5684
SELECT ALL + 32 * + - NULLIF ( ( - COUNT( ALL - 38 ) ), - 69 ), NULLIF ( 47, 98 ) * 57 DIV - 68 col0
----
32
-39

skipif mysql # not compatible
query II rowsort label-5684
SELECT ALL + 32 * + - NULLIF ( ( - COUNT ( ALL - 38 ) ), - 69 ), NULLIF ( 47, 98 ) * 57 / - 68 col0
----
32
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5685
SELECT - COUNT( * ) * - - 54 * 59 DIV + - ( + - COUNT( * ) )
----
-3186

skipif mysql # not compatible
query I rowsort label-5685
SELECT - COUNT ( * ) * - - 54 * 59 / + - ( + - COUNT ( * ) )
----
-3186

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

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

query I rowsort
SELECT + 14 + ( + 40 ) col1
----
54

query I rowsort
SELECT ALL NULLIF ( 90, - 20 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5689
SELECT + COUNT( + 63 ) + 10 AS col0, 64 AS col2
----
11
64

skipif mysql # not compatible
query II rowsort label-5689
SELECT + COUNT ( + 63 ) + 10 AS col0, 64 AS col2
----
11
64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5691
SELECT ALL + 97 DIV - + 18
----
-5

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL + 97 / - + 18
----
-5

query I rowsort
SELECT + 55 + + + 89 - - + 70 AS col0
----
214

query I rowsort
SELECT DISTINCT - - 34 col0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5694
SELECT + 24 * - 1 + 87 + 69 DIV - 32 col1
----
61

skipif mysql # not compatible
query I rowsort label-5694
SELECT + 24 * - 1 + 87 + 69 / - 32 col1
----
61

query I rowsort
SELECT - 91 - - 86
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5696
SELECT + 31 * ( + 96 ) - - 23 + + 72 AS col1, - 99 * - MIN( - 45 ) / + NULLIF ( + + 48, + 99 ) + - 15 + CAST( NULL AS SIGNED ) * + + 22 - - 78 AS col2
----
3071
NULL

skipif mysql # not compatible
query II rowsort label-5696
SELECT + 31 * ( + 96 ) - - 23 + + 72 AS col1, - 99 * - MIN ( - 45 ) / + NULLIF ( + + 48, + 99 ) + - 15 + CAST ( NULL AS INTEGER ) * + + 22 - - 78 AS col2
----
3071
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5697
SELECT 57 + CAST( COUNT( * ) AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-5697
SELECT 57 + CAST ( COUNT ( * ) AS INTEGER )
----
58

query I rowsort
SELECT - 28 * - 69 - - 50 col1
----
1982

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5700
SELECT + CAST( - + 43 AS SIGNED ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-5700
SELECT + CAST ( - + 43 AS INTEGER ) AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5701
SELECT DISTINCT - ( - 24 ) + MAX( DISTINCT - - 67 ) + - AVG ( - + 51 ) * 42 + CAST( - COUNT( * ) AS DECIMAL ) * - CAST( NULL AS DECIMAL ) / + 67 * + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5701
SELECT DISTINCT - ( - 24 ) + MAX ( DISTINCT - - 67 ) + - AVG ( - + 51 ) * 42 + CAST ( - COUNT ( * ) AS REAL ) * - CAST ( NULL AS REAL ) / + 67 * + 14 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( 42, - 72 )
----
42

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

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

query I rowsort
SELECT ALL - - 45 + - - 75 AS col2
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5705
SELECT + ( 67 ) * + CAST( NULL AS SIGNED ) * - 0 + - MIN( DISTINCT + - 9 ) - + COUNT( * ) + - COUNT( * ) / - 78 + - - CAST( NULL AS SIGNED ) + - - 31 + ( COUNT( * ) ) - 73 + + 19 * - - 94 * - 34 / 99 / + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT + ( 67 ) * + CAST ( NULL AS INTEGER ) * - 0 + - MIN ( DISTINCT + - 9 ) - + COUNT ( * ) + - COUNT ( * ) / - 78 + - - CAST ( NULL AS INTEGER ) + - - 31 + ( COUNT ( * ) ) - 73 + + 19 * - - 94 * - 34 / 99 / + 55
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5706
SELECT + 67 col0, ( + COUNT( ALL - 24 ) ) * + NULLIF ( + + COUNT( * ), + 26 ) + + + COUNT( * ) - + 86 + COUNT( * ) + - 80 * + 2 * - - 92 + 78
----
67
-14725

skipif mysql # not compatible
query II rowsort label-5706
SELECT + 67 col0, ( + COUNT ( ALL - 24 ) ) * + NULLIF ( + + COUNT ( * ), + 26 ) + + + COUNT ( * ) - + 86 + COUNT ( * ) + - 80 * + 2 * - - 92 + 78
----
67
-14725

query I rowsort
SELECT ALL - - 53 + - 90 col1
----
-37

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5709
SELECT ALL + + COUNT( * ) DIV CAST( - - 49 AS SIGNED ) * ( + 60 ) * - - COUNT( * ) * 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL + + COUNT ( * ) / CAST ( - - 49 AS INTEGER ) * ( + 60 ) * - - COUNT ( * ) * 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT - 67 * - + ( - 65 ) + - + COUNT( * ) + + COUNT( * )
----
-4355

skipif mysql # not compatible
query I rowsort label-5710
SELECT - 67 * - + ( - 65 ) + - + COUNT ( * ) + + COUNT ( * )
----
-4355

onlyif mysql # DIV for integer division: 
query I rowsort label-5711
SELECT ( - + 4 ) DIV - 99 col1
----
0

skipif mysql # not compatible
query I rowsort label-5711
SELECT ( - + 4 ) / - 99 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL COUNT( DISTINCT + 73 ) + + + NULLIF ( + 0, + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL COUNT ( DISTINCT + 73 ) + + + NULLIF ( + 0, + 51 )
----
1

query I rowsort
SELECT COALESCE ( + 19, - + 39 + - 10 * - 81 ) * 58 AS col0
----
1102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 70 * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 70 * - 25
----
NULL

query I rowsort
SELECT 51 + + 98
----
149

query II rowsort
SELECT ALL 11 AS col1, 17 AS col0
----
11
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT DISTINCT CASE + MIN( ALL 24 ) WHEN 82 THEN 84 WHEN - + AVG ( - 47 ) THEN + 59 END - - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT CASE + MIN ( ALL 24 ) WHEN 82 THEN 84 WHEN - + AVG ( - 47 ) THEN + 59 END - - 84
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT 80 AS col0, COALESCE ( - CASE 90 WHEN - - SUM( + 69 ) THEN NULL ELSE + ( + 42 ) END, + COUNT( * ) + - 66 + - 2, 40 )
----
80
-42

skipif mysql # not compatible
query II rowsort label-5718
SELECT 80 AS col0, COALESCE ( - CASE 90 WHEN - - SUM ( + 69 ) THEN NULL ELSE + ( + 42 ) END, + COUNT ( * ) + - 66 + - 2, 40 )
----
80
-42

query II rowsort
SELECT 50 AS col0, 31
----
50
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5720
SELECT ( - CASE + 17 WHEN CASE + - CAST( - 11 AS SIGNED ) WHEN - 53 THEN + - NULLIF ( 6, - 55 + 61 * - 80 ) + - - 53 + 46 * - 13 / + - 36 WHEN - - 22 * 87 * + 68 THEN + 9 END * + 19 * - - CAST( NULL AS SIGNED ) THEN - 58 END ) + COALESCE ( - NULLIF ( - + 72, ( + 31 ) ), + 69 + - - 25 * 37 * - + 83 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT ( - CASE + 17 WHEN CASE + - CAST ( - 11 AS INTEGER ) WHEN - 53 THEN + - NULLIF ( 6, - 55 + 61 * - 80 ) + - - 53 + 46 * - 13 / + - 36 WHEN - - 22 * 87 * + 68 THEN + 9 END * + 19 * - - CAST ( NULL AS INTEGER ) THEN - 58 END ) + COALESCE ( - NULLIF ( - + 72, ( + 31 ) ), + 69 + - - 25 * 37 * - + 83 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5721
SELECT 76 + + 67 + CAST( 65 AS SIGNED ) + - 74 * + - 43 AS col2
----
3390

skipif mysql # not compatible
query I rowsort label-5721
SELECT 76 + + 67 + CAST ( 65 AS INTEGER ) + - 74 * + - 43 AS col2
----
3390

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

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

query I rowsort
SELECT 66 + + 38 + - + 1 + - 23 AS col1
----
80

query I rowsort
SELECT DISTINCT 27 * - + ( - 51 ) * - 50 * + + 42
----
-2891700

query I rowsort
SELECT 93 * + - 66 * - 53
----
325314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5726
SELECT COALESCE ( 57, 68 + + - CAST( - 36 AS SIGNED ) - MIN( ALL - 88 ) - 13 * SUM( DISTINCT 82 ) ) + - 90 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5726
SELECT COALESCE ( 57, 68 + + - CAST ( - 36 AS INTEGER ) - MIN ( ALL - 88 ) - 13 * SUM ( DISTINCT 82 ) ) + - 90 AS col1
----
-33

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5728
SELECT + 15 DIV + SUM( DISTINCT + 61 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5728
SELECT + 15 / + SUM ( DISTINCT + 61 ) col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5731
SELECT DISTINCT + - MAX( + 45 ) + - 84 + ( CAST( 64 AS SIGNED ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT + - MAX ( + 45 ) + - 84 + ( CAST ( 64 AS INTEGER ) ) AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5732
SELECT ALL - + ( + 89 ) + + ( - AVG ( ALL - - CASE + + ( - CAST( NULL AS SIGNED ) ) WHEN - 37 THEN + 42 END ) ) * - - ( + + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL - + ( + 89 ) + + ( - AVG ( ALL - - CASE + + ( - CAST ( NULL AS INTEGER ) ) WHEN - 37 THEN + 42 END ) ) * - - ( + + 8 )
----
NULL

query I rowsort
SELECT 41 * + 55
----
2255

query I rowsort
SELECT DISTINCT - - 50 + - + 15 - - + 24
----
59

query I rowsort
SELECT 74 - - 11 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT - 29 * - - 41 + - + 89 + ( + 75 ) + - 92 - - SUM( DISTINCT + - 48 )
----
-1343

skipif mysql # not compatible
query I rowsort label-5736
SELECT - 29 * - - 41 + - + 89 + ( + 75 ) + - 92 - - SUM ( DISTINCT + - 48 )
----
-1343

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5737
SELECT ALL + CAST( + 37 AS SIGNED ) * 76
----
2812

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL + CAST ( + 37 AS INTEGER ) * 76
----
2812

onlyif mysql # aggregate syntax: 
query II rowsort label-5738
SELECT ALL - COALESCE ( + 92, MAX( DISTINCT - 71 ) * + ( - 92 ) + + ( NULLIF ( + + ( 90 ), - 34 * 38 ) ) ) - - COUNT( * ) AS col1, - 45 AS col0
----
-91
-45

skipif mysql # not compatible
query II rowsort label-5738
SELECT ALL - COALESCE ( + 92, MAX ( DISTINCT - 71 ) * + ( - 92 ) + + ( NULLIF ( + + ( 90 ), - 34 * 38 ) ) ) - - COUNT ( * ) AS col1, - 45 AS col0
----
-91
-45

query II rowsort
SELECT DISTINCT + 77 * + 53 AS col2, + 11
----
4081
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5740
SELECT DISTINCT - 15 DIV - CASE + - 51 WHEN - 37 * 37 * - - 14 * - AVG ( + 15 ) - 39 + COUNT( * ) * + - 69 + + - 76 THEN NULL ELSE - 22 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5740
SELECT DISTINCT - 15 / - CASE + - 51 WHEN - 37 * 37 * - - 14 * - AVG ( + 15 ) - 39 + COUNT ( * ) * + - 69 + + - 76 THEN NULL ELSE - 22 END AS col1
----
0

query II rowsort
SELECT ALL 79 * - 70 AS col0, + 81 AS col0
----
-5530
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL COUNT( 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL COUNT ( 63 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5743
SELECT DISTINCT - 15 DIV - 71 * 32
----
0

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT - 15 / - 71 * 32
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5744
SELECT DISTINCT MAX( DISTINCT + 7 ) * 36 DIV COUNT( * ) + + + 71
----
323

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT MAX ( DISTINCT + 7 ) * 36 / COUNT ( * ) + + + 71
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT DISTINCT CASE + 64 WHEN + COUNT( * ) THEN + + 2 WHEN - 95 / COUNT( * ) + 33 / - 89 * - 15 - 53 + - 97 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT CASE + 64 WHEN + COUNT ( * ) THEN + + 2 WHEN - 95 / COUNT ( * ) + 33 / - 89 * - 15 - 53 + - 97 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 97 * + 95 AS col2
----
-9215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5747
SELECT + CAST( NULL AS SIGNED ) * 50 * - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5747
SELECT + CAST ( NULL AS INTEGER ) * 50 * - 1 AS col1
----
NULL

query II rowsort
SELECT - ( 23 ) col0, + 66
----
-23
66

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5751
SELECT NULLIF ( + + 58, - + CAST( NULL AS SIGNED ) * 4 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-5751
SELECT NULLIF ( + + 58, - + CAST ( NULL AS INTEGER ) * 4 ) AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5752
SELECT + COUNT( * ) - + 74 + + + 54 DIV ( + + 22 ) - - ( + 34 ) * - 11 + COUNT( * ) DIV 40
----
-445

skipif mysql # not compatible
query I rowsort label-5752
SELECT + COUNT ( * ) - + 74 + + + 54 / ( + + 22 ) - - ( + 34 ) * - 11 + COUNT ( * ) / 40
----
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT DISTINCT + 97 + 7 + + ( - COUNT( * ) ) AS col0
----
103

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT + 97 + 7 + + ( - COUNT ( * ) ) AS col0
----
103

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

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

query I rowsort
SELECT DISTINCT - 22 + 94 + + 44 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT ALL + 64 + COUNT( - - 37 ) + + + 82
----
147

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL + 64 + COUNT ( - - 37 ) + + + 82
----
147

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5758
SELECT + - MIN( ALL + - CAST( - 46 AS SIGNED ) ) * + 3 col1
----
-138

skipif mysql # not compatible
query I rowsort label-5758
SELECT + - MIN ( ALL + - CAST ( - 46 AS INTEGER ) ) * + 3 col1
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT ALL COUNT( * ) * - - 80 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL COUNT ( * ) * - - 80 AS col1
----
80

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

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

query I rowsort
SELECT - + 75 * 77 - - 52
----
-5723

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

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

query I rowsort
SELECT 29 * + - 34 * - + 79 + 4 + + 23
----
77921

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT + 42 * + ( + + ( - COUNT( * ) ) ) + - + 13 * + ( - + 44 ) + + + 10
----
540

skipif mysql # not compatible
query I rowsort label-5764
SELECT + 42 * + ( + + ( - COUNT ( * ) ) ) + - + 13 * + ( - + 44 ) + + + 10
----
540

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

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

query I rowsort
SELECT ALL + - 14 * + - 58 * + 42 - - 84
----
34188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5767
SELECT ALL 25 * - CAST( - COUNT( + 35 ) AS SIGNED ) + 54 * - - 34 + - 47 AS col1, + 38
----
1814
38

skipif mysql # not compatible
query II rowsort label-5767
SELECT ALL 25 * - CAST ( - COUNT ( + 35 ) AS INTEGER ) + 54 * - - 34 + - 47 AS col1, + 38
----
1814
38

query I rowsort
SELECT 73 * 60 * 45 + 56
----
197156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5769
SELECT ALL - 0 / + + 23 * + CAST( NULL AS SIGNED ), 4 * + 82 * - + COUNT( * ) + - COUNT( * ) * + COUNT( * ) AS col2
----
NULL
-329

skipif mysql # not compatible
query II rowsort label-5769
SELECT ALL - 0 / + + 23 * + CAST ( NULL AS INTEGER ), 4 * + 82 * - + COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) AS col2
----
NULL
-329

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

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

query II rowsort
SELECT ALL + 77 AS col2, - 47
----
77
-47

query I rowsort
SELECT ALL - NULLIF ( - 19, - 40 ) * 42 - 40 col0
----
758

onlyif mysql # aggregate syntax: 
query II rowsort label-5773
SELECT + 98 AS col2, - 33 + COUNT( * ) col2
----
98
-32

skipif mysql # not compatible
query II rowsort label-5773
SELECT + 98 AS col2, - 33 + COUNT ( * ) col2
----
98
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5774
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * + 0 - - - COUNT( 74 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * + 0 - - - COUNT ( 74 ) AS col1
----
-1

query I rowsort
SELECT COALESCE ( + COALESCE ( + 15, 87, 84 ), - 9 ) AS col0
----
15

query I rowsort
SELECT + 15 + 24 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5777
SELECT - 80 + + 28 DIV + + 92
----
-80

skipif mysql # not compatible
query I rowsort label-5777
SELECT - 80 + + 28 / + + 92
----
-80

query I rowsort
SELECT + 92 * 10 * - 78 AS col2
----
-71760

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

skipif mysql # not compatible
query I rowsort label-5779
SELECT NULLIF ( COUNT ( * ), + 65 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT + 2 * - + 86 + COUNT( + 26 ) * - + ( + 54 ) col0
----
-226

skipif mysql # not compatible
query I rowsort label-5780
SELECT + 2 * - + 86 + COUNT ( + 26 ) * - + ( + 54 ) col0
----
-226

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

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

query I rowsort
SELECT + 64 * - 75 + + ( - 26 )
----
-4826

query I rowsort
SELECT DISTINCT + COALESCE ( 58, + 61 * + 30 + - 8, 64 + + 9 * 11 ) AS col2
----
58

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

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

query I rowsort
SELECT ALL - 29 * - - 94 * 19
----
-51794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5786
SELECT ALL CAST( - - ( - 25 ) AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL CAST ( - - ( - 25 ) AS INTEGER ) AS col1
----
-25

query I rowsort
SELECT - 14 * 24
----
-336

query I rowsort
SELECT ALL 25 + - 38 + + ( - - 68 ) col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT - COUNT( * ) + + 34 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5789
SELECT - COUNT ( * ) + + 34 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL + COUNT( * ) + - + CASE + - 29 WHEN 81 THEN NULL WHEN - 34 * - - 53 / + - 78 - + 13 THEN 34 ELSE + + 36 + 90 END AS col2
----
-125

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL + COUNT ( * ) + - + CASE + - 29 WHEN 81 THEN NULL WHEN - 34 * - - 53 / + - 78 - + 13 THEN 34 ELSE + + 36 + 90 END AS col2
----
-125

query I rowsort
SELECT - 7 + + - 72
----
-79

query I rowsort
SELECT + 58 + COALESCE ( 26, 63 ) + 79
----
163

query I rowsort
SELECT ALL - 29 + - 81
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT - - COUNT( 48 )
----
1

skipif mysql # not compatible
query I rowsort label-5794
SELECT - - COUNT ( 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT + MIN( 48 ) + + + 78 + NULLIF ( + + 5, - COUNT( * ) )
----
131

skipif mysql # not compatible
query I rowsort label-5795
SELECT + MIN ( 48 ) + + + 78 + NULLIF ( + + 5, - COUNT ( * ) )
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5796
SELECT - - 48 + + 12 + + MIN( DISTINCT - CAST( - + 7 AS SIGNED ) ) + + COUNT( * ) + 18 * - COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5796
SELECT - - 48 + + 12 + + MIN ( DISTINCT - CAST ( - + 7 AS INTEGER ) ) + + COUNT ( * ) + 18 * - COUNT ( * ) AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5797
SELECT ALL + CAST( 92 AS SIGNED ) DIV COUNT( * )
----
92

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

query I rowsort
SELECT ALL + ( + 47 ) * - 97
----
-4559

query I rowsort
SELECT + - 99 * + 75 AS col1
----
-7425

query I rowsort
SELECT DISTINCT + 35 * - 50 + - 57 AS col1
----
-1807

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL 34 * MIN( - 44 ) * - + 76 AS col0
----
113696

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL 34 * MIN ( - 44 ) * - + 76 AS col0
----
113696

query I rowsort
SELECT + 74 + 41 + + 33 col1
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5804
SELECT + 19, - CASE 43 WHEN + 90 * - - 7 * - CAST( - COUNT( * ) AS SIGNED ) + - - COALESCE ( + COUNT( * ), - COUNT( * ), 70 * 99 ) THEN - 58 * 11 WHEN 42 * + + 23 + 84 - - AVG ( 49 ) THEN 2 ELSE NULL END col0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-5804
SELECT + 19, - CASE 43 WHEN + 90 * - - 7 * - CAST ( - COUNT ( * ) AS INTEGER ) + - - COALESCE ( + COUNT ( * ), - COUNT ( * ), 70 * 99 ) THEN - 58 * 11 WHEN 42 * + + 23 + 84 - - AVG ( 49 ) THEN 2 ELSE NULL END col0
----
19
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5805
SELECT + + 72 * ( + CAST( - 9 AS SIGNED ) )
----
-648

skipif mysql # not compatible
query I rowsort label-5805
SELECT + + 72 * ( + CAST ( - 9 AS INTEGER ) )
----
-648

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5808
SELECT ALL - COUNT( * ) DIV - 31 - - 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL - COUNT ( * ) / - 31 - - 30 AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5809
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 75 * + 97 + COUNT( * ) * 96 / + + ( CAST( NULL AS SIGNED ) ) + MAX( ALL ( + 86 ) ) + + 74 AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5809
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 75 * + 97 + COUNT ( * ) * 96 / + + ( CAST ( NULL AS INTEGER ) ) + MAX ( ALL ( + 86 ) ) + + 74 AS col0, COUNT ( * )
----
NULL
1

query I rowsort
SELECT + 28 * - 46 AS col1
----
-1288

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

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

query I rowsort
SELECT + 98 - - 69
----
167

query II rowsort
SELECT + 74 + - 22, 19 col2
----
52
19

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5815
SELECT DISTINCT 3 * + COUNT( * ) AS col2, + ( 20 ) + ( 70 ) - + + 71 DIV - 70 - + + 34 + COALESCE ( 98, + 67 ) * + 80 * 47 * 59
----
3
21740377

skipif mysql # not compatible
query II rowsort label-5815
SELECT DISTINCT 3 * + COUNT ( * ) AS col2, + ( 20 ) + ( 70 ) - + + 71 / - 70 - + + 34 + COALESCE ( 98, + 67 ) * + 80 * 47 * 59
----
3
21740377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5816
SELECT 69 - + NULLIF ( - + NULLIF ( - + 73, + CAST( NULL AS SIGNED ) / - + 29 + + COUNT( * ) * + + 44 + + 59 * 61 - 29 ), + + ( - 66 ) * + 73 ) + + 50 * COUNT( * ) + + 90 + 99 + - COUNT( * ) * + + 70 * 42
----
-2705

skipif mysql # not compatible
query I rowsort label-5816
SELECT 69 - + NULLIF ( - + NULLIF ( - + 73, + CAST ( NULL AS INTEGER ) / - + 29 + + COUNT ( * ) * + + 44 + + 59 * 61 - 29 ), + + ( - 66 ) * + 73 ) + + 50 * COUNT ( * ) + + 90 + 99 + - COUNT ( * ) * + + 70 * 42
----
-2705

query I rowsort
SELECT 76 * - NULLIF ( - 20, + 52 * - 3 + 26 + 53 ) AS col0
----
1520

query I rowsort
SELECT DISTINCT - 97 + - - 96 + + - 96 * - + 27 - 33
----
2558

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT 85 DIV 76
----
1

skipif mysql # not compatible
query I rowsort label-5819
SELECT 85 / 76
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5820
SELECT 59 + + + ( + + 3 ) + - COUNT( * ) DIV + 22 + + - 21 - + - COALESCE ( - 4, SUM( - 77 ) DIV 72 )
----
37

skipif mysql # not compatible
query I rowsort label-5820
SELECT 59 + + + ( + + 3 ) + - COUNT ( * ) / + 22 + + - 21 - + - COALESCE ( - 4, SUM ( - 77 ) / 72 )
----
37

query I rowsort
SELECT 1 * 97
----
97

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

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

query I rowsort
SELECT - - 78 col1
----
78

query I rowsort
SELECT DISTINCT 73 + - 2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5825
SELECT ALL 78 + - 22 DIV - COUNT( * ) col1
----
100

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL 78 + - 22 / - COUNT ( * ) col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT DISTINCT - + COALESCE ( + MAX( ALL - 16 ), + 81 ) + + COUNT( ALL - - 32 )
----
17

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT - + COALESCE ( + MAX ( ALL - 16 ), + 81 ) + + COUNT ( ALL - - 32 )
----
17

query I rowsort
SELECT ALL + + 73 + + 17 col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT - COUNT( * ) * COUNT( ALL CASE + - 90 WHEN + - 75 THEN + ( + - 63 ) END ) + - 63
----
-63

skipif mysql # not compatible
query I rowsort label-5828
SELECT - COUNT ( * ) * COUNT ( ALL CASE + - 90 WHEN + - 75 THEN + ( + - 63 ) END ) + - 63
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5829
SELECT DISTINCT + 6 * - + CAST( - - 11 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT + 6 * - + CAST ( - - 11 AS INTEGER )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5830
SELECT - 75 + 12 * - COALESCE ( + + 57, + 23 + + MIN( + + CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) + CAST( - COUNT( 48 ) AS SIGNED ) * + 89 * - NULLIF ( - COUNT( * ), 45 ) )
----
-759

skipif mysql # not compatible
query I rowsort label-5830
SELECT - 75 + 12 * - COALESCE ( + + 57, + 23 + + MIN ( + + CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) + CAST ( - COUNT ( 48 ) AS INTEGER ) * + 89 * - NULLIF ( - COUNT ( * ), 45 ) )
----
-759

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT + 58 / + - 76 + + 83 + - 61 + + 37 + + 86 + - 55 * + 38 * - - COUNT( * ) * - 37 / - CASE 47 WHEN 37 * + NULLIF ( - AVG ( + 97 ), 13 / + + COUNT( 24 ) * + COUNT( DISTINCT ( 75 ) ) * + - 16 - 2 + 98 + - + 86 ) + + 72 THEN ( 3 ) END * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT + 58 / + - 76 + + 83 + - 61 + + 37 + + 86 + - 55 * + 38 * - - COUNT ( * ) * - 37 / - CASE 47 WHEN 37 * + NULLIF ( - AVG ( + 97 ), 13 / + + COUNT ( 24 ) * + COUNT ( DISTINCT ( 75 ) ) * + - 16 - 2 + 98 + - + 86 ) + + 72 THEN ( 3 ) END * 10
----
NULL

query I rowsort
SELECT + 97 * + 78 AS col0
----
7566

query I rowsort
SELECT 26 + - 66
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-5835
SELECT SUM( ALL - 26 ), COUNT( * ) AS col0
----
-26
1

skipif mysql # not compatible
query II rowsort label-5835
SELECT SUM ( ALL - 26 ), COUNT ( * ) AS col0
----
-26
1

query I rowsort
SELECT + ( - 65 ) * + 10 AS col0
----
-650

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5837
SELECT ALL + ( - - 85 ) * + CAST( 50 AS SIGNED ), 90 * - - 92 - - + 31 AS col0
----
4250
8311

skipif mysql # not compatible
query II rowsort label-5837
SELECT ALL + ( - - 85 ) * + CAST ( 50 AS INTEGER ), 90 * - - 92 - - + 31 AS col0
----
4250
8311

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ( - 9 ) + COUNT( * ) * + + 79 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-5838
SELECT ( - 9 ) + COUNT ( * ) * + + 79 AS col2
----
70

query I rowsort
SELECT 95 + 7 AS col1
----
102

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

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL - - MIN ( 98 )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5841
SELECT 26 DIV - - COALESCE ( 92, - + 10 + + ( + - 91 ) ) + + 64 - + 45 * + - 27 AS col0, COUNT( * ) col1
----
1279
1

skipif mysql # not compatible
query II rowsort label-5841
SELECT 26 / - - COALESCE ( 92, - + 10 + + ( + - 91 ) ) + + 64 - + 45 * + - 27 AS col0, COUNT ( * ) col1
----
1279
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5842
SELECT ALL + + 89 * - CAST( NULL AS SIGNED ) * + COUNT( * ) - - + 69 + - 77 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL + + 89 * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) - - + 69 + - 77 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT 10 * 61 + CASE 16 WHEN 14 + + + 73 + - + ( - + CASE - + 74 WHEN - COUNT( - 1 ) * + + 91 * - 95 + + - 83 THEN NULL WHEN + NULLIF ( 47, 1 * + 75 / 68 + - 97 + - 46 + COUNT( * ) * + 69 + - 59 / + 33 / ( ( - 12 ) ) + 88 / + - 14 ) * + 48 THEN + + 25 END ) * 51 THEN + - COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT 10 * 61 + CASE 16 WHEN 14 + + + 73 + - + ( - + CASE - + 74 WHEN - COUNT ( - 1 ) * + + 91 * - 95 + + - 83 THEN NULL WHEN + NULLIF ( 47, 1 * + 75 / 68 + - 97 + - 46 + COUNT ( * ) * + 69 + - 59 / + 33 / ( ( - 12 ) ) + 88 / + - 14 ) * + 48 THEN + + 25 END ) * 51 THEN + - COUNT ( * ) END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5845
SELECT - COUNT( * ) DIV - 25 + 54 AS col1, 81 * 80 AS col1
----
54
6480

skipif mysql # not compatible
query II rowsort label-5845
SELECT - COUNT ( * ) / - 25 + 54 AS col1, 81 * 80 AS col1
----
54
6480

query I rowsort
SELECT + 51 * 30 + - 82
----
1448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5847
SELECT 71 col0, 82 - + - 50 + CAST( - 50 AS SIGNED ) * - 54 * - + 22 AS col0
----
71
-59268

skipif mysql # not compatible
query II rowsort label-5847
SELECT 71 col0, 82 - + - 50 + CAST ( - 50 AS INTEGER ) * - 54 * - + 22 AS col0
----
71
-59268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5848
SELECT COALESCE ( 23, + 68 - + 59, + 68 * + - 6 * - ( - + 87 ) ) / + + 5 + CASE 2 WHEN - 48 THEN - + COUNT( * ) WHEN - AVG ( DISTINCT - + 57 ) THEN NULL ELSE NULL END, + 63 * + SUM( DISTINCT + CASE 59 WHEN - - 91 THEN 30 WHEN - ( + 82 ) THEN NULL END ) * + 18 + - CAST( NULL AS SIGNED ) + - 50 * + NULLIF ( - 52, + 4 * - COUNT( * ) * - COUNT( * ) + + CASE 90 WHEN - 92 THEN NULL WHEN + ( 26 ) / 90 * 96 + + ( - CAST( NULL AS SIGNED ) ) THEN - 5 / + 6 * 22 ELSE NULL END + - 47 + + COUNT( * ) / - 80 / MAX( ALL + 62 ) + + 76 + - 80 * - 4 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5848
SELECT COALESCE ( 23, + 68 - + 59, + 68 * + - 6 * - ( - + 87 ) ) / + + 5 + CASE 2 WHEN - 48 THEN - + COUNT ( * ) WHEN - AVG ( DISTINCT - + 57 ) THEN NULL ELSE NULL END, + 63 * + SUM ( DISTINCT + CASE 59 WHEN - - 91 THEN 30 WHEN - ( + 82 ) THEN NULL END ) * + 18 + - CAST ( NULL AS INTEGER ) + - 50 * + NULLIF ( - 52, + 4 * - COUNT ( * ) * - COUNT ( * ) + + CASE 90 WHEN - 92 THEN NULL WHEN + ( 26 ) / 90 * 96 + + ( - CAST ( NULL AS INTEGER ) ) THEN - 5 / + 6 * 22 ELSE NULL END + - 47 + + COUNT ( * ) / - 80 / MAX ( ALL + 62 ) + + 76 + - 80 * - 4 )
----
NULL
NULL

query I rowsort
SELECT 89 + + 1
----
90

query I rowsort
SELECT DISTINCT - CASE + - 61 WHEN - 38 THEN NULL ELSE + + 17 END col1
----
-17

query II rowsort
SELECT ALL - 31 AS col2, + 40 - + 78 AS col2
----
-31
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5852
SELECT ALL 15 + + 47 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL 15 + + 47 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5853
SELECT + 94 * 46 + 77 DIV - + 71
----
4323

skipif mysql # not compatible
query I rowsort label-5853
SELECT + 94 * 46 + 77 / - + 71
----
4323

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-5857
SELECT 67 AS col0, + 9 * + 21, 59 DIV + - 83 AS col1
----
67
189
0

skipif mysql # not compatible
query III rowsort label-5857
SELECT 67 AS col0, + 9 * + 21, 59 / + - 83 AS col1
----
67
189
0

query I rowsort
SELECT DISTINCT 19 + + ( - 79 ) col1
----
-60

query I rowsort
SELECT DISTINCT 78 + - 99
----
-21

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

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

query I rowsort
SELECT ALL 54 + + 29
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5862
SELECT CAST( NULL AS SIGNED ) + - MAX( + 11 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5862
SELECT CAST ( NULL AS INTEGER ) + - MAX ( + 11 ) col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 65 - + 92 AS col0
----
-27

query I rowsort
SELECT 29 * - 62
----
-1798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5866
SELECT 35 + - COALESCE ( - 26, - COUNT( * ), - 76 * CAST( NULL AS SIGNED ), 2 ) * 2 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5866
SELECT 35 + - COALESCE ( - 26, - COUNT ( * ), - 76 * CAST ( NULL AS INTEGER ), 2 ) * 2 AS col0
----
87

query I rowsort
SELECT ALL 0 - - 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT 45 + 62 * COALESCE ( + COUNT( * ) + - 13 * 36, - COUNT( * ) - - 54 ) AS col0
----
-28909

skipif mysql # not compatible
query I rowsort label-5868
SELECT 45 + 62 * COALESCE ( + COUNT ( * ) + - 13 * 36, - COUNT ( * ) - - 54 ) AS col0
----
-28909

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT COALESCE ( COUNT( 62 ), 66 * - 25 ) * 92 col0
----
92

skipif mysql # not compatible
query I rowsort label-5869
SELECT COALESCE ( COUNT ( 62 ), 66 * - 25 ) * 92 col0
----
92

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

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

query I rowsort
SELECT - NULLIF ( 84, 46 * 64 - 33 )
----
-84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT ALL NULLIF ( - COUNT( * ), 74 + + COUNT( * ) / 15 ) * 47 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL NULLIF ( - COUNT ( * ), 74 + + COUNT ( * ) / 15 ) * 47 AS col1
----
-47

query I rowsort
SELECT DISTINCT ( 47 ) * ( 57 ) AS col1
----
2679

query I rowsort
SELECT 54 * + 10
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT - MIN( ALL - ( + 61 ) ) * 70
----
4270

skipif mysql # not compatible
query I rowsort label-5876
SELECT - MIN ( ALL - ( + 61 ) ) * 70
----
4270

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5877
SELECT - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5877
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * - 40 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5878
SELECT - CAST( 11 AS SIGNED ) DIV + COUNT( * )
----
-11

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

query I rowsort
SELECT DISTINCT NULLIF ( 83, - 78 ) * + 33 + ( 93 ) AS col1
----
2832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5880
SELECT DISTINCT + ( 86 ) * - 88 + 8 DIV ( COUNT( * ) ) AS col2
----
-7560

skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT + ( 86 ) * - 88 + 8 / ( COUNT ( * ) ) AS col2
----
-7560

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

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

query I rowsort
SELECT - 21 * 13 AS col1
----
-273

query I rowsort
SELECT ALL 34 * + 94 + ( 17 )
----
3213

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT ALL MAX( ALL + 15 ) * ( 82 + - COUNT( * ) * 23 ) + - 17
----
868

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL MAX ( ALL + 15 ) * ( 82 + - COUNT ( * ) * 23 ) + - 17
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT - COUNT( * ) * + ( 16 * - CASE 38 * - ( + NULLIF ( + 58, COUNT( * ) / + 59 ) ) WHEN - 72 THEN 97 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5885
SELECT - COUNT ( * ) * + ( 16 * - CASE 38 * - ( + NULLIF ( + 58, COUNT ( * ) / + 59 ) ) WHEN - 72 THEN 97 END )
----
NULL

query I rowsort
SELECT - 85 + 18
----
-67

query I rowsort
SELECT + 91 * + 88
----
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT 71 * COUNT( DISTINCT + 9 * - 3 ) + - CASE 25 WHEN 23 * 23 + - COUNT( * ) THEN NULL ELSE + COALESCE ( 57, COUNT( * ) ) + + 55 END
----
-41

skipif mysql # not compatible
query I rowsort label-5888
SELECT 71 * COUNT ( DISTINCT + 9 * - 3 ) + - CASE 25 WHEN 23 * 23 + - COUNT ( * ) THEN NULL ELSE + COALESCE ( 57, COUNT ( * ) ) + + 55 END
----
-41

query I rowsort
SELECT DISTINCT 20 * - ( - 98 ) + 65 * + 62 AS col1
----
5990

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT COALESCE ( - 38, + COUNT( * ) + - 50 ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-5891
SELECT COALESCE ( - 38, + COUNT ( * ) + - 50 ) col0
----
-38

query I rowsort
SELECT - 14 * - 90 + 99 * 76 AS col0
----
8784

query I rowsort
SELECT DISTINCT + 89 * + 88
----
7832

query I rowsort
SELECT DISTINCT 57 * + 77 - - 89
----
4478

query I rowsort
SELECT ALL + ( 15 ) col1
----
15

query I rowsort
SELECT + 7 + 3
----
10

query I rowsort
SELECT ALL - 17 * CASE 87 WHEN + COALESCE ( - 6, 27 - + 93 ) - + 13 * 44 THEN - 0 ELSE 10 END
----
-170

query I rowsort
SELECT + - 11 * 23 AS col1
----
-253

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT + 13 DIV + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5899
SELECT + 13 / + 25 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT COUNT( ALL 20 ) * + SUM( DISTINCT + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT COUNT ( ALL 20 ) * + SUM ( DISTINCT + 63 )
----
63

query I rowsort
SELECT ALL 96 - 79
----
17

query I rowsort
SELECT ALL - 56 * 98 AS col2
----
-5488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5903
SELECT + CAST( + 22 AS SIGNED ) - 8 * ( 3 * ( + 28 * + 61 ) ) col1
----
-40970

skipif mysql # not compatible
query I rowsort label-5903
SELECT + CAST ( + 22 AS INTEGER ) - 8 * ( 3 * ( + 28 * + 61 ) ) col1
----
-40970

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT DISTINCT - COUNT( * ) * - 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT - COUNT ( * ) * - 15 AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5905
SELECT + 97 DIV COALESCE ( 51 + + COALESCE ( - 29 + + ( + 94 ) * 1, - 62 ), 59 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5905
SELECT + 97 / COALESCE ( 51 + + COALESCE ( - 29 + + ( + 94 ) * 1, - 62 ), 59 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT ALL CASE COUNT( * ) WHEN NULLIF ( - 51, 58 ) THEN 50 + + ( 14 + 83 * 96 ) WHEN + 86 THEN NULL ELSE 76 * 50 END * - 55 AS col0
----
-209000

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL CASE COUNT ( * ) WHEN NULLIF ( - 51, 58 ) THEN 50 + + ( 14 + 83 * 96 ) WHEN + 86 THEN NULL ELSE 76 * 50 END * - 55 AS col0
----
-209000

query I rowsort
SELECT + + 84 * 75 AS col0
----
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT ALL CASE ( 49 ) WHEN ( - ( - COUNT( ALL ( + 84 ) ) ) ) * + 2 + 30 * - 84 THEN ( - 51 ) WHEN 44 THEN 70 ELSE 99 * 79 END AS col2
----
7821

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL CASE ( 49 ) WHEN ( - ( - COUNT ( ALL ( + 84 ) ) ) ) * + 2 + 30 * - 84 THEN ( - 51 ) WHEN 44 THEN 70 ELSE 99 * 79 END AS col2
----
7821

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5910
SELECT + - NULLIF ( ( 33 ), - COUNT( * ) / ( 34 ) ) + CAST( + 23 AS SIGNED ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5910
SELECT + - NULLIF ( ( 33 ), - COUNT ( * ) / ( 34 ) ) + CAST ( + 23 AS INTEGER ) AS col2
----
-10

query I rowsort
SELECT + - 18 - + 92 AS col1
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-5912
SELECT ALL 12 DIV 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL 12 / 53 AS col1
----
0

query I rowsort
SELECT + + 49 + - 71 * + 0 AS col2
----
49

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5915
SELECT + - 74 + + CAST( COUNT( * ) AS SIGNED ) * 37 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5915
SELECT + - 74 + + CAST ( COUNT ( * ) AS INTEGER ) * 37 AS col0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5916
SELECT DISTINCT - 38 + CAST( NULL AS SIGNED ) * - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT - 38 + CAST ( NULL AS INTEGER ) * - 2 AS col1
----
NULL

query I rowsort
SELECT ALL + 83 + + 72 + 21 AS col0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT + NULLIF ( + 44, + 11 ) + - MIN( + 52 )
----
-8

skipif mysql # not compatible
query I rowsort label-5918
SELECT + NULLIF ( + 44, + 11 ) + - MIN ( + 52 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT + COUNT( * ) + 12 * + 1 col1
----
13

skipif mysql # not compatible
query I rowsort label-5919
SELECT + COUNT ( * ) + 12 * + 1 col1
----
13

query I rowsort
SELECT ALL NULLIF ( + + 10, 1 ) col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT 45 + CASE 11 WHEN 40 + + 52 THEN NULL WHEN - NULLIF ( NULLIF ( 65, 28 ), 4 ) THEN ( 46 ) - - 52 WHEN - ( 20 ) * - COUNT( * ) - SUM( ALL 70 ) THEN MAX( ALL 87 ) ELSE NULL END * 43 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT 45 + CASE 11 WHEN 40 + + 52 THEN NULL WHEN - NULLIF ( NULLIF ( 65, 28 ), 4 ) THEN ( 46 ) - - 52 WHEN - ( 20 ) * - COUNT ( * ) - SUM ( ALL 70 ) THEN MAX ( ALL 87 ) ELSE NULL END * 43 col0
----
NULL

query I rowsort
SELECT ALL 3 + 47 * + 64 AS col0
----
3011

onlyif mysql # DIV for integer division: 
query I rowsort label-5923
SELECT ALL 73 DIV 22 * 7 + + 10 * 99 AS col1
----
1011

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL 73 / 22 * 7 + + 10 * 99 AS col1
----
1011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5924
SELECT + ( + CASE - 96 WHEN COUNT( * ) THEN 25 WHEN COALESCE ( SUM( DISTINCT 24 ), - 96, + COUNT( * ) + 42 / CAST( - 42 AS SIGNED ), MIN( ALL 2 ), CASE AVG ( - 4 ) WHEN AVG ( - 8 ) THEN - 71 * CAST( - 64 AS SIGNED ) END ) + 26 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT + ( + CASE - 96 WHEN COUNT ( * ) THEN 25 WHEN COALESCE ( SUM ( DISTINCT 24 ), - 96, + COUNT ( * ) + 42 / CAST ( - 42 AS INTEGER ), MIN ( ALL 2 ), CASE AVG ( - 4 ) WHEN AVG ( - 8 ) THEN - 71 * CAST ( - 64 AS INTEGER ) END ) + 26 THEN NULL END ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5925
SELECT + 62 / + 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT + NULLIF ( - COUNT( * ), 40 + - 61 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT + NULLIF ( - COUNT ( * ), 40 + - 61 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5927
SELECT - 10 DIV + - 58 DIV COUNT( ALL - 0 ) + 14 col2
----
14

skipif mysql # not compatible
query I rowsort label-5927
SELECT - 10 / + - 58 / COUNT ( ALL - 0 ) + 14 col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT + MAX( ALL - + 97 ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-5928
SELECT + MAX ( ALL - + 97 ) col2
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5929
SELECT ALL - 30 DIV + COUNT( * ) - + 67 * COUNT( * ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL - 30 / + COUNT ( * ) - + 67 * COUNT ( * ) AS col2
----
-97

query I rowsort
SELECT ALL + 49 * - 49
----
-2401

query I rowsort
SELECT ALL + NULLIF ( 66, - 97 * 72 )
----
66

query I rowsort
SELECT - 1 * + 62 * 21
----
-1302

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

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

query I rowsort
SELECT - - 71 * 61 AS col1
----
4331

query I rowsort
SELECT - - 66 * + + 98
----
6468

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT ALL + COUNT( + 55 ) * + 8 col2
----
8

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL + COUNT ( + 55 ) * + 8 col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT - COUNT( * ) + COUNT( * ) * + ( + 29 ) col2
----
28

skipif mysql # not compatible
query I rowsort label-5937
SELECT - COUNT ( * ) + COUNT ( * ) * + ( + 29 ) col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT - 8 * + + 74 * - COUNT( DISTINCT + 80 * + 82 ) + 41 col2
----
633

skipif mysql # not compatible
query I rowsort label-5938
SELECT - 8 * + + 74 * - COUNT ( DISTINCT + 80 * + 82 ) + 41 col2
----
633

query I rowsort
SELECT + - 32 col1
----
-32

query I rowsort
SELECT + + 39 + 54
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT ALL - - 8 * MIN( 12 ) + COUNT( * ) * 63
----
159

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL - - 8 * MIN ( 12 ) + COUNT ( * ) * 63
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT - - 45 + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT - - 45 + COUNT ( * )
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT - 71 * - ( CASE + 71 WHEN 81 + + SUM( ALL - 34 ) THEN NULL WHEN 5 + 13 THEN NULL WHEN + 57 / + ( 29 ) THEN - 49 + 76 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5944
SELECT - 71 * - ( CASE + 71 WHEN 81 + + SUM ( ALL - 34 ) THEN NULL WHEN 5 + 13 THEN NULL WHEN + 57 / + ( 29 ) THEN - 49 + 76 ELSE NULL END ) AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-5946
SELECT MAX ( + 58 )
----
58

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

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

query I rowsort
SELECT ALL + 92 + - 65
----
27

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

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

query I rowsort
SELECT 60 * 45 AS col1
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT ALL - CASE + ( 3 ) WHEN 45 / 54 - 44 * ( 63 * - 35 ) THEN COUNT( * ) WHEN - 72 + 15 THEN NULL END * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL - CASE + ( 3 ) WHEN 45 / 54 - 44 * ( 63 * - 35 ) THEN COUNT ( * ) WHEN - 72 + 15 THEN NULL END * 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5953
SELECT ALL 88 AS col1, + COUNT( * ) DIV 17 * 88
----
88
0

skipif mysql # not compatible
query II rowsort label-5953
SELECT ALL 88 AS col1, + COUNT ( * ) / 17 * 88
----
88
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT DISTINCT 69 + + - MIN( 56 ) - 37 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT 69 + + - MIN ( 56 ) - 37 AS col2
----
-24

query I rowsort
SELECT ALL 4 + - 29 * - 0 AS col2
----
4

query II rowsort
SELECT DISTINCT 97, - 16 * 34 col2
----
97
-544

query II rowsort
SELECT - 99 AS col2, + 69 AS col2
----
-99
69

query I rowsort
SELECT 59 * + - 56
----
-3304

query II rowsort
SELECT ALL 3, - 0 AS col2
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT SUM( DISTINCT 3 ) * - - 91 col2
----
273

skipif mysql # not compatible
query I rowsort label-5960
SELECT SUM ( DISTINCT 3 ) * - - 91 col2
----
273

onlyif mysql # aggregate syntax: 
query II rowsort label-5961
SELECT - 59, SUM( ALL + - 17 ) + 42 AS col0
----
-59
25

skipif mysql # not compatible
query II rowsort label-5961
SELECT - 59, SUM ( ALL + - 17 ) + 42 AS col0
----
-59
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT ALL 50 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL 50 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 85 * - 20 AS col2
----
-1700

query II rowsort
SELECT ALL - 20 col1, 43
----
-20
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT 10 * SUM( 60 ) * 87 AS col0
----
52200

skipif mysql # not compatible
query I rowsort label-5965
SELECT 10 * SUM ( 60 ) * 87 AS col0
----
52200

query I rowsort
SELECT ALL 31 * 78
----
2418

query I rowsort
SELECT DISTINCT 49 * 46
----
2254

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

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

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

skipif mysql # not compatible
query I rowsort label-5969
SELECT 29 * + CAST ( NULL AS INTEGER ) * - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT - 25 * - COALESCE ( - + 32, COUNT( + 48 ) * 77 ) AS col1
----
-800

skipif mysql # not compatible
query I rowsort label-5970
SELECT - 25 * - COALESCE ( - + 32, COUNT ( + 48 ) * 77 ) AS col1
----
-800

query I rowsort
SELECT NULLIF ( + + 67, + 49 * 79 - 74 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT ALL - ( + CASE - 17 WHEN - COALESCE ( - COUNT( * ), 33 ) THEN 52 + 10 * COUNT( * ) ELSE 51 END )
----
-51

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL - ( + CASE - 17 WHEN - COALESCE ( - COUNT ( * ), 33 ) THEN 52 + 10 * COUNT ( * ) ELSE 51 END )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5973
SELECT ALL - - 83, - MIN( - + 71 ) * ( - 71 * COUNT( * ) ) col0
----
83
-5041

skipif mysql # not compatible
query II rowsort label-5973
SELECT ALL - - 83, - MIN ( - + 71 ) * ( - 71 * COUNT ( * ) ) col0
----
83
-5041

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5974
SELECT + 52 DIV 11 + - - COUNT( * ) * 91 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5974
SELECT + 52 / 11 + - - COUNT ( * ) * 91 AS col1
----
95

query II rowsort
SELECT ALL - + 35 AS col1, 35 AS col0
----
-35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT DISTINCT - MIN( ALL + 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT - MIN ( ALL + 22 ) AS col1
----
-22

query I rowsort
SELECT ALL 44 + - 91
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT ALL + 73 * + 95 + - 72 + - 36 * + 53 * + COUNT( * )
----
4955

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL + 73 * + 95 + - 72 + - 36 * + 53 * + COUNT ( * )
----
4955

onlyif mysql # DIV for integer division: 
query I rowsort label-5979
SELECT 70 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-5979
SELECT 70 / + 81
----
0

query I rowsort
SELECT DISTINCT - - 93 + 41 + - - 58 AS col1
----
192

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5982
SELECT DISTINCT - CAST( + + 50 AS SIGNED ) * - 81
----
4050

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT - CAST ( + + 50 AS INTEGER ) * - 81
----
4050

query I rowsort
SELECT ALL + - 80 * - 39
----
3120

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

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

query I rowsort
SELECT + ( - 68 ) * + 47
----
-3196

query I rowsort
SELECT DISTINCT + 80 + - 64
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5987
SELECT ALL - 21 + CAST( + - 17 AS SIGNED ) * + 43 AS col2
----
-752

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL - 21 + CAST ( + - 17 AS INTEGER ) * + 43 AS col2
----
-752

query I rowsort
SELECT DISTINCT - + 50 * + 79 + + - 96 + - 76 col1
----
-4122

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT + ( - 58 ) - + COUNT( * ) + + 84 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5989
SELECT + ( - 58 ) - + COUNT ( * ) + + 84 AS col2
----
25

query I rowsort
SELECT 18 * - 7 + 29
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT ALL - + CASE - - 39 WHEN 73 * - MIN( ALL 22 ) THEN 29 END + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL - + CASE - - 39 WHEN 73 * - MIN ( ALL 22 ) THEN 29 END + 38
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5992
SELECT DISTINCT 51 * COUNT( * ), + 19 AS col0
----
51
19

skipif mysql # not compatible
query II rowsort label-5992
SELECT DISTINCT 51 * COUNT ( * ), + 19 AS col0
----
51
19

query I rowsort
SELECT DISTINCT - 65 + 99 AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5994
SELECT 59 + - 10 - - COUNT( * ) + 99 DIV + 22 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-5994
SELECT 59 + - 10 - - COUNT ( * ) + 99 / + 22 AS col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5995
SELECT 95 - - 71 DIV + 15 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5995
SELECT 95 - - 71 / + 15 AS col1
----
99

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

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL - COUNT ( * ) * + + 20 / + 20 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL MAX( DISTINCT - 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL MAX ( DISTINCT - 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT SUM( ALL - 45 ) + - 12
----
-57

skipif mysql # not compatible
query I rowsort label-5998
SELECT SUM ( ALL - 45 ) + - 12
----
-57

query I rowsort
SELECT 78 + + 59 * - - 6
----
432

query I rowsort
SELECT ALL 50 - + + 81
----
-31

query I rowsort
SELECT 85 * + ( + + 71 )
----
6035

query I rowsort
SELECT ALL + 48 * - 29
----
-1392

onlyif mysql # aggregate syntax: 
query II rowsort label-6003
SELECT DISTINCT + COUNT( * ) * + + 12 AS col2, - 80 AS col2
----
12
-80

skipif mysql # not compatible
query II rowsort label-6003
SELECT DISTINCT + COUNT ( * ) * + + 12 AS col2, - 80 AS col2
----
12
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT COUNT( * ) + 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6004
SELECT COUNT ( * ) + 52 AS col2
----
53

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6006
SELECT NULLIF ( + CASE - - 30 WHEN 56 * 74 THEN NULL WHEN SUM( - 95 ) THEN 32 DIV - 76 + - MAX( - 55 ) WHEN + 1 DIV - 99 THEN NULL ELSE COUNT( * ) DIV COUNT( * ) END, - 82 + - 38 ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6006
SELECT NULLIF ( + CASE - - 30 WHEN 56 * 74 THEN NULL WHEN SUM ( - 95 ) THEN 32 / - 76 + - MAX ( - 55 ) WHEN + 1 / - 99 THEN NULL ELSE COUNT ( * ) / COUNT ( * ) END, - 82 + - 38 ) * + COUNT ( * ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6007
SELECT 20 * 58 DIV ( - + ( 18 ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6007
SELECT 20 * 58 / ( - + ( 18 ) ) AS col0
----
-64

query I rowsort
SELECT ( 20 ) + 21 + 25 * 89 AS col0
----
2266

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT COUNT( * ) * - CASE WHEN ( - 41 ) NOT IN ( + 29 / 70 + - MAX( 36 ) ) THEN NULL WHEN NULL NOT IN ( + ( + 58 ) * + MIN( DISTINCT + 32 / 17 ) + + AVG ( 35 ) ) THEN 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT COUNT ( * ) * - CASE WHEN ( - 41 ) NOT IN ( + 29 / 70 + - MAX ( 36 ) ) THEN NULL WHEN NULL NOT IN ( + ( + 58 ) * + MIN ( DISTINCT + 32 / 17 ) + + AVG ( 35 ) ) THEN 72 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6010
SELECT DISTINCT ( 67 ) DIV - + 48
----
-1

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT ( 67 ) / - + 48
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT 13 * - - COUNT( * ) * - 3 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6011
SELECT 13 * - - COUNT ( * ) * - 3 AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6012
SELECT - CAST( NULL AS SIGNED ) / - AVG ( 7 ) + 21 * + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT - CAST ( NULL AS INTEGER ) / - AVG ( 7 ) + 21 * + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT DISTINCT - SUM( - + CASE - NULLIF ( 26, + 64 * 75 ) WHEN 91 / + 33 THEN NULL WHEN 17 * ( 98 ) THEN 42 / ( - 97 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT - SUM ( - + CASE - NULLIF ( 26, + 64 * 75 ) WHEN 91 / + 33 THEN NULL WHEN 17 * ( 98 ) THEN 42 / ( - 97 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT DISTINCT - NULLIF ( - - ( - 68 ), 7 * + COUNT( * ) ) * 21 + + 2 * + 45 AS col2
----
1518

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT - NULLIF ( - - ( - 68 ), 7 * + COUNT ( * ) ) * 21 + + 2 * + 45 AS col2
----
1518

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT - SUM( + 55 ) * - 79
----
4345

skipif mysql # not compatible
query I rowsort label-6016
SELECT - SUM ( + 55 ) * - 79
----
4345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6017
SELECT ALL - 3 * + 39 / - COUNT( * ) + + CAST( NULL AS SIGNED ) + - 96 * - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - 3 * + 39 / - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - 96 * - 96 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6018
SELECT + MAX ( DISTINCT CAST ( - 38 AS INTEGER ) )
----
-38

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

query I rowsort
SELECT ALL + - 54 * - + 98 * - + 75 * + - 9 + + 29 + + 77 AS col1
----
3572206

query I rowsort
SELECT + + 11 + + 44 + - - 49 * - + 14 + 6 * - 5
----
-661

onlyif mysql # aggregate syntax: 
query II rowsort label-6022
SELECT + MAX( - + 15 ) AS col1, - 85 AS col2
----
-15
-85

skipif mysql # not compatible
query II rowsort label-6022
SELECT + MAX ( - + 15 ) AS col1, - 85 AS col2
----
-15
-85

query I rowsort
SELECT 36 * 63 + 74 * 24 * + 77
----
139020

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6025
SELECT ALL 15 * 28 + - 32 + + 51 DIV + COUNT( * )
----
439

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL 15 * 28 + - 32 + + 51 / + COUNT ( * )
----
439

onlyif mysql # DIV for integer division: 
query I rowsort label-6026
SELECT - + 56 DIV - ( 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6026
SELECT - + 56 / - ( 33 ) AS col1
----
1

query I rowsort
SELECT ALL + + NULLIF ( + 41, 68 ) + + 35 * + 17
----
636

onlyif mysql # DIV for integer division: 
query I rowsort label-6028
SELECT DISTINCT - 23 + - 15 + - - 99 + - 2 DIV + 86
----
61

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT - 23 + - 15 + - - 99 + - 2 / + 86
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT - + COALESCE ( COALESCE ( + 39, + CASE COUNT( * ) WHEN + MIN( ALL + 48 ) * - ( ( - 9 ) ) THEN + 88 + + 16 END * - COUNT( * ) ), - 66 * COUNT( * ), + 26 ) * + 51
----
-1989

skipif mysql # not compatible
query I rowsort label-6029
SELECT - + COALESCE ( COALESCE ( + 39, + CASE COUNT ( * ) WHEN + MIN ( ALL + 48 ) * - ( ( - 9 ) ) THEN + 88 + + 16 END * - COUNT ( * ) ), - 66 * COUNT ( * ), + 26 ) * + 51
----
-1989

query I rowsort
SELECT - 89 + + + 75 * - 23
----
-1814

query I rowsort
SELECT ALL 58 + - + 61 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT - 2 + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-6032
SELECT - 2 + - COUNT ( * )
----
-3

query I rowsort
SELECT ALL - - 40 - - 75
----
115

query II rowsort
SELECT - 35 AS col2, + 0 * + 59 col2
----
-35
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6035
SELECT - CAST( - COUNT( * ) AS SIGNED ) * 11 * - 16
----
-176

skipif mysql # not compatible
query I rowsort label-6035
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * 11 * - 16
----
-176

query II rowsort
SELECT 30, - 54 AS col0
----
30
-54

query I rowsort
SELECT DISTINCT + 7 * 51 AS col1
----
357

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6038
SELECT - CAST( NULL AS SIGNED ) * 23 * 97 AS col1, 63 * + + 34
----
NULL
2142

skipif mysql # not compatible
query II rowsort label-6038
SELECT - CAST ( NULL AS INTEGER ) * 23 * 97 AS col1, 63 * + + 34
----
NULL
2142

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT ALL CASE + CASE - AVG ( - 81 ) WHEN + 90 THEN 2 END WHEN 89 * COUNT( * ) + 18 THEN + 6 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL CASE + CASE - AVG ( - 81 ) WHEN + 90 THEN 2 END WHEN 89 * COUNT ( * ) + 18 THEN + 6 ELSE NULL END col1
----
NULL

query II rowsort
SELECT - 0 AS col0, - 87 AS col1
----
0
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT - COALESCE ( + - 46, + 66 + 55 - 96 ) * ( + COUNT( * ) + + 29 ) AS col2
----
1380

skipif mysql # not compatible
query I rowsort label-6042
SELECT - COALESCE ( + - 46, + 66 + 55 - 96 ) * ( + COUNT ( * ) + + 29 ) AS col2
----
1380

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT ALL NULLIF ( - - 70, + 62 * + + 54 + - - CAST( NULL AS SIGNED ) )
----
70

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL NULLIF ( - - 70, + 62 * + + 54 + - - CAST ( NULL AS INTEGER ) )
----
70

query I rowsort
SELECT - 2 * + - 35 AS col2
----
70

query I rowsort
SELECT ALL COALESCE ( 65, - 42 )
----
65

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

skipif mysql # not compatible
query II rowsort label-6047
SELECT - COUNT ( * ), 87 * 1 AS col0
----
-1
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6048
SELECT DISTINCT + SUM( - 3 ) * - CAST( + 5 AS SIGNED ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT + SUM ( - 3 ) * - CAST ( + 5 AS INTEGER ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT ALL + CASE WHEN NOT NULL NOT BETWEEN NULL AND COUNT( DISTINCT - 17 ) THEN - 12 END * 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL + CASE WHEN NOT NULL NOT BETWEEN NULL AND COUNT ( DISTINCT - 17 ) THEN - 12 END * 12 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6050
SELECT ALL + 39 DIV + COUNT( * ) DIV - - COUNT( DISTINCT - + 19 ) + - + 54 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + 39 / + COUNT ( * ) / - - COUNT ( DISTINCT - + 19 ) + - + 54 AS col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6051
SELECT DISTINCT + + MIN( ALL + + 9 ) DIV + + 22 * + MAX( + - 28 ) + + MIN( ALL - 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-6051
SELECT DISTINCT + + MIN ( ALL + + 9 ) / + + 22 * + MAX ( + - 28 ) + + MIN ( ALL - 37 ) AS col1
----
-37

query II rowsort
SELECT ALL + - 74, + 19 - + 98 AS col1
----
-74
-79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6053
SELECT DISTINCT - ( + 30 ) DIV - COALESCE ( + 95, - + 5 DIV ( - 66 DIV - 49 - CASE WHEN NOT ( - CAST( 13 AS SIGNED ) + 56 ) IN ( 39 ) THEN 33 END ) ) + 54
----
54

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT - ( + 30 ) / - COALESCE ( + 95, - + 5 / ( - 66 / - 49 - CASE WHEN NOT ( - CAST ( 13 AS INTEGER ) + 56 ) IN ( 39 ) THEN 33 END ) ) + 54
----
54

query I rowsort
SELECT DISTINCT + 84 * - 35 + - 54 + + - 81 + + 42
----
-3033

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6055
SELECT + + 53 col2, CASE - - NULLIF ( + CASE 22 WHEN + 73 * CAST( + 87 * - 32 AS SIGNED ) THEN + 67 ELSE ( 59 ) * - 0 + + NULLIF ( 15, COALESCE ( COUNT( * ), 91 ) ) END, CAST( + 13 AS SIGNED ) * COUNT( * ) ) WHEN + ( + 84 ) THEN - 43 + + COUNT( * ) END + 17
----
53
NULL

skipif mysql # not compatible
query II rowsort label-6055
SELECT + + 53 col2, CASE - - NULLIF ( + CASE 22 WHEN + 73 * CAST ( + 87 * - 32 AS INTEGER ) THEN + 67 ELSE ( 59 ) * - 0 + + NULLIF ( 15, COALESCE ( COUNT ( * ), 91 ) ) END, CAST ( + 13 AS INTEGER ) * COUNT ( * ) ) WHEN + ( + 84 ) THEN - 43 + + COUNT ( * ) END + 17
----
53
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6056
SELECT - - 40 DIV + 41 * - 81 * - 30 * - + 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6056
SELECT - - 40 / + 41 * - 81 * - 30 * - + 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6057
SELECT - - 82 + - COUNT( DISTINCT - 24 ), ( + 79 ) + COUNT( + 54 + 84 ) * - 52 AS col0
----
81
27

skipif mysql # not compatible
query II rowsort label-6057
SELECT - - 82 + - COUNT ( DISTINCT - 24 ), ( + 79 ) + COUNT ( + 54 + 84 ) * - 52 AS col0
----
81
27

onlyif mysql # aggregate syntax: 
query II rowsort label-6058
SELECT + - COUNT( ALL ( 86 ) ) AS col2, 62 * - 6
----
-1
-372

skipif mysql # not compatible
query II rowsort label-6058
SELECT + - COUNT ( ALL ( 86 ) ) AS col2, 62 * - 6
----
-1
-372

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6060
SELECT ALL 25 * ( + COALESCE ( ( CAST( + 15 AS SIGNED ) ), MAX( 37 ) ) ) + 36 * + 45 + - 94 AS col2
----
1901

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL 25 * ( + COALESCE ( ( CAST ( + 15 AS INTEGER ) ), MAX ( 37 ) ) ) + 36 * + 45 + - 94 AS col2
----
1901

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT ALL ( + - 55 ) * + MAX( DISTINCT - 11 )
----
605

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL ( + - 55 ) * + MAX ( DISTINCT - 11 )
----
605

query I rowsort
SELECT + - 99 * + + 15
----
-1485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6063
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 19 - + 21 * + 85 * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 19 - + 21 * + 85 * 41
----
NULL

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

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

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

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

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

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

query II rowsort
SELECT + 87, - 61 col0
----
87
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT ALL MIN( ALL - 48 ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL MIN ( ALL - 48 ) col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT + ( + + 35 ) * + CASE - 65 WHEN - ( - + 38 ) THEN COALESCE ( 33, - 52 * 78, 23 * 69 + ( 33 ) ) + SUM( DISTINCT 87 ) * - 88 WHEN - 30 THEN NULL ELSE NULL END * - CASE 37 * 41 WHEN - 40 * - COUNT( * ) THEN 46 + - COUNT( * ) * - 76 WHEN 72 - + 27 THEN 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT + ( + + 35 ) * + CASE - 65 WHEN - ( - + 38 ) THEN COALESCE ( 33, - 52 * 78, 23 * 69 + ( 33 ) ) + SUM ( DISTINCT 87 ) * - 88 WHEN - 30 THEN NULL ELSE NULL END * - CASE 37 * 41 WHEN - 40 * - COUNT ( * ) THEN 46 + - COUNT ( * ) * - 76 WHEN 72 - + 27 THEN 30 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT MIN( ALL - 63 ) col1
----
-63

skipif mysql # not compatible
query I rowsort label-6071
SELECT MIN ( ALL - 63 ) col1
----
-63

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6074
SELECT DISTINCT 73 DIV + 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT 73 / + 78 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT DISTINCT MIN( - ( NULLIF ( - 91, - CASE + 17 WHEN - 89 + 79 * + 12 THEN NULL WHEN + 86 THEN NULL ELSE 42 END ) ) )
----
91

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT MIN ( - ( NULLIF ( - 91, - CASE + 17 WHEN - 89 + 79 * + 12 THEN NULL WHEN + 86 THEN NULL ELSE 42 END ) ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT ALL 8 * - CASE - ( 93 ) WHEN - + 45 * - COUNT( * ) + 70 THEN NULL WHEN 37 THEN NULL ELSE 58 END * - 78
----
36192

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL 8 * - CASE - ( 93 ) WHEN - + 45 * - COUNT ( * ) + 70 THEN NULL WHEN 37 THEN NULL ELSE 58 END * - 78
----
36192

query I rowsort
SELECT + ( + - ( + - 62 ) ) + + - 4 + - 35 AS col1
----
23

query I rowsort
SELECT - 79 - + - 50 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT + 90 * - COUNT( * ) * - - 47 col2
----
-4230

skipif mysql # not compatible
query I rowsort label-6079
SELECT + 90 * - COUNT ( * ) * - - 47 col2
----
-4230

query I rowsort
SELECT + 49 + + + CASE - 25 WHEN + + 62 + - 28 - - 93 THEN NULL WHEN + 81 * - 77 THEN 73 END
----
NULL

query I rowsort
SELECT - 55 - + 78
----
-133

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

query I rowsort
SELECT DISTINCT + 4 * - - 63 * + ( + 55 )
----
13860

query I rowsort
SELECT - 43 + + 32
----
-11

query I rowsort
SELECT ALL - 31 + - - ( - CASE + 52 WHEN + 57 THEN + + 19 END ) + + 67
----
NULL

query I rowsort
SELECT ALL COALESCE ( - + 5, + ( + - 38 ) * - - 24 ) AS col2
----
-5

query I rowsort
SELECT ALL + 68 + - 50 + ( - 79 ) AS col1
----
-61

query I rowsort
SELECT - + 72 + + 84
----
12

query II rowsort
SELECT ALL + + 61 + + 32 AS col2, ( - + 80 )
----
93
-80

query I rowsort
SELECT ALL + 50 + - COALESCE ( 43, + 77 )
----
7

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT - 94 + + COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-6093
SELECT - 94 + + COUNT ( * ) AS col1
----
-93

query II rowsort
SELECT + - 55, 30 AS col0
----
-55
30

onlyif mysql # aggregate syntax: 
query II rowsort label-6095
SELECT + COUNT( * ) col1, COUNT( * ) + + - 17
----
1
-16

skipif mysql # not compatible
query II rowsort label-6095
SELECT + COUNT ( * ) col1, COUNT ( * ) + + - 17
----
1
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6096
SELECT DISTINCT - - COUNT( * ) + CASE + - 62 WHEN - - 44 THEN SUM( DISTINCT + CAST( NULL AS SIGNED ) ) END + 44 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT - - COUNT ( * ) + CASE + - 62 WHEN - - 44 THEN SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) END + 44 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL - - MAX( DISTINCT + + 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL - - MAX ( DISTINCT + + 7 ) AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6098
SELECT - 95 + - - CAST( NULL AS SIGNED ) * - CASE - 44 WHEN - + CAST( NULL AS SIGNED ) + + 2 THEN NULL ELSE - 99 + + CAST( - 19 + COUNT( * ) AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT - 95 + - - CAST ( NULL AS INTEGER ) * - CASE - 44 WHEN - + CAST ( NULL AS INTEGER ) + + 2 THEN NULL ELSE - 99 + + CAST ( - 19 + COUNT ( * ) AS INTEGER ) END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6100
SELECT + MAX( ALL - 9 ) * + 26 - 87 * - 76 + - 61 + 55 DIV - 59 + - CAST( + 52 - ( + 1 - + MAX( 12 ) ) AS SIGNED ) AS col0
----
6254

skipif mysql # not compatible
query I rowsort label-6100
SELECT + MAX ( ALL - 9 ) * + 26 - 87 * - 76 + - 61 + 55 / - 59 + - CAST ( + 52 - ( + 1 - + MAX ( 12 ) ) AS INTEGER ) AS col0
----
6254

query I rowsort
SELECT DISTINCT 97 - - 3 AS col1
----
100

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

query II rowsort
SELECT ALL - 14, - 2 - + 10 * - 69 AS col2
----
-14
688

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT - COALESCE ( - - 52, - NULLIF ( + + 23, - 81 ) DIV + 49 ) + 4 * - 52
----
-260

skipif mysql # not compatible
query I rowsort label-6104
SELECT - COALESCE ( - - 52, - NULLIF ( + + 23, - 81 ) / + 49 ) + 4 * - 52
----
-260

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

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

query I rowsort
SELECT DISTINCT CASE 81 WHEN 43 THEN 16 ELSE NULL END - + 34 + + 50 + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT - NULLIF ( + 13, + 33 ) * + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-6108
SELECT - NULLIF ( + 13, + 33 ) * + COUNT ( * ) AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6109
SELECT ALL - COUNT( * ) DIV + 19 * 50 * - 2
----
0

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL - COUNT ( * ) / + 19 * 50 * - 2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6110
SELECT DISTINCT 92 / + - MAX( - - ( + + CAST( NULL AS SIGNED ) ) ) / 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT 92 / + - MAX ( - - ( + + CAST ( NULL AS INTEGER ) ) ) / 60 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6111
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN + MIN( DISTINCT + 18 ) - - 1 THEN - COUNT( * ) * 66 - 84 + - COUNT( DISTINCT + 30 ) ELSE NULL END * + 37 + - 38 * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN + MIN ( DISTINCT + 18 ) - - 1 THEN - COUNT ( * ) * 66 - 84 + - COUNT ( DISTINCT + 30 ) ELSE NULL END * + 37 + - 38 * 29
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6112
SELECT 88 / SUM ( ALL - - 55 ) * + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL 27 * + + 26 AS col0
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ( COUNT( * ) ) + + 16 - - 48 * - 23 + - 58
----
-1145

skipif mysql # not compatible
query I rowsort label-6114
SELECT ( COUNT ( * ) ) + + 16 - - 48 * - 23 + - 58
----
-1145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT DISTINCT 32 * + COUNT( * ) * 70
----
2240

skipif mysql # not compatible
query I rowsort label-6116
SELECT DISTINCT 32 * + COUNT ( * ) * 70
----
2240

query I rowsort
SELECT ALL 91 + 56 AS col0
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-6118
SELECT 23 * - 15 AS col0, COUNT( * )
----
-345
1

skipif mysql # not compatible
query II rowsort label-6118
SELECT 23 * - 15 AS col0, COUNT ( * )
----
-345
1

query I rowsort
SELECT ALL 67 + + 28 AS col0
----
95

query I rowsort
SELECT 94 * + + 28 * - + 4 AS col0
----
-10528

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT ALL 85 * - - NULLIF ( - NULLIF ( - COUNT( * ), + AVG ( 96 ) ), - COUNT( * ) * + COUNT( * ) + + 29 )
----
85

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL 85 * - - NULLIF ( - NULLIF ( - COUNT ( * ), + AVG ( 96 ) ), - COUNT ( * ) * + COUNT ( * ) + + 29 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT DISTINCT MIN( - - 27 ) + 5 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT MIN ( - - 27 ) + 5 AS col1
----
32

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

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

query I rowsort
SELECT 38 * - 65
----
-2470

query I rowsort
SELECT ALL 0 + + 42 AS col2
----
42

query I rowsort
SELECT - 69 - 39 + - - NULLIF ( + 73, - 19 ) + + - ( 41 ) + ( + 94 ) * 40 * 62 AS col0
----
233044

query I rowsort
SELECT ALL 13 * ( + 68 ) + - 98
----
786

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT 93 - 10 * 83 * + + NULLIF ( COUNT( * ), - - 18 / 6 + - 2 ) * 99 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT 93 - 10 * 83 * + + NULLIF ( COUNT ( * ), - - 18 / 6 + - 2 ) * 99 col1
----
NULL

query I rowsort
SELECT - 52 * - 19 AS col1
----
988

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT + ( + + NULLIF ( + - 54, - 89 * - - 9 + - - 5 * - - COUNT( * ) ) ) + 39
----
-15

skipif mysql # not compatible
query I rowsort label-6131
SELECT + ( + + NULLIF ( + - 54, - 89 * - - 9 + - - 5 * - - COUNT ( * ) ) ) + 39
----
-15

query I rowsort
SELECT ALL + 55 - 62 AS col1
----
-7

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

query I rowsort
SELECT ALL + + 8 * + ( + 35 )
----
280

query I rowsort
SELECT 62 - - 85
----
147

query I rowsort
SELECT ALL - 94 * ( + - 70 ) AS col2
----
6580

query I rowsort
SELECT - ( 19 ) * 41 * 28
----
-21812

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT 17 * 88 + - 26 - + 54 * - SUM( + 45 ) + - + 64 - 52 * COUNT( * ) * + 72 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6138
SELECT 17 * 88 + - 26 - + 54 * - SUM ( + 45 ) + - + 64 - 52 * COUNT ( * ) * + 72 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT - + 74 * - - ( 62 ) + + CASE - 98 WHEN 32 THEN NULL ELSE + MIN( ALL + 34 ) * 89 END * + 18 AS col2
----
49880

skipif mysql # not compatible
query I rowsort label-6139
SELECT - + 74 * - - ( 62 ) + + CASE - 98 WHEN 32 THEN NULL ELSE + MIN ( ALL + 34 ) * 89 END * + 18 AS col2
----
49880

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT ALL - - CASE WHEN NOT NULL <= - COUNT( * ) THEN + 9 + 47 END * COUNT( * ) + - 50 + COALESCE ( COUNT( * ), + 32 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL - - CASE WHEN NOT NULL <= - COUNT ( * ) THEN + 9 + 47 END * COUNT ( * ) + - 50 + COALESCE ( COUNT ( * ), + 32 ) AS col1
----
NULL

query I rowsort
SELECT + ( + + 21 ) * + + 71 AS col1
----
1491

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT 8 * COUNT( * ) + + 89 + - COALESCE ( + - COALESCE ( - 21, + 35 + 79 ), 21 + COALESCE ( 5, 49 + + 76 * 99 ), - 22 ) + + 22 * 77
----
1770

skipif mysql # not compatible
query I rowsort label-6142
SELECT 8 * COUNT ( * ) + + 89 + - COALESCE ( + - COALESCE ( - 21, + 35 + 79 ), 21 + COALESCE ( 5, 49 + + 76 * 99 ), - 22 ) + + 22 * 77
----
1770

onlyif mysql # DIV for integer division: 
query I rowsort label-6143
SELECT DISTINCT - 51 DIV 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT - 51 / 98 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6144
SELECT ALL - CAST( + 31 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL - CAST ( + 31 AS INTEGER )
----
-31

query I rowsort
SELECT 98 + + - 42 * - - ( + + 73 ) * 25 AS col2
----
-76552

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6147
SELECT DISTINCT COUNT( * ) + 51 * + ( + + CAST( NULL AS DECIMAL ) ) AS col1, 83 AS col0
----
NULL
83

skipif mysql # not compatible
query II rowsort label-6147
SELECT DISTINCT COUNT ( * ) + 51 * + ( + + CAST ( NULL AS REAL ) ) AS col1, 83 AS col0
----
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT + 48 * + 31 + COUNT( * ) AS col2
----
1489

skipif mysql # not compatible
query I rowsort label-6148
SELECT + 48 * + 31 + COUNT ( * ) AS col2
----
1489

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

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

query I rowsort
SELECT 4 * + + 12
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6151
SELECT ALL NULLIF ( + CAST( + 26 AS SIGNED ), - 19 ) DIV - 84 * - - 35 + - - COUNT( * ) - - 28 + 65 DIV 10 * 60
----
389

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL NULLIF ( + CAST ( + 26 AS INTEGER ), - 19 ) / - 84 * - - 35 + - - COUNT ( * ) - - 28 + 65 / 10 * 60
----
389

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT DISTINCT 79 + - + ( + COUNT( * ) ) + + 29 * 47
----
1441

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT 79 + - + ( + COUNT ( * ) ) + + 29 * 47
----
1441

query I rowsort
SELECT ALL NULLIF ( + + 59, + - 56 + - 16 ) + + - ( - 87 ) col2
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-6154
SELECT ALL + 59 DIV + ( - - 63 )
----
0

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL + 59 / + ( - - 63 )
----
0

query I rowsort
SELECT ALL 14 + + NULLIF ( 34, - - 86 + + - 49 ) * + - 91 * - 89 * - 82 + - 11 AS col0
----
-22580009

query I rowsort
SELECT 29 - - 8 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT ALL 31 * - - COUNT( 44 )
----
31

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL 31 * - - COUNT ( 44 )
----
31

query I rowsort
SELECT DISTINCT COALESCE ( + ( 82 ), - - 74, 41 )
----
82

query II rowsort
SELECT 70, 30 col1
----
70
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6160
SELECT ALL 78 + - MAX( - 56 ) + - COUNT( * ) DIV + - SUM( + 66 ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL 78 + - MAX ( - 56 ) + - COUNT ( * ) / + - SUM ( + 66 ) AS col2
----
134

query I rowsort
SELECT + 90 * + - 68 AS col2
----
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT - 67 + - + MIN( DISTINCT - CASE + 52 WHEN - + 30 THEN - 69 ELSE NULL END ) + - - 18 / + - 24 * - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT - 67 + - + MIN ( DISTINCT - CASE + 52 WHEN - + 30 THEN - 69 ELSE NULL END ) + - - 18 / + - 24 * - 35 AS col2
----
NULL

query I rowsort
SELECT + - 64 - - + 75 AS col2
----
11

query II rowsort
SELECT ALL + 49, 83 * + 62 AS col0
----
49
5146

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT - + SUM( DISTINCT - + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-6165
SELECT - + SUM ( DISTINCT - + 24 )
----
24

query I rowsort
SELECT + + 95 + + 86 AS col1
----
181

query I rowsort
SELECT + + 89 - - 43 AS col0
----
132

query I rowsort
SELECT - + 82 col1
----
-82

query II rowsort
SELECT DISTINCT - 26, 53 AS col1
----
-26
53

query I rowsort
SELECT ALL ( 67 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT + COUNT( * ) + - - COUNT( * ) + + MIN( - 89 ) + + 48 col0
----
-39

skipif mysql # not compatible
query I rowsort label-6171
SELECT + COUNT ( * ) + - - COUNT ( * ) + + MIN ( - 89 ) + + 48 col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT ALL 56 DIV + 18 - + COALESCE ( + 91, + 11 ) + 23 * - - 22
----
418

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL 56 / + 18 - + COALESCE ( + 91, + 11 ) + 23 * - - 22
----
418

onlyif mysql # aggregate syntax: 
query II rowsort label-6173
SELECT + COUNT( * ) + - - COUNT( * ) + - 8, 30 AS col1
----
-6
30

skipif mysql # not compatible
query II rowsort label-6173
SELECT + COUNT ( * ) + - - COUNT ( * ) + - 8, 30 AS col1
----
-6
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6174
SELECT ALL 13 / - - ( - - 19 ) * + NULLIF ( - - CAST( NULL AS DECIMAL ), 47 * + COUNT( * ) + - 78 ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL 13 / - - ( - - 19 ) * + NULLIF ( - - CAST ( NULL AS REAL ), 47 * + COUNT ( * ) + - 78 ) * + 57
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT CASE - - 86 WHEN + + 29 * + 7 THEN 79 * 16 WHEN + - 87 + - - 15 THEN + COUNT( * ) ELSE MAX( - 84 ) END
----
-84

skipif mysql # not compatible
query I rowsort label-6176
SELECT CASE - - 86 WHEN + + 29 * + 7 THEN 79 * 16 WHEN + - 87 + - - 15 THEN + COUNT ( * ) ELSE MAX ( - 84 ) END
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6177
SELECT - 35 DIV - 34 + - 25 - + + 70 + + 17
----
-77

skipif mysql # not compatible
query I rowsort label-6177
SELECT - 35 / - 34 + - 25 - + + 70 + + 17
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6178
SELECT + - 2 DIV + 80 + MIN( DISTINCT - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-6178
SELECT + - 2 / + 80 + MIN ( DISTINCT - 67 )
----
-67

query I rowsort
SELECT DISTINCT 98 * + 29 AS col2
----
2842

query I rowsort
SELECT ALL 2 * + 56 AS col1
----
112

query I rowsort
SELECT + 42 + + 41 col1
----
83

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6183
SELECT - 86 * - NULLIF ( 67, + 70 * - 85 ) AS col1, + 29 * + - CASE 72 WHEN + + COUNT( * ) * + MIN( 24 * - 98 ) THEN NULL ELSE - CASE 77 WHEN - 38 THEN + 62 WHEN + CASE COUNT( * ) WHEN - 21 THEN ( + 24 ) END + 89 / - 29 THEN NULL ELSE NULL END * + 89 END AS col1
----
5762
NULL

skipif mysql # not compatible
query II rowsort label-6183
SELECT - 86 * - NULLIF ( 67, + 70 * - 85 ) AS col1, + 29 * + - CASE 72 WHEN + + COUNT ( * ) * + MIN ( 24 * - 98 ) THEN NULL ELSE - CASE 77 WHEN - 38 THEN + 62 WHEN + CASE COUNT ( * ) WHEN - 21 THEN ( + 24 ) END + 89 / - 29 THEN NULL ELSE NULL END * + 89 END AS col1
----
5762
NULL

query I rowsort
SELECT + 38 * - + 98 - - 50 AS col2
----
-3674

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT - SUM( ALL + 48 ) + - COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-6185
SELECT - SUM ( ALL + 48 ) + - COUNT ( * ) AS col1
----
-49

query I rowsort
SELECT DISTINCT + 29 * 35 + + 16
----
1031

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6188
SELECT DISTINCT - 62 * + CASE + 66 WHEN - 1 THEN + COUNT( * ) ELSE NULL END * + 9 + 97 AS col0, 77 + - - 6 + MIN( ALL - ( - 12 ) - - 79 ) * 87
----
NULL
8000

skipif mysql # not compatible
query II rowsort label-6188
SELECT DISTINCT - 62 * + CASE + 66 WHEN - 1 THEN + COUNT ( * ) ELSE NULL END * + 9 + 97 AS col0, 77 + - - 6 + MIN ( ALL - ( - 12 ) - - 79 ) * 87
----
NULL
8000

query I rowsort
SELECT - 19 * - 88 + 97 - + 22
----
1747

query I rowsort
SELECT NULLIF ( 39, 16 ) col1
----
39

query I rowsort
SELECT ALL - 29 * 40 + - - 79
----
-1081

onlyif mysql # aggregate syntax: 
query II rowsort label-6192
SELECT 63 * 97 + + 67 + + 78 AS col0, + 0 * - COUNT( * )
----
6256
0

skipif mysql # not compatible
query II rowsort label-6192
SELECT 63 * 97 + + 67 + + 78 AS col0, + 0 * - COUNT ( * )
----
6256
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6193
SELECT ALL + 72 DIV + 38 AS col1, + 6 DIV + 32
----
1
0

skipif mysql # not compatible
query II rowsort label-6193
SELECT ALL + 72 / + 38 AS col1, + 6 / + 32
----
1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6194
SELECT - 20 + - 93 col1, + ( + COUNT( * ) ) AS col0
----
-113
1

skipif mysql # not compatible
query II rowsort label-6194
SELECT - 20 + - 93 col1, + ( + COUNT ( * ) ) AS col0
----
-113
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT DISTINCT + COUNT( + + 49 ) * + 39 - + 54
----
-15

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT + COUNT ( + + 49 ) * + 39 - + 54
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-6196
SELECT - MIN( DISTINCT - 1 ), MAX( - 49 ) AS col2
----
1
-49

skipif mysql # not compatible
query II rowsort label-6196
SELECT - MIN ( DISTINCT - 1 ), MAX ( - 49 ) AS col2
----
1
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT - 74 / - NULLIF ( + CASE - - COALESCE ( 26, 23 ) WHEN - CASE - 84 WHEN + 41 * 3 THEN - CASE - 11 WHEN 50 THEN - 60 END ELSE NULL END * 62 + - 68 THEN 93 + + 64 WHEN - CASE 91 WHEN - 72 THEN 64 END THEN NULL ELSE 67 + 48 * CASE 89 + + 44 WHEN 82 THEN NULL WHEN 71 + + 57 / + 38 THEN 32 + 67 ELSE NULL END END, CAST( + 93 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT - 74 / - NULLIF ( + CASE - - COALESCE ( 26, 23 ) WHEN - CASE - 84 WHEN + 41 * 3 THEN - CASE - 11 WHEN 50 THEN - 60 END ELSE NULL END * 62 + - 68 THEN 93 + + 64 WHEN - CASE 91 WHEN - 72 THEN 64 END THEN NULL ELSE 67 + 48 * CASE 89 + + 44 WHEN 82 THEN NULL WHEN 71 + + 57 / + 38 THEN 32 + 67 ELSE NULL END END, CAST ( + 93 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT ALL + COUNT( * ) * - 18 + + 68 * - NULLIF ( - - 56, + 7 ) * 19 col2
----
-72370

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL + COUNT ( * ) * - 18 + + 68 * - NULLIF ( - - 56, + 7 ) * 19 col2
----
-72370

query I rowsort
SELECT + - 66 * + - 21 AS col0
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT - + CASE + COUNT( + 64 ) WHEN + - 4 / + 28 - + + 95 - 7 THEN NULL WHEN MIN( 42 ) THEN NULL ELSE 73 - 76 END - - 26 * CASE - 22 WHEN - 87 * - COUNT( * ) - + ( ( - 41 ) + 92 ) THEN COUNT( 57 ) WHEN + ( + 48 ) / - COUNT( * ) THEN + 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT - + CASE + COUNT ( + 64 ) WHEN + - 4 / + 28 - + + 95 - 7 THEN NULL WHEN MIN ( 42 ) THEN NULL ELSE 73 - 76 END - - 26 * CASE - 22 WHEN - 87 * - COUNT ( * ) - + ( ( - 41 ) + 92 ) THEN COUNT ( 57 ) WHEN + ( + 48 ) / - COUNT ( * ) THEN + 29 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT ALL - 11 * + COALESCE ( 52, - 8, CASE COUNT( * ) WHEN - - 64 THEN 59 END ) AS col0
----
-572

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL - 11 * + COALESCE ( 52, - 8, CASE COUNT ( * ) WHEN - - 64 THEN 59 END ) AS col0
----
-572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6203
SELECT + ( + - ( - + COUNT( * ) ) ) + + 86 * - ( - + COUNT( * ) ) * - 23 + + 71 * - 97 * 23 + + CASE + ( - 31 ) - ( 65 ) * - ( 9 * SUM( - CAST( + 63 AS SIGNED ) ) ) WHEN 16 * + 84 THEN 44 * + 93 + 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT + ( + - ( - + COUNT ( * ) ) ) + + 86 * - ( - + COUNT ( * ) ) * - 23 + + 71 * - 97 * 23 + + CASE + ( - 31 ) - ( 65 ) * - ( 9 * SUM ( - CAST ( + 63 AS INTEGER ) ) ) WHEN 16 * + 84 THEN 44 * + 93 + 76 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6204
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 25 + + CASE + 64 WHEN + - 33 * - 64 * 68 + - 0 * + 91 / - 29 + + 94 * + 52 THEN 13 ELSE 83 + CAST( NULL AS SIGNED ) * 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6204
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 25 + + CASE + 64 WHEN + - 33 * - 64 * 68 + - 0 * + 91 / - 29 + + 94 * + 52 THEN 13 ELSE 83 + CAST ( NULL AS INTEGER ) * 55 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6205
SELECT DISTINCT + - 26 DIV + 21 + + ( + 72 ) DIV - + 81 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT + - 26 / + 21 + + ( + 72 ) / - + 81 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6206
SELECT ALL - 36 DIV ( 98 ) + + - 5 + - 10 col0
----
-15

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL - 36 / ( 98 ) + + - 5 + - 10 col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-6207
SELECT + ( + + 25 ) * + 79 AS col2, + SUM( DISTINCT 12 ) * - 3 AS col2
----
1975
-36

skipif mysql # not compatible
query II rowsort label-6207
SELECT + ( + + 25 ) * + 79 AS col2, + SUM ( DISTINCT 12 ) * - 3 AS col2
----
1975
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT + SUM( ALL + - 32 ) + 24
----
-8

skipif mysql # not compatible
query I rowsort label-6208
SELECT + SUM ( ALL + - 32 ) + 24
----
-8

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6210
SELECT - COUNT( DISTINCT + 87 ) DIV + 27 - + 68 - - - 62 AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-6210
SELECT - COUNT ( DISTINCT + 87 ) / + 27 - + 68 - - - 62 AS col1
----
-130

query I rowsort
SELECT ALL ( - + 72 ) * + 36 * + 81
----
-209952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT CAST( + 89 AS SIGNED ) col0
----
89

skipif mysql # not compatible
query I rowsort label-6212
SELECT CAST ( + 89 AS INTEGER ) col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6213
SELECT - SUM( + 62 ) DIV + 22 + - + COUNT( * ) * - + MIN( ALL - 51 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6213
SELECT - SUM ( + 62 ) / + 22 + - + COUNT ( * ) * - + MIN ( ALL - 51 ) AS col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6214
SELECT ALL - 85 DIV + COUNT( * ) + + 0 AS col1, 35
----
-85
35

skipif mysql # not compatible
query II rowsort label-6214
SELECT ALL - 85 / + COUNT ( * ) + + 0 AS col1, 35
----
-85
35

query I rowsort
SELECT + 44 * 31 AS col2
----
1364

query I rowsort
SELECT ALL 9 * - 44
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT DISTINCT - 95 / + CASE - 35 WHEN + 19 + - 61 + COUNT( * ) * + + COUNT( * ) THEN - ( - 89 ) END * - MIN( DISTINCT + 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT - 95 / + CASE - 35 WHEN + 19 + - 61 + COUNT ( * ) * + + COUNT ( * ) THEN - ( - 89 ) END * - MIN ( DISTINCT + 18 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT DISTINCT 61 - + 23 + - - COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT 61 - + 23 + - - COUNT ( * ) AS col2
----
39

query II rowsort
SELECT 68 * + - 2 + + ( + ( - 51 ) ) col2, 15
----
-187
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT - 2 * - 55 + 94 DIV + 22
----
114

skipif mysql # not compatible
query I rowsort label-6220
SELECT - 2 * - 55 + 94 / + 22
----
114

query II rowsort
SELECT ALL - 3, - 58 + + + 86 col0
----
-3
28

query I rowsort
SELECT 38 + 29 AS col1
----
67

query II rowsort
SELECT + 25 AS col0, 65 AS col0
----
25
65

query I rowsort
SELECT 48 * + 16
----
768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6225
SELECT ALL + 5 * MAX( DISTINCT - CAST( - 48 AS SIGNED ) ) AS col0
----
240

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL + 5 * MAX ( DISTINCT - CAST ( - 48 AS INTEGER ) ) AS col0
----
240

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

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

query I rowsort
SELECT DISTINCT + - 2 * + 6
----
-12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6229
SELECT 45 DIV + 27 * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6229
SELECT 45 / + 27 * - + COUNT ( * )
----
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6231
SELECT 37 - + 29 + 24 DIV - COUNT( * ) - + 18 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-6231
SELECT 37 - + 29 + 24 / - COUNT ( * ) - + 18 AS col2
----
-34

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

skipif mysql # not compatible
query I rowsort label-6232
SELECT 24 / - + 35
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6233
SELECT - 79 + + 70 * + + ( + - 88 ) + + ( + - 92 ) * COUNT( * ) * - 16 * 68 - + + CAST( - 20 AS SIGNED ) AS col2
----
93877

skipif mysql # not compatible
query I rowsort label-6233
SELECT - 79 + + 70 * + + ( + - 88 ) + + ( + - 92 ) * COUNT ( * ) * - 16 * 68 - + + CAST ( - 20 AS INTEGER ) AS col2
----
93877

query I rowsort
SELECT 83 + + + 78 * + ( 9 ) - + - ( - 80 )
----
705

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

skipif mysql # not compatible
query I rowsort label-6235
SELECT - SUM ( DISTINCT - 12 )
----
12

query II rowsort
SELECT ALL - 91 + ( + 3 ) AS col0, - 75 AS col2
----
-88
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6237
SELECT 17 + + 55 + - 29 DIV + + 24 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6237
SELECT 17 + + 55 + - 29 / + + 24 AS col2
----
71

query I rowsort
SELECT ALL - 74 * - 65
----
4810

onlyif mysql # DIV for integer division: 
query I rowsort label-6239
SELECT + 10 DIV - + 94
----
0

skipif mysql # not compatible
query I rowsort label-6239
SELECT + 10 / - + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT DISTINCT - + NULLIF ( + - COUNT( * ), + 17 * + COUNT( * ) ) + + 70 * 39
----
2731

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT - + NULLIF ( + - COUNT ( * ), + 17 * + COUNT ( * ) ) + + 70 * 39
----
2731

query I rowsort
SELECT ALL + 99 * NULLIF ( - + 1, + 73 + - 53 * - 77 ) AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6242
SELECT - + NULLIF ( + - CAST( NULL AS SIGNED ), - CASE + 92 WHEN ( 43 ) THEN NULL ELSE 20 * - 36 * - 78 + MIN( 46 ) * + 28 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT - + NULLIF ( + - CAST ( NULL AS INTEGER ), - CASE + 92 WHEN ( 43 ) THEN NULL ELSE 20 * - 36 * - 78 + MIN ( 46 ) * + 28 END )
----
NULL

query I rowsort
SELECT - 77 + + + 53 AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6244
SELECT ALL + 39 * - COUNT( * ) - 85 + + 5 * - 87 + CAST( NULL AS DECIMAL ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL + 39 * - COUNT ( * ) - 85 + + 5 * - 87 + CAST ( NULL AS REAL ) * + COUNT ( * )
----
NULL

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

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

query II rowsort
SELECT + 36, 83 * - 95 AS col1
----
36
-7885

query I rowsort
SELECT ALL + 72 * - 18 * + 48 AS col1
----
-62208

query I rowsort
SELECT ALL - 0 - - 59 + + 89 AS col1
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6249
SELECT ALL 91 DIV ( - 77 ) * - COUNT( DISTINCT - 51 ) + - + 30 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL 91 / ( - 77 ) * - COUNT ( DISTINCT - 51 ) + - + 30 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT COUNT( DISTINCT + 56 ) * + + 88 * - 61 + - + 32 AS col2
----
-5400

skipif mysql # not compatible
query I rowsort label-6250
SELECT COUNT ( DISTINCT + 56 ) * + + 88 * - 61 + - + 32 AS col2
----
-5400

query I rowsort
SELECT ALL 8 - + 53
----
-45

query II rowsort
SELECT 43 AS col1, 87 + + 21
----
43
108

query I rowsort
SELECT + 35 * - 6 + + - ( + - 31 ) AS col2
----
-179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6254
SELECT ALL 55 DIV + COUNT( * ) col0
----
55

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL 55 / + COUNT ( * ) col0
----
55

query I rowsort
SELECT DISTINCT 90 * + 41
----
3690

query I rowsort
SELECT - 72 * - 12 + + + 5 + + 37
----
906

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT ALL 19 * COALESCE ( COUNT( * ), - ( - - 32 ) + - + 64 )
----
19

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL 19 * COALESCE ( COUNT ( * ), - ( - - 32 ) + - + 64 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ( 15 ) * - + 47 + - COUNT( DISTINCT - + 39 ) AS col0
----
-706

skipif mysql # not compatible
query I rowsort label-6258
SELECT ( 15 ) * - + 47 + - COUNT ( DISTINCT - + 39 ) AS col0
----
-706

query I rowsort
SELECT DISTINCT 54 * - 84 AS col0
----
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT ALL + COUNT( * ) * + COUNT( * ) - 37 + + - 3 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL + COUNT ( * ) * + COUNT ( * ) - 37 + + - 3 AS col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT ALL - - 12 DIV - 10 + 97 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL - - 12 / - 10 + 97 AS col0
----
96

query II rowsort
SELECT DISTINCT 55 AS col2, - 60 * - - 91 + 20 * - + 96 AS col2
----
55
-7380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6263
SELECT + - COALESCE ( + 53, SUM( DISTINCT 93 ) ) * - - 22 + SUM( - 85 ) + + 3 DIV + 33 * + 52
----
-1251

skipif mysql # not compatible
query I rowsort label-6263
SELECT + - COALESCE ( + 53, SUM ( DISTINCT 93 ) ) * - - 22 + SUM ( - 85 ) + + 3 / + 33 * + 52
----
-1251

query II rowsort
SELECT ALL - 3 AS col2, - 72
----
-3
-72

query II rowsort
SELECT - 33 AS col0, + 26
----
-33
26

query II rowsort
SELECT - 19 + - 56 AS col0, 14
----
-75
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT ALL - NULLIF ( + 44, + - 67 * + + COUNT( * ) ) + + 3
----
-41

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL - NULLIF ( + 44, + - 67 * + + COUNT ( * ) ) + + 3
----
-41

query I rowsort
SELECT DISTINCT - + 57 + 68 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT 31 * - 79 * + COUNT( * ) AS col0
----
-2449

skipif mysql # not compatible
query I rowsort label-6269
SELECT 31 * - 79 * + COUNT ( * ) AS col0
----
-2449

query I rowsort
SELECT ALL - NULLIF ( + 70, - + 11 ) + 81
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6271
SELECT DISTINCT + NULLIF ( + - CASE AVG ( ALL - 65 ) WHEN 68 - ( - - 4 ) * - ( SUM( 22 ) ) / + MAX( DISTINCT - 54 ) * 31 + + 70 + + 89 THEN + 28 WHEN CAST( AVG ( DISTINCT - 66 ) AS DECIMAL ) THEN NULL END, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT + NULLIF ( + - CASE AVG ( ALL - 65 ) WHEN 68 - ( - - 4 ) * - ( SUM ( 22 ) ) / + MAX ( DISTINCT - 54 ) * 31 + + 70 + + 89 THEN + 28 WHEN CAST ( AVG ( DISTINCT - 66 ) AS REAL ) THEN NULL END, COUNT ( * ) )
----
NULL

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

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

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

query I rowsort
SELECT 11 - 10 * 75 AS col1
----
-739

query I rowsort
SELECT - 35 * - - 80 * + 96 AS col2
----
-268800

query II rowsort
SELECT + 74, - ( - 41 ) AS col2
----
74
41

query I rowsort
SELECT 57 + + 79 AS col2
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-6278
SELECT 64, - MIN( + 4 ) AS col0
----
64
-4

skipif mysql # not compatible
query II rowsort label-6278
SELECT 64, - MIN ( + 4 ) AS col0
----
64
-4

query I rowsort
SELECT 23 - - - 0 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL CASE 43 WHEN - - ( - - MAX( ALL - 46 ) ) * - + 24 / 86 / + 19 THEN 62 + + 4 + + 37 + - 67 * 85 / CASE 97 WHEN + COALESCE ( - 22, + 46, 63 ) THEN + CASE - MAX( 66 ) WHEN - 65 THEN NULL WHEN 88 * + 56 THEN 21 END WHEN 69 THEN + 73 * MAX( 42 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL CASE 43 WHEN - - ( - - MAX ( ALL - 46 ) ) * - + 24 / 86 / + 19 THEN 62 + + 4 + + 37 + - 67 * 85 / CASE 97 WHEN + COALESCE ( - 22, + 46, 63 ) THEN + CASE - MAX ( 66 ) WHEN - 65 THEN NULL WHEN 88 * + 56 THEN 21 END WHEN 69 THEN + 73 * MAX ( 42 ) END END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6281
SELECT DISTINCT - CAST( - 78 AS SIGNED ) * 83 * + 25
----
161850

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT - CAST ( - 78 AS INTEGER ) * 83 * + 25
----
161850

onlyif mysql # DIV for integer division: 
query I rowsort label-6282
SELECT ALL - ( - - 36 ) DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL - ( - - 36 ) / + 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT - 97 * MIN( DISTINCT + + 43 )
----
-4171

skipif mysql # not compatible
query I rowsort label-6283
SELECT - 97 * MIN ( DISTINCT + + 43 )
----
-4171

query II rowsort
SELECT - 44 + - + NULLIF ( + CASE - + 64 WHEN + + 60 THEN NULL WHEN - 12 THEN 57 ELSE NULL END, 97 ) AS col0, 74 col1
----
NULL
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6285
SELECT COALESCE ( + COALESCE ( CASE 15 WHEN COALESCE ( - + COUNT( * ), - 96 ) THEN NULL ELSE + CAST( + 44 AS SIGNED ) + + + 9 - 26 END, + - MIN( 20 ), 74 ), - 3 * - 68 + 29 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6285
SELECT COALESCE ( + COALESCE ( CASE 15 WHEN COALESCE ( - + COUNT ( * ), - 96 ) THEN NULL ELSE + CAST ( + 44 AS INTEGER ) + + + 9 - 26 END, + - MIN ( 20 ), 74 ), - 3 * - 68 + 29 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT + SUM( ALL + 42 ) col0
----
42

skipif mysql # not compatible
query I rowsort label-6286
SELECT + SUM ( ALL + 42 ) col0
----
42

query II rowsort
SELECT DISTINCT + ( 62 ), + 99 AS col1
----
62
99

query I rowsort
SELECT DISTINCT - ( + 66 ) * + - 81 AS col1
----
5346

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6290
SELECT SUM( DISTINCT + - 22 ) AS col1, - 89 * + 23 AS col2
----
-22
-2047

skipif mysql # not compatible
query II rowsort label-6290
SELECT SUM ( DISTINCT + - 22 ) AS col1, - 89 * + 23 AS col2
----
-22
-2047

query I rowsort
SELECT + 72 * 40 * + 10 + - 4 - + + 97 * - 12 * 9 AS col2
----
39272

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

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

query II rowsort
SELECT + + 29 * + 51 AS col0, 64
----
1479
64

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6295
SELECT - MAX( DISTINCT - - 51 ) AS col0, + 38 AS col0
----
-51
38

skipif mysql # not compatible
query II rowsort label-6295
SELECT - MAX ( DISTINCT - - 51 ) AS col0, + 38 AS col0
----
-51
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT ALL - 55 + 15 - COALESCE ( + COUNT( * ), + - NULLIF ( + 79, 76 * 23 + + - 93 ), - 71 + + 53 ) * - - 86 AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL - 55 + 15 - COALESCE ( + COUNT ( * ), + - NULLIF ( + 79, 76 * 23 + + - 93 ), - 71 + + 53 ) * - - 86 AS col1
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6297
SELECT ALL + 74 + - 37 DIV + + MAX( ALL 49 )
----
74

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL + 74 + - 37 / + + MAX ( ALL 49 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL SUM( DISTINCT + 88 ) + 87 + 46 AS col0
----
221

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL SUM ( DISTINCT + 88 ) + 87 + 46 AS col0
----
221

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6300
SELECT - - 3 - - 32 * + 8 * COALESCE ( + 25, - 52 ) - + COUNT( * ) AS col1, 62 * + 40 AS col0
----
6402
2480

skipif mysql # not compatible
query II rowsort label-6300
SELECT - - 3 - - 32 * + 8 * COALESCE ( + 25, - 52 ) - + COUNT ( * ) AS col1, 62 * + 40 AS col0
----
6402
2480

query I rowsort
SELECT + - 33 + - 64 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT - + 28 - 4 - - 76 * COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-6302
SELECT - + 28 - 4 - - 76 * COUNT ( * )
----
44

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6303
SELECT - - 53 + + CAST( NULL AS DECIMAL ) AS col0, + ( - COALESCE ( + 50, + - 28, + 83 * 98 + NULLIF ( - - 83, CAST( 51 AS SIGNED ) ) ) ) * 78 AS col0
----
NULL
-3900

skipif mysql # not compatible
query II rowsort label-6303
SELECT - - 53 + + CAST ( NULL AS REAL ) AS col0, + ( - COALESCE ( + 50, + - 28, + 83 * 98 + NULLIF ( - - 83, CAST ( 51 AS INTEGER ) ) ) ) * 78 AS col0
----
NULL
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL CASE 41 WHEN + + 23 THEN NULL WHEN - COUNT( * ) / - CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 1 END THEN 53 ELSE + ( ( + 5 ) ) END
----
5

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL CASE 41 WHEN + + 23 THEN NULL WHEN - COUNT ( * ) / - CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 1 END THEN 53 ELSE + ( ( + 5 ) ) END
----
5

query I rowsort
SELECT ALL - 8 * - 30
----
240

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

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL ( + + COUNT ( * ) ) - 70 + + + COUNT ( * ) AS col0
----
-68

query I rowsort
SELECT - 56 + - 8
----
-64

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

query I rowsort
SELECT - 74 * 2
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL - ( + COUNT( DISTINCT + 5 ) ) * - 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL - ( + COUNT ( DISTINCT + 5 ) ) * - 12 AS col0
----
12

query I rowsort
SELECT + 85 + + - 4 * 48 col0
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6312
SELECT - CAST( + + 80 AS SIGNED ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-6312
SELECT - CAST ( + + 80 AS INTEGER ) col2
----
-80

query II rowsort
SELECT 25 AS col2, 66
----
25
66

query I rowsort
SELECT + 65 * 1 + - 15
----
50

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

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

query I rowsort
SELECT - 38 * 83 AS col1
----
-3154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6317
SELECT - COUNT( * ) * 91 DIV - 43 col0
----
2

skipif mysql # not compatible
query I rowsort label-6317
SELECT - COUNT ( * ) * 91 / - 43 col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6318
SELECT - 14 * + CAST( + + 89 AS SIGNED )
----
-1246

skipif mysql # not compatible
query I rowsort label-6318
SELECT - 14 * + CAST ( + + 89 AS INTEGER )
----
-1246

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6319
SELECT ALL + 46 * - 33 * + SUM( - ( - - CAST( NULL AS DECIMAL ) ) ) * 44 * - AVG ( + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL + 46 * - 33 * + SUM ( - ( - - CAST ( NULL AS REAL ) ) ) * 44 * - AVG ( + 9 )
----
NULL

query II rowsort
SELECT DISTINCT + 37 * + 16 * - 62, 5 AS col2
----
-36704
5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL COUNT( - 67 ) * 1 * - - 51 + - 14
----
37

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL COUNT ( - 67 ) * 1 * - - 51 + - 14
----
37

query I rowsort
SELECT ( + - 29 ) col1
----
-29

query I rowsort
SELECT - - 39 * - 33
----
-1287

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

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

query II rowsort
SELECT DISTINCT + + 75 AS col1, 76 col1
----
75
76

query II rowsort
SELECT DISTINCT + 63 AS col2, + 94 AS col1
----
63
94

query I rowsort
SELECT ALL - + 14 * + + 10 + 72 AS col0
----
-68

query I rowsort
SELECT - 54 * - + 81 AS col0
----
4374

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT DISTINCT - COUNT( * ) * 89 * + 79 + + 97 - - 24 + 12
----
-6898

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT - COUNT ( * ) * 89 * + 79 + + 97 - - 24 + 12
----
-6898

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6333
SELECT - - 12 * CAST( - + 42 AS SIGNED ) * + 54 + ( + 60 ) + 35 * - 41 + 83 + - + 63 * 84 * - + CAST( - 87 AS SIGNED ) * - MAX( ALL 73 + + 98 ) + COUNT( * ) DIV 50
----
78700576

skipif mysql # not compatible
query I rowsort label-6333
SELECT - - 12 * CAST ( - + 42 AS INTEGER ) * + 54 + ( + 60 ) + 35 * - 41 + 83 + - + 63 * 84 * - + CAST ( - 87 AS INTEGER ) * - MAX ( ALL 73 + + 98 ) + COUNT ( * ) / 50
----
78700576

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT + 44 * + COUNT( * ) * - COALESCE ( - 9, + + COUNT( * ) ) + - 18 * + 23 * + - NULLIF ( - COUNT( * ), + + 25 + NULLIF ( + 35, COALESCE ( + 87, + 47 * + 11 ) * - 80 ) + - 8 * - 45 / 87 )
----
-18

skipif mysql # not compatible
query I rowsort label-6335
SELECT + 44 * + COUNT ( * ) * - COALESCE ( - 9, + + COUNT ( * ) ) + - 18 * + 23 * + - NULLIF ( - COUNT ( * ), + + 25 + NULLIF ( + 35, COALESCE ( + 87, + 47 * + 11 ) * - 80 ) + - 8 * - 45 / 87 )
----
-18

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT + - 57 + - 32 * - - 36 DIV 18 + 18 * - 21 AS col2
----
-499

skipif mysql # not compatible
query I rowsort label-6337
SELECT + - 57 + - 32 * - - 36 / 18 + 18 * - 21 AS col2
----
-499

query I rowsort
SELECT - 57 * + 18 * - - 48 AS col1
----
-49248

query I rowsort
SELECT ALL 14 * 85 col0
----
1190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6340
SELECT ALL COUNT( ALL 48 ) * - CAST( NULL AS SIGNED ), - 8 AS col0
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-6340
SELECT ALL COUNT ( ALL 48 ) * - CAST ( NULL AS INTEGER ), - 8 AS col0
----
NULL
-8

query I rowsort
SELECT ALL 3 * - 65 AS col2
----
-195

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

skipif mysql # not compatible
query I rowsort label-6342
SELECT CAST ( NULL AS INTEGER ) / + - 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6343
SELECT COALESCE ( - COUNT( * ), + 69, COUNT( * ) + + 95 + - + 27 ) * + 11 AS col2, ( - ( 25 ) )
----
-11
-25

skipif mysql # not compatible
query II rowsort label-6343
SELECT COALESCE ( - COUNT ( * ), + 69, COUNT ( * ) + + 95 + - + 27 ) * + 11 AS col2, ( - ( 25 ) )
----
-11
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT 22 + + 62 + COUNT( * ) * - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6344
SELECT 22 + + 62 + COUNT ( * ) * - COUNT ( * ) AS col0
----
83

query I rowsort
SELECT ALL + 78 + - - 15 + 35 AS col2
----
128

query I rowsort
SELECT ALL - 23 + - + 67
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6347
SELECT 57 - 24 DIV + + 64
----
57

skipif mysql # not compatible
query I rowsort label-6347
SELECT 57 - 24 / + + 64
----
57

query I rowsort
SELECT DISTINCT + 60 + ( 95 ) AS col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT ( - - MIN( - 15 ) ) - + + ( + ( - ( 96 ) ) ) * - COUNT( * )
----
-111

skipif mysql # not compatible
query I rowsort label-6349
SELECT ( - - MIN ( - 15 ) ) - + + ( + ( - ( 96 ) ) ) * - COUNT ( * )
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL + SUM( ALL + + 32 ) * - 70 + - ( + + 83 ) AS col1
----
-2323

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL + SUM ( ALL + + 32 ) * - 70 + - ( + + 83 ) AS col1
----
-2323

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT ALL 90 + 93 DIV 47
----
91

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL 90 + 93 / 47
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT COALESCE ( + COUNT( * ), + 42 ) * - 94
----
-94

skipif mysql # not compatible
query I rowsort label-6352
SELECT COALESCE ( + COUNT ( * ), + 42 ) * - 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT DISTINCT 25 + 59 * - COUNT( * ) * + 37 * + 2
----
-4341

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT 25 + 59 * - COUNT ( * ) * + 37 * + 2
----
-4341

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT 99 * + + MIN( DISTINCT - 44 )
----
-4356

skipif mysql # not compatible
query I rowsort label-6355
SELECT 99 * + + MIN ( DISTINCT - 44 )
----
-4356

onlyif mysql # aggregate syntax: 
query II rowsort label-6356
SELECT DISTINCT - MIN( - - 99 ), 57 * - - 44 * + 6 col1
----
-99
15048

skipif mysql # not compatible
query II rowsort label-6356
SELECT DISTINCT - MIN ( - - 99 ), 57 * - - 44 * + 6 col1
----
-99
15048

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT DISTINCT + ( 46 ) + + - 69 + - + 51 - 57 * 12 * - MAX( DISTINCT 71 ) + - - 47 * + - 48
----
46234

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT + ( 46 ) + + - 69 + - + 51 - 57 * 12 * - MAX ( DISTINCT 71 ) + - - 47 * + - 48
----
46234

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6359
SELECT ALL + COUNT( * ) + - 36 AS col0, + 65
----
-35
65

skipif mysql # not compatible
query II rowsort label-6359
SELECT ALL + COUNT ( * ) + - 36 AS col0, + 65
----
-35
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6360
SELECT + COUNT( * ) DIV ( - 42 ) DIV + ( COUNT( * ) ) + 62
----
62

skipif mysql # not compatible
query I rowsort label-6360
SELECT + COUNT ( * ) / ( - 42 ) / + ( COUNT ( * ) ) + 62
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6361
SELECT ALL - 96 + + 67 - + 5 * + - 1 * - 73 / + - 20 + - 40 + 30 * - - 80 * - - CASE WHEN 40 IS NULL THEN NULL WHEN NOT 80 <> - 31 THEN CAST( + COUNT( * ) AS SIGNED ) - + COALESCE ( COALESCE ( + 35, COUNT( * ) + COUNT( * ) * - 47, 16 ), COALESCE ( - 18, 95 ) / - 73, 23 * - 58, - 71 ) * - 31 ELSE NULL END + 60 / MIN( ALL 11 * 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL - 96 + + 67 - + 5 * + - 1 * - 73 / + - 20 + - 40 + 30 * - - 80 * - - CASE WHEN 40 IS NULL THEN NULL WHEN NOT 80 <> - 31 THEN CAST ( + COUNT ( * ) AS INTEGER ) - + COALESCE ( COALESCE ( + 35, COUNT ( * ) + COUNT ( * ) * - 47, 16 ), COALESCE ( - 18, 95 ) / - 73, 23 * - 58, - 71 ) * - 31 ELSE NULL END + 60 / MIN ( ALL 11 * 66 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT + - COALESCE ( - + 68, + ( - CASE + NULLIF ( - 21, + + 45 ) WHEN COUNT( + 44 ) THEN NULL WHEN + ( - 1 ) * 32 THEN NULL WHEN - COALESCE ( - 71, 15 + + COUNT( 16 ) ) THEN ( 53 ) + + 55 END ) )
----
68

skipif mysql # not compatible
query I rowsort label-6362
SELECT + - COALESCE ( - + 68, + ( - CASE + NULLIF ( - 21, + + 45 ) WHEN COUNT ( + 44 ) THEN NULL WHEN + ( - 1 ) * 32 THEN NULL WHEN - COALESCE ( - 71, 15 + + COUNT ( 16 ) ) THEN ( 53 ) + + 55 END ) )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6363
SELECT ALL - 16 + - 13 col0, + COUNT( * ) + + 84
----
-29
85

skipif mysql # not compatible
query II rowsort label-6363
SELECT ALL - 16 + - 13 col0, + COUNT ( * ) + + 84
----
-29
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT ALL + MAX( ALL - 67 ) * 85 AS col0
----
-5695

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL + MAX ( ALL - 67 ) * 85 AS col0
----
-5695

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT ALL + 47 DIV 48 DIV + - 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL + 47 / 48 / + - 40 AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6367
SELECT - 88 * - 0 + + 75 * + - 63 + + - CAST( NULL AS SIGNED ) * - ( - + 48 ) AS col0, - 39 AS col2
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-6367
SELECT - 88 * - 0 + + 75 * + - 63 + + - CAST ( NULL AS INTEGER ) * - ( - + 48 ) AS col0, - 39 AS col2
----
NULL
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT - 45 + - COUNT( * ) + 37
----
-9

skipif mysql # not compatible
query I rowsort label-6368
SELECT - 45 + - COUNT ( * ) + 37
----
-9

query I rowsort
SELECT DISTINCT - 53 - + 19 * - - 63 col0
----
-1250

query I rowsort
SELECT DISTINCT + 62 * - - 20 * - 75 AS col0
----
-93000

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT - COUNT( * ) * + 37 + + 32 + - 72
----
-77

skipif mysql # not compatible
query I rowsort label-6371
SELECT - COUNT ( * ) * + 37 + + 32 + - 72
----
-77

query II rowsort
SELECT ALL + ( - 36 ) AS col2, - 85
----
-36
-85

query I rowsort
SELECT 62 * - 68 * + 55
----
-231880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6374
SELECT + CAST( + 6 AS SIGNED ) + - 75 * + 71 + + - MIN( DISTINCT 38 ) AS col0
----
-5357

skipif mysql # not compatible
query I rowsort label-6374
SELECT + CAST ( + 6 AS INTEGER ) + - 75 * + 71 + + - MIN ( DISTINCT 38 ) AS col0
----
-5357

query I rowsort
SELECT 13 + - + 15 AS col0
----
-2

query I rowsort
SELECT 22 + COALESCE ( - 82, 65 * 82 + 8, + 82 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6377
SELECT CASE + 29 WHEN - 95 THEN 96 + - 27 WHEN 96 * - CAST( NULL AS SIGNED ) / - 1 + - 77 - + + 79 * - CAST( NULL AS SIGNED ) THEN NULL WHEN 15 THEN - - CAST( COUNT( * ) AS SIGNED ) + - 69 + 0 * 40 / + 30 END + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT CASE + 29 WHEN - 95 THEN 96 + - 27 WHEN 96 * - CAST ( NULL AS INTEGER ) / - 1 + - 77 - + + 79 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN 15 THEN - - CAST ( COUNT ( * ) AS INTEGER ) + - 69 + 0 * 40 / + 30 END + - 43
----
NULL

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

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

query I rowsort
SELECT 32 + + 52
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6380
SELECT MAX( ALL + 4 ) + + 3 AS col1, - COUNT( * )
----
7
-1

skipif mysql # not compatible
query II rowsort label-6380
SELECT MAX ( ALL + 4 ) + + 3 AS col1, - COUNT ( * )
----
7
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT DISTINCT 91 * - - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT 91 * - - COUNT ( * ) AS col1
----
91

query I rowsort
SELECT DISTINCT 50 + + 23
----
73

query I rowsort
SELECT ALL 26 + + ( 23 ) * + + 30 + 86 + 90
----
892

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT DISTINCT - CASE + 32 WHEN - 47 THEN NULL ELSE - 30 END + 98 + 44 - 5 + + + 35 * SUM( ALL - 22 ) * 69 * - COUNT( * ) + + CASE - COUNT( * ) WHEN - + SUM( + ( 96 ) ) THEN - 96 - 73 WHEN 35 * - 93 THEN 47 + - 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT - CASE + 32 WHEN - 47 THEN NULL ELSE - 30 END + 98 + 44 - 5 + + + 35 * SUM ( ALL - 22 ) * 69 * - COUNT ( * ) + + CASE - COUNT ( * ) WHEN - + SUM ( + ( 96 ) ) THEN - 96 - 73 WHEN 35 * - 93 THEN 47 + - 95 END
----
NULL

query I rowsort
SELECT ALL 90 + 18 AS col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6387
SELECT ALL 49 + + 93 / - - 60 * NULLIF ( ( - ( CASE + - COUNT( DISTINCT - 50 ) WHEN - 77 * 9 THEN - - 2 END ) ), - 1 - - CASE - 80 WHEN + 48 * + 77 THEN NULL WHEN - 37 THEN COUNT( * ) ELSE - CAST( NULL AS DECIMAL ) - - 73 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL 49 + + 93 / - - 60 * NULLIF ( ( - ( CASE + - COUNT ( DISTINCT - 50 ) WHEN - 77 * 9 THEN - - 2 END ) ), - 1 - - CASE - 80 WHEN + 48 * + 77 THEN NULL WHEN - 37 THEN COUNT ( * ) ELSE - CAST ( NULL AS REAL ) - - 73 END )
----
NULL

query II rowsort
SELECT 44 AS col1, 97 + - ( 36 ) * + - COALESCE ( + 4, - 89, - + 19, 71 )
----
44
241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6389
SELECT SUM( CAST( + 39 AS SIGNED ) ) + + COALESCE ( + MIN( DISTINCT 72 ), - 58 ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-6389
SELECT SUM ( CAST ( + 39 AS INTEGER ) ) + + COALESCE ( + MIN ( DISTINCT 72 ), - 58 ) AS col1
----
111

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

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

query I rowsort
SELECT 92 * 84
----
7728

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT - 18 * + 62 * - - 68 * ( + COUNT( * ) ) + MIN( ALL + 77 ) col0
----
-75811

skipif mysql # not compatible
query I rowsort label-6392
SELECT - 18 * + 62 * - - 68 * ( + COUNT ( * ) ) + MIN ( ALL + 77 ) col0
----
-75811

query I rowsort
SELECT ALL 68 * 64 + + 8 + 60
----
4420

query II rowsort
SELECT DISTINCT - 14, 42 AS col0
----
-14
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6395
SELECT + 27 * + + CASE - + ( 22 ) WHEN - - 77 THEN - - 9 WHEN - ( - 66 ) * CASE + 24 WHEN 20 THEN - 39 WHEN - + 72 THEN + 0 ELSE 84 * 52 END * MAX( 58 ) THEN CAST( NULL AS SIGNED ) + + 30 * 29 END * 97 + - 48 * 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6395
SELECT + 27 * + + CASE - + ( 22 ) WHEN - - 77 THEN - - 9 WHEN - ( - 66 ) * CASE + 24 WHEN 20 THEN - 39 WHEN - + 72 THEN + 0 ELSE 84 * 52 END * MAX ( 58 ) THEN CAST ( NULL AS INTEGER ) + + 30 * 29 END * 97 + - 48 * 55 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ALL - - COUNT( * ) * - 79 * + 86 - - 92
----
-6702

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL - - COUNT ( * ) * - 79 * + 86 - - 92
----
-6702

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6398
SELECT ALL - - 19 AS col1, COUNT( * ) DIV - COUNT( * ) + + 5 + + 37
----
19
41

skipif mysql # not compatible
query II rowsort label-6398
SELECT ALL - - 19 AS col1, COUNT ( * ) / - COUNT ( * ) + + 5 + + 37
----
19
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT + 94 * COUNT( DISTINCT 93 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-6399
SELECT + 94 * COUNT ( DISTINCT 93 ) AS col2
----
94

query II rowsort
SELECT ALL - - 46, 10 AS col1
----
46
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT - NULLIF ( + + 21, - 79 + - + 31 + MIN( + 59 ) * + 97 + + + ( - AVG ( ALL - - 60 ) ) * + 63 + - 23 ) * + + 92 AS col2
----
-1932

skipif mysql # not compatible
query I rowsort label-6402
SELECT - NULLIF ( + + 21, - 79 + - + 31 + MIN ( + 59 ) * + 97 + + + ( - AVG ( ALL - - 60 ) ) * + 63 + - 23 ) * + + 92 AS col2
----
-1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6403
SELECT ALL - 24 * - - 97 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL - 24 * - - 97 * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL + 11 col0
----
11

query I rowsort
SELECT - + 80 * - 72
----
5760

query I rowsort
SELECT ALL - 69 * - - 80 - + + 93 * 93 * + 43 + + 10 + - 61
----
-377478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6407
SELECT - 75 DIV + + COALESCE ( - - 29, COUNT( * ) + 93 ) + 63 * - - 74 AS col0
----
4660

skipif mysql # not compatible
query I rowsort label-6407
SELECT - 75 / + + COALESCE ( - - 29, COUNT ( * ) + 93 ) + 63 * - - 74 AS col0
----
4660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6408
SELECT + + COALESCE ( - COUNT( * ), + - 83 DIV - - 58 - + + 21 + + 50 * - + 78 + + COALESCE ( - 3, + COUNT( * ) ), COUNT( * ) * - 45 * - 1 + + 85 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6408
SELECT + + COALESCE ( - COUNT ( * ), + - 83 / - - 58 - + + 21 + + 50 * - + 78 + + COALESCE ( - 3, + COUNT ( * ) ), COUNT ( * ) * - 45 * - 1 + + 85 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT + + COUNT( DISTINCT - - 87 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6409
SELECT + + COUNT ( DISTINCT - - 87 ) col2
----
1

query I rowsort
SELECT + 45 * 83 AS col2
----
3735

query I rowsort
SELECT ALL + 96 * - 9 * + - 43
----
37152

query II rowsort
SELECT 41 AS col0, 25 * - 11
----
41
-275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6413
SELECT - 37, 45 + - CAST( NULL AS SIGNED ) * ( + + 74 ) / + COUNT( * ) + COUNT( * ) + + 6 AS col0
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-6413
SELECT - 37, 45 + - CAST ( NULL AS INTEGER ) * ( + + 74 ) / + COUNT ( * ) + COUNT ( * ) + + 6 AS col0
----
-37
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6414
SELECT ALL COUNT( * ) AS col2, + 60 * + - COUNT( * ) * - 89 - + - 48 * - 27
----
1
4044

skipif mysql # not compatible
query II rowsort label-6414
SELECT ALL COUNT ( * ) AS col2, + 60 * + - COUNT ( * ) * - 89 - + - 48 * - 27
----
1
4044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT ALL + 60 + - - CAST( NULL AS SIGNED ) + 96 / - 81 + - 19 - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL + 60 + - - CAST ( NULL AS INTEGER ) + 96 / - 81 + - 19 - + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT DISTINCT + 78 + 4 + + MAX( - - 90 )
----
172

skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT + 78 + 4 + + MAX ( - - 90 )
----
172

query II rowsort
SELECT ALL 51, 48 AS col1
----
51
48

query II rowsort
SELECT 41 col1, ( + - 91 )
----
41
-91

query II rowsort
SELECT - 43 * + 15 AS col0, + 29
----
-645
29

query I rowsort
SELECT ALL - 60 + + - 51
----
-111

query I rowsort
SELECT - 55 + - 36 AS col1
----
-91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6423
SELECT - 72 DIV 23 * + 76 AS col2
----
-228

skipif mysql # not compatible
query I rowsort label-6423
SELECT - 72 / 23 * + 76 AS col2
----
-228

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT - COUNT( 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-6425
SELECT - COUNT ( 60 )
----
-1

query I rowsort
SELECT ALL ( - ( - 62 ) ) AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6427
SELECT DISTINCT - 33 DIV - MIN( DISTINCT - 23 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT - 33 / - MIN ( DISTINCT - 23 ) AS col2
----
-1

query I rowsort
SELECT + 13 * - 25
----
-325

query I rowsort
SELECT ALL 37 * 81 AS col0
----
2997

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT ALL SUM( ALL 27 ) - COALESCE ( 11, - 13 )
----
16

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL SUM ( ALL 27 ) - COALESCE ( 11, - 13 )
----
16

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

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

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

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

query I rowsort
SELECT DISTINCT CASE + ( - 58 ) WHEN - + 35 THEN + 91 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6434
SELECT - 78 DIV 24 * - ( + COUNT( * ) ) + 29 + + 0 * MAX( DISTINCT 57 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-6434
SELECT - 78 / 24 * - ( + COUNT ( * ) ) + 29 + + 0 * MAX ( DISTINCT 57 ) AS col1
----
32

query I rowsort
SELECT + ( - - 1 ) * + 67 * 33 * + 97 / + CASE 92 WHEN + 7 + + 61 THEN - AVG ( DISTINCT + 1 ) * - 20 * + COALESCE ( + 23, 6 + + - 86, + ( - 9 ) + ( 91 ) ) + 8 END + 20 AS col1
----
NULL

query I rowsort
SELECT + 61 * + 15 col2
----
915

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT ALL + MAX( DISTINCT COALESCE ( - 5, 5, + + 0 ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL + MAX ( DISTINCT COALESCE ( - 5, 5, + + 0 ) ) AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6438
SELECT - CASE - - 34 WHEN - 35 THEN + CAST( NULL AS SIGNED ) WHEN 76 / + ( - 31 ) + CASE - 95 WHEN - COUNT( * ) * 3 + 73 THEN - + 99 * - COALESCE ( + COUNT( DISTINCT + + 0 ), COUNT( * ) ) * 63 + - CAST( 21 AS SIGNED ) WHEN + ( - 64 ) THEN NULL ELSE 85 END + ( 29 - - ( NULLIF ( + 11, 23 * - 0 + - 36 ) + - AVG ( ALL + 67 ) ) ) THEN - 43 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6438
SELECT - CASE - - 34 WHEN - 35 THEN + CAST ( NULL AS INTEGER ) WHEN 76 / + ( - 31 ) + CASE - 95 WHEN - COUNT ( * ) * 3 + 73 THEN - + 99 * - COALESCE ( + COUNT ( DISTINCT + + 0 ), COUNT ( * ) ) * 63 + - CAST ( 21 AS INTEGER ) WHEN + ( - 64 ) THEN NULL ELSE 85 END + ( 29 - - ( NULLIF ( + 11, 23 * - 0 + - 36 ) + - AVG ( ALL + 67 ) ) ) THEN - 43 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT + COUNT( * ) - 3
----
-2

skipif mysql # not compatible
query I rowsort label-6439
SELECT + COUNT ( * ) - 3
----
-2

query II rowsort
SELECT DISTINCT + - 93 AS col0, 41
----
-93
41

query I rowsort
SELECT DISTINCT 76 * - 59 * - 79
----
354236

query I rowsort
SELECT 23 * + + 24 + - - 75
----
627

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT DISTINCT + COUNT( * ) * 94 + + COALESCE ( 22, + 27 ) AS col1
----
116

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT + COUNT ( * ) * 94 + + COALESCE ( 22, + 27 ) AS col1
----
116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT + - SUM( ALL - 5 ) + ( + + 94 ) col0
----
99

skipif mysql # not compatible
query I rowsort label-6445
SELECT + - SUM ( ALL - 5 ) + ( + + 94 ) col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT - 27 * + + MAX( DISTINCT - - 3 )
----
-81

skipif mysql # not compatible
query I rowsort label-6446
SELECT - 27 * + + MAX ( DISTINCT - - 3 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT CASE - 45 WHEN - COUNT( DISTINCT + - 48 ) - - + 20 THEN + 17 / + CASE CASE - NULLIF ( 99, + COUNT( * ) / + 29 + - - 50 + - 62 ) WHEN + COUNT( * ) * - + 80 - 98 + ( 35 ) THEN NULL WHEN - 78 THEN 77 ELSE NULL END WHEN 73 THEN - MAX( ALL 48 ) END * - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6447
SELECT CASE - 45 WHEN - COUNT ( DISTINCT + - 48 ) - - + 20 THEN + 17 / + CASE CASE - NULLIF ( 99, + COUNT ( * ) / + 29 + - - 50 + - 62 ) WHEN + COUNT ( * ) * - + 80 - 98 + ( 35 ) THEN NULL WHEN - 78 THEN 77 ELSE NULL END WHEN 73 THEN - MAX ( ALL 48 ) END * - COUNT ( * ) ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT + 91 + - + SUM( ALL 34 )
----
57

skipif mysql # not compatible
query I rowsort label-6449
SELECT + 91 + - + SUM ( ALL 34 )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6450
SELECT ALL - 19 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL - 19 / + 53
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6451
SELECT + 17 * + ( - 85 ) + + 78 - + + COUNT( * ), - 29 DIV 6 col1
----
-1368
-4

skipif mysql # not compatible
query II rowsort label-6451
SELECT + 17 * + ( - 85 ) + + 78 - + + COUNT ( * ), - 29 / 6 col1
----
-1368
-4

query I rowsort
SELECT + 55 * - - 24
----
1320

query I rowsort
SELECT + 32 * + 32
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT - 37 + + 40 + + + 99 - + 26 * - 69 * + - COUNT( * ) AS col2
----
-1692

skipif mysql # not compatible
query I rowsort label-6454
SELECT - 37 + + 40 + + + 99 - + 26 * - 69 * + - COUNT ( * ) AS col2
----
-1692

query II rowsort
SELECT DISTINCT - 47 - + + 15, + 58 AS col2
----
-62
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT ALL - COALESCE ( + 63, + 74 ) - - COUNT( * ) col1
----
-62

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL - COALESCE ( + 63, + 74 ) - - COUNT ( * ) col1
----
-62

query I rowsort
SELECT DISTINCT - 11 - - 53 + + 61 AS col2
----
103

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

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

query I rowsort
SELECT + 65 * - 85
----
-5525

query I rowsort
SELECT - - COALESCE ( - + 47, + 51 ) + 6 * + 70 - - 34 AS col2
----
407

query I rowsort
SELECT ALL + CASE - - 68 WHEN + - 28 - 12 THEN 13 * - NULLIF ( + 77, + ( - 46 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6462
SELECT - + 54 + + 51 + - 61 * - CASE + 28 WHEN COUNT( 92 ) THEN 46 WHEN COUNT( * ) THEN NULL ELSE - 80 * 33 END DIV + 6, - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) - + 45 - - + 12 AS col0
----
-26843
-33

skipif mysql # not compatible
query II rowsort label-6462
SELECT - + 54 + + 51 + - 61 * - CASE + 28 WHEN COUNT ( 92 ) THEN 46 WHEN COUNT ( * ) THEN NULL ELSE - 80 * 33 END / + 6, - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) - + 45 - - + 12 AS col0
----
-26843
-33

query I rowsort
SELECT - - ( - 84 ) * 15
----
-1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6464
SELECT - 93 DIV - - COUNT( * ) + 78 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6464
SELECT - 93 / - - COUNT ( * ) + 78 AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT 61 DIV 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6465
SELECT 61 / 95 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6466
SELECT ALL - 24 / + 5 + + CASE + + 97 WHEN + CAST( - - 57 AS SIGNED ) + + COUNT( * ) + NULLIF ( - + 10, 88 + 65 * - 4 ) * 7 + - 97 THEN - ( + + 0 ) END + 31 * + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - 24 / + 5 + + CASE + + 97 WHEN + CAST ( - - 57 AS INTEGER ) + + COUNT ( * ) + NULLIF ( - + 10, 88 + 65 * - 4 ) * 7 + - 97 THEN - ( + + 0 ) END + 31 * + 50 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + - ( 65 ), - + 68 - - - 4 )
----
65

query I rowsort
SELECT 38 * + 55 + - 90
----
2000

query II rowsort
SELECT ALL - 32 + 91 AS col1, 81 col1
----
59
81

query I rowsort
SELECT ALL + 74 * 30 AS col2
----
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT - - 31 * + COUNT( * ) + + - 82 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-6471
SELECT - - 31 * + COUNT ( * ) + + - 82 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL - 83 + COUNT( DISTINCT - 64 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL - 83 + COUNT ( DISTINCT - 64 ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT CASE - + 19 WHEN 28 THEN - COUNT( * ) WHEN + - CASE + - ( - 29 ) WHEN + NULLIF ( + 23, COUNT( * ) ) * - 35 * - 64 THEN NULL ELSE 98 - - 54 END + 92 * - 54 THEN - 91 ELSE NULL END / - 19 + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT CASE - + 19 WHEN 28 THEN - COUNT ( * ) WHEN + - CASE + - ( - 29 ) WHEN + NULLIF ( + 23, COUNT ( * ) ) * - 35 * - 64 THEN NULL ELSE 98 - - 54 END + 92 * - 54 THEN - 91 ELSE NULL END / - 19 + 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6474
SELECT + NULLIF ( NULLIF ( 66, + - NULLIF ( - - 65, + 61 ) - CASE + COUNT( * ) WHEN 37 THEN + + 37 END ), - 97 - + 51 ) DIV - + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-6474
SELECT + NULLIF ( NULLIF ( 66, + - NULLIF ( - - 65, + 61 ) - CASE + COUNT ( * ) WHEN 37 THEN + + 37 END ), - 97 - + 51 ) / - + COUNT ( * )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6475
SELECT ALL 54 + - ( 40 ) - MIN( ALL - + CAST( NULL AS SIGNED ) ) * + 83 + + COUNT( * ) * - 12 * + 52 / COUNT( * ) * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL 54 + - ( 40 ) - MIN ( ALL - + CAST ( NULL AS INTEGER ) ) * + 83 + + COUNT ( * ) * - 12 * + 52 / COUNT ( * ) * + 6
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6476
SELECT ALL - CAST( 8 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL - CAST ( 8 AS INTEGER )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6477
SELECT DISTINCT - COUNT( - - 38 ) + - 84 AS col0, + 53 AS col1
----
-85
53

skipif mysql # not compatible
query II rowsort label-6477
SELECT DISTINCT - COUNT ( - - 38 ) + - 84 AS col0, + 53 AS col1
----
-85
53

query I rowsort
SELECT 67 * + + 68 AS col2
----
4556

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6480
SELECT COALESCE ( - 90, MIN( - 5 ), 85, + 74 * - 91 ) - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT COALESCE ( - 90, MIN ( - 5 ), 85, + 74 * - 91 ) - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT ALL 26 * COUNT( - 81 ) * 64
----
1664

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL 26 * COUNT ( - 81 ) * 64
----
1664

query I rowsort
SELECT DISTINCT 61 * - 48 col2
----
-2928

query I rowsort
SELECT ALL 20 - - + 72 AS col0
----
92

query II rowsort
SELECT - 5 AS col0, - 9 AS col2
----
-5
-9

query II rowsort
SELECT 90, COALESCE ( + 43, - 53 * 10 + - 12, + 18 ) * + 9 + 28 AS col2
----
90
415

onlyif mysql # aggregate syntax: 
query II rowsort label-6486
SELECT ALL 69, + 88 + COUNT( * ) AS col2
----
69
89

skipif mysql # not compatible
query II rowsort label-6486
SELECT ALL 69, + 88 + COUNT ( * ) AS col2
----
69
89

query I rowsort
SELECT 8 * - + 31
----
-248

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6491
SELECT 37 DIV - 18 + - 16 AS col2, ( - CASE - - 14 WHEN 59 * + 51 DIV 61 + - 29 + + + 68 THEN + 55 * 3 + + 97 - 18 * - 90 END )
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-6491
SELECT 37 / - 18 + - 16 AS col2, ( - CASE - - 14 WHEN 59 * + 51 / 61 + - 29 + + + 68 THEN + 55 * 3 + + 97 - 18 * - 90 END )
----
-18
NULL

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

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

query I rowsort
SELECT DISTINCT + 97 * + 83 + - 13 - + + 72 * + - 52 AS col0
----
11782

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT ALL - 39 * - MAX( - ( + 29 ) ) AS col2
----
-1131

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL - 39 * - MAX ( - ( + 29 ) ) AS col2
----
-1131

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT DISTINCT - - 37 * - MIN( - - 25 ) * - 55
----
50875

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT - - 37 * - MIN ( - - 25 ) * - 55
----
50875

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

skipif mysql # not compatible
query I rowsort label-6496
SELECT - ( + - MIN ( 52 ) )
----
52

query I rowsort
SELECT NULLIF ( + 87, + - ( + ( + - 53 ) ) * + 48 ) * + 32 * 60
----
167040

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

query II rowsort
SELECT + 67 AS col0, - 48 + + 11 AS col1
----
67
-37

query I rowsort
SELECT ALL + - 95 + + 24
----
-71

query I rowsort
SELECT 86 * - - 77 + + 47 col2
----
6669

query II rowsort
SELECT + 51 AS col2, - 54
----
51
-54

query I rowsort
SELECT ALL - - 82 + + 36
----
118

query II rowsort
SELECT 54 AS col0, - 44
----
54
-44

query I rowsort
SELECT DISTINCT - COALESCE ( - 29, - - 73 )
----
29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT + 21 - + 1 - NULLIF ( - + 38, + + 29 * - - 42 * 68 + - SUM( DISTINCT 88 ) ) + 43 * 16 AS col1
----
746

skipif mysql # not compatible
query I rowsort label-6507
SELECT + 21 - + 1 - NULLIF ( - + 38, + + 29 * - - 42 * 68 + - SUM ( DISTINCT 88 ) ) + 43 * 16 AS col1
----
746

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT DISTINCT + ( + MAX( DISTINCT - 19 ) ) * - - 23 AS col0
----
-437

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT + ( + MAX ( DISTINCT - 19 ) ) * - - 23 AS col0
----
-437

query II rowsort
SELECT ALL - + 65 AS col0, - 24 * + 22
----
-65
-528

query I rowsort
SELECT + 98 * - + 65 * + 69 - + 83
----
-439613

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT DISTINCT 21 + - COUNT( * ) + + 38 + - + COUNT( * ) + - 31
----
26

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT 21 + - COUNT ( * ) + + 38 + - + COUNT ( * ) + - 31
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6512
SELECT 38 + + + COUNT( * ) - 45 DIV + - 88 + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-6512
SELECT 38 + + + COUNT ( * ) - 45 / + - 88 + COUNT ( * )
----
40

query I rowsort
SELECT DISTINCT + 19 * - 79 AS col2
----
-1501

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6514
SELECT 28 * 86 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6514
SELECT 28 * 86 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + 9 * 90 + + - 55 * - 34 * + - 76 AS col0
----
-141310

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT MIN( ALL + + CASE + + 69 WHEN + NULLIF ( - + 53, + 21 + - 68 ) + 42 THEN NULL WHEN + 77 THEN - + 23 WHEN - 8 THEN NULL END ) * AVG ( ALL 6 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT MIN ( ALL + + CASE + + 69 WHEN + NULLIF ( - + 53, + 21 + - 68 ) + 42 THEN NULL WHEN + 77 THEN - + 23 WHEN - 8 THEN NULL END ) * AVG ( ALL 6 ) AS col1
----
NULL

query II rowsort
SELECT 66 + 93 AS col2, 20
----
159
20

query I rowsort
SELECT ALL 20 - 35 AS col0
----
-15

query II rowsort
SELECT 73 * 46 col1, 46
----
3358
46

query I rowsort
SELECT ALL - 56 * - + ( - 33 ) AS col1
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT SUM( DISTINCT 22 ) + - 60 + + + CASE + COUNT( - 73 ) WHEN - 98 + - 52 THEN - 88 ELSE - + 22 END col0
----
-60

skipif mysql # not compatible
query I rowsort label-6521
SELECT SUM ( DISTINCT 22 ) + - 60 + + + CASE + COUNT ( - 73 ) WHEN - 98 + - 52 THEN - 88 ELSE - + 22 END col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT COUNT( ALL - 56 ) * - + 69 - + - 15 + + + 58 * 50 + 37 * - 13
----
2365

skipif mysql # not compatible
query I rowsort label-6522
SELECT COUNT ( ALL - 56 ) * - + 69 - + - 15 + + + 58 * 50 + 37 * - 13
----
2365

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT 1 + + 20 - MAX( - 57 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6523
SELECT 1 + + 20 - MAX ( - 57 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-6524
SELECT NULLIF ( + COUNT( * ), 6 ) * + + 65 AS col2, + 89
----
65
89

skipif mysql # not compatible
query II rowsort label-6524
SELECT NULLIF ( + COUNT ( * ), 6 ) * + + 65 AS col2, + 89
----
65
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT SUM( ALL - 91 ) * + 92 AS col0
----
-8372

skipif mysql # not compatible
query I rowsort label-6525
SELECT SUM ( ALL - 91 ) * + 92 AS col0
----
-8372

query I rowsort
SELECT + 58 * + 45 * - 26 + - 16 AS col2
----
-67876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6527
SELECT ALL + 77 + 74 - CAST( NULL AS SIGNED ) + - CAST( ( - 27 ) AS SIGNED ) + + - MAX( - + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL + 77 + 74 - CAST ( NULL AS INTEGER ) + - CAST ( ( - 27 ) AS INTEGER ) + + - MAX ( - + 98 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6528
SELECT + + 71 + + + CAST( - MIN( DISTINCT - CAST( + 90 AS SIGNED ) ) AS SIGNED ) col2, - 52 + - 49 AS col0
----
161
-101

skipif mysql # not compatible
query II rowsort label-6528
SELECT + + 71 + + + CAST ( - MIN ( DISTINCT - CAST ( + 90 AS INTEGER ) ) AS INTEGER ) col2, - 52 + - 49 AS col0
----
161
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6529
SELECT ALL CASE + COALESCE ( - COUNT( * ), + COUNT( * ) * - 39 ) WHEN + 15 + COUNT( * ) * - 12 THEN 80 + CASE 40 WHEN + - 38 THEN NULL ELSE COUNT( * ) + + 55 END WHEN - 55 THEN + - MIN( + 39 ) * ( + + ( - ( 98 ) ) ) END + + 56 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL CASE + COALESCE ( - COUNT ( * ), + COUNT ( * ) * - 39 ) WHEN + 15 + COUNT ( * ) * - 12 THEN 80 + CASE 40 WHEN + - 38 THEN NULL ELSE COUNT ( * ) + + 55 END WHEN - 55 THEN + - MIN ( + 39 ) * ( + + ( - ( 98 ) ) ) END + + 56 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6530
SELECT + 56 + - NULLIF ( - 25, 55 * - COUNT( * ) + - 50 + 47 ), COUNT( * ) AS col0
----
81
1

skipif mysql # not compatible
query II rowsort label-6530
SELECT + 56 + - NULLIF ( - 25, 55 * - COUNT ( * ) + - 50 + 47 ), COUNT ( * ) AS col0
----
81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT + 60 - + COUNT( * ) * + + 3 + - MAX( DISTINCT - - 70 )
----
-13

skipif mysql # not compatible
query I rowsort label-6531
SELECT + 60 - + COUNT ( * ) * + + 3 + - MAX ( DISTINCT - - 70 )
----
-13

query I rowsort
SELECT + 69 + + 12
----
81

query I rowsort
SELECT ALL - 92 * - + ( 32 ) + + 50 AS col2
----
2994

query I rowsort
SELECT DISTINCT + - 17 * 82
----
-1394

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

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

query I rowsort
SELECT - - 95 + NULLIF ( - + 78, + 95 + - 37 ) col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6537
SELECT + NULLIF ( - COALESCE ( - 55, - 27 + 71 DIV - + 60 ), - - COUNT( * ) * - COUNT( * ) * - 7 + + - 76 * - 50 - 69 )
----
55

skipif mysql # not compatible
query I rowsort label-6537
SELECT + NULLIF ( - COALESCE ( - 55, - 27 + 71 / - + 60 ), - - COUNT ( * ) * - COUNT ( * ) * - 7 + + - 76 * - 50 - 69 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6538
SELECT + COUNT( - 50 ) * CAST( 19 AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6538
SELECT + COUNT ( - 50 ) * CAST ( 19 AS INTEGER ) AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6539
SELECT + COUNT( * ) * - 48 + - MAX( - 15 ) + 96 + + 16 + + 50 + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * + 1 / 94 / 62 * - + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT + COUNT ( * ) * - 48 + - MAX ( - 15 ) + 96 + + 16 + + 50 + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 1 / 94 / 62 * - + 19
----
NULL

query II rowsort
SELECT NULLIF ( + 81, 65 ) col0, ( - 67 )
----
81
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6541
SELECT CASE + - 34 WHEN CAST( 30 AS SIGNED ) THEN - NULLIF ( COUNT( - 0 ), + 81 + - + CAST( NULL AS DECIMAL ) - + + 8 + - CASE + - 13 WHEN - 50 THEN - - ( + 53 ) WHEN 97 + 66 THEN NULL END * - 2 ) / 77 + + + 58 * COUNT( NULLIF ( 24, 51 ) ) ELSE CASE WHEN + 79 <= NULL THEN NULL ELSE 99 * 73 END * 27 - 58 END
----
195071

skipif mysql # not compatible
query I rowsort label-6541
SELECT CASE + - 34 WHEN CAST ( 30 AS INTEGER ) THEN - NULLIF ( COUNT ( - 0 ), + 81 + - + CAST ( NULL AS REAL ) - + + 8 + - CASE + - 13 WHEN - 50 THEN - - ( + 53 ) WHEN 97 + 66 THEN NULL END * - 2 ) / 77 + + + 58 * COUNT ( NULLIF ( 24, 51 ) ) ELSE CASE WHEN + 79 <= NULL THEN NULL ELSE 99 * 73 END * 27 - 58 END
----
195071

onlyif mysql # aggregate syntax: 
query II rowsort label-6542
SELECT + 89 AS col1, 50 * + 44 * COUNT( + 13 ) + + - 0 + + + COUNT( * ) col1
----
89
2201

skipif mysql # not compatible
query II rowsort label-6542
SELECT + 89 AS col1, 50 * + 44 * COUNT ( + 13 ) + + - 0 + + + COUNT ( * ) col1
----
89
2201

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT - 14 + - + 35 + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-6543
SELECT - 14 + - + 35 + - COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT - ( + SUM( DISTINCT + + 77 ) ) * - 7 AS col1
----
539

skipif mysql # not compatible
query I rowsort label-6544
SELECT - ( + SUM ( DISTINCT + + 77 ) ) * - 7 AS col1
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT NULLIF ( COUNT( * ), + 11 * 46 + - 79 - + 92 )
----
1

skipif mysql # not compatible
query I rowsort label-6545
SELECT NULLIF ( COUNT ( * ), + 11 * 46 + - 79 - + 92 )
----
1

query II rowsort
SELECT ALL + 11 AS col0, 83 * 55 AS col0
----
11
4565

onlyif mysql # aggregate syntax: 
query II rowsort label-6547
SELECT DISTINCT + NULLIF ( + 45, + COUNT( ALL + 12 ) * + + 81 ), + 98 AS col1
----
45
98

skipif mysql # not compatible
query II rowsort label-6547
SELECT DISTINCT + NULLIF ( + 45, + COUNT ( ALL + 12 ) * + + 81 ), + 98 AS col1
----
45
98

query I rowsort
SELECT NULLIF ( + 9, 15 ) col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6549
SELECT ALL - 98 DIV - SUM( ALL - 10 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL - 98 / - SUM ( ALL - 10 ) AS col1
----
-9

query I rowsort
SELECT ALL - 71 * 57
----
-4047

query I rowsort
SELECT - 43 - 57 col1
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-6552
SELECT - 60 DIV ( + 96 )
----
0

skipif mysql # not compatible
query I rowsort label-6552
SELECT - 60 / ( + 96 )
----
0

query I rowsort
SELECT DISTINCT ( - 68 ) AS col2
----
-68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6555
SELECT - 85 * + 45 * - + 82 + + - 69 + 19 DIV + - 53 * + 24 AS col1
----
313581

skipif mysql # not compatible
query I rowsort label-6555
SELECT - 85 * + 45 * - + 82 + + - 69 + 19 / + - 53 * + 24 AS col1
----
313581

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

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

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

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL 90 + + COUNT ( * ) / - ( + 36 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT - + 66 + MAX( 5 )
----
-61

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT - + 66 + MAX ( 5 )
----
-61

query II rowsort
SELECT + 73 + - 8 + + 90 col2, 25 * 37
----
155
925

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT DISTINCT ( + CASE 66 WHEN - 44 THEN + 20 ELSE - CASE - 16 WHEN + - 2 THEN - 44 / - + ( + - 97 ) / - CASE + 18 WHEN + + 3 THEN NULL WHEN 74 THEN ( NULLIF ( + NULLIF ( 24, 51 / + ( 68 ) ), CASE - 80 WHEN + 21 + + 86 THEN + 53 * 19 + - 92 END / MIN( + 0 ) ) ) END + - 61 * + 40 END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT ( + CASE 66 WHEN - 44 THEN + 20 ELSE - CASE - 16 WHEN + - 2 THEN - 44 / - + ( + - 97 ) / - CASE + 18 WHEN + + 3 THEN NULL WHEN 74 THEN ( NULLIF ( + NULLIF ( 24, 51 / + ( 68 ) ), CASE - 80 WHEN + 21 + + 86 THEN + 53 * 19 + - 92 END / MIN ( + 0 ) ) ) END + - 61 * + 40 END END )
----
NULL

query I rowsort
SELECT ( 60 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6562
SELECT + - 59 + ( - 88 ) + + - 65 DIV - 57 DIV - COUNT( * ) AS col0
----
-148

skipif mysql # not compatible
query I rowsort label-6562
SELECT + - 59 + ( - 88 ) + + - 65 / - 57 / - COUNT ( * ) AS col0
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6563
SELECT DISTINCT - 54 + - 54 + 69 + + COUNT( * ) DIV - - 54 * 2 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT - 54 + - 54 + 69 + + COUNT ( * ) / - - 54 * 2 AS col1
----
-39

query I rowsort
SELECT ALL - 95 * 43 AS col1
----
-4085

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6566
SELECT DISTINCT - SUM( + + 17 ) + - 99 - 39 * + 58 col0, + 12 * - 37
----
-2378
-444

skipif mysql # not compatible
query II rowsort label-6566
SELECT DISTINCT - SUM ( + + 17 ) + - 99 - 39 * + 58 col0, + 12 * - 37
----
-2378
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT DISTINCT + 71 - 35 + SUM( ALL + - 25 ) * ( + + 47 ) * 16 + - + 26
----
-18790

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT + 71 - 35 + SUM ( ALL + - 25 ) * ( + + 47 ) * 16 + - + 26
----
-18790

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT + - 66 + - CASE - 47 WHEN - 52 * 30 / 63 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6568
SELECT + - 66 + - CASE - 47 WHEN - 52 * 30 / 63 THEN - COUNT ( * ) END
----
NULL

query II rowsort
SELECT ALL + 51 AS col1, - 60 AS col1
----
51
-60

query II rowsort
SELECT - 15 * 15 - + 11, + 94 - 52 AS col2
----
-236
42

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

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

query I rowsort
SELECT ALL + NULLIF ( + 56, ( 3 ) ) AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6573
SELECT + - 58 DIV + 25 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6573
SELECT + - 58 / + 25 AS col1
----
-2

query II rowsort
SELECT + 79 AS col2, 48 AS col1
----
79
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6575
SELECT ALL 89 DIV - 4 - + 46 + - 65 * + 71
----
-4683

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL 89 / - 4 - + 46 + - 65 * + 71
----
-4683

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL 3 * + + COALESCE ( - SUM( DISTINCT - 69 ), + - 45 + + - 4 )
----
207

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL 3 * + + COALESCE ( - SUM ( DISTINCT - 69 ), + - 45 + + - 4 )
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-6577
SELECT ALL 15 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL 15 / 39
----
0

query I rowsort
SELECT + 26 - 46 AS col0
----
-20

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

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

query I rowsort
SELECT + 13 * - 9 - - 28 + + 52 AS col2
----
-37

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6584
SELECT ALL 44 * - COALESCE ( + - 13, - - 50 - COUNT( * ) ) * + 11 + + 5 - - 20 + + 71 DIV + 19 + - 48 * + 47 * 86 * - 1
----
200336

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL 44 * - COALESCE ( + - 13, - - 50 - COUNT ( * ) ) * + 11 + + 5 - - 20 + + 71 / + 19 + - 48 * + 47 * 86 * - 1
----
200336

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + 56 * + COUNT( * ) * - + COUNT( * ) + - ( 48 ) AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-6585
SELECT + 56 * + COUNT ( * ) * - + COUNT ( * ) + - ( 48 ) AS col0
----
-104

query I rowsort
SELECT - 49 - + + 87 * + 30 * - + 91
----
237461

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

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

query I rowsort
SELECT 3 * - ( 65 ) - - ( + 77 )
----
-118

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6590
SELECT 1 + - 93 DIV - 1 + + 57 + + 26 * + - 44 + + - 83 - - 97 * - 75
----
-8351

skipif mysql # not compatible
query I rowsort label-6590
SELECT 1 + - 93 / - 1 + + 57 + + 26 * + - 44 + + - 83 - - 97 * - 75
----
-8351

query I rowsort
SELECT ALL - ( + ( + 12 ) ) + + - 27 + 88
----
49

query I rowsort
SELECT - + ( + 19 ) * - 81 + + 21 + 85 AS col0
----
1645

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT - + CASE WHEN + 57 < - 18 * - + 93 * - ( + + 61 ) THEN - AVG ( DISTINCT - - 47 ) + - + 0 * SUM( + 96 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT - + CASE WHEN + 57 < - 18 * - + 93 * - ( + + 61 ) THEN - AVG ( DISTINCT - - 47 ) + - + 0 * SUM ( + 96 ) END
----
NULL

query I rowsort
SELECT ALL + 16 + + COALESCE ( - ( - + 63 ), + 28 * + 66 ) - + 72 AS col0
----
7

query II rowsort
SELECT - 24 AS col2, 70 - 10 AS col0
----
-24
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT ( COUNT( DISTINCT 85 ) ) + 64 * + 14 AS col1
----
897

skipif mysql # not compatible
query I rowsort label-6597
SELECT ( COUNT ( DISTINCT 85 ) ) + 64 * + 14 AS col1
----
897

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

query I rowsort
SELECT ALL - 14 * - 49 AS col1
----
686

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT ALL + 55 - - SUM( DISTINCT - 24 )
----
31

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL + 55 - - SUM ( DISTINCT - 24 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6601
SELECT ALL 80 AS col2, 46 + - 16 - - 47 + - + CAST( + + 96 AS SIGNED )
----
80
-19

skipif mysql # not compatible
query II rowsort label-6601
SELECT ALL 80 AS col2, 46 + - 16 - - 47 + - + CAST ( + + 96 AS INTEGER )
----
80
-19

query II rowsort
SELECT ALL + 75 - - 52 AS col0, + 81 AS col2
----
127
81

onlyif mysql # DIV for integer division: 
query II rowsort label-6603
SELECT 30 DIV + - 57 AS col2, - 53
----
0
-53

skipif mysql # not compatible
query II rowsort label-6603
SELECT 30 / + - 57 AS col2, - 53
----
0
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-6604
SELECT ALL - 73, 81 + + 71 DIV + 73 + + + 58 AS col2
----
-73
139

skipif mysql # not compatible
query II rowsort label-6604
SELECT ALL - 73, 81 + + 71 / + 73 + + + 58 AS col2
----
-73
139

query II rowsort
SELECT - + NULLIF ( ( + 92 ), + - 43 ) AS col1, 89 AS col0
----
-92
89

query II rowsort
SELECT ALL - 50 col1, - 84
----
-50
-84

query II rowsort
SELECT - 42 AS col0, + 17 * 59 * - 21 AS col2
----
-42
-21063

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT ( + - SUM( DISTINCT ( 69 ) ) ) * + 12
----
-828

skipif mysql # not compatible
query I rowsort label-6608
SELECT ( + - SUM ( DISTINCT ( 69 ) ) ) * + 12
----
-828

query I rowsort
SELECT + 67 + + + 13 AS col1
----
80

query I rowsort
SELECT DISTINCT 62 * + + 11
----
682

query I rowsort
SELECT DISTINCT - 15 * + + ( - 78 )
----
1170

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

query I rowsort
SELECT ALL - 97 * + 23 * - ( + 16 ) * 45 + - ( 81 ) * - 12
----
1607292

query I rowsort
SELECT DISTINCT - 88 * + 42
----
-3696

query I rowsort
SELECT ALL 61 + 72 * + 96 * + 52 * 14 AS col1
----
5031997

query I rowsort
SELECT DISTINCT 96 + + 21
----
117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6617
SELECT NULLIF ( - COUNT( * ), - 98 * CAST( + 74 AS DECIMAL ) ) + 70 * - - 64 + + NULLIF ( - + 94, + - 93 ) + COUNT( * ) AS col2
----
4386

skipif mysql # not compatible
query I rowsort label-6617
SELECT NULLIF ( - COUNT ( * ), - 98 * CAST ( + 74 AS REAL ) ) + 70 * - - 64 + + NULLIF ( - + 94, + - 93 ) + COUNT ( * ) AS col2
----
4386

query I rowsort
SELECT ALL 1 + - 47 + + - 89
----
-135

query I rowsort
SELECT DISTINCT 60 + - 34 * 10 * - 78
----
26580

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT ALL CASE - 59 WHEN + + 16 THEN - 87 ELSE + 33 * - MIN( + - 45 ) + ( - + ( - 32 ) ) + + 8 END + ( 22 ) * + 94 AS col2
----
3593

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL CASE - 59 WHEN + + 16 THEN - 87 ELSE + 33 * - MIN ( + - 45 ) + ( - + ( - 32 ) ) + + 8 END + ( 22 ) * + 94 AS col2
----
3593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT COALESCE ( - 2, 25 * + + NULLIF ( SUM( 10 ), 97 / + 97 + + CAST( + 86 AS SIGNED ) + + COUNT( * ) * - + 61 ) + + 96 + 14, MIN( 19 ) - 47 ) * - 39 + + MIN( DISTINCT - 91 )
----
-13

skipif mysql # not compatible
query I rowsort label-6621
SELECT COALESCE ( - 2, 25 * + + NULLIF ( SUM ( 10 ), 97 / + 97 + + CAST ( + 86 AS INTEGER ) + + COUNT ( * ) * - + 61 ) + + 96 + 14, MIN ( 19 ) - 47 ) * - 39 + + MIN ( DISTINCT - 91 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6622
SELECT ALL MAX( ALL + 77 ) * COUNT( * ) + + CASE + 53 WHEN 73 * + - 96 * CAST( NULL AS SIGNED ) / + 43 THEN NULL ELSE + 16 END
----
93

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL MAX ( ALL + 77 ) * COUNT ( * ) + + CASE + 53 WHEN 73 * + - 96 * CAST ( NULL AS INTEGER ) / + 43 THEN NULL ELSE + 16 END
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6623
SELECT DISTINCT COUNT( * ) + + 32 AS col1, - MIN( - + 50 ) * - 92
----
33
-4600

skipif mysql # not compatible
query II rowsort label-6623
SELECT DISTINCT COUNT ( * ) + + 32 AS col1, - MIN ( - + 50 ) * - 92
----
33
-4600

query I rowsort
SELECT DISTINCT 89 * + 69 AS col0
----
6141

query I rowsort
SELECT ALL - 20 + - + 87 * - - ( 97 )
----
-8459

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT + ( COUNT( * ) ) * 93 + - + NULLIF ( - COUNT( * ), - 77 / + + 65 - + - 0 + + 46 * - + CASE + + COUNT( * ) WHEN + 15 * 32 * ( + CASE + 97 WHEN 66 THEN NULL WHEN - 90 THEN - + 95 * - 24 + + 58 - + + 50 END ) - + 80 THEN NULL WHEN 91 THEN 14 / + 6 ELSE 87 + + 96 END )
----
94

skipif mysql # not compatible
query I rowsort label-6627
SELECT + ( COUNT ( * ) ) * 93 + - + NULLIF ( - COUNT ( * ), - 77 / + + 65 - + - 0 + + 46 * - + CASE + + COUNT ( * ) WHEN + 15 * 32 * ( + CASE + 97 WHEN 66 THEN NULL WHEN - 90 THEN - + 95 * - 24 + + 58 - + + 50 END ) - + 80 THEN NULL WHEN 91 THEN 14 / + 6 ELSE 87 + + 96 END )
----
94

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6629
SELECT + + ( - - 50 ) * - CASE - CAST( - 58 AS DECIMAL ) WHEN 88 THEN NULL WHEN 91 THEN NULL ELSE - 98 END - - 61 AS col1
----
4961

skipif mysql # not compatible
query I rowsort label-6629
SELECT + + ( - - 50 ) * - CASE - CAST ( - 58 AS REAL ) WHEN 88 THEN NULL WHEN 91 THEN NULL ELSE - 98 END - - 61 AS col1
----
4961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6630
SELECT 45 - - ( - CAST( - 12 AS SIGNED ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6630
SELECT 45 - - ( - CAST ( - 12 AS INTEGER ) ) AS col2
----
57

query I rowsort
SELECT ALL + 13 * + - 18 AS col1
----
-234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6632
SELECT COUNT( 73 ) * - 85 DIV - SUM( ALL 66 )
----
1

skipif mysql # not compatible
query I rowsort label-6632
SELECT COUNT ( 73 ) * - 85 / - SUM ( ALL 66 )
----
1

query I rowsort
SELECT ALL + - 44 * - - ( - - 42 ) AS col0
----
-1848

onlyif mysql # aggregate syntax: 
query II rowsort label-6634
SELECT 55 * - - COUNT( * ) AS col0, - 14
----
55
-14

skipif mysql # not compatible
query II rowsort label-6634
SELECT 55 * - - COUNT ( * ) AS col0, - 14
----
55
-14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6636
SELECT DISTINCT - 29 * + + CASE + 82 WHEN + 97 * + - 33 / 86 - 55 / + - 72 THEN - 45 + - - MIN( DISTINCT + - 92 ) * CAST( - 33 AS SIGNED ) * + 36 * + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT - 29 * + + CASE + 82 WHEN + 97 * + - 33 / 86 - 55 / + - 72 THEN - 45 + - - MIN ( DISTINCT + - 92 ) * CAST ( - 33 AS INTEGER ) * + 36 * + 48 END
----
NULL

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

query I rowsort
SELECT 83 * + 63
----
5229

onlyif mysql # DIV for integer division: 
query I rowsort label-6639
SELECT DISTINCT + 29 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + 29 / - 72
----
0

query I rowsort
SELECT DISTINCT + 56 + + - 30
----
26

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

query I rowsort
SELECT 72 - + 43
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6643
SELECT COUNT( * ) / + 28 + ( CAST( NULL AS SIGNED ) ) + 27 - - NULLIF ( ( + 76 ), - 1 * - - 7 + - 98 ) * 5 * + MAX( - 39 ) + - ( - - 44 ) * + NULLIF ( - ( 19 ), 7 ) * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6643
SELECT COUNT ( * ) / + 28 + ( CAST ( NULL AS INTEGER ) ) + 27 - - NULLIF ( ( + 76 ), - 1 * - - 7 + - 98 ) * 5 * + MAX ( - 39 ) + - ( - - 44 ) * + NULLIF ( - ( 19 ), 7 ) * - 7
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6645
SELECT COALESCE ( + + 81, + 40 DIV - 91 + - 92 )
----
81

skipif mysql # not compatible
query I rowsort label-6645
SELECT COALESCE ( + + 81, + 40 / - 91 + - 92 )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6646
SELECT ALL - 1 * - NULLIF ( + CAST( NULL AS SIGNED ), - - 84 * 23 + 90 ) + - 23 + 97 * + 17 AS col1, + 10 * - 15 * - - 34 AS col2
----
NULL
-5100

skipif mysql # not compatible
query II rowsort label-6646
SELECT ALL - 1 * - NULLIF ( + CAST ( NULL AS INTEGER ), - - 84 * 23 + 90 ) + - 23 + 97 * + 17 AS col1, + 10 * - 15 * - - 34 AS col2
----
NULL
-5100

query I rowsort
SELECT - 13 - 88 AS col1
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-6648
SELECT ALL + 46 AS col1, SUM( 70 )
----
46
70

skipif mysql # not compatible
query II rowsort label-6648
SELECT ALL + 46 AS col1, SUM ( 70 )
----
46
70

query I rowsort
SELECT 40 * + - COALESCE ( - ( - + 22 ), - 23 * - COALESCE ( + 32, - + 61, + - 68 ) ) - 88 + - 4
----
-972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6650
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) + - 97 + 20 + + 50 * - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 97 + 20 + + 50 * - 21 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6651
SELECT ALL - ( + 30 ) * - COALESCE ( + + 42, + COUNT( CAST( + 5 AS SIGNED ) ) + - 82 * + + COUNT( * ) + - + 62 ) * + ( - + 19 ) * - 6 + 28
----
143668

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL - ( + 30 ) * - COALESCE ( + + 42, + COUNT ( CAST ( + 5 AS INTEGER ) ) + - 82 * + + COUNT ( * ) + - + 62 ) * + ( - + 19 ) * - 6 + 28
----
143668

query II rowsort
SELECT - 54 + + 82 + + 31 + - 53 AS col1, 5 AS col1
----
6
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT SUM( + 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-6654
SELECT SUM ( + 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT + 67 - + - NULLIF ( - COUNT( * ), + 93 * 98 - + + 41 + + + 4 )
----
66

skipif mysql # not compatible
query I rowsort label-6655
SELECT + 67 - + - NULLIF ( - COUNT ( * ), + 93 * 98 - + + 41 + + + 4 )
----
66

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

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

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

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

query II rowsort
SELECT + 19 AS col0, + 46 + - 97 AS col0
----
19
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6659
SELECT + + 3 DIV - 6 * - 86 + + 65 col1
----
65

skipif mysql # not compatible
query I rowsort label-6659
SELECT + + 3 / - 6 * - 86 + + 65 col1
----
65

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6662
SELECT ALL - NULLIF ( - MIN( ALL 80 ), + 92 + - CASE + 7 WHEN - - 65 THEN + 78 * 29 * + - CAST( + - 56 AS SIGNED ) + + 86 WHEN COUNT( * ) THEN + COUNT( * ) + + 31 END + + 72 ) * 46 AS col2
----
3680

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL - NULLIF ( - MIN ( ALL 80 ), + 92 + - CASE + 7 WHEN - - 65 THEN + 78 * 29 * + - CAST ( + - 56 AS INTEGER ) + + 86 WHEN COUNT ( * ) THEN + COUNT ( * ) + + 31 END + + 72 ) * 46 AS col2
----
3680

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT ALL + 47 - - NULLIF ( ( + 21 ), - COUNT( * ) * + + ( + 60 ) ) col2
----
68

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL + 47 - - NULLIF ( ( + 21 ), - COUNT ( * ) * + + ( + 60 ) ) col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6664
SELECT ALL - 73 * 51 + + CAST( - CAST( - 60 AS SIGNED ) AS SIGNED )
----
-3663

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL - 73 * 51 + + CAST ( - CAST ( - 60 AS INTEGER ) AS INTEGER )
----
-3663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6665
SELECT + 13 * - - COUNT( * ) * + 62, - CAST( NULL AS SIGNED ) AS col1
----
806
NULL

skipif mysql # not compatible
query II rowsort label-6665
SELECT + 13 * - - COUNT ( * ) * + 62, - CAST ( NULL AS INTEGER ) AS col1
----
806
NULL

query I rowsort
SELECT + 36 + - + 20 + + 85 * - 91
----
-7719

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT - NULLIF ( - + 51, 99 ) + + + COUNT( * ) + + 14
----
66

skipif mysql # not compatible
query I rowsort label-6667
SELECT - NULLIF ( - + 51, 99 ) + + + COUNT ( * ) + + 14
----
66

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6669
SELECT + NULLIF ( - COUNT( * ), 67 - + CAST( + ( - COUNT( ALL + 18 ) ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6669
SELECT + NULLIF ( - COUNT ( * ), 67 - + CAST ( + ( - COUNT ( ALL + 18 ) ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT DISTINCT COUNT( * ) + - + 2 + + ( - 37 ) * + ( + CASE - 69 WHEN COUNT( * ) - 88 THEN + 41 * + NULLIF ( - COUNT( * ), + 58 * - COALESCE ( 23, - + 6, 67 - - - 53 ) ) + 47 END ) * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6670
SELECT DISTINCT COUNT ( * ) + - + 2 + + ( - 37 ) * + ( + CASE - 69 WHEN COUNT ( * ) - 88 THEN + 41 * + NULLIF ( - COUNT ( * ), + 58 * - COALESCE ( 23, - + 6, 67 - - - 53 ) ) + 47 END ) * - 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6671
SELECT ALL + COUNT( * ) * - 57 AS col1, - 45 - - + MIN( DISTINCT - + 93 ) + - 50 - 6 + 38 DIV + 42
----
-57
-194

skipif mysql # not compatible
query II rowsort label-6671
SELECT ALL + COUNT ( * ) * - 57 AS col1, - 45 - - + MIN ( DISTINCT - + 93 ) + - 50 - 6 + 38 / + 42
----
-57
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT - ( - + SUM( DISTINCT + 11 ) ) + - + 44 + + 47 * COALESCE ( - NULLIF ( 3, ( - COUNT( * ) ) * + + 55 + - - 57 - 56 ), - - COUNT( * ) ) * 36 * + + 36 AS col2
----
-182769

skipif mysql # not compatible
query I rowsort label-6672
SELECT - ( - + SUM ( DISTINCT + 11 ) ) + - + 44 + + 47 * COALESCE ( - NULLIF ( 3, ( - COUNT ( * ) ) * + + 55 + - - 57 - 56 ), - - COUNT ( * ) ) * 36 * + + 36 AS col2
----
-182769

query I rowsort
SELECT ALL 86 + COALESCE ( - ( 73 ), + - NULLIF ( + ( - 31 ), - 87 ) ) AS col2
----
13

query I rowsort
SELECT - 56 + - - 42 + - 84 - + + 22 * + - 94
----
1970

query I rowsort
SELECT + 68 + - - 61 AS col0
----
129

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6677
SELECT DISTINCT + NULLIF ( 43, + + 62 + + + 26 - - 36 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT + NULLIF ( 43, + + 62 + + + 26 - - 36 ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT - MIN( + 7 ) * + + 53
----
-371

skipif mysql # not compatible
query I rowsort label-6678
SELECT - MIN ( + 7 ) * + + 53
----
-371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6679
SELECT ALL + 7 + 87 * - + CAST( - 29 AS SIGNED )
----
2530

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL + 7 + 87 * - + CAST ( - 29 AS INTEGER )
----
2530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6680
SELECT - 88 DIV + SUM( + 16 ) + - + 43 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6680
SELECT - 88 / + SUM ( + 16 ) + - + 43 AS col0
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT DISTINCT + MAX( DISTINCT - 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT + MAX ( DISTINCT - 10 ) AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6683
SELECT + MAX( + CAST( NULL AS DECIMAL ) ), - 79 * - - 7 - + CAST( + 53 AS SIGNED ) AS col0
----
NULL
-606

skipif mysql # not compatible
query II rowsort label-6683
SELECT + MAX ( + CAST ( NULL AS REAL ) ), - 79 * - - 7 - + CAST ( + 53 AS INTEGER ) AS col0
----
NULL
-606

query I rowsort
SELECT - 54 * + 94 AS col1
----
-5076

query I rowsort
SELECT ALL + 18 * + 35
----
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6686
SELECT + + COUNT( * ) + 62 - 34 DIV MIN( + 86 ) + + - 44 * - COUNT( * ) col1, - 24 - NULLIF ( - 51, - - NULLIF ( 21, - 46 ) + 1 * ( - 55 ) DIV + 84 * COUNT( * ) + + 66 * - 35 + - + 96 + - ( - - ( + 32 ) ) * 92 )
----
107
27

skipif mysql # not compatible
query II rowsort label-6686
SELECT + + COUNT ( * ) + 62 - 34 / MIN ( + 86 ) + + - 44 * - COUNT ( * ) col1, - 24 - NULLIF ( - 51, - - NULLIF ( 21, - 46 ) + 1 * ( - 55 ) / + 84 * COUNT ( * ) + + 66 * - 35 + - + 96 + - ( - - ( + 32 ) ) * 92 )
----
107
27

query I rowsort
SELECT DISTINCT + - CASE 15 WHEN 2 THEN - - ( + 80 ) WHEN - - 72 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6688
SELECT DISTINCT 52 * - - COALESCE ( MAX( - 10 ), - 96, - + 10 DIV AVG ( ALL 60 ) )
----
-520

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT 52 * - - COALESCE ( MAX ( - 10 ), - 96, - + 10 / AVG ( ALL 60 ) )
----
-520

query I rowsort
SELECT ALL + - ( + - 21 ) * - + 67 AS col1
----
-1407

query I rowsort
SELECT DISTINCT + 35 * + COALESCE ( - 6, + 87 ) + + 41
----
-169

query I rowsort
SELECT DISTINCT + - 27 * 58
----
-1566

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6692
SELECT + 67 DIV + - COUNT( * ) AS col0, - COUNT( * )
----
-67
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT - CASE 54 WHEN 86 + + 42 THEN 86 * + NULLIF ( + 15, AVG ( DISTINCT - 25 ) ) * - 24 * + + SUM( + 44 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT - CASE 54 WHEN 86 + + 42 THEN 86 * + NULLIF ( + 15, AVG ( DISTINCT - 25 ) ) * - 24 * + + SUM ( + 44 ) END col1
----
NULL

query II rowsort
SELECT - 25 + + 36 AS col2, 43
----
11
43

query I rowsort
SELECT + COALESCE ( 8, COALESCE ( - 6, - 4 ) )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT + - 30 DIV + - 91
----
0

skipif mysql # not compatible
query I rowsort label-6697
SELECT + - 30 / + - 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6698
SELECT ALL - 36 * + COUNT( * ) * 97 * - CAST( NULL AS DECIMAL ) + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL - 36 * + COUNT ( * ) * 97 * - CAST ( NULL AS REAL ) + 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6699
SELECT ALL + COALESCE ( - + 67, + - CAST( NULL AS SIGNED ) )
----
-67

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL + COALESCE ( - + 67, + - CAST ( NULL AS INTEGER ) )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6700
SELECT DISTINCT 34 * + + 21 + - + 5 * + CAST( 10 AS SIGNED )
----
664

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT 34 * + + 21 + - + 5 * + CAST ( 10 AS INTEGER )
----
664

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT DISTINCT - 57 * - 56 + + COUNT( * )
----
3193

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT - 57 * - 56 + + COUNT ( * )
----
3193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6702
SELECT + SUM( ALL 11 ) DIV + 76 - + 86 - + 96 * 94 AS col1
----
-9110

skipif mysql # not compatible
query I rowsort label-6702
SELECT + SUM ( ALL 11 ) / + 76 - + 86 - + 96 * 94 AS col1
----
-9110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6703
SELECT DISTINCT 84 * + + COUNT( * ) * + + 62 * + COALESCE ( + - COUNT( * ), + - 2, + CASE 58 WHEN - - ( + 26 ) THEN - 28 WHEN - + MIN( ALL + 70 ) / - - COUNT( * ) / + 19 / - + COUNT( + - 76 ) + - + 24 + - 21 + CAST( NULL AS SIGNED ) * - - 14 * + ( - 67 ) + + COUNT( * ) THEN NULL END ) + + 57 * 86 AS col1
----
-306

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT 84 * + + COUNT ( * ) * + + 62 * + COALESCE ( + - COUNT ( * ), + - 2, + CASE 58 WHEN - - ( + 26 ) THEN - 28 WHEN - + MIN ( ALL + 70 ) / - - COUNT ( * ) / + 19 / - + COUNT ( + - 76 ) + - + 24 + - 21 + CAST ( NULL AS INTEGER ) * - - 14 * + ( - 67 ) + + COUNT ( * ) THEN NULL END ) + + 57 * 86 AS col1
----
-306

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6706
SELECT DISTINCT MIN( - 90 ) + COUNT( * ) AS col0, ( - 78 ) + - COUNT( * ) * - - COUNT( * ) * - 90 + - 74
----
-89
-62

skipif mysql # not compatible
query II rowsort label-6706
SELECT DISTINCT MIN ( - 90 ) + COUNT ( * ) AS col0, ( - 78 ) + - COUNT ( * ) * - - COUNT ( * ) * - 90 + - 74
----
-89
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6707
SELECT DISTINCT COUNT( * ) * - - NULLIF ( + + 46, + COUNT( * ) / + 86 + CAST( NULL AS DECIMAL ) * 91 * - + 16 * 63 ) col1
----
46

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT COUNT ( * ) * - - NULLIF ( + + 46, + COUNT ( * ) / + 86 + CAST ( NULL AS REAL ) * 91 * - + 16 * 63 ) col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6708
SELECT ALL + COALESCE ( - 10, CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 98 + - CASE COUNT( * ) WHEN - + CAST( - NULLIF ( + + 51, ( 64 ) ) AS SIGNED ) + + 70 THEN NULL ELSE + 12 END ) + ( - + 9 ) - - 95 DIV - - 34 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL + COALESCE ( - 10, CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 98 + - CASE COUNT ( * ) WHEN - + CAST ( - NULLIF ( + + 51, ( 64 ) ) AS INTEGER ) + + 70 THEN NULL ELSE + 12 END ) + ( - + 9 ) - - 95 / - - 34 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT DISTINCT 37 + - + NULLIF ( + 43, + - 72 / + 30 ) + + + 20 * + 10 + - COUNT( * ) + - 41 AS col1
----
152

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT 37 + - + NULLIF ( + 43, + - 72 / + 30 ) + + + 20 * + 10 + - COUNT ( * ) + - 41 AS col1
----
152

query I rowsort
SELECT DISTINCT - 94 * - - 42
----
-3948

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

skipif mysql # not compatible
query I rowsort label-6711
SELECT SUM ( - 56 ) - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 1 * 70 * - ( 15 ) AS col1
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT 7 + + + COUNT( + 82 ) * + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6713
SELECT 7 + + + COUNT ( + 82 ) * + COUNT ( * ) AS col2
----
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6715
SELECT DISTINCT 66 * 45 DIV + 81 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT 66 * 45 / + 81 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ALL - MAX( + 88 ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL - MAX ( + 88 ) col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6717
SELECT - 64 / COUNT( DISTINCT - 86 ) + + 73 * + CAST( NULL AS SIGNED ) / + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT - 64 / COUNT ( DISTINCT - 86 ) + + 73 * + CAST ( NULL AS INTEGER ) / + 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT 55 * - + NULLIF ( + + 73, - - ( + - 30 ) * + COUNT( * ) * 38 * ( COUNT( DISTINCT + 48 ) ) * - - 77 * + COUNT( * ) ) * + 4
----
-16060

skipif mysql # not compatible
query I rowsort label-6718
SELECT 55 * - + NULLIF ( + + 73, - - ( + - 30 ) * + COUNT ( * ) * 38 * ( COUNT ( DISTINCT + 48 ) ) * - - 77 * + COUNT ( * ) ) * + 4
----
-16060

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT 26 + + + 18 + - + 43 + 7 * - + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-6719
SELECT 26 + + + 18 + - + 43 + 7 * - + COUNT ( * )
----
-6

query I rowsort
SELECT ALL - 77 - - 47 col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-6721
SELECT 32 DIV - 11 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6721
SELECT 32 / - 11 AS col0
----
-2

query I rowsort
SELECT DISTINCT 30 * 0 AS col2
----
0

query I rowsort
SELECT DISTINCT - 39 * 71 AS col0
----
-2769

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT + - 47 DIV + 52 + + - 38
----
-38

skipif mysql # not compatible
query I rowsort label-6724
SELECT + - 47 / + 52 + + - 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT ALL - COUNT( 97 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL - COUNT ( 97 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6726
SELECT CASE + 82 WHEN - 51 * 27 THEN + NULLIF ( - 41, + 20 ) WHEN - 79 + - - SUM( ALL + 69 ) * 68 + - 65 + 83 * 88 THEN NULL ELSE - 29 * - 37 END, 66 DIV 87 * - 18 AS col1
----
1073
0

skipif mysql # not compatible
query II rowsort label-6726
SELECT CASE + 82 WHEN - 51 * 27 THEN + NULLIF ( - 41, + 20 ) WHEN - 79 + - - SUM ( ALL + 69 ) * 68 + - 65 + 83 * 88 THEN NULL ELSE - 29 * - 37 END, 66 / 87 * - 18 AS col1
----
1073
0

query I rowsort
SELECT + 53 * ( + - 54 ) + - - 12 AS col0
----
-2850

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

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

query I rowsort
SELECT ALL + + 74 + - 47
----
27

query I rowsort
SELECT 73 - + + ( - ( 92 ) )
----
165

query I rowsort
SELECT 61 * 85
----
5185

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6732
SELECT ALL - CAST( + - ( + - 36 ) AS SIGNED ) AS col2, + 67 * + 49 + - 73 AS col1, - CAST( NULL AS SIGNED ) * CAST( - + 19 AS DECIMAL ) AS col1
----
-36
3210
NULL

skipif mysql # not compatible
query III rowsort label-6732
SELECT ALL - CAST ( + - ( + - 36 ) AS INTEGER ) AS col2, + 67 * + 49 + - 73 AS col1, - CAST ( NULL AS INTEGER ) * CAST ( - + 19 AS REAL ) AS col1
----
-36
3210
NULL

query I rowsort
SELECT ALL - ( 38 ) + 24 + - 18 * + + 66 AS col2
----
-1202

onlyif mysql # aggregate syntax: 
query II rowsort label-6734
SELECT + 23, COUNT( * ) * + 83 * + - NULLIF ( - 16, 5 + 51 ) AS col1
----
23
1328

skipif mysql # not compatible
query II rowsort label-6734
SELECT + 23, COUNT ( * ) * + 83 * + - NULLIF ( - 16, 5 + 51 ) AS col1
----
23
1328

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT ALL - + 82 + COUNT( * ) + + 38 * - ( - 24 ) AS col0
----
831

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL - + 82 + COUNT ( * ) + + 38 * - ( - 24 ) AS col0
----
831

query I rowsort
SELECT ALL - - 57 + 3 AS col1
----
60

query II rowsort
SELECT 82 + - 99 AS col0, + 96 * + 15 - + + 69 * + 50
----
-17
-2010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6738
SELECT 85 * CAST( 46 AS SIGNED )
----
3910

skipif mysql # not compatible
query I rowsort label-6738
SELECT 85 * CAST ( 46 AS INTEGER )
----
3910

query I rowsort
SELECT 21 * - 24 * + 28
----
-14112

query I rowsort
SELECT 92 + + 84
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT DISTINCT 32 + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT 32 + COUNT ( * )
----
33

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

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

query I rowsort
SELECT 11 * + 16
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT 17 + + ( + 72 ) - 65 * + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-6744
SELECT 17 + + ( + 72 ) - 65 * + COUNT ( * )
----
24

query I rowsort
SELECT DISTINCT - COALESCE ( + 70, + + 74 ) - + 9 - - + 50 + + 15
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT ALL MIN( DISTINCT - ( 60 ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL MIN ( DISTINCT - ( 60 ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT ( - COUNT( * ) ) + + - 33
----
-34

skipif mysql # not compatible
query I rowsort label-6747
SELECT ( - COUNT ( * ) ) + + - 33
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT ALL COUNT( * ) * - 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL COUNT ( * ) * - 81 AS col1
----
-81

query I rowsort
SELECT 1 * 73 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT COUNT( * ) + - 18 - + + 98
----
-115

skipif mysql # not compatible
query I rowsort label-6750
SELECT COUNT ( * ) + - 18 - + + 98
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT 7 + + MIN( 71 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-6751
SELECT 7 + + MIN ( 71 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT 10 * ( - - ( + + 57 ) ) * + 14 * MIN( DISTINCT - 92 )
----
-734160

skipif mysql # not compatible
query I rowsort label-6752
SELECT 10 * ( - - ( + + 57 ) ) * + 14 * MIN ( DISTINCT - 92 )
----
-734160

query I rowsort
SELECT ALL 25 * + 0 * + 9
----
0

query I rowsort
SELECT 52 + - 91
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6755
SELECT 36 * + + 5 DIV - - 5 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6755
SELECT 36 * + + 5 / - - 5 AS col0
----
36

query I rowsort
SELECT ALL 89 * 57
----
5073

query I rowsort
SELECT 42 + - 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT SUM( - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-6758
SELECT SUM ( - 95 ) AS col0
----
-95

query I rowsort
SELECT ( - - 69 ) + - 75 AS col0
----
-6

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

query I rowsort
SELECT + - COALESCE ( - - 87, - 49 + - 75 * 62 )
----
-87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6762
SELECT DISTINCT CAST( 25 AS SIGNED ) DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT CAST ( 25 AS INTEGER ) / + 99 AS col2
----
0

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

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

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

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

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

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

query I rowsort
SELECT ALL 43 * - 74 + - 3 * + 29 AS col1
----
-3269

query II rowsort
SELECT ALL - 9 AS col1, 39 AS col2
----
-9
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6768
SELECT + 45 AS col1, 7 + 99 + + + CASE + 55 WHEN + 58 / - AVG ( 68 ) * - 28 * - 35 + + - ( + 66 ) + - + 32 * ( - + 81 ) + + 5 - + MIN( - 99 ) THEN + 82 - - 74 WHEN COUNT( * ) THEN + 99 + 2 * 9 END AS col1
----
45
NULL

skipif mysql # not compatible
query II rowsort label-6768
SELECT + 45 AS col1, 7 + 99 + + + CASE + 55 WHEN + 58 / - AVG ( 68 ) * - 28 * - 35 + + - ( + 66 ) + - + 32 * ( - + 81 ) + + 5 - + MIN ( - 99 ) THEN + 82 - - 74 WHEN COUNT ( * ) THEN + 99 + 2 * 9 END AS col1
----
45
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6769
SELECT + 43 DIV + COUNT( * ) + + 51 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-6769
SELECT + 43 / + COUNT ( * ) + + 51 AS col2
----
94

query II rowsort
SELECT DISTINCT - - 17, 62 + 44 col0
----
17
106

onlyif mysql # DIV for integer division: 
query I rowsort label-6771
SELECT ALL + 42 DIV 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL + 42 / 53 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6772
SELECT ALL - - 55 + + 88 - + + 27 DIV - + NULLIF ( + ( + + 69 ), 39 * - 39 + - 10 ) DIV + 2
----
143

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL - - 55 + + 88 - + + 27 / - + NULLIF ( + ( + + 69 ), 39 * - 39 + - 10 ) / + 2
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6773
SELECT + CAST( - 87 AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-6773
SELECT + CAST ( - 87 AS INTEGER ) AS col2
----
-87

query II rowsort
SELECT + 2 AS col0, 83 * 32 AS col0
----
2
2656

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6775
SELECT - - 3 - + + 45 AS col1, COUNT( * ) DIV - 8 AS col2, + - 39 AS col0
----
-42
0
-39

skipif mysql # not compatible
query III rowsort label-6775
SELECT - - 3 - + + 45 AS col1, COUNT ( * ) / - 8 AS col2, + - 39 AS col0
----
-42
0
-39

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

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

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

query I rowsort
SELECT DISTINCT - 39 - - - 49 * + 68 * 38 + 52 * + + 27 AS col2
----
-125251

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6779
SELECT - 49 - - 31 + + CAST( NULL AS SIGNED ) / - ( + 27 ) * + - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT - 49 - - 31 + + CAST ( NULL AS INTEGER ) / - ( + 27 ) * + - 72 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6780
SELECT ALL - COUNT( * ) * - + CAST( - + 85 AS SIGNED ) * - NULLIF ( - - CAST( 61 AS SIGNED ), + COALESCE ( + - 17, + 50 ) + + - 76 ) * + - 59 + + COUNT( * ) * 88 + + COUNT( * )
----
-305826

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL - COUNT ( * ) * - + CAST ( - + 85 AS INTEGER ) * - NULLIF ( - - CAST ( 61 AS INTEGER ), + COALESCE ( + - 17, + 50 ) + + - 76 ) * + - 59 + + COUNT ( * ) * 88 + + COUNT ( * )
----
-305826

query I rowsort
SELECT ALL COALESCE ( - 76, + + 1 ) AS col2
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-6782
SELECT - 14 DIV + - 61
----
0

skipif mysql # not compatible
query I rowsort label-6782
SELECT - 14 / + - 61
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6783
SELECT - 90 + 70 DIV + 7 + + COUNT( - - 24 ) DIV COUNT( * ) * - 3 - - 31
----
-52

skipif mysql # not compatible
query I rowsort label-6783
SELECT - 90 + 70 / + 7 + + COUNT ( - - 24 ) / COUNT ( * ) * - 3 - - 31
----
-52

query II rowsort
SELECT ALL ( + 55 ) AS col1, 82 * 40
----
55
3280

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT - 83 * COUNT( * ) * 74 AS col1
----
-6142

skipif mysql # not compatible
query I rowsort label-6785
SELECT - 83 * COUNT ( * ) * 74 AS col1
----
-6142

query I rowsort
SELECT DISTINCT COALESCE ( 79, - 87 * - 76 )
----
79

query II rowsort
SELECT DISTINCT 30 * - 81 AS col2, - 66 col1
----
-2430
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6788
SELECT ALL + MIN( ALL + 2 ) DIV - 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL + MIN ( ALL + 2 ) / - 9 AS col0
----
0

query I rowsort
SELECT DISTINCT - 5 + 65
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT - - COUNT( * ) * + + 97 + - 74 + - - 37 * 68 * - + COUNT( * ) AS col2
----
-2493

skipif mysql # not compatible
query I rowsort label-6790
SELECT - - COUNT ( * ) * + + 97 + - 74 + - - 37 * 68 * - + COUNT ( * ) AS col2
----
-2493

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6791
SELECT - 50 + - 29 + + 23 - + - COUNT( * ) * + 82 * - 14 + - + 53 DIV MIN( ALL 60 )
----
-1204

skipif mysql # not compatible
query I rowsort label-6791
SELECT - 50 + - 29 + + 23 - + - COUNT ( * ) * + 82 * - 14 + - + 53 / MIN ( ALL 60 )
----
-1204

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6792
SELECT + + 10 DIV - 48 + + - 14 AS col2, - NULLIF ( - NULLIF ( - 83, - 70 + + - SUM( + 25 ) ), 3 + + 34 ) * + COUNT( * ) - + - 41
----
-14
-42

skipif mysql # not compatible
query II rowsort label-6792
SELECT + + 10 / - 48 + + - 14 AS col2, - NULLIF ( - NULLIF ( - 83, - 70 + + - SUM ( + 25 ) ), 3 + + 34 ) * + COUNT ( * ) - + - 41
----
-14
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6793
SELECT + 77 + + 95 * - 22 AS col0, - ( + 1 ) * - 64 + - - 37 + COUNT( ALL + - 61 ) + - 92 * + 46
----
-2013
-4130

skipif mysql # not compatible
query II rowsort label-6793
SELECT + 77 + + 95 * - 22 AS col0, - ( + 1 ) * - 64 + - - 37 + COUNT ( ALL + - 61 ) + - 92 * + 46
----
-2013
-4130

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT ALL + 45 * 4 * 38 + COUNT( * ) AS col0
----
6841

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL + 45 * 4 * 38 + COUNT ( * ) AS col0
----
6841

query I rowsort
SELECT + + 95 * + 60 + - 38 col2
----
5662

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6796
SELECT DISTINCT ( - + COUNT( * ) ) * - 28 + + 30 * + + 23 * - - 46 * 97 / + 76 + + ( - + COALESCE ( - - 27, 57 / ( + 88 ) + + 79 * - COUNT( * ) * - - 31 ) ) + + 74 * COUNT( * ) * CAST( NULL AS SIGNED ) / + 6 - + 89 + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT ( - + COUNT ( * ) ) * - 28 + + 30 * + + 23 * - - 46 * 97 / + 76 + + ( - + COALESCE ( - - 27, 57 / ( + 88 ) + + 79 * - COUNT ( * ) * - - 31 ) ) + + 74 * COUNT ( * ) * CAST ( NULL AS INTEGER ) / + 6 - + 89 + 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT ALL + 73 * ( + COUNT( * ) ) * + 46 + + 99
----
3457

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL + 73 * ( + COUNT ( * ) ) * + 46 + + 99
----
3457

onlyif mysql # aggregate syntax: 
query III rowsort label-6798
SELECT 68 * - COUNT( * ) * + - NULLIF ( NULLIF ( - 6, - ( + + 15 ) + - 62 + 10 ), - 38 ) + + COUNT( ALL - - 50 ) AS col1, COUNT( * ) AS col0, + MIN( DISTINCT + 68 ) AS col2
----
-407
1
68

skipif mysql # not compatible
query III rowsort label-6798
SELECT 68 * - COUNT ( * ) * + - NULLIF ( NULLIF ( - 6, - ( + + 15 ) + - 62 + 10 ), - 38 ) + + COUNT ( ALL - - 50 ) AS col1, COUNT ( * ) AS col0, + MIN ( DISTINCT + 68 ) AS col2
----
-407
1
68

query I rowsort
SELECT DISTINCT + - COALESCE ( + 99, + 54 )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6800
SELECT ALL - 44 * 76 + - 88 + - COUNT( * ) DIV - 95
----
-3432

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL - 44 * 76 + - 88 + - COUNT ( * ) / - 95
----
-3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6801
SELECT + COUNT( * ) * + + COALESCE ( + + CASE - + 43 WHEN + 11 THEN NULL WHEN - NULLIF ( + + 73, + - 24 DIV 90 * + 7 + 80 ) * + - 41 THEN - 54 DIV - - 71 * + COUNT( * ) + + 30 - - - 68 + + COUNT( * ) * + 41 * 18 - + 68 END, 60 + COALESCE ( - 50, + 37 + + 29 ), - + 71 * - 43 ) + - 28 + 24
----
6

skipif mysql # not compatible
query I rowsort label-6801
SELECT + COUNT ( * ) * + + COALESCE ( + + CASE - + 43 WHEN + 11 THEN NULL WHEN - NULLIF ( + + 73, + - 24 / 90 * + 7 + 80 ) * + - 41 THEN - 54 / - - 71 * + COUNT ( * ) + + 30 - - - 68 + + COUNT ( * ) * + 41 * 18 - + 68 END, 60 + COALESCE ( - 50, + 37 + + 29 ), - + 71 * - 43 ) + - 28 + 24
----
6

query I rowsort
SELECT - 63 - 86 AS col0
----
-149

query I rowsort
SELECT ALL + - NULLIF ( + 12, 13 * 34 * - ( + 40 ) + - 22 + + 33 ) AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6804
SELECT DISTINCT 37 * - + COALESCE ( + + NULLIF ( + + 32, COUNT( * ) * + NULLIF ( - + ( 83 ), + 32 / - COUNT( DISTINCT - 64 ) ) + 24 ), + 60, + CAST( + 39 AS SIGNED ) )
----
-1184

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT 37 * - + COALESCE ( + + NULLIF ( + + 32, COUNT ( * ) * + NULLIF ( - + ( 83 ), + 32 / - COUNT ( DISTINCT - 64 ) ) + 24 ), + 60, + CAST ( + 39 AS INTEGER ) )
----
-1184

query I rowsort
SELECT + 7 + + CASE AVG ( + 51 ) WHEN 4 THEN NULL WHEN - 25 THEN + 76 END + - 17 * + + 87 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6806
SELECT + + 41 * - COUNT( * ), COUNT( * ) + - 32 - - - NULLIF ( - ( + 61 ), - 74 * 9 + - ( - 30 ) ) + 41 col0
----
-41
71

skipif mysql # not compatible
query II rowsort label-6806
SELECT + + 41 * - COUNT ( * ), COUNT ( * ) + - 32 - - - NULLIF ( - ( + 61 ), - 74 * 9 + - ( - 30 ) ) + 41 col0
----
-41
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6807
SELECT DISTINCT 10 * - 96 - + 39 * - - 28 * ( - COUNT( * ) ) * + CAST( 71 AS SIGNED )
----
76572

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT 10 * - 96 - + 39 * - - 28 * ( - COUNT ( * ) ) * + CAST ( 71 AS INTEGER )
----
76572

query I rowsort
SELECT ALL + CASE - ( - 97 ) WHEN - - ( - 82 ) - + 26 + - 90 THEN + - ( + + 10 ) * + + 3 * + ( 74 ) + - ( - 7 ) END col2
----
NULL

query I rowsort
SELECT - 72 * - + 88 + + 67 + + 95 AS col0
----
6498

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL + MIN( DISTINCT 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL + MIN ( DISTINCT 14 ) AS col2
----
14

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

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

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

query I rowsort
SELECT + 38 * - 6 AS col2
----
-228

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT ALL + 63 DIV + 21
----
3

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL + 63 / + 21
----
3

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

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

query I rowsort
SELECT + 31 + - 6
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6817
SELECT DISTINCT CASE 80 WHEN - 49 * - 35 * + + 30 + + 34 + - 51 THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN NULL WHEN 33 THEN NULL ELSE + MAX( + - 23 ) * + - 8 + - 65 END
----
119

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT CASE 80 WHEN - 49 * - 35 * + + 30 + + 34 + - 51 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN NULL WHEN 33 THEN NULL ELSE + MAX ( + - 23 ) * + - 8 + - 65 END
----
119

query I rowsort
SELECT - 8 + + 59
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT DISTINCT + 72 * + SUM( + 90 ) AS col2
----
6480

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT + 72 * + SUM ( + 90 ) AS col2
----
6480

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6821
SELECT DISTINCT CAST( - - NULLIF ( ( 66 ), + 51 ) AS SIGNED ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT CAST ( - - NULLIF ( ( 66 ), + 51 ) AS INTEGER ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT DISTINCT + 73 + - + COUNT( * ) + - 26 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT + 73 + - + COUNT ( * ) + - 26 AS col0
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT - COALESCE ( + - COUNT( * ), + 52 * + 27, - 28 ) + + 48 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6824
SELECT - COALESCE ( + - COUNT ( * ), + 52 * + 27, - 28 ) + + 48 AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6825
SELECT ALL + 55 + - ( - 34 ) AS col0, - COALESCE ( + 44, 62 * + COUNT( DISTINCT 96 ) * 59 DIV - - 25 ) AS col1
----
89
-44

skipif mysql # not compatible
query II rowsort label-6825
SELECT ALL + 55 + - ( - 34 ) AS col0, - COALESCE ( + 44, 62 * + COUNT ( DISTINCT 96 ) * 59 / - - 25 ) AS col1
----
89
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT DISTINCT - SUM( - + 38 ) col1
----
38

skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT - SUM ( - + 38 ) col1
----
38

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

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

query I rowsort
SELECT ALL - - 30 + + ( 77 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT DISTINCT - - MIN( ALL - 39 ) + - 88 + + 68
----
-59

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT - - MIN ( ALL - 39 ) + - 88 + + 68
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-6831
SELECT + 73, CASE + 14 WHEN - - 41 THEN - - COUNT( * ) - - 35 END + - + 53 AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-6831
SELECT + 73, CASE + 14 WHEN - - 41 THEN - - COUNT ( * ) - - 35 END + - + 53 AS col1
----
73
NULL

query I rowsort
SELECT ALL + 77 + + 9
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6833
SELECT - 98 / + + CASE - 34 WHEN + 51 THEN + 15 * - - 23 + CAST( NULL AS SIGNED ) + - 31 WHEN - ( + 24 ) THEN NULL ELSE NULL END * + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6833
SELECT - 98 / + + CASE - 34 WHEN + 51 THEN + 15 * - - 23 + CAST ( NULL AS INTEGER ) + - 31 WHEN - ( + 24 ) THEN NULL ELSE NULL END * + 19 AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT + ( + 59 ) * - 34 * + 98
----
-196588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6836
SELECT ALL + 97 DIV + 47 + + COUNT( * ) + + COUNT( * ) * + 65 - - - 46 + - 6
----
16

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL + 97 / + 47 + + COUNT ( * ) + + COUNT ( * ) * + 65 - - - 46 + - 6
----
16

query II rowsort
SELECT NULLIF ( + 49, + - 68 ) AS col1, - 81 col2
----
49
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6838
SELECT ALL - - COUNT( 70 ) * - + 12, - 58 * - 50 * CAST( NULL AS SIGNED ) / - 75 AS col2
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-6838
SELECT ALL - - COUNT ( 70 ) * - + 12, - 58 * - 50 * CAST ( NULL AS INTEGER ) / - 75 AS col2
----
-12
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT + COUNT( * ) + + - 58 * - - 94
----
-5451

skipif mysql # not compatible
query I rowsort label-6840
SELECT + COUNT ( * ) + + - 58 * - - 94
----
-5451

query I rowsort
SELECT ALL + 51 * - - 14 + - 64 * + 24 AS col2
----
-822

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

query I rowsort
SELECT DISTINCT + - 46 * + + 34 * 14
----
-21896

query I rowsort
SELECT ALL - + 61 col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6845
SELECT COUNT( * ) * - 65 AS col1, + CAST( 38 AS SIGNED ) * + + 36 + - 43 + 46 + 82 + - - 77 * + 13 / + ( + AVG ( ALL - + 1 ) ) / - CASE - 55 WHEN - 58 + + 82 + - 82 THEN 11 + - 81 WHEN + 20 * 26 THEN NULL ELSE NULL END * - - MAX( ALL + 59 )
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-6845
SELECT COUNT ( * ) * - 65 AS col1, + CAST ( 38 AS INTEGER ) * + + 36 + - 43 + 46 + 82 + - - 77 * + 13 / + ( + AVG ( ALL - + 1 ) ) / - CASE - 55 WHEN - 58 + + 82 + - 82 THEN 11 + - 81 WHEN + 20 * 26 THEN NULL ELSE NULL END * - - MAX ( ALL + 59 )
----
-65
NULL

query I rowsort
SELECT 10 - 88
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ( + 97 ) + - - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-6847
SELECT ( + 97 ) + - - COUNT ( * )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6848
SELECT ALL CAST( NULL AS SIGNED ) * NULLIF ( - 65, - 70 ) / - + 89 * - NULLIF ( - 21, + - NULLIF ( 9, - COUNT( ALL + + 90 ) ) * - ( + 21 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL CAST ( NULL AS INTEGER ) * NULLIF ( - 65, - 70 ) / - + 89 * - NULLIF ( - 21, + - NULLIF ( 9, - COUNT ( ALL + + 90 ) ) * - ( + 21 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 46 ) * + + 15
----
-690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6850
SELECT ALL 96 + + - NULLIF ( + - 65, + 59 + - - 50 * - - ( - 12 ) + + + 85 ) + - 27 AS col2, CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - + MAX( DISTINCT + 19 ) + - 91 + - 32 + + + 2 * + 78 * 69 * - 56 / - - COUNT( * ) * + - 10 + + ( + AVG ( 90 ) ) + - + AVG ( DISTINCT - 69 )
----
134
NULL

skipif mysql # not compatible
query II rowsort label-6850
SELECT ALL 96 + + - NULLIF ( + - 65, + 59 + - - 50 * - - ( - 12 ) + + + 85 ) + - 27 AS col2, CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - + MAX ( DISTINCT + 19 ) + - 91 + - 32 + + + 2 * + 78 * 69 * - 56 / - - COUNT ( * ) * + - 10 + + ( + AVG ( 90 ) ) + - + AVG ( DISTINCT - 69 )
----
134
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6851
SELECT DISTINCT NULLIF ( ( + 2 ), COUNT( * ) * + - COUNT( * ) * 66 ) + 14 + - CASE + CAST( + + 2 AS SIGNED ) WHEN CAST( 7 AS SIGNED ) THEN - COALESCE ( - 58, - + CASE 43 WHEN + 73 + - + 94 THEN - + 99 + + CAST( NULL AS SIGNED ) ELSE NULL END ) * + + 94 ELSE - 29 END, 11 AS col0
----
45
11

skipif mysql # not compatible
query II rowsort label-6851
SELECT DISTINCT NULLIF ( ( + 2 ), COUNT ( * ) * + - COUNT ( * ) * 66 ) + 14 + - CASE + CAST ( + + 2 AS INTEGER ) WHEN CAST ( 7 AS INTEGER ) THEN - COALESCE ( - 58, - + CASE 43 WHEN + 73 + - + 94 THEN - + 99 + + CAST ( NULL AS INTEGER ) ELSE NULL END ) * + + 94 ELSE - 29 END, 11 AS col0
----
45
11

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6853
SELECT DISTINCT 53 DIV CAST( - 3 AS SIGNED ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT 53 / CAST ( - 3 AS INTEGER ) AS col2
----
-17

query I rowsort
SELECT ( + 57 ) * + + 41 AS col2
----
2337

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT 87 * ( + COUNT( * ) ) col2
----
87

skipif mysql # not compatible
query I rowsort label-6855
SELECT 87 * ( + COUNT ( * ) ) col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL + COALESCE ( - 32, 36 * - COUNT( * ) * - - ( 92 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL + COALESCE ( - 32, 36 * - COUNT ( * ) * - - ( 92 ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT + CASE + 24 WHEN - COUNT( * ) + 61 THEN - 86 ELSE + 94 + - ( + 57 ) END AS col1
----
37

skipif mysql # not compatible
query I rowsort label-6857
SELECT + CASE + 24 WHEN - COUNT ( * ) + 61 THEN - 86 ELSE + 94 + - ( + 57 ) END AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6858
SELECT ALL + 87 + - - CAST( - + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL + 87 + - - CAST ( - + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6859
SELECT ALL + + 15 + - MIN( ALL + 72 ) * + 87, COUNT( * ) DIV + 23 AS col2
----
-6249
0

skipif mysql # not compatible
query II rowsort label-6859
SELECT ALL + + 15 + - MIN ( ALL + 72 ) * + 87, COUNT ( * ) / + 23 AS col2
----
-6249
0

query I rowsort
SELECT - 68 * + 50 * 16 AS col2
----
-54400

onlyif mysql # aggregate syntax: 
query II rowsort label-6861
SELECT - MIN( ALL + 27 ) AS col0, 76
----
-27
76

skipif mysql # not compatible
query II rowsort label-6861
SELECT - MIN ( ALL + 27 ) AS col0, 76
----
-27
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT - COUNT( * ) + + + 56
----
55

skipif mysql # not compatible
query I rowsort label-6862
SELECT - COUNT ( * ) + + + 56
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6863
SELECT ALL + + COUNT( * ) - - 42 AS col2, 33 + - + 79
----
43
-46

skipif mysql # not compatible
query II rowsort label-6863
SELECT ALL + + COUNT ( * ) - - 42 AS col2, 33 + - + 79
----
43
-46

query II rowsort
SELECT + 35 + - 85, - 0 * + 66 AS col2
----
-50
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6865
SELECT 53 + - CAST( 76 AS SIGNED ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6865
SELECT 53 + - CAST ( 76 AS INTEGER ) AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6866
SELECT + COALESCE ( + - 18, - - 20 ) - + COUNT( * ) col0, 29 DIV - 81 * + - 10 - + + 3
----
-19
-3

skipif mysql # not compatible
query II rowsort label-6866
SELECT + COALESCE ( + - 18, - - 20 ) - + COUNT ( * ) col0, 29 / - 81 * + - 10 - + + 3
----
-19
-3

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

query I rowsort
SELECT + 75 + - 33
----
42

query I rowsort
SELECT ALL - + NULLIF ( - 28, 66 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT DISTINCT - - 81 - COUNT( * ) * 91 + - + 54 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT - - 81 - COUNT ( * ) * 91 + - + 54 AS col0
----
-64

query I rowsort
SELECT DISTINCT 37 * + 41 * + 96 AS col0
----
145632

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ALL + COUNT( * ) * - 44 + + - 96 AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + COUNT ( * ) * - 44 + + - 96 AS col2
----
-140

query I rowsort
SELECT 30 + + 87 col1
----
117

query I rowsort
SELECT ALL - 62 * + 51 * + 80
----
-252960

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT COUNT( * ) + 9 + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-6876
SELECT COUNT ( * ) + 9 + + COUNT ( * )
----
11

query I rowsort
SELECT 17 * + 56 AS col2
----
952

onlyif mysql # aggregate syntax: 
query II rowsort label-6878
SELECT COUNT( * ) * - SUM( + - 22 ) AS col0, 94 * + 24 * - + 89 * - - 1 AS col2
----
22
-200784

skipif mysql # not compatible
query II rowsort label-6878
SELECT COUNT ( * ) * - SUM ( + - 22 ) AS col0, 94 * + 24 * - + 89 * - - 1 AS col2
----
22
-200784

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT - MAX( + 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT - MAX ( + 70 ) AS col2
----
-70

query I rowsort
SELECT ALL + ( 91 ) * 97 * + + 44 + + 77 - 87
----
388378

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL 55 + + - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL 55 + + - COUNT ( * )
----
54

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6883
SELECT 61 * + - COALESCE ( + - 47, 20 DIV 17, - - CAST( NULL AS SIGNED ) + - 14 + 78 ) * + 83 * - + ( 62 )
----
-14753582

skipif mysql # not compatible
query I rowsort label-6883
SELECT 61 * + - COALESCE ( + - 47, 20 / 17, - - CAST ( NULL AS INTEGER ) + - 14 + 78 ) * + 83 * - + ( 62 )
----
-14753582

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT ALL 60 + + 84 * - SUM( + - 80 )
----
6780

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL 60 + + 84 * - SUM ( + - 80 )
----
6780

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

skipif mysql # not compatible
query I rowsort label-6885
SELECT - SUM ( + - 64 )
----
64

query I rowsort
SELECT 42 + - - 77
----
119

query I rowsort
SELECT 45 * 19
----
855

query I rowsort
SELECT ALL 12 * 19 AS col1
----
228

query I rowsort
SELECT 51 + 30 + - 48
----
33

query II rowsort
SELECT ( 81 ) + - + 61 + - 77 * - + 48 AS col2, 97
----
3716
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT - SUM( ALL - + 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-6891
SELECT - SUM ( ALL - + 47 ) AS col2
----
47

query I rowsort
SELECT ALL 6 + - + 18
----
-12

query I rowsort
SELECT ALL + 52 * 65
----
3380

query I rowsort
SELECT ALL 13 * 92 + - 94 + + 63 + + 74 AS col0
----
1239

query I rowsort
SELECT - 53 + + 85
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT + MIN( DISTINCT - + 57 ) + 4 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6896
SELECT + MIN ( DISTINCT - + 57 ) + 4 AS col0
----
-53

query II rowsort
SELECT + - ( 60 ) + + - 70 col0, + 7 * - - 7 + + 92
----
-130
141

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6899
SELECT ALL - 25 DIV + 17 + 77 AS col1, COUNT( 95 ) AS col1
----
76
1

skipif mysql # not compatible
query II rowsort label-6899
SELECT ALL - 25 / + 17 + 77 AS col1, COUNT ( 95 ) AS col1
----
76
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT - 16 + + + 30 + + + COUNT( * ) * + - NULLIF ( + 96, 13 + + 53 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-6900
SELECT - 16 + + + 30 + + + COUNT ( * ) * + - NULLIF ( + 96, 13 + + 53 ) AS col0
----
-82

query I rowsort
SELECT + 69 * 98 + + 59 AS col0
----
6821

onlyif mysql # aggregate syntax: 
query II rowsort label-6902
SELECT ALL - 84 * 4 + CASE - ( - ( 95 ) ) WHEN - 82 THEN MAX( 53 ) * + 43 * NULLIF ( - - COUNT( * ), + + MAX( - 52 ) * - - 84 + 42 ) + + 88 END + 59 * - - ( COUNT( * ) ) AS col0, - 24 AS col2
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-6902
SELECT ALL - 84 * 4 + CASE - ( - ( 95 ) ) WHEN - 82 THEN MAX ( 53 ) * + 43 * NULLIF ( - - COUNT ( * ), + + MAX ( - 52 ) * - - 84 + 42 ) + + 88 END + 59 * - - ( COUNT ( * ) ) AS col0, - 24 AS col2
----
NULL
-24

query I rowsort
SELECT + - 68 * - 17 AS col2
----
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT + COUNT( + + 8 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6904
SELECT + COUNT ( + + 8 ) col1
----
1

query II rowsort
SELECT DISTINCT + 57 col2, - COALESCE ( 26, + 78 ) * 84
----
57
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT CASE - 31 WHEN + + MAX( ALL 40 ) THEN + 92 / + - MAX( DISTINCT 54 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT CASE - 31 WHEN + + MAX ( ALL 40 ) THEN + 92 / + - MAX ( DISTINCT 54 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT ALL + 89 * ( + 54 ) + - + SUM( - 1 )
----
4807

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL + 89 * ( + 54 ) + - + SUM ( - 1 )
----
4807

query I rowsort
SELECT COALESCE ( + 25, - 47 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6909
SELECT COALESCE ( 66, - COUNT( * ) * - - MIN( ALL - - 9 ) - + 18 ) AS col0, - 25 col2
----
66
-25

skipif mysql # not compatible
query II rowsort label-6909
SELECT COALESCE ( 66, - COUNT ( * ) * - - MIN ( ALL - - 9 ) - + 18 ) AS col0, - 25 col2
----
66
-25

query I rowsort
SELECT DISTINCT 56 * + 17 * - + ( NULLIF ( + ( - + 16 ), + 18 * - 21 ) ) AS col0
----
15232

query I rowsort
SELECT - 67 * - 53 AS col1
----
3551

query I rowsort
SELECT ALL 28 * + + 21 + + 60
----
648

query II rowsort
SELECT ALL + 71 AS col2, 29 + + 79 + - - 68 + 61 col0
----
71
237

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT - 46 / CASE MAX( DISTINCT - 94 ) WHEN - 82 / 77 + - 33 THEN + - 8 WHEN NULLIF ( - 4, + NULLIF ( 86, - 62 ) ) * + + 95 * 13 * 69 THEN NULL ELSE NULL END - + MAX( DISTINCT + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT - 46 / CASE MAX ( DISTINCT - 94 ) WHEN - 82 / 77 + - 33 THEN + - 8 WHEN NULLIF ( - 4, + NULLIF ( 86, - 62 ) ) * + + 95 * 13 * 69 THEN NULL ELSE NULL END - + MAX ( DISTINCT + 5 )
----
NULL

query I rowsort
SELECT ALL 40 * + + 70 + - - 59
----
2859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6916
SELECT - 37 * + CAST( - + 62 AS SIGNED ) AS col2
----
2294

skipif mysql # not compatible
query I rowsort label-6916
SELECT - 37 * + CAST ( - + 62 AS INTEGER ) AS col2
----
2294

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

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL - COUNT ( * ) / + 92 * - 89
----
0

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

query I rowsort
SELECT NULLIF ( - - 17, - 76 + 44 )
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-6920
SELECT + 96 AS col1, 68 + 88 DIV - 97
----
96
68

skipif mysql # not compatible
query II rowsort label-6920
SELECT + 96 AS col1, 68 + 88 / - 97
----
96
68

query I rowsort
SELECT DISTINCT - 14 * + 64
----
-896

query I rowsort
SELECT ALL + 96 * 40
----
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT DISTINCT - 42 * - COUNT( * ) * - 67 AS col0
----
-2814

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT - 42 * - COUNT ( * ) * - 67 AS col0
----
-2814

query I rowsort
SELECT - 77 + + - ( - 30 ) AS col2
----
-47

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6926
SELECT DISTINCT 58 * - 86 - - 81 DIV COUNT( * ) * + + COUNT( * )
----
-4907

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT 58 * - 86 - - 81 / COUNT ( * ) * + + COUNT ( * )
----
-4907

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT - SUM( ALL + 55 ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-6927
SELECT - SUM ( ALL + 55 ) col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT ALL CASE - COUNT( * ) WHEN - - 28 + - 72 + + MAX( + - 13 ) THEN 18 + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL CASE - COUNT ( * ) WHEN - - 28 + - 72 + + MAX ( + - 13 ) THEN 18 + 54 END
----
NULL

query I rowsort
SELECT - 47 * - + 30 AS col2
----
1410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6930
SELECT DISTINCT - 79 - + - 48 + + 48 * ( - - COALESCE ( - 77, ( - 6 ) DIV 55 * - NULLIF ( 3, + - 46 ) * 62 + + COUNT( * ), 64 ) ) * - - COUNT( * ) + 63 - - 18 + - COUNT( * ) AS col1
----
-3647

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT - 79 - + - 48 + + 48 * ( - - COALESCE ( - 77, ( - 6 ) / 55 * - NULLIF ( 3, + - 46 ) * 62 + + COUNT ( * ), 64 ) ) * - - COUNT ( * ) + 63 - - 18 + - COUNT ( * ) AS col1
----
-3647

onlyif mysql # aggregate syntax: 
query II rowsort label-6931
SELECT - COALESCE ( + 17, + ( + 73 ) ) - + 5 + + + CASE - COUNT( * ) WHEN - - 19 * - - ( + - 71 ) + - SUM( + 11 ) THEN NULL WHEN + 11 THEN - 18 ELSE NULL END AS col0, 88 AS col1
----
NULL
88

skipif mysql # not compatible
query II rowsort label-6931
SELECT - COALESCE ( + 17, + ( + 73 ) ) - + 5 + + + CASE - COUNT ( * ) WHEN - - 19 * - - ( + - 71 ) + - SUM ( + 11 ) THEN NULL WHEN + 11 THEN - 18 ELSE NULL END AS col0, 88 AS col1
----
NULL
88

query I rowsort
SELECT - - 40 * - + 65 * 98 AS col2
----
-254800

onlyif mysql # aggregate syntax: 
query II rowsort label-6933
SELECT - 48 AS col1, 74 + - COUNT( * )
----
-48
73

skipif mysql # not compatible
query II rowsort label-6933
SELECT - 48 AS col1, 74 + - COUNT ( * )
----
-48
73

query I rowsort
SELECT - + 65 + + 37 col1
----
-28

query I rowsort
SELECT DISTINCT - 96 * 45 col0
----
-4320

query II rowsort
SELECT ALL 20, + 93 * + 91 AS col1
----
20
8463

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT + COUNT( * ) * + 3 + - COUNT( * ) + + NULLIF ( ( 49 ), + AVG ( + 39 ) )
----
51

skipif mysql # not compatible
query I rowsort label-6937
SELECT + COUNT ( * ) * + 3 + - COUNT ( * ) + + NULLIF ( ( 49 ), + AVG ( + 39 ) )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6938
SELECT ALL + ( - - 12 ) * 73 * - 19, 46 * - + ( - 24 ) + + COUNT( * ) AS col2
----
-16644
1105

skipif mysql # not compatible
query II rowsort label-6938
SELECT ALL + ( - - 12 ) * 73 * - 19, 46 * - + ( - 24 ) + + COUNT ( * ) AS col2
----
-16644
1105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6939
SELECT + + 58 - + CAST( NULL AS SIGNED ) * - - 54 + + 26 - - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT + + 58 - + CAST ( NULL AS INTEGER ) * - - 54 + + 26 - - 2 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 39 * - 43
----
1677

query I rowsort
SELECT DISTINCT - 47 * 10
----
-470

query I rowsort
SELECT DISTINCT 32 * 98
----
3136

query I rowsort
SELECT + + 8 * + 98 + 59 AS col2
----
843

query I rowsort
SELECT ALL + 2 * - 79
----
-158

query II rowsort
SELECT ALL 10 AS col0, - 79 + - - 54 * 15 - - 54 - 51
----
10
734

query I rowsort
SELECT - NULLIF ( 48, - 9 ) AS col2
----
-48

query I rowsort
SELECT + 33 + 89 AS col2
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-6948
SELECT 25 AS col0, + ( + - 36 ) + - COUNT( * ) AS col1
----
25
-37

skipif mysql # not compatible
query II rowsort label-6948
SELECT 25 AS col0, + ( + - 36 ) + - COUNT ( * ) AS col1
----
25
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL MIN( DISTINCT - + 77 ) + 32
----
-45

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL MIN ( DISTINCT - + 77 ) + 32
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6950
SELECT + 46 + COUNT( * ) * + 1 - - 15 + - CASE + + 77 WHEN + + 42 THEN + + 69 * - - 42 WHEN - + COUNT( * ) THEN + 3 / - - CAST( 78 AS SIGNED ) + + + 75 * - ( 49 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT + 46 + COUNT ( * ) * + 1 - - 15 + - CASE + + 77 WHEN + + 42 THEN + + 69 * - - 42 WHEN - + COUNT ( * ) THEN + 3 / - - CAST ( 78 AS INTEGER ) + + + 75 * - ( 49 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT - 16 - - - COALESCE ( COUNT( + 44 ), - + COUNT( * ) * + 47 ) + 19 - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6951
SELECT - 16 - - - COALESCE ( COUNT ( + 44 ), - + COUNT ( * ) * + 47 ) + 19 - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6952
SELECT ALL + + 46 DIV + COUNT( * ) + - 99 col0
----
-53

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL + + 46 / + COUNT ( * ) + - 99 col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6953
SELECT ALL CAST( + MIN( + 28 ) AS SIGNED ) DIV - NULLIF ( - 98, + - 11 ) + - 63 * - 36 * + + 55 col2
----
124740

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL CAST ( + MIN ( + 28 ) AS INTEGER ) / - NULLIF ( - 98, + - 11 ) + - 63 * - 36 * + + 55 col2
----
124740

onlyif mysql # DIV for integer division: 
query I rowsort label-6954
SELECT DISTINCT - 84 DIV + 90 + - 57
----
-57

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT - 84 / + 90 + - 57
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-6955
SELECT ALL 67 DIV - 27 + - NULLIF ( - 93, + + 76 )
----
91

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL 67 / - 27 + - NULLIF ( - 93, + + 76 )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6956
SELECT + 80 DIV 44 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6956
SELECT + 80 / 44 + COUNT ( * )
----
2

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

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

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

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

query I rowsort
SELECT - 14 + 69 * - 28
----
-1946

query I rowsort
SELECT + 25 * 85 col2
----
2125

query II rowsort
SELECT ALL - 28 * - 50 AS col2, + 98
----
1400
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6962
SELECT + CAST( + + 70 AS SIGNED ) AS col2, 21 + + - 23 AS col0
----
70
-2

skipif mysql # not compatible
query II rowsort label-6962
SELECT + CAST ( + + 70 AS INTEGER ) AS col2, 21 + + - 23 AS col0
----
70
-2

query I rowsort
SELECT ALL 54 * + - 37 - 2
----
-2000

query I rowsort
SELECT ( + NULLIF ( 6, - + NULLIF ( - - 61, + 25 + 58 - 49 ) ) )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6965
SELECT ALL + COUNT( ALL + 18 ) * + CAST( NULL AS SIGNED ) AS col1, 88 AS col2
----
NULL
88

skipif mysql # not compatible
query II rowsort label-6965
SELECT ALL + COUNT ( ALL + 18 ) * + CAST ( NULL AS INTEGER ) AS col1, 88 AS col2
----
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT COALESCE ( - 55, - MIN( + 59 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-6966
SELECT COALESCE ( - 55, - MIN ( + 59 ) )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-6967
SELECT DISTINCT + 92 DIV + 41 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT + 92 / + 41 AS col0
----
2

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

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

query I rowsort
SELECT 71 * + - 48 AS col0
----
-3408

query I rowsort
SELECT ALL + - 16 * - 88 AS col1
----
1408

query I rowsort
SELECT + 15 + 13 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT DISTINCT - + COUNT( * ) * + - 94 - + ( - - 53 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT - + COUNT ( * ) * + - 94 - + ( - - 53 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT MIN( - + 35 ) * 95
----
-3325

skipif mysql # not compatible
query I rowsort label-6973
SELECT MIN ( - + 35 ) * 95
----
-3325

query II rowsort
SELECT ALL + ( + - ( - 98 ) ) AS col0, + 13
----
98
13

query I rowsort
SELECT DISTINCT - + 12 * + + 5 * + 28 AS col1
----
-1680

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

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

query II rowsort
SELECT ALL ( + 71 ), + 74 AS col1
----
71
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT 76 * - 93 + + + 92 * + 28 * - 70 * + 80 * COUNT( * ) col2
----
-14432668

skipif mysql # not compatible
query I rowsort label-6978
SELECT 76 * - 93 + + + 92 * + 28 * - 70 * + 80 * COUNT ( * ) col2
----
-14432668

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6979
SELECT 20 + + COUNT( * ) + + 35 + + 51 * SUM( 75 ) * - CAST( NULL AS DECIMAL ) * + 22 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6979
SELECT 20 + + COUNT ( * ) + + 35 + + 51 * SUM ( 75 ) * - CAST ( NULL AS REAL ) * + 22 col1
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6981
SELECT 99 * + 41 * + + COUNT ( * ) AS col0
----
4059

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6982
SELECT ALL - CAST( + + 23 AS SIGNED ) + 87, - 48 col0
----
64
-48

skipif mysql # not compatible
query II rowsort label-6982
SELECT ALL - CAST ( + + 23 AS INTEGER ) + 87, - 48 col0
----
64
-48

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

query I rowsort
SELECT DISTINCT 38 * + 46
----
1748

query I rowsort
SELECT ALL 56 + - 78
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6986
SELECT ALL + NULLIF ( 18, 78 * - + 10 * - 97 - + + 31 ) * CASE + CASE 48 WHEN - 13 THEN NULL ELSE + - SUM( ALL - 79 ) + + - CAST( + 13 AS SIGNED ) END WHEN + - COALESCE ( - COALESCE ( 47, CASE 83 WHEN - 62 THEN + + CASE WHEN NOT 78 <> - 98 THEN COUNT( * ) END WHEN 8 THEN - + CASE CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN + + COUNT( * ) * 70 + + - 53 + - ( - CASE WHEN NOT ( + 70 ) BETWEEN + 62 * 29 AND + 48 * NULLIF ( + 79, MAX( + 32 ) / COUNT( 63 / 35 ) ) - 34 * 84 THEN NULL WHEN NOT NULL BETWEEN + COUNT( * ) + + 63 AND NULL THEN 51 + - 54 END ) + + 96 * MAX( 3 + 80 ) / 98 WHEN - 87 THEN NULL END ELSE 32 END ), - 84 * - 44 + 53 ) THEN AVG ( DISTINCT - 91 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL + NULLIF ( 18, 78 * - + 10 * - 97 - + + 31 ) * CASE + CASE 48 WHEN - 13 THEN NULL ELSE + - SUM ( ALL - 79 ) + + - CAST ( + 13 AS INTEGER ) END WHEN + - COALESCE ( - COALESCE ( 47, CASE 83 WHEN - 62 THEN + + CASE WHEN NOT 78 <> - 98 THEN COUNT ( * ) END WHEN 8 THEN - + CASE CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN + + COUNT ( * ) * 70 + + - 53 + - ( - CASE WHEN NOT ( + 70 ) BETWEEN + 62 * 29 AND + 48 * NULLIF ( + 79, MAX ( + 32 ) / COUNT ( 63 / 35 ) ) - 34 * 84 THEN NULL WHEN NOT NULL BETWEEN + COUNT ( * ) + + 63 AND NULL THEN 51 + - 54 END ) + + 96 * MAX ( 3 + 80 ) / 98 WHEN - 87 THEN NULL END ELSE 32 END ), - 84 * - 44 + 53 ) THEN AVG ( DISTINCT - 91 ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 20, 30 AS col1
----
-20
30

query I rowsort
SELECT ALL 43 + 65
----
108

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6989
SELECT CAST( 16 AS DECIMAL ) * - 54 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT CAST ( 16 AS REAL ) * - 54 * + CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6991
SELECT ALL 90 DIV + - 11 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL 90 / + - 11 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6992
SELECT ALL - 99 AS col0, COUNT( * ) AS col0
----
-99
1

skipif mysql # not compatible
query II rowsort label-6992
SELECT ALL - 99 AS col0, COUNT ( * ) AS col0
----
-99
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6993
SELECT ALL - 44, - CAST( - 45 AS SIGNED ) col2
----
-44
45

skipif mysql # not compatible
query II rowsort label-6993
SELECT ALL - 44, - CAST ( - 45 AS INTEGER ) col2
----
-44
45

query I rowsort
SELECT 80 - + ( - 14 )
----
94

query II rowsort
SELECT ALL - 15 AS col0, + 47
----
-15
47

query I rowsort
SELECT CASE - 44 WHEN 79 * - + 80 - 68 + + 2 / - 55 THEN 1 WHEN - + 86 THEN NULL END * + 8 - - 70 * - 19 + - ( - + 83 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT ALL 30 - - MIN( + 92 ) - + MAX( DISTINCT + 36 ) + 0 * 77 * + 12 * 70 * + + ( + 26 ) + - + 57 * COUNT( * ) * - + 33 * - 88
----
-165442

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL 30 - - MIN ( + 92 ) - + MAX ( DISTINCT + 36 ) + 0 * 77 * + 12 * 70 * + + ( + 26 ) + - + 57 * COUNT ( * ) * - + 33 * - 88
----
-165442

query I rowsort
SELECT ALL 47 * + - 17 AS col0
----
-799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6999
SELECT + CAST( 8 AS SIGNED ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6999
SELECT + CAST ( 8 AS INTEGER ) AS col0
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT 73 * - + 91 + COUNT( * )
----
-6642

skipif mysql # not compatible
query I rowsort label-7001
SELECT 73 * - + 91 + COUNT ( * )
----
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT - 72 * - 38 + + 42 + - - 35 * COUNT( * ) AS col1
----
2813

skipif mysql # not compatible
query I rowsort label-7002
SELECT - 72 * - 38 + + 42 + - - 35 * COUNT ( * ) AS col1
----
2813

query II rowsort
SELECT DISTINCT - - 38 AS col0, 85 * 23 AS col1
----
38
1955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7004
SELECT ALL - CAST( - 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - CAST ( - 25 AS INTEGER )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7005
SELECT ALL + ( ( 9 ) ) * - COALESCE ( - + ( + 76 ), 26 ) DIV 71 * 77 AS col2, + NULLIF ( CAST( NULL AS SIGNED ), - 77 ) - + + 15 - + - COALESCE ( + 51, - COALESCE ( 83, + 18 * + - 72 * - - 16 * - 24 * - - COUNT( * ) ) ) AS col2
----
693
NULL

skipif mysql # not compatible
query II rowsort label-7005
SELECT ALL + ( ( 9 ) ) * - COALESCE ( - + ( + 76 ), 26 ) / 71 * 77 AS col2, + NULLIF ( CAST ( NULL AS INTEGER ), - 77 ) - + + 15 - + - COALESCE ( + 51, - COALESCE ( 83, + 18 * + - 72 * - - 16 * - 24 * - - COUNT ( * ) ) ) AS col2
----
693
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7006
SELECT DISTINCT NULLIF ( + ( + + 69 ), 31 + - ( - 87 ) ) col1, COALESCE ( - SUM( ALL + 85 ), + 30 ) * 65 + 1
----
69
-5524

skipif mysql # not compatible
query II rowsort label-7006
SELECT DISTINCT NULLIF ( + ( + + 69 ), 31 + - ( - 87 ) ) col1, COALESCE ( - SUM ( ALL + 85 ), + 30 ) * 65 + 1
----
69
-5524

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL + COUNT( * ) + + 4
----
5

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL + COUNT ( * ) + + 4
----
5

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

skipif mysql # not compatible
query II rowsort label-7008
SELECT - - COUNT ( * ), 94 AS col0
----
1
94

query I rowsort
SELECT - 53 + - 22
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7010
SELECT ALL + 2 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL + 2 / - 56
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7011
SELECT - 33, + CASE + COUNT( * ) WHEN - 40 * + 31 * + + COUNT( * ) * - COUNT( * ) THEN NULL WHEN + - MAX( 32 ) * - + 70 + - - 88 * 54 THEN NULL ELSE - 41 END AS col2
----
-33
-41

skipif mysql # not compatible
query II rowsort label-7011
SELECT - 33, + CASE + COUNT ( * ) WHEN - 40 * + 31 * + + COUNT ( * ) * - COUNT ( * ) THEN NULL WHEN + - MAX ( 32 ) * - + 70 + - - 88 * 54 THEN NULL ELSE - 41 END AS col2
----
-33
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT ALL + - 97 + - 78 DIV + 18 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL + - 97 + - 78 / + 18 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ALL + COUNT( * ) + - - 97
----
98

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL + COUNT ( * ) + - - 97
----
98

query I rowsort
SELECT 22 - 1 AS col0
----
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT - SUM( DISTINCT + 16 ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-7016
SELECT - SUM ( DISTINCT + 16 ) col0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7017
SELECT ALL - - ( + CAST( NULL AS SIGNED ) ) + + - 53 + + 51 + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL - - ( + CAST ( NULL AS INTEGER ) ) + + - 53 + + 51 + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT MAX( ALL 61 ) * NULLIF ( + 44, NULLIF ( - 97, - 73 ) ) - 79 col1
----
2605

skipif mysql # not compatible
query I rowsort label-7018
SELECT MAX ( ALL 61 ) * NULLIF ( + 44, NULLIF ( - 97, - 73 ) ) - 79 col1
----
2605

query I rowsort
SELECT 26 * - - 33 AS col1
----
858

onlyif mysql # DIV for integer division: 
query II rowsort label-7020
SELECT ALL - 73 - 87 AS col2, 62 - 90 DIV 81 AS col0
----
-160
61

skipif mysql # not compatible
query II rowsort label-7020
SELECT ALL - 73 - 87 AS col2, 62 - 90 / 81 AS col0
----
-160
61

query I rowsort
SELECT 35 + - 70 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT CASE 6 WHEN 69 + - ( + 59 ) THEN - 68 * - 9 ELSE NULL END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT CASE 6 WHEN 69 + - ( + 59 ) THEN - 68 * - 9 ELSE NULL END - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT ALL CASE 35 WHEN - 95 * COUNT( * ) THEN NULL WHEN - - 84 THEN NULL WHEN 59 + + + COUNT( DISTINCT + + 29 ) THEN - + COALESCE ( - + MAX( DISTINCT + - 65 ), + 61 ) WHEN - 83 THEN - 19 / - ( - 1 ) + + - 47 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL CASE 35 WHEN - 95 * COUNT ( * ) THEN NULL WHEN - - 84 THEN NULL WHEN 59 + + + COUNT ( DISTINCT + + 29 ) THEN - + COALESCE ( - + MAX ( DISTINCT + - 65 ), + 61 ) WHEN - 83 THEN - 19 / - ( - 1 ) + + - 47 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT ALL COUNT( * ) * - 93 - + ( - 25 ) / CASE + + 97 WHEN + COUNT( * ) * - 61 * - 89 THEN - 63 * 97 * + 87 + + 61 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL COUNT ( * ) * - 93 - + ( - 25 ) / CASE + + 97 WHEN + COUNT ( * ) * - 61 * - 89 THEN - 63 * 97 * + 87 + + 61 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7025
SELECT ALL - CAST( 3 AS SIGNED ) AS col1, + 34 + + + 68 col0
----
-3
102

skipif mysql # not compatible
query II rowsort label-7025
SELECT ALL - CAST ( 3 AS INTEGER ) AS col1, + 34 + + + 68 col0
----
-3
102

query I rowsort
SELECT DISTINCT 65 * + 96 - + - 61 AS col1
----
6301

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT DISTINCT SUM( 86 ) * ( - - 80 ) AS col0
----
6880

skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT SUM ( 86 ) * ( - - 80 ) AS col0
----
6880

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT ALL - COALESCE ( - COUNT( * ), + - 51 )
----
1

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL - COALESCE ( - COUNT ( * ), + - 51 )
----
1

query I rowsort
SELECT DISTINCT - 83 * - 27 AS col1
----
2241

onlyif mysql # DIV for integer division: 
query I rowsort label-7030
SELECT 10 DIV - 87 + - + 69 * 19 * - 50
----
65550

skipif mysql # not compatible
query I rowsort label-7030
SELECT 10 / - 87 + - + 69 * 19 * - 50
----
65550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7031
SELECT - 36 DIV COUNT( - 75 )
----
-36

skipif mysql # not compatible
query I rowsort label-7031
SELECT - 36 / COUNT ( - 75 )
----
-36

query I rowsort
SELECT + 42 * - 61 AS col2
----
-2562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7033
SELECT + ( + 58 ) + CAST( - 2 AS SIGNED ) + - - 21 * - 14
----
-238

skipif mysql # not compatible
query I rowsort label-7033
SELECT + ( + 58 ) + CAST ( - 2 AS INTEGER ) + - - 21 * - 14
----
-238

query I rowsort
SELECT + 18 * 72 AS col0
----
1296

onlyif mysql # DIV for integer division: 
query I rowsort label-7035
SELECT + 83 DIV 40
----
2

skipif mysql # not compatible
query I rowsort label-7035
SELECT + 83 / 40
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7036
SELECT DISTINCT + 44 * 64 * - + 69 * - SUM( 77 ) + 45 + - 97, - 17 AS col2
----
14961356
-17

skipif mysql # not compatible
query II rowsort label-7036
SELECT DISTINCT + 44 * 64 * - + 69 * - SUM ( 77 ) + 45 + - 97, - 17 AS col2
----
14961356
-17

query I rowsort
SELECT + 97 * + 9 + COALESCE ( - 23, - ( + + 28 ) * 20 + 78 ) AS col1
----
850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7038
SELECT DISTINCT + 79 * 79 + CAST( + + 97 AS SIGNED ) AS col1, 11 + - COALESCE ( + + 54, - - 96 ) * - MIN( 37 ) AS col1, - 27 - COUNT( * ) AS col1
----
6338
2009
-28

skipif mysql # not compatible
query III rowsort label-7038
SELECT DISTINCT + 79 * 79 + CAST ( + + 97 AS INTEGER ) AS col1, 11 + - COALESCE ( + + 54, - - 96 ) * - MIN ( 37 ) AS col1, - 27 - COUNT ( * ) AS col1
----
6338
2009
-28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL + + COUNT( * ) * 38 + - 93 + + 59 - - COUNT( * ) * - - 77
----
81

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL + + COUNT ( * ) * 38 + - 93 + + 59 - - COUNT ( * ) * - - 77
----
81

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

query I rowsort
SELECT DISTINCT + - 78 * + + 53 + 0
----
-4134

query I rowsort
SELECT + ( + 32 ) + - - 84
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT - 53 * + COUNT( + 4 ) - 13 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-7044
SELECT - 53 * + COUNT ( + 4 ) - 13 AS col0
----
-66

query I rowsort
SELECT + 13 + + 89 + 41 * + 58
----
2480

query I rowsort
SELECT + - 69 + + 63 * + 70 * 40 col1
----
176331

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT - + SUM( DISTINCT 0 ) + - 51 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-7047
SELECT - + SUM ( DISTINCT 0 ) + - 51 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT - CASE + 65 WHEN 51 THEN - 53 WHEN + - ( MAX( ALL + 52 ) ) + + ( - 30 ) * 81 THEN NULL ELSE NULL END * + - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7048
SELECT - CASE + 65 WHEN 51 THEN - 53 WHEN + - ( MAX ( ALL + 52 ) ) + + ( - 30 ) * 81 THEN NULL ELSE NULL END * + - 10 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7049
SELECT - - 19 + + 91 DIV - + 81 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-7049
SELECT - - 19 + + 91 / - + 81 AS col1
----
18

query I rowsort
SELECT + 50 * + + 75
----
3750

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7051
SELECT DISTINCT - ( + 90 ) DIV + 76, + ( - COALESCE ( + 21, - 79, + - 81 ) ) col2, + COUNT( * ) AS col1
----
-1
-21
1

skipif mysql # not compatible
query III rowsort label-7051
SELECT DISTINCT - ( + 90 ) / + 76, + ( - COALESCE ( + 21, - 79, + - 81 ) ) col2, + COUNT ( * ) AS col1
----
-1
-21
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7052
SELECT - 73 AS col0, - 16 DIV - 10 - ( - - 1 ) AS col1
----
-73
0

skipif mysql # not compatible
query II rowsort label-7052
SELECT - 73 AS col0, - 16 / - 10 - ( - - 1 ) AS col1
----
-73
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7053
SELECT - 91 * + CAST( NULL AS SIGNED ) / - COALESCE ( 40, + + 80 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7053
SELECT - 91 * + CAST ( NULL AS INTEGER ) / - COALESCE ( 40, + + 80 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 69 * - 6
----
414

query I rowsort
SELECT ALL + 14 * + + 95 col0
----
1330

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

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

query I rowsort
SELECT - CASE - + 29 WHEN 8 THEN 41 - + ( ( + 44 ) ) END * + 0 + - ( 25 ) * 32
----
NULL

query II rowsort
SELECT - 55 * 16 * + 47 AS col2, 83 AS col0
----
-41360
83

query I rowsort
SELECT ALL ( + NULLIF ( - - 77, + 23 * - 90 ) ) AS col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7060
SELECT - 72 DIV + 29
----
-2

skipif mysql # not compatible
query I rowsort label-7060
SELECT - 72 / + 29
----
-2

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

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

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT ( + COUNT ( ALL 67 ) ) col0
----
1

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

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT DISTINCT + 97 * - 7 * + COUNT( * )
----
-679

skipif mysql # not compatible
query I rowsort label-7064
SELECT DISTINCT + 97 * - 7 * + COUNT ( * )
----
-679

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7067
SELECT 43 DIV - 23 - - + 31
----
30

skipif mysql # not compatible
query I rowsort label-7067
SELECT 43 / - 23 - - + 31
----
30

query I rowsort
SELECT ( + 48 ) col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT ( COUNT( DISTINCT - + NULLIF ( 68, 85 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7069
SELECT ( COUNT ( DISTINCT - + NULLIF ( 68, 85 ) ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7070
SELECT DISTINCT 47 DIV 53 * - COUNT( * ) + + 42 * 29 AS col1, - MIN( ALL - + 87 )
----
1218
87

skipif mysql # not compatible
query II rowsort label-7070
SELECT DISTINCT 47 / 53 * - COUNT ( * ) + + 42 * 29 AS col1, - MIN ( ALL - + 87 )
----
1218
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7071
SELECT ALL COALESCE ( + 38, - 29 + + 88 ) DIV 75 + - MIN( DISTINCT - - ( - 32 ) ) - + 62 * 15 * 48 + + MAX( ALL - 47 ) + - - 83 * - 60 + + 20 - 4 col1
----
-49619

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL COALESCE ( + 38, - 29 + + 88 ) / 75 + - MIN ( DISTINCT - - ( - 32 ) ) - + 62 * 15 * 48 + + MAX ( ALL - 47 ) + - - 83 * - 60 + + 20 - 4 col1
----
-49619

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ( COUNT( + - 26 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7072
SELECT ( COUNT ( + - 26 ) ) AS col2
----
1

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

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

query I rowsort
SELECT ALL - 82 * - - 35 + - 27
----
-2897

query I rowsort
SELECT + + 41 - + 65
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7076
SELECT DISTINCT + - 34 * + + CAST( NULL AS SIGNED ) * + 7 + + 15 * - 55 / - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT + - 34 * + + CAST ( NULL AS INTEGER ) * + 7 + + 15 * - 55 / - 91
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7077
SELECT ALL - 89 * MIN( + - CAST( 20 AS SIGNED ) ) + - 77 + 72 AS col2
----
1775

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL - 89 * MIN ( + - CAST ( 20 AS INTEGER ) ) + - 77 + 72 AS col2
----
1775

onlyif mysql # DIV for integer division: 
query I rowsort label-7078
SELECT - 84 DIV - 63
----
1

skipif mysql # not compatible
query I rowsort label-7078
SELECT - 84 / - 63
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT DISTINCT + COUNT( * ), - NULLIF ( + + 21, 19 ) * 85 col2
----
1
-1785

skipif mysql # not compatible
query II rowsort label-7079
SELECT DISTINCT + COUNT ( * ), - NULLIF ( + + 21, 19 ) * 85 col2
----
1
-1785

query I rowsort
SELECT ALL 30 * - + 89 + + - 42 + - 63 AS col2
----
-2775

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT ALL - COALESCE ( + 79, + + COUNT( * ) )
----
-79

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL - COALESCE ( + 79, + + COUNT ( * ) )
----
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT + 0 - + COUNT( * ) - + - ( - MAX( + 22 ) ) + + 33 * + + ( - - COUNT( * ) ) + + + 55 * + 4 AS col2
----
230

skipif mysql # not compatible
query I rowsort label-7084
SELECT + 0 - + COUNT ( * ) - + - ( - MAX ( + 22 ) ) + + 33 * + + ( - - COUNT ( * ) ) + + + 55 * + 4 AS col2
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT - ( - NULLIF ( + - 36, - - SUM( DISTINCT - 53 ) ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-7085
SELECT - ( - NULLIF ( + - 36, - - SUM ( DISTINCT - 53 ) ) ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT + COUNT( * ) + + + 21
----
22

skipif mysql # not compatible
query I rowsort label-7086
SELECT + COUNT ( * ) + + + 21
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7087
SELECT COUNT( * ) AS col2, ( CAST( - + 98 AS SIGNED ) ) * COUNT( * ) + 0 + + 90 - 73 * + ( + CASE - 66 WHEN - + CASE SUM( DISTINCT - + NULLIF ( + + 93, - 79 ) ) WHEN 1 + - 2 + + 23 + 27 * - + 18 THEN - MIN( DISTINCT 82 ) / + 32 ELSE + - 75 END + 99 * + COUNT( * ) THEN 42 WHEN 83 THEN CAST( - - 53 AS SIGNED ) WHEN - 72 * - 13 + + 3 THEN NULL WHEN + - 25 THEN - - 17 / - 19 END )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7087
SELECT COUNT ( * ) AS col2, ( CAST ( - + 98 AS INTEGER ) ) * COUNT ( * ) + 0 + + 90 - 73 * + ( + CASE - 66 WHEN - + CASE SUM ( DISTINCT - + NULLIF ( + + 93, - 79 ) ) WHEN 1 + - 2 + + 23 + 27 * - + 18 THEN - MIN ( DISTINCT 82 ) / + 32 ELSE + - 75 END + 99 * + COUNT ( * ) THEN 42 WHEN 83 THEN CAST ( - - 53 AS INTEGER ) WHEN - 72 * - 13 + + 3 THEN NULL WHEN + - 25 THEN - - 17 / - 19 END )
----
1
NULL

query II rowsort
SELECT 74, + 22 col0
----
74
22

query II rowsort
SELECT 82 AS col2, + 24 * + 62 AS col2
----
82
1488

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT ALL CASE + ( ( - + AVG ( + 64 ) ) ) WHEN - 22 THEN + 22 * - CASE - 70 WHEN + SUM( DISTINCT + 30 ) THEN MAX( - 46 ) * 95 ELSE - + 63 / + - 45 END + - - 55 WHEN 39 * - COUNT( DISTINCT - 25 ) THEN - 15 * - + SUM( + + 65 ) - + COUNT( * ) / 26 WHEN + 21 THEN - 93 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL CASE + ( ( - + AVG ( + 64 ) ) ) WHEN - 22 THEN + 22 * - CASE - 70 WHEN + SUM ( DISTINCT + 30 ) THEN MAX ( - 46 ) * 95 ELSE - + 63 / + - 45 END + - - 55 WHEN 39 * - COUNT ( DISTINCT - 25 ) THEN - 15 * - + SUM ( + + 65 ) - + COUNT ( * ) / 26 WHEN + 21 THEN - 93 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT - COUNT ( * ) / 46
----
0

query I rowsort
SELECT ( - 41 ) + + 61 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT 89 + - COUNT( * ) + - + 0 - - 28 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-7093
SELECT 89 + - COUNT ( * ) + - + 0 - - 28 AS col2
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT 99 * + CAST( 87 AS SIGNED ) AS col0
----
8613

skipif mysql # not compatible
query I rowsort label-7094
SELECT 99 * + CAST ( 87 AS INTEGER ) AS col0
----
8613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7095
SELECT DISTINCT + 38 DIV ( + 80 ) * - ( 64 ) + + ( CAST( + COUNT( * ) AS SIGNED ) ) - + ( + 36 ) + - + 27 + + - MIN( - 98 ) + + 27 col1
----
63

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT + 38 / ( + 80 ) * - ( 64 ) + + ( CAST ( + COUNT ( * ) AS INTEGER ) ) - + ( + 36 ) + - + 27 + + - MIN ( - 98 ) + + 27 col1
----
63

query I rowsort
SELECT 79 + ( + 39 ) * - 50
----
-1871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7097
SELECT 15 - 64 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7097
SELECT 15 - 64 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 86 * + ( + 85 ) * - 9
----
-65790

query I rowsort
SELECT ALL 71 + 14
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7100
SELECT ALL - COUNT( * ) + + - 10 * - + 36 DIV - - ( + CAST( + COUNT( * ) AS SIGNED ) ) - - 69
----
428

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL - COUNT ( * ) + + - 10 * - + 36 / - - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) - - 69
----
428

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7101
SELECT - ( ( - 74 ) ) * + + 89 + 10 + + 14 + CAST( NULL AS DECIMAL ) + + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7101
SELECT - ( ( - 74 ) ) * + + 89 + 10 + + 14 + CAST ( NULL AS REAL ) + + 8 AS col0
----
NULL

query II rowsort
SELECT + - 48, 0 AS col1
----
-48
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7103
SELECT ALL - - ( - + 34 ) + 87 DIV 61 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL - - ( - + 34 ) + 87 / 61 AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7104
SELECT - 1 AS col2, - 52 * - + 96 + - 1 col2, NULLIF ( - - 53, + 88 * + 21 / + 5 * CAST( NULL AS DECIMAL ) * + - CAST( NULL AS SIGNED ) / 68 ) AS col1
----
-1
4991
53

skipif mysql # not compatible
query III rowsort label-7104
SELECT - 1 AS col2, - 52 * - + 96 + - 1 col2, NULLIF ( - - 53, + 88 * + 21 / + 5 * CAST ( NULL AS REAL ) * + - CAST ( NULL AS INTEGER ) / 68 ) AS col1
----
-1
4991
53

query II rowsort
SELECT + 12 AS col2, + 1 * - 19 AS col2
----
12
-19

query I rowsort
SELECT 10 + 2 AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-7107
SELECT ALL - - ( + 77 ), + 71 * - COUNT( * ) + + 33 col2
----
77
-38

skipif mysql # not compatible
query II rowsort label-7107
SELECT ALL - - ( + 77 ), + 71 * - COUNT ( * ) + + 33 col2
----
77
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7108
SELECT COALESCE ( - CAST( NULL AS SIGNED ), 47 DIV - NULLIF ( + - SUM( DISTINCT - NULLIF ( + - 35, - 23 DIV - + 60 ) ), - 94 - - 10 * + 29 - + COUNT( - 60 ) ) + - COUNT( * ) + 45, SUM( DISTINCT + 0 ) ) + + - 62 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7108
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), 47 / - NULLIF ( + - SUM ( DISTINCT - NULLIF ( + - 35, - 23 / - + 60 ) ), - 94 - - 10 * + 29 - + COUNT ( - 60 ) ) + - COUNT ( * ) + 45, SUM ( DISTINCT + 0 ) ) + + - 62 AS col1
----
-17

query I rowsort
SELECT - 72 * + 21
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT 87 * + COUNT( * ) * + 49
----
4263

skipif mysql # not compatible
query I rowsort label-7110
SELECT 87 * + COUNT ( * ) * + 49
----
4263

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7113
SELECT ALL - 7, COUNT( * ) * - - 19 + 8 AS col2
----
-7
27

skipif mysql # not compatible
query II rowsort label-7113
SELECT ALL - 7, COUNT ( * ) * - - 19 + 8 AS col2
----
-7
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT ALL - 74 - + + 61 - - 83 * + COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL - 74 - + + 61 - - 83 * + COUNT ( * ) AS col2
----
-52

query I rowsort
SELECT 66 * 56 AS col2
----
3696

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

query I rowsort
SELECT - 31 + - + 93 AS col2
----
-124

query I rowsort
SELECT ALL + 13 * + 58
----
754

query I rowsort
SELECT - 75 * + 43 AS col1
----
-3225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7120
SELECT 89 * CAST( - 90 AS SIGNED )
----
-8010

skipif mysql # not compatible
query I rowsort label-7120
SELECT 89 * CAST ( - 90 AS INTEGER )
----
-8010

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT SUM( 62 ) * + SUM( ALL 19 )
----
1178

skipif mysql # not compatible
query I rowsort label-7121
SELECT SUM ( 62 ) * + SUM ( ALL 19 )
----
1178

onlyif mysql # DIV for integer division: 
query I rowsort label-7122
SELECT ALL 91 DIV 79
----
1

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL 91 / 79
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7123
SELECT ALL + 51 DIV - - 63 * + 28
----
0

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL + 51 / - - 63 * + 28
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7124
SELECT 54 * CAST( NULL AS SIGNED ) * - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7124
SELECT 54 * CAST ( NULL AS INTEGER ) * - 86 AS col1
----
NULL

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

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

query II rowsort
SELECT 79 * - 52, 92 + - - 58 AS col1
----
-4108
150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT DISTINCT MAX( DISTINCT - - 42 ) + - 73 + - + 48 + + COUNT( * ) * - - 99
----
20

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT MAX ( DISTINCT - - 42 ) + - 73 + - + 48 + + COUNT ( * ) * - - 99
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-7129
SELECT - 90 DIV 53 col1, 51 + + ( 70 ) AS col0
----
-1
121

skipif mysql # not compatible
query II rowsort label-7129
SELECT - 90 / 53 col1, 51 + + ( 70 ) AS col0
----
-1
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7130
SELECT - 30 * + 0 * 62 + - 10 + + + 27 + - 65 * 72 DIV COUNT( + 68 ) DIV - 75
----
79

skipif mysql # not compatible
query I rowsort label-7130
SELECT - 30 * + 0 * 62 + - 10 + + + 27 + - 65 * 72 / COUNT ( + 68 ) / - 75
----
79

query I rowsort
SELECT + NULLIF ( + - 85, - 3 * 63 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT ALL SUM( ALL - + ( + 6 ) ) * - + 19 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL SUM ( ALL - + ( + 6 ) ) * - + 19 AS col1
----
114

query I rowsort
SELECT + 57 - + + 60 - - - 39 + 20 * + 13
----
218

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT CASE - COUNT( * ) WHEN - NULLIF ( + 78, - - 7 - + + COALESCE ( + 80, + 56, + COUNT( * ) ) ) THEN NULL WHEN + 70 - - - 11 + COUNT( * ) * - 22 + + - ( + + 79 ) THEN + COUNT( 66 ) END * - + 84 * + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT CASE - COUNT ( * ) WHEN - NULLIF ( + 78, - - 7 - + + COALESCE ( + 80, + 56, + COUNT ( * ) ) ) THEN NULL WHEN + 70 - - - 11 + COUNT ( * ) * - 22 + + - ( + + 79 ) THEN + COUNT ( 66 ) END * - + 84 * + 55 AS col2
----
NULL

query I rowsort
SELECT + + 58 col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7136
SELECT ALL - 78 * + - CASE - 22 WHEN - + 55 - - 55 THEN NULL WHEN - + ( - - 31 ) + - 51 THEN - 80 * - - 85 * - 16 ELSE NULL END * COALESCE ( + CASE - 35 WHEN + - COUNT( * ) THEN - - 80 / 39 * + 72 END, - 11 + 88 * + 49 ) * + CAST( NULL AS SIGNED ) - + 32 + + 69 - + + 77 + - 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL - 78 * + - CASE - 22 WHEN - + 55 - - 55 THEN NULL WHEN - + ( - - 31 ) + - 51 THEN - 80 * - - 85 * - 16 ELSE NULL END * COALESCE ( + CASE - 35 WHEN + - COUNT ( * ) THEN - - 80 / 39 * + 72 END, - 11 + 88 * + 49 ) * + CAST ( NULL AS INTEGER ) - + 32 + + 69 - + + 77 + - 84 col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7137
SELECT + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL + + 88 - + - 61 + + 16 - - + 93 * - + 41 + + NULLIF ( - 69, MIN( - 11 ) + - MAX( DISTINCT + 26 ) + + 12 - - 33 * - 22 + - ( COUNT( * ) ) + - NULLIF ( + 91, + 68 * - 36 / 99 * 39 ) + - ( - - 69 ) * - ( + + 84 ) )
----
-3717

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL + + 88 - + - 61 + + 16 - - + 93 * - + 41 + + NULLIF ( - 69, MIN ( - 11 ) + - MAX ( DISTINCT + 26 ) + + 12 - - 33 * - 22 + - ( COUNT ( * ) ) + - NULLIF ( + 91, + 68 * - 36 / 99 * 39 ) + - ( - - 69 ) * - ( + + 84 ) )
----
-3717

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT 35 / + 59 - + CASE 13 WHEN + 11 THEN + 94 WHEN + MAX( DISTINCT - + 69 ) THEN NULL END + - 1 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7139
SELECT 35 / + 59 - + CASE 13 WHEN + 11 THEN + 94 WHEN + MAX ( DISTINCT - + 69 ) THEN NULL END + - 1 col1
----
NULL

query I rowsort
SELECT DISTINCT - 76 * + 75 AS col0
----
-5700

onlyif mysql # aggregate syntax: 
query II rowsort label-7141
SELECT + COUNT( ALL - + 7 ) AS col1, + 58 AS col2
----
1
58

skipif mysql # not compatible
query II rowsort label-7141
SELECT + COUNT ( ALL - + 7 ) AS col1, + 58 AS col2
----
1
58

onlyif mysql # DIV for integer division: 
query II rowsort label-7142
SELECT + 86 + + 19 AS col0, 15 DIV 60
----
105
0

skipif mysql # not compatible
query II rowsort label-7142
SELECT + 86 + + 19 AS col0, 15 / 60
----
105
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL + 55 * + MIN( + 71 )
----
3905

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL + 55 * + MIN ( + 71 )
----
3905

query I rowsort
SELECT 64 * - + 62 col1
----
-3968

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT DISTINCT + COUNT( * ) * + 2 * + - 11 * + 53 * + - 86 col0
----
100276

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT + COUNT ( * ) * + 2 * + - 11 * + 53 * + - 86 col0
----
100276

query I rowsort
SELECT ALL - 83 + 10 AS col1
----
-73

query II rowsort
SELECT - 24 AS col1, + 94 - + + 94
----
-24
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7148
SELECT - COUNT( * ) DIV 18 * + - 77
----
0

skipif mysql # not compatible
query I rowsort label-7148
SELECT - COUNT ( * ) / 18 * + - 77
----
0

query I rowsort
SELECT - ( - 30 ) * + 58 * 46 + 53 AS col2
----
80093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7150
SELECT - NULLIF ( + + 47, - + 43 ) - 1 * + + CASE - + 41 WHEN + - MAX( - CAST( 37 AS SIGNED ) ) THEN NULL ELSE - + COALESCE ( + 11, + 93 * - MAX( + 56 ) + + COUNT( * ) ) END
----
-36

skipif mysql # not compatible
query I rowsort label-7150
SELECT - NULLIF ( + + 47, - + 43 ) - 1 * + + CASE - + 41 WHEN + - MAX ( - CAST ( 37 AS INTEGER ) ) THEN NULL ELSE - + COALESCE ( + 11, + 93 * - MAX ( + 56 ) + + COUNT ( * ) ) END
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT - 13 + - 93 + + - MAX( - 96 ) * 25 col1
----
2294

skipif mysql # not compatible
query I rowsort label-7151
SELECT - 13 + - 93 + + - MAX ( - 96 ) * 25 col1
----
2294

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

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

query I rowsort
SELECT + 95 * + ( 79 ) AS col2
----
7505

query I rowsort
SELECT ALL - 93 * + + 21 AS col2
----
-1953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7155
SELECT - MAX( ALL - + CAST( NULL AS SIGNED ) ) + 57 * 21 + + - 88 * 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT - MAX ( ALL - + CAST ( NULL AS INTEGER ) ) + 57 * 21 + + - 88 * 77 AS col0
----
NULL

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

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

query I rowsort
SELECT + 59 - - 76
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT + 36 - 6 + - CASE - + 3 WHEN MIN( - 91 ) + + MIN( DISTINCT + 24 ) * ( - 0 ) + + 85 THEN + 23 * 13 + - ( + 37 ) END * + COUNT( * ) * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT + 36 - 6 + - CASE - + 3 WHEN MIN ( - 91 ) + + MIN ( DISTINCT + 24 ) * ( - 0 ) + + 85 THEN + 23 * 13 + - ( + 37 ) END * + COUNT ( * ) * + 76
----
NULL

query I rowsort
SELECT ALL + 48 + - + 76
----
-28

query I rowsort
SELECT + 12 + - ( - 89 ) + + 60 AS col1
----
161

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7161
SELECT - NULLIF ( - CASE - COUNT( * ) WHEN - 45 * 75 + 23 - 18 * + MIN( - 8 ) * + + AVG ( ALL + + 16 ) * - + 33 * - 17 * - - CAST( 85 AS DECIMAL ) + 5 + 8 * + 86 + - COUNT( * ) THEN - 9 WHEN 81 THEN + 42 ELSE - 56 END, + 3 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7161
SELECT - NULLIF ( - CASE - COUNT ( * ) WHEN - 45 * 75 + 23 - 18 * + MIN ( - 8 ) * + + AVG ( ALL + + 16 ) * - + 33 * - 17 * - - CAST ( 85 AS REAL ) + 5 + 8 * + 86 + - COUNT ( * ) THEN - 9 WHEN 81 THEN + 42 ELSE - 56 END, + 3 ) AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7162
SELECT + + CAST( 21 AS SIGNED ) * + 83 AS col0
----
1743

skipif mysql # not compatible
query I rowsort label-7162
SELECT + + CAST ( 21 AS INTEGER ) * + 83 AS col0
----
1743

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT + - MIN( + + 61 ) + + - 53 - - 3 * + COUNT( * ) + 10 + 24 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-7163
SELECT + - MIN ( + + 61 ) + + - 53 - - 3 * + COUNT ( * ) + 10 + 24 AS col2
----
-77

query I rowsort
SELECT + - 87 - 18 AS col0
----
-105

query I rowsort
SELECT DISTINCT + 29 * - 25
----
-725

query I rowsort
SELECT ALL + - 6 * - 76 + 54 - - 75 col2
----
585

query II rowsort
SELECT ALL + - 60, 48 AS col0
----
-60
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7168
SELECT + - CAST( NULL AS SIGNED ) * + + 39 + - + 67 / 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7168
SELECT + - CAST ( NULL AS INTEGER ) * + + 39 + - + 67 / 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7169
SELECT ALL + CAST( + 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL + CAST ( + 5 AS INTEGER )
----
5

query I rowsort
SELECT + - 29 col0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-7171
SELECT DISTINCT + 53 DIV + 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT + 53 / + 53 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7172
SELECT DISTINCT + - 19 AS col0, + COUNT( * ) + - - CAST( 43 AS SIGNED ) AS col0
----
-19
44

skipif mysql # not compatible
query II rowsort label-7172
SELECT DISTINCT + - 19 AS col0, + COUNT ( * ) + - - CAST ( 43 AS INTEGER ) AS col0
----
-19
44

onlyif mysql # aggregate syntax: 
query II rowsort label-7173
SELECT ALL - 31 * + + 66 + + + COUNT( ALL - 67 ) + - 43 * - ( - COUNT( ALL - 39 ) ), + 53 + ( + + 32 ) AS col2
----
-2088
85

skipif mysql # not compatible
query II rowsort label-7173
SELECT ALL - 31 * + + 66 + + + COUNT ( ALL - 67 ) + - 43 * - ( - COUNT ( ALL - 39 ) ), + 53 + ( + + 32 ) AS col2
----
-2088
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7174
SELECT + MAX( ALL - + 38 ) DIV + - 70 AS col0, 9 col0, - 85 AS col0
----
0
9
-85

skipif mysql # not compatible
query III rowsort label-7174
SELECT + MAX ( ALL - + 38 ) / + - 70 AS col0, 9 col0, - 85 AS col0
----
0
9
-85

query I rowsort
SELECT ALL 51 * - 13 + ( ( 68 ) ) AS col1
----
-595

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

query I rowsort
SELECT - 26 + + 46 + + 38 * 3 AS col0
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-7178
SELECT SUM( DISTINCT + 91 ) AS col1, 75
----
91
75

skipif mysql # not compatible
query II rowsort label-7178
SELECT SUM ( DISTINCT + 91 ) AS col1, 75
----
91
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7179
SELECT ALL 88 * + - 27 * + 93 + + 44 * + 76 * + CASE + 23 WHEN 70 - + 61 THEN NULL WHEN + 6 THEN - - 28 / + AVG ( ALL - - 3 ) + CAST( 18 AS SIGNED ) + ( + 49 ) * - 77 + - ( 61 ) WHEN - COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL 88 * + - 27 * + 93 + + 44 * + 76 * + CASE + 23 WHEN 70 - + 61 THEN NULL WHEN + 6 THEN - - 28 / + AVG ( ALL - - 3 ) + CAST ( 18 AS INTEGER ) + ( + 49 ) * - 77 + - ( 61 ) WHEN - COUNT ( * ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 34 * ( + - 99 ) * 7 + - 45 col0
----
23517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7181
SELECT ALL + 85 * - COUNT( * ) * - NULLIF ( - 35, + + 7 ) + + CAST( NULL AS SIGNED ) + 79, - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7181
SELECT ALL + 85 * - COUNT ( * ) * - NULLIF ( - 35, + + 7 ) + + CAST ( NULL AS INTEGER ) + 79, - COUNT ( * ) AS col2
----
NULL
-1

query I rowsort
SELECT DISTINCT + ( - 2 ) * + + 20
----
-40

query I rowsort
SELECT ALL + 89 * + 9 * - + 59 AS col1
----
-47259

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT - 36 + 30 + + 67 * - 60 * - COUNT( * ) * + 17
----
68334

skipif mysql # not compatible
query I rowsort label-7184
SELECT - 36 + 30 + + 67 * - 60 * - COUNT ( * ) * + 17
----
68334

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7185
SELECT ALL - 16 - - 48 + + 82 + - CAST( NULL AS DECIMAL ) + 90 + - - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL - 16 - - 48 + + 82 + - CAST ( NULL AS REAL ) + 90 + - - 60 AS col2
----
NULL

query I rowsort
SELECT ALL CASE - - 16 WHEN + - 72 THEN AVG ( + 82 ) * + 76 + + 96 ELSE - 8 END
----
-8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7188
SELECT - 0 DIV - + 46
----
0

skipif mysql # not compatible
query I rowsort label-7188
SELECT - 0 / - + 46
----
0

query I rowsort
SELECT - 6 * 76 * + 36 col0
----
-16416

query II rowsort
SELECT ( - 93 ) AS col0, + ( 20 )
----
-93
20

query I rowsort
SELECT DISTINCT - - ( - 11 ) * + - 29 AS col1
----
319

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7192
SELECT DISTINCT + 0 * - - 59 * - 52 DIV - SUM( DISTINCT 64 ) AS col1, 16 AS col1
----
0
16

skipif mysql # not compatible
query II rowsort label-7192
SELECT DISTINCT + 0 * - - 59 * - 52 / - SUM ( DISTINCT 64 ) AS col1, 16 AS col1
----
0
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7193
SELECT DISTINCT + 20 / + - 54 - + + 72 * - SUM( - CAST( NULL AS DECIMAL ) ) * + CASE ( + 23 ) WHEN 95 THEN 9 ELSE NULL END - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT + 20 / + - 54 - + + 72 * - SUM ( - CAST ( NULL AS REAL ) ) * + CASE ( + 23 ) WHEN 95 THEN 9 ELSE NULL END - - 25
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL - + COUNT ( * ) / - 56 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-7195
SELECT - + 70 / + 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT + + COUNT( + - 42 ) + 78 - - + 1 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7196
SELECT + + COUNT ( + - 42 ) + 78 - - + 1 AS col2
----
80

query I rowsort
SELECT + COALESCE ( 46, - 0 )
----
46

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

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

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

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

query I rowsort
SELECT - 33 * - 89 - - 53 * + 69 + - 6
----
6588

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT ALL 94 * + SUM( + 47 ) * 91 - 51 AS col0
----
401987

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL 94 * + SUM ( + 47 ) * 91 - 51 AS col0
----
401987

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL + 13 / + - 22 + + 84 + - + 36 + + 91 * + 36 + + ( CASE - + 24 WHEN + 74 THEN - - COUNT( * ) END ) * - - MAX( - 45 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL + 13 / + - 22 + + 84 + - + 36 + + 91 * + 36 + + ( CASE - + 24 WHEN + 74 THEN - - COUNT ( * ) END ) * - - MAX ( - 45 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT ALL - 43 + MIN( - CASE - - 22 WHEN - 99 * - 85 THEN - 92 + - 52 END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL - 43 + MIN ( - CASE - - 22 WHEN - 99 * - 85 THEN - 92 + - 52 END ) col2
----
NULL

query II rowsort
SELECT ALL + 69 + + - COALESCE ( - 16, - 2 ), + 3 AS col0
----
85
3

query II rowsort
SELECT DISTINCT - 22 AS col1, - 41 + 15
----
-22
-26

query I rowsort
SELECT ALL 8 + 44
----
52

query I rowsort
SELECT 70 * - 19 AS col1
----
-1330

query II rowsort
SELECT DISTINCT - 21, - ( - 17 ) AS col2
----
-21
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT ALL 72 + - COUNT( * ) col1
----
71

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL 72 + - COUNT ( * ) col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT - ( - 33 ) * + COUNT( * ) * - + 92
----
-3036

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT - ( - 33 ) * + COUNT ( * ) * - + 92
----
-3036

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ALL + COUNT( * ) * + 90 col1
----
90

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL + COUNT ( * ) * + 90 col1
----
90

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT ALL NULLIF ( + + 98, + COUNT( * ) ) * ( + 26 ) - + + 95
----
2453

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL NULLIF ( + + 98, + COUNT ( * ) ) * ( + 26 ) - + + 95
----
2453

query II rowsort
SELECT 70 AS col2, NULLIF ( - - 80, - 90 )
----
70
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7217
SELECT CAST( - + 80 AS SIGNED ) - + - 41 + + 60 + AVG ( + CAST( NULL AS SIGNED ) ) * 83 * + COALESCE ( + 49, - - 54 ) * + MAX( + - 33 ) * + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT CAST ( - + 80 AS INTEGER ) - + - 41 + + 60 + AVG ( + CAST ( NULL AS INTEGER ) ) * 83 * + COALESCE ( + 49, - - 54 ) * + MAX ( + - 33 ) * + - 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT 43 * - + SUM( DISTINCT - 31 ) AS col2
----
1333

skipif mysql # not compatible
query I rowsort label-7218
SELECT 43 * - + SUM ( DISTINCT - 31 ) AS col2
----
1333

query I rowsort
SELECT 14 + - 79 * - 25 * + NULLIF ( + 51, - 52 * 62 )
----
100739

query II rowsort
SELECT DISTINCT 12 AS col2, 93
----
12
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7221
SELECT ALL + COALESCE ( + 20, + + CAST( 45 AS SIGNED ) - + COUNT( * ), - 94 * - + 30 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL + COALESCE ( + 20, + + CAST ( 45 AS INTEGER ) - + COUNT ( * ), - 94 * - + 30 ) AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7222
SELECT ALL - CAST( + - 52 AS SIGNED ) * - + 78 * - 92 col0
----
373152

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL - CAST ( + - 52 AS INTEGER ) * - + 78 * - 92 col0
----
373152

query I rowsort
SELECT NULLIF ( - 68, + + 17 ) - 63 AS col0
----
-131

query II rowsort
SELECT ALL + ( NULLIF ( + - 72, + - 2 * - 17 ) ), 17 AS col2
----
-72
17

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

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

query I rowsort
SELECT + 59 + - 6 AS col2
----
53

query I rowsort
SELECT + 73 + - 89 AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-7228
SELECT - ( - - 71 ) DIV - + 95 - - - 9 * - - NULLIF ( 79, + + 25 )
----
-711

skipif mysql # not compatible
query I rowsort label-7228
SELECT - ( - - 71 ) / - + 95 - - - 9 * - - NULLIF ( 79, + + 25 )
----
-711

query II rowsort
SELECT 79 + - CASE AVG ( DISTINCT 71 ) WHEN 56 THEN NULL WHEN 75 THEN - 0 / + 78 ELSE NULL END * + - 69 * 11 * 96, 2 * - 47 AS col0
----
NULL
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7230
SELECT ALL + 55 + + COALESCE ( - 50, + NULLIF ( - 3, + 84 * + MIN( ALL + + 63 ) ) DIV - 97, CAST( NULL AS SIGNED ) + + + 24 ) - 97 * - 33 * + + 44 * + MIN( + - 32 ) * + ( 44 ) - - - MAX( ALL + 21 )
----
-198308368

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL + 55 + + COALESCE ( - 50, + NULLIF ( - 3, + 84 * + MIN ( ALL + + 63 ) ) / - 97, CAST ( NULL AS INTEGER ) + + + 24 ) - 97 * - 33 * + + 44 * + MIN ( + - 32 ) * + ( 44 ) - - - MAX ( ALL + 21 )
----
-198308368

onlyif mysql # DIV for integer division: 
query I rowsort label-7231
SELECT - 39 + + 16 DIV - 99
----
-39

skipif mysql # not compatible
query I rowsort label-7231
SELECT - 39 + + 16 / - 99
----
-39

query I rowsort
SELECT DISTINCT + 6 + ( - - 19 )
----
25

query I rowsort
SELECT 58 + - 93
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT DISTINCT + + 64 + - - 99 DIV + + 3 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT + + 64 + - - 99 / + + 3 AS col2
----
97

query I rowsort
SELECT ALL - 14 + 59
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT COUNT( * ) * ( + 46 ) col0
----
46

skipif mysql # not compatible
query I rowsort label-7236
SELECT COUNT ( * ) * ( + 46 ) col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7237
SELECT + COUNT( * ) DIV + 27 + + + 62 - - 31 * 49 AS col2
----
1581

skipif mysql # not compatible
query I rowsort label-7237
SELECT + COUNT ( * ) / + 27 + + + 62 - - 31 * 49 AS col2
----
1581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7238
SELECT - 90 AS col2, - CASE 70 WHEN 80 * 28 + + 12 THEN SUM( ALL - 51 ) WHEN - ( + + 13 ) + - 2 THEN NULL END + + 87 * - - COALESCE ( - + COALESCE ( 4, + - 42, + 35 + 28, - + CASE WHEN NOT - 71 NOT BETWEEN NULL AND - - 28 THEN ( - COALESCE ( + - 40, + - 45, + 36 - CAST( NULL AS SIGNED ) ) ) END, - - 14 ), + + COALESCE ( - 92, + 0, + 3 ) * 13 * 49 * 56, - + 20 + + + 99 ) + + 18 AS col0
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-7238
SELECT - 90 AS col2, - CASE 70 WHEN 80 * 28 + + 12 THEN SUM ( ALL - 51 ) WHEN - ( + + 13 ) + - 2 THEN NULL END + + 87 * - - COALESCE ( - + COALESCE ( 4, + - 42, + 35 + 28, - + CASE WHEN NOT - 71 NOT BETWEEN NULL AND - - 28 THEN ( - COALESCE ( + - 40, + - 45, + 36 - CAST ( NULL AS INTEGER ) ) ) END, - - 14 ), + + COALESCE ( - 92, + 0, + 3 ) * 13 * 49 * 56, - + 20 + + + 99 ) + + 18 AS col0
----
-90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT DISTINCT - COUNT( * ) + + - 24 * - 91 + - COUNT( * ) AS col2
----
2182

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT - COUNT ( * ) + + - 24 * - 91 + - COUNT ( * ) AS col2
----
2182

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

query I rowsort
SELECT + 68 * - 30 + - 66 AS col2
----
-2106

query I rowsort
SELECT ALL - ( - 27 ) col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL - 34 - + NULLIF ( + COUNT( * ), + NULLIF ( + - COUNT( * ), + + 41 + + 6 * - 73 * - - 13 + - 91 * - 35 + + 18 + + COUNT( * ) ) )
----
-35

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL - 34 - + NULLIF ( + COUNT ( * ), + NULLIF ( + - COUNT ( * ), + + 41 + + 6 * - 73 * - - 13 + - 91 * - 35 + + 18 + + COUNT ( * ) ) )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-7244
SELECT 53, MAX( ALL + - 42 ) AS col2
----
53
-42

skipif mysql # not compatible
query II rowsort label-7244
SELECT 53, MAX ( ALL + - 42 ) AS col2
----
53
-42

query I rowsort
SELECT 5 + - 11 AS col0
----
-6

query I rowsort
SELECT DISTINCT - 16 - + + 25 - 75
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7247
SELECT ( - + COUNT( * ) ) + 42 DIV - + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-7247
SELECT ( - + COUNT ( * ) ) + 42 / - + COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT 18 * - - COUNT( DISTINCT - 99 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7248
SELECT 18 * - - COUNT ( DISTINCT - 99 ) AS col2
----
18

query I rowsort
SELECT 89 * - 26
----
-2314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7250
SELECT 25 * 68 + + 75 DIV COUNT( * ) AS col2
----
1775

skipif mysql # not compatible
query I rowsort label-7250
SELECT 25 * 68 + + 75 / COUNT ( * ) AS col2
----
1775

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7251
SELECT ALL - 60, COUNT( * ) + + - 38 DIV - 95 AS col2
----
-60
1

skipif mysql # not compatible
query II rowsort label-7251
SELECT ALL - 60, COUNT ( * ) + + - 38 / - 95 AS col2
----
-60
1

query I rowsort
SELECT COALESCE ( - - 18, + 38 ) * - 40
----
-720

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7253
SELECT ALL 7 AS col2, - ( - - ( + - COUNT( * ) ) ) DIV + 55 AS col0
----
7
0

skipif mysql # not compatible
query II rowsort label-7253
SELECT ALL 7 AS col2, - ( - - ( + - COUNT ( * ) ) ) / + 55 AS col0
----
7
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7254
SELECT ALL 41 * COUNT( * ) * - COUNT( ALL 16 ) DIV - - 67 * - 7 AS col1, 48
----
0
48

skipif mysql # not compatible
query II rowsort label-7254
SELECT ALL 41 * COUNT ( * ) * - COUNT ( ALL 16 ) / - - 67 * - 7 AS col1, 48
----
0
48

query I rowsort
SELECT - 30 + + 59 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ALL 99 * 53 * MAX( DISTINCT + 14 ) AS col0
----
73458

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL 99 * 53 * MAX ( DISTINCT + 14 ) AS col0
----
73458

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT 55 + 41 + 28 * - + 53 + - - COUNT( * )
----
-1387

skipif mysql # not compatible
query I rowsort label-7257
SELECT 55 + 41 + 28 * - + 53 + - - COUNT ( * )
----
-1387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7258
SELECT 58 DIV + - 39 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7258
SELECT 58 / + - 39 * COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7259
SELECT - 57 * - + 0 + - MIN( DISTINCT + - 68 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT - 57 * - + 0 + - MIN ( DISTINCT + - 68 ) + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT 48 * + ( - 0 )
----
0

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

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

query II rowsort
SELECT + 17 AS col2, 26 AS col0
----
17
26

query I rowsort
SELECT DISTINCT 88 + + 17
----
105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT ALL - 24 + + MAX( ALL + 46 ) * + 20 * - 29
----
-26704

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL - 24 + + MAX ( ALL + 46 ) * + 20 * - 29
----
-26704

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT DISTINCT 11 + - 0 * - MAX( - + 13 ) + - 42 + - - SUM( + 50 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT 11 + - 0 * - MAX ( - + 13 ) + - 42 + - - SUM ( + 50 ) AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7268
SELECT DISTINCT - + CAST( + - 12 AS SIGNED ) * + 22 AS col1
----
264

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT - + CAST ( + - 12 AS INTEGER ) * + 22 AS col1
----
264

onlyif mysql # aggregate syntax: 
query II rowsort label-7269
SELECT ALL - 63, + 25 * - COUNT( * ) AS col0
----
-63
-25

skipif mysql # not compatible
query II rowsort label-7269
SELECT ALL - 63, + 25 * - COUNT ( * ) AS col0
----
-63
-25

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7271
SELECT + - CASE 56 WHEN - 69 * CAST( + - 7 AS SIGNED ) THEN NULL ELSE 43 END
----
-43

skipif mysql # not compatible
query I rowsort label-7271
SELECT + - CASE 56 WHEN - 69 * CAST ( + - 7 AS INTEGER ) THEN NULL ELSE 43 END
----
-43

query I rowsort
SELECT + NULLIF ( + 39, + + 79 )
----
39

query I rowsort
SELECT - + 97 * + + 26 - + - 52
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT COALESCE ( - MAX( 76 ), + + 49 * + 95 - - CASE + COUNT( * ) WHEN + + 97 THEN + 51 * - 9 + + - 31 * + COUNT( * ) ELSE NULL END, + 35 + - COUNT( * ) + + 62 * + COUNT( * ) * - 72 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-7274
SELECT COALESCE ( - MAX ( 76 ), + + 49 * + 95 - - CASE + COUNT ( * ) WHEN + + 97 THEN + 51 * - 9 + + - 31 * + COUNT ( * ) ELSE NULL END, + 35 + - COUNT ( * ) + + 62 * + COUNT ( * ) * - 72 ) AS col1
----
-76

query I rowsort
SELECT NULLIF ( - 29, - 52 ) AS col0
----
-29

query I rowsort
SELECT ALL 76 * + + 49 * 11 - + + 84 * - 40 + - - 23 * 77 - - 31 * 9 col0
----
46374

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( - - 3, - + 88 * + 95 ) AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7279
SELECT - 96 - - - CAST( + ( + 31 ) AS SIGNED )
----
-127

skipif mysql # not compatible
query I rowsort label-7279
SELECT - 96 - - - CAST ( + ( + 31 ) AS INTEGER )
----
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT - CAST( NULL AS SIGNED ) * - ( 96 ) * NULLIF ( - 70, - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7280
SELECT - CAST ( NULL AS INTEGER ) * - ( 96 ) * NULLIF ( - 70, - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 13 * + - 72 AS col0
----
936

onlyif mysql # DIV for integer division: 
query I rowsort label-7282
SELECT ALL + 57 DIV - 97 * - 30
----
0

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL + 57 / - 97 * - 30
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7283
SELECT - SUM( + + 61 ) * + + CAST( NULL AS SIGNED ) + - 61 * + 85 + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT - SUM ( + + 61 ) * + + CAST ( NULL AS INTEGER ) + - 61 * + 85 + 82 AS col1
----
NULL

query I rowsort
SELECT - 60 + + 97
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT DISTINCT + CASE + + ( - 88 ) WHEN - 56 * - + COALESCE ( + + SUM( ALL - + 83 ), - 98 * - 2 + + 74 - + 52 * - 47 ) / - COUNT( * ) + - 13 + - AVG ( - - 46 ) THEN 97 * + 37 * + - 85 + 22 WHEN 20 * + ( - COUNT( * ) ) + - + 96 THEN NULL WHEN 68 THEN - 45 END * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT + CASE + + ( - 88 ) WHEN - 56 * - + COALESCE ( + + SUM ( ALL - + 83 ), - 98 * - 2 + + 74 - + 52 * - 47 ) / - COUNT ( * ) + - 13 + - AVG ( - - 46 ) THEN 97 * + 37 * + - 85 + 22 WHEN 20 * + ( - COUNT ( * ) ) + - + 96 THEN NULL WHEN 68 THEN - 45 END * 67
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7287
SELECT ALL + 67 * ( 95 ) DIV 60 + 25, 71 AS col1
----
131
71

skipif mysql # not compatible
query II rowsort label-7287
SELECT ALL + 67 * ( 95 ) / 60 + 25, 71 AS col1
----
131
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7288
SELECT ALL + 88 + - CAST( COALESCE ( + 84, 80 - - - 69 * + + CAST( - 54 AS SIGNED ) ) AS SIGNED ) * CAST( NULL AS SIGNED ) * - 8 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL + 88 + - CAST ( COALESCE ( + 84, 80 - - - 69 * + + CAST ( - 54 AS INTEGER ) ) AS INTEGER ) * CAST ( NULL AS INTEGER ) * - 8 + COUNT ( * ) AS col2
----
NULL

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

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

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

query I rowsort
SELECT + CASE 90 WHEN - 10 THEN + 95 END
----
NULL

query I rowsort
SELECT ALL + 39 + + + 60 AS col2
----
99

query I rowsort
SELECT + - 58 + + + 95 + + 21
----
58

query I rowsort
SELECT + 30 * 25
----
750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7295
SELECT DISTINCT ( 96 ) DIV - - 74 + - + SUM( + 18 ) + + COALESCE ( - 65, - 59 + + 80 + + 19 + - CAST( + 90 AS SIGNED ) * - 31 * - 57 + - + 90 ) * + 53 - 29
----
-3491

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT ( 96 ) / - - 74 + - + SUM ( + 18 ) + + COALESCE ( - 65, - 59 + + 80 + + 19 + - CAST ( + 90 AS INTEGER ) * - 31 * - 57 + - + 90 ) * + 53 - 29
----
-3491

query I rowsort
SELECT + 44 + - - 45 col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT ALL 18 * + SUM( - 55 ) AS col0
----
-990

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL 18 * + SUM ( - 55 ) AS col0
----
-990

query I rowsort
SELECT DISTINCT + 45 + + 49 * 78 AS col2
----
3867

query I rowsort
SELECT + 71 + - NULLIF ( - 86, + ( 77 ) ) + 14 * - + 83 AS col1
----
-1005

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT + + 6 + - MIN( ALL - + 65 )
----
71

skipif mysql # not compatible
query I rowsort label-7300
SELECT + + 6 + - MIN ( ALL - + 65 )
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7301
SELECT + - 32 + COUNT( * ) AS col2, - 77 + 24
----
-31
-53

skipif mysql # not compatible
query II rowsort label-7301
SELECT + - 32 + COUNT ( * ) AS col2, - 77 + 24
----
-31
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7302
SELECT CAST( - 18 AS SIGNED ), 51 + + 12 AS col2
----
-18
63

skipif mysql # not compatible
query II rowsort label-7302
SELECT CAST ( - 18 AS INTEGER ), 51 + + 12 AS col2
----
-18
63

query I rowsort
SELECT + + 57 + + 85
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-7304
SELECT ALL - 25 DIV + ( + 57 ) - - 84 * + + 46
----
3864

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL - 25 / + ( + 57 ) - - 84 * + + 46
----
3864

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7306
SELECT - 35 * + - COUNT( * ) + - + ( - ( ( COALESCE ( + - COUNT( * ), + 32 * + 30 * + + SUM( DISTINCT - 82 ) * - + 67 + 35, - - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) - + 66 ) ) ) ) * + - COALESCE ( + - ( + 48 ), - 58 + 43, COUNT( * ) ) * + 85
----
-4045

skipif mysql # not compatible
query I rowsort label-7306
SELECT - 35 * + - COUNT ( * ) + - + ( - ( ( COALESCE ( + - COUNT ( * ), + 32 * + 30 * + + SUM ( DISTINCT - 82 ) * - + 67 + 35, - - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) - + 66 ) ) ) ) * + - COALESCE ( + - ( + 48 ), - 58 + 43, COUNT ( * ) ) * + 85
----
-4045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT + ( - 15 ) * CAST( - 9 AS SIGNED ) * 23 AS col1
----
3105

skipif mysql # not compatible
query I rowsort label-7307
SELECT + ( - 15 ) * CAST ( - 9 AS INTEGER ) * 23 AS col1
----
3105

query I rowsort
SELECT - 72 + + - 91 AS col0
----
-163

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7309
SELECT + CAST( 35 AS SIGNED ) DIV + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7309
SELECT + CAST ( 35 AS INTEGER ) / + 36 AS col2
----
0

query I rowsort
SELECT + 1 + - COALESCE ( - 4, - 42 ) + - - 66 col2
----
71

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

query II rowsort
SELECT ALL + 79 AS col2, 19
----
79
19

query I rowsort
SELECT 62 * 67 + + 7 col0
----
4161

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT ALL COALESCE ( + ( - - 85 ), COUNT( * ) - - ( + + 81 ), - + 17 ) * - 77 AS col1
----
-6545

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL COALESCE ( + ( - - 85 ), COUNT ( * ) - - ( + + 81 ), - + 17 ) * - 77 AS col1
----
-6545

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7317
SELECT + 18 DIV + - 9 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7317
SELECT + 18 / + - 9 AS col0
----
-2

query I rowsort
SELECT - 24 + + 87 + 23 * - 32 AS col2
----
-673

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL - 89 * MAX( 50 ) + - - 71
----
-4379

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL - 89 * MAX ( 50 ) + - - 71
----
-4379

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7320
SELECT + 77 * - 13 + + CASE + NULLIF ( - 24, 10 ) WHEN - MAX( - + 89 ) THEN + MIN( ( + + CAST( NULL AS DECIMAL ) ) ) + 76 END * + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT + 77 * - 13 + + CASE + NULLIF ( - 24, 10 ) WHEN - MAX ( - + 89 ) THEN + MIN ( ( + + CAST ( NULL AS REAL ) ) ) + 76 END * + 43 AS col0
----
NULL

query I rowsort
SELECT ALL + + ( + - 89 ) * - - 95 + - 32 AS col2
----
-8487

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT - 78 DIV + NULLIF ( 94, + 72 )
----
0

skipif mysql # not compatible
query I rowsort label-7322
SELECT - 78 / + NULLIF ( 94, + 72 )
----
0

query I rowsort
SELECT 32 * + - 16 - - - 61 * + 77 * - + 56 + + - 79
----
262441

query I rowsort
SELECT + ( 29 ) col0
----
29

query I rowsort
SELECT ALL + 68 * + - 45
----
-3060

query I rowsort
SELECT - 92 * + 24 AS col2
----
-2208

query I rowsort
SELECT DISTINCT 79 col0
----
79

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

query I rowsort
SELECT ALL 45 + - 98 * - - 25
----
-2405

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT ALL + + 90 * + - ( CASE - ( 3 ) WHEN + 21 THEN 57 + - 73 + + + 17 WHEN + + 81 + + 9 - + 66 * - 98 THEN 82 ELSE NULLIF ( + + 85, + 53 / - COUNT( * ) * - ( - - 4 ) ) END )
----
-7650

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL + + 90 * + - ( CASE - ( 3 ) WHEN + 21 THEN 57 + - 73 + + + 17 WHEN + + 81 + + 9 - + 66 * - 98 THEN 82 ELSE NULLIF ( + + 85, + 53 / - COUNT ( * ) * - ( - - 4 ) ) END )
----
-7650

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

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

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

skipif mysql # not compatible
query I rowsort label-7332
SELECT DISTINCT + 74 * COUNT ( * ) AS col0
----
74

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7334
SELECT - 94 * 54 * - - 51 AS col0, COUNT( * ) AS col0
----
-258876
1

skipif mysql # not compatible
query II rowsort label-7334
SELECT - 94 * 54 * - - 51 AS col0, COUNT ( * ) AS col0
----
-258876
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7335
SELECT ALL ( + SUM( 15 ) ) DIV + 89 * - 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL ( + SUM ( 15 ) ) / + 89 * - 16 AS col2
----
0

query I rowsort
SELECT 43 * 65 + + + 11
----
2806

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7337
SELECT ALL - 33, COUNT( - - 99 ) DIV + - 91 + - - 61 AS col2
----
-33
61

skipif mysql # not compatible
query II rowsort label-7337
SELECT ALL - 33, COUNT ( - - 99 ) / + - 91 + - - 61 AS col2
----
-33
61

query I rowsort
SELECT 27 * + - 4
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7339
SELECT DISTINCT COALESCE ( - 47, + 81, - 74 DIV - MAX( ALL - 83 ) * 45 ) * + 96 + + + 47 AS col1
----
-4465

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT COALESCE ( - 47, + 81, - 74 / - MAX ( ALL - 83 ) * 45 ) * + 96 + + + 47 AS col1
----
-4465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7340
SELECT COALESCE ( - 14, + 40 * + COUNT( * ) DIV + 4 ) + 25
----
11

skipif mysql # not compatible
query I rowsort label-7340
SELECT COALESCE ( - 14, + 40 * + COUNT ( * ) / + 4 ) + 25
----
11

query I rowsort
SELECT 76 * ( - 84 ) + + 70
----
-6314

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7342
SELECT DISTINCT COALESCE ( + - 84, + 4, - 31 * - NULLIF ( + 23, NULLIF ( - 20, + + 8 ) ) * - + 56 DIV 14 + - - 75 + + MAX( DISTINCT + 93 ) DIV - + COUNT( * ) * + 22 DIV - 53 ) * - ( - + 98 ) AS col0, + 56 * - - COUNT( * ) AS col2
----
-8232
56

skipif mysql # not compatible
query II rowsort label-7342
SELECT DISTINCT COALESCE ( + - 84, + 4, - 31 * - NULLIF ( + 23, NULLIF ( - 20, + + 8 ) ) * - + 56 / 14 + - - 75 + + MAX ( DISTINCT + 93 ) / - + COUNT ( * ) * + 22 / - 53 ) * - ( - + 98 ) AS col0, + 56 * - - COUNT ( * ) AS col2
----
-8232
56

query I rowsort
SELECT ALL 60 + 98 AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT ALL - CASE 15 WHEN 73 THEN + NULLIF ( - COUNT( * ), - 99 + + 80 ) WHEN - 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL - CASE 15 WHEN 73 THEN + NULLIF ( - COUNT ( * ), - 99 + + 80 ) WHEN - 89 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7345
SELECT ALL COALESCE ( - 8, - CASE + 46 WHEN + COUNT( * ) * + COUNT( * ) + + 93 THEN MIN( + 64 ) * + 99 - - - COUNT( * ) + - 68 DIV - + 40 ELSE NULL END * - 60 ) + + - 91 + - 29 AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL COALESCE ( - 8, - CASE + 46 WHEN + COUNT ( * ) * + COUNT ( * ) + + 93 THEN MIN ( + 64 ) * + 99 - - - COUNT ( * ) + - 68 / - + 40 ELSE NULL END * - 60 ) + + - 91 + - 29 AS col0
----
-128

query I rowsort
SELECT 59 * 1
----
59

query I rowsort
SELECT ALL - 80 + - - 38
----
-42

query I rowsort
SELECT + ( - 33 ) - + 36 AS col2
----
-69

query I rowsort
SELECT 79 * 35
----
2765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7350
SELECT DISTINCT 77 - - MAX( + 63 ) - - 67 DIV - COUNT( 16 )
----
73

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT 77 - - MAX ( + 63 ) - - 67 / - COUNT ( 16 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT + CASE 82 WHEN COUNT( DISTINCT 26 ) * - 32 THEN + 86 + 87 * - 56 * + + 20 * + 79 * 22 * - + 57 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7351
SELECT + CASE 82 WHEN COUNT ( DISTINCT 26 ) * - 32 THEN + 86 + 87 * - 56 * + + 20 * + 79 * 22 * - + 57 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT 58 * + 58 * + COUNT( DISTINCT 14 ) AS col2
----
3364

skipif mysql # not compatible
query I rowsort label-7352
SELECT 58 * + 58 * + COUNT ( DISTINCT 14 ) AS col2
----
3364

query I rowsort
SELECT 89 + + - 10 * + - 40
----
489

onlyif mysql # DIV for integer division: 
query I rowsort label-7354
SELECT - 48 DIV - + 97 + - 4 + + 14
----
10

skipif mysql # not compatible
query I rowsort label-7354
SELECT - 48 / - + 97 + - 4 + + 14
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7355
SELECT DISTINCT - + 25 DIV 54 + 49 + - 30 + + + COUNT( * ) * 40 * + - 50 + + COUNT( * ) AS col1
----
-1980

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT - + 25 / 54 + 49 + - 30 + + + COUNT ( * ) * 40 * + - 50 + + COUNT ( * ) AS col1
----
-1980

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7356
SELECT 81 + - 53 + - + COUNT( DISTINCT + ( 94 ) ) - + CAST( NULL AS DECIMAL ) / - 23 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7356
SELECT 81 + - 53 + - + COUNT ( DISTINCT + ( 94 ) ) - + CAST ( NULL AS REAL ) / - 23 col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL - + 50 - + COUNT ( * ) AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7358
SELECT + CAST( + COUNT( * ) AS SIGNED ), - 83 AS col0
----
1
-83

skipif mysql # not compatible
query II rowsort label-7358
SELECT + CAST ( + COUNT ( * ) AS INTEGER ), - 83 AS col0
----
1
-83

query I rowsort
SELECT 27 + - ( 54 ) + + ( 26 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT - SUM( - + 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-7360
SELECT - SUM ( - + 24 ) AS col1
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-7361
SELECT 11, 99 DIV - + 14 AS col0
----
11
-7

skipif mysql # not compatible
query II rowsort label-7361
SELECT 11, 99 / - + 14 AS col0
----
11
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT 18 + - COUNT( + 15 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7362
SELECT 18 + - COUNT ( + 15 ) AS col0
----
17

query I rowsort
SELECT ALL - 71 * + 83
----
-5893

query I rowsort
SELECT 89 * + 17
----
1513

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

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

query I rowsort
SELECT 8 + - 83
----
-75

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

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

query I rowsort
SELECT DISTINCT 90 + - 33 + 24 * 49
----
1233

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT ALL + COUNT( DISTINCT + - 1 ) + - + 83
----
-82

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL + COUNT ( DISTINCT + - 1 ) + - + 83
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL COUNT( * ) * NULLIF ( + ( - 55 ), + COALESCE ( - + 27, - 78 + + 85 + - - ( - + 91 ) + - - 92 ) ) + + 51 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL COUNT ( * ) * NULLIF ( + ( - 55 ), + COALESCE ( - + 27, - 78 + + 85 + - - ( - + 91 ) + - - 92 ) ) + + 51 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT DISTINCT + 50 * 15 + CASE - COUNT( * ) WHEN - 24 THEN + 65 * - + 17 + 9 WHEN + 94 THEN NULL WHEN + + 56 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT + 50 * 15 + CASE - COUNT ( * ) WHEN - 24 THEN + 65 * - + 17 + 9 WHEN + 94 THEN NULL WHEN + + 56 THEN NULL END
----
NULL

query I rowsort
SELECT ( - 4 ) * - 94
----
376

onlyif mysql # DIV for integer division: 
query I rowsort label-7373
SELECT COALESCE ( - 9, - 51, - 56, + 18 + + - 3 * - 55 ) DIV 61 + 52 + - - 35
----
87

skipif mysql # not compatible
query I rowsort label-7373
SELECT COALESCE ( - 9, - 51, - 56, + 18 + + - 3 * - 55 ) / 61 + 52 + - - 35
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT 39 + - SUM( ALL + 27 )
----
12

skipif mysql # not compatible
query I rowsort label-7374
SELECT 39 + - SUM ( ALL + 27 )
----
12

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT DISTINCT - COUNT( * ) * + ( 17 ) - - 48 AS col0
----
31

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7379
SELECT - 63, + 9 DIV + 52 + COUNT( * ) AS col0
----
-63
1

skipif mysql # not compatible
query II rowsort label-7379
SELECT - 63, + 9 / + 52 + COUNT ( * ) AS col0
----
-63
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7380
SELECT DISTINCT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * - + AVG ( DISTINCT 13 ) * + + 80 * 37 * ( - 60 ) - - + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - + AVG ( DISTINCT 13 ) * + + 80 * 37 * ( - 60 ) - - + 12 AS col2
----
NULL

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

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

query I rowsort
SELECT - 37 * + 53 AS col0
----
-1961

query I rowsort
SELECT - 6 * 38 * 31 + 64 AS col1
----
-7004

query II rowsort
SELECT DISTINCT 55 * + + COALESCE ( 55, - 34 + + + 42 ), 36 - - 24 * + ( + ( 31 ) ) col0
----
3025
780

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT ALL + MAX( CASE - 45 WHEN + 58 * - 24 * - ( + 10 ) THEN + 22 END ) * - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL + MAX ( CASE - 45 WHEN + 58 * - 24 * - ( + 10 ) THEN + 22 END ) * - + 99
----
NULL

query I rowsort
SELECT DISTINCT - CASE ( + + 59 ) WHEN + - 2 THEN - + ( 48 ) - + 86 + + 64 * + 41 + - 26 * - 78 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7387
SELECT - 27, CAST( - + 36 AS SIGNED ) + + 6 AS col1
----
-27
-30

skipif mysql # not compatible
query II rowsort label-7387
SELECT - 27, CAST ( - + 36 AS INTEGER ) + + 6 AS col1
----
-27
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT - - 87 DIV ( - + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-7388
SELECT - - 87 / ( - + 88 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7389
SELECT DISTINCT + 81 / NULLIF ( + CAST( NULL AS SIGNED ), NULLIF ( + - ( - + 5 ), + - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT + 81 / NULLIF ( + CAST ( NULL AS INTEGER ), NULLIF ( + - ( - + 5 ), + - COUNT ( * ) ) )
----
NULL

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

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

query I rowsort
SELECT - 61 * + 0 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7392
SELECT - 78 DIV + 3 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-7392
SELECT - 78 / + 3 AS col1
----
-26

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

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL - COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ) ) * + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL + 12 + + 59 * + 20
----
1192

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT ALL - 13 + MAX( DISTINCT 71 )
----
58

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL - 13 + MAX ( DISTINCT 71 )
----
58

query I rowsort
SELECT ALL - 40 * - 50 AS col2
----
2000

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7398
SELECT 45 AS col0, 15 DIV 72
----
45
0

skipif mysql # not compatible
query II rowsort label-7398
SELECT 45 AS col0, 15 / 72
----
45
0

query I rowsort
SELECT ALL ( ( + 44 ) ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT - 71 + + SUM( DISTINCT + - 5 ) * - + COUNT( * ) - + - SUM( - 77 )
----
-143

skipif mysql # not compatible
query I rowsort label-7400
SELECT - 71 + + SUM ( DISTINCT + - 5 ) * - + COUNT ( * ) - + - SUM ( - 77 )
----
-143

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

skipif mysql # not compatible
query I rowsort label-7401
SELECT - COUNT ( * ) + + + 31 AS col2
----
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT - COUNT( * ) * + 81 * + + 94
----
-7614

skipif mysql # not compatible
query I rowsort label-7403
SELECT - COUNT ( * ) * + 81 * + + 94
----
-7614

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT DISTINCT + COUNT( * ) * 40 - 77
----
-37

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT + COUNT ( * ) * 40 - 77
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT ALL + ( - COUNT( * ) ) * + + 35 * + 32 - - COALESCE ( - ( - - CASE 36 WHEN 8 * - 62 * 68 THEN - - 77 ELSE - 19 END ), + - CASE - - 71 WHEN - 53 THEN + - 0 WHEN + 87 THEN NULL END ) + + 87 col0
----
-1014

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL + ( - COUNT ( * ) ) * + + 35 * + 32 - - COALESCE ( - ( - - CASE 36 WHEN 8 * - 62 * 68 THEN - - 77 ELSE - 19 END ), + - CASE - - 71 WHEN - 53 THEN + - 0 WHEN + 87 THEN NULL END ) + + 87 col0
----
-1014

onlyif mysql # DIV for integer division: 
query I rowsort label-7407
SELECT - + 65 DIV - NULLIF ( - 40, + 20 * + ( + 48 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7407
SELECT - + 65 / - NULLIF ( - 40, + 20 * + ( + 48 ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7408
SELECT DISTINCT + - 95 AS col1, - MIN( + 88 ) AS col0
----
-95
-88

skipif mysql # not compatible
query II rowsort label-7408
SELECT DISTINCT + - 95 AS col1, - MIN ( + 88 ) AS col0
----
-95
-88

query I rowsort
SELECT + - ( - 88 ) + - 92 * + 24
----
-2120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT DISTINCT + - 41 * - 83 + 40 * - COUNT( * ) * + - 68
----
6123

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT + - 41 * - 83 + 40 * - COUNT ( * ) * + - 68
----
6123

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL - + SUM( + 96 ) * 16
----
-1536

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - + SUM ( + 96 ) * 16
----
-1536

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7414
SELECT + ( CASE + 49 WHEN + 38 + + 17 - 34 THEN + ( + - 68 ) END ) - 32 AS col2, CASE AVG ( ALL - 27 ) WHEN - ( - 76 ) THEN + 26 * - 4 + CAST( NULL AS SIGNED ) END + COUNT( * ) - - 78 + - 15 * + 38 / + 96 * + CAST( 5 AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7414
SELECT + ( CASE + 49 WHEN + 38 + + 17 - 34 THEN + ( + - 68 ) END ) - 32 AS col2, CASE AVG ( ALL - 27 ) WHEN - ( - 76 ) THEN + 26 * - 4 + CAST ( NULL AS INTEGER ) END + COUNT ( * ) - - 78 + - 15 * + 38 / + 96 * + CAST ( 5 AS INTEGER ) AS col0
----
NULL
NULL

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

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

query I rowsort
SELECT 7 * - + 76 - - - 34 AS col1
----
-566

query II rowsort
SELECT ALL + + 80, + 46 + + 30 AS col0
----
80
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7418
SELECT + 54 + + CAST( + + 46 AS SIGNED )
----
100

skipif mysql # not compatible
query I rowsort label-7418
SELECT + 54 + + CAST ( + + 46 AS INTEGER )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT SUM( ALL 23 )
----
23

skipif mysql # not compatible
query I rowsort label-7419
SELECT SUM ( ALL 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT - CASE - 15 WHEN AVG ( DISTINCT - 96 ) THEN NULL WHEN CASE CASE + NULLIF ( - + 92, + - 8 + - NULLIF ( - 39, + 15 ) ) WHEN + - 87 THEN NULL WHEN - + 37 THEN - + 42 END WHEN CASE + - 11 WHEN + - ( - 40 ) THEN + 13 WHEN 94 THEN NULL ELSE NULL END * NULLIF ( + 26, + + 6 ) + - - 97 THEN + + 80 ELSE + 13 END * + + 47 / + 64 / - ( + 30 ) THEN COUNT( * ) WHEN COUNT( * ) THEN - COUNT( DISTINCT - - 48 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7420
SELECT - CASE - 15 WHEN AVG ( DISTINCT - 96 ) THEN NULL WHEN CASE CASE + NULLIF ( - + 92, + - 8 + - NULLIF ( - 39, + 15 ) ) WHEN + - 87 THEN NULL WHEN - + 37 THEN - + 42 END WHEN CASE + - 11 WHEN + - ( - 40 ) THEN + 13 WHEN 94 THEN NULL ELSE NULL END * NULLIF ( + 26, + + 6 ) + - - 97 THEN + + 80 ELSE + 13 END * + + 47 / + 64 / - ( + 30 ) THEN COUNT ( * ) WHEN COUNT ( * ) THEN - COUNT ( DISTINCT - - 48 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + - 58 * - 98
----
5684

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT ALL + 75 * - 75 + + COUNT( * ) + - 4
----
-5628

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL + 75 * - 75 + + COUNT ( * ) + - 4
----
-5628

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-7424
SELECT DISTINCT COUNT( * ) DIV + 47 col1, CAST( NULL AS DECIMAL ), 30 AS col2
----
0
NULL
30

skipif mysql # not compatible
query III rowsort label-7424
SELECT DISTINCT COUNT ( * ) / + 47 col1, CAST ( NULL AS REAL ), 30 AS col2
----
0
NULL
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7425
SELECT DISTINCT 84 + + - COUNT( * ) + - 17 + COALESCE ( - 12, - + 86 + - 24 ) * + + CAST( + - ( + + 98 ) AS SIGNED ) * + + 56 * 69 DIV - - 3
----
1514754

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT 84 + + - COUNT ( * ) + - 17 + COALESCE ( - 12, - + 86 + - 24 ) * + + CAST ( + - ( + + 98 ) AS INTEGER ) * + + 56 * 69 / - - 3
----
1514754

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL COUNT( * ) + + NULLIF ( + 94, + 60 ) + - - 7 + + 54
----
156

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL COUNT ( * ) + + NULLIF ( + 94, + 60 ) + - - 7 + + 54
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT SUM( - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-7427
SELECT SUM ( - 59 )
----
-59

query I rowsort
SELECT ALL 19 + - + 53 AS col1
----
-34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7430
SELECT - ( - 72 ) AS col0, - CAST( - - 44 AS SIGNED ) DIV 60 + + 40 + + COUNT( * )
----
72
41

skipif mysql # not compatible
query II rowsort label-7430
SELECT - ( - 72 ) AS col0, - CAST ( - - 44 AS INTEGER ) / 60 + + 40 + + COUNT ( * )
----
72
41

query I rowsort
SELECT - 83 + + - 91 * 37 * 33
----
-111194

query I rowsort
SELECT ALL + ( - + 55 ) + - 53 * - 96
----
5033

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT + MIN( DISTINCT 33 ) * + + 99
----
3267

skipif mysql # not compatible
query I rowsort label-7433
SELECT + MIN ( DISTINCT 33 ) * + + 99
----
3267

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7434
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - + 38 * - - 30 * 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT CAST ( NULL AS REAL ) / - + 38 * - - 30 * 25 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 91 * - + 3 * 49 AS col1
----
-13377

onlyif mysql # DIV for integer division: 
query I rowsort label-7436
SELECT DISTINCT 64 - + 49 - + 1 * 47 DIV - + 63 * 74 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT 64 - + 49 - + 1 * 47 / - + 63 * 74 AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7437
SELECT ALL + 9 * COUNT( * ), + ( + 99 ) AS col0
----
9
99

skipif mysql # not compatible
query II rowsort label-7437
SELECT ALL + 9 * COUNT ( * ), + ( + 99 ) AS col0
----
9
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7438
SELECT MIN( ALL 60 ) col0, 53
----
60
53

skipif mysql # not compatible
query II rowsort label-7438
SELECT MIN ( ALL 60 ) col0, 53
----
60
53

query I rowsort
SELECT DISTINCT - - 46 col1
----
46

query I rowsort
SELECT + 94 + - + 40 AS col0
----
54

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

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

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT + ( + + ( COUNT ( * ) ) ) + + 75 AS col1
----
76

query I rowsort
SELECT ALL - 56 + + - 57 col2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT - 72 * - - ( - + 64 ) + + 22 + - 4 * + - MAX( + 76 ) AS col0
----
4934

skipif mysql # not compatible
query I rowsort label-7444
SELECT - 72 * - - ( - + 64 ) + + 22 + - 4 * + - MAX ( + 76 ) AS col0
----
4934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7445
SELECT ALL + - CAST( - 52 AS SIGNED ) + + - 88 - - + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL + - CAST ( - 52 AS INTEGER ) + + - 88 - - + COUNT ( * )
----
-35

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7447
SELECT DISTINCT - 54 + 87 col0, 17 - + CASE - 43 WHEN MAX( - 33 ) THEN NULL WHEN - COUNT( * ) + 51 THEN + NULLIF ( + 37, - 66 ) ELSE NULL END + + 95 AS col1
----
33
NULL

skipif mysql # not compatible
query II rowsort label-7447
SELECT DISTINCT - 54 + 87 col0, 17 - + CASE - 43 WHEN MAX ( - 33 ) THEN NULL WHEN - COUNT ( * ) + 51 THEN + NULLIF ( + 37, - 66 ) ELSE NULL END + + 95 AS col1
----
33
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7448
SELECT DISTINCT + - COUNT( * ) * + 70, ( + 18 ) * CAST( ( - 54 ) AS SIGNED ) - + + 52 AS col2
----
-70
-1024

skipif mysql # not compatible
query II rowsort label-7448
SELECT DISTINCT + - COUNT ( * ) * + 70, ( + 18 ) * CAST ( ( - 54 ) AS INTEGER ) - + + 52 AS col2
----
-70
-1024

query I rowsort
SELECT DISTINCT + 58 * 18 * + 96 AS col1
----
100224

query I rowsort
SELECT ALL 19 col1
----
19

query II rowsort
SELECT ALL 73 AS col1, 48 AS col1
----
73
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7452
SELECT ( - + 97 ) * CASE 84 WHEN + + 32 * + CAST( NULL AS SIGNED ) THEN CAST( NULL AS SIGNED ) + - - AVG ( ALL 18 ) * 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT ( - + 97 ) * CASE 84 WHEN + + 32 * + CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) + - - AVG ( ALL 18 ) * 78 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( 48 ) - - ( - 58 ) AS col2
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT 33 - 80 + SUM( - 12 ) + - - ( - + 67 )
----
-126

skipif mysql # not compatible
query I rowsort label-7455
SELECT 33 - 80 + SUM ( - 12 ) + - - ( - + 67 )
----
-126

query II rowsort
SELECT 94 AS col0, + 16 col2
----
94
16

onlyif mysql # aggregate syntax: 
query III rowsort label-7457
SELECT DISTINCT 35 col1, 92 / CASE WHEN NOT 76 >= + + 28 - 68 OR + 9 / - - 73 - + - 47 IN ( - - 49, + COUNT( * ), - - 55, - 71, + 68, + COUNT( * ) ) THEN - - ( - SUM( DISTINCT + 76 ) ) END AS col1, MIN( DISTINCT 51 ) + + 91 AS col0
----
35
NULL
142

skipif mysql # not compatible
query III rowsort label-7457
SELECT DISTINCT 35 col1, 92 / CASE WHEN NOT 76 >= + + 28 - 68 OR + 9 / - - 73 - + - 47 IN ( - - 49, + COUNT ( * ), - - 55, - 71, + 68, + COUNT ( * ) ) THEN - - ( - SUM ( DISTINCT + 76 ) ) END AS col1, MIN ( DISTINCT 51 ) + + 91 AS col0
----
35
NULL
142

query I rowsort
SELECT ALL 59 * - - 76
----
4484

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7460
SELECT COUNT( * ) + + - 94 DIV - ( + + MAX( DISTINCT - 6 ) ) + - 64 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7460
SELECT COUNT ( * ) + + - 94 / - ( + + MAX ( DISTINCT - 6 ) ) + - 64 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-7461
SELECT ALL 8, COUNT( * ) + - 15 + COUNT( * ) + 81 * - - 95 col1
----
8
7682

skipif mysql # not compatible
query II rowsort label-7461
SELECT ALL 8, COUNT ( * ) + - 15 + COUNT ( * ) + 81 * - - 95 col1
----
8
7682

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

skipif mysql # not compatible
query I rowsort label-7462
SELECT 58 / - - 69
----
0

query I rowsort
SELECT ALL - - 16 * + - 34 AS col0
----
-544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7464
SELECT - NULLIF ( + + 6, - 63 + - COALESCE ( + - 25, 77 * 67, + 8 ) + + COUNT( * ) + + 17 * - + 63 * + + 65 ) DIV + + 35 * - 72 * 6
----
0

skipif mysql # not compatible
query I rowsort label-7464
SELECT - NULLIF ( + + 6, - 63 + - COALESCE ( + - 25, 77 * 67, + 8 ) + + COUNT ( * ) + + 17 * - + 63 * + + 65 ) / + + 35 * - 72 * 6
----
0

query II rowsort
SELECT ALL - - 17 AS col2, 15 * + + 86 AS col2
----
17
1290

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT DISTINCT - 9 DIV + ( + - 44 ) * - ( - 78 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT - 9 / + ( + - 44 ) * - ( - 78 ) AS col0
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7469
SELECT - 92 * - CAST( + - 28 AS SIGNED )
----
-2576

skipif mysql # not compatible
query I rowsort label-7469
SELECT - 92 * - CAST ( + - 28 AS INTEGER )
----
-2576

query I rowsort
SELECT 5 * + ( 78 ) - - + 91
----
481

onlyif mysql # aggregate syntax: 
query II rowsort label-7471
SELECT COUNT( * ) AS col1, 38 * + + NULLIF ( - + 97, + 65 ) * + - 25 + + 15
----
1
92165

skipif mysql # not compatible
query II rowsort label-7471
SELECT COUNT ( * ) AS col1, 38 * + + NULLIF ( - + 97, + 65 ) * + - 25 + + 15
----
1
92165

onlyif mysql # DIV for integer division: 
query II rowsort label-7472
SELECT DISTINCT + 83 + + 18 DIV + - 15, 27 + - 90 AS col2
----
82
-63

skipif mysql # not compatible
query II rowsort label-7472
SELECT DISTINCT + 83 + + 18 / + - 15, 27 + - 90 AS col2
----
82
-63

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

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

query I rowsort
SELECT ALL - 80 + - + 10 AS col1
----
-90

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7476
SELECT 8 + + + CASE + MIN( - 43 ) WHEN - 99 + + + CAST( 81 AS SIGNED ) THEN + CAST( NULL AS SIGNED ) / + + 40 * - + 62 WHEN - 63 THEN + 43 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT 8 + + + CASE + MIN ( - 43 ) WHEN - 99 + + + CAST ( 81 AS INTEGER ) THEN + CAST ( NULL AS INTEGER ) / + + 40 * - + 62 WHEN - 63 THEN + 43 END col1
----
NULL

query I rowsort
SELECT - 97 * + - ( + + 21 ) - - - 61 * + + 15 AS col1
----
1122

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

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL - CAST ( 71 AS INTEGER ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT 23 * - COUNT( 19 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7479
SELECT 23 * - COUNT ( 19 ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7480
SELECT - 72 + - SUM( ALL + + 79 ) + + 6 + + 19 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7480
SELECT - 72 + - SUM ( ALL + + 79 ) + + 6 + + 19 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 9 * - - 84 AS col0
----
756

onlyif mysql # aggregate syntax: 
query II rowsort label-7482
SELECT DISTINCT SUM( ALL + 83 ), + 2 AS col2
----
83
2

skipif mysql # not compatible
query II rowsort label-7482
SELECT DISTINCT SUM ( ALL + 83 ), + 2 AS col2
----
83
2

query I rowsort
SELECT - 66 * 29 AS col0
----
-1914

query I rowsort
SELECT ALL + 18 * - - COALESCE ( - - 95, 17 ) * - + 8 AS col0
----
-13680

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT - NULLIF ( + NULLIF ( - 6, + 59 ), - 92 ) * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-7485
SELECT - NULLIF ( + NULLIF ( - 6, + 59 ), - 92 ) * COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL + COALESCE ( 44, - - 7 * + 59 * + ( + NULLIF ( + - 74, + - 43 * - NULLIF ( COUNT( ALL 18 ), - - 8 + 47 ) * + + 15 - + 15 + 26 + - 44 / - 75 * - - 23 * + 41 * + COUNT( * ) * + MIN( + 17 ) ) ) + + 39, - CASE + 33 WHEN + 98 - 88 THEN - - 47 WHEN + 58 + + 14 + 39 THEN - - 25 ELSE NULL END ) * - + 5 AS col2
----
-220

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL + COALESCE ( 44, - - 7 * + 59 * + ( + NULLIF ( + - 74, + - 43 * - NULLIF ( COUNT ( ALL 18 ), - - 8 + 47 ) * + + 15 - + 15 + 26 + - 44 / - 75 * - - 23 * + 41 * + COUNT ( * ) * + MIN ( + 17 ) ) ) + + 39, - CASE + 33 WHEN + 98 - 88 THEN - - 47 WHEN + 58 + + 14 + 39 THEN - - 25 ELSE NULL END ) * - + 5 AS col2
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ALL NULLIF ( + - 92, - 29 * COUNT( * ) + 58 / - + 60 )
----
-92

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL NULLIF ( + - 92, - 29 * COUNT ( * ) + 58 / - + 60 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT DISTINCT NULLIF ( + NULLIF ( + 99, + 13 + - + MIN( ALL - + 63 ) ), COUNT( * ) * - 82 )
----
99

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT NULLIF ( + NULLIF ( + 99, + 13 + - + MIN ( ALL - + 63 ) ), COUNT ( * ) * - 82 )
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT - CASE WHEN - ( 13 ) >= 51 / + COUNT( * ) * 65 THEN + 40 * ( - - 85 ) / - 65 * 90 + + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT - CASE WHEN - ( 13 ) >= 51 / + COUNT ( * ) * 65 THEN + 40 * ( - - 85 ) / - 65 * 90 + + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 47 + 77 + 37
----
161

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

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

query I rowsort
SELECT DISTINCT - 30 + - 75
----
-105

query I rowsort
SELECT DISTINCT CASE - + 0 WHEN - ( + 13 ) + - 25 THEN + 21 ELSE NULL END + + 94 AS col1
----
NULL

query I rowsort
SELECT ALL - 80 + - + 11
----
-91

query I rowsort
SELECT DISTINCT - 63 * 39 + + 24
----
-2433

query II rowsort
SELECT + + 42 * 24 AS col2, 46 AS col0
----
1008
46

query I rowsort
SELECT ALL - 20 * - 72 + + + 35 col1
----
1475

query I rowsort
SELECT ALL + + 75 * 7 + + 7 AS col2
----
532

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

query I rowsort
SELECT + - 34 + + 86 * 47
----
4008

query I rowsort
SELECT + 34 * - 44
----
-1496

query I rowsort
SELECT + + NULLIF ( - + COALESCE ( 80, - + 59 + + 86 * + 44 ), 15 ) * + + 22 AS col1
----
-1760

onlyif mysql # DIV for integer division: 
query I rowsort label-7504
SELECT ALL + 4 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL + 4 / 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT CASE 61 WHEN - 18 THEN - MAX( + 42 ) * + 7 + 92 WHEN - SUM( 75 ) + - 44 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7505
SELECT CASE 61 WHEN - 18 THEN - MAX ( + 42 ) * + 7 + 92 WHEN - SUM ( 75 ) + - 44 THEN NULL END
----
NULL

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

query I rowsort
SELECT + ( - 31 ) col2
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7508
SELECT + CAST( NULL AS DECIMAL ) * 15 + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7508
SELECT + CAST ( NULL AS REAL ) * 15 + 33 AS col1
----
NULL

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

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

query I rowsort
SELECT + ( NULLIF ( + 4, 59 ) )
----
4

query I rowsort
SELECT + 55 * - 84 * + 26 * 25
----
-3003000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7512
SELECT CASE + 21 WHEN - 4 + + CAST( 4 AS SIGNED ) THEN + MAX( - 97 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT CASE + 21 WHEN - 4 + + CAST ( 4 AS INTEGER ) THEN + MAX ( - 97 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7513
SELECT COALESCE ( + 23, 30, - 34 * - NULLIF ( SUM( ALL 18 ), + + 56 + 19 ) * 48 DIV - - COALESCE ( + 41, + + 67 ) - + + 54 + 33 + - 19 * + 27 DIV - - COUNT( * ) ) * - + 31 + 30 AS col2
----
-683

skipif mysql # not compatible
query I rowsort label-7513
SELECT COALESCE ( + 23, 30, - 34 * - NULLIF ( SUM ( ALL 18 ), + + 56 + 19 ) * 48 / - - COALESCE ( + 41, + + 67 ) - + + 54 + 33 + - 19 * + 27 / - - COUNT ( * ) ) * - + 31 + 30 AS col2
----
-683

query I rowsort
SELECT ALL + NULLIF ( - 67, + - 68 )
----
-67

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

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

query I rowsort
SELECT DISTINCT 13 * - - 22 AS col0
----
286

query I rowsort
SELECT DISTINCT ( + 41 ) AS col2
----
41

query I rowsort
SELECT ALL CASE - 68 WHEN 65 THEN - - 43 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT DISTINCT - 32 * - 48 * COUNT( * ) AS col1
----
1536

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT - 32 * - 48 * COUNT ( * ) AS col1
----
1536

query I rowsort
SELECT ALL NULLIF ( + + ( + - 62 ), 49 ) AS col1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7521
SELECT - 6 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-7521
SELECT - 6 / 34
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7522
SELECT - COUNT( ALL + ( - + 62 ) ) AS col1, - CAST( NULL AS SIGNED ) - + - COALESCE ( ( - 23 ), + 3 + ( - - CAST( 9 AS SIGNED ) ) * - 90 ) + COUNT( * )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7522
SELECT - COUNT ( ALL + ( - + 62 ) ) AS col1, - CAST ( NULL AS INTEGER ) - + - COALESCE ( ( - 23 ), + 3 + ( - - CAST ( 9 AS INTEGER ) ) * - 90 ) + COUNT ( * )
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7523
SELECT DISTINCT - 33 * - CASE - - 48 WHEN 63 + - 85 + - COALESCE ( - COUNT( * ), + 54 ) THEN - - COUNT( * ) * 88 + + 44 + - + 93 / - - 19 * CAST( NULL AS SIGNED ) + + 93 WHEN + + 14 THEN NULL END, 27 * 50 + - + 85 + + CAST( NULL AS SIGNED ) / + 64
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7523
SELECT DISTINCT - 33 * - CASE - - 48 WHEN 63 + - 85 + - COALESCE ( - COUNT ( * ), + 54 ) THEN - - COUNT ( * ) * 88 + + 44 + - + 93 / - - 19 * CAST ( NULL AS INTEGER ) + + 93 WHEN + + 14 THEN NULL END, 27 * 50 + - + 85 + + CAST ( NULL AS INTEGER ) / + 64
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7524
SELECT - COUNT( ALL CAST( - CAST( ( 83 ) AS DECIMAL ) AS SIGNED ) ) - - + 84 * - 84
----
-7057

skipif mysql # not compatible
query I rowsort label-7524
SELECT - COUNT ( ALL CAST ( - CAST ( ( 83 ) AS REAL ) AS INTEGER ) ) - - + 84 * - 84
----
-7057

query I rowsort
SELECT - CASE - 7 WHEN 96 THEN NULL WHEN 27 THEN NULL ELSE - - 30 + - 51 END
----
21

query I rowsort
SELECT ALL + 15 * - - 4 AS col1
----
60

query I rowsort
SELECT ALL - 60 + 55 AS col1
----
-5

query I rowsort
SELECT - 35 - + 56
----
-91

query I rowsort
SELECT DISTINCT + 33 * + 84
----
2772

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT - COUNT( 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-7531
SELECT - COUNT ( 5 )
----
-1

query I rowsort
SELECT ALL ( + 32 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT - NULLIF ( 2, NULLIF ( 6, + 93 - COUNT( DISTINCT - 71 - + ( 76 ) * 12 ) ) * + 91 )
----
-2

skipif mysql # not compatible
query I rowsort label-7533
SELECT - NULLIF ( 2, NULLIF ( 6, + 93 - COUNT ( DISTINCT - 71 - + ( 76 ) * 12 ) ) * + 91 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT DISTINCT + COUNT( 14 ) + COUNT( + 53 )
----
2

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT + COUNT ( 14 ) + COUNT ( + 53 )
----
2

query I rowsort
SELECT + 57 * - 65 col0
----
-3705

query I rowsort
SELECT - 45 + - 74 col1
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7537
SELECT 62 * - 30 + ( - 71 + - 72 DIV COALESCE ( + CAST( + 13 AS SIGNED ), + COUNT( * ) ) ) * + 51 AS col0
----
-5736

skipif mysql # not compatible
query I rowsort label-7537
SELECT 62 * - 30 + ( - 71 + - 72 / COALESCE ( + CAST ( + 13 AS INTEGER ), + COUNT ( * ) ) ) * + 51 AS col0
----
-5736

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7539
SELECT ALL + 80 / + 73 - + ( COUNT( * ) + NULLIF ( 90 + 73 / + CAST( 19 * CASE 88 * - CAST( COUNT( * ) AS SIGNED ) WHEN 23 THEN NULL WHEN + 70 THEN 35 ELSE NULL END + 76 AS SIGNED ), 72 * CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL + 80 / + 73 - + ( COUNT ( * ) + NULLIF ( 90 + 73 / + CAST ( 19 * CASE 88 * - CAST ( COUNT ( * ) AS INTEGER ) WHEN 23 THEN NULL WHEN + 70 THEN 35 ELSE NULL END + 76 AS INTEGER ), 72 * CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT DISTINCT - COUNT( * ) * - 91
----
91

skipif mysql # not compatible
query I rowsort label-7540
SELECT DISTINCT - COUNT ( * ) * - 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT DISTINCT COUNT( ALL + 99 ) * - 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT COUNT ( ALL + 99 ) * - 81 AS col1
----
-81

query I rowsort
SELECT + 91 * 80 col2
----
7280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7543
SELECT + CAST( AVG ( 66 ) AS SIGNED ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7543
SELECT + CAST ( AVG ( 66 ) AS INTEGER ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7544
SELECT ALL - COALESCE ( - COALESCE ( - MIN( DISTINCT + 83 ), + 28 - 98 * CAST( NULL AS SIGNED ) ), - 91 ) DIV + 2 - 62 AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL - COALESCE ( - COALESCE ( - MIN ( DISTINCT + 83 ), + 28 - 98 * CAST ( NULL AS INTEGER ) ), - 91 ) / + 2 - 62 AS col0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT COUNT( * ) * - MAX( + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-7545
SELECT COUNT ( * ) * - MAX ( + 63 )
----
-63

query I rowsort
SELECT ( 86 ) * - 87 AS col2
----
-7482

onlyif mysql # DIV for integer division: 
query I rowsort label-7547
SELECT 69 DIV + 34
----
2

skipif mysql # not compatible
query I rowsort label-7547
SELECT 69 / + 34
----
2

query I rowsort
SELECT 43 + + 12 AS col1
----
55

query I rowsort
SELECT ALL 60 - - 64 col1
----
124

query I rowsort
SELECT ALL + 18 * 10
----
180

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

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7552
SELECT DISTINCT 66 DIV CAST( CAST( 17 AS SIGNED ) AS SIGNED ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT 66 / CAST ( CAST ( 17 AS INTEGER ) AS INTEGER ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7553
SELECT + CASE - 91 WHEN - COUNT( * ) + - COUNT( ALL + 99 ) THEN NULL WHEN 94 + COALESCE ( 56, - 49 * 87 ) THEN NULL WHEN - CAST( 43 AS DECIMAL ) THEN + COUNT( * ) END * - 2 - - 39 * + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7553
SELECT + CASE - 91 WHEN - COUNT ( * ) + - COUNT ( ALL + 99 ) THEN NULL WHEN 94 + COALESCE ( 56, - 49 * 87 ) THEN NULL WHEN - CAST ( 43 AS REAL ) THEN + COUNT ( * ) END * - 2 - - 39 * + 22 AS col0
----
NULL

query I rowsort
SELECT ALL 59 * - CASE 81 WHEN - 0 THEN 69 / - 31 END
----
NULL

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

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

query I rowsort
SELECT 87 + - 63 * + 30 AS col1
----
-1803

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

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

query I rowsort
SELECT DISTINCT - 46 * 99 AS col1
----
-4554

query I rowsort
SELECT ALL + 92 + 69 * 66
----
4646

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

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

query I rowsort
SELECT ALL - 28 + - 92 AS col1
----
-120

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

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

query I rowsort
SELECT DISTINCT 58 + - 80
----
-22

query I rowsort
SELECT ALL - 56 + - 13
----
-69

query I rowsort
SELECT DISTINCT - + 68 + - 51
----
-119

query I rowsort
SELECT DISTINCT + 47 + + 77
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-7567
SELECT DISTINCT + 31 DIV - COALESCE ( 15 + 80, + 60 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT + 31 / - COALESCE ( 15 + 80, + 60 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT COUNT( * ) + 30 col0
----
31

skipif mysql # not compatible
query I rowsort label-7568
SELECT COUNT ( * ) + 30 col0
----
31

query I rowsort
SELECT + 89 * 10 AS col0
----
890

query I rowsort
SELECT ALL + 98 * 0
----
0

query I rowsort
SELECT ALL - 39 + 24
----
-15

query I rowsort
SELECT - 11 + NULLIF ( 56, 57 + 90 / 70 )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7573
SELECT CAST( NULL AS SIGNED ) / 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT CAST ( NULL AS INTEGER ) / 72
----
NULL

query I rowsort
SELECT 56 * 33 AS col2
----
1848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7575
SELECT ALL + 37 * NULLIF ( 35 - 81 DIV + COUNT( * ), + COUNT( * ) )
----
-1702

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL + 37 * NULLIF ( 35 - 81 / + COUNT ( * ), + COUNT ( * ) )
----
-1702

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

query I rowsort
SELECT DISTINCT - 46 - 33 AS col2
----
-79

query I rowsort
SELECT DISTINCT - NULLIF ( + 81, 8 + 58 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT + COALESCE ( - 88, CASE 23 WHEN + 24 + 49 / 20 THEN - 64 - COUNT( DISTINCT 79 + 62 ) ELSE SUM( ALL 69 ) END, - 86 * 34 + 47 )
----
-88

skipif mysql # not compatible
query I rowsort label-7579
SELECT + COALESCE ( - 88, CASE 23 WHEN + 24 + 49 / 20 THEN - 64 - COUNT ( DISTINCT 79 + 62 ) ELSE SUM ( ALL 69 ) END, - 86 * 34 + 47 )
----
-88

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

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

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL - MAX ( DISTINCT - 21 )
----
21

query I rowsort
SELECT - 22 * 78 + - 34
----
-1750

query I rowsort
SELECT DISTINCT 61 * - 66
----
-4026

query I rowsort
SELECT ALL + 59 * - 79
----
-4661

query I rowsort
SELECT DISTINCT + 50 * + + 51
----
2550

query I rowsort
SELECT 78 + - 20 - + 30 AS col1
----
28

query I rowsort
SELECT ALL 60 * 24
----
1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7588
SELECT SUM( DISTINCT - - 73 ) DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7588
SELECT SUM ( DISTINCT - - 73 ) / - 90 AS col0
----
0

query I rowsort
SELECT ALL 53 + 24
----
77

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

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT COUNT ( * ) + 20 AS col1
----
21

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7592
SELECT ALL COALESCE ( + - 82, - 74 - - 86, 38, + NULLIF ( 97, 62 DIV 33 ) ) DIV - CAST( 88 + - 87 * 64 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL COALESCE ( + - 82, - 74 - - 86, 38, + NULLIF ( 97, 62 / 33 ) ) / - CAST ( 88 + - 87 * 64 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL 17 + + 62 + - COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL 17 + + 62 + - COUNT ( * ) AS col1
----
78

query I rowsort
SELECT DISTINCT 82 * - 31 AS col2
----
-2542

query I rowsort
SELECT DISTINCT + 15 * + - 17
----
-255

query I rowsort
SELECT DISTINCT 52 + - 9 + + 4 AS col0
----
47

query I rowsort
SELECT + 51 + 49
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT + NULLIF ( 72, ( COUNT( + 41 ) ) - 84 ) * 97 AS col2
----
6984

skipif mysql # not compatible
query I rowsort label-7598
SELECT + NULLIF ( 72, ( COUNT ( + 41 ) ) - 84 ) * 97 AS col2
----
6984

query I rowsort
SELECT ALL + 18 + + 4 col2
----
22

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

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT MAX ( DISTINCT - 98 )
----
-98

query I rowsort
SELECT DISTINCT 99 * 28
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT - SUM( DISTINCT - - 30 ) - + 30 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7602
SELECT - SUM ( DISTINCT - - 30 ) - + 30 AS col0
----
-60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT - COUNT( * ) - - - 80
----
-81

skipif mysql # not compatible
query I rowsort label-7604
SELECT - COUNT ( * ) - - - 80
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT DISTINCT MAX( + 1 ) * - 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT MAX ( + 1 ) * - 9 AS col1
----
-9

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT 71 * + MIN( DISTINCT 59 ) * COUNT( * ) - + COUNT( * )
----
4188

skipif mysql # not compatible
query I rowsort label-7608
SELECT 71 * + MIN ( DISTINCT 59 ) * COUNT ( * ) - + COUNT ( * )
----
4188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7609
SELECT ALL + SUM( DISTINCT - + 66 ) DIV 37 col2
----
-1

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL + SUM ( DISTINCT - + 66 ) / 37 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT DISTINCT COUNT( * ) - ( - ( + MIN( ALL + 20 ) ) ) + - 57 * - 42
----
2415

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT COUNT ( * ) - ( - ( + MIN ( ALL + 20 ) ) ) + - 57 * - 42
----
2415

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

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

skipif mysql # not compatible
query I rowsort label-7612
SELECT 20 + - COUNT ( * ) * 87 AS col0
----
-67

query I rowsort
SELECT + 50 - - 36 AS col2
----
86

query I rowsort
SELECT 50 * - 61 AS col2
----
-3050

onlyif mysql # DIV for integer division: 
query I rowsort label-7615
SELECT ALL + - 85 DIV - 76 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL + - 85 / - 76 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7616
SELECT ALL - CASE - 60 WHEN + 8 THEN COUNT( * ) WHEN COALESCE ( 90, + 44 - CASE 92 WHEN 62 THEN NULL ELSE + 59 END * + NULLIF ( + CASE + SUM( + 28 ) WHEN + 35 * 43 THEN - 43 + 14 END - + 67, + AVG ( ALL 24 ) ), SUM( ALL + 4 ) * + 33, - CAST( NULL AS DECIMAL ) ) + - 63 THEN + 59 + + 73 ELSE NULL END * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL - CASE - 60 WHEN + 8 THEN COUNT ( * ) WHEN COALESCE ( 90, + 44 - CASE 92 WHEN 62 THEN NULL ELSE + 59 END * + NULLIF ( + CASE + SUM ( + 28 ) WHEN + 35 * 43 THEN - 43 + 14 END - + 67, + AVG ( ALL 24 ) ), SUM ( ALL + 4 ) * + 33, - CAST ( NULL AS REAL ) ) + - 63 THEN + 59 + + 73 ELSE NULL END * + 48
----
NULL

query I rowsort
SELECT - 16 + + 71 AS col0
----
55

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

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT + ( + COUNT ( 95 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7619
SELECT - - 20 * - - CAST( - 82 AS SIGNED ) + COUNT( * ) + 74
----
-1565

skipif mysql # not compatible
query I rowsort label-7619
SELECT - - 20 * - - CAST ( - 82 AS INTEGER ) + COUNT ( * ) + 74
----
-1565

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7620
SELECT COALESCE ( - CASE 70 WHEN 53 * + 14 THEN - 26 WHEN CASE 86 WHEN - 9 * + 30 THEN - 3 WHEN 98 THEN + 91 * - 27 WHEN - 63 + 6 THEN 37 + + 16 END * + 45 THEN 33 * COUNT( * ) + - 7 * 88 END, 87 DIV 2 + ( - 24 ) ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7620
SELECT COALESCE ( - CASE 70 WHEN 53 * + 14 THEN - 26 WHEN CASE 86 WHEN - 9 * + 30 THEN - 3 WHEN 98 THEN + 91 * - 27 WHEN - 63 + 6 THEN 37 + + 16 END * + 45 THEN 33 * COUNT ( * ) + - 7 * 88 END, 87 / 2 + ( - 24 ) ) AS col2
----
19

query I rowsort
SELECT ALL - ( - 94 ) * 41 + + 40 AS col1
----
3894

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT - 2 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-7623
SELECT - 2 / + 17
----
0

query I rowsort
SELECT ALL 87 * 99 + 58 AS col0
----
8671

query I rowsort
SELECT - 19 * + 19
----
-361

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7626
SELECT COALESCE ( - 0, - 62 + ( + 89 ) * + ( 55 * - 87 ), 12 * CAST( - 62 * - 58 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7626
SELECT COALESCE ( - 0, - 62 + ( + 89 ) * + ( 55 * - 87 ), 12 * CAST ( - 62 * - 58 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL + COALESCE ( - COUNT( * ), + 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL + COALESCE ( - COUNT ( * ), + 19 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT - MAX( DISTINCT + 1 ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7628
SELECT - MAX ( DISTINCT + 1 ) + - COUNT ( * )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7629
SELECT DISTINCT 55 * CAST( NULL AS SIGNED ) + + + 73 + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT 55 * CAST ( NULL AS INTEGER ) + + + 73 + 34 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT ALL CAST( NULL AS SIGNED ) * - 91 + - 87 * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL CAST ( NULL AS INTEGER ) * - 91 + - 87 * + 22
----
NULL

query II rowsort
SELECT + 78 AS col0, - 26 AS col2
----
78
-26

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

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

query I rowsort
SELECT ALL 30 * + 11 + - 12 * 49
----
-258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7634
SELECT DISTINCT MAX( ALL - 45 ) * COALESCE ( - 75, - CAST( NULL AS SIGNED ), 11 * 61 + SUM( 36 ) ) + ( + 9 + 62 * 74 ) + + 19
----
7991

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT MAX ( ALL - 45 ) * COALESCE ( - 75, - CAST ( NULL AS INTEGER ), 11 * 61 + SUM ( 36 ) ) + ( + 9 + 62 * 74 ) + + 19
----
7991

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7635
SELECT ALL 73 * + - ( COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) ) + - 31
----
-31

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL 73 * + - ( COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) ) + - 31
----
-31

query I rowsort
SELECT ALL NULLIF ( + 93, 74 ) * - 28 AS col0
----
-2604

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT ALL 67 * + - 64 + - COUNT( * ) + ( ( COUNT( * ) ) ) * 8 AS col0
----
-4281

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL 67 * + - 64 + - COUNT ( * ) + ( ( COUNT ( * ) ) ) * 8 AS col0
----
-4281

query I rowsort
SELECT DISTINCT ( 8 ) * - 50 * - 91 col0
----
36400

query I rowsort
SELECT ALL - 57 * + 65 * + 52 * + 49 + 47
----
-9440293

query I rowsort
SELECT 93 * + ( + 37 ) - - 6 AS col1
----
3447

query I rowsort
SELECT ALL + NULLIF ( 53, 34 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT ALL - COUNT( * ) * + 13 * 21 * 48
----
-13104

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL - COUNT ( * ) * + 13 * 21 * 48
----
-13104

query I rowsort
SELECT - 76 + 74 * - 0 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT 29 * 83 + NULLIF ( 66, - 63 / COUNT( * ) ) + 4 AS col0
----
2477

skipif mysql # not compatible
query I rowsort label-7645
SELECT 29 * 83 + NULLIF ( 66, - 63 / COUNT ( * ) ) + 4 AS col0
----
2477

query I rowsort
SELECT - 93 * - 18
----
1674

query I rowsort
SELECT + ( + - ( + 11 ) ) + 16 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT ALL 88 - + NULLIF ( - MIN( NULLIF ( - 21, + 51 * + 8 + 2 ) ), + 86 ) + 39 * + ( 99 ) * + 19
----
73426

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL 88 - + NULLIF ( - MIN ( NULLIF ( - 21, + 51 * + 8 + 2 ) ), + 86 ) + 39 * + ( 99 ) * + 19
----
73426

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT NULLIF ( 88, + + 70 + + COUNT( ALL 88 ) )
----
88

skipif mysql # not compatible
query I rowsort label-7649
SELECT NULLIF ( 88, + + 70 + + COUNT ( ALL 88 ) )
----
88

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7651
SELECT 92 * - COUNT( - 54 ) + + CASE CAST( 47 AS DECIMAL ) WHEN 17 THEN NULL WHEN 71 THEN 26 * + 10 + + 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT 92 * - COUNT ( - 54 ) + + CASE CAST ( 47 AS REAL ) WHEN 17 THEN NULL WHEN 71 THEN 26 * + 10 + + 17 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7652
SELECT ALL - + COUNT( * ) * + 3 * + 37 + + 71 * - ( NULLIF ( ( + CAST( - 83 AS SIGNED ) ), - 71 ) )
----
5782

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL - + COUNT ( * ) * + 3 * + 37 + + 71 * - ( NULLIF ( ( + CAST ( - 83 AS INTEGER ) ), - 71 ) )
----
5782

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

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

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

query I rowsort
SELECT - COALESCE ( 85, - 73 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT ALL CASE - NULLIF ( + AVG ( DISTINCT 92 ), 84 ) WHEN 7 * - 69 + 61 THEN COUNT( * ) * 1 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL CASE - NULLIF ( + AVG ( DISTINCT 92 ), 84 ) WHEN 7 * - 69 + 61 THEN COUNT ( * ) * 1 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7657
SELECT + + 26 DIV - NULLIF ( + + 68, - 88 + + 87 * + 95 )
----
0

skipif mysql # not compatible
query I rowsort label-7657
SELECT + + 26 / - NULLIF ( + + 68, - 88 + + 87 * + 95 )
----
0

query I rowsort
SELECT DISTINCT 46 * 99
----
4554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7659
SELECT DISTINCT 86 DIV - MIN( - 7 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7659
SELECT DISTINCT 86 / - MIN ( - 7 ) AS col0
----
12

query I rowsort
SELECT DISTINCT + CASE 94 WHEN + 96 * 69 THEN - NULLIF ( - 60, + 41 ) WHEN 80 THEN 35 ELSE NULL END * 20 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT + + ( + 57 ) * + 62 * COUNT( * ) - - 9
----
3543

skipif mysql # not compatible
query I rowsort label-7661
SELECT + + ( + 57 ) * + 62 * COUNT ( * ) - - 9
----
3543

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7662
SELECT DISTINCT - 13 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT DISTINCT - 13 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 48 + - 54
----
-6

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7665
SELECT 34, + 25 DIV - COALESCE ( - 34, 92 + ( ( 15 ) ) ) AS col0
----
34
0

skipif mysql # not compatible
query II rowsort label-7665
SELECT 34, + 25 / - COALESCE ( - 34, 92 + ( ( 15 ) ) ) AS col0
----
34
0

query I rowsort
SELECT - 57 * + - 66
----
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT - MAX( DISTINCT + - 94 ) * + + 50
----
4700

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT - MAX ( DISTINCT + - 94 ) * + + 50
----
4700

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

query I rowsort
SELECT + - 99 + + 2 AS col0
----
-97

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7671
SELECT + + 24 * + + 48 - 51 DIV SUM( 82 )
----
1152

skipif mysql # not compatible
query I rowsort label-7671
SELECT + + 24 * + + 48 - 51 / SUM ( 82 )
----
1152

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

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL + COUNT ( * ) + + 66 col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT ALL + 59 + - COALESCE ( 30, - + ( - COUNT( * ) ) * + 16 )
----
29

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL + 59 + - COALESCE ( 30, - + ( - COUNT ( * ) ) * + 16 )
----
29

query I rowsort
SELECT DISTINCT 25 + - 29 * ( + - 18 ) + 63 * 26
----
2185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7675
SELECT CAST( - - AVG ( DISTINCT 98 ) AS SIGNED ) col0
----
98

skipif mysql # not compatible
query I rowsort label-7675
SELECT CAST ( - - AVG ( DISTINCT 98 ) AS INTEGER ) col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT + MAX( DISTINCT - 13 ) + 67
----
54

skipif mysql # not compatible
query I rowsort label-7676
SELECT + MAX ( DISTINCT - 13 ) + 67
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT CAST( + 13 AS SIGNED ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7677
SELECT CAST ( + 13 AS INTEGER ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT + 60 + 12 - + COUNT( * ) * + 32
----
40

skipif mysql # not compatible
query I rowsort label-7678
SELECT + 60 + 12 - + COUNT ( * ) * + 32
----
40

query I rowsort
SELECT + 38 * - - 9 - + 35
----
307

query I rowsort
SELECT ALL + NULLIF ( + 76, + - ( - 15 ) - 78 * - ( + 52 / 2 ) )
----
76

query I rowsort
SELECT - ( 92 ) * + - 28
----
2576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7682
SELECT ALL 88 DIV 51 + + - 50 * - ( ( COUNT( * ) ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL 88 / 51 + + - 50 * - ( ( COUNT ( * ) ) ) AS col2
----
51

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7684
SELECT ALL - 63 DIV + + 2 + CAST( 12 AS SIGNED ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL - 63 / + + 2 + CAST ( 12 AS INTEGER ) AS col0
----
-19

query I rowsort
SELECT DISTINCT - 88 * - 26
----
2288

query I rowsort
SELECT ALL + 24 * - 11 AS col1
----
-264

query I rowsort
SELECT DISTINCT + ( - 68 ) col1
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7688
SELECT - MAX( DISTINCT + 30 ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-7688
SELECT - MAX ( DISTINCT + 30 ) / 82
----
0

query I rowsort
SELECT - 70 * + - 95 * - - 96
----
638400

query II rowsort
SELECT - 76 * + 68, - 51 AS col1
----
-5168
-51

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

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

query I rowsort
SELECT ALL + + NULLIF ( - 45, - + 98 )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7693
SELECT - CASE 70 WHEN AVG ( ALL 94 ) / + CAST( NULL AS SIGNED ) THEN 13 + 91 END * 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7693
SELECT - CASE 70 WHEN AVG ( ALL 94 ) / + CAST ( NULL AS INTEGER ) THEN 13 + 91 END * 31 AS col2
----
NULL

query I rowsort
SELECT - - 97 * - 62 * - 48 * + + ( - 89 )
----
-25691808

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT - 35 + MAX( DISTINCT + 60 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7695
SELECT - 35 + MAX ( DISTINCT + 60 ) AS col0
----
25

query I rowsort
SELECT - 44 * - + 67 AS col0
----
2948

onlyif mysql # aggregate syntax: 
query II rowsort label-7697
SELECT - + MIN( ALL + + 19 ), + 75 AS col0
----
-19
75

skipif mysql # not compatible
query II rowsort label-7697
SELECT - + MIN ( ALL + + 19 ), + 75 AS col0
----
-19
75

query II rowsort
SELECT DISTINCT + ( 46 ) AS col2, 33 AS col0
----
46
33

query I rowsort
SELECT ALL - CASE + 8 WHEN + 4 THEN + + 59 END AS col0
----
NULL

query I rowsort
SELECT + 71 - 28 AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7701
SELECT + 41 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-7701
SELECT + 41 / 61
----
0

query I rowsort
SELECT DISTINCT + 76 + - 68 * 44 + 50
----
-2866

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT ALL - CASE + - 10 WHEN + 31 + - 55 THEN NULL ELSE - 53 + + CAST( + 53 AS SIGNED ) END + + 14 col1
----
14

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL - CASE + - 10 WHEN + 31 + - 55 THEN NULL ELSE - 53 + + CAST ( + 53 AS INTEGER ) END + + 14 col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT DISTINCT - 1 + + 32 * - + 26 + + COUNT( * ) - 40 col0
----
-872

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT - 1 + + 32 * - + 26 + + COUNT ( * ) - 40 col0
----
-872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7705
SELECT DISTINCT 47 + NULLIF ( - 68, + CASE + 90 WHEN + 72 - + 77 * - 98 THEN - 74 + + COUNT( * ) * - CAST( 39 / 88 + 60 AS SIGNED ) ELSE 3 + + 41 END )
----
-21

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT 47 + NULLIF ( - 68, + CASE + 90 WHEN + 72 - + 77 * - 98 THEN - 74 + + COUNT ( * ) * - CAST ( 39 / 88 + 60 AS INTEGER ) ELSE 3 + + 41 END )
----
-21

query I rowsort
SELECT - 65 + - 59 AS col2
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7707
SELECT 49 - - NULLIF ( - COUNT( + CAST( NULL AS SIGNED ) ), - ( 38 ) * - 81 + + ( - COUNT( * ) ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7707
SELECT 49 - - NULLIF ( - COUNT ( + CAST ( NULL AS INTEGER ) ), - ( 38 ) * - 81 + + ( - COUNT ( * ) ) ) AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7708
SELECT ALL 84 DIV + ( + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL 84 / + ( + 71 )
----
1

query I rowsort
SELECT DISTINCT 43 + - 61 AS col1
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7710
SELECT DISTINCT 2 + 72 DIV COUNT( * ) DIV - 57
----
1

skipif mysql # not compatible
query I rowsort label-7710
SELECT DISTINCT 2 + 72 / COUNT ( * ) / - 57
----
1

query I rowsort
SELECT ALL 78 + + 65
----
143

query I rowsort
SELECT DISTINCT 96 * - 54
----
-5184

query I rowsort
SELECT DISTINCT - 46 + + + 79 * + + 96 * - 8
----
-60718

query I rowsort
SELECT 71 + - + 69 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL + 29 - - COUNT( * ) + + - 18 * 68 * - 34 + + 90 * 86
----
49386

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL + 29 - - COUNT ( * ) + + - 18 * 68 * - 34 + + 90 * 86
----
49386

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT 67 + MAX( + 36 ) + - + 15 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7716
SELECT 67 + MAX ( + 36 ) + - + 15 AS col2
----
88

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7718
SELECT ( 29 ) + - CAST( CAST( 34 AS SIGNED ) AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-7718
SELECT ( 29 ) + - CAST ( CAST ( 34 AS INTEGER ) AS INTEGER )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT MIN( + - 18 ) * - + 6 + 44 * 89 + 91 AS col2
----
4115

skipif mysql # not compatible
query I rowsort label-7719
SELECT MIN ( + - 18 ) * - + 6 + 44 * 89 + 91 AS col2
----
4115

onlyif mysql # DIV for integer division: 
query I rowsort label-7720
SELECT ALL 64 DIV + + 72 col0
----
0

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL 64 / + + 72 col0
----
0

query I rowsort
SELECT ( NULLIF ( + 15, - 71 ) ) * + - 28 + + ( 16 )
----
-404

query I rowsort
SELECT 66 * + + 73 * + 50 + - 69 AS col1
----
240831

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT 0 + - 55 + CASE - 15 WHEN + NULLIF ( - 3, 59 ) THEN 1 END - 64 * MAX( DISTINCT - 75 * 90 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT 0 + - 55 + CASE - 15 WHEN + NULLIF ( - 3, 59 ) THEN 1 END - 64 * MAX ( DISTINCT - 75 * 90 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7724
SELECT ALL 23 DIV + + 81
----
0

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL 23 / + + 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7725
SELECT 46 + CAST( - COALESCE ( + - MIN( ALL ( + ( + 91 ) ) ), + ( + 23 ) ) AS SIGNED )
----
137

skipif mysql # not compatible
query I rowsort label-7725
SELECT 46 + CAST ( - COALESCE ( + - MIN ( ALL ( + ( + 91 ) ) ), + ( + 23 ) ) AS INTEGER )
----
137

query I rowsort
SELECT ALL - - 6 col2
----
6

query I rowsort
SELECT ALL + 79 * + - 33 + + - 42
----
-2649

query I rowsort
SELECT 79 + + - 74
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT - 87 * 67 - + ( COUNT( * ) ) + CASE - 32 WHEN - CASE 62 WHEN 75 * - COUNT( * ) THEN + 75 ELSE 82 END THEN NULLIF ( - 70, - 66 + 58 ) END * + 21 - + 86 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT - 87 * 67 - + ( COUNT ( * ) ) + CASE - 32 WHEN - CASE 62 WHEN 75 * - COUNT ( * ) THEN + 75 ELSE 82 END THEN NULLIF ( - 70, - 66 + 58 ) END * + 21 - + 86 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7730
SELECT + 28 DIV + - 41 * - + COALESCE ( + + 83, 89 ) + 18
----
18

skipif mysql # not compatible
query I rowsort label-7730
SELECT + 28 / + - 41 * - + COALESCE ( + + 83, 89 ) + 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT + 0 * + - COUNT( + 19 ) + 95 * 65 AS col0
----
6175

skipif mysql # not compatible
query I rowsort label-7731
SELECT + 0 * + - COUNT ( + 19 ) + 95 * 65 AS col0
----
6175

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT + 12 * CASE + COALESCE ( + AVG ( + 3 ), - ( 11 ) / - COUNT( * ) + - 42 / - 7 ) WHEN - 2 THEN + 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT + 12 * CASE + COALESCE ( + AVG ( + 3 ), - ( 11 ) / - COUNT ( * ) + - 42 / - 7 ) WHEN - 2 THEN + 6 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT ALL + CASE - + 10 WHEN - 72 THEN - 11 / - COUNT( * ) * + 18 WHEN AVG ( DISTINCT - 6 ) THEN NULL ELSE NULL END + COALESCE ( NULLIF ( - COUNT( * ), - 3 ), - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL + CASE - + 10 WHEN - 72 THEN - 11 / - COUNT ( * ) * + 18 WHEN AVG ( DISTINCT - 6 ) THEN NULL ELSE NULL END + COALESCE ( NULLIF ( - COUNT ( * ), - 3 ), - 62 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7734
SELECT + 56 + 94 * + CAST( NULL AS DECIMAL ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT + 56 + 94 * + CAST ( NULL AS REAL ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 85 + - ( + 75 ) + 7
----
17

query I rowsort
SELECT DISTINCT 34 + + 34
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT - MIN( DISTINCT 12 ) * + + 19 AS col0
----
-228

skipif mysql # not compatible
query I rowsort label-7737
SELECT - MIN ( DISTINCT 12 ) * + + 19 AS col0
----
-228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7738
SELECT ALL + - NULLIF ( + 65, 36 ) + - CASE + 68 WHEN COALESCE ( - ( 72 ), - 42, 40 ) THEN NULL WHEN NULLIF ( 34, 1 * 0 ) + + NULLIF ( + 93, 71 - - COUNT( * ) / CAST( - 23 AS SIGNED ) ) THEN + 20 * ( 59 * - AVG ( ALL - COALESCE ( 13, - 83 * 50 + 46 ) ) ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + - NULLIF ( + 65, 36 ) + - CASE + 68 WHEN COALESCE ( - ( 72 ), - 42, 40 ) THEN NULL WHEN NULLIF ( 34, 1 * 0 ) + + NULLIF ( + 93, 71 - - COUNT ( * ) / CAST ( - 23 AS INTEGER ) ) THEN + 20 * ( 59 * - AVG ( ALL - COALESCE ( 13, - 83 * 50 + 46 ) ) ) ELSE NULL END col0
----
NULL

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

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

query I rowsort
SELECT - 96 + + + 13 AS col0
----
-83

query I rowsort
SELECT ALL 35 + - 12
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL - - 99 * + MIN( ALL ( + 3 ) ) AS col1
----
297

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL - - 99 * + MIN ( ALL ( + 3 ) ) AS col1
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7743
SELECT + COUNT( * ) + + ( + 7 ) DIV + + 8 * - ( + 30 ) - CAST( 66 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-7743
SELECT + COUNT ( * ) + + ( + 7 ) / + + 8 * - ( + 30 ) - CAST ( 66 AS INTEGER )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7744
SELECT NULLIF ( - + CAST( + 48 AS SIGNED ), - 31 ) + - - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-7744
SELECT NULLIF ( - + CAST ( + 48 AS INTEGER ), - 31 ) + - - COUNT ( * )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7745
SELECT DISTINCT + CAST( - - 49 AS SIGNED ) * 38 AS col0, 96 col1
----
1862
96

skipif mysql # not compatible
query II rowsort label-7745
SELECT DISTINCT + CAST ( - - 49 AS INTEGER ) * 38 AS col0, 96 col1
----
1862
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7746
SELECT - 63 * - ( 25 ) * COUNT( * ) + + 36 DIV + 76
----
1575

skipif mysql # not compatible
query I rowsort label-7746
SELECT - 63 * - ( 25 ) * COUNT ( * ) + + 36 / + 76
----
1575

query I rowsort
SELECT 64 + + 9 col1
----
73

query I rowsort
SELECT ALL + - 24 + 53 AS col2
----
29

query II rowsort
SELECT - 56 AS col2, 96 * + 43
----
-56
4128

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

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

query I rowsort
SELECT ALL - 41 + - 2 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT DISTINCT MAX( DISTINCT + - 57 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT MAX ( DISTINCT + - 57 ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT - 60 + + 92 + + 34 - + + 73 + - - 68 * COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT - 60 + + 92 + + 34 - + + 73 + - - 68 * COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT MAX( - 15 ) + - ( 94 ) - - COUNT( * ) * + 2 AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-7754
SELECT MAX ( - 15 ) + - ( 94 ) - - COUNT ( * ) * + 2 AS col1
----
-107

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT NULLIF ( + 76, 72 * 44 / - + 32 * - - 52 * SUM( ALL 33 * 60 ) + + 87 ) + + 96 * - 76
----
-7220

skipif mysql # not compatible
query I rowsort label-7756
SELECT NULLIF ( + 76, 72 * 44 / - + 32 * - - 52 * SUM ( ALL 33 * 60 ) + + 87 ) + + 96 * - 76
----
-7220

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

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

query II rowsort
SELECT + 32 col2, 37
----
32
37

query I rowsort
SELECT 34 * + - 32 + - + ( - 17 ) + + 50
----
-1021

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT MIN( - 95 ) * - - 41 + + 40
----
-3855

skipif mysql # not compatible
query I rowsort label-7760
SELECT MIN ( - 95 ) * - - 41 + + 40
----
-3855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7761
SELECT ALL COUNT( * ) * - NULLIF ( 9, + COUNT( * ) - - + 24 ) * - CAST( NULL AS SIGNED ) / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL COUNT ( * ) * - NULLIF ( 9, + COUNT ( * ) - - + 24 ) * - CAST ( NULL AS INTEGER ) / 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ALL - COALESCE ( - COUNT( DISTINCT 59 ), + SUM( + 21 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL - COALESCE ( - COUNT ( DISTINCT 59 ), + SUM ( + 21 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT COUNT( * ) * - 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-7763
SELECT COUNT ( * ) * - 27 AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7764
SELECT DISTINCT + 8 * CASE + + 44 WHEN + NULLIF ( + 39, + 66 ) / - 70 + - CAST( + 10 AS SIGNED ) / + ( 19 ) THEN - 20 * 10 END * - 68 - 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT + 8 * CASE + + 44 WHEN + NULLIF ( + 39, + 66 ) / - 70 + - CAST ( + 10 AS INTEGER ) / + ( 19 ) THEN - 20 * 10 END * - 68 - 64 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7765
SELECT ALL - COUNT( * ), 21 DIV CASE + CAST( NULL AS SIGNED ) WHEN + - 64 + - 4 + + 25 THEN NULL ELSE - ( 48 ) END * + CAST( 19 AS SIGNED ) AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-7765
SELECT ALL - COUNT ( * ), 21 / CASE + CAST ( NULL AS INTEGER ) WHEN + - 64 + - 4 + + 25 THEN NULL ELSE - ( 48 ) END * + CAST ( 19 AS INTEGER ) AS col2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT + + NULLIF ( + 2, + + NULLIF ( + SUM( - 27 ), + - 74 * COALESCE ( CASE - 15 WHEN 30 THEN NULL ELSE + COUNT( * ) END * - 93, 94 - - 53 * 42 ) ) - 81 / - 73 )
----
2

skipif mysql # not compatible
query I rowsort label-7766
SELECT + + NULLIF ( + 2, + + NULLIF ( + SUM ( - 27 ), + - 74 * COALESCE ( CASE - 15 WHEN 30 THEN NULL ELSE + COUNT ( * ) END * - 93, 94 - - 53 * 42 ) ) - 81 / - 73 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7767
SELECT CAST( - + 94 AS SIGNED ) + + 33 col1
----
-61

skipif mysql # not compatible
query I rowsort label-7767
SELECT CAST ( - + 94 AS INTEGER ) + + 33 col1
----
-61

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7769
SELECT 78 AS col2, + 55 DIV - 26
----
78
-2

skipif mysql # not compatible
query II rowsort label-7769
SELECT 78 AS col2, + 55 / - 26
----
78
-2

query II rowsort
SELECT + 94 AS col2, + 21 AS col1
----
94
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7771
SELECT + + 15, - 61 * - - COUNT( * ) - 55 + - - 69 + + 33 + + 93 * - 36 AS col1
----
15
-3362

skipif mysql # not compatible
query II rowsort label-7771
SELECT + + 15, - 61 * - - COUNT ( * ) - 55 + - - 69 + + 33 + + 93 * - 36 AS col1
----
15
-3362

query I rowsort
SELECT + 53 * 12
----
636

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7773
SELECT ALL COALESCE ( - - COUNT( * ), + + 70 DIV 20 + 71 * + 27 ) + + 82 * 85
----
6971

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL COALESCE ( - - COUNT ( * ), + + 70 / 20 + 71 * + 27 ) + + 82 * 85
----
6971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7774
SELECT ALL - 34 + - CAST( NULL AS SIGNED ) * - 73 * CAST( NULL AS DECIMAL ) + MIN( - ( 27 ) ) / 39
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - 34 + - CAST ( NULL AS INTEGER ) * - 73 * CAST ( NULL AS REAL ) + MIN ( - ( 27 ) ) / 39
----
NULL

query I rowsort
SELECT DISTINCT + 76 + 56 + + 96 + - 37 col2
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT ALL - 17 + - + 30 * - - COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL - 17 + - + 30 * - - COUNT ( * ) AS col1
----
-47

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

skipif mysql # not compatible
query I rowsort label-7777
SELECT - - COUNT ( * ) * - - 32
----
32

query I rowsort
SELECT ALL - ( - 51 ) + - + 95 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT + CASE - 35 WHEN + 61 THEN + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT + CASE - 35 WHEN + 61 THEN + COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - - 68 * + 74 + - 42
----
4990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7781
SELECT ALL + ( CAST( - + SUM( + CAST( NULL AS SIGNED ) ) AS SIGNED ) ) + - + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL + ( CAST ( - + SUM ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) + - + 28 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7782
SELECT + 56 * + + CASE - + COUNT( * ) WHEN + CAST( - - ( 18 ) AS DECIMAL ) + 20 THEN 43 + - 79 / COUNT( * ) WHEN - 64 THEN + 41 * COUNT( * ) + 45 * COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT + 56 * + + CASE - + COUNT ( * ) WHEN + CAST ( - - ( 18 ) AS REAL ) + 20 THEN 43 + - 79 / COUNT ( * ) WHEN - 64 THEN + 41 * COUNT ( * ) + 45 * COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( COALESCE ( 59, + 82 ), + 49 )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7784
SELECT ALL MAX( 51 ) AS col2, COALESCE ( 29, - + 88 + + - 18 ) + + 58 * - 52
----
51
-2987

skipif mysql # not compatible
query II rowsort label-7784
SELECT ALL MAX ( 51 ) AS col2, COALESCE ( 29, - + 88 + + - 18 ) + + 58 * - 52
----
51
-2987

query I rowsort
SELECT - 66 - + NULLIF ( + 89, + - 13 )
----
-155

query I rowsort
SELECT - ( + 95 ) * - - 89 * 68 AS col2
----
-574940

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

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL COALESCE ( + COUNT ( * ), + COUNT ( * ) )
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7789
SELECT - CAST( NULL AS SIGNED ) / + COUNT( * ) AS col2, + 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-7789
SELECT - CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col2, + 27
----
NULL
27

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL NULLIF ( - + 37, + - COUNT ( * ) )
----
-37

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7794
SELECT - 0 * - 48 - - 28 DIV 7 * + 36 + + 38 * - COALESCE ( + MIN( 17 ), - COUNT( ALL - ( 60 ) ) ) * 13
----
-8254

skipif mysql # not compatible
query I rowsort label-7794
SELECT - 0 * - 48 - - 28 / 7 * + 36 + + 38 * - COALESCE ( + MIN ( 17 ), - COUNT ( ALL - ( 60 ) ) ) * 13
----
-8254

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

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

query I rowsort
SELECT - 87 + + - 75 * - ( - 55 ) + - 61 * 77 AS col2
----
-8909

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT - 11 + + CASE + - 45 WHEN + COUNT( * ) - + 65 - - - 50 * + 85 * + AVG ( 11 / + ( 56 ) ) THEN + COUNT( * ) + 4 / - 66 END + AVG ( DISTINCT - 94 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT - 11 + + CASE + - 45 WHEN + COUNT ( * ) - + 65 - - - 50 * + 85 * + AVG ( 11 / + ( 56 ) ) THEN + COUNT ( * ) + 4 / - 66 END + AVG ( DISTINCT - 94 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT - 16 * + MIN( DISTINCT 43 ) + + + 32 + - - 19 + - COUNT( * )
----
-638

skipif mysql # not compatible
query I rowsort label-7798
SELECT - 16 * + MIN ( DISTINCT 43 ) + + + 32 + - - 19 + - COUNT ( * )
----
-638

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

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

query I rowsort
SELECT DISTINCT + 96 * + + 34 AS col0
----
3264

query I rowsort
SELECT ALL - 0 * + 96 + ( + 38 ) + + 82 + 33
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL + - 57 * - COUNT( * ) + + - 68 + 78 + - + 1 * 80 * - SUM( DISTINCT 19 )
----
1587

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL + - 57 * - COUNT ( * ) + + - 68 + 78 + - + 1 * 80 * - SUM ( DISTINCT 19 )
----
1587

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7804
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) + - NULLIF ( + COALESCE ( 13, + 46 * + 4, 33 * + 59 ), + 19 - + 65 * 38 ) + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) + - NULLIF ( + COALESCE ( 13, + 46 * + 4, 33 * + 59 ), + 19 - + 65 * 38 ) + 76 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7805
SELECT ALL + COUNT( ALL - + 11 ) * + CAST( NULL AS SIGNED ) + + ( 54 ) * - + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL + COUNT ( ALL - + 11 ) * + CAST ( NULL AS INTEGER ) + + ( 54 ) * - + 6 AS col1
----
NULL

query I rowsort
SELECT + + 66 + - + 85 + - 4
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7807
SELECT + + COALESCE ( - + 4, COUNT( * ) ) AS col1, + CAST( NULL AS SIGNED ) * 70 + COUNT( * ) AS col1
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-7807
SELECT + + COALESCE ( - + 4, COUNT ( * ) ) AS col1, + CAST ( NULL AS INTEGER ) * 70 + COUNT ( * ) AS col1
----
-4
NULL

query I rowsort
SELECT ALL + ( + NULLIF ( - 84, - - 62 * 95 + + 48 ) )
----
-84

query I rowsort
SELECT - + 97 * ( - - 97 )
----
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT + + SUM( 36 ) * SUM( ALL - + COALESCE ( + 72, - NULLIF ( + 65, 84 ) ) ) + ( + 36 ) * + MIN( ALL 42 * 73 + - 5 ) col2
----
107604

skipif mysql # not compatible
query I rowsort label-7810
SELECT + + SUM ( 36 ) * SUM ( ALL - + COALESCE ( + 72, - NULLIF ( + 65, 84 ) ) ) + ( + 36 ) * + MIN ( ALL 42 * 73 + - 5 ) col2
----
107604

query I rowsort
SELECT DISTINCT + + CASE + 6 WHEN + AVG ( - 87 ) * 89 THEN NULL WHEN - 79 + + 1 THEN NULL WHEN - 75 / 76 THEN + 33 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7812
SELECT + 14 + - COUNT ( * ) AS col1
----
13

query II rowsort
SELECT + 54 + + 85 AS col2, 60 AS col2
----
139
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT ALL + 20 * 55 * - - COUNT( * )
----
1100

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL + 20 * 55 * - - COUNT ( * )
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT + + COUNT( * ) * + + 36 - - - 95 + 42 * - 34 AS col1
----
-1487

skipif mysql # not compatible
query I rowsort label-7815
SELECT + + COUNT ( * ) * + + 36 - - - 95 + 42 * - 34 AS col1
----
-1487

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL 52 * - + 49 - COUNT( * ) AS col1
----
-2549

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL 52 * - + 49 - COUNT ( * ) AS col1
----
-2549

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT + 96 + MAX( - + 51 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7817
SELECT + 96 + MAX ( - + 51 ) AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7818
SELECT ALL 19 * - COUNT( * ) * - COUNT( * ), - 21 * + CASE - COUNT( * ) WHEN + 30 - 3 THEN CAST( + 85 AS SIGNED ) * MIN( 65 ) END AS col2
----
19
NULL

skipif mysql # not compatible
query II rowsort label-7818
SELECT ALL 19 * - COUNT ( * ) * - COUNT ( * ), - 21 * + CASE - COUNT ( * ) WHEN + 30 - 3 THEN CAST ( + 85 AS INTEGER ) * MIN ( 65 ) END AS col2
----
19
NULL

query I rowsort
SELECT + 77 * 0
----
0

query I rowsort
SELECT - 83 * - CASE - - 96 WHEN 12 - - 82 THEN - 3 * + 61 * 20 / 8 - 57 * - 41 WHEN 33 * 15 - - 17 THEN NULL END
----
NULL

query I rowsort
SELECT - 42 + 23 AS col1
----
-19

query I rowsort
SELECT ALL CASE + 66 WHEN - 26 + - - 87 + 71 THEN NULL ELSE + 2 + 91 END AS col2
----
93

query I rowsort
SELECT + ( - + 85 ) * - 5 AS col2
----
425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7824
SELECT ALL CASE CAST( + 9 AS SIGNED ) WHEN 96 * + COUNT( * ) * - - 74 * + 72 + - ( + 83 ) THEN NULL WHEN 0 + - 37 THEN NULL WHEN + 79 THEN COALESCE ( ( - 79 ), 3 * COUNT( * ) ) * - COUNT( ALL NULLIF ( ( 46 ), ( + 37 ) * - 18 + + 28 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL CASE CAST ( + 9 AS INTEGER ) WHEN 96 * + COUNT ( * ) * - - 74 * + 72 + - ( + 83 ) THEN NULL WHEN 0 + - 37 THEN NULL WHEN + 79 THEN COALESCE ( ( - 79 ), 3 * COUNT ( * ) ) * - COUNT ( ALL NULLIF ( ( 46 ), ( + 37 ) * - 18 + + 28 ) ) END AS col1
----
NULL

query I rowsort
SELECT + 47 + - - 22 * CASE - - 70 WHEN 14 + 74 THEN 50 END + - 85 - - 62 * + 15 * + 70 AS col1
----
NULL

query I rowsort
SELECT - 24 + - - CASE - + COALESCE ( + NULLIF ( + 60, + 14 + COALESCE ( - 23, + 65 * 99 ) ), 86 ) WHEN + 52 THEN NULL WHEN + 91 THEN + 14 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7827
SELECT DISTINCT CAST( - - 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT CAST ( - - 54 AS INTEGER )
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7828
SELECT ALL CAST( NULL AS DECIMAL ) AS col0, + 71 + - COUNT( * ) col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-7828
SELECT ALL CAST ( NULL AS REAL ) AS col0, + 71 + - COUNT ( * ) col0
----
NULL
70

query I rowsort
SELECT DISTINCT + NULLIF ( 71, - - 52 ) * - - 60 AS col2
----
4260

query II rowsort
SELECT 22 AS col2, 48
----
22
48

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7832
SELECT 47 DIV - - COUNT( * ) + + + 67 * - 12
----
-757

skipif mysql # not compatible
query I rowsort label-7832
SELECT 47 / - - COUNT ( * ) + + + 67 * - 12
----
-757

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT ALL - 42 + - MIN( DISTINCT + 20 ) * + ( + 17 ) col0
----
-382

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL - 42 + - MIN ( DISTINCT + 20 ) * + ( + 17 ) col0
----
-382

query I rowsort
SELECT + 8 * 67
----
536

query I rowsort
SELECT DISTINCT - - 34 + 81
----
115

query I rowsort
SELECT ALL - 98 * 54 col1
----
-5292

query II rowsort
SELECT DISTINCT - - 1, + 1
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7838
SELECT ALL - COALESCE ( + + 21, + 49 + + + 69, + MAX( ALL 6 ) + - ( - CASE 46 WHEN - 47 / + MIN( 76 * 48 ) + - 54 THEN - COUNT( * ) WHEN 27 * + 77 + 8 THEN + COUNT( * ) WHEN 49 THEN - CAST( 6 AS SIGNED ) END ) ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL - COALESCE ( + + 21, + 49 + + + 69, + MAX ( ALL 6 ) + - ( - CASE 46 WHEN - 47 / + MIN ( 76 * 48 ) + - 54 THEN - COUNT ( * ) WHEN 27 * + 77 + 8 THEN + COUNT ( * ) WHEN 49 THEN - CAST ( 6 AS INTEGER ) END ) ) col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT + CAST( 47 AS SIGNED ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7839
SELECT + CAST ( 47 AS INTEGER ) AS col2
----
47

query I rowsort
SELECT 93 * - - 55
----
5115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT ALL - + 92 - + ( - 41 ) * + - CAST( NULL AS SIGNED )
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7842
SELECT + - 70 AS col0, ( ( + 68 ) ) DIV - - NULLIF ( - 18, + 79 - 28 )
----
-70
-3

skipif mysql # not compatible
query II rowsort label-7842
SELECT + - 70 AS col0, ( ( + 68 ) ) / - - NULLIF ( - 18, + 79 - 28 )
----
-70
-3

query II rowsort
SELECT + + 57, 57 * - 67 AS col0
----
57
-3819

query I rowsort
SELECT 72 * 71 AS col1
----
5112

onlyif mysql # DIV for integer division: 
query I rowsort label-7845
SELECT ( - 20 ) DIV 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7845
SELECT ( - 20 ) / 30 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT ALL - - 0 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL - - 0 / 50
----
0

query I rowsort
SELECT ALL 91 * - + 60 AS col1
----
-5460

query I rowsort
SELECT DISTINCT + - 88 * - 43 AS col2
----
3784

query I rowsort
SELECT ALL 4 - + 56
----
-52

query III rowsort
SELECT ALL - 83 * 13 AS col1, NULLIF ( 88, - 29 ) AS col2, - + 28 + - 55 * - 60 AS col0
----
-1079
88
3272

query I rowsort
SELECT 96 * - - 87 * - ( + 7 ) AS col0
----
-58464

query I rowsort
SELECT 67 * 83 * 46 col0
----
255806

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT 70 + - + COUNT( * ) * - 50 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-7853
SELECT 70 + - + COUNT ( * ) * - 50 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT COALESCE ( 35, - COALESCE ( + 91, 60 + + 80 ) + - MIN( ALL + + 49 ), + 25 ) + 48 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7854
SELECT COALESCE ( 35, - COALESCE ( + 91, 60 + + 80 ) + - MIN ( ALL + + 49 ), + 25 ) + 48 AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7855
SELECT 86 DIV - - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7855
SELECT 86 / - - 90 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7856
SELECT 22 * + - 58, 22 + - + COUNT( * ) * + 27 AS col2
----
-1276
-5

skipif mysql # not compatible
query II rowsort label-7856
SELECT 22 * + - 58, 22 + - + COUNT ( * ) * + 27 AS col2
----
-1276
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7857
SELECT ALL 1 + - 97, - SUM( + + 9 ) DIV + 97 * + 44 - + 54 AS col1
----
-96
-54

skipif mysql # not compatible
query II rowsort label-7857
SELECT ALL 1 + - 97, - SUM ( + + 9 ) / + 97 * + 44 - + 54 AS col1
----
-96
-54

query I rowsort
SELECT ALL 18 * - 33
----
-594

query I rowsort
SELECT 12 * + 94
----
1128

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT ALL + 39 + - CASE - MIN( 18 ) WHEN + 99 THEN + 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL + 39 + - CASE - MIN ( 18 ) WHEN + 99 THEN + 34 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7861
SELECT 95 + COUNT( * ) * + + 25 + - 52 AS col1, ( + - 57 ) AS col1
----
68
-57

skipif mysql # not compatible
query II rowsort label-7861
SELECT 95 + COUNT ( * ) * + + 25 + - 52 AS col1, ( + - 57 ) AS col1
----
68
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT 2 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-7862
SELECT 2 / + 74
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7864
SELECT ALL CAST( + - 88 AS SIGNED ) * + + 96
----
-8448

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL CAST ( + - 88 AS INTEGER ) * + + 96
----
-8448

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT DISTINCT COUNT( * ) + - 9
----
-8

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT COUNT ( * ) + - 9
----
-8

query I rowsort
SELECT 50 + - 75
----
-25

query I rowsort
SELECT DISTINCT 62 + - 20 AS col1
----
42

query I rowsort
SELECT ALL - 2 * + 7
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7869
SELECT DISTINCT - - COUNT( * ) + + - 93 + COUNT( ALL 92 ) AS col1, 9 * 64 + 11 * - CASE 9 WHEN + 99 THEN 21 + 14 END / NULLIF ( - 84 * + ( 14 ), ( MIN( ALL + 4 ) ) * - 8 ) AS col2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-7869
SELECT DISTINCT - - COUNT ( * ) + + - 93 + COUNT ( ALL 92 ) AS col1, 9 * 64 + 11 * - CASE 9 WHEN + 99 THEN 21 + 14 END / NULLIF ( - 84 * + ( 14 ), ( MIN ( ALL + 4 ) ) * - 8 ) AS col2
----
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT ALL CASE - ( + COUNT( * ) ) WHEN - 89 * - 41 * + - 76 + ( - ( - 52 ) ) - ( + 88 + - 18 * MIN( DISTINCT - 49 * + 98 ) ) THEN 94 WHEN + 90 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL CASE - ( + COUNT ( * ) ) WHEN - 89 * - 41 * + - 76 + ( - ( - 52 ) ) - ( + 88 + - 18 * MIN ( DISTINCT - 49 * + 98 ) ) THEN 94 WHEN + 90 THEN NULL ELSE NULL END
----
NULL

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

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

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

query I rowsort
SELECT 48 + 35 * + - 19 AS col0
----
-617

query I rowsort
SELECT ALL - 86 * + - 50 * CASE WHEN NOT NULL BETWEEN + AVG ( + 54 ) AND - 73 THEN + ( + - 7 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7875
SELECT + 82 * + 18 + - + CAST( COUNT( * ) AS SIGNED ) * + 94
----
1382

skipif mysql # not compatible
query I rowsort label-7875
SELECT + 82 * + 18 + - + CAST ( COUNT ( * ) AS INTEGER ) * + 94
----
1382

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT + NULLIF ( - 46, - COUNT( * ) * 93 * + - 20 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-7877
SELECT + NULLIF ( - 46, - COUNT ( * ) * 93 * + - 20 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL + COUNT( * ) * - - MIN( - + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL + COUNT ( * ) * - - MIN ( - + 43 )
----
-43

query II rowsort
SELECT 18 + - + 38 AS col0, + 21 * - + 76 AS col2
----
-20
-1596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7880
SELECT DISTINCT - 92 * + 88 + - COUNT( * ) DIV + NULLIF ( - 53, + + 0 ) - 53
----
-8149

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT - 92 * + 88 + - COUNT ( * ) / + NULLIF ( - 53, + + 0 ) - 53
----
-8149

onlyif mysql # DIV for integer division: 
query I rowsort label-7881
SELECT ALL 2 DIV + ( ( + 81 ) ) * - - 15 - + 41
----
-41

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL 2 / + ( ( + 81 ) ) * - - 15 - + 41
----
-41

query I rowsort
SELECT + 72 + 44 * - 84 AS col1
----
-3624

query I rowsort
SELECT 77 * - + 65 AS col2
----
-5005

query I rowsort
SELECT 80 * 75 AS col2
----
6000

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT COUNT( * ) + - 4 col0
----
-3

skipif mysql # not compatible
query I rowsort label-7885
SELECT COUNT ( * ) + - 4 col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7886
SELECT COUNT( * ) DIV - + 36 col1
----
0

skipif mysql # not compatible
query I rowsort label-7886
SELECT COUNT ( * ) / - + 36 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7887
SELECT ALL - 52 + 64 DIV 11 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL - 52 + 64 / 11 AS col0
----
-47

query II rowsort
SELECT - 15 AS col2, + 76 * - - 57 * - + 23
----
-15
-99636

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT DISTINCT + COUNT( * ) + - 22 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT + COUNT ( * ) + - 22 AS col2
----
-21

query I rowsort
SELECT 5 * - 49 AS col1
----
-245

query II rowsort
SELECT 15 * + + 53 * - 46 AS col0, 94 * + 10 * + 48 AS col1
----
-36570
45120

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT DISTINCT 12 + + - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT 12 + + - COUNT ( * )
----
11

query I rowsort
SELECT - 47 * - 23 col2
----
1081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT + 53 + - CAST( - - 57 AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7894
SELECT + 53 + - CAST ( - - 57 AS INTEGER ) AS col0
----
-4

query I rowsort
SELECT - CASE - 51 WHEN 3 THEN 48 + + + 95 ELSE 32 END
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7896
SELECT + 58 + 30 + - + 79 DIV + MIN( - 29 ) + - 53
----
37

skipif mysql # not compatible
query I rowsort label-7896
SELECT + 58 + 30 + - + 79 / + MIN ( - 29 ) + - 53
----
37

query I rowsort
SELECT + 17 * + 33
----
561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7898
SELECT ALL COALESCE ( - CASE + - COUNT( * ) WHEN - - 77 / + NULLIF ( - - COUNT( ALL + ( - + 22 ) ), + 39 ) * 8 + 89 * + CAST( NULL AS SIGNED ) THEN 41 WHEN + ( - 90 ) * + 23 THEN NULL ELSE NULL END, - 33 * 15 ) AS col0
----
-495

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL COALESCE ( - CASE + - COUNT ( * ) WHEN - - 77 / + NULLIF ( - - COUNT ( ALL + ( - + 22 ) ), + 39 ) * 8 + 89 * + CAST ( NULL AS INTEGER ) THEN 41 WHEN + ( - 90 ) * + 23 THEN NULL ELSE NULL END, - 33 * 15 ) AS col0
----
-495

query I rowsort
SELECT DISTINCT COALESCE ( + 80, 16 + - COALESCE ( + 28, - 83 ) + 48 ) AS col1
----
80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT + CAST( NULL AS SIGNED ) * + 95 * 4 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT + CAST ( NULL AS INTEGER ) * + 95 * 4 col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7903
SELECT DISTINCT - NULLIF ( + 3, + 2 + + - 83 * + - NULLIF ( + 59, - 56 / + - 23 * - CAST( - 93 AS SIGNED ) ) ) * - 55
----
165

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT - NULLIF ( + 3, + 2 + + - 83 * + - NULLIF ( + 59, - 56 / + - 23 * - CAST ( - 93 AS INTEGER ) ) ) * - 55
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT + - NULLIF ( COALESCE ( + COUNT( * ), + COUNT( * ) * 50 * - - 5 ), 59 * + 89 ) * 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7904
SELECT + - NULLIF ( COALESCE ( + COUNT ( * ), + COUNT ( * ) * 50 * - - 5 ), 59 * + 89 ) * 24 AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7905
SELECT + 34 * - - ( NULLIF ( + NULLIF ( + SUM( + 83 ), + + MIN( DISTINCT - ( - 23 ) ) * - 86 * + 58 ), 5 * - 61 ) ) DIV COUNT( * ) + + 2 * MIN( 92 )
----
3006

skipif mysql # not compatible
query I rowsort label-7905
SELECT + 34 * - - ( NULLIF ( + NULLIF ( + SUM ( + 83 ), + + MIN ( DISTINCT - ( - 23 ) ) * - 86 * + 58 ), 5 * - 61 ) ) / COUNT ( * ) + + 2 * MIN ( 92 )
----
3006

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT + CASE - 38 WHEN 76 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN 18 THEN 74 - 62 - - 11 END / + + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT + CASE - 38 WHEN 76 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN 18 THEN 74 - 62 - - 11 END / + + 84 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7907
SELECT + 46 DIV - 21 + + CAST( - 64 AS SIGNED ) * + 49 * - - 71
----
-222658

skipif mysql # not compatible
query I rowsort label-7907
SELECT + 46 / - 21 + + CAST ( - 64 AS INTEGER ) * + 49 * - - 71
----
-222658

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT + - 60 DIV - 78 * - 38 + + 28
----
28

skipif mysql # not compatible
query I rowsort label-7908
SELECT + - 60 / - 78 * - 38 + + 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT DISTINCT - 96 * - 16 + - + COUNT( * ) - - - COUNT( * ) * - - 38 * + 50
----
-365

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT - 96 * - 16 + - + COUNT ( * ) - - - COUNT ( * ) * - - 38 * + 50
----
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT DISTINCT - + COUNT( * ) * + ( 18 ) + - 52
----
-70

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT - + COUNT ( * ) * + ( 18 ) + - 52
----
-70

query II rowsort
SELECT ALL + + 30, 71 AS col0
----
30
71

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

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

query I rowsort
SELECT + ( + 99 ) col1
----
99

query I rowsort
SELECT - ( - 46 ) - + 44
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT DISTINCT 72 * 60 + - COUNT( * ) * + - 35 * + CASE - 7 WHEN - 72 THEN NULL WHEN 62 * + 15 * + SUM( DISTINCT + 48 ) / SUM( + 18 ) + - COUNT( * ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 7 END * 46
----
-6950

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT 72 * 60 + - COUNT ( * ) * + - 35 * + CASE - 7 WHEN - 72 THEN NULL WHEN 62 * + 15 * + SUM ( DISTINCT + 48 ) / SUM ( + 18 ) + - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 7 END * 46
----
-6950

query I rowsort
SELECT - 83 * - + 82 * - + 21
----
-142926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7918
SELECT ALL + 67 * - - COUNT( * ) * + + CAST( NULL AS SIGNED ) + - 24 col2, 56 * + - COUNT( * ) * 2
----
NULL
-112

skipif mysql # not compatible
query II rowsort label-7918
SELECT ALL + 67 * - - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - 24 col2, 56 * + - COUNT ( * ) * 2
----
NULL
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 9 * - - 34 / - 36 + + 97 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 9 * - - 34 / - 36 + + 97 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT ALL COALESCE ( + 23, + + COUNT( * ) * + 47 )
----
23

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL COALESCE ( + 23, + + COUNT ( * ) * + 47 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7921
SELECT DISTINCT CASE ( + 84 ) WHEN + - CAST( NULL AS SIGNED ) * + COUNT( * ) * + ( - - 2 ) THEN 36 WHEN COUNT( * ) * - + MIN( + CASE - 94 WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN 89 / - 40 THEN 25 END ) + + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT CASE ( + 84 ) WHEN + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + ( - - 2 ) THEN 36 WHEN COUNT ( * ) * - + MIN ( + CASE - 94 WHEN CAST ( NULL AS REAL ) THEN NULL WHEN 89 / - 40 THEN 25 END ) + + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query III rowsort
SELECT - 82, 31 AS col2, - ( + 83 ) AS col1
----
-82
31
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT DISTINCT + ( + COUNT( * ) ) + - 84
----
-83

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT + ( + COUNT ( * ) ) + - 84
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL - COUNT( * ) + - 45 + 99 - 14 * COUNT( * ) + + 35 * - - 89 + - 48 + - - COUNT( * ) AS col2
----
3107

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL - COUNT ( * ) + - 45 + 99 - 14 * COUNT ( * ) + + 35 * - - 89 + - 48 + - - COUNT ( * ) AS col2
----
3107

query I rowsort
SELECT - 17 + 2 AS col1
----
-15

query I rowsort
SELECT ALL + 49 * + 62 AS col2
----
3038

query II rowsort
SELECT 30 AS col0, + 47 + + 73 + + ( - 41 )
----
30
79

query I rowsort
SELECT ALL 5 * + + 47
----
235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT ALL - ( CAST( + - 93 AS SIGNED ) ) - + ( ( + 74 ) )
----
19

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL - ( CAST ( + - 93 AS INTEGER ) ) - + ( ( + 74 ) )
----
19

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT - + 30 + - AVG ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT - + 30 + - AVG ( - + CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7933
SELECT ALL + COUNT( * ) * + - 16 - + COALESCE ( + 48, - + 80 DIV + ( ( + MAX( 21 ) ) ), - 93 ) + 13 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL + COUNT ( * ) * + - 16 - + COALESCE ( + 48, - + 80 / + ( ( + MAX ( 21 ) ) ), - 93 ) + 13 AS col1
----
-51

query I rowsort
SELECT + - 50 + - 31 AS col0
----
-81

query II rowsort
SELECT - + 32 AS col2, 55 * - + 19 - - 57 AS col1
----
-32
-988

query II rowsort
SELECT + 81 AS col2, - 10 * - - 28 + - 29 AS col1
----
81
-309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7937
SELECT ALL 12 - 79 col1, CASE - COALESCE ( + - CAST( NULL AS SIGNED ), + 87 ) WHEN - 98 THEN NULL ELSE - MIN( ALL + - CAST( NULL AS SIGNED ) ) + + + 62 END + + 62 col0
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-7937
SELECT ALL 12 - 79 col1, CASE - COALESCE ( + - CAST ( NULL AS INTEGER ), + 87 ) WHEN - 98 THEN NULL ELSE - MIN ( ALL + - CAST ( NULL AS INTEGER ) ) + + + 62 END + + 62 col0
----
-67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT - 82 * - 71 - - - COALESCE ( + 15, - 61 - - - COUNT( * ) ) * 51 AS col1
----
5057

skipif mysql # not compatible
query I rowsort label-7938
SELECT - 82 * - 71 - - - COALESCE ( + 15, - 61 - - - COUNT ( * ) ) * 51 AS col1
----
5057

query I rowsort
SELECT + 51 * - 68
----
-3468

query I rowsort
SELECT - + 47 - - 27 + + 20 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7941
SELECT ALL - 3 * 6 + + - 78 DIV - - 81 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - 3 * 6 + + - 78 / - - 81 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT + + 98 * MIN( ALL + 94 ) AS col0
----
9212

skipif mysql # not compatible
query I rowsort label-7942
SELECT + + 98 * MIN ( ALL + 94 ) AS col0
----
9212

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT COUNT( * ) * + 24 - - 42 col1
----
66

skipif mysql # not compatible
query I rowsort label-7943
SELECT COUNT ( * ) * + 24 - - 42 col1
----
66

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

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

query I rowsort
SELECT ALL + 43 * 53
----
2279

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT - ( + 87 ) + - + 24 + - NULLIF ( - CASE - 58 WHEN - COUNT( * ) / + 37 THEN + 99 - - 44 END, + ( + 77 ) ) * 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT - ( + 87 ) + - + 24 + - NULLIF ( - CASE - 58 WHEN - COUNT ( * ) / + 37 THEN + 99 - - 44 END, + ( + 77 ) ) * 34 AS col0
----
NULL

query I rowsort
SELECT + 54 * - 89
----
-4806

query I rowsort
SELECT 62 * 53 + + 57 AS col1
----
3343

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT ALL - 53 DIV 79 + - 75 DIV 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL - 53 / 79 + - 75 / 82 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7950
SELECT CASE + - 96 WHEN + + COUNT( * ) * - CAST( NULL AS SIGNED ) + + 25 * + + 40 THEN + COUNT( * ) WHEN - 40 THEN NULL ELSE - ( - 5 ) + + 23 END
----
28

skipif mysql # not compatible
query I rowsort label-7950
SELECT CASE + - 96 WHEN + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 25 * + + 40 THEN + COUNT ( * ) WHEN - 40 THEN NULL ELSE - ( - 5 ) + + 23 END
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7951
SELECT ALL 68 DIV + - 32 + - COUNT( * ) DIV COUNT( * ) * CAST( + + 83 AS SIGNED ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL 68 / + - 32 + - COUNT ( * ) / COUNT ( * ) * CAST ( + + 83 AS INTEGER ) AS col2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7952
SELECT + CAST( - 54 AS SIGNED ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7952
SELECT + CAST ( - 54 AS INTEGER ) AS col2
----
-54

query I rowsort
SELECT + 83 + 46 + - 69 + 27
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7954
SELECT ALL + COALESCE ( + ( 79 ), + 38 + SUM( + - 4 ) + + 38 ) DIV + 43 + + - MAX( + 73 ) + 24 * + + 68 - 2
----
1558

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL + COALESCE ( + ( 79 ), + 38 + SUM ( + - 4 ) + + 38 ) / + 43 + + - MAX ( + 73 ) + 24 * + + 68 - 2
----
1558

query II rowsort
SELECT ( - 91 ) AS col0, - 26 + - 73
----
-91
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7956
SELECT - SUM( ( + 22 ) ) * ( COUNT( ALL - 73 ) ) * - - NULLIF ( - AVG ( ALL 36 ), + + 54 + - 58 ) + + + 49 - - 27 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT - SUM ( ( + 22 ) ) * ( COUNT ( ALL - 73 ) ) * - - NULLIF ( - AVG ( ALL 36 ), + + 54 + - 58 ) + + + 49 - - 27 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT - COUNT( * ) * + - 3 + - 11 * + 20 + 28
----
-189

skipif mysql # not compatible
query I rowsort label-7957
SELECT - COUNT ( * ) * + - 3 + - 11 * + 20 + 28
----
-189

query I rowsort
SELECT 50 + + 52 + 46 * + 22 col0
----
1114

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ALL + MAX( - - 54 ) - + 47 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL + MAX ( - - 54 ) - + 47 AS col1
----
7

query II rowsort
SELECT ( - - 25 ) * + 9 * 15 + + 95 col0, + 54 * - + 71
----
3470
-3834

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT ALL ( - 69 ) - - ( COUNT( * ) ) + - 5 * 11 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL ( - 69 ) - - ( COUNT ( * ) ) + - 5 * 11 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT 46 * 96 * - COUNT( * )
----
-4416

skipif mysql # not compatible
query I rowsort label-7962
SELECT 46 * 96 * - COUNT ( * )
----
-4416

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT ALL - 90 - 54 DIV + + 51 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL - 90 - 54 / + + 51 AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7964
SELECT COUNT( * ) + - 3 / 66 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT COUNT ( * ) + - 3 / 66 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7965
SELECT - MIN( DISTINCT 27 ) DIV - + 17
----
1

skipif mysql # not compatible
query I rowsort label-7965
SELECT - MIN ( DISTINCT 27 ) / - + 17
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT 54 * ( + COUNT( ALL ( - 2 ) ) ) * + 80 * - - 1 + + 43
----
4363

skipif mysql # not compatible
query I rowsort label-7966
SELECT 54 * ( + COUNT ( ALL ( - 2 ) ) ) * + 80 * - - 1 + + 43
----
4363

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT DISTINCT - COALESCE ( - ( - 87 ), - SUM( DISTINCT - 99 ), 65 ) col0
----
-87

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT - COALESCE ( - ( - 87 ), - SUM ( DISTINCT - 99 ), 65 ) col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7968
SELECT - COUNT( ALL ( - 56 ) ) DIV + - COUNT( * ) + + + 70 - + COUNT( * ) + + - CAST( + + 80 AS SIGNED ) DIV - + 85 * + - COUNT( * ) * + MIN( - + 88 )
----
70

skipif mysql # not compatible
query I rowsort label-7968
SELECT - COUNT ( ALL ( - 56 ) ) / + - COUNT ( * ) + + + 70 - + COUNT ( * ) + + - CAST ( + + 80 AS INTEGER ) / - + 85 * + - COUNT ( * ) * + MIN ( - + 88 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7969
SELECT + CAST( NULL AS DECIMAL ) * + COUNT( * ) * + 55 * MAX( + CAST( NULL AS SIGNED ) ) AS col2, + 7 * - 58
----
NULL
-406

skipif mysql # not compatible
query II rowsort label-7969
SELECT + CAST ( NULL AS REAL ) * + COUNT ( * ) * + 55 * MAX ( + CAST ( NULL AS INTEGER ) ) AS col2, + 7 * - 58
----
NULL
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT + 75 + CASE + CASE - 16 WHEN + + 45 THEN 85 END WHEN - COALESCE ( + - 40, 99 + - 98, - 21, 0 ) * 47 - + ( - 51 ) THEN 22 WHEN - COUNT( * ) THEN 86 END * + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7970
SELECT + 75 + CASE + CASE - 16 WHEN + + 45 THEN 85 END WHEN - COALESCE ( + - 40, 99 + - 98, - 21, 0 ) * 47 - + ( - 51 ) THEN 22 WHEN - COUNT ( * ) THEN 86 END * + 81 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7971
SELECT 93 - - + CAST( NULL AS SIGNED ) + - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7971
SELECT 93 - - + CAST ( NULL AS INTEGER ) + - - 72
----
NULL

query I rowsort
SELECT ALL + 7 * - 6 + + + 25 + - 71 AS col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT ALL CAST( - 20 AS SIGNED ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL CAST ( - 20 AS INTEGER ) AS col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-7974
SELECT + 2 DIV - 26 + - 96
----
-96

skipif mysql # not compatible
query I rowsort label-7974
SELECT + 2 / - 26 + - 96
----
-96

query I rowsort
SELECT + 16 * + - NULLIF ( - 96, + 71 * + 90 + + + 50 * + - ( + + ( - - 82 ) ) )
----
1536

query I rowsort
SELECT - NULLIF ( - 15, - - 60 * - 79 ) + + NULLIF ( + 12, 39 ) col0
----
27

query I rowsort
SELECT - + 49 col0
----
-49

query II rowsort
SELECT 93 + + + 47 AS col2, 71 * + - 0
----
140
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT - CAST( 1 AS SIGNED ) * 38
----
-38

skipif mysql # not compatible
query I rowsort label-7979
SELECT - CAST ( 1 AS INTEGER ) * 38
----
-38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT DISTINCT + - COUNT( * ) + + - 8
----
-9

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT + - COUNT ( * ) + + - 8
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7982
SELECT ALL - COUNT( * ) / + COALESCE ( - MIN( - 15 ), - 26 ) * - SUM( DISTINCT CAST( NULL AS SIGNED ) ), 78 + - + NULLIF ( - + 45, + + 52 / + 97 + + 16 * 82 ) AS col0
----
NULL
123

skipif mysql # not compatible
query II rowsort label-7982
SELECT ALL - COUNT ( * ) / + COALESCE ( - MIN ( - 15 ), - 26 ) * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ), 78 + - + NULLIF ( - + 45, + + 52 / + 97 + + 16 * 82 ) AS col0
----
NULL
123

query I rowsort
SELECT 6 * 27
----
162

query I rowsort
SELECT ALL - 20 + + - 46
----
-66

query II rowsort
SELECT + 55, 91 AS col2
----
55
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ALL CASE 34 WHEN + 77 * - COUNT( * ) * 61 + - + CASE 5 WHEN - 39 THEN - MAX( ALL + + 74 ) ELSE NULL END THEN + 89 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL CASE 34 WHEN + 77 * - COUNT ( * ) * 61 + - + CASE 5 WHEN - 39 THEN - MAX ( ALL + + 74 ) ELSE NULL END THEN + 89 END + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 54 * + 14 * 67
----
50652

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7988
SELECT 96 / + + 16 / CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT 96 / + + 16 / CAST ( NULL AS REAL ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - ( + 90 ) col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT DISTINCT - MAX( + NULLIF ( 96, + - 1 * - 31 ) ) * 12
----
-1152

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT - MAX ( + NULLIF ( 96, + - 1 * - 31 ) ) * 12
----
-1152

query I rowsort
SELECT 46 * - 37 AS col2
----
-1702

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT DISTINCT 23 DIV 15
----
1

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT 23 / 15
----
1

query I rowsort
SELECT ALL 82 - - 81 AS col1
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7995
SELECT CAST( + COUNT( * ) AS SIGNED ) * 2 * - 80 + + - COUNT( * ) AS col1
----
-161

skipif mysql # not compatible
query I rowsort label-7995
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * 2 * - 80 + + - COUNT ( * ) AS col1
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT 30 + - SUM( ALL - 12 ) * - - 36 * - 14
----
-6018

skipif mysql # not compatible
query I rowsort label-7996
SELECT 30 + - SUM ( ALL - 12 ) * - - 36 * - 14
----
-6018

onlyif mysql # aggregate syntax: 
query II rowsort label-7997
SELECT SUM( ALL 72 ) - - 84, 66 * + 1 + - 86 AS col1
----
156
-20

skipif mysql # not compatible
query II rowsort label-7997
SELECT SUM ( ALL 72 ) - - 84, 66 * + 1 + - 86 AS col1
----
156
-20

query II rowsort
SELECT - 25 * + 86 + - - 27 AS col0, + 79
----
-2123
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT 75 - + - CAST( + + 59 AS SIGNED ) * 57 + + 68
----
3506

skipif mysql # not compatible
query I rowsort label-7999
SELECT 75 - + - CAST ( + + 59 AS INTEGER ) * 57 + + 68
----
3506

query I rowsort
SELECT + 6 * - + 39
----
-234

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

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

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

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

query I rowsort
SELECT 7 + + 33 * + 53 + - - 69 * 42
----
4654

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT + COUNT( * ) * + 26 * - 93
----
-2418

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT + COUNT ( * ) * + 26 * - 93
----
-2418

query I rowsort
SELECT ALL 69 + - 29 AS col2
----
40

query II rowsort
SELECT + 9 * - + 82 * + - 75 * + + 2 AS col0, - 3 col2
----
110700
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8007
SELECT COALESCE ( - - 24, + 32 DIV 54, + 80 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8007
SELECT COALESCE ( - - 24, + 32 / 54, + 80 ) AS col0
----
24

query I rowsort
SELECT ALL + 84 + + 45 AS col0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), CASE WHEN NOT ( 54 IS NULL ) THEN 37 WHEN NOT + 78 + + 62 IS NULL THEN 30 END + - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), CASE WHEN NOT ( 54 IS NULL ) THEN 37 WHEN NOT + 78 + + 62 IS NULL THEN 30 END + - 64 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8011
SELECT COUNT( * ) DIV 28
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8012
SELECT + ( - 52 ) - + + CAST( - + 81 AS SIGNED ) + - - 93 + COUNT( * ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-8012
SELECT + ( - 52 ) - + + CAST ( - + 81 AS INTEGER ) + - - 93 + COUNT ( * ) AS col0
----
123

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

query I rowsort
SELECT - 89 - - 17
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ALL MAX( - 43 ) + 18 + - NULLIF ( - - 56, 8 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL MAX ( - 43 ) + 18 + - NULLIF ( - - 56, 8 ) AS col1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8016
SELECT 87 DIV + 79
----
1

skipif mysql # not compatible
query I rowsort label-8016
SELECT 87 / + 79
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT DISTINCT - NULLIF ( COUNT( * ), 38 ) * + - 76
----
76

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT - NULLIF ( COUNT ( * ), 38 ) * + - 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT NULLIF ( - + COUNT( * ), - + COUNT( * ) * - 33 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8019
SELECT NULLIF ( - + COUNT ( * ), - + COUNT ( * ) * - 33 ) col1
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8021
SELECT 25 DIV + - 72 - + 2
----
-2

skipif mysql # not compatible
query I rowsort label-8021
SELECT 25 / + - 72 - + 2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8022
SELECT - 66 * + + COUNT( * ) AS col2, 56 + - + 38 * + 93 - + + 65 * + 42 AS col1
----
-66
-6208

skipif mysql # not compatible
query II rowsort label-8022
SELECT - 66 * + + COUNT ( * ) AS col2, 56 + - + 38 * + 93 - + + 65 * + 42 AS col1
----
-66
-6208

query I rowsort
SELECT CASE - 92 WHEN - 8 THEN NULL ELSE + - 74 + ( + 35 ) END AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT - MAX( ALL - - 41 ) * + 16 * - + 88 + - + 94 + - - 8 AS col0
----
57642

skipif mysql # not compatible
query I rowsort label-8024
SELECT - MAX ( ALL - - 41 ) * + 16 * - + 88 + - + 94 + - - 8 AS col0
----
57642

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8028
SELECT ALL 82 * + 89, - 87 + 97 * 73 * - COUNT( * ) AS col1
----
7298
-7168

skipif mysql # not compatible
query II rowsort label-8028
SELECT ALL 82 * + 89, - 87 + 97 * 73 * - COUNT ( * ) AS col1
----
7298
-7168

query I rowsort
SELECT DISTINCT - 45 * 27 AS col2
----
-1215

query I rowsort
SELECT - 34 * 74 col2
----
-2516

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT SUM( + 34 ) * - - 0 + - MIN( + 10 ) + 61 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-8031
SELECT SUM ( + 34 ) * - - 0 + - MIN ( + 10 ) + 61 AS col2
----
51

query I rowsort
SELECT ALL 46 * + 90 * + 68
----
281520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8033
SELECT - 52 DIV + - COUNT( DISTINCT + 37 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8033
SELECT - 52 / + - COUNT ( DISTINCT + 37 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT + MIN( - + 5 ) * + 85 + + 22 AS col1
----
-403

skipif mysql # not compatible
query I rowsort label-8034
SELECT + MIN ( - + 5 ) * + 85 + + 22 AS col1
----
-403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8035
SELECT + CAST( NULL AS SIGNED ) + 6 * 86 * - - 12 * + SUM( DISTINCT - 24 ) * 48 * 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT + CAST ( NULL AS INTEGER ) + 6 * 86 * - - 12 * + SUM ( DISTINCT - 24 ) * 48 * 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT + MIN( + 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8036
SELECT + MIN ( + 42 ) AS col2
----
42

query I rowsort
SELECT ALL - ( 56 ) + + 79 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL + 71 * COUNT( * ) * 61
----
4331

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + 71 * COUNT ( * ) * 61
----
4331

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT + + NULLIF ( + COUNT( * ), 50 ) * - 29 + + + CASE + + 56 WHEN - + NULLIF ( + 85, + COUNT( DISTINCT - 71 ) * + - 23 - 31 + - 75 / + 48 ) THEN NULL WHEN + 69 / 57 + 95 * 32 THEN - 0 ELSE + 58 END AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8039
SELECT + + NULLIF ( + COUNT ( * ), 50 ) * - 29 + + + CASE + + 56 WHEN - + NULLIF ( + 85, + COUNT ( DISTINCT - 71 ) * + - 23 - 31 + - 75 / + 48 ) THEN NULL WHEN + 69 / 57 + 95 * 32 THEN - 0 ELSE + 58 END AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8040
SELECT DISTINCT + COALESCE ( 61, - + 87 + - 71 - - - CAST( CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ), 14 ) + - 90 col0
----
-29

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT + COALESCE ( 61, - + 87 + - 71 - - - CAST ( CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ), 14 ) + - 90 col0
----
-29

query I rowsort
SELECT + 71 * + + 30 AS col1
----
2130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8042
SELECT ALL - 80 + + CAST( 79 AS SIGNED ) DIV + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL - 80 + + CAST ( 79 AS INTEGER ) / + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8043
SELECT ALL 14 + - - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL 14 + - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
13

query I rowsort
SELECT + 28 - - 77 AS col2
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-8045
SELECT - + MAX( + + 48 ), + 79 AS col0
----
-48
79

skipif mysql # not compatible
query II rowsort label-8045
SELECT - + MAX ( + + 48 ), + 79 AS col0
----
-48
79

query II rowsort
SELECT + + 19 + + 65 * 45 * + 68 AS col0, 11 AS col2
----
198919
11

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8048
SELECT ALL COALESCE ( - + ( COUNT( * ) ), 90 ) * + - CAST( COUNT( * ) AS SIGNED ) + CAST( + - 93 AS SIGNED ) + 4 + 69 * - - 69 * + 41
----
195113

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL COALESCE ( - + ( COUNT ( * ) ), 90 ) * + - CAST ( COUNT ( * ) AS INTEGER ) + CAST ( + - 93 AS INTEGER ) + 4 + 69 * - - 69 * + 41
----
195113

query I rowsort
SELECT + 73 + + 65 + - 71 * 71 * - - NULLIF ( + 8, + 83 ) AS col0
----
-40190

query II rowsort
SELECT + 87 + + 52 + - 38 - ( 71 ) AS col1, + 34 AS col1
----
30
34

query I rowsort
SELECT DISTINCT + - 99 + 69 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT DISTINCT MAX( DISTINCT + 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT MAX ( DISTINCT + 88 ) AS col2
----
88

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

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

query I rowsort
SELECT - 78 + - 30 * - - 50
----
-1578

query I rowsort
SELECT - 37 * + ( 47 )
----
-1739

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8056
SELECT DISTINCT + ( + 41 ) DIV MIN( + 67 ) * + + 2 + + + 38 + 56
----
94

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT + ( + 41 ) / MIN ( + 67 ) * + + 2 + + + 38 + 56
----
94

query I rowsort
SELECT + 42 * - 28 * + 66 * + 98 AS col0
----
-7606368

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

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

query I rowsort
SELECT ALL + 30 * 58
----
1740

query I rowsort
SELECT ALL - 58 * - + 34
----
1972

query I rowsort
SELECT - 12 * - 31
----
372

query I rowsort
SELECT ALL + ( + 53 ) * 65
----
3445

query I rowsort
SELECT - 47 * + 36
----
-1692

query I rowsort
SELECT ALL - 59 * - 39
----
2301

query I rowsort
SELECT - 76 * + COALESCE ( 18, - 73 ) * + + 28 * + + 29 AS col0
----
-1110816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8066
SELECT - COUNT( * ) * + - MAX( + 57 ) DIV - 41 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8066
SELECT - COUNT ( * ) * + - MAX ( + 57 ) / - 41 AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT - 46 * + 77 + + COUNT( DISTINCT 7 )
----
-3541

skipif mysql # not compatible
query I rowsort label-8068
SELECT - 46 * + 77 + + COUNT ( DISTINCT 7 )
----
-3541

query I rowsort
SELECT ALL + 20 * - + 94 * + 89 AS col2
----
-167320

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

query I rowsort
SELECT ALL 47 * 50 + 19 - - 30 AS col0
----
2399

query I rowsort
SELECT - + 70 + - 29 AS col2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8073
SELECT + 91 DIV + COALESCE ( 31, - ( - COUNT( 40 ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-8073
SELECT + 91 / + COALESCE ( 31, - ( - COUNT ( 40 ) ) )
----
2

query I rowsort
SELECT DISTINCT - 22 * - - 23 * + 69 + + + 83 * + - ( + 9 )
----
-35661

query I rowsort
SELECT ALL - - 92 * - 0 col2
----
0

query I rowsort
SELECT DISTINCT + + 30 * - 28
----
-840

query I rowsort
SELECT + 75 + 63 AS col1
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8078
SELECT ALL - 43 DIV - - 57 - SUM( 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL - 43 / - - 57 - SUM ( 3 ) AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8079
SELECT + 84 * + CASE - NULLIF ( + 55, + 52 ) WHEN - + 85 + 60 + + COUNT( ALL 36 ) + - CAST( NULL AS SIGNED ) - + + CAST( NULL AS SIGNED ) - + 18 * + - 49 * - - 64 + + COUNT( * ) + 81 * - 34 THEN 81 * 67 WHEN ( - COUNT( * ) ) THEN NULL ELSE 12 * + 11 END * + COUNT( * ) + 58 AS col0
----
11146

skipif mysql # not compatible
query I rowsort label-8079
SELECT + 84 * + CASE - NULLIF ( + 55, + 52 ) WHEN - + 85 + 60 + + COUNT ( ALL 36 ) + - CAST ( NULL AS INTEGER ) - + + CAST ( NULL AS INTEGER ) - + 18 * + - 49 * - - 64 + + COUNT ( * ) + 81 * - 34 THEN 81 * 67 WHEN ( - COUNT ( * ) ) THEN NULL ELSE 12 * + 11 END * + COUNT ( * ) + 58 AS col0
----
11146

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

query I rowsort
SELECT - 37 + - - 87 * - 49 * + 47 col2
----
-200398

query I rowsort
SELECT DISTINCT 77 - 46 AS col2
----
31

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8084
SELECT COUNT( * ) * - 68 AS col1, + 8
----
-68
8

skipif mysql # not compatible
query II rowsort label-8084
SELECT COUNT ( * ) * - 68 AS col1, + 8
----
-68
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT COUNT( * ) - - 68
----
69

skipif mysql # not compatible
query I rowsort label-8085
SELECT COUNT ( * ) - - 68
----
69

query II rowsort
SELECT DISTINCT 55 AS col1, + 11 - - 41 * + 90 + 85 col1
----
55
3786

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8088
SELECT 31 + + NULLIF ( + + 53, - 97 ) + + - 3 * + ( + 59 ) * - CAST( + 57 AS SIGNED ) col1, + 43 - - CAST( NULL AS SIGNED )
----
10173
NULL

skipif mysql # not compatible
query II rowsort label-8088
SELECT 31 + + NULLIF ( + + 53, - 97 ) + + - 3 * + ( + 59 ) * - CAST ( + 57 AS INTEGER ) col1, + 43 - - CAST ( NULL AS INTEGER )
----
10173
NULL

query II rowsort
SELECT DISTINCT 11, 14 AS col1
----
11
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8090
SELECT ALL 17, - COUNT( + 50 ) AS col1
----
17
-1

skipif mysql # not compatible
query II rowsort label-8090
SELECT ALL 17, - COUNT ( + 50 ) AS col1
----
17
-1

query I rowsort
SELECT DISTINCT ( + 47 ) * - 55
----
-2585

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT ( 41 ) * 57 + - + COUNT( * ) - + NULLIF ( + 48, - + 59 )
----
2288

skipif mysql # not compatible
query I rowsort label-8092
SELECT ( 41 ) * 57 + - + COUNT ( * ) - + NULLIF ( + 48, - + 59 )
----
2288

query I rowsort
SELECT COALESCE ( - 84, 81, + - 98 ) + 17
----
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8094
SELECT + COUNT( * ) DIV - 43 - ( 14 ) AS col2, CAST( NULL AS DECIMAL ) DIV ( + + MAX( DISTINCT - 59 ) ) AS col1
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-8094
SELECT + COUNT ( * ) / - 43 - ( 14 ) AS col2, CAST ( NULL AS REAL ) / ( + + MAX ( DISTINCT - 59 ) ) AS col1
----
-14
NULL

query I rowsort
SELECT 75 + 21 col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8096
SELECT ( + - CASE + COUNT( * ) WHEN 50 THEN NULL WHEN 34 / - - MIN( ALL 45 ) + - 59 * - 75 * 24 + + COALESCE ( - 95, 79 / - 88, + 46, + COUNT( * ) ) * ( - ( - 27 ) + - 76 * CAST( NULL AS SIGNED ) ) THEN 35 * - 54 END ) / + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT ( + - CASE + COUNT ( * ) WHEN 50 THEN NULL WHEN 34 / - - MIN ( ALL 45 ) + - 59 * - 75 * 24 + + COALESCE ( - 95, 79 / - 88, + 46, + COUNT ( * ) ) * ( - ( - 27 ) + - 76 * CAST ( NULL AS INTEGER ) ) THEN 35 * - 54 END ) / + 53
----
NULL

query I rowsort
SELECT 85 * - 9
----
-765

query I rowsort
SELECT ALL + 0 + 13 * - COALESCE ( + - 4, 64 + 11 + - - 45, - + 47 ) + + 50 + - 10
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8099
SELECT + 50 * NULLIF ( 26, 36 + - CAST( + - 25 AS SIGNED ) * - - 32 ) + 50
----
1350

skipif mysql # not compatible
query I rowsort label-8099
SELECT + 50 * NULLIF ( 26, 36 + - CAST ( + - 25 AS INTEGER ) * - - 32 ) + 50
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT ALL SUM( 87 ) + - 47 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL SUM ( 87 ) + - 47 AS col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8101
SELECT DISTINCT 70 DIV + 32
----
2

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT 70 / + 32
----
2

query I rowsort
SELECT DISTINCT 28 + - 4 col1
----
24

query I rowsort
SELECT + - CASE WHEN - 83 NOT BETWEEN NULL AND 49 * - - 49 + 67 THEN - 33 ELSE NULL END * - 22 + + 83 + 58 * - 10
----
NULL

query I rowsort
SELECT ALL + 79 + - - 99
----
178

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

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

query I rowsort
SELECT DISTINCT + + 70 * COALESCE ( - 61, + 24 ) + - 98
----
-4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8107
SELECT - COUNT( * ) * + 30 + - 34 * + 87 * + - ( - - 64 ) + + CAST( + 33 AS SIGNED ) col2
----
189315

skipif mysql # not compatible
query I rowsort label-8107
SELECT - COUNT ( * ) * + 30 + - 34 * + 87 * + - ( - - 64 ) + + CAST ( + 33 AS INTEGER ) col2
----
189315

query I rowsort
SELECT 82 + - + 90 + + 52
----
44

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

skipif mysql # not compatible
query II rowsort label-8109
SELECT - 7 AS col1, COUNT ( * )
----
-7
1

query II rowsort
SELECT ALL - COALESCE ( + + 15, 55 * + 24, - 97 ) - - 90 AS col0, 91
----
75
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT 62 * 73 + - COUNT( * ) + + 71 * + 49
----
8004

skipif mysql # not compatible
query I rowsort label-8111
SELECT 62 * 73 + - COUNT ( * ) + + 71 * + 49
----
8004

query I rowsort
SELECT ALL NULLIF ( - 97, - + 96 ) AS col0
----
-97

query I rowsort
SELECT - + 10 * - 24 + 36
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8114
SELECT CASE + 67 WHEN - CASE 21 WHEN ( + + NULLIF ( 54, + + 92 ) ) THEN NULL WHEN + - 91 THEN + + COUNT( * ) * + 25 * - + CASE CAST( + 72 AS SIGNED ) WHEN + COUNT( * ) * 6 + ( ( COUNT( * ) ) ) THEN - COUNT( DISTINCT + 65 ) WHEN 2 THEN 13 END + + 93 * COUNT( * ) END * - 44 - + 20 THEN + 21 - + MIN( DISTINCT 72 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT CASE + 67 WHEN - CASE 21 WHEN ( + + NULLIF ( 54, + + 92 ) ) THEN NULL WHEN + - 91 THEN + + COUNT ( * ) * + 25 * - + CASE CAST ( + 72 AS INTEGER ) WHEN + COUNT ( * ) * 6 + ( ( COUNT ( * ) ) ) THEN - COUNT ( DISTINCT + 65 ) WHEN 2 THEN 13 END + + 93 * COUNT ( * ) END * - 44 - + 20 THEN + 21 - + MIN ( DISTINCT 72 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT 85 * + ( SUM( ALL + 61 ) ) + 96 AS col2
----
5281

skipif mysql # not compatible
query I rowsort label-8115
SELECT 85 * + ( SUM ( ALL + 61 ) ) + 96 AS col2
----
5281

query I rowsort
SELECT - 91 + 9
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8117
SELECT 64 * 94 * 75 * COALESCE ( + + COUNT( * ), - 27 DIV - 65 ) * - 36
----
-16243200

skipif mysql # not compatible
query I rowsort label-8117
SELECT 64 * 94 * 75 * COALESCE ( + + COUNT ( * ), - 27 / - 65 ) * - 36
----
-16243200

query I rowsort
SELECT + 18 + ( + 24 ) + 62 AS col0
----
104

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

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

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

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

query I rowsort
SELECT DISTINCT + 58 * - 89
----
-5162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8122
SELECT 34 - + AVG ( DISTINCT - 47 ) - + MIN( + - 10 ) * CAST( NULL AS SIGNED ) + 71 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT 34 - + AVG ( DISTINCT - 47 ) - + MIN ( + - 10 ) * CAST ( NULL AS INTEGER ) + 71 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT DISTINCT + MAX( ALL + ( + 62 ) ) * + COUNT( - - 52 )
----
62

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT + MAX ( ALL + ( + 62 ) ) * + COUNT ( - - 52 )
----
62

query I rowsort
SELECT ALL - 31 * - 59
----
1829

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT 66 + + MIN( ALL + + 67 ) AS col0
----
133

skipif mysql # not compatible
query I rowsort label-8125
SELECT 66 + + MIN ( ALL + + 67 ) AS col0
----
133

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT ALL - MAX( DISTINCT 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL - MAX ( DISTINCT 85 ) AS col1
----
-85

query I rowsort
SELECT DISTINCT + 0 * + 89 + - + 40 - + + 70 AS col1
----
-110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT DISTINCT 34 * - - 63 + + 25 * - COALESCE ( + 96, - + 23 + + + COALESCE ( - 33, + 17 + + - SUM( DISTINCT - - 96 ) ) + - 24 ) AS col0
----
-258

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT 34 * - - 63 + + 25 * - COALESCE ( + 96, - + 23 + + + COALESCE ( - 33, + 17 + + - SUM ( DISTINCT - - 96 ) ) + - 24 ) AS col0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT ALL ( + - 32 ) * + 64 * COUNT( * ) + 62 + - COUNT( * ) col1
----
-1987

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL ( + - 32 ) * + 64 * COUNT ( * ) + 62 + - COUNT ( * ) col1
----
-1987

query I rowsort
SELECT ALL 81 * - - 96
----
7776

query I rowsort
SELECT + + 21 * + + 50 * - + 12 + - + 52 * - - 78 AS col2
----
-16656

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT DISTINCT - MAX( + + 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT - MAX ( + + 88 ) AS col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8135
SELECT ALL - 92 * - 17 + 11 + - 34 DIV + 82 - - 93
----
1668

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL - 92 * - 17 + 11 + - 34 / + 82 - - 93
----
1668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT + 17 - 81 + - CASE + 38 WHEN - AVG ( 86 ) THEN + 24 END + + 74 - - 92 / CAST( NULL AS SIGNED ) * + - 20 / - 91 * + 42 * + - 52 * + 5 + - CASE + - CAST( NULL AS SIGNED ) WHEN - 59 / COUNT( ( - 52 ) ) THEN 73 WHEN + ( - 68 ) + 48 THEN NULL ELSE - 78 + 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8136
SELECT + 17 - 81 + - CASE + 38 WHEN - AVG ( 86 ) THEN + 24 END + + 74 - - 92 / CAST ( NULL AS INTEGER ) * + - 20 / - 91 * + 42 * + - 52 * + 5 + - CASE + - CAST ( NULL AS INTEGER ) WHEN - 59 / COUNT ( ( - 52 ) ) THEN 73 WHEN + ( - 68 ) + 48 THEN NULL ELSE - 78 + 19 END AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT + ( + 31 ) * NULLIF ( - SUM( - 92 ), + + 54 + - - 94 ) * + 9 - 89 * + 70
----
19438

skipif mysql # not compatible
query I rowsort label-8138
SELECT + ( + 31 ) * NULLIF ( - SUM ( - 92 ), + + 54 + - - 94 ) * + 9 - 89 * + 70
----
19438

onlyif mysql # DIV for integer division: 
query I rowsort label-8139
SELECT DISTINCT 9 DIV + ( - 10 ) * - 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT 9 / + ( - 10 ) * - 66 AS col2
----
0

query I rowsort
SELECT ALL 14 - + + 28 + + - 28
----
-42

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8141
SELECT DISTINCT + + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * - AVG ( ALL 24 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT + + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * - AVG ( ALL 24 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8142
SELECT + - 10 * + CASE + 44 WHEN - 86 THEN MAX( ALL + 21 ) END * + - 16 * - - 30 * + ( + 43 ) * + - 70 - - - 45 + + + 27 * + + ( - NULLIF ( CAST( NULL AS SIGNED ), + 48 * + CASE 39 WHEN 93 THEN AVG ( ALL 35 ) * - 90 WHEN + 94 THEN NULL ELSE NULL END ) ) / 39 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT + - 10 * + CASE + 44 WHEN - 86 THEN MAX ( ALL + 21 ) END * + - 16 * - - 30 * + ( + 43 ) * + - 70 - - - 45 + + + 27 * + + ( - NULLIF ( CAST ( NULL AS INTEGER ), + 48 * + CASE 39 WHEN 93 THEN AVG ( ALL 35 ) * - 90 WHEN + 94 THEN NULL ELSE NULL END ) ) / 39 col2
----
NULL

query I rowsort
SELECT + 10 + - - 47 + - 42 AS col0
----
15

query I rowsort
SELECT - 80 - + 88 AS col1
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8145
SELECT CASE + 17 WHEN - MIN( ALL + 0 ) / + - CASE + COALESCE ( + 12, 67 / - + COALESCE ( + - ( ( + - 1 ) ), + 45 - - + COUNT( * ) * - COUNT( * ) * - COUNT( * ) * - 65 ) * CAST( NULL AS SIGNED ) + 35, - 18 ) WHEN 20 + + COALESCE ( 68, 41 ) * 16 THEN 72 WHEN 61 * 57 THEN + 84 / 20 END THEN NULL WHEN COUNT( * ) * + ( - COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ) ) ) + + 23 THEN - 50 * + 58 WHEN 8 THEN NULLIF ( 73, COUNT( * ) ) WHEN 87 * - 13 THEN - 99 + - 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT CASE + 17 WHEN - MIN ( ALL + 0 ) / + - CASE + COALESCE ( + 12, 67 / - + COALESCE ( + - ( ( + - 1 ) ), + 45 - - + COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) * - 65 ) * CAST ( NULL AS INTEGER ) + 35, - 18 ) WHEN 20 + + COALESCE ( 68, 41 ) * 16 THEN 72 WHEN 61 * 57 THEN + 84 / 20 END THEN NULL WHEN COUNT ( * ) * + ( - COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ) ) ) + + 23 THEN - 50 * + 58 WHEN 8 THEN NULLIF ( 73, COUNT ( * ) ) WHEN 87 * - 13 THEN - 99 + - 74 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8146
SELECT DISTINCT + + 0 * - 25 - + - 94 - CASE + 52 WHEN + - CAST( NULL AS SIGNED ) THEN + 24 + - + 67 * COUNT( + + 99 ) END * + 58 * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT + + 0 * - 25 - + - 94 - CASE + 52 WHEN + - CAST ( NULL AS INTEGER ) THEN + 24 + - + 67 * COUNT ( + + 99 ) END * + 58 * - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT - NULLIF ( + COUNT( + 42 ), + 50 + - MAX( 88 ) * 63 + + 95 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8147
SELECT - NULLIF ( + COUNT ( + 42 ), + 50 + - MAX ( 88 ) * 63 + + 95 ) AS col1
----
-1

query II rowsort
SELECT ALL + 80 * - 42, ( - 88 ) AS col1
----
-3360
-88

query I rowsort
SELECT DISTINCT - NULLIF ( - NULLIF ( - 67, 39 + CASE - 26 WHEN - 72 THEN NULL ELSE 33 END ), 52 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT - 17 + COUNT( * ) + 26 * - 18 * + 22
----
-10312

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT - 17 + COUNT ( * ) + 26 * - 18 * + 22
----
-10312

query I rowsort
SELECT - 72 * - 68
----
4896

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

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

query I rowsort
SELECT - 60 + - - 77 AS col2
----
17

query I rowsort
SELECT - 36 + 51 * + ( 46 )
----
2310

query I rowsort
SELECT - 42 * - 78 AS col1
----
3276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8156
SELECT 55 AS col2, 47 * + 14 + CAST( NULL AS SIGNED )
----
55
NULL

skipif mysql # not compatible
query II rowsort label-8156
SELECT 55 AS col2, 47 * + 14 + CAST ( NULL AS INTEGER )
----
55
NULL

query I rowsort
SELECT ALL - 0 + 37 + + - 63 * + ( + 42 ) + + 93 AS col0
----
-2516

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT DISTINCT NULLIF ( + 84, MIN( DISTINCT - + 65 ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT NULLIF ( + 84, MIN ( DISTINCT - + 65 ) ) AS col2
----
84

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8160
SELECT COUNT( * ) DIV + 27 + + + NULLIF ( + - 37, 57 ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-8160
SELECT COUNT ( * ) / + 27 + + + NULLIF ( + - 37, 57 ) col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-8161
SELECT ALL + COUNT( * ) AS col0, 5 + - + 15 AS col2
----
1
-10

skipif mysql # not compatible
query II rowsort label-8161
SELECT ALL + COUNT ( * ) AS col0, 5 + - + 15 AS col2
----
1
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT - ( + 41 ) + + NULLIF ( - + 1, + CAST( NULL AS SIGNED ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-8162
SELECT - ( + 41 ) + + NULLIF ( - + 1, + CAST ( NULL AS INTEGER ) ) AS col2
----
-42

query I rowsort
SELECT DISTINCT + - NULLIF ( - 99, 90 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT ALL - COALESCE ( + 9, + - NULLIF ( + 30, + 74 / + - 60 ), + 92, + 74 * + 53 - - COUNT( * ) ) * COUNT( * ) - NULLIF ( + 53, 91 ) - 82
----
-144

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL - COALESCE ( + 9, + - NULLIF ( + 30, + 74 / + - 60 ), + 92, + 74 * + 53 - - COUNT ( * ) ) * COUNT ( * ) - NULLIF ( + 53, 91 ) - 82
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL + SUM( - 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL + SUM ( - 61 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT + 69 * + - 45 + ( + COUNT( * ) ) + - 37 * - CASE - + NULLIF ( + + COALESCE ( + 32, + + ( - SUM( ALL + 58 ) ), 46 + + - 89 ), + 83 + + - COUNT( * ) + - ( 16 ) ) WHEN - 85 THEN + COUNT( * ) * 37 ELSE NULL END * + 46 * 52 + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT + 69 * + - 45 + ( + COUNT ( * ) ) + - 37 * - CASE - + NULLIF ( + + COALESCE ( + 32, + + ( - SUM ( ALL + 58 ) ), 46 + + - 89 ), + 83 + + - COUNT ( * ) + - ( 16 ) ) WHEN - 85 THEN + COUNT ( * ) * 37 ELSE NULL END * + 46 * 52 + - COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8167
SELECT ALL COUNT( * ) * + 62 * ( - 28 ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL COUNT ( * ) * + 62 * ( - 28 ) + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8168
SELECT DISTINCT + + 80 AS col1, COUNT( * ) DIV - 95
----
80
0

skipif mysql # not compatible
query II rowsort label-8168
SELECT DISTINCT + + 80 AS col1, COUNT ( * ) / - 95
----
80
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8169
SELECT + MAX( ( + 37 ) ), 31 AS col1
----
37
31

skipif mysql # not compatible
query II rowsort label-8169
SELECT + MAX ( ( + 37 ) ), 31 AS col1
----
37
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT + COUNT( * ) + - 20 * + - 32
----
641

skipif mysql # not compatible
query I rowsort label-8170
SELECT + COUNT ( * ) + - 20 * + - 32
----
641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8171
SELECT ALL CAST( + + 12 AS SIGNED ) * + + 15 + 83 AS col1
----
263

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL CAST ( + + 12 AS INTEGER ) * + + 15 + 83 AS col1
----
263

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8172
SELECT - - 59 * + - COUNT( * ) + - + ( 82 ) + - - COALESCE ( + 69, + 25 ) + + SUM( DISTINCT 50 ) + 25 + + + 95 + COUNT( * ) DIV 10 * + 54 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-8172
SELECT - - 59 * + - COUNT ( * ) + - + ( 82 ) + - - COALESCE ( + 69, + 25 ) + + SUM ( DISTINCT 50 ) + 25 + + + 95 + COUNT ( * ) / 10 * + 54 AS col2
----
98

query I rowsort
SELECT + + 78 col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8174
SELECT 59 AS col1, 12 * - 45 * - CASE CAST( NULL AS SIGNED ) WHEN + 69 THEN - - ( ( + + NULLIF ( - + 60, - 66 ) ) ) ELSE NULL END * - NULLIF ( CASE + + COUNT( * ) WHEN + 17 * 17 * + 51 + + + 54 THEN - COUNT( * ) * 46 + - 6 END, 7 + + 26 )
----
59
NULL

skipif mysql # not compatible
query II rowsort label-8174
SELECT 59 AS col1, 12 * - 45 * - CASE CAST ( NULL AS INTEGER ) WHEN + 69 THEN - - ( ( + + NULLIF ( - + 60, - 66 ) ) ) ELSE NULL END * - NULLIF ( CASE + + COUNT ( * ) WHEN + 17 * 17 * + 51 + + + 54 THEN - COUNT ( * ) * 46 + - 6 END, 7 + + 26 )
----
59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT + SUM( + 32 ) * NULLIF ( COUNT( * ), + 95 * 69 + + 19 ) + - 17 + - - 53 + + 84 + - CASE + - 28 WHEN - - 5 THEN NULL ELSE + 86 END * + ( - + 72 ) * + NULLIF ( - + 31, 76 )
----
-191800

skipif mysql # not compatible
query I rowsort label-8175
SELECT + SUM ( + 32 ) * NULLIF ( COUNT ( * ), + 95 * 69 + + 19 ) + - 17 + - - 53 + + 84 + - CASE + - 28 WHEN - - 5 THEN NULL ELSE + 86 END * + ( - + 72 ) * + NULLIF ( - + 31, 76 )
----
-191800

query II rowsort
SELECT - 93, 55 * 36 AS col0
----
-93
1980

query II rowsort
SELECT 96 AS col2, - 22
----
96
-22

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT ALL 70 DIV + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL 70 / + 75 AS col0
----
0

query II rowsort
SELECT DISTINCT - ( - 70 ) * - 35 * + - 21 * ( - + 76 ) + + 42 * - 59 + 76 AS col2, + 24 * 39
----
-3912602
936

query I rowsort
SELECT + 58 * - + 65
----
-3770

query II rowsort
SELECT ALL + 79 * - 8 + 98 - - + 20, - ( - 16 ) AS col1
----
-514
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8183
SELECT MIN( DISTINCT + 58 ) AS col0, + 17
----
58
17

skipif mysql # not compatible
query II rowsort label-8183
SELECT MIN ( DISTINCT + 58 ) AS col0, + 17
----
58
17

query I rowsort
SELECT + 84 * + + ( - 3 )
----
-252

query I rowsort
SELECT 13 * 83 - - + 53
----
1132

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT + 60 * + MIN( ALL + 82 )
----
4920

skipif mysql # not compatible
query I rowsort label-8186
SELECT + 60 * + MIN ( ALL + 82 )
----
4920

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8188
SELECT - NULLIF ( 78, - 65 ) + + - MIN( ALL CAST( NULL AS DECIMAL ) ), - 97 AS col2
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-8188
SELECT - NULLIF ( 78, - 65 ) + + - MIN ( ALL CAST ( NULL AS REAL ) ), - 97 AS col2
----
NULL
-97

query I rowsort
SELECT ALL + 68 + - 96 + - - 76 AS col1
----
48

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

query I rowsort
SELECT - 18 + + 56 AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8192
SELECT DISTINCT ( - 48 ) + - 56 * - 44 + + CAST( COUNT( * ) AS SIGNED ) col2
----
2417

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT ( - 48 ) + - 56 * - 44 + + CAST ( COUNT ( * ) AS INTEGER ) col2
----
2417

onlyif mysql # aggregate syntax: 
query II rowsort label-8193
SELECT ALL ( 56 ), - 6 + - COUNT( * ) AS col2
----
56
-7

skipif mysql # not compatible
query II rowsort label-8193
SELECT ALL ( 56 ), - 6 + - COUNT ( * ) AS col2
----
56
-7

query I rowsort
SELECT ALL 12 + - 95 * - 59 AS col0
----
5617

query I rowsort
SELECT DISTINCT NULLIF ( - + 35, + ( + 24 ) + + 32 + 99 * 47 / - 25 )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8196
SELECT - COUNT( * ) * - 10, 80 DIV + + 3 + - 30 AS col2
----
10
-4

skipif mysql # not compatible
query II rowsort label-8196
SELECT - COUNT ( * ) * - 10, 80 / + + 3 + - 30 AS col2
----
10
-4

query I rowsort
SELECT - 52 + - 69 AS col1
----
-121

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT ALL 46 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL 46 / 43
----
1

query II rowsort
SELECT DISTINCT + 9 * - 25, ( - + 70 ) AS col2
----
-225
-70

query I rowsort
SELECT DISTINCT + + ( + - 89 ) * - 33
----
2937

query I rowsort
SELECT DISTINCT + 82 * - NULLIF ( 98, - + 80 ) * - 17
----
136612

query I rowsort
SELECT - 12 * + + 28
----
-336

query I rowsort
SELECT DISTINCT - + 83 * 50 AS col2
----
-4150

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8207
SELECT CAST( NULL AS DECIMAL ) - - + 67 * - 71 - - COUNT( ALL + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT CAST ( NULL AS REAL ) - - + 67 * - 71 - - COUNT ( ALL + 30 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8208
SELECT + + 83 * - + 23 + - 78 + + COUNT( ALL - - 39 ) + + 30 * 21 - + 45 * + 65 + + 75 * - 35 * 70 + + 59 + + 95 DIV + ( 91 ) - 41 + - - 26 * - 10 * - 97
----
-162792

skipif mysql # not compatible
query I rowsort label-8208
SELECT + + 83 * - + 23 + - 78 + + COUNT ( ALL - - 39 ) + + 30 * 21 - + 45 * + 65 + + 75 * - 35 * 70 + + 59 + + 95 / + ( 91 ) - 41 + - - 26 * - 10 * - 97
----
-162792

onlyif mysql # DIV for integer division: 
query II rowsort label-8209
SELECT - 88 DIV - - 34, - NULLIF ( + ( 67 ), - 43 ) * ( - 77 ) AS col1
----
-2
5159

skipif mysql # not compatible
query II rowsort label-8209
SELECT - 88 / - - 34, - NULLIF ( + ( 67 ), - 43 ) * ( - 77 ) AS col1
----
-2
5159

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8211
SELECT DISTINCT - + COUNT( + 85 ), 35 AS col0
----
-1
35

skipif mysql # not compatible
query II rowsort label-8211
SELECT DISTINCT - + COUNT ( + 85 ), 35 AS col0
----
-1
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8212
SELECT ALL 59 + + 18 + + + SUM( 86 ) * - 36, 5 * + - 73 AS col0
----
-3019
-365

skipif mysql # not compatible
query II rowsort label-8212
SELECT ALL 59 + + 18 + + + SUM ( 86 ) * - 36, 5 * + - 73 AS col0
----
-3019
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT 69 * + - SUM( - + 82 ) - NULLIF ( - + COUNT( * ), + COUNT( * ) + + + 41 ) + COUNT( * ) col2
----
5660

skipif mysql # not compatible
query I rowsort label-8213
SELECT 69 * + - SUM ( - + 82 ) - NULLIF ( - + COUNT ( * ), + COUNT ( * ) + + + 41 ) + COUNT ( * ) col2
----
5660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8214
SELECT + ( 50 ) * 43 * + - NULLIF ( - - 1, 92 - - + 91 + - 50 ) / - CAST( NULL AS SIGNED ) + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT + ( 50 ) * 43 * + - NULLIF ( - - 1, 92 - - + 91 + - 50 ) / - CAST ( NULL AS INTEGER ) + 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8215
SELECT DISTINCT - 31 * + ( - 78 ) * + CAST( - - 54 AS SIGNED ) + 2 - - + 47 - + 7 + + 82 AS col2, + MAX( 77 ) AS col2
----
130696
77

skipif mysql # not compatible
query II rowsort label-8215
SELECT DISTINCT - 31 * + ( - 78 ) * + CAST ( - - 54 AS INTEGER ) + 2 - - + 47 - + 7 + + 82 AS col2, + MAX ( 77 ) AS col2
----
130696
77

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

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

query I rowsort
SELECT ALL - 14 + + 49
----
35

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT 30 DIV + + 64
----
0

skipif mysql # not compatible
query I rowsort label-8219
SELECT 30 / + + 64
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8220
SELECT DISTINCT 72 + - 40 + - 22 * - 72 * 60 + + 14 + + CASE WHEN NOT NULL <> NULL THEN NULL ELSE 44 END + + 87 - - 89 + - 48 DIV ( - + 82 ) AS col1
----
95306

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT 72 + - 40 + - 22 * - 72 * 60 + + 14 + + CASE WHEN NOT NULL <> NULL THEN NULL ELSE 44 END + + 87 - - 89 + - 48 / ( - + 82 ) AS col1
----
95306

query I rowsort
SELECT ALL 7 + - 58 AS col0
----
-51

query I rowsort
SELECT ALL + 9 * - 31 AS col2
----
-279

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8223
SELECT DISTINCT - ( - 18 ) + + 11 + 48 * - CAST( NULL AS DECIMAL ) AS col2, - 98 DIV + CASE 47 WHEN - + NULLIF ( - 73, + + 78 DIV + 68 ) DIV 84 + 92 + + - 74 * - COUNT( * ) * + 71 + - 87 + + NULLIF ( + 64, 62 ) THEN - ( + COUNT( * ) ) - 2 ELSE - NULLIF ( - COUNT( * ), 17 ) END * - COUNT( * )
----
NULL
98

skipif mysql # not compatible
query II rowsort label-8223
SELECT DISTINCT - ( - 18 ) + + 11 + 48 * - CAST ( NULL AS REAL ) AS col2, - 98 / + CASE 47 WHEN - + NULLIF ( - 73, + + 78 / + 68 ) / 84 + 92 + + - 74 * - COUNT ( * ) * + 71 + - 87 + + NULLIF ( + 64, 62 ) THEN - ( + COUNT ( * ) ) - 2 ELSE - NULLIF ( - COUNT ( * ), 17 ) END * - COUNT ( * )
----
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT DISTINCT + COUNT( * ) + - 97 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT + COUNT ( * ) + - 97 AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8225
SELECT ALL + COALESCE ( + 23, 29 - - NULLIF ( NULLIF ( - - 63, + 6 ), + MIN( ALL + + 1 ) + 73 ) ) - + CAST( - CASE - CASE 72 WHEN - 27 * - 42 + 48 * 58 THEN MIN( DISTINCT - + 15 ) ELSE - 22 + 73 END WHEN - ( 29 ) THEN CAST( 79 AS SIGNED ) ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL + COALESCE ( + 23, 29 - - NULLIF ( NULLIF ( - - 63, + 6 ), + MIN ( ALL + + 1 ) + 73 ) ) - + CAST ( - CASE - CASE 72 WHEN - 27 * - 42 + 48 * 58 THEN MIN ( DISTINCT - + 15 ) ELSE - 22 + 73 END WHEN - ( 29 ) THEN CAST ( 79 AS INTEGER ) ELSE NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8226
SELECT DISTINCT 6 DIV - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT 6 / - 51 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT 55 + - 81 * - + COUNT( * ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-8227
SELECT 55 + - 81 * - + COUNT ( * ) AS col1
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8228
SELECT CAST( - 8 AS SIGNED ) * + COUNT( * ) - - 38 + + 49 col1
----
79

skipif mysql # not compatible
query I rowsort label-8228
SELECT CAST ( - 8 AS INTEGER ) * + COUNT ( * ) - - 38 + + 49 col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT 74 + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-8229
SELECT 74 + COUNT ( * ) AS col0
----
75

query I rowsort
SELECT DISTINCT - 65 * + - 27
----
1755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8231
SELECT DISTINCT 63 * - COALESCE ( - + COUNT( * ), + 90, + 85 + + 5 + + - 68 * + CAST( - - 67 AS SIGNED ) ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT 63 * - COALESCE ( - + COUNT ( * ), + 90, + 85 + + 5 + + - 68 * + CAST ( - - 67 AS INTEGER ) ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT 36 + COUNT( DISTINCT - - 44 ) * + 29 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8232
SELECT 36 + COUNT ( DISTINCT - - 44 ) * + 29 AS col2
----
65

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT ( + 97 ) + + CAST( + + 24 AS SIGNED ) col1
----
121

skipif mysql # not compatible
query I rowsort label-8234
SELECT ( + 97 ) + + CAST ( + + 24 AS INTEGER ) col1
----
121

query II rowsort
SELECT ALL + 70, - 28 + - 19 * + 92 col1
----
70
-1776

query I rowsort
SELECT + 10 + - 56
----
-46

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8238
SELECT 34 DIV + ( + - 90 ) * - COALESCE ( + 50, SUM( + + 78 ) - + 74 - 95, - - CASE - 43 WHEN + 19 DIV + 84 THEN - 30 - - 89 WHEN + - 82 * - 11 * + - 19 * - 23 + + - 74 THEN COUNT( * ) ELSE NULL END ) + + 37
----
37

skipif mysql # not compatible
query I rowsort label-8238
SELECT 34 / + ( + - 90 ) * - COALESCE ( + 50, SUM ( + + 78 ) - + 74 - 95, - - CASE - 43 WHEN + 19 / + 84 THEN - 30 - - 89 WHEN + - 82 * - 11 * + - 19 * - 23 + + - 74 THEN COUNT ( * ) ELSE NULL END ) + + 37
----
37

query I rowsort
SELECT 51 + 81
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-8240
SELECT DISTINCT + 37 + - 79 * COUNT( * ) col1, 67
----
-42
67

skipif mysql # not compatible
query II rowsort label-8240
SELECT DISTINCT + 37 + - 79 * COUNT ( * ) col1, 67
----
-42
67

onlyif mysql # DIV for integer division: 
query II rowsort label-8241
SELECT ALL + + 43 + 10 + 8 DIV 28 DIV 65, 16 + 98 * - + 30 AS col0
----
53
-2924

skipif mysql # not compatible
query II rowsort label-8241
SELECT ALL + + 43 + 10 + 8 / 28 / 65, 16 + 98 * - + 30 AS col0
----
53
-2924

query I rowsort
SELECT ALL - + 30 + 34 col1
----
4

query I rowsort
SELECT ALL + 43 + + + NULLIF ( + 11, + - 98 )
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT - 18 * - COUNT( * ) + - 30 + - - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-8245
SELECT - 18 * - COUNT ( * ) + - 30 + - - COUNT ( * )
----
-11

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

query I rowsort
SELECT DISTINCT - COALESCE ( - 13, - - 11, + + 37 ) AS col1
----
13

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

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

query II rowsort
SELECT 65 + - 67, - 1 * + + 77 * + 76 col2
----
-2
-5852

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT MIN( - 63 ) * - 53 col1
----
3339

skipif mysql # not compatible
query I rowsort label-8251
SELECT MIN ( - 63 ) * - 53 col1
----
3339

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT 87 * + ( - 37 ) * + 22 - 32 * COUNT( * )
----
-70850

skipif mysql # not compatible
query I rowsort label-8252
SELECT 87 * + ( - 37 ) * + 22 - 32 * COUNT ( * )
----
-70850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8253
SELECT - COUNT( * ) AS col0, CAST( + 8 AS SIGNED )
----
-1
8

skipif mysql # not compatible
query II rowsort label-8253
SELECT - COUNT ( * ) AS col0, CAST ( + 8 AS INTEGER )
----
-1
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT MAX( + + 6 ) * 90 AS col2
----
540

skipif mysql # not compatible
query I rowsort label-8255
SELECT MAX ( + + 6 ) * 90 AS col2
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ( + 55 ) + + COUNT( DISTINCT - 68 ) - - + 4 * + 92 * + 88
----
32440

skipif mysql # not compatible
query I rowsort label-8256
SELECT ( + 55 ) + + COUNT ( DISTINCT - 68 ) - - + 4 * + 92 * + 88
----
32440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8257
SELECT 52, - CASE + SUM( - 60 ) WHEN + + NULLIF ( + 94, - 17 + + + 35 + - MAX( + 0 ) * - - 3 + + COUNT( * ) ) THEN NULL ELSE + SUM( DISTINCT - - CAST( + 38 AS SIGNED ) ) END * CASE - + COUNT( * ) WHEN - SUM( + 47 ) THEN NULL WHEN + 1 * - - 90 THEN - 33 / - 48 WHEN ( 86 ) THEN NULL ELSE NULL END * 41 AS col2
----
52
NULL

skipif mysql # not compatible
query II rowsort label-8257
SELECT 52, - CASE + SUM ( - 60 ) WHEN + + NULLIF ( + 94, - 17 + + + 35 + - MAX ( + 0 ) * - - 3 + + COUNT ( * ) ) THEN NULL ELSE + SUM ( DISTINCT - - CAST ( + 38 AS INTEGER ) ) END * CASE - + COUNT ( * ) WHEN - SUM ( + 47 ) THEN NULL WHEN + 1 * - - 90 THEN - 33 / - 48 WHEN ( 86 ) THEN NULL ELSE NULL END * 41 AS col2
----
52
NULL

query I rowsort
SELECT DISTINCT + 60 * 79 AS col1
----
4740

query I rowsort
SELECT DISTINCT NULLIF ( + 32, + 34 ) AS col2
----
32

query I rowsort
SELECT + 93 * + - 29
----
-2697

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT DISTINCT ( + 16 ) DIV + ( 69 ) + + 9
----
9

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT ( + 16 ) / + ( 69 ) + + 9
----
9

query II rowsort
SELECT ALL + 95 AS col1, + 69 AS col1
----
95
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8263
SELECT - + 60 DIV + + 78 + + 40
----
40

skipif mysql # not compatible
query I rowsort label-8263
SELECT - + 60 / + + 78 + + 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL MIN( ALL - 54 ) + + 92 - + + 11 * + + 38 * + 25
----
-10412

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL MIN ( ALL - 54 ) + + 92 - + + 11 * + + 38 * + 25
----
-10412

query I rowsort
SELECT + 34 * - 61 + 61
----
-2013

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8266
SELECT ALL - COALESCE ( - 98, - 50 + - NULLIF ( - 3, - MAX( ALL + 74 ) ), - 52 ) * - 7 * + + 78 * + ( - - ( - CAST( - + 12 AS SIGNED ) ) ) + + 0 + + ( + + 50 ) * - + 69
----
-645546

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL - COALESCE ( - 98, - 50 + - NULLIF ( - 3, - MAX ( ALL + 74 ) ), - 52 ) * - 7 * + + 78 * + ( - - ( - CAST ( - + 12 AS INTEGER ) ) ) + + 0 + + ( + + 50 ) * - + 69
----
-645546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), - 35, 42 ) + - + 77 AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-8267
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), - 35, 42 ) + - + 77 AS col2
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-8268
SELECT ALL 83, - COUNT( * ) AS col0
----
83
-1

skipif mysql # not compatible
query II rowsort label-8268
SELECT ALL 83, - COUNT ( * ) AS col0
----
83
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8270
SELECT + 61 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-8270
SELECT + 61 / + 93
----
0

query I rowsort
SELECT - - 88 * - 39
----
-3432

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

skipif mysql # not compatible
query II rowsort label-8272
SELECT - COUNT ( * ), 97 AS col0
----
-1
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8273
SELECT CAST( NULL AS SIGNED ) AS col1, - 59 / 17 * - CASE + + 47 WHEN 8 / 92 THEN NULL WHEN + 15 + - 65 * 70 * + 77 THEN + - 11 END * + 79 + - CASE - 55 WHEN - 18 THEN + 0 * - 62 + - MIN( - 92 ) ELSE COUNT( * ) + 45 END * 36 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8273
SELECT CAST ( NULL AS INTEGER ) AS col1, - 59 / 17 * - CASE + + 47 WHEN 8 / 92 THEN NULL WHEN + 15 + - 65 * 70 * + 77 THEN + - 11 END * + 79 + - CASE - 55 WHEN - 18 THEN + 0 * - 62 + - MIN ( - 92 ) ELSE COUNT ( * ) + 45 END * 36 AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL + 8 + + + 33 * COUNT( * ) col2
----
41

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL + 8 + + + 33 * COUNT ( * ) col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8275
SELECT 84 AS col0, COALESCE ( COUNT( * ), - CASE - + ( - + 55 ) WHEN - 77 THEN ( + - 81 ) WHEN + + COUNT( * ) * - COUNT( * ) * + 51 THEN NULL ELSE NULL END ) AS col0
----
84
1

skipif mysql # not compatible
query II rowsort label-8275
SELECT 84 AS col0, COALESCE ( COUNT ( * ), - CASE - + ( - + 55 ) WHEN - 77 THEN ( + - 81 ) WHEN + + COUNT ( * ) * - COUNT ( * ) * + 51 THEN NULL ELSE NULL END ) AS col0
----
84
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT DISTINCT - COUNT( * ) * - 26 + - ( - 96 ) AS col2
----
122

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT - COUNT ( * ) * - 26 + - ( - 96 ) AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT ALL + - 97 * 11 + - SUM( - ( + 30 ) )
----
-1037

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL + - 97 * 11 + - SUM ( - ( + 30 ) )
----
-1037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8278
SELECT + - 76, CAST( - ( - 47 ) AS SIGNED ) * + - CASE - + 39 WHEN - COUNT( * ) / + 95 THEN + 66 WHEN + 26 + - 80 THEN NULL WHEN - CASE + 27 WHEN + CAST( - - COUNT( * ) AS DECIMAL ) + - + COUNT( * ) THEN 74 * + 48 WHEN - - 16 / - - 85 * ( MAX( - CAST( 6 AS SIGNED ) ) ) - 63 THEN NULL ELSE + 77 END - - 3 THEN NULL END + COUNT( * ) * 42 AS col2
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-8278
SELECT + - 76, CAST ( - ( - 47 ) AS INTEGER ) * + - CASE - + 39 WHEN - COUNT ( * ) / + 95 THEN + 66 WHEN + 26 + - 80 THEN NULL WHEN - CASE + 27 WHEN + CAST ( - - COUNT ( * ) AS REAL ) + - + COUNT ( * ) THEN 74 * + 48 WHEN - - 16 / - - 85 * ( MAX ( - CAST ( 6 AS INTEGER ) ) ) - 63 THEN NULL ELSE + 77 END - - 3 THEN NULL END + COUNT ( * ) * 42 AS col2
----
-76
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8279
SELECT + COALESCE ( + 76, + - CAST( - + 79 AS SIGNED ) * - COALESCE ( - COUNT( * ), + 27, + 18 DIV - - 59 ) ) * 96 + - + 29 + 23 AS col0
----
7290

skipif mysql # not compatible
query I rowsort label-8279
SELECT + COALESCE ( + 76, + - CAST ( - + 79 AS INTEGER ) * - COALESCE ( - COUNT ( * ), + 27, + 18 / - - 59 ) ) * 96 + - + 29 + 23 AS col0
----
7290

query I rowsort
SELECT - 47 * - 50 - 10
----
2340

query II rowsort
SELECT ALL + + 16 AS col2, + 46 AS col1
----
16
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT ALL + COALESCE ( MAX( - 77 ), - + 56 )
----
-77

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL + COALESCE ( MAX ( - 77 ), - + 56 )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8284
SELECT COALESCE ( 71, - + 11, 49 + CAST( NULL AS SIGNED ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8284
SELECT COALESCE ( 71, - + 11, 49 + CAST ( NULL AS INTEGER ) ) AS col1
----
71

query I rowsort
SELECT ALL - 55 * COALESCE ( 26, + 95 ) AS col1
----
-1430

onlyif mysql # DIV for integer division: 
query I rowsort label-8286
SELECT + 53 DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8286
SELECT + 53 / - 75 AS col1
----
0

query I rowsort
SELECT - 59 * - 42
----
2478

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT - COUNT( * ) + + 99 - + 81
----
17

skipif mysql # not compatible
query I rowsort label-8288
SELECT - COUNT ( * ) + + 99 - + 81
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8289
SELECT ALL + NULLIF ( - - 64, - NULLIF ( - 21, + - 0 / - 26 ) * + 48 + - + CAST( NULL AS SIGNED ) + + 69 + + 87 + + 34 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL + NULLIF ( - - 64, - NULLIF ( - 21, + - 0 / - 26 ) * + 48 + - + CAST ( NULL AS INTEGER ) + + 69 + + 87 + + 34 ) AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8290
SELECT + AVG ( ALL - CAST( NULL AS SIGNED ) ) col0, 25 col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-8290
SELECT + AVG ( ALL - CAST ( NULL AS INTEGER ) ) col0, 25 col2
----
NULL
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8291
SELECT - 23 * + 85 AS col0, - COUNT( - 55 ) AS col0
----
-1955
-1

skipif mysql # not compatible
query II rowsort label-8291
SELECT - 23 * + 85 AS col0, - COUNT ( - 55 ) AS col0
----
-1955
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8293
SELECT - ( - 92 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT - ( - 92 ) * CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL NULLIF ( + 76, - COUNT( * ) * + + 58 * + 31 * 61 + + - 98 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL NULLIF ( + 76, - COUNT ( * ) * + + 58 * + 31 * 61 + + - 98 ) AS col1
----
76

query I rowsort
SELECT ALL ( + + 22 ) * + - ( - 37 ) AS col0
----
814

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT - 69 * - + 64 * - COUNT( * )
----
-4416

skipif mysql # not compatible
query I rowsort label-8297
SELECT - 69 * - + 64 * - COUNT ( * )
----
-4416

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

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL + COUNT ( * ) + - - 10 AS col0
----
11

query II rowsort
SELECT DISTINCT ( - 41 ), + 36 + 27 AS col1
----
-41
63

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

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

query I rowsort
SELECT - 54 + + ( 4 ) col0
----
-50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8303
SELECT + 68 + - COALESCE ( + COUNT( * ), - CASE 33 WHEN + 70 / - 93 THEN NULL WHEN - - 81 / - + COUNT( + 1 ) * + 87 + - - 51 * - 9 - CAST( + 89 AS SIGNED ) THEN 5 ELSE NULL END, - + 10 + SUM( ALL 44 ) + - CASE 26 WHEN + CASE + 97 WHEN 55 * 57 THEN ( - 18 ) ELSE NULL END * - 67 + + 52 THEN - COALESCE ( 7, 50 + 23, 68 + 81, 83 ) ELSE + 70 - COUNT( DISTINCT 69 ) END )
----
67

skipif mysql # not compatible
query I rowsort label-8303
SELECT + 68 + - COALESCE ( + COUNT ( * ), - CASE 33 WHEN + 70 / - 93 THEN NULL WHEN - - 81 / - + COUNT ( + 1 ) * + 87 + - - 51 * - 9 - CAST ( + 89 AS INTEGER ) THEN 5 ELSE NULL END, - + 10 + SUM ( ALL 44 ) + - CASE 26 WHEN + CASE + 97 WHEN 55 * 57 THEN ( - 18 ) ELSE NULL END * - 67 + + 52 THEN - COALESCE ( 7, 50 + 23, 68 + 81, 83 ) ELSE + 70 - COUNT ( DISTINCT 69 ) END )
----
67

query II rowsort
SELECT ALL - + 35 + + 23, + 53 AS col1
----
-12
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8305
SELECT ALL + CAST( 68 AS SIGNED ) AS col1, ( + 6 ) AS col2
----
68
6

skipif mysql # not compatible
query II rowsort label-8305
SELECT ALL + CAST ( 68 AS INTEGER ) AS col1, ( + 6 ) AS col2
----
68
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT ALL COUNT( * ) * + 80 * 66 AS col2
----
5280

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL COUNT ( * ) * + 80 * 66 AS col2
----
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT + + 65 * 20 + COUNT( * )
----
1301

skipif mysql # not compatible
query I rowsort label-8307
SELECT + + 65 * 20 + COUNT ( * )
----
1301

query I rowsort
SELECT + 8 + - 47 AS col0
----
-39

query I rowsort
SELECT - NULLIF ( - - 5, + + 41 * - + 58 * - - 91 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT + - COALESCE ( + COUNT( * ), MIN( + 89 ) * + 87 * - 2 ) * - ( + - 41 ) + + 47
----
6

skipif mysql # not compatible
query I rowsort label-8310
SELECT + - COALESCE ( + COUNT ( * ), MIN ( + 89 ) * + 87 * - 2 ) * - ( + - 41 ) + + 47
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8311
SELECT - 67 / 78 + + - 77 + - 15 + + - 16 * + - 73 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - AVG ( DISTINCT 88 ) + + 12 + - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT - 67 / 78 + + - 77 + - 15 + + - 16 * + - 73 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - AVG ( DISTINCT 88 ) + + 12 + - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT + - 5 * - - COUNT( NULLIF ( - 54, - + 74 ) ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-8312
SELECT + - 5 * - - COUNT ( NULLIF ( - 54, - + 74 ) ) col0
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-8313
SELECT 55 DIV - 97 + + - 49 AS col1, 99 AS col2
----
-49
99

skipif mysql # not compatible
query II rowsort label-8313
SELECT 55 / - 97 + + - 49 AS col1, 99 AS col2
----
-49
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8314
SELECT + CAST( NULL AS DECIMAL ), + CASE + 11 WHEN - + 18 THEN NULL WHEN - 86 THEN - 9 WHEN - 53 * 18 THEN + - 2 END + + 41 / - NULLIF ( - + 38, + COUNT( * ) + + 20 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8314
SELECT + CAST ( NULL AS REAL ), + CASE + 11 WHEN - + 18 THEN NULL WHEN - 86 THEN - 9 WHEN - 53 * 18 THEN + - 2 END + + 41 / - NULLIF ( - + 38, + COUNT ( * ) + + 20 )
----
NULL
NULL

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

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

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

query I rowsort
SELECT - 36 * + - 4 AS col1
----
144

query I rowsort
SELECT - 72 * 89 + - 65
----
-6473

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

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

query I rowsort
SELECT - 88 + + + 15 * + + 62 * + + 86 * + 34 * + 60 col2
----
163159112

onlyif mysql # aggregate syntax: 
query II rowsort label-8321
SELECT 90 + + 79 + 46, 23 - MIN( DISTINCT 85 ) * + + MIN( 63 ) AS col2
----
215
-5332

skipif mysql # not compatible
query II rowsort label-8321
SELECT 90 + + 79 + 46, 23 - MIN ( DISTINCT 85 ) * + + MIN ( 63 ) AS col2
----
215
-5332

query I rowsort
SELECT DISTINCT - 6 * + + 88
----
-528

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8323
SELECT DISTINCT 41 * MAX( - 11 ) AS col0, + COUNT( * ) * + 8 DIV + + MAX( ALL + - 98 ) AS col2
----
-451
0

skipif mysql # not compatible
query II rowsort label-8323
SELECT DISTINCT 41 * MAX ( - 11 ) AS col0, + COUNT ( * ) * + 8 / + + MAX ( ALL + - 98 ) AS col2
----
-451
0

query II rowsort
SELECT ALL - 74 AS col1, + 64 AS col1
----
-74
64

query I rowsort
SELECT ALL 75 + - - 89 AS col1
----
164

query I rowsort
SELECT ALL + 61 + 43 AS col0
----
104

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

skipif mysql # not compatible
query II rowsort label-8327
SELECT - 86 AS col1, - COUNT ( * )
----
-86
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8328
SELECT DISTINCT + COUNT( * ) + 0 + - 7, + 5 AS col2
----
-6
5

skipif mysql # not compatible
query II rowsort label-8328
SELECT DISTINCT + COUNT ( * ) + 0 + - 7, + 5 AS col2
----
-6
5

query II rowsort
SELECT 35 + - ( + 38 ) AS col2, 14
----
-3
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT DISTINCT - CASE WHEN 43 < NULL THEN - MAX( 32 ) END + + - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT - CASE WHEN 43 < NULL THEN - MAX ( 32 ) END + + - 19 AS col2
----
NULL

query I rowsort
SELECT ALL - 41 + + - 48 * + 70
----
-3401

onlyif mysql # aggregate syntax: 
query II rowsort label-8332
SELECT 33 AS col1, COUNT( * ) AS col0
----
33
1

skipif mysql # not compatible
query II rowsort label-8332
SELECT 33 AS col1, COUNT ( * ) AS col0
----
33
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8333
SELECT 91 DIV + - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8333
SELECT 91 / + - 92 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL - + COUNT( * ) + + 36
----
35

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL - + COUNT ( * ) + + 36
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8335
SELECT DISTINCT 14 * + + COUNT( * ) - - 91 * + COALESCE ( + + 55, - + 85 + + + 86 * + 4, + 55 * + CAST( - 11 AS SIGNED ) * + MIN( + + 44 ) * - NULLIF ( 43, - + 66 ) + + 99 - - CAST( - 95 AS SIGNED ) + + ( ( 24 ) ) * 86 * COUNT( * ) ) AS col1
----
5019

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT 14 * + + COUNT ( * ) - - 91 * + COALESCE ( + + 55, - + 85 + + + 86 * + 4, + 55 * + CAST ( - 11 AS INTEGER ) * + MIN ( + + 44 ) * - NULLIF ( 43, - + 66 ) + + 99 - - CAST ( - 95 AS INTEGER ) + + ( ( 24 ) ) * 86 * COUNT ( * ) ) AS col1
----
5019

onlyif mysql # aggregate syntax: 
query II rowsort label-8336
SELECT DISTINCT - 47 + + 74 * + 67 AS col1, + COUNT( * ) + COALESCE ( 49, - - CASE - 11 WHEN - + 29 * 13 THEN + ( - 52 ) ELSE 83 END )
----
4911
50

skipif mysql # not compatible
query II rowsort label-8336
SELECT DISTINCT - 47 + + 74 * + 67 AS col1, + COUNT ( * ) + COALESCE ( 49, - - CASE - 11 WHEN - + 29 * 13 THEN + ( - 52 ) ELSE 83 END )
----
4911
50

query I rowsort
SELECT ALL - 14 * + 18
----
-252

query II rowsort
SELECT ALL 19, + 50 AS col1
----
19
50

query II rowsort
SELECT DISTINCT 86 AS col2, + 65
----
86
65

query I rowsort
SELECT DISTINCT + 12 - + - 63
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT DISTINCT + 31 - + 4 * - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT + 31 - + 4 * - COUNT ( * )
----
35

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

query II rowsort
SELECT DISTINCT - 60 AS col0, + 68 AS col0
----
-60
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT 95 * - COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT 95 * - COUNT ( * ) AS col2
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT + 81 * COUNT( + 81 ) + + 63
----
144

skipif mysql # not compatible
query I rowsort label-8346
SELECT + 81 * COUNT ( + 81 ) + + 63
----
144

query I rowsort
SELECT 74 * + 53
----
3922

onlyif mysql # aggregate syntax: 
query II rowsort label-8348
SELECT DISTINCT 53 * 99 AS col2, 38 * MIN( DISTINCT + - 94 ) AS col1
----
5247
-3572

skipif mysql # not compatible
query II rowsort label-8348
SELECT DISTINCT 53 * 99 AS col2, 38 * MIN ( DISTINCT + - 94 ) AS col1
----
5247
-3572

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT 93 + - 34 DIV + 58 * 15 * 32 * - 1 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8350
SELECT 93 + - 34 / + 58 * 15 * 32 * - 1 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT DISTINCT 41 + SUM( - - 57 ) + 39 AS col1
----
137

skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT 41 + SUM ( - - 57 ) + 39 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT DISTINCT 23 + + NULLIF ( - COUNT( * ), - 55 + COUNT( * ) )
----
22

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT 23 + + NULLIF ( - COUNT ( * ), - 55 + COUNT ( * ) )
----
22

query I rowsort
SELECT ALL 35 + 11
----
46

query II rowsort
SELECT DISTINCT ( 85 ) + - + 92 + - 21 * 93, 51 col0
----
-1960
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8355
SELECT ALL COUNT( * ) + + + 2 + - 59 * + 14 * - + COALESCE ( - 17, + - CAST( + + 20 AS SIGNED ) ) + + 18 - + 14 + 90 * + 36 * + 13
----
28085

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL COUNT ( * ) + + + 2 + - 59 * + 14 * - + COALESCE ( - 17, + - CAST ( + + 20 AS INTEGER ) ) + + 18 - + 14 + 90 * + 36 * + 13
----
28085

query I rowsort
SELECT ALL 58 + - + 17
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8357
SELECT DISTINCT - 53 * - COUNT( * ) col0, 8 AS col0
----
53
8

skipif mysql # not compatible
query II rowsort label-8357
SELECT DISTINCT - 53 * - COUNT ( * ) col0, 8 AS col0
----
53
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT DISTINCT NULLIF ( + - 41, 93 ) + COUNT( * ) + + 79 * MAX( + + 47 )
----
3673

skipif mysql # not compatible
query I rowsort label-8358
SELECT DISTINCT NULLIF ( + - 41, 93 ) + COUNT ( * ) + + 79 * MAX ( + + 47 )
----
3673

query I rowsort
SELECT 75 + + 45 AS col2
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8360
SELECT ALL + COALESCE ( - SUM( - + 36 ), + 26 ) * - COUNT( * ) * + - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL + COALESCE ( - SUM ( - + 36 ), + 26 ) * - COUNT ( * ) * + - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT ALL - 9 + + 58 * - + 56 AS col2
----
-3257

query I rowsort
SELECT - + CASE 30 WHEN 91 THEN + 24 END AS col2
----
NULL

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

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

query I rowsort
SELECT 54 * + 64 * 40 AS col1
----
138240

query II rowsort
SELECT 85 + + 51 AS col2, + 32
----
136
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8366
SELECT - 30 + + ( 94 ) DIV - MIN( + + 69 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8366
SELECT - 30 + + ( 94 ) / - MIN ( + + 69 ) AS col0
----
-31

query I rowsort
SELECT - 43 * - 53 * - + 13
----
-29627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8368
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) DIV + - 3 * - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) / + - 3 * - 58 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8369
SELECT DISTINCT + + CAST( - + MIN( ALL CAST( NULL AS SIGNED ) ) AS SIGNED ) / + 87 + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT + + CAST ( - + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS INTEGER ) / + 87 + - 61
----
NULL

query I rowsort
SELECT 54 + + 80 AS col1
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8371
SELECT + 79 + - CASE - COUNT( * ) WHEN - 47 / + + 69 + - 90 + - MAX( ALL - 77 ) - - + 46 * - SUM( - 81 ) * - + 87 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8371
SELECT + 79 + - CASE - COUNT ( * ) WHEN - 47 / + + 69 + - 90 + - MAX ( ALL - 77 ) - - + 46 * - SUM ( - 81 ) * - + 87 THEN CAST ( NULL AS INTEGER ) END
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-8373
SELECT DISTINCT MIN ( DISTINCT + CAST ( + 69 AS INTEGER ) )
----
69

query I rowsort
SELECT + 93 + - + 81
----
12

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

query I rowsort
SELECT ALL - 32 * 50
----
-1600

query I rowsort
SELECT 68 * - 8
----
-544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8378
SELECT - 27 / + + 27 + - CAST( NULL AS SIGNED ) + 92 * 23 / - 25 * - COALESCE ( + MIN( 78 ), - COUNT( * ) ) + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT - 27 / + + 27 + - CAST ( NULL AS INTEGER ) + 92 * 23 / - 25 * - COALESCE ( + MIN ( 78 ), - COUNT ( * ) ) + - 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8379
SELECT COUNT( * ) * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8379
SELECT COUNT ( * ) * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL ( + MIN( 96 ) ) * - ( + + ( - 52 ) ) + - COUNT( * ) - + 51 + - 62 AS col0
----
4878

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL ( + MIN ( 96 ) ) * - ( + + ( - 52 ) ) + - COUNT ( * ) - + 51 + - 62 AS col0
----
4878

query I rowsort
SELECT DISTINCT + CASE + - 72 WHEN - 43 + + 21 THEN + - 51 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT ALL - CASE + + 74 WHEN - - COALESCE ( + - 56, COUNT( * ) ) THEN + 41 + - + 53 ELSE - MAX( - - 28 ) END * COUNT( DISTINCT 8 ) * 83 + - 68 + - - 54 + + COUNT( * ) + MAX( ALL + 40 )
----
2351

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL - CASE + + 74 WHEN - - COALESCE ( + - 56, COUNT ( * ) ) THEN + 41 + - + 53 ELSE - MAX ( - - 28 ) END * COUNT ( DISTINCT 8 ) * 83 + - 68 + - - 54 + + COUNT ( * ) + MAX ( ALL + 40 )
----
2351

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT 8 * + ( SUM( + 8 ) ) * 99 + - - 29 AS col1
----
6365

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT 8 * + ( SUM ( + 8 ) ) * 99 + - - 29 AS col1
----
6365

query I rowsort
SELECT - 94 * - COALESCE ( + 96, + 2 + + + 50 )
----
9024

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT DISTINCT 14 * COUNT( * ) + SUM( DISTINCT - - 96 )
----
110

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT 14 * COUNT ( * ) + SUM ( DISTINCT - - 96 )
----
110

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

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

skipif mysql # not compatible
query I rowsort label-8387
SELECT + 29 * + COUNT ( * ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT + COUNT( * ) * - 51 + - 33 * + 50
----
-1701

skipif mysql # not compatible
query I rowsort label-8388
SELECT + COUNT ( * ) * - 51 + - 33 * + 50
----
-1701

onlyif mysql # DIV for integer division: 
query I rowsort label-8389
SELECT - 93 DIV 61 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8389
SELECT - 93 / 61 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ALL + COUNT( 18 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL + COUNT ( 18 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8391
SELECT ALL COUNT( ALL - 22 ) * - + 30 - + 18 DIV 25 + - COUNT( * ) + + 52 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL COUNT ( ALL - 22 ) * - + 30 - + 18 / 25 + - COUNT ( * ) + + 52 AS col2
----
21

query I rowsort
SELECT + 4 + + 20 * - 38 * - 73 AS col0
----
55484

query I rowsort
SELECT DISTINCT - - 86 * + + 31 - 65
----
2601

query I rowsort
SELECT ALL + COALESCE ( - 11, + + 43 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-8395
SELECT ALL 4 - + COUNT( ALL + 80 ) + - COUNT( * ) + + + 45 AS col1, - 72 col2
----
47
-72

skipif mysql # not compatible
query II rowsort label-8395
SELECT ALL 4 - + COUNT ( ALL + 80 ) + - COUNT ( * ) + + + 45 AS col1, - 72 col2
----
47
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT DISTINCT + MAX( 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT + MAX ( 34 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT - MIN( + 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-8397
SELECT - MIN ( + 14 ) AS col2
----
-14

query I rowsort
SELECT + 70 + + + 69 AS col1
----
139

query I rowsort
SELECT + 75 * 60 AS col0
----
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT DISTINCT - CASE - - COUNT( ALL - 60 ) WHEN - + 28 THEN - 59 + + COUNT( * ) * - 56 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT - CASE - - COUNT ( ALL - 60 ) WHEN - + 28 THEN - 59 + + COUNT ( * ) * - 56 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8401
SELECT ALL + COUNT( * ) AS col2, COUNT( * ) + ( - + 83 )
----
1
-82

skipif mysql # not compatible
query II rowsort label-8401
SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) + ( - + 83 )
----
1
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-8402
SELECT + - COUNT( 95 ) * 66, - 23 AS col0
----
-66
-23

skipif mysql # not compatible
query II rowsort label-8402
SELECT + - COUNT ( 95 ) * 66, - 23 AS col0
----
-66
-23

query I rowsort
SELECT ALL + ( - 88 ) * + + 2
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8404
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8404
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
1

query II rowsort
SELECT ALL + 25 col2, 52
----
25
52

query I rowsort
SELECT + 77 * + 5
----
385

query I rowsort
SELECT + 16 - + + 91 * + 41
----
-3715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT DISTINCT + 54 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT + 54 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( - 90 ) * 60 AS col1
----
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT - 13 * COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8410
SELECT - 13 * COUNT ( * ) AS col2
----
-13

query I rowsort
SELECT DISTINCT + 19 + - ( 94 )
----
-75

query I rowsort
SELECT DISTINCT 24 + + 96
----
120

query II rowsort
SELECT ALL + 29 AS col1, 32 + + 52
----
29
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8414
SELECT ALL - 72 DIV 98 + + - 55 + + ( - - 52 )
----
-3

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - 72 / 98 + + - 55 + + ( - - 52 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8415
SELECT ALL 10 / - 67 * + SUM( 21 ) + 82 * + CAST( NULL AS SIGNED ) + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL 10 / - 67 * + SUM ( 21 ) + 82 * + CAST ( NULL AS INTEGER ) + 19
----
NULL

query II rowsort
SELECT DISTINCT + 42, 50 AS col0
----
42
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8417
SELECT DISTINCT + COUNT( * ) AS col0, CAST( 44 AS SIGNED ) + - + 38
----
1
6

skipif mysql # not compatible
query II rowsort label-8417
SELECT DISTINCT + COUNT ( * ) AS col0, CAST ( 44 AS INTEGER ) + - + 38
----
1
6

query I rowsort
SELECT + 41 + + - 33 AS col2
----
8

query II rowsort
SELECT + 18, 52 col1
----
18
52

query I rowsort
SELECT + 34 * + 5 + 23 + + ( 77 ) * 10 - - 18
----
981

query I rowsort
SELECT - 23 - 37
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8422
SELECT + COUNT( * ), 22 AS col0
----
1
22

skipif mysql # not compatible
query II rowsort label-8422
SELECT + COUNT ( * ), 22 AS col0
----
1
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8423
SELECT ALL - 79 / - - 38 * - NULLIF ( - - 30, - 40 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL - 79 / - - 38 * - NULLIF ( - - 30, - 40 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 59 * 7 + + 8 col2
----
421

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT - 87 * + COUNT( * ) * - 63 * + + 6 col0
----
32886

skipif mysql # not compatible
query I rowsort label-8425
SELECT - 87 * + COUNT ( * ) * - 63 * + + 6 col0
----
32886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8426
SELECT ALL + CAST( - 53 AS SIGNED ) AS col2, 0 AS col2
----
-53
0

skipif mysql # not compatible
query II rowsort label-8426
SELECT ALL + CAST ( - 53 AS INTEGER ) AS col2, 0 AS col2
----
-53
0

query I rowsort
SELECT - 63 + + 64 * + 60 * - 41
----
-157503

query II rowsort
SELECT ALL + 63 AS col0, + 57 AS col1
----
63
57

query I rowsort
SELECT ( - 43 ) AS col2
----
-43

query I rowsort
SELECT - 96 * + 17 + - 59
----
-1691

query I rowsort
SELECT DISTINCT + COALESCE ( + - 80, + 35 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8432
SELECT - + CAST( 83 AS SIGNED ) * - 39 + + 54 - + 85 + - - COALESCE ( 29, + MAX( DISTINCT - 98 ), + 85 * + ( - 18 ) ) + + 41 - - - 72 DIV - 47
----
3277

skipif mysql # not compatible
query I rowsort label-8432
SELECT - + CAST ( 83 AS INTEGER ) * - 39 + + 54 - + 85 + - - COALESCE ( 29, + MAX ( DISTINCT - 98 ), + 85 * + ( - 18 ) ) + + 41 - - - 72 / - 47
----
3277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT DISTINCT - + 50 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT - + 50 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( + 93, - NULLIF ( + + 53, - 98 ) )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8435
SELECT ALL - 27 * ( + CAST( NULL AS SIGNED ) ) + + 90 AS col2, - ( - 31 )
----
NULL
31

skipif mysql # not compatible
query II rowsort label-8435
SELECT ALL - 27 * ( + CAST ( NULL AS INTEGER ) ) + + 90 AS col2, - ( - 31 )
----
NULL
31

query I rowsort
SELECT ALL + + 42 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8437
SELECT - + 88 / CAST( NULL AS SIGNED ) AS col1, 85
----
NULL
85

skipif mysql # not compatible
query II rowsort label-8437
SELECT - + 88 / CAST ( NULL AS INTEGER ) AS col1, 85
----
NULL
85

query II rowsort
SELECT ALL + 48 AS col1, + 63 AS col2
----
48
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT ALL - 66 * + CASE MIN( - + 35 ) WHEN + MIN( ALL 96 ) THEN NULL ELSE - - 24 + + ( - 81 ) END * 1 * - COUNT( * ) + 50
----
-3712

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL - 66 * + CASE MIN ( - + 35 ) WHEN + MIN ( ALL 96 ) THEN NULL ELSE - - 24 + + ( - 81 ) END * 1 * - COUNT ( * ) + 50
----
-3712

query I rowsort
SELECT DISTINCT - 75 * + - 84 AS col2
----
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL 33 * - COUNT( * ) + 1 col1
----
-32

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL 33 * - COUNT ( * ) + 1 col1
----
-32

query I rowsort
SELECT - + 11 + + + ( - - 44 )
----
33

query I rowsort
SELECT + + 5 - + 20 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8444
SELECT + 75 * 56 DIV 27 + + - 49 * + ( - 19 ) * - 47 + - + 66 * + ( - COALESCE ( + 84, + + CAST( NULL AS SIGNED ) * COALESCE ( - NULLIF ( + 61, COUNT( * ) * - 84 * - + SUM( DISTINCT + 1 ) * + 70 + COUNT( * ) - 47 + COUNT( * ) DIV - - 14 ), 44 ) + - + 69 ) ) + - 74
----
-38132

skipif mysql # not compatible
query I rowsort label-8444
SELECT + 75 * 56 / 27 + + - 49 * + ( - 19 ) * - 47 + - + 66 * + ( - COALESCE ( + 84, + + CAST ( NULL AS INTEGER ) * COALESCE ( - NULLIF ( + 61, COUNT ( * ) * - 84 * - + SUM ( DISTINCT + 1 ) * + 70 + COUNT ( * ) - 47 + COUNT ( * ) / - - 14 ), 44 ) + - + 69 ) ) + - 74
----
-38132

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL + COUNT( * ) + - COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL + COUNT ( * ) + - COUNT ( * ) col1
----
0

query II rowsort
SELECT + 33 col2, + 71
----
33
71

query I rowsort
SELECT + + 61 + + 76
----
137

query I rowsort
SELECT ALL + 33 + - - 52 + + 78 AS col1
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT DISTINCT COALESCE ( + 68, - + CASE ( 88 ) WHEN - 77 - + 64 + + - ( 41 ) * - 93 THEN - - 48 * - 84 DIV 83 WHEN - 70 + + 36 * + 70 THEN NULL ELSE NULL END + - - 16 ) * - + 39 * 70 AS col1
----
-185640

skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT COALESCE ( + 68, - + CASE ( 88 ) WHEN - 77 - + 64 + + - ( 41 ) * - 93 THEN - - 48 * - 84 / 83 WHEN - 70 + + 36 * + 70 THEN NULL ELSE NULL END + - - 16 ) * - + 39 * 70 AS col1
----
-185640

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT SUM( ALL - CASE 1 WHEN - 57 * 51 * + 1 THEN NULL WHEN 5 THEN + + 52 ELSE + 15 END ) + - 75 + + 91 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8450
SELECT SUM ( ALL - CASE 1 WHEN - 57 * 51 * + 1 THEN NULL WHEN 5 THEN + + 52 ELSE + 15 END ) + - 75 + + 91 AS col1
----
1

query I rowsort
SELECT ALL 83 + 11 col2
----
94

query I rowsort
SELECT 3 + + 67
----
70

query I rowsort
SELECT DISTINCT 77 * + + 44 * - 80 * - 63 AS col0
----
17075520

query I rowsort
SELECT ALL 12 * - NULLIF ( + 74, + 11 ) * - ( + 43 )
----
38184

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8455
SELECT 93 DIV COUNT( * ), - 3 AS col0
----
93
-3

skipif mysql # not compatible
query II rowsort label-8455
SELECT 93 / COUNT ( * ), - 3 AS col0
----
93
-3

query II rowsort
SELECT 28 + + + 9, + 24 AS col0
----
37
24

query II rowsort
SELECT 38 + - 6 * - - 12, 87 + - + 32 AS col2
----
-34
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8458
SELECT DISTINCT COUNT( * ) - + 64 AS col2, - 64 * - - 80 * + - 39 DIV + - COUNT( * )
----
-63
-199680

skipif mysql # not compatible
query II rowsort label-8458
SELECT DISTINCT COUNT ( * ) - + 64 AS col2, - 64 * - - 80 * + - 39 / + - COUNT ( * )
----
-63
-199680

query I rowsort
SELECT + 30 * + - 67
----
-2010

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8460
SELECT - + 28 * CAST( NULL AS SIGNED ) + + 65 + - 3 + - 9 AS col2, + 64
----
NULL
64

skipif mysql # not compatible
query II rowsort label-8460
SELECT - + 28 * CAST ( NULL AS INTEGER ) + + 65 + - 3 + - 9 AS col2, + 64
----
NULL
64

query I rowsort
SELECT DISTINCT + 31 * + 83 AS col2
----
2573

query I rowsort
SELECT + ( 6 ) AS col1
----
6

query I rowsort
SELECT + ( - 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL - - 98 * - - COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL - - 98 * - - COUNT ( * ) AS col0
----
98

query I rowsort
SELECT DISTINCT - + 88 col2
----
-88

query II rowsort
SELECT ALL - 37 * + 76, 44 * 59 AS col2
----
-2812
2596

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT 26 * - - ( 48 ) / + + CASE - - ( + COUNT( * ) ) WHEN 85 * 67 * COUNT( * ) THEN - + 52 * + 58 * 82 + + - AVG ( ALL 7 ) * 83 * + COUNT( * ) END + + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT 26 * - - ( 48 ) / + + CASE - - ( + COUNT ( * ) ) WHEN 85 * 67 * COUNT ( * ) THEN - + 52 * + 58 * 82 + + - AVG ( ALL 7 ) * 83 * + COUNT ( * ) END + + + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT DISTINCT - + CASE - 71 WHEN - - 20 + + AVG ( + 95 ) * + 5 THEN COUNT( * ) / + 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT - + CASE - 71 WHEN - - 20 + + AVG ( + 95 ) * + 5 THEN COUNT ( * ) / + 75 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8469
SELECT ALL + + 93 + COUNT( DISTINCT ( - 70 ) ) * + NULLIF ( CAST( - 62 AS SIGNED ), - ( - COUNT( * ) ) * + + COALESCE ( - MAX( + - CAST( NULL AS SIGNED ) ), 29 + 78 + - 0, + 98 ) + - 8 ) AS col0, + 63 * - SUM( + 62 ) * + - 7 * - - 13 + ( + 3 )
----
31
355449

skipif mysql # not compatible
query II rowsort label-8469
SELECT ALL + + 93 + COUNT ( DISTINCT ( - 70 ) ) * + NULLIF ( CAST ( - 62 AS INTEGER ), - ( - COUNT ( * ) ) * + + COALESCE ( - MAX ( + - CAST ( NULL AS INTEGER ) ), 29 + 78 + - 0, + 98 ) + - 8 ) AS col0, + 63 * - SUM ( + 62 ) * + - 7 * - - 13 + ( + 3 )
----
31
355449

query I rowsort
SELECT DISTINCT - 87 + 74 AS col0
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8471
SELECT DISTINCT - + 81 + - 81 * + 96 / + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT - + 81 + - 81 * + 96 / + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 82 + 63 col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT COUNT( * ) * 35 * + 80 - + 45 + + 12
----
2767

skipif mysql # not compatible
query I rowsort label-8473
SELECT COUNT ( * ) * 35 * + 80 - + 45 + + 12
----
2767

onlyif mysql # DIV for integer division: 
query I rowsort label-8474
SELECT ALL - 94 DIV + + 20
----
-4

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL - 94 / + + 20
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8475
SELECT SUM( ALL + CAST( NULL AS DECIMAL ) ) * + + COUNT( * ) AS col1, 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-8475
SELECT SUM ( ALL + CAST ( NULL AS REAL ) ) * + + COUNT ( * ) AS col1, 8
----
NULL
8

query I rowsort
SELECT ALL 95 col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT DISTINCT + 19 * + - MAX( DISTINCT - 47 )
----
893

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT + 19 * + - MAX ( DISTINCT - 47 )
----
893

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT ALL MAX( ALL 70 ) + NULLIF ( + 30, 78 ) col2
----
100

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL MAX ( ALL 70 ) + NULLIF ( + 30, 78 ) col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT COUNT( * ) * + 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8479
SELECT COUNT ( * ) * + 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT DISTINCT MIN( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT MIN ( DISTINCT + 79 )
----
79

query I rowsort
SELECT 84 - + - 58 col0
----
142

query II rowsort
SELECT 69 AS col2, 36 * 5 AS col2
----
69
180

onlyif mysql # aggregate syntax: 
query II rowsort label-8483
SELECT ALL 12 col2, MAX( - + 6 )
----
12
-6

skipif mysql # not compatible
query II rowsort label-8483
SELECT ALL 12 col2, MAX ( - + 6 )
----
12
-6

query I rowsort
SELECT 9 * + 96
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT DISTINCT - 84 - + - CASE - COUNT( * ) WHEN - COUNT( * ) THEN 53 + - - 6 + + CASE - 19 WHEN - - 15 THEN - 75 END WHEN - ( 11 ) * 32 + + CASE - COALESCE ( + 91, - 55 ) WHEN - - 54 THEN + 37 - + - SUM( 20 ) / + CASE 5 WHEN 62 * 5 THEN - 70 * + ( 72 ) + - COUNT( * ) * - MIN( DISTINCT - 6 * + 38 ) WHEN + CASE 8 WHEN 27 + 81 THEN + 18 WHEN + 34 THEN + 28 END / NULLIF ( + 13 + 15, + 19 ) THEN NULL WHEN + 33 + - 55 / 47 THEN 90 * - 90 ELSE + 69 * + 19 END + 16 * 42 ELSE 97 END THEN + 39 + COUNT( * ) * 89 END * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT - 84 - + - CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN 53 + - - 6 + + CASE - 19 WHEN - - 15 THEN - 75 END WHEN - ( 11 ) * 32 + + CASE - COALESCE ( + 91, - 55 ) WHEN - - 54 THEN + 37 - + - SUM ( 20 ) / + CASE 5 WHEN 62 * 5 THEN - 70 * + ( 72 ) + - COUNT ( * ) * - MIN ( DISTINCT - 6 * + 38 ) WHEN + CASE 8 WHEN 27 + 81 THEN + 18 WHEN + 34 THEN + 28 END / NULLIF ( + 13 + 15, + 19 ) THEN NULL WHEN + 33 + - 55 / 47 THEN 90 * - 90 ELSE + 69 * + 19 END + 16 * 42 ELSE 97 END THEN + 39 + COUNT ( * ) * 89 END * 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL MIN( ALL 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL MIN ( ALL 10 ) AS col1
----
10

query I rowsort
SELECT ALL 58 * + 56
----
3248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8488
SELECT 28 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT 28 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 70 - + 4 * - + 78 col2
----
382

query I rowsort
SELECT ALL 75 * 77 col1
----
5775

onlyif mysql # DIV for integer division: 
query I rowsort label-8491
SELECT DISTINCT 87 DIV + 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT 87 / + 93 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT + MIN( ALL 12 ) col1
----
12

skipif mysql # not compatible
query I rowsort label-8492
SELECT + MIN ( ALL 12 ) col1
----
12

query II rowsort
SELECT ALL - 79 AS col2, 61 * + - 28
----
-79
-1708

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT 24 * MIN( DISTINCT - 46 ) * + + 34 + + 65 * 49 AS col2
----
-34351

skipif mysql # not compatible
query I rowsort label-8494
SELECT 24 * MIN ( DISTINCT - 46 ) * + + 34 + + 65 * 49 AS col2
----
-34351

query I rowsort
SELECT - 88 * + + 86 + + 4 AS col1
----
-7564

query I rowsort
SELECT ALL - - ( + 29 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8497
SELECT - COUNT( * ), 26 AS col2
----
-1
26

skipif mysql # not compatible
query II rowsort label-8497
SELECT - COUNT ( * ), 26 AS col2
----
-1
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8498
SELECT - MAX( DISTINCT 93 ) DIV + COALESCE ( - 24, - SUM( DISTINCT - ( ( - 28 ) ) ) + + 32 ) + 86 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8498
SELECT - MAX ( DISTINCT 93 ) / + COALESCE ( - 24, - SUM ( DISTINCT - ( ( - 28 ) ) ) + + 32 ) + 86 AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8499
SELECT ALL + 77 + - + CAST( - - COALESCE ( + - COUNT( * ), - AVG ( DISTINCT - 17 ) ) AS SIGNED ) + + 94 + COUNT( * )
----
173

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL + 77 + - + CAST ( - - COALESCE ( + - COUNT ( * ), - AVG ( DISTINCT - 17 ) ) AS INTEGER ) + + 94 + COUNT ( * )
----
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8500
SELECT ALL + - MAX( + - 11 ) DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL + - MAX ( + - 11 ) / + 87
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8501
SELECT CAST( + 23 AS SIGNED ) DIV + 69 col2
----
0

skipif mysql # not compatible
query I rowsort label-8501
SELECT CAST ( + 23 AS INTEGER ) / + 69 col2
----
0

query II rowsort
SELECT 74, ( + 83 ) AS col0
----
74
83

query I rowsort
SELECT + ( - + 18 )
----
-18

query I rowsort
SELECT ALL + 75 + 82 AS col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT - MAX( ALL + + 63 ) col1
----
-63

skipif mysql # not compatible
query I rowsort label-8505
SELECT - MAX ( ALL + + 63 ) col1
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-8506
SELECT - 17 col1, 41 + + + COALESCE ( COUNT( * ), 71 + - ( 76 ) * + - COUNT( * ), 23 )
----
-17
42

skipif mysql # not compatible
query II rowsort label-8506
SELECT - 17 col1, 41 + + + COALESCE ( COUNT ( * ), 71 + - ( 76 ) * + - COUNT ( * ), 23 )
----
-17
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8507
SELECT + COUNT( * ) AS col1, - 55 col0
----
1
-55

skipif mysql # not compatible
query II rowsort label-8507
SELECT + COUNT ( * ) AS col1, - 55 col0
----
1
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8508
SELECT ALL - + 78 * - - CAST( NULL AS SIGNED ) + 10 col0, 86 * + + COUNT( * ) + - 28 AS col1
----
NULL
58

skipif mysql # not compatible
query II rowsort label-8508
SELECT ALL - + 78 * - - CAST ( NULL AS INTEGER ) + 10 col0, 86 * + + COUNT ( * ) + - 28 AS col1
----
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT DISTINCT + + 16 + + 4 + COUNT( ALL - ( - 85 ) )
----
21

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT + + 16 + + 4 + COUNT ( ALL - ( - 85 ) )
----
21

query II rowsort
SELECT + - 46, 15 col1
----
-46
15

query I rowsort
SELECT ALL + 34 + + CASE - 2 WHEN 6 THEN + + 67 + 95 ELSE + 7 END
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8512
SELECT + - 57 * - - 92 DIV CAST( - 98 AS SIGNED ) DIV - - 85 + - COUNT( * ) - 46 - 80 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-8512
SELECT + - 57 * - - 92 / CAST ( - 98 AS INTEGER ) / - - 85 + - COUNT ( * ) - 46 - 80 AS col0
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8513
SELECT DISTINCT CASE COALESCE ( + 21, COUNT( * ), + - COALESCE ( + - 42, 84, + CAST( NULL AS DECIMAL ) / + + 21 / 3 * 2 + - 11 ) ) WHEN + 68 THEN + 87 * - SUM( + + 44 ) + + 15 * - COUNT( ALL - ( - 40 ) ) - + - 4 - - - 87 + - 99 / CAST( + COUNT( - 96 ) AS SIGNED ) WHEN - 67 + + ( 43 ) + 54 THEN MAX( - COALESCE ( 90, 33 * 91 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT CASE COALESCE ( + 21, COUNT ( * ), + - COALESCE ( + - 42, 84, + CAST ( NULL AS REAL ) / + + 21 / 3 * 2 + - 11 ) ) WHEN + 68 THEN + 87 * - SUM ( + + 44 ) + + 15 * - COUNT ( ALL - ( - 40 ) ) - + - 4 - - - 87 + - 99 / CAST ( + COUNT ( - 96 ) AS INTEGER ) WHEN - 67 + + ( 43 ) + 54 THEN MAX ( - COALESCE ( 90, 33 * 91 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL SUM( DISTINCT - 63 ) * + 98 col2
----
-6174

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL SUM ( DISTINCT - 63 ) * + 98 col2
----
-6174

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT - - 53 + + - COUNT( * ) * - + 73 + - 5 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-8515
SELECT - - 53 + + - COUNT ( * ) * - + 73 + - 5 AS col1
----
121

query II rowsort
SELECT DISTINCT + 10 AS col1, 14 AS col2
----
10
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8517
SELECT ALL + 33 + + 20 + + 59 DIV 15 * + ( + COUNT( * ) ) - + 84, 13 AS col1
----
-28
13

skipif mysql # not compatible
query II rowsort label-8517
SELECT ALL + 33 + + 20 + + 59 / 15 * + ( + COUNT ( * ) ) - + 84, 13 AS col1
----
-28
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8518
SELECT + COUNT( * ) * + 60 * + MIN( - - 34 ) AS col2, 71 AS col0
----
2040
71

skipif mysql # not compatible
query II rowsort label-8518
SELECT + COUNT ( * ) * + 60 * + MIN ( - - 34 ) AS col2, 71 AS col0
----
2040
71

query I rowsort
SELECT - 48 - - 62 AS col0
----
14

query II rowsort
SELECT - 18 + - + 99 AS col2, 38 + 52 - 79 col0
----
-117
11

query I rowsort
SELECT - 24 - + 14 AS col0
----
-38

query I rowsort
SELECT + 0 + + 69 + 60
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8523
SELECT DISTINCT - 16 - - + 56, + 67 * - AVG ( ALL - + 50 ) * + + CAST( NULL AS SIGNED ) + 52 + + + MIN( + 18 ) + + MIN( + ( 73 ) ) + + - ( 33 ) AS col1
----
40
NULL

skipif mysql # not compatible
query II rowsort label-8523
SELECT DISTINCT - 16 - - + 56, + 67 * - AVG ( ALL - + 50 ) * + + CAST ( NULL AS INTEGER ) + 52 + + + MIN ( + 18 ) + + MIN ( + ( 73 ) ) + + - ( 33 ) AS col1
----
40
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8524
SELECT DISTINCT + 25 * + COUNT( * ) col2, 26
----
25
26

skipif mysql # not compatible
query II rowsort label-8524
SELECT DISTINCT + 25 * + COUNT ( * ) col2, 26
----
25
26

query I rowsort
SELECT ALL ( - 20 ) AS col2
----
-20

query I rowsort
SELECT - 88 + - 78 + - + 73
----
-239

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8527
SELECT ALL + COUNT( * ) DIV 67 col2
----
0

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL + COUNT ( * ) / 67 col2
----
0

query I rowsort
SELECT - 64 + + 38 * + 31
----
1114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8529
SELECT DISTINCT COALESCE ( - 49, + CAST( NULL AS SIGNED ) * - 11, COUNT( * ) * - 91 DIV - COUNT( * ) ) AS col1, 21 + 7 AS col2
----
-49
28

skipif mysql # not compatible
query II rowsort label-8529
SELECT DISTINCT COALESCE ( - 49, + CAST ( NULL AS INTEGER ) * - 11, COUNT ( * ) * - 91 / - COUNT ( * ) ) AS col1, 21 + 7 AS col2
----
-49
28

query I rowsort
SELECT DISTINCT + ( + - 18 ) * + 65 - - - CASE + 14 WHEN - 28 - + 50 THEN - 69 WHEN + + 15 * + 26 + - 28 THEN NULL END * 37 * + - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT ALL - COUNT( 41 ) * - 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL - COUNT ( 41 ) * - 62 AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8532
SELECT + 58 * - - 62 DIV - COUNT( * )
----
-3596

skipif mysql # not compatible
query I rowsort label-8532
SELECT + 58 * - - 62 / - COUNT ( * )
----
-3596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8533
SELECT + COUNT( * ) + - + SUM( - + ( - - 31 ) ) * COUNT( * ) * - 13 DIV COUNT( * ) + + - 51
----
-453

skipif mysql # not compatible
query I rowsort label-8533
SELECT + COUNT ( * ) + - + SUM ( - + ( - - 31 ) ) * COUNT ( * ) * - 13 / COUNT ( * ) + + - 51
----
-453

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT DISTINCT - ( + 16 ) * + - COUNT( * ) / + SUM( ALL ( - CASE 75 WHEN 35 + - 97 THEN + 51 ELSE NULL END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT - ( + 16 ) * + - COUNT ( * ) / + SUM ( ALL ( - CASE 75 WHEN 35 + - 97 THEN + 51 ELSE NULL END ) ) AS col0
----
NULL

query II rowsort
SELECT ALL ( + 80 ) AS col2, 81 * + 7 AS col0
----
80
567

query I rowsort
SELECT + 10 + 70
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT - 22 * + - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-8537
SELECT - 22 * + - COUNT ( * )
----
22

query I rowsort
SELECT ALL 31 * + 29 + + - 11 + - - 46 * - 13 + + 70 AS col1
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + - 58 * - 23 + + ( + 37 )
----
1372

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + - 58 * - 23 + + ( + 37 )
----
1372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8540
SELECT ALL + MAX( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL + MAX ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + + 26 * + 81 + 22 AS col2
----
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL 39 * - MAX( 20 ) + + - 96 AS col1
----
-876

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL 39 * - MAX ( 20 ) + + - 96 AS col1
----
-876

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT - + 97 * COUNT( * ) + 12 * - - 49 AS col2
----
491

skipif mysql # not compatible
query I rowsort label-8543
SELECT - + 97 * COUNT ( * ) + 12 * - - 49 AS col2
----
491

query I rowsort
SELECT + + 18 + + NULLIF ( - - 43, + 21 )
----
61

query I rowsort
SELECT + 41 * - + ( - 26 ) + + 18 AS col0
----
1084

onlyif mysql # aggregate syntax: 
query II rowsort label-8546
SELECT ALL 11 * - - 88 AS col2, COUNT( * ) + - 14 + - - 58 + - 61 AS col1
----
968
-16

skipif mysql # not compatible
query II rowsort label-8546
SELECT ALL 11 * - - 88 AS col2, COUNT ( * ) + - 14 + - - 58 + - 61 AS col1
----
968
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT - 22 * 46 + - COUNT( * ) + - 79 * - + 20 AS col0
----
567

skipif mysql # not compatible
query I rowsort label-8547
SELECT - 22 * 46 + - COUNT ( * ) + - 79 * - + 20 AS col0
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT DISTINCT MAX( DISTINCT - 36 ) * - 66 AS col2
----
2376

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT MAX ( DISTINCT - 36 ) * - 66 AS col2
----
2376

query I rowsort
SELECT ALL 26 * - 20 + 92 AS col0
----
-428

query I rowsort
SELECT + - 57 + - + 38
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT + - 99 * + + COUNT( * ) * + ( - + 77 )
----
7623

skipif mysql # not compatible
query I rowsort label-8551
SELECT + - 99 * + + COUNT ( * ) * + ( - + 77 )
----
7623

query I rowsort
SELECT ALL + + 77 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT + - 96 * - + COALESCE ( - ( + 52 ), + 39 * 52 * - + 10 + + + SUM( ALL 23 ) ) + - ( 86 ) AS col2
----
-5078

skipif mysql # not compatible
query I rowsort label-8553
SELECT + - 96 * - + COALESCE ( - ( + 52 ), + 39 * 52 * - + 10 + + + SUM ( ALL 23 ) ) + - ( 86 ) AS col2
----
-5078

query I rowsort
SELECT DISTINCT + 55 * - 10
----
-550

query I rowsort
SELECT + 70 * - 40 + + 60
----
-2740

query I rowsort
SELECT + 74 * + 97 AS col2
----
7178

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT - NULLIF ( + + NULLIF ( 5, - + 3 ), 54 ) * - + 30 + + - COUNT( 19 ) - - 45 AS col1
----
194

skipif mysql # not compatible
query I rowsort label-8557
SELECT - NULLIF ( + + NULLIF ( 5, - + 3 ), 54 ) * - + 30 + + - COUNT ( 19 ) - - 45 AS col1
----
194

query I rowsort
SELECT - 48 + - - 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT MIN( ALL - 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT MIN ( ALL - 42 ) AS col1
----
-42

query I rowsort
SELECT - ( + COALESCE ( 34, - 89, 46, 21 ) ) AS col0
----
-34

query I rowsort
SELECT - 24 + 23 + - - 63 * 78 * - + 59
----
-289927

query I rowsort
SELECT ALL CASE WHEN NULL >= NULL THEN + 13 END
----
NULL

query I rowsort
SELECT - 0 + - + 35 + + - 31 * + 28
----
-903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT ALL COALESCE ( + MIN( + 44 ), CAST( COUNT( * ) AS SIGNED ) + - + COUNT( * ), + + 11 )
----
44

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL COALESCE ( + MIN ( + 44 ), CAST ( COUNT ( * ) AS INTEGER ) + - + COUNT ( * ), + + 11 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT + 71 * + MAX( 50 )
----
3550

skipif mysql # not compatible
query I rowsort label-8565
SELECT + 71 * + MAX ( 50 )
----
3550

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT ALL + ( + 35 ) * - COUNT( * ) * 40 AS col2
----
-1400

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL + ( + 35 ) * - COUNT ( * ) * 40 AS col2
----
-1400

query I rowsort
SELECT DISTINCT ( - 25 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8568
SELECT DISTINCT COUNT( * ) * - NULLIF ( - 74, COALESCE ( + CAST( - + 74 AS SIGNED ), - COUNT( * ) - - + 45, + + MAX( ALL + NULLIF ( CASE - 68 WHEN + 55 THEN NULL WHEN + 69 THEN NULL ELSE - + 86 END, + 69 ) ) / + + 14 + COUNT( * ) * 26 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT COUNT ( * ) * - NULLIF ( - 74, COALESCE ( + CAST ( - + 74 AS INTEGER ), - COUNT ( * ) - - + 45, + + MAX ( ALL + NULLIF ( CASE - 68 WHEN + 55 THEN NULL WHEN + 69 THEN NULL ELSE - + 86 END, + 69 ) ) / + + 14 + COUNT ( * ) * 26 ) )
----
NULL

query I rowsort
SELECT + 52 - - 30 AS col0
----
82

query I rowsort
SELECT + 28 - 45 AS col1
----
-17

query I rowsort
SELECT ALL ( + 83 ) AS col2
----
83

query I rowsort
SELECT ALL ( + 34 ) AS col1
----
34

query I rowsort
SELECT - 5 + - 35
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-8574
SELECT - 22 DIV + + 20
----
-1

skipif mysql # not compatible
query I rowsort label-8574
SELECT - 22 / + + 20
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT DISTINCT + 94 + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT + 94 + + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT ALL COALESCE ( COUNT( * ), 54 )
----
1

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL COALESCE ( COUNT ( * ), 54 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8577
SELECT ALL + 77 + + + MAX( + - CAST( - 43 AS SIGNED ) )
----
120

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + 77 + + + MAX ( + - CAST ( - 43 AS INTEGER ) )
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL + 94 * - 69 * + NULLIF ( - 51, COUNT( * ) ) * 57 + - + 48 AS col1
----
18854754

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL + 94 * - 69 * + NULLIF ( - 51, COUNT ( * ) ) * 57 + - + 48 AS col1
----
18854754

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8579
SELECT DISTINCT - 86 DIV ( COUNT( * ) ) + - 22 * - - 2 + + - 35 + 91 * 44 * - 79
----
-316481

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT - 86 / ( COUNT ( * ) ) + - 22 * - - 2 + + - 35 + 91 * 44 * - 79
----
-316481

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8580
SELECT - 89 DIV - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8580
SELECT - 89 / - COUNT ( * )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8581
SELECT - COALESCE ( + 66, + + COUNT( * ) DIV - 81 )
----
-66

skipif mysql # not compatible
query I rowsort label-8581
SELECT - COALESCE ( + 66, + + COUNT ( * ) / - 81 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8582
SELECT 94 * 47 DIV + COUNT( * ) + - 38 + + 84 AS col0
----
4464

skipif mysql # not compatible
query I rowsort label-8582
SELECT 94 * 47 / + COUNT ( * ) + - 38 + + 84 AS col0
----
4464

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT + COUNT( * ) - 99 + 72
----
-26

skipif mysql # not compatible
query I rowsort label-8583
SELECT + COUNT ( * ) - 99 + 72
----
-26

query II rowsort
SELECT + 79, 99 * + 55 + + ( 38 ) AS col0
----
79
5483

query III rowsort
SELECT 91 AS col2, - ( + - 93 ) AS col2, - 61 col0
----
91
93
-61

query I rowsort
SELECT DISTINCT 4 + + 69 * + - 60 AS col0
----
-4136

query I rowsort
SELECT ALL - 9 + - 63
----
-72

onlyif mysql # DIV for integer division: 
query II rowsort label-8588
SELECT DISTINCT - + 66 AS col2, 87 DIV - 37
----
-66
-2

skipif mysql # not compatible
query II rowsort label-8588
SELECT DISTINCT - + 66 AS col2, 87 / - 37
----
-66
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT - + COALESCE ( + + CASE SUM( + 23 ) WHEN + 54 / + + 15 THEN NULL ELSE - 93 + 40 END, + + 23 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT - + COALESCE ( + + CASE SUM ( + 23 ) WHEN + 54 / + + 15 THEN NULL ELSE - 93 + 40 END, + + 23 ) AS col0
----
53

query I rowsort
SELECT ALL - + ( - - 58 ) - - + 13 * - 17 * - 60
----
13202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 31 AS col2
----
NULL

query I rowsort
SELECT 51 * - + 42 + - 88 + - 13 + 45 * - + ( + 42 )
----
-4133

query I rowsort
SELECT 55 * + - 10 col0
----
-550

query I rowsort
SELECT ALL + 82 * NULLIF ( - + 59, - 83 ) AS col2
----
-4838

query II rowsort
SELECT ( - + 29 ) + - + 16 AS col1, 70
----
-45
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT COUNT( * ) + - 84 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-8596
SELECT COUNT ( * ) + - 84 AS col0
----
-83

query I rowsort
SELECT DISTINCT - NULLIF ( + - 52, + 69 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT ALL + COUNT( * ) * + 59
----
59

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL + COUNT ( * ) * + 59
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT COUNT( * ) * 83 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8599
SELECT COUNT ( * ) * 83 AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-8600
SELECT DISTINCT 5 AS col2, NULLIF ( - 31, + COUNT( * ) * - - COUNT( * ) + 64 ) - - 88 AS col0
----
5
57

skipif mysql # not compatible
query II rowsort label-8600
SELECT DISTINCT 5 AS col2, NULLIF ( - 31, + COUNT ( * ) * - - COUNT ( * ) + 64 ) - - 88 AS col0
----
5
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8601
SELECT ALL - 80 DIV + 46 * - COUNT( * ) * - + COALESCE ( + COUNT( * ), + - 12 + 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL - 80 / + 46 * - COUNT ( * ) * - + COALESCE ( + COUNT ( * ), + - 12 + 48 )
----
-1

query I rowsort
SELECT 38 * 5 col0
----
190

query II rowsort
SELECT 91, 65 AS col2
----
91
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8604
SELECT DISTINCT 64 DIV + 32
----
2

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT 64 / + 32
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8605
SELECT - 64 * - 85 + - NULLIF ( ( + - 51 ), + 29 + 31 + - + ( COUNT( * ) ) - - SUM( ALL + 94 ) * - - CASE + + 95 WHEN - 2 * + 35 - + - 38 THEN + + MIN( DISTINCT 52 ) * - 56 ELSE - + 0 * + 66 + 56 END * + - 5 / + - 73 + 66 ) + - + CASE - CAST( - 13 AS SIGNED ) WHEN - + 17 THEN 94 * + COUNT( * ) * 97 WHEN 10 - + COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT - 64 * - 85 + - NULLIF ( ( + - 51 ), + 29 + 31 + - + ( COUNT ( * ) ) - - SUM ( ALL + 94 ) * - - CASE + + 95 WHEN - 2 * + 35 - + - 38 THEN + + MIN ( DISTINCT 52 ) * - 56 ELSE - + 0 * + 66 + 56 END * + - 5 / + - 73 + 66 ) + - + CASE - CAST ( - 13 AS INTEGER ) WHEN - + 17 THEN 94 * + COUNT ( * ) * 97 WHEN 10 - + COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT 28 + - - 37 AS col2
----
65

query I rowsort
SELECT ( 90 ) * - + 54
----
-4860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8608
SELECT ALL 63 + - COUNT( * ) DIV COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL 63 + - COUNT ( * ) / COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT SUM( 71 ) + + 54
----
125

skipif mysql # not compatible
query I rowsort label-8609
SELECT SUM ( 71 ) + + 54
----
125

query I rowsort
SELECT 63 + + 66 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT - - SUM( + 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-8611
SELECT - - SUM ( + 60 ) col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8612
SELECT - 1 AS col1, + 60 + - + 34 + 81 * CAST( - - ( + + COUNT( * ) ) AS SIGNED ) + - + 35 * ( - 22 ) - - - 70 AS col1
----
-1
807

skipif mysql # not compatible
query II rowsort label-8612
SELECT - 1 AS col1, + 60 + - + 34 + 81 * CAST ( - - ( + + COUNT ( * ) ) AS INTEGER ) + - + 35 * ( - 22 ) - - - 70 AS col1
----
-1
807

query I rowsort
SELECT - NULLIF ( + 89, 22 ) AS col1
----
-89

query II rowsort
SELECT ALL - 70 AS col1, + 29
----
-70
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8615
SELECT COUNT( * ) * 0 * + COUNT( * ) * - ( - 91 ) + + 69 + + 75 AS col0, 15
----
144
15

skipif mysql # not compatible
query II rowsort label-8615
SELECT COUNT ( * ) * 0 * + COUNT ( * ) * - ( - 91 ) + + 69 + + 75 AS col0, 15
----
144
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT ALL ( + CAST( - 32 AS SIGNED ) ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL ( + CAST ( - 32 AS INTEGER ) ) AS col0
----
-32

query I rowsort
SELECT 19 + + + 68
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT ALL - - MAX( ALL - - 73 ) - - 6 + - 92
----
-13

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL - - MAX ( ALL - - 73 ) - - 6 + - 92
----
-13

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8619
SELECT 52 * - + ( + AVG ( DISTINCT - CAST( 42 AS SIGNED ) ) ) + 69 * - - 21 * 81 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8619
SELECT 52 * - + ( + AVG ( DISTINCT - CAST ( 42 AS INTEGER ) ) ) + 69 * - - 21 * 81 * + CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT + - 98 AS col1, + 58 + + 80
----
-98
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8621
SELECT + COUNT( 42 ) * - 8 * + 19 + 62 DIV + 79 AS col1, 36 AS col0
----
-152
36

skipif mysql # not compatible
query II rowsort label-8621
SELECT + COUNT ( 42 ) * - 8 * + 19 + 62 / + 79 AS col1, 36 AS col0
----
-152
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8622
SELECT DISTINCT - CASE - + 48 WHEN 93 THEN - 34 WHEN - + 16 THEN NULL ELSE + CASE - 40 WHEN + - CAST( NULL AS SIGNED ) * - ( + 95 ) + - 67 / - 9 THEN NULL WHEN + + 3 - - + COUNT( * ) * - - 5 THEN - COUNT( * ) END END col2, COALESCE ( 3, + 15 + + - CASE - 42 WHEN + + 93 + + + ( + 51 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN ( + 99 ) END + + 25 * - 38 + - - 14 * + 63 - + MIN( ALL - ( 37 ) ) )
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8622
SELECT DISTINCT - CASE - + 48 WHEN 93 THEN - 34 WHEN - + 16 THEN NULL ELSE + CASE - 40 WHEN + - CAST ( NULL AS INTEGER ) * - ( + 95 ) + - 67 / - 9 THEN NULL WHEN + + 3 - - + COUNT ( * ) * - - 5 THEN - COUNT ( * ) END END col2, COALESCE ( 3, + 15 + + - CASE - 42 WHEN + + 93 + + + ( + 51 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN ( + 99 ) END + + 25 * - 38 + - - 14 * + 63 - + MIN ( ALL - ( 37 ) ) )
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8623
SELECT CAST( 2 AS SIGNED ) DIV - + 92 + 5 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8623
SELECT CAST ( 2 AS INTEGER ) / - + 92 + 5 AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8624
SELECT MIN( DISTINCT - 32 ) * - + 83 - - 38 AS col2, - 6 DIV - 24 * + - ( + 57 ) + - + 49 * - 54 + - 68
----
2694
2578

skipif mysql # not compatible
query II rowsort label-8624
SELECT MIN ( DISTINCT - 32 ) * - + 83 - - 38 AS col2, - 6 / - 24 * + - ( + 57 ) + - + 49 * - 54 + - 68
----
2694
2578

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL + + ( + COUNT( * ) ) * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL + + ( + COUNT ( * ) ) * - 9
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8626
SELECT 22 / - MAX( ALL - - 76 ) - - 77 + - CASE + - 23 WHEN + AVG ( ALL 92 ) + + 56 THEN + CAST( NULL AS SIGNED ) END + - + 17 * - - ( 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT 22 / - MAX ( ALL - - 76 ) - - 77 + - CASE + - 23 WHEN + AVG ( ALL 92 ) + + 56 THEN + CAST ( NULL AS INTEGER ) END + - + 17 * - - ( 89 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8627
SELECT 67 DIV + 9 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8627
SELECT 67 / + 9 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT + 65 * + CASE + 62 WHEN + + 46 - + - 44 + + + 87 * 32 + + 39 / + - 77 + 76 THEN COUNT( * ) / - 36 * ( - ( 39 ) ) + - + CASE - - 36 WHEN 97 THEN + ( - 86 ) * 72 WHEN + 26 THEN 55 * + 56 - + 9 * + 52 * - - 18 / - - 70 ELSE - COUNT( * ) END END + + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT + 65 * + CASE + 62 WHEN + + 46 - + - 44 + + + 87 * 32 + + 39 / + - 77 + 76 THEN COUNT ( * ) / - 36 * ( - ( 39 ) ) + - + CASE - - 36 WHEN 97 THEN + ( - 86 ) * 72 WHEN + 26 THEN 55 * + 56 - + 9 * + 52 * - - 18 / - - 70 ELSE - COUNT ( * ) END END + + - 10
----
NULL

query II rowsort
SELECT DISTINCT - 42, 46 col0
----
-42
46

onlyif mysql # DIV for integer division: 
query II rowsort label-8630
SELECT DISTINCT - ( 79 ) AS col0, 83 DIV 80 AS col0
----
-79
1

skipif mysql # not compatible
query II rowsort label-8630
SELECT DISTINCT - ( 79 ) AS col0, 83 / 80 AS col0
----
-79
1

query I rowsort
SELECT ALL - CASE 44 WHEN - 6 THEN - + ( ( 80 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT DISTINCT - CASE - AVG ( DISTINCT + 6 ) WHEN + 43 THEN NULL WHEN - AVG ( ALL + 89 ) - + 97 * - + ( + COUNT( * ) ) THEN 67 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT - CASE - AVG ( DISTINCT + 6 ) WHEN + 43 THEN NULL WHEN - AVG ( ALL + 89 ) - + 97 * - + ( + COUNT ( * ) ) THEN 67 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8633
SELECT ALL - 12 + - CAST( NULL AS SIGNED ) AS col0, + 34
----
NULL
34

skipif mysql # not compatible
query II rowsort label-8633
SELECT ALL - 12 + - CAST ( NULL AS INTEGER ) AS col0, + 34
----
NULL
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8634
SELECT 18 * - 70 AS col2, - COUNT( * ) * - 28 col0
----
-1260
28

skipif mysql # not compatible
query II rowsort label-8634
SELECT 18 * - 70 AS col2, - COUNT ( * ) * - 28 col0
----
-1260
28

query I rowsort
SELECT 54 + + 56 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT - MIN( DISTINCT 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-8636
SELECT - MIN ( DISTINCT 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT DISTINCT 58 + + 40 + + - 72 * 90 * - 25 * 24 * - MIN( DISTINCT 63 ) - - 51
----
-244943851

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT 58 + + 40 + + - 72 * 90 * - 25 * 24 * - MIN ( DISTINCT 63 ) - - 51
----
-244943851

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT ALL ( COUNT( + 96 ) ) + - - 62
----
63

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL ( COUNT ( + 96 ) ) + - - 62
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-8639
SELECT 37 DIV - - 87 AS col2, + 0
----
0
0

skipif mysql # not compatible
query II rowsort label-8639
SELECT 37 / - - 87 AS col2, + 0
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8640
SELECT ALL + NULLIF ( + COALESCE ( - 80, - 73 * COUNT( ALL + + 82 ) * 28 ), ( - CAST( NULL AS SIGNED ) ) * - - 8 * - - CASE - - 83 WHEN - + 52 THEN - 70 WHEN 34 THEN NULL END + - ( + + 58 ) ) + + 83 + 42 + 17 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL + NULLIF ( + COALESCE ( - 80, - 73 * COUNT ( ALL + + 82 ) * 28 ), ( - CAST ( NULL AS INTEGER ) ) * - - 8 * - - CASE - - 83 WHEN - + 52 THEN - 70 WHEN 34 THEN NULL END + - ( + + 58 ) ) + + 83 + 42 + 17 AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT 63 DIV - - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8641
SELECT 63 / - - 97 AS col2
----
0

query I rowsort
SELECT NULLIF ( 1, + 60 ) - ( + 38 ) * 6 * - - 14 * + 50
----
-159599

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT - SUM( - - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-8643
SELECT - SUM ( - - 71 )
----
-71

query I rowsort
SELECT + 81 * 85
----
6885

query I rowsort
SELECT + + 53 + + 96 * - 81 AS col2
----
-7723

query I rowsort
SELECT - ( - 89 ) * - - ( - 41 ) - - 28 * + 29
----
-2837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8647
SELECT DISTINCT + 39 - - 63 + + - 61 DIV COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT + 39 - - 63 + + - 61 / COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8648
SELECT ALL - 75 * - 9 + - 79 DIV - COUNT( * )
----
754

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL - 75 * - 9 + - 79 / - COUNT ( * )
----
754

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT + - 12 - 67 * - + COUNT( * ) * - 42
----
-2826

skipif mysql # not compatible
query I rowsort label-8649
SELECT + - 12 - 67 * - + COUNT ( * ) * - 42
----
-2826

query I rowsort
SELECT ALL + 6 - - + 75 AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8651
SELECT + COUNT( DISTINCT + 23 ) DIV 71 + 8 col0
----
8

skipif mysql # not compatible
query I rowsort label-8651
SELECT + COUNT ( DISTINCT + 23 ) / 71 + 8 col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8652
SELECT + - SUM( ALL - CAST( NULL AS SIGNED ) ) * - 48 + - - COALESCE ( 83, MAX( 83 ) + 84, + 54 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8652
SELECT + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) * - 48 + - - COALESCE ( 83, MAX ( 83 ) + 84, + 54 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8653
SELECT 76 / + 32 + NULLIF ( - + CAST( NULL AS SIGNED ), 16 ), + COALESCE ( ( + 39 ), - COUNT( * ), - 67 ) * - 64 AS col0
----
NULL
-2496

skipif mysql # not compatible
query II rowsort label-8653
SELECT 76 / + 32 + NULLIF ( - + CAST ( NULL AS INTEGER ), 16 ), + COALESCE ( ( + 39 ), - COUNT ( * ), - 67 ) * - 64 AS col0
----
NULL
-2496

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8654
SELECT 71 * - + 52 + + - 24 + + - ( 13 ) - - 47 DIV - - CAST( + 49 AS SIGNED ) AS col1
----
-3729

skipif mysql # not compatible
query I rowsort label-8654
SELECT 71 * - + 52 + + - 24 + + - ( 13 ) - - 47 / - - CAST ( + 49 AS INTEGER ) AS col1
----
-3729

query I rowsort
SELECT ALL + - ( + COALESCE ( 82, + - 89 ) )
----
-82

query I rowsort
SELECT DISTINCT - 32 * - 64
----
2048

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT DISTINCT + COUNT( DISTINCT - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT + COUNT ( DISTINCT - 16 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8658
SELECT ALL - CASE 29 WHEN - - 12 + + - COUNT( * ) THEN NULL WHEN + COUNT( * ) + + NULLIF ( - NULLIF ( - + 84, 65 * + - 90 ), 20 + - COUNT( * ) ) THEN + + 47 + - 8 / 53 * - 31 ELSE NULL END * - 85 - 35, + ( - 85 ) + + 0 AS col0
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-8658
SELECT ALL - CASE 29 WHEN - - 12 + + - COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + + NULLIF ( - NULLIF ( - + 84, 65 * + - 90 ), 20 + - COUNT ( * ) ) THEN + + 47 + - 8 / 53 * - 31 ELSE NULL END * - 85 - 35, + ( - 85 ) + + 0 AS col0
----
NULL
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT - 65 * 85 DIV + + 27 col0
----
-204

skipif mysql # not compatible
query I rowsort label-8659
SELECT - 65 * 85 / + + 27 col0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT - 50 * - - SUM( + 52 ) * + - 35 + + 68 * - + 6
----
90592

skipif mysql # not compatible
query I rowsort label-8660
SELECT - 50 * - - SUM ( + 52 ) * + - 35 + + 68 * - + 6
----
90592

query II rowsort
SELECT DISTINCT - ( - - 83 ) * - + 86 AS col1, COALESCE ( - 82, + 16, + 68 * COALESCE ( - 62, - 60 * - 42 ) + + - 7 ) AS col0
----
7138
-82

query I rowsort
SELECT - 12 * - + 56 + + 48 + 51 * - 26
----
-606

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT ALL - 94 * CAST( - 99 AS SIGNED ) + - COALESCE ( 5, 85, - 40 ) AS col0
----
9301

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL - 94 * CAST ( - 99 AS INTEGER ) + - COALESCE ( 5, 85, - 40 ) AS col0
----
9301

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT - 29 + - COUNT( * ) + COALESCE ( + COUNT( * ), - ( + 85 ) - - + 38, - 11 )
----
-29

skipif mysql # not compatible
query I rowsort label-8664
SELECT - 29 + - COUNT ( * ) + COALESCE ( + COUNT ( * ), - ( + 85 ) - - + 38, - 11 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT - COUNT( * ) * 82
----
-82

skipif mysql # not compatible
query I rowsort label-8665
SELECT - COUNT ( * ) * 82
----
-82

query I rowsort
SELECT - 6 + - 97 + 12
----
-91

query I rowsort
SELECT - 11 * + 29
----
-319

query II rowsort
SELECT ALL - 78 * + 27 + ( + 96 ) AS col2, + 47 col0
----
-2010
47

query I rowsort
SELECT ALL + COALESCE ( + - 18, + 85 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8670
SELECT ALL + COUNT( * ) * - 41 + - CAST( NULL AS SIGNED ) + + COUNT( * ) * + - 16 / - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL + COUNT ( * ) * - 41 + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + - 16 / - 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT DISTINCT + ( - SUM( DISTINCT + ( - 58 ) ) )
----
58

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT + ( - SUM ( DISTINCT + ( - 58 ) ) )
----
58

query I rowsort
SELECT ALL ( - + 67 ) * 64 + 33 AS col1
----
-4255

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT COUNT( * ) * + + 90 * - 73 + - - COUNT( * ) * 22
----
-6548

skipif mysql # not compatible
query I rowsort label-8673
SELECT COUNT ( * ) * + + 90 * - 73 + - - COUNT ( * ) * 22
----
-6548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8674
SELECT ALL NULLIF ( SUM( ALL + NULLIF ( - CAST( NULL AS SIGNED ), 37 ) ), + - 51 / 78 * 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL NULLIF ( SUM ( ALL + NULLIF ( - CAST ( NULL AS INTEGER ), 37 ) ), + - 51 / 78 * 41 )
----
NULL

query I rowsort
SELECT - 28 + - + 86
----
-114

query I rowsort
SELECT - 40 + - 56
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8677
SELECT + 45 * ( + + 34 ) AS col2, - ( - AVG ( + ( 16 ) ) ) * - 24 - + COUNT( * ) + + - 43 * 52 - + - SUM( DISTINCT 24 ) / - CAST( NULL AS SIGNED ) + - 68 col0
----
1530
NULL

skipif mysql # not compatible
query II rowsort label-8677
SELECT + 45 * ( + + 34 ) AS col2, - ( - AVG ( + ( 16 ) ) ) * - 24 - + COUNT ( * ) + + - 43 * 52 - + - SUM ( DISTINCT 24 ) / - CAST ( NULL AS INTEGER ) + - 68 col0
----
1530
NULL

query I rowsort
SELECT ALL ( - + 22 ) col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8679
SELECT - COALESCE ( - - 70, + - 46, - - 25 DIV + 16 ) + + COUNT( DISTINCT + + 92 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8679
SELECT - COALESCE ( - - 70, + - 46, - - 25 / + 16 ) + + COUNT ( DISTINCT + + 92 ) AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8680
SELECT + CAST( NULL AS SIGNED ) - + 43 - - 39 * + - 71 * - 6 / 13, 84 AS col1
----
NULL
84

skipif mysql # not compatible
query II rowsort label-8680
SELECT + CAST ( NULL AS INTEGER ) - + 43 - - 39 * + - 71 * - 6 / 13, 84 AS col1
----
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT + COUNT( DISTINCT + - 91 ) * - 34 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8681
SELECT + COUNT ( DISTINCT + - 91 ) * - 34 AS col0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT + 78 + + 16 DIV 63 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-8682
SELECT + 78 + + 16 / 63 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL COUNT( * ) - - - 61 + + 56 + + - 92 * + - 27 + ( + - MAX( - 75 ) ) + + 89 * - - 71
----
8874

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL COUNT ( * ) - - - 61 + + 56 + + - 92 * + - 27 + ( + - MAX ( - 75 ) ) + + 89 * - - 71
----
8874

query I rowsort
SELECT - - 65 * + + 32 * - 95 * + + 10 AS col0
----
-1976000

onlyif mysql # aggregate syntax: 
query III rowsort label-8685
SELECT DISTINCT - + CASE - 95 WHEN ( - COUNT( * ) ) THEN NULL WHEN + - 36 / COUNT( * ) - + CASE + - 66 WHEN 48 THEN + 7 WHEN 97 THEN - 37 ELSE + 31 END * 90 - 43 THEN - COALESCE ( + 81, ( + + 64 ) ) END * + 28 + + - COUNT( DISTINCT - ( + + 66 ) ), 2 AS col2, - 55 col2
----
NULL
2
-55

skipif mysql # not compatible
query III rowsort label-8685
SELECT DISTINCT - + CASE - 95 WHEN ( - COUNT ( * ) ) THEN NULL WHEN + - 36 / COUNT ( * ) - + CASE + - 66 WHEN 48 THEN + 7 WHEN 97 THEN - 37 ELSE + 31 END * 90 - 43 THEN - COALESCE ( + 81, ( + + 64 ) ) END * + 28 + + - COUNT ( DISTINCT - ( + + 66 ) ), 2 AS col2, - 55 col2
----
NULL
2
-55

query I rowsort
SELECT - - ( 91 )
----
91

query II rowsort
SELECT DISTINCT + 76 col1, - 8 col0
----
76
-8

query I rowsort
SELECT ALL + + 88 * - - 79 * + - 60 * + - 25 + - 44 * + 5
----
10427780

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT ALL MAX( ALL + 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL MAX ( ALL + 83 ) AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8690
SELECT + + NULLIF ( - + ( + 99 ), + 19 ) + - COALESCE ( + 37, + 44, - ( + + 84 ) * 60 + 7 * + 67 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT + + NULLIF ( - + ( + 99 ), + 19 ) + - COALESCE ( + 37, + 44, - ( + + 84 ) * 60 + 7 * + 67 ) + + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 69 AS col0, 39 - - 27 + + 88 + - + 39 * - 40 * - - 0 col1
----
-69
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT + - 66 + 80 + ( COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-8692
SELECT + - 66 + 80 + ( COUNT ( * ) )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8693
SELECT DISTINCT - 27 DIV - + 34
----
0

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT - 27 / - + 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT + COUNT( * ) + + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8694
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8695
SELECT ALL + 14 DIV SUM( DISTINCT + 77 ) + + - 53 + + 35
----
-18

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL + 14 / SUM ( DISTINCT + 77 ) + + - 53 + + 35
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT + 61 / 89 + + 98 * + CASE + 18 WHEN ( - NULLIF ( + 16, + - 25 ) ) + + - 65 / - COUNT( * ) THEN - 59 WHEN + 38 * + 2 + - 31 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT + 61 / 89 + + 98 * + CASE + 18 WHEN ( - NULLIF ( + 16, + - 25 ) ) + + - 65 / - COUNT ( * ) THEN - 59 WHEN + 38 * + 2 + - 31 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8697
SELECT + 42 + - - CAST( NULL AS SIGNED ) + + CAST( + 17 AS SIGNED ) + + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT + 42 + - - CAST ( NULL AS INTEGER ) + + CAST ( + 17 AS INTEGER ) + + 4 AS col1
----
NULL

query II rowsort
SELECT + ( - 94 ) col2, - 35 col0
----
-94
-35

query I rowsort
SELECT + 88 - + 44 col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8700
SELECT + 6 DIV 92 * + 73
----
0

skipif mysql # not compatible
query I rowsort label-8700
SELECT + 6 / 92 * + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT + 64 * - 47 + + + ( - MAX( - COALESCE ( 74, 97 ) ) )
----
-2934

skipif mysql # not compatible
query I rowsort label-8701
SELECT + 64 * - 47 + + + ( - MAX ( - COALESCE ( 74, 97 ) ) )
----
-2934

query I rowsort
SELECT ALL + 49 * - + 52
----
-2548

query I rowsort
SELECT COALESCE ( + 50, + 85 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ALL + 50 * - COUNT( * ) * - 67
----
3350

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL + 50 * - COUNT ( * ) * - 67
----
3350

query I rowsort
SELECT - ( - 41 ) * + - 13 AS col0
----
-533

query I rowsort
SELECT DISTINCT + 32 - 62 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT COUNT( DISTINCT + 73 ) + + 49 + + + ( - - 12 )
----
62

skipif mysql # not compatible
query I rowsort label-8707
SELECT COUNT ( DISTINCT + 73 ) + + 49 + + + ( - - 12 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8708
SELECT 69 DIV COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-8708
SELECT 69 / COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT - SUM( COALESCE ( - 57, - 76, 33 * 12, 70 ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-8709
SELECT - SUM ( COALESCE ( - 57, - 76, 33 * 12, 70 ) ) AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8710
SELECT ALL + CAST( 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL + CAST ( 6 AS INTEGER )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT ALL COALESCE ( - - 51, + 81 - + - 78 - + 90 + + - MAX( + 6 ) + - ( 27 ) * - + 14 * + + 51 * + 71 * + 69 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL COALESCE ( - - 51, + 81 - + - 78 - + 90 + + - MAX ( + 6 ) + - ( 27 ) * - + 14 * + + 51 * + 71 * + 69 ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-8712
SELECT ALL MIN( DISTINCT 30 ) * - - 96 * - 70 DIV - COUNT( * ) col1, - CASE + COUNT( * ) WHEN + + COALESCE ( + - 76, - CAST( NULL AS DECIMAL ), - + 17, - CAST( NULL AS SIGNED ) DIV - COUNT( * ) DIV 89 ) THEN NULL ELSE COUNT( * ) * SUM( - 52 ) - + 85 END AS col0
----
201600
137

skipif mysql # not compatible
query II rowsort label-8712
SELECT ALL MIN ( DISTINCT 30 ) * - - 96 * - 70 / - COUNT ( * ) col1, - CASE + COUNT ( * ) WHEN + + COALESCE ( + - 76, - CAST ( NULL AS REAL ), - + 17, - CAST ( NULL AS INTEGER ) / - COUNT ( * ) / 89 ) THEN NULL ELSE COUNT ( * ) * SUM ( - 52 ) - + 85 END AS col0
----
201600
137

query II rowsort
SELECT - ( - 44 ) * - 80 * 95 AS col0, 99
----
-334400
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8714
SELECT - 95 - - - 82 * - + 8 + - COUNT( * ) DIV COALESCE ( - CAST( 2 AS SIGNED ), - + 61 )
----
561

skipif mysql # not compatible
query I rowsort label-8714
SELECT - 95 - - - 82 * - + 8 + - COUNT ( * ) / COALESCE ( - CAST ( 2 AS INTEGER ), - + 61 )
----
561

query I rowsort
SELECT - 9 + - - 96
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT + 18 * + 81 - MIN( DISTINCT - 37 )
----
1495

skipif mysql # not compatible
query I rowsort label-8716
SELECT + 18 * + 81 - MIN ( DISTINCT - 37 )
----
1495

query I rowsort
SELECT 76 + + - 9
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT + 36 * - COUNT( ALL + + 42 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-8718
SELECT + 36 * - COUNT ( ALL + + 42 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL 84 + + COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL 84 + + COUNT ( * ) AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT + ( + - CAST( NULL AS SIGNED ) ) - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT + ( + - CAST ( NULL AS INTEGER ) ) - 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT DISTINCT + + 18 + + COUNT( DISTINCT + 88 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT + + 18 + + COUNT ( DISTINCT + 88 ) AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT 45 + + 93 DIV + 50
----
46

skipif mysql # not compatible
query I rowsort label-8722
SELECT 45 + + 93 / + 50
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL + - MAX( + 74 ) + + 47
----
-27

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL + - MAX ( + 74 ) + + 47
----
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8724
SELECT ALL 55 + + + COALESCE ( - COUNT( * ), 66 * - 1, + 43 * 53 * ( - ( - 76 ) ) * - 38 + - + 42 + 84 - - - 32 ) + - + MAX( ALL - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL 55 + + + COALESCE ( - COUNT ( * ), 66 * - 1, + 43 * 53 * ( - ( - 76 ) ) * - 38 + - + 42 + 84 - - - 32 ) + - + MAX ( ALL - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT 12 + - 75 + + + 85
----
22

query II rowsort
SELECT 18 * ( + 28 ) col2, 40
----
504
40

query II rowsort
SELECT - 42 * 92 + + 9 AS col0, - 91
----
-3855
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8728
SELECT CAST( - 64 AS SIGNED ) * COUNT( * ) + 98 * + 31 + 94 * + COUNT( * ) AS col2
----
3068

skipif mysql # not compatible
query I rowsort label-8728
SELECT CAST ( - 64 AS INTEGER ) * COUNT ( * ) + 98 * + 31 + 94 * + COUNT ( * ) AS col2
----
3068

onlyif mysql # aggregate syntax: 
query II rowsort label-8729
SELECT 49 AS col0, COUNT( * )
----
49
1

skipif mysql # not compatible
query II rowsort label-8729
SELECT 49 AS col0, COUNT ( * )
----
49
1

query I rowsort
SELECT ALL 94 + 27
----
121

query I rowsort
SELECT DISTINCT 29 - - 68 * 92 + + 34
----
6319

query I rowsort
SELECT ALL COALESCE ( 40, - - 22 ) * + 55 col1
----
2200

query I rowsort
SELECT DISTINCT 64 - - + 61
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT COUNT( * ) * - 69 * - MIN( DISTINCT + - 94 )
----
-6486

skipif mysql # not compatible
query I rowsort label-8734
SELECT COUNT ( * ) * - 69 * - MIN ( DISTINCT + - 94 )
----
-6486

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8735
SELECT ( COUNT( * ) ) * + - 27 DIV + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8735
SELECT ( COUNT ( * ) ) * + - 27 / + 97 AS col0
----
0

query II rowsort
SELECT 3, 44 AS col1
----
3
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8737
SELECT ALL + COUNT( * ) DIV 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL + COUNT ( * ) / 17 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8738
SELECT + CAST( NULL AS SIGNED ) * - 27 + - - 65 * - 75 * + 21 * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT + CAST ( NULL AS INTEGER ) * - 27 + - - 65 * - 75 * + 21 * 59
----
NULL

query I rowsort
SELECT ALL - - 44 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT + 17 * - CASE - 66 WHEN 20 THEN + 54 WHEN - 1 THEN NULL ELSE - NULLIF ( + - 37, - - 37 + + CASE - - ( + 22 ) WHEN - + MIN( DISTINCT 53 ) / + - 14 THEN NULL ELSE + 79 * + 61 END ) END + 99 + - COUNT( * )
----
-531

skipif mysql # not compatible
query I rowsort label-8740
SELECT + 17 * - CASE - 66 WHEN 20 THEN + 54 WHEN - 1 THEN NULL ELSE - NULLIF ( + - 37, - - 37 + + CASE - - ( + 22 ) WHEN - + MIN ( DISTINCT 53 ) / + - 14 THEN NULL ELSE + 79 * + 61 END ) END + 99 + - COUNT ( * )
----
-531

query I rowsort
SELECT + NULLIF ( ( - 46 ), - 61 * - 40 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT - COUNT( * ) + 10 + COUNT( * ) col2
----
10

skipif mysql # not compatible
query I rowsort label-8742
SELECT - COUNT ( * ) + 10 + COUNT ( * ) col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8743
SELECT CASE + 49 WHEN 34 * - + AVG ( 15 ) + 72 THEN NULL WHEN - 83 / - - 66 THEN + 48 - - + COUNT( * ) ELSE NULL END + - 63 * 42 + COUNT( * ) * COUNT( * ) * CAST( NULL AS SIGNED ), - 39 * + 26 AS col1
----
NULL
-1014

skipif mysql # not compatible
query II rowsort label-8743
SELECT CASE + 49 WHEN 34 * - + AVG ( 15 ) + 72 THEN NULL WHEN - 83 / - - 66 THEN + 48 - - + COUNT ( * ) ELSE NULL END + - 63 * 42 + COUNT ( * ) * COUNT ( * ) * CAST ( NULL AS INTEGER ), - 39 * + 26 AS col1
----
NULL
-1014

onlyif mysql # DIV for integer division: 
query I rowsort label-8744
SELECT 11 DIV - - 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8744
SELECT 11 / - - 28 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT + MAX( - 72 ) + - 21
----
-93

skipif mysql # not compatible
query I rowsort label-8745
SELECT + MAX ( - 72 ) + - 21
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT COUNT( * ) + 83 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-8746
SELECT COUNT ( * ) + 83 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL - + 21 * - - 65 + + MIN( ALL + 99 ) AS col1
----
-1266

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL - + 21 * - - 65 + + MIN ( ALL + 99 ) AS col1
----
-1266

query I rowsort
SELECT ALL + - 58 * + + 53 + + - NULLIF ( + 31, + ( - 53 ) ) col1
----
-3105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT + CAST( - 37 AS SIGNED ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8749
SELECT + CAST ( - 37 AS INTEGER ) AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT + CAST( 31 AS SIGNED ) + - 94 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-8750
SELECT + CAST ( 31 AS INTEGER ) + - 94 AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-8751
SELECT 90 DIV 27 * 39 + 87 + + 25 AS col1
----
229

skipif mysql # not compatible
query I rowsort label-8751
SELECT 90 / 27 * 39 + 87 + + 25 AS col1
----
229

query I rowsort
SELECT ALL - + COALESCE ( + - ( 49 ), - 42 ) + + 79
----
128

query I rowsort
SELECT 21 + 84 AS col1
----
105

query II rowsort
SELECT ALL + 54 AS col2, 32
----
54
32

query I rowsort
SELECT ALL + 42 + 15 AS col1
----
57

query I rowsort
SELECT 77 + - 60 AS col1
----
17

query I rowsort
SELECT 31 * - + ( + 14 ) col0
----
-434

query I rowsort
SELECT ALL + 49 * 6 * + 90 * 54 * - ( 62 )
----
-88588080

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT ALL - SUM( - 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL - SUM ( - 30 ) AS col0
----
30

query I rowsort
SELECT 56 * + 28 * + 11 * - 20
----
-344960

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT ALL - ( - COUNT( * ) ) * - + COUNT( * ) * + 29
----
-29

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL - ( - COUNT ( * ) ) * - + COUNT ( * ) * + 29
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-8762
SELECT COUNT( * ) AS col1, + ( + 40 )
----
1
40

skipif mysql # not compatible
query II rowsort label-8762
SELECT COUNT ( * ) AS col1, + ( + 40 )
----
1
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8763
SELECT - 99 DIV + + 59
----
-1

skipif mysql # not compatible
query I rowsort label-8763
SELECT - 99 / + + 59
----
-1

query I rowsort
SELECT + 5 * + + 89
----
445

query I rowsort
SELECT + 22 + 79
----
101

query II rowsort
SELECT ALL + 27 col2, + 40 col1
----
27
40

query II rowsort
SELECT ALL + 1 AS col0, 37 AS col1
----
1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT MAX( DISTINCT + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-8768
SELECT MAX ( DISTINCT + 29 )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8769
SELECT + ( - CAST( + - 77 AS SIGNED ) ) * + 43 AS col2
----
3311

skipif mysql # not compatible
query I rowsort label-8769
SELECT + ( - CAST ( + - 77 AS INTEGER ) ) * + 43 AS col2
----
3311

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT DISTINCT CASE + - COUNT( * ) WHEN - - ( - 63 ) THEN NULL WHEN + SUM( 43 ) * + - 85 THEN NULL WHEN - NULLIF ( - + 54, 93 * + 9 * - + 17 ) THEN NULL ELSE - 37 END * + 69 + - NULLIF ( + - ( + 78 ), + 39 ) * + + 9
----
-1851

skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT CASE + - COUNT ( * ) WHEN - - ( - 63 ) THEN NULL WHEN + SUM ( 43 ) * + - 85 THEN NULL WHEN - NULLIF ( - + 54, 93 * + 9 * - + 17 ) THEN NULL ELSE - 37 END * + 69 + - NULLIF ( + - ( + 78 ), + 39 ) * + + 9
----
-1851

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT + - 53 * + COUNT( * ) + 86 * - 99
----
-8567

skipif mysql # not compatible
query I rowsort label-8771
SELECT + - 53 * + COUNT ( * ) + 86 * - 99
----
-8567

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8772
SELECT - CAST( NULL AS SIGNED ), 59 AS col2
----
NULL
59

skipif mysql # not compatible
query II rowsort label-8772
SELECT - CAST ( NULL AS INTEGER ), 59 AS col2
----
NULL
59

query II rowsort
SELECT DISTINCT 3 * + COALESCE ( - 57, - - 91 ), + ( + 55 ) * - - 75 AS col1
----
-171
4125

onlyif mysql # DIV for integer division: 
query II rowsort label-8774
SELECT + 88 col2, + 63 DIV - 64
----
88
0

skipif mysql # not compatible
query II rowsort label-8774
SELECT + 88 col2, + 63 / - 64
----
88
0

query II rowsort
SELECT - - 26 AS col1, 72 - - 83
----
26
155

query I rowsort
SELECT + 91 * - - 97 AS col2
----
8827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8777
SELECT - 61 * - 58 * + MIN( ( - + 47 ) ) + - 99 DIV + 45 AS col1
----
-166288

skipif mysql # not compatible
query I rowsort label-8777
SELECT - 61 * - 58 * + MIN ( ( - + 47 ) ) + - 99 / + 45 AS col1
----
-166288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8778
SELECT DISTINCT 48 DIV 27 * - 63 + MAX( DISTINCT 75 ) * - COUNT( + 46 )
----
-138

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT 48 / 27 * - 63 + MAX ( DISTINCT 75 ) * - COUNT ( + 46 )
----
-138

query I rowsort
SELECT + + 27 * - 45
----
-1215

query I rowsort
SELECT ALL - - 93 * + 70 AS col0
----
6510

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL - 46 + + 40 - + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL - 46 + + 40 - + COUNT ( * )
----
-7

query I rowsort
SELECT - 63 * - 17 AS col1
----
1071

query I rowsort
SELECT ALL 33 * - 36
----
-1188

query II rowsort
SELECT + - 91 + 25 + - + 41 - + + 93 * + ( 14 ) AS col2, 28 AS col1
----
-1409
28

query I rowsort
SELECT + 21 + - 0 AS col1
----
21

query I rowsort
SELECT ALL 90 - - + 15 + + - 51 * - 69 col2
----
3624

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT + 83 * - MIN( - + 14 ) AS col0
----
1162

skipif mysql # not compatible
query I rowsort label-8787
SELECT + 83 * - MIN ( - + 14 ) AS col0
----
1162

query II rowsort
SELECT ALL + 62 - - 48, + 6 AS col2
----
110
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8789
SELECT ALL CAST( + NULLIF ( 7, - 21 ) AS SIGNED ) * CAST( NULL AS DECIMAL ) AS col2, 49
----
NULL
49

skipif mysql # not compatible
query II rowsort label-8789
SELECT ALL CAST ( + NULLIF ( 7, - 21 ) AS INTEGER ) * CAST ( NULL AS REAL ) AS col2, 49
----
NULL
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8790
SELECT - 35 - CAST( NULL AS SIGNED ), + 10 AS col2
----
NULL
10

skipif mysql # not compatible
query II rowsort label-8790
SELECT - 35 - CAST ( NULL AS INTEGER ), + 10 AS col2
----
NULL
10

query II rowsort
SELECT ALL ( - - 6 ) AS col2, - 72
----
6
-72

query I rowsort
SELECT DISTINCT ( - 64 ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT - 12 + + SUM( ALL - 95 ) * - COUNT( + - 75 )
----
83

skipif mysql # not compatible
query I rowsort label-8793
SELECT - 12 + + SUM ( ALL - 95 ) * - COUNT ( + - 75 )
----
83

query I rowsort
SELECT + 23 * - 26 col0
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT + 99 + COUNT( ALL + + 35 ) + + COUNT( * ) * - ( + 7 )
----
93

skipif mysql # not compatible
query I rowsort label-8795
SELECT + 99 + COUNT ( ALL + + 35 ) + + COUNT ( * ) * - ( + 7 )
----
93

query I rowsort
SELECT COALESCE ( + NULLIF ( + 1, + 28 + 57 ), 67 ) * + 77 + 36 + - ( - 32 )
----
145

query I rowsort
SELECT - 82 * - - 65 col2
----
-5330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8798
SELECT - 93 * - 73 * - COUNT( * ) * - CAST( 18 AS SIGNED ) col2, 18 DIV + 11 AS col1
----
122202
1

skipif mysql # not compatible
query II rowsort label-8798
SELECT - 93 * - 73 * - COUNT ( * ) * - CAST ( 18 AS INTEGER ) col2, 18 / + 11 AS col1
----
122202
1

query II rowsort
SELECT ( 3 ) col1, + 79 AS col0
----
3
79

query I rowsort
SELECT DISTINCT - 18 * + 85 AS col1
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL - 0 * + SUM( - - 61 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL - 0 * + SUM ( - - 61 ) AS col2
----
0

query I rowsort
SELECT ( - 95 ) AS col2
----
-95

query I rowsort
SELECT ALL - 28 * - 25 AS col0
----
700

query I rowsort
SELECT DISTINCT + NULLIF ( + 33, - + 30 + 32 )
----
33

query II rowsort
SELECT ( + - 84 ), 36 AS col1
----
-84
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8806
SELECT - 15 DIV + 53 col0
----
0

skipif mysql # not compatible
query I rowsort label-8806
SELECT - 15 / + 53 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT + COUNT( * ) * 93 - + NULLIF ( COUNT( * ), - 42 ) + 29 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-8807
SELECT + COUNT ( * ) * 93 - + NULLIF ( COUNT ( * ), - 42 ) + 29 AS col1
----
121

query I rowsort
SELECT DISTINCT + - 88 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ALL + - MAX( ALL 39 ) * - + COUNT( * ) - - 71 * + 96 + - 50 + + ( + COUNT( DISTINCT 45 ) ) + 19 + 78 AS col1
----
6903

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL + - MAX ( ALL 39 ) * - + COUNT ( * ) - - 71 * + 96 + - 50 + + ( + COUNT ( DISTINCT 45 ) ) + 19 + 78 AS col1
----
6903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8810
SELECT - 62 + - + MAX( + + 48 ) + - 13 * - 26 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT - 62 + - + MAX ( + + 48 ) + - 13 * - 26 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8811
SELECT - CAST( + 17 AS SIGNED ) + - ( + + COUNT( * ) ) * - 76 - - - 90
----
-31

skipif mysql # not compatible
query I rowsort label-8811
SELECT - CAST ( + 17 AS INTEGER ) + - ( + + COUNT ( * ) ) * - 76 - - - 90
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8812
SELECT + 45 DIV 17 * + - 85
----
-170

skipif mysql # not compatible
query I rowsort label-8812
SELECT + 45 / 17 * + - 85
----
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8813
SELECT ALL + 77 * - - 58 + + - 52 + ( + CAST( NULL AS SIGNED ) ) AS col0, 14 + + COUNT( * ) AS col0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-8813
SELECT ALL + 77 * - - 58 + + - 52 + ( + CAST ( NULL AS INTEGER ) ) AS col0, 14 + + COUNT ( * ) AS col0
----
NULL
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8814
SELECT DISTINCT + COUNT( * ) / - CAST( NULL AS SIGNED ), - 28 + + + COUNT( + 76 ) AS col1
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-8814
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ), - 28 + + + COUNT ( + 76 ) AS col1
----
NULL
-27

query I rowsort
SELECT DISTINCT - 20 * + 97 + - 36
----
-1976

query I rowsort
SELECT ALL + 86 * + 88
----
7568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8817
SELECT + + 81 + + COUNT( * ) + - - COUNT( * ) - 37 DIV - 4
----
92

skipif mysql # not compatible
query I rowsort label-8817
SELECT + + 81 + + COUNT ( * ) + - - COUNT ( * ) - 37 / - 4
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8818
SELECT ALL - + COUNT( * ) * + 70 + NULLIF ( 75, - + 57 * + 80 + - 68 + - + 30 + 1 + 86 + + + CAST( NULL AS SIGNED ) * - + 1 - 1 * 42 * + 47 * + COUNT( * ) * + AVG ( DISTINCT 17 ) / - 29 * CASE - - 91 WHEN - 13 + - CASE ( CAST( - 68 AS SIGNED ) ) WHEN SUM( - - 13 ) THEN + COUNT( * ) * - - 84 + - 78 WHEN - 85 / - MIN( - - 9 ) + + - 66 THEN + COALESCE ( - 42, - SUM( + 80 ), 75 ) * - 38 END THEN 25 ELSE NULL END ) * 68 AS col1
----
5030

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL - + COUNT ( * ) * + 70 + NULLIF ( 75, - + 57 * + 80 + - 68 + - + 30 + 1 + 86 + + + CAST ( NULL AS INTEGER ) * - + 1 - 1 * 42 * + 47 * + COUNT ( * ) * + AVG ( DISTINCT 17 ) / - 29 * CASE - - 91 WHEN - 13 + - CASE ( CAST ( - 68 AS INTEGER ) ) WHEN SUM ( - - 13 ) THEN + COUNT ( * ) * - - 84 + - 78 WHEN - 85 / - MIN ( - - 9 ) + + - 66 THEN + COALESCE ( - 42, - SUM ( + 80 ), 75 ) * - 38 END THEN 25 ELSE NULL END ) * 68 AS col1
----
5030

query I rowsort
SELECT - 64 * + - ( + 82 ) * - + 85 * - + 30
----
13382400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT ALL CAST( NULL AS SIGNED ) * + 65 / - ( + 6 ) + - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL CAST ( NULL AS INTEGER ) * + 65 / - ( + 6 ) + - 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT COALESCE ( + 29, SUM( ALL - - 99 ) )
----
29

skipif mysql # not compatible
query I rowsort label-8821
SELECT COALESCE ( + 29, SUM ( ALL - - 99 ) )
----
29

query II rowsort
SELECT ALL + 35 - - 43 * + 56 AS col1, + 97
----
2443
97

onlyif mysql # DIV for integer division: 
query II rowsort label-8823
SELECT + - 54 * + - 73, - ( 49 ) DIV 14 AS col2
----
3942
-3

skipif mysql # not compatible
query II rowsort label-8823
SELECT + - 54 * + - 73, - ( 49 ) / 14 AS col2
----
3942
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8824
SELECT ALL 71 DIV CASE WHEN NOT NULL IS NOT NULL THEN 73 WHEN NOT - CASE + + CAST( + + NULLIF ( - ( + - CAST( NULL AS SIGNED ) ), + COALESCE ( - 12, + 70 + - 75 ) ) AS SIGNED ) WHEN + - 10 DIV - 82 * - 64 THEN - 58 WHEN COUNT( * ) THEN - 67 + + 15 END IS NULL THEN 41 ELSE + 28 END col0, 99 DIV - 2 + - 87
----
0
-136

skipif mysql # not compatible
query II rowsort label-8824
SELECT ALL 71 / CASE WHEN NOT NULL IS NOT NULL THEN 73 WHEN NOT - CASE + + CAST ( + + NULLIF ( - ( + - CAST ( NULL AS INTEGER ) ), + COALESCE ( - 12, + 70 + - 75 ) ) AS INTEGER ) WHEN + - 10 / - 82 * - 64 THEN - 58 WHEN COUNT ( * ) THEN - 67 + + 15 END IS NULL THEN 41 ELSE + 28 END col0, 99 / - 2 + - 87
----
0
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT + NULLIF ( COUNT( * ), - + ( 55 ) ) + 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8825
SELECT + NULLIF ( COUNT ( * ), - + ( 55 ) ) + 81 AS col1
----
82

query I rowsort
SELECT ALL - 4 * - 64 AS col2
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT + COUNT( * ) + - + 97 * 37
----
-3588

skipif mysql # not compatible
query I rowsort label-8827
SELECT + COUNT ( * ) + - + 97 * 37
----
-3588

onlyif mysql # DIV for integer division: 
query I rowsort label-8828
SELECT ALL 18 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL 18 / - 37
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8829
SELECT - 99 AS col2, - CAST( + + 20 AS SIGNED ) AS col1
----
-99
-20

skipif mysql # not compatible
query II rowsort label-8829
SELECT - 99 AS col2, - CAST ( + + 20 AS INTEGER ) AS col1
----
-99
-20

query I rowsort
SELECT 53 + - + 23
----
30

query I rowsort
SELECT CASE WHEN ( NULL ) > - - 50 THEN NULL ELSE + 83 + - CASE + ( - 35 ) WHEN 59 THEN - 24 END END * ( + 0 ) / - 4 * 94 + + 15 + 23
----
NULL

query I rowsort
SELECT 98 * - 48 AS col1
----
-4704

query I rowsort
SELECT DISTINCT 17 * 16 AS col0
----
272

query I rowsort
SELECT ALL 75 * + 85
----
6375

query II rowsort
SELECT + 67 AS col2, + 18
----
67
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT + 9 * ( ( 9 ) ) * 99 + - 8 + SUM( - 57 )
----
7954

skipif mysql # not compatible
query I rowsort label-8836
SELECT + 9 * ( ( 9 ) ) * 99 + - 8 + SUM ( - 57 )
----
7954

query I rowsort
SELECT DISTINCT 69 + 6 col2
----
75

query II rowsort
SELECT DISTINCT - 39 AS col0, 72 + 95 + - 2 + 37 * - CASE 86 WHEN + - 85 THEN NULL WHEN 27 THEN - 31 / 93 END AS col2
----
-39
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8839
SELECT ( 16 ) / + 99 * + ( - + 77 ) - - + MIN( - + 34 ) * - NULLIF ( - 43, - 89 ) - + + 32 + + COUNT( * ) - + + 1 - - 4 / - CASE - 1 WHEN - COUNT( * ) THEN NULL ELSE 2 END * - CAST( + NULLIF ( - ( ( + - 80 ) ), CAST( NULL AS SIGNED ) * - 31 * - 17 + 2 + 53 + - + COUNT( * ) ) AS SIGNED ) * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT ( 16 ) / + 99 * + ( - + 77 ) - - + MIN ( - + 34 ) * - NULLIF ( - 43, - 89 ) - + + 32 + + COUNT ( * ) - + + 1 - - 4 / - CASE - 1 WHEN - COUNT ( * ) THEN NULL ELSE 2 END * - CAST ( + NULLIF ( - ( ( + - 80 ) ), CAST ( NULL AS INTEGER ) * - 31 * - 17 + 2 + 53 + - + COUNT ( * ) ) AS INTEGER ) * 60
----
NULL

query I rowsort
SELECT 47 + 75
----
122

query I rowsort
SELECT + ( 79 ) AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT ALL + - COUNT( * ) + 37 + + + 60 + + + CAST( NULL AS SIGNED ) * - 36 * - - 75 + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL + - COUNT ( * ) + 37 + + + 60 + + + CAST ( NULL AS INTEGER ) * - 36 * - - 75 + - 63
----
NULL

query I rowsort
SELECT ALL - + 51 * - - 90 AS col0
----
-4590

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8844
SELECT 64, 32 * - 8 DIV COUNT( * ) AS col1
----
64
-256

skipif mysql # not compatible
query II rowsort label-8844
SELECT 64, 32 * - 8 / COUNT ( * ) AS col1
----
64
-256

query I rowsort
SELECT + CASE 76 WHEN 30 + 30 THEN 48 WHEN 42 - + 34 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - + 26 AS col2
----
-26

query II rowsort
SELECT + + 73 AS col1, - 69
----
73
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT 6 - - 4 + + ( - 73 ) * 89 * + COUNT( * ) AS col1
----
-6487

skipif mysql # not compatible
query I rowsort label-8848
SELECT 6 - - 4 + + ( - 73 ) * 89 * + COUNT ( * ) AS col1
----
-6487

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT + + SUM( - + 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-8849
SELECT + + SUM ( - + 18 ) col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT - - COUNT( ALL - + 83 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8850
SELECT - - COUNT ( ALL - + 83 ) AS col0
----
1

query II rowsort
SELECT - 12 - + 77 * + 33, 82 AS col1
----
-2553
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT 51 * - 78 * + - COUNT( * ) * + ( - ( - 78 ) )
----
310284

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT 51 * - 78 * + - COUNT ( * ) * + ( - ( - 78 ) )
----
310284

query I rowsort
SELECT ALL - - 55 - + 72 col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT ALL + 27 * + 75 DIV - 5
----
-405

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL + 27 * + 75 / - 5
----
-405

query I rowsort
SELECT ALL - 73 + 82 AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8856
SELECT CASE + - 12 WHEN + 90 + - + 24 THEN NULL ELSE - 44 END + + COUNT( - - 18 ), 25 DIV - 94 AS col0
----
-43
0

skipif mysql # not compatible
query II rowsort label-8856
SELECT CASE + - 12 WHEN + 90 + - + 24 THEN NULL ELSE - 44 END + + COUNT ( - - 18 ), 25 / - 94 AS col0
----
-43
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8857
SELECT DISTINCT COUNT( DISTINCT + 69 ) DIV + + 36
----
0

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT COUNT ( DISTINCT + 69 ) / + + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT + COUNT( * ) * + NULLIF ( + 23, - 80 ) + - 84 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8858
SELECT + COUNT ( * ) * + NULLIF ( + 23, - 80 ) + - 84 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT 23 * COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-8859
SELECT 23 * COUNT ( * )
----
23

query I rowsort
SELECT DISTINCT - 78 * + - 95 + + - 94
----
7316

query II rowsort
SELECT ALL 27 * - 71 AS col0, + 70 - + + 56
----
-1917
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8862
SELECT DISTINCT 32 * + + ( 77 ) + - COUNT( * ), - 66 AS col1
----
2463
-66

skipif mysql # not compatible
query II rowsort label-8862
SELECT DISTINCT 32 * + + ( 77 ) + - COUNT ( * ), - 66 AS col1
----
2463
-66

query I rowsort
SELECT ALL CASE - ( + 52 ) WHEN 74 THEN - - 13 + - 16 ELSE NULL END - - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT DISTINCT - SUM( - - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT - SUM ( - - 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL - + MIN( 80 ) col0
----
-80

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL - + MIN ( 80 ) col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT - 99 * + + 85 + - COUNT( * ) + ( - 89 ) * 31
----
-11175

skipif mysql # not compatible
query I rowsort label-8866
SELECT - 99 * + + 85 + - COUNT ( * ) + ( - 89 ) * 31
----
-11175

query I rowsort
SELECT + 60 + + 23 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL - CASE - + COALESCE ( - ( 55 ), - ( - 12 ), + 86 ) WHEN - 7 * 6 * - 93 / - COUNT( * ) + + NULLIF ( 84, - + 20 ) * + COUNT( * ) THEN + - 23 - 83 + - - 6 * + 32 + - 18 - + + ( - + NULLIF ( - ( 55 ), - - 75 ) ) * - COUNT( * ) * 91 WHEN - - 23 THEN - + 34 ELSE NULL END - - - COALESCE ( + - ( - 2 ), + + NULLIF ( - + 40, + 64 + - - 85 ) + + - MAX( - 90 ) * 68 ) - + 24 / COUNT( - 54 + + 80 * 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL - CASE - + COALESCE ( - ( 55 ), - ( - 12 ), + 86 ) WHEN - 7 * 6 * - 93 / - COUNT ( * ) + + NULLIF ( 84, - + 20 ) * + COUNT ( * ) THEN + - 23 - 83 + - - 6 * + 32 + - 18 - + + ( - + NULLIF ( - ( 55 ), - - 75 ) ) * - COUNT ( * ) * 91 WHEN - - 23 THEN - + 34 ELSE NULL END - - - COALESCE ( + - ( - 2 ), + + NULLIF ( - + 40, + 64 + - - 85 ) + + - MAX ( - 90 ) * 68 ) - + 24 / COUNT ( - 54 + + 80 * 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8869
SELECT - 23 * + + 98 + COUNT( * ) + 44 col1, + 12 + + 51 col0
----
-2209
63

skipif mysql # not compatible
query II rowsort label-8869
SELECT - 23 * + + 98 + COUNT ( * ) + 44 col1, + 12 + + 51 col0
----
-2209
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT ALL - + COALESCE ( + 18, + - ( - + COUNT( ALL 77 ) ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL - + COALESCE ( + 18, + - ( - + COUNT ( ALL 77 ) ) ) AS col2
----
-18

query I rowsort
SELECT DISTINCT + 76 * + 44
----
3344

query I rowsort
SELECT DISTINCT - 65 * + + 1 AS col2
----
-65

query I rowsort
SELECT + 0 * - 71 + - 85 + - - 42 + - 7 col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT - COUNT( * ) + + + 81 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8874
SELECT - COUNT ( * ) + + + 81 AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8875
SELECT ALL + ( - COUNT( * ) ) * + 4 DIV + 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL + ( - COUNT ( * ) ) * + 4 / + 48 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT - COUNT( * ) + + 9 col0
----
8

skipif mysql # not compatible
query I rowsort label-8876
SELECT - COUNT ( * ) + + 9 col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8877
SELECT - CAST( 64 AS SIGNED ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-8877
SELECT - CAST ( 64 AS INTEGER ) AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8878
SELECT - ( 24 ) + NULLIF ( - + AVG ( - COALESCE ( + 5, - 94 ) ), + 67 ) - - COUNT( * ) * + + 55 / + 36 * + 27 + + - CASE - COUNT( * ) WHEN 21 * 82 + - NULLIF ( - 67, - 2 ) + - COUNT( 84 ) THEN COUNT( * ) WHEN - 93 THEN - COUNT( * ) / - MAX( 46 ) END + + 51 - + COUNT( * ) + - AVG ( DISTINCT - 44 ) - - SUM( + CAST( 97 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT - ( 24 ) + NULLIF ( - + AVG ( - COALESCE ( + 5, - 94 ) ), + 67 ) - - COUNT ( * ) * + + 55 / + 36 * + 27 + + - CASE - COUNT ( * ) WHEN 21 * 82 + - NULLIF ( - 67, - 2 ) + - COUNT ( 84 ) THEN COUNT ( * ) WHEN - 93 THEN - COUNT ( * ) / - MAX ( 46 ) END + + 51 - + COUNT ( * ) + - AVG ( DISTINCT - 44 ) - - SUM ( + CAST ( 97 AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8879
SELECT ALL NULLIF ( COALESCE ( + - 19, 94 + - 10 * + 35 * + 37, + 41 DIV + 27, - - 28 + - - 47 ), 17 )
----
-19

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL NULLIF ( COALESCE ( + - 19, 94 + - 10 * + 35 * + 37, + 41 / + 27, - - 28 + - - 47 ), 17 )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8880
SELECT DISTINCT - 59 + NULLIF ( 63, + - 79 + + 41 ) + + NULLIF ( 72, + - 39 * 23 - + - 51 + 37 - + COUNT( * ) * 36 ) DIV + 75 * + 66 * 90
----
4

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT - 59 + NULLIF ( 63, + - 79 + + 41 ) + + NULLIF ( 72, + - 39 * 23 - + - 51 + 37 - + COUNT ( * ) * 36 ) / + 75 * + 66 * 90
----
4

query I rowsort
SELECT ALL + 5 + + 56 AS col0
----
61

query II rowsort
SELECT 27, 75 AS col1
----
27
75

query I rowsort
SELECT DISTINCT - 87 + 40 - 59 col0
----
-106

query I rowsort
SELECT - 23 * + 82 AS col1
----
-1886

query I rowsort
SELECT + 99 * 37 * - 14
----
-51282

onlyif mysql # aggregate syntax: 
query II rowsort label-8886
SELECT ALL + 96 * + COUNT( - + 78 ) AS col0, - 94 col2
----
96
-94

skipif mysql # not compatible
query II rowsort label-8886
SELECT ALL + 96 * + COUNT ( - + 78 ) AS col0, - 94 col2
----
96
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8887
SELECT - COUNT( * ), MAX( DISTINCT - 71 ) * 21 + - NULLIF ( CAST( NULL AS SIGNED ), - - 72 / 70 - 88 + 16 + + + ( 1 ) * + AVG ( ALL 65 ) ) * - 54 + + 3 / 91 col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8887
SELECT - COUNT ( * ), MAX ( DISTINCT - 71 ) * 21 + - NULLIF ( CAST ( NULL AS INTEGER ), - - 72 / 70 - 88 + 16 + + + ( 1 ) * + AVG ( ALL 65 ) ) * - 54 + + 3 / 91 col2
----
-1
NULL

query I rowsort
SELECT - 4 + 72
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT - ( ( 97 ) ) * - - COUNT( * ) * - 80
----
7760

skipif mysql # not compatible
query I rowsort label-8889
SELECT - ( ( 97 ) ) * - - COUNT ( * ) * - 80
----
7760

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT + 69 * COUNT( DISTINCT - + 20 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-8890
SELECT + 69 * COUNT ( DISTINCT - + 20 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL + 97 * COUNT( + 48 )
----
97

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + 97 * COUNT ( + 48 )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8892
SELECT ALL - 42 + + 47 DIV - 27 AS col0, + COUNT( + - ( - + NULLIF ( + 92, - + 26 ) ) ) + + 13 * - - 68
----
-43
885

skipif mysql # not compatible
query II rowsort label-8892
SELECT ALL - 42 + + 47 / - 27 AS col0, + COUNT ( + - ( - + NULLIF ( + 92, - + 26 ) ) ) + + 13 * - - 68
----
-43
885

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT - 51 * + 40 + + 56 * NULLIF ( 72, COUNT( * ) ) * 28 col1
----
110856

skipif mysql # not compatible
query I rowsort label-8893
SELECT - 51 * + 40 + + 56 * NULLIF ( 72, COUNT ( * ) ) * 28 col1
----
110856

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT - + 99 * + + COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-8894
SELECT - + 99 * + + COUNT ( * )
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT - 96 DIV - 6 + - 79 - 7
----
-70

skipif mysql # not compatible
query I rowsort label-8895
SELECT - 96 / - 6 + - 79 - 7
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL - COUNT( * ) * + 61 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL - COUNT ( * ) * + 61 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT + 58 * MIN( 64 ) - - 21
----
3733

skipif mysql # not compatible
query I rowsort label-8897
SELECT + 58 * MIN ( 64 ) - - 21
----
3733

query I rowsort
SELECT ALL 27 * + 26 * - 54 AS col0
----
-37908

query II rowsort
SELECT 18 AS col1, + 5
----
18
5

query I rowsort
SELECT + + 67 * - 38 AS col2
----
-2546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8901
SELECT ALL - + 67 DIV + - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL - + 67 / + - COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8902
SELECT + COALESCE ( - 4, 86, 23 * - - COUNT( * ) - + + 33 ) AS col1, + COALESCE ( + + 53, + 46, + + COUNT( * ) ) AS col1
----
-4
53

skipif mysql # not compatible
query II rowsort label-8902
SELECT + COALESCE ( - 4, 86, 23 * - - COUNT ( * ) - + + 33 ) AS col1, + COALESCE ( + + 53, + 46, + + COUNT ( * ) ) AS col1
----
-4
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT + - 81 - - 18 DIV 44 * 48
----
-81

skipif mysql # not compatible
query I rowsort label-8903
SELECT + - 81 - - 18 / 44 * 48
----
-81

query II rowsort
SELECT 98 col0, NULLIF ( + 7, - - 16 + 2 * - 87 - 3 + 25 + - 72 * - 0 )
----
98
7

query I rowsort
SELECT - - 42 * - 61 * 42 - + 73
----
-107677

query I rowsort
SELECT ALL + COALESCE ( + 28, 41, + 21 ) AS col0
----
28

query I rowsort
SELECT - ( + CASE 20 WHEN - ( + 41 ) THEN - + 17 WHEN - 42 + - 18 + + 59 + + + 70 THEN NULL ELSE NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT DISTINCT - 72 * 65 * + - COALESCE ( - + 17, + CAST( - 43 AS SIGNED ) ) + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT - 72 * 65 * + - COALESCE ( - + 17, + CAST ( - 43 AS INTEGER ) ) + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8909
SELECT ALL COALESCE ( - - 89, - + CAST( NULL AS SIGNED ) ) * 62 + + - 60 + + 67 + - COALESCE ( - - 13, + 25, 16 ) * - 24 * + ( - 84 ) + - SUM( DISTINCT 92 ) + COUNT( - 99 ) DIV - 99 - 34 + - - 70 + + COUNT( * ) AS col2
----
-20738

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL COALESCE ( - - 89, - + CAST ( NULL AS INTEGER ) ) * 62 + + - 60 + + 67 + - COALESCE ( - - 13, + 25, 16 ) * - 24 * + ( - 84 ) + - SUM ( DISTINCT 92 ) + COUNT ( - 99 ) / - 99 - 34 + - - 70 + + COUNT ( * ) AS col2
----
-20738

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT 92 * 11 * 48 * - MIN( DISTINCT - 89 ) + NULLIF ( + 87, + 51 ) AS col1
----
4323351

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT 92 * 11 * 48 * - MIN ( DISTINCT - 89 ) + NULLIF ( + 87, + 51 ) AS col1
----
4323351

onlyif mysql # aggregate syntax: 
query II rowsort label-8911
SELECT ALL COUNT( * ) * - 89 + + + COUNT( ALL + 10 ) AS col1, + 64 * + 13
----
-88
832

skipif mysql # not compatible
query II rowsort label-8911
SELECT ALL COUNT ( * ) * - 89 + + + COUNT ( ALL + 10 ) AS col1, + 64 * + 13
----
-88
832

onlyif mysql # DIV for integer division: 
query I rowsort label-8912
SELECT ALL 53 * 87 DIV + - 58
----
-79

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL 53 * 87 / + - 58
----
-79

query II rowsort
SELECT - 99 * 32 AS col1, 33
----
-3168
33

query I rowsort
SELECT + 11 + - + 12 * - 90 * 90 AS col2
----
97211

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ALL + COUNT( * ) + 47
----
48

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL + COUNT ( * ) + 47
----
48

query I rowsort
SELECT - 63 + - 0
----
-63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8917
SELECT - 69 - + - CAST( - + 95 AS SIGNED ) + - - 61 DIV 9 + - 70 + + 52 + + - 26 AS col1
----
-202

skipif mysql # not compatible
query I rowsort label-8917
SELECT - 69 - + - CAST ( - + 95 AS INTEGER ) + - - 61 / 9 + - 70 + + 52 + + - 26 AS col1
----
-202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT DISTINCT CAST( 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT CAST ( 52 AS INTEGER )
----
52

query I rowsort
SELECT - 39 + 43 AS col1
----
4

query I rowsort
SELECT DISTINCT NULLIF ( - - 5, + 66 - - 43 + 89 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT - 33 + 68 * + COUNT( + 40 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8921
SELECT - 33 + 68 * + COUNT ( + 40 ) AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8922
SELECT ALL - 38 DIV - ( 42 )
----
0

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL - 38 / - ( 42 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT - COUNT( ALL + + 89 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8923
SELECT - COUNT ( ALL + + 89 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8924
SELECT CAST( 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-8924
SELECT CAST ( 34 AS INTEGER )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT - NULLIF ( SUM( - 42 ), + 77 * + 38 - + - COUNT( * ) ) + + 57
----
99

skipif mysql # not compatible
query I rowsort label-8925
SELECT - NULLIF ( SUM ( - 42 ), + 77 * + 38 - + - COUNT ( * ) ) + + 57
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8926
SELECT - + 53 * - - COUNT( * ) + COUNT( * ) * + 86 AS col1, + 82 col2
----
33
82

skipif mysql # not compatible
query II rowsort label-8926
SELECT - + 53 * - - COUNT ( * ) + COUNT ( * ) * + 86 AS col1, + 82 col2
----
33
82

query I rowsort
SELECT + 89 * + ( + 30 ) col1
----
2670

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8928
SELECT + - CASE - COUNT( * ) WHEN - + 90 * + + COUNT( * ) THEN + 7 END * - + 19 + ( 99 ) * + + 30 / 10 * 64 / - 56 * + COALESCE ( + COUNT( * ), + COUNT( * ), + - CAST( + - 59 AS DECIMAL ) * - 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT + - CASE - COUNT ( * ) WHEN - + 90 * + + COUNT ( * ) THEN + 7 END * - + 19 + ( 99 ) * + + 30 / 10 * 64 / - 56 * + COALESCE ( + COUNT ( * ), + COUNT ( * ), + - CAST ( + - 59 AS REAL ) * - 15 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT + - MIN( ALL - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-8929
SELECT + - MIN ( ALL - 67 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8930
SELECT ALL + CASE - CASE - 90 WHEN + 82 THEN NULL WHEN - + 82 THEN NULL WHEN + - 21 / - + 68 + ( - COALESCE ( + CAST( NULL AS SIGNED ), 71 + + 15 ) ) + COUNT( + - 80 ) * + + CAST( NULL AS DECIMAL ) THEN + 33 END WHEN 47 THEN + 45 * + - 64 * + - 10 WHEN + ( - + 61 ) THEN - 3 WHEN 70 / + 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL + CASE - CASE - 90 WHEN + 82 THEN NULL WHEN - + 82 THEN NULL WHEN + - 21 / - + 68 + ( - COALESCE ( + CAST ( NULL AS INTEGER ), 71 + + 15 ) ) + COUNT ( + - 80 ) * + + CAST ( NULL AS REAL ) THEN + 33 END WHEN 47 THEN + 45 * + - 64 * + - 10 WHEN + ( - + 61 ) THEN - 3 WHEN 70 / + 36 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 98 * + 4 AS col2
----
-392

query I rowsort
SELECT DISTINCT + + 21
----
21

query I rowsort
SELECT ( - 57 ) * - 17 + 92 col2
----
1061

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT - 39 * - COUNT( * ) + - + 23
----
16

skipif mysql # not compatible
query I rowsort label-8934
SELECT - 39 * - COUNT ( * ) + - + 23
----
16

query II rowsort
SELECT 53 + - + 32 AS col1, + 70 + + + 95
----
21
165

onlyif mysql # aggregate syntax: 
query II rowsort label-8936
SELECT DISTINCT - 40 AS col0, COALESCE ( + 49, - - 55 * COUNT( * ) ) AS col2
----
-40
49

skipif mysql # not compatible
query II rowsort label-8936
SELECT DISTINCT - 40 AS col0, COALESCE ( + 49, - - 55 * COUNT ( * ) ) AS col2
----
-40
49

query I rowsort
SELECT 99 + - 81 - + NULLIF ( - 38, 63 ) * - 66 * + 18 * + - 99 AS col1
----
4469274

onlyif mysql # aggregate syntax: 
query II rowsort label-8938
SELECT - 56 * + 99 - - MIN( - 14 ), + 25 col1
----
-5558
25

skipif mysql # not compatible
query II rowsort label-8938
SELECT - 56 * + 99 - - MIN ( - 14 ), + 25 col1
----
-5558
25

query II rowsort
SELECT ALL - 2, + 33 AS col1
----
-2
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT + COUNT( * ) * 22 * - COUNT( * ) + - + 74
----
-96

skipif mysql # not compatible
query I rowsort label-8940
SELECT + COUNT ( * ) * 22 * - COUNT ( * ) + - + 74
----
-96

query I rowsort
SELECT ALL 41 + + 92
----
133

query I rowsort
SELECT ALL 53 * + 93 * 86
----
423894

query I rowsort
SELECT ALL 12 * 72 * CASE - 87 WHEN - - 22 THEN + 29 / - 99 * - + 3 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8944
SELECT ALL 5 + CASE - - 88 WHEN + CAST( NULL AS SIGNED ) THEN - CAST( NULL AS SIGNED ) END + 70 + + 66, 89 col0
----
NULL
89

skipif mysql # not compatible
query II rowsort label-8944
SELECT ALL 5 + CASE - - 88 WHEN + CAST ( NULL AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) END + 70 + + 66, 89 col0
----
NULL
89

query I rowsort
SELECT 10 + + 3 AS col2
----
13

query I rowsort
SELECT 17 + - 93 col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT - COUNT( * ) * - COUNT( * ) + 13 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8947
SELECT - COUNT ( * ) * - COUNT ( * ) + 13 AS col2
----
14

query II rowsort
SELECT DISTINCT 4 - + 77 - 63 AS col0, - 45 col1
----
-136
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8949
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + CASE + + 91 WHEN - 50 * - 75 + - 4 THEN 33 WHEN + CASE WHEN NOT - COUNT( * ) IS NOT NULL THEN - 37 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + CASE + + 91 WHEN - 50 * - 75 + - 4 THEN 33 WHEN + CASE WHEN NOT - COUNT ( * ) IS NOT NULL THEN - 37 END THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT DISTINCT 98 * + 61 * - COUNT( * ) * 92 AS col2
----
-549976

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT 98 * + 61 * - COUNT ( * ) * 92 AS col2
----
-549976

query I rowsort
SELECT DISTINCT 77 col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT 96 * - CAST( + 52 AS SIGNED ) AS col1
----
-4992

skipif mysql # not compatible
query I rowsort label-8952
SELECT 96 * - CAST ( + 52 AS INTEGER ) AS col1
----
-4992

query I rowsort
SELECT - - 96 AS col2
----
96

query I rowsort
SELECT - 4 - + 73
----
-77

query I rowsort
SELECT + ( + 84 ) * - - 75
----
6300

query I rowsort
SELECT ( 14 ) + + - 71 * 27 * + - 22 + + 68 AS col2
----
42256

query I rowsort
SELECT ALL - COALESCE ( - - 88, - + 37 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT DISTINCT + + 58 + - 85 + 79 * - SUM( + 5 ) - + + 77 - + 58 * - 87 + CASE - 94 WHEN + + 29 THEN - 8 ELSE + 29 * + SUM( ALL + 0 ) END / + - CASE - ( 76 ) WHEN - + CASE - ( - + COUNT( * ) ) WHEN + - ( + + 32 ) THEN 81 - 15 WHEN 46 THEN 3 + + ( + + 38 ) END * 80 + AVG ( DISTINCT - 5 ) THEN - + 69 / - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT + + 58 + - 85 + 79 * - SUM ( + 5 ) - + + 77 - + 58 * - 87 + CASE - 94 WHEN + + 29 THEN - 8 ELSE + 29 * + SUM ( ALL + 0 ) END / + - CASE - ( 76 ) WHEN - + CASE - ( - + COUNT ( * ) ) WHEN + - ( + + 32 ) THEN 81 - 15 WHEN 46 THEN 3 + + ( + + 38 ) END * 80 + AVG ( DISTINCT - 5 ) THEN - + 69 / - - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - + 96 + + 78
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8960
SELECT 45 DIV - ( 4 )
----
-11

skipif mysql # not compatible
query I rowsort label-8960
SELECT 45 / - ( 4 )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8961
SELECT 88 DIV + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8961
SELECT 88 / + COUNT ( * ) AS col2
----
88

query II rowsort
SELECT ALL + 45 + 99, NULLIF ( - 57, - 34 ) AS col0
----
144
-57

query I rowsort
SELECT + 29 * - 70
----
-2030

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT 65 + + + MIN( DISTINCT - + 97 ) * + - COUNT( + 72 ) * 67 AS col1
----
6564

skipif mysql # not compatible
query I rowsort label-8964
SELECT 65 + + + MIN ( DISTINCT - + 97 ) * + - COUNT ( + 72 ) * 67 AS col1
----
6564

query I rowsort
SELECT + 16 * + 55 - - 3 + 80 + + 61 + - 53 AS col2
----
971

query I rowsort
SELECT ALL - 4 + - + 50 col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8967
SELECT ALL - COUNT( * ), - CAST( NULL AS DECIMAL ) * - - 52 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8967
SELECT ALL - COUNT ( * ), - CAST ( NULL AS REAL ) * - - 52 AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8968
SELECT ALL - 73 + + + SUM( ALL - ( + 94 ) ) AS col1, - 9 + 37 AS col2
----
-167
28

skipif mysql # not compatible
query II rowsort label-8968
SELECT ALL - 73 + + + SUM ( ALL - ( + 94 ) ) AS col1, - 9 + 37 AS col2
----
-167
28

query I rowsort
SELECT 62 * 60 AS col1
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL + 10 + 20 + - 28 + + COUNT( * ) + NULLIF ( - - 40, 89 * + + 24 + + + 71 * + 8 * + 54 - 73 ) + + 94 * - ( + + COUNT( * ) ) * - 91 * - 63
----
-538859

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL + 10 + 20 + - 28 + + COUNT ( * ) + NULLIF ( - - 40, 89 * + + 24 + + + 71 * + 8 * + 54 - 73 ) + + 94 * - ( + + COUNT ( * ) ) * - 91 * - 63
----
-538859

onlyif mysql # aggregate syntax: 
query II rowsort label-8971
SELECT 81 - - MIN( ALL + 73 ) AS col0, 29
----
154
29

skipif mysql # not compatible
query II rowsort label-8971
SELECT 81 - - MIN ( ALL + 73 ) AS col0, 29
----
154
29

query I rowsort
SELECT ALL 99 * - 95
----
-9405

query II rowsort
SELECT + 5 AS col1, + 70 * 96
----
5
6720

onlyif mysql # DIV for integer division: 
query I rowsort label-8974
SELECT DISTINCT + 56 DIV - 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT + 56 / - 64 AS col2
----
0

query I rowsort
SELECT DISTINCT 93 * - 2 AS col2
----
-186

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8976
SELECT COUNT( * ) DIV + - 60 * 4 AS col2, ( - 42 )
----
0
-42

skipif mysql # not compatible
query II rowsort label-8976
SELECT COUNT ( * ) / + - 60 * 4 AS col2, ( - 42 )
----
0
-42

query I rowsort
SELECT ALL + 38 * 38
----
1444

query I rowsort
SELECT 16 - + 99
----
-83

query II rowsort
SELECT ALL 19 AS col0, - 95 AS col0
----
19
-95

query I rowsort
SELECT DISTINCT 57 * + 44
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ( - + COUNT( ALL - 88 ) ) * 93 * - 36 + 81 * 56 AS col1
----
7884

skipif mysql # not compatible
query I rowsort label-8981
SELECT ( - + COUNT ( ALL - 88 ) ) * 93 * - 36 + 81 * 56 AS col1
----
7884

query I rowsort
SELECT 6 + 19 + - - 4 AS col1
----
29

query II rowsort
SELECT + 15 AS col2, 94
----
15
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT MAX( + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-8984
SELECT MAX ( + 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT + COUNT( * ) + ( COUNT( * ) ) * 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-8985
SELECT + COUNT ( * ) + ( COUNT ( * ) ) * 83 AS col2
----
84

query II rowsort
SELECT ALL - COALESCE ( 81, + - 27 ) AS col2, - 28 col1
----
-81
-28

query I rowsort
SELECT DISTINCT 50 + 49 + - 88 + + 4 * + ( - - 49 ) - + 16 AS col2
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT ALL COALESCE ( - MIN( ALL CASE + 85 WHEN - + 99 THEN NULL WHEN 38 THEN NULL ELSE 55 END ), - - MIN( ALL - 18 ) * - + 80 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL COALESCE ( - MIN ( ALL CASE + 85 WHEN - + 99 THEN NULL WHEN 38 THEN NULL ELSE 55 END ), - - MIN ( ALL - 18 ) * - + 80 ) AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8989
SELECT ALL + 77 AS col2, - 59 * - CAST( 99 AS SIGNED )
----
77
5841

skipif mysql # not compatible
query II rowsort label-8989
SELECT ALL + 77 AS col2, - 59 * - CAST ( 99 AS INTEGER )
----
77
5841

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT + ( 48 ) + - + COUNT( * ) + + 28
----
75

skipif mysql # not compatible
query I rowsort label-8990
SELECT + ( 48 ) + - + COUNT ( * ) + + 28
----
75

query I rowsort
SELECT + 47 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT DISTINCT - 49 + - 34 + COUNT( * ) * ( - + 32 ) * + COUNT( * )
----
-115

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT - 49 + - 34 + COUNT ( * ) * ( - + 32 ) * + COUNT ( * )
----
-115

onlyif mysql # aggregate syntax: 
query II rowsort label-8993
SELECT ALL 50 AS col2, COUNT( * ) - + 33 AS col2
----
50
-32

skipif mysql # not compatible
query II rowsort label-8993
SELECT ALL 50 AS col2, COUNT ( * ) - + 33 AS col2
----
50
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-8994
SELECT - 61, + CASE - - 4 WHEN + 59 * + + 22 + + COALESCE ( - 87, - - 25 - + COUNT( * ) + 8 ) * + 83 THEN + - 4 WHEN 26 THEN + 23 WHEN + - ( + + SUM( ALL - ( + 47 ) ) ) * - COUNT( - 41 ) THEN NULL END + 55 - 88 + COUNT( * ) + + 97 AS col1
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-8994
SELECT - 61, + CASE - - 4 WHEN + 59 * + + 22 + + COALESCE ( - 87, - - 25 - + COUNT ( * ) + 8 ) * + 83 THEN + - 4 WHEN 26 THEN + 23 WHEN + - ( + + SUM ( ALL - ( + 47 ) ) ) * - COUNT ( - 41 ) THEN NULL END + 55 - 88 + COUNT ( * ) + + 97 AS col1
----
-61
NULL

query I rowsort
SELECT ALL 34 + + - 18 AS col1
----
16

query I rowsort
SELECT ALL - 21 * + - 25 + - 89 + - 72
----
364

onlyif mysql # aggregate syntax: 
query II rowsort label-8997
SELECT DISTINCT + 11, 6 + + COUNT( * ) AS col0
----
11
7

skipif mysql # not compatible
query II rowsort label-8997
SELECT DISTINCT + 11, 6 + + COUNT ( * ) AS col0
----
11
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8998
SELECT + 72 * 29 - + 75 DIV + 12 - 51 * 90
----
-2508

skipif mysql # not compatible
query I rowsort label-8998
SELECT + 72 * 29 - + 75 / + 12 - 51 * 90
----
-2508

query I rowsort
SELECT DISTINCT - 6 * + + 38 * 66 + - ( + + 78 ) + 59 AS col0
----
-15067

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT - COUNT( - 73 ) * - 41 * - - 14 AS col0
----
574

skipif mysql # not compatible
query I rowsort label-9000
SELECT - COUNT ( - 73 ) * - 41 * - - 14 AS col0
----
574

query I rowsort
SELECT ALL + + 5 * - + 85 AS col1
----
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT NULLIF ( + 39, + - COUNT( * ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9002
SELECT NULLIF ( + 39, + - COUNT ( * ) ) AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9003
SELECT - CAST( COUNT( ALL 66 ) AS SIGNED ) + - 77
----
-78

skipif mysql # not compatible
query I rowsort label-9003
SELECT - CAST ( COUNT ( ALL 66 ) AS INTEGER ) + - 77
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT ALL - SUM( + - 28 ) * MAX( - CASE - + 58 WHEN - 55 + 65 * - - ( - 45 ) THEN NULL ELSE + 94 END ) * - 63 - - COUNT( * ) + 31
----
165848

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL - SUM ( + - 28 ) * MAX ( - CASE - + 58 WHEN - 55 + 65 * - - ( - 45 ) THEN NULL ELSE + 94 END ) * - 63 - - COUNT ( * ) + 31
----
165848

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT - CASE + COUNT( * ) WHEN - 89 THEN - NULLIF ( 95, 87 ) / - 27 + - 43 + - - 1 * - 75 ELSE NULL END + - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT - CASE + COUNT ( * ) WHEN - 89 THEN - NULLIF ( 95, 87 ) / - 27 + - 43 + - - 1 * - 75 ELSE NULL END + - 63 AS col1
----
NULL

query I rowsort
SELECT ALL + 26 col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT 42 * 63 * + COUNT( * ) + - - 11 * - + 70
----
1876

skipif mysql # not compatible
query I rowsort label-9007
SELECT 42 * 63 * + COUNT ( * ) + - - 11 * - + 70
----
1876

query I rowsort
SELECT ALL + 52 * - 37 * + 47 col0
----
-90428

query I rowsort
SELECT - 35 * + + 59 + - 81
----
-2146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9010
SELECT DISTINCT + CASE + + 21 WHEN - 44 / + 22 * 75 * + COUNT( * ) THEN NULL WHEN - + CAST( NULL AS SIGNED ) + - 44 THEN - 55 / + ( COUNT( * ) ) * 95 * 55 / - 9 * + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT + CASE + + 21 WHEN - 44 / + 22 * 75 * + COUNT ( * ) THEN NULL WHEN - + CAST ( NULL AS INTEGER ) + - 44 THEN - 55 / + ( COUNT ( * ) ) * 95 * 55 / - 9 * + 36 END
----
NULL

query I rowsort
SELECT - 81 * - - ( 47 )
----
-3807

query I rowsort
SELECT + 86 + - + 8
----
78

query I rowsort
SELECT DISTINCT ( + 72 ) AS col2
----
72

query I rowsort
SELECT ALL ( - 23 ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9015
SELECT + 80 + - CASE + 56 WHEN 13 THEN - ( + 23 ) * + 86 + - 4 WHEN - + COUNT( * ) THEN + - AVG ( ALL + + CAST( NULL AS SIGNED ) ) ELSE NULL END / - 65, 42 * + 1 AS col2
----
NULL
42

skipif mysql # not compatible
query II rowsort label-9015
SELECT + 80 + - CASE + 56 WHEN 13 THEN - ( + 23 ) * + 86 + - 4 WHEN - + COUNT ( * ) THEN + - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) ELSE NULL END / - 65, 42 * + 1 AS col2
----
NULL
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9016
SELECT ALL CAST( NULL AS DECIMAL ) * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL CAST ( NULL AS REAL ) * + 26
----
NULL

query I rowsort
SELECT ALL CASE - 74 WHEN + + 75 THEN NULL ELSE + 59 * - 12 + + 71 END
----
-637

onlyif mysql # aggregate syntax: 
query II rowsort label-9018
SELECT DISTINCT + COUNT( * ) * + + 7 AS col2, + 72 * 81 - + - COUNT( DISTINCT + + ( + + 2 ) ) + - 68
----
7
5765

skipif mysql # not compatible
query II rowsort label-9018
SELECT DISTINCT + COUNT ( * ) * + + 7 AS col2, + 72 * 81 - + - COUNT ( DISTINCT + + ( + + 2 ) ) + - 68
----
7
5765

query I rowsort
SELECT DISTINCT - ( + 43 ) + - - 0 AS col2
----
-43

query I rowsort
SELECT + + 83 + - 53
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT DISTINCT + 78 + + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT + 78 + + COUNT ( * )
----
79

query I rowsort
SELECT + - 64 - + - 42 + 78
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT + COUNT( DISTINCT + 17 ) + + ( 76 )
----
77

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT + COUNT ( DISTINCT + 17 ) + + ( 76 )
----
77

query I rowsort
SELECT DISTINCT ( - + 73 ) + + - 50 AS col0
----
-123

query I rowsort
SELECT ALL 68 + ( - - 7 )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9026
SELECT ALL 49 DIV 61 - - 0 - 44 * - 65 * + ( + + 15 ) AS col2
----
42900

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL 49 / 61 - - 0 - 44 * - 65 * + ( + + 15 ) AS col2
----
42900

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL + 43 * + + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL + 43 * + + COUNT ( * ) AS col0
----
43

query I rowsort
SELECT + + 38 * - + ( - 22 ) AS col0
----
836

onlyif mysql # DIV for integer division: 
query I rowsort label-9029
SELECT + ( 42 ) DIV - + 99 + + 76 + + 5 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9029
SELECT + ( 42 ) / - + 99 + + 76 + + 5 AS col0
----
81

query I rowsort
SELECT + ( 44 ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9031
SELECT CAST( NULL AS SIGNED ) AS col1, + CAST( + 15 AS SIGNED ) * + 93 * + 22 AS col0
----
NULL
30690

skipif mysql # not compatible
query II rowsort label-9031
SELECT CAST ( NULL AS INTEGER ) AS col1, + CAST ( + 15 AS INTEGER ) * + 93 * + 22 AS col0
----
NULL
30690

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT - 94 + + + COUNT( * ) + - - 32 * + + 84
----
2595

skipif mysql # not compatible
query I rowsort label-9032
SELECT - 94 + + + COUNT ( * ) + - - 32 * + + 84
----
2595

query I rowsort
SELECT - 53 * + - 59
----
3127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9034
SELECT ALL + CASE - 90 WHEN + CAST( NULL AS SIGNED ) * - 47 THEN - + COUNT( * ) ELSE COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL + CASE - 90 WHEN + CAST ( NULL AS INTEGER ) * - 47 THEN - + COUNT ( * ) ELSE COUNT ( * ) END AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9035
SELECT DISTINCT - 92 DIV 61 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT - 92 / 61 AS col2
----
-1

query I rowsort
SELECT - 17 * - 29 AS col0
----
493

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL + CASE + 31 WHEN 66 THEN - - COUNT( * ) * - 78 WHEN + + 31 + - - 29 / - + 82 + + - 8 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL + CASE + 31 WHEN 66 THEN - - COUNT ( * ) * - 78 WHEN + + 31 + - - 29 / - + 82 + + - 8 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT + CAST( - - 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-9038
SELECT + CAST ( - - 82 AS INTEGER )
----
82

query I rowsort
SELECT - 87 * - 39 AS col2
----
3393

query I rowsort
SELECT DISTINCT - 75 * - 71
----
5325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9041
SELECT ALL + 4 * - COALESCE ( 53, + + 82 - COALESCE ( 8, COUNT( * ) * 18 DIV 5 + + 83 ) ) + 25 + - 6 AS col2
----
-193

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL + 4 * - COALESCE ( 53, + + 82 - COALESCE ( 8, COUNT ( * ) * 18 / 5 + + 83 ) ) + 25 + - 6 AS col2
----
-193

query I rowsort
SELECT - ( - - 79 ) * + 33 - 7 AS col0
----
-2614

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT DISTINCT - 72 * - MAX( ALL 34 ) + + ( + 89 ) - 15 * + COUNT( * ) AS col1
----
2522

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT - 72 * - MAX ( ALL 34 ) + + ( + 89 ) - 15 * + COUNT ( * ) AS col1
----
2522

query I rowsort
SELECT DISTINCT NULLIF ( + 82, + + 52 ) * + + 80 col0
----
6560

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT ALL - 27 * + + ( 22 ) + - NULLIF ( + 58, + 84 * COUNT( - - 6 ) ) + - - 0 + COUNT( - + ( - 85 ) ) * + + 71 * ( 14 ) + 25 AS col0
----
367

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL - 27 * + + ( 22 ) + - NULLIF ( + 58, + 84 * COUNT ( - - 6 ) ) + - - 0 + COUNT ( - + ( - 85 ) ) * + + 71 * ( 14 ) + 25 AS col0
----
367

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT COALESCE ( + + 94, - COUNT( * ) )
----
94

skipif mysql # not compatible
query I rowsort label-9046
SELECT COALESCE ( + + 94, - COUNT ( * ) )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9047
SELECT DISTINCT + - ( - NULLIF ( 66, + + 44 ) ) + 65 * + 67 * + + 44 + + COUNT( * ) AS col0, 43 AS col1
----
191687
43

skipif mysql # not compatible
query II rowsort label-9047
SELECT DISTINCT + - ( - NULLIF ( 66, + + 44 ) ) + 65 * + 67 * + + 44 + + COUNT ( * ) AS col0, 43 AS col1
----
191687
43

query I rowsort
SELECT + 72 + - 17
----
55

query I rowsort
SELECT ALL - + 39 + - + 93 + - 50 + 35 + - + 68 + - 91 * + 97 * + 88
----
-776991

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9050
SELECT 43 + + 50 DIV - NULLIF ( 97, - SUM( DISTINCT - ( - 52 ) ) ) * - 5 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9050
SELECT 43 + + 50 / - NULLIF ( 97, - SUM ( DISTINCT - ( - 52 ) ) ) * - 5 AS col1
----
43

query I rowsort
SELECT - 0 + - ( + ( + 28 ) ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT ALL - SUM( ALL - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL - SUM ( ALL - 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT ALL - + COUNT( * ) - + 83 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL - + COUNT ( * ) - + 83 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT DISTINCT - - 97 - + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT - - 97 - + COUNT ( * )
----
96

query I rowsort
SELECT ALL ( + 88 ) AS col1
----
88

query I rowsort
SELECT ALL - 72 - - - 82 AS col2
----
-154

query I rowsort
SELECT + 88 * - 56 + - - CASE + 94 WHEN + + 99 THEN + ( - - 96 ) END + + ( + - 22 ) * 0
----
NULL

query II rowsort
SELECT + 82, + 2 + - 53 * - - 69 * - - 34 + - 36 * + + 40 AS col0
----
82
-125776

query I rowsort
SELECT DISTINCT NULLIF ( - 0, + 81 ) - + 53 + + 59 col0
----
6

query II rowsort
SELECT ALL - 62 col2, ( + 28 )
----
-62
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT NULLIF ( + COUNT( * ), + 72 ) * + 74
----
74

skipif mysql # not compatible
query I rowsort label-9061
SELECT NULLIF ( + COUNT ( * ), + 72 ) * + 74
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT 15 DIV + + 22 + + 20
----
20

skipif mysql # not compatible
query I rowsort label-9062
SELECT 15 / + + 22 + + 20
----
20

query I rowsort
SELECT 90 * - 26 * - + 94 AS col2
----
219960

query I rowsort
SELECT 26 + - + 74 AS col1
----
-48

query I rowsort
SELECT DISTINCT 34 * 53 col0
----
1802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9066
SELECT - 26 * - 99 * + - COALESCE ( + 45, 10 * COUNT( * ) ) * + + ( 96 ) + CAST( NULL AS SIGNED ) * - + COUNT( * ) + - + 26 - - 45 + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9066
SELECT - 26 * - 99 * + - COALESCE ( + 45, 10 * COUNT ( * ) ) * + + ( 96 ) + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + - + 26 - - 45 + 8 AS col0
----
NULL

query I rowsort
SELECT 16 + + 35 + + - 8 * - - 51
----
-357

query I rowsort
SELECT DISTINCT 98 + 7 AS col0
----
105

query I rowsort
SELECT ALL ( - 68 ) + + 2 + - ( + - 16 )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9070
SELECT 35 DIV - SUM( DISTINCT - - ( + 27 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9070
SELECT 35 / - SUM ( DISTINCT - - ( + 27 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9071
SELECT DISTINCT CASE COUNT( ALL - 98 ) WHEN - + SUM( ALL 62 ) THEN + 25 WHEN + + COUNT( * ) THEN CAST( NULL AS SIGNED ) * - 29 + + 29 + + + 10 + + - ( + 4 ) + 38 * + 34 / 49 * - 61 * - 89 + CAST( COALESCE ( - 0, - 32 * 33 + + + 70 + + NULLIF ( + ( + + 92 ), - 34 * + 39 * - - 31 ) ) AS DECIMAL ) * + - 79 * + 47 - - + 39 / 38 / + COALESCE ( + 93, + CASE - 51 WHEN + 8 * + 61 + + COUNT( * ) THEN NULL ELSE 33 END - - + 42 + + COUNT( * ) * - - 86, 76, COUNT( * ) - + COUNT( * ) ) WHEN + CASE 9 WHEN CAST( NULL AS SIGNED ) * NULLIF ( ( + 65 ) * - 14, - 6 ) THEN - ( 83 ) WHEN NULLIF ( 66, 25 ) THEN NULL ELSE 52 * + SUM( ALL - 74 ) END THEN NULL ELSE 51 END + + 55 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9071
SELECT DISTINCT CASE COUNT ( ALL - 98 ) WHEN - + SUM ( ALL 62 ) THEN + 25 WHEN + + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * - 29 + + 29 + + + 10 + + - ( + 4 ) + 38 * + 34 / 49 * - 61 * - 89 + CAST ( COALESCE ( - 0, - 32 * 33 + + + 70 + + NULLIF ( + ( + + 92 ), - 34 * + 39 * - - 31 ) ) AS REAL ) * + - 79 * + 47 - - + 39 / 38 / + COALESCE ( + 93, + CASE - 51 WHEN + 8 * + 61 + + COUNT ( * ) THEN NULL ELSE 33 END - - + 42 + + COUNT ( * ) * - - 86, 76, COUNT ( * ) - + COUNT ( * ) ) WHEN + CASE 9 WHEN CAST ( NULL AS INTEGER ) * NULLIF ( ( + 65 ) * - 14, - 6 ) THEN - ( 83 ) WHEN NULLIF ( 66, 25 ) THEN NULL ELSE 52 * + SUM ( ALL - 74 ) END THEN NULL ELSE 51 END + + 55 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9072
SELECT + 88 * + 12 * 80 + + + AVG ( DISTINCT + 66 ) * + CAST( NULL AS SIGNED ) / - 90 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9072
SELECT + 88 * + 12 * 80 + + + AVG ( DISTINCT + 66 ) * + CAST ( NULL AS INTEGER ) / - 90 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9073
SELECT CAST( 0 AS SIGNED ) / + + CAST( CASE - 61 WHEN - + NULLIF ( 18, - COUNT( * ) * - 78 * - 14 + + - ( - 39 ) * - CAST( NULL AS SIGNED ) ) * - 47 * - COALESCE ( - 47, - + 19 / 73 - - ( - CAST( - + 81 AS SIGNED ) ) ) THEN NULL WHEN + 67 THEN - 20 END AS SIGNED ) + + 68 + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-9073
SELECT CAST ( 0 AS INTEGER ) / + + CAST ( CASE - 61 WHEN - + NULLIF ( 18, - COUNT ( * ) * - 78 * - 14 + + - ( - 39 ) * - CAST ( NULL AS INTEGER ) ) * - 47 * - COALESCE ( - 47, - + 19 / 73 - - ( - CAST ( - + 81 AS INTEGER ) ) ) THEN NULL WHEN + 67 THEN - 20 END AS INTEGER ) + + 68 + + 36
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT + 4 + - - 75 DIV - 96 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9074
SELECT + 4 + - - 75 / - 96 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT 19 * - 38 + COUNT( * ) * + 40
----
-682

skipif mysql # not compatible
query I rowsort label-9075
SELECT 19 * - 38 + COUNT ( * ) * + 40
----
-682

onlyif mysql # DIV for integer division: 
query I rowsort label-9076
SELECT DISTINCT 83 DIV - + ( 36 )
----
-2

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT 83 / - + ( 36 )
----
-2

query I rowsort
SELECT ALL + - 87 + - 44 * 62 col1
----
-2815

query I rowsort
SELECT - + 65 col0
----
-65

query I rowsort
SELECT ALL - 28 * + 70 AS col2
----
-1960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT - 70 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9080
SELECT - 70 / CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 40 + - 36 + - 95 - + 57 - + 16 * + ( 29 ) AS col2, + 44
----
-692
44

query I rowsort
SELECT DISTINCT - ( + - 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT ALL - 37 * - COUNT( * ) * + 33 AS col1
----
1221

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL - 37 * - COUNT ( * ) * + 33 AS col1
----
1221

query II rowsort
SELECT + 13 AS col2, - 94 * 24
----
13
-2256

query I rowsort
SELECT ALL - 26 * + + 48 - + - 71
----
-1177

query II rowsort
SELECT ALL 41, + 85 AS col1
----
41
85

query I rowsort
SELECT + 20 * - + 27
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL - 76 * + 31 - + COUNT( * )
----
-2357

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL - 76 * + 31 - + COUNT ( * )
----
-2357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9089
SELECT - 29 + - 58 + + 3 * - COUNT( * ) * + 0 * + SUM( 42 ) + 4 * 98 DIV - 62
----
-93

skipif mysql # not compatible
query I rowsort label-9089
SELECT - 29 + - 58 + + 3 * - COUNT ( * ) * + 0 * + SUM ( 42 ) + 4 * 98 / - 62
----
-93

query II rowsort
SELECT - + 14 col0, + 2 AS col2
----
-14
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9091
SELECT 30 AS col2, + COUNT( * ) AS col2
----
30
1

skipif mysql # not compatible
query II rowsort label-9091
SELECT 30 AS col2, + COUNT ( * ) AS col2
----
30
1

query I rowsort
SELECT - 56 * + 44 AS col0
----
-2464

query I rowsort
SELECT 6 - 56 - 70
----
-120

query I rowsort
SELECT DISTINCT 15 col1
----
15

query I rowsort
SELECT ALL - 92 * + + 70
----
-6440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT 0 * 82 * + 66 * CAST( 83 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9096
SELECT 0 * 82 * + 66 * CAST ( 83 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9097
SELECT ALL - 19 DIV + - 71 col0, - 99 AS col2
----
0
-99

skipif mysql # not compatible
query II rowsort label-9097
SELECT ALL - 19 / + - 71 col0, - 99 AS col2
----
0
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT DISTINCT - 10 DIV + 6 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT - 10 / + 6 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT ALL - CAST( + 13 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL - CAST ( + 13 AS INTEGER )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-9100
SELECT ALL - 93 * + 86 AS col0, - MAX( CASE - + 65 WHEN + 10 / - + 2 THEN NULL ELSE 35 END ) AS col0
----
-7998
-35

skipif mysql # not compatible
query II rowsort label-9100
SELECT ALL - 93 * + 86 AS col0, - MAX ( CASE - + 65 WHEN + 10 / - + 2 THEN NULL ELSE 35 END ) AS col0
----
-7998
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT 90 DIV 24 * 93 AS col0
----
279

skipif mysql # not compatible
query I rowsort label-9101
SELECT 90 / 24 * 93 AS col0
----
279

query II rowsort
SELECT 26 * + 19 AS col0, - 51 * - 23
----
494
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT DISTINCT + 83 * MIN( + 70 ) + 3 + - + COUNT( * ) * - 24
----
5837

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT + 83 * MIN ( + 70 ) + 3 + - + COUNT ( * ) * - 24
----
5837

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT MIN( - ( + + 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9104
SELECT MIN ( - ( + + 0 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT DISTINCT ( - + COUNT( 54 ) ) * - 32 + + + 9 - - 90 AS col1
----
131

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT ( - + COUNT ( 54 ) ) * - 32 + + + 9 - - 90 AS col1
----
131

query I rowsort
SELECT ALL + ( - ( 48 ) ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-9107
SELECT ALL 3 * + 45 * + - 2 * - - COUNT( * ) + + 36, + 20 col2
----
-234
20

skipif mysql # not compatible
query II rowsort label-9107
SELECT ALL 3 * + 45 * + - 2 * - - COUNT ( * ) + + 36, + 20 col2
----
-234
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT + 21 * COUNT( * ) * - 21 * + - 5
----
2205

skipif mysql # not compatible
query I rowsort label-9108
SELECT + 21 * COUNT ( * ) * - 21 * + - 5
----
2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9109
SELECT ALL - 23 * - 63 + - 43 + + + COUNT( * ) DIV + - 57 AS col2
----
1406

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL - 23 * - 63 + - 43 + + + COUNT ( * ) / + - 57 AS col2
----
1406

onlyif mysql # aggregate syntax: 
query II rowsort label-9110
SELECT + SUM( DISTINCT + 71 ), - COUNT( * ) AS col0
----
71
-1

skipif mysql # not compatible
query II rowsort label-9110
SELECT + SUM ( DISTINCT + 71 ), - COUNT ( * ) AS col0
----
71
-1

query I rowsort
SELECT ALL + 33 * - + 59 + 79 col2
----
-1868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9112
SELECT + + 69 * + - 99 * + 80 + + ( + CAST( NULL AS SIGNED ) ) - NULLIF ( - + 46, - 82 + - 44 ) * + 80 / + CASE + + COUNT( * ) WHEN 18 / + 35 + COUNT( * ) + + - 16 THEN 14 WHEN - 36 THEN + 76 ELSE + 64 * 66 + + 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT + + 69 * + - 99 * + 80 + + ( + CAST ( NULL AS INTEGER ) ) - NULLIF ( - + 46, - 82 + - 44 ) * + 80 / + CASE + + COUNT ( * ) WHEN 18 / + 35 + COUNT ( * ) + + - 16 THEN 14 WHEN - 36 THEN + 76 ELSE + 64 * 66 + + 33 END
----
NULL

query I rowsort
SELECT DISTINCT 29 * + 83 + + 98
----
2505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9114
SELECT ALL - 71 - COUNT( * ) + - CAST( NULL AS SIGNED ) + + 48 * + 97 AS col1, + 17 * - 6
----
NULL
-102

skipif mysql # not compatible
query II rowsort label-9114
SELECT ALL - 71 - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 48 * + 97 AS col1, + 17 * - 6
----
NULL
-102

query I rowsort
SELECT DISTINCT - 38 - + + 99
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT + COUNT( * ) - - + 8
----
9

skipif mysql # not compatible
query I rowsort label-9116
SELECT + COUNT ( * ) - - + 8
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT + COUNT( * ) * COALESCE ( 38, - 14, - MAX( + 50 ) + - NULLIF ( + 44, - 93 ) + + - 72 + + 1 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-9117
SELECT + COUNT ( * ) * COALESCE ( 38, - 14, - MAX ( + 50 ) + - NULLIF ( + 44, - 93 ) + + - 72 + + 1 ) col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9118
SELECT + - 94 * - 6, + 3 - + 46 + - - 72 + + 72 * CASE + - NULLIF ( CASE - - 96 WHEN - - CAST( + 28 AS DECIMAL ) THEN - + 18 * + + 71 + + 86 - + 89 + + 27 WHEN + 21 THEN + 44 - + - 40 + + 95 * - + CAST( NULL AS DECIMAL ) ELSE NULL END, + 68 ) WHEN 27 THEN NULL WHEN + + CAST( NULL AS SIGNED ) THEN - 20 / 41 * 70 * 77 + + NULLIF ( + COUNT( * ), + + 62 ) END + ( + - 3 ) * 93 * - + CAST( NULL AS SIGNED ) * + 74 + - + 43 * + + 13 AS col2
----
564
NULL

skipif mysql # not compatible
query II rowsort label-9118
SELECT + - 94 * - 6, + 3 - + 46 + - - 72 + + 72 * CASE + - NULLIF ( CASE - - 96 WHEN - - CAST ( + 28 AS REAL ) THEN - + 18 * + + 71 + + 86 - + 89 + + 27 WHEN + 21 THEN + 44 - + - 40 + + 95 * - + CAST ( NULL AS REAL ) ELSE NULL END, + 68 ) WHEN 27 THEN NULL WHEN + + CAST ( NULL AS INTEGER ) THEN - 20 / 41 * 70 * 77 + + NULLIF ( + COUNT ( * ), + + 62 ) END + ( + - 3 ) * 93 * - + CAST ( NULL AS INTEGER ) * + 74 + - + 43 * + + 13 AS col2
----
564
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9119
SELECT DISTINCT - 89 DIV 72 * + 68 + + - 88
----
-156

skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT - 89 / 72 * + 68 + + - 88
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT + MAX( DISTINCT + ( + 12 ) ) * + 53 AS col1
----
636

skipif mysql # not compatible
query I rowsort label-9120
SELECT + MAX ( DISTINCT + ( + 12 ) ) * + 53 AS col1
----
636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9121
SELECT - CASE - NULLIF ( - 6, - NULLIF ( 62, + - CASE - COUNT( * ) WHEN - 77 THEN NULL ELSE - MAX( 60 ) * - 26 END / + - ( 45 ) ) * NULLIF ( + 0, CAST( - - 31 AS SIGNED ) ) + - - 27 ) WHEN 88 THEN - - COUNT( * ) WHEN - 66 THEN + - 69 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9121
SELECT - CASE - NULLIF ( - 6, - NULLIF ( 62, + - CASE - COUNT ( * ) WHEN - 77 THEN NULL ELSE - MAX ( 60 ) * - 26 END / + - ( 45 ) ) * NULLIF ( + 0, CAST ( - - 31 AS INTEGER ) ) + - - 27 ) WHEN 88 THEN - - COUNT ( * ) WHEN - 66 THEN + - 69 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ALL SUM( ALL - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL SUM ( ALL - 13 )
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9123
SELECT ALL ( + 22 ) DIV + 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL ( + 22 ) / + 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT - - COUNT( * ) / + - CASE + - ( - 49 ) WHEN 78 THEN - - ( 69 ) WHEN + SUM( 66 ) + + MIN( - 68 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT - - COUNT ( * ) / + - CASE + - ( - 49 ) WHEN 78 THEN - - ( 69 ) WHEN + SUM ( 66 ) + + MIN ( - 68 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT + - ( COUNT( * ) ) + COALESCE ( - 99, - - 41 )
----
-100

skipif mysql # not compatible
query I rowsort label-9125
SELECT + - ( COUNT ( * ) ) + COALESCE ( - 99, - - 41 )
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT - + 70 - CAST( NULL AS SIGNED ) * 75 + + + 64 * - 27 + + - NULLIF ( 95, 75 ) + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT - + 70 - CAST ( NULL AS INTEGER ) * 75 + + + 64 * - 27 + + - NULLIF ( 95, 75 ) + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL - + 67 * + COUNT( * ) - - 87
----
20

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL - + 67 * + COUNT ( * ) - - 87
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT + + 59 * + 39 * ( - 75 ) + - COUNT( * )
----
-172576

skipif mysql # not compatible
query I rowsort label-9128
SELECT + + 59 * + 39 * ( - 75 ) + - COUNT ( * )
----
-172576

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL + 73 + + NULLIF ( - 57, COUNT( * ) * COUNT( * ) * 80 )
----
16

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL + 73 + + NULLIF ( - 57, COUNT ( * ) * COUNT ( * ) * 80 )
----
16

query II rowsort
SELECT DISTINCT 81, 96 AS col1
----
81
96

query I rowsort
SELECT - 35 * - + 51
----
1785

query I rowsort
SELECT - 94 + COALESCE ( 24, 26 ) AS col0
----
-70

query I rowsort
SELECT - ( 7 ) AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9134
SELECT ALL + 52 + + 14 * - 7 * COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col1
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-9134
SELECT ALL + 52 + + 14 * - 7 * COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1
----
-46
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9135
SELECT - 88 * COALESCE ( 29, - 44 * + 55 + - NULLIF ( - 66, + 54 ) + - 8 DIV 44 * - - 1 * - ( + 55 ) + - + 18 - + CASE 34 WHEN 77 * + 88 + 24 THEN + + COUNT( * ) ELSE NULL END * + COUNT( * ) + - 9 * + CAST( NULL AS SIGNED ) DIV NULLIF ( + COUNT( * ), AVG ( ALL + - 85 ) * - COALESCE ( + 70, + AVG ( 9 ) + COUNT( * ) DIV - + 39 + ( + - CAST( NULL AS SIGNED ) ) ) ), - 60 - + 95 )
----
-2552

skipif mysql # not compatible
query I rowsort label-9135
SELECT - 88 * COALESCE ( 29, - 44 * + 55 + - NULLIF ( - 66, + 54 ) + - 8 / 44 * - - 1 * - ( + 55 ) + - + 18 - + CASE 34 WHEN 77 * + 88 + 24 THEN + + COUNT ( * ) ELSE NULL END * + COUNT ( * ) + - 9 * + CAST ( NULL AS INTEGER ) / NULLIF ( + COUNT ( * ), AVG ( ALL + - 85 ) * - COALESCE ( + 70, + AVG ( 9 ) + COUNT ( * ) / - + 39 + ( + - CAST ( NULL AS INTEGER ) ) ) ), - 60 - + 95 )
----
-2552

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9136
SELECT ALL - ( - 96 ) + - - 48 AS col1, + 70 DIV SUM( DISTINCT + 53 ) DIV + 74
----
144
0

skipif mysql # not compatible
query II rowsort label-9136
SELECT ALL - ( - 96 ) + - - 48 AS col1, + 70 / SUM ( DISTINCT + 53 ) / + 74
----
144
0

query I rowsort
SELECT - 99 + - - 2 + - 81 * 90 AS col2
----
-7387

query I rowsort
SELECT DISTINCT COALESCE ( 7, + 15 ) AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9139
SELECT DISTINCT + 6 DIV 87 + 57 col1
----
57

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT + 6 / 87 + 57 col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9140
SELECT ALL + COUNT( 82 ) DIV + 1 DIV COUNT( * ), + 43 * - + NULLIF ( + 66, + COUNT( * ) ) * - + MAX( DISTINCT 41 ) * + 7 + - 41 AS col1
----
1
814465

skipif mysql # not compatible
query II rowsort label-9140
SELECT ALL + COUNT ( 82 ) / + 1 / COUNT ( * ), + 43 * - + NULLIF ( + 66, + COUNT ( * ) ) * - + MAX ( DISTINCT 41 ) * + 7 + - 41 AS col1
----
1
814465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9141
SELECT DISTINCT - 62 / + + CAST( NULL AS SIGNED ) + + 92 + - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT - 62 / + + CAST ( NULL AS INTEGER ) + + 92 + - 55 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 44 * + + 41
----
1804

query I rowsort
SELECT ALL + 62 * 92 AS col2
----
5704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9144
SELECT - COUNT( * ) + - - CAST( + + 62 AS SIGNED ) + + 34 * - 23 * - 8 + + 35
----
6352

skipif mysql # not compatible
query I rowsort label-9144
SELECT - COUNT ( * ) + - - CAST ( + + 62 AS INTEGER ) + + 34 * - 23 * - 8 + + 35
----
6352

query II rowsort
SELECT + 20, 68 col1
----
20
68

query I rowsort
SELECT - 68 * - 67 AS col0
----
4556

query I rowsort
SELECT ALL + ( + 76 ) col1
----
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9148
SELECT - CAST( 1 AS SIGNED ) DIV + - 62 + 43 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9148
SELECT - CAST ( 1 AS INTEGER ) / + - 62 + 43 AS col1
----
43

query II rowsort
SELECT + + 61 AS col0, 74 AS col1
----
61
74

query I rowsort
SELECT - - 81 + + + 80 AS col2
----
161

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9151
SELECT ALL + NULLIF ( 29, AVG ( ALL 12 ) * + 16 + - + 34 * 85 + - 91 - 79 * - - MIN( DISTINCT - 90 ) + + CAST( NULL AS DECIMAL ) - + 43 * 47 ) DIV - - 88 * 4
----
0

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL + NULLIF ( 29, AVG ( ALL 12 ) * + 16 + - + 34 * 85 + - 91 - 79 * - - MIN ( DISTINCT - 90 ) + + CAST ( NULL AS REAL ) - + 43 * 47 ) / - - 88 * 4
----
0

query II rowsort
SELECT + 25, 97 * + 20 * + - ( + 41 ) + 13 AS col2
----
25
-79527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT DISTINCT + NULLIF ( + 65, - 38 * + 99 * CAST( NULL AS SIGNED ) + + + ( + 80 ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT + NULLIF ( + 65, - 38 * + 99 * CAST ( NULL AS INTEGER ) + + + ( + 80 ) ) AS col2
----
65

query II rowsort
SELECT DISTINCT + 77 AS col0, 4
----
77
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT DISTINCT + + ( + COUNT( + ( + 55 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT + + ( + COUNT ( + ( + 55 ) ) ) AS col0
----
1

query I rowsort
SELECT ALL + 60 * + 6 * + 68
----
24480

query I rowsort
SELECT - + 54 * 5
----
-270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9158
SELECT + - 49 * 46 * COUNT( * ) * + CAST( 99 AS SIGNED )
----
-223146

skipif mysql # not compatible
query I rowsort label-9158
SELECT + - 49 * 46 * COUNT ( * ) * + CAST ( 99 AS INTEGER )
----
-223146

query I rowsort
SELECT + - 90 + + 52 + - 71 + + 37
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT - - MIN( ALL + - 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9160
SELECT - - MIN ( ALL + - 64 ) AS col0
----
-64

query I rowsort
SELECT - + NULLIF ( - 27, - 57 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9162
SELECT - CASE - COUNT( + 88 ) WHEN + 52 THEN + + COUNT( * ) WHEN - 54 THEN - 35 WHEN + 71 THEN - + ( + - 56 ) / - CAST( - 42 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT - CASE - COUNT ( + 88 ) WHEN + 52 THEN + + COUNT ( * ) WHEN - 54 THEN - 35 WHEN + 71 THEN - + ( + - 56 ) / - CAST ( - 42 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT - - COUNT( * ) * + 33 + + ( 31 ) + + 52 + + 1 * - - 34
----
150

skipif mysql # not compatible
query I rowsort label-9163
SELECT - - COUNT ( * ) * + 33 + + ( 31 ) + + 52 + + 1 * - - 34
----
150

query I rowsort
SELECT + 77 * - 24 AS col2
----
-1848

query I rowsort
SELECT DISTINCT + 66 * + - 22 AS col2
----
-1452

query I rowsort
SELECT ALL - 2 + + 67 AS col0
----
65

query I rowsort
SELECT ALL 35 + - 62
----
-27

query II rowsort
SELECT - 33 AS col1, - 2
----
-33
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9169
SELECT DISTINCT 79 + + 68 + CASE + CAST( NULL AS SIGNED ) WHEN + + 27 THEN - 60 WHEN + 25 * + 58 * + 7 THEN NULL WHEN - + COUNT( * ) THEN NULL END - 0 * + ( - COUNT( * ) ), - ( 28 ) * + 6 - + + COUNT( ALL - 77 ) DIV - 44 * + 36 AS col1
----
NULL
-168

skipif mysql # not compatible
query II rowsort label-9169
SELECT DISTINCT 79 + + 68 + CASE + CAST ( NULL AS INTEGER ) WHEN + + 27 THEN - 60 WHEN + 25 * + 58 * + 7 THEN NULL WHEN - + COUNT ( * ) THEN NULL END - 0 * + ( - COUNT ( * ) ), - ( 28 ) * + 6 - + + COUNT ( ALL - 77 ) / - 44 * + 36 AS col1
----
NULL
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT ALL CASE COALESCE ( + 79, + 2, - 5 + - - 66 * ( + + 87 ) ) WHEN - COALESCE ( + 98, ( - + 16 ) + COUNT( * ) ) + + - 25 THEN 95 END + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL CASE COALESCE ( + 79, + 2, - 5 + - - 66 * ( + + 87 ) ) WHEN - COALESCE ( + 98, ( - + 16 ) + COUNT ( * ) ) + + - 25 THEN 95 END + 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT - ( - + COUNT( DISTINCT 18 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9171
SELECT - ( - + COUNT ( DISTINCT 18 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT ALL + COUNT( * ) * - 13
----
-13

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL + COUNT ( * ) * - 13
----
-13

query I rowsort
SELECT DISTINCT - 75 * + 28 * - + ( + 74 ) * - 80 col2
----
-12432000

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL + 57 + COUNT( - + 21 ) col2
----
58

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL + 57 + COUNT ( - + 21 ) col2
----
58

query I rowsort
SELECT NULLIF ( NULLIF ( - 24, 50 ), - 89 ) + - ( + - 16 ) * - CASE 89 WHEN - 76 + + 80 * - 90 THEN 7 WHEN + - 65 THEN - 24 * + + ( 87 ) / 15 * - 57 * - - 26 END + + 32 AS col2
----
NULL

query II rowsort
SELECT 54 - + 99 AS col1, - 13
----
-45
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9177
SELECT ALL + 58 - + COALESCE ( 52, - COUNT( * ) - 58 - + 1, 1 * AVG ( ALL - - 10 ) ) / + SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL + 58 - + COALESCE ( 52, - COUNT ( * ) - 58 - + 1, 1 * AVG ( ALL - - 10 ) ) / + SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT ( - 26 ) * - + CAST( + 12 AS SIGNED ) AS col0
----
312

skipif mysql # not compatible
query I rowsort label-9178
SELECT ( - 26 ) * - + CAST ( + 12 AS INTEGER ) AS col0
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT DISTINCT + 40 - - 41 * - 14 + - SUM( + 77 ) * - - COALESCE ( 23, + - 34 * - SUM( + + 54 ) ) + - ( - COUNT( * ) ) col2
----
-2304

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT + 40 - - 41 * - 14 + - SUM ( + 77 ) * - - COALESCE ( 23, + - 34 * - SUM ( + + 54 ) ) + - ( - COUNT ( * ) ) col2
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT 79 * + ( + MIN( ALL + 24 ) ) AS col0
----
1896

skipif mysql # not compatible
query I rowsort label-9180
SELECT 79 * + ( + MIN ( ALL + 24 ) ) AS col0
----
1896

query I rowsort
SELECT ALL - COALESCE ( - 96, - 38 * - 29 * - 30 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9182
SELECT + COUNT( * ) * 50 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT + COUNT ( * ) * 50 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - ( + 33 ) * + - ( 8 ) * + 79 * - - 4
----
83424

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT ALL - - MAX( ALL 84 )
----
84

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL - - MAX ( ALL 84 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9185
SELECT - 50 * + 6 * CASE + MIN( DISTINCT 90 ) WHEN + CAST( + 8 AS SIGNED ) / 56 + 37 + ( + 22 ) THEN - 78 ELSE NULL END / - - COUNT( - 84 ) * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT - 50 * + 6 * CASE + MIN ( DISTINCT 90 ) WHEN + CAST ( + 8 AS INTEGER ) / 56 + 37 + ( + 22 ) THEN - 78 ELSE NULL END / - - COUNT ( - 84 ) * + 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9186
SELECT ALL + 38 DIV - - 46
----
0

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL + 38 / - - 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT DISTINCT + - SUM( + 28 ) * + 4
----
-112

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT + - SUM ( + 28 ) * + 4
----
-112

query I rowsort
SELECT + 17 + - NULLIF ( - 66, 74 )
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9189
SELECT 32 * + - CAST( NULL AS DECIMAL ) + - + 95 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9189
SELECT 32 * + - CAST ( NULL AS REAL ) + - + 95 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9190
SELECT 63 DIV + 69 + - 48 * + 2 + - 46 * ( + - 28 )
----
1192

skipif mysql # not compatible
query I rowsort label-9190
SELECT 63 / + 69 + - 48 * + 2 + - 46 * ( + - 28 )
----
1192

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT COUNT( ALL - ( 60 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9191
SELECT COUNT ( ALL - ( 60 ) ) AS col1
----
1

query II rowsort
SELECT - 39 - - 79, 8 AS col1
----
40
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT NULLIF ( - COUNT( ALL 92 ), + 32 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9193
SELECT NULLIF ( - COUNT ( ALL 92 ), + 32 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL - ( - + 60 ) + + + COUNT( * ) + - SUM( DISTINCT + 69 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL - ( - + 60 ) + + + COUNT ( * ) + - SUM ( DISTINCT + 69 ) AS col0
----
-8

query I rowsort
SELECT - 4 * 1 + - + 29 AS col2
----
-33

query II rowsort
SELECT ALL - + 96 * - 47 AS col2, - 79 * + 25 AS col0
----
4512
-1975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9197
SELECT COALESCE ( - CAST( NULL AS SIGNED ), + - COUNT( * ) ) / COALESCE ( + + 29, 38, - 8 ) * - CAST( NULL AS DECIMAL ) + - - 89 + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), + - COUNT ( * ) ) / COALESCE ( + + 29, 38, - 8 ) * - CAST ( NULL AS REAL ) + - - 89 + 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT - 66 + CASE + 48 WHEN + - NULLIF ( 86, + 91 ) THEN 80 * - 82 + - + COUNT( ALL - ( - 98 ) ) WHEN + 70 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT - 66 + CASE + 48 WHEN + - NULLIF ( 86, + 91 ) THEN 80 * - 82 + - + COUNT ( ALL - ( - 98 ) ) WHEN + 70 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 53 + 65 - - 74 * + 27 AS col2
----
2116

query I rowsort
SELECT DISTINCT - + 40 AS col2
----
-40

query II rowsort
SELECT DISTINCT - 45 + + + 1, - 99 AS col1
----
-44
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT - CASE + 86 WHEN + - 47 + 44 - - 85 THEN + + 28 WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT - CASE + 86 WHEN + - 47 + 44 - - 85 THEN + + 28 WHEN - COUNT ( * ) THEN NULL END
----
NULL

query II rowsort
SELECT 12 * - 17 - + + ( - - 82 ), + 98 AS col1
----
-286
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL - COALESCE ( - 32, - COALESCE ( + + 8, - 94 - - 50 - - - 55 ) ) + + 1 + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL - COALESCE ( - 32, - COALESCE ( + + 8, - 94 - - 50 - - - 55 ) ) + + 1 + + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL ( 26 ) * - - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL ( 26 ) * - - COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT DISTINCT COUNT( * ) + - 42
----
-41

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT COUNT ( * ) + - 42
----
-41

query I rowsort
SELECT 19 + 71
----
90

query I rowsort
SELECT ALL + 62 * - + 97 AS col0
----
-6014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9209
SELECT DISTINCT COALESCE ( + CASE - ( - - 99 ) WHEN + 17 THEN NULL WHEN - 53 THEN NULL ELSE - + CAST( NULL AS SIGNED ) END, 79, COUNT( DISTINCT 99 ) ) - + COALESCE ( + 72, - - 0 * + 40 * + 50 * - 35 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT COALESCE ( + CASE - ( - - 99 ) WHEN + 17 THEN NULL WHEN - 53 THEN NULL ELSE - + CAST ( NULL AS INTEGER ) END, 79, COUNT ( DISTINCT 99 ) ) - + COALESCE ( + 72, - - 0 * + 40 * + 50 * - 35 ) AS col0
----
7

query I rowsort
SELECT 25 * + + 3 * 6
----
450

query II rowsort
SELECT 85, 87 AS col0
----
85
87

query II rowsort
SELECT 58 AS col1, + 96 * - 86 * - + 62
----
58
511872

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT COUNT( * ) + 26
----
27

skipif mysql # not compatible
query I rowsort label-9213
SELECT COUNT ( * ) + 26
----
27

query I rowsort
SELECT ALL 57 * - 62 AS col1
----
-3534

onlyif mysql # DIV for integer division: 
query I rowsort label-9215
SELECT 69 DIV + 80 * 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9215
SELECT 69 / + 80 * 57 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9216
SELECT 27 DIV + 73 + - 71 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9216
SELECT 27 / + 73 + - 71 AS col2
----
-71

query I rowsort
SELECT ALL 97 * 68
----
6596

query I rowsort
SELECT ALL - CASE + 26 WHEN - 92 * 0 THEN - 86 WHEN 80 THEN 84 ELSE 0 END
----
0

query I rowsort
SELECT ALL 14 * 99
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT COUNT( ALL - ( + 35 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9220
SELECT COUNT ( ALL - ( + 35 ) ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9221
SELECT CAST( NULL AS SIGNED ) * 56 + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT CAST ( NULL AS INTEGER ) * 56 + 20 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT CAST( AVG ( DISTINCT + 64 ) AS SIGNED ) * 41
----
2624

skipif mysql # not compatible
query I rowsort label-9222
SELECT CAST ( AVG ( DISTINCT + 64 ) AS INTEGER ) * 41
----
2624

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT - 46 * + COUNT( * ) - - ( 12 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-9223
SELECT - 46 * + COUNT ( * ) - - ( 12 ) AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9224
SELECT ALL + 37 + CASE 88 WHEN 83 THEN 61 DIV NULLIF ( 77, 8 + 11 ) + 22 ELSE - MAX( 72 ) * 57 + COUNT( * ) END
----
-4066

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL + 37 + CASE 88 WHEN 83 THEN 61 / NULLIF ( 77, 8 + 11 ) + 22 ELSE - MAX ( 72 ) * 57 + COUNT ( * ) END
----
-4066

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL 55 + COUNT( * ) * + 52 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL 55 + COUNT ( * ) * + 52 AS col2
----
107

query I rowsort
SELECT 94 * 61
----
5734

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT DISTINCT - CASE - 12 WHEN - SUM( ALL - 89 ) THEN 48 WHEN 17 * 1 - 35 THEN NULL WHEN COALESCE ( + 40, 32 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT - CASE - 12 WHEN - SUM ( ALL - 89 ) THEN 48 WHEN 17 * 1 - 35 THEN NULL WHEN COALESCE ( + 40, 32 ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 7 + 8 AS col1
----
15

query I rowsort
SELECT - 89 * 97 + 46 * - 95 AS col0
----
-13003

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9230
SELECT ALL - CAST( NULL AS DECIMAL ) + MAX( DISTINCT + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL - CAST ( NULL AS REAL ) + MAX ( DISTINCT + 99 )
----
NULL

query I rowsort
SELECT ALL - 65 + + 26
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9232
SELECT ALL + NULLIF ( 33, + CAST( NULL AS SIGNED ) ) + - 85 * - 39
----
3348

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL + NULLIF ( 33, + CAST ( NULL AS INTEGER ) ) + - 85 * - 39
----
3348

query I rowsort
SELECT ALL + ( 1 ) * - 63 AS col2
----
-63

query I rowsort
SELECT 10 * - 29 col1
----
-290

query I rowsort
SELECT 45 * + 73
----
3285

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT 93 * + COUNT( * ) + COALESCE ( 7, + 47, - 47 ) * - 83
----
-488

skipif mysql # not compatible
query I rowsort label-9236
SELECT 93 * + COUNT ( * ) + COALESCE ( 7, + 47, - 47 ) * - 83
----
-488

query I rowsort
SELECT 19 * 68 col2
----
1292

query I rowsort
SELECT ALL + 2 + + 17 * - 36 AS col2
----
-610

query I rowsort
SELECT ALL - 2 - 93
----
-95

query I rowsort
SELECT - 29 * + 89 col2
----
-2581

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT DISTINCT SUM( DISTINCT 25 )
----
25

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT SUM ( DISTINCT 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT - COUNT( * ) * 98
----
-98

skipif mysql # not compatible
query I rowsort label-9242
SELECT - COUNT ( * ) * 98
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT - COALESCE ( + MIN( ALL - 16 ), 50, 21 + 11 * + COUNT( * ) ) + COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9243
SELECT - COALESCE ( + MIN ( ALL - 16 ), 50, 21 + 11 * + COUNT ( * ) ) + COUNT ( * ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT DISTINCT CASE + 30 WHEN + 71 / + COUNT( * ) THEN NULL WHEN - ( + 87 ) * - 10 THEN NULL ELSE 72 END
----
72

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT CASE + 30 WHEN + 71 / + COUNT ( * ) THEN NULL WHEN - ( + 87 ) * - 10 THEN NULL ELSE 72 END
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT + MAX( + NULLIF ( + 11, 96 * 99 ) ) + 1 * 34
----
45

skipif mysql # not compatible
query I rowsort label-9245
SELECT + MAX ( + NULLIF ( + 11, 96 * 99 ) ) + 1 * 34
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9246
SELECT ALL - ( - CAST( NULL AS DECIMAL ) ) - - 35 * 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL - ( - CAST ( NULL AS REAL ) ) - - 35 * 35 AS col0
----
NULL

query I rowsort
SELECT - 69 * 78 AS col0
----
-5382

query I rowsort
SELECT + 75 * - 39 col1
----
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL - 31 * COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL - 31 * COUNT ( * )
----
-31

query I rowsort
SELECT - 45 - - ( 21 ) AS col1
----
-24

query I rowsort
SELECT DISTINCT 16 * 26
----
416

query I rowsort
SELECT ALL - 40 * 66
----
-2640

query I rowsort
SELECT DISTINCT - 22 * 84 AS col0
----
-1848

query I rowsort
SELECT DISTINCT - 13 * - 55
----
715

query I rowsort
SELECT DISTINCT + ( + 78 )
----
78

query I rowsort
SELECT DISTINCT + ( + 27 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9257
SELECT + - 67 * SUM( DISTINCT - CAST( COALESCE ( 65, + 91 ) AS SIGNED ) * - 80 ) AS col2
----
-348400

skipif mysql # not compatible
query I rowsort label-9257
SELECT + - 67 * SUM ( DISTINCT - CAST ( COALESCE ( 65, + 91 ) AS INTEGER ) * - 80 ) AS col2
----
-348400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT CAST( + 78 AS SIGNED ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9258
SELECT CAST ( + 78 AS INTEGER ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT + CASE - 62 WHEN ( 59 ) * + 17 THEN 65 + + 11 / + COUNT( * ) WHEN + 39 + SUM( 89 ) THEN NULL WHEN + 53 THEN - ( + 61 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9259
SELECT + CASE - 62 WHEN ( 59 ) * + 17 THEN 65 + + 11 / + COUNT ( * ) WHEN + 39 + SUM ( 89 ) THEN NULL WHEN + 53 THEN - ( + 61 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL + + 73 * 76 + - ( 12 ) * SUM( 4 + - 51 ) AS col1
----
6112

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL + + 73 * 76 + - ( 12 ) * SUM ( 4 + - 51 ) AS col1
----
6112

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT DISTINCT 91 * + COUNT( * ) + 7 col0
----
98

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT 91 * + COUNT ( * ) + 7 col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT ALL - - 74 * 51 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL - - 74 * 51 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 44 * 63 AS col0
----
2772

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9264
SELECT DISTINCT COALESCE ( + 80, NULLIF ( + 50, + 74 ), + 4 + 54, CAST( - CAST( CASE + 75 WHEN + 55 * 73 THEN - CASE + CAST( NULL AS SIGNED ) WHEN 37 + 50 THEN - CAST( - 23 AS SIGNED ) / 20 + + 37 * 50 WHEN - 63 THEN NULL END ELSE NULL END AS DECIMAL ) AS SIGNED ) ) * - ( - NULLIF ( CAST( 9 AS SIGNED ), 99 - - 8 ) )
----
720

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT COALESCE ( + 80, NULLIF ( + 50, + 74 ), + 4 + 54, CAST ( - CAST ( CASE + 75 WHEN + 55 * 73 THEN - CASE + CAST ( NULL AS INTEGER ) WHEN 37 + 50 THEN - CAST ( - 23 AS INTEGER ) / 20 + + 37 * 50 WHEN - 63 THEN NULL END ELSE NULL END AS REAL ) AS INTEGER ) ) * - ( - NULLIF ( CAST ( 9 AS INTEGER ), 99 - - 8 ) )
----
720

query I rowsort
SELECT ALL - 51 * - 64 + + 27 AS col2
----
3291

query I rowsort
SELECT + 15 + 74 * - 18 AS col1
----
-1317

query I rowsort
SELECT - 84 * - 86 AS col0
----
7224

query I rowsort
SELECT + - 65 + 43 col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9269
SELECT + + MIN( 70 ) + + COALESCE ( 64, - 60 ) DIV NULLIF ( 63, - 2 )
----
71

skipif mysql # not compatible
query I rowsort label-9269
SELECT + + MIN ( 70 ) + + COALESCE ( 64, - 60 ) / NULLIF ( 63, - 2 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT CASE COUNT( * ) WHEN 14 THEN - 94 * COUNT( * ) + ( + 98 + + 94 ) WHEN + 24 * 73 THEN 54 * - 42 + 92 * 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9270
SELECT CASE COUNT ( * ) WHEN 14 THEN - 94 * COUNT ( * ) + ( + 98 + + 94 ) WHEN + 24 * 73 THEN 54 * - 42 + 92 * 74 END AS col2
----
NULL

query I rowsort
SELECT 16 * + 24 + - 2 AS col2
----
382

query I rowsort
SELECT + ( + 50 ) AS col2
----
50

query I rowsort
SELECT + 12 + + 1 AS col2
----
13

query I rowsort
SELECT ALL 96 * + - 67 * - 96 - + 99 col2
----
617373

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT DISTINCT - 16 * - + CASE 28 WHEN - 35 THEN ( 57 ) WHEN CASE 52 WHEN + COUNT( + 55 ) THEN NULL WHEN 45 THEN 27 * - 92 ELSE NULL END THEN - 53 - MIN( 76 ) * 34 WHEN - MIN( DISTINCT 9 ) * 99 THEN NULL ELSE NULL END * + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT - 16 * - + CASE 28 WHEN - 35 THEN ( 57 ) WHEN CASE 52 WHEN + COUNT ( + 55 ) THEN NULL WHEN 45 THEN 27 * - 92 ELSE NULL END THEN - 53 - MIN ( 76 ) * 34 WHEN - MIN ( DISTINCT 9 ) * 99 THEN NULL ELSE NULL END * + 83 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9276
SELECT ALL CASE - ( + NULLIF ( - 84, 75 ) ) WHEN - MIN( DISTINCT 39 ) THEN 58 * + ( NULLIF ( CASE ( 12 ) WHEN 99 THEN CAST( NULL AS SIGNED ) / - 57 WHEN + ( - 0 ) THEN - 93 / COUNT( ALL - 10 ) ELSE NULL END, CAST( NULL AS SIGNED ) ) ) ELSE 58 - - ( + COUNT( * ) ) END
----
59

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL CASE - ( + NULLIF ( - 84, 75 ) ) WHEN - MIN ( DISTINCT 39 ) THEN 58 * + ( NULLIF ( CASE ( 12 ) WHEN 99 THEN CAST ( NULL AS INTEGER ) / - 57 WHEN + ( - 0 ) THEN - 93 / COUNT ( ALL - 10 ) ELSE NULL END, CAST ( NULL AS INTEGER ) ) ) ELSE 58 - - ( + COUNT ( * ) ) END
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + 76 + + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9277
SELECT + 76 + + COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL COUNT( DISTINCT - + NULLIF ( + 26, 89 - + 33 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL COUNT ( DISTINCT - + NULLIF ( + 26, 89 - + 33 ) )
----
1

query I rowsort
SELECT - ( + 9 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9280
SELECT ALL + 99 * - NULLIF ( COUNT( * ), 72 * - 90 ) * NULLIF ( - 67 DIV 3, 29 * - CASE 13 WHEN + COUNT( * ) - COALESCE ( - MAX( DISTINCT ( 99 ) ), COUNT( DISTINCT 36 ) ) THEN NULL WHEN - ( - COALESCE ( 35, 9 + 0 ) ) - 82 THEN NULL ELSE COUNT( * ) END ) AS col1
----
2178

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL + 99 * - NULLIF ( COUNT ( * ), 72 * - 90 ) * NULLIF ( - 67 / 3, 29 * - CASE 13 WHEN + COUNT ( * ) - COALESCE ( - MAX ( DISTINCT ( 99 ) ), COUNT ( DISTINCT 36 ) ) THEN NULL WHEN - ( - COALESCE ( 35, 9 + 0 ) ) - 82 THEN NULL ELSE COUNT ( * ) END ) AS col1
----
2178

query I rowsort
SELECT ALL NULLIF ( - - 34, + 34 )
----
NULL

query I rowsort
SELECT - 46 + - 14 + - 90 AS col0
----
-150

query I rowsort
SELECT - 51 * + - NULLIF ( + 47, - 90 ) AS col0
----
2397

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT - COUNT( * ) + - + ( NULLIF ( 55, 79 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-9284
SELECT - COUNT ( * ) + - + ( NULLIF ( 55, 79 ) )
----
-56

query I rowsort
SELECT ALL ( 46 ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9286
SELECT ALL CASE 71 WHEN + 32 + CAST( NULL AS SIGNED ) / - 7 THEN - SUM( + 65 ) - 36 * SUM( ALL COALESCE ( + 50, + 7 ) * - 75 + 49 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL CASE 71 WHEN + 32 + CAST ( NULL AS INTEGER ) / - 7 THEN - SUM ( + 65 ) - 36 * SUM ( ALL COALESCE ( + 50, + 7 ) * - 75 + 49 ) END
----
NULL

query I rowsort
SELECT - 15 * - + ( 60 )
----
900

query I rowsort
SELECT ALL NULLIF ( - - 90, 77 + 76 ) AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9289
SELECT DISTINCT ( - COALESCE ( + 23, - 51 * ( + COALESCE ( + COUNT( * ), 17, 63 DIV 90 ) ) ) ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT ( - COALESCE ( + 23, - 51 * ( + COALESCE ( + COUNT ( * ), 17, 63 / 90 ) ) ) ) col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL + 64 + + - 4 * MIN( ALL 40 * - 79 ) AS col1
----
12704

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL + 64 + + - 4 * MIN ( ALL 40 * - 79 ) AS col1
----
12704

query I rowsort
SELECT ALL ( + + 25 ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT - 80 * - COUNT( * ) * + 47
----
3760

skipif mysql # not compatible
query I rowsort label-9292
SELECT - 80 * - COUNT ( * ) * + 47
----
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT - + MIN( - - COALESCE ( + NULLIF ( + NULLIF ( 36, + 25 ), + 84 + + 88 * + 62 ), 68, 80 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-9293
SELECT - + MIN ( - - COALESCE ( + NULLIF ( + NULLIF ( 36, + 25 ), + 84 + + 88 * + 62 ), 68, 80 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL + - 81 + - + NULLIF ( 19, + COUNT( * ) + - 7 ) - ( + 54 + ( - 69 ) ) * 74 AS col1
----
1010

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL + - 81 + - + NULLIF ( 19, + COUNT ( * ) + - 7 ) - ( + 54 + ( - 69 ) ) * 74 AS col1
----
1010

query I rowsort
SELECT - - 21 + - - 29 * + 51 AS col0
----
1500

query I rowsort
SELECT ALL 45 + + 37
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL + NULLIF ( COUNT( * ), 83 + - 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL + NULLIF ( COUNT ( * ), 83 + - 51 ) AS col1
----
1

query I rowsort
SELECT ALL - 66 * 76 AS col0
----
-5016

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT - 85 DIV + - 97 + + 91 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9299
SELECT - 85 / + - 97 + + 91 AS col0
----
91

query I rowsort
SELECT ALL + + 76 * 52 AS col1
----
3952

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT + 55 + + 35 DIV 15
----
57

skipif mysql # not compatible
query I rowsort label-9301
SELECT + 55 + + 35 / 15
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9302
SELECT ALL - ( - 48 ) DIV 59 + 49 DIV + 29
----
1

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - ( - 48 ) / 59 + 49 / + 29
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT - COALESCE ( + - 94, COUNT( 7 ) + - ( - 0 ), + 38 * ( + 18 ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-9303
SELECT - COALESCE ( + - 94, COUNT ( 7 ) + - ( - 0 ), + 38 * ( + 18 ) ) AS col0
----
94

query I rowsort
SELECT - + 94 * + 24 - 7
----
-2263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT DISTINCT - - CAST( - 81 AS SIGNED ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT - - CAST ( - 81 AS INTEGER ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT - 44 * - COUNT( * ) + + 68 AS col0
----
112

skipif mysql # not compatible
query I rowsort label-9306
SELECT - 44 * - COUNT ( * ) + + 68 AS col0
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-9307
SELECT DISTINCT + 23 DIV - 19
----
-1

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT + 23 / - 19
----
-1

query I rowsort
SELECT 35 * 13 * - 24
----
-10920

onlyif mysql # DIV for integer division: 
query I rowsort label-9309
SELECT DISTINCT 41 * 50 DIV - 50 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT 41 * 50 / - 50 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT COUNT( ALL - 91 ) + - + 11 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9310
SELECT COUNT ( ALL - 91 ) + - + 11 AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9311
SELECT ALL MAX( DISTINCT 76 ) - ( COALESCE ( - 97, COALESCE ( + 69, + COUNT( ALL CAST( NULL AS DECIMAL ) ) + 39 ) ) ) AS col0
----
173

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL MAX ( DISTINCT 76 ) - ( COALESCE ( - 97, COALESCE ( + 69, + COUNT ( ALL CAST ( NULL AS REAL ) ) + 39 ) ) ) AS col0
----
173

query I rowsort
SELECT 25 * - - 55
----
1375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9313
SELECT COUNT( DISTINCT - - 97 ) * - COUNT( * ) DIV COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9313
SELECT COUNT ( DISTINCT - - 97 ) * - COUNT ( * ) / COUNT ( * )
----
-1

query II rowsort
SELECT 1 col0, 34
----
1
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9315
SELECT DISTINCT 98, + COALESCE ( + - SUM( 6 ), + 74, - ( + 67 ) + + COUNT( * ) ) DIV + 37 AS col0
----
98
0

skipif mysql # not compatible
query II rowsort label-9315
SELECT DISTINCT 98, + COALESCE ( + - SUM ( 6 ), + 74, - ( + 67 ) + + COUNT ( * ) ) / + 37 AS col0
----
98
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT + NULLIF ( + COUNT( * ), - - 48 ) * ( - COUNT( * ) ) + 61
----
60

skipif mysql # not compatible
query I rowsort label-9316
SELECT + NULLIF ( + COUNT ( * ), - - 48 ) * ( - COUNT ( * ) ) + 61
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9317
SELECT DISTINCT 52, 52 - + 79 DIV MAX( ALL - 17 ) AS col1
----
52
56

skipif mysql # not compatible
query II rowsort label-9317
SELECT DISTINCT 52, 52 - + 79 / MAX ( ALL - 17 ) AS col1
----
52
56

query II rowsort
SELECT ALL 57 AS col0, - 66
----
57
-66

query I rowsort
SELECT ALL + 68 + - 1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ALL - COUNT( * ) + - 93
----
-94

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL - COUNT ( * ) + - 93
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9321
SELECT ALL 14, - 9 * 62 + + COUNT( * ) AS col0
----
14
-557

skipif mysql # not compatible
query II rowsort label-9321
SELECT ALL 14, - 9 * 62 + + COUNT ( * ) AS col0
----
14
-557

query I rowsort
SELECT 85 + - + 78
----
7

query I rowsort
SELECT 88 * - 93 AS col0
----
-8184

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL 74 * + + MAX( ALL + - 4 ) AS col1
----
-296

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL 74 * + + MAX ( ALL + - 4 ) AS col1
----
-296

query I rowsort
SELECT 95 + + NULLIF ( - 39, - 3 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL - 5 + - - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL - 5 + - - COUNT ( * )
----
-4

query I rowsort
SELECT DISTINCT + 72 + + 12 * - - 18
----
288

query I rowsort
SELECT ALL + 39 + + 61 AS col1
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-9329
SELECT ALL 17 AS col1, + COUNT( + 92 ) - 59
----
17
-58

skipif mysql # not compatible
query II rowsort label-9329
SELECT ALL 17 AS col1, + COUNT ( + 92 ) - 59
----
17
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT ALL SUM( 84 ) + - + 70 + 33 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL SUM ( 84 ) + - + 70 + 33 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9331
SELECT DISTINCT CASE 3 WHEN - CAST( 46 AS SIGNED ) * 67 THEN + ( - 47 ) + - COUNT( * ) * 49 END + + 70 * + ( + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT CASE 3 WHEN - CAST ( 46 AS INTEGER ) * 67 THEN + ( - 47 ) + - COUNT ( * ) * 49 END + + 70 * + ( + 80 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9332
SELECT DISTINCT + CAST( + - 3 AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT + CAST ( + - 3 AS INTEGER ) AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9333
SELECT ALL + MIN( ALL + 53 ) + + 52 + 36 DIV - 43 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL + MIN ( ALL + 53 ) + + 52 + 36 / - 43 AS col2
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-9334
SELECT + 26 DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-9334
SELECT + 26 / - 44
----
0

query I rowsort
SELECT + COALESCE ( - 40, 60 * 18, - 99 ) AS col0
----
-40

query II rowsort
SELECT + - 32 AS col1, + 66 * + 7 AS col1
----
-32
462

query I rowsort
SELECT ALL + + 74 * - 55
----
-4070

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT DISTINCT - - COUNT( * ) - - 66 + - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT - - COUNT ( * ) - - 66 + - COUNT ( * )
----
66

query I rowsort
SELECT ALL + 38 * + 78 + - ( 25 )
----
2939

query II rowsort
SELECT + 36 AS col2, - 21
----
36
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT ALL - + SUM( ALL + 2 ) - - 2 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL - + SUM ( ALL + 2 ) - - 2 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9342
SELECT ALL ( - 17 ) * + CAST( NULL AS SIGNED ) + 77 * 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL ( - 17 ) * + CAST ( NULL AS INTEGER ) + 77 * 45 AS col0
----
NULL

query II rowsort
SELECT 26 AS col2, + 25 AS col0
----
26
25

query I rowsort
SELECT DISTINCT - 35 - - 70 AS col1
----
35

query I rowsort
SELECT DISTINCT - + 81 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT ALL - COUNT( - - 68 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL - COUNT ( - - 68 ) AS col1
----
-1

query II rowsort
SELECT 69 AS col0, 24 + + 57 + 36 * + 24 AS col1
----
69
945

query I rowsort
SELECT ALL + ( - 76 ) * + + 23
----
-1748

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9349
SELECT 25 DIV + NULLIF ( + - 36, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-9349
SELECT 25 / + NULLIF ( + - 36, + COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9350
SELECT DISTINCT - CAST( + 58 AS SIGNED ) col1, 39
----
-58
39

skipif mysql # not compatible
query II rowsort label-9350
SELECT DISTINCT - CAST ( + 58 AS INTEGER ) col1, 39
----
-58
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9351
SELECT 35 + MAX( ALL 31 ) - 8 DIV - NULLIF ( CASE + COUNT( ALL 14 ) WHEN 57 + + COUNT( DISTINCT + 16 ) THEN NULL ELSE - COUNT( * ) END, - COUNT( * ) * 24 ) col0
----
58

skipif mysql # not compatible
query I rowsort label-9351
SELECT 35 + MAX ( ALL 31 ) - 8 / - NULLIF ( CASE + COUNT ( ALL 14 ) WHEN 57 + + COUNT ( DISTINCT + 16 ) THEN NULL ELSE - COUNT ( * ) END, - COUNT ( * ) * 24 ) col0
----
58

query I rowsort
SELECT ( - 89 ) * + - 60 - - 15 AS col1
----
5355

onlyif mysql # DIV for integer division: 
query I rowsort label-9353
SELECT ALL 40 DIV - + 50 * 63
----
0

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL 40 / - + 50 * 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT + ( + 87 ) + - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT + ( + 87 ) + - COUNT ( * )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9355
SELECT 60 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9355
SELECT 60 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 63 + 49 AS col1
----
112

query II rowsort
SELECT ALL - 81 + - 21 AS col0, 99 AS col1
----
-102
99

query I rowsort
SELECT DISTINCT - COALESCE ( + - 26, - ( 70 ) )
----
26

query I rowsort
SELECT ALL 28 + - + 65 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT ALL 86 + + CASE - 31 WHEN + + 79 THEN COUNT( * ) + - 18 ELSE NULL END * + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL 86 + + CASE - 31 WHEN + + 79 THEN COUNT ( * ) + - 18 ELSE NULL END * + 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT 89 + COUNT( * ) + - - 64 * NULLIF ( - MAX( ALL + 39 ), + MIN( ALL 37 ) ) * - 79 AS col0
----
197274

skipif mysql # not compatible
query I rowsort label-9361
SELECT 89 + COUNT ( * ) + - - 64 * NULLIF ( - MAX ( ALL + 39 ), + MIN ( ALL 37 ) ) * - 79 AS col0
----
197274

query I rowsort
SELECT ALL 92 + 33
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT DISTINCT SUM( ALL - 89 ) + + - 35 AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT SUM ( ALL - 89 ) + + - 35 AS col2
----
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-9364
SELECT DISTINCT 97 * + - 68 AS col1, COUNT( * ) AS col2
----
-6596
1

skipif mysql # not compatible
query II rowsort label-9364
SELECT DISTINCT 97 * + - 68 AS col1, COUNT ( * ) AS col2
----
-6596
1

query I rowsort
SELECT ALL + 94 + + 63 + - 12
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) / + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) / + - 21
----
NULL

query II rowsort
SELECT 80 + + 57 AS col2, + 59
----
137
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT - - COALESCE ( 66, - 13 + 28, - 4 + - ( - COUNT( * ) ) )
----
66

skipif mysql # not compatible
query I rowsort label-9368
SELECT - - COALESCE ( 66, - 13 + 28, - 4 + - ( - COUNT ( * ) ) )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT SUM( ALL + 89 ) + + 67 + + 65 + + 34 * 22
----
969

skipif mysql # not compatible
query I rowsort label-9369
SELECT SUM ( ALL + 89 ) + + 67 + + 65 + + 34 * 22
----
969

query I rowsort
SELECT - 81 * + 3
----
-243

query I rowsort
SELECT 16 * + - 22
----
-352

query I rowsort
SELECT - 90 + 5 col2
----
-85

query I rowsort
SELECT ALL COALESCE ( - 73, + + 99 + 53 ) col1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-9374
SELECT 28 DIV - - 41 + 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9374
SELECT 28 / - - 41 + 76 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9375
SELECT ALL + + CASE + - ( + 18 ) WHEN + 2 THEN NULL WHEN NULLIF ( - 91, 89 * + CAST( 59 AS SIGNED ) ) / + 5 + 46 THEN NULL ELSE NULLIF ( 32, 71 ) - CASE - 85 WHEN ( COUNT( + 44 ) ) * 36 + + 62 THEN + ( 15 ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL + + CASE + - ( + 18 ) WHEN + 2 THEN NULL WHEN NULLIF ( - 91, 89 * + CAST ( 59 AS INTEGER ) ) / + 5 + 46 THEN NULL ELSE NULLIF ( 32, 71 ) - CASE - 85 WHEN ( COUNT ( + 44 ) ) * 36 + + 62 THEN + ( 15 ) END END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT CAST( 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-9376
SELECT CAST ( 47 AS INTEGER )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9377
SELECT - - 44 / + + MIN( DISTINCT + 6 ) + - 40 + - 25 * + CASE 31 WHEN + 70 / + COUNT( * ) THEN NULL WHEN + 76 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT - - 44 / + + MIN ( DISTINCT + 6 ) + - 40 + - 25 * + CASE 31 WHEN + 70 / + COUNT ( * ) THEN NULL WHEN + 76 THEN CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL + + 14 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT + + ( + 32 ) * - 56 + - COUNT( * ) col0
----
-1793

skipif mysql # not compatible
query I rowsort label-9379
SELECT + + ( + 32 ) * - 56 + - COUNT ( * ) col0
----
-1793

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT - 53 + 95 - + NULLIF ( + 92, COUNT( * ) )
----
-50

skipif mysql # not compatible
query I rowsort label-9380
SELECT - 53 + 95 - + NULLIF ( + 92, COUNT ( * ) )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT NULLIF ( - 75, MAX( + + 58 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-9381
SELECT NULLIF ( - 75, MAX ( + + 58 ) )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT MIN( + + ( + + 8 ) ) * + + 47 * + 20 + MAX( DISTINCT + 69 ) + 88 * 79
----
14541

skipif mysql # not compatible
query I rowsort label-9382
SELECT MIN ( + + ( + + 8 ) ) * + + 47 * + 20 + MAX ( DISTINCT + 69 ) + 88 * 79
----
14541

query II rowsort
SELECT NULLIF ( 24, + + 51 ) col0, 18 AS col2
----
24
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT DISTINCT + ( - - 50 ) * - + 16 * + 16 - - - NULLIF ( 11, - 46 ) + + COUNT( * ) * 30 AS col1
----
-12781

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT + ( - - 50 ) * - + 16 * + 16 - - - NULLIF ( 11, - 46 ) + + COUNT ( * ) * 30 AS col1
----
-12781

query I rowsort
SELECT ALL - 60 * - + 71 + + - 65
----
4195

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT COALESCE ( - COUNT( * ), + MIN( - 0 ) + - 20 * + 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-9386
SELECT COALESCE ( - COUNT ( * ), + MIN ( - 0 ) + - 20 * + 44 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT COUNT( * ) * 7 + - COUNT( * ) * 79 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT COUNT ( * ) * 7 + - COUNT ( * ) * 79 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL CASE + 18 WHEN - - 59 THEN - MAX( - 44 ) ELSE 67 * - 81 END * 86 + + 67 AS col2
----
-466655

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL CASE + 18 WHEN - - 59 THEN - MAX ( - 44 ) ELSE 67 * - 81 END * 86 + + 67 AS col2
----
-466655

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9389
SELECT - 93 * 18 * + 60 * CAST( NULL AS DECIMAL ) * + ( - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT - 93 * 18 * + 60 * CAST ( NULL AS REAL ) * + ( - 88 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9390
SELECT DISTINCT + COALESCE ( - 93, + - 35 - + + 80 DIV COUNT( * ) * CAST( NULL AS SIGNED ) + 86, + ( - CASE 23 WHEN + 63 THEN NULL WHEN + 68 * + 0 THEN + 30 END ) + - 86 )
----
-93

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT + COALESCE ( - 93, + - 35 - + + 80 / COUNT ( * ) * CAST ( NULL AS INTEGER ) + 86, + ( - CASE 23 WHEN + 63 THEN NULL WHEN + 68 * + 0 THEN + 30 END ) + - 86 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT DISTINCT 45 * + 84 + - COUNT( ALL + + 53 )
----
3779

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT 45 * + 84 + - COUNT ( ALL + + 53 )
----
3779

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT COUNT( * ) * + 48 - - SUM( ALL + ( + 52 ) ) * ( 67 * + 30 )
----
104568

skipif mysql # not compatible
query I rowsort label-9392
SELECT COUNT ( * ) * + 48 - - SUM ( ALL + ( + 52 ) ) * ( 67 * + 30 )
----
104568

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT COALESCE ( 68, - + ( - - 45 ) * - COUNT( * ) ) * 71 + 74
----
4902

skipif mysql # not compatible
query I rowsort label-9393
SELECT COALESCE ( 68, - + ( - - 45 ) * - COUNT ( * ) ) * 71 + 74
----
4902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9394
SELECT DISTINCT 86 + + + 40 + ( - CASE WHEN ( - 2 ) <> - 61 + + 0 THEN 44 END ) + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT 86 + + + 40 + ( - CASE WHEN ( - 2 ) <> - 61 + + 0 THEN 44 END ) + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9395
SELECT - 9 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-9395
SELECT - 9 / - 84
----
0

query I rowsort
SELECT ALL - 51 + - + 71 + - 72
----
-194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9397
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 38 * CASE 84 WHEN - + 43 * + - 71 + + ( - 74 - 50 ) THEN - 83 * 83 + 81 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9399
SELECT ALL + 64 - - + 1 + + + 7 + CAST( ( - 58 ) AS SIGNED ) * + 51 AS col0
----
-2886

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL + 64 - - + 1 + + + 7 + CAST ( ( - 58 ) AS INTEGER ) * + 51 AS col0
----
-2886

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT - COUNT( * ) * + + NULLIF ( - 27, - CASE + + 66 WHEN 76 / 92 THEN - 66 WHEN + COALESCE ( 15, - 0 + 49 ) THEN - 0 + - NULLIF ( 92, 47 ) / 51 WHEN 45 * 50 - + 25 THEN NULL END * + 22 ) + 43 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9400
SELECT - COUNT ( * ) * + + NULLIF ( - 27, - CASE + + 66 WHEN 76 / 92 THEN - 66 WHEN + COALESCE ( 15, - 0 + 49 ) THEN - 0 + - NULLIF ( 92, 47 ) / 51 WHEN 45 * 50 - + 25 THEN NULL END * + 22 ) + 43 AS col2
----
70

query I rowsort
SELECT + ( + + 19 ) + + 65 * - 45 AS col0
----
-2906

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL SUM( DISTINCT 21 ) * - + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL SUM ( DISTINCT 21 ) * - + COUNT ( * )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9403
SELECT DISTINCT + 71 * + CAST( NULL AS SIGNED ) * - 73 * - MAX( DISTINCT - - 43 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT + 71 * + CAST ( NULL AS INTEGER ) * - 73 * - MAX ( DISTINCT - - 43 ) AS col0
----
NULL

query I rowsort
SELECT + - 1 + - 90
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9405
SELECT ALL + COUNT( * ) * - COALESCE ( + COUNT( * ), + 44 + COUNT( * ) + - COALESCE ( - 44, NULLIF ( - 35, - 3 + 96 ) DIV 10, - 8 * 65 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL + COUNT ( * ) * - COALESCE ( + COUNT ( * ), + 44 + COUNT ( * ) + - COALESCE ( - 44, NULLIF ( - 35, - 3 + 96 ) / 10, - 8 * 65 ) )
----
-1

query I rowsort
SELECT + - 82 * - 38 AS col0
----
3116

query II rowsort
SELECT 24 AS col1, - 90 AS col0
----
24
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT - 51 * COUNT( * ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-9408
SELECT - 51 * COUNT ( * ) col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT 5 * 80 * 60 + + 68 + - + NULLIF ( + 56, 96 ) + + CAST( NULL AS SIGNED ) - 9 * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT 5 * 80 * 60 + + 68 + - + NULLIF ( + 56, 96 ) + + CAST ( NULL AS INTEGER ) - 9 * + 65
----
NULL

query I rowsort
SELECT DISTINCT 82 * + - 37 AS col0
----
-3034

query I rowsort
SELECT + ( + + 38 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9412
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 67 + 43 * + - 46 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 67 + 43 * + - 46 col0
----
NULL

query II rowsort
SELECT DISTINCT + 92 AS col1, 27 * - 81
----
92
-2187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9414
SELECT CAST( - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS SIGNED ) * - COUNT( * ) / - 59 / 9 * ( - 97 ) - + CASE + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) WHEN + 45 THEN - 7 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT CAST ( - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS INTEGER ) * - COUNT ( * ) / - 59 / 9 * ( - 97 ) - + CASE + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + 45 THEN - 7 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT ALL ( ( - + 57 ) ) * 1 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL ( ( - + 57 ) ) * 1 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 78 ) AS col1
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9417
SELECT ALL 47 * + COALESCE ( - - 7, 0 - - - 74 + - 32 - 30 * - 4 DIV 17 ) * - NULLIF ( NULLIF ( MIN( ALL 56 ), 92 ), 50 ) + - COUNT( * ) AS col1
----
-18425

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL 47 * + COALESCE ( - - 7, 0 - - - 74 + - 32 - 30 * - 4 / 17 ) * - NULLIF ( NULLIF ( MIN ( ALL 56 ), 92 ), 50 ) + - COUNT ( * ) AS col1
----
-18425

query I rowsort
SELECT ALL - 46 * - 84
----
3864

onlyif mysql # aggregate syntax: 
query II rowsort label-9419
SELECT + 67 AS col0, + MAX( DISTINCT 4 )
----
67
4

skipif mysql # not compatible
query II rowsort label-9419
SELECT + 67 AS col0, + MAX ( DISTINCT 4 )
----
67
4

query I rowsort
SELECT DISTINCT + ( - ( + 34 ) ) AS col2
----
-34

query I rowsort
SELECT - 3 * - ( + + CASE - 29 WHEN - + 60 THEN NULL ELSE + 0 END ) * 32 AS col0
----
0

query I rowsort
SELECT ALL - 46 * 36
----
-1656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9423
SELECT - AVG ( ALL + - CAST( NULL AS SIGNED ) ) + 97 * - 41 - + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT - AVG ( ALL + - CAST ( NULL AS INTEGER ) ) + 97 * - 41 - + + 9
----
NULL

query I rowsort
SELECT - + 27 * - + 8 AS col0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT - + 22 * + NULLIF ( - 3, + COALESCE ( MIN( 35 ), + 66 ) * 68 ) + - 65 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9425
SELECT - + 22 * + NULLIF ( - 3, + COALESCE ( MIN ( 35 ), + 66 ) * 68 ) + - 65 AS col2
----
1

query I rowsort
SELECT - ( ( + + 15 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL - COUNT( - 5 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL - COUNT ( - 5 ) AS col0
----
-1

query I rowsort
SELECT COALESCE ( - 66, - 14 * 59 - + - 34, + 62 ) + + 30 * + 11 AS col1
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - MIN( DISTINCT - COALESCE ( - ( - 94 ), + 71 ) ) col0
----
94

skipif mysql # not compatible
query I rowsort label-9429
SELECT - MIN ( DISTINCT - COALESCE ( - ( - 94 ), + 71 ) ) col0
----
94

query I rowsort
SELECT 87 * + + 3 AS col0
----
261

query II rowsort
SELECT ALL 11 * - - 26 AS col0, ( + 68 )
----
286
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9432
SELECT - 54, - COUNT( * ) AS col0
----
-54
-1

skipif mysql # not compatible
query II rowsort label-9432
SELECT - 54, - COUNT ( * ) AS col0
----
-54
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT 79 DIV - COALESCE ( + + 92, - 48 * + 53 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9433
SELECT 79 / - COALESCE ( + + 92, - 48 * + 53 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9434
SELECT DISTINCT - COUNT( * ) AS col0, NULLIF ( 77, - 87 * ( 5 ) * 50 + - 37 ) AS col0
----
-1
77

skipif mysql # not compatible
query II rowsort label-9434
SELECT DISTINCT - COUNT ( * ) AS col0, NULLIF ( 77, - 87 * ( 5 ) * 50 + - 37 ) AS col0
----
-1
77

query I rowsort
SELECT + 61 + + 2 AS col0
----
63

query II rowsort
SELECT 51, 82 * - + 41 + + ( - 88 ) AS col0
----
51
-3450

onlyif mysql # aggregate syntax: 
query III rowsort label-9437
SELECT - + 2, + 70 AS col2, COUNT( * ) AS col2
----
-2
70
1

skipif mysql # not compatible
query III rowsort label-9437
SELECT - + 2, + 70 AS col2, COUNT ( * ) AS col2
----
-2
70
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9438
SELECT - 88, + SUM( ALL + 8 ) AS col0
----
-88
8

skipif mysql # not compatible
query II rowsort label-9438
SELECT - 88, + SUM ( ALL + 8 ) AS col0
----
-88
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT ALL - 65 + + COUNT( * ) * 5 * - 32
----
-225

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL - 65 + + COUNT ( * ) * 5 * - 32
----
-225

query I rowsort
SELECT 35 + ( - 61 ) + 31 * - 80
----
-2506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9441
SELECT ALL 35 + + - CAST( + 75 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL 35 + + - CAST ( + 75 AS INTEGER )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9442
SELECT DISTINCT - CAST( + + 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT - CAST ( + + 62 AS INTEGER )
----
-62

query I rowsort
SELECT ALL 11 + + 34 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9444
SELECT 13 / - CAST( NULL AS SIGNED ) + + 63 - - 13 + 24 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT 13 / - CAST ( NULL AS INTEGER ) + + 63 - - 13 + 24 * CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 29 * + ( - + 67 )
----
-1943

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT DISTINCT 40 + - COUNT( ALL + 64 ) * - + 98 + + 93
----
231

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT 40 + - COUNT ( ALL + 64 ) * - + 98 + + 93
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT SUM( DISTINCT + 52 ) + + + ( - + 70 ) * - 42 - + ( + 55 ) + 3
----
2940

skipif mysql # not compatible
query I rowsort label-9447
SELECT SUM ( DISTINCT + 52 ) + + + ( - + 70 ) * - 42 - + ( + 55 ) + 3
----
2940

query I rowsort
SELECT ALL 75 + 9 + + 53 * + 82
----
4430

query I rowsort
SELECT 60 * - + 41 * 7
----
-17220

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT CASE + 31 WHEN + 77 THEN NULL WHEN + + 36 * + ( - 60 ) + + + COUNT( * ) * 96 THEN - 17 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT CASE + 31 WHEN + 77 THEN NULL WHEN + + 36 * + ( - 60 ) + + + COUNT ( * ) * 96 THEN - 17 END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9451
SELECT DISTINCT - SUM( + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT - SUM ( + - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9452
SELECT ALL - 51 - + + 93, - COUNT( * ) AS col1
----
-144
-1

skipif mysql # not compatible
query II rowsort label-9452
SELECT ALL - 51 - + + 93, - COUNT ( * ) AS col1
----
-144
-1

query I rowsort
SELECT ALL + ( 52 ) - 2 + - 64 * + - 22 + - CASE AVG ( + 48 ) WHEN - 59 THEN + 33 + + 79 END + - ( 52 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9454
SELECT 14 * + - COUNT( * ) DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-9454
SELECT 14 * + - COUNT ( * ) / - 69
----
0

query I rowsort
SELECT ( 57 ) * + + 74 * - 14 AS col2
----
-59052

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT + 20 DIV - + 12
----
-1

skipif mysql # not compatible
query I rowsort label-9456
SELECT + 20 / - + 12
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT COUNT( ALL + 95 ) * - 21 * - - 58 * - - 83 col2
----
-101094

skipif mysql # not compatible
query I rowsort label-9457
SELECT COUNT ( ALL + 95 ) * - 21 * - - 58 * - - 83 col2
----
-101094

query I rowsort
SELECT + 32 * 92 - 62
----
2882

query I rowsort
SELECT + 3 * - 14
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL - + 40 * - COUNT( * ) + - COUNT( ALL + - 37 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL - + 40 * - COUNT ( * ) + - COUNT ( ALL + - 37 ) AS col1
----
39

query I rowsort
SELECT - 70 * - ( + 80 ) AS col2
----
5600

query II rowsort
SELECT ALL 39 * 69 * - 59, + 53 * + 64 AS col1
----
-158769
3392

query I rowsort
SELECT DISTINCT ( - 72 ) col2
----
-72

query I rowsort
SELECT ALL + - 27 + - 97 - 9
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT - + COUNT( * ) * - - 5 - + 62 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-9465
SELECT - + COUNT ( * ) * - - 5 - + 62 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT COUNT( * ) + - ( ( - 61 ) ) + + - 85 * COUNT( * ) * + 27 * - 99
----
227267

skipif mysql # not compatible
query I rowsort label-9466
SELECT COUNT ( * ) + - ( ( - 61 ) ) + + - 85 * COUNT ( * ) * + 27 * - 99
----
227267

query I rowsort
SELECT - + ( - 48 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9468
SELECT + CASE + 96 WHEN + COUNT( + 34 ) * + 61 * + 11 - COUNT( * ) - CAST( NULL AS DECIMAL ) * + 65 THEN 80 * 66 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT + CASE + 96 WHEN + COUNT ( + 34 ) * + 61 * + 11 - COUNT ( * ) - CAST ( NULL AS REAL ) * + 65 THEN 80 * 66 END AS col2
----
NULL

query I rowsort
SELECT ALL + + 48 + - - 51 AS col2
----
99

query I rowsort
SELECT 4 * + 60
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9471
SELECT ALL + - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 61 + - - 62 + 13 * - NULLIF ( - 27, + + 27 * 6 ) AS col1
----
474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9473
SELECT ALL - 3 + 23 - + 5 DIV 97 DIV + + 7 + 54 + 32 * + COALESCE ( + ( 48 ) * - CAST( COUNT( ALL + 52 ) * + COUNT( * ) AS SIGNED ) + CASE 52 WHEN - COUNT( * ) + + 75 THEN - 31 ELSE + NULLIF ( + 18, - 22 ) * 9 + - 53 END, 63, - 82 + 59 * - 23 )
----
2026

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL - 3 + 23 - + 5 / 97 / + + 7 + 54 + 32 * + COALESCE ( + ( 48 ) * - CAST ( COUNT ( ALL + 52 ) * + COUNT ( * ) AS INTEGER ) + CASE 52 WHEN - COUNT ( * ) + + 75 THEN - 31 ELSE + NULLIF ( + 18, - 22 ) * 9 + - 53 END, 63, - 82 + 59 * - 23 )
----
2026

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL COUNT( * ) * + COUNT( DISTINCT + 37 ) + + - 75 * - - 58 + + COUNT( * )
----
-4348

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL COUNT ( * ) * + COUNT ( DISTINCT + 37 ) + + - 75 * - - 58 + + COUNT ( * )
----
-4348

query I rowsort
SELECT ALL + 54 + - 52 + - - 58 * - 7
----
-404

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT DISTINCT COUNT( * ) * 82
----
82

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT COUNT ( * ) * 82
----
82

query I rowsort
SELECT ALL 88 * + - 59 AS col0
----
-5192

query I rowsort
SELECT 79 * - 5 col2
----
-395

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9479
SELECT 23 AS col2, COUNT( * ) + + - 86 + + 12 DIV + 21 * 8 + - 79 + + 38 * 81
----
23
2914

skipif mysql # not compatible
query II rowsort label-9479
SELECT 23 AS col2, COUNT ( * ) + + - 86 + + 12 / + 21 * 8 + - 79 + + 38 * 81
----
23
2914

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT DISTINCT + COUNT( * ) * 43 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT + COUNT ( * ) * 43 AS col2
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-9481
SELECT + 20 DIV 5 - + 16, + 16 DIV - 36 * + 61 AS col1
----
-12
0

skipif mysql # not compatible
query II rowsort label-9481
SELECT + 20 / 5 - + 16, + 16 / - 36 * + 61 AS col1
----
-12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT MIN( ALL - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-9482
SELECT MIN ( ALL - 6 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT ALL - 97 * - 42 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - 55 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL - 97 * - 42 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - 55 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT MAX( DISTINCT + 61 ) * 15 AS col2
----
915

skipif mysql # not compatible
query I rowsort label-9484
SELECT MAX ( DISTINCT + 61 ) * 15 AS col2
----
915

onlyif mysql # aggregate syntax: 
query II rowsort label-9485
SELECT ALL - 33 AS col1, - 18 + - COUNT( * ) AS col0
----
-33
-19

skipif mysql # not compatible
query II rowsort label-9485
SELECT ALL - 33 AS col1, - 18 + - COUNT ( * ) AS col0
----
-33
-19

query I rowsort
SELECT 4 - + 65 AS col1
----
-61

query II rowsort
SELECT ALL - 75, 57 col1
----
-75
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9488
SELECT - CASE 38 WHEN 9 + + CAST( NULL AS SIGNED ) + - - COUNT( * ) - 61 THEN + COUNT( * ) END * + - 48 + + 35 - CAST( - MAX( ALL 75 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9488
SELECT - CASE 38 WHEN 9 + + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) - 61 THEN + COUNT ( * ) END * + - 48 + + 35 - CAST ( - MAX ( ALL 75 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT COUNT( ALL 22 ) * + 51 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9489
SELECT COUNT ( ALL 22 ) * + 51 AS col0
----
51

query II rowsort
SELECT COALESCE ( + 81, + 97 ) * + - 23, 4 AS col0
----
-1863
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9491
SELECT + COUNT( * ), 99 DIV - 3 AS col0
----
1
-33

skipif mysql # not compatible
query II rowsort label-9491
SELECT + COUNT ( * ), 99 / - 3 AS col0
----
1
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT MAX( DISTINCT + - 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9492
SELECT MAX ( DISTINCT + - 3 ) AS col2
----
-3

query I rowsort
SELECT + NULLIF ( + COALESCE ( 66, - 43 ), - AVG ( 83 ) * - - 45 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT + 18 + - + MIN( DISTINCT - + 86 ) + 97 AS col2
----
201

skipif mysql # not compatible
query I rowsort label-9494
SELECT + 18 + - + MIN ( DISTINCT - + 86 ) + 97 AS col2
----
201

query I rowsort
SELECT + + 94 * - - ( 57 )
----
5358

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT + 4 * - - COUNT( * ) + 57 + - 45
----
16

skipif mysql # not compatible
query I rowsort label-9496
SELECT + 4 * - - COUNT ( * ) + 57 + - 45
----
16

query II rowsort
SELECT + 45 + - 33 + 69 * 23 AS col0, - 69
----
1599
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9498
SELECT ALL + 39 * - - COUNT( * ) DIV - + 98 + + 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL + 39 * - - COUNT ( * ) / - + 98 + + 88 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL 28 + + CASE + 18 WHEN + + 81 THEN + - 44 * - 9 + 25 / - MIN( ALL 94 ) * 92 + - 23 + 62 WHEN COUNT( 32 ) + 64 THEN 37 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL 28 + + CASE + 18 WHEN + + 81 THEN + - 44 * - 9 + 25 / - MIN ( ALL 94 ) * 92 + - 23 + 62 WHEN COUNT ( 32 ) + 64 THEN 37 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9500
SELECT CASE - COUNT( * ) WHEN - - COALESCE ( - + 95, - 26 + - ( + + CAST( - AVG ( ( 56 ) ) AS SIGNED ) ) ) * - 58 THEN NULL ELSE + 26 + 17 END
----
43

skipif mysql # not compatible
query I rowsort label-9500
SELECT CASE - COUNT ( * ) WHEN - - COALESCE ( - + 95, - 26 + - ( + + CAST ( - AVG ( ( 56 ) ) AS INTEGER ) ) ) * - 58 THEN NULL ELSE + 26 + 17 END
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9501
SELECT ALL - 59 + + COUNT( * ) DIV - + 28 * + 98 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - 59 + + COUNT ( * ) / - + 28 * + 98 AS col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9502
SELECT 6, + CAST( 53 AS SIGNED ) AS col2
----
6
53

skipif mysql # not compatible
query II rowsort label-9502
SELECT 6, + CAST ( 53 AS INTEGER ) AS col2
----
6
53

query I rowsort
SELECT DISTINCT NULLIF ( - + 91, - 54 ) + 12 + + + COALESCE ( - 53, - - 33 ) * + 59 AS col0
----
-3206

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9504
SELECT 20 * ( 70 ) DIV COUNT( * ) + - 67 - + 5 * 43 * 91 * COUNT( * )
----
-18232

skipif mysql # not compatible
query I rowsort label-9504
SELECT 20 * ( 70 ) / COUNT ( * ) + - 67 - + 5 * 43 * 91 * COUNT ( * )
----
-18232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9505
SELECT - COUNT( ALL 10 ) * - 63 DIV - 39 + - - 34
----
33

skipif mysql # not compatible
query I rowsort label-9505
SELECT - COUNT ( ALL 10 ) * - 63 / - 39 + - - 34
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT + 57 + + ( COUNT( * ) )
----
58

skipif mysql # not compatible
query I rowsort label-9506
SELECT + 57 + + ( COUNT ( * ) )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT + SUM( - 27 ) * + 41 AS col2
----
-1107

skipif mysql # not compatible
query I rowsort label-9507
SELECT + SUM ( - 27 ) * + 41 AS col2
----
-1107

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT ALL MAX( + + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL MAX ( + + 21 )
----
21

query I rowsort
SELECT DISTINCT - ( 77 ) AS col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT ALL + - 95 + + CAST( 30 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL + - 95 + + CAST ( 30 AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-9511
SELECT - COUNT( * ) col0, - 6
----
-1
-6

skipif mysql # not compatible
query II rowsort label-9511
SELECT - COUNT ( * ) col0, - 6
----
-1
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9512
SELECT ALL 34, COUNT( ( ( + 40 ) ) ) AS col0
----
34
1

skipif mysql # not compatible
query II rowsort label-9512
SELECT ALL 34, COUNT ( ( ( + 40 ) ) ) AS col0
----
34
1

query I rowsort
SELECT DISTINCT 58 + + ( + 8 )
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9514
SELECT - ( CAST( NULL AS DECIMAL ) ) + ( + 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9514
SELECT - ( CAST ( NULL AS REAL ) ) + ( + 53 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 49 - + 97 col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT - 70 + + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-9516
SELECT - 70 + + COUNT ( * )
----
-69

query I rowsort
SELECT - ( - 39 ) + - 29 * + 1
----
10

query I rowsort
SELECT - 64 - NULLIF ( - 51, 18 + + 76 * + + 98 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9519
SELECT - COUNT( * ) + + + CAST( + COALESCE ( + COUNT( + 19 ), MIN( - + 79 ) / 67 ) AS SIGNED ) + + - ( - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-9519
SELECT - COUNT ( * ) + + + CAST ( + COALESCE ( + COUNT ( + 19 ), MIN ( - + 79 ) / 67 ) AS INTEGER ) + + - ( - 99 )
----
99

query I rowsort
SELECT ALL ( 55 ) AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT - CAST( NULL AS SIGNED ) + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9521
SELECT - CAST ( NULL AS INTEGER ) + + 59
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9522
SELECT ALL + 87 DIV + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL + 87 / + COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT DISTINCT - 78 * COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT - 78 * COUNT ( * )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-9524
SELECT DISTINCT - 5 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT - 5 / + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT - 74 * + - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-9525
SELECT - 74 * + - COUNT ( * )
----
74

query II rowsort
SELECT - 80 + - - 88 AS col1, 73
----
8
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT - COUNT( * ) * + 64 + + 78
----
14

skipif mysql # not compatible
query I rowsort label-9527
SELECT - COUNT ( * ) * + 64 + + 78
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT DISTINCT + COALESCE ( 52, + 30 * COALESCE ( + 45, - 15 ) / + 1 * NULLIF ( - 20, COUNT( * ) / 77 ) + + 63 * 35 ) * - CASE - 89 WHEN + 60 THEN + 79 WHEN SUM( ALL ( 26 ) ) THEN NULL WHEN 33 THEN NULL WHEN - COALESCE ( + 21, 59 + + 64 ) * + 12 THEN - 76 * 66 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT + COALESCE ( 52, + 30 * COALESCE ( + 45, - 15 ) / + 1 * NULLIF ( - 20, COUNT ( * ) / 77 ) + + 63 * 35 ) * - CASE - 89 WHEN + 60 THEN + 79 WHEN SUM ( ALL ( 26 ) ) THEN NULL WHEN 33 THEN NULL WHEN - COALESCE ( + 21, 59 + + 64 ) * + 12 THEN - 76 * 66 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - 45, + AVG ( + 64 ) * 65 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ( - SUM( + - 55 ) )
----
55

skipif mysql # not compatible
query I rowsort label-9530
SELECT ( - SUM ( + - 55 ) )
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9531
SELECT ALL + + MIN( - - 8 ) AS col1, 4
----
8
4

skipif mysql # not compatible
query II rowsort label-9531
SELECT ALL + + MIN ( - - 8 ) AS col1, 4
----
8
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT DISTINCT - 24 * - - 16 + ( - + COUNT( * ) )
----
-385

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT - 24 * - - 16 + ( - + COUNT ( * ) )
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL + COUNT( * ) * + 49 - + 88 + - 50 + MAX( - 16 )
----
-105

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL + COUNT ( * ) * + 49 - + 88 + - 50 + MAX ( - 16 )
----
-105

query I rowsort
SELECT ( + - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT + CASE COUNT( + - 99 ) WHEN ( ( + - MAX( ALL - 36 ) ) ) * 11 THEN + 61 + 32 ELSE + 53 + - 58 * + 97 END * - 27
----
150471

skipif mysql # not compatible
query I rowsort label-9535
SELECT + CASE COUNT ( + - 99 ) WHEN ( ( + - MAX ( ALL - 36 ) ) ) * 11 THEN + 61 + 32 ELSE + 53 + - 58 * + 97 END * - 27
----
150471

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT ALL + - 90 * 60 * + 99 + + 64 * 92 DIV - 76 AS col1
----
-534677

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL + - 90 * 60 * + 99 + + 64 * 92 / - 76 AS col1
----
-534677

query I rowsort
SELECT ALL + ( + 58 ) * - 30 + - + NULLIF ( + - 64, CASE + 35 WHEN - 53 - + 79 * 10 THEN NULL WHEN NULLIF ( 7, + 1 ) THEN NULL ELSE - 25 END * - 8 ) AS col2
----
-1676

query I rowsort
SELECT 64 * - 3 - - 91
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT + MIN( + ( + 60 ) )
----
60

skipif mysql # not compatible
query I rowsort label-9539
SELECT + MIN ( + ( + 60 ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT + COALESCE ( + 95, + 50 ) - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-9540
SELECT + COALESCE ( + 95, + 50 ) - COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT ALL - COUNT( DISTINCT - 57 ) * - - 50 + - 51 * COUNT( * ) + + 66 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL - COUNT ( DISTINCT - 57 ) * - - 50 + - 51 * COUNT ( * ) + + 66 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT ALL - 67 * + 57 + + - ( 59 ) * CASE - 61 WHEN - - COUNT( * ) THEN NULL WHEN 47 THEN NULL WHEN 5 THEN 99 * 51 + - 7 * - 90 ELSE NULL END * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL - 67 * + 57 + + - ( 59 ) * CASE - 61 WHEN - - COUNT ( * ) THEN NULL WHEN 47 THEN NULL WHEN 5 THEN 99 * 51 + - 7 * - 90 ELSE NULL END * 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT 47 * + + 10 * 59 + 61 + MIN( ALL 92 ) + - + 10 * + MIN( 44 ) AS col2
----
27443

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT 47 * + + 10 * 59 + 61 + MIN ( ALL 92 ) + - + 10 * + MIN ( 44 ) AS col2
----
27443

query II rowsort
SELECT + 90 + 19 AS col2, + 17
----
109
17

query I rowsort
SELECT + 95 - - 3
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + CASE - 28 WHEN - 29 THEN NULL WHEN - 6 + - - 81 THEN - 11 ELSE + 39 * 50 + - COUNT( - 1 ) - + 87 END * 93
----
173166

skipif mysql # not compatible
query I rowsort label-9546
SELECT + CASE - 28 WHEN - 29 THEN NULL WHEN - 6 + - - 81 THEN - 11 ELSE + 39 * 50 + - COUNT ( - 1 ) - + 87 END * 93
----
173166

query I rowsort
SELECT - 47 * + 34
----
-1598

query I rowsort
SELECT - ( + 2 ) AS col1
----
-2

query I rowsort
SELECT - 64 + - 3
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9550
SELECT - CAST( ( - - COUNT( * ) ) AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9550
SELECT - CAST ( ( - - COUNT ( * ) ) AS INTEGER ) col2
----
-1

query I rowsort
SELECT ALL + 18 - 56 AS col2
----
-38

query I rowsort
SELECT ALL COALESCE ( 59, - 89 + + 38 ) AS col1
----
59

query I rowsort
SELECT ALL + ( 26 ) * - 34 AS col2
----
-884

onlyif mysql # aggregate syntax: 
query II rowsort label-9554
SELECT ALL COUNT( * ) * + ( - COUNT( * ) ) AS col1, COUNT( DISTINCT - 93 )
----
-1
1

skipif mysql # not compatible
query II rowsort label-9554
SELECT ALL COUNT ( * ) * + ( - COUNT ( * ) ) AS col1, COUNT ( DISTINCT - 93 )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT + MAX( - + 50 ) + + - 41 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-9555
SELECT + MAX ( - + 50 ) + + - 41 AS col0
----
-91

query I rowsort
SELECT + 51 * - 66 * - 30 * 96
----
9694080

query I rowsort
SELECT - 57 * - 90
----
5130

query I rowsort
SELECT ALL + 29 + + 62 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ALL 9 * COUNT( * ) col2
----
9

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL 9 * COUNT ( * ) col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9560
SELECT 29 / + + 73 + + 81 + CAST( NULL AS SIGNED ) * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9560
SELECT 29 / + + 73 + + 81 + CAST ( NULL AS INTEGER ) * - 3
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9561
SELECT ALL + CAST( NULL AS SIGNED ) + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL + CAST ( NULL AS INTEGER ) + 74
----
NULL

query I rowsort
SELECT ALL + 29 + - 72 * + - NULLIF ( 42, - - 45 )
----
3053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9563
SELECT CAST( NULL AS SIGNED ) / + 53 + + + COUNT( * ) + - MIN( - - 92 ) + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT CAST ( NULL AS INTEGER ) / + 53 + + + COUNT ( * ) + - MIN ( - - 92 ) + - 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9564
SELECT ALL - 34 + + + 17 + - - CASE CASE - 74 WHEN - 60 * NULLIF ( + 40, 90 ) * + 87 THEN CAST( NULL AS SIGNED ) * - 95 WHEN 94 THEN NULL WHEN 2 / + 97 THEN - 78 ELSE NULL END WHEN + 32 * 29 - + 75 * - 85 THEN 9 * COUNT( * ) WHEN 4 * 44 + - 44 / 26 THEN 81 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL - 34 + + + 17 + - - CASE CASE - 74 WHEN - 60 * NULLIF ( + 40, 90 ) * + 87 THEN CAST ( NULL AS INTEGER ) * - 95 WHEN 94 THEN NULL WHEN 2 / + 97 THEN - 78 ELSE NULL END WHEN + 32 * 29 - + 75 * - 85 THEN 9 * COUNT ( * ) WHEN 4 * 44 + - 44 / 26 THEN 81 ELSE NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9565
SELECT ALL - 23 DIV + 24
----
0

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL - 23 / + 24
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT - + 41 DIV + - 76 + 5 * - 2 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9566
SELECT - + 41 / + - 76 + 5 * - 2 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT - 37 * + CASE - 33 WHEN + + 32 * 86 THEN NULL WHEN - COUNT( * ) * 23 + + MAX( + + 24 ) THEN - + SUM( ALL + CASE 84 WHEN - 34 * 68 THEN + 40 END ) ELSE NULL END / - 47 + + MAX( ALL - 93 ) - - COUNT( ALL + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT - 37 * + CASE - 33 WHEN + + 32 * 86 THEN NULL WHEN - COUNT ( * ) * 23 + + MAX ( + + 24 ) THEN - + SUM ( ALL + CASE 84 WHEN - 34 * 68 THEN + 40 END ) ELSE NULL END / - 47 + + MAX ( ALL - 93 ) - - COUNT ( ALL + 87 )
----
NULL

query I rowsort
SELECT DISTINCT - 90 * + - 30
----
2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT 2 + + NULLIF ( - 97, + - 9 ) + - + 90 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT 2 + + NULLIF ( - 97, + - 9 ) + - + 90 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 3 * - - 14 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT + + CASE + 80 WHEN + - 35 + - COUNT( * ) THEN + COUNT( * ) ELSE - + 93 END
----
-93

skipif mysql # not compatible
query I rowsort label-9571
SELECT + + CASE + 80 WHEN + - 35 + - COUNT ( * ) THEN + COUNT ( * ) ELSE - + 93 END
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT DISTINCT - COUNT( * ) * + 49 + - + 73
----
-122

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT - COUNT ( * ) * + 49 + - + 73
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL - 38 - COALESCE ( 9, - + 62 * - MAX( - + 14 ) + - + 36, + 17 ) + - - 17 * COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL - 38 - COALESCE ( 9, - + 62 * - MAX ( - + 14 ) + - + 36, + 17 ) + - - 17 * COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ALL 96 - + 18 + + - COUNT( * ) * 25 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL 96 - + 18 + + - COUNT ( * ) * 25 AS col2
----
53

query I rowsort
SELECT - 5 + 81
----
76

query II rowsort
SELECT + 19 AS col0, 69 + - + 51 AS col0
----
19
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9577
SELECT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - - 93 col0, - 86 * + 81
----
NULL
-6966

skipif mysql # not compatible
query II rowsort label-9577
SELECT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - - 93 col0, - 86 * + 81
----
NULL
-6966

query I rowsort
SELECT + COALESCE ( + + 54, - 52 + + - 2 * 31 * + - 70, + 41, 38 ) * - 94 + + 81
----
-4995

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT + MAX( DISTINCT - ( + 63 ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-9579
SELECT + MAX ( DISTINCT - ( + 63 ) ) AS col2
----
-63

query I rowsort
SELECT ALL - ( + 81 ) AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9581
SELECT MIN( 34 ) + CAST( - 87 AS SIGNED ) AS col1, - 21
----
-53
-21

skipif mysql # not compatible
query II rowsort label-9581
SELECT MIN ( 34 ) + CAST ( - 87 AS INTEGER ) AS col1, - 21
----
-53
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9582
SELECT 8 * 67 AS col1, CAST( NULL AS SIGNED ) col2
----
536
NULL

skipif mysql # not compatible
query II rowsort label-9582
SELECT 8 * 67 AS col1, CAST ( NULL AS INTEGER ) col2
----
536
NULL

query I rowsort
SELECT DISTINCT 64 * + 88
----
5632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9584
SELECT 98 * - COUNT( * ) DIV + 91 DIV 6
----
0

skipif mysql # not compatible
query I rowsort label-9584
SELECT 98 * - COUNT ( * ) / + 91 / 6
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT COUNT( * ) - - - 64
----
-63

skipif mysql # not compatible
query I rowsort label-9585
SELECT COUNT ( * ) - - - 64
----
-63

query I rowsort
SELECT DISTINCT 10 * + 28 AS col0
----
280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9587
SELECT CAST( NULL AS SIGNED ) + + 18 * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT CAST ( NULL AS INTEGER ) + + 18 * - 79
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9588
SELECT COALESCE ( + + 19, + 47, 33 ) + - 1 + + - 74 DIV + MAX( DISTINCT + 28 ) + - 48 + + COUNT( * ) + - COUNT( DISTINCT - 8 )
----
-32

skipif mysql # not compatible
query I rowsort label-9588
SELECT COALESCE ( + + 19, + 47, 33 ) + - 1 + + - 74 / + MAX ( DISTINCT + 28 ) + - 48 + + COUNT ( * ) + - COUNT ( DISTINCT - 8 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9589
SELECT 33 * - 92 * CAST( - COUNT( * ) AS SIGNED ) DIV - 46 col2
----
-66

skipif mysql # not compatible
query I rowsort label-9589
SELECT 33 * - 92 * CAST ( - COUNT ( * ) AS INTEGER ) / - 46 col2
----
-66

query I rowsort
SELECT 4 + + 86 + + - 81
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT 39 - + CAST( - 84 AS SIGNED ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-9591
SELECT 39 - + CAST ( - 84 AS INTEGER ) AS col0
----
123

query I rowsort
SELECT DISTINCT 7 col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9593
SELECT DISTINCT 68 + CASE - CAST( NULL AS SIGNED ) WHEN - 9 THEN NULL WHEN + 87 + - + 59 THEN NULL ELSE - - ( + COALESCE ( - + 21, + 94, + COUNT( * ), 32 + + 92 ) ) + - 62 END col0
----
-15

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT 68 + CASE - CAST ( NULL AS INTEGER ) WHEN - 9 THEN NULL WHEN + 87 + - + 59 THEN NULL ELSE - - ( + COALESCE ( - + 21, + 94, + COUNT ( * ), 32 + + 92 ) ) + - 62 END col0
----
-15

query I rowsort
SELECT 23 + 56 + 77 * 15 AS col0
----
1234

query I rowsort
SELECT ALL 3 + + 81 + + 15
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT DISTINCT MIN( ALL - 73 ) + + 59 + 1 * + 11 + + - NULLIF ( + + 41, - 82 )
----
-44

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT MIN ( ALL - 73 ) + + 59 + 1 * + 11 + + - NULLIF ( + + 41, - 82 )
----
-44

query II rowsort
SELECT - 68, 8 AS col2
----
-68
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL + 98 + + - 57 + COUNT( * ) col0
----
42

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL + 98 + + - 57 + COUNT ( * ) col0
----
42

query I rowsort
SELECT ALL 95 * - 68
----
-6460

query I rowsort
SELECT 25 * + 37 * - + 92
----
-85100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9601
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9601
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT COUNT( * ) * + 78 col1
----
78

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT COUNT ( * ) * + 78 col1
----
78

query I rowsort
SELECT ALL + 2 + + 56 - 19 AS col2
----
39

query II rowsort
SELECT + + 2 col0, 48 + 81 * + - 37 * + 83
----
2
-248703

onlyif mysql # aggregate syntax: 
query II rowsort label-9605
SELECT + 18, COUNT( * ) * 53 AS col1
----
18
53

skipif mysql # not compatible
query II rowsort label-9605
SELECT + 18, COUNT ( * ) * 53 AS col1
----
18
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT COUNT( * ) * 69 + + ( + + 39 ) col1
----
108

skipif mysql # not compatible
query I rowsort label-9606
SELECT COUNT ( * ) * 69 + + ( + + 39 ) col1
----
108

query I rowsort
SELECT + 0 * 86 * + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT - ( 48 ) * + COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9608
SELECT - ( 48 ) * + COUNT ( * ) AS col1
----
-48

query I rowsort
SELECT DISTINCT - ( - - 71 ) AS col2
----
-71

query I rowsort
SELECT DISTINCT 79 * - 28 + + NULLIF ( + 35, - 76 + 88 + - 62 )
----
-2177

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT DISTINCT - CASE - COUNT( * ) WHEN + + ( + ( - CASE - + COUNT( * ) WHEN + + AVG ( 88 ) THEN + 46 + - 19 ELSE + - 44 * + ( + NULLIF ( 98, + MAX( 60 ) + COUNT( * ) ) ) + + 71 END ) ) * + MAX( DISTINCT - 17 ) THEN NULL ELSE ( + 36 ) END
----
-36

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + + ( + ( - CASE - + COUNT ( * ) WHEN + + AVG ( 88 ) THEN + 46 + - 19 ELSE + - 44 * + ( + NULLIF ( 98, + MAX ( 60 ) + COUNT ( * ) ) ) + + 71 END ) ) * + MAX ( DISTINCT - 17 ) THEN NULL ELSE ( + 36 ) END
----
-36

query I rowsort
SELECT ALL ( + 83 ) - + 97 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9613
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0, - 77 + + ( 39 )
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-9613
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0, - 77 + + ( 39 )
----
NULL
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9614
SELECT ALL - + COUNT( * ) AS col0, ( + - CAST( NULL AS SIGNED ) )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9614
SELECT ALL - + COUNT ( * ) AS col0, ( + - CAST ( NULL AS INTEGER ) )
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT DISTINCT + + 47 DIV - 57 * - - 80 * - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT + + 47 / - 57 * - - 80 * - 68 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9616
SELECT + 92 AS col0, + ( + + SUM( DISTINCT - + 21 ) )
----
92
-21

skipif mysql # not compatible
query II rowsort label-9616
SELECT + 92 AS col0, + ( + + SUM ( DISTINCT - + 21 ) )
----
92
-21

query I rowsort
SELECT + 3 * - - 53
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT 94 + + 59 * - CASE - COUNT( * ) WHEN + 8 + - + NULLIF ( + - 5, + NULLIF ( - 45, 58 * + - 8 + - 96 + NULLIF ( 74, - 58 * + 1 + + 99 ) / - 10 ) ) THEN NULL WHEN 88 THEN + 47 * - ( - 82 * - 28 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT 94 + + 59 * - CASE - COUNT ( * ) WHEN + 8 + - + NULLIF ( + - 5, + NULLIF ( - 45, 58 * + - 8 + - 96 + NULLIF ( 74, - 58 * + 1 + + 99 ) / - 10 ) ) THEN NULL WHEN 88 THEN + 47 * - ( - 82 * - 28 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 84 * + - 6 + - 65
----
-569

query I rowsort
SELECT CASE 90 WHEN + 76 THEN - 96 END * - + 42
----
NULL

query I rowsort
SELECT - ( + 11 ) col2
----
-11

query I rowsort
SELECT ALL + 91 * 97 AS col2
----
8827

query I rowsort
SELECT DISTINCT - 19 * - - 15 AS col2
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT 78 * + - COUNT( 7 ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-9624
SELECT 78 * + - COUNT ( 7 ) col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL + COUNT( * ) + 73
----
74

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + COUNT ( * ) + 73
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9626
SELECT ALL COALESCE ( - 96, CAST( NULL AS SIGNED ), + 84 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL COALESCE ( - 96, CAST ( NULL AS INTEGER ), + 84 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT + 33 * CASE + 41 WHEN 17 THEN 52 ELSE + 67 + + 48 * COUNT( ALL 10 ) END
----
3795

skipif mysql # not compatible
query I rowsort label-9627
SELECT + 33 * CASE + 41 WHEN 17 THEN 52 ELSE + 67 + + 48 * COUNT ( ALL 10 ) END
----
3795

query II rowsort
SELECT - 45 * 29 AS col1, 45
----
-1305
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT + 51 + + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-9629
SELECT + 51 + + COUNT ( * )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9630
SELECT DISTINCT MIN( - 72 ) * 49 - + - CAST( + MAX( DISTINCT + ( - + 20 ) ) AS SIGNED )
----
-3548

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT MIN ( - 72 ) * 49 - + - CAST ( + MAX ( DISTINCT + ( - + 20 ) ) AS INTEGER )
----
-3548

query I rowsort
SELECT ALL 15 + - + 15 + - 68 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9632
SELECT ALL - 29 + COUNT( DISTINCT - 84 ), COUNT( * ) AS col1
----
-28
1

skipif mysql # not compatible
query II rowsort label-9632
SELECT ALL - 29 + COUNT ( DISTINCT - 84 ), COUNT ( * ) AS col1
----
-28
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9633
SELECT DISTINCT 50 + ( + + 19 ) DIV 12 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT 50 + ( + + 19 ) / 12 AS col2
----
51

query I rowsort
SELECT ALL NULLIF ( 52, - 49 ) + - - 79 AS col2
----
131

query I rowsort
SELECT + 15 * + + 82 * + 84 * - - 1
----
103320

query I rowsort
SELECT DISTINCT + 57 * - NULLIF ( ( - 60 ), + 78 + - 12 )
----
3420

query I rowsort
SELECT DISTINCT 44 + 54
----
98

query I rowsort
SELECT - 62 + + 37 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT ALL 1 - MAX( ALL - 46 ) - COALESCE ( ( - 71 ), 51 + - COUNT( * ) )
----
118

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL 1 - MAX ( ALL - 46 ) - COALESCE ( ( - 71 ), 51 + - COUNT ( * ) )
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT + CASE COUNT( * ) WHEN - 5 THEN NULL WHEN + 43 THEN 4 * - 68 + - MAX( ALL + - 85 ) ELSE NULL END - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT + CASE COUNT ( * ) WHEN - 5 THEN NULL WHEN + 43 THEN 4 * - 68 + - MAX ( ALL + - 85 ) ELSE NULL END - - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT - MAX( 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9641
SELECT - MAX ( 11 ) AS col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9642
SELECT ALL 24 DIV 35 * - 61
----
0

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL 24 / 35 * - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT + SUM( + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT + SUM ( + 46 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9644
SELECT + 12 + COUNT( * ) + 68 + CAST( - 37 AS SIGNED ) - - COUNT( * ) * 60 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-9644
SELECT + 12 + COUNT ( * ) + 68 + CAST ( - 37 AS INTEGER ) - - COUNT ( * ) * 60 AS col2
----
104

query I rowsort
SELECT ALL + ( - 34 ) * - - 18 - + 65 AS col1
----
-677

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT + + COUNT( * ) - - 15 * - 6
----
-89

skipif mysql # not compatible
query I rowsort label-9646
SELECT + + COUNT ( * ) - - 15 * - 6
----
-89

query II rowsort
SELECT + 74 * + 76 AS col0, 64 + - 16 AS col2
----
5624
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT + - ( - ( - - SUM( - + 53 ) ) ) + + 96 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9648
SELECT + - ( - ( - - SUM ( - + 53 ) ) ) + + 96 AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9649
SELECT + + 38 DIV + ( - - COUNT( * ) ) + 17 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9649
SELECT + + 38 / + ( - - COUNT ( * ) ) + 17 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9650
SELECT ALL 31 * + - CAST( - 74 AS SIGNED ) + 4 - 79 + - COUNT( * ) AS col0
----
2218

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL 31 * + - CAST ( - 74 AS INTEGER ) + 4 - 79 + - COUNT ( * ) AS col0
----
2218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9651
SELECT + 1 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT + 1 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 70 * 54 + + 27 + + 95 + + 21 * + ( + - 74 ) * + 16 col0
----
-28522

query I rowsort
SELECT - 98 * 49 * + 59 + - + 95 AS col0
----
-283413

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL + MIN( DISTINCT - 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL + MIN ( DISTINCT - 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT - NULLIF ( + 15, COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-9655
SELECT - NULLIF ( + 15, COUNT ( * ) )
----
-15

query I rowsort
SELECT DISTINCT + + 93 col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL 97 * - 11 * + COUNT( * ) AS col2
----
-1067

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL 97 * - 11 * + COUNT ( * ) AS col2
----
-1067

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT + + COUNT( + 48 ) * + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-9658
SELECT + + COUNT ( + 48 ) * + - 43
----
-43

query II rowsort
SELECT ALL + 62 AS col2, 79 * + + 95 AS col1
----
62
7505

onlyif mysql # aggregate syntax: 
query II rowsort label-9660
SELECT COUNT( * ), - 27 AS col1
----
1
-27

skipif mysql # not compatible
query II rowsort label-9660
SELECT COUNT ( * ), - 27 AS col1
----
1
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9661
SELECT + ( + 59 ) + - CASE - CAST( NULL AS SIGNED ) WHEN + 28 - COUNT( * ) * + ( + + 6 ) * - 78 + + - 40 - + 0 + + 75 + - 97 / + COUNT( * ) THEN 26 + COUNT( * ) END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT + ( + 59 ) + - CASE - CAST ( NULL AS INTEGER ) WHEN + 28 - COUNT ( * ) * + ( + + 6 ) * - 78 + + - 40 - + 0 + + 75 + - 97 / + COUNT ( * ) THEN 26 + COUNT ( * ) END * COUNT ( * )
----
NULL

query I rowsort
SELECT - 81 * - + 3
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT - ( CASE - 7 WHEN + ( + - 50 ) THEN NULL WHEN + 68 / - + 43 * + COUNT( * ) * - 64 THEN NULL ELSE - 42 * + ( + COALESCE ( - 89, 12, 64 ) ) + + 38 END )
----
-3776

skipif mysql # not compatible
query I rowsort label-9663
SELECT - ( CASE - 7 WHEN + ( + - 50 ) THEN NULL WHEN + 68 / - + 43 * + COUNT ( * ) * - 64 THEN NULL ELSE - 42 * + ( + COALESCE ( - 89, 12, 64 ) ) + + 38 END )
----
-3776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT - 58 * 88 * - CAST( + - 79 AS SIGNED )
----
-403216

skipif mysql # not compatible
query I rowsort label-9664
SELECT - 58 * 88 * - CAST ( + - 79 AS INTEGER )
----
-403216

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT ( COUNT( DISTINCT - + 49 ) ) * + 29 + + 19 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9665
SELECT ( COUNT ( DISTINCT - + 49 ) ) * + 29 + + 19 AS col1
----
48

query I rowsort
SELECT DISTINCT COALESCE ( - NULLIF ( - 79, - 32 * + 85 / - 69 * + NULLIF ( - 9, 75 ) + 11 + + 83 * 69 ), + 76, + 71 )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9667
SELECT - 45 + 82 + - ( 29 ) + + + ( - 68 ) + - 48 * + COALESCE ( COUNT( * ), - 93 + 52 ) AS col1, 32 * - 65 * - 57 AS col1
----
-108
118560

skipif mysql # not compatible
query II rowsort label-9667
SELECT - 45 + 82 + - ( 29 ) + + + ( - 68 ) + - 48 * + COALESCE ( COUNT ( * ), - 93 + 52 ) AS col1, 32 * - 65 * - 57 AS col1
----
-108
118560

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT - SUM( ALL - 94 ) * - - 29
----
2726

skipif mysql # not compatible
query I rowsort label-9668
SELECT - SUM ( ALL - 94 ) * - - 29
----
2726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT - 22 + - CAST( NULL AS SIGNED ) + - ( - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT - 22 + - CAST ( NULL AS INTEGER ) + - ( - 99 )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 43, 71 * 70 ) * 67 * - - 90 + - 74
----
259216

query I rowsort
SELECT ALL - 97 + - 85
----
-182

query I rowsort
SELECT - 15 - + 88 + - 88 * + + ( + - 2 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT DISTINCT COALESCE ( 7, + COUNT( * ) + + 75 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT COALESCE ( 7, + COUNT ( * ) + + 75 ) AS col0
----
7

query I rowsort
SELECT - 68 + 64
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9675
SELECT + COUNT( * ) + + CASE COUNT( * ) WHEN - 60 THEN 35 * 33 * + 53 * + SUM( ALL + ( 79 ) ) * - CAST( + 5 AS SIGNED ) + + COUNT( ALL + ( ( 11 ) ) ) * + 13 ELSE 20 + - ( + 89 ) DIV COALESCE ( + 56 * 19, 55 ) END AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9675
SELECT + COUNT ( * ) + + CASE COUNT ( * ) WHEN - 60 THEN 35 * 33 * + 53 * + SUM ( ALL + ( 79 ) ) * - CAST ( + 5 AS INTEGER ) + + COUNT ( ALL + ( ( 11 ) ) ) * + 13 ELSE 20 + - ( + 89 ) / COALESCE ( + 56 * 19, 55 ) END AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT + CASE + 60 WHEN - 37 THEN - COALESCE ( - + 44, 99 ) * ( ( + 54 ) ) + + CAST( + + 85 AS SIGNED ) END * + 52 * + 78 * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT + CASE + 60 WHEN - 37 THEN - COALESCE ( - + 44, 99 ) * ( ( + 54 ) ) + + CAST ( + + 85 AS INTEGER ) END * + 52 * + 78 * - 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9677
SELECT DISTINCT - 26 AS col2, COALESCE ( - CASE + 59 WHEN + COALESCE ( + - 95, - AVG ( ALL 8 ) ) + + ( + 96 ) + - - CAST( + 70 AS SIGNED ) + - COUNT( ALL 75 ) + 25 THEN 90 + 53 * 73 END, - 44 + 94 ) AS col0
----
-26
50

skipif mysql # not compatible
query II rowsort label-9677
SELECT DISTINCT - 26 AS col2, COALESCE ( - CASE + 59 WHEN + COALESCE ( + - 95, - AVG ( ALL 8 ) ) + + ( + 96 ) + - - CAST ( + 70 AS INTEGER ) + - COUNT ( ALL 75 ) + 25 THEN 90 + 53 * 73 END, - 44 + 94 ) AS col0
----
-26
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL - - COUNT( * ) - - - 76 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - - COUNT ( * ) - - - 76 AS col2
----
-75

query I rowsort
SELECT - - 5 + + 66
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT - - COUNT( - - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-9680
SELECT - - COUNT ( - - 58 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9681
SELECT ALL - CAST( - + AVG ( 53 ) AS SIGNED ) col0, COUNT( * ) col1
----
53
1

skipif mysql # not compatible
query II rowsort label-9681
SELECT ALL - CAST ( - + AVG ( 53 ) AS INTEGER ) col0, COUNT ( * ) col1
----
53
1

query I rowsort
SELECT + - 56 * + - 6 AS col1
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL + CASE COUNT( * ) WHEN 41 THEN NULL ELSE - + 98 END * + 78 col0
----
-7644

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL + CASE COUNT ( * ) WHEN 41 THEN NULL ELSE - + 98 END * + 78 col0
----
-7644

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT - MAX( - - 2 ) * 58 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-9684
SELECT - MAX ( - - 2 ) * 58 AS col2
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9685
SELECT + 92 AS col1, - 76 + ( + 60 ) + - 16 DIV - MAX( DISTINCT + 68 ) AS col2
----
92
-16

skipif mysql # not compatible
query II rowsort label-9685
SELECT + 92 AS col1, - 76 + ( + 60 ) + - 16 / - MAX ( DISTINCT + 68 ) AS col2
----
92
-16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9686
SELECT + COUNT( * ) AS col1, - ( CASE - + 86 WHEN - - SUM( ALL - + CAST( NULL AS DECIMAL ) ) THEN NULL WHEN + - 55 + 51 - + 47 * - COUNT( * ) THEN - 49 ELSE - 96 + + + 46 END ) + 42 DIV + 14 AS col0
----
1
53

skipif mysql # not compatible
query II rowsort label-9686
SELECT + COUNT ( * ) AS col1, - ( CASE - + 86 WHEN - - SUM ( ALL - + CAST ( NULL AS REAL ) ) THEN NULL WHEN + - 55 + 51 - + 47 * - COUNT ( * ) THEN - 49 ELSE - 96 + + + 46 END ) + 42 / + 14 AS col0
----
1
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9687
SELECT - 76 * + - 6 + + 1 + 6 * - 17 * + CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
559

skipif mysql # not compatible
query I rowsort label-9687
SELECT - 76 * + - 6 + + 1 + 6 * - 17 * + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9688
SELECT + 4 AS col2, - 11 + - 49 + - - CASE + - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN NULL WHEN 49 * - - 99 THEN + - 96 END + 63 col0
----
4
NULL

skipif mysql # not compatible
query II rowsort label-9688
SELECT + 4 AS col2, - 11 + - 49 + - - CASE + - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN NULL WHEN 49 * - - 99 THEN + - 96 END + 63 col0
----
4
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9689
SELECT - COUNT( * ) AS col1, + 25 col2
----
-1
25

skipif mysql # not compatible
query II rowsort label-9689
SELECT - COUNT ( * ) AS col1, + 25 col2
----
-1
25

query I rowsort
SELECT ALL + + ( + 12 ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9691
SELECT DISTINCT + 85 AS col1, + COALESCE ( 86, + NULLIF ( 58, - CASE + - 26 WHEN - SUM( + 53 ) * 14 * + CAST( NULL AS SIGNED ) THEN - 28 WHEN 90 - 61 * 61 THEN NULL END - COUNT( * ) ), + 35 ) * 67 + - COUNT( * )
----
85
5761

skipif mysql # not compatible
query II rowsort label-9691
SELECT DISTINCT + 85 AS col1, + COALESCE ( 86, + NULLIF ( 58, - CASE + - 26 WHEN - SUM ( + 53 ) * 14 * + CAST ( NULL AS INTEGER ) THEN - 28 WHEN 90 - 61 * 61 THEN NULL END - COUNT ( * ) ), + 35 ) * 67 + - COUNT ( * )
----
85
5761

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9692
SELECT ALL - COUNT( * ) * - - 7 * COUNT( * ) DIV + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL - COUNT ( * ) * - - 7 * COUNT ( * ) / + COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT + - ( SUM( + - 55 ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9693
SELECT + - ( SUM ( + - 55 ) ) AS col0
----
55

query I rowsort
SELECT - 58 - 73
----
-131

query I rowsort
SELECT DISTINCT 87 + - + 68 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT ALL COUNT( * ) * - - 18 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL COUNT ( * ) * - - 18 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT DISTINCT 52 + - - 31 - + + MAX( - + 98 ) * - - COUNT( * ) AS col0
----
181

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT 52 + - - 31 - + + MAX ( - + 98 ) * - - COUNT ( * ) AS col0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT DISTINCT + COUNT( * ) + + + ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT + COUNT ( * ) + + + ( COUNT ( * ) )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9699
SELECT DISTINCT COALESCE ( + COALESCE ( - - COUNT( * ), - - 38 ), 92 DIV + COUNT( * ) - 48 + - + 22 + - CASE + 24 WHEN - CAST( NULL AS SIGNED ) THEN - 99 ELSE + 1 END DIV + 99 * + COUNT( DISTINCT - 13 ) ) * + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT COALESCE ( + COALESCE ( - - COUNT ( * ), - - 38 ), 92 / + COUNT ( * ) - 48 + - + 22 + - CASE + 24 WHEN - CAST ( NULL AS INTEGER ) THEN - 99 ELSE + 1 END / + 99 * + COUNT ( DISTINCT - 13 ) ) * + COUNT ( * ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9700
SELECT ALL + ( + - 44 ) DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL + ( + - 44 ) / + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT 32 * + COUNT( + 81 ) * + 67 AS col0
----
2144

skipif mysql # not compatible
query I rowsort label-9701
SELECT 32 * + COUNT ( + 81 ) * + 67 AS col0
----
2144

onlyif mysql # aggregate syntax: 
query II rowsort label-9702
SELECT DISTINCT COUNT( * ) - 53 * SUM( ALL 4 ) col0, - 17
----
-211
-17

skipif mysql # not compatible
query II rowsort label-9702
SELECT DISTINCT COUNT ( * ) - 53 * SUM ( ALL 4 ) col0, - 17
----
-211
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9703
SELECT ALL - COUNT( * ) DIV COALESCE ( + + 22, 69 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - COUNT ( * ) / COALESCE ( + + 22, 69 ) AS col1
----
0

query II rowsort
SELECT 22 * 17 AS col2, 12 * 92 * + 18
----
374
19872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9705
SELECT ALL COALESCE ( + - 78, - ( + 72 ) + - - ( 11 ) - 56 * + COUNT( * ) + CAST( NULL AS SIGNED ) + - 76 ) - - + 64 + - 37 AS col2, 26 + - 85 - + 59
----
-51
-118

skipif mysql # not compatible
query II rowsort label-9705
SELECT ALL COALESCE ( + - 78, - ( + 72 ) + - - ( 11 ) - 56 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) + - 76 ) - - + 64 + - 37 AS col2, 26 + - 85 - + 59
----
-51
-118

query I rowsort
SELECT ALL 97 * 49 AS col2
----
4753

query I rowsort
SELECT DISTINCT 45 * 56 * NULLIF ( + 83, - - 74 * 26 ) * + 58 AS col0
----
12131280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9708
SELECT - CASE + - 61 WHEN + + CAST( NULL AS SIGNED ) * + 26 + - 75 THEN 49 / + 14 + - 76 + - 67 + + 67 END * + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9708
SELECT - CASE + - 61 WHEN + + CAST ( NULL AS INTEGER ) * + 26 + - 75 THEN 49 / + 14 + - 76 + - 67 + + 67 END * + 63 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9709
SELECT - - CAST( 13 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-9709
SELECT - - CAST ( 13 AS INTEGER )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT DISTINCT + COUNT( * ) * - - 11 + ( - COUNT( * ) ) * + 86
----
-75

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT + COUNT ( * ) * - - 11 + ( - COUNT ( * ) ) * + 86
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT - 47 + - COUNT( * ) + + 45
----
-3

skipif mysql # not compatible
query I rowsort label-9711
SELECT - 47 + - COUNT ( * ) + + 45
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT + MIN( DISTINCT - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-9712
SELECT + MIN ( DISTINCT - 55 )
----
-55

query I rowsort
SELECT 2 - 2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT - NULLIF ( 68, CAST( NULL AS SIGNED ) ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-9714
SELECT - NULLIF ( 68, CAST ( NULL AS INTEGER ) ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT ALL - CASE 82 WHEN - 95 + - + COUNT( * ) THEN NULL WHEN - - 21 * - - 17 / + - 74 THEN + + 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL - CASE 82 WHEN - 95 + - + COUNT ( * ) THEN NULL WHEN - - 21 * - - 17 / + - 74 THEN + + 17 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL + - 27 + - - COUNT( - ( + 35 ) ) * + 32 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL + - 27 + - - COUNT ( - ( + 35 ) ) * + 32 AS col0
----
5

query II rowsort
SELECT + 19 * 61 * + 33 * 36 + - 0 + 84 + 32 AS col2, - 99 * + 41 AS col2
----
1377008
-4059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9718
SELECT ALL - CAST( 74 AS SIGNED ) AS col1, - 2 DIV MIN( + + 42 ) AS col2
----
-74
0

skipif mysql # not compatible
query II rowsort label-9718
SELECT ALL - CAST ( 74 AS INTEGER ) AS col1, - 2 / MIN ( + + 42 ) AS col2
----
-74
0

query I rowsort
SELECT DISTINCT - + 57 AS col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9720
SELECT + + 1 DIV + + 30 + + ( + + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-9720
SELECT + + 1 / + + 30 + + ( + + 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT DISTINCT - + COUNT( ALL 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT - + COUNT ( ALL 54 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ALL + + 98 + SUM( DISTINCT 7 )
----
105

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL + + 98 + SUM ( DISTINCT 7 )
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9723
SELECT ALL - + ( + - CAST( NULL AS SIGNED ) ) + + - AVG ( - + 79 ) + - + CAST( NULL AS SIGNED ) / COUNT( DISTINCT - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL - + ( + - CAST ( NULL AS INTEGER ) ) + + - AVG ( - + 79 ) + - + CAST ( NULL AS INTEGER ) / COUNT ( DISTINCT - 63 )
----
NULL

query I rowsort
SELECT ALL 58 + 94
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT - COUNT( * ) * - 28 + COUNT( * ) - - + COUNT( * ) * + COUNT( * ) + 95 * + + 48 AS col0
----
4590

skipif mysql # not compatible
query I rowsort label-9725
SELECT - COUNT ( * ) * - 28 + COUNT ( * ) - - + COUNT ( * ) * + COUNT ( * ) + 95 * + + 48 AS col0
----
4590

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT + + COALESCE ( - - 0, - 75, + - 76 DIV + + 4 * - 35 * + - 83 * - 38 )
----
0

skipif mysql # not compatible
query I rowsort label-9726
SELECT + + COALESCE ( - - 0, - 75, + - 76 / + + 4 * - 35 * + - 83 * - 38 )
----
0

query I rowsort
SELECT 78 * 80 + + 53 * + - ( + 95 ) * + ( + + 57 )
----
-280755

query I rowsort
SELECT ALL - 42 + 80
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9729
SELECT DISTINCT - CAST( 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT - CAST ( 14 AS INTEGER )
----
-14

query II rowsort
SELECT 40 AS col1, 58 AS col1
----
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT COUNT( * ) * 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9731
SELECT COUNT ( * ) * 14 AS col1
----
14

query I rowsort
SELECT DISTINCT + 97 + + - 92 AS col1
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9733
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2, - 33 AS col1
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-9733
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2, - 33 AS col1
----
NULL
-33

query I rowsort
SELECT DISTINCT 28 * 45 AS col2
----
1260

query I rowsort
SELECT - 54 * + 46 + - 14 * 1 AS col2
----
-2498

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9736
SELECT + 35 * + 67 * - 16 + COUNT( * ) DIV 60
----
-37520

skipif mysql # not compatible
query I rowsort label-9736
SELECT + 35 * + 67 * - 16 + COUNT ( * ) / 60
----
-37520

query I rowsort
SELECT DISTINCT 92 * - 9 AS col2
----
-828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9738
SELECT - 97 * - ( COUNT( ALL + 18 ) ) + + 62 + - 49 + - - COALESCE ( - + 73, + 11 + - 34 ) * - 29 * - CAST( 55 AS SIGNED ) AS col1
----
-116325

skipif mysql # not compatible
query I rowsort label-9738
SELECT - 97 * - ( COUNT ( ALL + 18 ) ) + + 62 + - 49 + - - COALESCE ( - + 73, + 11 + - 34 ) * - 29 * - CAST ( 55 AS INTEGER ) AS col1
----
-116325

query I rowsort
SELECT 67 * - ( + 11 )
----
-737

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9740
SELECT ALL 27 * 46 * - + 5, 57 * CAST( 58 AS SIGNED ) * + 88 * + 91 AS col1
----
-6210
26474448

skipif mysql # not compatible
query II rowsort label-9740
SELECT ALL 27 * 46 * - + 5, 57 * CAST ( 58 AS INTEGER ) * + 88 * + 91 AS col1
----
-6210
26474448

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT 38 + SUM( DISTINCT 71 ) AS col2
----
109

skipif mysql # not compatible
query I rowsort label-9741
SELECT 38 + SUM ( DISTINCT 71 ) AS col2
----
109

query I rowsort
SELECT ALL 38 * 38
----
1444

query I rowsort
SELECT DISTINCT 56 * 6 col1
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT 14 + + - COUNT( ALL + + 3 ) * 50 + - + 17 + + CASE + 31 WHEN - 37 THEN - COUNT( * ) * - + COUNT( * ) ELSE + + 26 * - - 9 + - - ( MAX( + 88 ) ) + ( 97 ) * 11 END * - 43
----
-59780

skipif mysql # not compatible
query I rowsort label-9744
SELECT 14 + + - COUNT ( ALL + + 3 ) * 50 + - + 17 + + CASE + 31 WHEN - 37 THEN - COUNT ( * ) * - + COUNT ( * ) ELSE + + 26 * - - 9 + - - ( MAX ( + 88 ) ) + ( 97 ) * 11 END * - 43
----
-59780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9745
SELECT ALL - 58, CAST( + + 7 AS SIGNED ) + - 19 AS col1
----
-58
-12

skipif mysql # not compatible
query II rowsort label-9745
SELECT ALL - 58, CAST ( + + 7 AS INTEGER ) + - 19 AS col1
----
-58
-12

query I rowsort
SELECT DISTINCT COALESCE ( + 51, + ( - ( + 97 ) ) * + 62 + - - 75, - 15 ) AS col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9747
SELECT DISTINCT - 61 DIV + 26 - 27 + - + 26
----
-55

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT - 61 / + 26 - 27 + - + 26
----
-55

query I rowsort
SELECT + ( - - 23 ) + + + 18 * - 80 AS col2
----
-1417

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL - COALESCE ( - 15, - - COUNT( * ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL - COALESCE ( - 15, - - COUNT ( * ) ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT 94 * NULLIF ( - COUNT( * ), 86 )
----
-94

skipif mysql # not compatible
query I rowsort label-9750
SELECT 94 * NULLIF ( - COUNT ( * ), 86 )
----
-94

query I rowsort
SELECT 37 + + + 14
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT + ( ( + ( 23 ) ) ) + 23 * COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9752
SELECT + ( ( + ( 23 ) ) ) + 23 * COUNT ( * ) AS col1
----
46

query I rowsort
SELECT 17 + 49 * + + 52 + 57 AS col1
----
2622

query I rowsort
SELECT ALL + 76 + + 72 AS col0
----
148

query I rowsort
SELECT ALL 64 + + + 22 AS col2
----
86

query I rowsort
SELECT 42 * + 59 col2
----
2478

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT + COUNT( DISTINCT + - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-9757
SELECT + COUNT ( DISTINCT + - 31 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9758
SELECT - + 46 + + 28 + 91 + + 36 + + - 86 + - MIN( ALL - 60 ) - - 18 / - 45 / - 9 / CAST( NULL AS SIGNED ) - + 91 * - + 64 - - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT - + 46 + + 28 + 91 + + 36 + + - 86 + - MIN ( ALL - 60 ) - - 18 / - 45 / - 9 / CAST ( NULL AS INTEGER ) - + 91 * - + 64 - - + 6
----
NULL

query I rowsort
SELECT - 29 * NULLIF ( - 97, 61 + - 40 ) * - 24
----
-67512

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT NULLIF ( COUNT( * ), - 91 * + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9760
SELECT NULLIF ( COUNT ( * ), - 91 * + - COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9761
SELECT ALL + CAST( - + 24 AS SIGNED ) * + COUNT( * ) + + ( + 79 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL + CAST ( - + 24 AS INTEGER ) * + COUNT ( * ) + + ( + 79 ) AS col0
----
55

query II rowsort
SELECT DISTINCT + 46 AS col0, 47
----
46
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT DISTINCT + NULLIF ( + - 23, + COUNT( ALL + 56 ) ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT + NULLIF ( + - 23, + COUNT ( ALL + 56 ) ) AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9764
SELECT ALL - CAST( NULL AS SIGNED ) * 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL - CAST ( NULL AS INTEGER ) * 42 AS col1
----
NULL

query I rowsort
SELECT ALL + ( 94 )
----
94

query II rowsort
SELECT + 89, 20 AS col1
----
89
20

query I rowsort
SELECT - 45 + + 40 * - - 45 AS col2
----
1755

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT - 51 DIV 45 * + 63
----
-63

skipif mysql # not compatible
query I rowsort label-9768
SELECT - 51 / 45 * + 63
----
-63

query I rowsort
SELECT - 63 * + 50
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT COUNT( * ) * - + 49 + - 40
----
-89

skipif mysql # not compatible
query I rowsort label-9770
SELECT COUNT ( * ) * - + 49 + - 40
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9771
SELECT - 15 DIV - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9771
SELECT - 15 / - 57 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9772
SELECT ALL + 77 AS col1, 76 + + COUNT( * ) - - 28 AS col1
----
77
105

skipif mysql # not compatible
query II rowsort label-9772
SELECT ALL + 77 AS col1, 76 + + COUNT ( * ) - - 28 AS col1
----
77
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9773
SELECT ALL 79 DIV COUNT( 29 )
----
79

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL 79 / COUNT ( 29 )
----
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9774
SELECT ALL + CAST( + 32 AS SIGNED ) DIV - 5 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + CAST ( + 32 AS INTEGER ) / - 5 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9775
SELECT ALL COUNT( * ), 93 AS col1
----
1
93

skipif mysql # not compatible
query II rowsort label-9775
SELECT ALL COUNT ( * ), 93 AS col1
----
1
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9776
SELECT 80 AS col1, - MIN( ALL 99 ) + + CAST( NULL AS SIGNED ) AS col1
----
80
NULL

skipif mysql # not compatible
query II rowsort label-9776
SELECT 80 AS col1, - MIN ( ALL 99 ) + + CAST ( NULL AS INTEGER ) AS col1
----
80
NULL

query I rowsort
SELECT - + ( 49 ) AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9778
SELECT + - CASE - + 51 WHEN - ( + 69 ) THEN NULL WHEN - 65 - + 65 + + - 76 THEN - CAST( + - 11 AS SIGNED ) * + 22 * ( 66 ) DIV 36 * + - 99 DIV - 21 + - 3 ELSE - ( 69 ) - COUNT( * ) END * - 23
----
-1610

skipif mysql # not compatible
query I rowsort label-9778
SELECT + - CASE - + 51 WHEN - ( + 69 ) THEN NULL WHEN - 65 - + 65 + + - 76 THEN - CAST ( + - 11 AS INTEGER ) * + 22 * ( 66 ) / 36 * + - 99 / - 21 + - 3 ELSE - ( 69 ) - COUNT ( * ) END * - 23
----
-1610

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ALL SUM( - CASE 63 WHEN 24 THEN - 97 WHEN + 67 THEN NULL END ) + - - 19 - - COALESCE ( - 8, 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL SUM ( - CASE 63 WHEN 24 THEN - 97 WHEN + 67 THEN NULL END ) + - - 19 - - COALESCE ( - 8, 1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT - CAST( - + 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-9780
SELECT - CAST ( - + 71 AS INTEGER )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9781
SELECT DISTINCT - 69 + + 1 + - COALESCE ( - + 37, - - 7 * + ( 57 ) ) DIV + COUNT( * ) - + 43 * 29 AS col1
----
-1278

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT - 69 + + 1 + - COALESCE ( - + 37, - - 7 * + ( 57 ) ) / + COUNT ( * ) - + 43 * 29 AS col1
----
-1278

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT ALL COUNT( * ) + MIN( 54 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL COUNT ( * ) + MIN ( 54 ) AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9783
SELECT DISTINCT 52 + - + COUNT( * ) DIV - + 44 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT 52 + - + COUNT ( * ) / - + 44 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL - MIN( - 3 )
----
3

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL - MIN ( - 3 )
----
3

query I rowsort
SELECT + + 50 * - 99 col0
----
-4950

query I rowsort
SELECT ALL ( + 0 ) AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9787
SELECT + - 81 + + 72 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT + - 81 + + 72 * - CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT + 51 AS col1, + 72 * 50 AS col1
----
51
3600

query II rowsort
SELECT 97 AS col0, + 60 * - 94 col1
----
97
-5640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9790
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) - + 98 + 44 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) - + 98 + 44 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT + 67 + - 85 + + 55 * - COUNT( + + 88 ) * - 1
----
37

skipif mysql # not compatible
query I rowsort label-9791
SELECT + 67 + - 85 + + 55 * - COUNT ( + + 88 ) * - 1
----
37

query I rowsort
SELECT - 37 * + 68
----
-2516

query I rowsort
SELECT ALL - 42 * + + 92 AS col1
----
-3864

query I rowsort
SELECT + 82 + + ( - 0 ) AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9795
SELECT ALL + 13 / + - CASE + 9 WHEN + 80 + 15 + + ( 10 ) THEN + 68 * 94 * - - 61 - - - 27 * + 52 + - + COUNT( * ) WHEN - COUNT( * ) * + COUNT( * ) * + MAX( DISTINCT + ( + 19 ) ) - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END - + AVG ( - 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL + 13 / + - CASE + 9 WHEN + 80 + 15 + + ( 10 ) THEN + 68 * 94 * - - 61 - - - 27 * + 52 + - + COUNT ( * ) WHEN - COUNT ( * ) * + COUNT ( * ) * + MAX ( DISTINCT + ( + 19 ) ) - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END - + AVG ( - 40 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9796
SELECT - 99 * COALESCE ( - - 10, - - SUM( 55 ) * - NULLIF ( - - ( - CAST( + 14 AS SIGNED ) ), + 12 ) * + 37 - + + 87 + - ( - - 45 ) ) col0
----
-990

skipif mysql # not compatible
query I rowsort label-9796
SELECT - 99 * COALESCE ( - - 10, - - SUM ( 55 ) * - NULLIF ( - - ( - CAST ( + 14 AS INTEGER ) ), + 12 ) * + 37 - + + 87 + - ( - - 45 ) ) col0
----
-990

query I rowsort
SELECT ALL 81 * 81 * + + 9 col2
----
59049

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9798
SELECT - 71 DIV 6 DIV - - 26 + + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9798
SELECT - 71 / 6 / - - 26 + + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT - 83 * - COUNT( * ) * CASE + 30 WHEN + 33 THEN + ( ( + - 0 ) ) END * - - 66 * 10 - - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT - 83 * - COUNT ( * ) * CASE + 30 WHEN + 33 THEN + ( ( + - 0 ) ) END * - - 66 * 10 - - + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ( - 26 ) AS col2
----
-26

query I rowsort
SELECT - 45 * + 99
----
-4455

query I rowsort
SELECT ( - 66 ) AS col1
----
-66

query I rowsort
SELECT ALL + 80 * - 12
----
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT ALL 95 * ( - + 24 ) + CAST( - 8 AS SIGNED ) AS col0
----
-2288

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL 95 * ( - + 24 ) + CAST ( - 8 AS INTEGER ) AS col0
----
-2288

query I rowsort
SELECT ALL + 81 * + 5 * + 54 AS col0
----
21870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9806
SELECT - 73 + + - ( COUNT( * ) ) + - 92 * - CAST( NULL AS SIGNED ) * - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT - 73 + + - ( COUNT ( * ) ) + - 92 * - CAST ( NULL AS INTEGER ) * - 18 AS col2
----
NULL

query I rowsort
SELECT - 38 + + + 21 * - 87 * - + 68 AS col0
----
124198

query I rowsort
SELECT DISTINCT 46 * - NULLIF ( + 40, - 10 ) + - 67 AS col2
----
-1907

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL + 10 * - + COUNT( * ) + + 30
----
20

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL + 10 * - + COUNT ( * ) + + 30
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT + 87 * - + COUNT( * ) + + - 48 AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-9810
SELECT + 87 * - + COUNT ( * ) + + - 48 AS col2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT DISTINCT - COUNT( * ) * NULLIF ( 73, + NULLIF ( + 87, 51 ) ) * - - 43 + - - 16 + + COUNT( * ) + + - COUNT( * ) + + + 82 + - 74 * + 26 AS col1
----
-4965

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT - COUNT ( * ) * NULLIF ( 73, + NULLIF ( + 87, 51 ) ) * - - 43 + - - 16 + + COUNT ( * ) + + - COUNT ( * ) + + + 82 + - 74 * + 26 AS col1
----
-4965

query I rowsort
SELECT DISTINCT ( + 90 )
----
90

query I rowsort
SELECT - - 45 + 2
----
47

query I rowsort
SELECT ALL + 60 + ( + - 72 ) AS col1
----
-12

query I rowsort
SELECT + ( - 21 ) + + 5 * + 44
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-9816
SELECT - 15 DIV - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9816
SELECT - 15 / - 61 AS col2
----
0

query I rowsort
SELECT 23 + + 11 / CASE + 8 WHEN - 79 THEN + ( + 36 ) WHEN 5 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 56 * - ( - ( + + 36 ) ) col0
----
2016

query II rowsort
SELECT 15 + 44 AS col2, + 1
----
59
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT DISTINCT CASE - - ( + - COUNT( * ) ) WHEN + 79 THEN 77 WHEN - + 31 * 48 THEN ( - ( + 25 ) ) * 43 ELSE + 62 * + NULLIF ( COUNT( * ), 18 ) + + 65 END - 65 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT CASE - - ( + - COUNT ( * ) ) WHEN + 79 THEN 77 WHEN - + 31 * 48 THEN ( - ( + 25 ) ) * 43 ELSE + 62 * + NULLIF ( COUNT ( * ), 18 ) + + 65 END - 65 AS col0
----
62

query I rowsort
SELECT ALL + + 49 * 32 AS col0
----
1568

query I rowsort
SELECT DISTINCT + - 99 * + ( - + 59 ) * 97 + + 49 col1
----
566626

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL + NULLIF ( - 67, + 4 * 31 - + + COUNT( * ) + - 31 ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL + NULLIF ( - 67, + 4 * 31 - + + COUNT ( * ) + - 31 ) col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT DISTINCT COUNT( * ) * 23
----
23

skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT COUNT ( * ) * 23
----
23

query I rowsort
SELECT DISTINCT 23 - 76 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT COUNT( * ) * + - 3
----
-3

skipif mysql # not compatible
query I rowsort label-9826
SELECT COUNT ( * ) * + - 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT NULLIF ( - 30, + - AVG ( - 81 ) / + 88 + + + 13 ) * + + COUNT( 98 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9827
SELECT NULLIF ( - 30, + - AVG ( - 81 ) / + 88 + + + 13 ) * + + COUNT ( 98 ) AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT ALL CAST( NULL AS SIGNED ) / - - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL CAST ( NULL AS INTEGER ) / - - 66 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9829
SELECT NULLIF ( - 85, - - 31 + - + 10 DIV 49 ) DIV - 42 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9829
SELECT NULLIF ( - 85, - - 31 + - + 10 / 49 ) / - 42 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT CAST( - 13 AS SIGNED ) * - 82
----
1066

skipif mysql # not compatible
query I rowsort label-9830
SELECT CAST ( - 13 AS INTEGER ) * - 82
----
1066

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9831
SELECT DISTINCT ( + - COUNT( * ) ) DIV + 15
----
0

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT ( + - COUNT ( * ) ) / + 15
----
0

query II rowsort
SELECT DISTINCT - 74, ( 7 ) AS col1
----
-74
7

query I rowsort
SELECT ALL + 48 * + - 13 col2
----
-624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9834
SELECT CAST( NULL AS SIGNED ) / + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT CAST ( NULL AS INTEGER ) / + 32
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT ALL CAST( NULL AS SIGNED ) + - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL CAST ( NULL AS INTEGER ) + - - 23
----
NULL

query I rowsort
SELECT DISTINCT 33 * - ( - 27 ) AS col1
----
891

query I rowsort
SELECT ALL + 76 + + NULLIF ( + 42, 54 ) + - + 69 AS col2
----
49

query I rowsort
SELECT ALL 68 * + 95
----
6460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT ( - ( 57 ) ) * 2 * CAST( NULL AS SIGNED ) + - - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT ( - ( 57 ) ) * 2 * CAST ( NULL AS INTEGER ) + - - 98
----
NULL

query I rowsort
SELECT DISTINCT 3 + + 23
----
26

query I rowsort
SELECT ALL + 76 + 59 * - 27 * + - 89
----
141853

query I rowsort
SELECT ALL - 22 + 24
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9843
SELECT ALL + - MAX( 73 ) + 66 AS col1, + 38
----
-7
38

skipif mysql # not compatible
query II rowsort label-9843
SELECT ALL + - MAX ( 73 ) + 66 AS col1, + 38
----
-7
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9844
SELECT ALL - ( - 98 ) + 42 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL - ( - 98 ) + 42 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + CASE - 69 WHEN - 93 THEN NULL WHEN 44 THEN - + 52 * 57 END AS col0, 15
----
NULL
15

query I rowsort
SELECT ALL 3 + 18 * 53 + - - ( - 12 )
----
945

query I rowsort
SELECT ALL + 11 + - 54
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9848
SELECT + CAST( NULL AS SIGNED ), 33 - 79 AS col0
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-9848
SELECT + CAST ( NULL AS INTEGER ), 33 - 79 AS col0
----
NULL
-46

query I rowsort
SELECT - 56 * + - 38 * + 46
----
97888

query I rowsort
SELECT DISTINCT + + 51 * 30 col0
----
1530

query I rowsort
SELECT DISTINCT + - 26 * + 80 + - + 61
----
-2141

query I rowsort
SELECT ALL + + 76 - + 87 - + 92
----
-103

query I rowsort
SELECT + 22 - - - 65
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9854
SELECT 52 col1, 0 DIV - COUNT( * ) AS col0
----
52
0

skipif mysql # not compatible
query II rowsort label-9854
SELECT 52 col1, 0 / - COUNT ( * ) AS col0
----
52
0

query I rowsort
SELECT 71 - + 1 AS col2
----
70

query I rowsort
SELECT DISTINCT + - 47 * - 33
----
1551

query I rowsort
SELECT ALL - + 84 - 35
----
-119

query II rowsort
SELECT DISTINCT ( - - ( + 76 ) ), 65 AS col2
----
76
65

query I rowsort
SELECT ( 41 ) * + - 49
----
-2009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9860
SELECT ALL CAST( NULL AS SIGNED ) * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL CAST ( NULL AS INTEGER ) * + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT ALL SUM( + ( 67 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL SUM ( + ( 67 ) ) AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT 7 + CAST( 70 AS SIGNED ) * + SUM( ALL - - 87 ) + 51 + 8 AS col1
----
6156

skipif mysql # not compatible
query I rowsort label-9862
SELECT 7 + CAST ( 70 AS INTEGER ) * + SUM ( ALL - - 87 ) + 51 + 8 AS col1
----
6156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT 16 + ( - CAST( NULL AS SIGNED ) ) - - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT 16 + ( - CAST ( NULL AS INTEGER ) ) - - 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ( - + 58 ) * + + 28 + SUM( - 82 ) col1
----
-1706

skipif mysql # not compatible
query I rowsort label-9864
SELECT ( - + 58 ) * + + 28 + SUM ( - 82 ) col1
----
-1706

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT COUNT( * ) + + - COUNT( * ) + 66 - 64 * - 6 + + 86
----
536

skipif mysql # not compatible
query I rowsort label-9865
SELECT COUNT ( * ) + + - COUNT ( * ) + 66 - 64 * - 6 + + 86
----
536

query II rowsort
SELECT ALL 28 * - - 7 AS col1, 4
----
196
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT DISTINCT SUM( ( - - 33 ) ) * - COUNT( * ) + + CASE - 77 WHEN + 63 THEN - - 36 * + NULLIF ( - + 41, + ( 65 ) + + + MIN( ALL + + 98 ) ) * - - 48 / - - 65 * + 82 - - 39 - ( - 97 ) + 5 WHEN - 13 + + 4 THEN - 49 * 67 ELSE NULL END + CASE 60 WHEN COUNT( * ) THEN 82 + - 86 END * + 35 * 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT SUM ( ( - - 33 ) ) * - COUNT ( * ) + + CASE - 77 WHEN + 63 THEN - - 36 * + NULLIF ( - + 41, + ( 65 ) + + + MIN ( ALL + + 98 ) ) * - - 48 / - - 65 * + 82 - - 39 - ( - 97 ) + 5 WHEN - 13 + + 4 THEN - 49 * 67 ELSE NULL END + CASE 60 WHEN COUNT ( * ) THEN 82 + - 86 END * + 35 * 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL + 83 * + MIN( ALL - 61 ) + - 21 AS col1
----
-5084

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL + 83 * + MIN ( ALL - 61 ) + - 21 AS col1
----
-5084

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT DISTINCT - MAX( - - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT - MAX ( - - 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT ALL + COUNT( * ) * 70 + 11
----
81

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL + COUNT ( * ) * 70 + 11
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9871
SELECT DISTINCT 12 * + + 24 + - COUNT( * ) + - 91 * - 35, - 59 AS col0
----
3472
-59

skipif mysql # not compatible
query II rowsort label-9871
SELECT DISTINCT 12 * + + 24 + - COUNT ( * ) + - 91 * - 35, - 59 AS col0
----
3472
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-9872
SELECT 83 DIV + 12, - 28 * - 49 AS col2
----
6
1372

skipif mysql # not compatible
query II rowsort label-9872
SELECT 83 / + 12, - 28 * - 49 AS col2
----
6
1372

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT SUM( ALL - 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9873
SELECT SUM ( ALL - 2 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT + COUNT( - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-9874
SELECT + COUNT ( - 20 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9875
SELECT 66 * + 25 AS col0, + 86 * - COUNT( * ) * 52 AS col2
----
1650
-4472

skipif mysql # not compatible
query II rowsort label-9875
SELECT 66 * + 25 AS col0, + 86 * - COUNT ( * ) * 52 AS col2
----
1650
-4472

query I rowsort
SELECT ALL 14 * - 87 AS col1
----
-1218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9877
SELECT - ( + CAST( - 35 AS SIGNED ) ) DIV - - 12, COUNT( * ) * + + COUNT( * ) * + - 53 DIV + 50 AS col0
----
2
-1

skipif mysql # not compatible
query II rowsort label-9877
SELECT - ( + CAST ( - 35 AS INTEGER ) ) / - - 12, COUNT ( * ) * + + COUNT ( * ) * + - 53 / + 50 AS col0
----
2
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9878
SELECT ALL COALESCE ( + 54, + - 20 + + - COALESCE ( - 34, - - 53 * 14 + 67, COUNT( DISTINCT + + 26 ) ) ) * - 20 * - 92 + + + 67 + - 30, - 22 * + + 39 * COUNT( * ) col2
----
99397
-858

skipif mysql # not compatible
query II rowsort label-9878
SELECT ALL COALESCE ( + 54, + - 20 + + - COALESCE ( - 34, - - 53 * 14 + 67, COUNT ( DISTINCT + + 26 ) ) ) * - 20 * - 92 + + + 67 + - 30, - 22 * + + 39 * COUNT ( * ) col2
----
99397
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT DISTINCT - 51 * + 74 + - ( + MIN( DISTINCT 60 ) )
----
-3834

skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT - 51 * + 74 + - ( + MIN ( DISTINCT 60 ) )
----
-3834

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT - NULLIF ( - COUNT( * ), + + 10 ) * - MIN( 10 ) + + - 37 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-9880
SELECT - NULLIF ( - COUNT ( * ), + + 10 ) * - MIN ( 10 ) + + - 37 AS col1
----
-47

query I rowsort
SELECT ALL 1 * 5
----
5

query I rowsort
SELECT NULLIF ( + + 36, - 92 + 21 ) AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9883
SELECT ALL 14 * - NULLIF ( 13, + CAST( - - 9 AS SIGNED ) / + 97 + + COUNT( * ) - + 88 * - NULLIF ( - 35, - - AVG ( ALL - + 51 ) ) + - 20 )
----
-182

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL 14 * - NULLIF ( 13, + CAST ( - - 9 AS INTEGER ) / + 97 + + COUNT ( * ) - + 88 * - NULLIF ( - 35, - - AVG ( ALL - + 51 ) ) + - 20 )
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT CASE - + NULLIF ( - 60, + - 63 * - COUNT( * ) ) WHEN - COUNT( * ) THEN NULL ELSE - 87 END
----
-87

skipif mysql # not compatible
query I rowsort label-9884
SELECT CASE - + NULLIF ( - 60, + - 63 * - COUNT ( * ) ) WHEN - COUNT ( * ) THEN NULL ELSE - 87 END
----
-87

query I rowsort
SELECT ALL + + 37 AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9886
SELECT 52 * - 11 + + + COUNT( * ) + 50 + - + MIN( + - 61 ) * CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT 52 * - 11 + + + COUNT ( * ) + 50 + - + MIN ( + - 61 ) * CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT - COALESCE ( - NULLIF ( - 41, - - 61 ), + - 33 * - 84 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT + 20 + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-9888
SELECT + 20 + + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT ALL NULLIF ( 55, - 43 - + COUNT( * ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL NULLIF ( 55, - 43 - + COUNT ( * ) ) AS col1
----
55

query I rowsort
SELECT + 34 + - 11
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9891
SELECT ALL - NULLIF ( + 63, + CAST( NULL AS DECIMAL ) ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL - NULLIF ( + 63, + CAST ( NULL AS REAL ) ) col2
----
-63

query I rowsort
SELECT ALL - - 49 * - - 33
----
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT - - COUNT( * ) * - NULLIF ( 14, SUM( DISTINCT - 12 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-9893
SELECT - - COUNT ( * ) * - NULLIF ( 14, SUM ( DISTINCT - 12 ) )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9894
SELECT - + 36 + 31 AS col1, + AVG ( - - 10 ) * 67 * AVG ( 90 ) * + 71 + 87 - + 67 + - 59 + - 87 * - ( - - CAST( NULL AS SIGNED ) ) AS col0
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-9894
SELECT - + 36 + 31 AS col1, + AVG ( - - 10 ) * 67 * AVG ( 90 ) * + 71 + 87 - + 67 + - 59 + - 87 * - ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
-5
NULL

query I rowsort
SELECT - 74 * + 99 * + ( + 64 ) + + 4
----
-468860

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT ALL - + MAX( - - 37 ) * 41
----
-1517

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL - + MAX ( - - 37 ) * 41
----
-1517

onlyif mysql # aggregate syntax: 
query II rowsort label-9897
SELECT + + 67 * + 45 * 53 * 2, COUNT( * ) col2
----
319590
1

skipif mysql # not compatible
query II rowsort label-9897
SELECT + + 67 * + 45 * 53 * 2, COUNT ( * ) col2
----
319590
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT ALL - CASE 58 WHEN + ( + + 66 ) * 79 * - 53 THEN - - 1 * + + 14 + 10 * + 45 WHEN + - NULLIF ( + NULLIF ( + - 56, + 3 ), + - COUNT( * ) ) + + - ( + - 45 ) + + ( - 13 ) * - 52 / - 39 THEN + 72 - 43 ELSE 95 END * + 73 AS col2
----
-6935

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - CASE 58 WHEN + ( + + 66 ) * 79 * - 53 THEN - - 1 * + + 14 + 10 * + 45 WHEN + - NULLIF ( + NULLIF ( + - 56, + 3 ), + - COUNT ( * ) ) + + - ( + - 45 ) + + ( - 13 ) * - 52 / - 39 THEN + 72 - 43 ELSE 95 END * + 73 AS col2
----
-6935

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT + 64 DIV - 64 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9899
SELECT + 64 / - 64 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9900
SELECT - COUNT( * ) + + - 10 * + - 5, + COUNT( * ) AS col1
----
49
1

skipif mysql # not compatible
query II rowsort label-9900
SELECT - COUNT ( * ) + + - 10 * + - 5, + COUNT ( * ) AS col1
----
49
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9901
SELECT ALL COUNT( + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9902
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) * + - 43 * - 2 + - + 53, - 63 + + - 5 + - 77 + + 96 * - 93 + 95 AS col1
----
-139
-8978

skipif mysql # not compatible
query II rowsort label-9902
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) * + - 43 * - 2 + - + 53, - 63 + + - 5 + - 77 + + 96 * - 93 + 95 AS col1
----
-139
-8978

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9903
SELECT - 99 DIV COALESCE ( 42, + + MIN( DISTINCT - + 14 ), 56 + 95 + 8 ) col1, + 27 DIV - 7 AS col2
----
-2
-3

skipif mysql # not compatible
query II rowsort label-9903
SELECT - 99 / COALESCE ( 42, + + MIN ( DISTINCT - + 14 ), 56 + 95 + 8 ) col1, + 27 / - 7 AS col2
----
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL NULLIF ( + + 66, + + COUNT( * ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL NULLIF ( + + 66, + + COUNT ( * ) ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9905
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9906
SELECT ALL - 21 + - NULLIF ( + CASE - 60 WHEN - + 78 THEN NULL WHEN 39 THEN + 39 + - - 82 WHEN - 33 * - - CASE + 89 WHEN + 49 * + + 62 * - COALESCE ( - - 59, + + 51, 36 * - + COUNT( * ) ) THEN + COUNT( * ) + NULLIF ( 90, - ( 29 ) ) WHEN 94 * - ( + CAST( NULL AS SIGNED ) ) THEN COUNT( * ) + + COUNT( * ) ELSE - COUNT( + 40 ) * + 0 END THEN NULL WHEN - 94 THEN 9 + 66 ELSE NULL END, + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL - 21 + - NULLIF ( + CASE - 60 WHEN - + 78 THEN NULL WHEN 39 THEN + 39 + - - 82 WHEN - 33 * - - CASE + 89 WHEN + 49 * + + 62 * - COALESCE ( - - 59, + + 51, 36 * - + COUNT ( * ) ) THEN + COUNT ( * ) + NULLIF ( 90, - ( 29 ) ) WHEN 94 * - ( + CAST ( NULL AS INTEGER ) ) THEN COUNT ( * ) + + COUNT ( * ) ELSE - COUNT ( + 40 ) * + 0 END THEN NULL WHEN - 94 THEN 9 + 66 ELSE NULL END, + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9907
SELECT 32, + COUNT( * ) / + - 45 * + ( + 12 ) + - 12 + 84 * CAST( NULL AS SIGNED ) * 79 / - 24 AS col1
----
32
NULL

skipif mysql # not compatible
query II rowsort label-9907
SELECT 32, + COUNT ( * ) / + - 45 * + ( + 12 ) + - 12 + 84 * CAST ( NULL AS INTEGER ) * 79 / - 24 AS col1
----
32
NULL

query I rowsort
SELECT ALL - 31 + + - ( - - 19 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT - COUNT( * ) * + + ( SUM( + - 70 ) )
----
70

skipif mysql # not compatible
query I rowsort label-9909
SELECT - COUNT ( * ) * + + ( SUM ( + - 70 ) )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT ALL - 22 / + + NULLIF ( + 3, - 55 * - 89 ) / - CAST( NULL AS SIGNED ) + COALESCE ( 15, - + 62 / + ( + 19 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - 22 / + + NULLIF ( + 3, - 55 * - 89 ) / - CAST ( NULL AS INTEGER ) + COALESCE ( 15, - + 62 / + ( + 19 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT + COUNT( ALL - + 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9911
SELECT + COUNT ( ALL - + 90 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT + 15 * + CASE 12 WHEN COUNT( * ) THEN NULL WHEN - 37 + - COUNT( * ) / ( 75 ) THEN + - 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9912
SELECT + 15 * + CASE 12 WHEN COUNT ( * ) THEN NULL WHEN - 37 + - COUNT ( * ) / ( 75 ) THEN + - 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL 83 * MAX( - 47 ) + + + 92 * 38
----
-405

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL 83 * MAX ( - 47 ) + + + 92 * 38
----
-405

onlyif mysql # aggregate syntax: 
query II rowsort label-9914
SELECT DISTINCT + COALESCE ( + 42, + - COUNT( 52 ), - 56 ), 99 * + 70 AS col2
----
42
6930

skipif mysql # not compatible
query II rowsort label-9914
SELECT DISTINCT + COALESCE ( + 42, + - COUNT ( 52 ), - 56 ), 99 * + 70 AS col2
----
42
6930

query I rowsort
SELECT ALL - 49 * - 74
----
3626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9916
SELECT ALL NULLIF ( 38, + CAST( 53 AS SIGNED ) + - 40 * - - 86 ) * 61 + - + 34 + 34 AS col2
----
2318

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL NULLIF ( 38, + CAST ( 53 AS INTEGER ) + - 40 * - - 86 ) * 61 + - + 34 + 34 AS col2
----
2318

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT DISTINCT + NULLIF ( - - 52, + - SUM( + + 12 ) )
----
52

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT + NULLIF ( - - 52, + - SUM ( + + 12 ) )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9918
SELECT DISTINCT - ( - 9 ) * - 39 * MAX( 60 ) AS col2, 55 + + - 39 col1
----
-21060
16

skipif mysql # not compatible
query II rowsort label-9918
SELECT DISTINCT - ( - 9 ) * - 39 * MAX ( 60 ) AS col2, 55 + + - 39 col1
----
-21060
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ALL + + MIN( ALL + - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL + + MIN ( ALL + - 86 )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT + CAST( + - 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-9920
SELECT + CAST ( + - 79 AS INTEGER )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9921
SELECT 67 * + 45 * + 37 + - 15 + + ( - + 80 ) + 33 DIV 60 * NULLIF ( - 80, - 43 * - 52 ) * NULLIF ( + 0, + + COALESCE ( 6, - ( COUNT( * ) ) + - 12 + COUNT( * ) + ( 94 ) * - COUNT( * ) * 52 ) ) DIV + ( + 33 ) + 53 AS col2
----
111513

skipif mysql # not compatible
query I rowsort label-9921
SELECT 67 * + 45 * + 37 + - 15 + + ( - + 80 ) + 33 / 60 * NULLIF ( - 80, - 43 * - 52 ) * NULLIF ( + 0, + + COALESCE ( 6, - ( COUNT ( * ) ) + - 12 + COUNT ( * ) + ( 94 ) * - COUNT ( * ) * 52 ) ) / + ( + 33 ) + 53 AS col2
----
111513

query II rowsort
SELECT - 41, 63 - + 96 col0
----
-41
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT ALL - 90 * - 88 * + + COUNT( * ) - + - 41 + + COUNT( * ) * 53 + - - 37 AS col2
----
8051

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL - 90 * - 88 * + + COUNT ( * ) - + - 41 + + COUNT ( * ) * 53 + - - 37 AS col2
----
8051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT + + CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + + 21 ) + + - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT + + CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + + 21 ) + + - 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9925
SELECT ALL 35 DIV COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL 35 / COUNT ( * ) AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9926
SELECT ALL 92 DIV - + 99 * + 88 + + 30
----
30

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL 92 / - + 99 * + 88 + + 30
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9927
SELECT + 31 * - - 53 * + MIN( 60 ) * CASE 25 WHEN + 68 THEN + CAST( + + 23 AS SIGNED ) ELSE 82 + + 12 END AS col0
----
9266520

skipif mysql # not compatible
query I rowsort label-9927
SELECT + 31 * - - 53 * + MIN ( 60 ) * CASE 25 WHEN + 68 THEN + CAST ( + + 23 AS INTEGER ) ELSE 82 + + 12 END AS col0
----
9266520

query I rowsort
SELECT ALL 75 * - - 2 - + + 12 + + 22 * + 80 * + - 83 col2
----
-145942

query I rowsort
SELECT DISTINCT 19 * 47 * 74 AS col1
----
66082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9930
SELECT + - CAST( + - CAST( + 56 AS SIGNED ) AS SIGNED ) * 74 col1
----
4144

skipif mysql # not compatible
query I rowsort label-9930
SELECT + - CAST ( + - CAST ( + 56 AS INTEGER ) AS INTEGER ) * 74 col1
----
4144

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT + + 90 * - MIN( 26 ) AS col0
----
-2340

skipif mysql # not compatible
query I rowsort label-9931
SELECT + + 90 * - MIN ( 26 ) AS col0
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL + COUNT( * ) * + - 23 * + - 79 * + COUNT( * ) + - + 73 + + - 65 * MIN( 55 )
----
-1831

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL + COUNT ( * ) * + - 23 * + - 79 * + COUNT ( * ) + - + 73 + + - 65 * MIN ( 55 )
----
-1831

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT + + 21 * COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-9933
SELECT + + 21 * COUNT ( * )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9934
SELECT + 20 - NULLIF ( + CAST( - - 91 AS SIGNED ), - 45 )
----
-71

skipif mysql # not compatible
query I rowsort label-9934
SELECT + 20 - NULLIF ( + CAST ( - - 91 AS INTEGER ), - 45 )
----
-71

query I rowsort
SELECT - ( 38 ) AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9936
SELECT ALL ( - + COUNT( * ) ) + - 87 DIV - - COUNT( * ) + - + MAX( 30 ) DIV + - COUNT( * ), - 18 + - - 29 * + + COALESCE ( + - 66, CAST( - 40 AS SIGNED ), 18 ) AS col0
----
-58
-1932

skipif mysql # not compatible
query II rowsort label-9936
SELECT ALL ( - + COUNT ( * ) ) + - 87 / - - COUNT ( * ) + - + MAX ( 30 ) / + - COUNT ( * ), - 18 + - - 29 * + + COALESCE ( + - 66, CAST ( - 40 AS INTEGER ), 18 ) AS col0
----
-58
-1932

query II rowsort
SELECT + 17 - - 68 AS col0, - 2 AS col2
----
85
-2

query II rowsort
SELECT ALL 71 AS col1, + 78
----
71
78

query I rowsort
SELECT ALL - 62 + - 24 + + 5 * - 99 col2
----
-581

query I rowsort
SELECT + 93 * - 53
----
-4929

query II rowsort
SELECT ALL 99 + 28 * COALESCE ( 33, - 77 * 26 ), 72 AS col2
----
1023
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL SUM( ALL 17 ) + - COUNT( * ) + 48 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL SUM ( ALL 17 ) + - COUNT ( * ) + 48 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT + COUNT( * ) + 13 * COUNT( + 60 )
----
14

skipif mysql # not compatible
query I rowsort label-9943
SELECT + COUNT ( * ) + 13 * COUNT ( + 60 )
----
14

query I rowsort
SELECT - ( - + 44 ) - - + 8
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT ALL + 90 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL + 90 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 94 AS col0, - 25 * 23 AS col0
----
-94
-575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9947
SELECT - COUNT( * ) DIV + - ( 19 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9947
SELECT - COUNT ( * ) / + - ( 19 ) AS col1
----
0

query I rowsort
SELECT + 27 * - - 5
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT ALL - 17 * COALESCE ( + - COUNT( * ), + COUNT( * ) + - 66 )
----
17

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL - 17 * COALESCE ( + - COUNT ( * ), + COUNT ( * ) + - 66 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL - AVG ( - 30 ) + - - 85 * ( - + ( - 58 ) ) * + + CASE NULLIF ( 66, - COALESCE ( + 70, - 93, SUM( + 89 ) ) * - - 93 * - ( + 16 ) ) WHEN - + NULLIF ( - ( + 81 ), + - CASE 75 WHEN 86 THEN 4 ELSE COUNT( CASE WHEN NOT + 18 BETWEEN NULL AND + 49 + + 29 THEN NULL ELSE 26 * 41 END ) * ( 52 ) END / MAX( 88 ) ) * + SUM( 76 ) THEN + 69 / 18 WHEN 44 THEN NULL END * - 8 + + 73 * + NULLIF ( - 26 * + 61, - 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL - AVG ( - 30 ) + - - 85 * ( - + ( - 58 ) ) * + + CASE NULLIF ( 66, - COALESCE ( + 70, - 93, SUM ( + 89 ) ) * - - 93 * - ( + 16 ) ) WHEN - + NULLIF ( - ( + 81 ), + - CASE 75 WHEN 86 THEN 4 ELSE COUNT ( CASE WHEN NOT + 18 BETWEEN NULL AND + 49 + + 29 THEN NULL ELSE 26 * 41 END ) * ( 52 ) END / MAX ( 88 ) ) * + SUM ( 76 ) THEN + 69 / 18 WHEN 44 THEN NULL END * - 8 + + 73 * + NULLIF ( - 26 * + 61, - 33 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT - 3 + CAST( NULL AS SIGNED ) + - - 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9951
SELECT - 3 + CAST ( NULL AS INTEGER ) + - - 44 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9952
SELECT ALL CAST( - 58 AS SIGNED ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL CAST ( - 58 AS INTEGER ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL - COUNT( * ) - + - 14 + - 74 + + + 73 + - 26 * - + 42 * + COUNT( * ) - 98 col2
----
1006

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL - COUNT ( * ) - + - 14 + - 74 + + + 73 + - 26 * - + 42 * + COUNT ( * ) - 98 col2
----
1006

query II rowsort
SELECT 25, - 50 col1
----
25
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9955
SELECT + 43 DIV - 23 + + 66
----
65

skipif mysql # not compatible
query I rowsort label-9955
SELECT + 43 / - 23 + + 66
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-9956
SELECT 67 DIV 51 AS col0, + 28 * - 81
----
1
-2268

skipif mysql # not compatible
query II rowsort label-9956
SELECT 67 / 51 AS col0, + 28 * - 81
----
1
-2268

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9957
SELECT - 52 * - CAST( NULL AS DECIMAL ) * - 64 + - 17 AS col2, + 54 + + COUNT( * )
----
NULL
55

skipif mysql # not compatible
query II rowsort label-9957
SELECT - 52 * - CAST ( NULL AS REAL ) * - 64 + - 17 AS col2, + 54 + + COUNT ( * )
----
NULL
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9958
SELECT DISTINCT + 74 DIV COALESCE ( - + 95, + - 81 ) * - 22 * 63 DIV + - COUNT( * ) + - 21 + 8 + - - MIN( DISTINCT + 61 ) * + COALESCE ( + 23, + ( COUNT( - 82 ) ) ) * - 19 AS col1
----
-26670

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT + 74 / COALESCE ( - + 95, + - 81 ) * - 22 * 63 / + - COUNT ( * ) + - 21 + 8 + - - MIN ( DISTINCT + 61 ) * + COALESCE ( + 23, + ( COUNT ( - 82 ) ) ) * - 19 AS col1
----
-26670

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT - - 93 DIV - 90 + + 71 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9959
SELECT - - 93 / - 90 + + 71 AS col2
----
70

query I rowsort
SELECT DISTINCT + 49 * + 13 AS col1
----
637

query I rowsort
SELECT ALL - ( 73 ) * + ( - 93 ) AS col0
----
6789

query I rowsort
SELECT - 69 + + ( - ( 68 ) ) AS col1
----
-137

query I rowsort
SELECT DISTINCT - + 65 * - - 22 AS col1
----
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT COUNT( * ) * + + 68 * + 91 + + 34
----
6222

skipif mysql # not compatible
query I rowsort label-9964
SELECT COUNT ( * ) * + + 68 * + 91 + + 34
----
6222

query I rowsort
SELECT - 52 + + ( 29 ) + - 47
----
-70

query I rowsort
SELECT ALL - - 26 AS col2
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-9967
SELECT 95 DIV + 47 AS col0, - 17
----
2
-17

skipif mysql # not compatible
query II rowsort label-9967
SELECT 95 / + 47 AS col0, - 17
----
2
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9968
SELECT - 81 * - 37 + 13 DIV - 24 AS col0
----
2997

skipif mysql # not compatible
query I rowsort label-9968
SELECT - 81 * - 37 + 13 / - 24 AS col0
----
2997

onlyif mysql # aggregate syntax: 
query II rowsort label-9969
SELECT - 16 col0, MIN( ALL 89 ) AS col1
----
-16
89

skipif mysql # not compatible
query II rowsort label-9969
SELECT - 16 col0, MIN ( ALL 89 ) AS col1
----
-16
89

query I rowsort
SELECT + 18 + - 66 * 92 AS col1
----
-6054

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT ALL - - CASE 99 WHEN COUNT( * ) + - COUNT( * ) THEN NULL WHEN - 45 * 99 + + 31 + 82 + + - 93 THEN NULL ELSE ( - MIN( DISTINCT - 61 ) ) + + - 56 END + 63 / - - 8 / 33 * - CASE ( - - 32 ) WHEN ( + - 93 ) * + 53 THEN NULL WHEN 52 * 58 THEN NULLIF ( - 37, - 95 + 73 ) ELSE NULL END * ( - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL - - CASE 99 WHEN COUNT ( * ) + - COUNT ( * ) THEN NULL WHEN - 45 * 99 + + 31 + 82 + + - 93 THEN NULL ELSE ( - MIN ( DISTINCT - 61 ) ) + + - 56 END + 63 / - - 8 / 33 * - CASE ( - - 32 ) WHEN ( + - 93 ) * + 53 THEN NULL WHEN 52 * 58 THEN NULLIF ( - 37, - 95 + 73 ) ELSE NULL END * ( - 57 )
----
NULL

query I rowsort
SELECT ALL 5 * + 67 AS col2
----
335

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT ALL 75 + 66 DIV 71 - 23 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL 75 + 66 / 71 - 23 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT DISTINCT 40 * COUNT( * ) * + 72
----
2880

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT 40 * COUNT ( * ) * + 72
----
2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9975
SELECT ALL CAST( 84 AS SIGNED ) + + AVG ( ALL + 3 ) * - 92 * + + CASE + + 77 WHEN - - COALESCE ( - + CASE 79 WHEN - 27 THEN 75 WHEN + 67 - COUNT( * ) THEN NULL ELSE NULL END, + 12 * 26, - 6, + 95 ) / + + 49 + + + 6 + 70 THEN COUNT( * ) WHEN 11 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL CAST ( 84 AS INTEGER ) + + AVG ( ALL + 3 ) * - 92 * + + CASE + + 77 WHEN - - COALESCE ( - + CASE 79 WHEN - 27 THEN 75 WHEN + 67 - COUNT ( * ) THEN NULL ELSE NULL END, + 12 * 26, - 6, + 95 ) / + + 49 + + + 6 + 70 THEN COUNT ( * ) WHEN 11 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9976
SELECT COUNT( * ) DIV + 34 DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-9976
SELECT COUNT ( * ) / + 34 / 8
----
0

query I rowsort
SELECT ( 30 ) + - 29
----
1

query II rowsort
SELECT ALL 69 * 1, + 60 AS col1
----
69
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT MAX( ALL - + 94 ) + - - 47 + 37
----
-10

skipif mysql # not compatible
query I rowsort label-9979
SELECT MAX ( ALL - + 94 ) + - - 47 + 37
----
-10

query I rowsort
SELECT DISTINCT 63 * 70 * + 29 col2
----
127890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9981
SELECT ( + COUNT( * ) ) DIV + 75 + - - 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9981
SELECT ( + COUNT ( * ) ) / + 75 + - - 52 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9982
SELECT DISTINCT SUM( - CAST( - 17 AS SIGNED ) ) - COUNT( * ) col0
----
16

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT SUM ( - CAST ( - 17 AS INTEGER ) ) - COUNT ( * ) col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT DISTINCT + CASE 31 WHEN + + 60 THEN + MIN( ALL 57 ) * - - 36 + + COUNT( * ) WHEN + 42 THEN + 87 END * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT + CASE 31 WHEN + + 60 THEN + MIN ( ALL 57 ) * - - 36 + + COUNT ( * ) WHEN + 42 THEN + 87 END * + 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9984
SELECT 66 - + 96, COUNT( * ) AS col0
----
-30
1

skipif mysql # not compatible
query II rowsort label-9984
SELECT 66 - + 96, COUNT ( * ) AS col0
----
-30
1

query I rowsort
SELECT ALL 81 * - + 75 + + - 11 - - 54
----
-6032

onlyif mysql # aggregate syntax: 
query II rowsort label-9986
SELECT - MIN( 5 ) * - 38 * + 94 * - 24 AS col2, - 68 * + + MAX( + + 68 ) AS col0
----
-428640
-4624

skipif mysql # not compatible
query II rowsort label-9986
SELECT - MIN ( 5 ) * - 38 * + 94 * - 24 AS col2, - 68 * + + MAX ( + + 68 ) AS col0
----
-428640
-4624

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT COUNT( * ) * 72
----
72

skipif mysql # not compatible
query I rowsort label-9987
SELECT COUNT ( * ) * 72
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT DISTINCT + + COUNT( * ) * 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT + + COUNT ( * ) * 56 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9989
SELECT + NULLIF ( + COUNT( * ), - 29 * - 6 * + + CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9989
SELECT + NULLIF ( + COUNT ( * ), - 29 * - 6 * + + CAST ( NULL AS INTEGER ) )
----
1

query I rowsort
SELECT ALL + 12 * + 87 + 18 AS col1
----
1062

query I rowsort
SELECT DISTINCT 65 * - 91 AS col1
----
-5915

query I rowsort
SELECT DISTINCT - + COALESCE ( - 75, - - 50 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT - 66 * + 34 * + MIN( DISTINCT + + NULLIF ( - 31, - 40 ) )
----
69564

skipif mysql # not compatible
query I rowsort label-9993
SELECT - 66 * + 34 * + MIN ( DISTINCT + + NULLIF ( - 31, - 40 ) )
----
69564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9994
SELECT + 46 * + - 58 + NULLIF ( CAST( NULL AS SIGNED ), - 18 ) + - MIN( DISTINCT + 23 ) + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT + 46 * + - 58 + NULLIF ( CAST ( NULL AS INTEGER ), - 18 ) + - MIN ( DISTINCT + 23 ) + 31 AS col2
----
NULL

query I rowsort
SELECT - ( + - 46 ) - + - 26 * + 0
----
46

query I rowsort
SELECT DISTINCT + 26 + + 26 + 16 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT ALL - 68 + - - 58 + 28 * - + MAX( DISTINCT - + 8 ) + + COUNT( * ) AS col1
----
215

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL - 68 + - - 58 + 28 * - + MAX ( DISTINCT - + 8 ) + + COUNT ( * ) AS col1
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT + SUM( 44 ) * + 54 + + - 44 * 24 * + 91
----
-93720

skipif mysql # not compatible
query I rowsort label-9998
SELECT + SUM ( 44 ) * + 54 + + - 44 * 24 * + 91
----
-93720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT CAST( NULL AS SIGNED ) * - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT CAST ( NULL AS INTEGER ) * - 94 AS col2
----
NULL

